diff --git a/Makefile b/Makefile index 8e3c3a222..d8bf6486f 100644 --- a/Makefile +++ b/Makefile @@ -80,6 +80,7 @@ PROFILE_PROTO_SOURCES = \ PROFILER_API_SOURCES = \ $(GENFILES_PATH)/google/api/annotations.pb.cc \ + $(GENFILES_PATH)/google/api/client.pb.cc \ $(GENFILES_PATH)/google/api/http.pb.cc \ $(GENFILES_PATH)/google/devtools/cloudprofiler/v2/profiler.grpc.pb.cc \ $(GENFILES_PATH)/google/devtools/cloudprofiler/v2/profiler.pb.cc \ @@ -230,6 +231,10 @@ $(GENFILES_PATH)/%annotations.pb.h $(GENFILES_PATH)/%annotations.pb.cc : third_p mkdir -p $(dir $@) $(PROTOC) -Ithird_party/googleapis -I$(PROTOBUF_INCLUDE_PATH) --cpp_out=$(GENFILES_PATH) $< +$(GENFILES_PATH)/%client.pb.h $(GENFILES_PATH)/%client.pb.cc : third_party/googleapis/%client.proto + mkdir -p $(dir $@) + $(PROTOC) -Ithird_party/googleapis -I$(PROTOBUF_INCLUDE_PATH) --cpp_out=$(GENFILES_PATH) $< + $(GENFILES_PATH)/%http.pb.h $(GENFILES_PATH)/%http.pb.cc : third_party/googleapis/%http.proto mkdir -p $(dir $@) $(PROTOC) -Ithird_party/googleapis --cpp_out=$(GENFILES_PATH) $< diff --git a/third_party/googleapis/.circleci/config.yml b/third_party/googleapis/.circleci/config.yml deleted file mode 100644 index a17328bfd..000000000 --- a/third_party/googleapis/.circleci/config.yml +++ /dev/null @@ -1,49 +0,0 @@ ---- -version: 2 -jobs: - build: - docker: - - image: googleapis/git - steps: - - checkout - - run: - command: | - if [ "$CIRCLE_BRANCH" == "master" ]; then - git remote add private https://googleapis-publisher:${GITHUB_TOKEN}@github.com/googleapis/googleapis-private.git - git push private HEAD:master - fi - working_directory: /var/code/googleapis/ - smoke-all: - docker: - - image: googleapis/artman:latest - steps: - - checkout - - run: - name: Run smoke tests - command: | - mkdir /tmp/reports - export RUNNING_IN_ARTMAN_DOCKER=True - smoketest_artman.py --root-dir=/var/code/googleapis/ --log=/tmp/reports/smoketest.log - - run: - name: Archive artifacts - command: | - mkdir /var/code/googleapis-tgz - tar cfz /var/code/googleapis-tgz/googleapis.tar.gz /var/code/googleapis - when: always - - store_test_results: - path: /tmp/reports - - store_artifacts: - path: /tmp/reports - - store_artifacts: - path: /var/code/googleapis-tgz - working_directory: /var/code/googleapis/ - -workflows: - version: 2 - smoketests: - jobs: - - smoke-all: - filters: - branches: - only: - - master diff --git a/third_party/googleapis/.kokoro/setup.sh b/third_party/googleapis/.kokoro/setup.sh index 25d0b07e1..26a2f6f09 100644 --- a/third_party/googleapis/.kokoro/setup.sh +++ b/third_party/googleapis/.kokoro/setup.sh @@ -2,6 +2,21 @@ set -e +# +# Update GCC +# +update_gcc() { + sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y + sudo apt-get update + sudo apt-get install -y gcc-6 g++-6 +} + +time { + update_gcc || sleep 10 || update_gcc || sleep 20 || update_gcc +} +export CXX=g++-6 +export CC=gcc-6 + # # Install bazelisk # diff --git a/third_party/googleapis/BUILD.bazel b/third_party/googleapis/BUILD.bazel index 1bc525514..d014c3636 100644 --- a/third_party/googleapis/BUILD.bazel +++ b/third_party/googleapis/BUILD.bazel @@ -2,5 +2,5 @@ load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar") alias( name = "build_gen", - actual = "@com_google_api_codegen//rules_gapic/bazel:build_file_generator", + actual = "@rules_gapic//bazel:build_file_generator", ) diff --git a/third_party/googleapis/WORKSPACE b/third_party/googleapis/WORKSPACE index bcb85c020..8c3851933 100644 --- a/third_party/googleapis/WORKSPACE +++ b/third_party/googleapis/WORKSPACE @@ -41,15 +41,15 @@ http_archive( # version of the library will be selected as a transitive dependency of gRPC. http_archive( name = "rules_python", - strip_prefix = "rules_python-748aa53d7701e71101dfd15d800e100f6ff8e5d1", - url = "https://github.com/bazelbuild/rules_python/archive/748aa53d7701e71101dfd15d800e100f6ff8e5d1.zip", + strip_prefix = "rules_python-0.1.0", + url = "https://github.com/bazelbuild/rules_python/archive/0.1.0.tar.gz", ) http_archive( name = "com_google_protobuf", - sha256 = "1c744a6a1f2c901e68c5521bc275e22bdc66256eeb605c2781923365b7087e5f", - strip_prefix = "protobuf-3.13.0", - urls = ["https://github.com/protocolbuffers/protobuf/archive/v3.13.0.zip"], + sha256 = "b10bf4e2d1a7586f54e64a5d9e7837e5188fc75ae69e36f215eb01def4f9721b", + strip_prefix = "protobuf-3.15.3", + urls = ["https://github.com/protocolbuffers/protobuf/archive/v3.15.3.tar.gz"], ) load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") @@ -76,28 +76,70 @@ rules_proto_toolchains() # section http_archive( name = "com_google_api_codegen", - strip_prefix = "gapic-generator-2.6.2", - urls = ["https://github.com/googleapis/gapic-generator/archive/v2.6.2.zip"], + strip_prefix = "gapic-generator-2.10.4", + urls = ["https://github.com/googleapis/gapic-generator/archive/v2.10.4.zip"], ) # rules_go (support Golang under bazel) # This is not in the Go section because we override the same, older dependency brought in by gRPC. # TODO(ndietz): move this back to the Go section if gRPC is updated per https://github.com/grpc/grpc/issues/22172 +# +# rules_go cannot be updated beyond v0.24.x because in v0.25.x the linker warnings regarding multiple copies of the same package +# became errors. Until rules_go is migrated to use the go_proto_library targets defined in here instead of in go-genproto, we cannot +# update this beyong v0.24.x. +# TODO(ndietz): https://github.com/bazelbuild/rules_go/issues/1986 http_archive( name = "io_bazel_rules_go", - sha256 = "4707e6ba7c01fcfc4f0d340d123bc16e43c2b8ea3f307663d95712b36d2a0e88", - strip_prefix = "rules_go-0.23.0", + sha256 = "dbf5a9ef855684f84cac2e7ae7886c5a001d4f66ae23f6904da0faaaef0d61fc", + urls = [ + "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.24.11/rules_go-v0.24.11.tar.gz", + "https://github.com/bazelbuild/rules_go/releases/download/v0.24.11/rules_go-v0.24.11.tar.gz", + ], +) + +# bazel-gazelle (support Golang under bazel) +http_archive( + name = "bazel_gazelle", + sha256 = "b85f48fa105c4403326e9525ad2b2cc437babaa6e15a3fc0b1dbab0ab064bc7c", urls = [ - "https://github.com/bazelbuild/rules_go/archive/v0.23.0.zip", + "https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/bazel-gazelle/releases/download/v0.22.2/bazel-gazelle-v0.22.2.tar.gz", + "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.22.2/bazel-gazelle-v0.22.2.tar.gz", ], ) load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies") +load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies", "go_repository") + +# Override the go-genproto dependency to enable use of GapicMetadata types. +# +# TODO(noahdietz): remove with next rules_go release. +# https://github.com/googleapis/gapic-generator-go/issues/529 +go_repository( + name = "org_golang_google_genproto", + build_file_proto_mode = "disable_global", + importpath = "google.golang.org/genproto", + sum = "h1:hcskBH5qZCOa7WpTUFUFvoebnSFZBYpjykLtjIp9DVk=", + version = "v0.0.0-20210303154014-9728d6b83eeb", +) go_rules_dependencies() go_register_toolchains() +gazelle_dependencies() + +_rules_gapic_version = "0.5.0" + +http_archive( + name = "rules_gapic", + strip_prefix = "rules_gapic-%s" % _rules_gapic_version, + urls = ["https://github.com/googleapis/rules_gapic/archive/v%s.tar.gz" % _rules_gapic_version], +) + +load("@rules_gapic//:repositories.bzl", "rules_gapic_repositories") + +rules_gapic_repositories() + ############################################################################## # C++ ############################################################################## @@ -137,10 +179,12 @@ apple_support_dependencies() # Java ############################################################################## # Java microgenerator. +_gapic_generator_java_version = "1.0.1" + http_archive( name = "gapic_generator_java", - strip_prefix = "gapic-generator-java-89fed885c17ef141584b43324347b64cc632e2c8", - urls = ["https://github.com/googleapis/gapic-generator-java/archive/89fed885c17ef141584b43324347b64cc632e2c8.zip"], + strip_prefix = "gapic-generator-java-%s" % _gapic_generator_java_version, + urls = ["https://github.com/googleapis/gapic-generator-java/archive/v%s.zip" % _gapic_generator_java_version], ) load("@gapic_generator_java//:repository_rules.bzl", "gapic_generator_java_properties") @@ -154,7 +198,7 @@ load("@gapic_generator_java//:repositories.bzl", "gapic_generator_java_repositor gapic_generator_java_repositories() -_gax_java_version = "1.59.0" +_gax_java_version = "1.62.0" http_archive( name = "com_google_api_gax_java", @@ -228,19 +272,14 @@ protoc_docs_plugin_repositories() protoc_docs_plugin_register_toolchains() -load("@rules_python//python:repositories.bzl", "py_repositories") - -py_repositories() - load("@rules_python//python:pip.bzl", "pip_repositories") pip_repositories() -# Change upstream repository once PR is merged http_archive( name = "gapic_generator_python", - strip_prefix = "gapic-generator-python-0.33.6", - urls = ["https://github.com/googleapis/gapic-generator-python/archive/v0.33.6.zip"], + strip_prefix = "gapic-generator-python-0.42.2", + urls = ["https://github.com/googleapis/gapic-generator-python/archive/v0.42.2.zip"], ) load( @@ -253,32 +292,14 @@ gapic_generator_python() gapic_generator_register_toolchains() -load("@gapic_generator_python_pip_deps//:requirements.bzl", "pip_install") - -pip_install() - ############################################################################## # Go ############################################################################## -# bazel-gazelle (support Golang under bazel) -http_archive( - name = "bazel_gazelle", - sha256 = "b85f48fa105c4403326e9525ad2b2cc437babaa6e15a3fc0b1dbab0ab064bc7c", - urls = [ - "https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/bazel-gazelle/releases/download/v0.22.2/bazel-gazelle-v0.22.2.tar.gz", - "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.22.2/bazel-gazelle-v0.22.2.tar.gz", - ], -) - -load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies") - -gazelle_dependencies() - http_archive( name = "com_googleapis_gapic_generator_go", - strip_prefix = "gapic-generator-go-0.15.2", - urls = ["https://github.com/googleapis/gapic-generator-go/archive/v0.15.2.tar.gz"], + strip_prefix = "gapic-generator-go-0.18.4", + urls = ["https://github.com/googleapis/gapic-generator-go/archive/v0.18.4.tar.gz"], ) load("@com_googleapis_gapic_generator_go//:repositories.bzl", "com_googleapis_gapic_generator_go_repositories") @@ -293,11 +314,16 @@ go_gapic_repositories() # TypeScript ############################################################################## +_gapic_generator_typescript_version = "1.2.11" + +_gapic_generator_typescript_sha256 = "cefde7dc7c1b7150c9eb237cafb778f2430a5416c8ee6fa706537437d2a517ea" + ### TypeScript generator http_archive( name = "gapic_generator_typescript", - strip_prefix = "gapic-generator-typescript-1.1.0", - urls = ["https://github.com/googleapis/gapic-generator-typescript/archive/v1.1.0.tar.gz"], + sha256 = _gapic_generator_typescript_sha256, + strip_prefix = "gapic-generator-typescript-%s" % _gapic_generator_typescript_version, + urls = ["https://github.com/googleapis/gapic-generator-typescript/archive/v%s.tar.gz" % _gapic_generator_typescript_version], ) load("@gapic_generator_typescript//:repositories.bzl", "gapic_generator_typescript_repositories") @@ -331,6 +357,18 @@ php( php_gapic_repositories() +# PHP micro-generator (beta) + +http_archive( + name = "gapic_generator_php", + strip_prefix = "gapic-generator-php-1.0.0-beta04", + urls = ["https://github.com/googleapis/gapic-generator-php/archive/v1.0.0-beta04.zip"], +) + +load("@gapic_generator_php//:repositories.bzl", "gapic_generator_php_repositories") + +gapic_generator_php_repositories() + ############################################################################## # C# ############################################################################## @@ -359,9 +397,8 @@ gapic_generator_csharp_repositories() http_archive( name = "gapic_generator_ruby", - strip_prefix = "gapic-generator-ruby-9cc95d8f4e05bdfe4ea9c67e6ca670f27c01c8f2", - #sha256 = "432f708c7107a8dffcf293af03df2114e5072abb57beb04423561603ee91b432", - urls = ["https://github.com/googleapis/gapic-generator-ruby/archive/9cc95d8f4e05bdfe4ea9c67e6ca670f27c01c8f2.zip"], + strip_prefix = "gapic-generator-ruby-56da7d96565f670ceaaa64d6489431f13e60574e", + urls = ["https://github.com/googleapis/gapic-generator-ruby/archive/56da7d96565f670ceaaa64d6489431f13e60574e.zip"], ) load("@gapic_generator_ruby//rules_ruby_gapic:repositories.bzl", "gapic_generator_ruby_repositories") diff --git a/third_party/googleapis/gapic/metadata/BUILD.bazel b/third_party/googleapis/gapic/metadata/BUILD.bazel new file mode 100644 index 000000000..aab9ef0cf --- /dev/null +++ b/third_party/googleapis/gapic/metadata/BUILD.bazel @@ -0,0 +1,158 @@ +# This file was automatically generated by BuildFileGenerator + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") + +proto_library( + name = "metadata_proto", + srcs = [ + "gapic_metadata.proto", + ], + deps = [ + ], +) + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_grpc_library", + "java_proto_library", +) + +java_proto_library( + name = "metadata_java_proto", + deps = [":metadata_proto"], +) + +java_grpc_library( + name = "metadata_java_grpc", + srcs = [":metadata_proto"], + deps = [":metadata_java_proto"], +) + +############################################################################## +# Go +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "go_proto_library", +) + +go_proto_library( + name = "metadata_go_proto", + compilers = ["@io_bazel_rules_go//proto:go_grpc"], + importpath = "google.golang.org/genproto/googleapis/gapic/metadata", + protos = [":metadata_proto"], + deps = [ + ], +) + +############################################################################## +# Python +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "moved_proto_library", + "py_grpc_library", + "py_proto_library", +) + +moved_proto_library( + name = "metadata_moved_proto", + srcs = [":metadata_proto"], + deps = [ + ], +) + +py_proto_library( + name = "metadata_py_proto", + plugin = "@protoc_docs_plugin//:docs_plugin", + deps = [":metadata_moved_proto"], +) + +py_grpc_library( + name = "metadata_py_grpc", + srcs = [":metadata_moved_proto"], + deps = [":metadata_py_proto"], +) + +############################################################################## +# PHP +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "php_grpc_library", + "php_proto_library", +) + +php_proto_library( + name = "metadata_php_proto", + deps = [":metadata_proto"], +) + +php_grpc_library( + name = "metadata_php_grpc", + srcs = [":metadata_proto"], + deps = [":metadata_php_proto"], +) + +############################################################################## +# Node.js +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", +) + +############################################################################## +# Ruby +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "ruby_grpc_library", + "ruby_proto_library", +) + +ruby_proto_library( + name = "metadata_ruby_proto", + deps = [":metadata_proto"], +) + +ruby_grpc_library( + name = "metadata_ruby_grpc", + srcs = [":metadata_proto"], + deps = [":metadata_ruby_proto"], +) + +############################################################################## +# C# +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "csharp_grpc_library", + "csharp_proto_library", +) + +csharp_proto_library( + name = "metadata_csharp_proto", + deps = [":metadata_proto"], +) + +csharp_grpc_library( + name = "metadata_csharp_grpc", + srcs = [":metadata_proto"], + deps = [":metadata_csharp_proto"], +) + +############################################################################## +# C++ +############################################################################## +# Put your C++ code here diff --git a/third_party/googleapis/gapic/metadata/gapic_metadata.proto b/third_party/googleapis/gapic/metadata/gapic_metadata.proto new file mode 100644 index 000000000..16090ede0 --- /dev/null +++ b/third_party/googleapis/gapic/metadata/gapic_metadata.proto @@ -0,0 +1,92 @@ +// Copyright 2020 Google LLC. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + +syntax = "proto3"; + +package google.gapic.metadata; + +option csharp_namespace = "Google.Gapic.Metadata"; +option go_package = "google.golang.org/genproto/googleapis/gapic/metadata;metadata"; +option java_multiple_files = true; +option java_outer_classname = "GapicMetadataProto"; +option java_package = "com.google.gapic.metadata"; +option php_namespace = "Google\\Gapic\\Metadata"; +option ruby_package = "Google::Gapic::Metadata"; + +// Metadata about a GAPIC library for a specific combination of API, version, and +// computer language. +message GapicMetadata { + // Schema version of this proto. Current value: 1.0 + string schema = 1; + + // Any human-readable comments to be included in this file. + string comment = 2; + + // Computer language of this generated language. This must be + // spelled out as it spoken in English, with no capitalization or + // separators (e.g. "csharp", "nodejs"). + string language = 3; + + // The proto package containing the API definition for which this + // GAPIC library was generated. + string proto_package = 4; + + // The language-specific library package for this GAPIC library. + string library_package = 5; + + // A map from each proto-defined service to ServiceForTransports, + // which allows listing information about transport-specific + // implementations of the service. + // + // The key is the name of the service as it appears in the .proto + // file. + map services = 6; + + // A map from a transport name to ServiceAsClient, which allows + // listing information about the client objects that implement the + // parent RPC service for the specified transport. + // + // The key name is the transport, lower-cased with no separators + // (e.g. "grpc", "rest"). + message ServiceForTransport { + map clients = 1; + } + + // Information about a specific client implementing a proto-defined service. + message ServiceAsClient { + // The name of the library client formatted as it appears in the source code + string library_client = 1; + + // A mapping from each proto-defined RPC name to the the list of + // methods in library_client that implement it. There can be more + // than one library_client method for each RPC. RPCs with no + // library_client methods need not be included. + // + // The key name is the name of the RPC as defined and formated in + // the proto file. + map rpcs = 2; + } + + // List of GAPIC client methods implementing the proto-defined RPC + // for the transport and service specified in the containing + // structures. + message MethodList { + // List of methods for a specific proto-service client in the + // GAPIC. These names should be formatted as they appear in the + // source code. + repeated string methods = 1; + } + +} diff --git a/third_party/googleapis/google/actions/sdk/v2/BUILD.bazel b/third_party/googleapis/google/actions/sdk/v2/BUILD.bazel new file mode 100644 index 000000000..c569d2691 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/BUILD.bazel @@ -0,0 +1,105 @@ +# This file was automatically generated by BuildFileGenerator +# https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/bazel + +# Most of the manual changes to this file will be overwritten. +# It's **only** allowed to change the following rule attribute values: +# - names of *_gapic_assembly_* rules +# - certain parameters of *_gapic_library rules, including but not limited to: +# * extra_protoc_parameters +# * extra_protoc_file_parameters +# The complete list of preserved parameters can be found in the source code. + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") +load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info") + +proto_library( + name = "sdk_proto", + srcs = [ + "account_linking.proto", + "account_linking_secret.proto", + "action.proto", + "actions_sdk.proto", + "actions_testing.proto", + "config_file.proto", + "data_file.proto", + "event_logs.proto", + "files.proto", + "localized_settings.proto", + "manifest.proto", + "release_channel.proto", + "settings.proto", + "surface.proto", + "theme_customization.proto", + "validation_results.proto", + "version.proto", + "webhook.proto", + ], + deps = [ + "//google/actions/sdk/v2/conversation:conversation_proto", + "//google/actions/sdk/v2/conversation/prompt:prompt_proto", + "//google/actions/sdk/v2/conversation/prompt/content:content_proto", + "//google/actions/sdk/v2/interactionmodel:interactionmodel_proto", + "//google/actions/sdk/v2/interactionmodel/prompt:prompt_proto", + "//google/actions/sdk/v2/interactionmodel/prompt/content:content_proto", + "//google/actions/sdk/v2/interactionmodel/type:type_proto", + "//google/api:annotations_proto", + "//google/api:client_proto", + "//google/api:field_behavior_proto", + "//google/api:resource_proto", + "//google/rpc:status_proto", + "//google/type:latlng_proto", + "@com_google_protobuf//:empty_proto", + "@com_google_protobuf//:struct_proto", + "@com_google_protobuf//:timestamp_proto", + "@com_google_protobuf//:wrappers_proto", + ], +) + +proto_library_with_info( + name = "sdk_proto_with_info", + deps = [ + ":sdk_proto", + "//google/cloud:common_resources_proto", + ], +) + +############################################################################## +# Node.js +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", +) + +nodejs_gapic_library( + name = "sdk_nodejs_gapic", + package_name = "@assistant/actions", + src = ":sdk_proto_with_info", + extra_protoc_parameters = ["metadata"], + grpc_service_config = "actions_grpc_service_config.json", + package = "google.actions.sdk.v2", + service_yaml = "actions_v2.yaml", + deps = [], +) + +nodejs_gapic_assembly_pkg( + name = "actions-v2-nodejs", + deps = [ + ":sdk_nodejs_gapic", + ":sdk_proto", + "//google/actions/sdk/v2/conversation:conversation_proto", + "//google/actions/sdk/v2/conversation/prompt:prompt_proto", + "//google/actions/sdk/v2/conversation/prompt/content:content_proto", + "//google/actions/sdk/v2/interactionmodel:interactionmodel_proto", + "//google/actions/sdk/v2/interactionmodel/prompt:prompt_proto", + "//google/actions/sdk/v2/interactionmodel/prompt/content:content_proto", + "//google/actions/sdk/v2/interactionmodel/type:type_proto", + ], +) diff --git a/third_party/googleapis/google/actions/sdk/v2/account_linking.proto b/third_party/googleapis/google/actions/sdk/v2/account_linking.proto new file mode 100644 index 000000000..b33299ff1 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/account_linking.proto @@ -0,0 +1,126 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2; + +import "google/api/field_behavior.proto"; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2;sdk"; +option java_multiple_files = true; +option java_outer_classname = "AccountLinkingProto"; +option java_package = "com.google.actions.sdk.v2"; + +// AccountLinking allows Google to guide the user to sign-in to the App's web +// services. +// +// For Google Sign In and OAuth + Google Sign In linking types, Google generates +// a client ID identifying your App to Google ("Client ID issued by Google to +// your Actions" on Console UI). This field is read-only and can be checked by +// navigating to the Console UI's Account Linking page. +// See: https://developers.google.com/assistant/identity/google-sign-in +// +// Note: For all account linking setting types (except for Google Sign In), you +// must provide a username and password for a test account in +// Settings.testing_instructions for the review team to review the app (they +// will not be visible to users). +message AccountLinking { + // The type of Account Linking to perform. + enum LinkingType { + // Unspecified. + LINKING_TYPE_UNSPECIFIED = 0; + + // Google Sign In linking type. + // If using this linking type, no OAuth-related fields need to be set below. + GOOGLE_SIGN_IN = 1; + + // OAuth and Google Sign In linking type. + OAUTH_AND_GOOGLE_SIGN_IN = 2; + + // OAuth linking type. + OAUTH = 3; + } + + // The OAuth2 grant type Google uses to guide the user to sign in to your + // App's web service. + enum AuthGrantType { + // Unspecified. + AUTH_GRANT_TYPE_UNSPECIFIED = 0; + + // Authorization code grant. Requires you to provide both + // authentication URL and access token URL. + AUTH_CODE = 1; + + // Implicit code grant. Only requires you to provide authentication + // URL. + IMPLICIT = 2; + } + + // Required. If `true`, users are allowed to sign up for new accounts via voice. + // If `false`, account creation is only allowed on your website. Select this + // option if you want to display your terms of service or obtain user consents + // during sign-up. + // linking_type cannot be GOOGLE_SIGN_IN when this is `false`. + // linking_type cannot be OAUTH when this is `true`. + bool enable_account_creation = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The linking type to use. + // See https://developers.google.com/assistant/identity for further details on + // the linking types. + LinkingType linking_type = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Indicates the type of authentication for OAUTH linking_type. + AuthGrantType auth_grant_type = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Client ID issued by your App to Google. + // This is the OAuth2 Client ID identifying Google to your service. + // Only set when using OAuth. + string app_client_id = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Endpoint for your sign-in web page that supports OAuth2 code or + // implicit flows. + // URL must use HTTPS. + // Only set when using OAuth. + string authorization_url = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. OAuth2 endpoint for token exchange. + // URL must use HTTPS. + // This is not set when only using OAuth with IMPLICIT grant as the + // linking type. + // Only set when using OAuth. + string token_url = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of permissions the user must consent to in order to use + // your service. + // Only set when using OAuth. + // Make sure to provide a Terms of Service in the directory information in + // LocalizedSettings.terms_of_service_url section if specifying this field. + repeated string scopes = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. This is the web page on your service which describes the + // permissions the user is granting to Google. + // Only set if using OAuth and Google Sign In. + // Make sure to provide a Terms of Service in the directory information in + // LocalizedSettings.terms_of_service_url section if specifying this field. + string learn_more_url = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, allow Google to transmit client ID and secret via HTTP + // basic auth header. Otherwise, Google uses the client ID and secret inside + // the post body. + // Only set when using OAuth. + // Make sure to provide a Terms of Service in the directory information in + // LocalizedSettings.terms_of_service_url section if specifying this field. + bool use_basic_auth_header = 9 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/account_linking_secret.proto b/third_party/googleapis/google/actions/sdk/v2/account_linking_secret.proto new file mode 100644 index 000000000..d0162412b --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/account_linking_secret.proto @@ -0,0 +1,35 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2;sdk"; +option java_multiple_files = true; +option java_outer_classname = "AccountLinkingSecretProto"; +option java_package = "com.google.actions.sdk.v2"; + +// Information about the encrypted OAuth client secret used in account linking +// flows (for AUTH_CODE grant type). +message AccountLinkingSecret { + // Encrypted account linking client secret ciphertext. + bytes encrypted_client_secret = 1; + + // The version of the crypto key used to encrypt the account linking client + // secret. + // Note that this field is ignored in push, preview, and version creation + // flows. + string encryption_key_version = 2; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/action.proto b/third_party/googleapis/google/actions/sdk/v2/action.proto new file mode 100644 index 000000000..99ebb1157 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/action.proto @@ -0,0 +1,103 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2;sdk"; +option java_multiple_files = true; +option java_outer_classname = "ActionProto"; +option java_package = "com.google.actions.sdk.v2"; + +// Represents the list of Actions defined in a project. +message Actions { + // Defines the engagement mechanisms associated with this action. This + // allows end users to subscribe to push notification and daily update. + message Engagement { + // Defines push notification settings that this engagement supports. + message PushNotification { + + } + + // Defines daily update settings that this engagement supports. + message DailyUpdate { + + } + + // Indicates whether sharing links is enabled for this action and the + // corresponding settings. Action links are used to deep link a user into a + // specific action. + // ActionLink is deprecated. Use AssistantLink instead. + message ActionLink { + option deprecated = true; + + // User friendly display title for the link. + string title = 1; + } + + // Indicates whether sharing links is enabled for this action and the + // corresponding settings. Assistant links are used to deep link a user into + // a specific action. + message AssistantLink { + // User friendly display title for the link. + string title = 1; + } + + // The title of the engagement that will be sent to end users asking for + // their permission to receive updates. The prompt sent to end users for + // daily updates will look like "What time would you like me to send your + // daily {title}" and for push notifications will look like + // "Is it ok if I send push notifications for {title}". + // **This field is localizable.** + string title = 1; + + // Push notification settings that this engagement supports. + PushNotification push_notification = 2; + + // Recurring update settings that this engagement supports. + oneof recurring_update { + // Daily update settings that this engagement supports. + DailyUpdate daily_update = 3; + } + + // Link config for an action which determines whether sharing links is + // enabled for the action and if so, contains the user friendly display name + // for the link. + // ActionLink is deprecated. Use AssistantLink instead. + ActionLink action_link = 4 [deprecated = true]; + + // Link config for an action which determines whether sharing links is + // enabled for the action and if so, contains the user friendly display name + // for the link. + AssistantLink assistant_link = 6; + } + + // Details regarding a custom action. + message CustomAction { + // Engagement mechanisms associated with the action to help end users + // subscribe to push notifications and daily updates. + // Note that the intent name specified in daily updates/push notifications + // slot config needs to match the intent corresponding to this action for + // end users to subscribe to these updates. + Engagement engagement = 2; + } + + // Map from intents to custom Actions to configure invocation for the project. + // The invocation intents could either be system or custom intents defined + // in the "custom/intents/" package. All intents defined here (system + // intents & custom intents) must have a corresponding intent file in the + // "custom/global/" package. + map custom = 3; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/actions_gapic.yaml b/third_party/googleapis/google/actions/sdk/v2/actions_gapic.yaml new file mode 100644 index 000000000..d63eedf6f --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/actions_gapic.yaml @@ -0,0 +1,6 @@ +type: com.google.api.codegen.ConfigProto +config_schema_version: 2.0.0 +language_settings: + nodejs: + package_name: actions.sdk.v2 + domain_layer_location: assistant diff --git a/third_party/googleapis/google/actions/sdk/v2/actions_grpc_service_config.json b/third_party/googleapis/google/actions/sdk/v2/actions_grpc_service_config.json new file mode 100644 index 000000000..e78d2dbef --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/actions_grpc_service_config.json @@ -0,0 +1,16 @@ +{ + "methodConfig": [{ + "name": [{ "service": "google.actions.sdk.v2.ActionsSdk" }], + "timeout": "60s" + }, + { + "name": [ + { "service": "google.actions.sdk.v2.ActionsSdk", "method": "WritePreview" } + ], + "timeout": "180s" + }, + { + "name": [{ "service": "google.actions.sdk.v2.ActionsTesting" }], + "timeout": "60s" + }] +} diff --git a/third_party/googleapis/google/actions/sdk/v2/actions_sdk.proto b/third_party/googleapis/google/actions/sdk/v2/actions_sdk.proto new file mode 100644 index 000000000..0cc329254 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/actions_sdk.proto @@ -0,0 +1,388 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2; + +import "google/actions/sdk/v2/account_linking_secret.proto"; +import "google/actions/sdk/v2/files.proto"; +import "google/actions/sdk/v2/release_channel.proto"; +import "google/actions/sdk/v2/validation_results.proto"; +import "google/actions/sdk/v2/version.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/wrappers.proto"; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2;sdk"; +option java_multiple_files = true; +option java_outer_classname = "ActionsSdkProto"; +option java_package = "com.google.actions.sdk.v2"; + +// Actions SDK API which allows developers to build projects using the SDK. +service ActionsSdk { + option (google.api.default_host) = "actions.googleapis.com"; + + // Updates the project draft based on the model. + rpc WriteDraft(stream WriteDraftRequest) returns (Draft) { + option (google.api.http) = { + post: "/v2/{parent=projects/*}/draft:write" + body: "*" + }; + } + + // Updates the user's project preview based on the model. + rpc WritePreview(stream WritePreviewRequest) returns (Preview) { + option (google.api.http) = { + post: "/v2/{parent=projects/*}/preview:write" + body: "*" + }; + } + + // Creates a project version based on the model and triggers deployment to the + // specified release channel, if specified. + rpc CreateVersion(stream CreateVersionRequest) returns (Version) { + option (google.api.http) = { + post: "/v2/{parent=projects/*}/versions:create" + body: "*" + }; + } + + // Reads the entire content of the project draft. + rpc ReadDraft(ReadDraftRequest) returns (stream ReadDraftResponse) { + option (google.api.http) = { + post: "/v2/{name=projects/*/draft}:read" + body: "*" + }; + } + + // Reads the entire content of a project version. + rpc ReadVersion(ReadVersionRequest) returns (stream ReadVersionResponse) { + option (google.api.http) = { + post: "/v2/{name=projects/*/versions/*}:read" + body: "*" + }; + } + + // Encrypts the OAuth client secret used in account linking flows. + // This can be used to encrypt the client secret for the first time (e.g. + // before the first push or after changing the client secret) or to re-encrypt + // a client secret using the latest primary key version (considering key + // rotation). + rpc EncryptSecret(EncryptSecretRequest) returns (EncryptSecretResponse) { + option (google.api.http) = { + post: "/v2:encryptSecret" + body: "*" + }; + } + + // Decrypts the OAuth client secret used in account linking flows. + // This can be used to view the client secret (e.g. after pulling a project). + rpc DecryptSecret(DecryptSecretRequest) returns (DecryptSecretResponse) { + option (google.api.http) = { + post: "/v2:decryptSecret" + body: "*" + }; + } + + // Lists all release channels and corresponding versions, if any. + rpc ListReleaseChannels(ListReleaseChannelsRequest) returns (ListReleaseChannelsResponse) { + option (google.api.http) = { + get: "/v2/{parent=projects/*}/releaseChannels" + }; + option (google.api.method_signature) = "parent"; + } + + // Lists all versions and their current states. + rpc ListVersions(ListVersionsRequest) returns (ListVersionsResponse) { + option (google.api.http) = { + get: "/v2/{parent=projects/*}/versions" + }; + option (google.api.method_signature) = "parent"; + } +} + +// Streaming RPC request for WriteDraft. +message WriteDraftRequest { + // Required. The parent resource name in the format `projects/{project}`. The + // `{project}` is the cloud project ID associated with the project. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "actions.googleapis.com/Draft" + } + ]; + + // Required. List of files sent to the server at a time. This is a list of config files + // or data files. + // 1. The first request must be a ConfigFiles. + // 2. The first request must have a ConfigFile with 'settings'. + // 3. The first request must have a ConfigFile with 'manifest'. + // 4. The webhook ConfigFile corresponding to inline cloud function must be + // streamed before the DataFile corresponding to its source code. + Files files = 4 [(google.api.field_behavior) = REQUIRED]; +} + +// Definition of draft resource. +message Draft { + option (google.api.resource) = { + type: "actions.googleapis.com/Draft" + pattern: "projects/{project}/draft" + }; + + // The unique identifier of the draft in the following format. + // `projects/{project}/draft` + string name = 1; + + // Validation results associated with the project draft content. Note that + // WriteDraft updates the draft despite the warnings as warnings are not draft + // blocking. + ValidationResults validation_results = 2; +} + +// Streaming RPC request for WritePreview. +message WritePreviewRequest { + // Indicates the preview content will be coming from the Draft. + message ContentFromDraft { + + } + + // Indicates the preview content will be coming from an exiting version. + message ContentFromSubmittedVersion { + // Required. Submitted version of the project to be used to create a preview. + // Format: `projects/{project}/versions/{version}` + string version = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "actions.googleapis.com/Version" + } + ]; + } + + // Settings for updating the preview. + message PreviewSettings { + // Indicates whether or not to run certain operations, such as transactions, + // in sandbox mode. By default, preview requests run these operations in + // sandbox mode. In other words, the default value for `sandbox` is `true`. + google.protobuf.BoolValue sandbox = 1; + } + + // Required. The parent resource name in the format `projects/{project}`. The + // `{project}` is the cloud project ID associated with the project. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "actions.googleapis.com/Preview" + } + ]; + + // Data source used to created the preview. + oneof source { + // List of files sent to the server at a time. This is a list of config + // files or data files. + // 1. The first request must be a ConfigFiles. + // 2. The first request must have a ConfigFile with 'settings'. + // 3. The first request must have a ConfigFile with 'manifest'. + // 4. The webhook ConfigFile corresponding to inline cloud function must be + // streamed before the DataFile corresponding to its source code. + Files files = 5; + + // Content sourced from the project draft. + ContentFromDraft draft = 6; + + // Content sourced from the an exiting version. + ContentFromSubmittedVersion submitted_version = 7; + } + + // Required. The settings for updating the user's preview. + PreviewSettings preview_settings = 4 [(google.api.field_behavior) = REQUIRED]; +} + +// Definition of preview resource. +message Preview { + option (google.api.resource) = { + type: "actions.googleapis.com/Preview" + pattern: "projects/{project}/previews/{preview}" + }; + + // The unique identifier of the preview. + // Format: `projects/{project}/preview` + string name = 1; + + // Validation results associated with the user project preview content. + ValidationResults validation_results = 2; + + // The simulator URL to test the user preview. + string simulator_url = 3; +} + +// Streaming RPC request for CreateVersion. +message CreateVersionRequest { + // Required. The parent resource name in the format `projects/{project}`. The + // `{project}` is the cloud project ID associated with the project. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "actions.googleapis.com/Version" + } + ]; + + // Required. List of files sent to the server at a time. This is a list of config files + // or data files. + // 1. The first request must be a ConfigFiles. + // 2. The first request must have a ConfigFile with 'settings'. + // 3. The first request must have a ConfigFile with 'manifest'. + // 4. The webhook ConfigFile corresponding to inline cloud function must be + // streamed before the DataFile corresponding to its source code. + Files files = 5 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The release channel to deploy the version, if specified. The supported + // built in release channels are actions.channels.Production, + // actions.channels.ClosedBeta, actions.channels.Alpha. + // . + string release_channel = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// RPC request for ReadDraft. +message ReadDraftRequest { + // Required. The name of the resource in the format `projects/{project}/draft`. The + // `{project}` is the cloud project ID associated with the project. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The version of the crypto key used to encrypt the account linking OAuth + // client secret. If not specified, the primary key version is used for + // encryption. Only relevant for projects with account linking with client + // secret. + string client_secret_encryption_key_version = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Streaming RPC response for ReadDraft. +message ReadDraftResponse { + // List of files sent from the server at a time. + Files files = 3; +} + +// RPC request for ReadVersion. +message ReadVersionRequest { + // Required. The name of the version resource in the format + // `projects/{project}/versions/{version}`. `{project}` is the + // cloud project ID associated with the project, `{version}` is the + // identifier of the version being read. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The version of the crypto key used to encrypt the account linking OAuth + // client secret. If not specified, the primary key version is used for + // encryption. Only relevant for projects with account linking with client + // secret. + string client_secret_encryption_key_version = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Streaming RPC response for ReadVersion. +message ReadVersionResponse { + // List of files sent from the server at a time. + Files files = 1; +} + +// RPC request for EncryptSecret. +message EncryptSecretRequest { + // Required. The account linking client secret plaintext. + string client_secret = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// RPC response for EncryptSecret. +message EncryptSecretResponse { + // Contains the encrypted account linking client secret and the key version + // used to encrypt the secret. + AccountLinkingSecret account_linking_secret = 1; +} + +// RPC request for DecryptSecret. +message DecryptSecretRequest { + // Required. The account linking client secret ciphertext. + bytes encrypted_client_secret = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// RPC response for DecryptSecret. +message DecryptSecretResponse { + // The account linking client secret plaintext. + string client_secret = 1; +} + +// RPC request for listing release channels +message ListReleaseChannelsRequest { + // Required. The name of the resource in the format `projects/{project}`. The + // `{project}` is the cloud project ID associated with the project. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "actions.googleapis.com/ReleaseChannel" + } + ]; + + // The maximum number of release channels to return. The service may return + // fewer than this value. If unspecified, at most 50 release channels will be + // returned. + int32 page_size = 2; + + // A page token, received from a previous `ListReleaseChannels` call. + // Provide this to retrieve the subsequent page. + // When paginating, all other parameters provided to `ListReleaseChannels` + // must match the call that provided the page token. + string page_token = 3; +} + +// RPC response for listing release channels +message ListReleaseChannelsResponse { + // List of the release channels for the given project id. + repeated ReleaseChannel release_channels = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// RPC request for listing versions +message ListVersionsRequest { + // Required. The name of the resource in the format `projects/{project}`. The + // `{project}` is the cloud project ID associated with the project. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "actions.googleapis.com/Version" + } + ]; + + // The maximum number of versions to return. The service may return + // fewer than this value. If unspecified, at most 50 versions will be + // returned. + int32 page_size = 2; + + // A page token, received from a previous `ListVersions` call. + // Provide this to retrieve the subsequent page. + // When paginating, all other parameters provided to `ListVersions` + // must match the call that provided the page token. + string page_token = 3; +} + +// RPC response for listing versions +message ListVersionsResponse { + // List of the versions for the given project id. + repeated Version versions = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/actions_testing.proto b/third_party/googleapis/google/actions/sdk/v2/actions_testing.proto new file mode 100644 index 000000000..9de13ea05 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/actions_testing.proto @@ -0,0 +1,256 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2; + +import "google/actions/sdk/v2/conversation/intent.proto"; +import "google/actions/sdk/v2/conversation/prompt/content/canvas.proto"; +import "google/actions/sdk/v2/conversation/prompt/prompt.proto"; +import "google/actions/sdk/v2/event_logs.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/protobuf/empty.proto"; +import "google/type/latlng.proto"; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2;sdk"; +option java_multiple_files = true; +option java_outer_classname = "ActionsTestingProto"; +option java_package = "com.google.actions.sdk.v2"; + +// Actions Testing API which allows developers to run automated tests. +service ActionsTesting { + option (google.api.default_host) = "actions.googleapis.com"; + + // Plays one round of the conversation. + rpc SendInteraction(SendInteractionRequest) returns (SendInteractionResponse) { + option (google.api.http) = { + post: "/v2/{project=projects/*}:sendInteraction" + body: "*" + }; + } + + // Finds the intents that match a given query. + rpc MatchIntents(MatchIntentsRequest) returns (MatchIntentsResponse) { + option (google.api.http) = { + post: "/v2/{project=projects/*}:matchIntents" + body: "*" + }; + option (google.api.method_signature) = "project,query,locale"; + } + + // Sets the Web & App Activity control on a service account. + // + // It is necessary to have this setting enabled in order to use call Actions. + // The setting is originally disabled for service accounts, and it is + // preserved until set to a different value. This means it only needs to be + // enabled once per account (and not necessarily once per test), unless it is + // later disabled. + // + // Returns an error if the caller is not a service account. User accounts can + // change this setting via the Activity Controls page. See + // https://support.google.com/websearch/answer/54068. + rpc SetWebAndAppActivityControl(SetWebAndAppActivityControlRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v2:setWebAndAppActivityControl" + body: "*" + }; + option (google.api.method_signature) = "enabled"; + } +} + +// Request for playing a round of the conversation. +message SendInteractionRequest { + // Required. The project being tested, indicated by the Project ID. + // Format: projects/{project} + string project = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Input provided by the user. + UserInput input = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Properties of the device used for interacting with the Action. + DeviceProperties device_properties = 3 [(google.api.field_behavior) = REQUIRED]; + + // Opaque token that must be passed as received from SendInteractionResponse + // on the previous interaction. This can be left unset in order to start a new + // conversation, either as the first interaction of a testing session or to + // abandon a previous conversation and start a new one. + string conversation_token = 4; +} + +// User input provided on a conversation round. +message UserInput { + // Indicates the input source, typed query or voice query. + enum InputType { + // Unspecified input source. + INPUT_TYPE_UNSPECIFIED = 0; + + // Query from a GUI interaction. + TOUCH = 1; + + // Voice query. + VOICE = 2; + + // Typed query. + KEYBOARD = 3; + + // The action was triggered by a URL link. + URL = 4; + } + + // Content of the input sent by the user. + string query = 1; + + // Type of the input. + InputType type = 2; +} + +// Properties of device relevant to a conversation round. +message DeviceProperties { + // Possible surfaces used to interact with the Action. + // Additional values may be included in the future. + enum Surface { + // Default value. This value is unused. + SURFACE_UNSPECIFIED = 0; + + // Speaker (e.g. Google Home). + SPEAKER = 1; + + // Phone. + PHONE = 2; + + // Allo Chat. + ALLO = 3; + + // Smart Display Device. + SMART_DISPLAY = 4; + + // KaiOS. + KAI_OS = 5; + } + + // Surface used for interacting with the Action. + Surface surface = 1; + + // Device location such as latitude, longitude, and formatted address. + Location location = 2; + + // Locale as set on the device. + // The format should follow BCP 47: https://tools.ietf.org/html/bcp47 + // Examples: en, en-US, es-419 (more examples at + // https://tools.ietf.org/html/bcp47#appendix-A). + string locale = 3; + + // Time zone as set on the device. + // The format should follow the IANA Time Zone Database, e.g. + // "America/New_York": https://www.iana.org/time-zones + string time_zone = 4; +} + +// Container that represents a location. +message Location { + // Geo coordinates. + // Requires the [DEVICE_PRECISE_LOCATION] + // [google.actions.v2.Permission.DEVICE_PRECISE_LOCATION] permission. + google.type.LatLng coordinates = 1; + + // Display address, e.g., "1600 Amphitheatre Pkwy, Mountain View, CA 94043". + // Requires the [DEVICE_PRECISE_LOCATION] + // [google.actions.v2.Permission.DEVICE_PRECISE_LOCATION] permission. + string formatted_address = 2; + + // Zip code. + // Requires the [DEVICE_PRECISE_LOCATION] + // [google.actions.v2.Permission.DEVICE_PRECISE_LOCATION] or + // [DEVICE_COARSE_LOCATION] + // [google.actions.v2.Permission.DEVICE_COARSE_LOCATION] permission. + string zip_code = 3; + + // City. + // Requires the [DEVICE_PRECISE_LOCATION] + // [google.actions.v2.Permission.DEVICE_PRECISE_LOCATION] or + // [DEVICE_COARSE_LOCATION] + // [google.actions.v2.Permission.DEVICE_COARSE_LOCATION] permission. + string city = 4; +} + +// Response to a round of the conversation. +message SendInteractionResponse { + // Output provided to the user. + Output output = 1; + + // Diagnostics information that explains how the request was handled. + Diagnostics diagnostics = 2; + + // Opaque token to be set on SendInteractionRequest on the next RPC call in + // order to continue the same conversation. + string conversation_token = 3; +} + +// User-visible output to the conversation round. +message Output { + // Spoken response sent to user as a plain string. + string text = 1; + + // Speech content produced by the Action. This may include markup elements + // such as SSML. + repeated string speech = 2; + + // Interactive Canvas content. + google.actions.sdk.v2.conversation.Canvas canvas = 3; + + // State of the prompt at the end of the conversation round. + // More information about the prompt: + // https://developers.google.com/assistant/conversational/prompts + google.actions.sdk.v2.conversation.Prompt actions_builder_prompt = 4; +} + +// Diagnostics information related to the conversation round. +message Diagnostics { + // List of events with details about processing of the conversation round + // throughout the stages of the Actions Builder interaction model. + // Populated for Actions Builder & Actions SDK apps only. + repeated ExecutionEvent actions_builder_events = 1; +} + +// Request for finding matching intents. +message MatchIntentsRequest { + // Required. The project being tested, indicated by the Project ID. + // Format: projects/{project} + string project = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. User query as plain text. + string query = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Locale to use to evaluate the query, such as "en". + // The format should follow BCP 47: https://tools.ietf.org/html/bcp47 + // See the list of supported languages in + // https://developers.google.com/assistant/console/languages-locales + string locale = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Response for finding matching intents. +message MatchIntentsResponse { + // Intents matched, ordered from most to least relevant. Only the first + // 50 matches are returned. + repeated google.actions.sdk.v2.conversation.Intent matched_intents = 1; +} + +// Request for setting Web & App Activity preferences. +message SetWebAndAppActivityControlRequest { + // Whether the setting should be set to an enabled or disabled state. + bool enabled = 1; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/actions_v2.yaml b/third_party/googleapis/google/actions/sdk/v2/actions_v2.yaml new file mode 100644 index 000000000..094f8b420 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/actions_v2.yaml @@ -0,0 +1,11 @@ +type: google.api.Service +config_version: 3 +name: actions.googleapis.com +title: Actions API + +apis: +- name: google.actions.sdk.v2.ActionsSdk +- name: google.actions.sdk.v2.ActionsTesting + +documentation: + summary: A RESTful service for the Actions API. diff --git a/third_party/googleapis/google/actions/sdk/v2/config_file.proto b/third_party/googleapis/google/actions/sdk/v2/config_file.proto new file mode 100644 index 000000000..6e2beac0d --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/config_file.proto @@ -0,0 +1,107 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2; + +import "google/actions/sdk/v2/account_linking_secret.proto"; +import "google/actions/sdk/v2/action.proto"; +import "google/actions/sdk/v2/interactionmodel/global_intent_event.proto"; +import "google/actions/sdk/v2/interactionmodel/intent.proto"; +import "google/actions/sdk/v2/interactionmodel/prompt/static_prompt.proto"; +import "google/actions/sdk/v2/interactionmodel/scene.proto"; +import "google/actions/sdk/v2/interactionmodel/type/type.proto"; +import "google/actions/sdk/v2/manifest.proto"; +import "google/actions/sdk/v2/settings.proto"; +import "google/actions/sdk/v2/webhook.proto"; +import "google/protobuf/struct.proto"; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2;sdk"; +option java_multiple_files = true; +option java_outer_classname = "ConfigFileProto"; +option java_package = "com.google.actions.sdk.v2"; + +// Wrapper for repeated config files. Repeated fields cannot exist in a oneof. +message ConfigFiles { + // Multiple config files. + repeated ConfigFile config_files = 1; +} + +// Represents a single file which contains structured data. Developers can +// define most of their project using structured config including Actions, +// Settings, Fulfillment. +message ConfigFile { + // Relative path of the config file from the project root in the SDK file + // structure. Each file types below have an allowed file path. + // Eg: settings/settings.yaml + string file_path = 1; + + // Each type of config file should have a corresponding field in the oneof. + oneof file { + // Single manifest file. + // Allowed file path: `manifest.yaml` + Manifest manifest = 2; + + // Single actions file with all the actions defined. + // Allowed file paths: `actions/{language}?/actions.yaml` + Actions actions = 3; + + // Single settings config which includes non-localizable settings and + // settings for the project's default locale (if specified). + // For a locale override file, only localized_settings field will be + // populated. + // Allowed file paths: `settings/{language}?/settings.yaml` + // Note that the non-localized settings file `settings/settings.yaml` must + // be present in the write flow requests. + Settings settings = 4; + + // Single webhook definition. + // Allowed file path: `webhooks/{WebhookName}.yaml` + Webhook webhook = 6; + + // Single intent definition. + // Allowed file paths: `custom/intents/{language}?/{IntentName}.yaml` + google.actions.sdk.v2.interactionmodel.Intent intent = 7; + + // Single type definition. + // Allowed file paths: `custom/types/{language}?/{TypeName}.yaml` + google.actions.sdk.v2.interactionmodel.type.Type type = 8; + + // Single global intent event definition. + // Allowed file paths: `custom/global/{GlobalIntentEventName}.yaml` + // The file name (GlobalIntentEventName) should be the name of the intent + // that this global intent event corresponds to. + google.actions.sdk.v2.interactionmodel.GlobalIntentEvent global_intent_event = 9; + + // Single scene definition. + // Allowed file paths: `custom/scenes/{SceneName}.yaml` + google.actions.sdk.v2.interactionmodel.Scene scene = 10; + + // Single static prompt definition. + // Allowed file paths: `custom/prompts/{language}?/{StaticPromptName}.yaml` + google.actions.sdk.v2.interactionmodel.prompt.StaticPrompt static_prompt = 11; + + // Metadata corresponding to the client secret used in account linking. + // Allowed file path: `settings/accountLinkingSecret.yaml` + AccountLinkingSecret account_linking_secret = 13; + + // Single resource bundle, which is a map from a string to a string or list + // of strings. Resource bundles could be used for localizing strings in + // static prompts. + // Allowed file paths: `resources/strings/{language}?/{multiple + // directories}?/{BundleName}.yaml` + google.protobuf.Struct resource_bundle = 12; + } +} diff --git a/third_party/googleapis/google/actions/sdk/v2/conversation/BUILD.bazel b/third_party/googleapis/google/actions/sdk/v2/conversation/BUILD.bazel new file mode 100644 index 000000000..56560f2a8 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/conversation/BUILD.bazel @@ -0,0 +1,30 @@ +# This file was automatically generated by BuildFileGenerator + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") + +proto_library( + name = "conversation_proto", + srcs = [ + "intent.proto", + "scene.proto", + ], + deps = [ + "//google/actions/sdk/v2/conversation/prompt:prompt_proto", + "@com_google_protobuf//:struct_proto", + ], +) + +############################################################################## +# Node.js +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", +) diff --git a/third_party/googleapis/google/actions/sdk/v2/conversation/intent.proto b/third_party/googleapis/google/actions/sdk/v2/conversation/intent.proto new file mode 100644 index 000000000..e2e8bec08 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/conversation/intent.proto @@ -0,0 +1,52 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2.conversation; + +import "google/protobuf/struct.proto"; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/conversation;conversation"; +option java_multiple_files = true; +option java_outer_classname = "IntentProto"; +option java_package = "com.google.actions.sdk.v2.conversation"; + +// Represents an intent. +message Intent { + // Required. The name of the last matched intent. + string name = 1; + + // Required. Represents parameters identified as part of intent matching. + // This is a map of the name of the identified parameter to the value of the + // parameter identified from user input. All parameters defined in + // the matched intent that are identified will be surfaced here. + map params = 2; + + // Optional. Typed or spoken input from the end user that matched this intent. + // This will be populated when an intent is matched, based on the user input. + string query = 3; +} + +// Represents a value for intent parameter. +message IntentParameterValue { + // Required. Original text value extracted from user utterance. + string original = 1; + + // Required. Structured value for parameter extracted from user input. + // This will only be populated if the parameter is defined in the matched + // intent and the value of the parameter could be identified during intent + // matching. + google.protobuf.Value resolved = 2; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/conversation/prompt/BUILD.bazel b/third_party/googleapis/google/actions/sdk/v2/conversation/prompt/BUILD.bazel new file mode 100644 index 000000000..bbc997a4e --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/conversation/prompt/BUILD.bazel @@ -0,0 +1,30 @@ +# This file was automatically generated by BuildFileGenerator + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") + +proto_library( + name = "prompt_proto", + srcs = [ + "prompt.proto", + "simple.proto", + "suggestion.proto", + ], + deps = [ + "//google/actions/sdk/v2/conversation/prompt/content:content_proto", + ], +) + +############################################################################## +# Node.js +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", +) diff --git a/third_party/googleapis/google/actions/sdk/v2/conversation/prompt/content/BUILD.bazel b/third_party/googleapis/google/actions/sdk/v2/conversation/prompt/content/BUILD.bazel new file mode 100644 index 000000000..3dc717772 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/conversation/prompt/content/BUILD.bazel @@ -0,0 +1,37 @@ +# This file was automatically generated by BuildFileGenerator + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") + +proto_library( + name = "content_proto", + srcs = [ + "canvas.proto", + "card.proto", + "collection.proto", + "content.proto", + "image.proto", + "link.proto", + "list.proto", + "media.proto", + "table.proto", + ], + deps = [ + "@com_google_protobuf//:duration_proto", + "@com_google_protobuf//:struct_proto", + ], +) + +############################################################################## +# Node.js +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", +) diff --git a/third_party/googleapis/google/actions/sdk/v2/conversation/prompt/content/canvas.proto b/third_party/googleapis/google/actions/sdk/v2/conversation/prompt/content/canvas.proto new file mode 100644 index 000000000..ca1f8c035 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/conversation/prompt/content/canvas.proto @@ -0,0 +1,44 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2.conversation; + +import "google/protobuf/struct.proto"; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/conversation;conversation"; +option java_multiple_files = true; +option java_outer_classname = "CanvasProto"; +option java_package = "com.google.actions.sdk.v2.conversation"; + +// Represents an Interactive Canvas response to be sent to the user. +// This can be used in conjunction with the "first_simple" field in the +// containing prompt to speak to the user in addition to displaying a +// interactive canvas response. The maximum size of the response is 50k bytes. +message Canvas { + // URL of the interactive canvas web app to load. If not set, the url from + // current active canvas will be reused. + string url = 1; + + // Optional. JSON data to be passed through to the immersive experience + // web page as an event. + // If the "override" field in the containing prompt is "false" data values + // defined in this Canvas prompt will be added after data values defined in + // previous Canvas prompts. + repeated google.protobuf.Value data = 4; + + // Optional. Default value: false. + bool suppress_mic = 3; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/conversation/prompt/content/card.proto b/third_party/googleapis/google/actions/sdk/v2/conversation/prompt/content/card.proto new file mode 100644 index 000000000..df4ce0e57 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/conversation/prompt/content/card.proto @@ -0,0 +1,51 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2.conversation; + +import "google/actions/sdk/v2/conversation/prompt/content/image.proto"; +import "google/actions/sdk/v2/conversation/prompt/content/link.proto"; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/conversation;conversation"; +option java_multiple_files = true; +option java_outer_classname = "CardProto"; +option java_package = "com.google.actions.sdk.v2.conversation"; + +// A basic card for displaying some information, e.g. an image and/or text. +message Card { + // Overall title of the card. + // Optional. + string title = 1; + + // Optional. + string subtitle = 2; + + // Body text of the card. + // Supports a limited set of markdown syntax for formatting. + // Required, unless image is present. + string text = 3; + + // A hero image for the card. The height is fixed to 192dp. + // Optional. + Image image = 4; + + // How the image background will be filled. Optional. + Image.ImageFill image_fill = 5; + + // Button. + // Optional. + Link button = 6; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/conversation/prompt/content/collection.proto b/third_party/googleapis/google/actions/sdk/v2/conversation/prompt/content/collection.proto new file mode 100644 index 000000000..8666fced4 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/conversation/prompt/content/collection.proto @@ -0,0 +1,46 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2.conversation; + +import "google/actions/sdk/v2/conversation/prompt/content/image.proto"; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/conversation;conversation"; +option java_multiple_files = true; +option java_outer_classname = "CollectionProto"; +option java_package = "com.google.actions.sdk.v2.conversation"; + +// A card for presenting a collection of options to select from. +message Collection { + // An item in the collection + message CollectionItem { + // Required. The NLU key that matches the entry key name in the associated + // Type. + string key = 1; + } + + // Title of the collection. Optional. + string title = 1; + + // Subtitle of the collection. Optional. + string subtitle = 2; + + // min: 2 max: 10 + repeated CollectionItem items = 3; + + // How the image backgrounds of collection items will be filled. Optional. + Image.ImageFill image_fill = 4; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/conversation/prompt/content/content.proto b/third_party/googleapis/google/actions/sdk/v2/conversation/prompt/content/content.proto new file mode 100644 index 000000000..4eeeb0a68 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/conversation/prompt/content/content.proto @@ -0,0 +1,57 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2.conversation; + +import "google/actions/sdk/v2/conversation/prompt/content/canvas.proto"; +import "google/actions/sdk/v2/conversation/prompt/content/card.proto"; +import "google/actions/sdk/v2/conversation/prompt/content/collection.proto"; +import "google/actions/sdk/v2/conversation/prompt/content/image.proto"; +import "google/actions/sdk/v2/conversation/prompt/content/list.proto"; +import "google/actions/sdk/v2/conversation/prompt/content/media.proto"; +import "google/actions/sdk/v2/conversation/prompt/content/table.proto"; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/conversation;conversation"; +option java_multiple_files = true; +option java_outer_classname = "ContentProto"; +option java_package = "com.google.actions.sdk.v2.conversation"; + +// Content to be shown. +message Content { + // Content. + oneof content { + // A basic card. + Card card = 1; + + // An image. + Image image = 2; + + // Table card. + Table table = 3; + + // Response indicating a set of media to be played. + Media media = 4; + + // A response to be used for interactive canvas experience. + Canvas canvas = 5 [deprecated = true]; + + // A card presenting a collection of options to select from. + Collection collection = 6; + + // A card presenting a list of options to select from. + List list = 7; + } +} diff --git a/third_party/googleapis/google/actions/sdk/v2/conversation/prompt/content/image.proto b/third_party/googleapis/google/actions/sdk/v2/conversation/prompt/content/image.proto new file mode 100644 index 000000000..1ede5d4fd --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/conversation/prompt/content/image.proto @@ -0,0 +1,64 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2.conversation; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/conversation;conversation"; +option java_multiple_files = true; +option java_outer_classname = "ImageProto"; +option java_package = "com.google.actions.sdk.v2.conversation"; + +// An image displayed in the card. +message Image { + // Possible image display options for affecting the presentation of the image. + // This should be used for when the image's aspect ratio does not match the + // image container's aspect ratio. + enum ImageFill { + // Unspecified image fill. + UNSPECIFIED = 0; + + // Fill the gaps between the image and the image container with gray bars. + GRAY = 1; + + // Fill the gaps between the image and the image container with white bars. + WHITE = 2; + + // Image is scaled such that the image width and height match or exceed the + // container dimensions. This may crop the top and bottom of the image if + // the scaled image height is greater than the container height, or crop the + // left and right of the image if the scaled image width is greater than the + // container width. This is similar to "Zoom Mode" on a widescreen TV when + // playing a 4:3 video. + CROPPED = 3; + } + + // The source url of the image. Images can be JPG, PNG and GIF (animated and + // non-animated). For example,`https://www.agentx.com/logo.png`. Required. + string url = 1; + + // A text description of the image to be used for accessibility, e.g. screen + // readers. + // Required. + string alt = 2; + + // The height of the image in pixels. + // Optional. + int32 height = 3; + + // The width of the image in pixels. + // Optional. + int32 width = 4; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/conversation/prompt/content/link.proto b/third_party/googleapis/google/actions/sdk/v2/conversation/prompt/content/link.proto new file mode 100644 index 000000000..a3efc812d --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/conversation/prompt/content/link.proto @@ -0,0 +1,51 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2.conversation; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/conversation;conversation"; +option java_multiple_files = true; +option java_outer_classname = "LinkProto"; +option java_package = "com.google.actions.sdk.v2.conversation"; + +// Link content. +message Link { + // Name of the link + string name = 1; + + // What happens when a user opens the link + OpenUrl open = 2; +} + +// Action taken when a user opens a link. +message OpenUrl { + // The url field which could be any of: + // - http/https urls for opening an App-linked App or a webpage + string url = 1; + + // Indicates a hint for the url type. + UrlHint hint = 2; +} + +// Different types of url hints. +enum UrlHint { + // Unspecified + LINK_UNSPECIFIED = 0; + + // URL that points directly to AMP content, or to a canonical URL + // which refers to AMP content via . + AMP = 1; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/conversation/prompt/content/list.proto b/third_party/googleapis/google/actions/sdk/v2/conversation/prompt/content/list.proto new file mode 100644 index 000000000..901dd107b --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/conversation/prompt/content/list.proto @@ -0,0 +1,41 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2.conversation; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/conversation;conversation"; +option java_multiple_files = true; +option java_outer_classname = "ListProto"; +option java_package = "com.google.actions.sdk.v2.conversation"; + +// A card for presenting a list of options to select from. +message List { + // An item in the list + message ListItem { + // Required. The NLU key that matches the entry key name in the associated + // Type. + string key = 1; + } + + // Title of the list. Optional. + string title = 1; + + // Subtitle of the list. Optional. + string subtitle = 2; + + // min: 2 max: 30 + repeated ListItem items = 3; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/conversation/prompt/content/media.proto b/third_party/googleapis/google/actions/sdk/v2/conversation/prompt/content/media.proto new file mode 100644 index 000000000..49e3d26d0 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/conversation/prompt/content/media.proto @@ -0,0 +1,97 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2.conversation; + +import "google/actions/sdk/v2/conversation/prompt/content/image.proto"; +import "google/protobuf/duration.proto"; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/conversation;conversation"; +option java_multiple_files = true; +option java_outer_classname = "MediaProto"; +option java_package = "com.google.actions.sdk.v2.conversation"; + +// Represents one media object. +// Contains information about the media, such as name, description, url, etc. +message Media { + // Media type of this response. + enum MediaType { + // Unspecified media type. + MEDIA_TYPE_UNSPECIFIED = 0; + + // Audio file. + AUDIO = 1; + + // Response to acknowledge a media status report. + MEDIA_STATUS_ACK = 2; + } + + // Optional media control types the media response can support + enum OptionalMediaControls { + // Unspecified value + OPTIONAL_MEDIA_CONTROLS_UNSPECIFIED = 0; + + // Paused event. Triggered when user pauses the media. + PAUSED = 1; + + // Stopped event. Triggered when user exits out of 3p session during media + // play. + STOPPED = 2; + } + + // Media type. + MediaType media_type = 8; + + // Start offset of the first media object. + google.protobuf.Duration start_offset = 5; + + // Optional media control types this media response session can support. + // If set, request will be made to 3p when a certain media event happens. + // If not set, 3p must still handle two default control type, FINISHED and + // FAILED. + repeated OptionalMediaControls optional_media_controls = 6; + + // List of Media Objects + repeated MediaObject media_objects = 7; +} + +// Represents a single media object +message MediaObject { + // Name of this media object. + string name = 1; + + // Description of this media object. + string description = 2; + + // The url pointing to the media content. + string url = 3; + + // Image to show with the media card. + MediaImage image = 4; +} + +// Image to show with the media card. +message MediaImage { + // Image. + oneof image { + // A large image, such as the cover of the album, etc. + Image large = 1; + + // A small image icon displayed on the right from the title. + // It's resized to 36x36 dp. + Image icon = 2; + } +} diff --git a/third_party/googleapis/google/actions/sdk/v2/conversation/prompt/content/table.proto b/third_party/googleapis/google/actions/sdk/v2/conversation/prompt/content/table.proto new file mode 100644 index 000000000..8e07efbcd --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/conversation/prompt/content/table.proto @@ -0,0 +1,92 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2.conversation; + +import "google/actions/sdk/v2/conversation/prompt/content/image.proto"; +import "google/actions/sdk/v2/conversation/prompt/content/link.proto"; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/conversation;conversation"; +option java_multiple_files = true; +option java_outer_classname = "TableProto"; +option java_package = "com.google.actions.sdk.v2.conversation"; + +// A table card for displaying a table of text. +message Table { + // Overall title of the table. Optional but must be set if subtitle is set. + string title = 1; + + // Subtitle for the table. Optional. + string subtitle = 2; + + // Image associated with the table. Optional. + Image image = 4; + + // Headers and alignment of columns. + repeated TableColumn columns = 5; + + // Row data of the table. The first 3 rows are guaranteed to be shown but + // others might be cut on certain surfaces. Please test with the simulator to + // see which rows will be shown for a given surface. On surfaces that support + // the WEB_BROWSER capability, you can point the user to + // a web page with more data. + repeated TableRow rows = 6; + + // Button. + Link button = 7; +} + +// Describes a column in a table. +message TableColumn { + // The alignment of the content within the cell. + enum HorizontalAlignment { + // Unspecified horizontal alignment. + UNSPECIFIED = 0; + + // Leading edge of the cell. This is the default. + LEADING = 1; + + // Content is aligned to the center of the column. + CENTER = 2; + + // Content is aligned to the trailing edge of the column. + TRAILING = 3; + } + + // Header text for the column. + string header = 1; + + // Horizontal alignment of content w.r.t column. If unspecified, content + // will be aligned to the leading edge. + HorizontalAlignment align = 2; +} + +// Describes a cell in a row. +message TableCell { + // Text content of the cell. + string text = 1; +} + +// Describes a row in the table. +message TableRow { + // Cells in this row. The first 3 cells are guaranteed to be shown but + // others might be cut on certain surfaces. Please test with the simulator + // to see which cells will be shown for a given surface. + repeated TableCell cells = 1; + + // Indicates whether there should be a divider after each row. + bool divider = 2; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/conversation/prompt/prompt.proto b/third_party/googleapis/google/actions/sdk/v2/conversation/prompt/prompt.proto new file mode 100644 index 000000000..a3ce25ac5 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/conversation/prompt/prompt.proto @@ -0,0 +1,81 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2.conversation; + +import "google/actions/sdk/v2/conversation/prompt/content/canvas.proto"; +import "google/actions/sdk/v2/conversation/prompt/content/content.proto"; +import "google/actions/sdk/v2/conversation/prompt/content/link.proto"; +import "google/actions/sdk/v2/conversation/prompt/simple.proto"; +import "google/actions/sdk/v2/conversation/prompt/suggestion.proto"; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/conversation;conversation"; +option java_multiple_files = true; +option java_outer_classname = "PromptProto"; +option java_package = "com.google.actions.sdk.v2.conversation"; + +// Represent a response to a user. +message Prompt { + // Optional. Mode for how this messages should be merged with previously + // defined messages. + // "false" will clear all previously defined messages (first and last + // simple, content, suggestions link and canvas) and add messages defined in + // this prompt. + // "true" will add messages defined in this prompt to messages defined in + // previous responses. Setting this field to "true" will also enable appending + // to some fields inside Simple prompts, the Suggestion prompt and the Canvas + // prompt (part of the Content prompt). The Content and Link messages will + // always be overwritten if defined in the prompt. + // Default value is "false". + bool append = 1 [deprecated = true]; + + // Optional. Mode for how this messages should be merged with previously + // defined messages. + // "true" clears all previously defined messages (first and last + // simple, content, suggestions link and canvas) and adds messages defined in + // this prompt. + // "false" adds messages defined in this prompt to messages defined in + // previous responses. Leaving this field to "false" also enables + // appending to some fields inside Simple prompts, the Suggestions prompt, + // and the Canvas prompt (part of the Content prompt). The Content and Link + // messages are always overwritten if defined in the prompt. Default + // value is "false". + bool override = 8; + + // Optional. The first voice and text-only response. + Simple first_simple = 2; + + // Optional. A content like a card, list or media to display to the user. + Content content = 3; + + // Optional. The last voice and text-only response. + Simple last_simple = 4; + + // Optional. Suggestions to be displayed to the user which will always appear + // at the end of the response. + // If the "override" field in the containing prompt is "false", the titles + // defined in this field will be added to titles defined in any previously + // defined suggestions prompts and duplicate values will be removed. + repeated Suggestion suggestions = 5; + + // Optional. An additional suggestion chip that can link out to the associated app + // or site. + // The chip will be rendered with the title "Open ". Max 20 chars. + Link link = 6; + + // Optional. Represents a Interactive Canvas response to be sent to the user. + Canvas canvas = 9; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/conversation/prompt/simple.proto b/third_party/googleapis/google/actions/sdk/v2/conversation/prompt/simple.proto new file mode 100644 index 000000000..4feda0607 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/conversation/prompt/simple.proto @@ -0,0 +1,38 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2.conversation; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/conversation;conversation"; +option java_multiple_files = true; +option java_outer_classname = "SimpleProto"; +option java_package = "com.google.actions.sdk.v2.conversation"; + +// Represents a simple prompt to be send to a user. +message Simple { + // Optional. Represents the speech to be spoken to the user. Can be SSML or + // text to speech. + // If the "override" field in the containing prompt is "true", the speech + // defined in this field replaces the previous Simple prompt's speech. + string speech = 1; + + // Optional text to display in the chat bubble. If not given, a display + // rendering of the speech field above will be used. Limited to 640 + // chars. + // If the "override" field in the containing prompt is "true", the text + // defined in this field replaces to the previous Simple prompt's text. + string text = 2; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/conversation/prompt/suggestion.proto b/third_party/googleapis/google/actions/sdk/v2/conversation/prompt/suggestion.proto new file mode 100644 index 000000000..228c39986 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/conversation/prompt/suggestion.proto @@ -0,0 +1,31 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2.conversation; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/conversation;conversation"; +option java_multiple_files = true; +option java_outer_classname = "SuggestionProto"; +option java_package = "com.google.actions.sdk.v2.conversation"; + +// Input suggestion to be presented to the user. +message Suggestion { + // Required. The text shown in the suggestion chip. When tapped, this text will be + // posted back to the conversation verbatim as if the user had typed it. + // Each title must be unique among the set of suggestion chips. + // Max 25 chars + string title = 1; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/conversation/scene.proto b/third_party/googleapis/google/actions/sdk/v2/conversation/scene.proto new file mode 100644 index 000000000..c042eba79 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/conversation/scene.proto @@ -0,0 +1,92 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2.conversation; + +import "google/actions/sdk/v2/conversation/prompt/prompt.proto"; +import "google/protobuf/struct.proto"; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/conversation;conversation"; +option java_multiple_files = true; +option java_outer_classname = "SceneProto"; +option java_package = "com.google.actions.sdk.v2.conversation"; + +// Represents the current status of slot filling. +enum SlotFillingStatus { + // Fallback value when the usage field is not populated. + UNSPECIFIED = 0; + + // The slots have been initialized but slot filling has not started. + INITIALIZED = 1; + + // The slot values are being collected. + COLLECTING = 2; + + // All slot values are final and cannot be changed. + FINAL = 4; +} + +// Represents a slot. +message Slot { + // Represents the mode of a slot, that is, if it is required or not. + enum SlotMode { + // Fallback value when the usage field is not populated. + MODE_UNSPECIFIED = 0; + + // Indicates that the slot is not required to complete slot filling. + OPTIONAL = 1; + + // Indicates that the slot is required to complete slot filling. + REQUIRED = 2; + } + + // Represents the status of a slot. + enum SlotStatus { + // Fallback value when the usage field is not populated. + SLOT_UNSPECIFIED = 0; + + // Indicates that the slot does not have any values. This status cannot be + // modified through the response. + EMPTY = 1; + + // Indicates that the slot value is invalid. This status can be set + // through the response. + INVALID = 2; + + // Indicates that the slot has a value. This status cannot be modified + // through the response. + FILLED = 3; + } + + // The mode of the slot (required or optional). Can be set by developer. + SlotMode mode = 1; + + // The status of the slot. + SlotStatus status = 2; + + // The value of the slot. Changing this value in the response, will + // modify the value in slot filling. + google.protobuf.Value value = 3; + + // Indicates if the slot value was collected on the last turn. + // This field is read-only. + bool updated = 4; + + // Optional. This prompt is sent to the user when needed to fill a required + // slot. This prompt overrides the existing prompt defined in the console. + // This field is not included in the webhook request. + Prompt prompt = 5; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/data_file.proto b/third_party/googleapis/google/actions/sdk/v2/data_file.proto new file mode 100644 index 000000000..5617bd2b3 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/data_file.proto @@ -0,0 +1,59 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2;sdk"; +option java_multiple_files = true; +option java_outer_classname = "DataFileProto"; +option java_package = "com.google.actions.sdk.v2"; + +// Wrapper for repeated data file. Repeated fields cannot exist in a oneof. +message DataFiles { + // Multiple data files. + repeated DataFile data_files = 1; +} + +// Represents a single file which contains unstructured data. Examples include +// image files, audio files, and cloud function source code. +message DataFile { + // Relative path of the data file from the project root in the SDK file + // structure. + // Allowed file paths: + // - Images: `resources/images/{multiple + // directories}?/{ImageName}.{extension}` + // - Audio: `resources/audio/{multiple + // directories}?/{AudioFileName}.{extension}` + // - Inline Cloud Function Code: `webhooks/{WebhookName}.zip` + // Allowed extensions: + // - Images: `png`, `jpg`, `jpeg` + // - Audio: `mp3`, `mpeg` + // - Inline Cloud Functions: `zip` + string file_path = 1; + + // Required. The content type of this asset. Example: `text/html`. The content + // type must comply with the specification + // (http://www.w3.org/Protocols/rfc1341/4_Content-Type.html). + // Cloud functions must be in zip format and the content type should + // be `application/zip;zip_type=cloud_function`. The zip_type parameter + // indicates that the zip is for a cloud function. + string content_type = 2; + + // Content of the data file. Examples would be raw bytes of images, audio + // files, or cloud function zip format. + // There is 10 MB strict limit on the payload size. + bytes payload = 3; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/event_logs.proto b/third_party/googleapis/google/actions/sdk/v2/event_logs.proto new file mode 100644 index 000000000..33e002ffd --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/event_logs.proto @@ -0,0 +1,246 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2; + +import "google/actions/sdk/v2/conversation/intent.proto"; +import "google/actions/sdk/v2/conversation/prompt/prompt.proto"; +import "google/actions/sdk/v2/conversation/scene.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2;sdk"; +option java_multiple_files = true; +option java_outer_classname = "EventLogsProto"; +option java_package = "com.google.actions.sdk.v2"; + +// Contains information about execution event which happened during processing +// Actions Builder conversation request. For an overview of the stages involved +// in a conversation request, see +// https://developers.google.com/assistant/conversational/actions. +message ExecutionEvent { + // Timestamp when the event happened. + google.protobuf.Timestamp event_time = 1; + + // State of the execution during this event. + ExecutionState execution_state = 2; + + // Resulting status of particular execution step. + google.rpc.Status status = 3; + + // Detailed information specific to different of events that may be involved + // in processing a conversation round. The field set here defines the type of + // this event. + oneof EventData { + // User input handling event. + UserConversationInput user_input = 4; + + // Intent matching event. + IntentMatch intent_match = 5; + + // Condition evaluation event. + ConditionsEvaluated conditions_evaluated = 6; + + // OnSceneEnter execution event. + OnSceneEnter on_scene_enter = 7; + + // Webhook request dispatch event. + WebhookRequest webhook_request = 8; + + // Webhook response receipt event. + WebhookResponse webhook_response = 9; + + // Webhook-initiated transition event. + WebhookInitiatedTransition webhook_initiated_transition = 10; + + // Slot matching event. + SlotMatch slot_match = 11; + + // Slot requesting event. + SlotRequested slot_requested = 12; + + // Slot validation event. + SlotValidated slot_validated = 13; + + // Form filling event. + FormFilled form_filled = 14; + + // Waiting-for-user-input event. + WaitingForUserInput waiting_user_input = 15; + + // End-of-conversation event. + EndConversation end_conversation = 16; + } + + // List of warnings generated during execution of this Event. Warnings are + // tips for the developer discovered during the conversation request. These + // are usually non-critical and do not halt the execution of the request. For + // example, a warnings might be generated when webhook tries to override a + // custom Type which does not exist. Errors are reported as a failed status + // code, but warnings can be present even when the status is OK. + repeated string warning_messages = 17; +} + +// Current state of the execution. +message ExecutionState { + // ID of the scene which is currently active. + string current_scene_id = 1; + + // State of the session storage: + // https://developers.google.com/assistant/conversational/storage-session + google.protobuf.Struct session_storage = 2; + + // State of the slots filling, if applicable: + // https://developers.google.com/assistant/conversational/scenes#slot_filling + Slots slots = 5; + + // Prompt queue: + // https://developers.google.com/assistant/conversational/prompts + repeated google.actions.sdk.v2.conversation.Prompt prompt_queue = 7; + + // State of the user storage: + // https://developers.google.com/assistant/conversational/storage-user + google.protobuf.Struct user_storage = 6; + + // State of the home storage: + // https://developers.google.com/assistant/conversational/storage-home + google.protobuf.Struct household_storage = 8; +} + +// Represents the current state of a the scene's slots. +message Slots { + // The current status of slot filling. + google.actions.sdk.v2.conversation.SlotFillingStatus status = 2; + + // The slots associated with the current scene. + map slots = 3; +} + +// Information related to user input. +message UserConversationInput { + // Type of user input. E.g. keyboard, voice, touch, etc. + string type = 1; + + // Original text input from the user. + string original_query = 2; +} + +// Information about triggered intent match (global or within a scene): +// https://developers.google.com/assistant/conversational/intents +message IntentMatch { + // Intent id which triggered this interaction. + string intent_id = 1; + + // Parameters of intent which triggered this interaction. + map intent_parameters = 5; + + // Name of the handler attached to this interaction. + string handler = 3; + + // Scene to which this interaction leads to. + string next_scene_id = 4; +} + +// Results of conditions evaluation: +// https://developers.google.com/assistant/conversational/scenes#conditions +message ConditionsEvaluated { + // List of conditions which were evaluated to 'false'. + repeated Condition failed_conditions = 1; + + // The first condition which was evaluated to 'true', if any. + Condition success_condition = 2; +} + +// Evaluated condition. +message Condition { + // Expression specified in this condition. + string expression = 1; + + // Handler name specified in evaluated condition. + string handler = 2; + + // Destination scene specified in evaluated condition. + string next_scene_id = 3; +} + +// Information about execution of onSceneEnter stage: +// https://developers.google.com/assistant/conversational/scenes#on_enter +message OnSceneEnter { + // Handler name specified in onSceneEnter event. + string handler = 1; +} + +// Event triggered by destination scene returned from webhook: +// https://developers.google.com/assistant/conversational/webhooks#transition_scenes +message WebhookInitiatedTransition { + // ID of the scene the transition is leading to. + string next_scene_id = 1; +} + +// Information about a request dispatched to the Action webhook: +// https://developers.google.com/assistant/conversational/webhooks#payloads +message WebhookRequest { + // Payload of the webhook request. + string request_json = 1; +} + +// Information about a response received from the Action webhook: +// https://developers.google.com/assistant/conversational/webhooks#payloads +message WebhookResponse { + // Payload of the webhook response. + string response_json = 1; +} + +// Information about matched slot(s): +// https://developers.google.com/assistant/conversational/scenes#slot_filling +message SlotMatch { + // Parameters extracted by NLU from user input. + map nlu_parameters = 2; +} + +// Information about currently requested slot: +// https://developers.google.com/assistant/conversational/scenes#slot_filling +message SlotRequested { + // Name of the requested slot. + string slot = 1; + + // Slot prompt. + google.actions.sdk.v2.conversation.Prompt prompt = 3; +} + +// Event which happens after webhook validation was finished for slot(s): +// https://developers.google.com/assistant/conversational/scenes#slot_filling +message SlotValidated { + +} + +// Event which happens when form is fully filled: +// https://developers.google.com/assistant/conversational/scenes#slot_filling +message FormFilled { + +} + +// Event which happens when system needs user input: +// https://developers.google.com/assistant/conversational/scenes#input +message WaitingForUserInput { + +} + +// Event which informs that conversation with agent was ended. +message EndConversation { + +} diff --git a/third_party/googleapis/google/actions/sdk/v2/files.proto b/third_party/googleapis/google/actions/sdk/v2/files.proto new file mode 100644 index 000000000..529b25ed0 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/files.proto @@ -0,0 +1,40 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2; + +import "google/actions/sdk/v2/config_file.proto"; +import "google/actions/sdk/v2/data_file.proto"; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2;sdk"; +option java_multiple_files = true; +option java_outer_classname = "FilesProto"; +option java_package = "com.google.actions.sdk.v2"; + +// Wrapper for a list of files. +message Files { + // Only one type of files can be sent to the server at a time, config files or + // data files. + oneof file_type { + // List of config files. This includes manifest, settings, interaction model + // resource bundles and more. + ConfigFiles config_files = 1; + + // List of data files. This includes image, audio file, cloud function + // source code. + DataFiles data_files = 2; + } +} diff --git a/third_party/googleapis/google/actions/sdk/v2/interactionmodel/BUILD.bazel b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/BUILD.bazel new file mode 100644 index 000000000..4312be43c --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/BUILD.bazel @@ -0,0 +1,37 @@ +# This file was automatically generated by BuildFileGenerator + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") + +proto_library( + name = "interactionmodel_proto", + srcs = [ + "conditional_event.proto", + "event_handler.proto", + "global_intent_event.proto", + "intent.proto", + "intent_event.proto", + "scene.proto", + "slot.proto", + ], + deps = [ + "//google/actions/sdk/v2/interactionmodel/prompt:prompt_proto", + "//google/actions/sdk/v2/interactionmodel/type:type_proto", + "//google/api:field_behavior_proto", + "@com_google_protobuf//:struct_proto", + ], +) + +############################################################################## +# Node.js +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", +) diff --git a/third_party/googleapis/google/actions/sdk/v2/interactionmodel/conditional_event.proto b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/conditional_event.proto new file mode 100644 index 000000000..35cb48687 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/conditional_event.proto @@ -0,0 +1,55 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2.interactionmodel; + +import "google/actions/sdk/v2/interactionmodel/event_handler.proto"; +import "google/api/field_behavior.proto"; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/interactionmodel;interactionmodel"; +option java_multiple_files = true; +option java_outer_classname = "ConditionalEventProto"; +option java_package = "com.google.actions.sdk.v2.interactionmodel"; + +// Registers events that trigger as the result of a true condition. +message ConditionalEvent { + // Required. Filter condition for this event to trigger. If condition is evaluated to + // true then the associated `handler` will be triggered. + // The following variable references are supported: + // `$session` - To reference data in session storage. + // `$user` - To reference data in user storage. + // The following boolean operators are supported (with examples): + // `&&` - `session.params.counter > 0 && session.params.counter < 100` + // `||` - `session.params.foo == "John" || session.params.counter == "Adam"` + // `!` - `!(session.params.counter == 5)` + // The following comparisons are supported: + // `==`, `!=`, `<`, `>`, `<=`, `>=` + // The following list and string operators are supported (with examples): + // `in` - "Watermelon" in `session.params.fruitList` + // `size` - `size(session.params.fruitList) > 2` + // `substring` - `session.params.fullName.contains("John")` + string condition = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Destination scene which the conversation should jump to when the associated + // condition is evaluated to true. The state of the current scene is destroyed + // on the transition. + string transition_to_scene = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Event handler which is triggered when the associated condition is evaluated + // to `true`. Should execute before transitioning to the destination scene. + // Useful to generate Prompts in response to events. + EventHandler handler = 3 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/interactionmodel/event_handler.proto b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/event_handler.proto new file mode 100644 index 000000000..99d011533 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/event_handler.proto @@ -0,0 +1,41 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2.interactionmodel; + +import "google/actions/sdk/v2/interactionmodel/prompt/static_prompt.proto"; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/interactionmodel;interactionmodel"; +option java_multiple_files = true; +option java_outer_classname = "EventHandlerProto"; +option java_package = "com.google.actions.sdk.v2.interactionmodel"; + +// Defines a handler to be executed after an event. Examples of events are +// intent and condition based events in a scene. +message EventHandler { + // Name of the webhook handler to call. + string webhook_handler = 1; + + // Prompts can either be inlined or referenced by name. + oneof prompt { + // Inlined static prompt. Can contain references to string resources in + // bundles. + google.actions.sdk.v2.interactionmodel.prompt.StaticPrompt static_prompt = 2; + + // Name of the static prompt to invoke. + string static_prompt_name = 3; + } +} diff --git a/third_party/googleapis/google/actions/sdk/v2/interactionmodel/global_intent_event.proto b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/global_intent_event.proto new file mode 100644 index 000000000..e825f3bf6 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/global_intent_event.proto @@ -0,0 +1,45 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2.interactionmodel; + +import "google/actions/sdk/v2/interactionmodel/event_handler.proto"; +import "google/api/field_behavior.proto"; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/interactionmodel;interactionmodel"; +option java_multiple_files = true; +option java_outer_classname = "GlobalIntentEventProto"; +option java_package = "com.google.actions.sdk.v2.interactionmodel"; + +// Defines a global intent handler. Global intent events are scoped to the +// entire Actions project and may be overridden by intent handlers in a scene. +// Intent names must be unique within an Actions project. +// +// Global intents can be matched anytime during a session, allowing users to +// access common flows like "get help" or "go back home." They can also be +// used to deep link users into specific flows when they invoke an Action. +// +// Note, the intent name is specified in the name of the file. +message GlobalIntentEvent { + // Optional. Destination scene which the conversation should jump to. The state of the + // current scene is destroyed on the transition. + string transition_to_scene = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Event handler which is triggered when the intent is matched. Should execute + // before transitioning to the destination scene. Useful to generate Prompts + // in response to events. + EventHandler handler = 2 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/interactionmodel/intent.proto b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/intent.proto new file mode 100644 index 000000000..1d64ce775 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/intent.proto @@ -0,0 +1,66 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2.interactionmodel; + +import "google/actions/sdk/v2/interactionmodel/type/class_reference.proto"; +import "google/api/field_behavior.proto"; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/interactionmodel;interactionmodel"; +option java_multiple_files = true; +option java_outer_classname = "IntentProto"; +option java_package = "com.google.actions.sdk.v2.interactionmodel"; + +// Intents map open-ended user input to structured objects. Spoken +// phrases are matched to intents with Google's Natural Language Understanding +// (NLU). Intent matches can trigger events in your conversation design to +// progress the user's conversation. +// The intent name is specified in the name of the file. +message Intent { + // Definition of a parameter which can be used inside training phrases. + message IntentParameter { + // Required. Unique name of the intent parameter. Can be used in conditions and + // responses to reference intent parameters extracted by NLU with + // $intent.params.[name].resolved + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // The type of the intent parameter. + oneof parameter_type { + // Optional. Declares the data type of this parameter. + // This should not be set for built-in intents. + google.actions.sdk.v2.interactionmodel.type.ClassReference type = 2 [(google.api.field_behavior) = OPTIONAL]; + } + } + + // The list of parameters within the training phrases. All parameters must be + // defined here to be used in the training phrase. + repeated IntentParameter parameters = 1; + + // Training phrases allow Google’s NLU to automatically match intents with + // user input. The more unique phrases that are provided, the better chance + // this intent will be matched. + // The following is the format of training phrase part which are annotated. + // Note that `auto` field is optional and the default behavior when `auto` is + // not specified is equivalent to `auto=false`. + // `($ '' auto=)` + // `auto = true` means the part was auto annotated by NLU. + // `auto = false` means the part was annotated by the user. This is the + // default when auto is not specified. + // Example: + // "Book a flight from ($source 'San Francisco' auto=false) to ($dest + // 'Vancouver')" + repeated string training_phrases = 2; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/interactionmodel/intent_event.proto b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/intent_event.proto new file mode 100644 index 000000000..f765a86a5 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/intent_event.proto @@ -0,0 +1,40 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2.interactionmodel; + +import "google/actions/sdk/v2/interactionmodel/event_handler.proto"; +import "google/api/field_behavior.proto"; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/interactionmodel;interactionmodel"; +option java_multiple_files = true; +option java_outer_classname = "IntentEventProto"; +option java_package = "com.google.actions.sdk.v2.interactionmodel"; + +// Registers Events which trigger as the result of an intent match. +message IntentEvent { + // Required. Intent triggering the event. + string intent = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Destination scene which the conversation should jump to. The state of the + // current scene is destroyed on the transition. + string transition_to_scene = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Event handler which is triggered when the intent is matched. Should execute + // before transitioning to the destination scene. Useful to generate prompts + // in response to events. + EventHandler handler = 3 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/BUILD.bazel b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/BUILD.bazel new file mode 100644 index 000000000..c7eaf2b3e --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/BUILD.bazel @@ -0,0 +1,32 @@ +# This file was automatically generated by BuildFileGenerator + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") + +proto_library( + name = "prompt_proto", + srcs = [ + "static_prompt.proto", + "static_simple_prompt.proto", + "suggestion.proto", + "surface_capabilities.proto", + ], + deps = [ + "//google/actions/sdk/v2/interactionmodel/prompt/content:content_proto", + "//google/api:field_behavior_proto", + ], +) + +############################################################################## +# Node.js +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", +) diff --git a/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/content/BUILD.bazel b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/content/BUILD.bazel new file mode 100644 index 000000000..213d25546 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/content/BUILD.bazel @@ -0,0 +1,39 @@ +# This file was automatically generated by BuildFileGenerator + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") + +proto_library( + name = "content_proto", + srcs = [ + "static_canvas_prompt.proto", + "static_card_prompt.proto", + "static_collection_browse_prompt.proto", + "static_collection_prompt.proto", + "static_content_prompt.proto", + "static_image_prompt.proto", + "static_link_prompt.proto", + "static_list_prompt.proto", + "static_media_prompt.proto", + "static_table_prompt.proto", + ], + deps = [ + "//google/api:field_behavior_proto", + "@com_google_protobuf//:duration_proto", + "@com_google_protobuf//:struct_proto", + ], +) + +############################################################################## +# Node.js +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", +) diff --git a/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/content/static_canvas_prompt.proto b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/content/static_canvas_prompt.proto new file mode 100644 index 000000000..8d4ca5818 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/content/static_canvas_prompt.proto @@ -0,0 +1,49 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2.interactionmodel.prompt; + +import "google/api/field_behavior.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/struct.proto"; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/interactionmodel/prompt;prompt"; +option java_multiple_files = true; +option java_outer_classname = "StaticCanvasPromptProto"; +option java_package = "com.google.actions.sdk.v2.interactionmodel.prompt"; + +// Represents a Interactive Canvas response to be sent to the user. +// This can be used in conjunction with the `first_simple` field in the +// containing prompt to speak to the user in addition to displaying a +// interactive canvas response. +message StaticCanvasPrompt { + // Required. URL of the web view to load. + string url = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. JSON data to be passed through to the immersive experience web page as an + // event. If the `override` field in the containing prompt is `false` data + // values defined in this Canvas prompt will be added after data values + // defined in previous Canvas prompts. + repeated google.protobuf.Value data = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A true value means that the mic won't be opened for capturing input after + // this immersive response is presented to the user. + bool suppress_mic = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If `true`, conversation related metadata is included and send back to the + // canvas application. + bool send_state_data_to_canvas_app = 5 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/content/static_card_prompt.proto b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/content/static_card_prompt.proto new file mode 100644 index 000000000..17d59e2b5 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/content/static_card_prompt.proto @@ -0,0 +1,48 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2.interactionmodel.prompt; + +import "google/actions/sdk/v2/interactionmodel/prompt/content/static_image_prompt.proto"; +import "google/actions/sdk/v2/interactionmodel/prompt/content/static_link_prompt.proto"; +import "google/api/field_behavior.proto"; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/interactionmodel/prompt;prompt"; +option java_multiple_files = true; +option java_outer_classname = "StaticCardPromptProto"; +option java_package = "com.google.actions.sdk.v2.interactionmodel.prompt"; + +// A basic card for displaying some information, e.g. an image and/or text. +message StaticCardPrompt { + // Optional. Overall title of the card. + string title = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Subtitle of the card. + string subtitle = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Body text of the card which is needed unless image is present. Supports a + // limited set of markdown syntax for formatting. + string text = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. A hero image for the card. The height is fixed to 192dp. + StaticImagePrompt image = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. How the image background will be filled. + StaticImagePrompt.ImageFill image_fill = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A clickable button to be shown in the Card. + StaticLinkPrompt button = 6 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/content/static_collection_browse_prompt.proto b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/content/static_collection_browse_prompt.proto new file mode 100644 index 000000000..a2c8b9e95 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/content/static_collection_browse_prompt.proto @@ -0,0 +1,56 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2.interactionmodel.prompt; + +import "google/actions/sdk/v2/interactionmodel/prompt/content/static_image_prompt.proto"; +import "google/actions/sdk/v2/interactionmodel/prompt/content/static_link_prompt.proto"; +import "google/api/field_behavior.proto"; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/interactionmodel/prompt;prompt"; +option java_multiple_files = true; +option java_outer_classname = "StaticCollectionBrowsePromptProto"; +option java_package = "com.google.actions.sdk.v2.interactionmodel.prompt"; + +// Presents a set of web documents as a collection of large-tile items. Items +// may be selected to launch their associated web document in a web viewer. +message StaticCollectionBrowsePrompt { + // Item in the collection. + message CollectionBrowseItem { + // Required. Title of the collection item. + string title = 1 [(google.api.field_behavior) = REQUIRED]; + + // Description of the collection item. + string description = 2; + + // Footer text for the collection item, displayed below the description. + // Single line of text, truncated with an ellipsis. + string footer = 3; + + // Image for the collection item. + StaticImagePrompt image = 4; + + // Required. URI to open if the item selected. + OpenUrl open_uri_action = 5 [(google.api.field_behavior) = REQUIRED]; + } + + // Items in the browse collection. The list size should be in the range [2, + // 10]. + repeated CollectionBrowseItem items = 1; + + // Image display option for images in the collection. + StaticImagePrompt.ImageFill image_fill = 2; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/content/static_collection_prompt.proto b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/content/static_collection_prompt.proto new file mode 100644 index 000000000..cfb9fa8ff --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/content/static_collection_prompt.proto @@ -0,0 +1,59 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2.interactionmodel.prompt; + +import "google/actions/sdk/v2/interactionmodel/prompt/content/static_image_prompt.proto"; +import "google/api/field_behavior.proto"; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/interactionmodel/prompt;prompt"; +option java_multiple_files = true; +option java_outer_classname = "StaticCollectionPromptProto"; +option java_package = "com.google.actions.sdk.v2.interactionmodel.prompt"; + +// A card for presenting a collection of options to select from. +message StaticCollectionPrompt { + // An item in the collection. + message CollectionItem { + // Required. The NLU key that matches the entry key name in the associated + // Type. When item tapped, this key will be posted back as a select option + // parameter. + string key = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Title of the item. When tapped, this text will be + // posted back to the conversation verbatim as if the user had typed it. + // Each title must be unique among the set of items. + string title = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Body text of the item. + string description = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Item image. + StaticImagePrompt image = 4 [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. Title of the collection. + string title = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Subtitle of the collection. + string subtitle = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Collection items. + repeated CollectionItem items = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Type of image display option. + StaticImagePrompt.ImageFill image_fill = 4 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/content/static_content_prompt.proto b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/content/static_content_prompt.proto new file mode 100644 index 000000000..0d253895b --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/content/static_content_prompt.proto @@ -0,0 +1,57 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2.interactionmodel.prompt; + +import "google/actions/sdk/v2/interactionmodel/prompt/content/static_card_prompt.proto"; +import "google/actions/sdk/v2/interactionmodel/prompt/content/static_collection_browse_prompt.proto"; +import "google/actions/sdk/v2/interactionmodel/prompt/content/static_collection_prompt.proto"; +import "google/actions/sdk/v2/interactionmodel/prompt/content/static_image_prompt.proto"; +import "google/actions/sdk/v2/interactionmodel/prompt/content/static_list_prompt.proto"; +import "google/actions/sdk/v2/interactionmodel/prompt/content/static_media_prompt.proto"; +import "google/actions/sdk/v2/interactionmodel/prompt/content/static_table_prompt.proto"; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/interactionmodel/prompt;prompt"; +option java_multiple_files = true; +option java_outer_classname = "StaticContentPromptProto"; +option java_package = "com.google.actions.sdk.v2.interactionmodel.prompt"; + +// A placeholder for the Content part of a StaticPrompt. +message StaticContentPrompt { + // Only one type of content can be present in a Prompt. + oneof content { + // A basic card. + StaticCardPrompt card = 1; + + // An image. + StaticImagePrompt image = 2; + + // Table card. + StaticTablePrompt table = 3; + + // Response indicating a set of media to be played. + StaticMediaPrompt media = 4; + + // A card for presenting a list of options to select from. + StaticListPrompt list = 5; + + // A card presenting a list of options to select from. + StaticCollectionPrompt collection = 6; + + // A card presenting a collection of web pages to open. + StaticCollectionBrowsePrompt collection_browse = 7; + } +} diff --git a/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/content/static_image_prompt.proto b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/content/static_image_prompt.proto new file mode 100644 index 000000000..34d6e7422 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/content/static_image_prompt.proto @@ -0,0 +1,63 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2.interactionmodel.prompt; + +import "google/api/field_behavior.proto"; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/interactionmodel/prompt;prompt"; +option java_multiple_files = true; +option java_outer_classname = "StaticImagePromptProto"; +option java_package = "com.google.actions.sdk.v2.interactionmodel.prompt"; + +// An image displayed in the card. +message StaticImagePrompt { + // Possible image display options for affecting the presentation of the image. + // This should be used for when the image's aspect ratio does not match the + // image container's aspect ratio. + enum ImageFill { + // ImageFill unspecified. + UNSPECIFIED = 0; + + // Fill the gaps between the image and the image container with gray bars. + GRAY = 1; + + // Fill the gaps between the image and the image container with white bars. + WHITE = 2; + + // Image is scaled such that the image width and height match or exceed the + // container dimensions. This may crop the top and bottom of the image if + // the scaled image height is greater than the container height, or crop the + // left and right of the image if the scaled image width is greater than the + // container width. This is similar to "Zoom Mode" on a widescreen TV when + // playing a 4:3 video. + CROPPED = 3; + } + + // Required. The source url of the image. Images can be JPG, PNG and GIF (animated and + // non-animated). For example,`https://www.agentx.com/logo.png`. + string url = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. A text description of the image to be used for accessibility, e.g. screen + // readers. + string alt = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The height of the image in pixels. + int32 height = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The width of the image in pixels. + int32 width = 4 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/content/static_link_prompt.proto b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/content/static_link_prompt.proto new file mode 100644 index 000000000..258b72442 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/content/static_link_prompt.proto @@ -0,0 +1,52 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2.interactionmodel.prompt; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/interactionmodel/prompt;prompt"; +option java_multiple_files = true; +option java_outer_classname = "StaticLinkPromptProto"; +option java_package = "com.google.actions.sdk.v2.interactionmodel.prompt"; + +// Defines a link which will be displayed as a suggestion chip and can be opened +// by the user. +message StaticLinkPrompt { + // Name of the link + string name = 1; + + // Defines behavior when the user opens the link. + OpenUrl open = 2; +} + +// Defines behavior when the user opens the link. +message OpenUrl { + // The url field which could be any of: + // - http/https urls for opening an App-linked App or a webpage + string url = 1; + + // Indicates a hint for the url type. + UrlHint hint = 2; +} + +// Different types of url hints. +enum UrlHint { + // Unspecified + HINT_UNSPECIFIED = 0; + + // URL that points directly to AMP content, or to a canonical URL + // which refers to AMP content via ``. + AMP = 1; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/content/static_list_prompt.proto b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/content/static_list_prompt.proto new file mode 100644 index 000000000..6869a69f4 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/content/static_list_prompt.proto @@ -0,0 +1,55 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2.interactionmodel.prompt; + +import "google/actions/sdk/v2/interactionmodel/prompt/content/static_image_prompt.proto"; +import "google/api/field_behavior.proto"; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/interactionmodel/prompt;prompt"; +option java_multiple_files = true; +option java_outer_classname = "StaticListPromptProto"; +option java_package = "com.google.actions.sdk.v2.interactionmodel.prompt"; + +// A card for presenting a list of options to select from. +message StaticListPrompt { + // An item in the list. + message ListItem { + // Required. The NLU key that matches the entry key name in the associated type. When + // item tapped, this key will be posted back as a select option parameter. + string key = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Title of the item. When tapped, this text will be posted back to the + // conversation verbatim as if the user had typed it. Each title must be + // unique among the set of items. + string title = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Body text of the item. + string description = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Item image. + StaticImagePrompt image = 4 [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. Title of the list. + string title = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Subtitle of the list. + string subtitle = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. List items. + repeated ListItem items = 3 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/content/static_media_prompt.proto b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/content/static_media_prompt.proto new file mode 100644 index 000000000..982a2dec1 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/content/static_media_prompt.proto @@ -0,0 +1,96 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2.interactionmodel.prompt; + +import "google/actions/sdk/v2/interactionmodel/prompt/content/static_image_prompt.proto"; +import "google/protobuf/duration.proto"; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/interactionmodel/prompt;prompt"; +option java_multiple_files = true; +option java_outer_classname = "StaticMediaPromptProto"; +option java_package = "com.google.actions.sdk.v2.interactionmodel.prompt"; + +// Contains information about the media, such as name, description, url, etc. +// Next id: 11 +message StaticMediaPrompt { + // Media type of this response. + enum MediaType { + // UNSPECIFIED value + MEDIA_TYPE_UNSPECIFIED = 0; + + // Audio file. + AUDIO = 1; + + // Response to acknowledge a media status report. + MEDIA_STATUS_ACK = 2; + } + + // Media control types the media response can supported optionally + enum OptionalMediaControls { + // Unspecified value + OPTIONAL_MEDIA_CONTROLS_UNSPECIFIED = 0; + + // Paused event. Triggered when user pauses the media. + PAUSED = 1; + + // Stopped event. Triggered when user exit out 3p session during media play. + STOPPED = 2; + } + + // Media type of this response. + MediaType media_type = 8; + + // Start offset of the first media object. + google.protobuf.Duration start_offset = 5; + + // Optional media control types this media response session can support. + // If set, request will be made to 3p when a certain media event happens. + // If not set, 3p must still handle two default control type, FINISHED and + // FAILED. + repeated OptionalMediaControls optional_media_controls = 6; + + // List of media objects. + repeated MediaObject media_objects = 7; +} + +// Represents a single media object. +message MediaObject { + // Name of this media object. + string name = 1; + + // Description of this media object. + string description = 2; + + // The url pointing to the media content. + string url = 3; + + // Image to show with the media card. + MediaImage image = 4; +} + +// Image to be shown inside a MediaPrompt. +message MediaImage { + // Only one type of MediaImage is allowed. + oneof image { + // A large image, such as the cover of the album, etc. + StaticImagePrompt large = 1; + + // A small image icon displayed on the right from the title. + // It's resized to 36x36 dp. + StaticImagePrompt icon = 2; + } +} diff --git a/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/content/static_table_prompt.proto b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/content/static_table_prompt.proto new file mode 100644 index 000000000..1e67ddd07 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/content/static_table_prompt.proto @@ -0,0 +1,93 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2.interactionmodel.prompt; + +import "google/actions/sdk/v2/interactionmodel/prompt/content/static_image_prompt.proto"; +import "google/actions/sdk/v2/interactionmodel/prompt/content/static_link_prompt.proto"; +import "google/api/field_behavior.proto"; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/interactionmodel/prompt;prompt"; +option java_multiple_files = true; +option java_outer_classname = "StaticTablePromptProto"; +option java_package = "com.google.actions.sdk.v2.interactionmodel.prompt"; + +// A table card for displaying a table of text. +message StaticTablePrompt { + // Optional. Overall title of the table. Must be set if subtitle is set. + string title = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Subtitle for the table. + string subtitle = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Image associated with the table. + StaticImagePrompt image = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Headers and alignment of columns. + repeated TableColumn columns = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Row data of the table. The first 3 rows are guaranteed to be shown but + // others might be cut on certain surfaces. Please test with the simulator to + // see which rows will be shown for a given surface. On surfaces that support + // the `WEB_BROWSER` capability, you can point the user to + // a web page with more data. + repeated TableRow rows = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Button. + StaticLinkPrompt button = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// Describes a column in the table. +message TableColumn { + // The alignment of the content within the cell. + enum HorizontalAlignment { + // HorizontalAlignment unspecified. + UNSPECIFIED = 0; + + // Leading edge of the cell. This is the default. + LEADING = 1; + + // Content is aligned to the center of the column. + CENTER = 2; + + // Content is aligned to the trailing edge of the column. + TRAILING = 3; + } + + // Header text for the column. + string header = 1; + + // Horizontal alignment of content w.r.t column. If unspecified, content + // will be aligned to the leading edge. + HorizontalAlignment align = 2; +} + +// Describes a cell in a row. +message TableCell { + // Text content of the cell. + string text = 1; +} + +// Describes a row in the table. +message TableRow { + // Cells in this row. The first 3 cells are guaranteed to be shown but + // others might be cut on certain surfaces. Please test with the simulator + // to see which cells will be shown for a given surface. + repeated TableCell cells = 1; + + // Indicates whether there should be a divider after each row. + bool divider = 2; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/static_prompt.proto b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/static_prompt.proto new file mode 100644 index 000000000..f842e920a --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/static_prompt.proto @@ -0,0 +1,96 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2.interactionmodel.prompt; + +import "google/actions/sdk/v2/interactionmodel/prompt/content/static_canvas_prompt.proto"; +import "google/actions/sdk/v2/interactionmodel/prompt/content/static_content_prompt.proto"; +import "google/actions/sdk/v2/interactionmodel/prompt/content/static_link_prompt.proto"; +import "google/actions/sdk/v2/interactionmodel/prompt/static_simple_prompt.proto"; +import "google/actions/sdk/v2/interactionmodel/prompt/suggestion.proto"; +import "google/actions/sdk/v2/interactionmodel/prompt/surface_capabilities.proto"; +import "google/api/field_behavior.proto"; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/interactionmodel/prompt;prompt"; +option java_multiple_files = true; +option java_outer_classname = "StaticPromptProto"; +option java_package = "com.google.actions.sdk.v2.interactionmodel.prompt"; + +// Represents a list of prompt candidates, one of which will be selected as the +// prompt to be shown in the response to the user. +// **This message is localizable.** +message StaticPrompt { + // Represents a static prompt candidate. + message StaticPromptCandidate { + // Represents structured responses to send to the user, such as text, + // speech, cards, canvas data, suggestion chips, etc. + message StaticPromptResponse { + // Optional. The first voice and text-only response. + StaticSimplePrompt first_simple = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A content like a card, list or media to display to the user. + StaticContentPrompt content = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The last voice and text-only response. + StaticSimplePrompt last_simple = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Suggestions to be displayed to the user which will always + // appear at the end of the response. If the `append` field in the + // containing prompt is `true` the titles defined in this field will be + // added to titles defined in any previously defined suggestions prompts + // and duplicate values will be removed. + repeated Suggestion suggestions = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. An additional suggestion chip that can link out to the associated app + // or site. + // The chip will be rendered with the title "Open ". Max 20 chars. + StaticLinkPrompt link = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Mode for how this messages should be merged with previously defined + // messages. + // `true` will clear all previously defined messages (first and last + // simple, content, suggestions link and canvas) and add messages defined + // in this prompt. `false` will add messages defined in this prompt to + // messages defined in previous responses. Setting this field to `false` + // will also enable appending to some fields inside Simple prompts, the + // Suggestions prompt and the Canvas prompt (part of the Content prompt). + // The Content and Link messages will always be overwritten if defined in + // the prompt. Default value is `false`. + bool override = 7 [(google.api.field_behavior) = OPTIONAL]; + + // A response to be used for interactive canvas experience. + StaticCanvasPrompt canvas = 8; + } + + // Optional. The criteria for whether this prompt matches a request. If the selector + // is empty, this prompt will always be triggered. + Selector selector = 1 [(google.api.field_behavior) = OPTIONAL]; + + // The prompt response associated with the selector. + StaticPromptResponse prompt_response = 2; + } + + // Defines the criteria for whether a prompt matches a request. + message Selector { + // The set of required surface capabilities. + SurfaceCapabilities surface_capabilities = 1; + } + + // The list of candidate prompts to be sent to the client. Each prompt has a + // selector to determine when it can be used. The first selector that matches + // a request will be sent and the rest will be ignored. + repeated StaticPromptCandidate candidates = 1; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/static_simple_prompt.proto b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/static_simple_prompt.proto new file mode 100644 index 000000000..0d21f9741 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/static_simple_prompt.proto @@ -0,0 +1,48 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2.interactionmodel.prompt; + +import "google/api/field_behavior.proto"; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/interactionmodel/prompt;prompt"; +option java_multiple_files = true; +option java_outer_classname = "StaticSimplePromptProto"; +option java_package = "com.google.actions.sdk.v2.interactionmodel.prompt"; + +// Represents a simple prompt to be send to a user. +message StaticSimplePrompt { + // Represents a variant which is part of the simple prompt. + message Variant { + // Optional. Represents the speech to be spoken to the user. Can be SSML or text to + // speech. + // By default, speech will be appended to previous Simple prompt's + // speech. If the `override` field in the containing prompt is `true` the + // speech defined in this field will override previous Simple prompt's + // speech. + string speech = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Text to display in the chat bubble. If not given, a display rendering of + // the speech field above will be used. Limited to 640 chars. + // By default, text will be appended to previous Simple prompt's text. + // If the `override` field in the containing prompt is `true` the text + // defined in this field will override previous Simple prompt's text. + string text = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // List of possible variants. + repeated Variant variants = 1; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/suggestion.proto b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/suggestion.proto new file mode 100644 index 000000000..bd8416154 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/suggestion.proto @@ -0,0 +1,33 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2.interactionmodel.prompt; + +import "google/api/field_behavior.proto"; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/interactionmodel/prompt;prompt"; +option java_multiple_files = true; +option java_outer_classname = "SuggestionProto"; +option java_package = "com.google.actions.sdk.v2.interactionmodel.prompt"; + +// Represents a suggestion chip, a UI element shown to the user for convenience. +message Suggestion { + // Required. The text shown in the suggestion chip. When tapped, this text will be + // posted back to the conversation verbatim as if the user had typed it. + // Each title must be unique among the set of suggestion chips. + // Max 25 chars + string title = 1 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/surface_capabilities.proto b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/surface_capabilities.proto new file mode 100644 index 000000000..4c7d02999 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/prompt/surface_capabilities.proto @@ -0,0 +1,54 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2.interactionmodel.prompt; + +import "google/api/field_behavior.proto"; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/interactionmodel/prompt;prompt"; +option java_multiple_files = true; +option java_outer_classname = "SurfaceCapabilitiesProto"; +option java_package = "com.google.actions.sdk.v2.interactionmodel.prompt"; + +// Represents the surface the user is using to make a request to the Action. +message SurfaceCapabilities { + // Capabilities the device surface supports at the time of the request. + enum Capability { + // Unspecified surface capability. + UNSPECIFIED = 0; + + // Device can speak to the user via text-to-speech or SSML. + SPEECH = 1; + + // Device can display rich responses like cards, lists and tables. + RICH_RESPONSE = 2; + + // Device can play long form audio media like music and podcasts. + LONG_FORM_AUDIO = 3; + + // Device can display a interactive canvas response. + INTERACTIVE_CANVAS = 4; + + // Device can use web links in rich responses to open a web browser. + WEB_LINK = 5; + + // Device can support saving and fetching home storage. + HOME_STORAGE = 6; + } + + // Required. The capabilities of the surface making a request to the Action. + repeated Capability capabilities = 1 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/interactionmodel/scene.proto b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/scene.proto new file mode 100644 index 000000000..e8c4b4b94 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/scene.proto @@ -0,0 +1,60 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2.interactionmodel; + +import "google/actions/sdk/v2/interactionmodel/conditional_event.proto"; +import "google/actions/sdk/v2/interactionmodel/event_handler.proto"; +import "google/actions/sdk/v2/interactionmodel/intent_event.proto"; +import "google/actions/sdk/v2/interactionmodel/slot.proto"; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/interactionmodel;interactionmodel"; +option java_multiple_files = true; +option java_outer_classname = "SceneProto"; +option java_package = "com.google.actions.sdk.v2.interactionmodel"; + +// Scene is the basic unit of control flow when designing a conversation. They +// can be chained together with other scenes, generate prompts for the end user, +// and define slots. +// The scene name is specified in the name of the file. +message Scene { + // Handler to invoke when transitioning into this scene. + EventHandler on_enter = 1; + + // The list of events that trigger based on intents. These events can + // be triggered at any time after the on_load Handler has been called. + // Important - these events define the set of intents which are scoped to + // this scene and will take precedence over any globally defined events that + // have the same intents or their triggering phrases. Intent names must be + // unique within a scene. + repeated IntentEvent intent_events = 2; + + // The list of events to trigger based on conditional statements. These are + // evaluated after the form has been filled or immediately after on_load if + // this scene does not have a form (evaluation is only done once). Only the + // first matching event will be triggered. + repeated ConditionalEvent conditional_events = 3; + + // Ordered list of slots. Each slot defines the type of data + // that it will resolve and configuration to customize the experience of this + // resolution (e.g. prompts). + repeated Slot slots = 4; + + // Handler called when there is a change in state of a slot not + // caused by updates within another Handler. This allows slots to be + // invalidated, the scene invalidated or other changes to scene state. + EventHandler on_slot_updated = 5; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/interactionmodel/slot.proto b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/slot.proto new file mode 100644 index 000000000..114fe4a24 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/slot.proto @@ -0,0 +1,133 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2.interactionmodel; + +import "google/actions/sdk/v2/interactionmodel/event_handler.proto"; +import "google/actions/sdk/v2/interactionmodel/type/class_reference.proto"; +import "google/api/field_behavior.proto"; +import "google/protobuf/struct.proto"; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/interactionmodel;interactionmodel"; +option java_multiple_files = true; +option java_outer_classname = "SlotProto"; +option java_package = "com.google.actions.sdk.v2.interactionmodel"; + +// Configuration for a slot. Slots are single units of data that can be filled +// through natural language (ie. intent parameters), session parameters, and +// other sources. +message Slot { + // A single place where slot prompts are defined. + message PromptSettings { + // Prompt for the slot value itself. Example: "What size did you want?" + EventHandler initial_prompt = 1; + + // Prompt to give when the user's input does not match the expected + // value type for the slot for the first time. Example: "Sorry, I + // didn't get that." + EventHandler no_match_prompt1 = 2; + + // Prompt to give when the user's input does not match the expected + // value type for the slot for the second time. Example: "Sorry, I + // didn't get that." + EventHandler no_match_prompt2 = 3; + + // Prompt to give when the user's input does not match the expected + // value type for the slot for the last time. Example: "Sorry, I + // didn't get that." + EventHandler no_match_final_prompt = 4; + + // Prompt to give when the user does not provide an input for the first + // time. Example: "Sorry, I didn't get that." + EventHandler no_input_prompt1 = 5; + + // Prompt to give when the user does not provide an input for the second + // time. Example: "Sorry, I didn't get that." + EventHandler no_input_prompt2 = 6; + + // Prompt to give when the user does not provide an input for the last + // time. Example: "Sorry, I didn't get that." + EventHandler no_input_final_prompt = 7; + } + + // Message describing the commit behavior associated with the slot after it + // has been successfully filled. + message CommitBehavior { + // The session parameter to write the slot value after it is filled. Note + // that nested paths are not currently supported. "$$" is used to write the + // slot value to a session parameter with same name as the slot. + // Eg: write_session_param = "fruit" corresponds to "$session.params.fruit". + // write_session_param = "ticket" corresponds to "$session.params.ticket". + string write_session_param = 1; + } + + // Configuration to populate a default value for this slot. + message DefaultValue { + // Optional. The session parameter to be used to initialize the slot value, if it has + // a non-empty value. The type of the value must match the type of the slot. + // Note that nested paths are not currently supported. + // Eg: `session_param = "fruit"` corresponds to `$session.params.fruit`. + // `session_param = "ticket"` corresponds to `$session.params.ticket`. + string session_param = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Constant default value for the slot. This will only be used if a value + // for this slot was not populated through the `session_param`. The + // type for this value must match the type of the slot. + google.protobuf.Value constant = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. Name of the slot. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Declares the data type of this slot. + google.actions.sdk.v2.interactionmodel.type.ClassReference type = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Indicates whether the slot is required to be filled before + // advancing. Required slots that are not filled will trigger a customizable + // prompt to the user. + bool required = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Registers Prompts for different stages of slot filling. + PromptSettings prompt_settings = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Commit behavior associated with the slot. + CommitBehavior commit_behavior = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Additional configuration associated with the slot which is + // used for filling the slot. The format of the config is specific to the + // type of the slot. Resource references to user or session parameter can be + // added to this config. This config is needed for filling slots related to + // transactions and user engagement. + // + // Example: + // For a slot of type actions.type.CompletePurchaseValue, the following + // config proposes a digital good order with a reference to a client defined + // session parameter `userSelectedSkuId`: + // + // { + // "@type": "type.googleapis.com/ + // google.actions.transactions.v3.CompletePurchaseValueSpec", + // "skuId": { + // "skuType": "SKU_TYPE_IN_APP", + // "id": "$session.params.userSelectedSkuId", + // "packageName": "com.example.company" + // } + // } + google.protobuf.Value config = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration to populate a default value for this slot. + DefaultValue default_value = 7 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/interactionmodel/type/BUILD.bazel b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/type/BUILD.bazel new file mode 100644 index 000000000..9d5191c1c --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/type/BUILD.bazel @@ -0,0 +1,33 @@ +# This file was automatically generated by BuildFileGenerator + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") + +proto_library( + name = "type_proto", + srcs = [ + "class_reference.proto", + "entity_display.proto", + "free_text_type.proto", + "regular_expression_type.proto", + "synonym_type.proto", + "type.proto", + ], + deps = [ + "//google/api:field_behavior_proto", + ], +) + +############################################################################## +# Node.js +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", +) diff --git a/third_party/googleapis/google/actions/sdk/v2/interactionmodel/type/class_reference.proto b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/type/class_reference.proto new file mode 100644 index 000000000..496b3c9a3 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/type/class_reference.proto @@ -0,0 +1,36 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2.interactionmodel.type; + +import "google/api/field_behavior.proto"; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/interactionmodel/type;type"; +option java_multiple_files = true; +option java_outer_classname = "ClassReferenceProto"; +option java_package = "com.google.actions.sdk.v2.interactionmodel.type"; + +// A reference to a class which is used to declare the type of a field or return +// value. Enums are also a type of class that can be referenced using +// ClassReference. +message ClassReference { + // Required. Name of a built-in type or custom type of the parameter. Examples: + // `PizzaToppings`, `actions.type.Number` + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Indicates whether the data type represents a list of values. + bool list = 2 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/interactionmodel/type/entity_display.proto b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/type/entity_display.proto new file mode 100644 index 000000000..6a292220a --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/type/entity_display.proto @@ -0,0 +1,35 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2.interactionmodel.type; + +import "google/api/field_behavior.proto"; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/interactionmodel/type;type"; +option java_multiple_files = true; +option java_outer_classname = "EntityDisplayProto"; +option java_package = "com.google.actions.sdk.v2.interactionmodel.type"; + +// Elements that will be displayed on the canvas once a particular type's entity +// is extracted from a query. Only relevant for canvas enabled apps. +// **This message is localizable.** +message EntityDisplay { + // Optional. Title of the icon. + string icon_title = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Url of the icon. + string icon_url = 2 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/interactionmodel/type/free_text_type.proto b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/type/free_text_type.proto new file mode 100644 index 000000000..f35c6b096 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/type/free_text_type.proto @@ -0,0 +1,33 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2.interactionmodel.type; + +import "google/actions/sdk/v2/interactionmodel/type/entity_display.proto"; +import "google/api/field_behavior.proto"; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/interactionmodel/type;type"; +option java_multiple_files = true; +option java_outer_classname = "FreeTextTypeProto"; +option java_package = "com.google.actions.sdk.v2.interactionmodel.type"; + +// Type that matches any text if surrounding words context is close to provided +// training examples. +message FreeTextType { + // Optional. Elements that will be displayed on the canvas once an entity is extracted + // from a query. Only relevant for canvas enabled apps. + EntityDisplay display = 2 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/interactionmodel/type/regular_expression_type.proto b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/type/regular_expression_type.proto new file mode 100644 index 000000000..2c0af7a61 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/type/regular_expression_type.proto @@ -0,0 +1,44 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2.interactionmodel.type; + +import "google/actions/sdk/v2/interactionmodel/type/entity_display.proto"; +import "google/api/field_behavior.proto"; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/interactionmodel/type;type"; +option java_multiple_files = true; +option java_outer_classname = "RegularExpressionTypeProto"; +option java_package = "com.google.actions.sdk.v2.interactionmodel.type"; + +// Type that matches text by regular expressions. +// **This message is localizable.** +message RegularExpressionType { + // Represents an entity object that contains the regular expression that is + // used for comparison. + message Entity { + // Optional. Elements that will be displayed on the canvas once an entity is + // extracted from a query. Only relevant for canvas enabled apps. + EntityDisplay display = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Uses RE2 regex syntax (See + // https://github.com/google/re2/wiki/Syntax for more details) + repeated string regular_expressions = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // Required. Named map of entities which each contain Regex strings. + map entities = 1 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/interactionmodel/type/synonym_type.proto b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/type/synonym_type.proto new file mode 100644 index 000000000..bdca11898 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/type/synonym_type.proto @@ -0,0 +1,66 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2.interactionmodel.type; + +import "google/actions/sdk/v2/interactionmodel/type/entity_display.proto"; +import "google/api/field_behavior.proto"; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/interactionmodel/type;type"; +option java_multiple_files = true; +option java_outer_classname = "SynonymTypeProto"; +option java_package = "com.google.actions.sdk.v2.interactionmodel.type"; + +// Type that matches text by set of synonyms. +message SynonymType { + // Represents a synonym entity field that contains the details of a single + // entry inside the type. + message Entity { + // Optional. The entity display details. + EntityDisplay display = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The list of synonyms for the entity. + // **This field is localizable.** + repeated string synonyms = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // The type of matching that entries in this type will use. This will ensure + // all of the types use the same matching method and allow variation of + // matching for synonym matching (i.e. fuzzy versus exact). If the value is + // `UNSPECIFIED` it will be defaulted to `EXACT_MATCH`. + enum MatchType { + // Defaults to `EXACT_MATCH`. + UNSPECIFIED = 0; + + // Looks for an exact match of the synonym or name. + EXACT_MATCH = 1; + + // Looser than `EXACT_MATCH`. Looks for similar matches as well as exact + // matches. + FUZZY_MATCH = 2; + } + + // Optional. The match type for the synonym. + MatchType match_type = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. When set to true this will match unknown words or phrases based on + // surrounding input and intent training data, such as items that might be + // added to a grocery list. + bool accept_unknown_values = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Named map of synonym entities. + map entities = 2 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/interactionmodel/type/type.proto b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/type/type.proto new file mode 100644 index 000000000..8b4bc3f32 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/interactionmodel/type/type.proto @@ -0,0 +1,50 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2.interactionmodel.type; + +import "google/actions/sdk/v2/interactionmodel/type/free_text_type.proto"; +import "google/actions/sdk/v2/interactionmodel/type/regular_expression_type.proto"; +import "google/actions/sdk/v2/interactionmodel/type/synonym_type.proto"; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2/interactionmodel/type;type"; +option java_multiple_files = true; +option java_outer_classname = "TypeProto"; +option java_package = "com.google.actions.sdk.v2.interactionmodel.type"; + +// Declaration of a custom type, as opposed to built-in types. Types can be +// assigned to slots in a scene or parameters of an intent's training phrases. +// Practically, Types can be thought of as enums. +// Note, type name is specified in the name of the file. +message Type { + // Selection of sub type based on the type of matching to be done. + oneof sub_type { + // Synonyms type, which is essentially an enum. + SynonymType synonym = 1; + + // Regex type, allows regular expression matching. + RegularExpressionType regular_expression = 2; + + // FreeText type. + FreeTextType free_text = 3; + } + + // Set of exceptional words/phrases that shouldn't be matched by type. + // Note: If word/phrase is matched by the type but listed as an exclusion it + // won't be returned in parameter extraction result. + // **This field is localizable.** + repeated string exclusions = 4; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/localized_settings.proto b/third_party/googleapis/google/actions/sdk/v2/localized_settings.proto new file mode 100644 index 000000000..ef5bb8e4b --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/localized_settings.proto @@ -0,0 +1,92 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2; + +import "google/actions/sdk/v2/theme_customization.proto"; +import "google/api/field_behavior.proto"; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2;sdk"; +option java_multiple_files = true; +option java_outer_classname = "LocalizedSettingsProto"; +option java_package = "com.google.actions.sdk.v2"; + +// Represents settings of an Actions project that are specific to a user locale. +// In this instance, user means the end user who invokes your Actions. +// **This message is localizable.** +message LocalizedSettings { + // Required. The default display name for this Actions project (if there is no + // translation available) + string display_name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The pronunciation of the display name to invoke it within a voice + // (spoken) context. + string pronunciation = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The default short description for the Actions project (if there is no + // translation available). 80 character limit. + string short_description = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. The default long description for the Actions project (if there is no + // translation available). 4000 character limit. + string full_description = 4 [(google.api.field_behavior) = REQUIRED]; + + // Required. Small square image, 192 x 192 px. + // This should be specified as a reference to the corresponding image in the + // `resources/images/` directory. Eg: `$resources.images.foo` (without the + // extension) for image in `resources/images/foo.jpg` + // When working on a project pulled from Console the Google managed url pulled + // could be used. + string small_logo_image = 5 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Large landscape image, 1920 x 1080 px. + // This should be specified as a reference to the corresponding image in the + // `resources/images/` directory. Eg: `$resources.images.foo` (without the + // extension) for image in `resources/images/foo.jpg` + // When working on a project pulled from Console the Google managed url pulled + // could be used. + string large_banner_image = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The name of the developer to be displayed to users. + string developer_name = 7 [(google.api.field_behavior) = REQUIRED]; + + // Required. The contact email address for the developer. + string developer_email = 8 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The terms of service URL. + string terms_of_service_url = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The Google Assistant voice type that users hear when they interact with + // your Actions. The supported values are "male_1", "male_2", "female_1", and + // "female_2". + string voice = 10 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The locale for the specified voice. If not specified, this resolves + // to the user's Assistant locale. If specified, the voice locale must have + // the same root language as the locale specified in LocalizedSettings. + string voice_locale = 14 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The privacy policy URL. + string privacy_policy_url = 11 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Sample invocation phrases displayed as part of your Actions project's + // description in the Assistant directory. This will help users learn how to + // use it. + repeated string sample_invocations = 12 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Theme customizations for visual components of your Actions. + ThemeCustomization theme_customization = 13 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/manifest.proto b/third_party/googleapis/google/actions/sdk/v2/manifest.proto new file mode 100644 index 000000000..2bfd70b8d --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/manifest.proto @@ -0,0 +1,30 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2;sdk"; +option java_multiple_files = true; +option java_outer_classname = "ManifestProto"; +option java_package = "com.google.actions.sdk.v2"; + +// Contains information that's "transportable" i.e. not specific to any given +// project and can be moved between projects. +message Manifest { + // Version of the file format. The current file format version is 1.0 + // Example: "1.0" + string version = 1; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/release_channel.proto b/third_party/googleapis/google/actions/sdk/v2/release_channel.proto new file mode 100644 index 000000000..20c62428b --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/release_channel.proto @@ -0,0 +1,44 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2; + +import "google/api/resource.proto"; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2;sdk"; +option java_multiple_files = true; +option java_outer_classname = "ReleaseChannelProto"; +option java_package = "com.google.actions.sdk.v2"; + +// Definition of release channel resource. +message ReleaseChannel { + option (google.api.resource) = { + type: "actions.googleapis.com/ReleaseChannel" + pattern: "projects/{project}/releaseChannels/{release_channel}" + }; + + // The unique name of the release channel in the following format. + // `projects/{project}/releaseChannels/{release_channel}`. + string name = 1; + + // Version currently deployed to this release channel in the following format: + // `projects/{project}/versions/{version}`. + string current_version = 2; + + // Version to be deployed to this release channel in the following format: + // `projects/{project}/versions/{version}`. + string pending_version = 3; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/settings.proto b/third_party/googleapis/google/actions/sdk/v2/settings.proto new file mode 100644 index 000000000..94835b2df --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/settings.proto @@ -0,0 +1,186 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2; + +import "google/actions/sdk/v2/account_linking.proto"; +import "google/actions/sdk/v2/localized_settings.proto"; +import "google/actions/sdk/v2/surface.proto"; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2;sdk"; +option java_multiple_files = true; +option java_outer_classname = "SettingsProto"; +option java_package = "com.google.actions.sdk.v2"; + +// Represents settings of an Actions project that are not locale specific. +message Settings { + // The category choices for an Actions project. + enum Category { + // Unknown / Unspecified. + CATEGORY_UNSPECIFIED = 0; + + // Business and Finance category. + BUSINESS_AND_FINANCE = 2; + + // Education and Reference category. + EDUCATION_AND_REFERENCE = 3; + + // Food and Drink category. + FOOD_AND_DRINK = 4; + + // Games and Trivia category. + GAMES_AND_TRIVIA = 5; + + // Health and Fitness category. + HEALTH_AND_FITNESS = 6; + + // Kids and Family category. + KIDS_AND_FAMILY = 20; + + // Lifestyle category. + LIFESTYLE = 7; + + // Local category. + LOCAL = 8; + + // Movies and TV category. + MOVIES_AND_TV = 9; + + // Music and Audio category. + MUSIC_AND_AUDIO = 10; + + // News category, + NEWS = 1; + + // Novelty and Humor category. + NOVELTY_AND_HUMOR = 11; + + // Productivity category. + PRODUCTIVITY = 12; + + // Shopping category. + SHOPPING = 13; + + // Social category. + SOCIAL = 14; + + // Sports category. + SPORTS = 15; + + // Travel and Transportation category. + TRAVEL_AND_TRANSPORTATION = 16; + + // Utilities category. + UTILITIES = 17; + + // Weather category. + WEATHER = 18; + + // Home Control category. + HOME_CONTROL = 19; + } + + // Actions project id. + string project_id = 1; + + // Locale which is default for the project. For all files except under + // `resources/` with no locale in the path, the localized data is attributed + // to this `default_locale`. For files under `resources/` no locale means that + // the resource is applicable to all locales. + string default_locale = 2; + + // Represents the regions where users can invoke your Actions, which is + // based on the user's location of presence. Cannot be set if + // `disabled_regions` is set. If both `enabled_regions` and `disabled_regions` + // are not specified, users can invoke your Actions in all regions. Each + // region is represented using the Canonical Name of Adwords geotargets. See + // https://developers.google.com/adwords/api/docs/appendix/geotargeting + // Examples include: + // - "Germany" + // - "Ghana" + // - "Greece" + // - "Grenada" + // - "United Kingdom" + // - "United States" + // - "United States Minor Outlying Islands" + // - "Uruguay" + repeated string enabled_regions = 3; + + // Represents the regions where your Actions are blocked, based on the user's + // location of presence. Cannot be set if `enabled_regions` is set. + // Each region is represented using the Canonical Name of Adwords geotargets. + // See https://developers.google.com/adwords/api/docs/appendix/geotargeting + // Examples include: + // - "Germany" + // - "Ghana" + // - "Greece" + // - "Grenada" + // - "United Kingdom" + // - "United States" + // - "United States Minor Outlying Islands" + // - "Uruguay" + repeated string disabled_regions = 4; + + // The category for this Actions project. + Category category = 5; + + // Whether Actions can use transactions (for example, making + // reservations, taking orders, etc.). If false, then attempts to use the + // Transactions APIs fail. + bool uses_transactions_api = 6; + + // Whether Actions can perform transactions for digital goods. + bool uses_digital_purchase_api = 7; + + // Whether Actions use Interactive Canvas. + bool uses_interactive_canvas = 8; + + // Whether Actions use the home storage feature. + bool uses_home_storage = 17; + + // Whether Actions content is designed for family (DFF). + bool designed_for_family = 9; + + // Whether Actions contains alcohol or tobacco related content. + bool contains_alcohol_or_tobacco_content = 11; + + // Whether Actions may leave mic open without an explicit prompt during + // conversation. + bool keeps_mic_open = 12; + + // The surface requirements that a client surface must support to invoke + // Actions in this project. + SurfaceRequirements surface_requirements = 13; + + // Free-form testing instructions for Actions reviewer (for example, account + // linking instructions). + string testing_instructions = 14; + + // Localized settings for the project's default locale. Every additional + // locale should have its own settings file in its own directory. + LocalizedSettings localized_settings = 15; + + // Allow users to create or link accounts through Google sign-in and/or your + // own OAuth service. + AccountLinking account_linking = 16; + + // Android apps selected to acccess Google Play purchases for transactions. + // This is a selection from the Android apps connected to the actions project + // to verify brand ownership and enable additional features. See + // https://developers.google.com/assistant/console/brand-verification for more + // information. + repeated string selected_android_apps = 20; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/surface.proto b/third_party/googleapis/google/actions/sdk/v2/surface.proto new file mode 100644 index 000000000..a68276a91 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/surface.proto @@ -0,0 +1,64 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2;sdk"; +option java_multiple_files = true; +option java_outer_classname = "SurfaceProto"; +option java_package = "com.google.actions.sdk.v2"; + +// Contains a set of requirements that the client surface must support to invoke +// Actions in your project. +message SurfaceRequirements { + // The minimum set of capabilities needed to invoke the Actions in your + // project. If the surface is missing any of these, the Action will not be + // triggered. + repeated CapabilityRequirement minimum_requirements = 1; +} + +// Represents a requirement about the availability of a given capability. +message CapabilityRequirement { + // Possible set of surface capabilities. + enum SurfaceCapability { + // Unknown / Unspecified. + SURFACE_CAPABILITY_UNSPECIFIED = 0; + + // Surface supports audio output. + AUDIO_OUTPUT = 1; + + // Surface supports screen/visual output. + SCREEN_OUTPUT = 2; + + // Surface supports media response audio. + MEDIA_RESPONSE_AUDIO = 3; + + // Surface supports web browsers. + WEB_BROWSER = 4; + + // Surface supports account linking. + ACCOUNT_LINKING = 7; + + // Surface supports Interactive Canvas. + INTERACTIVE_CANVAS = 8; + + // Surface supports home storage. + HOME_STORAGE = 9; + } + + // The type of capability. + SurfaceCapability capability = 1; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/theme_customization.proto b/third_party/googleapis/google/actions/sdk/v2/theme_customization.proto new file mode 100644 index 000000000..d4b21e3f0 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/theme_customization.proto @@ -0,0 +1,83 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2;sdk"; +option java_multiple_files = true; +option java_outer_classname = "ThemeCustomizationProto"; +option java_package = "com.google.actions.sdk.v2"; + +// Styles applied to cards that are presented to users +message ThemeCustomization { + // Describes how the borders of images should be rendered. + enum ImageCornerStyle { + // Undefined / Unspecified. + IMAGE_CORNER_STYLE_UNSPECIFIED = 0; + + // Round corner for image. + CURVED = 1; + + // Rectangular corner for image. + ANGLED = 2; + } + + // Background color of cards. Acts as a fallback if `background_image` is + // not provided by developers or `background_image` doesn't fit for certain + // surfaces. + // Example usage: #FAFAFA + string background_color = 1; + + // Primary theme color of the Action will be used to set text color of title, + // action item background color for Actions on Google cards. + // Example usage: #FAFAFA + string primary_color = 2; + + // The font family that will be used for title of cards. + // Supported fonts: + // - Sans Serif + // - Sans Serif Medium + // - Sans Serif Bold + // - Sans Serif Black + // - Sans Serif Condensed + // - Sans Serif Condensed Medium + // - Serif + // - Serif Bold + // - Monospace + // - Cursive + // - Sans Serif Smallcaps + string font_family = 3; + + // Border style of foreground image of cards. For example, can be applied on + // the foreground image of a basic card or carousel card. + ImageCornerStyle image_corner_style = 4; + + // Landscape mode (minimum 1920x1200 pixels). + // This should be specified as a reference to the corresponding image in the + // `resources/images/` directory. Eg: `$resources.images.foo` (without the + // extension) for image in `resources/images/foo.jpg` + // When working on a project pulled from Console, the Google-managed URL + // pulled could be used. URLs from external sources are not allowed. + string landscape_background_image = 5; + + // Portrait mode (minimum 1200x1920 pixels). + // This should be specified as a reference to the corresponding image in the + // `resources/images/` directory. Eg: `$resources.images.foo` (without the + // extension) for image in `resources/images/foo.jpg` + // When working on a project pulled from Console, the Google-managed URL + // pulled could be used. URLs from external sources are not allowed. + string portrait_background_image = 6; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/validation_results.proto b/third_party/googleapis/google/actions/sdk/v2/validation_results.proto new file mode 100644 index 000000000..08993c1a9 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/validation_results.proto @@ -0,0 +1,46 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2;sdk"; +option java_multiple_files = true; +option java_outer_classname = "ValidationResultsProto"; +option java_package = "com.google.actions.sdk.v2"; + +// Wrapper for repeated validation result. +message ValidationResults { + // Multiple validation results. + repeated ValidationResult results = 1; +} + +// Represents a validation result associated with the app content. +message ValidationResult { + // Context to identify the resource the validation message relates to. + message ValidationContext { + // Language code of the lozalized resource. + // Empty if the error is for non-localized resource. + // See the list of supported languages in + // https://developers.google.com/assistant/console/languages-locales + string language_code = 1; + } + + // Holds the validation message. + string validation_message = 1; + + // Context to identify the resource the validation message relates to. + ValidationContext validation_context = 2; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/version.proto b/third_party/googleapis/google/actions/sdk/v2/version.proto new file mode 100644 index 000000000..3df6f6dd9 --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/version.proto @@ -0,0 +1,91 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2; + +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2;sdk"; +option java_multiple_files = true; +option java_outer_classname = "VersionProto"; +option java_package = "com.google.actions.sdk.v2"; + +// Definition of version resource. +message Version { + option (google.api.resource) = { + type: "actions.googleapis.com/Version" + pattern: "projects/{project}/versions/{version}" + }; + + // Represents the current state of the version. + message VersionState { + // Enum indicating the states that a Version can take. This enum is not yet + // frozen and values maybe added later. + enum State { + // Default value of State. + STATE_UNSPECIFIED = 0; + + // The version creation is in progress. + CREATION_IN_PROGRESS = 1; + + // The version creation failed. + CREATION_FAILED = 2; + + // The version has been successfully created. + CREATED = 3; + + // The version is under policy review (aka Approval). + REVIEW_IN_PROGRESS = 4; + + // The version has been approved for policy review and can be deployed. + APPROVED = 5; + + // The version has been conditionally approved but is pending final + // review. It may be rolled back if final review is denied. + CONDITIONALLY_APPROVED = 6; + + // The version has been denied for policy review. + DENIED = 7; + + // The version is taken down as entire agent and all versions are taken + // down. + UNDER_TAKEDOWN = 8; + + // The version has been deleted. + DELETED = 9; + } + + // The current state of the version. + State state = 1; + + // User-friendly message for the current state of the version. + string message = 2; + } + + // The unique identifier of the version in the following format. + // `projects/{project}/versions/{version}`. + string name = 1; + + // The current state of the version. + VersionState version_state = 2; + + // Email of the user who created this version. + string creator = 3; + + // Timestamp of the last change to this version. + google.protobuf.Timestamp update_time = 4; +} diff --git a/third_party/googleapis/google/actions/sdk/v2/webhook.proto b/third_party/googleapis/google/actions/sdk/v2/webhook.proto new file mode 100644 index 000000000..23f5bad9c --- /dev/null +++ b/third_party/googleapis/google/actions/sdk/v2/webhook.proto @@ -0,0 +1,82 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.actions.sdk.v2; + +import "google/api/field_behavior.proto"; + +option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2;sdk"; +option java_multiple_files = true; +option java_outer_classname = "WebhookProto"; +option java_package = "com.google.actions.sdk.v2"; + +// Metadata for different types of webhooks. If you're using +// `inlineCloudFunction`, your source code must be in a directory with the same +// name as the value for the `executeFunction` key. +// For example, a value of `my_webhook` for the`executeFunction` key would have +// a code structure like this: +// - `/webhooks/my_webhook.yaml` +// - `/webhooks/my_webhook/index.js` +// - `/webhooks/my_webhook/package.json` +message Webhook { + // Declares the name of the webhoook handler. A webhook can have + // multiple handlers registered. These handlers can be called from multiple + // places in your Actions project. + message Handler { + // Required. Name of the handler. Must be unique across all handlers the Actions + // project. You can check the name of this handler to invoke the correct + // function in your fulfillment source code. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // REST endpoint to notify if you're not using the inline editor. + message HttpsEndpoint { + // The HTTPS base URL for your fulfillment endpoint (HTTP is not supported). + // Handler names are appended to the base URL path after a colon + // (following the style guide in + // https://cloud.google.com/apis/design/custom_methods). + // For example a base URL of 'https://gactions.service.com/api' would + // receive requests with URL 'https://gactions.service.com/api:{method}'. + string base_url = 1; + + // Map of HTTP parameters to be included in the POST request. + map http_headers = 2; + + // Version of the protocol used by the endpoint. This is the protocol shared + // by all fulfillment types and not specific to Google fulfillment type. + int32 endpoint_api_version = 3; + } + + // Holds the metadata of an inline Cloud Function deployed from the + // webhooks folder. + message InlineCloudFunction { + // The name of the Cloud Function entry point. The value of this field + // should match the name of the method exported from the source code. + string execute_function = 1; + } + + // List of handlers for this webhook. + repeated Handler handlers = 1; + + // Only one webhook type is supported. + oneof webhook_type { + // Custom webhook HTTPS endpoint. + HttpsEndpoint https_endpoint = 2; + + // Metadata for cloud function deployed from code in the webhooks folder. + InlineCloudFunction inline_cloud_function = 3; + } +} diff --git a/third_party/googleapis/google/ads/admob/BUILD.bazel b/third_party/googleapis/google/ads/admob/BUILD.bazel index a87c57fec..499991bf0 100644 --- a/third_party/googleapis/google/ads/admob/BUILD.bazel +++ b/third_party/googleapis/google/ads/admob/BUILD.bazel @@ -1 +1 @@ -exports_files(glob(["*.yaml"])) +exports_files(["admob_grpc_service_config.json"] + glob(["*.yaml"])) diff --git a/third_party/googleapis/google/ads/admob/v1/BUILD.bazel b/third_party/googleapis/google/ads/admob/v1/BUILD.bazel index a48e90ada..419b76acb 100644 --- a/third_party/googleapis/google/ads/admob/v1/BUILD.bazel +++ b/third_party/googleapis/google/ads/admob/v1/BUILD.bazel @@ -30,6 +30,7 @@ proto_library( "//google/api:field_behavior_proto", "//google/api:resource_proto", "//google/type:date_proto", + "//google/cloud:common_resources_proto", ], ) @@ -37,7 +38,6 @@ proto_library_with_info( name = "admob_proto_with_info", deps = [ ":admob_proto", - "//google/cloud:common_resources_proto", ], ) @@ -46,11 +46,11 @@ proto_library_with_info( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", + "java_grpc_library", + "java_proto_library", "java_gapic_assembly_gradle_pkg", "java_gapic_library", "java_gapic_test", - "java_grpc_library", - "java_proto_library", ) java_proto_library( @@ -66,11 +66,11 @@ java_grpc_library( java_gapic_library( name = "admob_java_gapic", - src = ":admob_proto_with_info", + srcs = [ + ":admob_proto_with_info" + ], gapic_yaml = "admob_gapic.yaml", - grpc_service_config = None, - package = "google.ads.admob.v1", - service_yaml = "//google/ads/admob:admob_v1.yaml", + grpc_service_config = "//google/ads/admob:admob_grpc_service_config.json", test_deps = [ ":admob_java_grpc", ], @@ -153,47 +153,27 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", - "py_gapic_assembly_pkg", - "py_gapic_library", "py_grpc_library", "py_proto_library", -) - -moved_proto_library( - name = "admob_moved_proto", - srcs = [":admob_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:resource_proto", - "//google/type:date_proto", - ], + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_proto_library( name = "admob_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":admob_moved_proto"], + deps = [":admob_proto"], ) py_grpc_library( name = "admob_py_grpc", - srcs = [":admob_moved_proto"], + srcs = [":admob_proto"], deps = [":admob_py_proto"], ) py_gapic_library( name = "admob_py_gapic", - src = ":admob_proto_with_info", - gapic_yaml = "admob_gapic.yaml", - grpc_service_config = None, - package = "google.ads.admob.v1", - service_yaml = "//google/ads/admob:admob_v1.yaml", - deps = [ - ":admob_py_grpc", - ":admob_py_proto", + srcs = [ + ":admob_proto_with_info" ], ) @@ -264,6 +244,7 @@ load( nodejs_gapic_library( name = "admob_nodejs_gapic", src = ":admob_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = None, package = "google.ads.admob.v1", service_yaml = "//google/ads/admob:admob_v1.yaml", diff --git a/third_party/googleapis/google/ads/googleads/README.md b/third_party/googleapis/google/ads/googleads/README.md index 4a1872b85..db373ba14 100644 --- a/third_party/googleapis/google/ads/googleads/README.md +++ b/third_party/googleapis/google/ads/googleads/README.md @@ -1,8 +1,11 @@ -# Google Ads API - proto definitions +# Google Ads API This folder contains the [protocol -buffer](https://developers.google.com/protocol-buffers/) definitions for the -[Google Ads API](https://developers.google.com/google-ads/api/). To use this +buffer](https://developers.google.com/protocol-buffers/) definitions and +**experimental** build files (see below) for the [Google Ads +API](https://developers.google.com/google-ads/api/). + +To use this API, we encourage you to take a look at our [official client libraries](https://developers.google.com/google-ads/api/docs/client-libs) for Java, Ruby, PHP, Python or .NET. Refer to the @@ -19,3 +22,26 @@ Use [the official Google Ads API forum](https://groups.google.com/d/forum/adwords-api) to request an official client library in another programming language, report bugs, request new features in the Google Ads API, or provide feedback. + +## Build files (experimental) + +> **IMPORTANT** The Bazel build files are **experimental**. The structure and +> content of the Bazel packages are subject to change, and the resulting +> generated API clients are not officially supported Google products. + +The [Bazel](https://bazel.build/) build files contain targets for building +**generated API clients (GAPICs)** from the Google Ads API protocol buffer +descriptors. Our [officially supported +client libraries](https://developers.google.com/google-ads/api/docs/client-libs) +are built upon these GAPIC artifacts, but add significant performance and +usability enhancements. Thus, we strongly recommend using an official +client library. + +However, developers looking to understand the internals of the API's client +libraries or build their own custom [gRPC](https://grpc.io/)-based clients can +use these build files as reference points. + +For details on using these files, see the +[Bazel section](https://github.com/googleapis/googleapis#bazel) of the +repository's main +[README.md](https://github.com/googleapis/googleapis/blob/master/README.md). diff --git a/third_party/googleapis/google/ads/googleads/v2/common/ad_asset.proto b/third_party/googleapis/google/ads/googleads/v2/common/ad_asset.proto deleted file mode 100644 index 529437adb..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/common/ad_asset.proto +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.common; - -import "google/ads/googleads/v2/enums/served_asset_field_type.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/common;common"; -option java_multiple_files = true; -option java_outer_classname = "AdAssetProto"; -option java_package = "com.google.ads.googleads.v2.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V2::Common"; - -// Proto file describing assets used inside an ad. - -// A text asset used inside an ad. -message AdTextAsset { - // Asset text. - google.protobuf.StringValue text = 1; - - // The pinned field of the asset. This restricts the asset to only serve - // 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.v2.enums.ServedAssetFieldTypeEnum.ServedAssetFieldType pinned_field = 2; -} - -// An image asset used inside an ad. -message AdImageAsset { - // The Asset resource name of this image. - google.protobuf.StringValue asset = 1; -} - -// A video asset used inside an ad. -message AdVideoAsset { - // The Asset resource name of this video. - google.protobuf.StringValue asset = 1; -} - -// A media bundle asset used inside an ad. -message AdMediaBundleAsset { - // The Asset resource name of this media bundle. - google.protobuf.StringValue asset = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/common/ad_type_infos.proto b/third_party/googleapis/google/ads/googleads/v2/common/ad_type_infos.proto deleted file mode 100644 index 2cbf7325d..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/common/ad_type_infos.proto +++ /dev/null @@ -1,582 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.common; - -import "google/ads/googleads/v2/common/ad_asset.proto"; -import "google/ads/googleads/v2/enums/call_conversion_reporting_state.proto"; -import "google/ads/googleads/v2/enums/display_ad_format_setting.proto"; -import "google/ads/googleads/v2/enums/display_upload_product_type.proto"; -import "google/ads/googleads/v2/enums/legacy_app_install_ad_app_store.proto"; -import "google/ads/googleads/v2/enums/mime_type.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/common;common"; -option java_multiple_files = true; -option java_outer_classname = "AdTypeInfosProto"; -option java_package = "com.google.ads.googleads.v2.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V2::Common"; - -// Proto file containing info messages for specific ad types. - -// A text ad. -message TextAdInfo { - // The headline of the ad. - google.protobuf.StringValue headline = 1; - - // The first line of the ad's description. - google.protobuf.StringValue description1 = 2; - - // The second line of the ad's description. - google.protobuf.StringValue description2 = 3; -} - -// An expanded text ad. -message ExpandedTextAdInfo { - // The first part of the ad's headline. - google.protobuf.StringValue headline_part1 = 1; - - // The second part of the ad's headline. - google.protobuf.StringValue headline_part2 = 2; - - // The third part of the ad's headline. - google.protobuf.StringValue headline_part3 = 6; - - // The description of the ad. - google.protobuf.StringValue description = 3; - - // The second description of the ad. - google.protobuf.StringValue description2 = 7; - - // The text that can appear alongside the ad's displayed URL. - google.protobuf.StringValue path1 = 4; - - // Additional text that can appear alongside the ad's displayed URL. - google.protobuf.StringValue path2 = 5; -} - -// A call-only ad. -message CallOnlyAdInfo { - // The country code in the ad. - google.protobuf.StringValue country_code = 1; - - // The phone number in the ad. - google.protobuf.StringValue phone_number = 2; - - // The business name in the ad. - google.protobuf.StringValue business_name = 3; - - // First headline in the ad. - google.protobuf.StringValue headline1 = 11; - - // Second headline in the ad. - google.protobuf.StringValue headline2 = 12; - - // The first line of the ad's description. - google.protobuf.StringValue description1 = 4; - - // The second line of the ad's description. - google.protobuf.StringValue description2 = 5; - - // Whether to enable call tracking for the creative. Enabling call - // tracking also enables call conversions. - google.protobuf.BoolValue call_tracked = 6; - - // Whether to disable call conversion for the creative. - // If set to `true`, disables call conversions even when `call_tracked` is - // `true`. - // If `call_tracked` is `false`, this field is ignored. - google.protobuf.BoolValue disable_call_conversion = 7; - - // The URL to be used for phone number verification. - google.protobuf.StringValue phone_number_verification_url = 8; - - // The conversion action to attribute a call conversion to. If not set a - // default conversion action is used. This field only has effect if - // call_tracked is set to true. Otherwise this field is ignored. - google.protobuf.StringValue conversion_action = 9; - - // 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.v2.enums.CallConversionReportingStateEnum.CallConversionReportingState conversion_reporting_state = 10; -} - -// An expanded dynamic search ad. -message ExpandedDynamicSearchAdInfo { - // The description of the ad. - google.protobuf.StringValue description = 1; - - // The second description of the ad. - google.protobuf.StringValue description2 = 2; -} - -// A hotel ad. -message HotelAdInfo { - -} - -// A Smart Shopping ad. -message ShoppingSmartAdInfo { - -} - -// A standard Shopping ad. -message ShoppingProductAdInfo { - -} - -// A Shopping Comparison Listing ad. -message ShoppingComparisonListingAdInfo { - // Headline of the ad. This field is required. Allowed length is between 25 - // and 45 characters. - google.protobuf.StringValue headline = 1; -} - -// A Gmail ad. -message GmailAdInfo { - // The Gmail teaser. - GmailTeaser teaser = 1; - - // The MediaFile resource name of the header image. Valid image types are GIF, - // JPEG and PNG. The minimum size is 300x100 pixels and the aspect ratio must - // be between 3:1 and 5:1 (+-1%). - google.protobuf.StringValue header_image = 2; - - // The MediaFile resource name of the marketing image. Valid image types are - // GIF, JPEG and PNG. The image must either be landscape with a minimum size - // of 600x314 pixels and aspect ratio of 600:314 (+-1%) or square with a - // minimum size of 300x300 pixels and aspect ratio of 1:1 (+-1%) - google.protobuf.StringValue marketing_image = 3; - - // Headline of the marketing image. - google.protobuf.StringValue marketing_image_headline = 4; - - // Description of the marketing image. - google.protobuf.StringValue marketing_image_description = 5; - - // Display-call-to-action of the marketing image. - DisplayCallToAction marketing_image_display_call_to_action = 6; - - // Product images. Up to 15 images are supported. - repeated ProductImage product_images = 7; - - // Product videos. Up to 7 videos are supported. At least one product video - // or a marketing image must be specified. - repeated ProductVideo product_videos = 8; -} - -// Gmail teaser data. The teaser is a small header that acts as an invitation -// to view the rest of the ad (the body). -message GmailTeaser { - // Headline of the teaser. - google.protobuf.StringValue headline = 1; - - // Description of the teaser. - google.protobuf.StringValue description = 2; - - // Business name of the advertiser. - google.protobuf.StringValue business_name = 3; - - // The MediaFile resource name of the logo image. Valid image types are GIF, - // JPEG and PNG. The minimum size is 144x144 pixels and the aspect ratio must - // be 1:1 (+-1%). - google.protobuf.StringValue logo_image = 4; -} - -// Data for display call to action. The call to action is a piece of the ad -// that prompts the user to do something. Like clicking a link or making a phone -// call. -message DisplayCallToAction { - // Text for the display-call-to-action. - google.protobuf.StringValue text = 1; - - // Text color for the display-call-to-action in hexadecimal, e.g. #ffffff for - // white. - google.protobuf.StringValue text_color = 2; - - // Identifies the url collection in the ad.url_collections field. If not set - // the url defaults to final_url. - google.protobuf.StringValue url_collection_id = 3; -} - -// Product image specific data. -message ProductImage { - // The MediaFile resource name of the product image. Valid image types are - // GIF, JPEG and PNG. The minimum size is 300x300 pixels and the aspect ratio - // must be 1:1 (+-1%). - google.protobuf.StringValue product_image = 1; - - // Description of the product. - google.protobuf.StringValue description = 2; - - // Display-call-to-action of the product image. - DisplayCallToAction display_call_to_action = 3; -} - -// Product video specific data. -message ProductVideo { - // The MediaFile resource name of a video which must be hosted on YouTube. - google.protobuf.StringValue product_video = 1; -} - -// An image ad. -message ImageAdInfo { - // Width in pixels of the full size image. - google.protobuf.Int64Value pixel_width = 4; - - // Height in pixels of the full size image. - google.protobuf.Int64Value pixel_height = 5; - - // URL of the full size image. - google.protobuf.StringValue image_url = 6; - - // Width in pixels of the preview size image. - google.protobuf.Int64Value preview_pixel_width = 7; - - // Height in pixels of the preview size image. - google.protobuf.Int64Value preview_pixel_height = 8; - - // URL of the preview size image. - google.protobuf.StringValue preview_image_url = 9; - - // The mime type of the image. - google.ads.googleads.v2.enums.MimeTypeEnum.MimeType mime_type = 10; - - // The name of the image. If the image was created from a MediaFile, this is - // the MediaFile's name. If the image was created from bytes, this is empty. - google.protobuf.StringValue name = 11; - - // The image to create the ImageAd from. This can be specified in one of - // two ways. - // 1. An existing MediaFile resource. - // 2. The raw image data as bytes. - oneof image { - // The MediaFile resource to use for the image. - google.protobuf.StringValue media_file = 1; - - // Raw image data as bytes. - google.protobuf.BytesValue data = 2; - - // An ad ID to copy the image from. - google.protobuf.Int64Value ad_id_to_copy_image_from = 3; - } -} - -// Representation of video bumper in-stream ad format (very short in-stream -// non-skippable video ad). -message VideoBumperInStreamAdInfo { - // The MediaFile resource name of the companion banner used with the ad. - google.protobuf.StringValue companion_banner = 1; -} - -// Representation of video non-skippable in-stream ad format (15 second -// in-stream non-skippable video ad). -message VideoNonSkippableInStreamAdInfo { - // The MediaFile resource name of the companion banner used with the ad. - google.protobuf.StringValue companion_banner = 1; -} - -// 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 -// the video). -message VideoTrueViewInStreamAdInfo { - // Label on the CTA (call-to-action) button taking the user to the video ad's - // final URL. - // Required for TrueView for action campaigns, optional otherwise. - google.protobuf.StringValue action_button_label = 1; - - // Additional text displayed with the CTA (call-to-action) button to give - // context and encourage clicking on the button. - google.protobuf.StringValue action_headline = 2; - - // The MediaFile resource name of the companion banner used with the ad. - google.protobuf.StringValue companion_banner = 3; -} - -// Representation of video out-stream ad format (ad shown alongside a feed -// with automatic playback, without sound). -message VideoOutstreamAdInfo { - // The headline of the ad. - google.protobuf.StringValue headline = 1; - - // The description line. - google.protobuf.StringValue description = 2; -} - -// A video ad. -message VideoAdInfo { - // The MediaFile resource to use for the video. - google.protobuf.StringValue media_file = 1; - - // Format-specific schema for the different video formats. - oneof format { - // Video TrueView in-stream ad format. - VideoTrueViewInStreamAdInfo in_stream = 2; - - // Video bumper in-stream ad format. - VideoBumperInStreamAdInfo bumper = 3; - - // Video out-stream ad format. - VideoOutstreamAdInfo out_stream = 4; - - // Video non-skippable in-stream ad format. - VideoNonSkippableInStreamAdInfo non_skippable = 5; - } -} - -// A responsive search ad. -// -// Responsive search ads let you create an ad that adapts to show more text, and -// more relevant messages, to your customers. Enter multiple headlines and -// descriptions when creating a responsive search ad, and over time, Google Ads -// will automatically test different combinations and learn which combinations -// perform best. By adapting your ad's content to more closely match potential -// customers' search terms, responsive search ads may improve your campaign's -// performance. -// -// More information at https://support.google.com/google-ads/answer/7684791 -message ResponsiveSearchAdInfo { - // List of text assets for headlines. When the ad serves the headlines will - // be selected from this list. - repeated AdTextAsset headlines = 1; - - // List of text assets for descriptions. When the ad serves the descriptions - // will be selected from this list. - repeated AdTextAsset descriptions = 2; - - // First part of text that may appear appended to the url displayed in the ad. - google.protobuf.StringValue path1 = 3; - - // Second part of text that may appear appended to the url displayed in the - // ad. This field can only be set when path1 is also set. - google.protobuf.StringValue path2 = 4; -} - -// A legacy responsive display ad. Ads of this type are labeled 'Responsive ads' -// in the Google Ads UI. -message LegacyResponsiveDisplayAdInfo { - // The short version of the ad's headline. - google.protobuf.StringValue short_headline = 1; - - // The long version of the ad's headline. - google.protobuf.StringValue long_headline = 2; - - // The description of the ad. - google.protobuf.StringValue description = 3; - - // The business name in the ad. - google.protobuf.StringValue business_name = 4; - - // Advertiser's consent to allow flexible color. When true, the ad may be - // served with different color if necessary. When false, the ad will be served - // with the specified colors or a neutral color. - // The default value is true. - // Must be true if main_color and accent_color are not set. - google.protobuf.BoolValue allow_flexible_color = 5; - - // The accent color of the ad in hexadecimal, e.g. #ffffff for white. - // If one of main_color and accent_color is set, the other is required as - // well. - google.protobuf.StringValue accent_color = 6; - - // The main color of the ad in hexadecimal, e.g. #ffffff for white. - // If one of main_color and accent_color is set, the other is required as - // well. - google.protobuf.StringValue main_color = 7; - - // The call-to-action text for the ad. - google.protobuf.StringValue call_to_action_text = 8; - - // The MediaFile resource name of the logo image used in the ad. - google.protobuf.StringValue logo_image = 9; - - // The MediaFile resource name of the square logo image used in the ad. - google.protobuf.StringValue square_logo_image = 10; - - // The MediaFile resource name of the marketing image used in the ad. - google.protobuf.StringValue marketing_image = 11; - - // The MediaFile resource name of the square marketing image used in the ad. - google.protobuf.StringValue square_marketing_image = 12; - - // Specifies which format the ad will be served in. Default is ALL_FORMATS. - google.ads.googleads.v2.enums.DisplayAdFormatSettingEnum.DisplayAdFormatSetting format_setting = 13; - - // Prefix before price. E.g. 'as low as'. - google.protobuf.StringValue price_prefix = 14; - - // Promotion text used for dyanmic formats of responsive ads. For example - // 'Free two-day shipping'. - google.protobuf.StringValue promo_text = 15; -} - -// An app ad. -message AppAdInfo { - // An optional text asset that, if specified, must always be displayed when - // the ad is served. - AdTextAsset mandatory_ad_text = 1; - - // List of text assets for headlines. When the ad serves the headlines will - // be selected from this list. - repeated AdTextAsset headlines = 2; - - // List of text assets for descriptions. When the ad serves the descriptions - // will be selected from this list. - repeated AdTextAsset descriptions = 3; - - // List of image assets that may be displayed with the ad. - repeated AdImageAsset images = 4; - - // List of YouTube video assets that may be displayed with the ad. - repeated AdVideoAsset youtube_videos = 5; - - // List of media bundle assets that may be used with the ad. - repeated AdMediaBundleAsset html5_media_bundles = 6; -} - -// App engagement ads allow you to write text encouraging a specific action in -// the app, like checking in, making a purchase, or booking a flight. -// They allow you to send users to a specific part of your app where they can -// find what they're looking for easier and faster. -message AppEngagementAdInfo { - // List of text assets for headlines. When the ad serves the headlines will - // be selected from this list. - repeated AdTextAsset headlines = 1; - - // List of text assets for descriptions. When the ad serves the descriptions - // will be selected from this list. - repeated AdTextAsset descriptions = 2; - - // List of image assets that may be displayed with the ad. - repeated AdImageAsset images = 3; - - // List of video assets that may be displayed with the ad. - repeated AdVideoAsset videos = 4; -} - -// A legacy app install ad that only can be used by a few select customers. -message LegacyAppInstallAdInfo { - // The id of the mobile app. - google.protobuf.StringValue app_id = 1; - - // The app store the mobile app is available in. - google.ads.googleads.v2.enums.LegacyAppInstallAdAppStoreEnum.LegacyAppInstallAdAppStore app_store = 2; - - // The headline of the ad. - google.protobuf.StringValue headline = 3; - - // The first description line of the ad. - google.protobuf.StringValue description1 = 4; - - // The second description line of the ad. - google.protobuf.StringValue description2 = 5; -} - -// A responsive display ad. -message ResponsiveDisplayAdInfo { - // Marketing images to be used in the ad. Valid image types are GIF, - // JPEG, and PNG. The minimum size is 600x314 and the aspect ratio must - // be 1.91:1 (+-1%). At least one marketing_image is required. Combined with - // square_marketing_images the maximum is 15. - repeated AdImageAsset marketing_images = 1; - - // Square marketing images to be used in the ad. Valid image types are GIF, - // JPEG, and PNG. The minimum size is 300x300 and the aspect ratio must - // be 1:1 (+-1%). At least one square marketing_image is required. Combined - // with marketing_images the maximum is 15. - repeated AdImageAsset square_marketing_images = 2; - - // Logo images to be used in the ad. Valid image types are GIF, - // JPEG, and PNG. The minimum size is 512x128 and the aspect ratio must - // be 4:1 (+-1%). Combined with square_logo_images the maximum is 5. - repeated AdImageAsset logo_images = 3; - - // Square logo images to be used in the ad. Valid image types are GIF, - // JPEG, and PNG. The minimum size is 128x128 and the aspect ratio must - // be 1:1 (+-1%). Combined with square_logo_images the maximum is 5. - repeated AdImageAsset square_logo_images = 4; - - // Short format headlines for the ad. The maximum length is 30 characters. - // At least 1 and max 5 headlines can be specified. - repeated AdTextAsset headlines = 5; - - // A required long format headline. The maximum length is 90 characters. - AdTextAsset long_headline = 6; - - // Descriptive texts for the ad. The maximum length is 90 characters. At - // least 1 and max 5 headlines can be specified. - repeated AdTextAsset descriptions = 7; - - // Optional YouTube videos for the ad. A maximum of 5 videos can be specified. - repeated AdVideoAsset youtube_videos = 8; - - // The advertiser/brand name. Maximum display width is 25. - google.protobuf.StringValue business_name = 9; - - // The main color of the ad in hexadecimal, e.g. #ffffff for white. - // If one of main_color and accent_color is set, the other is required as - // well. - google.protobuf.StringValue main_color = 10; - - // The accent color of the ad in hexadecimal, e.g. #ffffff for white. - // If one of main_color and accent_color is set, the other is required as - // well. - google.protobuf.StringValue accent_color = 11; - - // Advertiser's consent to allow flexible color. When true, the ad may be - // served with different color if necessary. When false, the ad will be served - // with the specified colors or a neutral color. - // The default value is true. - // Must be true if main_color and accent_color are not set. - google.protobuf.BoolValue allow_flexible_color = 12; - - // The call-to-action text for the ad. Maximum display width is 30. - google.protobuf.StringValue call_to_action_text = 13; - - // Prefix before price. E.g. 'as low as'. - google.protobuf.StringValue price_prefix = 14; - - // Promotion text used for dyanmic formats of responsive ads. For example - // 'Free two-day shipping'. - google.protobuf.StringValue promo_text = 15; - - // Specifies which format the ad will be served in. Default is ALL_FORMATS. - google.ads.googleads.v2.enums.DisplayAdFormatSettingEnum.DisplayAdFormatSetting format_setting = 16; -} - -// A generic type of display ad. The exact ad format is controlled by the -// display_upload_product_type field, which determines what kinds of data -// 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.v2.enums.DisplayUploadProductTypeEnum.DisplayUploadProductType display_upload_product_type = 1; - - // The asset data that makes up the ad. - oneof media_asset { - // A media bundle asset to be used in the ad. For information about the - // media bundle for HTML5_UPLOAD_AD see - // https://support.google.com/google-ads/answer/1722096 - // Media bundles that are part of dynamic product types use a special format - // that needs to be created through the Google Web Designer. See - // https://support.google.com/webdesigner/answer/7543898 for more - // information. - AdMediaBundleAsset media_bundle = 2; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v2/common/asset_types.proto b/third_party/googleapis/google/ads/googleads/v2/common/asset_types.proto deleted file mode 100644 index 62aea928e..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/common/asset_types.proto +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.common; - -import "google/ads/googleads/v2/enums/mime_type.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/common;common"; -option java_multiple_files = true; -option java_outer_classname = "AssetTypesProto"; -option java_package = "com.google.ads.googleads.v2.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V2::Common"; - -// Proto file containing info messages for specific asset types. - -// A YouTube asset. -message YoutubeVideoAsset { - // YouTube video id. This is the 11 character string value used in the - // YouTube video URL. - google.protobuf.StringValue youtube_video_id = 1; -} - -// A MediaBundle asset. -message MediaBundleAsset { - // Media bundle (ZIP file) asset data. The format of the uploaded ZIP file - // depends on the ad field where it will be used. For more information on the - // format, see the documentation of the ad field where you plan on using the - // MediaBundleAsset. This field is mutate only. - google.protobuf.BytesValue data = 1; -} - -// An Image asset. -message ImageAsset { - // The raw bytes data of an image. This field is mutate only. - google.protobuf.BytesValue data = 1; - - // File size of the image asset in bytes. - google.protobuf.Int64Value file_size = 2; - - // MIME type of the image asset. - google.ads.googleads.v2.enums.MimeTypeEnum.MimeType mime_type = 3; - - // Metadata for this image at its original size. - ImageDimension full_size = 4; -} - -// Metadata for an image at a certain size, either original or resized. -message ImageDimension { - // Height of the image. - google.protobuf.Int64Value height_pixels = 1; - - // Width of the image. - google.protobuf.Int64Value width_pixels = 2; - - // A URL that returns the image with this height and width. - google.protobuf.StringValue url = 3; -} - -// A Text asset. -message TextAsset { - // Text content of the text asset. - google.protobuf.StringValue text = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/common/bidding.proto b/third_party/googleapis/google/ads/googleads/v2/common/bidding.proto deleted file mode 100644 index 84842f2e8..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/common/bidding.proto +++ /dev/null @@ -1,232 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.common; - -import "google/ads/googleads/v2/enums/page_one_promoted_strategy_goal.proto"; -import "google/ads/googleads/v2/enums/target_impression_share_location.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/common;common"; -option java_multiple_files = true; -option java_outer_classname = "BiddingProto"; -option java_package = "com.google.ads.googleads.v2.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V2::Common"; - -// Proto file describing bidding schemes. - -// Commission is an automatic bidding strategy in which the advertiser pays a -// certain portion of the conversion value. -message Commission { - // Commission rate defines the portion of the conversion value that the - // advertiser will be billed. A commission rate of x should be passed into - // this field as (x * 1,000,000). For example, 106,000 represents a commission - // rate of 0.106 (10.6%). - google.protobuf.Int64Value commission_rate_micros = 1; -} - -// 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 { - -} - -// Manual click-based bidding where user pays per click. -message ManualCpc { - // Whether bids are to be enhanced based on conversion optimizer data. - google.protobuf.BoolValue enhanced_cpc_enabled = 1; -} - -// Manual impression-based bidding where user pays per thousand impressions. -message ManualCpm { - -} - -// View based bidding where user pays per video view. -message ManualCpv { - -} - -// An automated bidding strategy that sets bids to help get the most conversions -// for your campaign while spending your budget. -message MaximizeConversions { - -} - -// An automated bidding strategy which tries to maximize conversion value -// given a daily budget. -message MaximizeConversionValue { - // The target return on ad spend (ROAS) option. If set, the bid strategy will - // maximize revenue while averaging the target return on ad spend. If the - // target ROAS is high, the bid strategy may not be able to spend the full - // budget. If the target ROAS is not set, the bid strategy will aim to - // achieve the highest possible ROAS for the budget. - google.protobuf.DoubleValue target_roas = 1; -} - -// An automated bidding strategy which sets CPC bids to target impressions on -// page one, or page one promoted slots on google.com. -// This strategy is deprecated. -message PageOnePromoted { - // The strategy goal of where impressions are desired to be shown on - // search result pages. - google.ads.googleads.v2.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. - google.protobuf.Int64Value cpc_bid_ceiling_micros = 2; - - // Bid multiplier to be applied to the relevant bid estimate (depending on - // the `strategy_goal`) in determining a keyword's new CPC bid. - google.protobuf.DoubleValue bid_modifier = 3; - - // Whether the strategy should always follow bid estimate changes, or only - // increase. - // If false, always sets a keyword's new bid to the current bid estimate. - // If true, only updates a keyword's bid if the current bid estimate is - // greater than the current bid. - google.protobuf.BoolValue only_raise_cpc_bids = 4; - - // Whether the strategy is allowed to raise bids when the throttling - // rate of the budget it is serving out of rises above a threshold. - google.protobuf.BoolValue raise_cpc_bid_when_budget_constrained = 5; - - // Whether the strategy is allowed to raise bids on keywords with - // lower-range quality scores. - google.protobuf.BoolValue raise_cpc_bid_when_quality_score_is_low = 6; -} - -// An automated bid strategy that sets bids to help get as many conversions as -// possible at the target cost-per-acquisition (CPA) you set. -message TargetCpa { - // Average CPA target. - // This target should be greater than or equal to minimum billable unit based - // on the currency for the account. - google.protobuf.Int64Value target_cpa_micros = 1; - - // Maximum bid limit that can be set by the bid strategy. - // The limit applies to all keywords managed by the strategy. - google.protobuf.Int64Value cpc_bid_ceiling_micros = 2; - - // Minimum bid limit that can be set by the bid strategy. - // The limit applies to all keywords managed by the strategy. - google.protobuf.Int64Value cpc_bid_floor_micros = 3; -} - -// 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 { - -} - -// 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 -// location). -message TargetImpressionShare { - // The targeted location on the search results page. - google.ads.googleads.v2.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. - google.protobuf.Int64Value location_fraction_micros = 2; - - // The highest CPC bid the automated bidding system is permitted to specify. - // This is a required field entered by the advertiser that sets the ceiling - // and specified in local micros. - google.protobuf.Int64Value cpc_bid_ceiling_micros = 3; -} - -// An automated bidding strategy that sets bids based on the target fraction of -// auctions where the advertiser should outrank a specific competitor. -// This strategy is deprecated. -message TargetOutrankShare { - // The target fraction of auctions where the advertiser should outrank the - // competitor. - // The advertiser outranks the competitor in an auction if either the - // advertiser appears above the competitor in the search results, or appears - // in the search results when the competitor does not. - // Value must be between 1 and 1000000, inclusive. - google.protobuf.Int32Value target_outrank_share_micros = 1; - - // Competitor's visible domain URL. - google.protobuf.StringValue competitor_domain = 2; - - // Maximum bid limit that can be set by the bid strategy. - // The limit applies to all keywords managed by the strategy. - google.protobuf.Int64Value cpc_bid_ceiling_micros = 3; - - // Whether the strategy should always follow bid estimate changes, - // or only increase. - // If false, always set a keyword's new bid to the current bid estimate. - // If true, only updates a keyword's bid if the current bid estimate is - // greater than the current bid. - google.protobuf.BoolValue only_raise_cpc_bids = 4; - - // Whether the strategy is allowed to raise bids on keywords with - // lower-range quality scores. - google.protobuf.BoolValue raise_cpc_bid_when_quality_score_is_low = 5; -} - -// An automated bidding strategy that helps you maximize revenue while -// averaging a specific target return on ad spend (ROAS). -message TargetRoas { - // Required. The desired revenue (based on conversion data) per unit of spend. - // Value must be between 0.01 and 1000.0, inclusive. - google.protobuf.DoubleValue target_roas = 1; - - // Maximum bid limit that can be set by the bid strategy. - // The limit applies to all keywords managed by the strategy. - google.protobuf.Int64Value cpc_bid_ceiling_micros = 2; - - // Minimum bid limit that can be set by the bid strategy. - // The limit applies to all keywords managed by the strategy. - google.protobuf.Int64Value cpc_bid_floor_micros = 3; -} - -// An automated bid strategy that sets your bids to help get as many clicks -// as possible within your budget. -message TargetSpend { - // The spend target under which to maximize clicks. - // A TargetSpend bidder will attempt to spend the smaller of this value - // or the natural throttling spend amount. - // If not specified, the budget is used as the spend target. - google.protobuf.Int64Value target_spend_micros = 1; - - // Maximum bid limit that can be set by the bid strategy. - // The limit applies to all keywords managed by the strategy. - google.protobuf.Int64Value cpc_bid_ceiling_micros = 2; -} - -// A bidding strategy where bids are a fraction of the advertised price for -// some good or service. -message PercentCpc { - // Maximum bid limit that can be set by the bid strategy. This is - // an optional field entered by the advertiser and specified in local micros. - // Note: A zero value is interpreted in the same way as having bid_ceiling - // undefined. - google.protobuf.Int64Value cpc_bid_ceiling_micros = 1; - - // Adjusts the bid for each auction upward or downward, depending on the - // likelihood of a conversion. Individual bids may exceed - // cpc_bid_ceiling_micros, but the average bid amount for a campaign should - // not. - google.protobuf.BoolValue enhanced_cpc_enabled = 2; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/common/click_location.proto b/third_party/googleapis/google/ads/googleads/v2/common/click_location.proto deleted file mode 100644 index b4e2f1b96..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/common/click_location.proto +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.common; - -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/common;common"; -option java_multiple_files = true; -option java_outer_classname = "ClickLocationProto"; -option java_package = "com.google.ads.googleads.v2.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V2::Common"; - -// Proto file describing a ClickLocation. - -// Location criteria associated with a click. -message ClickLocation { - // The city location criterion associated with the impression. - google.protobuf.StringValue city = 1; - - // The country location criterion associated with the impression. - google.protobuf.StringValue country = 2; - - // The metro location criterion associated with the impression. - google.protobuf.StringValue metro = 3; - - // The most specific location criterion associated with the impression. - google.protobuf.StringValue most_specific = 4; - - // The region location criterion associated with the impression. - google.protobuf.StringValue region = 5; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/common/criteria.proto b/third_party/googleapis/google/ads/googleads/v2/common/criteria.proto deleted file mode 100644 index 2e6ac5b24..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/common/criteria.proto +++ /dev/null @@ -1,593 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.common; - -import "google/ads/googleads/v2/enums/age_range_type.proto"; -import "google/ads/googleads/v2/enums/app_payment_model_type.proto"; -import "google/ads/googleads/v2/enums/content_label_type.proto"; -import "google/ads/googleads/v2/enums/day_of_week.proto"; -import "google/ads/googleads/v2/enums/device.proto"; -import "google/ads/googleads/v2/enums/gender_type.proto"; -import "google/ads/googleads/v2/enums/hotel_date_selection_type.proto"; -import "google/ads/googleads/v2/enums/income_range_type.proto"; -import "google/ads/googleads/v2/enums/interaction_type.proto"; -import "google/ads/googleads/v2/enums/keyword_match_type.proto"; -import "google/ads/googleads/v2/enums/listing_custom_attribute_index.proto"; -import "google/ads/googleads/v2/enums/listing_group_type.proto"; -import "google/ads/googleads/v2/enums/location_group_radius_units.proto"; -import "google/ads/googleads/v2/enums/minute_of_hour.proto"; -import "google/ads/googleads/v2/enums/parental_status_type.proto"; -import "google/ads/googleads/v2/enums/preferred_content_type.proto"; -import "google/ads/googleads/v2/enums/product_bidding_category_level.proto"; -import "google/ads/googleads/v2/enums/product_channel.proto"; -import "google/ads/googleads/v2/enums/product_channel_exclusivity.proto"; -import "google/ads/googleads/v2/enums/product_condition.proto"; -import "google/ads/googleads/v2/enums/product_type_level.proto"; -import "google/ads/googleads/v2/enums/proximity_radius_units.proto"; -import "google/ads/googleads/v2/enums/webpage_condition_operand.proto"; -import "google/ads/googleads/v2/enums/webpage_condition_operator.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/common;common"; -option java_multiple_files = true; -option java_outer_classname = "CriteriaProto"; -option java_package = "com.google.ads.googleads.v2.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V2::Common"; - -// Proto file describing criteria types. - -// A keyword criterion. -message KeywordInfo { - // The text of the keyword (at most 80 characters and 10 words). - google.protobuf.StringValue text = 1; - - // The match type of the keyword. - google.ads.googleads.v2.enums.KeywordMatchTypeEnum.KeywordMatchType match_type = 2; -} - -// A placement criterion. This can be used to modify bids for sites when -// targeting the content network. -message PlacementInfo { - // URL of the placement. - // - // For example, "http://www.domain.com". - google.protobuf.StringValue url = 1; -} - -// A mobile app category criterion. -message MobileAppCategoryInfo { - // The mobile app category constant resource name. - google.protobuf.StringValue mobile_app_category_constant = 1; -} - -// A mobile application criterion. -message MobileApplicationInfo { - // A string that uniquely identifies a mobile application to Google Ads API. - // The format of this string is "{platform}-{platform_native_id}", where - // platform is "1" for iOS apps and "2" for Android apps, and where - // platform_native_id is the mobile application identifier native to the - // corresponding platform. - // For iOS, this native identifier is the 9 digit string that appears at the - // end of an App Store URL (e.g., "476943146" for "Flood-It! 2" whose App - // Store link is "http://itunes.apple.com/us/app/flood-it!-2/id476943146"). - // For Android, this native identifier is the application's package name - // (e.g., "com.labpixies.colordrips" for "Color Drips" given Google Play link - // "https://play.google.com/store/apps/details?id=com.labpixies.colordrips"). - // A well formed app id for Google Ads API would thus be "1-476943146" for iOS - // and "2-com.labpixies.colordrips" for Android. - // This field is required and must be set in CREATE operations. - google.protobuf.StringValue app_id = 2; - - // Name of this mobile application. - google.protobuf.StringValue name = 3; -} - -// A location criterion. -message LocationInfo { - // The geo target constant resource name. - google.protobuf.StringValue geo_target_constant = 1; -} - -// A device criterion. -message DeviceInfo { - // Type of the device. - google.ads.googleads.v2.enums.DeviceEnum.Device type = 1; -} - -// A preferred content criterion. -message PreferredContentInfo { - // Type of the preferred content. - google.ads.googleads.v2.enums.PreferredContentTypeEnum.PreferredContentType type = 2; -} - -// A listing group criterion. -message ListingGroupInfo { - // Type of the listing group. - google.ads.googleads.v2.enums.ListingGroupTypeEnum.ListingGroupType type = 1; - - // Dimension value with which this listing group is refining its parent. - // Undefined for the root group. - ListingDimensionInfo case_value = 2; - - // Resource name of ad group criterion which is the parent listing group - // subdivision. Null for the root group. - google.protobuf.StringValue parent_ad_group_criterion = 3; -} - -// A listing scope criterion. -message ListingScopeInfo { - // Scope of the campaign criterion. - repeated ListingDimensionInfo dimensions = 2; -} - -// Listing dimensions for listing group criterion. -message ListingDimensionInfo { - // Dimension of one of the types below is always present. - oneof dimension { - // Brand of the listing. - ListingBrandInfo listing_brand = 1; - - // Advertiser-specific hotel ID. - HotelIdInfo hotel_id = 2; - - // Class of the hotel as a number of stars 1 to 5. - HotelClassInfo hotel_class = 3; - - // Country or Region the hotel is located in. - HotelCountryRegionInfo hotel_country_region = 4; - - // State the hotel is located in. - HotelStateInfo hotel_state = 5; - - // City the hotel is located in. - HotelCityInfo hotel_city = 6; - - // Listing custom attribute. - ListingCustomAttributeInfo listing_custom_attribute = 7; - - // Bidding category of a product offer. - ProductBiddingCategoryInfo product_bidding_category = 13; - - // Locality of a product offer. - ProductChannelInfo product_channel = 8; - - // Availability of a product offer. - ProductChannelExclusivityInfo product_channel_exclusivity = 9; - - // Condition of a product offer. - ProductConditionInfo product_condition = 10; - - // Item id of a product offer. - ProductItemIdInfo product_item_id = 11; - - // Type of a product offer. - ProductTypeInfo product_type = 12; - - // Unknown dimension. Set when no other listing dimension is set. - UnknownListingDimensionInfo unknown_listing_dimension = 14; - } -} - -// Brand of the listing. -message ListingBrandInfo { - // String value of the listing brand. - google.protobuf.StringValue value = 1; -} - -// Advertiser-specific hotel ID. -message HotelIdInfo { - // String value of the hotel ID. - google.protobuf.StringValue value = 1; -} - -// Class of the hotel as a number of stars 1 to 5. -message HotelClassInfo { - // Long value of the hotel class. - google.protobuf.Int64Value value = 1; -} - -// Country or Region the hotel is located in. -message HotelCountryRegionInfo { - // The Geo Target Constant resource name. - google.protobuf.StringValue country_region_criterion = 1; -} - -// State the hotel is located in. -message HotelStateInfo { - // The Geo Target Constant resource name. - google.protobuf.StringValue state_criterion = 1; -} - -// City the hotel is located in. -message HotelCityInfo { - // The Geo Target Constant resource name. - google.protobuf.StringValue city_criterion = 1; -} - -// Listing custom attribute. -message ListingCustomAttributeInfo { - // String value of the listing custom attribute. - google.protobuf.StringValue value = 1; - - // Indicates the index of the custom attribute. - google.ads.googleads.v2.enums.ListingCustomAttributeIndexEnum.ListingCustomAttributeIndex index = 2; -} - -// Bidding category of a product offer. -message ProductBiddingCategoryInfo { - // ID of the product bidding category. - // - // This ID is equivalent to the google_product_category ID as described in - // this article: https://support.google.com/merchants/answer/6324436 - google.protobuf.Int64Value id = 1; - - // Two-letter upper-case country code of the product bidding category. It must - // match the campaign.shopping_setting.sales_country field. - google.protobuf.StringValue country_code = 2; - - // Level of the product bidding category. - google.ads.googleads.v2.enums.ProductBiddingCategoryLevelEnum.ProductBiddingCategoryLevel level = 3; -} - -// Locality of a product offer. -message ProductChannelInfo { - // Value of the locality. - google.ads.googleads.v2.enums.ProductChannelEnum.ProductChannel channel = 1; -} - -// Availability of a product offer. -message ProductChannelExclusivityInfo { - // Value of the availability. - google.ads.googleads.v2.enums.ProductChannelExclusivityEnum.ProductChannelExclusivity channel_exclusivity = 1; -} - -// Condition of a product offer. -message ProductConditionInfo { - // Value of the condition. - google.ads.googleads.v2.enums.ProductConditionEnum.ProductCondition condition = 1; -} - -// Item id of a product offer. -message ProductItemIdInfo { - // Value of the id. - google.protobuf.StringValue value = 1; -} - -// Type of a product offer. -message ProductTypeInfo { - // Value of the type. - google.protobuf.StringValue value = 1; - - // Level of the type. - google.ads.googleads.v2.enums.ProductTypeLevelEnum.ProductTypeLevel level = 2; -} - -// Unknown listing dimension. -message UnknownListingDimensionInfo { - -} - -// Criterion for hotel date selection (default dates vs. user selected). -message HotelDateSelectionTypeInfo { - // Type of the hotel date selection - google.ads.googleads.v2.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType type = 1; -} - -// Criterion for number of days prior to the stay the booking is being made. -message HotelAdvanceBookingWindowInfo { - // Low end of the number of days prior to the stay. - google.protobuf.Int64Value min_days = 1; - - // High end of the number of days prior to the stay. - google.protobuf.Int64Value max_days = 2; -} - -// Criterion for length of hotel stay in nights. -message HotelLengthOfStayInfo { - // Low end of the number of nights in the stay. - google.protobuf.Int64Value min_nights = 1; - - // High end of the number of nights in the stay. - google.protobuf.Int64Value max_nights = 2; -} - -// Criterion for day of the week the booking is for. -message HotelCheckInDayInfo { - // The day of the week. - google.ads.googleads.v2.enums.DayOfWeekEnum.DayOfWeek day_of_week = 1; -} - -// Criterion for Interaction Type. -message InteractionTypeInfo { - // The interaction type. - google.ads.googleads.v2.enums.InteractionTypeEnum.InteractionType type = 1; -} - -// Represents an AdSchedule criterion. -// -// AdSchedule is specified as the day of the week and a time interval -// within which ads will be shown. -// -// No more than six AdSchedules can be added for the same day. -message AdScheduleInfo { - // Minutes after the start hour at which this schedule starts. - // - // This field is required for CREATE operations and is prohibited on UPDATE - // operations. - google.ads.googleads.v2.enums.MinuteOfHourEnum.MinuteOfHour start_minute = 1; - - // Minutes after the end hour at which this schedule ends. The schedule is - // exclusive of the end minute. - // - // This field is required for CREATE operations and is prohibited on UPDATE - // operations. - google.ads.googleads.v2.enums.MinuteOfHourEnum.MinuteOfHour end_minute = 2; - - // Starting hour in 24 hour time. - // This field must be between 0 and 23, inclusive. - // - // This field is required for CREATE operations and is prohibited on UPDATE - // operations. - google.protobuf.Int32Value start_hour = 3; - - // Ending hour in 24 hour time; 24 signifies end of the day. - // This field must be between 0 and 24, inclusive. - // - // This field is required for CREATE operations and is prohibited on UPDATE - // operations. - google.protobuf.Int32Value end_hour = 4; - - // Day of the week the schedule applies to. - // - // This field is required for CREATE operations and is prohibited on UPDATE - // operations. - google.ads.googleads.v2.enums.DayOfWeekEnum.DayOfWeek day_of_week = 5; -} - -// An age range criterion. -message AgeRangeInfo { - // Type of the age range. - google.ads.googleads.v2.enums.AgeRangeTypeEnum.AgeRangeType type = 1; -} - -// A gender criterion. -message GenderInfo { - // Type of the gender. - google.ads.googleads.v2.enums.GenderTypeEnum.GenderType type = 1; -} - -// An income range criterion. -message IncomeRangeInfo { - // Type of the income range. - google.ads.googleads.v2.enums.IncomeRangeTypeEnum.IncomeRangeType type = 1; -} - -// A parental status criterion. -message ParentalStatusInfo { - // Type of the parental status. - google.ads.googleads.v2.enums.ParentalStatusTypeEnum.ParentalStatusType type = 1; -} - -// A YouTube Video criterion. -message YouTubeVideoInfo { - // YouTube video id as it appears on the YouTube watch page. - google.protobuf.StringValue video_id = 1; -} - -// A YouTube Channel criterion. -message YouTubeChannelInfo { - // The YouTube uploader channel id or the channel code of a YouTube channel. - google.protobuf.StringValue channel_id = 1; -} - -// A User List criterion. Represents a user list that is defined by the -// advertiser to be targeted. -message UserListInfo { - // The User List resource name. - google.protobuf.StringValue user_list = 1; -} - -// A Proximity criterion. The geo point and radius determine what geographical -// area is included. The address is a description of the geo point that does -// not affect ad serving. -// -// There are two ways to create a proximity. First, by setting an address -// and radius. The geo point will be automatically computed. Second, by -// setting a geo point and radius. The address is an optional label that won't -// be validated. -message ProximityInfo { - // Latitude and longitude. - GeoPointInfo geo_point = 1; - - // The radius of the proximity. - google.protobuf.DoubleValue radius = 2; - - // The unit of measurement of the radius. Default is KILOMETERS. - google.ads.googleads.v2.enums.ProximityRadiusUnitsEnum.ProximityRadiusUnits radius_units = 3; - - // Full address. - AddressInfo address = 4; -} - -// Geo point for proximity criterion. -message GeoPointInfo { - // Micro degrees for the longitude. - google.protobuf.Int32Value longitude_in_micro_degrees = 1; - - // Micro degrees for the latitude. - google.protobuf.Int32Value latitude_in_micro_degrees = 2; -} - -// Address for proximity criterion. -message AddressInfo { - // Postal code. - google.protobuf.StringValue postal_code = 1; - - // Province or state code. - google.protobuf.StringValue province_code = 2; - - // Country code. - google.protobuf.StringValue country_code = 3; - - // Province or state name. - google.protobuf.StringValue province_name = 4; - - // Street address line 1. - google.protobuf.StringValue street_address = 5; - - // Street address line 2. This field is write-only. It is only used for - // calculating the longitude and latitude of an address when geo_point is - // empty. - google.protobuf.StringValue street_address2 = 6; - - // Name of the city. - google.protobuf.StringValue city_name = 7; -} - -// A topic criterion. Use topics to target or exclude placements in the -// Google Display Network based on the category into which the placement falls -// (for example, "Pets & Animals/Pets/Dogs"). -message TopicInfo { - // The Topic Constant resource name. - google.protobuf.StringValue topic_constant = 1; - - // The category to target or exclude. Each subsequent element in the array - // describes a more specific sub-category. For example, - // "Pets & Animals", "Pets", "Dogs" represents the "Pets & Animals/Pets/Dogs" - // category. - repeated google.protobuf.StringValue path = 2; -} - -// A language criterion. -message LanguageInfo { - // The language constant resource name. - google.protobuf.StringValue language_constant = 1; -} - -// An IpBlock criterion used for IP exclusions. We allow: -// - IPv4 and IPv6 addresses -// - individual addresses (192.168.0.1) -// - masks for individual addresses (192.168.0.1/32) -// - masks for Class C networks (192.168.0.1/24) -message IpBlockInfo { - // The IP address of this IP block. - google.protobuf.StringValue ip_address = 1; -} - -// Content Label for category exclusion. -message ContentLabelInfo { - // Content label type, required for CREATE operations. - google.ads.googleads.v2.enums.ContentLabelTypeEnum.ContentLabelType type = 1; -} - -// Represents a Carrier Criterion. -message CarrierInfo { - // The Carrier constant resource name. - google.protobuf.StringValue carrier_constant = 1; -} - -// Represents a particular interest-based topic to be targeted. -message UserInterestInfo { - // The UserInterest resource name. - google.protobuf.StringValue user_interest_category = 1; -} - -// Represents a criterion for targeting webpages of an advertiser's website. -message WebpageInfo { - // The name of the criterion that is defined by this parameter. The name value - // will be used for identifying, sorting and filtering criteria with this type - // of parameters. - // - // This field is required for CREATE operations and is prohibited on UPDATE - // operations. - google.protobuf.StringValue criterion_name = 1; - - // Conditions, or logical expressions, for webpage targeting. The list of - // webpage targeting conditions are and-ed together when evaluated - // for targeting. - // - // This field is required for CREATE operations and is prohibited on UPDATE - // operations. - repeated WebpageConditionInfo conditions = 2; -} - -// Logical expression for targeting webpages of an advertiser's website. -message WebpageConditionInfo { - // Operand of webpage targeting condition. - google.ads.googleads.v2.enums.WebpageConditionOperandEnum.WebpageConditionOperand operand = 1; - - // Operator of webpage targeting condition. - google.ads.googleads.v2.enums.WebpageConditionOperatorEnum.WebpageConditionOperator operator = 2; - - // Argument of webpage targeting condition. - google.protobuf.StringValue argument = 3; -} - -// Represents an operating system version to be targeted. -message OperatingSystemVersionInfo { - // The operating system version constant resource name. - google.protobuf.StringValue operating_system_version_constant = 1; -} - -// An app payment model criterion. -message AppPaymentModelInfo { - // Type of the app payment model. - google.ads.googleads.v2.enums.AppPaymentModelTypeEnum.AppPaymentModelType type = 1; -} - -// A mobile device criterion. -message MobileDeviceInfo { - // The mobile device constant resource name. - google.protobuf.StringValue mobile_device_constant = 1; -} - -// A custom affinity criterion. -// A criterion of this type is only targetable. -message CustomAffinityInfo { - // The CustomInterest resource name. - google.protobuf.StringValue custom_affinity = 1; -} - -// A custom intent criterion. -// A criterion of this type is only targetable. -message CustomIntentInfo { - // The CustomInterest resource name. - google.protobuf.StringValue custom_intent = 1; -} - -// A radius around a list of locations specified via a feed. -message LocationGroupInfo { - // Feed specifying locations for targeting. - // This is required and must be set in CREATE operations. - google.protobuf.StringValue feed = 1; - - // Geo target constant(s) restricting the scope of the geographic area within - // the feed. Currently only one geo target constant is allowed. - repeated google.protobuf.StringValue geo_target_constants = 2; - - // Distance in units specifying the radius around targeted locations. - // This is required and must be set in CREATE operations. - google.protobuf.Int64Value radius = 3; - - // Unit of the radius, miles and meters supported currently. - // This is required and must be set in CREATE operations. - google.ads.googleads.v2.enums.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnits radius_units = 4; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/common/criterion_category_availability.proto b/third_party/googleapis/google/ads/googleads/v2/common/criterion_category_availability.proto deleted file mode 100644 index 6f39b0fb1..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/common/criterion_category_availability.proto +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.common; - -import "google/ads/googleads/v2/enums/advertising_channel_sub_type.proto"; -import "google/ads/googleads/v2/enums/advertising_channel_type.proto"; -import "google/ads/googleads/v2/enums/criterion_category_channel_availability_mode.proto"; -import "google/ads/googleads/v2/enums/criterion_category_locale_availability_mode.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/common;common"; -option java_multiple_files = true; -option java_outer_classname = "CriterionCategoryAvailabilityProto"; -option java_package = "com.google.ads.googleads.v2.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V2::Common"; - -// Proto file describing criterion category availability information. - -// Information of category availability, per advertising channel. -message CriterionCategoryAvailability { - // Channel types and subtypes that are available to the category. - CriterionCategoryChannelAvailability channel = 1; - - // Locales that are available to the category for the channel. - repeated CriterionCategoryLocaleAvailability locale = 2; -} - -// Information of advertising channel type and subtypes a category is available -// in. -message CriterionCategoryChannelAvailability { - // Format of the channel availability. Can be ALL_CHANNELS (the rest of the - // fields will not be set), CHANNEL_TYPE (only advertising_channel_type type - // will be set, the category is available to all sub types under it) or - // CHANNEL_TYPE_AND_SUBTYPES (advertising_channel_type, - // advertising_channel_sub_type, and include_default_channel_sub_type will all - // be set). - google.ads.googleads.v2.enums.CriterionCategoryChannelAvailabilityModeEnum.CriterionCategoryChannelAvailabilityMode availability_mode = 1; - - // Channel type the category is available to. - google.ads.googleads.v2.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 2; - - // Channel subtypes under the channel type the category is available to. - repeated google.ads.googleads.v2.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 - // being false means that the default display campaign where channel sub type - // is not set is not included in this availability configuration. - google.protobuf.BoolValue include_default_channel_sub_type = 4; -} - -// Information about which locales a category is available in. -message CriterionCategoryLocaleAvailability { - // Format of the locale availability. Can be LAUNCHED_TO_ALL (both country and - // 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.v2.enums.CriterionCategoryLocaleAvailabilityModeEnum.CriterionCategoryLocaleAvailabilityMode availability_mode = 1; - - // Code of the country. - google.protobuf.StringValue country_code = 2; - - // Code of the language. - google.protobuf.StringValue language_code = 3; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/common/custom_parameter.proto b/third_party/googleapis/google/ads/googleads/v2/common/custom_parameter.proto deleted file mode 100644 index ae2e9b4b2..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/common/custom_parameter.proto +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.common; - -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/common;common"; -option java_multiple_files = true; -option java_outer_classname = "CustomParameterProto"; -option java_package = "com.google.ads.googleads.v2.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V2::Common"; - -// Proto file describing CustomParameter and operation - -// A mapping that can be used by custom parameter tags in a -// `tracking_url_template`, `final_urls`, or `mobile_final_urls`. -message CustomParameter { - // The key matching the parameter tag name. - google.protobuf.StringValue key = 1; - - // The value to be substituted. - google.protobuf.StringValue value = 2; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/common/dates.proto b/third_party/googleapis/google/ads/googleads/v2/common/dates.proto deleted file mode 100644 index 02e82df22..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/common/dates.proto +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.common; - -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/common;common"; -option java_multiple_files = true; -option java_outer_classname = "DatesProto"; -option java_package = "com.google.ads.googleads.v2.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V2::Common"; - -// Proto file describing date range message. - -// A date range. -message DateRange { - // The start date, in yyyy-mm-dd format. This date is inclusive. - google.protobuf.StringValue start_date = 1; - - // The end date, in yyyy-mm-dd format. This date is inclusive. - google.protobuf.StringValue end_date = 2; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/common/explorer_auto_optimizer_setting.proto b/third_party/googleapis/google/ads/googleads/v2/common/explorer_auto_optimizer_setting.proto deleted file mode 100644 index 7fe154cd8..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/common/explorer_auto_optimizer_setting.proto +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.common; - -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/common;common"; -option java_multiple_files = true; -option java_outer_classname = "ExplorerAutoOptimizerSettingProto"; -option java_package = "com.google.ads.googleads.v2.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V2::Common"; - -// Proto file describing ExplorerAutoOptimizerSetting - -// Settings for the Display Campaign Optimizer, initially named "Explorer". -// Learn more about -// [automatic targeting](https://support.google.com/google-ads/answer/190596). -message ExplorerAutoOptimizerSetting { - // Indicates whether the optimizer is turned on. - google.protobuf.BoolValue opt_in = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/common/extensions.proto b/third_party/googleapis/google/ads/googleads/v2/common/extensions.proto deleted file mode 100644 index 9c5e91569..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/common/extensions.proto +++ /dev/null @@ -1,357 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.common; - -import "google/ads/googleads/v2/common/custom_parameter.proto"; -import "google/ads/googleads/v2/common/feed_common.proto"; -import "google/ads/googleads/v2/enums/app_store.proto"; -import "google/ads/googleads/v2/enums/call_conversion_reporting_state.proto"; -import "google/ads/googleads/v2/enums/price_extension_price_qualifier.proto"; -import "google/ads/googleads/v2/enums/price_extension_price_unit.proto"; -import "google/ads/googleads/v2/enums/price_extension_type.proto"; -import "google/ads/googleads/v2/enums/promotion_extension_discount_modifier.proto"; -import "google/ads/googleads/v2/enums/promotion_extension_occasion.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/common;common"; -option java_multiple_files = true; -option java_outer_classname = "ExtensionsProto"; -option java_package = "com.google.ads.googleads.v2.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V2::Common"; - -// Proto file describing extension types. - -// Represents an App extension. -message AppFeedItem { - // The visible text displayed when the link is rendered in an ad. - // This string must not be empty, and the length of this string should - // be between 1 and 25, inclusive. - google.protobuf.StringValue link_text = 1; - - // The store-specific ID for the target application. - // This string must not be empty. - google.protobuf.StringValue app_id = 2; - - // The application store that the target application belongs to. - // This field is required. - google.ads.googleads.v2.enums.AppStoreEnum.AppStore app_store = 3; - - // A list of possible final URLs after all cross domain redirects. - // This list must not be empty. - repeated google.protobuf.StringValue final_urls = 4; - - // A list of possible final mobile URLs after all cross domain redirects. - repeated google.protobuf.StringValue final_mobile_urls = 5; - - // URL template for constructing a tracking URL. Default value is "{lpurl}". - google.protobuf.StringValue tracking_url_template = 6; - - // A list of mappings to be used for substituting URL custom parameter tags in - // the tracking_url_template, final_urls, and/or final_mobile_urls. - repeated CustomParameter url_custom_parameters = 7; - - // URL template for appending params to landing page URLs served with parallel - // tracking. - google.protobuf.StringValue final_url_suffix = 8; -} - -// Represents a Call extension. -message CallFeedItem { - // The advertiser's phone number to append to the ad. - // This string must not be empty. - google.protobuf.StringValue phone_number = 1; - - // Uppercase two-letter country code of the advertiser's phone number. - // This string must not be empty. - google.protobuf.StringValue country_code = 2; - - // Indicates whether call tracking is enabled. By default, call tracking is - // not enabled. - google.protobuf.BoolValue call_tracking_enabled = 3; - - // The conversion action to attribute a call conversion to. If not set a - // default conversion action is used. This field only has effect if - // call_tracking_enabled is set to true. Otherwise this field is ignored. - google.protobuf.StringValue call_conversion_action = 4; - - // If true, disable call conversion tracking. call_conversion_action should - // not be set if this is true. Optional. - google.protobuf.BoolValue call_conversion_tracking_disabled = 5; - - // 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.v2.enums.CallConversionReportingStateEnum.CallConversionReportingState call_conversion_reporting_state = 6; -} - -// Represents a callout extension. -message CalloutFeedItem { - // The callout text. - // The length of this string should be between 1 and 25, inclusive. - google.protobuf.StringValue callout_text = 1; -} - -// Represents a location extension. -message LocationFeedItem { - // The name of the business. - google.protobuf.StringValue business_name = 1; - - // Line 1 of the business address. - google.protobuf.StringValue address_line_1 = 2; - - // Line 2 of the business address. - google.protobuf.StringValue address_line_2 = 3; - - // City of the business address. - google.protobuf.StringValue city = 4; - - // Province of the business address. - google.protobuf.StringValue province = 5; - - // Postal code of the business address. - google.protobuf.StringValue postal_code = 6; - - // Country code of the business address. - google.protobuf.StringValue country_code = 7; - - // Phone number of the business. - google.protobuf.StringValue phone_number = 8; -} - -// Represents an affiliate location extension. -message AffiliateLocationFeedItem { - // The name of the business. - google.protobuf.StringValue business_name = 1; - - // Line 1 of the business address. - google.protobuf.StringValue address_line_1 = 2; - - // Line 2 of the business address. - google.protobuf.StringValue address_line_2 = 3; - - // City of the business address. - google.protobuf.StringValue city = 4; - - // Province of the business address. - google.protobuf.StringValue province = 5; - - // Postal code of the business address. - google.protobuf.StringValue postal_code = 6; - - // Country code of the business address. - google.protobuf.StringValue country_code = 7; - - // Phone number of the business. - google.protobuf.StringValue phone_number = 8; - - // Id of the retail chain that is advertised as a seller of your product. - google.protobuf.Int64Value chain_id = 9; - - // Name of chain. - google.protobuf.StringValue chain_name = 10; -} - -// An extension that users can click on to send a text message to the -// advertiser. -message TextMessageFeedItem { - // The business name to prepend to the message text. - // This field is required. - google.protobuf.StringValue business_name = 1; - - // Uppercase two-letter country code of the advertiser's phone number. - // This field is required. - google.protobuf.StringValue country_code = 2; - - // The advertiser's phone number the message will be sent to. Required. - google.protobuf.StringValue phone_number = 3; - - // The text to show in the ad. - // This field is required. - google.protobuf.StringValue text = 4; - - // The message text populated in the messaging app. - google.protobuf.StringValue extension_text = 5; -} - -// Represents a Price extension. -message PriceFeedItem { - // Price extension type of this extension. - google.ads.googleads.v2.enums.PriceExtensionTypeEnum.PriceExtensionType type = 1; - - // Price qualifier for all offers of this price extension. - google.ads.googleads.v2.enums.PriceExtensionPriceQualifierEnum.PriceExtensionPriceQualifier price_qualifier = 2; - - // Tracking URL template for all offers of this price extension. - google.protobuf.StringValue tracking_url_template = 3; - - // The code of the language used for this price extension. - google.protobuf.StringValue language_code = 4; - - // The price offerings in this price extension. - repeated PriceOffer price_offerings = 5; - - // URL template for appending params to landing page URLs served with parallel - // tracking. - google.protobuf.StringValue final_url_suffix = 6; -} - -// Represents one price offer in a price extension. -message PriceOffer { - // Header text of this offer. - google.protobuf.StringValue header = 1; - - // Description text of this offer. - google.protobuf.StringValue description = 2; - - // Price value of this offer. - Money price = 3; - - // Price unit for this offer. - google.ads.googleads.v2.enums.PriceExtensionPriceUnitEnum.PriceExtensionPriceUnit unit = 4; - - // A list of possible final URLs after all cross domain redirects. - repeated google.protobuf.StringValue final_urls = 5; - - // A list of possible final mobile URLs after all cross domain redirects. - repeated google.protobuf.StringValue final_mobile_urls = 6; -} - -// Represents a Promotion extension. -message PromotionFeedItem { - // A freeform description of what the promotion is targeting. - // This field is required. - google.protobuf.StringValue promotion_target = 1; - - // Enum that modifies the qualification of the discount. - google.ads.googleads.v2.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier discount_modifier = 2; - - // Start date of when the promotion is eligible to be redeemed. - google.protobuf.StringValue promotion_start_date = 7; - - // End date of when the promotion is eligible to be redeemed. - google.protobuf.StringValue promotion_end_date = 8; - - // 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.v2.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion occasion = 9; - - // A list of possible final URLs after all cross domain redirects. - // This field is required. - repeated google.protobuf.StringValue final_urls = 10; - - // A list of possible final mobile URLs after all cross domain redirects. - repeated google.protobuf.StringValue final_mobile_urls = 11; - - // URL template for constructing a tracking URL. - google.protobuf.StringValue tracking_url_template = 12; - - // A list of mappings to be used for substituting URL custom parameter tags in - // the tracking_url_template, final_urls, and/or final_mobile_urls. - repeated CustomParameter url_custom_parameters = 13; - - // URL template for appending params to landing page URLs served with parallel - // tracking. - google.protobuf.StringValue final_url_suffix = 14; - - // The language of the promotion. - // Represented as BCP 47 language tag. - google.protobuf.StringValue language_code = 15; - - // Discount type, can be percentage off or amount off. - oneof discount_type { - // Percentage off discount in the promotion in micros. - // One million is equivalent to one percent. - // Either this or money_off_amount is required. - google.protobuf.Int64Value percent_off = 3; - - // Money amount off for discount in the promotion. - // Either this or percent_off is required. - Money money_amount_off = 4; - } - - // Promotion trigger. Can be by promotion code or promo by eligible order - // amount. - oneof promotion_trigger { - // A code the user should use in order to be eligible for the promotion. - google.protobuf.StringValue promotion_code = 5; - - // The amount the total order needs to be for the user to be eligible for - // the promotion. - Money orders_over_amount = 6; - } -} - -// Represents a structured snippet extension. -message StructuredSnippetFeedItem { - // The header of the snippet. - // This string must not be empty. - google.protobuf.StringValue header = 1; - - // The values in the snippet. - // The maximum size of this collection is 10. - repeated google.protobuf.StringValue values = 2; -} - -// Represents a sitelink extension. -message SitelinkFeedItem { - // URL display text for the sitelink. - // The length of this string should be between 1 and 25, inclusive. - google.protobuf.StringValue link_text = 1; - - // First line of the description for the sitelink. - // If this value is set, line2 must also be set. - // The length of this string should be between 0 and 35, inclusive. - google.protobuf.StringValue line1 = 2; - - // Second line of the description for the sitelink. - // If this value is set, line1 must also be set. - // The length of this string should be between 0 and 35, inclusive. - google.protobuf.StringValue line2 = 3; - - // A list of possible final URLs after all cross domain redirects. - repeated google.protobuf.StringValue final_urls = 4; - - // A list of possible final mobile URLs after all cross domain redirects. - repeated google.protobuf.StringValue final_mobile_urls = 5; - - // URL template for constructing a tracking URL. - google.protobuf.StringValue tracking_url_template = 6; - - // A list of mappings to be used for substituting URL custom parameter tags in - // the tracking_url_template, final_urls, and/or final_mobile_urls. - repeated CustomParameter url_custom_parameters = 7; - - // Final URL suffix to be appended to landing page URLs served with - // parallel tracking. - google.protobuf.StringValue final_url_suffix = 8; -} - -// Represents a hotel callout extension. -message HotelCalloutFeedItem { - // The callout text. - // The length of this string should be between 1 and 25, inclusive. - google.protobuf.StringValue text = 1; - - // The language of the hotel callout text. - // IETF BCP 47 compliant language code. - google.protobuf.StringValue language_code = 2; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/common/feed_common.proto b/third_party/googleapis/google/ads/googleads/v2/common/feed_common.proto deleted file mode 100644 index f759bf5d2..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/common/feed_common.proto +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.common; - -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/common;common"; -option java_multiple_files = true; -option java_outer_classname = "FeedCommonProto"; -option java_package = "com.google.ads.googleads.v2.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V2::Common"; - -// Proto file describing common feed proto messages. - -// Represents a price in a particular currency. -message Money { - // Three-character ISO 4217 currency code. - google.protobuf.StringValue currency_code = 1; - - // Amount in micros. One million is equivalent to one unit. - google.protobuf.Int64Value amount_micros = 2; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/common/final_app_url.proto b/third_party/googleapis/google/ads/googleads/v2/common/final_app_url.proto deleted file mode 100644 index 573ce3972..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/common/final_app_url.proto +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.common; - -import "google/ads/googleads/v2/enums/app_url_operating_system_type.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/common;common"; -option java_multiple_files = true; -option java_outer_classname = "FinalAppUrlProto"; -option java_package = "com.google.ads.googleads.v2.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V2::Common"; - -// Proto file FinalAppUrl type. - -// 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.v2.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 - // {scheme}://{host_path} - // The scheme identifies which app to open. For your app, you can use a custom - // scheme that starts with the app's name. The host and path specify the - // unique location in the app where your content exists. - // Example: "exampleapp://productid_1234". Required. - google.protobuf.StringValue url = 2; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/common/frequency_cap.proto b/third_party/googleapis/google/ads/googleads/v2/common/frequency_cap.proto deleted file mode 100644 index f170f51f6..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/common/frequency_cap.proto +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.common; - -import "google/ads/googleads/v2/enums/frequency_cap_event_type.proto"; -import "google/ads/googleads/v2/enums/frequency_cap_level.proto"; -import "google/ads/googleads/v2/enums/frequency_cap_time_unit.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/common;common"; -option java_multiple_files = true; -option java_outer_classname = "FrequencyCapProto"; -option java_package = "com.google.ads.googleads.v2.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V2::Common"; - -// Proto file describing frequency caps. - -// A rule specifying the maximum number of times an ad (or some set of ads) can -// be shown to a user over a particular time period. -message FrequencyCapEntry { - // The key of a particular frequency cap. There can be no more - // than one frequency cap with the same key. - FrequencyCapKey key = 1; - - // Maximum number of events allowed during the time range by this cap. - google.protobuf.Int32Value cap = 2; -} - -// A group of fields used as keys for a frequency cap. -// There can be no more than one frequency cap with the same key. -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.v2.enums.FrequencyCapLevelEnum.FrequencyCapLevel level = 1; - - // The type of event that the cap applies to (e.g. impression). - google.ads.googleads.v2.enums.FrequencyCapEventTypeEnum.FrequencyCapEventType event_type = 3; - - // Unit of time the cap is defined at (e.g. day, week). - google.ads.googleads.v2.enums.FrequencyCapTimeUnitEnum.FrequencyCapTimeUnit time_unit = 2; - - // Number of time units the cap lasts. - google.protobuf.Int32Value time_length = 4; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/common/keyword_plan_common.proto b/third_party/googleapis/google/ads/googleads/v2/common/keyword_plan_common.proto deleted file mode 100644 index f7a56609e..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/common/keyword_plan_common.proto +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.common; - -import "google/ads/googleads/v2/enums/keyword_plan_competition_level.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/common;common"; -option java_multiple_files = true; -option java_outer_classname = "KeywordPlanCommonProto"; -option java_package = "com.google.ads.googleads.v2.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V2::Common"; - -// Proto file describing Keyword Planner messages. - -// Historical metrics specific to the targeting options selected. -// Targeting options include geographies, network, etc. -// Refer to https://support.google.com/google-ads/answer/3022575 for more -// details. -message KeywordPlanHistoricalMetrics { - // Approximate number of monthly searches on this query averaged - // for the past 12 months. - google.protobuf.Int64Value avg_monthly_searches = 1; - - // The competition level for the query. - google.ads.googleads.v2.enums.KeywordPlanCompetitionLevelEnum.KeywordPlanCompetitionLevel competition = 2; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/common/matching_function.proto b/third_party/googleapis/google/ads/googleads/v2/common/matching_function.proto deleted file mode 100644 index ef0b3dad6..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/common/matching_function.proto +++ /dev/null @@ -1,127 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.common; - -import "google/ads/googleads/v2/enums/matching_function_context_type.proto"; -import "google/ads/googleads/v2/enums/matching_function_operator.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/common;common"; -option java_multiple_files = true; -option java_outer_classname = "MatchingFunctionProto"; -option java_package = "com.google.ads.googleads.v2.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V2::Common"; - -// Proto file describing a matching function. - -// Matching function associated with a -// CustomerFeed, CampaignFeed, or AdGroupFeed. The matching function is used -// to filter the set of feed items selected. -message MatchingFunction { - // String representation of the Function. - // - // Examples: - // - // 1. IDENTITY(true) or IDENTITY(false). All or no feed items served. - // 2. EQUALS(CONTEXT.DEVICE,"Mobile") - // 3. IN(FEED_ITEM_ID,{1000001,1000002,1000003}) - // 4. CONTAINS_ANY(FeedAttribute[12345678,0],{"Mars cruise","Venus cruise"}) - // 5. AND(IN(FEED_ITEM_ID,{10001,10002}),EQUALS(CONTEXT.DEVICE,"Mobile")) - // - // For more details, visit - // https://developers.google.com/adwords/api/docs/guides/feed-matching-functions - // - // Note that because multiple strings may represent the same underlying - // function (whitespace and single versus double quotation marks, for - // example), the value returned may not be identical to the string sent in a - // mutate request. - google.protobuf.StringValue function_string = 1; - - // Operator for a function. - google.ads.googleads.v2.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. - repeated Operand left_operands = 2; - - // The operands on the right hand side of the equation. - repeated Operand right_operands = 3; -} - -// An operand in a matching function. -message Operand { - // A constant operand in a matching function. - message ConstantOperand { - // Constant operand values. Required. - oneof constant_operand_value { - // String value of the operand if it is a string type. - google.protobuf.StringValue string_value = 1; - - // Int64 value of the operand if it is a int64 type. - google.protobuf.Int64Value long_value = 2; - - // Boolean value of the operand if it is a boolean type. - google.protobuf.BoolValue boolean_value = 3; - - // Double value of the operand if it is a double type. - google.protobuf.DoubleValue double_value = 4; - } - } - - // A feed attribute operand in a matching function. - // Used to represent a feed attribute in feed. - message FeedAttributeOperand { - // The associated feed. Required. - google.protobuf.Int64Value feed_id = 1; - - // Id of the referenced feed attribute. Required. - google.protobuf.Int64Value feed_attribute_id = 2; - } - - // A function operand in a matching function. - // Used to represent nested functions. - message FunctionOperand { - // The matching function held in this operand. - MatchingFunction matching_function = 1; - } - - // 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.v2.enums.MatchingFunctionContextTypeEnum.MatchingFunctionContextType context_type = 1; - } - - // Different operands that can be used in a matching function. Required. - oneof function_argument_operand { - // A constant operand in a matching function. - ConstantOperand constant_operand = 1; - - // This operand specifies a feed attribute in feed. - FeedAttributeOperand feed_attribute_operand = 2; - - // A function operand in a matching function. - // Used to represent nested functions. - FunctionOperand function_operand = 3; - - // An operand in a function referring to a value in the request context. - RequestContextOperand request_context_operand = 4; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v2/common/metrics.proto b/third_party/googleapis/google/ads/googleads/v2/common/metrics.proto deleted file mode 100644 index cf68ada1c..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/common/metrics.proto +++ /dev/null @@ -1,556 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.common; - -import "google/ads/googleads/v2/enums/interaction_event_type.proto"; -import "google/ads/googleads/v2/enums/quality_score_bucket.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/common;common"; -option java_multiple_files = true; -option java_outer_classname = "MetricsProto"; -option java_package = "com.google.ads.googleads.v2.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V2::Common"; - -// Proto file describing metrics. - -// Metrics data. -message Metrics { - // The percent of your ad impressions that are shown as the very first ad - // above the organic search results. - google.protobuf.DoubleValue absolute_top_impression_percentage = 95; - - // Average cost of viewable impressions (`active_view_impressions`). - google.protobuf.DoubleValue active_view_cpm = 1; - - // Active view measurable clicks divided by active view viewable impressions. - // This metric is reported only for display network. - google.protobuf.DoubleValue active_view_ctr = 79; - - // A measurement of how often your ad has become viewable on a Display - // Network site. - google.protobuf.Int64Value active_view_impressions = 2; - - // The ratio of impressions that could be measured by Active View over the - // number of served impressions. - google.protobuf.DoubleValue active_view_measurability = 96; - - // The cost of the impressions you received that were measurable by Active - // View. - google.protobuf.Int64Value active_view_measurable_cost_micros = 3; - - // The number of times your ads are appearing on placements in positions - // where they can be seen. - google.protobuf.Int64Value active_view_measurable_impressions = 4; - - // The percentage of time when your ad appeared on an Active View enabled site - // (measurable impressions) and was viewable (viewable impressions). - google.protobuf.DoubleValue active_view_viewability = 97; - - // All conversions from interactions (as oppose to view through conversions) - // divided by the number of ad interactions. - google.protobuf.DoubleValue all_conversions_from_interactions_rate = 65; - - // The value of all conversions. - google.protobuf.DoubleValue all_conversions_value = 66; - - // The total number of conversions. This includes all conversions regardless - // of the value of include_in_conversions_metric. - google.protobuf.DoubleValue all_conversions = 7; - - // The value of all conversions divided by the total cost of ad interactions - // (such as clicks for text ads or views for video ads). - google.protobuf.DoubleValue all_conversions_value_per_cost = 62; - - // The number of times people clicked the "Call" button to call a store during - // or after clicking an ad. This number doesn't include whether or not calls - // were connected, or the duration of any calls. - // This metric applies to feed items only. - google.protobuf.DoubleValue all_conversions_from_click_to_call = 118; - - // The number of times people clicked a "Get directions" button to navigate to - // a store after clicking an ad. - // This metric applies to feed items only. - google.protobuf.DoubleValue all_conversions_from_directions = 119; - - // 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; - - // The number of times people clicked a link to view a store's menu after - // clicking an ad. - // This metric applies to feed items only. - google.protobuf.DoubleValue all_conversions_from_menu = 120; - - // The number of times people placed an order at a store after clicking an ad. - // This metric applies to feed items only. - google.protobuf.DoubleValue all_conversions_from_order = 121; - - // The number of other conversions (for example, posting a review or saving a - // location for a store) that occurred after people clicked an ad. - // This metric applies to feed items only. - google.protobuf.DoubleValue all_conversions_from_other_engagement = 122; - - // Estimated number of times people visited a store after clicking an ad. - // This metric applies to feed items only. - google.protobuf.DoubleValue all_conversions_from_store_visit = 123; - - // The number of times that people were taken to a store's URL after clicking - // an ad. - // This metric applies to feed items only. - google.protobuf.DoubleValue all_conversions_from_store_website = 124; - - // The average amount you pay per interaction. This amount is the total cost - // of your ads divided by the total number of interactions. - google.protobuf.DoubleValue average_cost = 8; - - // The total cost of all clicks divided by the total number of clicks - // received. - google.protobuf.DoubleValue average_cpc = 9; - - // The average amount that you've been charged for an ad engagement. This - // amount is the total cost of all ad engagements divided by the total number - // of ad engagements. - google.protobuf.DoubleValue average_cpe = 98; - - // Average cost-per-thousand impressions (CPM). - google.protobuf.DoubleValue average_cpm = 10; - - // The average amount you pay each time someone views your ad. - // The average CPV is defined by the total cost of all ad views divided by - // the number of views. - google.protobuf.DoubleValue average_cpv = 11; - - // Average number of pages viewed per session. - google.protobuf.DoubleValue average_page_views = 99; - - // Total duration of all sessions (in seconds) / number of sessions. Imported - // from Google Analytics. - google.protobuf.DoubleValue average_time_on_site = 84; - - // An indication of how other advertisers are bidding on similar products. - google.protobuf.DoubleValue benchmark_average_max_cpc = 14; - - // An indication on how other advertisers' Shopping ads for similar products - // are performing based on how often people who see their ad click on it. - google.protobuf.DoubleValue benchmark_ctr = 77; - - // Percentage of clicks where the user only visited a single page on your - // site. Imported from Google Analytics. - google.protobuf.DoubleValue bounce_rate = 15; - - // The number of clicks. - google.protobuf.Int64Value clicks = 19; - - // The number of times your ad or your site's listing in the unpaid - // results was clicked. See the help page at - // https://support.google.com/google-ads/answer/3097241 for details. - google.protobuf.Int64Value combined_clicks = 115; - - // The number of times your ad or your site's listing in the unpaid - // results was clicked (combined_clicks) divided by combined_queries. See the - // help page at https://support.google.com/google-ads/answer/3097241 for - // details. - google.protobuf.DoubleValue combined_clicks_per_query = 116; - - // The number of searches that returned pages from your site in the unpaid - // results or showed one of your text ads. See the help page at - // https://support.google.com/google-ads/answer/3097241 for details. - google.protobuf.Int64Value combined_queries = 117; - - // The estimated percent of times that your ad was eligible to show - // on the Display Network but didn't because your budget was too low. - // Note: Content budget lost 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 content_budget_lost_impression_share = 20; - - // The impressions you've received on the Display Network divided - // by the estimated number of impressions you were eligible to receive. - // Note: Content impression share is reported in the range of 0.1 to 1. Any - // value below 0.1 is reported as 0.0999. - google.protobuf.DoubleValue content_impression_share = 21; - - // The last date/time a conversion tag for this conversion action successfully - // fired and was seen by Google Ads. This firing event may not have been the - // result of an attributable conversion (e.g. because the tag was fired from a - // browser that did not previously click an ad from an appropriate - // advertiser). The date/time is in the customer's time zone. - google.protobuf.StringValue conversion_last_received_request_date_time = 73; - - // The date of the most recent conversion for this conversion action. The date - // is in the customer's time zone. - google.protobuf.StringValue conversion_last_conversion_date = 74; - - // The estimated percentage of impressions on the Display Network - // that your ads didn't receive due to poor Ad Rank. - // Note: Content rank lost 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 content_rank_lost_impression_share = 22; - - // Conversions from interactions divided by the 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. If you use conversion-based bidding, your bid strategies will - // optimize for these conversions. - google.protobuf.DoubleValue conversions_from_interactions_rate = 69; - - // The value of conversions. This only includes conversion actions which - // include_in_conversions_metric attribute is set to true. If you use - // conversion-based bidding, your bid strategies will optimize for these - // conversions. - google.protobuf.DoubleValue conversions_value = 70; - - // The value of conversions divided by the cost of ad interactions. This only - // includes conversion actions which include_in_conversions_metric attribute - // is set to true. If you use conversion-based bidding, your bid strategies - // will optimize for these conversions. - google.protobuf.DoubleValue conversions_value_per_cost = 71; - - // 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. If you use - // conversion-based bidding, your bid strategies will optimize for these - // conversions. - 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. If you use - // conversion-based bidding, your bid strategies will optimize for these - // conversions. - google.protobuf.DoubleValue conversions = 25; - - // The sum of your cost-per-click (CPC) and cost-per-thousand impressions - // (CPM) costs during this period. - google.protobuf.Int64Value cost_micros = 26; - - // The cost of ad interactions divided by all conversions. - google.protobuf.DoubleValue cost_per_all_conversions = 68; - - // The cost of ad interactions divided by conversions. This only includes - // conversion actions which include_in_conversions_metric attribute is set to - // true. If you use conversion-based bidding, your bid strategies will - // optimize for these conversions. - google.protobuf.DoubleValue cost_per_conversion = 28; - - // 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. If you use - // conversion-based bidding, your bid strategies will optimize for these - // conversions. - 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. - // Cross-device conversions are already included in all_conversions. - google.protobuf.DoubleValue cross_device_conversions = 29; - - // The number of clicks your ad receives (Clicks) divided by the number - // of times your ad is shown (Impressions). - google.protobuf.DoubleValue ctr = 30; - - // Shows how your historic conversions data would look under the attribution - // model you've currently selected. This only includes conversion actions - // which include_in_conversions_metric attribute is set to true. If you use - // conversion-based bidding, your bid strategies will optimize for these - // conversions. - google.protobuf.DoubleValue current_model_attributed_conversions = 101; - - // Current model attributed conversions from interactions divided by the - // 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. If you use - // conversion-based bidding, your bid strategies will optimize for these - // conversions. - 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. If you use - // conversion-based bidding, your bid strategies will optimize for these - // conversions. - google.protobuf.DoubleValue current_model_attributed_conversions_from_interactions_value_per_interaction = 103; - - // The value of current model attributed conversions. This only includes - // conversion actions which include_in_conversions_metric attribute is set to - // true. If you use conversion-based bidding, your bid strategies will - // optimize for these conversions. - google.protobuf.DoubleValue current_model_attributed_conversions_value = 104; - - // 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. If you use - // conversion-based bidding, your bid strategies will optimize for these - // conversions. - 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. - google.protobuf.DoubleValue engagement_rate = 31; - - // The number of engagements. - // An engagement occurs when a viewer expands your Lightbox ad. Also, in the - // future, other ad types may support engagement metrics. - google.protobuf.Int64Value engagements = 32; - - // Average lead value based on clicks. - google.protobuf.DoubleValue hotel_average_lead_value_micros = 75; - - // The average price difference between the price offered by reporting hotel - // advertiser and the cheapest price offered by the competing advertiser. - google.protobuf.DoubleValue hotel_price_difference_percentage = 129; - - // The creative historical quality score. - google.ads.googleads.v2.enums.QualityScoreBucketEnum.QualityScoreBucket historical_creative_quality_score = 80; - - // The quality of historical landing page experience. - google.ads.googleads.v2.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.v2.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; - - // The number of times someone has saved your Gmail ad to their inbox as a - // message. - google.protobuf.Int64Value gmail_saves = 86; - - // The number of clicks to the landing page on the expanded state of Gmail - // ads. - google.protobuf.Int64Value gmail_secondary_clicks = 87; - - // The number of times a store's location-based ad was shown. - // This metric applies to feed items only. - google.protobuf.Int64Value impressions_from_store_reach = 125; - - // Count of how often your ad has appeared on a search results page or - // website on the Google Network. - google.protobuf.Int64Value impressions = 37; - - // How often people interact with your ad after it is shown to them. - // This is the number of interactions divided by the number of times your ad - // is shown. - google.protobuf.DoubleValue interaction_rate = 38; - - // The number of interactions. - // An interaction is the main user action associated with an ad format-clicks - // for text and shopping ads, views for video ads, and so on. - google.protobuf.Int64Value interactions = 39; - - // The types of payable and free interactions. - repeated google.ads.googleads.v2.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. - google.protobuf.DoubleValue invalid_click_rate = 40; - - // Number of clicks Google considers illegitimate and doesn't charge you for. - google.protobuf.Int64Value invalid_clicks = 41; - - // Number of message chats initiated for Click To Message impressions that - // were message tracking eligible. - google.protobuf.Int64Value message_chats = 126; - - // Number of Click To Message impressions that were message tracking eligible. - google.protobuf.Int64Value message_impressions = 127; - - // Number of message chats initiated (message_chats) divided by the number - // of message impressions (message_impressions). - // Rate at which a user initiates a message chat from an ad impression with - // a messaging option and message tracking enabled. - // Note that this rate can be more than 1.0 for a given message impression. - google.protobuf.DoubleValue message_chat_rate = 128; - - // The percentage of mobile clicks that go to a mobile-friendly page. - google.protobuf.DoubleValue mobile_friendly_clicks_percentage = 109; - - // The number of times someone clicked your site's listing in the unpaid - // results for a particular query. See the help page at - // https://support.google.com/google-ads/answer/3097241 for details. - google.protobuf.Int64Value organic_clicks = 110; - - // The number of times someone clicked your site's listing in the unpaid - // results (organic_clicks) divided by the total number of searches that - // returned pages from your site (organic_queries). See the help page at - // https://support.google.com/google-ads/answer/3097241 for details. - google.protobuf.DoubleValue organic_clicks_per_query = 111; - - // The number of listings for your site in the unpaid search results. See the - // help page at https://support.google.com/google-ads/answer/3097241 for - // details. - google.protobuf.Int64Value organic_impressions = 112; - - // The number of times a page from your site was listed in the unpaid search - // results (organic_impressions) divided by the number of searches returning - // your site's listing in the unpaid results (organic_queries). See the help - // page at https://support.google.com/google-ads/answer/3097241 for details. - google.protobuf.DoubleValue organic_impressions_per_query = 113; - - // The total number of searches that returned your site's listing in the - // unpaid results. See the help page at - // https://support.google.com/google-ads/answer/3097241 for details. - google.protobuf.Int64Value organic_queries = 114; - - // Percentage of first-time sessions (from people who had never visited your - // site before). Imported from Google Analytics. - google.protobuf.DoubleValue percent_new_visitors = 42; - - // Number of offline phone calls. - google.protobuf.Int64Value phone_calls = 43; - - // Number of offline phone impressions. - google.protobuf.Int64Value phone_impressions = 44; - - // Number of phone calls received (phone_calls) divided by the number of - // times your phone number is shown (phone_impressions). - google.protobuf.DoubleValue phone_through_rate = 45; - - // Your clickthrough rate (Ctr) divided by the average clickthrough rate of - // all advertisers on the websites that show your ads. Measures how your ads - // perform on Display Network sites compared to other ads on the same sites. - google.protobuf.DoubleValue relative_ctr = 46; - - // The percentage of the customer's Shopping or Search ad impressions that are - // shown in the most prominent Shopping position. See - // https://support.google.com/google-ads/answer/7501826 - // for details. Any value below 0.1 is reported as 0.0999. - google.protobuf.DoubleValue search_absolute_top_impression_share = 78; - - // The number estimating how often your ad wasn't the very first ad above the - // 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; - - // 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 - // budget lost 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_impression_share = 47; - - // The number estimating how often your ad didn't show anywhere above the - // organic search results due to a low budget. Note: Search - // budget lost 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_top_impression_share = 89; - - // The number of clicks you've received on the Search Network - // divided by the estimated number of clicks you were eligible to receive. - // Note: Search click share is reported in the range of 0.1 to 1. Any value - // below 0.1 is reported as 0.0999. - google.protobuf.DoubleValue search_click_share = 48; - - // The impressions you've received divided by the estimated number of - // impressions you were eligible to receive on the Search Network for search - // terms that matched your keywords exactly (or were close variants of your - // keyword), regardless of your keyword match types. Note: Search exact match - // impression share is reported in the range of 0.1 to 1. Any value below 0.1 - // is reported as 0.0999. - google.protobuf.DoubleValue search_exact_match_impression_share = 49; - - // The impressions you've received on the Search Network divided - // by the estimated number of impressions you were eligible to receive. - // Note: Search impression share is reported in the range of 0.1 to 1. Any - // value below 0.1 is reported as 0.0999. - google.protobuf.DoubleValue search_impression_share = 50; - - // The number estimating how often your ad wasn't the very first ad above the - // 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; - - // The estimated percentage of impressions on the Search Network - // that your ads didn't receive due to poor Ad Rank. - // Note: Search rank lost 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_impression_share = 51; - - // The number estimating how often your ad didn't show anywhere above the - // organic search results due to poor Ad Rank. - // Note: Search rank lost 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_top_impression_share = 91; - - // The impressions you've received in the top location (anywhere above the - // organic search results) compared to the estimated number of impressions you - // were eligible to receive in the top location. - // Note: Search top impression share is reported in the range of 0.1 to 1. Any - // value below 0.1 is reported as 0.0999. - google.protobuf.DoubleValue search_top_impression_share = 92; - - // A measure of how quickly your page loads after clicks on your mobile ads. - // The score is a range from 1 to 10, 10 being the fastest. - google.protobuf.Int64Value speed_score = 107; - - // The percent of your ad impressions that are shown anywhere above the - // organic search results. - google.protobuf.DoubleValue top_impression_percentage = 93; - - // 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; - - // The value of all conversions divided by the number of all conversions. - google.protobuf.DoubleValue value_per_all_conversions = 52; - - // The value of conversions divided by the number of conversions. This only - // includes conversion actions which include_in_conversions_metric attribute - // is set to true. If you use conversion-based bidding, your bid strategies - // will optimize for these conversions. - google.protobuf.DoubleValue value_per_conversion = 53; - - // 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. If you use - // conversion-based bidding, your bid strategies will optimize for these - // conversions. - 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; - - // Percentage of impressions where the viewer watched 25% of your video. - google.protobuf.DoubleValue video_quartile_25_rate = 55; - - // Percentage of impressions where the viewer watched 50% of your video. - google.protobuf.DoubleValue video_quartile_50_rate = 56; - - // Percentage of impressions where the viewer watched 75% of your video. - google.protobuf.DoubleValue video_quartile_75_rate = 57; - - // The number of views your TrueView video ad receives divided by its number - // of impressions, including thumbnail impressions for TrueView in-display - // ads. - google.protobuf.DoubleValue video_view_rate = 58; - - // The number of times your video ads were viewed. - google.protobuf.Int64Value video_views = 59; - - // The total number of view-through conversions. - // These happen when a customer sees an image or rich media ad, then later - // completes a conversion on your site without interacting with (e.g., - // clicking on) another ad. - google.protobuf.Int64Value view_through_conversions = 60; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/common/policy.proto b/third_party/googleapis/google/ads/googleads/v2/common/policy.proto deleted file mode 100644 index 2e8ea35dc..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/common/policy.proto +++ /dev/null @@ -1,223 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.common; - -import "google/ads/googleads/v2/enums/policy_topic_entry_type.proto"; -import "google/ads/googleads/v2/enums/policy_topic_evidence_destination_mismatch_url_type.proto"; -import "google/ads/googleads/v2/enums/policy_topic_evidence_destination_not_working_device.proto"; -import "google/ads/googleads/v2/enums/policy_topic_evidence_destination_not_working_dns_error_type.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/common;common"; -option java_multiple_files = true; -option java_outer_classname = "PolicyProto"; -option java_package = "com.google.ads.googleads.v2.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V2::Common"; - -// Proto file describing policy information. - -// Key of the violation. The key is used for referring to a violation -// when filing an exemption request. -message PolicyViolationKey { - // Unique ID of the violated policy. - google.protobuf.StringValue policy_name = 1; - - // The text that violates the policy if specified. - // Otherwise, refers to the policy in general - // (e.g., when requesting to be exempt from the whole policy). - // If not specified for criterion exemptions, the whole policy is implied. - // Must be specified for ad exemptions. - google.protobuf.StringValue violating_text = 2; -} - -// Parameter for controlling how policy exemption is done. Ignorable policy -// topics are only usable with expanded text ads and responsive search ads. All -// other ad types must use policy violation keys. -message PolicyValidationParameter { - // The list of policy topics that should not cause a PolicyFindingError to - // be reported. This field is currently only compatible with Enhanced Text Ad. - // It corresponds to the PolicyTopicEntry.topic field. - // - // Resources violating these policies will be saved, but will not be eligible - // to serve. They may begin serving at a later time due to a change in - // policies, re-review of the resource, or a change in advertiser - // certificates. - repeated google.protobuf.StringValue ignorable_policy_topics = 1; - - // The list of policy violation keys that should not cause a - // PolicyViolationError to be reported. Not all policy violations are - // exemptable, please refer to the is_exemptible field in the returned - // PolicyViolationError. - // - // Resources violating these polices will be saved, but will not be eligible - // to serve. They may begin serving at a later time due to a change in - // policies, re-review of the resource, or a change in advertiser - // certificates. - repeated PolicyViolationKey exempt_policy_violation_keys = 2; -} - -// Policy finding attached to a resource (e.g. alcohol policy associated with -// a site that sells alcohol). -// -// Each PolicyTopicEntry has a topic that indicates the specific ads policy -// the entry is about and a type to indicate the effect that the entry will have -// on serving. It may optionally have one or more evidences that indicate the -// reason for the finding. It may also optionally have one or more constraints -// that provide details about how serving may be restricted. -message PolicyTopicEntry { - // Policy topic this finding refers to. For example, "ALCOHOL", - // "TRADEMARKS_IN_AD_TEXT", or "DESTINATION_NOT_WORKING". The set of possible - // policy topics is not fixed for a particular API version and may change - // at any time. - google.protobuf.StringValue topic = 1; - - // Describes the negative or positive effect this policy will have on serving. - google.ads.googleads.v2.enums.PolicyTopicEntryTypeEnum.PolicyTopicEntryType type = 2; - - // Additional information that explains policy finding - // (e.g. the brand name for a trademark finding). - repeated PolicyTopicEvidence evidences = 3; - - // Indicates how serving of this resource may be affected (e.g. not serving - // in a country). - repeated PolicyTopicConstraint constraints = 4; -} - -// Additional information that explains a policy finding. -message PolicyTopicEvidence { - // A list of fragments of text that violated a policy. - message TextList { - // The fragments of text from the resource that caused the policy finding. - repeated google.protobuf.StringValue texts = 1; - } - - // A list of websites that caused a policy finding. Used for - // ONE_WEBSITE_PER_AD_GROUP policy topic, for example. In case there are more - // than five websites, only the top five (those that appear in resources the - // most) will be listed here. - message WebsiteList { - // Websites that caused the policy finding. - repeated google.protobuf.StringValue websites = 1; - } - - // A list of strings found in a destination page that caused a policy - // finding. - message DestinationTextList { - // List of text found in the resource's destination page. - repeated google.protobuf.StringValue destination_texts = 1; - } - - // 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.v2.enums.PolicyTopicEvidenceDestinationMismatchUrlTypeEnum.PolicyTopicEvidenceDestinationMismatchUrlType url_types = 1; - } - - // Evidence details when the destination is returning an HTTP error - // code or isn't functional in all locations for commonly used devices. - message DestinationNotWorking { - // The full URL that didn't work. - google.protobuf.StringValue expanded_url = 3; - - // The type of device that failed to load the URL. - google.ads.googleads.v2.enums.PolicyTopicEvidenceDestinationNotWorkingDeviceEnum.PolicyTopicEvidenceDestinationNotWorkingDevice device = 4; - - // The time the URL was last checked. - // The format is "YYYY-MM-DD HH:MM:SS". - // Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30" - google.protobuf.StringValue last_checked_date_time = 5; - - // Indicates the reason of the DESTINATION_NOT_WORKING policy finding. - oneof reason { - // The type of DNS error. - google.ads.googleads.v2.enums.PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum.PolicyTopicEvidenceDestinationNotWorkingDnsErrorType dns_error_type = 1; - - // The HTTP error code. - google.protobuf.Int64Value http_error_code = 2; - } - } - - // Specific evidence information depending on the evidence type. - oneof value { - // List of websites linked with this resource. - WebsiteList website_list = 3; - - // List of evidence found in the text of a resource. - TextList text_list = 4; - - // The language the resource was detected to be written in. - // This is an IETF language tag such as "en-US". - google.protobuf.StringValue language_code = 5; - - // The text in the destination of the resource that is causing a policy - // finding. - DestinationTextList destination_text_list = 6; - - // Mismatch between the destinations of a resource's URLs. - DestinationMismatch destination_mismatch = 7; - - // Details when the destination is returning an HTTP error code or isn't - // functional in all locations for commonly used devices. - DestinationNotWorking destination_not_working = 8; - } -} - -// Describes the effect on serving that a policy topic entry will have. -message PolicyTopicConstraint { - // A list of countries where a resource's serving is constrained. - message CountryConstraintList { - // Total number of countries targeted by the resource. - google.protobuf.Int32Value total_targeted_countries = 1; - - // Countries in which serving is restricted. - repeated CountryConstraint countries = 2; - } - - // Indicates that a policy topic was constrained due to disapproval of the - // website for reseller purposes. - message ResellerConstraint { - - } - - // Indicates that a resource's ability to serve in a particular country is - // constrained. - message CountryConstraint { - // Geo target constant resource name of the country in which serving is - // constrained. - google.protobuf.StringValue country_criterion = 1; - } - - // Specific information about the constraint. - oneof value { - // Countries where the resource cannot serve. - CountryConstraintList country_constraint_list = 1; - - // Reseller constraint. - ResellerConstraint reseller_constraint = 2; - - // Countries where a certificate is required for serving. - CountryConstraintList certificate_missing_in_country_list = 3; - - // Countries where the resource's domain is not covered by the - // certificates associated with it. - CountryConstraintList certificate_domain_mismatch_in_country_list = 4; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v2/common/real_time_bidding_setting.proto b/third_party/googleapis/google/ads/googleads/v2/common/real_time_bidding_setting.proto deleted file mode 100644 index 356ecfc71..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/common/real_time_bidding_setting.proto +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.common; - -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/common;common"; -option java_multiple_files = true; -option java_outer_classname = "RealTimeBiddingSettingProto"; -option java_package = "com.google.ads.googleads.v2.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V2::Common"; - -// Proto file describing RealTimeBiddingSetting - -// Settings for Real-Time Bidding, a feature only available for campaigns -// targeting the Ad Exchange network. -message RealTimeBiddingSetting { - // Whether the campaign is opted in to real-time bidding. - google.protobuf.BoolValue opt_in = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/common/segments.proto b/third_party/googleapis/google/ads/googleads/v2/common/segments.proto deleted file mode 100644 index 54d141d5a..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/common/segments.proto +++ /dev/null @@ -1,313 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.common; - -import "google/ads/googleads/v2/common/criteria.proto"; -import "google/ads/googleads/v2/enums/ad_network_type.proto"; -import "google/ads/googleads/v2/enums/click_type.proto"; -import "google/ads/googleads/v2/enums/conversion_action_category.proto"; -import "google/ads/googleads/v2/enums/conversion_attribution_event_type.proto"; -import "google/ads/googleads/v2/enums/conversion_lag_bucket.proto"; -import "google/ads/googleads/v2/enums/conversion_or_adjustment_lag_bucket.proto"; -import "google/ads/googleads/v2/enums/day_of_week.proto"; -import "google/ads/googleads/v2/enums/device.proto"; -import "google/ads/googleads/v2/enums/external_conversion_source.proto"; -import "google/ads/googleads/v2/enums/hotel_date_selection_type.proto"; -import "google/ads/googleads/v2/enums/hotel_price_bucket.proto"; -import "google/ads/googleads/v2/enums/hotel_rate_type.proto"; -import "google/ads/googleads/v2/enums/month_of_year.proto"; -import "google/ads/googleads/v2/enums/placeholder_type.proto"; -import "google/ads/googleads/v2/enums/product_channel.proto"; -import "google/ads/googleads/v2/enums/product_channel_exclusivity.proto"; -import "google/ads/googleads/v2/enums/product_condition.proto"; -import "google/ads/googleads/v2/enums/search_engine_results_page_type.proto"; -import "google/ads/googleads/v2/enums/search_term_match_type.proto"; -import "google/ads/googleads/v2/enums/slot.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/common;common"; -option java_multiple_files = true; -option java_outer_classname = "SegmentsProto"; -option java_package = "com.google.ads.googleads.v2.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V2::Common"; - -// Proto file describing segment only fields. - -// Segment only fields. -message Segments { - // Ad network type. - google.ads.googleads.v2.enums.AdNetworkTypeEnum.AdNetworkType ad_network_type = 3; - - // Click type. - google.ads.googleads.v2.enums.ClickTypeEnum.ClickType click_type = 26; - - // Resource name of the conversion action. - google.protobuf.StringValue conversion_action = 52; - - // Conversion action category. - google.ads.googleads.v2.enums.ConversionActionCategoryEnum.ConversionActionCategory conversion_action_category = 53; - - // Conversion action name. - google.protobuf.StringValue conversion_action_name = 54; - - // This segments your conversion columns by the original conversion and - // conversion value vs. the delta if conversions were adjusted. False row has - // the data as originally stated; While true row has the delta between data - // now and the data as originally stated. Summing the two together results - // post-adjustment data. - google.protobuf.BoolValue conversion_adjustment = 27; - - // Conversion attribution event type. - google.ads.googleads.v2.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.v2.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.v2.enums.ConversionOrAdjustmentLagBucketEnum.ConversionOrAdjustmentLagBucket conversion_or_adjustment_lag_bucket = 51; - - // Date to which metrics apply. - // yyyy-MM-dd format, e.g., 2018-04-17. - google.protobuf.StringValue date = 4; - - // Day of the week, e.g., MONDAY. - google.ads.googleads.v2.enums.DayOfWeekEnum.DayOfWeek day_of_week = 5; - - // Device to which metrics apply. - google.ads.googleads.v2.enums.DeviceEnum.Device device = 1; - - // External conversion source. - google.ads.googleads.v2.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; - - // Resource name of the geo target constant that represents a canton. - google.protobuf.StringValue geo_target_canton = 76; - - // Resource name of the geo target constant that represents a city. - google.protobuf.StringValue geo_target_city = 62; - - // Resource name of the geo target constant that represents a country. - google.protobuf.StringValue geo_target_country = 77; - - // Resource name of the geo target constant that represents a county. - google.protobuf.StringValue geo_target_county = 68; - - // Resource name of the geo target constant that represents a district. - google.protobuf.StringValue geo_target_district = 69; - - // Resource name of the geo target constant that represents a metro. - google.protobuf.StringValue geo_target_metro = 63; - - // Resource name of the geo target constant that represents the most - // specific location. - google.protobuf.StringValue geo_target_most_specific_location = 72; - - // Resource name of the geo target constant that represents a postal code. - google.protobuf.StringValue geo_target_postal_code = 71; - - // Resource name of the geo target constant that represents a province. - google.protobuf.StringValue geo_target_province = 75; - - // Resource name of the geo target constant that represents a region. - google.protobuf.StringValue geo_target_region = 64; - - // Resource name of the geo target constant that represents a state. - google.protobuf.StringValue geo_target_state = 67; - - // Hotel booking window in days. - google.protobuf.Int64Value hotel_booking_window_days = 6; - - // Hotel center ID. - google.protobuf.Int64Value hotel_center_id = 7; - - // Hotel check-in date. Formatted as yyyy-MM-dd. - google.protobuf.StringValue hotel_check_in_date = 8; - - // Hotel check-in day of week. - google.ads.googleads.v2.enums.DayOfWeekEnum.DayOfWeek hotel_check_in_day_of_week = 9; - - // Hotel city. - google.protobuf.StringValue hotel_city = 10; - - // Hotel class. - google.protobuf.Int32Value hotel_class = 11; - - // Hotel country. - google.protobuf.StringValue hotel_country = 12; - - // Hotel date selection type. - google.ads.googleads.v2.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType hotel_date_selection_type = 13; - - // Hotel length of stay. - google.protobuf.Int32Value hotel_length_of_stay = 14; - - // Hotel rate rule ID. - google.protobuf.StringValue hotel_rate_rule_id = 73; - - // Hotel rate type. - google.ads.googleads.v2.enums.HotelRateTypeEnum.HotelRateType hotel_rate_type = 74; - - // Hotel price bucket. - google.ads.googleads.v2.enums.HotelPriceBucketEnum.HotelPriceBucket hotel_price_bucket = 78; - - // Hotel state. - google.protobuf.StringValue hotel_state = 15; - - // Hour of day as a number between 0 and 23, inclusive. - google.protobuf.Int32Value hour = 16; - - // Only used with feed item metrics. - // Indicates whether the interaction metrics occurred on the feed item itself - // or a different extension or ad unit. - google.protobuf.BoolValue interaction_on_this_extension = 49; - - // Keyword criterion. - Keyword keyword = 61; - - // Month as represented by the date of the first day of a month. Formatted as - // yyyy-MM-dd. - google.protobuf.StringValue month = 17; - - // Month of the year, e.g., January. - google.ads.googleads.v2.enums.MonthOfYearEnum.MonthOfYear month_of_year = 18; - - // Partner hotel ID. - google.protobuf.StringValue partner_hotel_id = 19; - - // Placeholder type. This is only used with feed item metrics. - google.ads.googleads.v2.enums.PlaceholderTypeEnum.PlaceholderType placeholder_type = 20; - - // Aggregator ID of the product. - google.protobuf.UInt64Value product_aggregator_id = 28; - - // Bidding category (level 1) of the product. - google.protobuf.StringValue product_bidding_category_level1 = 56; - - // Bidding category (level 2) of the product. - google.protobuf.StringValue product_bidding_category_level2 = 57; - - // Bidding category (level 3) of the product. - google.protobuf.StringValue product_bidding_category_level3 = 58; - - // Bidding category (level 4) of the product. - google.protobuf.StringValue product_bidding_category_level4 = 59; - - // Bidding category (level 5) of the product. - google.protobuf.StringValue product_bidding_category_level5 = 60; - - // Brand of the product. - google.protobuf.StringValue product_brand = 29; - - // Channel of the product. - google.ads.googleads.v2.enums.ProductChannelEnum.ProductChannel product_channel = 30; - - // Channel exclusivity of the product. - google.ads.googleads.v2.enums.ProductChannelExclusivityEnum.ProductChannelExclusivity product_channel_exclusivity = 31; - - // Condition of the product. - google.ads.googleads.v2.enums.ProductConditionEnum.ProductCondition product_condition = 32; - - // Resource name of the geo target constant for the country of sale of the - // product. - google.protobuf.StringValue product_country = 33; - - // Custom attribute 0 of the product. - google.protobuf.StringValue product_custom_attribute0 = 34; - - // Custom attribute 1 of the product. - google.protobuf.StringValue product_custom_attribute1 = 35; - - // Custom attribute 2 of the product. - google.protobuf.StringValue product_custom_attribute2 = 36; - - // Custom attribute 3 of the product. - google.protobuf.StringValue product_custom_attribute3 = 37; - - // Custom attribute 4 of the product. - google.protobuf.StringValue product_custom_attribute4 = 38; - - // Item ID of the product. - google.protobuf.StringValue product_item_id = 39; - - // Resource name of the language constant for the language of the product. - google.protobuf.StringValue product_language = 40; - - // Merchant ID of the product. - google.protobuf.UInt64Value product_merchant_id = 41; - - // Store ID of the product. - google.protobuf.StringValue product_store_id = 42; - - // Title of the product. - google.protobuf.StringValue product_title = 43; - - // Type (level 1) of the product. - google.protobuf.StringValue product_type_l1 = 44; - - // Type (level 2) of the product. - google.protobuf.StringValue product_type_l2 = 45; - - // Type (level 3) of the product. - google.protobuf.StringValue product_type_l3 = 46; - - // Type (level 4) of the product. - google.protobuf.StringValue product_type_l4 = 47; - - // Type (level 5) of the product. - google.protobuf.StringValue product_type_l5 = 48; - - // Quarter as represented by the date of the first day of a quarter. - // Uses the calendar year for quarters, e.g., the second quarter of 2018 - // starts on 2018-04-01. Formatted as yyyy-MM-dd. - google.protobuf.StringValue quarter = 21; - - // Type of the search engine results page. - google.ads.googleads.v2.enums.SearchEngineResultsPageTypeEnum.SearchEngineResultsPageType search_engine_results_page_type = 70; - - // Match type of the keyword that triggered the ad, including variants. - google.ads.googleads.v2.enums.SearchTermMatchTypeEnum.SearchTermMatchType search_term_match_type = 22; - - // Position of the ad. - google.ads.googleads.v2.enums.SlotEnum.Slot slot = 23; - - // Resource name of the ad group criterion that represents webpage criterion. - google.protobuf.StringValue webpage = 66; - - // Week as defined as Monday through Sunday, and represented by the date of - // Monday. Formatted as yyyy-MM-dd. - google.protobuf.StringValue week = 24; - - // Year, formatted as yyyy. - google.protobuf.Int32Value year = 25; -} - -// A Keyword criterion segment. -message Keyword { - // The AdGroupCriterion resource name. - google.protobuf.StringValue ad_group_criterion = 1; - - // Keyword info. - KeywordInfo info = 2; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/common/simulation.proto b/third_party/googleapis/google/ads/googleads/v2/common/simulation.proto deleted file mode 100644 index 2b1827898..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/common/simulation.proto +++ /dev/null @@ -1,172 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.common; - -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/common;common"; -option java_multiple_files = true; -option java_outer_classname = "SimulationProto"; -option java_package = "com.google.ads.googleads.v2.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V2::Common"; - -// Proto file describing simulation points. - -// A container for simulation points for simulations of type BID_MODIFIER. -message BidModifierSimulationPointList { - // Projected metrics for a series of bid modifier amounts. - repeated BidModifierSimulationPoint points = 1; -} - -// A container for simulation points for simulations of type CPC_BID. -message CpcBidSimulationPointList { - // Projected metrics for a series of CPC bid amounts. - repeated CpcBidSimulationPoint points = 1; -} - -// A container for simulation points for simulations of type CPV_BID. -message CpvBidSimulationPointList { - // Projected metrics for a series of CPV bid amounts. - repeated CpvBidSimulationPoint points = 1; -} - -// A container for simulation points for simulations of type TARGET_CPA. -message TargetCpaSimulationPointList { - // Projected metrics for a series of target CPA amounts. - repeated TargetCpaSimulationPoint points = 1; -} - -// Projected metrics for a specific bid modifier amount. -message BidModifierSimulationPoint { - // The simulated bid modifier upon which projected metrics are based. - google.protobuf.DoubleValue bid_modifier = 1; - - // Projected number of biddable conversions. - // Only search advertising channel type supports this field. - google.protobuf.DoubleValue biddable_conversions = 2; - - // Projected total value of biddable conversions. - // Only search advertising channel type supports this field. - google.protobuf.DoubleValue biddable_conversions_value = 3; - - // Projected number of clicks. - google.protobuf.Int64Value clicks = 4; - - // Projected cost in micros. - google.protobuf.Int64Value cost_micros = 5; - - // Projected number of impressions. - google.protobuf.Int64Value impressions = 6; - - // Projected number of top slot impressions. - // Only search advertising channel type supports this field. - google.protobuf.Int64Value top_slot_impressions = 7; - - // Projected number of biddable conversions for the parent resource. - // Only search advertising channel type supports this field. - google.protobuf.DoubleValue parent_biddable_conversions = 8; - - // Projected total value of biddable conversions for the parent resource. - // Only search advertising channel type supports this field. - google.protobuf.DoubleValue parent_biddable_conversions_value = 9; - - // Projected number of clicks for the parent resource. - google.protobuf.Int64Value parent_clicks = 10; - - // Projected cost in micros for the parent resource. - google.protobuf.Int64Value parent_cost_micros = 11; - - // Projected number of impressions for the parent resource. - google.protobuf.Int64Value parent_impressions = 12; - - // Projected number of top slot impressions for the parent resource. - // Only search advertising channel type supports this field. - google.protobuf.Int64Value parent_top_slot_impressions = 13; - - // Projected minimum daily budget that must be available to the parent - // resource to realize this simulation. - google.protobuf.Int64Value parent_required_budget_micros = 14; -} - -// Projected metrics for a specific CPC bid amount. -message CpcBidSimulationPoint { - // The simulated CPC bid upon which projected metrics are based. - google.protobuf.Int64Value cpc_bid_micros = 1; - - // Projected number of biddable conversions. - google.protobuf.DoubleValue biddable_conversions = 2; - - // Projected total value of biddable conversions. - google.protobuf.DoubleValue biddable_conversions_value = 3; - - // Projected number of clicks. - google.protobuf.Int64Value clicks = 4; - - // Projected cost in micros. - google.protobuf.Int64Value cost_micros = 5; - - // Projected number of impressions. - google.protobuf.Int64Value impressions = 6; - - // Projected number of top slot impressions. - // Only search advertising channel type supports this field. - google.protobuf.Int64Value top_slot_impressions = 7; -} - -// Projected metrics for a specific CPV bid amount. -message CpvBidSimulationPoint { - // The simulated CPV bid upon which projected metrics are based. - google.protobuf.Int64Value cpv_bid_micros = 1; - - // Projected cost in micros. - google.protobuf.Int64Value cost_micros = 2; - - // Projected number of impressions. - google.protobuf.Int64Value impressions = 3; - - // Projected number of views. - google.protobuf.Int64Value views = 4; -} - -// Projected metrics for a specific target CPA amount. -message TargetCpaSimulationPoint { - // The simulated target CPA upon which projected metrics are based. - google.protobuf.Int64Value target_cpa_micros = 1; - - // Projected number of biddable conversions. - google.protobuf.DoubleValue biddable_conversions = 2; - - // Projected total value of biddable conversions. - google.protobuf.DoubleValue biddable_conversions_value = 3; - - // Projected number of clicks. - google.protobuf.Int64Value clicks = 4; - - // Projected cost in micros. - google.protobuf.Int64Value cost_micros = 5; - - // Projected number of impressions. - google.protobuf.Int64Value impressions = 6; - - // Projected number of top slot impressions. - // Only search advertising channel type supports this field. - google.protobuf.Int64Value top_slot_impressions = 7; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/common/tag_snippet.proto b/third_party/googleapis/google/ads/googleads/v2/common/tag_snippet.proto deleted file mode 100644 index 3a7d47f0d..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/common/tag_snippet.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.common; - -import "google/ads/googleads/v2/enums/tracking_code_page_format.proto"; -import "google/ads/googleads/v2/enums/tracking_code_type.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/common;common"; -option java_multiple_files = true; -option java_outer_classname = "TagSnippetProto"; -option java_package = "com.google.ads.googleads.v2.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V2::Common"; - -// Proto file describing TagSnippet - -// The site tag and event snippet pair for a TrackingCodeType. -message TagSnippet { - // The type of the generated tag snippets for tracking conversions. - google.ads.googleads.v2.enums.TrackingCodeTypeEnum.TrackingCodeType type = 1; - - // The format of the web page where the tracking tag and snippet will be - // installed, e.g. HTML. - google.ads.googleads.v2.enums.TrackingCodePageFormatEnum.TrackingCodePageFormat page_format = 2; - - // The site tag that adds visitors to your basic remarketing lists and sets - // new cookies on your domain. - google.protobuf.StringValue global_site_tag = 3; - - // The event snippet that works with the site tag to track actions that - // should be counted as conversions. - google.protobuf.StringValue event_snippet = 4; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/common/targeting_setting.proto b/third_party/googleapis/google/ads/googleads/v2/common/targeting_setting.proto deleted file mode 100644 index fceab364e..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/common/targeting_setting.proto +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.common; - -import "google/ads/googleads/v2/enums/targeting_dimension.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/common;common"; -option java_multiple_files = true; -option java_outer_classname = "TargetingSettingProto"; -option java_package = "com.google.ads.googleads.v2.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V2::Common"; - -// Proto file describing TargetingSetting - -// Settings for the targeting-related features, at the campaign and ad group -// levels. For more details about the targeting setting, visit -// https://support.google.com/google-ads/answer/7365594 -message TargetingSetting { - // The per-targeting-dimension setting to restrict the reach of your campaign - // or ad group. - repeated TargetRestriction target_restrictions = 1; -} - -// The list of per-targeting-dimension targeting settings. -message TargetRestriction { - // The targeting dimension that these settings apply to. - google.ads.googleads.v2.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 - // this targeting_dimension and show ads based on your targeting in other - // TargetingDimensions. A value of `true` means that these criteria will only - // apply bid modifiers, and not affect targeting. A value of `false` means - // that these criteria will restrict targeting as well as applying bid - // modifiers. - google.protobuf.BoolValue bid_only = 2; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/common/text_label.proto b/third_party/googleapis/google/ads/googleads/v2/common/text_label.proto deleted file mode 100644 index 53e17e6e4..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/common/text_label.proto +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.common; - -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/common;common"; -option java_multiple_files = true; -option java_outer_classname = "TextLabelProto"; -option java_package = "com.google.ads.googleads.v2.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V2::Common"; - -// A type of label displaying text on a colored background. -message TextLabel { - // Background color of the label in RGB format. This string must match the - // regular expression '^\#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$'. - // Note: The background color may not be visible for manager accounts. - google.protobuf.StringValue background_color = 1; - - // A short description of the label. The length must be no more than 200 - // characters. - google.protobuf.StringValue description = 2; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/common/url_collection.proto b/third_party/googleapis/google/ads/googleads/v2/common/url_collection.proto deleted file mode 100644 index fff0df712..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/common/url_collection.proto +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.common; - -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/common;common"; -option java_multiple_files = true; -option java_outer_classname = "UrlCollectionProto"; -option java_package = "com.google.ads.googleads.v2.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V2::Common"; - -// Proto file UrlCollection type. - -// Collection of urls that is tagged with a unique identifier. -message UrlCollection { - // Unique identifier for this UrlCollection instance. - google.protobuf.StringValue url_collection_id = 1; - - // A list of possible final URLs. - repeated google.protobuf.StringValue final_urls = 2; - - // A list of possible final mobile URLs. - repeated google.protobuf.StringValue final_mobile_urls = 3; - - // URL template for constructing a tracking URL. - google.protobuf.StringValue tracking_url_template = 4; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/common/user_lists.proto b/third_party/googleapis/google/ads/googleads/v2/common/user_lists.proto deleted file mode 100644 index 0c1ae9701..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/common/user_lists.proto +++ /dev/null @@ -1,292 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.common; - -import "google/ads/googleads/v2/enums/customer_match_upload_key_type.proto"; -import "google/ads/googleads/v2/enums/user_list_combined_rule_operator.proto"; -import "google/ads/googleads/v2/enums/user_list_crm_data_source_type.proto"; -import "google/ads/googleads/v2/enums/user_list_date_rule_item_operator.proto"; -import "google/ads/googleads/v2/enums/user_list_logical_rule_operator.proto"; -import "google/ads/googleads/v2/enums/user_list_number_rule_item_operator.proto"; -import "google/ads/googleads/v2/enums/user_list_prepopulation_status.proto"; -import "google/ads/googleads/v2/enums/user_list_rule_type.proto"; -import "google/ads/googleads/v2/enums/user_list_string_rule_item_operator.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/common;common"; -option java_multiple_files = true; -option java_outer_classname = "UserListsProto"; -option java_package = "com.google.ads.googleads.v2.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V2::Common"; - -// Proto file describing user list types. - -// SimilarUserList is a list of users which are similar to users from another -// UserList. These lists are read-only and automatically created by Google. -message SimilarUserListInfo { - // Seed UserList from which this list is derived. - google.protobuf.StringValue seed_user_list = 1; -} - -// UserList of CRM users provided by the advertiser. -message CrmBasedUserListInfo { - // A string that uniquely identifies a mobile application from which the data - // was collected to the Google Ads API. - // For iOS, the ID string is the 9 digit string that appears at the end of an - // App Store URL (e.g., "476943146" for "Flood-It! 2" whose App Store link is - // http://itunes.apple.com/us/app/flood-it!-2/id476943146). - // For Android, the ID string is the application's package name - // (e.g., "com.labpixies.colordrips" for "Color Drips" given Google Play link - // https://play.google.com/store/apps/details?id=com.labpixies.colordrips). - // Required when creating CrmBasedUserList for uploading mobile advertising - // IDs. - google.protobuf.StringValue app_id = 1; - - // 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.v2.enums.CustomerMatchUploadKeyTypeEnum.CustomerMatchUploadKeyType upload_key_type = 2; - - // Data source of the list. Default value is FIRST_PARTY. - // Only customers on the allow-list can create third-party sourced CRM lists. - google.ads.googleads.v2.enums.UserListCrmDataSourceTypeEnum.UserListCrmDataSourceType data_source_type = 3; -} - -// A client defined rule based on custom parameters sent by web sites or -// uploaded by the advertiser. -message UserListRuleInfo { - // Rule type is used to determine how to group rule items. - // - // The default is OR of ANDs (disjunctive normal form). - // That is, rule items will be ANDed together within rule item groups and the - // groups themselves will be ORed together. - // - // Currently AND of ORs (conjunctive normal form) is only supported for - // ExpressionRuleUserList. - google.ads.googleads.v2.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. - repeated UserListRuleItemGroupInfo rule_item_groups = 2; -} - -// A group of rule items. -message UserListRuleItemGroupInfo { - // Rule items that will be grouped together based on rule_type. - repeated UserListRuleItemInfo rule_items = 1; -} - -// An atomic rule item. -message UserListRuleItemInfo { - // Rule variable name. It should match the corresponding key name fired - // by the pixel. - // A name must begin with US-ascii letters or underscore or UTF8 code that is - // greater than 127 and consist of US-ascii letters or digits or underscore or - // UTF8 code that is greater than 127. - // For websites, there are two built-in variable URL (name = 'url__') and - // referrer URL (name = 'ref_url__'). - // This field must be populated when creating a new rule item. - google.protobuf.StringValue name = 1; - - // An atomic rule item. - oneof rule_item { - // An atomic rule item composed of a number operation. - UserListNumberRuleItemInfo number_rule_item = 2; - - // An atomic rule item composed of a string operation. - UserListStringRuleItemInfo string_rule_item = 3; - - // An atomic rule item composed of a date operation. - UserListDateRuleItemInfo date_rule_item = 4; - } -} - -// A rule item composed of a date operation. -message UserListDateRuleItemInfo { - // Date comparison operator. - // This field is required and must be populated when creating new date - // rule item. - google.ads.googleads.v2.enums.UserListDateRuleItemOperatorEnum.UserListDateRuleItemOperator operator = 1; - - // String representing date value to be compared with the rule variable. - // Supported date format is YYYY-MM-DD. - // Times are reported in the customer's time zone. - google.protobuf.StringValue value = 2; - - // The relative date value of the right hand side denoted by number of days - // offset from now. The value field will override this field when both are - // present. - google.protobuf.Int64Value offset_in_days = 3; -} - -// A rule item composed of a number operation. -message UserListNumberRuleItemInfo { - // Number comparison operator. - // This field is required and must be populated when creating a new number - // rule item. - google.ads.googleads.v2.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 - // rule item. - google.protobuf.DoubleValue value = 2; -} - -// A rule item composed of a string operation. -message UserListStringRuleItemInfo { - // String comparison operator. - // This field is required and must be populated when creating a new string - // rule item. - google.ads.googleads.v2.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, - // tabs, or parentheses. This field is required and must be populated when - // creating a new string rule item. - google.protobuf.StringValue value = 2; -} - -// User lists defined by combining two rules, left operand and right operand. -// There are two operators: AND where left operand and right operand have to be -// true; AND_NOT where left operand is true but right operand is false. -message CombinedRuleUserListInfo { - // Left operand of the combined rule. - // This field is required and must be populated when creating new combined - // rule based user list. - UserListRuleInfo left_operand = 1; - - // Right operand of the combined rule. - // This field is required and must be populated when creating new combined - // rule based user list. - UserListRuleInfo right_operand = 2; - - // Operator to connect the two operands. - // - // Required for creating a combined rule user list. - google.ads.googleads.v2.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator rule_operator = 3; -} - -// Visitors of a page during specific dates. -message DateSpecificRuleUserListInfo { - // Boolean rule that defines visitor of a page. - // - // Required for creating a date specific rule user list. - UserListRuleInfo rule = 1; - - // Start date of users visit. If set to 2000-01-01, then the list includes all - // users before end_date. The date's format should be YYYY-MM-DD. - // - // Required for creating a data specific rule user list. - google.protobuf.StringValue start_date = 2; - - // End date of users visit. If set to 2037-12-30, then the list includes all - // users after start_date. The date's format should be YYYY-MM-DD. - // - // Required for creating a data specific rule user list. - google.protobuf.StringValue end_date = 3; -} - -// Visitors of a page. The page visit is defined by one boolean rule expression. -message ExpressionRuleUserListInfo { - // Boolean rule that defines this user list. The rule consists of a list of - // rule item groups and each rule item group consists of a list of rule items. - // All the rule item groups are ORed or ANDed together for evaluation based on - // rule.rule_type. - // - // Required for creating an expression rule user list. - UserListRuleInfo rule = 1; -} - -// Representation of a userlist that is generated by a rule. -message RuleBasedUserListInfo { - // The status of pre-population. The field is default to NONE if not set which - // means the previous users will not be considered. If set to REQUESTED, past - // site visitors or app users who match the list definition will be included - // in the list (works on the Display Network only). This will only - // add past users from within the last 30 days, depending on the - // 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.v2.enums.UserListPrepopulationStatusEnum.UserListPrepopulationStatus prepopulation_status = 1; - - // Subtypes of rule based user lists. - oneof rule_based_user_list { - // User lists defined by combining two rules. - // There are two operators: AND, where the left and right operands have to - // be true; AND_NOT where left operand is true but right operand is false. - CombinedRuleUserListInfo combined_rule_user_list = 2; - - // Visitors of a page during specific dates. The visiting periods are - // defined as follows: - // Between start_date (inclusive) and end_date (inclusive); - // Before end_date (exclusive) with start_date = 2000-01-01; - // After start_date (exclusive) with end_date = 2037-12-30. - DateSpecificRuleUserListInfo date_specific_rule_user_list = 3; - - // Visitors of a page. The page visit is defined by one boolean rule - // expression. - ExpressionRuleUserListInfo expression_rule_user_list = 4; - } -} - -// Represents a user list that is a custom combination of user lists. -message LogicalUserListInfo { - // Logical list rules that define this user list. The rules are defined as a - // logical operator (ALL/ANY/NONE) and a list of user lists. All the rules are - // ANDed when they are evaluated. - // - // Required for creating a logical user list. - repeated UserListLogicalRuleInfo rules = 1; -} - -// A user list logical rule. A rule has a logical operator (and/or/not) and a -// list of user lists as operands. -message UserListLogicalRuleInfo { - // The logical operator of the rule. - google.ads.googleads.v2.enums.UserListLogicalRuleOperatorEnum.UserListLogicalRuleOperator operator = 1; - - // The list of operands of the rule. - repeated LogicalUserListOperandInfo rule_operands = 2; -} - -// Operand of logical user list that consists of a user list. -message LogicalUserListOperandInfo { - // Resource name of a user list as an operand. - google.protobuf.StringValue user_list = 1; -} - -// User list targeting as a collection of conversions or remarketing actions. -message BasicUserListInfo { - // Actions associated with this user list. - repeated UserListActionInfo actions = 1; -} - -// Represents an action type used for building remarketing user lists. -message UserListActionInfo { - // Subtypes of user list action. - oneof user_list_action { - // A conversion action that's not generated from remarketing. - google.protobuf.StringValue conversion_action = 1; - - // A remarketing action. - google.protobuf.StringValue remarketing_action = 2; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v2/common/value.proto b/third_party/googleapis/google/ads/googleads/v2/common/value.proto deleted file mode 100644 index 0642c9228..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/common/value.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.common; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/common;common"; -option java_multiple_files = true; -option java_outer_classname = "ValueProto"; -option java_package = "com.google.ads.googleads.v2.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V2::Common"; - -// Proto file describing value types - -// A generic data container. -message Value { - // A value. - oneof value { - // A boolean. - bool boolean_value = 1; - - // An int64. - int64 int64_value = 2; - - // A float. - float float_value = 3; - - // A double. - double double_value = 4; - - // A string. - string string_value = 5; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/access_reason.proto b/third_party/googleapis/google/ads/googleads/v2/enums/access_reason.proto deleted file mode 100644 index 3c456389e..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/access_reason.proto +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AccessReasonProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Indicates the way the resource such as user list is related to a user. -message AccessReasonEnum { - // Enum describing possible access reasons. - enum AccessReason { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The resource is owned by the user. - OWNED = 2; - - // The resource is shared to the user. - SHARED = 3; - - // The resource is licensed to the user. - LICENSED = 4; - - // The user subscribed to the resource. - SUBSCRIBED = 5; - - // The resource is accessible to the user. - AFFILIATED = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/access_role.proto b/third_party/googleapis/google/ads/googleads/v2/enums/access_role.proto deleted file mode 100644 index 651a0cfd1..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/access_role.proto +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AccessRoleProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Container for enum describing possible access role for user. -message AccessRoleEnum { - // Possible access role of a user. - enum AccessRole { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Owns its account and can control the addition of other users. - ADMIN = 2; - - // Can modify campaigns, but can't affect other users. - STANDARD = 3; - - // Can view campaigns and account changes, but cannot make edits. - READ_ONLY = 4; - - // Role for \"email only\" access. Represents an email recipient rather than - // a true User entity. - EMAIL_ONLY = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/account_budget_proposal_status.proto b/third_party/googleapis/google/ads/googleads/v2/enums/account_budget_proposal_status.proto deleted file mode 100644 index 44e5976ad..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/account_budget_proposal_status.proto +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AccountBudgetProposalStatusProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing AccountBudgetProposal statuses. - -// Message describing AccountBudgetProposal statuses. -message AccountBudgetProposalStatusEnum { - // The possible statuses of an AccountBudgetProposal. - enum AccountBudgetProposalStatus { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The proposal is pending approval. - PENDING = 2; - - // The proposal has been approved but the corresponding billing setup - // has not. This can occur for proposals that set up the first budget - // when signing up for billing or when performing a change of bill-to - // operation. - APPROVED_HELD = 3; - - // The proposal has been approved. - APPROVED = 4; - - // The proposal has been cancelled by the user. - CANCELLED = 5; - - // The proposal has been rejected by the user, e.g. by rejecting an - // acceptance email. - REJECTED = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/account_budget_proposal_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/account_budget_proposal_type.proto deleted file mode 100644 index a2288afd0..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/account_budget_proposal_type.proto +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AccountBudgetProposalTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing AccountBudgetProposal types. - -// Message describing AccountBudgetProposal types. -message AccountBudgetProposalTypeEnum { - // The possible types of an AccountBudgetProposal. - enum AccountBudgetProposalType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Identifies a request to create a new budget. - CREATE = 2; - - // Identifies a request to edit an existing budget. - UPDATE = 3; - - // Identifies a request to end a budget that has already started. - END = 4; - - // Identifies a request to remove a budget that hasn't started yet. - REMOVE = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/account_budget_status.proto b/third_party/googleapis/google/ads/googleads/v2/enums/account_budget_status.proto deleted file mode 100644 index 8a17c5f94..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/account_budget_status.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AccountBudgetStatusProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing AccountBudget statuses. - -// Message describing AccountBudget statuses. -message AccountBudgetStatusEnum { - // The possible statuses of an AccountBudget. - enum AccountBudgetStatus { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The account budget is pending approval. - PENDING = 2; - - // The account budget has been approved. - APPROVED = 3; - - // The account budget has been cancelled by the user. - CANCELLED = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/ad_customizer_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v2/enums/ad_customizer_placeholder_field.proto deleted file mode 100644 index 53ecb8c04..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/ad_customizer_placeholder_field.proto +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AdCustomizerPlaceholderFieldProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing Ad Customizer placeholder fields. - -// Values for Ad Customizer placeholder fields. -message AdCustomizerPlaceholderFieldEnum { - // Possible values for Ad Customizers placeholder fields. - enum AdCustomizerPlaceholderField { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Data Type: INT64. Integer value to be inserted. - INTEGER = 2; - - // Data Type: STRING. Price value to be inserted. - PRICE = 3; - - // Data Type: DATE_TIME. Date value to be inserted. - DATE = 4; - - // Data Type: STRING. String value to be inserted. - STRING = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/ad_group_ad_rotation_mode.proto b/third_party/googleapis/google/ads/googleads/v2/enums/ad_group_ad_rotation_mode.proto deleted file mode 100644 index f9d120b09..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/ad_group_ad_rotation_mode.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupAdRotationModeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing ad group ad rotation mode. - -// Container for enum describing possible ad rotation modes of ads within an -// ad group. -message AdGroupAdRotationModeEnum { - // The possible ad rotation modes of an ad group. - enum AdGroupAdRotationMode { - // The ad rotation mode has not been specified. - UNSPECIFIED = 0; - - // The received value is not known in this version. - // - // This is a response-only value. - UNKNOWN = 1; - - // Optimize ad group ads based on clicks or conversions. - OPTIMIZE = 2; - - // Rotate evenly forever. - ROTATE_FOREVER = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/ad_group_ad_status.proto b/third_party/googleapis/google/ads/googleads/v2/enums/ad_group_ad_status.proto deleted file mode 100644 index f6656553f..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/ad_group_ad_status.proto +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupAdStatusProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing ad group status. - -// Container for enum describing possible statuses of an AdGroupAd. -message AdGroupAdStatusEnum { - // The possible statuses of an AdGroupAd. - enum AdGroupAdStatus { - // No value has been specified. - UNSPECIFIED = 0; - - // The received value is not known in this version. - // - // This is a response-only value. - UNKNOWN = 1; - - // The ad group ad is enabled. - ENABLED = 2; - - // The ad group ad is paused. - PAUSED = 3; - - // The ad group ad is removed. - REMOVED = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/ad_group_criterion_approval_status.proto b/third_party/googleapis/google/ads/googleads/v2/enums/ad_group_criterion_approval_status.proto deleted file mode 100644 index 00c6012a8..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/ad_group_criterion_approval_status.proto +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupCriterionApprovalStatusProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing approval status for the criterion. - -// Container for enum describing possible AdGroupCriterion approval statuses. -message AdGroupCriterionApprovalStatusEnum { - // Enumerates AdGroupCriterion approval statuses. - enum AdGroupCriterionApprovalStatus { - // Not specified. - UNSPECIFIED = 0; - - // The value is unknown in this version. - UNKNOWN = 1; - - // Approved. - APPROVED = 2; - - // Disapproved. - DISAPPROVED = 3; - - // Pending Review. - PENDING_REVIEW = 4; - - // Under review. - UNDER_REVIEW = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/ad_group_criterion_status.proto b/third_party/googleapis/google/ads/googleads/v2/enums/ad_group_criterion_status.proto deleted file mode 100644 index 5bc43a373..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/ad_group_criterion_status.proto +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupCriterionStatusProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing AdGroupCriterion statuses. - -// Message describing AdGroupCriterion statuses. -message AdGroupCriterionStatusEnum { - // The possible statuses of an AdGroupCriterion. - enum AdGroupCriterionStatus { - // No value has been specified. - UNSPECIFIED = 0; - - // The received value is not known in this version. - // - // This is a response-only value. - UNKNOWN = 1; - - // The ad group criterion is enabled. - ENABLED = 2; - - // The ad group criterion is paused. - PAUSED = 3; - - // The ad group criterion is removed. - REMOVED = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/ad_group_status.proto b/third_party/googleapis/google/ads/googleads/v2/enums/ad_group_status.proto deleted file mode 100644 index 318360888..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/ad_group_status.proto +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupStatusProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing ad group status. - -// Container for enum describing possible statuses of an ad group. -message AdGroupStatusEnum { - // The possible statuses of an ad group. - enum AdGroupStatus { - // The status has not been specified. - UNSPECIFIED = 0; - - // The received value is not known in this version. - // - // This is a response-only value. - UNKNOWN = 1; - - // The ad group is enabled. - ENABLED = 2; - - // The ad group is paused. - PAUSED = 3; - - // The ad group is removed. - REMOVED = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/ad_group_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/ad_group_type.proto deleted file mode 100644 index 624a8fe6e..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/ad_group_type.proto +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing ad group types. - -// Defines types of an ad group, specific to a particular campaign channel -// type. This type drives validations that restrict which entities can be -// added to the ad group. -message AdGroupTypeEnum { - // Enum listing the possible types of an ad group. - enum AdGroupType { - // The type has not been specified. - UNSPECIFIED = 0; - - // The received value is not known in this version. - // - // This is a response-only value. - UNKNOWN = 1; - - // The default ad group type for Search campaigns. - SEARCH_STANDARD = 2; - - // The default ad group type for Display campaigns. - DISPLAY_STANDARD = 3; - - // The ad group type for Shopping campaigns serving standard product ads. - SHOPPING_PRODUCT_ADS = 4; - - // The default ad group type for Hotel campaigns. - HOTEL_ADS = 6; - - // The type for ad groups in Smart Shopping campaigns. - SHOPPING_SMART_ADS = 7; - - // Short unskippable in-stream video ads. - VIDEO_BUMPER = 8; - - // TrueView (skippable) in-stream video ads. - VIDEO_TRUE_VIEW_IN_STREAM = 9; - - // TrueView in-display video ads. - VIDEO_TRUE_VIEW_IN_DISPLAY = 10; - - // Unskippable in-stream video ads. - VIDEO_NON_SKIPPABLE_IN_STREAM = 11; - - // Outstream video ads. - VIDEO_OUTSTREAM = 12; - - // Ad group type for Dynamic Search Ads ad groups. - SEARCH_DYNAMIC_ADS = 13; - - // The type for ad groups in Shopping Comparison Listing campaigns. - SHOPPING_COMPARISON_LISTING_ADS = 14; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/ad_network_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/ad_network_type.proto deleted file mode 100644 index 9ff247713..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/ad_network_type.proto +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AdNetworkTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing ad network types. - -// Container for enumeration of Google Ads network types. -message AdNetworkTypeEnum { - // Enumerates Google Ads network types. - enum AdNetworkType { - // Not specified. - UNSPECIFIED = 0; - - // The value is unknown in this version. - UNKNOWN = 1; - - // Google search. - SEARCH = 2; - - // Search partners. - SEARCH_PARTNERS = 3; - - // Display Network. - CONTENT = 4; - - // YouTube Search. - YOUTUBE_SEARCH = 5; - - // YouTube Videos - YOUTUBE_WATCH = 6; - - // Cross-network. - MIXED = 7; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/ad_serving_optimization_status.proto b/third_party/googleapis/google/ads/googleads/v2/enums/ad_serving_optimization_status.proto deleted file mode 100644 index 4b4983779..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/ad_serving_optimization_status.proto +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AdServingOptimizationStatusProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing ad serving statuses. - -// Possible ad serving statuses of a campaign. -message AdServingOptimizationStatusEnum { - // Enum describing possible serving statuses. - enum AdServingOptimizationStatus { - // No value has been specified. - UNSPECIFIED = 0; - - // The received value is not known in this version. - // - // This is a response-only value. - UNKNOWN = 1; - - // Ad serving is optimized based on CTR for the campaign. - OPTIMIZE = 2; - - // Ad serving is optimized based on CTR * Conversion for the campaign. If - // the campaign is not in the conversion optimizer bidding strategy, it will - // default to OPTIMIZED. - CONVERSION_OPTIMIZE = 3; - - // Ads are rotated evenly for 90 days, then optimized for clicks. - ROTATE = 4; - - // Show lower performing ads more evenly with higher performing ads, and do - // not optimize. - ROTATE_INDEFINITELY = 5; - - // Ad serving optimization status is not available. - UNAVAILABLE = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/ad_strength.proto b/third_party/googleapis/google/ads/googleads/v2/enums/ad_strength.proto deleted file mode 100644 index a66d1c813..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/ad_strength.proto +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AdStrengthProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing ad strengths. - -// Container for enum describing possible ad strengths. -message AdStrengthEnum { - // Enum listing the possible ad strengths. - enum AdStrength { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The ad strength is currently pending. - PENDING = 2; - - // No ads could be generated. - NO_ADS = 3; - - // Poor strength. - POOR = 4; - - // Average strength. - AVERAGE = 5; - - // Good strength. - GOOD = 6; - - // Excellent strength. - EXCELLENT = 7; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/ad_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/ad_type.proto deleted file mode 100644 index 17415dd25..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/ad_type.proto +++ /dev/null @@ -1,104 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AdTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing the ad type. - -// Container for enum describing possible types of an ad. -message AdTypeEnum { - // The possible types of an ad. - enum AdType { - // No value has been specified. - UNSPECIFIED = 0; - - // The received value is not known in this version. - // - // This is a response-only value. - UNKNOWN = 1; - - // The ad is a text ad. - TEXT_AD = 2; - - // The ad is an expanded text ad. - EXPANDED_TEXT_AD = 3; - - // The ad is a call only ad. - CALL_ONLY_AD = 6; - - // The ad is an expanded dynamic search ad. - EXPANDED_DYNAMIC_SEARCH_AD = 7; - - // The ad is a hotel ad. - HOTEL_AD = 8; - - // The ad is a Smart Shopping ad. - SHOPPING_SMART_AD = 9; - - // The ad is a standard Shopping ad. - SHOPPING_PRODUCT_AD = 10; - - // The ad is a video ad. - VIDEO_AD = 12; - - // This ad is a Gmail ad. - GMAIL_AD = 13; - - // This ad is an Image ad. - IMAGE_AD = 14; - - // The ad is a responsive search ad. - RESPONSIVE_SEARCH_AD = 15; - - // The ad is a legacy responsive display ad. - LEGACY_RESPONSIVE_DISPLAY_AD = 16; - - // The ad is an app ad. - APP_AD = 17; - - // The ad is a legacy app install ad. - LEGACY_APP_INSTALL_AD = 18; - - // The ad is a responsive display ad. - RESPONSIVE_DISPLAY_AD = 19; - - // The ad is a display upload ad with the HTML5_UPLOAD_AD product type. - HTML5_UPLOAD_AD = 21; - - // The ad is a display upload ad with one of the DYNAMIC_HTML5_* product - // types. - DYNAMIC_HTML5_AD = 22; - - // The ad is an app engagement ad. - APP_ENGAGEMENT_AD = 23; - - // The ad is a Shopping Comparison Listing ad. - SHOPPING_COMPARISON_LISTING_AD = 24; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/advertising_channel_sub_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/advertising_channel_sub_type.proto deleted file mode 100644 index f29075893..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/advertising_channel_sub_type.proto +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AdvertisingChannelSubTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing advertising channel subtypes. - -// An immutable specialization of an Advertising Channel. -message AdvertisingChannelSubTypeEnum { - // Enum describing the different channel subtypes. - enum AdvertisingChannelSubType { - // Not specified. - UNSPECIFIED = 0; - - // Used as a return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Mobile app campaigns for Search. - SEARCH_MOBILE_APP = 2; - - // Mobile app campaigns for Display. - DISPLAY_MOBILE_APP = 3; - - // AdWords express campaigns for search. - SEARCH_EXPRESS = 4; - - // AdWords Express campaigns for display. - DISPLAY_EXPRESS = 5; - - // Smart Shopping campaigns. - SHOPPING_SMART_ADS = 6; - - // Gmail Ad campaigns. - DISPLAY_GMAIL_AD = 7; - - // Smart display campaigns. - DISPLAY_SMART_CAMPAIGN = 8; - - // Video Outstream campaigns. - VIDEO_OUTSTREAM = 9; - - // Video TrueView for Action campaigns. - VIDEO_ACTION = 10; - - // Video campaigns with non-skippable video ads. - VIDEO_NON_SKIPPABLE = 11; - - // App Campaign that allows you to easily promote your Android or iOS app - // across Google's top properties including Search, Play, YouTube, and the - // Google Display Network. - APP_CAMPAIGN = 12; - - // App Campaign for engagement, focused on driving re-engagement with the - // app across several of Google’s top properties including Search, YouTube, - // and the Google Display Network. - APP_CAMPAIGN_FOR_ENGAGEMENT = 13; - - // Shopping Comparison Listing campaigns. - SHOPPING_COMPARISON_LISTING_ADS = 15; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/advertising_channel_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/advertising_channel_type.proto deleted file mode 100644 index 20b1de289..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/advertising_channel_type.proto +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AdvertisingChannelTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing advertising channel types - -// The channel type a campaign may target to serve on. -message AdvertisingChannelTypeEnum { - // Enum describing the various advertising channel types. - enum AdvertisingChannelType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Search Network. Includes display bundled, and Search+ campaigns. - SEARCH = 2; - - // Google Display Network only. - DISPLAY = 3; - - // Shopping campaigns serve on the shopping property - // and on google.com search results. - SHOPPING = 4; - - // Hotel Ads campaigns. - HOTEL = 5; - - // Video campaigns. - VIDEO = 6; - - // App Campaigns, and App Campaigns for Engagement, that run - // across multiple channels. - MULTI_CHANNEL = 7; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/affiliate_location_feed_relationship_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/affiliate_location_feed_relationship_type.proto deleted file mode 100644 index 2d3bab1c6..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/affiliate_location_feed_relationship_type.proto +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AffiliateLocationFeedRelationshipTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing relation type for affiliate location feeds. - -// Container for enum describing possible values for a relationship type for -// an affiliate location feed. -message AffiliateLocationFeedRelationshipTypeEnum { - // Possible values for a relationship type for an affiliate location feed. - enum AffiliateLocationFeedRelationshipType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // General retailer relationship. - GENERAL_RETAILER = 2; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/affiliate_location_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v2/enums/affiliate_location_placeholder_field.proto deleted file mode 100644 index f32fe221a..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/affiliate_location_placeholder_field.proto +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AffiliateLocationPlaceholderFieldProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing Affiliate Location placeholder fields. - -// Values for Affiliate Location placeholder fields. -message AffiliateLocationPlaceholderFieldEnum { - // Possible values for Affiliate Location placeholder fields. - enum AffiliateLocationPlaceholderField { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Data Type: STRING. The name of the business. - BUSINESS_NAME = 2; - - // Data Type: STRING. Line 1 of the business address. - ADDRESS_LINE_1 = 3; - - // Data Type: STRING. Line 2 of the business address. - ADDRESS_LINE_2 = 4; - - // Data Type: STRING. City of the business address. - CITY = 5; - - // Data Type: STRING. Province of the business address. - PROVINCE = 6; - - // Data Type: STRING. Postal code of the business address. - POSTAL_CODE = 7; - - // Data Type: STRING. Country code of the business address. - COUNTRY_CODE = 8; - - // Data Type: STRING. Phone number of the business. - PHONE_NUMBER = 9; - - // Data Type: STRING. Language code of the business. - LANGUAGE_CODE = 10; - - // Data Type: INT64. ID of the chain. - CHAIN_ID = 11; - - // Data Type: STRING. Name of the chain. - CHAIN_NAME = 12; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/age_range_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/age_range_type.proto deleted file mode 100644 index 75fb0d7af..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/age_range_type.proto +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AgeRangeTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing age range types. - -// Container for enum describing the type of demographic age ranges. -message AgeRangeTypeEnum { - // The type of demographic age ranges (e.g. between 18 and 24 years old). - enum AgeRangeType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Between 18 and 24 years old. - AGE_RANGE_18_24 = 503001; - - // Between 25 and 34 years old. - AGE_RANGE_25_34 = 503002; - - // Between 35 and 44 years old. - AGE_RANGE_35_44 = 503003; - - // Between 45 and 54 years old. - AGE_RANGE_45_54 = 503004; - - // Between 55 and 64 years old. - AGE_RANGE_55_64 = 503005; - - // 65 years old and beyond. - AGE_RANGE_65_UP = 503006; - - // Undetermined age range. - AGE_RANGE_UNDETERMINED = 503999; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/app_campaign_app_store.proto b/third_party/googleapis/google/ads/googleads/v2/enums/app_campaign_app_store.proto deleted file mode 100644 index cd10eda2e..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/app_campaign_app_store.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AppCampaignAppStoreProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing App Campaign app store. - -// The application store that distributes mobile applications. -message AppCampaignAppStoreEnum { - // Enum describing app campaign app store. - enum AppCampaignAppStore { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Apple app store. - APPLE_APP_STORE = 2; - - // Google play. - GOOGLE_APP_STORE = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/app_campaign_bidding_strategy_goal_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/app_campaign_bidding_strategy_goal_type.proto deleted file mode 100644 index 4743ef355..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/app_campaign_bidding_strategy_goal_type.proto +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AppCampaignBiddingStrategyGoalTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing App Campaign bidding strategy goal types. - -// Container for enum describing goal towards which the bidding strategy of an -// app campaign should optimize for. -message AppCampaignBiddingStrategyGoalTypeEnum { - // Goal type of App campaign BiddingStrategy. - enum AppCampaignBiddingStrategyGoalType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Aim to maximize the number of app installs. The cpa bid is the - // target cost per install. - OPTIMIZE_INSTALLS_TARGET_INSTALL_COST = 2; - - // Aim to maximize the long term number of selected in-app conversions from - // app installs. The cpa bid is the target cost per install. - OPTIMIZE_IN_APP_CONVERSIONS_TARGET_INSTALL_COST = 3; - - // Aim to maximize the long term number of selected in-app conversions from - // app installs. The cpa bid is the target cost per in-app conversion. Note - // that the actual cpa may seem higher than the target cpa at first, since - // the long term conversions haven’t happened yet. - OPTIMIZE_IN_APP_CONVERSIONS_TARGET_CONVERSION_COST = 4; - - // Aim to maximize all conversions' value, i.e. install + selected in-app - // conversions while achieving or exceeding target return on advertising - // spend. - OPTIMIZE_RETURN_ON_ADVERTISING_SPEND = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/app_payment_model_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/app_payment_model_type.proto deleted file mode 100644 index 38e9e4189..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/app_payment_model_type.proto +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AppPaymentModelTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing criteria types. - -// Represents a criterion for targeting paid apps. -message AppPaymentModelTypeEnum { - // Enum describing possible app payment models. - enum AppPaymentModelType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Represents paid-for apps. - PAID = 30; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/app_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v2/enums/app_placeholder_field.proto deleted file mode 100644 index d68a0c840..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/app_placeholder_field.proto +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AppPlaceholderFieldProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing App placeholder fields. - -// Values for App placeholder fields. -message AppPlaceholderFieldEnum { - // Possible values for App placeholder fields. - enum AppPlaceholderField { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Data Type: INT64. The application store that the target application - // belongs to. Valid values are: 1 = Apple iTunes Store; 2 = Google Play - // Store. - STORE = 2; - - // Data Type: STRING. The store-specific ID for the target application. - ID = 3; - - // Data Type: STRING. The visible text displayed when the link is rendered - // in an ad. - LINK_TEXT = 4; - - // Data Type: STRING. The destination URL of the in-app link. - URL = 5; - - // Data Type: URL_LIST. Final URLs for the in-app link when using Upgraded - // URLs. - FINAL_URLS = 6; - - // Data Type: URL_LIST. Final Mobile URLs for the in-app link when using - // Upgraded URLs. - FINAL_MOBILE_URLS = 7; - - // Data Type: URL. Tracking template for the in-app link when using Upgraded - // URLs. - TRACKING_URL = 8; - - // Data Type: STRING. Final URL suffix for the in-app link when using - // parallel tracking. - FINAL_URL_SUFFIX = 9; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/app_store.proto b/third_party/googleapis/google/ads/googleads/v2/enums/app_store.proto deleted file mode 100644 index 6549a407d..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/app_store.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AppStoreProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing app store types for an app extension. - -// Container for enum describing app store type in an app extension. -message AppStoreEnum { - // App store type in an app extension. - enum AppStore { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Apple iTunes. - APPLE_ITUNES = 2; - - // Google Play. - GOOGLE_PLAY = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/app_url_operating_system_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/app_url_operating_system_type.proto deleted file mode 100644 index a547c9082..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/app_url_operating_system_type.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AppUrlOperatingSystemTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing operating system for a deeplink app URL. - -// The possible OS types for a deeplink AppUrl. -message AppUrlOperatingSystemTypeEnum { - // Operating System - enum AppUrlOperatingSystemType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The Apple IOS operating system. - IOS = 2; - - // The Android operating system. - ANDROID = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/asset_field_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/asset_field_type.proto deleted file mode 100644 index 93d25a5fb..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/asset_field_type.proto +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AssetFieldTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing asset type. - -// Container for enum describing the possible placements of an asset. -message AssetFieldTypeEnum { - // Enum describing the possible placements of an asset. - enum AssetFieldType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The asset is linked for use as a headline. - HEADLINE = 2; - - // The asset is linked for use as a description. - DESCRIPTION = 3; - - // The asset is linked for use as mandatory ad text. - MANDATORY_AD_TEXT = 4; - - // The asset is linked for use as a marketing image. - MARKETING_IMAGE = 5; - - // The asset is linked for use as a media bundle. - MEDIA_BUNDLE = 6; - - // The asset is linked for use as a YouTube video. - YOUTUBE_VIDEO = 7; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/asset_performance_label.proto b/third_party/googleapis/google/ads/googleads/v2/enums/asset_performance_label.proto deleted file mode 100644 index 23295bc36..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/asset_performance_label.proto +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AssetPerformanceLabelProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing the performance label of an asset. - -// Container for enum describing the performance label of an asset. -message AssetPerformanceLabelEnum { - // Enum describing the possible performance labels of an asset, usually - // computed in the context of a linkage. - enum AssetPerformanceLabel { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // This asset does not yet have any performance informantion. This may be - // because it is still under review. - PENDING = 2; - - // The asset has started getting impressions but the stats are not - // statistically significant enough to get an asset performance label. - LEARNING = 3; - - // Worst performing assets. - LOW = 4; - - // Good performing assets. - GOOD = 5; - - // Best performing assets. - BEST = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/asset_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/asset_type.proto deleted file mode 100644 index 4a0e762ae..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/asset_type.proto +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AssetTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing asset type. - -// Container for enum describing the types of asset. -message AssetTypeEnum { - // Enum describing possible types of asset. - enum AssetType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // YouTube video asset. - YOUTUBE_VIDEO = 2; - - // Media bundle asset. - MEDIA_BUNDLE = 3; - - // Image asset. - IMAGE = 4; - - // Text asset. - TEXT = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/attribution_model.proto b/third_party/googleapis/google/ads/googleads/v2/enums/attribution_model.proto deleted file mode 100644 index ad30f7086..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/attribution_model.proto +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AttributionModelProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Container for enum representing the attribution model that describes how to -// distribute credit for a particular conversion across potentially many prior -// interactions. -message AttributionModelEnum { - // The attribution model that describes how to distribute credit for a - // particular conversion across potentially many prior interactions. - enum AttributionModel { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Uses external attribution. - EXTERNAL = 100; - - // Attributes all credit for a conversion to its last click. - GOOGLE_ADS_LAST_CLICK = 101; - - // Attributes all credit for a conversion to its first click using Google - // Search attribution. - GOOGLE_SEARCH_ATTRIBUTION_FIRST_CLICK = 102; - - // Attributes credit for a conversion equally across all of its clicks using - // Google Search attribution. - GOOGLE_SEARCH_ATTRIBUTION_LINEAR = 103; - - // Attributes exponentially more credit for a conversion to its more recent - // clicks using Google Search attribution (half-life is 1 week). - GOOGLE_SEARCH_ATTRIBUTION_TIME_DECAY = 104; - - // Attributes 40% of the credit for a conversion to its first and last - // clicks. Remaining 20% is evenly distributed across all other clicks. This - // uses Google Search attribution. - GOOGLE_SEARCH_ATTRIBUTION_POSITION_BASED = 105; - - // Flexible model that uses machine learning to determine the appropriate - // distribution of credit among clicks using Google Search attribution. - GOOGLE_SEARCH_ATTRIBUTION_DATA_DRIVEN = 106; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/bid_modifier_source.proto b/third_party/googleapis/google/ads/googleads/v2/enums/bid_modifier_source.proto deleted file mode 100644 index b2c04f9d4..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/bid_modifier_source.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "BidModifierSourceProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing bid modifier source. - -// Container for enum describing possible bid modifier sources. -message BidModifierSourceEnum { - // Enum describing possible bid modifier sources. - enum BidModifierSource { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The bid modifier is specified at the campaign level, on the campaign - // level criterion. - CAMPAIGN = 2; - - // The bid modifier is specified (overridden) at the ad group level. - AD_GROUP = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/bidding_source.proto b/third_party/googleapis/google/ads/googleads/v2/enums/bidding_source.proto deleted file mode 100644 index 6e35777d7..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/bidding_source.proto +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "BiddingSourceProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing bidding sources. - -// Container for enum describing possible bidding sources. -message BiddingSourceEnum { - // Indicates where a bid or target is defined. For example, an ad group - // criterion may define a cpc bid directly, or it can inherit its cpc bid from - // the ad group. - enum BiddingSource { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Effective bid or target is inherited from campaign bidding strategy. - CAMPAIGN_BIDDING_STRATEGY = 5; - - // The bid or target is defined on the ad group. - AD_GROUP = 6; - - // The bid or target is defined on the ad group criterion. - AD_GROUP_CRITERION = 7; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/bidding_strategy_status.proto b/third_party/googleapis/google/ads/googleads/v2/enums/bidding_strategy_status.proto deleted file mode 100644 index fc8c5e8c5..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/bidding_strategy_status.proto +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "BiddingStrategyStatusProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing BiddingStrategy statuses. - -// Message describing BiddingStrategy statuses. -message BiddingStrategyStatusEnum { - // The possible statuses of a BiddingStrategy. - enum BiddingStrategyStatus { - // No value has been specified. - UNSPECIFIED = 0; - - // The received value is not known in this version. - // - // This is a response-only value. - UNKNOWN = 1; - - // The bidding strategy is enabled. - ENABLED = 2; - - // The bidding strategy is removed. - REMOVED = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/bidding_strategy_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/bidding_strategy_type.proto deleted file mode 100644 index 62326f55d..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/bidding_strategy_type.proto +++ /dev/null @@ -1,110 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "BiddingStrategyTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing bidding schemes. - -// Container for enum describing possible bidding strategy types. -message BiddingStrategyTypeEnum { - // Enum describing possible bidding strategy types. - enum BiddingStrategyType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Commission is an automatic bidding strategy in which the advertiser pays - // a certain portion of the conversion value. - COMMISSION = 16; - - // Enhanced CPC is a 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. - ENHANCED_CPC = 2; - - // Manual click based bidding where user pays per click. - MANUAL_CPC = 3; - - // Manual impression based bidding - // where user pays per thousand impressions. - MANUAL_CPM = 4; - - // A bidding strategy that pays a configurable amount per video view. - MANUAL_CPV = 13; - - // A bidding strategy that automatically maximizes number of conversions - // given a daily budget. - MAXIMIZE_CONVERSIONS = 10; - - // An automated bidding strategy that automatically sets bids to maximize - // revenue while spending your budget. - MAXIMIZE_CONVERSION_VALUE = 11; - - // Page-One Promoted bidding scheme, which sets max cpc bids to - // target impressions on page one or page one promoted slots on google.com. - // This enum value is deprecated. - PAGE_ONE_PROMOTED = 5; - - // Percent Cpc is bidding strategy where bids are a fraction of the - // advertised price for some good or service. - PERCENT_CPC = 12; - - // Target CPA is an automated bid strategy that sets bids - // to help get as many conversions as possible - // at the target cost-per-acquisition (CPA) you set. - TARGET_CPA = 6; - - // Target CPM is an automated bid strategy that sets bids to help get - // as many impressions as possible at the target cost per one thousand - // impressions (CPM) you set. - TARGET_CPM = 14; - - // 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 - // location). - TARGET_IMPRESSION_SHARE = 15; - - // Target Outrank Share is an automated bidding strategy that sets bids - // based on the target fraction of auctions where the advertiser - // should outrank a specific competitor. - // This enum value is deprecated. - TARGET_OUTRANK_SHARE = 7; - - // Target ROAS is an automated bidding strategy - // that helps you maximize revenue while averaging - // a specific target Return On Average Spend (ROAS). - TARGET_ROAS = 8; - - // Target Spend is an automated bid strategy that sets your bids - // to help get as many clicks as possible within your budget. - TARGET_SPEND = 9; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/billing_setup_status.proto b/third_party/googleapis/google/ads/googleads/v2/enums/billing_setup_status.proto deleted file mode 100644 index 06a25f010..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/billing_setup_status.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "BillingSetupStatusProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing BillingSetup statuses. - -// Message describing BillingSetup statuses. -message BillingSetupStatusEnum { - // The possible statuses of a BillingSetup. - enum BillingSetupStatus { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The billing setup is pending approval. - PENDING = 2; - - // The billing setup has been approved but the corresponding first budget - // has not. This can only occur for billing setups configured for monthly - // invoicing. - APPROVED_HELD = 3; - - // The billing setup has been approved. - APPROVED = 4; - - // The billing setup was cancelled by the user prior to approval. - CANCELLED = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/brand_safety_suitability.proto b/third_party/googleapis/google/ads/googleads/v2/enums/brand_safety_suitability.proto deleted file mode 100644 index f822e44ab..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/brand_safety_suitability.proto +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "BrandSafetySuitabilityProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing brand safety suitability settings. - -// Container for enum with 3-Tier brand safety suitability control. -message BrandSafetySuitabilityEnum { - // 3-Tier brand safety suitability control. - enum BrandSafetySuitability { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // This option lets you show ads across all inventory on YouTube and video - // partners that meet our standards for monetization. This option may be an - // appropriate choice for brands that want maximum access to the full - // breadth of videos eligible for ads, including, for example, videos that - // have strong profanity in the context of comedy or a documentary, or - // excessive violence as featured in video games. - EXPANDED_INVENTORY = 2; - - // This option lets you show ads across a wide range of content that's - // appropriate for most brands, such as popular music videos, documentaries, - // and movie trailers. The content you can show ads on is based on YouTube's - // advertiser-friendly content guidelines that take into account, for - // example, the strength or frequency of profanity, or the appropriateness - // of subject matter like sensitive events. Ads won't show, for example, on - // content with repeated strong profanity, strong sexual content, or graphic - // violence. - STANDARD_INVENTORY = 3; - - // This option lets you show ads on a reduced range of content that's - // appropriate for brands with particularly strict guidelines around - // inappropriate language and sexual suggestiveness; above and beyond what - // YouTube's advertiser-friendly content guidelines address. The videos - // accessible in this sensitive category meet heightened requirements, - // especially for inappropriate language and sexual suggestiveness. For - // example, your ads will be excluded from showing on some of YouTube's most - // popular music videos and other pop culture content across YouTube and - // Google video partners. - LIMITED_INVENTORY = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/budget_delivery_method.proto b/third_party/googleapis/google/ads/googleads/v2/enums/budget_delivery_method.proto deleted file mode 100644 index 9d5e4d98e..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/budget_delivery_method.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "BudgetDeliveryMethodProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing Budget delivery methods. - -// Message describing Budget delivery methods. A delivery method determines the -// rate at which the Budget is spent. -message BudgetDeliveryMethodEnum { - // Possible delivery methods of a Budget. - enum BudgetDeliveryMethod { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The budget server will throttle serving evenly across - // the entire time period. - STANDARD = 2; - - // The budget server will not throttle serving, - // and ads will serve as fast as possible. - ACCELERATED = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/budget_period.proto b/third_party/googleapis/google/ads/googleads/v2/enums/budget_period.proto deleted file mode 100644 index 2be12f638..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/budget_period.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "BudgetPeriodProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing Budget delivery methods. - -// Message describing Budget period. -message BudgetPeriodEnum { - // Possible period of a Budget. - enum BudgetPeriod { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Daily budget. - DAILY = 2; - - // Custom budget. - CUSTOM = 3; - - // Fixed daily budget. - FIXED_DAILY = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/budget_status.proto b/third_party/googleapis/google/ads/googleads/v2/enums/budget_status.proto deleted file mode 100644 index 22ec5458b..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/budget_status.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "BudgetStatusProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing Budget statuses - -// Message describing a Budget status -message BudgetStatusEnum { - // Possible statuses of a Budget. - enum BudgetStatus { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Budget is enabled. - ENABLED = 2; - - // Budget is removed. - REMOVED = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/budget_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/budget_type.proto deleted file mode 100644 index 81ba40642..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/budget_type.proto +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "BudgetTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing Budget types. - -// Describes Budget types. -message BudgetTypeEnum { - // Possible Budget types. - enum BudgetType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Budget type for standard Google Ads usage. - // Caps daily spend at two times the specified budget amount. - // Full details: https://support.google.com/google-ads/answer/6385083 - STANDARD = 2; - - // Budget type for Hotels Ads commission program. - // Full details: https://support.google.com/google-ads/answer/9243945 - // - // This type is only supported by campaigns with - // AdvertisingChannelType.HOTEL, BiddingStrategyType.COMMISSION and - // PaymentMode.CONVERSION_VALUE. - HOTEL_ADS_COMMISSION = 3; - - // Budget type with a fixed cost-per-acquisition (conversion). - // Full details: https://support.google.com/google-ads/answer/7528254 - // - // This type is only supported by campaigns with - // AdvertisingChannelType.DISPLAY (excluding - // AdvertisingChannelSubType.DISPLAY_GMAIL), - // BiddingStrategyType.TARGET_CPA and PaymentMode.CONVERSIONS. - FIXED_CPA = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/call_conversion_reporting_state.proto b/third_party/googleapis/google/ads/googleads/v2/enums/call_conversion_reporting_state.proto deleted file mode 100644 index 11eb222f4..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/call_conversion_reporting_state.proto +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "CallConversionReportingStateProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing call conversion reporting state. - -// Container for enum describing possible data types for call conversion -// reporting state. -message CallConversionReportingStateEnum { - // Possible data types for a call conversion action state. - enum CallConversionReportingState { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Call conversion action is disabled. - DISABLED = 2; - - // Call conversion action will use call conversion type set at the - // account level. - USE_ACCOUNT_LEVEL_CALL_CONVERSION_ACTION = 3; - - // Call conversion action will use call conversion type set at the resource - // (call only ads/call extensions) level. - USE_RESOURCE_LEVEL_CALL_CONVERSION_ACTION = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/call_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v2/enums/call_placeholder_field.proto deleted file mode 100644 index 6709beeb5..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/call_placeholder_field.proto +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "CallPlaceholderFieldProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing Call placeholder fields. - -// Values for Call placeholder fields. -message CallPlaceholderFieldEnum { - // Possible values for Call placeholder fields. - enum CallPlaceholderField { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Data Type: STRING. The advertiser's phone number to append to the ad. - PHONE_NUMBER = 2; - - // Data Type: STRING. Uppercase two-letter country code of the advertiser's - // phone number. - COUNTRY_CODE = 3; - - // Data Type: BOOLEAN. Indicates whether call tracking is enabled. Default: - // true. - TRACKED = 4; - - // Data Type: INT64. The ID of an AdCallMetricsConversion object. This - // object contains the phoneCallDurationfield which is the minimum duration - // (in seconds) of a call to be considered a conversion. - CONVERSION_TYPE_ID = 5; - - // Data Type: STRING. Indicates whether this call extension uses its own - // call conversion setting or follows the account level setting. - // Valid values are: USE_ACCOUNT_LEVEL_CALL_CONVERSION_ACTION and - // USE_RESOURCE_LEVEL_CALL_CONVERSION_ACTION. - CONVERSION_REPORTING_STATE = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/callout_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v2/enums/callout_placeholder_field.proto deleted file mode 100644 index ee1c505fe..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/callout_placeholder_field.proto +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "CalloutPlaceholderFieldProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing Callout placeholder fields. - -// Values for Callout placeholder fields. -message CalloutPlaceholderFieldEnum { - // Possible values for Callout placeholder fields. - enum CalloutPlaceholderField { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Data Type: STRING. Callout text. - CALLOUT_TEXT = 2; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/campaign_criterion_status.proto b/third_party/googleapis/google/ads/googleads/v2/enums/campaign_criterion_status.proto deleted file mode 100644 index 651ecacf8..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/campaign_criterion_status.proto +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "CampaignCriterionStatusProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing CampaignCriterion statuses. - -// Message describing CampaignCriterion statuses. -message CampaignCriterionStatusEnum { - // The possible statuses of a CampaignCriterion. - enum CampaignCriterionStatus { - // No value has been specified. - UNSPECIFIED = 0; - - // The received value is not known in this version. - // - // This is a response-only value. - UNKNOWN = 1; - - // The campaign criterion is enabled. - ENABLED = 2; - - // The campaign criterion is paused. - PAUSED = 3; - - // The campaign criterion is removed. - REMOVED = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/campaign_draft_status.proto b/third_party/googleapis/google/ads/googleads/v2/enums/campaign_draft_status.proto deleted file mode 100644 index 4a6d16032..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/campaign_draft_status.proto +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "CampaignDraftStatusProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing campaign draft status. - -// Container for enum describing possible statuses of a campaign draft. -message CampaignDraftStatusEnum { - // Possible statuses of a campaign draft. - enum CampaignDraftStatus { - // The status has not been specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Initial state of the draft, the advertiser can start adding changes with - // no effect on serving. - PROPOSED = 2; - - // The campaign draft is removed. - REMOVED = 3; - - // Advertiser requested to promote draft's changes back into the original - // campaign. Advertiser can poll the long running operation returned by - // the promote action to see the status of the promotion. - PROMOTING = 5; - - // The process to merge changes in the draft back to the original campaign - // has completed successfully. - PROMOTED = 4; - - // The promotion failed after it was partially applied. Promote cannot be - // attempted again safely, so the issue must be corrected in the original - // campaign. - PROMOTE_FAILED = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/campaign_experiment_status.proto b/third_party/googleapis/google/ads/googleads/v2/enums/campaign_experiment_status.proto deleted file mode 100644 index 20861643e..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/campaign_experiment_status.proto +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "CampaignExperimentStatusProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing campaign experiment status. - -// Container for enum describing possible statuses of a campaign experiment. -message CampaignExperimentStatusEnum { - // Possible statuses of a campaign experiment. - enum CampaignExperimentStatus { - // The status has not been specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The experiment campaign is being initialized. - INITIALIZING = 2; - - // Initialization of the experiment campaign failed. - INITIALIZATION_FAILED = 8; - - // The experiment campaign is fully initialized. The experiment is currently - // running, scheduled to run in the future or has ended based on its - // end date. An experiment with the status INITIALIZING will be updated to - // ENABLED when it is fully created. - ENABLED = 3; - - // The experiment campaign was graduated to a stand-alone - // campaign, existing independently of the experiment. - GRADUATED = 4; - - // The experiment is removed. - REMOVED = 5; - - // The experiment's changes are being applied to the original campaign. - // The long running operation returned by the promote method can be polled - // to see the status of the promotion. - PROMOTING = 6; - - // Promote of the experiment campaign failed. - PROMOTION_FAILED = 9; - - // The changes of the experiment are promoted to their original campaign. - PROMOTED = 7; - - // The experiment was ended manually. It did not end based on its end date. - ENDED_MANUALLY = 10; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/campaign_experiment_traffic_split_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/campaign_experiment_traffic_split_type.proto deleted file mode 100644 index de392b142..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/campaign_experiment_traffic_split_type.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "CampaignExperimentTrafficSplitTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing campaign experiment traffic split type. - -// Container for enum describing campaign experiment traffic split type. -message CampaignExperimentTrafficSplitTypeEnum { - // Enum of strategies for splitting traffic between base and experiment - // campaigns in campaign experiment. - enum CampaignExperimentTrafficSplitType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Traffic is randomly assigned to the base or experiment arm for each - // query, independent of previous assignments for the same user. - RANDOM_QUERY = 2; - - // Traffic is split using cookies to keep users in the same arm (base or - // experiment) of the experiment. - COOKIE = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/campaign_experiment_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/campaign_experiment_type.proto deleted file mode 100644 index c645942c9..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/campaign_experiment_type.proto +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "CampaignExperimentTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing campaign experiment type. - -// Container for enum describing campaign experiment type. -message CampaignExperimentTypeEnum { - // Indicates if this campaign is a normal campaign, - // a draft campaign, or an experiment campaign. - enum CampaignExperimentType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // This is a regular campaign. - BASE = 2; - - // This is a draft version of a campaign. - // It has some modifications from a base campaign, - // but it does not serve or accrue metrics. - DRAFT = 3; - - // This is an experiment version of a campaign. - // It has some modifications from a base campaign, - // and a percentage of traffic is being diverted - // from the BASE campaign to this experiment campaign. - EXPERIMENT = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/campaign_serving_status.proto b/third_party/googleapis/google/ads/googleads/v2/enums/campaign_serving_status.proto deleted file mode 100644 index 73f540c79..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/campaign_serving_status.proto +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "CampaignServingStatusProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing Campaign serving statuses. - -// Message describing Campaign serving statuses. -message CampaignServingStatusEnum { - // Possible serving statuses of a campaign. - enum CampaignServingStatus { - // No value has been specified. - UNSPECIFIED = 0; - - // The received value is not known in this version. - // - // This is a response-only value. - UNKNOWN = 1; - - // Serving. - SERVING = 2; - - // None. - NONE = 3; - - // Ended. - ENDED = 4; - - // Pending. - PENDING = 5; - - // Suspended. - SUSPENDED = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/campaign_shared_set_status.proto b/third_party/googleapis/google/ads/googleads/v2/enums/campaign_shared_set_status.proto deleted file mode 100644 index 0db57b7e1..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/campaign_shared_set_status.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "CampaignSharedSetStatusProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing campaign shared set statuses. - -// Container for enum describing types of campaign shared set statuses. -message CampaignSharedSetStatusEnum { - // Enum listing the possible campaign shared set statuses. - enum CampaignSharedSetStatus { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The campaign shared set is enabled. - ENABLED = 2; - - // The campaign shared set is removed and can no longer be used. - REMOVED = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/campaign_status.proto b/third_party/googleapis/google/ads/googleads/v2/enums/campaign_status.proto deleted file mode 100644 index ef4ffcb2f..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/campaign_status.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "CampaignStatusProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing campaign status. - -// Container for enum describing possible statuses of a campaign. -message CampaignStatusEnum { - // Possible statuses of a campaign. - enum CampaignStatus { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Campaign is currently serving ads depending on budget information. - ENABLED = 2; - - // Campaign has been paused by the user. - PAUSED = 3; - - // Campaign has been removed. - REMOVED = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/change_status_operation.proto b/third_party/googleapis/google/ads/googleads/v2/enums/change_status_operation.proto deleted file mode 100644 index 6fed1073d..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/change_status_operation.proto +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ChangeStatusOperationProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing the change status operations. - -// Container for enum describing operations for the ChangeStatus resource. -message ChangeStatusOperationEnum { - // Status of the changed resource - enum ChangeStatusOperation { - // No value has been specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents an unclassified resource unknown - // in this version. - UNKNOWN = 1; - - // The resource was created. - ADDED = 2; - - // The resource was modified. - CHANGED = 3; - - // The resource was removed. - REMOVED = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/change_status_resource_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/change_status_resource_type.proto deleted file mode 100644 index a2a19b588..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/change_status_resource_type.proto +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ChangeStatusResourceTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing the resource types the ChangeStatus resource supports. - -// Container for enum describing supported resource types for the ChangeStatus -// resource. -message ChangeStatusResourceTypeEnum { - // Enum listing the resource types support by the ChangeStatus resource. - enum ChangeStatusResourceType { - // No value has been specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents an unclassified resource unknown - // in this version. - UNKNOWN = 1; - - // An AdGroup resource change. - AD_GROUP = 3; - - // An AdGroupAd resource change. - AD_GROUP_AD = 4; - - // An AdGroupCriterion resource change. - AD_GROUP_CRITERION = 5; - - // A Campaign resource change. - CAMPAIGN = 6; - - // A CampaignCriterion resource change. - CAMPAIGN_CRITERION = 7; - - // A Feed resource change. - FEED = 9; - - // A FeedItem resource change. - FEED_ITEM = 10; - - // An AdGroupFeed resource change. - AD_GROUP_FEED = 11; - - // A CampaignFeed resource change. - CAMPAIGN_FEED = 12; - - // An AdGroupBidModifier resource change. - AD_GROUP_BID_MODIFIER = 13; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/click_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/click_type.proto deleted file mode 100644 index 2d16d5687..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/click_type.proto +++ /dev/null @@ -1,203 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ClickTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing click types. - -// Container for enumeration of Google Ads click types. -message ClickTypeEnum { - // Enumerates Google Ads click types. - enum ClickType { - // Not specified. - UNSPECIFIED = 0; - - // The value is unknown in this version. - UNKNOWN = 1; - - // App engagement ad deep link. - APP_DEEPLINK = 2; - - // Breadcrumbs. - BREADCRUMBS = 3; - - // Broadband Plan. - BROADBAND_PLAN = 4; - - // Manually dialed phone calls. - CALL_TRACKING = 5; - - // Phone calls. - CALLS = 6; - - // Click on engagement ad. - CLICK_ON_ENGAGEMENT_AD = 7; - - // Driving direction. - GET_DIRECTIONS = 8; - - // Get location details. - LOCATION_EXPANSION = 9; - - // Call. - LOCATION_FORMAT_CALL = 10; - - // Directions. - LOCATION_FORMAT_DIRECTIONS = 11; - - // Image(s). - LOCATION_FORMAT_IMAGE = 12; - - // Go to landing page. - LOCATION_FORMAT_LANDING_PAGE = 13; - - // Map. - LOCATION_FORMAT_MAP = 14; - - // Go to store info. - LOCATION_FORMAT_STORE_INFO = 15; - - // Text. - LOCATION_FORMAT_TEXT = 16; - - // Mobile phone calls. - MOBILE_CALL_TRACKING = 17; - - // Print offer. - OFFER_PRINTS = 18; - - // Other. - OTHER = 19; - - // Product plusbox offer. - PRODUCT_EXTENSION_CLICKS = 20; - - // Shopping - Product - Online. - PRODUCT_LISTING_AD_CLICKS = 21; - - // Sitelink. - SITELINKS = 22; - - // Show nearby locations. - STORE_LOCATOR = 23; - - // Headline. - URL_CLICKS = 25; - - // App store. - VIDEO_APP_STORE_CLICKS = 26; - - // Call-to-Action overlay. - VIDEO_CALL_TO_ACTION_CLICKS = 27; - - // Cards. - VIDEO_CARD_ACTION_HEADLINE_CLICKS = 28; - - // End cap. - VIDEO_END_CAP_CLICKS = 29; - - // Website. - VIDEO_WEBSITE_CLICKS = 30; - - // Visual Sitelinks. - VISUAL_SITELINKS = 31; - - // Wireless Plan. - WIRELESS_PLAN = 32; - - // Shopping - Product - Local. - PRODUCT_LISTING_AD_LOCAL = 33; - - // Shopping - Product - MultiChannel Local. - PRODUCT_LISTING_AD_MULTICHANNEL_LOCAL = 34; - - // Shopping - Product - MultiChannel Online. - PRODUCT_LISTING_AD_MULTICHANNEL_ONLINE = 35; - - // Shopping - Product - Coupon. - PRODUCT_LISTING_ADS_COUPON = 36; - - // Shopping - Product - Sell on Google. - PRODUCT_LISTING_AD_TRANSACTABLE = 37; - - // Shopping - Product - App engagement ad deep link. - PRODUCT_AD_APP_DEEPLINK = 38; - - // Shopping - Showcase - Category. - SHOWCASE_AD_CATEGORY_LINK = 39; - - // Shopping - Showcase - Local storefront. - SHOWCASE_AD_LOCAL_STOREFRONT_LINK = 40; - - // Shopping - Showcase - Online product. - SHOWCASE_AD_ONLINE_PRODUCT_LINK = 42; - - // Shopping - Showcase - Local product. - SHOWCASE_AD_LOCAL_PRODUCT_LINK = 43; - - // Promotion Extension. - PROMOTION_EXTENSION = 44; - - // Ad Headline. - SWIPEABLE_GALLERY_AD_HEADLINE = 45; - - // Swipes. - SWIPEABLE_GALLERY_AD_SWIPES = 46; - - // See More. - SWIPEABLE_GALLERY_AD_SEE_MORE = 47; - - // Sitelink 1. - SWIPEABLE_GALLERY_AD_SITELINK_ONE = 48; - - // Sitelink 2. - SWIPEABLE_GALLERY_AD_SITELINK_TWO = 49; - - // Sitelink 3. - SWIPEABLE_GALLERY_AD_SITELINK_THREE = 50; - - // Sitelink 4. - SWIPEABLE_GALLERY_AD_SITELINK_FOUR = 51; - - // Sitelink 5. - SWIPEABLE_GALLERY_AD_SITELINK_FIVE = 52; - - // Hotel price. - HOTEL_PRICE = 53; - - // Price Extension. - PRICE_EXTENSION = 54; - - // Book on Google hotel room selection. - HOTEL_BOOK_ON_GOOGLE_ROOM_SELECTION = 55; - - // Shopping - Comparison Listing. - SHOPPING_COMPARISON_LISTING = 56; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/content_label_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/content_label_type.proto deleted file mode 100644 index 672454455..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/content_label_type.proto +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ContentLabelTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing content label types. - -// Container for enum describing content label types in ContentLabel. -message ContentLabelTypeEnum { - // Enum listing the content label types supported by ContentLabel criterion. - enum ContentLabelType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Sexually suggestive content. - SEXUALLY_SUGGESTIVE = 2; - - // Below the fold placement. - BELOW_THE_FOLD = 3; - - // Parked domain. - PARKED_DOMAIN = 4; - - // Game. - GAME = 5; - - // Juvenile, gross & bizarre content. - JUVENILE = 6; - - // Profanity & rough language. - PROFANITY = 7; - - // Death & tragedy. - TRAGEDY = 8; - - // Video. - VIDEO = 9; - - // Content rating: G. - VIDEO_RATING_DV_G = 10; - - // Content rating: PG. - VIDEO_RATING_DV_PG = 11; - - // Content rating: T. - VIDEO_RATING_DV_T = 12; - - // Content rating: MA. - VIDEO_RATING_DV_MA = 13; - - // Content rating: not yet rated. - VIDEO_NOT_YET_RATED = 14; - - // Embedded video. - EMBEDDED_VIDEO = 15; - - // Live streaming video. - LIVE_STREAMING_VIDEO = 16; - - // Sensitive social issues. - SOCIAL_ISSUES = 17; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/conversion_action_category.proto b/third_party/googleapis/google/ads/googleads/v2/enums/conversion_action_category.proto deleted file mode 100644 index 244ab4478..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/conversion_action_category.proto +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ConversionActionCategoryProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Container for enum describing the category of conversions that are associated -// with a ConversionAction. -message ConversionActionCategoryEnum { - // The category of conversions that are associated with a ConversionAction. - enum ConversionActionCategory { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Default category. - DEFAULT = 2; - - // User visiting a page. - PAGE_VIEW = 3; - - // Purchase, sales, or "order placed" event. - PURCHASE = 4; - - // Signup user action. - SIGNUP = 5; - - // Lead-generating action. - LEAD = 6; - - // Software download action (as for an app). - DOWNLOAD = 7; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/conversion_action_counting_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/conversion_action_counting_type.proto deleted file mode 100644 index 68ce9d811..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/conversion_action_counting_type.proto +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ConversionActionCountingTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing conversion action counting type. - -// Container for enum describing the conversion deduplication mode for -// conversion optimizer. -message ConversionActionCountingTypeEnum { - // Indicates how conversions for this action will be counted. For more - // information, see https://support.google.com/google-ads/answer/3438531. - enum ConversionActionCountingType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Count only one conversion per click. - ONE_PER_CLICK = 2; - - // Count all conversions per click. - MANY_PER_CLICK = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/conversion_action_status.proto b/third_party/googleapis/google/ads/googleads/v2/enums/conversion_action_status.proto deleted file mode 100644 index d08ad0f61..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/conversion_action_status.proto +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ConversionActionStatusProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing conversion action status. - -// Container for enum describing possible statuses of a conversion action. -message ConversionActionStatusEnum { - // Possible statuses of a conversion action. - enum ConversionActionStatus { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Conversions will be recorded. - ENABLED = 2; - - // Conversions will not be recorded. - REMOVED = 3; - - // Conversions will not be recorded and the conversion action will not - // appear in the UI. - HIDDEN = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/conversion_action_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/conversion_action_type.proto deleted file mode 100644 index a00e67edd..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/conversion_action_type.proto +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ConversionActionTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing conversion action type. - -// Container for enum describing possible types of a conversion action. -message ConversionActionTypeEnum { - // Possible types of a conversion action. - enum ConversionActionType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Conversions that occur when a user clicks on an ad's call extension. - AD_CALL = 2; - - // Conversions that occur when a user on a mobile device clicks a phone - // number. - CLICK_TO_CALL = 3; - - // Conversions that occur when a user downloads a mobile app from the Google - // Play Store. - GOOGLE_PLAY_DOWNLOAD = 4; - - // Conversions that occur when a user makes a purchase in an app through - // Android billing. - GOOGLE_PLAY_IN_APP_PURCHASE = 5; - - // Call conversions that are tracked by the advertiser and uploaded. - UPLOAD_CALLS = 6; - - // Conversions that are tracked by the advertiser and uploaded with - // attributed clicks. - UPLOAD_CLICKS = 7; - - // Conversions that occur on a webpage. - WEBPAGE = 8; - - // Conversions that occur when a user calls a dynamically-generated phone - // number from an advertiser's website. - WEBSITE_CALL = 9; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/conversion_adjustment_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/conversion_adjustment_type.proto deleted file mode 100644 index bbe168519..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/conversion_adjustment_type.proto +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ConversionAdjustmentTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing conversion adjustment type. - -// Container for enum describing conversion adjustment types. -message ConversionAdjustmentTypeEnum { - // The different actions advertisers can take to adjust the conversions that - // they already reported. Retractions negate a conversion. Restatements change - // the value of a conversion. - enum ConversionAdjustmentType { - // Not specified. - UNSPECIFIED = 0; - - // Represents value unknown in this version. - UNKNOWN = 1; - - // Negates a conversion so that its total value and count are both zero. - RETRACTION = 2; - - // Changes the value of a conversion. - RESTATEMENT = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/conversion_attribution_event_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/conversion_attribution_event_type.proto deleted file mode 100644 index 071ed6bdb..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/conversion_attribution_event_type.proto +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ConversionAttributionEventTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Container for enum indicating the event type the conversion is attributed to. -message ConversionAttributionEventTypeEnum { - // The event type of conversions that are attributed to. - enum ConversionAttributionEventType { - // Not specified. - UNSPECIFIED = 0; - - // Represents value unknown in this version. - UNKNOWN = 1; - - // The conversion is attributed to an impression. - IMPRESSION = 2; - - // The conversion is attributed to an interaction. - INTERACTION = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/conversion_lag_bucket.proto b/third_party/googleapis/google/ads/googleads/v2/enums/conversion_lag_bucket.proto deleted file mode 100644 index 35924a0a5..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/conversion_lag_bucket.proto +++ /dev/null @@ -1,117 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ConversionLagBucketProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Container for enum representing the number of days between impression and -// conversion. -message ConversionLagBucketEnum { - // Enum representing the number of days between impression and conversion. - enum ConversionLagBucket { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Conversion lag bucket from 0 to 1 day. 0 day is included, 1 day is not. - LESS_THAN_ONE_DAY = 2; - - // Conversion lag bucket from 1 to 2 days. 1 day is included, 2 days is not. - ONE_TO_TWO_DAYS = 3; - - // Conversion lag bucket from 2 to 3 days. 2 days is included, - // 3 days is not. - TWO_TO_THREE_DAYS = 4; - - // Conversion lag bucket from 3 to 4 days. 3 days is included, - // 4 days is not. - THREE_TO_FOUR_DAYS = 5; - - // Conversion lag bucket from 4 to 5 days. 4 days is included, - // 5 days is not. - FOUR_TO_FIVE_DAYS = 6; - - // Conversion lag bucket from 5 to 6 days. 5 days is included, - // 6 days is not. - FIVE_TO_SIX_DAYS = 7; - - // Conversion lag bucket from 6 to 7 days. 6 days is included, - // 7 days is not. - SIX_TO_SEVEN_DAYS = 8; - - // Conversion lag bucket from 7 to 8 days. 7 days is included, - // 8 days is not. - SEVEN_TO_EIGHT_DAYS = 9; - - // Conversion lag bucket from 8 to 9 days. 8 days is included, - // 9 days is not. - EIGHT_TO_NINE_DAYS = 10; - - // Conversion lag bucket from 9 to 10 days. 9 days is included, - // 10 days is not. - NINE_TO_TEN_DAYS = 11; - - // Conversion lag bucket from 10 to 11 days. 10 days is included, - // 11 days is not. - TEN_TO_ELEVEN_DAYS = 12; - - // Conversion lag bucket from 11 to 12 days. 11 days is included, - // 12 days is not. - ELEVEN_TO_TWELVE_DAYS = 13; - - // Conversion lag bucket from 12 to 13 days. 12 days is included, - // 13 days is not. - TWELVE_TO_THIRTEEN_DAYS = 14; - - // Conversion lag bucket from 13 to 14 days. 13 days is included, - // 14 days is not. - THIRTEEN_TO_FOURTEEN_DAYS = 15; - - // Conversion lag bucket from 14 to 21 days. 14 days is included, - // 21 days is not. - FOURTEEN_TO_TWENTY_ONE_DAYS = 16; - - // Conversion lag bucket from 21 to 30 days. 21 days is included, - // 30 days is not. - TWENTY_ONE_TO_THIRTY_DAYS = 17; - - // Conversion lag bucket from 30 to 45 days. 30 days is included, - // 45 days is not. - THIRTY_TO_FORTY_FIVE_DAYS = 18; - - // Conversion lag bucket from 45 to 60 days. 45 days is included, - // 60 days is not. - FORTY_FIVE_TO_SIXTY_DAYS = 19; - - // Conversion lag bucket from 60 to 90 days. 60 days is included, - // 90 days is not. - SIXTY_TO_NINETY_DAYS = 20; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/conversion_or_adjustment_lag_bucket.proto b/third_party/googleapis/google/ads/googleads/v2/enums/conversion_or_adjustment_lag_bucket.proto deleted file mode 100644 index b27e555b4..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/conversion_or_adjustment_lag_bucket.proto +++ /dev/null @@ -1,206 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ConversionOrAdjustmentLagBucketProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Container for enum representing the number of days between the impression and -// the conversion or between the impression and adjustments to the conversion. -message ConversionOrAdjustmentLagBucketEnum { - // Enum representing the number of days between the impression and the - // conversion or between the impression and adjustments to the conversion. - enum ConversionOrAdjustmentLagBucket { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Conversion lag bucket from 0 to 1 day. 0 day is included, 1 day is not. - CONVERSION_LESS_THAN_ONE_DAY = 2; - - // Conversion lag bucket from 1 to 2 days. 1 day is included, 2 days is not. - CONVERSION_ONE_TO_TWO_DAYS = 3; - - // Conversion lag bucket from 2 to 3 days. 2 days is included, - // 3 days is not. - CONVERSION_TWO_TO_THREE_DAYS = 4; - - // Conversion lag bucket from 3 to 4 days. 3 days is included, - // 4 days is not. - CONVERSION_THREE_TO_FOUR_DAYS = 5; - - // Conversion lag bucket from 4 to 5 days. 4 days is included, - // 5 days is not. - CONVERSION_FOUR_TO_FIVE_DAYS = 6; - - // Conversion lag bucket from 5 to 6 days. 5 days is included, - // 6 days is not. - CONVERSION_FIVE_TO_SIX_DAYS = 7; - - // Conversion lag bucket from 6 to 7 days. 6 days is included, - // 7 days is not. - CONVERSION_SIX_TO_SEVEN_DAYS = 8; - - // Conversion lag bucket from 7 to 8 days. 7 days is included, - // 8 days is not. - CONVERSION_SEVEN_TO_EIGHT_DAYS = 9; - - // Conversion lag bucket from 8 to 9 days. 8 days is included, - // 9 days is not. - CONVERSION_EIGHT_TO_NINE_DAYS = 10; - - // Conversion lag bucket from 9 to 10 days. 9 days is included, - // 10 days is not. - CONVERSION_NINE_TO_TEN_DAYS = 11; - - // Conversion lag bucket from 10 to 11 days. 10 days is included, - // 11 days is not. - CONVERSION_TEN_TO_ELEVEN_DAYS = 12; - - // Conversion lag bucket from 11 to 12 days. 11 days is included, - // 12 days is not. - CONVERSION_ELEVEN_TO_TWELVE_DAYS = 13; - - // Conversion lag bucket from 12 to 13 days. 12 days is included, - // 13 days is not. - CONVERSION_TWELVE_TO_THIRTEEN_DAYS = 14; - - // Conversion lag bucket from 13 to 14 days. 13 days is included, - // 14 days is not. - CONVERSION_THIRTEEN_TO_FOURTEEN_DAYS = 15; - - // Conversion lag bucket from 14 to 21 days. 14 days is included, - // 21 days is not. - CONVERSION_FOURTEEN_TO_TWENTY_ONE_DAYS = 16; - - // Conversion lag bucket from 21 to 30 days. 21 days is included, - // 30 days is not. - CONVERSION_TWENTY_ONE_TO_THIRTY_DAYS = 17; - - // Conversion lag bucket from 30 to 45 days. 30 days is included, - // 45 days is not. - CONVERSION_THIRTY_TO_FORTY_FIVE_DAYS = 18; - - // Conversion lag bucket from 45 to 60 days. 45 days is included, - // 60 days is not. - CONVERSION_FORTY_FIVE_TO_SIXTY_DAYS = 19; - - // Conversion lag bucket from 60 to 90 days. 60 days is included, - // 90 days is not. - CONVERSION_SIXTY_TO_NINETY_DAYS = 20; - - // Conversion adjustment lag bucket from 0 to 1 day. 0 day is included, - // 1 day is not. - ADJUSTMENT_LESS_THAN_ONE_DAY = 21; - - // Conversion adjustment lag bucket from 1 to 2 days. 1 day is included, - // 2 days is not. - ADJUSTMENT_ONE_TO_TWO_DAYS = 22; - - // Conversion adjustment lag bucket from 2 to 3 days. 2 days is included, - // 3 days is not. - ADJUSTMENT_TWO_TO_THREE_DAYS = 23; - - // Conversion adjustment lag bucket from 3 to 4 days. 3 days is included, - // 4 days is not. - ADJUSTMENT_THREE_TO_FOUR_DAYS = 24; - - // Conversion adjustment lag bucket from 4 to 5 days. 4 days is included, - // 5 days is not. - ADJUSTMENT_FOUR_TO_FIVE_DAYS = 25; - - // Conversion adjustment lag bucket from 5 to 6 days. 5 days is included, - // 6 days is not. - ADJUSTMENT_FIVE_TO_SIX_DAYS = 26; - - // Conversion adjustment lag bucket from 6 to 7 days. 6 days is included, - // 7 days is not. - ADJUSTMENT_SIX_TO_SEVEN_DAYS = 27; - - // Conversion adjustment lag bucket from 7 to 8 days. 7 days is included, - // 8 days is not. - ADJUSTMENT_SEVEN_TO_EIGHT_DAYS = 28; - - // Conversion adjustment lag bucket from 8 to 9 days. 8 days is included, - // 9 days is not. - ADJUSTMENT_EIGHT_TO_NINE_DAYS = 29; - - // Conversion adjustment lag bucket from 9 to 10 days. 9 days is included, - // 10 days is not. - ADJUSTMENT_NINE_TO_TEN_DAYS = 30; - - // Conversion adjustment lag bucket from 10 to 11 days. 10 days is included, - // 11 days is not. - ADJUSTMENT_TEN_TO_ELEVEN_DAYS = 31; - - // Conversion adjustment lag bucket from 11 to 12 days. 11 days is included, - // 12 days is not. - ADJUSTMENT_ELEVEN_TO_TWELVE_DAYS = 32; - - // Conversion adjustment lag bucket from 12 to 13 days. 12 days is included, - // 13 days is not. - ADJUSTMENT_TWELVE_TO_THIRTEEN_DAYS = 33; - - // Conversion adjustment lag bucket from 13 to 14 days. 13 days is included, - // 14 days is not. - ADJUSTMENT_THIRTEEN_TO_FOURTEEN_DAYS = 34; - - // Conversion adjustment lag bucket from 14 to 21 days. 14 days is included, - // 21 days is not. - ADJUSTMENT_FOURTEEN_TO_TWENTY_ONE_DAYS = 35; - - // Conversion adjustment lag bucket from 21 to 30 days. 21 days is included, - // 30 days is not. - ADJUSTMENT_TWENTY_ONE_TO_THIRTY_DAYS = 36; - - // Conversion adjustment lag bucket from 30 to 45 days. 30 days is included, - // 45 days is not. - ADJUSTMENT_THIRTY_TO_FORTY_FIVE_DAYS = 37; - - // Conversion adjustment lag bucket from 45 to 60 days. 45 days is included, - // 60 days is not. - ADJUSTMENT_FORTY_FIVE_TO_SIXTY_DAYS = 38; - - // Conversion adjustment lag bucket from 60 to 90 days. 60 days is included, - // 90 days is not. - ADJUSTMENT_SIXTY_TO_NINETY_DAYS = 39; - - // Conversion adjustment lag bucket from 90 to 145 days. 90 days is - // included, 145 days is not. - ADJUSTMENT_NINETY_TO_ONE_HUNDRED_AND_FORTY_FIVE_DAYS = 40; - - // Conversion lag bucket UNKNOWN. This is for dates before conversion lag - // bucket was available in Google Ads. - CONVERSION_UNKNOWN = 41; - - // Conversion adjustment lag bucket UNKNOWN. This is for dates before - // conversion adjustment lag bucket was available in Google Ads. - ADJUSTMENT_UNKNOWN = 42; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/criterion_category_channel_availability_mode.proto b/third_party/googleapis/google/ads/googleads/v2/enums/criterion_category_channel_availability_mode.proto deleted file mode 100644 index 4897380e3..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/criterion_category_channel_availability_mode.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "CriterionCategoryChannelAvailabilityModeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing the criterion category channel availability mode. - -// Describes channel availability mode for a criterion availability - whether -// the availability is meant to include all advertising channels, or a -// particular channel with all its channel subtypes, or a channel with a certain -// subset of channel subtypes. -message CriterionCategoryChannelAvailabilityModeEnum { - // Enum containing the possible CriterionCategoryChannelAvailabilityMode. - enum CriterionCategoryChannelAvailabilityMode { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The category is available to campaigns of all channel types and subtypes. - ALL_CHANNELS = 2; - - // The category is available to campaigns of a specific channel type, - // including all subtypes under it. - CHANNEL_TYPE_AND_ALL_SUBTYPES = 3; - - // The category is available to campaigns of a specific channel type and - // subtype(s). - CHANNEL_TYPE_AND_SUBSET_SUBTYPES = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/criterion_category_locale_availability_mode.proto b/third_party/googleapis/google/ads/googleads/v2/enums/criterion_category_locale_availability_mode.proto deleted file mode 100644 index 3228c3e46..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/criterion_category_locale_availability_mode.proto +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "CriterionCategoryLocaleAvailabilityModeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing the criterion category locale availability mode. - -// Describes locale availability mode for a criterion availability - whether -// it's available globally, or a particular country with all languages, or a -// particular language with all countries, or a country-language pair. -message CriterionCategoryLocaleAvailabilityModeEnum { - // Enum containing the possible CriterionCategoryLocaleAvailabilityMode. - enum CriterionCategoryLocaleAvailabilityMode { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The category is available to campaigns of all locales. - ALL_LOCALES = 2; - - // The category is available to campaigns within a list of countries, - // regardless of language. - COUNTRY_AND_ALL_LANGUAGES = 3; - - // The category is available to campaigns within a list of languages, - // regardless of country. - LANGUAGE_AND_ALL_COUNTRIES = 4; - - // The category is available to campaigns within a list of country, language - // pairs. - COUNTRY_AND_LANGUAGE = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/criterion_system_serving_status.proto b/third_party/googleapis/google/ads/googleads/v2/enums/criterion_system_serving_status.proto deleted file mode 100644 index 7b92a0450..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/criterion_system_serving_status.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "CriterionSystemServingStatusProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing approval status for the criterion. - -// Container for enum describing possible criterion system serving statuses. -message CriterionSystemServingStatusEnum { - // Enumerates criterion system serving statuses. - enum CriterionSystemServingStatus { - // Not specified. - UNSPECIFIED = 0; - - // The value is unknown in this version. - UNKNOWN = 1; - - // Eligible. - ELIGIBLE = 2; - - // Low search volume. - RARELY_SERVED = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/criterion_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/criterion_type.proto deleted file mode 100644 index bb761dab4..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/criterion_type.proto +++ /dev/null @@ -1,134 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "CriterionTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing criteria types. - -// The possible types of a criterion. -message CriterionTypeEnum { - // Enum describing possible criterion types. - enum CriterionType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Keyword. e.g. 'mars cruise'. - KEYWORD = 2; - - // Placement, aka Website. e.g. 'www.flowers4sale.com' - PLACEMENT = 3; - - // Mobile application categories to target. - MOBILE_APP_CATEGORY = 4; - - // Mobile applications to target. - MOBILE_APPLICATION = 5; - - // Devices to target. - DEVICE = 6; - - // Locations to target. - LOCATION = 7; - - // Listing groups to target. - LISTING_GROUP = 8; - - // Ad Schedule. - AD_SCHEDULE = 9; - - // Age range. - AGE_RANGE = 10; - - // Gender. - GENDER = 11; - - // Income Range. - INCOME_RANGE = 12; - - // Parental status. - PARENTAL_STATUS = 13; - - // YouTube Video. - YOUTUBE_VIDEO = 14; - - // YouTube Channel. - YOUTUBE_CHANNEL = 15; - - // User list. - USER_LIST = 16; - - // Proximity. - PROXIMITY = 17; - - // A topic target on the display network (e.g. "Pets & Animals"). - TOPIC = 18; - - // Listing scope to target. - LISTING_SCOPE = 19; - - // Language. - LANGUAGE = 20; - - // IpBlock. - IP_BLOCK = 21; - - // Content Label for category exclusion. - CONTENT_LABEL = 22; - - // Carrier. - CARRIER = 23; - - // A category the user is interested in. - USER_INTEREST = 24; - - // Webpage criterion for dynamic search ads. - WEBPAGE = 25; - - // Operating system version. - OPERATING_SYSTEM_VERSION = 26; - - // App payment model. - APP_PAYMENT_MODEL = 27; - - // Mobile device. - MOBILE_DEVICE = 28; - - // Custom affinity. - CUSTOM_AFFINITY = 29; - - // Custom intent. - CUSTOM_INTENT = 30; - - // Location group. - LOCATION_GROUP = 31; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/custom_interest_member_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/custom_interest_member_type.proto deleted file mode 100644 index 4046d0b7d..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/custom_interest_member_type.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "CustomInterestMemberTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing custom interest member type. - -// The types of custom interest member, either KEYWORD or URL. -message CustomInterestMemberTypeEnum { - // Enum containing possible custom interest member types. - enum CustomInterestMemberType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Custom interest member type KEYWORD. - KEYWORD = 2; - - // Custom interest member type URL. - URL = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/custom_interest_status.proto b/third_party/googleapis/google/ads/googleads/v2/enums/custom_interest_status.proto deleted file mode 100644 index 7f1db044e..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/custom_interest_status.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "CustomInterestStatusProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing custom interest status. - -// The status of custom interest. -message CustomInterestStatusEnum { - // Enum containing possible custom interest types. - enum CustomInterestStatus { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Enabled status - custom interest is enabled and can be targeted to. - ENABLED = 2; - - // Removed status - custom interest is removed and cannot be used for - // targeting. - REMOVED = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/custom_interest_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/custom_interest_type.proto deleted file mode 100644 index 62d2b32b7..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/custom_interest_type.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "CustomInterestTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing custom interest type. - -// The types of custom interest. -message CustomInterestTypeEnum { - // Enum containing possible custom interest types. - enum CustomInterestType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Allows brand advertisers to define custom affinity audience lists. - CUSTOM_AFFINITY = 2; - - // Allows advertisers to define custom intent audience lists. - CUSTOM_INTENT = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/custom_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v2/enums/custom_placeholder_field.proto deleted file mode 100644 index 774269fcf..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/custom_placeholder_field.proto +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "CustomPlaceholderFieldProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing Custom placeholder fields. - -// Values for Custom placeholder fields. -// For more information about dynamic remarketing feeds, see -// https://support.google.com/google-ads/answer/6053288. -message CustomPlaceholderFieldEnum { - // Possible values for Custom placeholder fields. - enum CustomPlaceholderField { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Data Type: STRING. Required. Combination ID and ID2 must be unique per - // offer. - ID = 2; - - // Data Type: STRING. Combination ID and ID2 must be unique per offer. - ID2 = 3; - - // Data Type: STRING. Required. Main headline with product name to be shown - // in dynamic ad. - ITEM_TITLE = 4; - - // Data Type: STRING. Optional text to be shown in the image ad. - ITEM_SUBTITLE = 5; - - // Data Type: STRING. Optional description of the product to be shown in the - // ad. - ITEM_DESCRIPTION = 6; - - // Data Type: STRING. Full address of your offer or service, including - // postal code. This will be used to identify the closest product to the - // user when there are multiple offers in the feed that are relevant to the - // user. - ITEM_ADDRESS = 7; - - // Data Type: STRING. Price to be shown in the ad. - // Example: "100.00 USD" - PRICE = 8; - - // Data Type: STRING. Formatted price to be shown in the ad. - // Example: "Starting at $100.00 USD", "$80 - $100" - FORMATTED_PRICE = 9; - - // Data Type: STRING. Sale price to be shown in the ad. - // Example: "80.00 USD" - SALE_PRICE = 10; - - // Data Type: STRING. Formatted sale price to be shown in the ad. - // Example: "On sale for $80.00", "$60 - $80" - FORMATTED_SALE_PRICE = 11; - - // Data Type: URL. Image to be displayed in the ad. Highly recommended for - // image ads. - IMAGE_URL = 12; - - // Data Type: STRING. Used as a recommendation engine signal to serve items - // in the same category. - ITEM_CATEGORY = 13; - - // Data Type: URL_LIST. Final URLs for the ad when using Upgraded - // URLs. User will be redirected to these URLs when they click on an ad, or - // when they click on a specific product for ads that have multiple - // products. - FINAL_URLS = 14; - - // Data Type: URL_LIST. Final mobile URLs for the ad when using Upgraded - // URLs. - FINAL_MOBILE_URLS = 15; - - // Data Type: URL. Tracking template for the ad when using Upgraded URLs. - TRACKING_URL = 16; - - // Data Type: STRING_LIST. Keywords used for product retrieval. - CONTEXTUAL_KEYWORDS = 17; - - // Data Type: STRING. Android app link. Must be formatted as: - // android-app://{package_id}/{scheme}/{host_path}. - // The components are defined as follows: - // package_id: app ID as specified in Google Play. - // scheme: the scheme to pass to the application. Can be HTTP, or a custom - // scheme. - // host_path: identifies the specific content within your application. - ANDROID_APP_LINK = 18; - - // Data Type: STRING_LIST. List of recommended IDs to show together with - // this item. - SIMILAR_IDS = 19; - - // Data Type: STRING. iOS app link. - IOS_APP_LINK = 20; - - // Data Type: INT64. iOS app store ID. - IOS_APP_STORE_ID = 21; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/customer_match_upload_key_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/customer_match_upload_key_type.proto deleted file mode 100644 index 03c554d70..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/customer_match_upload_key_type.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "CustomerMatchUploadKeyTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Indicates what type of data are the user list's members matched from. -message CustomerMatchUploadKeyTypeEnum { - // Enum describing possible customer match upload key types. - enum CustomerMatchUploadKeyType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Members are matched from customer info such as email address, phone - // number or physical address. - CONTACT_INFO = 2; - - // Members are matched from a user id generated and assigned by the - // advertiser. - CRM_ID = 3; - - // Members are matched from mobile advertising ids. - MOBILE_ADVERTISING_ID = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/customer_pay_per_conversion_eligibility_failure_reason.proto b/third_party/googleapis/google/ads/googleads/v2/enums/customer_pay_per_conversion_eligibility_failure_reason.proto deleted file mode 100644 index 33903b222..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/customer_pay_per_conversion_eligibility_failure_reason.proto +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "CustomerPayPerConversionEligibilityFailureReasonProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing pay per conversion eligibility failure reasons. - -// Container for enum describing reasons why a customer is not eligible to use -// PaymentMode.CONVERSIONS. -message CustomerPayPerConversionEligibilityFailureReasonEnum { - // Enum describing possible reasons a customer is not eligible to use - // PaymentMode.CONVERSIONS. - enum CustomerPayPerConversionEligibilityFailureReason { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Customer does not have enough conversions. - NOT_ENOUGH_CONVERSIONS = 2; - - // Customer's conversion lag is too high. - CONVERSION_LAG_TOO_HIGH = 3; - - // Customer uses shared budgets. - HAS_CAMPAIGN_WITH_SHARED_BUDGET = 4; - - // Customer has conversions with ConversionActionType.UPLOAD_CLICKS. - HAS_UPLOAD_CLICKS_CONVERSION = 5; - - // Customer's average daily spend is too high. - AVERAGE_DAILY_SPEND_TOO_HIGH = 6; - - // Customer's eligibility has not yet been calculated by the Google Ads - // backend. Check back soon. - ANALYSIS_NOT_COMPLETE = 7; - - // Customer is not eligible due to other reasons. - OTHER = 8; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/data_driven_model_status.proto b/third_party/googleapis/google/ads/googleads/v2/enums/data_driven_model_status.proto deleted file mode 100644 index 10cab1e4b..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/data_driven_model_status.proto +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "DataDrivenModelStatusProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing data-driven model status. - -// Container for enum indicating data driven model status. -message DataDrivenModelStatusEnum { - // Enumerates data driven model statuses. - enum DataDrivenModelStatus { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The data driven model is available. - AVAILABLE = 2; - - // The data driven model is stale. It hasn't been updated for at least 7 - // days. It is still being used, but will become expired if it does not get - // updated for 30 days. - STALE = 3; - - // The data driven model expired. It hasn't been updated for at least 30 - // days and cannot be used. Most commonly this is because there hasn't been - // the required number of events in a recent 30-day period. - EXPIRED = 4; - - // The data driven model has never been generated. Most commonly this is - // because there has never been the required number of events in any 30-day - // period. - NEVER_GENERATED = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/day_of_week.proto b/third_party/googleapis/google/ads/googleads/v2/enums/day_of_week.proto deleted file mode 100644 index 594cba531..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/day_of_week.proto +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "DayOfWeekProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing days of week. - -// Container for enumeration of days of the week, e.g., "Monday". -message DayOfWeekEnum { - // Enumerates days of the week, e.g., "Monday". - enum DayOfWeek { - // Not specified. - UNSPECIFIED = 0; - - // The value is unknown in this version. - UNKNOWN = 1; - - // Monday. - MONDAY = 2; - - // Tuesday. - TUESDAY = 3; - - // Wednesday. - WEDNESDAY = 4; - - // Thursday. - THURSDAY = 5; - - // Friday. - FRIDAY = 6; - - // Saturday. - SATURDAY = 7; - - // Sunday. - SUNDAY = 8; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/device.proto b/third_party/googleapis/google/ads/googleads/v2/enums/device.proto deleted file mode 100644 index 54072ae86..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/device.proto +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "DeviceProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing devices. - -// Container for enumeration of Google Ads devices available for targeting. -message DeviceEnum { - // Enumerates Google Ads devices available for targeting. - enum Device { - // Not specified. - UNSPECIFIED = 0; - - // The value is unknown in this version. - UNKNOWN = 1; - - // Mobile devices with full browsers. - MOBILE = 2; - - // Tablets with full browsers. - TABLET = 3; - - // Computers. - DESKTOP = 4; - - // Smart TVs and game consoles. - CONNECTED_TV = 6; - - // Other device types. - OTHER = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/display_ad_format_setting.proto b/third_party/googleapis/google/ads/googleads/v2/enums/display_ad_format_setting.proto deleted file mode 100644 index 85547718c..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/display_ad_format_setting.proto +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "DisplayAdFormatSettingProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing display ad format settings. - -// Container for display ad format settings. -message DisplayAdFormatSettingEnum { - // Enumerates display ad format settings. - enum DisplayAdFormatSetting { - // Not specified. - UNSPECIFIED = 0; - - // The value is unknown in this version. - UNKNOWN = 1; - - // Text, image and native formats. - ALL_FORMATS = 2; - - // Text and image formats. - NON_NATIVE = 3; - - // Native format, i.e. the format rendering is controlled by the publisher - // and not by Google. - NATIVE = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/display_upload_product_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/display_upload_product_type.proto deleted file mode 100644 index 3f4e09863..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/display_upload_product_type.proto +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "DisplayUploadProductTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing display upload product types. - -// Container for display upload product types. Product types that have the word -// "DYNAMIC" in them must be associated with a campaign that has a dynamic -// remarketing feed. See https://support.google.com/google-ads/answer/6053288 -// for more info about dynamic remarketing. Other product types are regarded -// as "static" and do not have this requirement. -message DisplayUploadProductTypeEnum { - // Enumerates display upload product types. - enum DisplayUploadProductType { - // Not specified. - UNSPECIFIED = 0; - - // The value is unknown in this version. - UNKNOWN = 1; - - // HTML5 upload ad. This product type requires the upload_media_bundle - // field in DisplayUploadAdInfo to be set. - HTML5_UPLOAD_AD = 2; - - // Dynamic HTML5 education ad. This product type requires the - // upload_media_bundle field in DisplayUploadAdInfo to be set. Can only be - // used in an education campaign. - DYNAMIC_HTML5_EDUCATION_AD = 3; - - // Dynamic HTML5 flight ad. This product type requires the - // upload_media_bundle field in DisplayUploadAdInfo to be set. Can only be - // used in a flight campaign. - DYNAMIC_HTML5_FLIGHT_AD = 4; - - // Dynamic HTML5 hotel and rental ad. This product type requires the - // upload_media_bundle field in DisplayUploadAdInfo to be set. Can only be - // used in a hotel campaign. - DYNAMIC_HTML5_HOTEL_RENTAL_AD = 5; - - // Dynamic HTML5 job ad. This product type requires the - // upload_media_bundle field in DisplayUploadAdInfo to be set. Can only be - // used in a job campaign. - DYNAMIC_HTML5_JOB_AD = 6; - - // Dynamic HTML5 local ad. This product type requires the - // upload_media_bundle field in DisplayUploadAdInfo to be set. Can only be - // used in a local campaign. - DYNAMIC_HTML5_LOCAL_AD = 7; - - // Dynamic HTML5 real estate ad. This product type requires the - // upload_media_bundle field in DisplayUploadAdInfo to be set. Can only be - // used in a real estate campaign. - DYNAMIC_HTML5_REAL_ESTATE_AD = 8; - - // Dynamic HTML5 custom ad. This product type requires the - // upload_media_bundle field in DisplayUploadAdInfo to be set. Can only be - // used in a custom campaign. - DYNAMIC_HTML5_CUSTOM_AD = 9; - - // Dynamic HTML5 travel ad. This product type requires the - // upload_media_bundle field in DisplayUploadAdInfo to be set. Can only be - // used in a travel campaign. - DYNAMIC_HTML5_TRAVEL_AD = 10; - - // Dynamic HTML5 hotel ad. This product type requires the - // upload_media_bundle field in DisplayUploadAdInfo to be set. Can only be - // used in a hotel campaign. - DYNAMIC_HTML5_HOTEL_AD = 11; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/distance_bucket.proto b/third_party/googleapis/google/ads/googleads/v2/enums/distance_bucket.proto deleted file mode 100644 index 79dab2806..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/distance_bucket.proto +++ /dev/null @@ -1,127 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "DistanceBucketProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing distance buckets. - -// Container for distance buckets of a user’s distance from an advertiser’s -// location extension. -message DistanceBucketEnum { - // The distance bucket for a user’s distance from an advertiser’s location - // extension. - enum DistanceBucket { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // User was within 700m of the location. - WITHIN_700M = 2; - - // User was within 1KM of the location. - WITHIN_1KM = 3; - - // User was within 5KM of the location. - WITHIN_5KM = 4; - - // User was within 10KM of the location. - WITHIN_10KM = 5; - - // User was within 15KM of the location. - WITHIN_15KM = 6; - - // User was within 20KM of the location. - WITHIN_20KM = 7; - - // User was within 25KM of the location. - WITHIN_25KM = 8; - - // User was within 30KM of the location. - WITHIN_30KM = 9; - - // User was within 35KM of the location. - WITHIN_35KM = 10; - - // User was within 40KM of the location. - WITHIN_40KM = 11; - - // User was within 45KM of the location. - WITHIN_45KM = 12; - - // User was within 50KM of the location. - WITHIN_50KM = 13; - - // User was within 55KM of the location. - WITHIN_55KM = 14; - - // User was within 60KM of the location. - WITHIN_60KM = 15; - - // User was within 65KM of the location. - WITHIN_65KM = 16; - - // User was beyond 65KM of the location. - BEYOND_65KM = 17; - - // User was within 0.7 miles of the location. - WITHIN_0_7MILES = 18; - - // User was within 1 mile of the location. - WITHIN_1MILE = 19; - - // User was within 5 miles of the location. - WITHIN_5MILES = 20; - - // User was within 10 miles of the location. - WITHIN_10MILES = 21; - - // User was within 15 miles of the location. - WITHIN_15MILES = 22; - - // User was within 20 miles of the location. - WITHIN_20MILES = 23; - - // User was within 25 miles of the location. - WITHIN_25MILES = 24; - - // User was within 30 miles of the location. - WITHIN_30MILES = 25; - - // User was within 35 miles of the location. - WITHIN_35MILES = 26; - - // User was within 40 miles of the location. - WITHIN_40MILES = 27; - - // User was beyond 40 miles of the location. - BEYOND_40MILES = 28; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/dsa_page_feed_criterion_field.proto b/third_party/googleapis/google/ads/googleads/v2/enums/dsa_page_feed_criterion_field.proto deleted file mode 100644 index 5fcb3ffd0..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/dsa_page_feed_criterion_field.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "DsaPageFeedCriterionFieldProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing Dynamic Search Ad Page Feed criterion fields. - -// Values for Dynamic Search Ad Page Feed criterion fields. -message DsaPageFeedCriterionFieldEnum { - // Possible values for Dynamic Search Ad Page Feed criterion fields. - enum DsaPageFeedCriterionField { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Data Type: URL or URL_LIST. URL of the web page you want to target. - PAGE_URL = 2; - - // Data Type: STRING_LIST. The labels that will help you target ads within - // your page feed. - LABEL = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/education_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v2/enums/education_placeholder_field.proto deleted file mode 100644 index cec0bbe23..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/education_placeholder_field.proto +++ /dev/null @@ -1,111 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "EducationPlaceholderFieldProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing Education placeholder fields. - -// Values for Education placeholder fields. -// For more information about dynamic remarketing feeds, see -// https://support.google.com/google-ads/answer/6053288. -message EducationPlaceholderFieldEnum { - // Possible values for Education placeholder fields. - enum EducationPlaceholderField { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Data Type: STRING. Required. Combination of PROGRAM ID and LOCATION ID - // must be unique per offer. - PROGRAM_ID = 2; - - // Data Type: STRING. Combination of PROGRAM ID and LOCATION ID must be - // unique per offer. - LOCATION_ID = 3; - - // Data Type: STRING. Required. Main headline with program name to be shown - // in dynamic ad. - PROGRAM_NAME = 4; - - // Data Type: STRING. Area of study that can be shown in dynamic ad. - AREA_OF_STUDY = 5; - - // Data Type: STRING. Description of program that can be shown in dynamic - // ad. - PROGRAM_DESCRIPTION = 6; - - // Data Type: STRING. Name of school that can be shown in dynamic ad. - SCHOOL_NAME = 7; - - // Data Type: STRING. Complete school address, including postal code. - ADDRESS = 8; - - // Data Type: URL. Image to be displayed in ads. - THUMBNAIL_IMAGE_URL = 9; - - // Data Type: URL. Alternative hosted file of image to be used in the ad. - ALTERNATIVE_THUMBNAIL_IMAGE_URL = 10; - - // Data Type: URL_LIST. Required. Final URLs to be used in ad when using - // Upgraded URLs; the more specific the better (e.g. the individual URL of a - // specific program and its location). - FINAL_URLS = 11; - - // Data Type: URL_LIST. Final mobile URLs for the ad when using Upgraded - // URLs. - FINAL_MOBILE_URLS = 12; - - // Data Type: URL. Tracking template for the ad when using Upgraded URLs. - TRACKING_URL = 13; - - // Data Type: STRING_LIST. Keywords used for product retrieval. - CONTEXTUAL_KEYWORDS = 14; - - // Data Type: STRING. Android app link. Must be formatted as: - // android-app://{package_id}/{scheme}/{host_path}. - // The components are defined as follows: - // package_id: app ID as specified in Google Play. - // scheme: the scheme to pass to the application. Can be HTTP, or a custom - // scheme. - // host_path: identifies the specific content within your application. - ANDROID_APP_LINK = 15; - - // Data Type: STRING_LIST. List of recommended program IDs to show together - // with this item. - SIMILAR_PROGRAM_IDS = 16; - - // Data Type: STRING. iOS app link. - IOS_APP_LINK = 17; - - // Data Type: INT64. iOS app store ID. - IOS_APP_STORE_ID = 18; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/extension_setting_device.proto b/third_party/googleapis/google/ads/googleads/v2/enums/extension_setting_device.proto deleted file mode 100644 index 69e32e74b..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/extension_setting_device.proto +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ExtensionSettingDeviceProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing extension setting device type. - -// Container for enum describing extension setting device types. -message ExtensionSettingDeviceEnum { - // Possible device types for an extension setting. - enum ExtensionSettingDevice { - // Not specified. - UNSPECIFIED = 0; - - // The value is unknown in this version. - UNKNOWN = 1; - - // Mobile. The extensions in the extension setting will only serve on - // mobile devices. - MOBILE = 2; - - // Desktop. The extensions in the extension setting will only serve on - // desktop devices. - DESKTOP = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/extension_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/extension_type.proto deleted file mode 100644 index db1c835bd..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/extension_type.proto +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ExtensionTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing extension type. - -// Container for enum describing possible data types for an extension in an -// extension setting. -message ExtensionTypeEnum { - // Possible data types for an extension in an extension setting. - enum ExtensionType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // None. - NONE = 2; - - // App. - APP = 3; - - // Call. - CALL = 4; - - // Callout. - CALLOUT = 5; - - // Message. - MESSAGE = 6; - - // Price. - PRICE = 7; - - // Promotion. - PROMOTION = 8; - - // Sitelink. - SITELINK = 10; - - // Structured snippet. - STRUCTURED_SNIPPET = 11; - - // Location. - LOCATION = 12; - - // Affiliate location. - AFFILIATE_LOCATION = 13; - - // Hotel callout - HOTEL_CALLOUT = 15; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/external_conversion_source.proto b/third_party/googleapis/google/ads/googleads/v2/enums/external_conversion_source.proto deleted file mode 100644 index 6c2fb8c18..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/external_conversion_source.proto +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ExternalConversionSourceProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Container for enum describing the external conversion source that is -// associated with a ConversionAction. -message ExternalConversionSourceEnum { - // The external conversion source that is associated with a ConversionAction. - enum ExternalConversionSource { - // Not specified. - UNSPECIFIED = 0; - - // Represents value unknown in this version. - UNKNOWN = 1; - - // Conversion that occurs when a user navigates to a particular webpage - // after viewing an ad; Displayed in Google Ads UI as 'Website'. - WEBPAGE = 2; - - // Conversion that comes from linked Google Analytics goal or transaction; - // Displayed in Google Ads UI as 'Analytics'. - ANALYTICS = 3; - - // Website conversion that is uploaded through ConversionUploadService; - // Displayed in Google Ads UI as 'Import from clicks'. - UPLOAD = 4; - - // Conversion that occurs when a user clicks on a call extension directly on - // an ad; Displayed in Google Ads UI as 'Calls from ads'. - AD_CALL_METRICS = 5; - - // Conversion that occurs when a user calls a dynamically-generated phone - // number (by installed javascript) from an advertiser's website after - // clicking on an ad; Displayed in Google Ads UI as 'Calls from website'. - WEBSITE_CALL_METRICS = 6; - - // Conversion that occurs when a user visits an advertiser's retail store - // after clicking on a Google ad; - // Displayed in Google Ads UI as 'Store visits'. - STORE_VISITS = 7; - - // Conversion that occurs when a user takes an in-app action such as a - // purchase in an Android app; - // Displayed in Google Ads UI as 'Android in-app action'. - ANDROID_IN_APP = 8; - - // Conversion that occurs when a user takes an in-app action such as a - // purchase in an iOS app; - // Displayed in Google Ads UI as 'iOS in-app action'. - IOS_IN_APP = 9; - - // Conversion that occurs when a user opens an iOS app for the first time; - // Displayed in Google Ads UI as 'iOS app install (first open)'. - IOS_FIRST_OPEN = 10; - - // Legacy app conversions that do not have an AppPlatform provided; - // Displayed in Google Ads UI as 'Mobile app'. - APP_UNSPECIFIED = 11; - - // Conversion that occurs when a user opens an Android app for the first - // time; Displayed in Google Ads UI as 'Android app install (first open)'. - ANDROID_FIRST_OPEN = 12; - - // Call conversion that is uploaded through ConversionUploadService; - // Displayed in Google Ads UI as 'Import from calls'. - UPLOAD_CALLS = 13; - - // Conversion that comes from a linked Firebase event; - // Displayed in Google Ads UI as 'Firebase'. - FIREBASE = 14; - - // Conversion that occurs when a user clicks on a mobile phone number; - // Displayed in Google Ads UI as 'Phone number clicks'. - CLICK_TO_CALL = 15; - - // Conversion that comes from Salesforce; - // Displayed in Google Ads UI as 'Salesforce.com'. - SALESFORCE = 16; - - // Conversion that comes from in-store purchases recorded by CRM; - // Displayed in Google Ads UI as 'Store sales (data partner)'. - STORE_SALES_CRM = 17; - - // Conversion that comes from in-store purchases from payment network; - // Displayed in Google Ads UI as 'Store sales (payment network)'. - STORE_SALES_PAYMENT_NETWORK = 18; - - // Codeless Google Play conversion; - // Displayed in Google Ads UI as 'Google Play'. - GOOGLE_PLAY = 19; - - // Conversion that comes from a linked third-party app analytics event; - // Displayed in Google Ads UI as 'Third-party app analytics'. - THIRD_PARTY_APP_ANALYTICS = 20; - - // Conversion that is controlled by Google Attribution. - GOOGLE_ATTRIBUTION = 21; - - // Store Sales conversion based on first-party or third-party merchant data - // uploads. Displayed in Google Ads UI as 'Store sales (direct)'. - STORE_SALES_DIRECT = 22; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/feed_attribute_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/feed_attribute_type.proto deleted file mode 100644 index bb1dcba1c..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/feed_attribute_type.proto +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "FeedAttributeTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing feed attribute type. - -// Container for enum describing possible data types for a feed attribute. -message FeedAttributeTypeEnum { - // Possible data types for a feed attribute. - enum FeedAttributeType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Int64. - INT64 = 2; - - // Double. - DOUBLE = 3; - - // String. - STRING = 4; - - // Boolean. - BOOLEAN = 5; - - // Url. - URL = 6; - - // Datetime. - DATE_TIME = 7; - - // Int64 list. - INT64_LIST = 8; - - // Double (8 bytes) list. - DOUBLE_LIST = 9; - - // String list. - STRING_LIST = 10; - - // Boolean list. - BOOLEAN_LIST = 11; - - // Url list. - URL_LIST = 12; - - // Datetime list. - DATE_TIME_LIST = 13; - - // Price. - PRICE = 14; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/feed_item_quality_approval_status.proto b/third_party/googleapis/google/ads/googleads/v2/enums/feed_item_quality_approval_status.proto deleted file mode 100644 index 261916332..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/feed_item_quality_approval_status.proto +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "FeedItemQualityApprovalStatusProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing feed item quality evaluation approval statuses. - -// Container for enum describing possible quality evaluation approval statuses -// of a feed item. -message FeedItemQualityApprovalStatusEnum { - // The possible quality evaluation approval statuses of a feed item. - enum FeedItemQualityApprovalStatus { - // No value has been specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Meets all quality expectations. - APPROVED = 2; - - // Does not meet some quality expectations. The specific reason is found in - // the quality_disapproval_reasons field. - DISAPPROVED = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/feed_item_quality_disapproval_reason.proto b/third_party/googleapis/google/ads/googleads/v2/enums/feed_item_quality_disapproval_reason.proto deleted file mode 100644 index 320c9f4aa..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/feed_item_quality_disapproval_reason.proto +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "FeedItemQualityDisapprovalReasonProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing feed item quality disapproval reasons. - -// Container for enum describing possible quality evaluation disapproval reasons -// of a feed item. -message FeedItemQualityDisapprovalReasonEnum { - // The possible quality evaluation disapproval reasons of a feed item. - enum FeedItemQualityDisapprovalReason { - // No value has been specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Price contains repetitive headers. - PRICE_TABLE_REPETITIVE_HEADERS = 2; - - // Price contains repetitive description. - PRICE_TABLE_REPETITIVE_DESCRIPTION = 3; - - // Price contains inconsistent items. - PRICE_TABLE_INCONSISTENT_ROWS = 4; - - // Price contains qualifiers in description. - PRICE_DESCRIPTION_HAS_PRICE_QUALIFIERS = 5; - - // Price contains an unsupported language. - PRICE_UNSUPPORTED_LANGUAGE = 6; - - // Price item header is not relevant to the price type. - PRICE_TABLE_ROW_HEADER_TABLE_TYPE_MISMATCH = 7; - - // Price item header has promotional text. - PRICE_TABLE_ROW_HEADER_HAS_PROMOTIONAL_TEXT = 8; - - // Price item description is not relevant to the item header. - PRICE_TABLE_ROW_DESCRIPTION_NOT_RELEVANT = 9; - - // Price item description contains promotional text. - PRICE_TABLE_ROW_DESCRIPTION_HAS_PROMOTIONAL_TEXT = 10; - - // Price item header and description are repetitive. - PRICE_TABLE_ROW_HEADER_DESCRIPTION_REPETITIVE = 11; - - // Price item is in a foreign language, nonsense, or can't be rated. - PRICE_TABLE_ROW_UNRATEABLE = 12; - - // Price item price is invalid or inaccurate. - PRICE_TABLE_ROW_PRICE_INVALID = 13; - - // Price item URL is invalid or irrelevant. - PRICE_TABLE_ROW_URL_INVALID = 14; - - // Price item header or description has price. - PRICE_HEADER_OR_DESCRIPTION_HAS_PRICE = 15; - - // Structured snippet values do not match the header. - STRUCTURED_SNIPPETS_HEADER_POLICY_VIOLATED = 16; - - // Structured snippet values are repeated. - STRUCTURED_SNIPPETS_REPEATED_VALUES = 17; - - // Structured snippet values violate editorial guidelines like punctuation. - STRUCTURED_SNIPPETS_EDITORIAL_GUIDELINES = 18; - - // Structured snippet contain promotional text. - STRUCTURED_SNIPPETS_HAS_PROMOTIONAL_TEXT = 19; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/feed_item_status.proto b/third_party/googleapis/google/ads/googleads/v2/enums/feed_item_status.proto deleted file mode 100644 index 3f5bd12f0..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/feed_item_status.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "FeedItemStatusProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing feed item status. - -// Container for enum describing possible statuses of a feed item. -message FeedItemStatusEnum { - // Possible statuses of a feed item. - enum FeedItemStatus { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Feed item is enabled. - ENABLED = 2; - - // Feed item has been removed. - REMOVED = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/feed_item_target_device.proto b/third_party/googleapis/google/ads/googleads/v2/enums/feed_item_target_device.proto deleted file mode 100644 index 3b51631f1..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/feed_item_target_device.proto +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "FeedItemTargetDeviceProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing feed item target device type. - -// Container for enum describing possible data types for a feed item target -// device. -message FeedItemTargetDeviceEnum { - // Possible data types for a feed item target device. - enum FeedItemTargetDevice { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Mobile. - MOBILE = 2; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/feed_item_target_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/feed_item_target_type.proto deleted file mode 100644 index 7c608f191..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/feed_item_target_type.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "FeedItemTargetTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing feed item target type status. - -// Container for enum describing possible types of a feed item target. -message FeedItemTargetTypeEnum { - // Possible type of a feed item target. - enum FeedItemTargetType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Feed item targets a campaign. - CAMPAIGN = 2; - - // Feed item targets an ad group. - AD_GROUP = 3; - - // Feed item targets a criterion. - CRITERION = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/feed_item_validation_status.proto b/third_party/googleapis/google/ads/googleads/v2/enums/feed_item_validation_status.proto deleted file mode 100644 index 54bbf03fe..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/feed_item_validation_status.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "FeedItemValidationStatusProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing feed item validation statuses. - -// Container for enum describing possible validation statuses of a feed item. -message FeedItemValidationStatusEnum { - // The possible validation statuses of a feed item. - enum FeedItemValidationStatus { - // No value has been specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Validation pending. - PENDING = 2; - - // An error was found. - INVALID = 3; - - // Feed item is semantically well-formed. - VALID = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/feed_link_status.proto b/third_party/googleapis/google/ads/googleads/v2/enums/feed_link_status.proto deleted file mode 100644 index c12e33cd4..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/feed_link_status.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "FeedLinkStatusProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing status of a feed link. - -// Container for an enum describing possible statuses of a feed link. -message FeedLinkStatusEnum { - // Possible statuses of a feed link. - enum FeedLinkStatus { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Feed link is enabled. - ENABLED = 2; - - // Feed link has been removed. - REMOVED = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/feed_mapping_criterion_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/feed_mapping_criterion_type.proto deleted file mode 100644 index 692aa39ed..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/feed_mapping_criterion_type.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "FeedMappingCriterionTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing criterion types for feed mappings. - -// Container for enum describing possible criterion types for a feed mapping. -message FeedMappingCriterionTypeEnum { - // Possible placeholder types for a feed mapping. - enum FeedMappingCriterionType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Allows campaign targeting at locations within a location feed. - LOCATION_EXTENSION_TARGETING = 4; - - // Allows url targeting for your dynamic search ads within a page feed. - DSA_PAGE_FEED = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/feed_mapping_status.proto b/third_party/googleapis/google/ads/googleads/v2/enums/feed_mapping_status.proto deleted file mode 100644 index 7d80a3b76..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/feed_mapping_status.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "FeedMappingStatusProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing feed mapping status. - -// Container for enum describing possible statuses of a feed mapping. -message FeedMappingStatusEnum { - // Possible statuses of a feed mapping. - enum FeedMappingStatus { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Feed mapping is enabled. - ENABLED = 2; - - // Feed mapping has been removed. - REMOVED = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/feed_origin.proto b/third_party/googleapis/google/ads/googleads/v2/enums/feed_origin.proto deleted file mode 100644 index 181907689..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/feed_origin.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "FeedOriginProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing feed origin. - -// Container for enum describing possible values for a feed origin. -message FeedOriginEnum { - // Possible values for a feed origin. - enum FeedOrigin { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The FeedAttributes for this Feed are managed by the - // user. Users can add FeedAttributes to this Feed. - USER = 2; - - // The FeedAttributes for an GOOGLE Feed are created by Google. A feed of - // this type is maintained by Google and will have the correct attributes - // for the placeholder type of the feed. - GOOGLE = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/feed_status.proto b/third_party/googleapis/google/ads/googleads/v2/enums/feed_status.proto deleted file mode 100644 index 4a879bba1..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/feed_status.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "FeedStatusProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing feed status. - -// Container for enum describing possible statuses of a feed. -message FeedStatusEnum { - // Possible statuses of a feed. - enum FeedStatus { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Feed is enabled. - ENABLED = 2; - - // Feed has been removed. - REMOVED = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/flight_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v2/enums/flight_placeholder_field.proto deleted file mode 100644 index a1b860ec8..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/flight_placeholder_field.proto +++ /dev/null @@ -1,118 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "FlightsPlaceholderFieldProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing Flight placeholder fields. - -// Values for Flight placeholder fields. -// For more information about dynamic remarketing feeds, see -// https://support.google.com/google-ads/answer/6053288. -message FlightPlaceholderFieldEnum { - // Possible values for Flight placeholder fields. - enum FlightPlaceholderField { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Data Type: STRING. Required. Destination id. Example: PAR, LON. - // For feed items that only have destination id, destination id must be a - // unique key. For feed items that have both destination id and origin id, - // then the combination must be a unique key. - DESTINATION_ID = 2; - - // Data Type: STRING. Origin id. Example: PAR, LON. - // Optional. Combination of destination id and origin id must be unique per - // offer. - ORIGIN_ID = 3; - - // Data Type: STRING. Required. Main headline with product name to be shown - // in dynamic ad. - FLIGHT_DESCRIPTION = 4; - - // Data Type: STRING. Shorter names are recommended. - ORIGIN_NAME = 5; - - // Data Type: STRING. Shorter names are recommended. - DESTINATION_NAME = 6; - - // Data Type: STRING. Price to be shown in the ad. - // Example: "100.00 USD" - FLIGHT_PRICE = 7; - - // Data Type: STRING. Formatted price to be shown in the ad. - // Example: "Starting at $100.00 USD", "$80 - $100" - FORMATTED_PRICE = 8; - - // Data Type: STRING. Sale price to be shown in the ad. - // Example: "80.00 USD" - FLIGHT_SALE_PRICE = 9; - - // Data Type: STRING. Formatted sale price to be shown in the ad. - // Example: "On sale for $80.00", "$60 - $80" - FORMATTED_SALE_PRICE = 10; - - // Data Type: URL. Image to be displayed in the ad. - IMAGE_URL = 11; - - // Data Type: URL_LIST. Required. Final URLs for the ad when using Upgraded - // URLs. User will be redirected to these URLs when they click on an ad, or - // when they click on a specific flight for ads that show multiple - // flights. - FINAL_URLS = 12; - - // Data Type: URL_LIST. Final mobile URLs for the ad when using Upgraded - // URLs. - FINAL_MOBILE_URLS = 13; - - // Data Type: URL. Tracking template for the ad when using Upgraded URLs. - TRACKING_URL = 14; - - // Data Type: STRING. Android app link. Must be formatted as: - // android-app://{package_id}/{scheme}/{host_path}. - // The components are defined as follows: - // package_id: app ID as specified in Google Play. - // scheme: the scheme to pass to the application. Can be HTTP, or a custom - // scheme. - // host_path: identifies the specific content within your application. - ANDROID_APP_LINK = 15; - - // Data Type: STRING_LIST. List of recommended destination IDs to show - // together with this item. - SIMILAR_DESTINATION_IDS = 16; - - // Data Type: STRING. iOS app link. - IOS_APP_LINK = 17; - - // Data Type: INT64. iOS app store ID. - IOS_APP_STORE_ID = 18; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/frequency_cap_event_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/frequency_cap_event_type.proto deleted file mode 100644 index 508ae156e..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/frequency_cap_event_type.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "FrequencyCapEventTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing frequency caps. - -// Container for enum describing the type of event that the cap applies to. -message FrequencyCapEventTypeEnum { - // The type of event that the cap applies to (e.g. impression). - enum FrequencyCapEventType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The cap applies on ad impressions. - IMPRESSION = 2; - - // The cap applies on video ad views. - VIDEO_VIEW = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/frequency_cap_level.proto b/third_party/googleapis/google/ads/googleads/v2/enums/frequency_cap_level.proto deleted file mode 100644 index 818d5d477..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/frequency_cap_level.proto +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "FrequencyCapLevelProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing frequency caps. - -// Container for enum describing the level on which the cap is to be applied. -message FrequencyCapLevelEnum { - // The level on which the cap is to be applied (e.g ad group ad, ad group). - // Cap is applied to all the resources of this level. - enum FrequencyCapLevel { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The cap is applied at the ad group ad level. - AD_GROUP_AD = 2; - - // The cap is applied at the ad group level. - AD_GROUP = 3; - - // The cap is applied at the campaign level. - CAMPAIGN = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/frequency_cap_time_unit.proto b/third_party/googleapis/google/ads/googleads/v2/enums/frequency_cap_time_unit.proto deleted file mode 100644 index 7b3ac4525..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/frequency_cap_time_unit.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "FrequencyCapTimeUnitProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing frequency caps. - -// Container for enum describing the unit of time the cap is defined at. -message FrequencyCapTimeUnitEnum { - // Unit of time the cap is defined at (e.g. day, week). - enum FrequencyCapTimeUnit { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The cap would define limit per one day. - DAY = 2; - - // The cap would define limit per one week. - WEEK = 3; - - // The cap would define limit per one month. - MONTH = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/gender_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/gender_type.proto deleted file mode 100644 index 160484acf..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/gender_type.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "GenderTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing gender types. - -// Container for enum describing the type of demographic genders. -message GenderTypeEnum { - // The type of demographic genders (e.g. female). - enum GenderType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Male. - MALE = 10; - - // Female. - FEMALE = 11; - - // Undetermined gender. - UNDETERMINED = 20; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/geo_target_constant_status.proto b/third_party/googleapis/google/ads/googleads/v2/enums/geo_target_constant_status.proto deleted file mode 100644 index 3aa14de15..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/geo_target_constant_status.proto +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "GeoTargetConstantStatusProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing geo target constant statuses. - -// Container for describing the status of a geo target constant. -message GeoTargetConstantStatusEnum { - // The possible statuses of a geo target constant. - enum GeoTargetConstantStatus { - // No value has been specified. - UNSPECIFIED = 0; - - // The received value is not known in this version. - // - // This is a response-only value. - UNKNOWN = 1; - - // The geo target constant is valid. - ENABLED = 2; - - // The geo target constant is obsolete and will be removed. - REMOVAL_PLANNED = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/geo_targeting_restriction.proto b/third_party/googleapis/google/ads/googleads/v2/enums/geo_targeting_restriction.proto deleted file mode 100644 index deb6d4a2b..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/geo_targeting_restriction.proto +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "GeoTargetingRestrictionProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing GeoTargetingRestriction. - -// Message describing feed item geo targeting restriction. -message GeoTargetingRestrictionEnum { - // A restriction used to determine if the request context's - // geo should be matched. - enum GeoTargetingRestriction { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Indicates that request context should match the physical location of - // the user. - LOCATION_OF_PRESENCE = 2; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/geo_targeting_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/geo_targeting_type.proto deleted file mode 100644 index 375fcbba3..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/geo_targeting_type.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "GeoTargetingTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing geo targeting types. - -// Container for enum describing possible geo targeting types. -message GeoTargetingTypeEnum { - // The possible geo targeting types. - enum GeoTargetingType { - // Not specified. - UNSPECIFIED = 0; - - // The value is unknown in this version. - UNKNOWN = 1; - - // Location the user is interested in while making the query. - AREA_OF_INTEREST = 2; - - // Location of the user issuing the query. - LOCATION_OF_PRESENCE = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/google_ads_field_category.proto b/third_party/googleapis/google/ads/googleads/v2/enums/google_ads_field_category.proto deleted file mode 100644 index 4d42bdc93..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/google_ads_field_category.proto +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "GoogleAdsFieldCategoryProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing GoogleAdsField categories - -// Container for enum that determines if the described artifact is a resource -// or a field, and if it is a field, when it segments search queries. -message GoogleAdsFieldCategoryEnum { - // The category of the artifact. - enum GoogleAdsFieldCategory { - // Unspecified - UNSPECIFIED = 0; - - // Unknown - UNKNOWN = 1; - - // The described artifact is a resource. - RESOURCE = 2; - - // The described artifact is a field and is an attribute of a resource. - // Including a resource attribute field in a query may segment the query if - // the resource to which it is attributed segments the resource found in - // the FROM clause. - ATTRIBUTE = 3; - - // The described artifact is a field and always segments search queries. - SEGMENT = 5; - - // The described artifact is a field and is a metric. It never segments - // search queries. - METRIC = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/google_ads_field_data_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/google_ads_field_data_type.proto deleted file mode 100644 index aaa4024e7..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/google_ads_field_data_type.proto +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "GoogleAdsFieldDataTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing GoogleAdsField data types - -// Container holding the various data types. -message GoogleAdsFieldDataTypeEnum { - // These are the various types a GoogleAdsService artifact may take on. - enum GoogleAdsFieldDataType { - // Unspecified - UNSPECIFIED = 0; - - // Unknown - UNKNOWN = 1; - - // Maps to google.protobuf.BoolValue - // - // Applicable operators: =, != - BOOLEAN = 2; - - // Maps to google.protobuf.StringValue. It can be compared using the set of - // operators specific to dates however. - // - // Applicable operators: =, <, >, <=, >=, BETWEEN, DURING, and IN - DATE = 3; - - // Maps to google.protobuf.DoubleValue - // - // Applicable operators: =, !=, <, >, IN, NOT IN - DOUBLE = 4; - - // Maps to an enum. It's specific definition can be found at type_url. - // - // Applicable operators: =, !=, IN, NOT IN - ENUM = 5; - - // Maps to google.protobuf.FloatValue - // - // Applicable operators: =, !=, <, >, IN, NOT IN - FLOAT = 6; - - // Maps to google.protobuf.Int32Value - // - // Applicable operators: =, !=, <, >, <=, >=, BETWEEN, IN, NOT IN - INT32 = 7; - - // Maps to google.protobuf.Int64Value - // - // Applicable operators: =, !=, <, >, <=, >=, BETWEEN, IN, NOT IN - INT64 = 8; - - // Maps to a protocol buffer message type. The data type's details can be - // found in type_url. - // - // No operators work with MESSAGE fields. - MESSAGE = 9; - - // Maps to google.protobuf.StringValue. Represents the resource name - // (unique id) of a resource or one of its foreign keys. - // - // No operators work with RESOURCE_NAME fields. - RESOURCE_NAME = 10; - - // Maps to google.protobuf.StringValue. - // - // Applicable operators: =, !=, LIKE, NOT LIKE, IN, NOT IN - STRING = 11; - - // Maps to google.protobuf.UInt64Value - // - // Applicable operators: =, !=, <, >, <=, >=, BETWEEN, IN, NOT IN - UINT64 = 12; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/hotel_date_selection_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/hotel_date_selection_type.proto deleted file mode 100644 index 0332b71df..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/hotel_date_selection_type.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "HotelDateSelectionTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing hotel date selection types. - -// Container for enum describing possible hotel date selection types -message HotelDateSelectionTypeEnum { - // Enum describing possible hotel date selection types. - enum HotelDateSelectionType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Dates selected by default. - DEFAULT_SELECTION = 50; - - // Dates selected by the user. - USER_SELECTED = 51; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/hotel_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v2/enums/hotel_placeholder_field.proto deleted file mode 100644 index 11a453b22..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/hotel_placeholder_field.proto +++ /dev/null @@ -1,124 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "HotelsPlaceholderFieldProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing Hotel placeholder fields. - -// Values for Hotel placeholder fields. -// For more information about dynamic remarketing feeds, see -// https://support.google.com/google-ads/answer/6053288. -message HotelPlaceholderFieldEnum { - // Possible values for Hotel placeholder fields. - enum HotelPlaceholderField { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Data Type: STRING. Required. Unique ID. - PROPERTY_ID = 2; - - // Data Type: STRING. Required. Main headline with property name to be shown - // in dynamic ad. - PROPERTY_NAME = 3; - - // Data Type: STRING. Name of destination to be shown in dynamic ad. - DESTINATION_NAME = 4; - - // Data Type: STRING. Description of destination to be shown in dynamic ad. - DESCRIPTION = 5; - - // Data Type: STRING. Complete property address, including postal code. - ADDRESS = 6; - - // Data Type: STRING. Price to be shown in the ad. - // Example: "100.00 USD" - PRICE = 7; - - // Data Type: STRING. Formatted price to be shown in the ad. - // Example: "Starting at $100.00 USD", "$80 - $100" - FORMATTED_PRICE = 8; - - // Data Type: STRING. Sale price to be shown in the ad. - // Example: "80.00 USD" - SALE_PRICE = 9; - - // Data Type: STRING. Formatted sale price to be shown in the ad. - // Example: "On sale for $80.00", "$60 - $80" - FORMATTED_SALE_PRICE = 10; - - // Data Type: URL. Image to be displayed in the ad. - IMAGE_URL = 11; - - // Data Type: STRING. Category of property used to group like items together - // for recommendation engine. - CATEGORY = 12; - - // Data Type: INT64. Star rating (1 to 5) used to group like items - // together for recommendation engine. - STAR_RATING = 13; - - // Data Type: STRING_LIST. Keywords used for product retrieval. - CONTEXTUAL_KEYWORDS = 14; - - // Data Type: URL_LIST. Required. Final URLs for the ad when using Upgraded - // URLs. User will be redirected to these URLs when they click on an ad, or - // when they click on a specific flight for ads that show multiple - // flights. - FINAL_URLS = 15; - - // Data Type: URL_LIST. Final mobile URLs for the ad when using Upgraded - // URLs. - FINAL_MOBILE_URLS = 16; - - // Data Type: URL. Tracking template for the ad when using Upgraded URLs. - TRACKING_URL = 17; - - // Data Type: STRING. Android app link. Must be formatted as: - // android-app://{package_id}/{scheme}/{host_path}. - // The components are defined as follows: - // package_id: app ID as specified in Google Play. - // scheme: the scheme to pass to the application. Can be HTTP, or a custom - // scheme. - // host_path: identifies the specific content within your application. - ANDROID_APP_LINK = 18; - - // Data Type: STRING_LIST. List of recommended property IDs to show together - // with this item. - SIMILAR_PROPERTY_IDS = 19; - - // Data Type: STRING. iOS app link. - IOS_APP_LINK = 20; - - // Data Type: INT64. iOS app store ID. - IOS_APP_STORE_ID = 21; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/hotel_price_bucket.proto b/third_party/googleapis/google/ads/googleads/v2/enums/hotel_price_bucket.proto deleted file mode 100644 index ff8f70de5..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/hotel_price_bucket.proto +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "HotelPriceBucketProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing hotel price buckets. - -// Container for enum describing hotel price bucket for a hotel itinerary. -message HotelPriceBucketEnum { - // Enum describing possible hotel price buckets. - enum HotelPriceBucket { - // Not specified. - UNSPECIFIED = 0; - - // The value is unknown in this version. - UNKNOWN = 1; - - // Tied for lowest price. Partner is within a small variance of the lowest - // price. - LOWEST_TIED = 3; - - // Not lowest price. Partner is not within a small variance of the lowest - // price. - NOT_LOWEST = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/hotel_rate_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/hotel_rate_type.proto deleted file mode 100644 index 2c4e517e1..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/hotel_rate_type.proto +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "HotelRateTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing hotel rate types. - -// Container for enum describing possible hotel rate types. -message HotelRateTypeEnum { - // Enum describing possible hotel rate types. - enum HotelRateType { - // Not specified. - UNSPECIFIED = 0; - - // The value is unknown in this version. - UNKNOWN = 1; - - // Rate type information is unavailable. - UNAVAILABLE = 2; - - // Rates available to everyone. - PUBLIC_RATE = 3; - - // A membership program rate is available and satisfies basic requirements - // like having a public rate available. UI treatment will strikethrough the - // public rate and indicate that a discount is available to the user. For - // more on Qualified Rates, visit - // https://developers.google.com/hotels/hotel-ads/dev-guide/qualified-rates - QUALIFIED_RATE = 4; - - // Rates available to users that satisfy some eligibility criteria. e.g. - // all signed-in users, 20% of mobile users, all mobile users in Canada, - // etc. - PRIVATE_RATE = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/income_range_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/income_range_type.proto deleted file mode 100644 index d44dacc76..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/income_range_type.proto +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "IncomeRangeTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing income range types. - -// Container for enum describing the type of demographic income ranges. -message IncomeRangeTypeEnum { - // The type of demographic income ranges (e.g. between 0% to 50%). - enum IncomeRangeType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // 0%-50%. - INCOME_RANGE_0_50 = 510001; - - // 50% to 60%. - INCOME_RANGE_50_60 = 510002; - - // 60% to 70%. - INCOME_RANGE_60_70 = 510003; - - // 70% to 80%. - INCOME_RANGE_70_80 = 510004; - - // 80% to 90%. - INCOME_RANGE_80_90 = 510005; - - // Greater than 90%. - INCOME_RANGE_90_UP = 510006; - - // Undetermined income range. - INCOME_RANGE_UNDETERMINED = 510000; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/interaction_event_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/interaction_event_type.proto deleted file mode 100644 index 8bd60efb1..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/interaction_event_type.proto +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "InteractionEventTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing types of payable and free interactions. - -// Container for enum describing types of payable and free interactions. -message InteractionEventTypeEnum { - // Enum describing possible types of payable and free interactions. - enum InteractionEventType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Click to site. In most cases, this interaction navigates to an external - // location, usually the advertiser's landing page. This is also the default - // InteractionEventType for click events. - CLICK = 2; - - // The user's expressed intent to engage with the ad in-place. - ENGAGEMENT = 3; - - // User viewed a video ad. - VIDEO_VIEW = 4; - - // The default InteractionEventType for ad conversion events. - // This is used when an ad conversion row does NOT indicate - // that the free interactions (i.e., the ad conversions) - // should be 'promoted' and reported as part of the core metrics. - // These are simply other (ad) conversions. - NONE = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/interaction_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/interaction_type.proto deleted file mode 100644 index a6fd4a8fb..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/interaction_type.proto +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "InteractionTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing interaction types. - -// Container for enum describing possible interaction types. -message InteractionTypeEnum { - // Enum describing possible interaction types. - enum InteractionType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Calls. - CALLS = 8000; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/invoice_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/invoice_type.proto deleted file mode 100644 index aefc46171..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/invoice_type.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "InvoiceTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing invoice types. - -// Container for enum describing the type of invoices. -message InvoiceTypeEnum { - // The possible type of invoices. - enum InvoiceType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // An invoice with a negative amount. The account receives a credit. - CREDIT_MEMO = 2; - - // An invoice with a positive amount. The account owes a balance. - INVOICE = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/job_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v2/enums/job_placeholder_field.proto deleted file mode 100644 index a4593e97b..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/job_placeholder_field.proto +++ /dev/null @@ -1,115 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "JobsPlaceholderFieldProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing Job placeholder fields. - -// Values for Job placeholder fields. -// For more information about dynamic remarketing feeds, see -// https://support.google.com/google-ads/answer/6053288. -message JobPlaceholderFieldEnum { - // Possible values for Job placeholder fields. - enum JobPlaceholderField { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Data Type: STRING. Required. If only JOB_ID is specified, then it must be - // unique. If both JOB_ID and LOCATION_ID are specified, then the - // pair must be unique. - // ID) pair must be unique. - JOB_ID = 2; - - // Data Type: STRING. Combination of JOB_ID and LOCATION_ID must be unique - // per offer. - LOCATION_ID = 3; - - // Data Type: STRING. Required. Main headline with job title to be shown in - // dynamic ad. - TITLE = 4; - - // Data Type: STRING. Job subtitle to be shown in dynamic ad. - SUBTITLE = 5; - - // Data Type: STRING. Description of job to be shown in dynamic ad. - DESCRIPTION = 6; - - // Data Type: URL. Image to be displayed in the ad. Highly recommended for - // image ads. - IMAGE_URL = 7; - - // Data Type: STRING. Category of property used to group like items together - // for recommendation engine. - CATEGORY = 8; - - // Data Type: STRING_LIST. Keywords used for product retrieval. - CONTEXTUAL_KEYWORDS = 9; - - // Data Type: STRING. Complete property address, including postal code. - ADDRESS = 10; - - // Data Type: STRING. Salary or salary range of job to be shown in dynamic - // ad. - SALARY = 11; - - // Data Type: URL_LIST. Required. Final URLs to be used in ad when using - // Upgraded URLs; the more specific the better (e.g. the individual URL of a - // specific job and its location). - FINAL_URLS = 12; - - // Data Type: URL_LIST. Final mobile URLs for the ad when using Upgraded - // URLs. - FINAL_MOBILE_URLS = 14; - - // Data Type: URL. Tracking template for the ad when using Upgraded URLs. - TRACKING_URL = 15; - - // Data Type: STRING. Android app link. Must be formatted as: - // android-app://{package_id}/{scheme}/{host_path}. - // The components are defined as follows: - // package_id: app ID as specified in Google Play. - // scheme: the scheme to pass to the application. Can be HTTP, or a custom - // scheme. - // host_path: identifies the specific content within your application. - ANDROID_APP_LINK = 16; - - // Data Type: STRING_LIST. List of recommended job IDs to show together with - // this item. - SIMILAR_JOB_IDS = 17; - - // Data Type: STRING. iOS app link. - IOS_APP_LINK = 18; - - // Data Type: INT64. iOS app store ID. - IOS_APP_STORE_ID = 19; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/keyword_match_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/keyword_match_type.proto deleted file mode 100644 index 45f930e32..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/keyword_match_type.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "KeywordMatchTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing Keyword match types. - -// Message describing Keyword match types. -message KeywordMatchTypeEnum { - // Possible Keyword match types. - enum KeywordMatchType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Exact match. - EXACT = 2; - - // Phrase match. - PHRASE = 3; - - // Broad match. - BROAD = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/keyword_plan_competition_level.proto b/third_party/googleapis/google/ads/googleads/v2/enums/keyword_plan_competition_level.proto deleted file mode 100644 index b3fbcdb2c..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/keyword_plan_competition_level.proto +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "KeywordPlanCompetitionLevelProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing Keyword Planner competition levels. - -// Container for enumeration of keyword competition levels. The competition -// level indicates how competitive ad placement is for a keyword and -// is determined by the number of advertisers bidding on that keyword relative -// to all keywords across Google. The competition level can depend on the -// location and Search Network targeting options you've selected. -message KeywordPlanCompetitionLevelEnum { - // Competition level of a keyword. - enum KeywordPlanCompetitionLevel { - // Not specified. - UNSPECIFIED = 0; - - // The value is unknown in this version. - UNKNOWN = 1; - - // Low competition. The Competition Index range for this is [0, 33]. - LOW = 2; - - // Medium competition. The Competition Index range for this is [34, 66]. - MEDIUM = 3; - - // High competition. The Competition Index range for this is [67, 100]. - HIGH = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/keyword_plan_forecast_interval.proto b/third_party/googleapis/google/ads/googleads/v2/enums/keyword_plan_forecast_interval.proto deleted file mode 100644 index a8d9fc179..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/keyword_plan_forecast_interval.proto +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "KeywordPlanForecastIntervalProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing keyword plan forecast intervals. - -// Container for enumeration of forecast intervals. -message KeywordPlanForecastIntervalEnum { - // Forecast intervals. - enum KeywordPlanForecastInterval { - // Not specified. - UNSPECIFIED = 0; - - // The value is unknown in this version. - UNKNOWN = 1; - - // The next week date range for keyword plan. The next week is based - // on the default locale of the user's account and is mostly SUN-SAT or - // MON-SUN. - // This can be different from next-7 days. - NEXT_WEEK = 3; - - // The next month date range for keyword plan. - NEXT_MONTH = 4; - - // The next quarter date range for keyword plan. - NEXT_QUARTER = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/keyword_plan_network.proto b/third_party/googleapis/google/ads/googleads/v2/enums/keyword_plan_network.proto deleted file mode 100644 index 9064c6d75..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/keyword_plan_network.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "KeywordPlanNetworkProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing Keyword Planner forecastable network types. - -// Container for enumeration of keyword plan forecastable network types. -message KeywordPlanNetworkEnum { - // Enumerates keyword plan forecastable network types. - enum KeywordPlanNetwork { - // Not specified. - UNSPECIFIED = 0; - - // The value is unknown in this version. - UNKNOWN = 1; - - // Google Search. - GOOGLE_SEARCH = 2; - - // Google Search + Search partners. - GOOGLE_SEARCH_AND_PARTNERS = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/label_status.proto b/third_party/googleapis/google/ads/googleads/v2/enums/label_status.proto deleted file mode 100644 index f333303e1..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/label_status.proto +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "LabelStatusProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Container for enum describing possible status of a label. -message LabelStatusEnum { - // Possible statuses of a label. - enum LabelStatus { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Label is enabled. - ENABLED = 2; - - // Label is removed. - REMOVED = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/legacy_app_install_ad_app_store.proto b/third_party/googleapis/google/ads/googleads/v2/enums/legacy_app_install_ad_app_store.proto deleted file mode 100644 index d8ed2c4f9..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/legacy_app_install_ad_app_store.proto +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "LegacyAppInstallAdAppStoreProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing app store types for a legacy app install ad. - -// Container for enum describing app store type in a legacy app install ad. -message LegacyAppInstallAdAppStoreEnum { - // App store type in a legacy app install ad. - enum LegacyAppInstallAdAppStore { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Apple iTunes. - APPLE_APP_STORE = 2; - - // Google Play. - GOOGLE_PLAY = 3; - - // Windows Store. - WINDOWS_STORE = 4; - - // Windows Phone Store. - WINDOWS_PHONE_STORE = 5; - - // The app is hosted in a Chinese app store. - CN_APP_STORE = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/listing_custom_attribute_index.proto b/third_party/googleapis/google/ads/googleads/v2/enums/listing_custom_attribute_index.proto deleted file mode 100644 index 053d15c8f..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/listing_custom_attribute_index.proto +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ListingCustomAttributeIndexProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing listing custom attributes. - -// Container for enum describing the index of the listing custom attribute. -message ListingCustomAttributeIndexEnum { - // The index of the listing custom attribute. - enum ListingCustomAttributeIndex { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // First listing custom attribute. - INDEX0 = 7; - - // Second listing custom attribute. - INDEX1 = 8; - - // Third listing custom attribute. - INDEX2 = 9; - - // Fourth listing custom attribute. - INDEX3 = 10; - - // Fifth listing custom attribute. - INDEX4 = 11; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/listing_group_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/listing_group_type.proto deleted file mode 100644 index 4212b71f2..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/listing_group_type.proto +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ListingGroupTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing listing groups. - -// Container for enum describing the type of the listing group. -message ListingGroupTypeEnum { - // The type of the listing group. - enum ListingGroupType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Subdivision of products along some listing dimension. These nodes - // are not used by serving to target listing entries, but is purely - // to define the structure of the tree. - SUBDIVISION = 2; - - // Listing group unit that defines a bid. - UNIT = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/local_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v2/enums/local_placeholder_field.proto deleted file mode 100644 index 2fd0382e8..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/local_placeholder_field.proto +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "LocalPlaceholderFieldProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing Local placeholder fields. - -// Values for Local placeholder fields. -// For more information about dynamic remarketing feeds, see -// https://support.google.com/google-ads/answer/6053288. -message LocalPlaceholderFieldEnum { - // Possible values for Local placeholder fields. - enum LocalPlaceholderField { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Data Type: STRING. Required. Unique ID. - DEAL_ID = 2; - - // Data Type: STRING. Required. Main headline with local deal title to be - // shown in dynamic ad. - DEAL_NAME = 3; - - // Data Type: STRING. Local deal subtitle to be shown in dynamic ad. - SUBTITLE = 4; - - // Data Type: STRING. Description of local deal to be shown in dynamic ad. - DESCRIPTION = 5; - - // Data Type: STRING. Price to be shown in the ad. Highly recommended for - // dynamic ads. Example: "100.00 USD" - PRICE = 6; - - // Data Type: STRING. Formatted price to be shown in the ad. - // Example: "Starting at $100.00 USD", "$80 - $100" - FORMATTED_PRICE = 7; - - // Data Type: STRING. Sale price to be shown in the ad. - // Example: "80.00 USD" - SALE_PRICE = 8; - - // Data Type: STRING. Formatted sale price to be shown in the ad. - // Example: "On sale for $80.00", "$60 - $80" - FORMATTED_SALE_PRICE = 9; - - // Data Type: URL. Image to be displayed in the ad. - IMAGE_URL = 10; - - // Data Type: STRING. Complete property address, including postal code. - ADDRESS = 11; - - // Data Type: STRING. Category of local deal used to group like items - // together for recommendation engine. - CATEGORY = 12; - - // Data Type: STRING_LIST. Keywords used for product retrieval. - CONTEXTUAL_KEYWORDS = 13; - - // Data Type: URL_LIST. Required. Final URLs to be used in ad when using - // Upgraded URLs; the more specific the better (e.g. the individual URL of a - // specific local deal and its location). - FINAL_URLS = 14; - - // Data Type: URL_LIST. Final mobile URLs for the ad when using Upgraded - // URLs. - FINAL_MOBILE_URLS = 15; - - // Data Type: URL. Tracking template for the ad when using Upgraded URLs. - TRACKING_URL = 16; - - // Data Type: STRING. Android app link. Must be formatted as: - // android-app://{package_id}/{scheme}/{host_path}. - // The components are defined as follows: - // package_id: app ID as specified in Google Play. - // scheme: the scheme to pass to the application. Can be HTTP, or a custom - // scheme. - // host_path: identifies the specific content within your application. - ANDROID_APP_LINK = 17; - - // Data Type: STRING_LIST. List of recommended local deal IDs to show - // together with this item. - SIMILAR_DEAL_IDS = 18; - - // Data Type: STRING. iOS app link. - IOS_APP_LINK = 19; - - // Data Type: INT64. iOS app store ID. - IOS_APP_STORE_ID = 20; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/location_extension_targeting_criterion_field.proto b/third_party/googleapis/google/ads/googleads/v2/enums/location_extension_targeting_criterion_field.proto deleted file mode 100644 index 8c113f6d4..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/location_extension_targeting_criterion_field.proto +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "LocationExtensionTargetingCriterionFieldProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing Location Extension Targeting criterion fields. - -// Values for Location Extension Targeting criterion fields. -message LocationExtensionTargetingCriterionFieldEnum { - // Possible values for Location Extension Targeting criterion fields. - enum LocationExtensionTargetingCriterionField { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Data Type: STRING. Line 1 of the business address. - ADDRESS_LINE_1 = 2; - - // Data Type: STRING. Line 2 of the business address. - ADDRESS_LINE_2 = 3; - - // Data Type: STRING. City of the business address. - CITY = 4; - - // Data Type: STRING. Province of the business address. - PROVINCE = 5; - - // Data Type: STRING. Postal code of the business address. - POSTAL_CODE = 6; - - // Data Type: STRING. Country code of the business address. - COUNTRY_CODE = 7; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/location_group_radius_units.proto b/third_party/googleapis/google/ads/googleads/v2/enums/location_group_radius_units.proto deleted file mode 100644 index d6cfa0c5f..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/location_group_radius_units.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "LocationGroupRadiusUnitsProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing location group radius units. - -// Container for enum describing unit of radius in location group. -message LocationGroupRadiusUnitsEnum { - // The unit of radius distance in location group (e.g. MILES) - enum LocationGroupRadiusUnits { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Meters - METERS = 2; - - // Miles - MILES = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/location_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v2/enums/location_placeholder_field.proto deleted file mode 100644 index b4a16ad16..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/location_placeholder_field.proto +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "LocationPlaceholderFieldProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing Location placeholder fields. - -// Values for Location placeholder fields. -message LocationPlaceholderFieldEnum { - // Possible values for Location placeholder fields. - enum LocationPlaceholderField { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Data Type: STRING. The name of the business. - BUSINESS_NAME = 2; - - // Data Type: STRING. Line 1 of the business address. - ADDRESS_LINE_1 = 3; - - // Data Type: STRING. Line 2 of the business address. - ADDRESS_LINE_2 = 4; - - // Data Type: STRING. City of the business address. - CITY = 5; - - // Data Type: STRING. Province of the business address. - PROVINCE = 6; - - // Data Type: STRING. Postal code of the business address. - POSTAL_CODE = 7; - - // Data Type: STRING. Country code of the business address. - COUNTRY_CODE = 8; - - // Data Type: STRING. Phone number of the business. - PHONE_NUMBER = 9; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/manager_link_status.proto b/third_party/googleapis/google/ads/googleads/v2/enums/manager_link_status.proto deleted file mode 100644 index 693373fe1..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/manager_link_status.proto +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ManagerLinkStatusProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Container for enum describing possible status of a manager and client link. -message ManagerLinkStatusEnum { - // Possible statuses of a link. - enum ManagerLinkStatus { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Indicates current in-effect relationship - ACTIVE = 2; - - // Indicates terminated relationship - INACTIVE = 3; - - // Indicates relationship has been requested by manager, but the client - // hasn't accepted yet. - PENDING = 4; - - // Relationship was requested by the manager, but the client has refused. - REFUSED = 5; - - // Indicates relationship has been requested by manager, but manager - // canceled it. - CANCELED = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/matching_function_context_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/matching_function_context_type.proto deleted file mode 100644 index 42b082fcc..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/matching_function_context_type.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "MatchingFunctionContextTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing matching function context types. - -// Container for context types for an operand in a matching function. -message MatchingFunctionContextTypeEnum { - // Possible context types for an operand in a matching function. - enum MatchingFunctionContextType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Feed item id in the request context. - FEED_ITEM_ID = 2; - - // The device being used (possible values are 'Desktop' or 'Mobile'). - DEVICE_NAME = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/matching_function_operator.proto b/third_party/googleapis/google/ads/googleads/v2/enums/matching_function_operator.proto deleted file mode 100644 index c6092ad40..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/matching_function_operator.proto +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "MatchingFunctionOperatorProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing matching function operators. - -// Container for enum describing matching function operator. -message MatchingFunctionOperatorEnum { - // Possible operators in a matching function. - enum MatchingFunctionOperator { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The IN operator. - IN = 2; - - // The IDENTITY operator. - IDENTITY = 3; - - // The EQUALS operator - EQUALS = 4; - - // Operator that takes two or more operands that are of type - // FunctionOperand and checks that all the operands evaluate to true. - // For functions related to ad formats, all the operands must be in - // left_operands. - AND = 5; - - // Operator that returns true if the elements in left_operands contain any - // of the elements in right_operands. Otherwise, return false. The - // right_operands must contain at least 1 and no more than 3 - // ConstantOperands. - CONTAINS_ANY = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/media_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/media_type.proto deleted file mode 100644 index 15f7e5f7d..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/media_type.proto +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "MediaTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing media types. - -// Container for enum describing the types of media. -message MediaTypeEnum { - // The type of media. - enum MediaType { - // The media type has not been specified. - UNSPECIFIED = 0; - - // The received value is not known in this version. - // - // This is a response-only value. - UNKNOWN = 1; - - // Static image, used for image ad. - IMAGE = 2; - - // Small image, used for map ad. - ICON = 3; - - // ZIP file, used in fields of template ads. - MEDIA_BUNDLE = 4; - - // Audio file. - AUDIO = 5; - - // Video file. - VIDEO = 6; - - // Animated image, such as animated GIF. - DYNAMIC_IMAGE = 7; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/merchant_center_link_status.proto b/third_party/googleapis/google/ads/googleads/v2/enums/merchant_center_link_status.proto deleted file mode 100644 index a1ac95746..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/merchant_center_link_status.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "MerchantCenterLinkStatusProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing Merchant Center link statuses. - -// Container for enum describing possible statuses of a Google Merchant Center -// link. -message MerchantCenterLinkStatusEnum { - // Describes the possible statuses for a link between a Google Ads customer - // and a Google Merchant Center account. - enum MerchantCenterLinkStatus { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The link is enabled. - ENABLED = 2; - - // The link has no effect. It was proposed by the Merchant Center Account - // owner and hasn't been confirmed by the customer. - PENDING = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/message_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v2/enums/message_placeholder_field.proto deleted file mode 100644 index 3af72e6ef..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/message_placeholder_field.proto +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "MessagePlaceholderFieldProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing Message placeholder fields. - -// Values for Message placeholder fields. -message MessagePlaceholderFieldEnum { - // Possible values for Message placeholder fields. - enum MessagePlaceholderField { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Data Type: STRING. The name of your business. - BUSINESS_NAME = 2; - - // Data Type: STRING. Country code of phone number. - COUNTRY_CODE = 3; - - // Data Type: STRING. A phone number that's capable of sending and receiving - // text messages. - PHONE_NUMBER = 4; - - // Data Type: STRING. The text that will go in your click-to-message ad. - MESSAGE_EXTENSION_TEXT = 5; - - // Data Type: STRING. The message text automatically shows in people's - // messaging apps when they tap to send you a message. - MESSAGE_TEXT = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/mime_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/mime_type.proto deleted file mode 100644 index 7fd3d343a..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/mime_type.proto +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "MimeTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing mime types. - -// Container for enum describing the mime types. -message MimeTypeEnum { - // The mime type - enum MimeType { - // The mime type has not been specified. - UNSPECIFIED = 0; - - // The received value is not known in this version. - // - // This is a response-only value. - UNKNOWN = 1; - - // MIME type of image/jpeg. - IMAGE_JPEG = 2; - - // MIME type of image/gif. - IMAGE_GIF = 3; - - // MIME type of image/png. - IMAGE_PNG = 4; - - // MIME type of application/x-shockwave-flash. - FLASH = 5; - - // MIME type of text/html. - TEXT_HTML = 6; - - // MIME type of application/pdf. - PDF = 7; - - // MIME type of application/msword. - MSWORD = 8; - - // MIME type of application/vnd.ms-excel. - MSEXCEL = 9; - - // MIME type of application/rtf. - RTF = 10; - - // MIME type of audio/wav. - AUDIO_WAV = 11; - - // MIME type of audio/mp3. - AUDIO_MP3 = 12; - - // MIME type of application/x-html5-ad-zip. - HTML5_AD_ZIP = 13; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/minute_of_hour.proto b/third_party/googleapis/google/ads/googleads/v2/enums/minute_of_hour.proto deleted file mode 100644 index b18c5a8e8..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/minute_of_hour.proto +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "MinuteOfHourProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing days of week. - -// Container for enumeration of quarter-hours. -message MinuteOfHourEnum { - // Enumerates of quarter-hours. E.g. "FIFTEEN" - enum MinuteOfHour { - // Not specified. - UNSPECIFIED = 0; - - // The value is unknown in this version. - UNKNOWN = 1; - - // Zero minutes past the hour. - ZERO = 2; - - // Fifteen minutes past the hour. - FIFTEEN = 3; - - // Thirty minutes past the hour. - THIRTY = 4; - - // Forty-five minutes past the hour. - FORTY_FIVE = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/mobile_device_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/mobile_device_type.proto deleted file mode 100644 index 0e812ae42..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/mobile_device_type.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "MobileDeviceTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing mobile device types. - -// Container for enum describing the types of mobile device. -message MobileDeviceTypeEnum { - // The type of mobile device. - enum MobileDeviceType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Mobile phones. - MOBILE = 2; - - // Tablets. - TABLET = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/month_of_year.proto b/third_party/googleapis/google/ads/googleads/v2/enums/month_of_year.proto deleted file mode 100644 index 67d3cf7d1..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/month_of_year.proto +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "MonthOfYearProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing days of week. - -// Container for enumeration of months of the year, e.g., "January". -message MonthOfYearEnum { - // Enumerates months of the year, e.g., "January". - enum MonthOfYear { - // Not specified. - UNSPECIFIED = 0; - - // The value is unknown in this version. - UNKNOWN = 1; - - // January. - JANUARY = 2; - - // February. - FEBRUARY = 3; - - // March. - MARCH = 4; - - // April. - APRIL = 5; - - // May. - MAY = 6; - - // June. - JUNE = 7; - - // July. - JULY = 8; - - // August. - AUGUST = 9; - - // September. - SEPTEMBER = 10; - - // October. - OCTOBER = 11; - - // November. - NOVEMBER = 12; - - // December. - DECEMBER = 13; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/mutate_job_status.proto b/third_party/googleapis/google/ads/googleads/v2/enums/mutate_job_status.proto deleted file mode 100644 index 5bec9c32d..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/mutate_job_status.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "MutateJobStatusProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing mutate job statuses. - -// Container for enum describing possible mutate job statuses. -message MutateJobStatusEnum { - // The mutate job statuses. - enum MutateJobStatus { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The job is not currently running. - PENDING = 2; - - // The job is running. - RUNNING = 3; - - // The job is done. - DONE = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/negative_geo_target_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/negative_geo_target_type.proto deleted file mode 100644 index 531b87a1b..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/negative_geo_target_type.proto +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "NegativeGeoTargetTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing negative geo target types. - -// Container for enum describing possible negative geo target types. -message NegativeGeoTargetTypeEnum { - // The possible negative geo target types. - enum NegativeGeoTargetType { - // Not specified. - UNSPECIFIED = 0; - - // The value is unknown in this version. - UNKNOWN = 1; - - // Specifies that a user is excluded from seeing the ad if they - // are in, or show interest in, advertiser's excluded locations. - PRESENCE_OR_INTEREST = 4; - - // Specifies that a user is excluded from seeing the ad if they - // are in advertiser's excluded locations. - PRESENCE = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/operating_system_version_operator_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/operating_system_version_operator_type.proto deleted file mode 100644 index f33a81ede..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/operating_system_version_operator_type.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "OperatingSystemVersionOperatorTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing operating system version operator types. - -// Container for enum describing the type of OS operators. -message OperatingSystemVersionOperatorTypeEnum { - // The type of operating system version. - enum OperatingSystemVersionOperatorType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Equals to the specified version. - EQUALS_TO = 2; - - // Greater than or equals to the specified version. - GREATER_THAN_EQUALS_TO = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/page_one_promoted_strategy_goal.proto b/third_party/googleapis/google/ads/googleads/v2/enums/page_one_promoted_strategy_goal.proto deleted file mode 100644 index 3017a9746..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/page_one_promoted_strategy_goal.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "PageOnePromotedStrategyGoalProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing bidding schemes. - -// Container for enum describing possible strategy goals: where impressions are -// desired to be shown on search result pages. -message PageOnePromotedStrategyGoalEnum { - // Enum describing possible strategy goals. - enum PageOnePromotedStrategyGoal { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // First page on google.com. - FIRST_PAGE = 2; - - // Top slots of the first page on google.com. - FIRST_PAGE_PROMOTED = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/parental_status_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/parental_status_type.proto deleted file mode 100644 index 435c48c73..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/parental_status_type.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ParentalStatusTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing parenal status types. - -// Container for enum describing the type of demographic parental statuses. -message ParentalStatusTypeEnum { - // The type of parental statuses (e.g. not a parent). - enum ParentalStatusType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Parent. - PARENT = 300; - - // Not a parent. - NOT_A_PARENT = 301; - - // Undetermined parental status. - UNDETERMINED = 302; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/payment_mode.proto b/third_party/googleapis/google/ads/googleads/v2/enums/payment_mode.proto deleted file mode 100644 index c00c95ea5..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/payment_mode.proto +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "PaymentModeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing payment modes. - -// Container for enum describing possible payment modes. -message PaymentModeEnum { - // Enum describing possible payment modes. - enum PaymentMode { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Pay per click. - CLICKS = 4; - - // Pay per conversion value. This mode is only supported by campaigns with - // AdvertisingChannelType.HOTEL, BiddingStrategyType.COMMISSION, and - // BudgetType.HOTEL_ADS_COMMISSION. - CONVERSION_VALUE = 5; - - // Pay per conversion. This mode is only supported by campaigns with - // AdvertisingChannelType.DISPLAY (excluding - // AdvertisingChannelSubType.DISPLAY_GMAIL), BiddingStrategyType.TARGET_CPA, - // and BudgetType.FIXED_CPA. The customer must also be eligible for this - // mode. See Customer.eligibility_failure_reasons for details. - CONVERSIONS = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/placeholder_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/placeholder_type.proto deleted file mode 100644 index 81bd57556..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/placeholder_type.proto +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "PlaceholderTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing feed placeholder types. - -// Container for enum describing possible placeholder types for a feed mapping. -message PlaceholderTypeEnum { - // Possible placeholder types for a feed mapping. - enum PlaceholderType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Lets you show links in your ad to pages from your website, including the - // main landing page. - SITELINK = 2; - - // Lets you attach a phone number to an ad, allowing customers to call - // directly from the ad. - CALL = 3; - - // Lets you provide users with a link that points to a mobile app in - // addition to a website. - APP = 4; - - // Lets you show locations of businesses from your Google My Business - // account in your ad. This helps people find your locations by showing your - // ads with your address, a map to your location, or the distance to your - // business. This extension type is useful to draw customers to your - // brick-and-mortar location. - LOCATION = 5; - - // If you sell your product through retail chains, affiliate location - // extensions let you show nearby stores that carry your products. - AFFILIATE_LOCATION = 6; - - // Lets you include additional text with your search ads that provide - // detailed information about your business, including products and services - // you offer. Callouts appear in ads at the top and bottom of Google search - // results. - CALLOUT = 7; - - // Lets you add more info to your ad, specific to some predefined categories - // such as types, brands, styles, etc. A minimum of 3 text (SNIPPETS) values - // are required. - STRUCTURED_SNIPPET = 8; - - // Allows users to see your ad, click an icon, and contact you directly by - // text message. With one tap on your ad, people can contact you to book an - // appointment, get a quote, ask for information, or request a service. - MESSAGE = 9; - - // Lets you display prices for a list of items along with your ads. A price - // feed is composed of three to eight price table rows. - PRICE = 10; - - // Allows you to highlight sales and other promotions that let users see how - // they can save by buying now. - PROMOTION = 11; - - // Lets you dynamically inject custom data into the title and description - // of your ads. - AD_CUSTOMIZER = 12; - - // Indicates that this feed is for education dynamic remarketing. - DYNAMIC_EDUCATION = 13; - - // Indicates that this feed is for flight dynamic remarketing. - DYNAMIC_FLIGHT = 14; - - // Indicates that this feed is for a custom dynamic remarketing type. Use - // this only if the other business types don't apply to your products or - // services. - DYNAMIC_CUSTOM = 15; - - // Indicates that this feed is for hotels and rentals dynamic remarketing. - DYNAMIC_HOTEL = 16; - - // Indicates that this feed is for real estate dynamic remarketing. - DYNAMIC_REAL_ESTATE = 17; - - // Indicates that this feed is for travel dynamic remarketing. - DYNAMIC_TRAVEL = 18; - - // Indicates that this feed is for local deals dynamic remarketing. - DYNAMIC_LOCAL = 19; - - // Indicates that this feed is for job dynamic remarketing. - DYNAMIC_JOB = 20; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/placement_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/placement_type.proto deleted file mode 100644 index cb4b57f44..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/placement_type.proto +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "PlacementTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing placement types. - -// Container for enum describing possible placement types. -message PlacementTypeEnum { - // Possible placement types for a feed mapping. - enum PlacementType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Websites(e.g. 'www.flowers4sale.com'). - WEBSITE = 2; - - // Mobile application categories(e.g. 'Games'). - MOBILE_APP_CATEGORY = 3; - - // mobile applications(e.g. 'mobileapp::2-com.whatsthewordanswers'). - MOBILE_APPLICATION = 4; - - // YouTube videos(e.g. 'youtube.com/video/wtLJPvx7-ys'). - YOUTUBE_VIDEO = 5; - - // YouTube channels(e.g. 'youtube.com::L8ZULXASCc1I_oaOT0NaOQ'). - YOUTUBE_CHANNEL = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/policy_approval_status.proto b/third_party/googleapis/google/ads/googleads/v2/enums/policy_approval_status.proto deleted file mode 100644 index ce5739be4..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/policy_approval_status.proto +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "PolicyApprovalStatusProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing policy approval statuses. - -// Container for enum describing possible policy approval statuses. -message PolicyApprovalStatusEnum { - // The possible policy approval statuses. When there are several approval - // statuses available the most severe one will be used. The order of severity - // is DISAPPROVED, AREA_OF_INTEREST_ONLY, APPROVED_LIMITED and APPROVED. - enum PolicyApprovalStatus { - // No value has been specified. - UNSPECIFIED = 0; - - // The received value is not known in this version. - // - // This is a response-only value. - UNKNOWN = 1; - - // Will not serve. - DISAPPROVED = 2; - - // Serves with restrictions. - APPROVED_LIMITED = 3; - - // Serves without restrictions. - APPROVED = 4; - - // Will not serve in targeted countries, but may serve for users who are - // searching for information about the targeted countries. - AREA_OF_INTEREST_ONLY = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/policy_review_status.proto b/third_party/googleapis/google/ads/googleads/v2/enums/policy_review_status.proto deleted file mode 100644 index 8e023567d..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/policy_review_status.proto +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "PolicyReviewStatusProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing policy review statuses. - -// Container for enum describing possible policy review statuses. -message PolicyReviewStatusEnum { - // The possible policy review statuses. - enum PolicyReviewStatus { - // No value has been specified. - UNSPECIFIED = 0; - - // The received value is not known in this version. - // - // This is a response-only value. - UNKNOWN = 1; - - // Currently under review. - REVIEW_IN_PROGRESS = 2; - - // Primary review complete. Other reviews may be continuing. - REVIEWED = 3; - - // The resource has been resubmitted for approval or its policy decision has - // been appealed. - UNDER_APPEAL = 4; - - // The resource is eligible and may be serving but could still undergo - // further review. - ELIGIBLE_MAY_SERVE = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/policy_topic_entry_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/policy_topic_entry_type.proto deleted file mode 100644 index 9399ace3b..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/policy_topic_entry_type.proto +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "PolicyTopicEntryTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing policy topic entry types. - -// Container for enum describing possible policy topic entry types. -message PolicyTopicEntryTypeEnum { - // The possible policy topic entry types. - enum PolicyTopicEntryType { - // No value has been specified. - UNSPECIFIED = 0; - - // The received value is not known in this version. - // - // This is a response-only value. - UNKNOWN = 1; - - // The resource will not be served. - PROHIBITED = 2; - - // The resource will not be served under some circumstances. - LIMITED = 4; - - // The resource cannot serve at all because of the current targeting - // criteria. - FULLY_LIMITED = 8; - - // May be of interest, but does not limit how the resource is served. - DESCRIPTIVE = 5; - - // Could increase coverage beyond normal. - BROADENING = 6; - - // Constrained for all targeted countries, but may serve in other countries - // through area of interest. - AREA_OF_INTEREST_ONLY = 7; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/policy_topic_evidence_destination_mismatch_url_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/policy_topic_evidence_destination_mismatch_url_type.proto deleted file mode 100644 index a7eb35c8b..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/policy_topic_evidence_destination_mismatch_url_type.proto +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "PolicyTopicEvidenceDestinationMismatchUrlTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing policy topic evidence destination mismatch url types. - -// Container for enum describing possible policy topic evidence destination -// mismatch url types. -message PolicyTopicEvidenceDestinationMismatchUrlTypeEnum { - // The possible policy topic evidence destination mismatch url types. - enum PolicyTopicEvidenceDestinationMismatchUrlType { - // No value has been specified. - UNSPECIFIED = 0; - - // The received value is not known in this version. - // - // This is a response-only value. - UNKNOWN = 1; - - // The display url. - DISPLAY_URL = 2; - - // The final url. - FINAL_URL = 3; - - // The final mobile url. - FINAL_MOBILE_URL = 4; - - // The tracking url template, with substituted desktop url. - TRACKING_URL = 5; - - // The tracking url template, with substituted mobile url. - MOBILE_TRACKING_URL = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/policy_topic_evidence_destination_not_working_device.proto b/third_party/googleapis/google/ads/googleads/v2/enums/policy_topic_evidence_destination_not_working_device.proto deleted file mode 100644 index fc280ccc1..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/policy_topic_evidence_destination_not_working_device.proto +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "PolicyTopicEvidenceDestinationNotWorkingDeviceProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing device of destination not working policy topic -// evidence. - -// Container for enum describing possible policy topic evidence destination not -// working devices. -message PolicyTopicEvidenceDestinationNotWorkingDeviceEnum { - // The possible policy topic evidence destination not working devices. - enum PolicyTopicEvidenceDestinationNotWorkingDevice { - // No value has been specified. - UNSPECIFIED = 0; - - // The received value is not known in this version. - // - // This is a response-only value. - UNKNOWN = 1; - - // Landing page doesn't work on desktop device. - DESKTOP = 2; - - // Landing page doesn't work on Android device. - ANDROID = 3; - - // Landing page doesn't work on iOS device. - IOS = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/policy_topic_evidence_destination_not_working_dns_error_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/policy_topic_evidence_destination_not_working_dns_error_type.proto deleted file mode 100644 index ff859d220..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/policy_topic_evidence_destination_not_working_dns_error_type.proto +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing DNS error types of destination not working policy topic -// evidence. - -// Container for enum describing possible policy topic evidence destination not -// working DNS error types. -message PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum { - // The possible policy topic evidence destination not working DNS error types. - enum PolicyTopicEvidenceDestinationNotWorkingDnsErrorType { - // No value has been specified. - UNSPECIFIED = 0; - - // The received value is not known in this version. - // - // This is a response-only value. - UNKNOWN = 1; - - // Host name not found in DNS when fetching landing page. - HOSTNAME_NOT_FOUND = 2; - - // Google internal crawler issue when communicating with DNS. This error - // doesn't mean the landing page doesn't work. Google will recrawl the - // landing page. - GOOGLE_CRAWLER_DNS_ISSUE = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/positive_geo_target_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/positive_geo_target_type.proto deleted file mode 100644 index 85bae4837..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/positive_geo_target_type.proto +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "PositiveGeoTargetTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing positive geo target types. - -// Container for enum describing possible positive geo target types. -message PositiveGeoTargetTypeEnum { - // The possible positive geo target types. - enum PositiveGeoTargetType { - // Not specified. - UNSPECIFIED = 0; - - // The value is unknown in this version. - UNKNOWN = 1; - - // Specifies that an ad is triggered if the user is in, - // or shows interest in, advertiser's targeted locations. - PRESENCE_OR_INTEREST = 5; - - // Specifies that an ad is triggered if the user - // searches for advertiser's targeted locations. - SEARCH_INTEREST = 6; - - // Specifies that an ad is triggered if the user is in - // or regularly in advertiser's targeted locations. - PRESENCE = 7; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/preferred_content_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/preferred_content_type.proto deleted file mode 100644 index 825c00f5a..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/preferred_content_type.proto +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "PreferredContentTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing preferred content criterion type. - -// Container for enumeration of preferred content criterion type. -message PreferredContentTypeEnum { - // Enumerates preferred content criterion type. - enum PreferredContentType { - // Not specified. - UNSPECIFIED = 0; - - // The value is unknown in this version. - UNKNOWN = 1; - - // Represents top content on YouTube. - YOUTUBE_TOP_CONTENT = 400; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/price_extension_price_qualifier.proto b/third_party/googleapis/google/ads/googleads/v2/enums/price_extension_price_qualifier.proto deleted file mode 100644 index 9675bc5c4..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/price_extension_price_qualifier.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "PriceExtensionPriceQualifierProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing price extension price qualifier type. - -// Container for enum describing a price extension price qualifier. -message PriceExtensionPriceQualifierEnum { - // Enums of price extension price qualifier. - enum PriceExtensionPriceQualifier { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // 'From' qualifier for the price. - FROM = 2; - - // 'Up to' qualifier for the price. - UP_TO = 3; - - // 'Average' qualifier for the price. - AVERAGE = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/price_extension_price_unit.proto b/third_party/googleapis/google/ads/googleads/v2/enums/price_extension_price_unit.proto deleted file mode 100644 index fc93171a0..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/price_extension_price_unit.proto +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "PriceExtensionPriceUnitProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing price extension price unit. - -// Container for enum describing price extension price unit. -message PriceExtensionPriceUnitEnum { - // Price extension price unit. - enum PriceExtensionPriceUnit { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Per hour. - PER_HOUR = 2; - - // Per day. - PER_DAY = 3; - - // Per week. - PER_WEEK = 4; - - // Per month. - PER_MONTH = 5; - - // Per year. - PER_YEAR = 6; - - // Per night. - PER_NIGHT = 7; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/price_extension_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/price_extension_type.proto deleted file mode 100644 index 23e66aa36..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/price_extension_type.proto +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "PriceExtensionTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing price extension type. - -// Container for enum describing types for a price extension. -message PriceExtensionTypeEnum { - // Price extension type. - enum PriceExtensionType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The type for showing a list of brands. - BRANDS = 2; - - // The type for showing a list of events. - EVENTS = 3; - - // The type for showing locations relevant to your business. - LOCATIONS = 4; - - // The type for showing sub-regions or districts within a city or region. - NEIGHBORHOODS = 5; - - // The type for showing a collection of product categories. - PRODUCT_CATEGORIES = 6; - - // The type for showing a collection of related product tiers. - PRODUCT_TIERS = 7; - - // The type for showing a collection of services offered by your business. - SERVICES = 8; - - // The type for showing a collection of service categories. - SERVICE_CATEGORIES = 9; - - // The type for showing a collection of related service tiers. - SERVICE_TIERS = 10; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/price_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v2/enums/price_placeholder_field.proto deleted file mode 100644 index e69c12d0a..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/price_placeholder_field.proto +++ /dev/null @@ -1,240 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "PricePlaceholderFieldProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing Price placeholder fields. - -// Values for Price placeholder fields. -message PricePlaceholderFieldEnum { - // Possible values for Price placeholder fields. - enum PricePlaceholderField { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Data Type: STRING. The type of your price feed. Must match one of the - // predefined price feed type exactly. - TYPE = 2; - - // Data Type: STRING. The qualifier of each price. Must match one of the - // predefined price qualifiers exactly. - PRICE_QUALIFIER = 3; - - // Data Type: URL. Tracking template for the price feed when using Upgraded - // URLs. - TRACKING_TEMPLATE = 4; - - // Data Type: STRING. Language of the price feed. Must match one of the - // available available locale codes exactly. - LANGUAGE = 5; - - // Data Type: STRING. Final URL suffix for the price feed when using - // parallel tracking. - FINAL_URL_SUFFIX = 6; - - // Data Type: STRING. The header of item 1 of the table. - ITEM_1_HEADER = 100; - - // Data Type: STRING. The description of item 1 of the table. - ITEM_1_DESCRIPTION = 101; - - // Data Type: MONEY. The price (money with currency) of item 1 of the table, - // e.g., 30 USD. The currency must match one of the available currencies. - ITEM_1_PRICE = 102; - - // Data Type: STRING. The price unit of item 1 of the table. Must match one - // of the predefined price units. - ITEM_1_UNIT = 103; - - // Data Type: URL_LIST. The final URLs of item 1 of the table when using - // Upgraded URLs. - ITEM_1_FINAL_URLS = 104; - - // Data Type: URL_LIST. The final mobile URLs of item 1 of the table when - // using Upgraded URLs. - ITEM_1_FINAL_MOBILE_URLS = 105; - - // Data Type: STRING. The header of item 2 of the table. - ITEM_2_HEADER = 200; - - // Data Type: STRING. The description of item 2 of the table. - ITEM_2_DESCRIPTION = 201; - - // Data Type: MONEY. The price (money with currency) of item 2 of the table, - // e.g., 30 USD. The currency must match one of the available currencies. - ITEM_2_PRICE = 202; - - // Data Type: STRING. The price unit of item 2 of the table. Must match one - // of the predefined price units. - ITEM_2_UNIT = 203; - - // Data Type: URL_LIST. The final URLs of item 2 of the table when using - // Upgraded URLs. - ITEM_2_FINAL_URLS = 204; - - // Data Type: URL_LIST. The final mobile URLs of item 2 of the table when - // using Upgraded URLs. - ITEM_2_FINAL_MOBILE_URLS = 205; - - // Data Type: STRING. The header of item 3 of the table. - ITEM_3_HEADER = 300; - - // Data Type: STRING. The description of item 3 of the table. - ITEM_3_DESCRIPTION = 301; - - // Data Type: MONEY. The price (money with currency) of item 3 of the table, - // e.g., 30 USD. The currency must match one of the available currencies. - ITEM_3_PRICE = 302; - - // Data Type: STRING. The price unit of item 3 of the table. Must match one - // of the predefined price units. - ITEM_3_UNIT = 303; - - // Data Type: URL_LIST. The final URLs of item 3 of the table when using - // Upgraded URLs. - ITEM_3_FINAL_URLS = 304; - - // Data Type: URL_LIST. The final mobile URLs of item 3 of the table when - // using Upgraded URLs. - ITEM_3_FINAL_MOBILE_URLS = 305; - - // Data Type: STRING. The header of item 4 of the table. - ITEM_4_HEADER = 400; - - // Data Type: STRING. The description of item 4 of the table. - ITEM_4_DESCRIPTION = 401; - - // Data Type: MONEY. The price (money with currency) of item 4 of the table, - // e.g., 30 USD. The currency must match one of the available currencies. - ITEM_4_PRICE = 402; - - // Data Type: STRING. The price unit of item 4 of the table. Must match one - // of the predefined price units. - ITEM_4_UNIT = 403; - - // Data Type: URL_LIST. The final URLs of item 4 of the table when using - // Upgraded URLs. - ITEM_4_FINAL_URLS = 404; - - // Data Type: URL_LIST. The final mobile URLs of item 4 of the table when - // using Upgraded URLs. - ITEM_4_FINAL_MOBILE_URLS = 405; - - // Data Type: STRING. The header of item 5 of the table. - ITEM_5_HEADER = 500; - - // Data Type: STRING. The description of item 5 of the table. - ITEM_5_DESCRIPTION = 501; - - // Data Type: MONEY. The price (money with currency) of item 5 of the table, - // e.g., 30 USD. The currency must match one of the available currencies. - ITEM_5_PRICE = 502; - - // Data Type: STRING. The price unit of item 5 of the table. Must match one - // of the predefined price units. - ITEM_5_UNIT = 503; - - // Data Type: URL_LIST. The final URLs of item 5 of the table when using - // Upgraded URLs. - ITEM_5_FINAL_URLS = 504; - - // Data Type: URL_LIST. The final mobile URLs of item 5 of the table when - // using Upgraded URLs. - ITEM_5_FINAL_MOBILE_URLS = 505; - - // Data Type: STRING. The header of item 6 of the table. - ITEM_6_HEADER = 600; - - // Data Type: STRING. The description of item 6 of the table. - ITEM_6_DESCRIPTION = 601; - - // Data Type: MONEY. The price (money with currency) of item 6 of the table, - // e.g., 30 USD. The currency must match one of the available currencies. - ITEM_6_PRICE = 602; - - // Data Type: STRING. The price unit of item 6 of the table. Must match one - // of the predefined price units. - ITEM_6_UNIT = 603; - - // Data Type: URL_LIST. The final URLs of item 6 of the table when using - // Upgraded URLs. - ITEM_6_FINAL_URLS = 604; - - // Data Type: URL_LIST. The final mobile URLs of item 6 of the table when - // using Upgraded URLs. - ITEM_6_FINAL_MOBILE_URLS = 605; - - // Data Type: STRING. The header of item 7 of the table. - ITEM_7_HEADER = 700; - - // Data Type: STRING. The description of item 7 of the table. - ITEM_7_DESCRIPTION = 701; - - // Data Type: MONEY. The price (money with currency) of item 7 of the table, - // e.g., 30 USD. The currency must match one of the available currencies. - ITEM_7_PRICE = 702; - - // Data Type: STRING. The price unit of item 7 of the table. Must match one - // of the predefined price units. - ITEM_7_UNIT = 703; - - // Data Type: URL_LIST. The final URLs of item 7 of the table when using - // Upgraded URLs. - ITEM_7_FINAL_URLS = 704; - - // Data Type: URL_LIST. The final mobile URLs of item 7 of the table when - // using Upgraded URLs. - ITEM_7_FINAL_MOBILE_URLS = 705; - - // Data Type: STRING. The header of item 8 of the table. - ITEM_8_HEADER = 800; - - // Data Type: STRING. The description of item 8 of the table. - ITEM_8_DESCRIPTION = 801; - - // Data Type: MONEY. The price (money with currency) of item 8 of the table, - // e.g., 30 USD. The currency must match one of the available currencies. - ITEM_8_PRICE = 802; - - // Data Type: STRING. The price unit of item 8 of the table. Must match one - // of the predefined price units. - ITEM_8_UNIT = 803; - - // Data Type: URL_LIST. The final URLs of item 8 of the table when using - // Upgraded URLs. - ITEM_8_FINAL_URLS = 804; - - // Data Type: URL_LIST. The final mobile URLs of item 8 of the table when - // using Upgraded URLs. - ITEM_8_FINAL_MOBILE_URLS = 805; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/product_bidding_category_level.proto b/third_party/googleapis/google/ads/googleads/v2/enums/product_bidding_category_level.proto deleted file mode 100644 index 02de9216e..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/product_bidding_category_level.proto +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ProductBiddingCategoryLevelProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Level of a product bidding category. -message ProductBiddingCategoryLevelEnum { - // Enum describing the level of the product bidding category. - enum ProductBiddingCategoryLevel { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Level 1. - LEVEL1 = 2; - - // Level 2. - LEVEL2 = 3; - - // Level 3. - LEVEL3 = 4; - - // Level 4. - LEVEL4 = 5; - - // Level 5. - LEVEL5 = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/product_bidding_category_status.proto b/third_party/googleapis/google/ads/googleads/v2/enums/product_bidding_category_status.proto deleted file mode 100644 index a0d91c443..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/product_bidding_category_status.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ProductBiddingCategoryStatusProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing bidding schemes. - -// Status of the product bidding category. -message ProductBiddingCategoryStatusEnum { - // Enum describing the status of the product bidding category. - enum ProductBiddingCategoryStatus { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The category is active and can be used for bidding. - ACTIVE = 2; - - // The category is obsolete. Used only for reporting purposes. - OBSOLETE = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/product_channel.proto b/third_party/googleapis/google/ads/googleads/v2/enums/product_channel.proto deleted file mode 100644 index ef03baa22..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/product_channel.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ProductChannelProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing bidding schemes. - -// Locality of a product offer. -message ProductChannelEnum { - // Enum describing the locality of a product offer. - enum ProductChannel { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The item is sold online. - ONLINE = 2; - - // The item is sold in local stores. - LOCAL = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/product_channel_exclusivity.proto b/third_party/googleapis/google/ads/googleads/v2/enums/product_channel_exclusivity.proto deleted file mode 100644 index 87981228b..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/product_channel_exclusivity.proto +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ProductChannelExclusivityProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing bidding schemes. - -// Availability of a product offer. -message ProductChannelExclusivityEnum { - // Enum describing the availability of a product offer. - enum ProductChannelExclusivity { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The item is sold through one channel only, either local stores or online - // as indicated by its ProductChannel. - SINGLE_CHANNEL = 2; - - // The item is matched to its online or local stores counterpart, indicating - // it is available for purchase in both ShoppingProductChannels. - MULTI_CHANNEL = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/product_condition.proto b/third_party/googleapis/google/ads/googleads/v2/enums/product_condition.proto deleted file mode 100644 index c80813210..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/product_condition.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ProductConditionProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing bidding schemes. - -// Condition of a product offer. -message ProductConditionEnum { - // Enum describing the condition of a product offer. - enum ProductCondition { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The product condition is new. - NEW = 3; - - // The product condition is refurbished. - REFURBISHED = 4; - - // The product condition is used. - USED = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/product_type_level.proto b/third_party/googleapis/google/ads/googleads/v2/enums/product_type_level.proto deleted file mode 100644 index 936ceae1e..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/product_type_level.proto +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ProductTypeLevelProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing bidding schemes. - -// Level of the type of a product offer. -message ProductTypeLevelEnum { - // Enum describing the level of the type of a product offer. - enum ProductTypeLevel { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Level 1. - LEVEL1 = 7; - - // Level 2. - LEVEL2 = 8; - - // Level 3. - LEVEL3 = 9; - - // Level 4. - LEVEL4 = 10; - - // Level 5. - LEVEL5 = 11; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/promotion_extension_discount_modifier.proto b/third_party/googleapis/google/ads/googleads/v2/enums/promotion_extension_discount_modifier.proto deleted file mode 100644 index 038da7aca..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/promotion_extension_discount_modifier.proto +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "PromotionExtensionDiscountModifierProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing promotion extension discount modifier. - -// Container for enum describing possible a promotion extension -// discount modifier. -message PromotionExtensionDiscountModifierEnum { - // A promotion extension discount modifier. - enum PromotionExtensionDiscountModifier { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // 'Up to'. - UP_TO = 2; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/promotion_extension_occasion.proto b/third_party/googleapis/google/ads/googleads/v2/enums/promotion_extension_occasion.proto deleted file mode 100644 index 953b82a38..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/promotion_extension_occasion.proto +++ /dev/null @@ -1,157 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "PromotionExtensionOccasionProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing promotion extension occasion. - -// Container for enum describing a promotion extension occasion. -// For more information about the occasions please check: -// https://support.google.com/google-ads/answer/7367521 -message PromotionExtensionOccasionEnum { - // A promotion extension occasion. - enum PromotionExtensionOccasion { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // New Year's. - NEW_YEARS = 2; - - // Chinese New Year. - CHINESE_NEW_YEAR = 3; - - // Valentine's Day. - VALENTINES_DAY = 4; - - // Easter. - EASTER = 5; - - // Mother's Day. - MOTHERS_DAY = 6; - - // Father's Day. - FATHERS_DAY = 7; - - // Labor Day. - LABOR_DAY = 8; - - // Back To School. - BACK_TO_SCHOOL = 9; - - // Halloween. - HALLOWEEN = 10; - - // Black Friday. - BLACK_FRIDAY = 11; - - // Cyber Monday. - CYBER_MONDAY = 12; - - // Christmas. - CHRISTMAS = 13; - - // Boxing Day. - BOXING_DAY = 14; - - // Independence Day in any country. - INDEPENDENCE_DAY = 15; - - // National Day in any country. - NATIONAL_DAY = 16; - - // End of any season. - END_OF_SEASON = 17; - - // Winter Sale. - WINTER_SALE = 18; - - // Summer sale. - SUMMER_SALE = 19; - - // Fall Sale. - FALL_SALE = 20; - - // Spring Sale. - SPRING_SALE = 21; - - // Ramadan. - RAMADAN = 22; - - // Eid al-Fitr. - EID_AL_FITR = 23; - - // Eid al-Adha. - EID_AL_ADHA = 24; - - // Singles Day. - SINGLES_DAY = 25; - - // Women's Day. - WOMENS_DAY = 26; - - // Holi. - HOLI = 27; - - // Parent's Day. - PARENTS_DAY = 28; - - // St. Nicholas Day. - ST_NICHOLAS_DAY = 29; - - // Carnival. - CARNIVAL = 30; - - // Epiphany, also known as Three Kings' Day. - EPIPHANY = 31; - - // Rosh Hashanah. - ROSH_HASHANAH = 32; - - // Passover. - PASSOVER = 33; - - // Hanukkah. - HANUKKAH = 34; - - // Diwali. - DIWALI = 35; - - // Navratri. - NAVRATRI = 36; - - // Available in Thai: Songkran. - SONGKRAN = 37; - - // Available in Japanese: Year-end Gift. - YEAR_END_GIFT = 38; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/promotion_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v2/enums/promotion_placeholder_field.proto deleted file mode 100644 index 7e754d863..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/promotion_placeholder_field.proto +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "PromotionPlaceholderFieldProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing Promotion placeholder fields. - -// Values for Promotion placeholder fields. -message PromotionPlaceholderFieldEnum { - // Possible values for Promotion placeholder fields. - enum PromotionPlaceholderField { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Data Type: STRING. The text that appears on the ad when the extension is - // shown. - PROMOTION_TARGET = 2; - - // Data Type: STRING. Allows you to add "up to" phrase to the promotion, - // in case you have variable promotion rates. - DISCOUNT_MODIFIER = 3; - - // Data Type: INT64. Takes a value in micros, where 1 million micros - // represents 1%, and is shown as a percentage when rendered. - PERCENT_OFF = 4; - - // Data Type: MONEY. Requires a currency and an amount of money. - MONEY_AMOUNT_OFF = 5; - - // Data Type: STRING. A string that the user enters to get the discount. - PROMOTION_CODE = 6; - - // Data Type: MONEY. A minimum spend before the user qualifies for the - // promotion. - ORDERS_OVER_AMOUNT = 7; - - // Data Type: DATE. The start date of the promotion. - PROMOTION_START = 8; - - // Data Type: DATE. The end date of the promotion. - PROMOTION_END = 9; - - // Data Type: STRING. Describes the associated event for the promotion using - // one of the PromotionExtensionOccasion enum values, for example NEW_YEARS. - OCCASION = 10; - - // Data Type: URL_LIST. Final URLs to be used in the ad when using Upgraded - // URLs. - FINAL_URLS = 11; - - // Data Type: URL_LIST. Final mobile URLs for the ad when using Upgraded - // URLs. - FINAL_MOBILE_URLS = 12; - - // Data Type: URL. Tracking template for the ad when using Upgraded URLs. - TRACKING_URL = 13; - - // Data Type: STRING. A string represented by a language code for the - // promotion. - LANGUAGE = 14; - - // Data Type: STRING. Final URL suffix for the ad when using parallel - // tracking. - FINAL_URL_SUFFIX = 15; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/proximity_radius_units.proto b/third_party/googleapis/google/ads/googleads/v2/enums/proximity_radius_units.proto deleted file mode 100644 index 0c163124b..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/proximity_radius_units.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ProximityRadiusUnitsProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing proximity radius units. - -// Container for enum describing unit of radius in proximity. -message ProximityRadiusUnitsEnum { - // The unit of radius distance in proximity (e.g. MILES) - enum ProximityRadiusUnits { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Miles - MILES = 2; - - // Kilometers - KILOMETERS = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/quality_score_bucket.proto b/third_party/googleapis/google/ads/googleads/v2/enums/quality_score_bucket.proto deleted file mode 100644 index 58e14c5ff..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/quality_score_bucket.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "QualityScoreBucketProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing quality score buckets. - -// The relative performance compared to other advertisers. -message QualityScoreBucketEnum { - // Enum listing the possible quality score buckets. - enum QualityScoreBucket { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Quality of the creative is below average. - BELOW_AVERAGE = 2; - - // Quality of the creative is average. - AVERAGE = 3; - - // Quality of the creative is above average. - ABOVE_AVERAGE = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/reach_plan_ad_length.proto b/third_party/googleapis/google/ads/googleads/v2/enums/reach_plan_ad_length.proto deleted file mode 100644 index 594ee1687..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/reach_plan_ad_length.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ReachPlanAdLengthProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing ad lengths of a plannable video ad. - -// Message describing length of a plannable video ad. -message ReachPlanAdLengthEnum { - // Possible ad length values. - enum ReachPlanAdLength { - // Not specified. - UNSPECIFIED = 0; - - // The value is unknown in this version. - UNKNOWN = 1; - - // 6 seconds long ad. - SIX_SECONDS = 2; - - // 15 or 20 seconds long ad. - FIFTEEN_OR_TWENTY_SECONDS = 3; - - // More than 20 seconds long ad. - TWENTY_SECONDS_OR_MORE = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/reach_plan_age_range.proto b/third_party/googleapis/google/ads/googleads/v2/enums/reach_plan_age_range.proto deleted file mode 100644 index e06ac0f51..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/reach_plan_age_range.proto +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ReachPlanAgeRangeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing a plannable age range. - -// Message describing plannable age ranges. -message ReachPlanAgeRangeEnum { - // Possible plannable age range values. - enum ReachPlanAgeRange { - // Not specified. - UNSPECIFIED = 0; - - // The value is unknown in this version. - UNKNOWN = 1; - - // Between 18 and 24 years old. - AGE_RANGE_18_24 = 503001; - - // Between 18 and 34 years old. - AGE_RANGE_18_34 = 2; - - // Between 18 and 44 years old. - AGE_RANGE_18_44 = 3; - - // Between 18 and 49 years old. - AGE_RANGE_18_49 = 4; - - // Between 18 and 54 years old. - AGE_RANGE_18_54 = 5; - - // Between 18 and 64 years old. - AGE_RANGE_18_64 = 6; - - // Between 18 and 65+ years old. - AGE_RANGE_18_65_UP = 7; - - // Between 21 and 34 years old. - AGE_RANGE_21_34 = 8; - - // Between 25 and 34 years old. - AGE_RANGE_25_34 = 503002; - - // Between 25 and 44 years old. - AGE_RANGE_25_44 = 9; - - // Between 25 and 49 years old. - AGE_RANGE_25_49 = 10; - - // Between 25 and 54 years old. - AGE_RANGE_25_54 = 11; - - // Between 25 and 64 years old. - AGE_RANGE_25_64 = 12; - - // Between 25 and 65+ years old. - AGE_RANGE_25_65_UP = 13; - - // Between 35 and 44 years old. - AGE_RANGE_35_44 = 503003; - - // Between 35 and 49 years old. - AGE_RANGE_35_49 = 14; - - // Between 35 and 54 years old. - AGE_RANGE_35_54 = 15; - - // Between 35 and 64 years old. - AGE_RANGE_35_64 = 16; - - // Between 35 and 65+ years old. - AGE_RANGE_35_65_UP = 17; - - // Between 45 and 54 years old. - AGE_RANGE_45_54 = 503004; - - // Between 45 and 64 years old. - AGE_RANGE_45_64 = 18; - - // Between 45 and 65+ years old. - AGE_RANGE_45_65_UP = 19; - - // Between 50 and 65+ years old. - AGE_RANGE_50_65_UP = 20; - - // Between 55 and 64 years old. - AGE_RANGE_55_64 = 503005; - - // Between 55 and 65+ years old. - AGE_RANGE_55_65_UP = 21; - - // 65 years old and beyond. - AGE_RANGE_65_UP = 503006; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/real_estate_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v2/enums/real_estate_placeholder_field.proto deleted file mode 100644 index a72209799..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/real_estate_placeholder_field.proto +++ /dev/null @@ -1,115 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "RealEstatePlaceholderFieldProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing Real Estate placeholder fields. - -// Values for Real Estate placeholder fields. -// For more information about dynamic remarketing feeds, see -// https://support.google.com/google-ads/answer/6053288. -message RealEstatePlaceholderFieldEnum { - // Possible values for Real Estate placeholder fields. - enum RealEstatePlaceholderField { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Data Type: STRING. Unique ID. - LISTING_ID = 2; - - // Data Type: STRING. Main headline with listing name to be shown in dynamic - // ad. - LISTING_NAME = 3; - - // Data Type: STRING. City name to be shown in dynamic ad. - CITY_NAME = 4; - - // Data Type: STRING. Description of listing to be shown in dynamic ad. - DESCRIPTION = 5; - - // Data Type: STRING. Complete listing address, including postal code. - ADDRESS = 6; - - // Data Type: STRING. Price to be shown in the ad. - // Example: "100.00 USD" - PRICE = 7; - - // Data Type: STRING. Formatted price to be shown in the ad. - // Example: "Starting at $100.00 USD", "$80 - $100" - FORMATTED_PRICE = 8; - - // Data Type: URL. Image to be displayed in the ad. - IMAGE_URL = 9; - - // Data Type: STRING. Type of property (house, condo, apartment, etc.) used - // to group like items together for recommendation engine. - PROPERTY_TYPE = 10; - - // Data Type: STRING. Type of listing (resale, rental, foreclosure, etc.) - // used to group like items together for recommendation engine. - LISTING_TYPE = 11; - - // Data Type: STRING_LIST. Keywords used for product retrieval. - CONTEXTUAL_KEYWORDS = 12; - - // Data Type: URL_LIST. Final URLs to be used in ad when using Upgraded - // URLs; the more specific the better (e.g. the individual URL of a specific - // listing and its location). - FINAL_URLS = 13; - - // Data Type: URL_LIST. Final mobile URLs for the ad when using Upgraded - // URLs. - FINAL_MOBILE_URLS = 14; - - // Data Type: URL. Tracking template for the ad when using Upgraded URLs. - TRACKING_URL = 15; - - // Data Type: STRING. Android app link. Must be formatted as: - // android-app://{package_id}/{scheme}/{host_path}. - // The components are defined as follows: - // package_id: app ID as specified in Google Play. - // scheme: the scheme to pass to the application. Can be HTTP, or a custom - // scheme. - // host_path: identifies the specific content within your application. - ANDROID_APP_LINK = 16; - - // Data Type: STRING_LIST. List of recommended listing IDs to show together - // with this item. - SIMILAR_LISTING_IDS = 17; - - // Data Type: STRING. iOS app link. - IOS_APP_LINK = 18; - - // Data Type: INT64. iOS app store ID. - IOS_APP_STORE_ID = 19; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/recommendation_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/recommendation_type.proto deleted file mode 100644 index bed2a13b8..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/recommendation_type.proto +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "RecommendationTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing Recommendation types. - -// Container for enum describing types of recommendations. -message RecommendationTypeEnum { - // Types of recommendations. - enum RecommendationType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Budget recommendation for campaigns that are currently budget-constrained - // (as opposed to the FORECASTING_CAMPAIGN_BUDGET recommendation, which - // applies to campaigns that are expected to become budget-constrained in - // the future). - CAMPAIGN_BUDGET = 2; - - // Keyword recommendation. - KEYWORD = 3; - - // Recommendation to add a new text ad. - TEXT_AD = 4; - - // Recommendation to update a campaign to use a Target CPA bidding strategy. - TARGET_CPA_OPT_IN = 5; - - // Recommendation to update a campaign to use the Maximize Conversions - // bidding strategy. - MAXIMIZE_CONVERSIONS_OPT_IN = 6; - - // Recommendation to enable Enhanced Cost Per Click for a campaign. - ENHANCED_CPC_OPT_IN = 7; - - // Recommendation to start showing your campaign's ads on Google Search - // Partners Websites. - SEARCH_PARTNERS_OPT_IN = 8; - - // Recommendation to update a campaign to use a Maximize Clicks bidding - // strategy. - MAXIMIZE_CLICKS_OPT_IN = 9; - - // Recommendation to start using the "Optimize" ad rotation setting for the - // given ad group. - OPTIMIZE_AD_ROTATION = 10; - - // Recommendation to add callout extensions to a campaign. - CALLOUT_EXTENSION = 11; - - // Recommendation to add sitelink extensions to a campaign. - SITELINK_EXTENSION = 12; - - // Recommendation to add call extensions to a campaign. - CALL_EXTENSION = 13; - - // Recommendation to change an existing keyword from one match type to a - // broader match type. - KEYWORD_MATCH_TYPE = 14; - - // Recommendation to move unused budget from one budget to a constrained - // budget. - MOVE_UNUSED_BUDGET = 15; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/search_engine_results_page_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/search_engine_results_page_type.proto deleted file mode 100644 index 60d713e49..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/search_engine_results_page_type.proto +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "SearchEngineResultsPageTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing search engine results page types. - -// The type of the search engine results page. -message SearchEngineResultsPageTypeEnum { - // The type of the search engine results page. - enum SearchEngineResultsPageType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Only ads were contained in the search engine results page. - ADS_ONLY = 2; - - // Only organic results were contained in the search engine results page. - ORGANIC_ONLY = 3; - - // Both ads and organic results were contained in the search engine results - // page. - ADS_AND_ORGANIC = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/search_term_match_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/search_term_match_type.proto deleted file mode 100644 index 4c4e9f0f5..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/search_term_match_type.proto +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "SearchTermMatchTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing search term match types. - -// Container for enum describing match types for a keyword triggering an ad. -message SearchTermMatchTypeEnum { - // Possible match types for a keyword triggering an ad, including variants. - enum SearchTermMatchType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Broad match. - BROAD = 2; - - // Exact match. - EXACT = 3; - - // Phrase match. - PHRASE = 4; - - // Exact match (close variant). - NEAR_EXACT = 5; - - // Phrase match (close variant). - NEAR_PHRASE = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/search_term_targeting_status.proto b/third_party/googleapis/google/ads/googleads/v2/enums/search_term_targeting_status.proto deleted file mode 100644 index 522005deb..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/search_term_targeting_status.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "SearchTermTargetingStatusProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing search term targeting statuses. - -// Container for enum indicating whether a search term is one of your targeted -// or excluded keywords. -message SearchTermTargetingStatusEnum { - // Indicates whether the search term is one of your targeted or excluded - // keywords. - enum SearchTermTargetingStatus { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Search term is added to targeted keywords. - ADDED = 2; - - // Search term matches a negative keyword. - EXCLUDED = 3; - - // Search term has been both added and excluded. - ADDED_EXCLUDED = 4; - - // Search term is neither targeted nor excluded. - NONE = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/served_asset_field_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/served_asset_field_type.proto deleted file mode 100644 index 8b32f6005..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/served_asset_field_type.proto +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ServedAssetFieldTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing policy review statuses. - -// Container for enum describing possible asset field types. -message ServedAssetFieldTypeEnum { - // The possible asset field types. - enum ServedAssetFieldType { - // No value has been specified. - UNSPECIFIED = 0; - - // The received value is not known in this version. - // - // This is a response-only value. - UNKNOWN = 1; - - // The asset is used in headline 1. - HEADLINE_1 = 2; - - // The asset is used in headline 2. - HEADLINE_2 = 3; - - // The asset is used in headline 3. - HEADLINE_3 = 4; - - // The asset is used in description 1. - DESCRIPTION_1 = 5; - - // The asset is used in description 2. - DESCRIPTION_2 = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/shared_set_status.proto b/third_party/googleapis/google/ads/googleads/v2/enums/shared_set_status.proto deleted file mode 100644 index d6d0f0219..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/shared_set_status.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "SharedSetStatusProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing shared set statuses. - -// Container for enum describing types of shared set statuses. -message SharedSetStatusEnum { - // Enum listing the possible shared set statuses. - enum SharedSetStatus { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The shared set is enabled. - ENABLED = 2; - - // The shared set is removed and can no longer be used. - REMOVED = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/shared_set_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/shared_set_type.proto deleted file mode 100644 index 588d4291b..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/shared_set_type.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "SharedSetTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing shared set types. - -// Container for enum describing types of shared sets. -message SharedSetTypeEnum { - // Enum listing the possible shared set types. - enum SharedSetType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // A set of keywords that can be excluded from targeting. - NEGATIVE_KEYWORDS = 2; - - // A set of placements that can be excluded from targeting. - NEGATIVE_PLACEMENTS = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/simulation_modification_method.proto b/third_party/googleapis/google/ads/googleads/v2/enums/simulation_modification_method.proto deleted file mode 100644 index f1eecdc73..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/simulation_modification_method.proto +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "SimulationModificationMethodProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing simulation modification methods. - -// Container for enum describing the method by which a simulation modifies -// a field. -message SimulationModificationMethodEnum { - // Enum describing the method by which a simulation modifies a field. - enum SimulationModificationMethod { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The values in a simulation were applied to all children of a given - // resource uniformly. Overrides on child resources were not respected. - UNIFORM = 2; - - // The values in a simulation were applied to the given resource. - // Overrides on child resources were respected, and traffic estimates - // do not include these resources. - DEFAULT = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/simulation_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/simulation_type.proto deleted file mode 100644 index 6aa4fbd0f..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/simulation_type.proto +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "SimulationTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing simulation types. - -// Container for enum describing the field a simulation modifies. -message SimulationTypeEnum { - // Enum describing the field a simulation modifies. - enum SimulationType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The simulation is for a CPC bid. - CPC_BID = 2; - - // The simulation is for a CPV bid. - CPV_BID = 3; - - // The simulation is for a CPA target. - TARGET_CPA = 4; - - // The simulation is for a bid modifier. - BID_MODIFIER = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/sitelink_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v2/enums/sitelink_placeholder_field.proto deleted file mode 100644 index 11648fc01..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/sitelink_placeholder_field.proto +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "SitelinkPlaceholderFieldProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing Sitelink placeholder fields. - -// Values for Sitelink placeholder fields. -message SitelinkPlaceholderFieldEnum { - // Possible values for Sitelink placeholder fields. - enum SitelinkPlaceholderField { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Data Type: STRING. The link text for your sitelink. - TEXT = 2; - - // Data Type: STRING. First line of the sitelink description. - LINE_1 = 3; - - // Data Type: STRING. Second line of the sitelink description. - LINE_2 = 4; - - // Data Type: URL_LIST. Final URLs for the sitelink when using Upgraded - // URLs. - FINAL_URLS = 5; - - // Data Type: URL_LIST. Final Mobile URLs for the sitelink when using - // Upgraded URLs. - FINAL_MOBILE_URLS = 6; - - // Data Type: URL. Tracking template for the sitelink when using Upgraded - // URLs. - TRACKING_URL = 7; - - // Data Type: STRING. Final URL suffix for sitelink when using parallel - // tracking. - FINAL_URL_SUFFIX = 8; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/slot.proto b/third_party/googleapis/google/ads/googleads/v2/enums/slot.proto deleted file mode 100644 index c56035061..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/slot.proto +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "SlotProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing slots. - -// Container for enumeration of possible positions of the Ad. -message SlotEnum { - // Enumerates possible positions of the Ad. - enum Slot { - // Not specified. - UNSPECIFIED = 0; - - // The value is unknown in this version. - UNKNOWN = 1; - - // Google search: Side. - SEARCH_SIDE = 2; - - // Google search: Top. - SEARCH_TOP = 3; - - // Google search: Other. - SEARCH_OTHER = 4; - - // Google Display Network. - CONTENT = 5; - - // Search partners: Top. - SEARCH_PARTNER_TOP = 6; - - // Search partners: Other. - SEARCH_PARTNER_OTHER = 7; - - // Cross-network. - MIXED = 8; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/spending_limit_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/spending_limit_type.proto deleted file mode 100644 index b24fa7709..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/spending_limit_type.proto +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "SpendingLimitTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing SpendingLimit types. - -// Message describing spending limit types. -message SpendingLimitTypeEnum { - // The possible spending limit types used by certain resources as an - // alternative to absolute money values in micros. - enum SpendingLimitType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Infinite, indicates unlimited spending power. - INFINITE = 2; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/structured_snippet_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v2/enums/structured_snippet_placeholder_field.proto deleted file mode 100644 index b5f08bc1f..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/structured_snippet_placeholder_field.proto +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "StructuredSnippetPlaceholderFieldProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing Structured Snippet placeholder fields. - -// Values for Structured Snippet placeholder fields. -message StructuredSnippetPlaceholderFieldEnum { - // Possible values for Structured Snippet placeholder fields. - enum StructuredSnippetPlaceholderField { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Data Type: STRING. The category of snippet of your products/services. - // Must match exactly one of the predefined structured snippets headers. - // For a list, visit - // https://developers.google.com/adwords/api/docs/appendix/structured-snippet-headers - HEADER = 2; - - // Data Type: STRING_LIST. Text values that describe your products/services. - // All text must be family safe. Special or non-ASCII characters are not - // permitted. A snippet can be at most 25 characters. - SNIPPETS = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/system_managed_entity_source.proto b/third_party/googleapis/google/ads/googleads/v2/enums/system_managed_entity_source.proto deleted file mode 100644 index 0eb9f54b1..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/system_managed_entity_source.proto +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "SystemManagedEntitySourceProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing system managed entity sources. - -// Container for enum describing possible system managed entity sources. -message SystemManagedResourceSourceEnum { - // Enum listing the possible system managed entity sources. - enum SystemManagedResourceSource { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Generated ad variations experiment ad. - AD_VARIATIONS = 2; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/target_cpa_opt_in_recommendation_goal.proto b/third_party/googleapis/google/ads/googleads/v2/enums/target_cpa_opt_in_recommendation_goal.proto deleted file mode 100644 index 52fb4ad57..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/target_cpa_opt_in_recommendation_goal.proto +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "TargetCpaOptInRecommendationGoalProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing TargetCpaOptIn recommendation goals. - -// Container for enum describing goals for TargetCpaOptIn recommendation. -message TargetCpaOptInRecommendationGoalEnum { - // Goal of TargetCpaOptIn recommendation. - enum TargetCpaOptInRecommendationGoal { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Recommendation to set Target CPA to maintain the same cost. - SAME_COST = 2; - - // Recommendation to set Target CPA to maintain the same conversions. - SAME_CONVERSIONS = 3; - - // Recommendation to set Target CPA to maintain the same CPA. - SAME_CPA = 4; - - // Recommendation to set Target CPA to a value that is as close as possible - // to, yet lower than, the actual CPA (computed for past 28 days). - CLOSEST_CPA = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/target_impression_share_location.proto b/third_party/googleapis/google/ads/googleads/v2/enums/target_impression_share_location.proto deleted file mode 100644 index af59ba35e..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/target_impression_share_location.proto +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "TargetImpressionShareLocationProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing target impression share goal. - -// Container for enum describing where on the first search results page the -// automated bidding system should target impressions for the -// TargetImpressionShare bidding strategy. -message TargetImpressionShareLocationEnum { - // Enum describing possible goals. - enum TargetImpressionShareLocation { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Any location on the web page. - ANYWHERE_ON_PAGE = 2; - - // Top box of ads. - TOP_OF_PAGE = 3; - - // Top slot in the top box of ads. - ABSOLUTE_TOP_OF_PAGE = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/targeting_dimension.proto b/third_party/googleapis/google/ads/googleads/v2/enums/targeting_dimension.proto deleted file mode 100644 index a23ae7818..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/targeting_dimension.proto +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "TargetingDimensionProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing criteria types. - -// The dimensions that can be targeted. -message TargetingDimensionEnum { - // Enum describing possible targeting dimensions. - enum TargetingDimension { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Keyword criteria, e.g. 'mars cruise'. KEYWORD may be used as a custom bid - // dimension. Keywords are always a targeting dimension, so may not be set - // as a target "ALL" dimension with TargetRestriction. - KEYWORD = 2; - - // Audience criteria, which include user list, user interest, custom - // affinity, and custom in market. - AUDIENCE = 3; - - // Topic criteria for targeting categories of content, e.g. - // 'category::Animals>Pets' Used for Display and Video targeting. - TOPIC = 4; - - // Criteria for targeting gender. - GENDER = 5; - - // Criteria for targeting age ranges. - AGE_RANGE = 6; - - // Placement criteria, which include websites like 'www.flowers4sale.com', - // as well as mobile applications, mobile app categories, YouTube videos, - // and YouTube channels. - PLACEMENT = 7; - - // Criteria for parental status targeting. - PARENTAL_STATUS = 8; - - // Criteria for income range targeting. - INCOME_RANGE = 9; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/time_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/time_type.proto deleted file mode 100644 index dbea32554..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/time_type.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "TimeTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing TimeType types. - -// Message describing time types. -message TimeTypeEnum { - // The possible time types used by certain resources as an alternative to - // absolute timestamps. - enum TimeType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // As soon as possible. - NOW = 2; - - // An infinite point in the future. - FOREVER = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/tracking_code_page_format.proto b/third_party/googleapis/google/ads/googleads/v2/enums/tracking_code_page_format.proto deleted file mode 100644 index 0ca161692..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/tracking_code_page_format.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "TrackingCodePageFormatProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Container for enum describing the format of the web page where the tracking -// tag and snippet will be installed. -message TrackingCodePageFormatEnum { - // The format of the web page where the tracking tag and snippet will be - // installed. - enum TrackingCodePageFormat { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Standard HTML page format. - HTML = 2; - - // Google AMP page format. - AMP = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/tracking_code_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/tracking_code_type.proto deleted file mode 100644 index f7f13f515..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/tracking_code_type.proto +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "TrackingCodeTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Container for enum describing the type of the generated tag snippets for -// tracking conversions. -message TrackingCodeTypeEnum { - // The type of the generated tag snippets for tracking conversions. - enum TrackingCodeType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The snippet that is fired as a result of a website page loading. - WEBPAGE = 2; - - // The snippet contains a JavaScript function which fires the tag. This - // function is typically called from an onClick handler added to a link or - // button element on the page. - WEBPAGE_ONCLICK = 3; - - // For embedding on a mobile webpage. The snippet contains a JavaScript - // function which fires the tag. - CLICK_TO_CALL = 4; - - // The snippet that is used to replace the phone number on your website with - // a Google forwarding number for call tracking purposes. - WEBSITE_CALL = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/travel_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v2/enums/travel_placeholder_field.proto deleted file mode 100644 index a2a83f970..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/travel_placeholder_field.proto +++ /dev/null @@ -1,128 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "TravelPlaceholderFieldProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing Travel placeholder fields. - -// Values for Travel placeholder fields. -// For more information about dynamic remarketing feeds, see -// https://support.google.com/google-ads/answer/6053288. -message TravelPlaceholderFieldEnum { - // Possible values for Travel placeholder fields. - enum TravelPlaceholderField { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Data Type: STRING. Required. Destination id. Example: PAR, LON. - // For feed items that only have destination id, destination id must be a - // unique key. For feed items that have both destination id and origin id, - // then the combination must be a unique key. - DESTINATION_ID = 2; - - // Data Type: STRING. Origin id. Example: PAR, LON. - // Combination of DESTINATION_ID and ORIGIN_ID must be - // unique per offer. - ORIGIN_ID = 3; - - // Data Type: STRING. Required. Main headline with name to be shown in - // dynamic ad. - TITLE = 4; - - // Data Type: STRING. The destination name. Shorter names are recommended. - DESTINATION_NAME = 5; - - // Data Type: STRING. Origin name. Shorter names are recommended. - ORIGIN_NAME = 6; - - // Data Type: STRING. Price to be shown in the ad. Highly recommended for - // dynamic ads. - // Example: "100.00 USD" - PRICE = 7; - - // Data Type: STRING. Formatted price to be shown in the ad. - // Example: "Starting at $100.00 USD", "$80 - $100" - FORMATTED_PRICE = 8; - - // Data Type: STRING. Sale price to be shown in the ad. - // Example: "80.00 USD" - SALE_PRICE = 9; - - // Data Type: STRING. Formatted sale price to be shown in the ad. - // Example: "On sale for $80.00", "$60 - $80" - FORMATTED_SALE_PRICE = 10; - - // Data Type: URL. Image to be displayed in the ad. - IMAGE_URL = 11; - - // Data Type: STRING. Category of travel offer used to group like items - // together for recommendation engine. - CATEGORY = 12; - - // Data Type: STRING_LIST. Keywords used for product retrieval. - CONTEXTUAL_KEYWORDS = 13; - - // Data Type: STRING. Address of travel offer, including postal code. - DESTINATION_ADDRESS = 14; - - // Data Type: URL_LIST. Required. Final URLs to be used in ad, when using - // Upgraded URLs; the more specific the better (e.g. the individual URL of a - // specific travel offer and its location). - FINAL_URL = 15; - - // Data Type: URL_LIST. Final mobile URLs for the ad when using Upgraded - // URLs. - FINAL_MOBILE_URLS = 16; - - // Data Type: URL. Tracking template for the ad when using Upgraded URLs. - TRACKING_URL = 17; - - // Data Type: STRING. Android app link. Must be formatted as: - // android-app://{package_id}/{scheme}/{host_path}. - // The components are defined as follows: - // package_id: app ID as specified in Google Play. - // scheme: the scheme to pass to the application. Can be HTTP, or a custom - // scheme. - // host_path: identifies the specific content within your application. - ANDROID_APP_LINK = 18; - - // Data Type: STRING_LIST. List of recommended destination IDs to show - // together with this item. - SIMILAR_DESTINATION_IDS = 19; - - // Data Type: STRING. iOS app link. - IOS_APP_LINK = 20; - - // Data Type: INT64. iOS app store ID. - IOS_APP_STORE_ID = 21; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/user_interest_taxonomy_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/user_interest_taxonomy_type.proto deleted file mode 100644 index 8213b0034..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/user_interest_taxonomy_type.proto +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "UserInterestTaxonomyTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing the UserInterest taxonomy type - -// Message describing a UserInterestTaxonomyType. -message UserInterestTaxonomyTypeEnum { - // Enum containing the possible UserInterestTaxonomyTypes. - enum UserInterestTaxonomyType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The affinity for this user interest. - AFFINITY = 2; - - // The market for this user interest. - IN_MARKET = 3; - - // Users known to have installed applications in the specified categories. - MOBILE_APP_INSTALL_USER = 4; - - // The geographical location of the interest-based vertical. - VERTICAL_GEO = 5; - - // User interest criteria for new smart phone users. - NEW_SMART_PHONE_USER = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/user_list_access_status.proto b/third_party/googleapis/google/ads/googleads/v2/enums/user_list_access_status.proto deleted file mode 100644 index 6a8741bcb..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/user_list_access_status.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "UserListAccessStatusProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing user list access status. - -// Indicates if this client still has access to the list. -message UserListAccessStatusEnum { - // Enum containing possible user list access statuses. - enum UserListAccessStatus { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The access is enabled. - ENABLED = 2; - - // The access is disabled. - DISABLED = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/user_list_closing_reason.proto b/third_party/googleapis/google/ads/googleads/v2/enums/user_list_closing_reason.proto deleted file mode 100644 index 4623fb5ea..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/user_list_closing_reason.proto +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "UserListClosingReasonProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing user list closing reason. - -// Indicates the reason why the userlist was closed. -// This enum is only used when a list is auto-closed by the system. -message UserListClosingReasonEnum { - // Enum describing possible user list closing reasons. - enum UserListClosingReason { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The userlist was closed because of not being used for over one year. - UNUSED = 2; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/user_list_combined_rule_operator.proto b/third_party/googleapis/google/ads/googleads/v2/enums/user_list_combined_rule_operator.proto deleted file mode 100644 index d1e09f62b..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/user_list_combined_rule_operator.proto +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "UserListCombinedRuleOperatorProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Logical operator connecting two rules. -message UserListCombinedRuleOperatorEnum { - // Enum describing possible user list combined rule operators. - enum UserListCombinedRuleOperator { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // A AND B. - AND = 2; - - // A AND NOT B. - AND_NOT = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/user_list_crm_data_source_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/user_list_crm_data_source_type.proto deleted file mode 100644 index 2f9230755..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/user_list_crm_data_source_type.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "UserListCrmDataSourceTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Indicates source of Crm upload data. -message UserListCrmDataSourceTypeEnum { - // Enum describing possible user list crm data source type. - enum UserListCrmDataSourceType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The uploaded data is first-party data. - FIRST_PARTY = 2; - - // The uploaded data is from a third-party credit bureau. - THIRD_PARTY_CREDIT_BUREAU = 3; - - // The uploaded data is from a third-party voter file. - THIRD_PARTY_VOTER_FILE = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/user_list_date_rule_item_operator.proto b/third_party/googleapis/google/ads/googleads/v2/enums/user_list_date_rule_item_operator.proto deleted file mode 100644 index 0a14a98d4..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/user_list_date_rule_item_operator.proto +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "UserListDateRuleItemOperatorProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Supported rule operator for date type. -message UserListDateRuleItemOperatorEnum { - // Enum describing possible user list date rule item operators. - enum UserListDateRuleItemOperator { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Equals. - EQUALS = 2; - - // Not Equals. - NOT_EQUALS = 3; - - // Before. - BEFORE = 4; - - // After. - AFTER = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/user_list_logical_rule_operator.proto b/third_party/googleapis/google/ads/googleads/v2/enums/user_list_logical_rule_operator.proto deleted file mode 100644 index f97b429e9..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/user_list_logical_rule_operator.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "UserListLogicalRuleOperatorProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// The logical operator of the rule. -message UserListLogicalRuleOperatorEnum { - // Enum describing possible user list logical rule operators. - enum UserListLogicalRuleOperator { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // And - all of the operands. - ALL = 2; - - // Or - at least one of the operands. - ANY = 3; - - // Not - none of the operands. - NONE = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/user_list_membership_status.proto b/third_party/googleapis/google/ads/googleads/v2/enums/user_list_membership_status.proto deleted file mode 100644 index 74feef61a..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/user_list_membership_status.proto +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "UserListMembershipStatusProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing user list membership status. - -// 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 used for -// targeting. -message UserListMembershipStatusEnum { - // Enum containing possible user list membership statuses. - enum UserListMembershipStatus { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Open status - List is accruing members and can be targeted to. - OPEN = 2; - - // Closed status - No new members being added. Cannot be used for targeting. - CLOSED = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/user_list_number_rule_item_operator.proto b/third_party/googleapis/google/ads/googleads/v2/enums/user_list_number_rule_item_operator.proto deleted file mode 100644 index b066bc380..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/user_list_number_rule_item_operator.proto +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "UserListNumberRuleItemOperatorProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Supported rule operator for number type. -message UserListNumberRuleItemOperatorEnum { - // Enum describing possible user list number rule item operators. - enum UserListNumberRuleItemOperator { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Greater than. - GREATER_THAN = 2; - - // Greater than or equal. - GREATER_THAN_OR_EQUAL = 3; - - // Equals. - EQUALS = 4; - - // Not equals. - NOT_EQUALS = 5; - - // Less than. - LESS_THAN = 6; - - // Less than or equal. - LESS_THAN_OR_EQUAL = 7; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/user_list_prepopulation_status.proto b/third_party/googleapis/google/ads/googleads/v2/enums/user_list_prepopulation_status.proto deleted file mode 100644 index be562939c..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/user_list_prepopulation_status.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "UserListPrepopulationStatusProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Indicates status of prepopulation based on the rule. -message UserListPrepopulationStatusEnum { - // Enum describing possible user list prepopulation status. - enum UserListPrepopulationStatus { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Prepopoulation is being requested. - REQUESTED = 2; - - // Prepopulation is finished. - FINISHED = 3; - - // Prepopulation failed. - FAILED = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/user_list_rule_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/user_list_rule_type.proto deleted file mode 100644 index 01e02dc96..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/user_list_rule_type.proto +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "UserListRuleTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Rule based user list rule type. -message UserListRuleTypeEnum { - // Enum describing possible user list rule types. - enum UserListRuleType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Conjunctive normal form. - AND_OF_ORS = 2; - - // Disjunctive normal form. - OR_OF_ANDS = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/user_list_size_range.proto b/third_party/googleapis/google/ads/googleads/v2/enums/user_list_size_range.proto deleted file mode 100644 index 2f8cdb163..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/user_list_size_range.proto +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "UserListSizeRangeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing user list size range. - -// Size range in terms of number of users of a UserList. -message UserListSizeRangeEnum { - // Enum containing possible user list size ranges. - enum UserListSizeRange { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // User list has less than 500 users. - LESS_THAN_FIVE_HUNDRED = 2; - - // User list has number of users in range of 500 to 1000. - LESS_THAN_ONE_THOUSAND = 3; - - // User list has number of users in range of 1000 to 10000. - ONE_THOUSAND_TO_TEN_THOUSAND = 4; - - // User list has number of users in range of 10000 to 50000. - TEN_THOUSAND_TO_FIFTY_THOUSAND = 5; - - // User list has number of users in range of 50000 to 100000. - FIFTY_THOUSAND_TO_ONE_HUNDRED_THOUSAND = 6; - - // User list has number of users in range of 100000 to 300000. - ONE_HUNDRED_THOUSAND_TO_THREE_HUNDRED_THOUSAND = 7; - - // User list has number of users in range of 300000 to 500000. - THREE_HUNDRED_THOUSAND_TO_FIVE_HUNDRED_THOUSAND = 8; - - // User list has number of users in range of 500000 to 1 million. - FIVE_HUNDRED_THOUSAND_TO_ONE_MILLION = 9; - - // User list has number of users in range of 1 to 2 millions. - ONE_MILLION_TO_TWO_MILLION = 10; - - // User list has number of users in range of 2 to 3 millions. - TWO_MILLION_TO_THREE_MILLION = 11; - - // User list has number of users in range of 3 to 5 millions. - THREE_MILLION_TO_FIVE_MILLION = 12; - - // User list has number of users in range of 5 to 10 millions. - FIVE_MILLION_TO_TEN_MILLION = 13; - - // User list has number of users in range of 10 to 20 millions. - TEN_MILLION_TO_TWENTY_MILLION = 14; - - // User list has number of users in range of 20 to 30 millions. - TWENTY_MILLION_TO_THIRTY_MILLION = 15; - - // User list has number of users in range of 30 to 50 millions. - THIRTY_MILLION_TO_FIFTY_MILLION = 16; - - // User list has over 50 million users. - OVER_FIFTY_MILLION = 17; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/user_list_string_rule_item_operator.proto b/third_party/googleapis/google/ads/googleads/v2/enums/user_list_string_rule_item_operator.proto deleted file mode 100644 index 697b9093d..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/user_list_string_rule_item_operator.proto +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "UserListStringRuleItemOperatorProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Supported rule operator for string type. -message UserListStringRuleItemOperatorEnum { - // Enum describing possible user list string rule item operators. - enum UserListStringRuleItemOperator { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Contains. - CONTAINS = 2; - - // Equals. - EQUALS = 3; - - // Starts with. - STARTS_WITH = 4; - - // Ends with. - ENDS_WITH = 5; - - // Not equals. - NOT_EQUALS = 6; - - // Not contains. - NOT_CONTAINS = 7; - - // Not starts with. - NOT_STARTS_WITH = 8; - - // Not ends with. - NOT_ENDS_WITH = 9; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/user_list_type.proto b/third_party/googleapis/google/ads/googleads/v2/enums/user_list_type.proto deleted file mode 100644 index 1fb82b3be..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/user_list_type.proto +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "UserListTypeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing user list type. - -// The user list types. -message UserListTypeEnum { - // Enum containing possible user list types. - enum UserListType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // UserList represented as a collection of conversion types. - REMARKETING = 2; - - // UserList represented as a combination of other user lists/interests. - LOGICAL = 3; - - // UserList created in the Google Ad Manager platform. - EXTERNAL_REMARKETING = 4; - - // UserList associated with a rule. - RULE_BASED = 5; - - // UserList with users similar to users of another UserList. - SIMILAR = 6; - - // UserList of first-party CRM data provided by advertiser in the form of - // emails or other formats. - CRM_BASED = 7; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/vanity_pharma_display_url_mode.proto b/third_party/googleapis/google/ads/googleads/v2/enums/vanity_pharma_display_url_mode.proto deleted file mode 100644 index 07de2ed9e..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/vanity_pharma_display_url_mode.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "VanityPharmaDisplayUrlModeProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing vanity pharma display url modes. - -// The display mode for vanity pharma URLs. -message VanityPharmaDisplayUrlModeEnum { - // Enum describing possible display modes for vanity pharma URLs. - enum VanityPharmaDisplayUrlMode { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Replace vanity pharma URL with manufacturer website url. - MANUFACTURER_WEBSITE_URL = 2; - - // Replace vanity pharma URL with description of the website. - WEBSITE_DESCRIPTION = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/vanity_pharma_text.proto b/third_party/googleapis/google/ads/googleads/v2/enums/vanity_pharma_text.proto deleted file mode 100644 index 6d0180cc6..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/vanity_pharma_text.proto +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "VanityPharmaTextProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing vanity pharma texts. - -// The text that will be displayed in display URL of the text ad when website -// description is the selected display mode for vanity pharma URLs. -message VanityPharmaTextEnum { - // Enum describing possible text. - enum VanityPharmaText { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Prescription treatment website with website content in English. - PRESCRIPTION_TREATMENT_WEBSITE_EN = 2; - - // Prescription treatment website with website content in Spanish - // (Sitio de tratamientos con receta). - PRESCRIPTION_TREATMENT_WEBSITE_ES = 3; - - // Prescription device website with website content in English. - PRESCRIPTION_DEVICE_WEBSITE_EN = 4; - - // Prescription device website with website content in Spanish (Sitio de - // dispositivos con receta). - PRESCRIPTION_DEVICE_WEBSITE_ES = 5; - - // Medical device website with website content in English. - MEDICAL_DEVICE_WEBSITE_EN = 6; - - // Medical device website with website content in Spanish (Sitio de - // dispositivos médicos). - MEDICAL_DEVICE_WEBSITE_ES = 7; - - // Preventative treatment website with website content in English. - PREVENTATIVE_TREATMENT_WEBSITE_EN = 8; - - // Preventative treatment website with website content in Spanish (Sitio de - // tratamientos preventivos). - PREVENTATIVE_TREATMENT_WEBSITE_ES = 9; - - // Prescription contraception website with website content in English. - PRESCRIPTION_CONTRACEPTION_WEBSITE_EN = 10; - - // Prescription contraception website with website content in Spanish (Sitio - // de anticonceptivos con receta). - PRESCRIPTION_CONTRACEPTION_WEBSITE_ES = 11; - - // Prescription vaccine website with website content in English. - PRESCRIPTION_VACCINE_WEBSITE_EN = 12; - - // Prescription vaccine website with website content in Spanish (Sitio de - // vacunas con receta). - PRESCRIPTION_VACCINE_WEBSITE_ES = 13; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/webpage_condition_operand.proto b/third_party/googleapis/google/ads/googleads/v2/enums/webpage_condition_operand.proto deleted file mode 100644 index d51824c4f..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/webpage_condition_operand.proto +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "WebpageConditionOperandProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing webpage condition operand. - -// Container for enum describing webpage condition operand in webpage criterion. -message WebpageConditionOperandEnum { - // The webpage condition operand in webpage criterion. - enum WebpageConditionOperand { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Operand denoting a webpage URL targeting condition. - URL = 2; - - // Operand denoting a webpage category targeting condition. - CATEGORY = 3; - - // Operand denoting a webpage title targeting condition. - PAGE_TITLE = 4; - - // Operand denoting a webpage content targeting condition. - PAGE_CONTENT = 5; - - // Operand denoting a webpage custom label targeting condition. - CUSTOM_LABEL = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/enums/webpage_condition_operator.proto b/third_party/googleapis/google/ads/googleads/v2/enums/webpage_condition_operator.proto deleted file mode 100644 index f92af671e..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/enums/webpage_condition_operator.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "WebpageConditionOperatorProto"; -option java_package = "com.google.ads.googleads.v2.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V2::Enums"; - -// Proto file describing webpage condition operator. - -// Container for enum describing webpage condition operator in webpage -// criterion. -message WebpageConditionOperatorEnum { - // The webpage condition operator in webpage criterion. - enum WebpageConditionOperator { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The argument web condition is equal to the compared web condition. - EQUALS = 2; - - // The argument web condition is part of the compared web condition. - CONTAINS = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/access_invitation_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/access_invitation_error.proto deleted file mode 100644 index 88520bad1..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/access_invitation_error.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "AccessInvitationErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing AccessInvitation errors. - -// Container for enum describing possible AccessInvitation errors. -message AccessInvitationErrorEnum { - // Enum describing possible AccessInvitation errors. - enum AccessInvitationError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The email address is invalid for sending an invitation. - INVALID_EMAIL_ADDRESS = 2; - - // Email address already has access to this customer. - EMAIL_ADDRESS_ALREADY_HAS_ACCESS = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/account_budget_proposal_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/account_budget_proposal_error.proto deleted file mode 100644 index 8803f761d..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/account_budget_proposal_error.proto +++ /dev/null @@ -1,114 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "AccountBudgetProposalErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing account budget proposal errors. - -// Container for enum describing possible account budget proposal errors. -message AccountBudgetProposalErrorEnum { - // Enum describing possible account budget proposal errors. - enum AccountBudgetProposalError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The field mask must be empty for create/end/remove proposals. - FIELD_MASK_NOT_ALLOWED = 2; - - // The field cannot be set because of the proposal type. - IMMUTABLE_FIELD = 3; - - // The field is required because of the proposal type. - REQUIRED_FIELD_MISSING = 4; - - // Proposals that have been approved cannot be cancelled. - CANNOT_CANCEL_APPROVED_PROPOSAL = 5; - - // Budgets that haven't been approved cannot be removed. - CANNOT_REMOVE_UNAPPROVED_BUDGET = 6; - - // Budgets that are currently running cannot be removed. - CANNOT_REMOVE_RUNNING_BUDGET = 7; - - // Budgets that haven't been approved cannot be truncated. - CANNOT_END_UNAPPROVED_BUDGET = 8; - - // Only budgets that are currently running can be truncated. - CANNOT_END_INACTIVE_BUDGET = 9; - - // All budgets must have names. - BUDGET_NAME_REQUIRED = 10; - - // Expired budgets cannot be edited after a sufficient amount of time has - // passed. - CANNOT_UPDATE_OLD_BUDGET = 11; - - // It is not permissible a propose a new budget that ends in the past. - CANNOT_END_IN_PAST = 12; - - // An expired budget cannot be extended to overlap with the running budget. - CANNOT_EXTEND_END_TIME = 13; - - // A purchase order number is required. - PURCHASE_ORDER_NUMBER_REQUIRED = 14; - - // Budgets that have a pending update cannot be updated. - PENDING_UPDATE_PROPOSAL_EXISTS = 15; - - // Cannot propose more than one budget when the corresponding billing setup - // hasn't been approved. - MULTIPLE_BUDGETS_NOT_ALLOWED_FOR_UNAPPROVED_BILLING_SETUP = 16; - - // Cannot update the start time of a budget that has already started. - CANNOT_UPDATE_START_TIME_FOR_STARTED_BUDGET = 17; - - // Cannot update the spending limit of a budget with an amount lower than - // what has already been spent. - SPENDING_LIMIT_LOWER_THAN_ACCRUED_COST_NOT_ALLOWED = 18; - - // Cannot propose a budget update without actually changing any fields. - UPDATE_IS_NO_OP = 19; - - // The end time must come after the start time. - END_TIME_MUST_FOLLOW_START_TIME = 20; - - // The budget's date range must fall within the date range of its billing - // setup. - BUDGET_DATE_RANGE_INCOMPATIBLE_WITH_BILLING_SETUP = 21; - - // The user is not authorized to mutate budgets for the given billing setup. - NOT_AUTHORIZED = 22; - - // Mutates are not allowed for the given billing setup. - INVALID_BILLING_SETUP = 23; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/ad_customizer_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/ad_customizer_error.proto deleted file mode 100644 index 128417997..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/ad_customizer_error.proto +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "AdCustomizerErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing ad customizer errors. - -// Container for enum describing possible ad customizer errors. -message AdCustomizerErrorEnum { - // Enum describing possible ad customizer errors. - enum AdCustomizerError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Invalid date argument in countdown function. - COUNTDOWN_INVALID_DATE_FORMAT = 2; - - // Countdown end date is in the past. - COUNTDOWN_DATE_IN_PAST = 3; - - // Invalid locale string in countdown function. - COUNTDOWN_INVALID_LOCALE = 4; - - // Days-before argument to countdown function is not positive. - COUNTDOWN_INVALID_START_DAYS_BEFORE = 5; - - // A user list referenced in an IF function does not exist. - UNKNOWN_USER_LIST = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/ad_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/ad_error.proto deleted file mode 100644 index 6fdfcc161..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/ad_error.proto +++ /dev/null @@ -1,454 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "AdErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing ad errors. - -// Container for enum describing possible ad errors. -message AdErrorEnum { - // Enum describing possible ad errors. - enum AdError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Ad customizers are not supported for ad type. - AD_CUSTOMIZERS_NOT_SUPPORTED_FOR_AD_TYPE = 2; - - // Estimating character sizes the string is too long. - APPROXIMATELY_TOO_LONG = 3; - - // Estimating character sizes the string is too short. - APPROXIMATELY_TOO_SHORT = 4; - - // There is a problem with the snippet. - BAD_SNIPPET = 5; - - // Cannot modify an ad. - CANNOT_MODIFY_AD = 6; - - // business name and url cannot be set at the same time - CANNOT_SET_BUSINESS_NAME_IF_URL_SET = 7; - - // The specified field is incompatible with this ad's type or settings. - CANNOT_SET_FIELD = 8; - - // Cannot set field when originAdId is set. - CANNOT_SET_FIELD_WITH_ORIGIN_AD_ID_SET = 9; - - // Cannot set field when an existing ad id is set for sharing. - CANNOT_SET_FIELD_WITH_AD_ID_SET_FOR_SHARING = 10; - - // Cannot set allowFlexibleColor false if no color is provided by user. - CANNOT_SET_ALLOW_FLEXIBLE_COLOR_FALSE = 11; - - // When user select native, no color control is allowed because we will - // always respect publisher color for native format serving. - CANNOT_SET_COLOR_CONTROL_WHEN_NATIVE_FORMAT_SETTING = 12; - - // Cannot specify a url for the ad type - CANNOT_SET_URL = 13; - - // Cannot specify a tracking or mobile url without also setting final urls - CANNOT_SET_WITHOUT_FINAL_URLS = 14; - - // Cannot specify a legacy url and a final url simultaneously - CANNOT_SET_WITH_FINAL_URLS = 15; - - // Cannot specify a urls in UrlData and in template fields simultaneously. - CANNOT_SET_WITH_URL_DATA = 17; - - // This operator cannot be used with a subclass of Ad. - CANNOT_USE_AD_SUBCLASS_FOR_OPERATOR = 18; - - // Customer is not approved for mobile ads. - CUSTOMER_NOT_APPROVED_MOBILEADS = 19; - - // Customer is not approved for 3PAS richmedia ads. - CUSTOMER_NOT_APPROVED_THIRDPARTY_ADS = 20; - - // Customer is not approved for 3PAS redirect richmedia (Ad Exchange) ads. - CUSTOMER_NOT_APPROVED_THIRDPARTY_REDIRECT_ADS = 21; - - // Not an eligible customer - CUSTOMER_NOT_ELIGIBLE = 22; - - // Customer is not eligible for updating beacon url - CUSTOMER_NOT_ELIGIBLE_FOR_UPDATING_BEACON_URL = 23; - - // There already exists an ad with the same dimensions in the union. - DIMENSION_ALREADY_IN_UNION = 24; - - // Ad's dimension must be set before setting union dimension. - DIMENSION_MUST_BE_SET = 25; - - // Ad's dimension must be included in the union dimensions. - DIMENSION_NOT_IN_UNION = 26; - - // Display Url cannot be specified (applies to Ad Exchange Ads) - DISPLAY_URL_CANNOT_BE_SPECIFIED = 27; - - // Telephone number contains invalid characters or invalid format. Please - // re-enter your number using digits (0-9), dashes (-), and parentheses - // only. - DOMESTIC_PHONE_NUMBER_FORMAT = 28; - - // Emergency telephone numbers are not allowed. Please enter a valid - // domestic phone number to connect customers to your business. - EMERGENCY_PHONE_NUMBER = 29; - - // A required field was not specified or is an empty string. - EMPTY_FIELD = 30; - - // A feed attribute referenced in an ad customizer tag is not in the ad - // customizer mapping for the feed. - FEED_ATTRIBUTE_MUST_HAVE_MAPPING_FOR_TYPE_ID = 31; - - // The ad customizer field mapping for the feed attribute does not match the - // expected field type. - FEED_ATTRIBUTE_MAPPING_TYPE_MISMATCH = 32; - - // The use of ad customizer tags in the ad text is disallowed. Details in - // trigger. - ILLEGAL_AD_CUSTOMIZER_TAG_USE = 33; - - // Tags of the form {PH_x}, where x is a number, are disallowed in ad text. - ILLEGAL_TAG_USE = 34; - - // The dimensions of the ad are specified or derived in multiple ways and - // are not consistent. - INCONSISTENT_DIMENSIONS = 35; - - // The status cannot differ among template ads of the same union. - INCONSISTENT_STATUS_IN_TEMPLATE_UNION = 36; - - // The length of the string is not valid. - INCORRECT_LENGTH = 37; - - // The ad is ineligible for upgrade. - INELIGIBLE_FOR_UPGRADE = 38; - - // User cannot create mobile ad for countries targeted in specified - // campaign. - INVALID_AD_ADDRESS_CAMPAIGN_TARGET = 39; - - // Invalid Ad type. A specific type of Ad is required. - INVALID_AD_TYPE = 40; - - // Headline, description or phone cannot be present when creating mobile - // image ad. - INVALID_ATTRIBUTES_FOR_MOBILE_IMAGE = 41; - - // Image cannot be present when creating mobile text ad. - INVALID_ATTRIBUTES_FOR_MOBILE_TEXT = 42; - - // Invalid call to action text. - INVALID_CALL_TO_ACTION_TEXT = 43; - - // Invalid character in URL. - INVALID_CHARACTER_FOR_URL = 44; - - // Creative's country code is not valid. - INVALID_COUNTRY_CODE = 45; - - // Invalid use of Expanded Dynamic Search Ads tags ({lpurl} etc.) - INVALID_EXPANDED_DYNAMIC_SEARCH_AD_TAG = 47; - - // An input error whose real reason was not properly mapped (should not - // happen). - INVALID_INPUT = 48; - - // An invalid markup language was entered. - INVALID_MARKUP_LANGUAGE = 49; - - // An invalid mobile carrier was entered. - INVALID_MOBILE_CARRIER = 50; - - // Specified mobile carriers target a country not targeted by the campaign. - INVALID_MOBILE_CARRIER_TARGET = 51; - - // Wrong number of elements for given element type - INVALID_NUMBER_OF_ELEMENTS = 52; - - // The format of the telephone number is incorrect. Please re-enter the - // number using the correct format. - INVALID_PHONE_NUMBER_FORMAT = 53; - - // The certified vendor format id is incorrect. - INVALID_RICH_MEDIA_CERTIFIED_VENDOR_FORMAT_ID = 54; - - // The template ad data contains validation errors. - INVALID_TEMPLATE_DATA = 55; - - // The template field doesn't have have the correct type. - INVALID_TEMPLATE_ELEMENT_FIELD_TYPE = 56; - - // Invalid template id. - INVALID_TEMPLATE_ID = 57; - - // After substituting replacement strings, the line is too wide. - LINE_TOO_WIDE = 58; - - // The feed referenced must have ad customizer mapping to be used in a - // customizer tag. - MISSING_AD_CUSTOMIZER_MAPPING = 59; - - // Missing address component in template element address field. - MISSING_ADDRESS_COMPONENT = 60; - - // An ad name must be entered. - MISSING_ADVERTISEMENT_NAME = 61; - - // Business name must be entered. - MISSING_BUSINESS_NAME = 62; - - // Description (line 2) must be entered. - MISSING_DESCRIPTION1 = 63; - - // Description (line 3) must be entered. - MISSING_DESCRIPTION2 = 64; - - // The destination url must contain at least one tag (e.g. {lpurl}) - MISSING_DESTINATION_URL_TAG = 65; - - // The tracking url template of ExpandedDynamicSearchAd must contain at - // least one tag. (e.g. {lpurl}) - MISSING_LANDING_PAGE_URL_TAG = 66; - - // A valid dimension must be specified for this ad. - MISSING_DIMENSION = 67; - - // A display URL must be entered. - MISSING_DISPLAY_URL = 68; - - // Headline must be entered. - MISSING_HEADLINE = 69; - - // A height must be entered. - MISSING_HEIGHT = 70; - - // An image must be entered. - MISSING_IMAGE = 71; - - // Marketing image or product videos are required. - MISSING_MARKETING_IMAGE_OR_PRODUCT_VIDEOS = 72; - - // The markup language in which your site is written must be entered. - MISSING_MARKUP_LANGUAGES = 73; - - // A mobile carrier must be entered. - MISSING_MOBILE_CARRIER = 74; - - // Phone number must be entered. - MISSING_PHONE = 75; - - // Missing required template fields - MISSING_REQUIRED_TEMPLATE_FIELDS = 76; - - // Missing a required field value - MISSING_TEMPLATE_FIELD_VALUE = 77; - - // The ad must have text. - MISSING_TEXT = 78; - - // A visible URL must be entered. - MISSING_VISIBLE_URL = 79; - - // A width must be entered. - MISSING_WIDTH = 80; - - // Only 1 feed can be used as the source of ad customizer substitutions in a - // single ad. - MULTIPLE_DISTINCT_FEEDS_UNSUPPORTED = 81; - - // TempAdUnionId must be use when adding template ads. - MUST_USE_TEMP_AD_UNION_ID_ON_ADD = 82; - - // The string has too many characters. - TOO_LONG = 83; - - // The string has too few characters. - TOO_SHORT = 84; - - // Ad union dimensions cannot change for saved ads. - UNION_DIMENSIONS_CANNOT_CHANGE = 85; - - // Address component is not {country, lat, lng}. - UNKNOWN_ADDRESS_COMPONENT = 86; - - // Unknown unique field name - UNKNOWN_FIELD_NAME = 87; - - // Unknown unique name (template element type specifier) - UNKNOWN_UNIQUE_NAME = 88; - - // Unsupported ad dimension - UNSUPPORTED_DIMENSIONS = 89; - - // URL starts with an invalid scheme. - URL_INVALID_SCHEME = 90; - - // URL ends with an invalid top-level domain name. - URL_INVALID_TOP_LEVEL_DOMAIN = 91; - - // URL contains illegal characters. - URL_MALFORMED = 92; - - // URL must contain a host name. - URL_NO_HOST = 93; - - // URL not equivalent during upgrade. - URL_NOT_EQUIVALENT = 94; - - // URL host name too long to be stored as visible URL (applies to Ad - // Exchange ads) - URL_HOST_NAME_TOO_LONG = 95; - - // URL must start with a scheme. - URL_NO_SCHEME = 96; - - // URL should end in a valid domain extension, such as .com or .net. - URL_NO_TOP_LEVEL_DOMAIN = 97; - - // URL must not end with a path. - URL_PATH_NOT_ALLOWED = 98; - - // URL must not specify a port. - URL_PORT_NOT_ALLOWED = 99; - - // URL must not contain a query. - URL_QUERY_NOT_ALLOWED = 100; - - // A url scheme is not allowed in front of tag in tracking url template - // (e.g. http://{lpurl}) - URL_SCHEME_BEFORE_EXPANDED_DYNAMIC_SEARCH_AD_TAG = 102; - - // The user does not have permissions to create a template ad for the given - // template. - USER_DOES_NOT_HAVE_ACCESS_TO_TEMPLATE = 103; - - // Expandable setting is inconsistent/wrong. For example, an AdX ad is - // invalid if it has a expandable vendor format but no expanding directions - // specified, or expanding directions is specified, but the vendor format is - // not expandable. - INCONSISTENT_EXPANDABLE_SETTINGS = 104; - - // Format is invalid - INVALID_FORMAT = 105; - - // The text of this field did not match a pattern of allowed values. - INVALID_FIELD_TEXT = 106; - - // Template element is mising - ELEMENT_NOT_PRESENT = 107; - - // Error occurred during image processing - IMAGE_ERROR = 108; - - // The value is not within the valid range - VALUE_NOT_IN_RANGE = 109; - - // Template element field is not present - FIELD_NOT_PRESENT = 110; - - // Address is incomplete - ADDRESS_NOT_COMPLETE = 111; - - // Invalid address - ADDRESS_INVALID = 112; - - // Error retrieving specified video - VIDEO_RETRIEVAL_ERROR = 113; - - // Error processing audio - AUDIO_ERROR = 114; - - // Display URL is incorrect for YouTube PYV ads - INVALID_YOUTUBE_DISPLAY_URL = 115; - - // Too many product Images in GmailAd - TOO_MANY_PRODUCT_IMAGES = 116; - - // Too many product Videos in GmailAd - TOO_MANY_PRODUCT_VIDEOS = 117; - - // The device preference is not compatible with the ad type - INCOMPATIBLE_AD_TYPE_AND_DEVICE_PREFERENCE = 118; - - // Call tracking is not supported for specified country. - CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY = 119; - - // Carrier specific short number is not allowed. - CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED = 120; - - // Specified phone number type is disallowed. - DISALLOWED_NUMBER_TYPE = 121; - - // Phone number not supported for country. - PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY = 122; - - // Phone number not supported with call tracking enabled for country. - PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY = 123; - - // Premium rate phone number is not allowed. - PREMIUM_RATE_NUMBER_NOT_ALLOWED = 124; - - // Vanity phone number is not allowed. - VANITY_PHONE_NUMBER_NOT_ALLOWED = 125; - - // Invalid call conversion type id. - INVALID_CALL_CONVERSION_TYPE_ID = 126; - - // Cannot disable call conversion and set conversion type id. - CANNOT_DISABLE_CALL_CONVERSION_AND_SET_CONVERSION_TYPE_ID = 127; - - // Cannot set path2 without path1. - CANNOT_SET_PATH2_WITHOUT_PATH1 = 128; - - // Missing domain name in campaign setting when adding expanded dynamic - // search ad. - MISSING_DYNAMIC_SEARCH_ADS_SETTING_DOMAIN_NAME = 129; - - // The associated ad is not compatible with restriction type. - INCOMPATIBLE_WITH_RESTRICTION_TYPE = 130; - - // Consent for call recording is required for creating/updating call only - // ads. Please see https://support.google.com/google-ads/answer/7412639. - CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED = 131; - - // Either an image or a media bundle is required in a display upload ad. - MISSING_IMAGE_OR_MEDIA_BUNDLE = 132; - - // The display upload product type is not supported in this campaign. - PRODUCT_TYPE_NOT_SUPPORTED_IN_THIS_CAMPAIGN = 133; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/ad_group_ad_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/ad_group_ad_error.proto deleted file mode 100644 index 482f5129b..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/ad_group_ad_error.proto +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupAdErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing ad group ad errors. - -// Container for enum describing possible ad group ad errors. -message AdGroupAdErrorEnum { - // Enum describing possible ad group ad errors. - enum AdGroupAdError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // No link found between the adgroup ad and the label. - AD_GROUP_AD_LABEL_DOES_NOT_EXIST = 2; - - // The label has already been attached to the adgroup ad. - AD_GROUP_AD_LABEL_ALREADY_EXISTS = 3; - - // The specified ad was not found in the adgroup - AD_NOT_UNDER_ADGROUP = 4; - - // Removed ads may not be modified - CANNOT_OPERATE_ON_REMOVED_ADGROUPAD = 5; - - // An ad of this type is deprecated and cannot be created. Only deletions - // are permitted. - CANNOT_CREATE_DEPRECATED_ADS = 6; - - // Text ads are deprecated and cannot be created. Use expanded text ads - // instead. - CANNOT_CREATE_TEXT_ADS = 7; - - // A required field was not specified or is an empty string. - EMPTY_FIELD = 8; - - // An ad may only be modified once per call - RESOURCE_REFERENCED_IN_MULTIPLE_OPS = 9; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/ad_group_bid_modifier_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/ad_group_bid_modifier_error.proto deleted file mode 100644 index 9d5d63fcd..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/ad_group_bid_modifier_error.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupBidModifierErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing ad group bid modifier errors. - -// Container for enum describing possible ad group bid modifier errors. -message AdGroupBidModifierErrorEnum { - // Enum describing possible ad group bid modifier errors. - enum AdGroupBidModifierError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The criterion ID does not support bid modification. - CRITERION_ID_NOT_SUPPORTED = 2; - - // Cannot override the bid modifier for the given criterion ID if the parent - // campaign is opted out of the same criterion. - CANNOT_OVERRIDE_OPTED_OUT_CAMPAIGN_CRITERION_BID_MODIFIER = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/ad_group_criterion_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/ad_group_criterion_error.proto deleted file mode 100644 index 5394d3445..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/ad_group_criterion_error.proto +++ /dev/null @@ -1,165 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupCriterionErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing ad group criterion errors. - -// Container for enum describing possible ad group criterion errors. -message AdGroupCriterionErrorEnum { - // Enum describing possible ad group criterion errors. - enum AdGroupCriterionError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // No link found between the AdGroupCriterion and the label. - AD_GROUP_CRITERION_LABEL_DOES_NOT_EXIST = 2; - - // The label has already been attached to the AdGroupCriterion. - AD_GROUP_CRITERION_LABEL_ALREADY_EXISTS = 3; - - // Negative AdGroupCriterion cannot have labels. - CANNOT_ADD_LABEL_TO_NEGATIVE_CRITERION = 4; - - // Too many operations for a single call. - TOO_MANY_OPERATIONS = 5; - - // Negative ad group criteria are not updateable. - CANT_UPDATE_NEGATIVE = 6; - - // Concrete type of criterion (keyword v.s. placement) is required for ADD - // and SET operations. - CONCRETE_TYPE_REQUIRED = 7; - - // Bid is incompatible with ad group's bidding settings. - BID_INCOMPATIBLE_WITH_ADGROUP = 8; - - // Cannot target and exclude the same criterion at once. - CANNOT_TARGET_AND_EXCLUDE = 9; - - // The URL of a placement is invalid. - ILLEGAL_URL = 10; - - // Keyword text was invalid. - INVALID_KEYWORD_TEXT = 11; - - // Destination URL was invalid. - INVALID_DESTINATION_URL = 12; - - // The destination url must contain at least one tag (e.g. {lpurl}) - MISSING_DESTINATION_URL_TAG = 13; - - // Keyword-level cpm bid is not supported - KEYWORD_LEVEL_BID_NOT_SUPPORTED_FOR_MANUALCPM = 14; - - // For example, cannot add a biddable ad group criterion that had been - // removed. - INVALID_USER_STATUS = 15; - - // Criteria type cannot be targeted for the ad group. Either the account is - // restricted to keywords only, the criteria type is incompatible with the - // campaign's bidding strategy, or the criteria type can only be applied to - // campaigns. - CANNOT_ADD_CRITERIA_TYPE = 16; - - // Criteria type cannot be excluded for the ad group. Refer to the - // documentation for a specific criterion to check if it is excludable. - CANNOT_EXCLUDE_CRITERIA_TYPE = 17; - - // Partial failure is not supported for shopping campaign mutate operations. - CAMPAIGN_TYPE_NOT_COMPATIBLE_WITH_PARTIAL_FAILURE = 27; - - // Operations in the mutate request changes too many shopping ad groups. - // Please split requests for multiple shopping ad groups across multiple - // requests. - OPERATIONS_FOR_TOO_MANY_SHOPPING_ADGROUPS = 28; - - // Not allowed to modify url fields of an ad group criterion if there are - // duplicate elements for that ad group criterion in the request. - CANNOT_MODIFY_URL_FIELDS_WITH_DUPLICATE_ELEMENTS = 29; - - // Cannot set url fields without also setting final urls. - CANNOT_SET_WITHOUT_FINAL_URLS = 30; - - // Cannot clear final urls if final mobile urls exist. - CANNOT_CLEAR_FINAL_URLS_IF_FINAL_MOBILE_URLS_EXIST = 31; - - // Cannot clear final urls if final app urls exist. - CANNOT_CLEAR_FINAL_URLS_IF_FINAL_APP_URLS_EXIST = 32; - - // Cannot clear final urls if tracking url template exists. - CANNOT_CLEAR_FINAL_URLS_IF_TRACKING_URL_TEMPLATE_EXISTS = 33; - - // Cannot clear final urls if url custom parameters exist. - CANNOT_CLEAR_FINAL_URLS_IF_URL_CUSTOM_PARAMETERS_EXIST = 34; - - // Cannot set both destination url and final urls. - CANNOT_SET_BOTH_DESTINATION_URL_AND_FINAL_URLS = 35; - - // Cannot set both destination url and tracking url template. - CANNOT_SET_BOTH_DESTINATION_URL_AND_TRACKING_URL_TEMPLATE = 36; - - // Final urls are not supported for this criterion type. - FINAL_URLS_NOT_SUPPORTED_FOR_CRITERION_TYPE = 37; - - // Final mobile urls are not supported for this criterion type. - FINAL_MOBILE_URLS_NOT_SUPPORTED_FOR_CRITERION_TYPE = 38; - - // Ad group is invalid due to the listing groups it contains. - INVALID_LISTING_GROUP_HIERARCHY = 39; - - // Listing group unit cannot have children. - LISTING_GROUP_UNIT_CANNOT_HAVE_CHILDREN = 40; - - // Subdivided listing groups must have an "others" case. - LISTING_GROUP_SUBDIVISION_REQUIRES_OTHERS_CASE = 41; - - // Dimension type of listing group must be the same as that of its siblings. - LISTING_GROUP_REQUIRES_SAME_DIMENSION_TYPE_AS_SIBLINGS = 42; - - // Listing group cannot be added to the ad group because it already exists. - LISTING_GROUP_ALREADY_EXISTS = 43; - - // Listing group referenced in the operation was not found in the ad group. - LISTING_GROUP_DOES_NOT_EXIST = 44; - - // Recursive removal failed because listing group subdivision is being - // created or modified in this request. - LISTING_GROUP_CANNOT_BE_REMOVED = 45; - - // Listing group type is not allowed for specified ad group criterion type. - INVALID_LISTING_GROUP_TYPE = 46; - - // Listing group in an ADD operation specifies a non temporary criterion id. - LISTING_GROUP_ADD_MAY_ONLY_USE_TEMP_ID = 47; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/ad_group_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/ad_group_error.proto deleted file mode 100644 index 69695f664..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/ad_group_error.proto +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing ad group errors. - -// Container for enum describing possible ad group errors. -message AdGroupErrorEnum { - // Enum describing possible ad group errors. - enum AdGroupError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // AdGroup with the same name already exists for the campaign. - DUPLICATE_ADGROUP_NAME = 2; - - // AdGroup name is not valid. - INVALID_ADGROUP_NAME = 3; - - // Advertiser is not allowed to target sites or set site bids that are not - // on the Google Search Network. - ADVERTISER_NOT_ON_CONTENT_NETWORK = 5; - - // Bid amount is too big. - BID_TOO_BIG = 6; - - // AdGroup bid does not match the campaign's bidding strategy. - BID_TYPE_AND_BIDDING_STRATEGY_MISMATCH = 7; - - // AdGroup name is required for Add. - MISSING_ADGROUP_NAME = 8; - - // No link found between the ad group and the label. - ADGROUP_LABEL_DOES_NOT_EXIST = 9; - - // The label has already been attached to the ad group. - ADGROUP_LABEL_ALREADY_EXISTS = 10; - - // The CriterionTypeGroup is not supported for the content bid dimension. - INVALID_CONTENT_BID_CRITERION_TYPE_GROUP = 11; - - // The ad group type is not compatible with the campaign channel type. - AD_GROUP_TYPE_NOT_VALID_FOR_ADVERTISING_CHANNEL_TYPE = 12; - - // The ad group type is not supported in the country of sale of the - // campaign. - ADGROUP_TYPE_NOT_SUPPORTED_FOR_CAMPAIGN_SALES_COUNTRY = 13; - - // Ad groups of AdGroupType.SEARCH_DYNAMIC_ADS can only be added to - // campaigns that have DynamicSearchAdsSetting attached. - CANNOT_ADD_ADGROUP_OF_TYPE_DSA_TO_CAMPAIGN_WITHOUT_DSA_SETTING = 14; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/ad_group_feed_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/ad_group_feed_error.proto deleted file mode 100644 index d2b9aa55e..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/ad_group_feed_error.proto +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupFeedErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing ad group feed errors. - -// Container for enum describing possible ad group feed errors. -message AdGroupFeedErrorEnum { - // Enum describing possible ad group feed errors. - enum AdGroupFeedError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // An active feed already exists for this ad group and place holder type. - FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE = 2; - - // The specified feed is removed. - CANNOT_CREATE_FOR_REMOVED_FEED = 3; - - // The AdGroupFeed already exists. UPDATE operation should be used to modify - // the existing AdGroupFeed. - ADGROUP_FEED_ALREADY_EXISTS = 4; - - // Cannot operate on removed AdGroupFeed. - CANNOT_OPERATE_ON_REMOVED_ADGROUP_FEED = 5; - - // Invalid placeholder type. - INVALID_PLACEHOLDER_TYPE = 6; - - // Feed mapping for this placeholder type does not exist. - MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE = 7; - - // Location AdGroupFeeds cannot be created unless there is a location - // CustomerFeed for the specified feed. - NO_EXISTING_LOCATION_CUSTOMER_FEED = 8; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/ad_parameter_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/ad_parameter_error.proto deleted file mode 100644 index fef5101a7..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/ad_parameter_error.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "AdParameterErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing ad parameter errors. - -// Container for enum describing possible ad parameter errors. -message AdParameterErrorEnum { - // Enum describing possible ad parameter errors. - enum AdParameterError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The ad group criterion must be a keyword criterion. - AD_GROUP_CRITERION_MUST_BE_KEYWORD = 2; - - // The insertion text is invalid. - INVALID_INSERTION_TEXT_FORMAT = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/ad_sharing_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/ad_sharing_error.proto deleted file mode 100644 index fe4d37492..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/ad_sharing_error.proto +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "AdSharingErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing ad sharing errors. - -// Container for enum describing possible ad sharing errors. -message AdSharingErrorEnum { - // Enum describing possible ad sharing errors. - enum AdSharingError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Error resulting in attempting to add an Ad to an AdGroup that already - // contains the Ad. - AD_GROUP_ALREADY_CONTAINS_AD = 2; - - // Ad is not compatible with the AdGroup it is being shared with. - INCOMPATIBLE_AD_UNDER_AD_GROUP = 3; - - // Cannot add AdGroupAd on inactive Ad. - CANNOT_SHARE_INACTIVE_AD = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/adx_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/adx_error.proto deleted file mode 100644 index 3867d691c..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/adx_error.proto +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "AdxErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing adx errors. - -// Container for enum describing possible adx errors. -message AdxErrorEnum { - // Enum describing possible adx errors. - enum AdxError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Attempt to use non-AdX feature by AdX customer. - UNSUPPORTED_FEATURE = 2; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/asset_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/asset_error.proto deleted file mode 100644 index 7adcb4c1a..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/asset_error.proto +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "AssetErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing asset errors. - -// Container for enum describing possible asset errors. -message AssetErrorEnum { - // Enum describing possible asset errors. - enum AssetError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The customer is not on the allow-list for this asset type. - CUSTOMER_NOT_WHITELISTED_FOR_ASSET_TYPE = 2; - - // Assets are duplicated across operations. - DUPLICATE_ASSET = 3; - - // The asset name is duplicated, either across operations or with an - // existing asset. - DUPLICATE_ASSET_NAME = 4; - - // The Asset.asset_data oneof is empty. - ASSET_DATA_IS_MISSING = 5; - - // The asset has a name which is different from an existing duplicate that - // represents the same content. - CANNOT_MODIFY_ASSET_NAME = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/authentication_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/authentication_error.proto deleted file mode 100644 index ad2332542..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/authentication_error.proto +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "AuthenticationErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing authentication errors. - -// Container for enum describing possible authentication errors. -message AuthenticationErrorEnum { - // Enum describing possible authentication errors. - enum AuthenticationError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Authentication of the request failed. - AUTHENTICATION_ERROR = 2; - - // Client Customer Id is not a number. - CLIENT_CUSTOMER_ID_INVALID = 5; - - // No customer found for the provided customer id. - CUSTOMER_NOT_FOUND = 8; - - // Client's Google Account is deleted. - GOOGLE_ACCOUNT_DELETED = 9; - - // Google account login token in the cookie is invalid. - GOOGLE_ACCOUNT_COOKIE_INVALID = 10; - - // A problem occurred during Google account authentication. - GOOGLE_ACCOUNT_AUTHENTICATION_FAILED = 25; - - // The user in the google account login token does not match the UserId in - // the cookie. - GOOGLE_ACCOUNT_USER_AND_ADS_USER_MISMATCH = 12; - - // Login cookie is required for authentication. - LOGIN_COOKIE_REQUIRED = 13; - - // User in the cookie is not a valid Ads user. - NOT_ADS_USER = 14; - - // Oauth token in the header is not valid. - OAUTH_TOKEN_INVALID = 15; - - // Oauth token in the header has expired. - OAUTH_TOKEN_EXPIRED = 16; - - // Oauth token in the header has been disabled. - OAUTH_TOKEN_DISABLED = 17; - - // Oauth token in the header has been revoked. - OAUTH_TOKEN_REVOKED = 18; - - // Oauth token HTTP header is malformed. - OAUTH_TOKEN_HEADER_INVALID = 19; - - // Login cookie is not valid. - LOGIN_COOKIE_INVALID = 20; - - // User Id in the header is not a valid id. - USER_ID_INVALID = 22; - - // An account administrator changed this account's authentication settings. - // To access this Google Ads account, enable 2-Step Verification in your - // Google account at https://www.google.com/landing/2step. - TWO_STEP_VERIFICATION_NOT_ENROLLED = 23; - - // An account administrator changed this account's authentication settings. - // To access this Google Ads account, enable Advanced Protection in your - // Google account at https://landing.google.com/advancedprotection. - ADVANCED_PROTECTION_NOT_ENROLLED = 24; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/authorization_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/authorization_error.proto deleted file mode 100644 index af2bfc419..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/authorization_error.proto +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "AuthorizationErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing authorization errors. - -// Container for enum describing possible authorization errors. -message AuthorizationErrorEnum { - // Enum describing possible authorization errors. - enum AuthorizationError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // User doesn't have permission to access customer. Note: If you're - // accessing a client customer, the manager's customer ID must be set in the - // `login-customer-id` header. Learn more at - // https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid - USER_PERMISSION_DENIED = 2; - - // The developer token is not on the allow-list. - DEVELOPER_TOKEN_NOT_WHITELISTED = 3; - - // The developer token is not allowed with the project sent in the request. - DEVELOPER_TOKEN_PROHIBITED = 4; - - // The Google Cloud project sent in the request does not have permission to - // access the api. - PROJECT_DISABLED = 5; - - // Authorization of the client failed. - AUTHORIZATION_ERROR = 6; - - // The user does not have permission to perform this action - // (e.g., ADD, UPDATE, REMOVE) on the resource or call a method. - ACTION_NOT_PERMITTED = 7; - - // Signup not complete. - INCOMPLETE_SIGNUP = 8; - - // The customer can't be used because it isn't enabled. - CUSTOMER_NOT_ENABLED = 24; - - // The developer must sign the terms of service. They can be found here: - // ads.google.com/aw/apicenter - MISSING_TOS = 9; - - // The developer token is not approved. Non-approved developer tokens can - // only be used with test accounts. - DEVELOPER_TOKEN_NOT_APPROVED = 10; - - // The login customer specified does not have access to the account - // specified, so the request is invalid. - INVALID_LOGIN_CUSTOMER_ID_SERVING_CUSTOMER_ID_COMBINATION = 11; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/bidding_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/bidding_error.proto deleted file mode 100644 index 7fd716156..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/bidding_error.proto +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "BiddingErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing bidding errors. - -// Container for enum describing possible bidding errors. -message BiddingErrorEnum { - // Enum describing possible bidding errors. - enum BiddingError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Cannot transition to new bidding strategy. - BIDDING_STRATEGY_TRANSITION_NOT_ALLOWED = 2; - - // Cannot attach bidding strategy to campaign. - CANNOT_ATTACH_BIDDING_STRATEGY_TO_CAMPAIGN = 7; - - // Bidding strategy is not supported or cannot be used as anonymous. - INVALID_ANONYMOUS_BIDDING_STRATEGY_TYPE = 10; - - // The type does not match the named strategy's type. - INVALID_BIDDING_STRATEGY_TYPE = 14; - - // The bid is invalid. - INVALID_BID = 17; - - // Bidding strategy is not available for the account type. - BIDDING_STRATEGY_NOT_AVAILABLE_FOR_ACCOUNT_TYPE = 18; - - // Conversion tracking is not enabled in the campaign that has YouTube - // Video Builder transitions. - CONVERSION_TRACKING_NOT_ENABLED = 19; - - // Not enough conversions tracked for YouTube Video Builder transitions. - NOT_ENOUGH_CONVERSIONS = 20; - - // Campaign can not be created with given bidding strategy. It can be - // transitioned to the strategy, once eligible. - CANNOT_CREATE_CAMPAIGN_WITH_BIDDING_STRATEGY = 21; - - // Cannot target content network only as campaign uses Page One Promoted - // bidding strategy. - CANNOT_TARGET_CONTENT_NETWORK_ONLY_WITH_CAMPAIGN_LEVEL_POP_BIDDING_STRATEGY = 23; - - // Budget Optimizer and Target Spend bidding strategies are not supported - // for campaigns with AdSchedule targeting. - BIDDING_STRATEGY_NOT_SUPPORTED_WITH_AD_SCHEDULE = 24; - - // Pay per conversion is not available to all the customer, only few - // customers on the allow-list can use this. - PAY_PER_CONVERSION_NOT_AVAILABLE_FOR_CUSTOMER = 25; - - // Pay per conversion is not allowed with Target CPA. - PAY_PER_CONVERSION_NOT_ALLOWED_WITH_TARGET_CPA = 26; - - // Cannot set bidding strategy to Manual CPM for search network only - // campaigns. - BIDDING_STRATEGY_NOT_ALLOWED_FOR_SEARCH_ONLY_CAMPAIGNS = 27; - - // The bidding strategy is not supported for use in drafts or experiments. - BIDDING_STRATEGY_NOT_SUPPORTED_IN_DRAFTS_OR_EXPERIMENTS = 28; - - // Bidding strategy type does not support product type ad group criterion. - BIDDING_STRATEGY_TYPE_DOES_NOT_SUPPORT_PRODUCT_TYPE_ADGROUP_CRITERION = 29; - - // Bid amount is too small. - BID_TOO_SMALL = 30; - - // Bid amount is too big. - BID_TOO_BIG = 31; - - // Bid has too many fractional digit precision. - BID_TOO_MANY_FRACTIONAL_DIGITS = 32; - - // Invalid domain name specified. - INVALID_DOMAIN_NAME = 33; - - // The field is not compatible with the payment mode. - NOT_COMPATIBLE_WITH_PAYMENT_MODE = 34; - - // The field is not compatible with the budget type. - NOT_COMPATIBLE_WITH_BUDGET_TYPE = 35; - - // The field is not compatible with the bidding strategy type. - NOT_COMPATIBLE_WITH_BIDDING_STRATEGY_TYPE = 36; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/bidding_strategy_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/bidding_strategy_error.proto deleted file mode 100644 index 40c38ef6d..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/bidding_strategy_error.proto +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "BiddingStrategyErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing bidding strategy errors. - -// Container for enum describing possible bidding strategy errors. -message BiddingStrategyErrorEnum { - // Enum describing possible bidding strategy errors. - enum BiddingStrategyError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Each bidding strategy must have a unique name. - DUPLICATE_NAME = 2; - - // Bidding strategy type is immutable. - CANNOT_CHANGE_BIDDING_STRATEGY_TYPE = 3; - - // Only bidding strategies not linked to campaigns, adgroups or adgroup - // criteria can be removed. - CANNOT_REMOVE_ASSOCIATED_STRATEGY = 4; - - // The specified bidding strategy is not supported. - BIDDING_STRATEGY_NOT_SUPPORTED = 5; - - // The bidding strategy is incompatible with the campaign's bidding - // strategy goal type. - INCOMPATIBLE_BIDDING_STRATEGY_AND_BIDDING_STRATEGY_GOAL_TYPE = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/billing_setup_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/billing_setup_error.proto deleted file mode 100644 index fda491061..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/billing_setup_error.proto +++ /dev/null @@ -1,101 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "BillingSetupErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing billing setup errors. - -// Container for enum describing possible billing setup errors. -message BillingSetupErrorEnum { - // Enum describing possible billing setup errors. - enum BillingSetupError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Cannot specify both an existing payments account and a new payments - // account when setting up billing. - CANNOT_USE_EXISTING_AND_NEW_ACCOUNT = 2; - - // Cannot cancel an approved billing setup whose start time has passed. - CANNOT_REMOVE_STARTED_BILLING_SETUP = 3; - - // Cannot perform a Change of Bill-To (CBT) to the same payments account. - CANNOT_CHANGE_BILLING_TO_SAME_PAYMENTS_ACCOUNT = 4; - - // Billing setups can only be used by customers with ENABLED or DRAFT - // status. - BILLING_SETUP_NOT_PERMITTED_FOR_CUSTOMER_STATUS = 5; - - // Billing setups must either include a correctly formatted existing - // payments account id, or a non-empty new payments account name. - INVALID_PAYMENTS_ACCOUNT = 6; - - // Only billable and third-party customers can create billing setups. - BILLING_SETUP_NOT_PERMITTED_FOR_CUSTOMER_CATEGORY = 7; - - // Billing setup creations can only use NOW for start time type. - INVALID_START_TIME_TYPE = 8; - - // Billing setups can only be created for a third-party customer if they do - // not already have a setup. - THIRD_PARTY_ALREADY_HAS_BILLING = 9; - - // Billing setups cannot be created if there is already a pending billing in - // progress. - BILLING_SETUP_IN_PROGRESS = 10; - - // Billing setups can only be created by customers who have permission to - // setup billings. Users can contact a representative for help setting up - // permissions. - NO_SIGNUP_PERMISSION = 11; - - // Billing setups cannot be created if there is already a future-approved - // billing. - CHANGE_OF_BILL_TO_IN_PROGRESS = 12; - - // Requested payments profile not found. - PAYMENTS_PROFILE_NOT_FOUND = 13; - - // Requested payments account not found. - PAYMENTS_ACCOUNT_NOT_FOUND = 14; - - // Billing setup creation failed because the payments profile is ineligible. - PAYMENTS_PROFILE_INELIGIBLE = 15; - - // Billing setup creation failed because the payments account is ineligible. - PAYMENTS_ACCOUNT_INELIGIBLE = 16; - - // Billing setup creation failed because the payments profile needs internal - // approval. - CUSTOMER_NEEDS_INTERNAL_APPROVAL = 17; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/campaign_budget_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/campaign_budget_error.proto deleted file mode 100644 index 284b38c70..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/campaign_budget_error.proto +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "CampaignBudgetErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing campaign budget errors. - -// Container for enum describing possible campaign budget errors. -message CampaignBudgetErrorEnum { - // Enum describing possible campaign budget errors. - enum CampaignBudgetError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The campaign budget cannot be shared. - CAMPAIGN_BUDGET_CANNOT_BE_SHARED = 17; - - // The requested campaign budget no longer exists. - CAMPAIGN_BUDGET_REMOVED = 2; - - // The campaign budget is associated with at least one campaign, and so the - // campaign budget cannot be removed. - CAMPAIGN_BUDGET_IN_USE = 3; - - // Customer is not on the allow-list for this campaign budget period. - CAMPAIGN_BUDGET_PERIOD_NOT_AVAILABLE = 4; - - // This field is not mutable on implicitly shared campaign budgets - CANNOT_MODIFY_FIELD_OF_IMPLICITLY_SHARED_CAMPAIGN_BUDGET = 6; - - // Cannot change explicitly shared campaign budgets back to implicitly - // shared ones. - CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_IMPLICITLY_SHARED = 7; - - // An implicit campaign budget without a name cannot be changed to - // explicitly shared campaign budget. - CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED_WITHOUT_NAME = 8; - - // Cannot change an implicitly shared campaign budget to an explicitly - // shared one. - CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED = 9; - - // Only explicitly shared campaign budgets can be used with multiple - // campaigns. - CANNOT_USE_IMPLICITLY_SHARED_CAMPAIGN_BUDGET_WITH_MULTIPLE_CAMPAIGNS = 10; - - // A campaign budget with this name already exists. - DUPLICATE_NAME = 11; - - // A money amount was not in the expected currency. - MONEY_AMOUNT_IN_WRONG_CURRENCY = 12; - - // A money amount was less than the minimum CPC for currency. - MONEY_AMOUNT_LESS_THAN_CURRENCY_MINIMUM_CPC = 13; - - // A money amount was greater than the maximum allowed. - MONEY_AMOUNT_TOO_LARGE = 14; - - // A money amount was negative. - NEGATIVE_MONEY_AMOUNT = 15; - - // A money amount was not a multiple of a minimum unit. - NON_MULTIPLE_OF_MINIMUM_CURRENCY_UNIT = 16; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/campaign_criterion_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/campaign_criterion_error.proto deleted file mode 100644 index fc6ec6884..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/campaign_criterion_error.proto +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "CampaignCriterionErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing campaign criterion errors. - -// Container for enum describing possible campaign criterion errors. -message CampaignCriterionErrorEnum { - // Enum describing possible campaign criterion errors. - enum CampaignCriterionError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Concrete type of criterion (keyword v.s. placement) is required for - // CREATE and UPDATE operations. - CONCRETE_TYPE_REQUIRED = 2; - - // Invalid placement URL. - INVALID_PLACEMENT_URL = 3; - - // Criteria type can not be excluded for the campaign by the customer. like - // AOL account type cannot target site type criteria - CANNOT_EXCLUDE_CRITERIA_TYPE = 4; - - // Cannot set the campaign criterion status for this criteria type. - CANNOT_SET_STATUS_FOR_CRITERIA_TYPE = 5; - - // Cannot set the campaign criterion status for an excluded criteria. - CANNOT_SET_STATUS_FOR_EXCLUDED_CRITERIA = 6; - - // Cannot target and exclude the same criterion. - CANNOT_TARGET_AND_EXCLUDE = 7; - - // The mutate contained too many operations. - TOO_MANY_OPERATIONS = 8; - - // This operator cannot be applied to a criterion of this type. - OPERATOR_NOT_SUPPORTED_FOR_CRITERION_TYPE = 9; - - // The Shopping campaign sales country is not supported for - // ProductSalesChannel targeting. - SHOPPING_CAMPAIGN_SALES_COUNTRY_NOT_SUPPORTED_FOR_SALES_CHANNEL = 10; - - // The existing field can't be updated with CREATE operation. It can be - // updated with UPDATE operation only. - CANNOT_ADD_EXISTING_FIELD = 11; - - // Negative criteria are immutable, so updates are not allowed. - CANNOT_UPDATE_NEGATIVE_CRITERION = 12; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/campaign_draft_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/campaign_draft_error.proto deleted file mode 100644 index 2884fffaa..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/campaign_draft_error.proto +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "CampaignDraftErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing campaign draft errors. - -// Container for enum describing possible campaign draft errors. -message CampaignDraftErrorEnum { - // Enum describing possible campaign draft errors. - enum CampaignDraftError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // A draft with this name already exists for this campaign. - DUPLICATE_DRAFT_NAME = 2; - - // The draft is removed and cannot be transitioned to another status. - INVALID_STATUS_TRANSITION_FROM_REMOVED = 3; - - // The draft has been promoted and cannot be transitioned to the specified - // status. - INVALID_STATUS_TRANSITION_FROM_PROMOTED = 4; - - // The draft has failed to be promoted and cannot be transitioned to the - // specified status. - INVALID_STATUS_TRANSITION_FROM_PROMOTE_FAILED = 5; - - // This customer is not allowed to create drafts. - CUSTOMER_CANNOT_CREATE_DRAFT = 6; - - // This campaign is not allowed to create drafts. - CAMPAIGN_CANNOT_CREATE_DRAFT = 7; - - // This modification cannot be made on a draft. - INVALID_DRAFT_CHANGE = 8; - - // The draft cannot be transitioned to the specified status from its - // current status. - INVALID_STATUS_TRANSITION = 9; - - // The campaign has reached the maximum number of drafts that can be created - // for a campaign throughout its lifetime. No additional drafts can be - // created for this campaign. Removed drafts also count towards this limit. - MAX_NUMBER_OF_DRAFTS_PER_CAMPAIGN_REACHED = 10; - - // ListAsyncErrors was called without first promoting the draft. - LIST_ERRORS_FOR_PROMOTED_DRAFT_ONLY = 11; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/campaign_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/campaign_error.proto deleted file mode 100644 index 1738e54b6..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/campaign_error.proto +++ /dev/null @@ -1,179 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "CampaignErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing campaign errors. - -// Container for enum describing possible campaign errors. -message CampaignErrorEnum { - // Enum describing possible campaign errors. - enum CampaignError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Cannot target content network. - CANNOT_TARGET_CONTENT_NETWORK = 3; - - // Cannot target search network. - CANNOT_TARGET_SEARCH_NETWORK = 4; - - // Cannot cover search network without google search network. - CANNOT_TARGET_SEARCH_NETWORK_WITHOUT_GOOGLE_SEARCH = 5; - - // Cannot target Google Search network for a CPM campaign. - CANNOT_TARGET_GOOGLE_SEARCH_FOR_CPM_CAMPAIGN = 6; - - // Must target at least one network. - CAMPAIGN_MUST_TARGET_AT_LEAST_ONE_NETWORK = 7; - - // Only some Google partners are allowed to target partner search network. - CANNOT_TARGET_PARTNER_SEARCH_NETWORK = 8; - - // Cannot target content network only as campaign has criteria-level bidding - // strategy. - CANNOT_TARGET_CONTENT_NETWORK_ONLY_WITH_CRITERIA_LEVEL_BIDDING_STRATEGY = 9; - - // Cannot modify the start or end date such that the campaign duration would - // not contain the durations of all runnable trials. - CAMPAIGN_DURATION_MUST_CONTAIN_ALL_RUNNABLE_TRIALS = 10; - - // Cannot modify dates, budget or campaign name of a trial campaign. - CANNOT_MODIFY_FOR_TRIAL_CAMPAIGN = 11; - - // Trying to modify the name of an active or paused campaign, where the name - // is already assigned to another active or paused campaign. - DUPLICATE_CAMPAIGN_NAME = 12; - - // Two fields are in conflicting modes. - INCOMPATIBLE_CAMPAIGN_FIELD = 13; - - // Campaign name cannot be used. - INVALID_CAMPAIGN_NAME = 14; - - // Given status is invalid. - INVALID_AD_SERVING_OPTIMIZATION_STATUS = 15; - - // Error in the campaign level tracking URL. - INVALID_TRACKING_URL = 16; - - // Cannot set both tracking URL template and tracking setting. A user has - // to clear legacy tracking setting in order to add tracking URL template. - CANNOT_SET_BOTH_TRACKING_URL_TEMPLATE_AND_TRACKING_SETTING = 17; - - // The maximum number of impressions for Frequency Cap should be an integer - // greater than 0. - MAX_IMPRESSIONS_NOT_IN_RANGE = 18; - - // Only the Day, Week and Month time units are supported. - TIME_UNIT_NOT_SUPPORTED = 19; - - // Operation not allowed on a campaign whose serving status has ended - INVALID_OPERATION_IF_SERVING_STATUS_HAS_ENDED = 20; - - // This budget is exclusively linked to a Campaign that is using experiments - // so it cannot be shared. - BUDGET_CANNOT_BE_SHARED = 21; - - // Campaigns using experiments cannot use a shared budget. - CAMPAIGN_CANNOT_USE_SHARED_BUDGET = 22; - - // A different budget cannot be assigned to a campaign when there are - // running or scheduled trials. - CANNOT_CHANGE_BUDGET_ON_CAMPAIGN_WITH_TRIALS = 23; - - // No link found between the campaign and the label. - CAMPAIGN_LABEL_DOES_NOT_EXIST = 24; - - // The label has already been attached to the campaign. - CAMPAIGN_LABEL_ALREADY_EXISTS = 25; - - // A ShoppingSetting was not found when creating a shopping campaign. - MISSING_SHOPPING_SETTING = 26; - - // The country in shopping setting is not an allowed country. - INVALID_SHOPPING_SALES_COUNTRY = 27; - - // A Campaign with channel sub type UNIVERSAL_APP_CAMPAIGN must have a - // UniversalAppCampaignSetting specified. - MISSING_UNIVERSAL_APP_CAMPAIGN_SETTING = 30; - - // The requested channel type is not available according to the customer's - // account setting. - ADVERTISING_CHANNEL_TYPE_NOT_AVAILABLE_FOR_ACCOUNT_TYPE = 31; - - // The AdvertisingChannelSubType is not a valid subtype of the primary - // channel type. - INVALID_ADVERTISING_CHANNEL_SUB_TYPE = 32; - - // At least one conversion must be selected. - AT_LEAST_ONE_CONVERSION_MUST_BE_SELECTED = 33; - - // Setting ad rotation mode for a campaign is not allowed. Ad rotation mode - // at campaign is deprecated. - CANNOT_SET_AD_ROTATION_MODE = 34; - - // Trying to change start date on a campaign that has started. - CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED = 35; - - // Trying to modify a date into the past. - CANNOT_SET_DATE_TO_PAST = 36; - - // Hotel center id in the hotel setting does not match any customer links. - MISSING_HOTEL_CUSTOMER_LINK = 37; - - // Hotel center id in the hotel setting must match an active customer link. - INVALID_HOTEL_CUSTOMER_LINK = 38; - - // Hotel setting was not found when creating a hotel ads campaign. - MISSING_HOTEL_SETTING = 39; - - // A Campaign cannot use shared campaign budgets and be part of a campaign - // group. - CANNOT_USE_SHARED_CAMPAIGN_BUDGET_WHILE_PART_OF_CAMPAIGN_GROUP = 40; - - // The app ID was not found. - APP_NOT_FOUND = 41; - - // Campaign.shopping_setting.enable_local is not supported for the specified - // campaign type. - SHOPPING_ENABLE_LOCAL_NOT_SUPPORTED_FOR_CAMPAIGN_TYPE = 42; - - // The merchant does not support the creation of campaigns for Shopping - // Comparison Listing Ads. - MERCHANT_NOT_ALLOWED_FOR_COMPARISON_LISTING_ADS = 43; - - // The App campaign for engagement cannot be created because there aren't - // enough installs. - INSUFFICIENT_APP_INSTALLS_COUNT = 44; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/campaign_experiment_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/campaign_experiment_error.proto deleted file mode 100644 index 45e81b8ee..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/campaign_experiment_error.proto +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "CampaignExperimentErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing campaign experiment errors. - -// Container for enum describing possible campaign experiment errors. -message CampaignExperimentErrorEnum { - // Enum describing possible campaign experiment errors. - enum CampaignExperimentError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // An active campaign or experiment with this name already exists. - DUPLICATE_NAME = 2; - - // Experiment cannot be updated from the current state to the - // requested target state. For example, an experiment can only graduate - // if its status is ENABLED. - INVALID_TRANSITION = 3; - - // Cannot create an experiment from a campaign using an explicitly shared - // budget. - CANNOT_CREATE_EXPERIMENT_WITH_SHARED_BUDGET = 4; - - // Cannot create an experiment for a removed base campaign. - CANNOT_CREATE_EXPERIMENT_FOR_REMOVED_BASE_CAMPAIGN = 5; - - // Cannot create an experiment from a draft, which has a status other than - // proposed. - CANNOT_CREATE_EXPERIMENT_FOR_NON_PROPOSED_DRAFT = 6; - - // This customer is not allowed to create an experiment. - CUSTOMER_CANNOT_CREATE_EXPERIMENT = 7; - - // This campaign is not allowed to create an experiment. - CAMPAIGN_CANNOT_CREATE_EXPERIMENT = 8; - - // Trying to set an experiment duration which overlaps with another - // experiment. - EXPERIMENT_DURATIONS_MUST_NOT_OVERLAP = 9; - - // All non-removed experiments must start and end within their campaign's - // duration. - EXPERIMENT_DURATION_MUST_BE_WITHIN_CAMPAIGN_DURATION = 10; - - // The experiment cannot be modified because its status is in a terminal - // state, such as REMOVED. - CANNOT_MUTATE_EXPERIMENT_DUE_TO_STATUS = 11; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/campaign_feed_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/campaign_feed_error.proto deleted file mode 100644 index e7acbfd22..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/campaign_feed_error.proto +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "CampaignFeedErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing campaign feed errors. - -// Container for enum describing possible campaign feed errors. -message CampaignFeedErrorEnum { - // Enum describing possible campaign feed errors. - enum CampaignFeedError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // An active feed already exists for this campaign and placeholder type. - FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE = 2; - - // The specified feed is removed. - CANNOT_CREATE_FOR_REMOVED_FEED = 4; - - // The CampaignFeed already exists. UPDATE should be used to modify the - // existing CampaignFeed. - CANNOT_CREATE_ALREADY_EXISTING_CAMPAIGN_FEED = 5; - - // Cannot update removed campaign feed. - CANNOT_MODIFY_REMOVED_CAMPAIGN_FEED = 6; - - // Invalid placeholder type. - INVALID_PLACEHOLDER_TYPE = 7; - - // Feed mapping for this placeholder type does not exist. - MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE = 8; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/campaign_shared_set_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/campaign_shared_set_error.proto deleted file mode 100644 index 71cbbd33e..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/campaign_shared_set_error.proto +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "CampaignSharedSetErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing campaign shared set errors. - -// Container for enum describing possible campaign shared set errors. -message CampaignSharedSetErrorEnum { - // Enum describing possible campaign shared set errors. - enum CampaignSharedSetError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The shared set belongs to another customer and permission isn't granted. - SHARED_SET_ACCESS_DENIED = 2; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/change_status_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/change_status_error.proto deleted file mode 100644 index 08179adcf..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/change_status_error.proto +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "ChangeStatusErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing change status errors. - -// Container for enum describing possible change status errors. -message ChangeStatusErrorEnum { - // Enum describing possible change status errors. - enum ChangeStatusError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The requested start date is too old. - START_DATE_TOO_OLD = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/collection_size_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/collection_size_error.proto deleted file mode 100644 index ddccb1146..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/collection_size_error.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "CollectionSizeErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing collection size errors. - -// Container for enum describing possible collection size errors. -message CollectionSizeErrorEnum { - // Enum describing possible collection size errors. - enum CollectionSizeError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Too few. - TOO_FEW = 2; - - // Too many. - TOO_MANY = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/context_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/context_error.proto deleted file mode 100644 index d952d8621..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/context_error.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "ContextErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing context errors. - -// Container for enum describing possible context errors. -message ContextErrorEnum { - // Enum describing possible context errors. - enum ContextError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The operation is not allowed for the given context. - OPERATION_NOT_PERMITTED_FOR_CONTEXT = 2; - - // The operation is not allowed for removed resources. - OPERATION_NOT_PERMITTED_FOR_REMOVED_RESOURCE = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/conversion_action_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/conversion_action_error.proto deleted file mode 100644 index 0eb311cf1..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/conversion_action_error.proto +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "ConversionActionErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing conversion action errors. - -// Container for enum describing possible conversion action errors. -message ConversionActionErrorEnum { - // Enum describing possible conversion action errors. - enum ConversionActionError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The specified conversion action name already exists. - DUPLICATE_NAME = 2; - - // Another conversion action with the specified app id already exists. - DUPLICATE_APP_ID = 3; - - // Android first open action conflicts with Google play codeless download - // action tracking the same app. - TWO_CONVERSION_ACTIONS_BIDDING_ON_SAME_APP_DOWNLOAD = 4; - - // Android first open action conflicts with Google play codeless download - // action tracking the same app. - BIDDING_ON_SAME_APP_DOWNLOAD_AS_GLOBAL_ACTION = 5; - - // The attribution model cannot be set to DATA_DRIVEN because a data-driven - // model has never been generated. - DATA_DRIVEN_MODEL_WAS_NEVER_GENERATED = 6; - - // The attribution model cannot be set to DATA_DRIVEN because the - // data-driven model is expired. - DATA_DRIVEN_MODEL_EXPIRED = 7; - - // The attribution model cannot be set to DATA_DRIVEN because the - // data-driven model is stale. - DATA_DRIVEN_MODEL_STALE = 8; - - // The attribution model cannot be set to DATA_DRIVEN because the - // data-driven model is unavailable or the conversion action was newly - // added. - DATA_DRIVEN_MODEL_UNKNOWN = 9; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/conversion_adjustment_upload_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/conversion_adjustment_upload_error.proto deleted file mode 100644 index 0d31c6cb3..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/conversion_adjustment_upload_error.proto +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "ConversionAdjustmentUploadErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing conversion adjustment upload errors. - -// Container for enum describing possible conversion adjustment upload errors. -message ConversionAdjustmentUploadErrorEnum { - // Enum describing possible conversion adjustment upload errors. - enum ConversionAdjustmentUploadError { - // Not specified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The specified conversion action was created too recently. - // Please try the upload again after 4-6 hours have passed since the - // conversion action was created. - TOO_RECENT_CONVERSION_ACTION = 2; - - // No conversion action of a supported ConversionActionType that matches the - // provided information can be found for the customer. - INVALID_CONVERSION_ACTION = 3; - - // A retraction was already reported for this conversion. - CONVERSION_ALREADY_RETRACTED = 4; - - // A conversion for the supplied combination of conversion - // action and conversion identifier could not be found. - CONVERSION_NOT_FOUND = 5; - - // The specified conversion has already expired. Conversions expire after 55 - // days, after which adjustments cannot be reported against them. - CONVERSION_EXPIRED = 6; - - // The supplied adjustment date time precedes that of the original - // conversion. - ADJUSTMENT_PRECEDES_CONVERSION = 7; - - // A restatement with a more recent adjustment date time was already - // reported for this conversion. - MORE_RECENT_RESTATEMENT_FOUND = 8; - - // The conversion was created too recently. - TOO_RECENT_CONVERSION = 9; - - // Restatements cannot be reported for a conversion action that always uses - // the default value. - CANNOT_RESTATE_CONVERSION_ACTION_THAT_ALWAYS_USES_DEFAULT_CONVERSION_VALUE = 10; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/conversion_upload_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/conversion_upload_error.proto deleted file mode 100644 index ec70cfb2c..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/conversion_upload_error.proto +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "ConversionUploadErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing conversion upload errors. - -// Container for enum describing possible conversion upload errors. -message ConversionUploadErrorEnum { - // Enum describing possible conversion upload errors. - enum ConversionUploadError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The request contained more than 2000 conversions. - TOO_MANY_CONVERSIONS_IN_REQUEST = 2; - - // The specified gclid could not be decoded. - UNPARSEABLE_GCLID = 3; - - // The specified conversion_date_time is before the event time - // associated with the given gclid. - CONVERSION_PRECEDES_GCLID = 4; - - // The click associated with the given gclid is either too old to be - // imported or occurred outside of the click through lookback window for the - // specified conversion action. - EXPIRED_GCLID = 5; - - // The click associated with the given gclid occurred too recently. Please - // try uploading again after 6 hours have passed since the click occurred. - TOO_RECENT_GCLID = 6; - - // The click associated with the given gclid could not be found in the - // system. This can happen if Google Click IDs are collected for non Google - // Ads clicks. - GCLID_NOT_FOUND = 7; - - // The click associated with the given gclid is owned by a customer - // account that the uploading customer does not manage. - UNAUTHORIZED_CUSTOMER = 8; - - // No upload eligible conversion action that matches the provided - // information can be found for the customer. - INVALID_CONVERSION_ACTION = 9; - - // The specified conversion action was created too recently. - // Please try the upload again after 4-6 hours have passed since the - // conversion action was created. - TOO_RECENT_CONVERSION_ACTION = 10; - - // The click associated with the given gclid does not contain conversion - // tracking information. - CONVERSION_TRACKING_NOT_ENABLED_AT_IMPRESSION_TIME = 11; - - // The specified conversion action does not use an external attribution - // model, but external_attribution_data was set. - EXTERNAL_ATTRIBUTION_DATA_SET_FOR_NON_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION = 12; - - // The specified conversion action uses an external attribution model, but - // external_attribution_data or one of its contained fields was not set. - // Both external_attribution_credit and external_attribution_model must be - // set for externally attributed conversion actions. - EXTERNAL_ATTRIBUTION_DATA_NOT_SET_FOR_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION = 13; - - // Order IDs are not supported for conversion actions which use an external - // attribution model. - ORDER_ID_NOT_PERMITTED_FOR_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION = 14; - - // A conversion with the same order id and conversion action combination - // already exists in our system. - ORDER_ID_ALREADY_IN_USE = 15; - - // The request contained two or more conversions with the same order id and - // conversion action combination. - DUPLICATE_ORDER_ID = 16; - - // The call occurred too recently. Please try uploading again after 6 hours - // have passed since the call occurred. - TOO_RECENT_CALL = 17; - - // The click that initiated the call is too old for this conversion to be - // imported. - EXPIRED_CALL = 18; - - // The call or the click leading to the call was not found. - CALL_NOT_FOUND = 19; - - // The specified conversion_date_time is before the call_start_date_time. - CONVERSION_PRECEDES_CALL = 20; - - // The click associated with the call does not contain conversion tracking - // information. - CONVERSION_TRACKING_NOT_ENABLED_AT_CALL_TIME = 21; - - // The caller’s phone number cannot be parsed. It should be formatted either - // as E.164 "+16502531234", International "+64 3-331 6005" or US national - // number "6502531234". - UNPARSEABLE_CALLERS_PHONE_NUMBER = 22; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/country_code_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/country_code_error.proto deleted file mode 100644 index ed94ebe34..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/country_code_error.proto +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "CountryCodeErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing country code errors. - -// Container for enum describing country code errors. -message CountryCodeErrorEnum { - // Enum describing country code errors. - enum CountryCodeError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The country code is invalid. - INVALID_COUNTRY_CODE = 2; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/criterion_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/criterion_error.proto deleted file mode 100644 index 07201fbe4..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/criterion_error.proto +++ /dev/null @@ -1,369 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "CriterionErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing criterion errors. - -// Container for enum describing possible criterion errors. -message CriterionErrorEnum { - // Enum describing possible criterion errors. - enum CriterionError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Concrete type of criterion is required for CREATE and UPDATE operations. - CONCRETE_TYPE_REQUIRED = 2; - - // The category requested for exclusion is invalid. - INVALID_EXCLUDED_CATEGORY = 3; - - // Invalid keyword criteria text. - INVALID_KEYWORD_TEXT = 4; - - // Keyword text should be less than 80 chars. - KEYWORD_TEXT_TOO_LONG = 5; - - // Keyword text has too many words. - KEYWORD_HAS_TOO_MANY_WORDS = 6; - - // Keyword text has invalid characters or symbols. - KEYWORD_HAS_INVALID_CHARS = 7; - - // Invalid placement URL. - INVALID_PLACEMENT_URL = 8; - - // Invalid user list criterion. - INVALID_USER_LIST = 9; - - // Invalid user interest criterion. - INVALID_USER_INTEREST = 10; - - // Placement URL has wrong format. - INVALID_FORMAT_FOR_PLACEMENT_URL = 11; - - // Placement URL is too long. - PLACEMENT_URL_IS_TOO_LONG = 12; - - // Indicates the URL contains an illegal character. - PLACEMENT_URL_HAS_ILLEGAL_CHAR = 13; - - // Indicates the URL contains multiple comma separated URLs. - PLACEMENT_URL_HAS_MULTIPLE_SITES_IN_LINE = 14; - - // Indicates the domain is blocked. - PLACEMENT_IS_NOT_AVAILABLE_FOR_TARGETING_OR_EXCLUSION = 15; - - // Invalid topic path. - INVALID_TOPIC_PATH = 16; - - // The YouTube Channel Id is invalid. - INVALID_YOUTUBE_CHANNEL_ID = 17; - - // The YouTube Video Id is invalid. - INVALID_YOUTUBE_VIDEO_ID = 18; - - // Indicates the placement is a YouTube vertical channel, which is no longer - // supported. - YOUTUBE_VERTICAL_CHANNEL_DEPRECATED = 19; - - // Indicates the placement is a YouTube demographic channel, which is no - // longer supported. - YOUTUBE_DEMOGRAPHIC_CHANNEL_DEPRECATED = 20; - - // YouTube urls are not supported in Placement criterion. Use YouTubeChannel - // and YouTubeVideo criterion instead. - YOUTUBE_URL_UNSUPPORTED = 21; - - // Criteria type can not be excluded by the customer, like AOL account type - // cannot target site type criteria. - CANNOT_EXCLUDE_CRITERIA_TYPE = 22; - - // Criteria type can not be targeted. - CANNOT_ADD_CRITERIA_TYPE = 23; - - // Product filter in the product criteria has invalid characters. Operand - // and the argument in the filter can not have "==" or "&+". - INVALID_PRODUCT_FILTER = 24; - - // Product filter in the product criteria is translated to a string as - // operand1==argument1&+operand2==argument2, maximum allowed length for the - // string is 255 chars. - PRODUCT_FILTER_TOO_LONG = 25; - - // Not allowed to exclude similar user list. - CANNOT_EXCLUDE_SIMILAR_USER_LIST = 26; - - // Not allowed to target a closed user list. - CANNOT_ADD_CLOSED_USER_LIST = 27; - - // Not allowed to add display only UserLists to search only campaigns. - CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SEARCH_ONLY_CAMPAIGNS = 28; - - // Not allowed to add display only UserLists to search plus campaigns. - CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SEARCH_CAMPAIGNS = 29; - - // Not allowed to add display only UserLists to shopping campaigns. - CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SHOPPING_CAMPAIGNS = 30; - - // Not allowed to add User interests to search only campaigns. - CANNOT_ADD_USER_INTERESTS_TO_SEARCH_CAMPAIGNS = 31; - - // Not allowed to set bids for this criterion type in search campaigns - CANNOT_SET_BIDS_ON_CRITERION_TYPE_IN_SEARCH_CAMPAIGNS = 32; - - // Final URLs, URL Templates and CustomParameters cannot be set for the - // criterion types of Gender, AgeRange, UserList, Placement, MobileApp, and - // MobileAppCategory in search campaigns and shopping campaigns. - CANNOT_ADD_URLS_TO_CRITERION_TYPE_FOR_CAMPAIGN_TYPE = 33; - - // Invalid custom affinity criterion. - INVALID_CUSTOM_AFFINITY = 96; - - // Invalid custom intent criterion. - INVALID_CUSTOM_INTENT = 97; - - // IP address is not valid. - INVALID_IP_ADDRESS = 34; - - // IP format is not valid. - INVALID_IP_FORMAT = 35; - - // Mobile application is not valid. - INVALID_MOBILE_APP = 36; - - // Mobile application category is not valid. - INVALID_MOBILE_APP_CATEGORY = 37; - - // The CriterionId does not exist or is of the incorrect type. - INVALID_CRITERION_ID = 38; - - // The Criterion is not allowed to be targeted. - CANNOT_TARGET_CRITERION = 39; - - // The criterion is not allowed to be targeted as it is deprecated. - CANNOT_TARGET_OBSOLETE_CRITERION = 40; - - // The CriterionId is not valid for the type. - CRITERION_ID_AND_TYPE_MISMATCH = 41; - - // Distance for the radius for the proximity criterion is invalid. - INVALID_PROXIMITY_RADIUS = 42; - - // Units for the distance for the radius for the proximity criterion is - // invalid. - INVALID_PROXIMITY_RADIUS_UNITS = 43; - - // Street address in the address is not valid. - INVALID_STREETADDRESS_LENGTH = 44; - - // City name in the address is not valid. - INVALID_CITYNAME_LENGTH = 45; - - // Region code in the address is not valid. - INVALID_REGIONCODE_LENGTH = 46; - - // Region name in the address is not valid. - INVALID_REGIONNAME_LENGTH = 47; - - // Postal code in the address is not valid. - INVALID_POSTALCODE_LENGTH = 48; - - // Country code in the address is not valid. - INVALID_COUNTRY_CODE = 49; - - // Latitude for the GeoPoint is not valid. - INVALID_LATITUDE = 50; - - // Longitude for the GeoPoint is not valid. - INVALID_LONGITUDE = 51; - - // The Proximity input is not valid. Both address and geoPoint cannot be - // null. - PROXIMITY_GEOPOINT_AND_ADDRESS_BOTH_CANNOT_BE_NULL = 52; - - // The Proximity address cannot be geocoded to a valid lat/long. - INVALID_PROXIMITY_ADDRESS = 53; - - // User domain name is not valid. - INVALID_USER_DOMAIN_NAME = 54; - - // Length of serialized criterion parameter exceeded size limit. - CRITERION_PARAMETER_TOO_LONG = 55; - - // Time interval in the AdSchedule overlaps with another AdSchedule. - AD_SCHEDULE_TIME_INTERVALS_OVERLAP = 56; - - // AdSchedule time interval cannot span multiple days. - AD_SCHEDULE_INTERVAL_CANNOT_SPAN_MULTIPLE_DAYS = 57; - - // AdSchedule time interval specified is invalid, endTime cannot be earlier - // than startTime. - AD_SCHEDULE_INVALID_TIME_INTERVAL = 58; - - // The number of AdSchedule entries in a day exceeds the limit. - AD_SCHEDULE_EXCEEDED_INTERVALS_PER_DAY_LIMIT = 59; - - // CriteriaId does not match the interval of the AdSchedule specified. - AD_SCHEDULE_CRITERION_ID_MISMATCHING_FIELDS = 60; - - // Cannot set bid modifier for this criterion type. - CANNOT_BID_MODIFY_CRITERION_TYPE = 61; - - // Cannot bid modify criterion, since it is opted out of the campaign. - CANNOT_BID_MODIFY_CRITERION_CAMPAIGN_OPTED_OUT = 62; - - // Cannot set bid modifier for a negative criterion. - CANNOT_BID_MODIFY_NEGATIVE_CRITERION = 63; - - // Bid Modifier already exists. Use SET operation to update. - BID_MODIFIER_ALREADY_EXISTS = 64; - - // Feed Id is not allowed in these Location Groups. - FEED_ID_NOT_ALLOWED = 65; - - // The account may not use the requested criteria type. For example, some - // accounts are restricted to keywords only. - ACCOUNT_INELIGIBLE_FOR_CRITERIA_TYPE = 66; - - // The requested criteria type cannot be used with campaign or ad group - // bidding strategy. - CRITERIA_TYPE_INVALID_FOR_BIDDING_STRATEGY = 67; - - // The Criterion is not allowed to be excluded. - CANNOT_EXCLUDE_CRITERION = 68; - - // The criterion is not allowed to be removed. For example, we cannot remove - // any of the device criterion. - CANNOT_REMOVE_CRITERION = 69; - - // The combined length of product dimension values of the product scope - // criterion is too long. - PRODUCT_SCOPE_TOO_LONG = 70; - - // Product scope contains too many dimensions. - PRODUCT_SCOPE_TOO_MANY_DIMENSIONS = 71; - - // The combined length of product dimension values of the product partition - // criterion is too long. - PRODUCT_PARTITION_TOO_LONG = 72; - - // Product partition contains too many dimensions. - PRODUCT_PARTITION_TOO_MANY_DIMENSIONS = 73; - - // The product dimension is invalid (e.g. dimension contains illegal value, - // dimension type is represented with wrong class, etc). Product dimension - // value can not contain "==" or "&+". - INVALID_PRODUCT_DIMENSION = 74; - - // Product dimension type is either invalid for campaigns of this type or - // cannot be used in the current context. BIDDING_CATEGORY_Lx and - // PRODUCT_TYPE_Lx product dimensions must be used in ascending order of - // their levels: L1, L2, L3, L4, L5... The levels must be specified - // sequentially and start from L1. Furthermore, an "others" product - // partition cannot be subdivided with a dimension of the same type but of a - // higher level ("others" BIDDING_CATEGORY_L3 can be subdivided with BRAND - // but not with BIDDING_CATEGORY_L4). - INVALID_PRODUCT_DIMENSION_TYPE = 75; - - // Bidding categories do not form a valid path in the Shopping bidding - // category taxonomy. - INVALID_PRODUCT_BIDDING_CATEGORY = 76; - - // ShoppingSetting must be added to the campaign before ProductScope - // criteria can be added. - MISSING_SHOPPING_SETTING = 77; - - // Matching function is invalid. - INVALID_MATCHING_FUNCTION = 78; - - // Filter parameters not allowed for location groups targeting. - LOCATION_FILTER_NOT_ALLOWED = 79; - - // Feed not found, or the feed is not an enabled location feed. - INVALID_FEED_FOR_LOCATION_FILTER = 98; - - // Given location filter parameter is invalid for location groups targeting. - LOCATION_FILTER_INVALID = 80; - - // Criteria type cannot be associated with a campaign and its ad group(s) - // simultaneously. - CANNOT_ATTACH_CRITERIA_AT_CAMPAIGN_AND_ADGROUP = 81; - - // Range represented by hotel length of stay's min nights and max nights - // overlaps with an existing criterion. - HOTEL_LENGTH_OF_STAY_OVERLAPS_WITH_EXISTING_CRITERION = 82; - - // Range represented by hotel advance booking window's min days and max days - // overlaps with an existing criterion. - HOTEL_ADVANCE_BOOKING_WINDOW_OVERLAPS_WITH_EXISTING_CRITERION = 83; - - // The field is not allowed to be set when the negative field is set to - // true, e.g. we don't allow bids in negative ad group or campaign criteria. - FIELD_INCOMPATIBLE_WITH_NEGATIVE_TARGETING = 84; - - // The combination of operand and operator in webpage condition is invalid. - INVALID_WEBPAGE_CONDITION = 85; - - // The URL of webpage condition is invalid. - INVALID_WEBPAGE_CONDITION_URL = 86; - - // The URL of webpage condition cannot be empty or contain white space. - WEBPAGE_CONDITION_URL_CANNOT_BE_EMPTY = 87; - - // The URL of webpage condition contains an unsupported protocol. - WEBPAGE_CONDITION_URL_UNSUPPORTED_PROTOCOL = 88; - - // The URL of webpage condition cannot be an IP address. - WEBPAGE_CONDITION_URL_CANNOT_BE_IP_ADDRESS = 89; - - // The domain of the URL is not consistent with the domain in campaign - // setting. - WEBPAGE_CONDITION_URL_DOMAIN_NOT_CONSISTENT_WITH_CAMPAIGN_SETTING = 90; - - // The URL of webpage condition cannot be a public suffix itself. - WEBPAGE_CONDITION_URL_CANNOT_BE_PUBLIC_SUFFIX = 91; - - // The URL of webpage condition has an invalid public suffix. - WEBPAGE_CONDITION_URL_INVALID_PUBLIC_SUFFIX = 92; - - // Value track parameter is not supported in webpage condition URL. - WEBPAGE_CONDITION_URL_VALUE_TRACK_VALUE_NOT_SUPPORTED = 93; - - // Only one URL-EQUALS webpage condition is allowed in a webpage - // criterion and it cannot be combined with other conditions. - WEBPAGE_CRITERION_URL_EQUALS_CAN_HAVE_ONLY_ONE_CONDITION = 94; - - // A webpage criterion cannot be added to a non-DSA ad group. - WEBPAGE_CRITERION_NOT_SUPPORTED_ON_NON_DSA_AD_GROUP = 95; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/currency_code_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/currency_code_error.proto deleted file mode 100644 index 67cd74102..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/currency_code_error.proto +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "CurrencyCodeErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing currency code errors. - -// Container for enum describing possible currency code errors. -message CurrencyCodeErrorEnum { - // Enum describing possible currency code errors. - enum CurrencyCodeError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The currency code is not supported. - UNSUPPORTED = 2; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/custom_interest_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/custom_interest_error.proto deleted file mode 100644 index 542bdbfae..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/custom_interest_error.proto +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "CustomInterestErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing custom interest errors. - -// Container for enum describing possible custom interest errors. -message CustomInterestErrorEnum { - // Enum describing possible custom interest errors. - enum CustomInterestError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Duplicate custom interest name ignoring case. - NAME_ALREADY_USED = 2; - - // In the remove custom interest member operation, both member ID and - // pair [type, parameter] are not present. - CUSTOM_INTEREST_MEMBER_ID_AND_TYPE_PARAMETER_NOT_PRESENT_IN_REMOVE = 3; - - // The pair of [type, parameter] does not exist. - TYPE_AND_PARAMETER_NOT_FOUND = 4; - - // The pair of [type, parameter] already exists. - TYPE_AND_PARAMETER_ALREADY_EXISTED = 5; - - // Unsupported custom interest member type. - INVALID_CUSTOM_INTEREST_MEMBER_TYPE = 6; - - // Cannot remove a custom interest while it's still being targeted. - CANNOT_REMOVE_WHILE_IN_USE = 7; - - // Cannot mutate custom interest type. - CANNOT_CHANGE_TYPE = 8; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/customer_client_link_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/customer_client_link_error.proto deleted file mode 100644 index 2d169f870..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/customer_client_link_error.proto +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "CustomerClientLinkErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing CustomerClientLink errors. - -// Container for enum describing possible CustomeClientLink errors. -message CustomerClientLinkErrorEnum { - // Enum describing possible CustomerClientLink errors. - enum CustomerClientLinkError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Trying to manage a client that already in being managed by customer. - CLIENT_ALREADY_INVITED_BY_THIS_MANAGER = 2; - - // Already managed by some other manager in the hierarchy. - CLIENT_ALREADY_MANAGED_IN_HIERARCHY = 3; - - // Attempt to create a cycle in the hierarchy. - CYCLIC_LINK_NOT_ALLOWED = 4; - - // Managed accounts has the maximum number of linked accounts. - CUSTOMER_HAS_TOO_MANY_ACCOUNTS = 5; - - // Invitor has the maximum pending invitations. - CLIENT_HAS_TOO_MANY_INVITATIONS = 6; - - // Attempt to change hidden status of a link that is not active. - CANNOT_HIDE_OR_UNHIDE_MANAGER_ACCOUNTS = 7; - - // Parent manager account has the maximum number of linked accounts. - CUSTOMER_HAS_TOO_MANY_ACCOUNTS_AT_MANAGER = 8; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/customer_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/customer_error.proto deleted file mode 100644 index ef4a88c32..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/customer_error.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "CustomerErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Container for enum describing possible customer errors. -message CustomerErrorEnum { - // Set of errors that are related to requests dealing with Customer. - enum CustomerError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Customer status is not allowed to be changed from DRAFT and CLOSED. - // Currency code and at least one of country code and time zone needs to be - // set when status is changed to ENABLED. - STATUS_CHANGE_DISALLOWED = 2; - - // CustomerService cannot get a customer that has not been fully set up. - ACCOUNT_NOT_SET_UP = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/customer_feed_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/customer_feed_error.proto deleted file mode 100644 index 1fb7d9daa..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/customer_feed_error.proto +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "CustomerFeedErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing customer feed errors. - -// Container for enum describing possible customer feed errors. -message CustomerFeedErrorEnum { - // Enum describing possible customer feed errors. - enum CustomerFeedError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // An active feed already exists for this customer and place holder type. - FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE = 2; - - // The specified feed is removed. - CANNOT_CREATE_FOR_REMOVED_FEED = 3; - - // The CustomerFeed already exists. Update should be used to modify the - // existing CustomerFeed. - CANNOT_CREATE_ALREADY_EXISTING_CUSTOMER_FEED = 4; - - // Cannot update removed customer feed. - CANNOT_MODIFY_REMOVED_CUSTOMER_FEED = 5; - - // Invalid placeholder type. - INVALID_PLACEHOLDER_TYPE = 6; - - // Feed mapping for this placeholder type does not exist. - MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE = 7; - - // Placeholder not allowed at the account level. - PLACEHOLDER_TYPE_NOT_ALLOWED_ON_CUSTOMER_FEED = 8; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/customer_manager_link_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/customer_manager_link_error.proto deleted file mode 100644 index b808e9d9c..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/customer_manager_link_error.proto +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "CustomerManagerLinkErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing CustomerManagerLink errors. - -// Container for enum describing possible CustomerManagerLink errors. -message CustomerManagerLinkErrorEnum { - // Enum describing possible CustomerManagerLink errors. - enum CustomerManagerLinkError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // No pending invitation. - NO_PENDING_INVITE = 2; - - // Attempt to operate on the same client more than once in the same call. - SAME_CLIENT_MORE_THAN_ONCE_PER_CALL = 3; - - // Manager account has the maximum number of linked accounts. - MANAGER_HAS_MAX_NUMBER_OF_LINKED_ACCOUNTS = 4; - - // If no active user on account it cannot be unlinked from its manager. - CANNOT_UNLINK_ACCOUNT_WITHOUT_ACTIVE_USER = 5; - - // Account should have at least one active owner on it before being - // unlinked. - CANNOT_REMOVE_LAST_CLIENT_ACCOUNT_OWNER = 6; - - // Only account owners may change their permission role. - CANNOT_CHANGE_ROLE_BY_NON_ACCOUNT_OWNER = 7; - - // When a client's link to its manager is not active, the link role cannot - // be changed. - CANNOT_CHANGE_ROLE_FOR_NON_ACTIVE_LINK_ACCOUNT = 8; - - // Attempt to link a child to a parent that contains or will contain - // duplicate children. - DUPLICATE_CHILD_FOUND = 9; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/database_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/database_error.proto deleted file mode 100644 index 542e4ec9f..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/database_error.proto +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "DatabaseErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing database errors. - -// Container for enum describing possible database errors. -message DatabaseErrorEnum { - // Enum describing possible database errors. - enum DatabaseError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Multiple requests were attempting to modify the same resource at once. - // Please retry the request. - CONCURRENT_MODIFICATION = 2; - - // The request conflicted with existing data. This error will usually be - // replaced with a more specific error if the request is retried. - DATA_CONSTRAINT_VIOLATION = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/date_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/date_error.proto deleted file mode 100644 index 1f956ae4a..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/date_error.proto +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "DateErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing date errors. - -// Container for enum describing possible date errors. -message DateErrorEnum { - // Enum describing possible date errors. - enum DateError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Given field values do not correspond to a valid date. - INVALID_FIELD_VALUES_IN_DATE = 2; - - // Given field values do not correspond to a valid date time. - INVALID_FIELD_VALUES_IN_DATE_TIME = 3; - - // The string date's format should be yyyy-mm-dd. - INVALID_STRING_DATE = 4; - - // The string date time's format should be yyyy-mm-dd hh:mm:ss.ssssss. - INVALID_STRING_DATE_TIME_MICROS = 6; - - // The string date time's format should be yyyy-mm-dd hh:mm:ss. - INVALID_STRING_DATE_TIME_SECONDS = 11; - - // The string date time's format should be yyyy-mm-dd hh:mm:ss+|-hh:mm. - INVALID_STRING_DATE_TIME_SECONDS_WITH_OFFSET = 12; - - // Date is before allowed minimum. - EARLIER_THAN_MINIMUM_DATE = 7; - - // Date is after allowed maximum. - LATER_THAN_MAXIMUM_DATE = 8; - - // Date range bounds are not in order. - DATE_RANGE_MINIMUM_DATE_LATER_THAN_MAXIMUM_DATE = 9; - - // Both dates in range are null. - DATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL = 10; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/date_range_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/date_range_error.proto deleted file mode 100644 index 935b1d915..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/date_range_error.proto +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "DateRangeErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing date range errors. - -// Container for enum describing possible date range errors. -message DateRangeErrorEnum { - // Enum describing possible date range errors. - enum DateRangeError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Invalid date. - INVALID_DATE = 2; - - // The start date was after the end date. - START_DATE_AFTER_END_DATE = 3; - - // Cannot set date to past time - CANNOT_SET_DATE_TO_PAST = 4; - - // A date was used that is past the system "last" date. - AFTER_MAXIMUM_ALLOWABLE_DATE = 5; - - // Trying to change start date on a resource that has started. - CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/distinct_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/distinct_error.proto deleted file mode 100644 index 50beaf2eb..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/distinct_error.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "DistinctErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing distinct errors. - -// Container for enum describing possible distinct errors. -message DistinctErrorEnum { - // Enum describing possible distinct errors. - enum DistinctError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Duplicate element. - DUPLICATE_ELEMENT = 2; - - // Duplicate type. - DUPLICATE_TYPE = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/enum_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/enum_error.proto deleted file mode 100644 index 2dc2bc83d..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/enum_error.proto +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "EnumErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing enum errors. - -// Container for enum describing possible enum errors. -message EnumErrorEnum { - // Enum describing possible enum errors. - enum EnumError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The enum value is not permitted. - ENUM_VALUE_NOT_PERMITTED = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/errors.proto b/third_party/googleapis/google/ads/googleads/v2/errors/errors.proto deleted file mode 100644 index c00ae6a74..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/errors.proto +++ /dev/null @@ -1,545 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/ads/googleads/v2/common/policy.proto"; -import "google/ads/googleads/v2/common/value.proto"; -import "google/ads/googleads/v2/errors/access_invitation_error.proto"; -import "google/ads/googleads/v2/errors/account_budget_proposal_error.proto"; -import "google/ads/googleads/v2/errors/ad_customizer_error.proto"; -import "google/ads/googleads/v2/errors/ad_error.proto"; -import "google/ads/googleads/v2/errors/ad_group_ad_error.proto"; -import "google/ads/googleads/v2/errors/ad_group_bid_modifier_error.proto"; -import "google/ads/googleads/v2/errors/ad_group_criterion_error.proto"; -import "google/ads/googleads/v2/errors/ad_group_error.proto"; -import "google/ads/googleads/v2/errors/ad_group_feed_error.proto"; -import "google/ads/googleads/v2/errors/ad_parameter_error.proto"; -import "google/ads/googleads/v2/errors/ad_sharing_error.proto"; -import "google/ads/googleads/v2/errors/adx_error.proto"; -import "google/ads/googleads/v2/errors/asset_error.proto"; -import "google/ads/googleads/v2/errors/authentication_error.proto"; -import "google/ads/googleads/v2/errors/authorization_error.proto"; -import "google/ads/googleads/v2/errors/bidding_error.proto"; -import "google/ads/googleads/v2/errors/bidding_strategy_error.proto"; -import "google/ads/googleads/v2/errors/billing_setup_error.proto"; -import "google/ads/googleads/v2/errors/campaign_budget_error.proto"; -import "google/ads/googleads/v2/errors/campaign_criterion_error.proto"; -import "google/ads/googleads/v2/errors/campaign_draft_error.proto"; -import "google/ads/googleads/v2/errors/campaign_error.proto"; -import "google/ads/googleads/v2/errors/campaign_experiment_error.proto"; -import "google/ads/googleads/v2/errors/campaign_feed_error.proto"; -import "google/ads/googleads/v2/errors/campaign_shared_set_error.proto"; -import "google/ads/googleads/v2/errors/change_status_error.proto"; -import "google/ads/googleads/v2/errors/collection_size_error.proto"; -import "google/ads/googleads/v2/errors/context_error.proto"; -import "google/ads/googleads/v2/errors/conversion_action_error.proto"; -import "google/ads/googleads/v2/errors/conversion_adjustment_upload_error.proto"; -import "google/ads/googleads/v2/errors/conversion_upload_error.proto"; -import "google/ads/googleads/v2/errors/country_code_error.proto"; -import "google/ads/googleads/v2/errors/criterion_error.proto"; -import "google/ads/googleads/v2/errors/currency_code_error.proto"; -import "google/ads/googleads/v2/errors/custom_interest_error.proto"; -import "google/ads/googleads/v2/errors/customer_client_link_error.proto"; -import "google/ads/googleads/v2/errors/customer_error.proto"; -import "google/ads/googleads/v2/errors/customer_feed_error.proto"; -import "google/ads/googleads/v2/errors/customer_manager_link_error.proto"; -import "google/ads/googleads/v2/errors/database_error.proto"; -import "google/ads/googleads/v2/errors/date_error.proto"; -import "google/ads/googleads/v2/errors/date_range_error.proto"; -import "google/ads/googleads/v2/errors/distinct_error.proto"; -import "google/ads/googleads/v2/errors/enum_error.proto"; -import "google/ads/googleads/v2/errors/extension_feed_item_error.proto"; -import "google/ads/googleads/v2/errors/extension_setting_error.proto"; -import "google/ads/googleads/v2/errors/feed_attribute_reference_error.proto"; -import "google/ads/googleads/v2/errors/feed_error.proto"; -import "google/ads/googleads/v2/errors/feed_item_error.proto"; -import "google/ads/googleads/v2/errors/feed_item_target_error.proto"; -import "google/ads/googleads/v2/errors/feed_item_validation_error.proto"; -import "google/ads/googleads/v2/errors/feed_mapping_error.proto"; -import "google/ads/googleads/v2/errors/field_error.proto"; -import "google/ads/googleads/v2/errors/field_mask_error.proto"; -import "google/ads/googleads/v2/errors/function_error.proto"; -import "google/ads/googleads/v2/errors/function_parsing_error.proto"; -import "google/ads/googleads/v2/errors/geo_target_constant_suggestion_error.proto"; -import "google/ads/googleads/v2/errors/header_error.proto"; -import "google/ads/googleads/v2/errors/id_error.proto"; -import "google/ads/googleads/v2/errors/image_error.proto"; -import "google/ads/googleads/v2/errors/internal_error.proto"; -import "google/ads/googleads/v2/errors/invoice_error.proto"; -import "google/ads/googleads/v2/errors/keyword_plan_ad_group_error.proto"; -import "google/ads/googleads/v2/errors/keyword_plan_campaign_error.proto"; -import "google/ads/googleads/v2/errors/keyword_plan_error.proto"; -import "google/ads/googleads/v2/errors/keyword_plan_idea_error.proto"; -import "google/ads/googleads/v2/errors/keyword_plan_keyword_error.proto"; -import "google/ads/googleads/v2/errors/keyword_plan_negative_keyword_error.proto"; -import "google/ads/googleads/v2/errors/label_error.proto"; -import "google/ads/googleads/v2/errors/language_code_error.proto"; -import "google/ads/googleads/v2/errors/list_operation_error.proto"; -import "google/ads/googleads/v2/errors/manager_link_error.proto"; -import "google/ads/googleads/v2/errors/media_bundle_error.proto"; -import "google/ads/googleads/v2/errors/media_file_error.proto"; -import "google/ads/googleads/v2/errors/media_upload_error.proto"; -import "google/ads/googleads/v2/errors/multiplier_error.proto"; -import "google/ads/googleads/v2/errors/mutate_error.proto"; -import "google/ads/googleads/v2/errors/mutate_job_error.proto"; -import "google/ads/googleads/v2/errors/new_resource_creation_error.proto"; -import "google/ads/googleads/v2/errors/not_empty_error.proto"; -import "google/ads/googleads/v2/errors/not_whitelisted_error.proto"; -import "google/ads/googleads/v2/errors/null_error.proto"; -import "google/ads/googleads/v2/errors/operation_access_denied_error.proto"; -import "google/ads/googleads/v2/errors/operator_error.proto"; -import "google/ads/googleads/v2/errors/partial_failure_error.proto"; -import "google/ads/googleads/v2/errors/policy_finding_error.proto"; -import "google/ads/googleads/v2/errors/policy_validation_parameter_error.proto"; -import "google/ads/googleads/v2/errors/policy_violation_error.proto"; -import "google/ads/googleads/v2/errors/query_error.proto"; -import "google/ads/googleads/v2/errors/quota_error.proto"; -import "google/ads/googleads/v2/errors/range_error.proto"; -import "google/ads/googleads/v2/errors/reach_plan_error.proto"; -import "google/ads/googleads/v2/errors/recommendation_error.proto"; -import "google/ads/googleads/v2/errors/region_code_error.proto"; -import "google/ads/googleads/v2/errors/request_error.proto"; -import "google/ads/googleads/v2/errors/resource_access_denied_error.proto"; -import "google/ads/googleads/v2/errors/resource_count_limit_exceeded_error.proto"; -import "google/ads/googleads/v2/errors/setting_error.proto"; -import "google/ads/googleads/v2/errors/shared_criterion_error.proto"; -import "google/ads/googleads/v2/errors/shared_set_error.proto"; -import "google/ads/googleads/v2/errors/size_limit_error.proto"; -import "google/ads/googleads/v2/errors/string_format_error.proto"; -import "google/ads/googleads/v2/errors/string_length_error.proto"; -import "google/ads/googleads/v2/errors/url_field_error.proto"; -import "google/ads/googleads/v2/errors/user_list_error.proto"; -import "google/ads/googleads/v2/errors/youtube_video_registration_error.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "ErrorsProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing the common error protos - -// Describes how a GoogleAds API call failed. It's returned inside -// google.rpc.Status.details when a call fails. -message GoogleAdsFailure { - // The list of errors that occurred. - repeated GoogleAdsError errors = 1; -} - -// GoogleAds-specific error. -message GoogleAdsError { - // An enum value that indicates which error occurred. - ErrorCode error_code = 1; - - // A human-readable description of the error. - string message = 2; - - // The value that triggered the error. - google.ads.googleads.v2.common.Value trigger = 3; - - // Describes the part of the request proto that caused the error. - ErrorLocation location = 4; - - // Additional error details, which are returned by certain error codes. Most - // error codes do not include details. - ErrorDetails details = 5; -} - -// The error reason represented by type and enum. -message ErrorCode { - // The list of error enums - oneof error_code { - // An error caused by the request - RequestErrorEnum.RequestError request_error = 1; - - // An error with a Bidding Strategy mutate. - BiddingStrategyErrorEnum.BiddingStrategyError bidding_strategy_error = 2; - - // An error with a URL field mutate. - UrlFieldErrorEnum.UrlFieldError url_field_error = 3; - - // An error with a list operation. - ListOperationErrorEnum.ListOperationError list_operation_error = 4; - - // An error with an AWQL query - QueryErrorEnum.QueryError query_error = 5; - - // An error with a mutate - MutateErrorEnum.MutateError mutate_error = 7; - - // An error with a field mask - FieldMaskErrorEnum.FieldMaskError field_mask_error = 8; - - // An error encountered when trying to authorize a user. - AuthorizationErrorEnum.AuthorizationError authorization_error = 9; - - // An unexpected server-side error. - InternalErrorEnum.InternalError internal_error = 10; - - // An error with the amonut of quota remaining. - QuotaErrorEnum.QuotaError quota_error = 11; - - // An error with an Ad Group Ad mutate. - AdErrorEnum.AdError ad_error = 12; - - // An error with an Ad Group mutate. - AdGroupErrorEnum.AdGroupError ad_group_error = 13; - - // An error with a Campaign Budget mutate. - CampaignBudgetErrorEnum.CampaignBudgetError campaign_budget_error = 14; - - // An error with a Campaign mutate. - CampaignErrorEnum.CampaignError campaign_error = 15; - - // Indicates failure to properly authenticate user. - AuthenticationErrorEnum.AuthenticationError authentication_error = 17; - - // Indicates failure to properly authenticate user. - AdGroupCriterionErrorEnum.AdGroupCriterionError ad_group_criterion_error = 18; - - // The reasons for the ad customizer error - AdCustomizerErrorEnum.AdCustomizerError ad_customizer_error = 19; - - // The reasons for the ad group ad error - AdGroupAdErrorEnum.AdGroupAdError ad_group_ad_error = 21; - - // The reasons for the ad sharing error - AdSharingErrorEnum.AdSharingError ad_sharing_error = 24; - - // The reasons for the adx error - AdxErrorEnum.AdxError adx_error = 25; - - // The reasons for the asset error - AssetErrorEnum.AssetError asset_error = 107; - - // The reasons for the bidding errors - BiddingErrorEnum.BiddingError bidding_error = 26; - - // The reasons for the campaign criterion error - CampaignCriterionErrorEnum.CampaignCriterionError campaign_criterion_error = 29; - - // The reasons for the collection size error - CollectionSizeErrorEnum.CollectionSizeError collection_size_error = 31; - - // The reasons for the country code error - CountryCodeErrorEnum.CountryCodeError country_code_error = 109; - - // The reasons for the criterion error - CriterionErrorEnum.CriterionError criterion_error = 32; - - // The reasons for the customer error - CustomerErrorEnum.CustomerError customer_error = 90; - - // The reasons for the date error - DateErrorEnum.DateError date_error = 33; - - // The reasons for the date range error - DateRangeErrorEnum.DateRangeError date_range_error = 34; - - // The reasons for the distinct error - DistinctErrorEnum.DistinctError distinct_error = 35; - - // The reasons for the feed attribute reference error - FeedAttributeReferenceErrorEnum.FeedAttributeReferenceError feed_attribute_reference_error = 36; - - // The reasons for the function error - FunctionErrorEnum.FunctionError function_error = 37; - - // The reasons for the function parsing error - FunctionParsingErrorEnum.FunctionParsingError function_parsing_error = 38; - - // The reasons for the id error - IdErrorEnum.IdError id_error = 39; - - // The reasons for the image error - ImageErrorEnum.ImageError image_error = 40; - - // The reasons for the language code error - LanguageCodeErrorEnum.LanguageCodeError language_code_error = 110; - - // The reasons for the media bundle error - MediaBundleErrorEnum.MediaBundleError media_bundle_error = 42; - - // The reasons for media uploading errors. - MediaUploadErrorEnum.MediaUploadError media_upload_error = 116; - - // The reasons for the media file error - MediaFileErrorEnum.MediaFileError media_file_error = 86; - - // The reasons for the multiplier error - MultiplierErrorEnum.MultiplierError multiplier_error = 44; - - // The reasons for the new resource creation error - NewResourceCreationErrorEnum.NewResourceCreationError new_resource_creation_error = 45; - - // The reasons for the not empty error - NotEmptyErrorEnum.NotEmptyError not_empty_error = 46; - - // The reasons for the null error - NullErrorEnum.NullError null_error = 47; - - // The reasons for the operator error - OperatorErrorEnum.OperatorError operator_error = 48; - - // The reasons for the range error - RangeErrorEnum.RangeError range_error = 49; - - // The reasons for error in applying a recommendation - RecommendationErrorEnum.RecommendationError recommendation_error = 58; - - // The reasons for the region code error - RegionCodeErrorEnum.RegionCodeError region_code_error = 51; - - // The reasons for the setting error - SettingErrorEnum.SettingError setting_error = 52; - - // The reasons for the string format error - StringFormatErrorEnum.StringFormatError string_format_error = 53; - - // The reasons for the string length error - StringLengthErrorEnum.StringLengthError string_length_error = 54; - - // The reasons for the operation access denied error - OperationAccessDeniedErrorEnum.OperationAccessDeniedError operation_access_denied_error = 55; - - // The reasons for the resource access denied error - ResourceAccessDeniedErrorEnum.ResourceAccessDeniedError resource_access_denied_error = 56; - - // The reasons for the resource count limit exceeded error - ResourceCountLimitExceededErrorEnum.ResourceCountLimitExceededError resource_count_limit_exceeded_error = 57; - - // The reasons for YouTube video registration errors. - YoutubeVideoRegistrationErrorEnum.YoutubeVideoRegistrationError youtube_video_registration_error = 117; - - // The reasons for the ad group bid modifier error - AdGroupBidModifierErrorEnum.AdGroupBidModifierError ad_group_bid_modifier_error = 59; - - // The reasons for the context error - ContextErrorEnum.ContextError context_error = 60; - - // The reasons for the field error - FieldErrorEnum.FieldError field_error = 61; - - // The reasons for the shared set error - SharedSetErrorEnum.SharedSetError shared_set_error = 62; - - // The reasons for the shared criterion error - SharedCriterionErrorEnum.SharedCriterionError shared_criterion_error = 63; - - // The reasons for the campaign shared set error - CampaignSharedSetErrorEnum.CampaignSharedSetError campaign_shared_set_error = 64; - - // The reasons for the conversion action error - ConversionActionErrorEnum.ConversionActionError conversion_action_error = 65; - - // The reasons for the conversion adjustment upload error - ConversionAdjustmentUploadErrorEnum.ConversionAdjustmentUploadError conversion_adjustment_upload_error = 115; - - // The reasons for the conversion upload error - ConversionUploadErrorEnum.ConversionUploadError conversion_upload_error = 111; - - // The reasons for the header error. - HeaderErrorEnum.HeaderError header_error = 66; - - // The reasons for the database error. - DatabaseErrorEnum.DatabaseError database_error = 67; - - // The reasons for the policy finding error. - PolicyFindingErrorEnum.PolicyFindingError policy_finding_error = 68; - - // The reason for enum error. - EnumErrorEnum.EnumError enum_error = 70; - - // The reason for keyword plan error. - KeywordPlanErrorEnum.KeywordPlanError keyword_plan_error = 71; - - // The reason for keyword plan campaign error. - KeywordPlanCampaignErrorEnum.KeywordPlanCampaignError keyword_plan_campaign_error = 72; - - // The reason for keyword plan negative keyword error. - KeywordPlanNegativeKeywordErrorEnum.KeywordPlanNegativeKeywordError keyword_plan_negative_keyword_error = 73; - - // The reason for keyword plan ad group error. - KeywordPlanAdGroupErrorEnum.KeywordPlanAdGroupError keyword_plan_ad_group_error = 74; - - // The reason for keyword plan keyword error. - KeywordPlanKeywordErrorEnum.KeywordPlanKeywordError keyword_plan_keyword_error = 75; - - // The reason for keyword idea error. - KeywordPlanIdeaErrorEnum.KeywordPlanIdeaError keyword_plan_idea_error = 76; - - // The reasons for account budget proposal errors. - AccountBudgetProposalErrorEnum.AccountBudgetProposalError account_budget_proposal_error = 77; - - // The reasons for the user list error - UserListErrorEnum.UserListError user_list_error = 78; - - // The reasons for the change status error - ChangeStatusErrorEnum.ChangeStatusError change_status_error = 79; - - // The reasons for the feed error - FeedErrorEnum.FeedError feed_error = 80; - - // The reasons for the geo target constant suggestion error. - GeoTargetConstantSuggestionErrorEnum.GeoTargetConstantSuggestionError geo_target_constant_suggestion_error = 81; - - // The reasons for the campaign draft error - CampaignDraftErrorEnum.CampaignDraftError campaign_draft_error = 82; - - // The reasons for the feed item error - FeedItemErrorEnum.FeedItemError feed_item_error = 83; - - // The reason for the label error. - LabelErrorEnum.LabelError label_error = 84; - - // The reasons for the billing setup error - BillingSetupErrorEnum.BillingSetupError billing_setup_error = 87; - - // The reasons for the customer client link error - CustomerClientLinkErrorEnum.CustomerClientLinkError customer_client_link_error = 88; - - // The reasons for the customer manager link error - CustomerManagerLinkErrorEnum.CustomerManagerLinkError customer_manager_link_error = 91; - - // The reasons for the feed mapping error - FeedMappingErrorEnum.FeedMappingError feed_mapping_error = 92; - - // The reasons for the customer feed error - CustomerFeedErrorEnum.CustomerFeedError customer_feed_error = 93; - - // The reasons for the ad group feed error - AdGroupFeedErrorEnum.AdGroupFeedError ad_group_feed_error = 94; - - // The reasons for the campaign feed error - CampaignFeedErrorEnum.CampaignFeedError campaign_feed_error = 96; - - // The reasons for the custom interest error - CustomInterestErrorEnum.CustomInterestError custom_interest_error = 97; - - // The reasons for the campaign experiment error - CampaignExperimentErrorEnum.CampaignExperimentError campaign_experiment_error = 98; - - // The reasons for the extension feed item error - ExtensionFeedItemErrorEnum.ExtensionFeedItemError extension_feed_item_error = 100; - - // The reasons for the ad parameter error - AdParameterErrorEnum.AdParameterError ad_parameter_error = 101; - - // The reasons for the feed item validation error - FeedItemValidationErrorEnum.FeedItemValidationError feed_item_validation_error = 102; - - // The reasons for the extension setting error - ExtensionSettingErrorEnum.ExtensionSettingError extension_setting_error = 103; - - // The reasons for the feed item target error - FeedItemTargetErrorEnum.FeedItemTargetError feed_item_target_error = 104; - - // The reasons for the policy violation error - PolicyViolationErrorEnum.PolicyViolationError policy_violation_error = 105; - - // The reasons for the mutate job error - MutateJobErrorEnum.MutateJobError mutate_job_error = 108; - - // The reasons for the mutate job error - PartialFailureErrorEnum.PartialFailureError partial_failure_error = 112; - - // The reasons for the policy validation parameter error - PolicyValidationParameterErrorEnum.PolicyValidationParameterError policy_validation_parameter_error = 114; - - // The reasons for the size limit error - SizeLimitErrorEnum.SizeLimitError size_limit_error = 118; - - // The reasons for the not whitelisted error - NotWhitelistedErrorEnum.NotWhitelistedError not_whitelisted_error = 120; - - // The reasons for the manager link error - ManagerLinkErrorEnum.ManagerLinkError manager_link_error = 121; - - // The reasons for the currency code error - CurrencyCodeErrorEnum.CurrencyCodeError currency_code_error = 122; - - // The reasons for the access invitation error - AccessInvitationErrorEnum.AccessInvitationError access_invitation_error = 124; - - // The reasons for the reach plan error - ReachPlanErrorEnum.ReachPlanError reach_plan_error = 125; - - // The reasons for the invoice error - InvoiceErrorEnum.InvoiceError invoice_error = 126; - } -} - -// Describes the part of the request proto that caused the error. -message ErrorLocation { - // A part of a field path. - message FieldPathElement { - // The name of a field or a oneof - string field_name = 1; - - // If field_name is a repeated field, this is the element that failed - google.protobuf.Int64Value index = 2; - } - - // A field path that indicates which field was invalid in the request. - repeated FieldPathElement field_path_elements = 2; -} - -// Additional error details. -message ErrorDetails { - // The error code that should have been returned, but wasn't. This is used - // when the error code is not published in the client specified version. - string unpublished_error_code = 1; - - // Describes an ad policy violation. - PolicyViolationDetails policy_violation_details = 2; - - // Describes policy violation findings. - PolicyFindingDetails policy_finding_details = 3; -} - -// Error returned as part of a mutate response. -// This error indicates single policy violation by some text -// in one of the fields. -message PolicyViolationDetails { - // Human readable description of policy violation. - string external_policy_description = 2; - - // Unique identifier for this violation. - // If policy is exemptible, this key may be used to request exemption. - google.ads.googleads.v2.common.PolicyViolationKey key = 4; - - // Human readable name of the policy. - string external_policy_name = 5; - - // Whether user can file an exemption request for this violation. - bool is_exemptible = 6; -} - -// Error returned as part of a mutate response. -// This error indicates one or more policy findings in the fields of a -// resource. -message PolicyFindingDetails { - // The list of policy topics for the resource. Contains the PROHIBITED or - // FULLY_LIMITED policy topic entries that prevented the resource from being - // saved (among any other entries the resource may also have). - repeated google.ads.googleads.v2.common.PolicyTopicEntry policy_topic_entries = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/extension_feed_item_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/extension_feed_item_error.proto deleted file mode 100644 index 10bece5b8..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/extension_feed_item_error.proto +++ /dev/null @@ -1,189 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "ExtensionFeedItemErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing extension feed item errors. - -// Container for enum describing possible extension feed item error. -message ExtensionFeedItemErrorEnum { - // Enum describing possible extension feed item errors. - enum ExtensionFeedItemError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Value is not within the accepted range. - VALUE_OUT_OF_RANGE = 2; - - // Url list is too long. - URL_LIST_TOO_LONG = 3; - - // Cannot have a geo targeting restriction without having geo targeting. - CANNOT_HAVE_RESTRICTION_ON_EMPTY_GEO_TARGETING = 4; - - // Cannot simultaneously set sitelink field with final urls. - CANNOT_SET_WITH_FINAL_URLS = 5; - - // Must set field with final urls. - CANNOT_SET_WITHOUT_FINAL_URLS = 6; - - // Phone number for a call extension is invalid. - INVALID_PHONE_NUMBER = 7; - - // Phone number for a call extension is not supported for the given country - // code. - PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY = 8; - - // A carrier specific number in short format is not allowed for call - // extensions. - CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED = 9; - - // Premium rate numbers are not allowed for call extensions. - PREMIUM_RATE_NUMBER_NOT_ALLOWED = 10; - - // Phone number type for a call extension is not allowed. - // For example, personal number is not allowed for a call extension in - // most regions. - DISALLOWED_NUMBER_TYPE = 11; - - // Phone number for a call extension does not meet domestic format - // requirements. - INVALID_DOMESTIC_PHONE_NUMBER_FORMAT = 12; - - // Vanity phone numbers (i.e. those including letters) are not allowed for - // call extensions. - VANITY_PHONE_NUMBER_NOT_ALLOWED = 13; - - // Call conversion action provided for a call extension is invalid. - INVALID_CALL_CONVERSION_ACTION = 14; - - // For a call extension, the customer is not on the allow-list for call - // tracking. - CUSTOMER_NOT_WHITELISTED_FOR_CALLTRACKING = 15; - - // Call tracking is not supported for the given country for a call - // extension. - CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY = 16; - - // Customer hasn't consented for call recording, which is required for - // creating/updating call feed items. Please see - // https://support.google.com/google-ads/answer/7412639. - CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED = 17; - - // App id provided for an app extension is invalid. - INVALID_APP_ID = 18; - - // Quotation marks present in the review text for a review extension. - QUOTES_IN_REVIEW_EXTENSION_SNIPPET = 19; - - // Hyphen character present in the review text for a review extension. - HYPHENS_IN_REVIEW_EXTENSION_SNIPPET = 20; - - // A denylisted review source name or url was provided for a review - // extension. - REVIEW_EXTENSION_SOURCE_INELIGIBLE = 21; - - // Review source name should not be found in the review text. - SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT = 22; - - // Inconsistent currency codes. - INCONSISTENT_CURRENCY_CODES = 23; - - // Price extension cannot have duplicated headers. - PRICE_EXTENSION_HAS_DUPLICATED_HEADERS = 24; - - // Price item cannot have duplicated header and description. - PRICE_ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION = 25; - - // Price extension has too few items. - PRICE_EXTENSION_HAS_TOO_FEW_ITEMS = 26; - - // Price extension has too many items. - PRICE_EXTENSION_HAS_TOO_MANY_ITEMS = 27; - - // The input value is not currently supported. - UNSUPPORTED_VALUE = 28; - - // The input value is not currently supported in the selected language of an - // extension. - UNSUPPORTED_VALUE_IN_SELECTED_LANGUAGE = 29; - - // Unknown or unsupported device preference. - INVALID_DEVICE_PREFERENCE = 30; - - // Invalid feed item schedule end time (i.e., endHour = 24 and endMinute != - // 0). - INVALID_SCHEDULE_END = 31; - - // Date time zone does not match the account's time zone. - DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE = 32; - - // Invalid structured snippet header. - INVALID_SNIPPETS_HEADER = 33; - - // Cannot operate on removed feed item. - CANNOT_OPERATE_ON_REMOVED_FEED_ITEM = 34; - - // Phone number not supported when call tracking enabled for country. - PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY = 35; - - // Cannot set call_conversion_action while call_conversion_tracking_enabled - // is set to true. - CONFLICTING_CALL_CONVERSION_SETTINGS = 36; - - // The type of the input extension feed item doesn't match the existing - // extension feed item. - EXTENSION_TYPE_MISMATCH = 37; - - // The oneof field extension i.e. subtype of extension feed item is - // required. - EXTENSION_SUBTYPE_REQUIRED = 38; - - // The referenced feed item is not mapped to a supported extension type. - EXTENSION_TYPE_UNSUPPORTED = 39; - - // Cannot operate on a Feed with more than one active FeedMapping. - CANNOT_OPERATE_ON_FEED_WITH_MULTIPLE_MAPPINGS = 40; - - // Cannot operate on a Feed that has key attributes. - CANNOT_OPERATE_ON_FEED_WITH_KEY_ATTRIBUTES = 41; - - // Input price is not in a valid format. - INVALID_PRICE_FORMAT = 42; - - // The promotion time is invalid. - PROMOTION_INVALID_TIME = 43; - - // This field has too many decimal places specified. - TOO_MANY_DECIMAL_PLACES_SPECIFIED = 44; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/extension_setting_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/extension_setting_error.proto deleted file mode 100644 index 0672f9a37..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/extension_setting_error.proto +++ /dev/null @@ -1,258 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "ExtensionSettingErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing extension setting validation errors. - -// Container for enum describing validation errors of extension settings. -message ExtensionSettingErrorEnum { - // Enum describing possible extension setting errors. - enum ExtensionSettingError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // A platform restriction was provided without input extensions or existing - // extensions. - EXTENSIONS_REQUIRED = 2; - - // The provided feed type does not correspond to the provided extensions. - FEED_TYPE_EXTENSION_TYPE_MISMATCH = 3; - - // The provided feed type cannot be used. - INVALID_FEED_TYPE = 4; - - // The provided feed type cannot be used at the customer level. - INVALID_FEED_TYPE_FOR_CUSTOMER_EXTENSION_SETTING = 5; - - // Cannot change a feed item field on a CREATE operation. - CANNOT_CHANGE_FEED_ITEM_ON_CREATE = 6; - - // Cannot update an extension that is not already in this setting. - CANNOT_UPDATE_NEWLY_CREATED_EXTENSION = 7; - - // There is no existing AdGroupExtensionSetting for this type. - NO_EXISTING_AD_GROUP_EXTENSION_SETTING_FOR_TYPE = 8; - - // There is no existing CampaignExtensionSetting for this type. - NO_EXISTING_CAMPAIGN_EXTENSION_SETTING_FOR_TYPE = 9; - - // There is no existing CustomerExtensionSetting for this type. - NO_EXISTING_CUSTOMER_EXTENSION_SETTING_FOR_TYPE = 10; - - // The AdGroupExtensionSetting already exists. UPDATE should be used to - // modify the existing AdGroupExtensionSetting. - AD_GROUP_EXTENSION_SETTING_ALREADY_EXISTS = 11; - - // The CampaignExtensionSetting already exists. UPDATE should be used to - // modify the existing CampaignExtensionSetting. - CAMPAIGN_EXTENSION_SETTING_ALREADY_EXISTS = 12; - - // The CustomerExtensionSetting already exists. UPDATE should be used to - // modify the existing CustomerExtensionSetting. - CUSTOMER_EXTENSION_SETTING_ALREADY_EXISTS = 13; - - // An active ad group feed already exists for this place holder type. - AD_GROUP_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE = 14; - - // An active campaign feed already exists for this place holder type. - CAMPAIGN_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE = 15; - - // An active customer feed already exists for this place holder type. - CUSTOMER_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE = 16; - - // Value is not within the accepted range. - VALUE_OUT_OF_RANGE = 17; - - // Cannot simultaneously set specified field with final urls. - CANNOT_SET_FIELD_WITH_FINAL_URLS = 18; - - // Must set field with final urls. - FINAL_URLS_NOT_SET = 19; - - // Phone number for a call extension is invalid. - INVALID_PHONE_NUMBER = 20; - - // Phone number for a call extension is not supported for the given country - // code. - PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY = 21; - - // A carrier specific number in short format is not allowed for call - // extensions. - CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED = 22; - - // Premium rate numbers are not allowed for call extensions. - PREMIUM_RATE_NUMBER_NOT_ALLOWED = 23; - - // Phone number type for a call extension is not allowed. - DISALLOWED_NUMBER_TYPE = 24; - - // Phone number for a call extension does not meet domestic format - // requirements. - INVALID_DOMESTIC_PHONE_NUMBER_FORMAT = 25; - - // Vanity phone numbers (i.e. those including letters) are not allowed for - // call extensions. - VANITY_PHONE_NUMBER_NOT_ALLOWED = 26; - - // Country code provided for a call extension is invalid. - INVALID_COUNTRY_CODE = 27; - - // Call conversion type id provided for a call extension is invalid. - INVALID_CALL_CONVERSION_TYPE_ID = 28; - - // For a call extension, the customer is not on the allow-list for call - // tracking. - CUSTOMER_NOT_WHITELISTED_FOR_CALLTRACKING = 29; - - // Call tracking is not supported for the given country for a call - // extension. - CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY = 30; - - // App id provided for an app extension is invalid. - INVALID_APP_ID = 31; - - // Quotation marks present in the review text for a review extension. - QUOTES_IN_REVIEW_EXTENSION_SNIPPET = 32; - - // Hyphen character present in the review text for a review extension. - HYPHENS_IN_REVIEW_EXTENSION_SNIPPET = 33; - - // A blocked review source name or url was provided for a review - // extension. - REVIEW_EXTENSION_SOURCE_NOT_ELIGIBLE = 34; - - // Review source name should not be found in the review text. - SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT = 35; - - // Field must be set. - MISSING_FIELD = 36; - - // Inconsistent currency codes. - INCONSISTENT_CURRENCY_CODES = 37; - - // Price extension cannot have duplicated headers. - PRICE_EXTENSION_HAS_DUPLICATED_HEADERS = 38; - - // Price item cannot have duplicated header and description. - PRICE_ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION = 39; - - // Price extension has too few items - PRICE_EXTENSION_HAS_TOO_FEW_ITEMS = 40; - - // Price extension has too many items - PRICE_EXTENSION_HAS_TOO_MANY_ITEMS = 41; - - // The input value is not currently supported. - UNSUPPORTED_VALUE = 42; - - // Unknown or unsupported device preference. - INVALID_DEVICE_PREFERENCE = 43; - - // Invalid feed item schedule end time (i.e., endHour = 24 and - // endMinute != 0). - INVALID_SCHEDULE_END = 45; - - // Date time zone does not match the account's time zone. - DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE = 47; - - // Overlapping feed item schedule times (e.g., 7-10AM and 8-11AM) are not - // allowed. - OVERLAPPING_SCHEDULES_NOT_ALLOWED = 48; - - // Feed item schedule end time must be after start time. - SCHEDULE_END_NOT_AFTER_START = 49; - - // There are too many feed item schedules per day. - TOO_MANY_SCHEDULES_PER_DAY = 50; - - // Cannot edit the same extension feed item more than once in the same - // request. - DUPLICATE_EXTENSION_FEED_ITEM_EDIT = 51; - - // Invalid structured snippet header. - INVALID_SNIPPETS_HEADER = 52; - - // Phone number with call tracking enabled is not supported for the - // specified country. - PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY = 53; - - // The targeted adgroup must belong to the targeted campaign. - CAMPAIGN_TARGETING_MISMATCH = 54; - - // The feed used by the ExtensionSetting is removed and cannot be operated - // on. Remove the ExtensionSetting to allow a new one to be created using - // an active feed. - CANNOT_OPERATE_ON_REMOVED_FEED = 55; - - // The ExtensionFeedItem type is required for this operation. - EXTENSION_TYPE_REQUIRED = 56; - - // The matching function that links the extension feed to the customer, - // campaign, or ad group is not compatible with the ExtensionSetting - // services. - INCOMPATIBLE_UNDERLYING_MATCHING_FUNCTION = 57; - - // Start date must be before end date. - START_DATE_AFTER_END_DATE = 58; - - // Input price is not in a valid format. - INVALID_PRICE_FORMAT = 59; - - // The promotion time is invalid. - PROMOTION_INVALID_TIME = 60; - - // Cannot set both percent discount and money discount fields. - PROMOTION_CANNOT_SET_PERCENT_DISCOUNT_AND_MONEY_DISCOUNT = 61; - - // Cannot set both promotion code and orders over amount fields. - PROMOTION_CANNOT_SET_PROMOTION_CODE_AND_ORDERS_OVER_AMOUNT = 62; - - // This field has too many decimal places specified. - TOO_MANY_DECIMAL_PLACES_SPECIFIED = 63; - - // The language code is not valid. - INVALID_LANGUAGE_CODE = 64; - - // The language is not supported. - UNSUPPORTED_LANGUAGE = 65; - - // Customer hasn't consented for call recording, which is required for - // adding/updating call extensions. Please see - // https://support.google.com/google-ads/answer/7412639. - CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED = 66; - - // The UPDATE operation does not specify any fields other than the resource - // name in the update mask. - EXTENSION_SETTING_UPDATE_IS_A_NOOP = 67; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/feed_attribute_reference_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/feed_attribute_reference_error.proto deleted file mode 100644 index dcd03b9d5..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/feed_attribute_reference_error.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "FeedAttributeReferenceErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing feed attribute reference errors. - -// Container for enum describing possible feed attribute reference errors. -message FeedAttributeReferenceErrorEnum { - // Enum describing possible feed attribute reference errors. - enum FeedAttributeReferenceError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // A feed referenced by ID has been removed. - CANNOT_REFERENCE_REMOVED_FEED = 2; - - // There is no enabled feed with the given name. - INVALID_FEED_NAME = 3; - - // There is no feed attribute in an enabled feed with the given name. - INVALID_FEED_ATTRIBUTE_NAME = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/feed_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/feed_error.proto deleted file mode 100644 index 4a1510482..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/feed_error.proto +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "FeedErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing feed errors. - -// Container for enum describing possible feed errors. -message FeedErrorEnum { - // Enum describing possible feed errors. - enum FeedError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The names of the FeedAttributes must be unique. - ATTRIBUTE_NAMES_NOT_UNIQUE = 2; - - // The attribute list must be an exact copy of the existing list if the - // attribute ID's are present. - ATTRIBUTES_DO_NOT_MATCH_EXISTING_ATTRIBUTES = 3; - - // Cannot specify USER origin for a system generated feed. - CANNOT_SPECIFY_USER_ORIGIN_FOR_SYSTEM_FEED = 4; - - // Cannot specify GOOGLE origin for a non-system generated feed. - CANNOT_SPECIFY_GOOGLE_ORIGIN_FOR_NON_SYSTEM_FEED = 5; - - // Cannot specify feed attributes for system feed. - CANNOT_SPECIFY_FEED_ATTRIBUTES_FOR_SYSTEM_FEED = 6; - - // Cannot update FeedAttributes on feed with origin GOOGLE. - CANNOT_UPDATE_FEED_ATTRIBUTES_WITH_ORIGIN_GOOGLE = 7; - - // The given ID refers to a removed Feed. Removed Feeds are immutable. - FEED_REMOVED = 8; - - // The origin of the feed is not valid for the client. - INVALID_ORIGIN_VALUE = 9; - - // A user can only create and modify feeds with USER origin. - FEED_ORIGIN_IS_NOT_USER = 10; - - // Invalid auth token for the given email. - INVALID_AUTH_TOKEN_FOR_EMAIL = 11; - - // Invalid email specified. - INVALID_EMAIL = 12; - - // Feed name matches that of another active Feed. - DUPLICATE_FEED_NAME = 13; - - // Name of feed is not allowed. - INVALID_FEED_NAME = 14; - - // Missing OAuthInfo. - MISSING_OAUTH_INFO = 15; - - // New FeedAttributes must not affect the unique key. - NEW_ATTRIBUTE_CANNOT_BE_PART_OF_UNIQUE_KEY = 16; - - // Too many FeedAttributes for a Feed. - TOO_MANY_ATTRIBUTES = 17; - - // The business account is not valid. - INVALID_BUSINESS_ACCOUNT = 18; - - // Business account cannot access Google My Business account. - BUSINESS_ACCOUNT_CANNOT_ACCESS_LOCATION_ACCOUNT = 19; - - // Invalid chain ID provided for affiliate location feed. - INVALID_AFFILIATE_CHAIN_ID = 20; - - // There is already a feed with the given system feed generation data. - DUPLICATE_SYSTEM_FEED = 21; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/feed_item_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/feed_item_error.proto deleted file mode 100644 index c85c05a8e..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/feed_item_error.proto +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "FeedItemErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing feed item errors. - -// Container for enum describing possible feed item errors. -message FeedItemErrorEnum { - // Enum describing possible feed item errors. - enum FeedItemError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Cannot convert the feed attribute value from string to its real type. - CANNOT_CONVERT_ATTRIBUTE_VALUE_FROM_STRING = 2; - - // Cannot operate on removed feed item. - CANNOT_OPERATE_ON_REMOVED_FEED_ITEM = 3; - - // Date time zone does not match the account's time zone. - DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE = 4; - - // Feed item with the key attributes could not be found. - KEY_ATTRIBUTES_NOT_FOUND = 5; - - // Url feed attribute value is not valid. - INVALID_URL = 6; - - // Some key attributes are missing. - MISSING_KEY_ATTRIBUTES = 7; - - // Feed item has same key attributes as another feed item. - KEY_ATTRIBUTES_NOT_UNIQUE = 8; - - // Cannot modify key attributes on an existing feed item. - CANNOT_MODIFY_KEY_ATTRIBUTE_VALUE = 9; - - // The feed attribute value is too large. - SIZE_TOO_LARGE_FOR_MULTI_VALUE_ATTRIBUTE = 10; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/feed_item_target_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/feed_item_target_error.proto deleted file mode 100644 index 8de9235d3..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/feed_item_target_error.proto +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "FeedItemTargetErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing feed item target errors. - -// Container for enum describing possible feed item target errors. -message FeedItemTargetErrorEnum { - // Enum describing possible feed item target errors. - enum FeedItemTargetError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // On CREATE, the FeedItemTarget must have a populated field in the oneof - // target. - MUST_SET_TARGET_ONEOF_ON_CREATE = 2; - - // The specified feed item target already exists, so it cannot be added. - FEED_ITEM_TARGET_ALREADY_EXISTS = 3; - - // The schedules for a given feed item cannot overlap. - FEED_ITEM_SCHEDULES_CANNOT_OVERLAP = 4; - - // Too many targets of a given type were added for a single feed item. - TARGET_LIMIT_EXCEEDED_FOR_GIVEN_TYPE = 5; - - // Too many AdSchedules are enabled for the feed item for the given day. - TOO_MANY_SCHEDULES_PER_DAY = 6; - - // A feed item may either have an enabled campaign target or an enabled ad - // group target. - CANNOT_HAVE_ENABLED_CAMPAIGN_AND_ENABLED_AD_GROUP_TARGETS = 7; - - // Duplicate ad schedules aren't allowed. - DUPLICATE_AD_SCHEDULE = 8; - - // Duplicate keywords aren't allowed. - DUPLICATE_KEYWORD = 9; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/feed_item_validation_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/feed_item_validation_error.proto deleted file mode 100644 index c21d5439b..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/feed_item_validation_error.proto +++ /dev/null @@ -1,353 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "FeedItemValidationErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing feed item validation errors. - -// Container for enum describing possible validation errors of a feed item. -message FeedItemValidationErrorEnum { - // The possible validation errors of a feed item. - enum FeedItemValidationError { - // No value has been specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // String is too short. - STRING_TOO_SHORT = 2; - - // String is too long. - STRING_TOO_LONG = 3; - - // Value is not provided. - VALUE_NOT_SPECIFIED = 4; - - // Phone number format is invalid for region. - INVALID_DOMESTIC_PHONE_NUMBER_FORMAT = 5; - - // String does not represent a phone number. - INVALID_PHONE_NUMBER = 6; - - // Phone number format is not compatible with country code. - PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY = 7; - - // Premium rate number is not allowed. - PREMIUM_RATE_NUMBER_NOT_ALLOWED = 8; - - // Phone number type is not allowed. - DISALLOWED_NUMBER_TYPE = 9; - - // Specified value is outside of the valid range. - VALUE_OUT_OF_RANGE = 10; - - // Call tracking is not supported in the selected country. - CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY = 11; - - // Customer is not on the allow-list for call tracking. - CUSTOMER_NOT_WHITELISTED_FOR_CALLTRACKING = 12; - - // Country code is invalid. - INVALID_COUNTRY_CODE = 13; - - // The specified mobile app id is invalid. - INVALID_APP_ID = 14; - - // Some required field attributes are missing. - MISSING_ATTRIBUTES_FOR_FIELDS = 15; - - // Invalid email button type for email extension. - INVALID_TYPE_ID = 16; - - // Email address is invalid. - INVALID_EMAIL_ADDRESS = 17; - - // The HTTPS URL in email extension is invalid. - INVALID_HTTPS_URL = 18; - - // Delivery address is missing from email extension. - MISSING_DELIVERY_ADDRESS = 19; - - // FeedItem scheduling start date comes after end date. - START_DATE_AFTER_END_DATE = 20; - - // FeedItem scheduling start time is missing. - MISSING_FEED_ITEM_START_TIME = 21; - - // FeedItem scheduling end time is missing. - MISSING_FEED_ITEM_END_TIME = 22; - - // Cannot compute system attributes on a FeedItem that has no FeedItemId. - MISSING_FEED_ITEM_ID = 23; - - // Call extension vanity phone numbers are not supported. - VANITY_PHONE_NUMBER_NOT_ALLOWED = 24; - - // Invalid review text. - INVALID_REVIEW_EXTENSION_SNIPPET = 25; - - // Invalid format for numeric value in ad parameter. - INVALID_NUMBER_FORMAT = 26; - - // Invalid format for date value in ad parameter. - INVALID_DATE_FORMAT = 27; - - // Invalid format for price value in ad parameter. - INVALID_PRICE_FORMAT = 28; - - // Unrecognized type given for value in ad parameter. - UNKNOWN_PLACEHOLDER_FIELD = 29; - - // Enhanced sitelinks must have both description lines specified. - MISSING_ENHANCED_SITELINK_DESCRIPTION_LINE = 30; - - // Review source is ineligible. - REVIEW_EXTENSION_SOURCE_INELIGIBLE = 31; - - // Review text cannot contain hyphens or dashes. - HYPHENS_IN_REVIEW_EXTENSION_SNIPPET = 32; - - // Review text cannot contain double quote characters. - DOUBLE_QUOTES_IN_REVIEW_EXTENSION_SNIPPET = 33; - - // Review text cannot contain quote characters. - QUOTES_IN_REVIEW_EXTENSION_SNIPPET = 34; - - // Parameters are encoded in the wrong format. - INVALID_FORM_ENCODED_PARAMS = 35; - - // URL parameter name must contain only letters, numbers, underscores, and - // dashes. - INVALID_URL_PARAMETER_NAME = 36; - - // Cannot find address location. - NO_GEOCODING_RESULT = 37; - - // Review extension text has source name. - SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT = 38; - - // Some phone numbers can be shorter than usual. Some of these short numbers - // are carrier-specific, and we disallow those in ad extensions because they - // will not be available to all users. - CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED = 39; - - // Triggered when a request references a placeholder field id that does not - // exist. - INVALID_PLACEHOLDER_FIELD_ID = 40; - - // URL contains invalid ValueTrack tags or format. - INVALID_URL_TAG = 41; - - // Provided list exceeds acceptable size. - LIST_TOO_LONG = 42; - - // Certain combinations of attributes aren't allowed to be specified in the - // same feed item. - INVALID_ATTRIBUTES_COMBINATION = 43; - - // An attribute has the same value repeatedly. - DUPLICATE_VALUES = 44; - - // Advertisers can link a conversion action with a phone number to indicate - // that sufficiently long calls forwarded to that phone number should be - // counted as conversions of the specified type. This is an error message - // indicating that the conversion action specified is invalid (e.g., the - // conversion action does not exist within the appropriate Google Ads - // account, or it is a type of conversion not appropriate to phone call - // conversions). - INVALID_CALL_CONVERSION_ACTION_ID = 45; - - // Tracking template requires final url to be set. - CANNOT_SET_WITHOUT_FINAL_URLS = 46; - - // An app id was provided that doesn't exist in the given app store. - APP_ID_DOESNT_EXIST_IN_APP_STORE = 47; - - // Invalid U2 final url. - INVALID_FINAL_URL = 48; - - // Invalid U2 tracking url. - INVALID_TRACKING_URL = 49; - - // Final URL should start from App download URL. - INVALID_FINAL_URL_FOR_APP_DOWNLOAD_URL = 50; - - // List provided is too short. - LIST_TOO_SHORT = 51; - - // User Action field has invalid value. - INVALID_USER_ACTION = 52; - - // Type field has invalid value. - INVALID_TYPE_NAME = 53; - - // Change status for event is invalid. - INVALID_EVENT_CHANGE_STATUS = 54; - - // The header of a structured snippets extension is not one of the valid - // headers. - INVALID_SNIPPETS_HEADER = 55; - - // Android app link is not formatted correctly - INVALID_ANDROID_APP_LINK = 56; - - // Phone number incompatible with call tracking for country. - NUMBER_TYPE_WITH_CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY = 57; - - // The input is identical to a reserved keyword - RESERVED_KEYWORD_OTHER = 58; - - // Each option label in the message extension must be unique. - DUPLICATE_OPTION_LABELS = 59; - - // Each option prefill in the message extension must be unique. - DUPLICATE_OPTION_PREFILLS = 60; - - // In message extensions, the number of optional labels and optional - // prefills must be the same. - UNEQUAL_LIST_LENGTHS = 61; - - // All currency codes in an ad extension must be the same. - INCONSISTENT_CURRENCY_CODES = 62; - - // Headers in price extension are not unique. - PRICE_EXTENSION_HAS_DUPLICATED_HEADERS = 63; - - // Header and description in an item are the same. - ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION = 64; - - // Price extension has too few items. - PRICE_EXTENSION_HAS_TOO_FEW_ITEMS = 65; - - // The given value is not supported. - UNSUPPORTED_VALUE = 66; - - // Invalid final mobile url. - INVALID_FINAL_MOBILE_URL = 67; - - // The given string value of Label contains invalid characters - INVALID_KEYWORDLESS_AD_RULE_LABEL = 68; - - // The given URL contains value track parameters. - VALUE_TRACK_PARAMETER_NOT_SUPPORTED = 69; - - // The given value is not supported in the selected language of an - // extension. - UNSUPPORTED_VALUE_IN_SELECTED_LANGUAGE = 70; - - // The iOS app link is not formatted correctly. - INVALID_IOS_APP_LINK = 71; - - // iOS app link or iOS app store id is missing. - MISSING_IOS_APP_LINK_OR_IOS_APP_STORE_ID = 72; - - // Promotion time is invalid. - PROMOTION_INVALID_TIME = 73; - - // Both the percent off and money amount off fields are set. - PROMOTION_CANNOT_SET_PERCENT_OFF_AND_MONEY_AMOUNT_OFF = 74; - - // Both the promotion code and orders over amount fields are set. - PROMOTION_CANNOT_SET_PROMOTION_CODE_AND_ORDERS_OVER_AMOUNT = 75; - - // Too many decimal places are specified. - TOO_MANY_DECIMAL_PLACES_SPECIFIED = 76; - - // Ad Customizers are present and not allowed. - AD_CUSTOMIZERS_NOT_ALLOWED = 77; - - // Language code is not valid. - INVALID_LANGUAGE_CODE = 78; - - // Language is not supported. - UNSUPPORTED_LANGUAGE = 79; - - // IF Function is present and not allowed. - IF_FUNCTION_NOT_ALLOWED = 80; - - // Final url suffix is not valid. - INVALID_FINAL_URL_SUFFIX = 81; - - // Final url suffix contains an invalid tag. - INVALID_TAG_IN_FINAL_URL_SUFFIX = 82; - - // Final url suffix is formatted incorrectly. - INVALID_FINAL_URL_SUFFIX_FORMAT = 83; - - // Consent for call recording, which is required for the use of call - // extensions, was not provided by the advertiser. Please see - // https://support.google.com/google-ads/answer/7412639. - CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED = 84; - - // Multiple message delivery options are set. - ONLY_ONE_DELIVERY_OPTION_IS_ALLOWED = 85; - - // No message delivery option is set. - NO_DELIVERY_OPTION_IS_SET = 86; - - // String value of conversion reporting state field is not valid. - INVALID_CONVERSION_REPORTING_STATE = 87; - - // Image size is not right. - IMAGE_SIZE_WRONG = 88; - - // Email delivery is not supported in the country specified in the country - // code field. - EMAIL_DELIVERY_NOT_AVAILABLE_IN_COUNTRY = 89; - - // Auto reply is not supported in the country specified in the country code - // field. - AUTO_REPLY_NOT_AVAILABLE_IN_COUNTRY = 90; - - // Invalid value specified for latitude. - INVALID_LATITUDE_VALUE = 91; - - // Invalid value specified for longitude. - INVALID_LONGITUDE_VALUE = 92; - - // Too many label fields provided. - TOO_MANY_LABELS = 93; - - // Invalid image url. - INVALID_IMAGE_URL = 94; - - // Latitude value is missing. - MISSING_LATITUDE_VALUE = 95; - - // Longitude value is missing. - MISSING_LONGITUDE_VALUE = 96; - - // Unable to find address. - ADDRESS_NOT_FOUND = 97; - - // Cannot target provided address. - ADDRESS_NOT_TARGETABLE = 98; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/feed_mapping_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/feed_mapping_error.proto deleted file mode 100644 index d00965b67..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/feed_mapping_error.proto +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "FeedMappingErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing feed item errors. - -// Container for enum describing possible feed item errors. -message FeedMappingErrorEnum { - // Enum describing possible feed item errors. - enum FeedMappingError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The given placeholder field does not exist. - INVALID_PLACEHOLDER_FIELD = 2; - - // The given criterion field does not exist. - INVALID_CRITERION_FIELD = 3; - - // The given placeholder type does not exist. - INVALID_PLACEHOLDER_TYPE = 4; - - // The given criterion type does not exist. - INVALID_CRITERION_TYPE = 5; - - // A feed mapping must contain at least one attribute field mapping. - NO_ATTRIBUTE_FIELD_MAPPINGS = 7; - - // The type of the feed attribute referenced in the attribute field mapping - // must match the type of the placeholder field. - FEED_ATTRIBUTE_TYPE_MISMATCH = 8; - - // A feed mapping for a system generated feed cannot be operated on. - CANNOT_OPERATE_ON_MAPPINGS_FOR_SYSTEM_GENERATED_FEED = 9; - - // Only one feed mapping for a placeholder type is allowed per feed or - // customer (depending on the placeholder type). - MULTIPLE_MAPPINGS_FOR_PLACEHOLDER_TYPE = 10; - - // Only one feed mapping for a criterion type is allowed per customer. - MULTIPLE_MAPPINGS_FOR_CRITERION_TYPE = 11; - - // Only one feed attribute mapping for a placeholder field is allowed - // (depending on the placeholder type). - MULTIPLE_MAPPINGS_FOR_PLACEHOLDER_FIELD = 12; - - // Only one feed attribute mapping for a criterion field is allowed - // (depending on the criterion type). - MULTIPLE_MAPPINGS_FOR_CRITERION_FIELD = 13; - - // This feed mapping may not contain any explicit attribute field mappings. - UNEXPECTED_ATTRIBUTE_FIELD_MAPPINGS = 14; - - // Location placeholder feed mappings can only be created for Places feeds. - LOCATION_PLACEHOLDER_ONLY_FOR_PLACES_FEEDS = 15; - - // Mappings for typed feeds cannot be modified. - CANNOT_MODIFY_MAPPINGS_FOR_TYPED_FEED = 16; - - // The given placeholder type can only be mapped to system generated feeds. - INVALID_PLACEHOLDER_TYPE_FOR_NON_SYSTEM_GENERATED_FEED = 17; - - // The given placeholder type cannot be mapped to a system generated feed - // with the given type. - INVALID_PLACEHOLDER_TYPE_FOR_SYSTEM_GENERATED_FEED_TYPE = 18; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/field_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/field_error.proto deleted file mode 100644 index 31ba376f8..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/field_error.proto +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "FieldErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing field errors. - -// Container for enum describing possible field errors. -message FieldErrorEnum { - // Enum describing possible field errors. - enum FieldError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The required field was not present. - REQUIRED = 2; - - // The field attempted to be mutated is immutable. - IMMUTABLE_FIELD = 3; - - // The field's value is invalid. - INVALID_VALUE = 4; - - // The field cannot be set. - VALUE_MUST_BE_UNSET = 5; - - // The required repeated field was empty. - REQUIRED_NONEMPTY_LIST = 6; - - // The field cannot be cleared. - FIELD_CANNOT_BE_CLEARED = 7; - - // The field's value is on a deny-list for this field. - BLACKLISTED_VALUE = 8; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/field_mask_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/field_mask_error.proto deleted file mode 100644 index 17fc36a48..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/field_mask_error.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "FieldMaskErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing field mask errors. - -// Container for enum describing possible field mask errors. -message FieldMaskErrorEnum { - // Enum describing possible field mask errors. - enum FieldMaskError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The field mask must be provided for update operations. - FIELD_MASK_MISSING = 5; - - // The field mask must be empty for create and remove operations. - FIELD_MASK_NOT_ALLOWED = 4; - - // The field mask contained an invalid field. - FIELD_NOT_FOUND = 2; - - // The field mask updated a field with subfields. Fields with subfields may - // be cleared, but not updated. To fix this, the field mask should select - // all the subfields of the invalid field. - FIELD_HAS_SUBFIELDS = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/function_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/function_error.proto deleted file mode 100644 index 82e18864d..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/function_error.proto +++ /dev/null @@ -1,93 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "FunctionErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing function errors. - -// Container for enum describing possible function errors. -message FunctionErrorEnum { - // Enum describing possible function errors. - enum FunctionError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The format of the function is not recognized as a supported function - // format. - INVALID_FUNCTION_FORMAT = 2; - - // Operand data types do not match. - DATA_TYPE_MISMATCH = 3; - - // The operands cannot be used together in a conjunction. - INVALID_CONJUNCTION_OPERANDS = 4; - - // Invalid numer of Operands. - INVALID_NUMBER_OF_OPERANDS = 5; - - // Operand Type not supported. - INVALID_OPERAND_TYPE = 6; - - // Operator not supported. - INVALID_OPERATOR = 7; - - // Request context type not supported. - INVALID_REQUEST_CONTEXT_TYPE = 8; - - // The matching function is not allowed for call placeholders - INVALID_FUNCTION_FOR_CALL_PLACEHOLDER = 9; - - // The matching function is not allowed for the specified placeholder - INVALID_FUNCTION_FOR_PLACEHOLDER = 10; - - // Invalid operand. - INVALID_OPERAND = 11; - - // Missing value for the constant operand. - MISSING_CONSTANT_OPERAND_VALUE = 12; - - // The value of the constant operand is invalid. - INVALID_CONSTANT_OPERAND_VALUE = 13; - - // Invalid function nesting. - INVALID_NESTING = 14; - - // The Feed ID was different from another Feed ID in the same function. - MULTIPLE_FEED_IDS_NOT_SUPPORTED = 15; - - // The matching function is invalid for use with a feed with a fixed schema. - INVALID_FUNCTION_FOR_FEED_WITH_FIXED_SCHEMA = 16; - - // Invalid attribute name. - INVALID_ATTRIBUTE_NAME = 17; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/function_parsing_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/function_parsing_error.proto deleted file mode 100644 index 396579c59..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/function_parsing_error.proto +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "FunctionParsingErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing function parsing errors. - -// Container for enum describing possible function parsing errors. -message FunctionParsingErrorEnum { - // Enum describing possible function parsing errors. - enum FunctionParsingError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Unexpected end of function string. - NO_MORE_INPUT = 2; - - // Could not find an expected character. - EXPECTED_CHARACTER = 3; - - // Unexpected separator character. - UNEXPECTED_SEPARATOR = 4; - - // Unmatched left bracket or parenthesis. - UNMATCHED_LEFT_BRACKET = 5; - - // Unmatched right bracket or parenthesis. - UNMATCHED_RIGHT_BRACKET = 6; - - // Functions are nested too deeply. - TOO_MANY_NESTED_FUNCTIONS = 7; - - // Missing right-hand-side operand. - MISSING_RIGHT_HAND_OPERAND = 8; - - // Invalid operator/function name. - INVALID_OPERATOR_NAME = 9; - - // Feed attribute operand's argument is not an integer. - FEED_ATTRIBUTE_OPERAND_ARGUMENT_NOT_INTEGER = 10; - - // Missing function operands. - NO_OPERANDS = 11; - - // Function had too many operands. - TOO_MANY_OPERANDS = 12; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/geo_target_constant_suggestion_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/geo_target_constant_suggestion_error.proto deleted file mode 100644 index e0f8479b9..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/geo_target_constant_suggestion_error.proto +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "GeoTargetConstantSuggestionErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Container for enum describing possible geo target constant suggestion errors. -message GeoTargetConstantSuggestionErrorEnum { - // Enum describing possible geo target constant suggestion errors. - enum GeoTargetConstantSuggestionError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // A location name cannot be greater than 300 characters. - LOCATION_NAME_SIZE_LIMIT = 2; - - // At most 25 location names can be specified in a SuggestGeoTargetConstants - // method. - LOCATION_NAME_LIMIT = 3; - - // The country code is invalid. - INVALID_COUNTRY_CODE = 4; - - // Geo target constant resource names or location names must be provided in - // the request. - REQUEST_PARAMETERS_UNSET = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/header_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/header_error.proto deleted file mode 100644 index c230cebb0..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/header_error.proto +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "HeaderErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing header errors. - -// Container for enum describing possible header errors. -message HeaderErrorEnum { - // Enum describing possible header errors. - enum HeaderError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The login customer id could not be validated. - INVALID_LOGIN_CUSTOMER_ID = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/id_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/id_error.proto deleted file mode 100644 index 8ede7d189..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/id_error.proto +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "IdErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing id errors. - -// Container for enum describing possible id errors. -message IdErrorEnum { - // Enum describing possible id errors. - enum IdError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Id not found - NOT_FOUND = 2; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/image_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/image_error.proto deleted file mode 100644 index 4907e1325..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/image_error.proto +++ /dev/null @@ -1,156 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "ImageErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing image errors. - -// Container for enum describing possible image errors. -message ImageErrorEnum { - // Enum describing possible image errors. - enum ImageError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The image is not valid. - INVALID_IMAGE = 2; - - // The image could not be stored. - STORAGE_ERROR = 3; - - // There was a problem with the request. - BAD_REQUEST = 4; - - // The image is not of legal dimensions. - UNEXPECTED_SIZE = 5; - - // Animated image are not permitted. - ANIMATED_NOT_ALLOWED = 6; - - // Animation is too long. - ANIMATION_TOO_LONG = 7; - - // There was an error on the server. - SERVER_ERROR = 8; - - // Image cannot be in CMYK color format. - CMYK_JPEG_NOT_ALLOWED = 9; - - // Flash images are not permitted. - FLASH_NOT_ALLOWED = 10; - - // Flash images must support clickTag. - FLASH_WITHOUT_CLICKTAG = 11; - - // A flash error has occurred after fixing the click tag. - FLASH_ERROR_AFTER_FIXING_CLICK_TAG = 12; - - // Unacceptable visual effects. - ANIMATED_VISUAL_EFFECT = 13; - - // There was a problem with the flash image. - FLASH_ERROR = 14; - - // Incorrect image layout. - LAYOUT_PROBLEM = 15; - - // There was a problem reading the image file. - PROBLEM_READING_IMAGE_FILE = 16; - - // There was an error storing the image. - ERROR_STORING_IMAGE = 17; - - // The aspect ratio of the image is not allowed. - ASPECT_RATIO_NOT_ALLOWED = 18; - - // Flash cannot have network objects. - FLASH_HAS_NETWORK_OBJECTS = 19; - - // Flash cannot have network methods. - FLASH_HAS_NETWORK_METHODS = 20; - - // Flash cannot have a Url. - FLASH_HAS_URL = 21; - - // Flash cannot use mouse tracking. - FLASH_HAS_MOUSE_TRACKING = 22; - - // Flash cannot have a random number. - FLASH_HAS_RANDOM_NUM = 23; - - // Ad click target cannot be '_self'. - FLASH_SELF_TARGETS = 24; - - // GetUrl method should only use '_blank'. - FLASH_BAD_GETURL_TARGET = 25; - - // Flash version is not supported. - FLASH_VERSION_NOT_SUPPORTED = 26; - - // Flash movies need to have hard coded click URL or clickTAG - FLASH_WITHOUT_HARD_CODED_CLICK_URL = 27; - - // Uploaded flash file is corrupted. - INVALID_FLASH_FILE = 28; - - // Uploaded flash file can be parsed, but the click tag can not be fixed - // properly. - FAILED_TO_FIX_CLICK_TAG_IN_FLASH = 29; - - // Flash movie accesses network resources - FLASH_ACCESSES_NETWORK_RESOURCES = 30; - - // Flash movie attempts to call external javascript code - FLASH_EXTERNAL_JS_CALL = 31; - - // Flash movie attempts to call flash system commands - FLASH_EXTERNAL_FS_CALL = 32; - - // Image file is too large. - FILE_TOO_LARGE = 33; - - // Image data is too large. - IMAGE_DATA_TOO_LARGE = 34; - - // Error while processing the image. - IMAGE_PROCESSING_ERROR = 35; - - // Image is too small. - IMAGE_TOO_SMALL = 36; - - // Input was invalid. - INVALID_INPUT = 37; - - // There was a problem reading the image file. - PROBLEM_READING_FILE = 38; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/internal_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/internal_error.proto deleted file mode 100644 index 1a7210bf3..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/internal_error.proto +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "InternalErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing internal errors. - -// Container for enum describing possible internal errors. -message InternalErrorEnum { - // Enum describing possible internal errors. - enum InternalError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Google Ads API encountered unexpected internal error. - INTERNAL_ERROR = 2; - - // The intended error code doesn't exist in specified API version. It will - // be released in a future API version. - ERROR_CODE_NOT_PUBLISHED = 3; - - // Google Ads API encountered an unexpected transient error. The user - // should retry their request in these cases. - TRANSIENT_ERROR = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/invoice_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/invoice_error.proto deleted file mode 100644 index a454930db..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/invoice_error.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "InvoiceErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing invoice errors. - -// Container for enum describing possible invoice errors. -message InvoiceErrorEnum { - // Enum describing possible invoice errors. - enum InvoiceError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Cannot request invoices issued before 2019-01-01. - YEAR_MONTH_TOO_OLD = 2; - - // Cannot request invoices for customer who doesn't receive invoices. - NOT_INVOICED_CUSTOMER = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/keyword_plan_ad_group_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/keyword_plan_ad_group_error.proto deleted file mode 100644 index b2a2a0058..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/keyword_plan_ad_group_error.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "KeywordPlanAdGroupErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing errors from applying a keyword plan ad group. - -// Container for enum describing possible errors from applying a keyword plan -// ad group. -message KeywordPlanAdGroupErrorEnum { - // Enum describing possible errors from applying a keyword plan ad group. - enum KeywordPlanAdGroupError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The keyword plan ad group name is missing, empty, longer than allowed - // limit or contains invalid chars. - INVALID_NAME = 2; - - // The keyword plan ad group name is duplicate to an existing keyword plan - // AdGroup name or other keyword plan AdGroup name in the request. - DUPLICATE_NAME = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/keyword_plan_campaign_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/keyword_plan_campaign_error.proto deleted file mode 100644 index c43f04a62..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/keyword_plan_campaign_error.proto +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "KeywordPlanCampaignErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing errors from applying a keyword plan campaign. - -// Container for enum describing possible errors from applying a keyword plan -// campaign. -message KeywordPlanCampaignErrorEnum { - // Enum describing possible errors from applying a keyword plan campaign. - enum KeywordPlanCampaignError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // A keyword plan campaign name is missing, empty, longer than allowed limit - // or contains invalid chars. - INVALID_NAME = 2; - - // A keyword plan campaign contains one or more untargetable languages. - INVALID_LANGUAGES = 3; - - // A keyword plan campaign contains one or more invalid geo targets. - INVALID_GEOS = 4; - - // The keyword plan campaign name is duplicate to an existing keyword plan - // campaign name or other keyword plan campaign name in the request. - DUPLICATE_NAME = 5; - - // The number of geo targets in the keyword plan campaign exceeds limits. - MAX_GEOS_EXCEEDED = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/keyword_plan_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/keyword_plan_error.proto deleted file mode 100644 index b6bcac5dc..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/keyword_plan_error.proto +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "KeywordPlanErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing errors from applying keyword plan resources (keyword -// plan, keyword plan campaign, keyword plan ad group or keyword plan keyword) -// or KeywordPlanService RPC. - -// Container for enum describing possible errors from applying a keyword plan -// resource (keyword plan, keyword plan campaign, keyword plan ad group or -// keyword plan keyword) or KeywordPlanService RPC. -message KeywordPlanErrorEnum { - // Enum describing possible errors from applying a keyword plan. - enum KeywordPlanError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The plan's bid multiplier value is outside the valid range. - BID_MULTIPLIER_OUT_OF_RANGE = 2; - - // The plan's bid value is too high. - BID_TOO_HIGH = 3; - - // The plan's bid value is too low. - BID_TOO_LOW = 4; - - // The plan's cpc bid is not a multiple of the minimum billable unit. - BID_TOO_MANY_FRACTIONAL_DIGITS = 5; - - // The plan's daily budget value is too low. - DAILY_BUDGET_TOO_LOW = 6; - - // The plan's daily budget is not a multiple of the minimum billable unit. - DAILY_BUDGET_TOO_MANY_FRACTIONAL_DIGITS = 7; - - // The input has an invalid value. - INVALID_VALUE = 8; - - // The plan has no keyword. - KEYWORD_PLAN_HAS_NO_KEYWORDS = 9; - - // The plan is not enabled and API cannot provide mutation, forecast or - // stats. - KEYWORD_PLAN_NOT_ENABLED = 10; - - // The requested plan cannot be found for providing forecast or stats. - KEYWORD_PLAN_NOT_FOUND = 11; - - // The plan is missing a cpc bid. - MISSING_BID = 13; - - // The plan is missing required forecast_period field. - MISSING_FORECAST_PERIOD = 14; - - // The plan's forecast_period has invalid forecast date range. - INVALID_FORECAST_DATE_RANGE = 15; - - // The plan's name is invalid. - INVALID_NAME = 16; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/keyword_plan_idea_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/keyword_plan_idea_error.proto deleted file mode 100644 index 603b4a725..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/keyword_plan_idea_error.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "KeywordPlanIdeaErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing errors from KeywordPlanIdeaService. - -// Container for enum describing possible errors from KeywordPlanIdeaService. -message KeywordPlanIdeaErrorEnum { - // Enum describing possible errors from KeywordPlanIdeaService. - enum KeywordPlanIdeaError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Error when crawling the input URL. - URL_CRAWL_ERROR = 2; - - // The input has an invalid value. - INVALID_VALUE = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/keyword_plan_keyword_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/keyword_plan_keyword_error.proto deleted file mode 100644 index 353707501..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/keyword_plan_keyword_error.proto +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "KeywordPlanKeywordErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing errors from applying a keyword plan keyword or keyword -// plan negative keyword. - -// Container for enum describing possible errors from applying a keyword or a -// negative keyword from a keyword plan. -message KeywordPlanKeywordErrorEnum { - // Enum describing possible errors from applying a keyword plan keyword. - enum KeywordPlanKeywordError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // A keyword or negative keyword has invalid match type. - INVALID_KEYWORD_MATCH_TYPE = 2; - - // A keyword or negative keyword with same text and match type already - // exists. - DUPLICATE_KEYWORD = 3; - - // Keyword or negative keyword text exceeds the allowed limit. - KEYWORD_TEXT_TOO_LONG = 4; - - // Keyword or negative keyword text has invalid characters or symbols. - KEYWORD_HAS_INVALID_CHARS = 5; - - // Keyword or negative keyword text has too many words. - KEYWORD_HAS_TOO_MANY_WORDS = 6; - - // Keyword or negative keyword has invalid text. - INVALID_KEYWORD_TEXT = 7; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/keyword_plan_negative_keyword_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/keyword_plan_negative_keyword_error.proto deleted file mode 100644 index cfb9d2f54..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/keyword_plan_negative_keyword_error.proto +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "KeywordPlanNegativeKeywordErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing errors from applying a keyword plan negative keyword. - -// Container for enum describing possible errors from applying a keyword plan -// negative keyword. -message KeywordPlanNegativeKeywordErrorEnum { - // Enum describing possible errors from applying a keyword plan negative - // keyword. - enum KeywordPlanNegativeKeywordError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/label_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/label_error.proto deleted file mode 100644 index 790b63e20..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/label_error.proto +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "LabelErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing label errors. - -// Container for enum describing possible label errors. -message LabelErrorEnum { - // Enum describing possible label errors. - enum LabelError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // An inactive label cannot be applied. - CANNOT_APPLY_INACTIVE_LABEL = 2; - - // A label cannot be applied to a disabled ad group criterion. - CANNOT_APPLY_LABEL_TO_DISABLED_AD_GROUP_CRITERION = 3; - - // A label cannot be applied to a negative ad group criterion. - CANNOT_APPLY_LABEL_TO_NEGATIVE_AD_GROUP_CRITERION = 4; - - // Cannot apply more than 50 labels per resource. - EXCEEDED_LABEL_LIMIT_PER_TYPE = 5; - - // Labels from a manager account cannot be applied to campaign, ad group, - // ad group ad, or ad group criterion resources. - INVALID_RESOURCE_FOR_MANAGER_LABEL = 6; - - // Label names must be unique. - DUPLICATE_NAME = 7; - - // Label names cannot be empty. - INVALID_LABEL_NAME = 8; - - // Labels cannot be applied to a draft. - CANNOT_ATTACH_LABEL_TO_DRAFT = 9; - - // Labels not from a manager account cannot be applied to the customer - // resource. - CANNOT_ATTACH_NON_MANAGER_LABEL_TO_CUSTOMER = 10; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/language_code_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/language_code_error.proto deleted file mode 100644 index 024cfd28e..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/language_code_error.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "LanguageCodeErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing language code errors. - -// Container for enum describing language code errors. -message LanguageCodeErrorEnum { - // Enum describing language code errors. - enum LanguageCodeError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The input language code is not recognized. - LANGUAGE_CODE_NOT_FOUND = 2; - - // The language is not allowed to use. - INVALID_LANGUAGE_CODE = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/list_operation_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/list_operation_error.proto deleted file mode 100644 index 01cb3b073..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/list_operation_error.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "ListOperationErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing list operation errors. - -// Container for enum describing possible list operation errors. -message ListOperationErrorEnum { - // Enum describing possible list operation errors. - enum ListOperationError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Field required in value is missing. - REQUIRED_FIELD_MISSING = 7; - - // Duplicate or identical value is sent in multiple list operations. - DUPLICATE_VALUES = 8; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/manager_link_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/manager_link_error.proto deleted file mode 100644 index 8ee62f156..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/manager_link_error.proto +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "ManagerLinkErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing ManagerLink errors. - -// Container for enum describing possible ManagerLink errors. -message ManagerLinkErrorEnum { - // Enum describing possible ManagerLink errors. - enum ManagerLinkError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The manager and client have incompatible account types. - ACCOUNTS_NOT_COMPATIBLE_FOR_LINKING = 2; - - // Client is already linked to too many managers. - TOO_MANY_MANAGERS = 3; - - // Manager has too many pending invitations. - TOO_MANY_INVITES = 4; - - // Client is already invited by this manager. - ALREADY_INVITED_BY_THIS_MANAGER = 5; - - // The client is already managed by this manager. - ALREADY_MANAGED_BY_THIS_MANAGER = 6; - - // Client is already managed in hierarchy. - ALREADY_MANAGED_IN_HIERARCHY = 7; - - // Manger and sub-manager to be linked have duplicate client. - DUPLICATE_CHILD_FOUND = 8; - - // Client has no active user that can access the client account. - CLIENT_HAS_NO_ADMIN_USER = 9; - - // Adding this link would exceed the maximum hierarchy depth. - MAX_DEPTH_EXCEEDED = 10; - - // Adding this link will create a cycle. - CYCLE_NOT_ALLOWED = 11; - - // Manager account has the maximum number of linked clients. - TOO_MANY_ACCOUNTS = 12; - - // Parent manager account has the maximum number of linked clients. - TOO_MANY_ACCOUNTS_AT_MANAGER = 13; - - // The account is not authorized owner. - NON_OWNER_USER_CANNOT_MODIFY_LINK = 14; - - // Your manager account is suspended, and you are no longer allowed to link - // to clients. - SUSPENDED_ACCOUNT_CANNOT_ADD_CLIENTS = 15; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/media_bundle_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/media_bundle_error.proto deleted file mode 100644 index 9f7ddc418..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/media_bundle_error.proto +++ /dev/null @@ -1,110 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "MediaBundleErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing media bundle errors. - -// Container for enum describing possible media bundle errors. -message MediaBundleErrorEnum { - // Enum describing possible media bundle errors. - enum MediaBundleError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // There was a problem with the request. - BAD_REQUEST = 3; - - // HTML5 ads using DoubleClick Studio created ZIP files are not supported. - DOUBLECLICK_BUNDLE_NOT_ALLOWED = 4; - - // Cannot reference URL external to the media bundle. - EXTERNAL_URL_NOT_ALLOWED = 5; - - // Media bundle file is too large. - FILE_TOO_LARGE = 6; - - // ZIP file from Google Web Designer is not published. - GOOGLE_WEB_DESIGNER_ZIP_FILE_NOT_PUBLISHED = 7; - - // Input was invalid. - INVALID_INPUT = 8; - - // There was a problem with the media bundle. - INVALID_MEDIA_BUNDLE = 9; - - // There was a problem with one or more of the media bundle entries. - INVALID_MEDIA_BUNDLE_ENTRY = 10; - - // The media bundle contains a file with an unknown mime type - INVALID_MIME_TYPE = 11; - - // The media bundle contain an invalid asset path. - INVALID_PATH = 12; - - // HTML5 ad is trying to reference an asset not in .ZIP file - INVALID_URL_REFERENCE = 13; - - // Media data is too large. - MEDIA_DATA_TOO_LARGE = 14; - - // The media bundle contains no primary entry. - MISSING_PRIMARY_MEDIA_BUNDLE_ENTRY = 15; - - // There was an error on the server. - SERVER_ERROR = 16; - - // The image could not be stored. - STORAGE_ERROR = 17; - - // Media bundle created with the Swiffy tool is not allowed. - SWIFFY_BUNDLE_NOT_ALLOWED = 18; - - // The media bundle contains too many files. - TOO_MANY_FILES = 19; - - // The media bundle is not of legal dimensions. - UNEXPECTED_SIZE = 20; - - // Google Web Designer not created for "Google Ads" environment. - UNSUPPORTED_GOOGLE_WEB_DESIGNER_ENVIRONMENT = 21; - - // Unsupported HTML5 feature in HTML5 asset. - UNSUPPORTED_HTML5_FEATURE = 22; - - // URL in HTML5 entry is not ssl compliant. - URL_IN_MEDIA_BUNDLE_NOT_SSL_COMPLIANT = 23; - - // Custom exits not allowed in HTML5 entry. - CUSTOM_EXIT_NOT_ALLOWED = 24; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/media_file_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/media_file_error.proto deleted file mode 100644 index 700e4438f..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/media_file_error.proto +++ /dev/null @@ -1,113 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "MediaFileErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing media file errors. - -// Container for enum describing possible media file errors. -message MediaFileErrorEnum { - // Enum describing possible media file errors. - enum MediaFileError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Cannot create a standard icon type. - CANNOT_CREATE_STANDARD_ICON = 2; - - // May only select Standard Icons alone. - CANNOT_SELECT_STANDARD_ICON_WITH_OTHER_TYPES = 3; - - // Image contains both a media file ID and data. - CANNOT_SPECIFY_MEDIA_FILE_ID_AND_DATA = 4; - - // A media file with given type and reference ID already exists. - DUPLICATE_MEDIA = 5; - - // A required field was not specified or is an empty string. - EMPTY_FIELD = 6; - - // A media file may only be modified once per call. - RESOURCE_REFERENCED_IN_MULTIPLE_OPS = 7; - - // Field is not supported for the media sub type. - FIELD_NOT_SUPPORTED_FOR_MEDIA_SUB_TYPE = 8; - - // The media file ID is invalid. - INVALID_MEDIA_FILE_ID = 9; - - // The media subtype is invalid. - INVALID_MEDIA_SUB_TYPE = 10; - - // The media file type is invalid. - INVALID_MEDIA_FILE_TYPE = 11; - - // The mimetype is invalid. - INVALID_MIME_TYPE = 12; - - // The media reference ID is invalid. - INVALID_REFERENCE_ID = 13; - - // The YouTube video ID is invalid. - INVALID_YOU_TUBE_ID = 14; - - // Media file has failed transcoding - MEDIA_FILE_FAILED_TRANSCODING = 15; - - // Media file has not been transcoded. - MEDIA_NOT_TRANSCODED = 16; - - // The media type does not match the actual media file's type. - MEDIA_TYPE_DOES_NOT_MATCH_MEDIA_FILE_TYPE = 17; - - // None of the fields have been specified. - NO_FIELDS_SPECIFIED = 18; - - // One of reference ID or media file ID must be specified. - NULL_REFERENCE_ID_AND_MEDIA_ID = 19; - - // The string has too many characters. - TOO_LONG = 20; - - // The specified type is not supported. - UNSUPPORTED_TYPE = 21; - - // YouTube is unavailable for requesting video data. - YOU_TUBE_SERVICE_UNAVAILABLE = 22; - - // The YouTube video has a non positive duration. - YOU_TUBE_VIDEO_HAS_NON_POSITIVE_DURATION = 23; - - // The YouTube video ID is syntactically valid but the video was not found. - YOU_TUBE_VIDEO_NOT_FOUND = 24; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/media_upload_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/media_upload_error.proto deleted file mode 100644 index d9da83549..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/media_upload_error.proto +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "MediaUploadErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing media uploading errors. - -// Container for enum describing possible media uploading errors. -message MediaUploadErrorEnum { - // Enum describing possible media uploading errors. - enum MediaUploadError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The uploaded file is too big. - FILE_TOO_BIG = 2; - - // Image data is unparseable. - UNPARSEABLE_IMAGE = 3; - - // Animated images are not allowed. - ANIMATED_IMAGE_NOT_ALLOWED = 4; - - // The image or media bundle format is not allowed. - FORMAT_NOT_ALLOWED = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/multiplier_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/multiplier_error.proto deleted file mode 100644 index 182a1ec93..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/multiplier_error.proto +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "MultiplierErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing multiplier errors. - -// Container for enum describing possible multiplier errors. -message MultiplierErrorEnum { - // Enum describing possible multiplier errors. - enum MultiplierError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Multiplier value is too high - MULTIPLIER_TOO_HIGH = 2; - - // Multiplier value is too low - MULTIPLIER_TOO_LOW = 3; - - // Too many fractional digits - TOO_MANY_FRACTIONAL_DIGITS = 4; - - // A multiplier cannot be set for this bidding strategy - MULTIPLIER_NOT_ALLOWED_FOR_BIDDING_STRATEGY = 5; - - // A multiplier cannot be set when there is no base bid (e.g., content max - // cpc) - MULTIPLIER_NOT_ALLOWED_WHEN_BASE_BID_IS_MISSING = 6; - - // A bid multiplier must be specified - NO_MULTIPLIER_SPECIFIED = 7; - - // Multiplier causes bid to exceed daily budget - MULTIPLIER_CAUSES_BID_TO_EXCEED_DAILY_BUDGET = 8; - - // Multiplier causes bid to exceed monthly budget - MULTIPLIER_CAUSES_BID_TO_EXCEED_MONTHLY_BUDGET = 9; - - // Multiplier causes bid to exceed custom budget - MULTIPLIER_CAUSES_BID_TO_EXCEED_CUSTOM_BUDGET = 10; - - // Multiplier causes bid to exceed maximum allowed bid - MULTIPLIER_CAUSES_BID_TO_EXCEED_MAX_ALLOWED_BID = 11; - - // Multiplier causes bid to become less than the minimum bid allowed - BID_LESS_THAN_MIN_ALLOWED_BID_WITH_MULTIPLIER = 12; - - // Multiplier type (cpc vs. cpm) needs to match campaign's bidding strategy - MULTIPLIER_AND_BIDDING_STRATEGY_TYPE_MISMATCH = 13; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/mutate_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/mutate_error.proto deleted file mode 100644 index 1eed6c083..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/mutate_error.proto +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "MutateErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing mutate errors. - -// Container for enum describing possible mutate errors. -message MutateErrorEnum { - // Enum describing possible mutate errors. - enum MutateError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Requested resource was not found. - RESOURCE_NOT_FOUND = 3; - - // Cannot mutate the same resource twice in one request. - ID_EXISTS_IN_MULTIPLE_MUTATES = 7; - - // The field's contents don't match another field that represents the same - // data. - INCONSISTENT_FIELD_VALUES = 8; - - // Mutates are not allowed for the requested resource. - MUTATE_NOT_ALLOWED = 9; - - // The resource isn't in Google Ads. It belongs to another ads system. - RESOURCE_NOT_IN_GOOGLE_ADS = 10; - - // The resource being created already exists. - RESOURCE_ALREADY_EXISTS = 11; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/mutate_job_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/mutate_job_error.proto deleted file mode 100644 index 3b1d306a8..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/mutate_job_error.proto +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "MutateJobErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing mutate job errors. - -// Container for enum describing possible mutate job errors. -message MutateJobErrorEnum { - // Enum describing possible request errors. - enum MutateJobError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The mutate job cannot add more operations or run after it has started - // running. - CANNOT_MODIFY_JOB_AFTER_JOB_STARTS_RUNNING = 2; - - // The operations for an AddMutateJobOperations request were empty. - EMPTY_OPERATIONS = 3; - - // The sequence token for an AddMutateJobOperations request was invalid. - INVALID_SEQUENCE_TOKEN = 4; - - // Mutate Job Results can only be retrieved once the job is finished. - RESULTS_NOT_READY = 5; - - // The page size for ListMutateJobResults was invalid. - INVALID_PAGE_SIZE = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/new_resource_creation_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/new_resource_creation_error.proto deleted file mode 100644 index 0d32d0079..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/new_resource_creation_error.proto +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "NewResourceCreationErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing new resource creation errors. - -// Container for enum describing possible new resource creation errors. -message NewResourceCreationErrorEnum { - // Enum describing possible new resource creation errors. - enum NewResourceCreationError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Do not set the id field while creating new resources. - CANNOT_SET_ID_FOR_CREATE = 2; - - // Creating more than one resource with the same temp ID is not allowed. - DUPLICATE_TEMP_IDS = 3; - - // Parent resource with specified temp ID failed validation, so no - // validation will be done for this child resource. - TEMP_ID_RESOURCE_HAD_ERRORS = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/not_empty_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/not_empty_error.proto deleted file mode 100644 index a745082ab..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/not_empty_error.proto +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "NotEmptyErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing not empty errors. - -// Container for enum describing possible not empty errors. -message NotEmptyErrorEnum { - // Enum describing possible not empty errors. - enum NotEmptyError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Empty list. - EMPTY_LIST = 2; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/not_whitelisted_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/not_whitelisted_error.proto deleted file mode 100644 index 80940a19e..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/not_whitelisted_error.proto +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "NotWhitelistedErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing not whitelisted errors. - -// Container for enum describing possible not whitelisted errors. -message NotWhitelistedErrorEnum { - // Enum describing possible not whitelisted errors. - enum NotWhitelistedError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Customer is not whitelisted for accessing this feature. - CUSTOMER_NOT_WHITELISTED_FOR_THIS_FEATURE = 2; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/null_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/null_error.proto deleted file mode 100644 index 640e49ef6..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/null_error.proto +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "NullErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing null errors. - -// Container for enum describing possible null errors. -message NullErrorEnum { - // Enum describing possible null errors. - enum NullError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Specified list/container must not contain any null elements - NULL_CONTENT = 2; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/operation_access_denied_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/operation_access_denied_error.proto deleted file mode 100644 index 9d3dbe8cb..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/operation_access_denied_error.proto +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "OperationAccessDeniedErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing operation access denied errors. - -// Container for enum describing possible operation access denied errors. -message OperationAccessDeniedErrorEnum { - // Enum describing possible operation access denied errors. - enum OperationAccessDeniedError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Unauthorized invocation of a service's method (get, mutate, etc.) - ACTION_NOT_PERMITTED = 2; - - // Unauthorized CREATE operation in invoking a service's mutate method. - CREATE_OPERATION_NOT_PERMITTED = 3; - - // Unauthorized REMOVE operation in invoking a service's mutate method. - REMOVE_OPERATION_NOT_PERMITTED = 4; - - // Unauthorized UPDATE operation in invoking a service's mutate method. - UPDATE_OPERATION_NOT_PERMITTED = 5; - - // A mutate action is not allowed on this campaign, from this client. - MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT = 6; - - // This operation is not permitted on this campaign type - OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE = 7; - - // A CREATE operation may not set status to REMOVED. - CREATE_AS_REMOVED_NOT_PERMITTED = 8; - - // This operation is not allowed because the campaign or adgroup is removed. - OPERATION_NOT_PERMITTED_FOR_REMOVED_RESOURCE = 9; - - // This operation is not permitted on this ad group type. - OPERATION_NOT_PERMITTED_FOR_AD_GROUP_TYPE = 10; - - // The mutate is not allowed for this customer. - MUTATE_NOT_PERMITTED_FOR_CUSTOMER = 11; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/operator_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/operator_error.proto deleted file mode 100644 index 2a43d832c..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/operator_error.proto +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "OperatorErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing operator errors. - -// Container for enum describing possible operator errors. -message OperatorErrorEnum { - // Enum describing possible operator errors. - enum OperatorError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Operator not supported. - OPERATOR_NOT_SUPPORTED = 2; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/partial_failure_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/partial_failure_error.proto deleted file mode 100644 index 807aacd11..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/partial_failure_error.proto +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "PartialFailureErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing partial failure errors. - -// Container for enum describing possible partial failure errors. -message PartialFailureErrorEnum { - // Enum describing possible partial failure errors. - enum PartialFailureError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The partial failure field was false in the request. - // This method requires this field be set to true. - PARTIAL_FAILURE_MODE_REQUIRED = 2; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/policy_finding_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/policy_finding_error.proto deleted file mode 100644 index 29895a6ed..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/policy_finding_error.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "PolicyFindingErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing policy finding errors. - -// Container for enum describing possible policy finding errors. -message PolicyFindingErrorEnum { - // Enum describing possible policy finding errors. - enum PolicyFindingError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The resource has been disapproved since the policy summary includes - // policy topics of type PROHIBITED. - POLICY_FINDING = 2; - - // The given policy topic does not exist. - POLICY_TOPIC_NOT_FOUND = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/policy_validation_parameter_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/policy_validation_parameter_error.proto deleted file mode 100644 index 3ac696471..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/policy_validation_parameter_error.proto +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "PolicyValidationParameterErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing policy validation parameter errors. - -// Container for enum describing possible policy validation parameter errors. -message PolicyValidationParameterErrorEnum { - // Enum describing possible policy validation parameter errors. - enum PolicyValidationParameterError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Ignorable policy topics are not supported for the ad type. - UNSUPPORTED_AD_TYPE_FOR_IGNORABLE_POLICY_TOPICS = 2; - - // Exempt policy violation keys are not supported for the ad type. - UNSUPPORTED_AD_TYPE_FOR_EXEMPT_POLICY_VIOLATION_KEYS = 3; - - // Cannot set ignorable policy topics and exempt policy violation keys in - // the same policy violation parameter. - CANNOT_SET_BOTH_IGNORABLE_POLICY_TOPICS_AND_EXEMPT_POLICY_VIOLATION_KEYS = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/policy_violation_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/policy_violation_error.proto deleted file mode 100644 index ba8dfec84..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/policy_violation_error.proto +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "PolicyViolationErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing policy violation errors. - -// Container for enum describing possible policy violation errors. -message PolicyViolationErrorEnum { - // Enum describing possible policy violation errors. - enum PolicyViolationError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // A policy was violated. See PolicyViolationDetails for more detail. - POLICY_ERROR = 2; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/query_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/query_error.proto deleted file mode 100644 index 32637921d..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/query_error.proto +++ /dev/null @@ -1,218 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "QueryErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing query errors. - -// Container for enum describing possible query errors. -message QueryErrorEnum { - // Enum describing possible query errors. - enum QueryError { - // Name unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Returned if all other query error reasons are not applicable. - QUERY_ERROR = 50; - - // A condition used in the query references an invalid enum constant. - BAD_ENUM_CONSTANT = 18; - - // Query contains an invalid escape sequence. - BAD_ESCAPE_SEQUENCE = 7; - - // Field name is invalid. - BAD_FIELD_NAME = 12; - - // Limit value is invalid (i.e. not a number) - BAD_LIMIT_VALUE = 15; - - // Encountered number can not be parsed. - BAD_NUMBER = 5; - - // Invalid operator encountered. - BAD_OPERATOR = 3; - - // Parameter unknown or not supported. - BAD_PARAMETER_NAME = 61; - - // Parameter have invalid value. - BAD_PARAMETER_VALUE = 62; - - // Invalid resource type was specified in the FROM clause. - BAD_RESOURCE_TYPE_IN_FROM_CLAUSE = 45; - - // Non-ASCII symbol encountered outside of strings. - BAD_SYMBOL = 2; - - // Value is invalid. - BAD_VALUE = 4; - - // Date filters fail to restrict date to a range smaller than 31 days. - // Applicable if the query is segmented by date. - DATE_RANGE_TOO_WIDE = 36; - - // Filters on date/week/month/quarter have a start date after - // end date. - DATE_RANGE_TOO_NARROW = 60; - - // Expected AND between values with BETWEEN operator. - EXPECTED_AND = 30; - - // Expecting ORDER BY to have BY. - EXPECTED_BY = 14; - - // There was no dimension field selected. - EXPECTED_DIMENSION_FIELD_IN_SELECT_CLAUSE = 37; - - // Missing filters on date related fields. - EXPECTED_FILTERS_ON_DATE_RANGE = 55; - - // Missing FROM clause. - EXPECTED_FROM = 44; - - // The operator used in the conditions requires the value to be a list. - EXPECTED_LIST = 41; - - // Fields used in WHERE or ORDER BY clauses are missing from the SELECT - // clause. - EXPECTED_REFERENCED_FIELD_IN_SELECT_CLAUSE = 16; - - // SELECT is missing at the beginning of query. - EXPECTED_SELECT = 13; - - // A list was passed as a value to a condition whose operator expects a - // single value. - EXPECTED_SINGLE_VALUE = 42; - - // Missing one or both values with BETWEEN operator. - EXPECTED_VALUE_WITH_BETWEEN_OPERATOR = 29; - - // Invalid date format. Expected 'YYYY-MM-DD'. - INVALID_DATE_FORMAT = 38; - - // Value passed was not a string when it should have been. I.e., it was a - // number or unquoted literal. - INVALID_STRING_VALUE = 57; - - // A String value passed to the BETWEEN operator does not parse as a date. - INVALID_VALUE_WITH_BETWEEN_OPERATOR = 26; - - // The value passed to the DURING operator is not a Date range literal - INVALID_VALUE_WITH_DURING_OPERATOR = 22; - - // A non-string value was passed to the LIKE operator. - INVALID_VALUE_WITH_LIKE_OPERATOR = 56; - - // An operator was provided that is inapplicable to the field being - // filtered. - OPERATOR_FIELD_MISMATCH = 35; - - // A Condition was found with an empty list. - PROHIBITED_EMPTY_LIST_IN_CONDITION = 28; - - // A condition used in the query references an unsupported enum constant. - PROHIBITED_ENUM_CONSTANT = 54; - - // Fields that are not allowed to be selected together were included in - // the SELECT clause. - PROHIBITED_FIELD_COMBINATION_IN_SELECT_CLAUSE = 31; - - // A field that is not orderable was included in the ORDER BY clause. - PROHIBITED_FIELD_IN_ORDER_BY_CLAUSE = 40; - - // A field that is not selectable was included in the SELECT clause. - PROHIBITED_FIELD_IN_SELECT_CLAUSE = 23; - - // A field that is not filterable was included in the WHERE clause. - PROHIBITED_FIELD_IN_WHERE_CLAUSE = 24; - - // Resource type specified in the FROM clause is not supported by this - // service. - PROHIBITED_RESOURCE_TYPE_IN_FROM_CLAUSE = 43; - - // A field that comes from an incompatible resource was included in the - // SELECT clause. - PROHIBITED_RESOURCE_TYPE_IN_SELECT_CLAUSE = 48; - - // A field that comes from an incompatible resource was included in the - // WHERE clause. - PROHIBITED_RESOURCE_TYPE_IN_WHERE_CLAUSE = 58; - - // A metric incompatible with the main resource or other selected - // segmenting resources was included in the SELECT or WHERE clause. - PROHIBITED_METRIC_IN_SELECT_OR_WHERE_CLAUSE = 49; - - // A segment incompatible with the main resource or other selected - // segmenting resources was included in the SELECT or WHERE clause. - PROHIBITED_SEGMENT_IN_SELECT_OR_WHERE_CLAUSE = 51; - - // A segment in the SELECT clause is incompatible with a metric in the - // SELECT or WHERE clause. - PROHIBITED_SEGMENT_WITH_METRIC_IN_SELECT_OR_WHERE_CLAUSE = 53; - - // The value passed to the limit clause is too low. - LIMIT_VALUE_TOO_LOW = 25; - - // Query has a string containing a newline character. - PROHIBITED_NEWLINE_IN_STRING = 8; - - // List contains values of different types. - PROHIBITED_VALUE_COMBINATION_IN_LIST = 10; - - // The values passed to the BETWEEN operator are not of the same type. - PROHIBITED_VALUE_COMBINATION_WITH_BETWEEN_OPERATOR = 21; - - // Query contains unterminated string. - STRING_NOT_TERMINATED = 6; - - // Too many segments are specified in SELECT clause. - TOO_MANY_SEGMENTS = 34; - - // Query is incomplete and cannot be parsed. - UNEXPECTED_END_OF_QUERY = 9; - - // FROM clause cannot be specified in this query. - UNEXPECTED_FROM_CLAUSE = 47; - - // Query contains one or more unrecognized fields. - UNRECOGNIZED_FIELD = 32; - - // Query has an unexpected extra part. - UNEXPECTED_INPUT = 11; - - // Metrics cannot be requested for a manager account. To retrieve metrics, - // issue separate requests against each client account under the manager - // account. - REQUESTED_METRICS_FOR_MANAGER = 59; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/quota_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/quota_error.proto deleted file mode 100644 index 337d9405d..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/quota_error.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "QuotaErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing quota errors. - -// Container for enum describing possible quota errors. -message QuotaErrorEnum { - // Enum describing possible quota errors. - enum QuotaError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Too many requests. - RESOURCE_EXHAUSTED = 2; - - // Access is prohibited. - ACCESS_PROHIBITED = 3; - - // Too many requests in a short amount of time. - RESOURCE_TEMPORARILY_EXHAUSTED = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/range_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/range_error.proto deleted file mode 100644 index e1ab6bf81..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/range_error.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "RangeErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing range errors. - -// Container for enum describing possible range errors. -message RangeErrorEnum { - // Enum describing possible range errors. - enum RangeError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Too low. - TOO_LOW = 2; - - // Too high. - TOO_HIGH = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/reach_plan_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/reach_plan_error.proto deleted file mode 100644 index 80df2ff43..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/reach_plan_error.proto +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "ReachPlanErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing errors generated from ReachPlanService. - -// Container for enum describing possible errors returned from -// the ReachPlanService. -message ReachPlanErrorEnum { - // Enum describing possible errors from ReachPlanService. - enum ReachPlanError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/recommendation_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/recommendation_error.proto deleted file mode 100644 index 1fdeb71b0..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/recommendation_error.proto +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "RecommendationErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing errors from applying a recommendation. - -// Container for enum describing possible errors from applying a recommendation. -message RecommendationErrorEnum { - // Enum describing possible errors from applying a recommendation. - enum RecommendationError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The specified budget amount is too low e.g. lower than minimum currency - // unit or lower than ad group minimum cost-per-click. - BUDGET_AMOUNT_TOO_SMALL = 2; - - // The specified budget amount is too large. - BUDGET_AMOUNT_TOO_LARGE = 3; - - // The specified budget amount is not a valid amount. e.g. not a multiple - // of minimum currency unit. - INVALID_BUDGET_AMOUNT = 4; - - // The specified keyword or ad violates ad policy. - POLICY_ERROR = 5; - - // The specified bid amount is not valid. e.g. too many fractional digits, - // or negative amount. - INVALID_BID_AMOUNT = 6; - - // The number of keywords in ad group have reached the maximum allowed. - ADGROUP_KEYWORD_LIMIT = 7; - - // The recommendation requested to apply has already been applied. - RECOMMENDATION_ALREADY_APPLIED = 8; - - // The recommendation requested to apply has been invalidated. - RECOMMENDATION_INVALIDATED = 9; - - // The number of operations in a single request exceeds the maximum allowed. - TOO_MANY_OPERATIONS = 10; - - // There are no operations in the request. - NO_OPERATIONS = 11; - - // Operations with multiple recommendation types are not supported when - // partial failure mode is not enabled. - DIFFERENT_TYPES_NOT_SUPPORTED = 12; - - // Request contains multiple operations with the same resource_name. - DUPLICATE_RESOURCE_NAME = 13; - - // The recommendation requested to dismiss has already been dismissed. - RECOMMENDATION_ALREADY_DISMISSED = 14; - - // The recommendation apply request was malformed and invalid. - INVALID_APPLY_REQUEST = 15; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/region_code_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/region_code_error.proto deleted file mode 100644 index 49ba7747e..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/region_code_error.proto +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "RegionCodeErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing region code errors. - -// Container for enum describing possible region code errors. -message RegionCodeErrorEnum { - // Enum describing possible region code errors. - enum RegionCodeError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Invalid region code. - INVALID_REGION_CODE = 2; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/request_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/request_error.proto deleted file mode 100644 index 5b1f126d6..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/request_error.proto +++ /dev/null @@ -1,112 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "RequestErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing request errors. - -// Container for enum describing possible request errors. -message RequestErrorEnum { - // Enum describing possible request errors. - enum RequestError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Resource name is required for this request. - RESOURCE_NAME_MISSING = 3; - - // Resource name provided is malformed. - RESOURCE_NAME_MALFORMED = 4; - - // Resource name provided is malformed. - BAD_RESOURCE_ID = 17; - - // Customer ID is invalid. - INVALID_CUSTOMER_ID = 16; - - // Mutate operation should have either create, update, or remove specified. - OPERATION_REQUIRED = 5; - - // Requested resource not found. - RESOURCE_NOT_FOUND = 6; - - // Next page token specified in user request is invalid. - INVALID_PAGE_TOKEN = 7; - - // Next page token specified in user request has expired. - EXPIRED_PAGE_TOKEN = 8; - - // Page size specified in user request is invalid. - INVALID_PAGE_SIZE = 22; - - // Required field is missing. - REQUIRED_FIELD_MISSING = 9; - - // The field cannot be modified because it's immutable. It's also possible - // that the field can be modified using 'create' operation but not 'update'. - IMMUTABLE_FIELD = 11; - - // Received too many entries in request. - TOO_MANY_MUTATE_OPERATIONS = 13; - - // Request cannot be executed by a manager account. - CANNOT_BE_EXECUTED_BY_MANAGER_ACCOUNT = 14; - - // Mutate request was attempting to modify a readonly field. - // For instance, Budget fields can be requested for Ad Group, - // but are read-only for adGroups:mutate. - CANNOT_MODIFY_FOREIGN_FIELD = 15; - - // Enum value is not permitted. - INVALID_ENUM_VALUE = 18; - - // The developer-token parameter is required for all requests. - DEVELOPER_TOKEN_PARAMETER_MISSING = 19; - - // The login-customer-id parameter is required for this request. - LOGIN_CUSTOMER_ID_PARAMETER_MISSING = 20; - - // page_token is set in the validate only request - VALIDATE_ONLY_REQUEST_HAS_PAGE_TOKEN = 21; - - // return_summary_row cannot be enabled if request did not select any - // metrics field. - CANNOT_RETURN_SUMMARY_ROW_FOR_REQUEST_WITHOUT_METRICS = 29; - - // return_summary_row should not be enabled for validate only requests. - CANNOT_RETURN_SUMMARY_ROW_FOR_VALIDATE_ONLY_REQUESTS = 30; - - // return_summary_row parameter value should be the same between requests - // with page_token field set and their original request. - INCONSISTENT_RETURN_SUMMARY_ROW_VALUE = 31; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/resource_access_denied_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/resource_access_denied_error.proto deleted file mode 100644 index 09db63c58..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/resource_access_denied_error.proto +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "ResourceAccessDeniedErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing resource access denied errors. - -// Container for enum describing possible resource access denied errors. -message ResourceAccessDeniedErrorEnum { - // Enum describing possible resource access denied errors. - enum ResourceAccessDeniedError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // User did not have write access. - WRITE_ACCESS_DENIED = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/resource_count_limit_exceeded_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/resource_count_limit_exceeded_error.proto deleted file mode 100644 index 0b9e6701c..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/resource_count_limit_exceeded_error.proto +++ /dev/null @@ -1,93 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "ResourceCountLimitExceededErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing resource count limit exceeded errors. - -// Container for enum describing possible resource count limit exceeded errors. -message ResourceCountLimitExceededErrorEnum { - // Enum describing possible resource count limit exceeded errors. - enum ResourceCountLimitExceededError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Indicates that this request would exceed the number of allowed resources - // for the Google Ads account. The exact resource type and limit being - // checked can be inferred from accountLimitType. - ACCOUNT_LIMIT = 2; - - // Indicates that this request would exceed the number of allowed resources - // in a Campaign. The exact resource type and limit being checked can be - // inferred from accountLimitType, and the numeric id of the - // Campaign involved is given by enclosingId. - CAMPAIGN_LIMIT = 3; - - // Indicates that this request would exceed the number of allowed resources - // in an ad group. The exact resource type and limit being checked can be - // inferred from accountLimitType, and the numeric id of the - // ad group involved is given by enclosingId. - ADGROUP_LIMIT = 4; - - // Indicates that this request would exceed the number of allowed resources - // in an ad group ad. The exact resource type and limit being checked can - // be inferred from accountLimitType, and the enclosingId - // contains the ad group id followed by the ad id, separated by a single - // comma (,). - AD_GROUP_AD_LIMIT = 5; - - // Indicates that this request would exceed the number of allowed resources - // in an ad group criterion. The exact resource type and limit being checked - // can be inferred from accountLimitType, and the - // enclosingId contains the ad group id followed by the - // criterion id, separated by a single comma (,). - AD_GROUP_CRITERION_LIMIT = 6; - - // Indicates that this request would exceed the number of allowed resources - // in this shared set. The exact resource type and limit being checked can - // be inferred from accountLimitType, and the numeric id of the - // shared set involved is given by enclosingId. - SHARED_SET_LIMIT = 7; - - // Exceeds a limit related to a matching function. - MATCHING_FUNCTION_LIMIT = 8; - - // The response for this request would exceed the maximum number of rows - // that can be returned. - RESPONSE_ROW_LIMIT_EXCEEDED = 9; - - // This request would exceed a limit on the number of allowed resources. - // The details of which type of limit was exceeded will eventually be - // returned in ErrorDetails. - RESOURCE_LIMIT = 10; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/setting_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/setting_error.proto deleted file mode 100644 index eb60df171..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/setting_error.proto +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "SettingErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing setting errors. - -// Container for enum describing possible setting errors. -message SettingErrorEnum { - // Enum describing possible setting errors. - enum SettingError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The campaign setting is not available for this Google Ads account. - SETTING_TYPE_IS_NOT_AVAILABLE = 3; - - // The setting is not compatible with the campaign. - SETTING_TYPE_IS_NOT_COMPATIBLE_WITH_CAMPAIGN = 4; - - // The supplied TargetingSetting contains an invalid CriterionTypeGroup. See - // CriterionTypeGroup documentation for CriterionTypeGroups allowed - // in Campaign or AdGroup TargetingSettings. - TARGETING_SETTING_CONTAINS_INVALID_CRITERION_TYPE_GROUP = 5; - - // TargetingSetting must not explicitly - // set any of the Demographic CriterionTypeGroups (AGE_RANGE, GENDER, - // PARENT, INCOME_RANGE) to false (it's okay to not set them at all, in - // which case the system will set them to true automatically). - TARGETING_SETTING_DEMOGRAPHIC_CRITERION_TYPE_GROUPS_MUST_BE_SET_TO_TARGET_ALL = 6; - - // TargetingSetting cannot change any of - // the Demographic CriterionTypeGroups (AGE_RANGE, GENDER, PARENT, - // INCOME_RANGE) from true to false. - TARGETING_SETTING_CANNOT_CHANGE_TARGET_ALL_TO_FALSE_FOR_DEMOGRAPHIC_CRITERION_TYPE_GROUP = 7; - - // At least one feed id should be present. - DYNAMIC_SEARCH_ADS_SETTING_AT_LEAST_ONE_FEED_ID_MUST_BE_PRESENT = 8; - - // The supplied DynamicSearchAdsSetting contains an invalid domain name. - DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_INVALID_DOMAIN_NAME = 9; - - // The supplied DynamicSearchAdsSetting contains a subdomain name. - DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_SUBDOMAIN_NAME = 10; - - // The supplied DynamicSearchAdsSetting contains an invalid language code. - DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_INVALID_LANGUAGE_CODE = 11; - - // TargetingSettings in search campaigns should not have - // CriterionTypeGroup.PLACEMENT set to targetAll. - TARGET_ALL_IS_NOT_ALLOWED_FOR_PLACEMENT_IN_SEARCH_CAMPAIGN = 12; - - // Duplicate description in universal app setting description field. - UNIVERSAL_APP_CAMPAIGN_SETTING_DUPLICATE_DESCRIPTION = 13; - - // Description line width is too long in universal app setting description - // field. - UNIVERSAL_APP_CAMPAIGN_SETTING_DESCRIPTION_LINE_WIDTH_TOO_LONG = 14; - - // Universal app setting appId field cannot be modified for COMPLETE - // campaigns. - UNIVERSAL_APP_CAMPAIGN_SETTING_APP_ID_CANNOT_BE_MODIFIED = 15; - - // YoutubeVideoMediaIds in universal app setting cannot exceed size limit. - TOO_MANY_YOUTUBE_MEDIA_IDS_IN_UNIVERSAL_APP_CAMPAIGN = 16; - - // ImageMediaIds in universal app setting cannot exceed size limit. - TOO_MANY_IMAGE_MEDIA_IDS_IN_UNIVERSAL_APP_CAMPAIGN = 17; - - // Media is incompatible for universal app campaign. - MEDIA_INCOMPATIBLE_FOR_UNIVERSAL_APP_CAMPAIGN = 18; - - // Too many exclamation marks in universal app campaign ad text ideas. - TOO_MANY_EXCLAMATION_MARKS = 19; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/shared_criterion_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/shared_criterion_error.proto deleted file mode 100644 index 3870b6814..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/shared_criterion_error.proto +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "SharedCriterionErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing shared criterion errors. - -// Container for enum describing possible shared criterion errors. -message SharedCriterionErrorEnum { - // Enum describing possible shared criterion errors. - enum SharedCriterionError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The criterion is not appropriate for the shared set type. - CRITERION_TYPE_NOT_ALLOWED_FOR_SHARED_SET_TYPE = 2; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/shared_set_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/shared_set_error.proto deleted file mode 100644 index b868c66f0..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/shared_set_error.proto +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "SharedSetErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing shared set errors. - -// Container for enum describing possible shared set errors. -message SharedSetErrorEnum { - // Enum describing possible shared set errors. - enum SharedSetError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The customer cannot create this type of shared set. - CUSTOMER_CANNOT_CREATE_SHARED_SET_OF_THIS_TYPE = 2; - - // A shared set with this name already exists. - DUPLICATE_NAME = 3; - - // Removed shared sets cannot be mutated. - SHARED_SET_REMOVED = 4; - - // The shared set cannot be removed because it is in use. - SHARED_SET_IN_USE = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/size_limit_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/size_limit_error.proto deleted file mode 100644 index 9a94beef3..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/size_limit_error.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "SizeLimitErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing size limit errors. - -// Container for enum describing possible size limit errors. -message SizeLimitErrorEnum { - // Enum describing possible size limit errors. - enum SizeLimitError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The number of entries in the request exceeds the system limit. - REQUEST_SIZE_LIMIT_EXCEEDED = 2; - - // The number of entries in the response exceeds the system limit. - RESPONSE_SIZE_LIMIT_EXCEEDED = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/string_format_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/string_format_error.proto deleted file mode 100644 index 7dddad081..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/string_format_error.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "StringFormatErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing string format errors. - -// Container for enum describing possible string format errors. -message StringFormatErrorEnum { - // Enum describing possible string format errors. - enum StringFormatError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The input string value contains disallowed characters. - ILLEGAL_CHARS = 2; - - // The input string value is invalid for the associated field. - INVALID_FORMAT = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/string_length_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/string_length_error.proto deleted file mode 100644 index 8764ca727..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/string_length_error.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "StringLengthErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing string length errors. - -// Container for enum describing possible string length errors. -message StringLengthErrorEnum { - // Enum describing possible string length errors. - enum StringLengthError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Too short. - TOO_SHORT = 2; - - // Too long. - TOO_LONG = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/url_field_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/url_field_error.proto deleted file mode 100644 index 2e306caef..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/url_field_error.proto +++ /dev/null @@ -1,215 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "UrlFieldErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing url field errors. - -// Container for enum describing possible url field errors. -message UrlFieldErrorEnum { - // Enum describing possible url field errors. - enum UrlFieldError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The tracking url template is invalid. - INVALID_TRACKING_URL_TEMPLATE = 2; - - // The tracking url template contains invalid tag. - INVALID_TAG_IN_TRACKING_URL_TEMPLATE = 3; - - // The tracking url template must contain at least one tag (e.g. {lpurl}), - // This applies only to tracking url template associated with website ads or - // product ads. - MISSING_TRACKING_URL_TEMPLATE_TAG = 4; - - // The tracking url template must start with a valid protocol (or lpurl - // tag). - MISSING_PROTOCOL_IN_TRACKING_URL_TEMPLATE = 5; - - // The tracking url template starts with an invalid protocol. - INVALID_PROTOCOL_IN_TRACKING_URL_TEMPLATE = 6; - - // The tracking url template contains illegal characters. - MALFORMED_TRACKING_URL_TEMPLATE = 7; - - // The tracking url template must contain a host name (or lpurl tag). - MISSING_HOST_IN_TRACKING_URL_TEMPLATE = 8; - - // The tracking url template has an invalid or missing top level domain - // extension. - INVALID_TLD_IN_TRACKING_URL_TEMPLATE = 9; - - // The tracking url template contains nested occurrences of the same - // conditional tag (i.e. {ifmobile:{ifmobile:x}}). - REDUNDANT_NESTED_TRACKING_URL_TEMPLATE_TAG = 10; - - // The final url is invalid. - INVALID_FINAL_URL = 11; - - // The final url contains invalid tag. - INVALID_TAG_IN_FINAL_URL = 12; - - // The final url contains nested occurrences of the same conditional tag - // (i.e. {ifmobile:{ifmobile:x}}). - REDUNDANT_NESTED_FINAL_URL_TAG = 13; - - // The final url must start with a valid protocol. - MISSING_PROTOCOL_IN_FINAL_URL = 14; - - // The final url starts with an invalid protocol. - INVALID_PROTOCOL_IN_FINAL_URL = 15; - - // The final url contains illegal characters. - MALFORMED_FINAL_URL = 16; - - // The final url must contain a host name. - MISSING_HOST_IN_FINAL_URL = 17; - - // The tracking url template has an invalid or missing top level domain - // extension. - INVALID_TLD_IN_FINAL_URL = 18; - - // The final mobile url is invalid. - INVALID_FINAL_MOBILE_URL = 19; - - // The final mobile url contains invalid tag. - INVALID_TAG_IN_FINAL_MOBILE_URL = 20; - - // The final mobile url contains nested occurrences of the same conditional - // tag (i.e. {ifmobile:{ifmobile:x}}). - REDUNDANT_NESTED_FINAL_MOBILE_URL_TAG = 21; - - // The final mobile url must start with a valid protocol. - MISSING_PROTOCOL_IN_FINAL_MOBILE_URL = 22; - - // The final mobile url starts with an invalid protocol. - INVALID_PROTOCOL_IN_FINAL_MOBILE_URL = 23; - - // The final mobile url contains illegal characters. - MALFORMED_FINAL_MOBILE_URL = 24; - - // The final mobile url must contain a host name. - MISSING_HOST_IN_FINAL_MOBILE_URL = 25; - - // The tracking url template has an invalid or missing top level domain - // extension. - INVALID_TLD_IN_FINAL_MOBILE_URL = 26; - - // The final app url is invalid. - INVALID_FINAL_APP_URL = 27; - - // The final app url contains invalid tag. - INVALID_TAG_IN_FINAL_APP_URL = 28; - - // The final app url contains nested occurrences of the same conditional tag - // (i.e. {ifmobile:{ifmobile:x}}). - REDUNDANT_NESTED_FINAL_APP_URL_TAG = 29; - - // More than one app url found for the same OS type. - MULTIPLE_APP_URLS_FOR_OSTYPE = 30; - - // The OS type given for an app url is not valid. - INVALID_OSTYPE = 31; - - // The protocol given for an app url is not valid. (E.g. "android-app://") - INVALID_PROTOCOL_FOR_APP_URL = 32; - - // The package id (app id) given for an app url is not valid. - INVALID_PACKAGE_ID_FOR_APP_URL = 33; - - // The number of url custom parameters for an resource exceeds the maximum - // limit allowed. - URL_CUSTOM_PARAMETERS_COUNT_EXCEEDS_LIMIT = 34; - - // An invalid character appears in the parameter key. - INVALID_CHARACTERS_IN_URL_CUSTOM_PARAMETER_KEY = 39; - - // An invalid character appears in the parameter value. - INVALID_CHARACTERS_IN_URL_CUSTOM_PARAMETER_VALUE = 40; - - // The url custom parameter value fails url tag validation. - INVALID_TAG_IN_URL_CUSTOM_PARAMETER_VALUE = 41; - - // The custom parameter contains nested occurrences of the same conditional - // tag (i.e. {ifmobile:{ifmobile:x}}). - REDUNDANT_NESTED_URL_CUSTOM_PARAMETER_TAG = 42; - - // The protocol (http:// or https://) is missing. - MISSING_PROTOCOL = 43; - - // Unsupported protocol in URL. Only http and https are supported. - INVALID_PROTOCOL = 52; - - // The url is invalid. - INVALID_URL = 44; - - // Destination Url is deprecated. - DESTINATION_URL_DEPRECATED = 45; - - // The url contains invalid tag. - INVALID_TAG_IN_URL = 46; - - // The url must contain at least one tag (e.g. {lpurl}), This applies only - // to urls associated with website ads or product ads. - MISSING_URL_TAG = 47; - - // Duplicate url id. - DUPLICATE_URL_ID = 48; - - // Invalid url id. - INVALID_URL_ID = 49; - - // The final url suffix cannot begin with '?' or '&' characters and must be - // a valid query string. - FINAL_URL_SUFFIX_MALFORMED = 50; - - // The final url suffix cannot contain {lpurl} related or {ignore} tags. - INVALID_TAG_IN_FINAL_URL_SUFFIX = 51; - - // The top level domain is invalid, e.g, not a public top level domain - // listed in publicsuffix.org. - INVALID_TOP_LEVEL_DOMAIN = 53; - - // Malformed top level domain in URL. - MALFORMED_TOP_LEVEL_DOMAIN = 54; - - // Malformed URL. - MALFORMED_URL = 55; - - // No host found in URL. - MISSING_HOST = 56; - - // Custom parameter value cannot be null. - NULL_CUSTOM_PARAMETER_VALUE = 57; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/user_list_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/user_list_error.proto deleted file mode 100644 index e0f0fb235..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/user_list_error.proto +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "UserListErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing user list errors. - -// Container for enum describing possible user list errors. -message UserListErrorEnum { - // Enum describing possible user list errors. - enum UserListError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Creating and updating external remarketing user lists is not supported. - EXTERNAL_REMARKETING_USER_LIST_MUTATE_NOT_SUPPORTED = 2; - - // Concrete type of user list is required. - CONCRETE_TYPE_REQUIRED = 3; - - // Creating/updating user list conversion types requires specifying the - // conversion type Id. - CONVERSION_TYPE_ID_REQUIRED = 4; - - // Remarketing user list cannot have duplicate conversion types. - DUPLICATE_CONVERSION_TYPES = 5; - - // Conversion type is invalid/unknown. - INVALID_CONVERSION_TYPE = 6; - - // User list description is empty or invalid. - INVALID_DESCRIPTION = 7; - - // User list name is empty or invalid. - INVALID_NAME = 8; - - // Type of the UserList does not match. - INVALID_TYPE = 9; - - // Embedded logical user lists are not allowed. - CAN_NOT_ADD_LOGICAL_LIST_AS_LOGICAL_LIST_OPERAND = 10; - - // User list rule operand is invalid. - INVALID_USER_LIST_LOGICAL_RULE_OPERAND = 11; - - // Name is already being used for another user list for the account. - NAME_ALREADY_USED = 12; - - // Name is required when creating a new conversion type. - NEW_CONVERSION_TYPE_NAME_REQUIRED = 13; - - // The given conversion type name has been used. - CONVERSION_TYPE_NAME_ALREADY_USED = 14; - - // Only an owner account may edit a user list. - OWNERSHIP_REQUIRED_FOR_SET = 15; - - // Creating user list without setting type in oneof user_list field, or - // creating/updating read-only user list types is not allowed. - USER_LIST_MUTATE_NOT_SUPPORTED = 16; - - // Rule is invalid. - INVALID_RULE = 17; - - // The specified date range is empty. - INVALID_DATE_RANGE = 27; - - // A UserList which is privacy sensitive or legal rejected cannot be mutated - // by external users. - CAN_NOT_MUTATE_SENSITIVE_USERLIST = 28; - - // Maximum number of rulebased user lists a customer can have. - MAX_NUM_RULEBASED_USERLISTS = 29; - - // BasicUserList's billable record field cannot be modified once it is set. - CANNOT_MODIFY_BILLABLE_RECORD_COUNT = 30; - - // crm_based_user_list.app_id field must be set when upload_key_type is - // MOBILE_ADVERTISING_ID. - APP_ID_NOT_SET = 31; - - // Name of the user list is reserved for system generated lists and cannot - // be used. - USERLIST_NAME_IS_RESERVED_FOR_SYSTEM_LIST = 32; - - // Advertiser needs to be on the allow-list to use remarketing lists created - // from advertiser uploaded data (e.g., Customer Match lists). - ADVERTISER_NOT_WHITELISTED_FOR_USING_UPLOADED_DATA = 33; - - // The provided rule_type is not supported for the user list. - RULE_TYPE_IS_NOT_SUPPORTED = 34; - - // Similar user list cannot be used as a logical user list operand. - CAN_NOT_ADD_A_SIMILAR_USERLIST_AS_LOGICAL_LIST_OPERAND = 35; - - // Logical user list should not have a mix of CRM based user list and other - // types of lists in its rules. - CAN_NOT_MIX_CRM_BASED_IN_LOGICAL_LIST_WITH_OTHER_LISTS = 36; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/errors/youtube_video_registration_error.proto b/third_party/googleapis/google/ads/googleads/v2/errors/youtube_video_registration_error.proto deleted file mode 100644 index 4f93401c7..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/errors/youtube_video_registration_error.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "YoutubeVideoRegistrationErrorProto"; -option java_package = "com.google.ads.googleads.v2.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V2::Errors"; - -// Proto file describing YouTube video registration errors. - -// Container for enum describing YouTube video registration errors. -message YoutubeVideoRegistrationErrorEnum { - // Enum describing YouTube video registration errors. - enum YoutubeVideoRegistrationError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Video to be registered wasn't found. - VIDEO_NOT_FOUND = 2; - - // Video to be registered is not accessible (e.g. private). - VIDEO_NOT_ACCESSIBLE = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v2/googleads_gapic.yaml b/third_party/googleapis/google/ads/googleads/v2/googleads_gapic.yaml deleted file mode 100644 index ff8c544fd..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/googleads_gapic.yaml +++ /dev/null @@ -1,17 +0,0 @@ -type: com.google.api.codegen.ConfigProto -config_schema_version: 2.0.0 -language_settings: - csharp: - package_name: Google.Ads.GoogleAds.V2.Services - go: - package_name: google.golang.org/google/ads/googleads/v2/services - java: - package_name: com.google.ads.googleads.v2.services - nodejs: - package_name: v2.services - php: - package_name: Google\Ads\Googleads\V2\Services - python: - package_name: google.ads.googleads_v2.gapic.services - ruby: - package_name: Google::Ads::Googleads::V2::Services diff --git a/third_party/googleapis/google/ads/googleads/v2/googleads_grpc_service_config.json b/third_party/googleapis/google/ads/googleads/v2/googleads_grpc_service_config.json deleted file mode 100644 index 23c707ed6..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/googleads_grpc_service_config.json +++ /dev/null @@ -1,336 +0,0 @@ -{ - "methodConfig": [ - { - "name": [ - { - "service": "google.ads.googleads.v2.services.AccountBudgetProposalService" - }, - { - "service": "google.ads.googleads.v2.services.AccountBudgetService" - }, - { - "service": "google.ads.googleads.v2.services.AdGroupAdAssetViewService" - }, - { - "service": "google.ads.googleads.v2.services.AdGroupAdLabelService" - }, - { - "service": "google.ads.googleads.v2.services.AdGroupAdService" - }, - { - "service": "google.ads.googleads.v2.services.AdGroupAudienceViewService" - }, - { - "service": "google.ads.googleads.v2.services.AdGroupBidModifierService" - }, - { - "service": "google.ads.googleads.v2.services.AdGroupCriterionLabelService" - }, - { - "service": "google.ads.googleads.v2.services.AdGroupCriterionService" - }, - { - "service": "google.ads.googleads.v2.services.AdGroupCriterionSimulationService" - }, - { - "service": "google.ads.googleads.v2.services.AdGroupExtensionSettingService" - }, - { - "service": "google.ads.googleads.v2.services.AdGroupFeedService" - }, - { - "service": "google.ads.googleads.v2.services.AdGroupLabelService" - }, - { - "service": "google.ads.googleads.v2.services.AdGroupService" - }, - { - "service": "google.ads.googleads.v2.services.AdGroupSimulationService" - }, - { - "service": "google.ads.googleads.v2.services.AdParameterService" - }, - { - "service": "google.ads.googleads.v2.services.AdScheduleViewService" - }, - { - "service": "google.ads.googleads.v2.services.AdService" - }, - { - "service": "google.ads.googleads.v2.services.AgeRangeViewService" - }, - { - "service": "google.ads.googleads.v2.services.AssetService" - }, - { - "service": "google.ads.googleads.v2.services.BiddingStrategyService" - }, - { - "service": "google.ads.googleads.v2.services.BillingSetupService" - }, - { - "service": "google.ads.googleads.v2.services.CampaignAudienceViewService" - }, - { - "service": "google.ads.googleads.v2.services.CampaignBidModifierService" - }, - { - "service": "google.ads.googleads.v2.services.CampaignBudgetService" - }, - { - "service": "google.ads.googleads.v2.services.CampaignCriterionService" - }, - { - "service": "google.ads.googleads.v2.services.CampaignCriterionSimulationService" - }, - { - "service": "google.ads.googleads.v2.services.CampaignDraftService" - }, - { - "service": "google.ads.googleads.v2.services.CampaignExperimentService" - }, - { - "service": "google.ads.googleads.v2.services.CampaignExtensionSettingService" - }, - { - "service": "google.ads.googleads.v2.services.CampaignFeedService" - }, - { - "service": "google.ads.googleads.v2.services.CampaignLabelService" - }, - { - "service": "google.ads.googleads.v2.services.CampaignService" - }, - { - "service": "google.ads.googleads.v2.services.CampaignSharedSetService" - }, - { - "service": "google.ads.googleads.v2.services.CarrierConstantService" - }, - { - "service": "google.ads.googleads.v2.services.ChangeStatusService" - }, - { - "service": "google.ads.googleads.v2.services.ClickViewService" - }, - { - "service": "google.ads.googleads.v2.services.ConversionActionService" - }, - { - "service": "google.ads.googleads.v2.services.ConversionAdjustmentUploadService" - }, - { - "service": "google.ads.googleads.v2.services.ConversionUploadService" - }, - { - "service": "google.ads.googleads.v2.services.CustomInterestService" - }, - { - "service": "google.ads.googleads.v2.services.CustomerClientLinkService" - }, - { - "service": "google.ads.googleads.v2.services.CustomerClientService" - }, - { - "service": "google.ads.googleads.v2.services.CustomerExtensionSettingService" - }, - { - "service": "google.ads.googleads.v2.services.CustomerFeedService" - }, - { - "service": "google.ads.googleads.v2.services.CustomerLabelService" - }, - { - "service": "google.ads.googleads.v2.services.CustomerManagerLinkService" - }, - { - "service": "google.ads.googleads.v2.services.CustomerNegativeCriterionService" - }, - { - "service": "google.ads.googleads.v2.services.CustomerService" - }, - { - "service": "google.ads.googleads.v2.services.DetailPlacementViewService" - }, - { - "service": "google.ads.googleads.v2.services.DisplayKeywordViewService" - }, - { - "service": "google.ads.googleads.v2.services.DistanceViewService" - }, - { - "service": "google.ads.googleads.v2.services.DomainCategoryService" - }, - { - "service": "google.ads.googleads.v2.services.DynamicSearchAdsSearchTermViewService" - }, - { - "service": "google.ads.googleads.v2.services.ExpandedLandingPageViewService" - }, - { - "service": "google.ads.googleads.v2.services.ExtensionFeedItemService" - }, - { - "service": "google.ads.googleads.v2.services.FeedItemService" - }, - { - "service": "google.ads.googleads.v2.services.FeedItemTargetService" - }, - { - "service": "google.ads.googleads.v2.services.FeedMappingService" - }, - { - "service": "google.ads.googleads.v2.services.FeedPlaceholderViewService" - }, - { - "service": "google.ads.googleads.v2.services.FeedService" - }, - { - "service": "google.ads.googleads.v2.services.GenderViewService" - }, - { - "service": "google.ads.googleads.v2.services.GeoTargetConstantService" - }, - { - "service": "google.ads.googleads.v2.services.GeographicViewService" - }, - { - "service": "google.ads.googleads.v2.services.GoogleAdsFieldService" - }, - { - "service": "google.ads.googleads.v2.services.GoogleAdsService" - }, - { - "service": "google.ads.googleads.v2.services.GroupPlacementViewService" - }, - { - "service": "google.ads.googleads.v2.services.HotelGroupViewService" - }, - { - "service": "google.ads.googleads.v2.services.HotelPerformanceViewService" - }, - { - "service": "google.ads.googleads.v2.services.InvoiceService" - }, - { - "service": "google.ads.googleads.v2.services.KeywordPlanAdGroupService" - }, - { - "service": "google.ads.googleads.v2.services.KeywordPlanCampaignService" - }, - { - "service": "google.ads.googleads.v2.services.KeywordPlanIdeaService" - }, - { - "service": "google.ads.googleads.v2.services.KeywordPlanKeywordService" - }, - { - "service": "google.ads.googleads.v2.services.KeywordPlanNegativeKeywordService" - }, - { - "service": "google.ads.googleads.v2.services.KeywordPlanService" - }, - { - "service": "google.ads.googleads.v2.services.KeywordViewService" - }, - { - "service": "google.ads.googleads.v2.services.LabelService" - }, - { - "service": "google.ads.googleads.v2.services.LandingPageViewService" - }, - { - "service": "google.ads.googleads.v2.services.LanguageConstantService" - }, - { - "service": "google.ads.googleads.v2.services.LocationViewService" - }, - { - "service": "google.ads.googleads.v2.services.ManagedPlacementViewService" - }, - { - "service": "google.ads.googleads.v2.services.MediaFileService" - }, - { - "service": "google.ads.googleads.v2.services.MerchantCenterLinkService" - }, - { - "service": "google.ads.googleads.v2.services.MobileAppCategoryConstantService" - }, - { - "service": "google.ads.googleads.v2.services.MobileDeviceConstantService" - }, - { - "service": "google.ads.googleads.v2.services.MutateJobService" - }, - { - "service": "google.ads.googleads.v2.services.OperatingSystemVersionConstantService" - }, - { - "service": "google.ads.googleads.v2.services.PaidOrganicSearchTermViewService" - }, - { - "service": "google.ads.googleads.v2.services.ParentalStatusViewService" - }, - { - "service": "google.ads.googleads.v2.services.PaymentsAccountService" - }, - { - "service": "google.ads.googleads.v2.services.ProductBiddingCategoryConstantService" - }, - { - "service": "google.ads.googleads.v2.services.ProductGroupViewService" - }, - { - "service": "google.ads.googleads.v2.services.ReachPlanService" - }, - { - "service": "google.ads.googleads.v2.services.RecommendationService" - }, - { - "service": "google.ads.googleads.v2.services.RemarketingActionService" - }, - { - "service": "google.ads.googleads.v2.services.SearchTermViewService" - }, - { - "service": "google.ads.googleads.v2.services.SharedCriterionService" - }, - { - "service": "google.ads.googleads.v2.services.SharedSetService" - }, - { - "service": "google.ads.googleads.v2.services.ShoppingPerformanceViewService" - }, - { - "service": "google.ads.googleads.v2.services.TopicConstantService" - }, - { - "service": "google.ads.googleads.v2.services.TopicViewService" - }, - { - "service": "google.ads.googleads.v2.services.UserInterestService" - }, - { - "service": "google.ads.googleads.v2.services.UserListService" - }, - { - "service": "google.ads.googleads.v2.services.UserLocationViewService" - }, - { - "service": "google.ads.googleads.v2.services.VideoService" - } - ], - "timeout": "3600s", - "retryPolicy": { - "initialBackoff": "5s", - "maxBackoff": "60s", - "backoffMultiplier": 1.3, - "retryableStatusCodes": [ - "UNAVAILABLE", - "DEADLINE_EXCEEDED" - ] - } - } - ] -} diff --git a/third_party/googleapis/google/ads/googleads/v2/googleads_v2.yaml b/third_party/googleapis/google/ads/googleads/v2/googleads_v2.yaml deleted file mode 100644 index 0f17913fa..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/googleads_v2.yaml +++ /dev/null @@ -1,448 +0,0 @@ -type: google.api.Service -config_version: 3 -name: googleads.googleapis.com -title: Google Ads API - -apis: -- name: google.ads.googleads.v2.services.AccountBudgetProposalService -- name: google.ads.googleads.v2.services.AccountBudgetService -- name: google.ads.googleads.v2.services.AdGroupAdAssetViewService -- name: google.ads.googleads.v2.services.AdGroupAdLabelService -- name: google.ads.googleads.v2.services.AdGroupAdService -- name: google.ads.googleads.v2.services.AdGroupAudienceViewService -- name: google.ads.googleads.v2.services.AdGroupBidModifierService -- name: google.ads.googleads.v2.services.AdGroupCriterionLabelService -- name: google.ads.googleads.v2.services.AdGroupCriterionService -- name: google.ads.googleads.v2.services.AdGroupCriterionSimulationService -- name: google.ads.googleads.v2.services.AdGroupExtensionSettingService -- name: google.ads.googleads.v2.services.AdGroupFeedService -- name: google.ads.googleads.v2.services.AdGroupLabelService -- name: google.ads.googleads.v2.services.AdGroupService -- name: google.ads.googleads.v2.services.AdGroupSimulationService -- name: google.ads.googleads.v2.services.AdParameterService -- name: google.ads.googleads.v2.services.AdScheduleViewService -- name: google.ads.googleads.v2.services.AdService -- name: google.ads.googleads.v2.services.AgeRangeViewService -- name: google.ads.googleads.v2.services.AssetService -- name: google.ads.googleads.v2.services.BiddingStrategyService -- name: google.ads.googleads.v2.services.BillingSetupService -- name: google.ads.googleads.v2.services.CampaignAudienceViewService -- name: google.ads.googleads.v2.services.CampaignBidModifierService -- name: google.ads.googleads.v2.services.CampaignBudgetService -- name: google.ads.googleads.v2.services.CampaignCriterionService -- name: google.ads.googleads.v2.services.CampaignCriterionSimulationService -- name: google.ads.googleads.v2.services.CampaignDraftService -- name: google.ads.googleads.v2.services.CampaignExperimentService -- name: google.ads.googleads.v2.services.CampaignExtensionSettingService -- name: google.ads.googleads.v2.services.CampaignFeedService -- name: google.ads.googleads.v2.services.CampaignLabelService -- name: google.ads.googleads.v2.services.CampaignService -- name: google.ads.googleads.v2.services.CampaignSharedSetService -- name: google.ads.googleads.v2.services.CarrierConstantService -- name: google.ads.googleads.v2.services.ChangeStatusService -- name: google.ads.googleads.v2.services.ClickViewService -- name: google.ads.googleads.v2.services.ConversionActionService -- name: google.ads.googleads.v2.services.ConversionAdjustmentUploadService -- name: google.ads.googleads.v2.services.ConversionUploadService -- name: google.ads.googleads.v2.services.CustomInterestService -- name: google.ads.googleads.v2.services.CustomerClientLinkService -- name: google.ads.googleads.v2.services.CustomerClientService -- name: google.ads.googleads.v2.services.CustomerExtensionSettingService -- name: google.ads.googleads.v2.services.CustomerFeedService -- name: google.ads.googleads.v2.services.CustomerLabelService -- name: google.ads.googleads.v2.services.CustomerManagerLinkService -- name: google.ads.googleads.v2.services.CustomerNegativeCriterionService -- name: google.ads.googleads.v2.services.CustomerService -- name: google.ads.googleads.v2.services.DetailPlacementViewService -- name: google.ads.googleads.v2.services.DisplayKeywordViewService -- name: google.ads.googleads.v2.services.DistanceViewService -- name: google.ads.googleads.v2.services.DomainCategoryService -- name: google.ads.googleads.v2.services.DynamicSearchAdsSearchTermViewService -- name: google.ads.googleads.v2.services.ExpandedLandingPageViewService -- name: google.ads.googleads.v2.services.ExtensionFeedItemService -- name: google.ads.googleads.v2.services.FeedItemService -- name: google.ads.googleads.v2.services.FeedItemTargetService -- name: google.ads.googleads.v2.services.FeedMappingService -- name: google.ads.googleads.v2.services.FeedPlaceholderViewService -- name: google.ads.googleads.v2.services.FeedService -- name: google.ads.googleads.v2.services.GenderViewService -- name: google.ads.googleads.v2.services.GeoTargetConstantService -- name: google.ads.googleads.v2.services.GeographicViewService -- name: google.ads.googleads.v2.services.GoogleAdsFieldService -- name: google.ads.googleads.v2.services.GoogleAdsService -- name: google.ads.googleads.v2.services.GroupPlacementViewService -- name: google.ads.googleads.v2.services.HotelGroupViewService -- name: google.ads.googleads.v2.services.HotelPerformanceViewService -- name: google.ads.googleads.v2.services.InvoiceService -- name: google.ads.googleads.v2.services.KeywordPlanAdGroupService -- name: google.ads.googleads.v2.services.KeywordPlanCampaignService -- name: google.ads.googleads.v2.services.KeywordPlanIdeaService -- name: google.ads.googleads.v2.services.KeywordPlanKeywordService -- name: google.ads.googleads.v2.services.KeywordPlanNegativeKeywordService -- name: google.ads.googleads.v2.services.KeywordPlanService -- name: google.ads.googleads.v2.services.KeywordViewService -- name: google.ads.googleads.v2.services.LabelService -- name: google.ads.googleads.v2.services.LandingPageViewService -- name: google.ads.googleads.v2.services.LanguageConstantService -- name: google.ads.googleads.v2.services.LocationViewService -- name: google.ads.googleads.v2.services.ManagedPlacementViewService -- name: google.ads.googleads.v2.services.MediaFileService -- name: google.ads.googleads.v2.services.MerchantCenterLinkService -- name: google.ads.googleads.v2.services.MobileAppCategoryConstantService -- name: google.ads.googleads.v2.services.MobileDeviceConstantService -- name: google.ads.googleads.v2.services.MutateJobService -- name: google.ads.googleads.v2.services.OperatingSystemVersionConstantService -- name: google.ads.googleads.v2.services.PaidOrganicSearchTermViewService -- name: google.ads.googleads.v2.services.ParentalStatusViewService -- name: google.ads.googleads.v2.services.PaymentsAccountService -- name: google.ads.googleads.v2.services.ProductBiddingCategoryConstantService -- name: google.ads.googleads.v2.services.ProductGroupViewService -- name: google.ads.googleads.v2.services.ReachPlanService -- name: google.ads.googleads.v2.services.RecommendationService -- name: google.ads.googleads.v2.services.RemarketingActionService -- name: google.ads.googleads.v2.services.SearchTermViewService -- name: google.ads.googleads.v2.services.SharedCriterionService -- name: google.ads.googleads.v2.services.SharedSetService -- name: google.ads.googleads.v2.services.ShoppingPerformanceViewService -- name: google.ads.googleads.v2.services.TopicConstantService -- name: google.ads.googleads.v2.services.TopicViewService -- name: google.ads.googleads.v2.services.UserInterestService -- name: google.ads.googleads.v2.services.UserListService -- name: google.ads.googleads.v2.services.UserLocationViewService -- name: google.ads.googleads.v2.services.VideoService - -types: -- name: google.ads.googleads.v2.errors.GoogleAdsFailure -- name: google.ads.googleads.v2.resources.MutateJob.MutateJobMetadata -- name: google.ads.googleads.v2.services.CreateCampaignExperimentMetadata - -documentation: - summary: 'Manage your Google Ads accounts, campaigns, and reports with this API.' - overview: |- - The Google Ads API enables an app to integrate with the Google Ads - platform. You can efficiently retrieve and change your Google Ads data - using the API, making it ideal for managing large or complex accounts and - campaigns. - -backend: - rules: - - selector: google.ads.googleads.v2.services.AccountBudgetProposalService.GetAccountBudgetProposal - deadline: 60.0 - - selector: google.ads.googleads.v2.services.AccountBudgetProposalService.MutateAccountBudgetProposal - deadline: 60.0 - - selector: google.ads.googleads.v2.services.AccountBudgetService.GetAccountBudget - deadline: 60.0 - - selector: google.ads.googleads.v2.services.AdGroupAdAssetViewService.GetAdGroupAdAssetView - deadline: 60.0 - - selector: google.ads.googleads.v2.services.AdGroupAdLabelService.GetAdGroupAdLabel - deadline: 60.0 - - selector: google.ads.googleads.v2.services.AdGroupAdLabelService.MutateAdGroupAdLabels - deadline: 60.0 - - selector: google.ads.googleads.v2.services.AdGroupAdService.GetAdGroupAd - deadline: 60.0 - - selector: google.ads.googleads.v2.services.AdGroupAdService.MutateAdGroupAds - deadline: 60.0 - - selector: google.ads.googleads.v2.services.AdGroupAudienceViewService.GetAdGroupAudienceView - deadline: 60.0 - - selector: google.ads.googleads.v2.services.AdGroupBidModifierService.GetAdGroupBidModifier - deadline: 60.0 - - selector: google.ads.googleads.v2.services.AdGroupBidModifierService.MutateAdGroupBidModifiers - deadline: 60.0 - - selector: google.ads.googleads.v2.services.AdGroupCriterionLabelService.GetAdGroupCriterionLabel - deadline: 60.0 - - selector: google.ads.googleads.v2.services.AdGroupCriterionLabelService.MutateAdGroupCriterionLabels - deadline: 60.0 - - selector: google.ads.googleads.v2.services.AdGroupCriterionService.GetAdGroupCriterion - deadline: 60.0 - - selector: google.ads.googleads.v2.services.AdGroupCriterionService.MutateAdGroupCriteria - deadline: 60.0 - - selector: google.ads.googleads.v2.services.AdGroupCriterionSimulationService.GetAdGroupCriterionSimulation - deadline: 60.0 - - selector: google.ads.googleads.v2.services.AdGroupExtensionSettingService.GetAdGroupExtensionSetting - deadline: 60.0 - - selector: google.ads.googleads.v2.services.AdGroupExtensionSettingService.MutateAdGroupExtensionSettings - deadline: 60.0 - - selector: google.ads.googleads.v2.services.AdGroupFeedService.GetAdGroupFeed - deadline: 60.0 - - selector: google.ads.googleads.v2.services.AdGroupFeedService.MutateAdGroupFeeds - deadline: 60.0 - - selector: google.ads.googleads.v2.services.AdGroupLabelService.GetAdGroupLabel - deadline: 60.0 - - selector: google.ads.googleads.v2.services.AdGroupLabelService.MutateAdGroupLabels - deadline: 60.0 - - selector: google.ads.googleads.v2.services.AdGroupService.GetAdGroup - deadline: 60.0 - - selector: google.ads.googleads.v2.services.AdGroupService.MutateAdGroups - deadline: 60.0 - - selector: google.ads.googleads.v2.services.AdGroupSimulationService.GetAdGroupSimulation - deadline: 60.0 - - selector: google.ads.googleads.v2.services.AdParameterService.GetAdParameter - deadline: 60.0 - - selector: google.ads.googleads.v2.services.AdParameterService.MutateAdParameters - deadline: 60.0 - - selector: google.ads.googleads.v2.services.AdScheduleViewService.GetAdScheduleView - deadline: 60.0 - - selector: google.ads.googleads.v2.services.AdService.GetAd - deadline: 60.0 - - selector: google.ads.googleads.v2.services.AdService.MutateAds - deadline: 60.0 - - selector: google.ads.googleads.v2.services.AgeRangeViewService.GetAgeRangeView - deadline: 60.0 - - selector: google.ads.googleads.v2.services.AssetService.GetAsset - deadline: 60.0 - - selector: google.ads.googleads.v2.services.AssetService.MutateAssets - deadline: 60.0 - - selector: google.ads.googleads.v2.services.BiddingStrategyService.GetBiddingStrategy - deadline: 60.0 - - selector: google.ads.googleads.v2.services.BiddingStrategyService.MutateBiddingStrategies - deadline: 60.0 - - selector: google.ads.googleads.v2.services.BillingSetupService.GetBillingSetup - deadline: 60.0 - - selector: google.ads.googleads.v2.services.BillingSetupService.MutateBillingSetup - deadline: 60.0 - - selector: google.ads.googleads.v2.services.CampaignAudienceViewService.GetCampaignAudienceView - deadline: 60.0 - - selector: google.ads.googleads.v2.services.CampaignBidModifierService.GetCampaignBidModifier - deadline: 60.0 - - selector: google.ads.googleads.v2.services.CampaignBidModifierService.MutateCampaignBidModifiers - deadline: 60.0 - - selector: google.ads.googleads.v2.services.CampaignBudgetService.GetCampaignBudget - deadline: 60.0 - - selector: google.ads.googleads.v2.services.CampaignBudgetService.MutateCampaignBudgets - deadline: 60.0 - - selector: google.ads.googleads.v2.services.CampaignCriterionService.GetCampaignCriterion - deadline: 60.0 - - selector: google.ads.googleads.v2.services.CampaignCriterionService.MutateCampaignCriteria - deadline: 60.0 - - selector: google.ads.googleads.v2.services.CampaignCriterionSimulationService.GetCampaignCriterionSimulation - deadline: 60.0 - - selector: 'google.ads.googleads.v2.services.CampaignDraftService.*' - deadline: 60.0 - - selector: 'google.ads.googleads.v2.services.CampaignExperimentService.*' - deadline: 60.0 - - selector: google.ads.googleads.v2.services.CampaignExtensionSettingService.GetCampaignExtensionSetting - deadline: 60.0 - - selector: google.ads.googleads.v2.services.CampaignExtensionSettingService.MutateCampaignExtensionSettings - deadline: 60.0 - - selector: google.ads.googleads.v2.services.CampaignFeedService.GetCampaignFeed - deadline: 60.0 - - selector: google.ads.googleads.v2.services.CampaignFeedService.MutateCampaignFeeds - deadline: 60.0 - - selector: google.ads.googleads.v2.services.CampaignLabelService.GetCampaignLabel - deadline: 60.0 - - selector: google.ads.googleads.v2.services.CampaignLabelService.MutateCampaignLabels - deadline: 60.0 - - selector: google.ads.googleads.v2.services.CampaignService.GetCampaign - deadline: 60.0 - - selector: google.ads.googleads.v2.services.CampaignService.MutateCampaigns - deadline: 60.0 - - selector: google.ads.googleads.v2.services.CampaignSharedSetService.GetCampaignSharedSet - deadline: 60.0 - - selector: google.ads.googleads.v2.services.CampaignSharedSetService.MutateCampaignSharedSets - deadline: 60.0 - - selector: google.ads.googleads.v2.services.CarrierConstantService.GetCarrierConstant - deadline: 60.0 - - selector: google.ads.googleads.v2.services.ChangeStatusService.GetChangeStatus - deadline: 60.0 - - selector: google.ads.googleads.v2.services.ClickViewService.GetClickView - deadline: 60.0 - - selector: google.ads.googleads.v2.services.ConversionActionService.GetConversionAction - deadline: 60.0 - - selector: google.ads.googleads.v2.services.ConversionActionService.MutateConversionActions - deadline: 60.0 - - selector: google.ads.googleads.v2.services.ConversionAdjustmentUploadService.UploadConversionAdjustments - deadline: 60.0 - - selector: google.ads.googleads.v2.services.ConversionUploadService.UploadCallConversions - deadline: 60.0 - - selector: google.ads.googleads.v2.services.ConversionUploadService.UploadClickConversions - deadline: 60.0 - - selector: google.ads.googleads.v2.services.CustomInterestService.GetCustomInterest - deadline: 60.0 - - selector: google.ads.googleads.v2.services.CustomInterestService.MutateCustomInterests - deadline: 60.0 - - selector: google.ads.googleads.v2.services.CustomerClientLinkService.GetCustomerClientLink - deadline: 60.0 - - selector: google.ads.googleads.v2.services.CustomerClientLinkService.MutateCustomerClientLink - deadline: 60.0 - - selector: google.ads.googleads.v2.services.CustomerClientService.GetCustomerClient - deadline: 60.0 - - selector: google.ads.googleads.v2.services.CustomerExtensionSettingService.GetCustomerExtensionSetting - deadline: 60.0 - - selector: google.ads.googleads.v2.services.CustomerExtensionSettingService.MutateCustomerExtensionSettings - deadline: 60.0 - - selector: google.ads.googleads.v2.services.CustomerFeedService.GetCustomerFeed - deadline: 60.0 - - selector: google.ads.googleads.v2.services.CustomerFeedService.MutateCustomerFeeds - deadline: 60.0 - - selector: google.ads.googleads.v2.services.CustomerLabelService.GetCustomerLabel - deadline: 60.0 - - selector: google.ads.googleads.v2.services.CustomerLabelService.MutateCustomerLabels - deadline: 60.0 - - selector: google.ads.googleads.v2.services.CustomerManagerLinkService.GetCustomerManagerLink - deadline: 60.0 - - selector: google.ads.googleads.v2.services.CustomerManagerLinkService.MutateCustomerManagerLink - deadline: 60.0 - - selector: google.ads.googleads.v2.services.CustomerNegativeCriterionService.GetCustomerNegativeCriterion - deadline: 60.0 - - selector: google.ads.googleads.v2.services.CustomerNegativeCriterionService.MutateCustomerNegativeCriteria - deadline: 60.0 - - selector: 'google.ads.googleads.v2.services.CustomerService.*' - deadline: 60.0 - - selector: google.ads.googleads.v2.services.DetailPlacementViewService.GetDetailPlacementView - deadline: 60.0 - - selector: google.ads.googleads.v2.services.DisplayKeywordViewService.GetDisplayKeywordView - deadline: 60.0 - - selector: google.ads.googleads.v2.services.DistanceViewService.GetDistanceView - deadline: 60.0 - - selector: google.ads.googleads.v2.services.DomainCategoryService.GetDomainCategory - deadline: 60.0 - - selector: google.ads.googleads.v2.services.DynamicSearchAdsSearchTermViewService.GetDynamicSearchAdsSearchTermView - deadline: 60.0 - - selector: google.ads.googleads.v2.services.ExpandedLandingPageViewService.GetExpandedLandingPageView - deadline: 60.0 - - selector: google.ads.googleads.v2.services.ExtensionFeedItemService.GetExtensionFeedItem - deadline: 60.0 - - selector: google.ads.googleads.v2.services.ExtensionFeedItemService.MutateExtensionFeedItems - deadline: 60.0 - - selector: google.ads.googleads.v2.services.FeedItemService.GetFeedItem - deadline: 60.0 - - selector: google.ads.googleads.v2.services.FeedItemService.MutateFeedItems - deadline: 60.0 - - selector: google.ads.googleads.v2.services.FeedItemTargetService.GetFeedItemTarget - deadline: 60.0 - - selector: google.ads.googleads.v2.services.FeedItemTargetService.MutateFeedItemTargets - deadline: 60.0 - - selector: google.ads.googleads.v2.services.FeedMappingService.GetFeedMapping - deadline: 60.0 - - selector: google.ads.googleads.v2.services.FeedMappingService.MutateFeedMappings - deadline: 60.0 - - selector: google.ads.googleads.v2.services.FeedPlaceholderViewService.GetFeedPlaceholderView - deadline: 60.0 - - selector: google.ads.googleads.v2.services.FeedService.GetFeed - deadline: 60.0 - - selector: google.ads.googleads.v2.services.FeedService.MutateFeeds - deadline: 60.0 - - selector: google.ads.googleads.v2.services.GenderViewService.GetGenderView - deadline: 60.0 - - selector: google.ads.googleads.v2.services.GeoTargetConstantService.GetGeoTargetConstant - deadline: 60.0 - - selector: google.ads.googleads.v2.services.GeoTargetConstantService.SuggestGeoTargetConstants - deadline: 60.0 - - selector: google.ads.googleads.v2.services.GeographicViewService.GetGeographicView - deadline: 60.0 - - selector: google.ads.googleads.v2.services.GoogleAdsFieldService.GetGoogleAdsField - deadline: 600.0 - - selector: google.ads.googleads.v2.services.GoogleAdsFieldService.SearchGoogleAdsFields - deadline: 600.0 - - selector: google.ads.googleads.v2.services.GoogleAdsService.Mutate - deadline: 600.0 - - selector: google.ads.googleads.v2.services.GoogleAdsService.Search - deadline: 3600.0 - - selector: google.ads.googleads.v2.services.GroupPlacementViewService.GetGroupPlacementView - deadline: 60.0 - - selector: google.ads.googleads.v2.services.HotelGroupViewService.GetHotelGroupView - deadline: 60.0 - - selector: google.ads.googleads.v2.services.HotelPerformanceViewService.GetHotelPerformanceView - deadline: 60.0 - - selector: google.ads.googleads.v2.services.InvoiceService.ListInvoices - deadline: 60.0 - - selector: google.ads.googleads.v2.services.KeywordPlanAdGroupService.GetKeywordPlanAdGroup - deadline: 60.0 - - selector: google.ads.googleads.v2.services.KeywordPlanAdGroupService.MutateKeywordPlanAdGroups - deadline: 60.0 - - selector: google.ads.googleads.v2.services.KeywordPlanCampaignService.GetKeywordPlanCampaign - deadline: 60.0 - - selector: google.ads.googleads.v2.services.KeywordPlanCampaignService.MutateKeywordPlanCampaigns - deadline: 60.0 - - selector: google.ads.googleads.v2.services.KeywordPlanIdeaService.GenerateKeywordIdeas - deadline: 600.0 - - selector: google.ads.googleads.v2.services.KeywordPlanKeywordService.GetKeywordPlanKeyword - deadline: 60.0 - - selector: google.ads.googleads.v2.services.KeywordPlanKeywordService.MutateKeywordPlanKeywords - deadline: 60.0 - - selector: google.ads.googleads.v2.services.KeywordPlanNegativeKeywordService.GetKeywordPlanNegativeKeyword - deadline: 60.0 - - selector: google.ads.googleads.v2.services.KeywordPlanNegativeKeywordService.MutateKeywordPlanNegativeKeywords - deadline: 60.0 - - selector: google.ads.googleads.v2.services.KeywordPlanService.GenerateForecastMetrics - deadline: 600.0 - - selector: google.ads.googleads.v2.services.KeywordPlanService.GenerateHistoricalMetrics - deadline: 600.0 - - selector: google.ads.googleads.v2.services.KeywordPlanService.GetKeywordPlan - deadline: 60.0 - - selector: google.ads.googleads.v2.services.KeywordPlanService.MutateKeywordPlans - deadline: 60.0 - - selector: google.ads.googleads.v2.services.KeywordViewService.GetKeywordView - deadline: 60.0 - - selector: google.ads.googleads.v2.services.LabelService.GetLabel - deadline: 60.0 - - selector: google.ads.googleads.v2.services.LabelService.MutateLabels - deadline: 60.0 - - selector: google.ads.googleads.v2.services.LandingPageViewService.GetLandingPageView - deadline: 60.0 - - selector: google.ads.googleads.v2.services.LanguageConstantService.GetLanguageConstant - deadline: 60.0 - - selector: google.ads.googleads.v2.services.LocationViewService.GetLocationView - deadline: 60.0 - - selector: google.ads.googleads.v2.services.ManagedPlacementViewService.GetManagedPlacementView - deadline: 60.0 - - selector: google.ads.googleads.v2.services.MediaFileService.GetMediaFile - deadline: 60.0 - - selector: google.ads.googleads.v2.services.MediaFileService.MutateMediaFiles - deadline: 60.0 - - selector: 'google.ads.googleads.v2.services.MerchantCenterLinkService.*' - deadline: 60.0 - - selector: google.ads.googleads.v2.services.MobileAppCategoryConstantService.GetMobileAppCategoryConstant - deadline: 60.0 - - selector: google.ads.googleads.v2.services.MobileDeviceConstantService.GetMobileDeviceConstant - deadline: 60.0 - - selector: 'google.ads.googleads.v2.services.MutateJobService.*' - deadline: 60.0 - - selector: google.ads.googleads.v2.services.OperatingSystemVersionConstantService.GetOperatingSystemVersionConstant - deadline: 60.0 - - selector: google.ads.googleads.v2.services.PaidOrganicSearchTermViewService.GetPaidOrganicSearchTermView - deadline: 60.0 - - selector: google.ads.googleads.v2.services.ParentalStatusViewService.GetParentalStatusView - deadline: 60.0 - - selector: google.ads.googleads.v2.services.PaymentsAccountService.ListPaymentsAccounts - deadline: 60.0 - - selector: google.ads.googleads.v2.services.ProductBiddingCategoryConstantService.GetProductBiddingCategoryConstant - deadline: 60.0 - - selector: google.ads.googleads.v2.services.ProductGroupViewService.GetProductGroupView - deadline: 60.0 - - selector: 'google.ads.googleads.v2.services.ReachPlanService.*' - deadline: 600.0 - - selector: 'google.ads.googleads.v2.services.RecommendationService.*' - deadline: 600.0 - - selector: google.ads.googleads.v2.services.RemarketingActionService.GetRemarketingAction - deadline: 60.0 - - selector: google.ads.googleads.v2.services.RemarketingActionService.MutateRemarketingActions - deadline: 60.0 - - selector: google.ads.googleads.v2.services.SearchTermViewService.GetSearchTermView - deadline: 60.0 - - selector: google.ads.googleads.v2.services.SharedCriterionService.GetSharedCriterion - deadline: 60.0 - - selector: google.ads.googleads.v2.services.SharedCriterionService.MutateSharedCriteria - deadline: 60.0 - - selector: google.ads.googleads.v2.services.SharedSetService.GetSharedSet - deadline: 60.0 - - selector: google.ads.googleads.v2.services.SharedSetService.MutateSharedSets - deadline: 60.0 - - selector: google.ads.googleads.v2.services.ShoppingPerformanceViewService.GetShoppingPerformanceView - deadline: 60.0 - - selector: google.ads.googleads.v2.services.TopicConstantService.GetTopicConstant - deadline: 60.0 - - selector: google.ads.googleads.v2.services.TopicViewService.GetTopicView - deadline: 60.0 - - selector: google.ads.googleads.v2.services.UserInterestService.GetUserInterest - deadline: 60.0 - - selector: google.ads.googleads.v2.services.UserListService.GetUserList - deadline: 60.0 - - selector: google.ads.googleads.v2.services.UserListService.MutateUserLists - deadline: 60.0 - - selector: google.ads.googleads.v2.services.UserLocationViewService.GetUserLocationView - deadline: 60.0 - - selector: google.ads.googleads.v2.services.VideoService.GetVideo - deadline: 60.0 - - selector: 'google.longrunning.Operations.*' - deadline: 60.0 diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/account_budget.proto b/third_party/googleapis/google/ads/googleads/v2/resources/account_budget.proto deleted file mode 100644 index bd2a699b3..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/account_budget.proto +++ /dev/null @@ -1,253 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/enums/account_budget_proposal_type.proto"; -import "google/ads/googleads/v2/enums/account_budget_status.proto"; -import "google/ads/googleads/v2/enums/spending_limit_type.proto"; -import "google/ads/googleads/v2/enums/time_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "AccountBudgetProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the AccountBudget resource. - -// An account-level budget. It contains information about the budget itself, -// as well as the most recently approved changes to the budget and proposed -// changes that are pending approval. The proposed changes that are pending -// approval, if any, are found in 'pending_proposal'. Effective details about -// the budget are found in fields prefixed 'approved_', 'adjusted_' and those -// without a prefix. Since some effective details may differ from what the user -// had originally requested (e.g. spending limit), these differences are -// juxtaposed via 'proposed_', 'approved_', and possibly 'adjusted_' fields. -// -// This resource is mutated using AccountBudgetProposal and cannot be mutated -// directly. A budget may have at most one pending proposal at any given time. -// It is read through pending_proposal. -// -// Once approved, a budget may be subject to adjustments, such as credit -// adjustments. Adjustments create differences between the 'approved' and -// 'adjusted' fields, which would otherwise be identical. -message AccountBudget { - option (google.api.resource) = { - type: "googleads.googleapis.com/AccountBudget" - pattern: "customers/{customer}/accountBudgets/{account_budget}" - }; - - // A pending proposal associated with the enclosing account-level budget, - // if applicable. - message PendingAccountBudgetProposal { - // Output only. The resource name of the proposal. - // AccountBudgetProposal resource names have the form: - // - // `customers/{customer_id}/accountBudgetProposals/{account_budget_proposal_id}` - google.protobuf.StringValue account_budget_proposal = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AccountBudgetProposal" - } - ]; - - // Output only. The type of this proposal, e.g. END to end the budget associated - // with this proposal. - google.ads.googleads.v2.enums.AccountBudgetProposalTypeEnum.AccountBudgetProposalType proposal_type = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The name to assign to the account-level budget. - google.protobuf.StringValue name = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The start time in yyyy-MM-dd HH:mm:ss format. - google.protobuf.StringValue start_date_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. A purchase order number is a value that helps users reference this budget - // in their monthly invoices. - google.protobuf.StringValue purchase_order_number = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Notes associated with this budget. - google.protobuf.StringValue notes = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The time when this account-level budget proposal was created. - // Formatted as yyyy-MM-dd HH:mm:ss. - google.protobuf.StringValue creation_date_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The end time of the account-level budget. - oneof end_time { - // Output only. The end time in yyyy-MM-dd HH:mm:ss format. - google.protobuf.StringValue end_date_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The end time as a well-defined type, e.g. FOREVER. - google.ads.googleads.v2.enums.TimeTypeEnum.TimeType end_time_type = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // The spending limit. - oneof spending_limit { - // Output only. The spending limit in micros. One million is equivalent to - // one unit. - google.protobuf.Int64Value spending_limit_micros = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The spending limit as a well-defined type, e.g. INFINITE. - google.ads.googleads.v2.enums.SpendingLimitTypeEnum.SpendingLimitType spending_limit_type = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - } - - // Output only. The resource name of the account-level budget. - // AccountBudget resource names have the form: - // - // `customers/{customer_id}/accountBudgets/{account_budget_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AccountBudget" - } - ]; - - // Output only. The ID of the account-level budget. - google.protobuf.Int64Value id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The resource name of the billing setup associated with this account-level - // budget. BillingSetup resource names have the form: - // - // `customers/{customer_id}/billingSetups/{billing_setup_id}` - google.protobuf.StringValue billing_setup = 3 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/BillingSetup" - } - ]; - - // Output only. The status of this account-level budget. - google.ads.googleads.v2.enums.AccountBudgetStatusEnum.AccountBudgetStatus status = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The name of the account-level budget. - google.protobuf.StringValue name = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The proposed start time of the account-level budget in - // yyyy-MM-dd HH:mm:ss format. If a start time type of NOW was proposed, - // this is the time of request. - google.protobuf.StringValue proposed_start_date_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The approved start time of the account-level budget in yyyy-MM-dd HH:mm:ss - // format. - // - // For example, if a new budget is approved after the proposed start time, - // the approved start time is the time of approval. - google.protobuf.StringValue approved_start_date_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The total adjustments amount. - // - // An example of an adjustment is courtesy credits. - google.protobuf.Int64Value total_adjustments_micros = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The value of Ads that have been served, in micros. - // - // This includes overdelivery costs, in which case a credit might be - // automatically applied to the budget (see total_adjustments_micros). - google.protobuf.Int64Value amount_served_micros = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. A purchase order number is a value that helps users reference this budget - // in their monthly invoices. - google.protobuf.StringValue purchase_order_number = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Notes associated with the budget. - google.protobuf.StringValue notes = 21 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The pending proposal to modify this budget, if applicable. - PendingAccountBudgetProposal pending_proposal = 22 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The proposed end time of the account-level budget. - oneof proposed_end_time { - // Output only. The proposed end time in yyyy-MM-dd HH:mm:ss format. - google.protobuf.StringValue proposed_end_date_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The proposed end time as a well-defined type, e.g. FOREVER. - google.ads.googleads.v2.enums.TimeTypeEnum.TimeType proposed_end_time_type = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // The approved end time of the account-level budget. - // - // For example, if a budget's end time is updated and the proposal is approved - // after the proposed end time, the approved end time is the time of approval. - oneof approved_end_time { - // Output only. The approved end time in yyyy-MM-dd HH:mm:ss format. - google.protobuf.StringValue approved_end_date_time = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The approved end time as a well-defined type, e.g. FOREVER. - google.ads.googleads.v2.enums.TimeTypeEnum.TimeType approved_end_time_type = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // The proposed spending limit. - oneof proposed_spending_limit { - // Output only. The proposed spending limit in micros. One million is equivalent to - // one unit. - google.protobuf.Int64Value proposed_spending_limit_micros = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The proposed spending limit as a well-defined type, e.g. INFINITE. - google.ads.googleads.v2.enums.SpendingLimitTypeEnum.SpendingLimitType proposed_spending_limit_type = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // The approved spending limit. - // - // For example, if the amount already spent by the account exceeds the - // proposed spending limit at the time the proposal is approved, the approved - // spending limit is set to the amount already spent. - oneof approved_spending_limit { - // Output only. The approved spending limit in micros. One million is equivalent to - // one unit. This will only be populated if the proposed spending limit - // is finite, and will always be greater than or equal to the - // proposed spending limit. - google.protobuf.Int64Value approved_spending_limit_micros = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. 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.v2.enums.SpendingLimitTypeEnum.SpendingLimitType approved_spending_limit_type = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // The spending limit after adjustments have been applied. Adjustments are - // stored in total_adjustments_micros. - // - // This value has the final say on how much the account is allowed to spend. - oneof adjusted_spending_limit { - // Output only. The adjusted spending limit in micros. One million is equivalent to - // one unit. - // - // If the approved spending limit is finite, the adjusted - // spending limit may vary depending on the types of adjustments applied - // to this budget, if applicable. - // - // The different kinds of adjustments are described here: - // https://support.google.com/google-ads/answer/1704323 - // - // For example, a debit adjustment reduces how much the account is - // allowed to spend. - google.protobuf.Int64Value adjusted_spending_limit_micros = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The adjusted spending limit as a well-defined type, e.g. INFINITE. - // 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.v2.enums.SpendingLimitTypeEnum.SpendingLimitType adjusted_spending_limit_type = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/account_budget_proposal.proto b/third_party/googleapis/google/ads/googleads/v2/resources/account_budget_proposal.proto deleted file mode 100644 index 9fe5123c3..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/account_budget_proposal.proto +++ /dev/null @@ -1,161 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/enums/account_budget_proposal_status.proto"; -import "google/ads/googleads/v2/enums/account_budget_proposal_type.proto"; -import "google/ads/googleads/v2/enums/spending_limit_type.proto"; -import "google/ads/googleads/v2/enums/time_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "AccountBudgetProposalProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the AccountBudgetProposal resource. - -// An account-level budget proposal. -// -// All fields prefixed with 'proposed' may not necessarily be applied directly. -// For example, proposed spending limits may be adjusted before their -// application. This is true if the 'proposed' field has an 'approved' -// counterpart, e.g. spending limits. -// -// Please note that the proposal type (proposal_type) changes which fields are -// required and which must remain empty. -message AccountBudgetProposal { - option (google.api.resource) = { - type: "googleads.googleapis.com/AccountBudgetProposal" - pattern: "customers/{customer}/accountBudgetProposals/{account_budget_proposal}" - }; - - // Immutable. The resource name of the proposal. - // AccountBudgetProposal resource names have the form: - // - // `customers/{customer_id}/accountBudgetProposals/{account_budget_proposal_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AccountBudgetProposal" - } - ]; - - // Output only. The ID of the proposal. - google.protobuf.Int64Value id = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. The resource name of the billing setup associated with this proposal. - google.protobuf.StringValue billing_setup = 2 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/BillingSetup" - } - ]; - - // Immutable. The resource name of the account-level budget associated with this - // proposal. - google.protobuf.StringValue account_budget = 3 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AccountBudget" - } - ]; - - // Immutable. The type of this proposal, e.g. END to end the budget associated with this - // proposal. - google.ads.googleads.v2.enums.AccountBudgetProposalTypeEnum.AccountBudgetProposalType proposal_type = 4 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. The status of this proposal. - // When a new proposal is created, the status defaults to PENDING. - google.ads.googleads.v2.enums.AccountBudgetProposalStatusEnum.AccountBudgetProposalStatus status = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. The name to assign to the account-level budget. - google.protobuf.StringValue proposed_name = 5 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. The approved start date time in yyyy-mm-dd hh:mm:ss format. - google.protobuf.StringValue approved_start_date_time = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. A purchase order number is a value that enables the user to help them - // reference this budget in their monthly invoices. - google.protobuf.StringValue proposed_purchase_order_number = 12 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Notes associated with this budget. - google.protobuf.StringValue proposed_notes = 13 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. The date time when this account-level budget proposal was created, which is - // not the same as its approval date time, if applicable. - google.protobuf.StringValue creation_date_time = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The date time when this account-level budget was approved, if applicable. - google.protobuf.StringValue approval_date_time = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The proposed start date time of the account-level budget, which cannot be - // in the past. - oneof proposed_start_time { - // Immutable. The proposed start date time in yyyy-mm-dd hh:mm:ss format. - google.protobuf.StringValue proposed_start_date_time = 18 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. The proposed start date time as a well-defined type, e.g. NOW. - google.ads.googleads.v2.enums.TimeTypeEnum.TimeType proposed_start_time_type = 7 [(google.api.field_behavior) = IMMUTABLE]; - } - - // The proposed end date time of the account-level budget, which cannot be in - // the past. - oneof proposed_end_time { - // Immutable. The proposed end date time in yyyy-mm-dd hh:mm:ss format. - google.protobuf.StringValue proposed_end_date_time = 19 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. The proposed end date time as a well-defined type, e.g. FOREVER. - google.ads.googleads.v2.enums.TimeTypeEnum.TimeType proposed_end_time_type = 9 [(google.api.field_behavior) = IMMUTABLE]; - } - - // The approved end date time of the account-level budget. - oneof approved_end_time { - // Output only. The approved end date time in yyyy-mm-dd hh:mm:ss format. - google.protobuf.StringValue approved_end_date_time = 21 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The approved end date time as a well-defined type, e.g. FOREVER. - google.ads.googleads.v2.enums.TimeTypeEnum.TimeType approved_end_time_type = 22 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // The proposed spending limit. - oneof proposed_spending_limit { - // Immutable. The proposed spending limit in micros. One million is equivalent to - // one unit. - google.protobuf.Int64Value proposed_spending_limit_micros = 10 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. The proposed spending limit as a well-defined type, e.g. INFINITE. - google.ads.googleads.v2.enums.SpendingLimitTypeEnum.SpendingLimitType proposed_spending_limit_type = 11 [(google.api.field_behavior) = IMMUTABLE]; - } - - // The approved spending limit. - oneof approved_spending_limit { - // Output only. The approved spending limit in micros. One million is equivalent to - // one unit. - google.protobuf.Int64Value approved_spending_limit_micros = 23 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The approved spending limit as a well-defined type, e.g. INFINITE. - google.ads.googleads.v2.enums.SpendingLimitTypeEnum.SpendingLimitType approved_spending_limit_type = 24 [(google.api.field_behavior) = OUTPUT_ONLY]; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/ad.proto b/third_party/googleapis/google/ads/googleads/v2/resources/ad.proto deleted file mode 100644 index d9bd7e378..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/ad.proto +++ /dev/null @@ -1,178 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/common/ad_type_infos.proto"; -import "google/ads/googleads/v2/common/custom_parameter.proto"; -import "google/ads/googleads/v2/common/final_app_url.proto"; -import "google/ads/googleads/v2/common/url_collection.proto"; -import "google/ads/googleads/v2/enums/ad_type.proto"; -import "google/ads/googleads/v2/enums/device.proto"; -import "google/ads/googleads/v2/enums/system_managed_entity_source.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "AdProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the ad type. - -// An ad. -message Ad { - option (google.api.resource) = { - type: "googleads.googleapis.com/Ad" - pattern: "customers/{customer}/ads/{ad}" - }; - - // Immutable. The resource name of the ad. - // Ad resource names have the form: - // - // `customers/{customer_id}/ads/{ad_id}` - string resource_name = 37 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Ad" - } - ]; - - // Output only. The ID of the ad. - google.protobuf.Int64Value id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The list of possible final URLs after all cross-domain redirects for the - // ad. - repeated google.protobuf.StringValue final_urls = 2; - - // A list of final app URLs that will be used on mobile if the user has the - // specific app installed. - repeated google.ads.googleads.v2.common.FinalAppUrl final_app_urls = 35; - - // The list of possible final mobile URLs after all cross-domain redirects - // for the ad. - repeated google.protobuf.StringValue final_mobile_urls = 16; - - // The URL template for constructing a tracking URL. - google.protobuf.StringValue tracking_url_template = 12; - - // The suffix to use when constructing a final URL. - google.protobuf.StringValue final_url_suffix = 38; - - // The list of mappings that can be used to substitute custom parameter tags - // in a `tracking_url_template`, `final_urls`, or `mobile_final_urls`. - // For mutates, please use url custom parameter operations. - repeated google.ads.googleads.v2.common.CustomParameter url_custom_parameters = 10; - - // The URL that appears in the ad description for some ad formats. - google.protobuf.StringValue display_url = 4; - - // Output only. The type of ad. - google.ads.googleads.v2.enums.AdTypeEnum.AdType type = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Indicates if this ad was automatically added by Google Ads and not by a - // user. For example, this could happen when ads are automatically created as - // suggestions for new ads based on knowledge of how existing ads are - // performing. - google.protobuf.BoolValue added_by_google_ads = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The device preference for the ad. You can only specify a preference for - // mobile devices. When this preference is set the ad will be preferred over - // other ads when being displayed on a mobile device. The ad can still be - // displayed on other device types, e.g. if no other ads are available. - // If unspecified (no device preference), all devices are targeted. - // This is only supported by some ad types. - google.ads.googleads.v2.enums.DeviceEnum.Device device_preference = 20; - - // Additional URLs for the ad that are tagged with a unique identifier that - // can be referenced from other fields in the ad. - repeated google.ads.googleads.v2.common.UrlCollection url_collections = 26; - - // Immutable. The name of the ad. This is only used to be able to identify the ad. It - // does not need to be unique and does not affect the served ad. - google.protobuf.StringValue name = 23 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. If this ad is system managed, then this field will indicate the source. - // This field is read-only. - google.ads.googleads.v2.enums.SystemManagedResourceSourceEnum.SystemManagedResourceSource system_managed_resource_source = 27 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Details pertinent to the ad type. Exactly one value must be set. - oneof ad_data { - // Immutable. Details pertaining to a text ad. - google.ads.googleads.v2.common.TextAdInfo text_ad = 6 [(google.api.field_behavior) = IMMUTABLE]; - - // Details pertaining to an expanded text ad. - google.ads.googleads.v2.common.ExpandedTextAdInfo expanded_text_ad = 7; - - // Details pertaining to a call-only ad. - google.ads.googleads.v2.common.CallOnlyAdInfo call_only_ad = 13; - - // Immutable. Details pertaining to an Expanded Dynamic Search Ad. - // This type of ad has its headline, final URLs, and display URL - // 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.v2.common.ExpandedDynamicSearchAdInfo expanded_dynamic_search_ad = 14 [(google.api.field_behavior) = IMMUTABLE]; - - // Details pertaining to a hotel ad. - google.ads.googleads.v2.common.HotelAdInfo hotel_ad = 15; - - // Details pertaining to a Smart Shopping ad. - google.ads.googleads.v2.common.ShoppingSmartAdInfo shopping_smart_ad = 17; - - // Details pertaining to a Shopping product ad. - google.ads.googleads.v2.common.ShoppingProductAdInfo shopping_product_ad = 18; - - // Immutable. Details pertaining to a Gmail ad. - google.ads.googleads.v2.common.GmailAdInfo gmail_ad = 21 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Details pertaining to an Image ad. - google.ads.googleads.v2.common.ImageAdInfo image_ad = 22 [(google.api.field_behavior) = IMMUTABLE]; - - // Details pertaining to a Video ad. - google.ads.googleads.v2.common.VideoAdInfo video_ad = 24; - - // Details pertaining to a responsive search ad. - google.ads.googleads.v2.common.ResponsiveSearchAdInfo responsive_search_ad = 25; - - // Details pertaining to a legacy responsive display ad. - google.ads.googleads.v2.common.LegacyResponsiveDisplayAdInfo legacy_responsive_display_ad = 28; - - // Details pertaining to an app ad. - google.ads.googleads.v2.common.AppAdInfo app_ad = 29; - - // Immutable. Details pertaining to a legacy app install ad. - google.ads.googleads.v2.common.LegacyAppInstallAdInfo legacy_app_install_ad = 30 [(google.api.field_behavior) = IMMUTABLE]; - - // Details pertaining to a responsive display ad. - google.ads.googleads.v2.common.ResponsiveDisplayAdInfo responsive_display_ad = 31; - - // Details pertaining to a display upload ad. - google.ads.googleads.v2.common.DisplayUploadAdInfo display_upload_ad = 33; - - // Details pertaining to an app engagement ad. - google.ads.googleads.v2.common.AppEngagementAdInfo app_engagement_ad = 34; - - // Details pertaining to a Shopping Comparison Listing ad. - google.ads.googleads.v2.common.ShoppingComparisonListingAdInfo shopping_comparison_listing_ad = 36; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/ad_group.proto b/third_party/googleapis/google/ads/googleads/v2/resources/ad_group.proto deleted file mode 100644 index e7c50c1e2..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/ad_group.proto +++ /dev/null @@ -1,177 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/common/custom_parameter.proto"; -import "google/ads/googleads/v2/common/explorer_auto_optimizer_setting.proto"; -import "google/ads/googleads/v2/common/targeting_setting.proto"; -import "google/ads/googleads/v2/enums/ad_group_ad_rotation_mode.proto"; -import "google/ads/googleads/v2/enums/ad_group_status.proto"; -import "google/ads/googleads/v2/enums/ad_group_type.proto"; -import "google/ads/googleads/v2/enums/bidding_source.proto"; -import "google/ads/googleads/v2/enums/targeting_dimension.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the ad group resource. - -// An ad group. -message AdGroup { - option (google.api.resource) = { - type: "googleads.googleapis.com/AdGroup" - pattern: "customers/{customer}/adGroups/{ad_group}" - }; - - // Immutable. The resource name of the ad group. - // Ad group resource names have the form: - // - // `customers/{customer_id}/adGroups/{ad_group_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroup" - } - ]; - - // Output only. The ID of the ad group. - google.protobuf.Int64Value id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The name of the ad group. - // - // This field is required and should not be empty when creating new ad - // groups. - // - // It must contain fewer than 255 UTF-8 full-width characters. - // - // It must not contain any null (code point 0x0), NL line feed - // (code point 0xA) or carriage return (code point 0xD) characters. - google.protobuf.StringValue name = 4; - - // The status of the ad group. - google.ads.googleads.v2.enums.AdGroupStatusEnum.AdGroupStatus status = 5; - - // Immutable. The type of the ad group. - google.ads.googleads.v2.enums.AdGroupTypeEnum.AdGroupType type = 12 [(google.api.field_behavior) = IMMUTABLE]; - - // The ad rotation mode of the ad group. - google.ads.googleads.v2.enums.AdGroupAdRotationModeEnum.AdGroupAdRotationMode ad_rotation_mode = 22; - - // Output only. 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 - // experiment ad group does not have a base ad group, then this field is null. - // - // For base ad groups, this field equals the ad group resource name. - // - // This field is read-only. - google.protobuf.StringValue base_ad_group = 18 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroup" - } - ]; - - // The URL template for constructing a tracking URL. - google.protobuf.StringValue tracking_url_template = 13; - - // 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.v2.common.CustomParameter url_custom_parameters = 6; - - // Immutable. The campaign to which the ad group belongs. - google.protobuf.StringValue campaign = 10 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Campaign" - } - ]; - - // The maximum CPC (cost-per-click) bid. - google.protobuf.Int64Value cpc_bid_micros = 14; - - // The maximum CPM (cost-per-thousand viewable impressions) bid. - google.protobuf.Int64Value cpm_bid_micros = 15; - - // The target CPA (cost-per-acquisition). - google.protobuf.Int64Value target_cpa_micros = 27; - - // Output only. The CPV (cost-per-view) bid. - google.protobuf.Int64Value cpv_bid_micros = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Average amount in micros that the advertiser is willing to pay for every - // thousand times the ad is shown. - google.protobuf.Int64Value target_cpm_micros = 26; - - // The target ROAS (return-on-ad-spend) override. If the ad group's campaign - // bidding strategy is a standard Target ROAS strategy, then this field - // overrides the target ROAS specified in the campaign's bidding strategy. - // Otherwise, this value is ignored. - google.protobuf.DoubleValue target_roas = 30; - - // The percent cpc bid amount, expressed as a fraction of the advertised price - // for some good or service. The valid range for the fraction is [0,1) and the - // value stored here is 1,000,000 * [fraction]. - google.protobuf.Int64Value percent_cpc_bid_micros = 20; - - // Settings for the Display Campaign Optimizer, initially termed "Explorer". - google.ads.googleads.v2.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.v2.enums.TargetingDimensionEnum.TargetingDimension display_custom_bid_dimension = 23; - - // URL template for appending params to Final URL. - google.protobuf.StringValue final_url_suffix = 24; - - // Setting for targeting related features. - google.ads.googleads.v2.common.TargetingSetting targeting_setting = 25; - - // Output only. The effective target CPA (cost-per-acquisition). - // This field is read-only. - google.protobuf.Int64Value effective_target_cpa_micros = 28 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Source of the effective target CPA. - // This field is read-only. - google.ads.googleads.v2.enums.BiddingSourceEnum.BiddingSource effective_target_cpa_source = 29 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The effective target ROAS (return-on-ad-spend). - // This field is read-only. - google.protobuf.DoubleValue effective_target_roas = 31 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Source of the effective target ROAS. - // This field is read-only. - google.ads.googleads.v2.enums.BiddingSourceEnum.BiddingSource effective_target_roas_source = 32 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The resource names of labels attached to this ad group. - repeated google.protobuf.StringValue labels = 33 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupLabel" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/ad_group_ad.proto b/third_party/googleapis/google/ads/googleads/v2/resources/ad_group_ad.proto deleted file mode 100644 index cd63541d7..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/ad_group_ad.proto +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/common/policy.proto"; -import "google/ads/googleads/v2/enums/ad_group_ad_status.proto"; -import "google/ads/googleads/v2/enums/ad_strength.proto"; -import "google/ads/googleads/v2/enums/policy_approval_status.proto"; -import "google/ads/googleads/v2/enums/policy_review_status.proto"; -import "google/ads/googleads/v2/resources/ad.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupAdProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the ad group ad resource. - -// An ad group ad. -message AdGroupAd { - option (google.api.resource) = { - type: "googleads.googleapis.com/AdGroupAd" - pattern: "customers/{customer}/adGroupAds/{ad_group_ad}" - }; - - // Immutable. The resource name of the ad. - // Ad group ad resource names have the form: - // - // `customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupAd" - } - ]; - - // The status of the ad. - google.ads.googleads.v2.enums.AdGroupAdStatusEnum.AdGroupAdStatus status = 3; - - // Immutable. The ad group to which the ad belongs. - google.protobuf.StringValue ad_group = 4 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroup" - } - ]; - - // Immutable. The ad. - Ad ad = 5 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. Policy information for the ad. - AdGroupAdPolicySummary policy_summary = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Overall ad strength for this ad group ad. - google.ads.googleads.v2.enums.AdStrengthEnum.AdStrength ad_strength = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Contains policy information for an ad. -message AdGroupAdPolicySummary { - // Output only. The list of policy findings for this ad. - repeated google.ads.googleads.v2.common.PolicyTopicEntry policy_topic_entries = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Where in the review process this ad is. - google.ads.googleads.v2.enums.PolicyReviewStatusEnum.PolicyReviewStatus review_status = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The overall approval status of this ad, calculated based on the status of - // its individual policy topic entries. - google.ads.googleads.v2.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus approval_status = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/ad_group_ad_asset_view.proto b/third_party/googleapis/google/ads/googleads/v2/resources/ad_group_ad_asset_view.proto deleted file mode 100644 index fef63da93..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/ad_group_ad_asset_view.proto +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/common/policy.proto"; -import "google/ads/googleads/v2/enums/asset_field_type.proto"; -import "google/ads/googleads/v2/enums/asset_performance_label.proto"; -import "google/ads/googleads/v2/enums/policy_approval_status.proto"; -import "google/ads/googleads/v2/enums/policy_review_status.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupAdAssetViewProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the ad group ad asset view resource. - -// A link between an AdGroupAd and an Asset. -message AdGroupAdAssetView { - option (google.api.resource) = { - type: "googleads.googleapis.com/AdGroupAdAssetView" - pattern: "customers/{customer}/adGroupAdAssets/{ad_group_ad_asset_view}" - }; - - // Output only. The resource name of the ad group ad asset view. - // Ad group ad asset view resource names have the form (Before V4): - // - // `customers/{customer_id}/adGroupAdAssets/{AdGroupAdAsset.ad_group_id}~{AdGroupAdAsset.ad.ad_id}~{AdGroupAdAsset.asset_id}~{AdGroupAdAsset.field_type}` - // - // Ad group ad asset view resource names have the form (Beginning from V4): - // - // `customers/{customer_id}/adGroupAdAssetViews/{AdGroupAdAsset.ad_group_id}~{AdGroupAdAsset.ad_id}~{AdGroupAdAsset.asset_id}~{AdGroupAdAsset.field_type}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupAdAssetView" - } - ]; - - // Output only. The ad group ad to which the asset is linked. - google.protobuf.StringValue ad_group_ad = 5 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupAd" - } - ]; - - // Output only. The asset which is linked to the ad group ad. - google.protobuf.StringValue asset = 6 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Asset" - } - ]; - - // Output only. Role that the asset takes in the ad. - google.ads.googleads.v2.enums.AssetFieldTypeEnum.AssetFieldType field_type = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Policy information for the ad group ad asset. - AdGroupAdAssetPolicySummary policy_summary = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Performance of an asset linkage. - google.ads.googleads.v2.enums.AssetPerformanceLabelEnum.AssetPerformanceLabel performance_label = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Contains policy information for an ad group ad asset. -message AdGroupAdAssetPolicySummary { - // Output only. The list of policy findings for the ad group ad asset. - repeated google.ads.googleads.v2.common.PolicyTopicEntry policy_topic_entries = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Where in the review process this ad group ad asset is. - google.ads.googleads.v2.enums.PolicyReviewStatusEnum.PolicyReviewStatus review_status = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The overall approval status of this ad group ad asset, calculated based on - // the status of its individual policy topic entries. - google.ads.googleads.v2.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus approval_status = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/ad_group_ad_label.proto b/third_party/googleapis/google/ads/googleads/v2/resources/ad_group_ad_label.proto deleted file mode 100644 index 9f8928fbf..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/ad_group_ad_label.proto +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupAdLabelProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the ad group ad label resource. - -// A relationship between an ad group ad and a label. -message AdGroupAdLabel { - option (google.api.resource) = { - type: "googleads.googleapis.com/AdGroupAdLabel" - pattern: "customers/{customer}/adGroupAdLabels/{ad_group_ad_label}" - }; - - // Immutable. The resource name of the ad group ad label. - // Ad group ad label resource names have the form: - // `customers/{customer_id}/adGroupAdLabels/{ad_group_id}~{ad_id}~{label_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupAdLabel" - } - ]; - - // Immutable. The ad group ad to which the label is attached. - google.protobuf.StringValue ad_group_ad = 2 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupAd" - } - ]; - - // Immutable. The label assigned to the ad group ad. - google.protobuf.StringValue label = 3 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Label" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/ad_group_audience_view.proto b/third_party/googleapis/google/ads/googleads/v2/resources/ad_group_audience_view.proto deleted file mode 100644 index 34b8b7826..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/ad_group_audience_view.proto +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupAudienceViewProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the ad group audience view resource. - -// An ad group audience view. -// Includes performance data from interests and remarketing lists for Display -// Network and YouTube Network ads, and remarketing lists for search ads (RLSA), -// aggregated at the audience level. -message AdGroupAudienceView { - option (google.api.resource) = { - type: "googleads.googleapis.com/AdGroupAudienceView" - pattern: "customers/{customer}/adGroupAudienceViews/{ad_group_audience_view}" - }; - - // Output only. The resource name of the ad group audience view. - // Ad group audience view resource names have the form: - // - // `customers/{customer_id}/adGroupAudienceViews/{ad_group_id}~{criterion_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupAudienceView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/ad_group_bid_modifier.proto b/third_party/googleapis/google/ads/googleads/v2/resources/ad_group_bid_modifier.proto deleted file mode 100644 index bb4a6a965..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/ad_group_bid_modifier.proto +++ /dev/null @@ -1,110 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/common/criteria.proto"; -import "google/ads/googleads/v2/enums/bid_modifier_source.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupBidModifierProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the ad group bid modifier resource. - -// Represents an ad group bid modifier. -message AdGroupBidModifier { - option (google.api.resource) = { - type: "googleads.googleapis.com/AdGroupBidModifier" - pattern: "customers/{customer}/adGroupBidModifiers/{ad_group_bid_modifier}" - }; - - // Immutable. The resource name of the ad group bid modifier. - // Ad group bid modifier resource names have the form: - // - // `customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupBidModifier" - } - ]; - - // Immutable. The ad group to which this criterion belongs. - google.protobuf.StringValue ad_group = 2 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroup" - } - ]; - - // Output only. The ID of the criterion to bid modify. - // - // This field is ignored for mutates. - google.protobuf.Int64Value criterion_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The modifier for the bid when the criterion matches. The modifier must be - // in the range: 0.1 - 10.0. The range is 1.0 - 6.0 for PreferredContent. - // Use 0 to opt out of a Device type. - google.protobuf.DoubleValue bid_modifier = 4; - - // Output only. The base ad group from which this draft/trial adgroup bid modifier was - // created. If ad_group is a base ad group then this field will be equal to - // ad_group. If the ad group was created in the draft or trial and has no - // corresponding base ad group, then this field will be null. - // This field is readonly. - google.protobuf.StringValue base_ad_group = 9 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroup" - } - ]; - - // Output only. Bid modifier source. - google.ads.googleads.v2.enums.BidModifierSourceEnum.BidModifierSource bid_modifier_source = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The criterion of this ad group bid modifier. - // - // Required in create operations starting in V5. - oneof criterion { - // Immutable. Criterion for hotel date selection (default dates vs. user selected). - google.ads.googleads.v2.common.HotelDateSelectionTypeInfo hotel_date_selection_type = 5 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Criterion for number of days prior to the stay the booking is being made. - google.ads.googleads.v2.common.HotelAdvanceBookingWindowInfo hotel_advance_booking_window = 6 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Criterion for length of hotel stay in nights. - google.ads.googleads.v2.common.HotelLengthOfStayInfo hotel_length_of_stay = 7 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Criterion for day of the week the booking is for. - google.ads.googleads.v2.common.HotelCheckInDayInfo hotel_check_in_day = 8 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. A device criterion. - google.ads.googleads.v2.common.DeviceInfo device = 11 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. A preferred content criterion. - google.ads.googleads.v2.common.PreferredContentInfo preferred_content = 12 [(google.api.field_behavior) = IMMUTABLE]; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/ad_group_criterion.proto b/third_party/googleapis/google/ads/googleads/v2/resources/ad_group_criterion.proto deleted file mode 100644 index bc81d3393..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/ad_group_criterion.proto +++ /dev/null @@ -1,265 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/common/criteria.proto"; -import "google/ads/googleads/v2/common/custom_parameter.proto"; -import "google/ads/googleads/v2/enums/ad_group_criterion_approval_status.proto"; -import "google/ads/googleads/v2/enums/ad_group_criterion_status.proto"; -import "google/ads/googleads/v2/enums/bidding_source.proto"; -import "google/ads/googleads/v2/enums/criterion_system_serving_status.proto"; -import "google/ads/googleads/v2/enums/criterion_type.proto"; -import "google/ads/googleads/v2/enums/quality_score_bucket.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupCriterionProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the ad group criterion resource. - -// An ad group criterion. -message AdGroupCriterion { - option (google.api.resource) = { - type: "googleads.googleapis.com/AdGroupCriterion" - pattern: "customers/{customer}/adGroupCriteria/{ad_group_criterion}" - }; - - // A container for ad group criterion quality information. - message QualityInfo { - // Output only. The quality score. - // - // This field may not be populated if Google does not have enough - // information to determine a value. - google.protobuf.Int32Value quality_score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The performance of the ad compared to other advertisers. - google.ads.googleads.v2.enums.QualityScoreBucketEnum.QualityScoreBucket creative_quality_score = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The quality score of the landing page. - google.ads.googleads.v2.enums.QualityScoreBucketEnum.QualityScoreBucket post_click_quality_score = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The click-through rate compared to that of other advertisers. - google.ads.googleads.v2.enums.QualityScoreBucketEnum.QualityScoreBucket search_predicted_ctr = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // Estimates for criterion bids at various positions. - message PositionEstimates { - // Output only. The estimate of the CPC bid required for ad to be shown on first - // page of search results. - google.protobuf.Int64Value first_page_cpc_micros = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The estimate of the CPC bid required for ad to be displayed in first - // position, at the top of the first page of search results. - google.protobuf.Int64Value first_position_cpc_micros = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The estimate of the CPC bid required for ad to be displayed at the top - // of the first page of search results. - google.protobuf.Int64Value top_of_page_cpc_micros = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Estimate of how many clicks per week you might get by changing your - // keyword bid to the value in first_position_cpc_micros. - google.protobuf.Int64Value estimated_add_clicks_at_first_position_cpc = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Estimate of how your cost per week might change when changing your - // keyword bid to the value in first_position_cpc_micros. - google.protobuf.Int64Value estimated_add_cost_at_first_position_cpc = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // Immutable. The resource name of the ad group criterion. - // Ad group criterion resource names have the form: - // - // `customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupCriterion" - } - ]; - - // Output only. The ID of the criterion. - // - // This field is ignored for mutates. - google.protobuf.Int64Value criterion_id = 26 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The status of the criterion. - // - // This is the status of the ad group criterion entity, set by the client. - // Note: UI reports may incorporate additional information that affects - // whether a criterion is eligible to run. In some cases a criterion that's - // REMOVED in the API can still show as enabled in the UI. - // For example, campaigns by default show to users of all age ranges unless - // excluded. The UI will show each age range as "enabled", since they're - // eligible to see the ads; but AdGroupCriterion.status will show "removed", - // since no positive criterion was added. - google.ads.googleads.v2.enums.AdGroupCriterionStatusEnum.AdGroupCriterionStatus status = 3; - - // Output only. Information regarding the quality of the criterion. - QualityInfo quality_info = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. The ad group to which the criterion belongs. - google.protobuf.StringValue ad_group = 5 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroup" - } - ]; - - // Output only. The type of the criterion. - google.ads.googleads.v2.enums.CriterionTypeEnum.CriterionType type = 25 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. Whether to target (`false`) or exclude (`true`) the criterion. - // - // This field is immutable. To switch a criterion from positive to negative, - // remove then re-add it. - google.protobuf.BoolValue negative = 31 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. Serving status of the criterion. - google.ads.googleads.v2.enums.CriterionSystemServingStatusEnum.CriterionSystemServingStatus system_serving_status = 52 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Approval status of the criterion. - google.ads.googleads.v2.enums.AdGroupCriterionApprovalStatusEnum.AdGroupCriterionApprovalStatus approval_status = 53 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // 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. - google.protobuf.DoubleValue bid_modifier = 44; - - // The CPC (cost-per-click) bid. - google.protobuf.Int64Value cpc_bid_micros = 16; - - // The CPM (cost-per-thousand viewable impressions) bid. - google.protobuf.Int64Value cpm_bid_micros = 17; - - // The CPV (cost-per-view) bid. - google.protobuf.Int64Value cpv_bid_micros = 24; - - // The CPC bid amount, expressed as a fraction of the advertised price - // for some good or service. The valid range for the fraction is [0,1) and the - // value stored here is 1,000,000 * [fraction]. - google.protobuf.Int64Value percent_cpc_bid_micros = 33; - - // Output only. The effective CPC (cost-per-click) bid. - google.protobuf.Int64Value effective_cpc_bid_micros = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The effective CPM (cost-per-thousand viewable impressions) bid. - google.protobuf.Int64Value effective_cpm_bid_micros = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The effective CPV (cost-per-view) bid. - google.protobuf.Int64Value effective_cpv_bid_micros = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The effective Percent CPC bid amount. - google.protobuf.Int64Value effective_percent_cpc_bid_micros = 34 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Source of the effective CPC bid. - google.ads.googleads.v2.enums.BiddingSourceEnum.BiddingSource effective_cpc_bid_source = 21 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Source of the effective CPM bid. - google.ads.googleads.v2.enums.BiddingSourceEnum.BiddingSource effective_cpm_bid_source = 22 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Source of the effective CPV bid. - google.ads.googleads.v2.enums.BiddingSourceEnum.BiddingSource effective_cpv_bid_source = 23 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Source of the effective Percent CPC bid. - google.ads.googleads.v2.enums.BiddingSourceEnum.BiddingSource effective_percent_cpc_bid_source = 35 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Estimates for criterion bids at various positions. - PositionEstimates position_estimates = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The list of possible final URLs after all cross-domain redirects for the - // ad. - repeated google.protobuf.StringValue final_urls = 11; - - // The list of possible final mobile URLs after all cross-domain redirects. - repeated google.protobuf.StringValue final_mobile_urls = 51; - - // URL template for appending params to final URL. - google.protobuf.StringValue final_url_suffix = 50; - - // The URL template for constructing a tracking URL. - google.protobuf.StringValue tracking_url_template = 13; - - // 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.v2.common.CustomParameter url_custom_parameters = 14; - - // The ad group criterion. - // - // Exactly one must be set. - oneof criterion { - // Immutable. Keyword. - google.ads.googleads.v2.common.KeywordInfo keyword = 27 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Placement. - google.ads.googleads.v2.common.PlacementInfo placement = 28 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Mobile app category. - google.ads.googleads.v2.common.MobileAppCategoryInfo mobile_app_category = 29 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Mobile application. - google.ads.googleads.v2.common.MobileApplicationInfo mobile_application = 30 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Listing group. - google.ads.googleads.v2.common.ListingGroupInfo listing_group = 32 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Age range. - google.ads.googleads.v2.common.AgeRangeInfo age_range = 36 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Gender. - google.ads.googleads.v2.common.GenderInfo gender = 37 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Income range. - google.ads.googleads.v2.common.IncomeRangeInfo income_range = 38 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Parental status. - google.ads.googleads.v2.common.ParentalStatusInfo parental_status = 39 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. User List. - google.ads.googleads.v2.common.UserListInfo user_list = 42 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. YouTube Video. - google.ads.googleads.v2.common.YouTubeVideoInfo youtube_video = 40 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. YouTube Channel. - google.ads.googleads.v2.common.YouTubeChannelInfo youtube_channel = 41 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Topic. - google.ads.googleads.v2.common.TopicInfo topic = 43 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. User Interest. - google.ads.googleads.v2.common.UserInterestInfo user_interest = 45 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Webpage - google.ads.googleads.v2.common.WebpageInfo webpage = 46 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. App Payment Model. - google.ads.googleads.v2.common.AppPaymentModelInfo app_payment_model = 47 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Custom Affinity. - google.ads.googleads.v2.common.CustomAffinityInfo custom_affinity = 48 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Custom Intent. - google.ads.googleads.v2.common.CustomIntentInfo custom_intent = 49 [(google.api.field_behavior) = IMMUTABLE]; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/ad_group_criterion_label.proto b/third_party/googleapis/google/ads/googleads/v2/resources/ad_group_criterion_label.proto deleted file mode 100644 index f343dd74b..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/ad_group_criterion_label.proto +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupCriterionLabelProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the ad group criterion label resource. - -// A relationship between an ad group criterion and a label. -message AdGroupCriterionLabel { - option (google.api.resource) = { - type: "googleads.googleapis.com/AdGroupCriterionLabel" - pattern: "customers/{customer}/adGroupCriterionLabels/{ad_group_criterion_label}" - }; - - // Immutable. The resource name of the ad group criterion label. - // Ad group criterion label resource names have the form: - // `customers/{customer_id}/adGroupCriterionLabels/{ad_group_id}~{criterion_id}~{label_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupCriterionLabel" - } - ]; - - // Immutable. The ad group criterion to which the label is attached. - google.protobuf.StringValue ad_group_criterion = 2 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupCriterion" - } - ]; - - // Immutable. The label assigned to the ad group criterion. - google.protobuf.StringValue label = 3 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Label" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/ad_group_criterion_simulation.proto b/third_party/googleapis/google/ads/googleads/v2/resources/ad_group_criterion_simulation.proto deleted file mode 100644 index f9c8cabfc..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/ad_group_criterion_simulation.proto +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/common/simulation.proto"; -import "google/ads/googleads/v2/enums/simulation_modification_method.proto"; -import "google/ads/googleads/v2/enums/simulation_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupCriterionSimulationProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the ad group criterion simulation resource. - -// An ad group criterion simulation. Supported combinations of advertising -// channel type, criterion type, simulation type, and simulation modification -// method are detailed below respectively. -// -// 1. DISPLAY - KEYWORD - CPC_BID - UNIFORM -// 2. SEARCH - KEYWORD - CPC_BID - UNIFORM -// 3. SHOPPING - LISTING_GROUP - CPC_BID - UNIFORM -message AdGroupCriterionSimulation { - option (google.api.resource) = { - type: "googleads.googleapis.com/AdGroupCriterionSimulation" - pattern: "customers/{customer}/adGroupCriterionSimulations/{ad_group_criterion_simulation}" - }; - - // Output only. The resource name of the ad group criterion simulation. - // Ad group criterion simulation resource names have the form: - // - // `customers/{customer_id}/adGroupCriterionSimulations/{ad_group_id}~{criterion_id}~{type}~{modification_method}~{start_date}~{end_date}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupCriterionSimulation" - } - ]; - - // Output only. AdGroup ID of the simulation. - google.protobuf.Int64Value ad_group_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Criterion ID of the simulation. - google.protobuf.Int64Value criterion_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The field that the simulation modifies. - google.ads.googleads.v2.enums.SimulationTypeEnum.SimulationType type = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. How the simulation modifies the field. - google.ads.googleads.v2.enums.SimulationModificationMethodEnum.SimulationModificationMethod modification_method = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. First day on which the simulation is based, in YYYY-MM-DD format. - google.protobuf.StringValue start_date = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Last day on which the simulation is based, in YYYY-MM-DD format. - google.protobuf.StringValue end_date = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // List of simulation points. - oneof point_list { - // Output only. Simulation points if the simulation type is CPC_BID. - google.ads.googleads.v2.common.CpcBidSimulationPointList cpc_bid_point_list = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/ad_group_extension_setting.proto b/third_party/googleapis/google/ads/googleads/v2/resources/ad_group_extension_setting.proto deleted file mode 100644 index cb2d5d9cc..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/ad_group_extension_setting.proto +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/enums/extension_setting_device.proto"; -import "google/ads/googleads/v2/enums/extension_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupExtensionSettingProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the AdGroupExtensionSetting resource. - -// An ad group extension setting. -message AdGroupExtensionSetting { - option (google.api.resource) = { - type: "googleads.googleapis.com/AdGroupExtensionSetting" - pattern: "customers/{customer}/adGroupExtensionSettings/{ad_group_extension_setting}" - }; - - // Immutable. The resource name of the ad group extension setting. - // AdGroupExtensionSetting resource names have the form: - // - // `customers/{customer_id}/adGroupExtensionSettings/{ad_group_id}~{extension_type}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupExtensionSetting" - } - ]; - - // Immutable. The extension type of the ad group extension setting. - google.ads.googleads.v2.enums.ExtensionTypeEnum.ExtensionType extension_type = 2 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. The resource name of the ad group. The linked extension feed items will - // serve under this ad group. - // AdGroup resource names have the form: - // - // `customers/{customer_id}/adGroups/{ad_group_id}` - google.protobuf.StringValue ad_group = 3 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroup" - } - ]; - - // The resource names of the extension feed items to serve under the ad group. - // ExtensionFeedItem resource names have the form: - // - // `customers/{customer_id}/extensionFeedItems/{feed_item_id}` - repeated google.protobuf.StringValue extension_feed_items = 4 [(google.api.resource_reference) = { - type: "googleads.googleapis.com/ExtensionFeedItem" - }]; - - // The device for which the extensions will serve. Optional. - google.ads.googleads.v2.enums.ExtensionSettingDeviceEnum.ExtensionSettingDevice device = 5; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/ad_group_feed.proto b/third_party/googleapis/google/ads/googleads/v2/resources/ad_group_feed.proto deleted file mode 100644 index 2820d5d97..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/ad_group_feed.proto +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/common/matching_function.proto"; -import "google/ads/googleads/v2/enums/feed_link_status.proto"; -import "google/ads/googleads/v2/enums/placeholder_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupFeedProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the AdGroupFeed resource. - -// An ad group feed. -message AdGroupFeed { - option (google.api.resource) = { - type: "googleads.googleapis.com/AdGroupFeed" - pattern: "customers/{customer}/adGroupFeeds/{ad_group_feed}" - }; - - // Immutable. The resource name of the ad group feed. - // Ad group feed resource names have the form: - // - // `customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_id} - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupFeed" - } - ]; - - // Immutable. The feed being linked to the ad group. - google.protobuf.StringValue feed = 2 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Feed" - } - ]; - - // Immutable. The ad group being linked to the feed. - google.protobuf.StringValue ad_group = 3 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroup" - } - ]; - - // Indicates which placeholder types the feed may populate under the connected - // ad group. Required. - repeated google.ads.googleads.v2.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. - // Required. - google.ads.googleads.v2.common.MatchingFunction matching_function = 5; - - // Output only. Status of the ad group feed. - // This field is read-only. - google.ads.googleads.v2.enums.FeedLinkStatusEnum.FeedLinkStatus status = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/ad_group_label.proto b/third_party/googleapis/google/ads/googleads/v2/resources/ad_group_label.proto deleted file mode 100644 index 818648824..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/ad_group_label.proto +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupLabelProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the ad group label resource. - -// A relationship between an ad group and a label. -message AdGroupLabel { - option (google.api.resource) = { - type: "googleads.googleapis.com/AdGroupLabel" - pattern: "customers/{customer}/adGroupLabels/{ad_group_label}" - }; - - // Immutable. The resource name of the ad group label. - // Ad group label resource names have the form: - // `customers/{customer_id}/adGroupLabels/{ad_group_id}~{label_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupLabel" - } - ]; - - // Immutable. The ad group to which the label is attached. - google.protobuf.StringValue ad_group = 2 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroup" - } - ]; - - // Immutable. The label assigned to the ad group. - google.protobuf.StringValue label = 3 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Label" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/ad_group_simulation.proto b/third_party/googleapis/google/ads/googleads/v2/resources/ad_group_simulation.proto deleted file mode 100644 index 1c13e787c..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/ad_group_simulation.proto +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/common/simulation.proto"; -import "google/ads/googleads/v2/enums/simulation_modification_method.proto"; -import "google/ads/googleads/v2/enums/simulation_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupSimulationProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the ad group simulation resource. - -// An ad group simulation. Supported combinations of advertising -// channel type, simulation type and simulation modification method is -// detailed below respectively. -// -// 1. SEARCH - CPC_BID - DEFAULT -// 2. SEARCH - CPC_BID - UNIFORM -// 3. SEARCH - TARGET_CPA - UNIFORM -// 4. SEARCH - TARGET_ROAS - UNIFORM -// 5. DISPLAY - CPC_BID - DEFAULT -// 6. DISPLAY - CPC_BID - UNIFORM -// 7. DISPLAY - TARGET_CPA - UNIFORM -// 8. VIDEO - CPV_BID - DEFAULT -// 9. VIDEO - CPV_BID - UNIFORM -message AdGroupSimulation { - option (google.api.resource) = { - type: "googleads.googleapis.com/AdGroupSimulation" - pattern: "customers/{customer}/adGroupSimulations/{ad_group_simulation}" - }; - - // Output only. The resource name of the ad group simulation. - // Ad group simulation resource names have the form: - // - // `customers/{customer_id}/adGroupSimulations/{ad_group_id}~{type}~{modification_method}~{start_date}~{end_date}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupSimulation" - } - ]; - - // Output only. Ad group id of the simulation. - google.protobuf.Int64Value ad_group_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The field that the simulation modifies. - google.ads.googleads.v2.enums.SimulationTypeEnum.SimulationType type = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. How the simulation modifies the field. - google.ads.googleads.v2.enums.SimulationModificationMethodEnum.SimulationModificationMethod modification_method = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. First day on which the simulation is based, in YYYY-MM-DD format. - google.protobuf.StringValue start_date = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Last day on which the simulation is based, in YYYY-MM-DD format - google.protobuf.StringValue end_date = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // List of simulation points. - oneof point_list { - // Output only. Simulation points if the simulation type is CPC_BID. - google.ads.googleads.v2.common.CpcBidSimulationPointList cpc_bid_point_list = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Simulation points if the simulation type is CPV_BID. - google.ads.googleads.v2.common.CpvBidSimulationPointList cpv_bid_point_list = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Simulation points if the simulation type is TARGET_CPA. - google.ads.googleads.v2.common.TargetCpaSimulationPointList target_cpa_point_list = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/ad_parameter.proto b/third_party/googleapis/google/ads/googleads/v2/resources/ad_parameter.proto deleted file mode 100644 index d0c7297ae..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/ad_parameter.proto +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "AdParameterProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the ad parameter resource. - -// An ad parameter that is used to update numeric values (such as prices or -// inventory levels) in any text line of an ad (including URLs). There can -// be a maximum of two AdParameters per ad group criterion. (One with -// parameter_index = 1 and one with parameter_index = 2.) -// In the ad the parameters are referenced by a placeholder of the form -// "{param#:value}". E.g. "{param1:$17}" -message AdParameter { - option (google.api.resource) = { - type: "googleads.googleapis.com/AdParameter" - pattern: "customers/{customer}/adParameters/{ad_parameter}" - }; - - // Immutable. The resource name of the ad parameter. - // Ad parameter resource names have the form: - // - // `customers/{customer_id}/adParameters/{ad_group_id}~{criterion_id}~{parameter_index}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdParameter" - } - ]; - - // Immutable. The ad group criterion that this ad parameter belongs to. - google.protobuf.StringValue ad_group_criterion = 2 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupCriterion" - } - ]; - - // Immutable. The unique index of this ad parameter. Must be either 1 or 2. - google.protobuf.Int64Value parameter_index = 3 [(google.api.field_behavior) = IMMUTABLE]; - - // Numeric value to insert into the ad text. The following restrictions - // apply: - // - Can use comma or period as a separator, with an optional period or - // comma (respectively) for fractional values. For example, 1,000,000.00 - // and 2.000.000,10 are valid. - // - Can be prepended or appended with a currency symbol. For example, - // $99.99 is valid. - // - Can be prepended or appended with a currency code. For example, 99.99USD - // and EUR200 are valid. - // - Can use '%'. For example, 1.0% and 1,0% are valid. - // - Can use plus or minus. For example, -10.99 and 25+ are valid. - // - Can use '/' between two numbers. For example 4/1 and 0.95/0.45 are - // valid. - google.protobuf.StringValue insertion_text = 4; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/ad_schedule_view.proto b/third_party/googleapis/google/ads/googleads/v2/resources/ad_schedule_view.proto deleted file mode 100644 index 79dc8b2cb..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/ad_schedule_view.proto +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "AdScheduleViewProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the ad schedule view resource. - -// An ad schedule view summarizes the performance of campaigns by -// AdSchedule criteria. -message AdScheduleView { - option (google.api.resource) = { - type: "googleads.googleapis.com/AdScheduleView" - pattern: "customers/{customer}/adScheduleViews/{ad_schedule_view}" - }; - - // Output only. The resource name of the ad schedule view. - // AdSchedule view resource names have the form: - // - // `customers/{customer_id}/adScheduleViews/{campaign_id}~{criterion_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdScheduleView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/age_range_view.proto b/third_party/googleapis/google/ads/googleads/v2/resources/age_range_view.proto deleted file mode 100644 index 1f28a9e2f..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/age_range_view.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "AgeRangeViewProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the age range view resource. - -// An age range view. -message AgeRangeView { - option (google.api.resource) = { - type: "googleads.googleapis.com/AgeRangeView" - pattern: "customers/{customer}/ageRangeViews/{age_range_view}" - }; - - // Output only. The resource name of the age range view. - // Age range view resource names have the form: - // - // `customers/{customer_id}/ageRangeViews/{ad_group_id}~{criterion_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AgeRangeView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/asset.proto b/third_party/googleapis/google/ads/googleads/v2/resources/asset.proto deleted file mode 100644 index 48cdbe291..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/asset.proto +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/common/asset_types.proto"; -import "google/ads/googleads/v2/enums/asset_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "AssetProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the asset resource. - -// Asset is a part of an ad which can be shared across multiple ads. -// It can be an image (ImageAsset), a video (YoutubeVideoAsset), etc. -message Asset { - option (google.api.resource) = { - type: "googleads.googleapis.com/Asset" - pattern: "customers/{customer}/assets/{asset}" - }; - - // Immutable. The resource name of the asset. - // Asset resource names have the form: - // - // `customers/{customer_id}/assets/{asset_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Asset" - } - ]; - - // Output only. The ID of the asset. - google.protobuf.Int64Value id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Optional name of the asset. - google.protobuf.StringValue name = 3; - - // Output only. Type of the asset. - google.ads.googleads.v2.enums.AssetTypeEnum.AssetType type = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The specific type of the asset. - oneof asset_data { - // Immutable. A YouTube video asset. - google.ads.googleads.v2.common.YoutubeVideoAsset youtube_video_asset = 5 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. A media bundle asset. - google.ads.googleads.v2.common.MediaBundleAsset media_bundle_asset = 6 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. An image asset. - google.ads.googleads.v2.common.ImageAsset image_asset = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. A text asset. - google.ads.googleads.v2.common.TextAsset text_asset = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/bidding_strategy.proto b/third_party/googleapis/google/ads/googleads/v2/resources/bidding_strategy.proto deleted file mode 100644 index 3e7281535..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/bidding_strategy.proto +++ /dev/null @@ -1,128 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/common/bidding.proto"; -import "google/ads/googleads/v2/enums/bidding_strategy_status.proto"; -import "google/ads/googleads/v2/enums/bidding_strategy_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "BiddingStrategyProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the BiddingStrategy resource - -// A bidding strategy. -message BiddingStrategy { - option (google.api.resource) = { - type: "googleads.googleapis.com/BiddingStrategy" - pattern: "customers/{customer}/biddingStrategies/{bidding_strategy}" - }; - - // Immutable. The resource name of the bidding strategy. - // Bidding strategy resource names have the form: - // - // `customers/{customer_id}/biddingStrategies/{bidding_strategy_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/BiddingStrategy" - } - ]; - - // Output only. The ID of the bidding strategy. - google.protobuf.Int64Value id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The name of the bidding strategy. - // All bidding strategies within an account must be named distinctly. - // - // The length of this string should be between 1 and 255, inclusive, - // in UTF-8 bytes, (trimmed). - google.protobuf.StringValue name = 4; - - // Output only. The status of the bidding strategy. - // - // This field is read-only. - google.ads.googleads.v2.enums.BiddingStrategyStatusEnum.BiddingStrategyStatus status = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The type of the bidding strategy. - // Create a bidding strategy by setting the bidding scheme. - // - // This field is read-only. - google.ads.googleads.v2.enums.BiddingStrategyTypeEnum.BiddingStrategyType type = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The number of campaigns attached to this bidding strategy. - // - // This field is read-only. - google.protobuf.Int64Value campaign_count = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The number of non-removed campaigns attached to this bidding strategy. - // - // This field is read-only. - google.protobuf.Int64Value non_removed_campaign_count = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The bidding scheme. - // - // Only one can be set. - oneof scheme { - // A 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. - google.ads.googleads.v2.common.EnhancedCpc enhanced_cpc = 7; - - // A bidding strategy that sets max CPC bids to target impressions on - // page one or page one promoted slots on google.com. - // This field is deprecated. Creating a new bidding strategy with this - // field or attaching bidding strategies with this field to a campaign will - // fail. Mutates to strategies that already have this scheme populated are - // allowed. - google.ads.googleads.v2.common.PageOnePromoted page_one_promoted = 8; - - // A bidding strategy that sets bids to help get as many conversions as - // possible at the target cost-per-acquisition (CPA) you set. - google.ads.googleads.v2.common.TargetCpa target_cpa = 9; - - // A bidding strategy that automatically optimizes towards a desired - // percentage of impressions. - google.ads.googleads.v2.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. - // This field is deprecated. Creating a new bidding strategy with this - // field or attaching bidding strategies with this field to a campaign will - // fail. Mutates to strategies that already have this scheme populated are - // allowed. - google.ads.googleads.v2.common.TargetOutrankShare target_outrank_share = 10; - - // A bidding strategy that helps you maximize revenue while averaging a - // specific target Return On Ad Spend (ROAS). - google.ads.googleads.v2.common.TargetRoas target_roas = 11; - - // A bid strategy that sets your bids to help get as many clicks as - // possible within your budget. - google.ads.googleads.v2.common.TargetSpend target_spend = 12; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/billing_setup.proto b/third_party/googleapis/google/ads/googleads/v2/resources/billing_setup.proto deleted file mode 100644 index f8ab981a5..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/billing_setup.proto +++ /dev/null @@ -1,139 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/enums/billing_setup_status.proto"; -import "google/ads/googleads/v2/enums/time_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "BillingSetupProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the BillingSetup resource. - -// A billing setup, which associates a payments account and an advertiser. A -// billing setup is specific to one advertiser. -message BillingSetup { - option (google.api.resource) = { - type: "googleads.googleapis.com/BillingSetup" - pattern: "customers/{customer}/billingSetups/{billing_setup}" - }; - - // Container of payments account information for this billing. - message PaymentsAccountInfo { - // Output only. A 16 digit id used to identify the payments account associated with the - // billing setup. - // - // This must be passed as a string with dashes, e.g. "1234-5678-9012-3456". - google.protobuf.StringValue payments_account_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. The name of the payments account associated with the billing setup. - // - // This enables the user to specify a meaningful name for a payments account - // to aid in reconciling monthly invoices. - // - // This name will be printed in the monthly invoices. - google.protobuf.StringValue payments_account_name = 2 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. A 12 digit id used to identify the payments profile associated with the - // billing setup. - // - // This must be passed in as a string with dashes, e.g. "1234-5678-9012". - google.protobuf.StringValue payments_profile_id = 3 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. The name of the payments profile associated with the billing setup. - google.protobuf.StringValue payments_profile_name = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. A secondary payments profile id present in uncommon situations, e.g. - // when a sequential liability agreement has been arranged. - google.protobuf.StringValue secondary_payments_profile_id = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // Immutable. The resource name of the billing setup. - // BillingSetup resource names have the form: - // - // `customers/{customer_id}/billingSetups/{billing_setup_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/BillingSetup" - } - ]; - - // Output only. The ID of the billing setup. - google.protobuf.Int64Value id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The status of the billing setup. - google.ads.googleads.v2.enums.BillingSetupStatusEnum.BillingSetupStatus status = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. The resource name of the payments account associated with this billing - // setup. Payments resource names have the form: - // - // `customers/{customer_id}/paymentsAccounts/{payments_account_id}` - // When setting up billing, this is used to signup with an existing payments - // account (and then payments_account_info should not be set). - // When getting a billing setup, this and payments_account_info will be - // populated. - google.protobuf.StringValue payments_account = 11 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/PaymentsAccount" - } - ]; - - // Immutable. The payments account information associated with this billing setup. - // When setting up billing, this is used to signup with a new payments account - // (and then payments_account should not be set). - // When getting a billing setup, this and payments_account will be - // populated. - PaymentsAccountInfo payments_account_info = 12 [(google.api.field_behavior) = IMMUTABLE]; - - // When creating a new billing setup, this is when the setup should take - // effect. NOW is the only acceptable start time if the customer doesn't have - // any approved setups. - // - // When fetching an existing billing setup, this is the requested start time. - // However, if the setup was approved (see status) after the requested start - // time, then this is the approval time. - oneof start_time { - // Immutable. The start date time in yyyy-MM-dd or yyyy-MM-dd HH:mm:ss format. Only a - // future time is allowed. - google.protobuf.StringValue start_date_time = 9 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. The start time as a type. Only NOW is allowed. - google.ads.googleads.v2.enums.TimeTypeEnum.TimeType start_time_type = 10 [(google.api.field_behavior) = IMMUTABLE]; - } - - // When the billing setup ends / ended. This is either FOREVER or the start - // time of the next scheduled billing setup. - oneof end_time { - // Output only. The end date time in yyyy-MM-dd or yyyy-MM-dd HH:mm:ss format. - google.protobuf.StringValue end_date_time = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The end time as a type. The only possible value is FOREVER. - google.ads.googleads.v2.enums.TimeTypeEnum.TimeType end_time_type = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/campaign.proto b/third_party/googleapis/google/ads/googleads/v2/resources/campaign.proto deleted file mode 100644 index b4bfc22b2..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/campaign.proto +++ /dev/null @@ -1,390 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/common/bidding.proto"; -import "google/ads/googleads/v2/common/custom_parameter.proto"; -import "google/ads/googleads/v2/common/frequency_cap.proto"; -import "google/ads/googleads/v2/common/real_time_bidding_setting.proto"; -import "google/ads/googleads/v2/common/targeting_setting.proto"; -import "google/ads/googleads/v2/enums/ad_serving_optimization_status.proto"; -import "google/ads/googleads/v2/enums/advertising_channel_sub_type.proto"; -import "google/ads/googleads/v2/enums/advertising_channel_type.proto"; -import "google/ads/googleads/v2/enums/app_campaign_app_store.proto"; -import "google/ads/googleads/v2/enums/app_campaign_bidding_strategy_goal_type.proto"; -import "google/ads/googleads/v2/enums/bidding_strategy_type.proto"; -import "google/ads/googleads/v2/enums/brand_safety_suitability.proto"; -import "google/ads/googleads/v2/enums/campaign_experiment_type.proto"; -import "google/ads/googleads/v2/enums/campaign_serving_status.proto"; -import "google/ads/googleads/v2/enums/campaign_status.proto"; -import "google/ads/googleads/v2/enums/negative_geo_target_type.proto"; -import "google/ads/googleads/v2/enums/payment_mode.proto"; -import "google/ads/googleads/v2/enums/positive_geo_target_type.proto"; -import "google/ads/googleads/v2/enums/vanity_pharma_display_url_mode.proto"; -import "google/ads/googleads/v2/enums/vanity_pharma_text.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "CampaignProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the Campaign resource. - -// A campaign. -message Campaign { - option (google.api.resource) = { - type: "googleads.googleapis.com/Campaign" - pattern: "customers/{customer}/campaigns/{campaign}" - }; - - // The network settings for the campaign. - message NetworkSettings { - // Whether ads will be served with google.com search results. - google.protobuf.BoolValue target_google_search = 1; - - // Whether ads will be served on partner sites in the Google Search Network - // (requires `target_google_search` to also be `true`). - google.protobuf.BoolValue target_search_network = 2; - - // Whether ads will be served on specified placements in the Google Display - // Network. Placements are specified using the Placement criterion. - google.protobuf.BoolValue target_content_network = 3; - - // Whether ads will be served on the Google Partner Network. - // This is available only to some select Google partner accounts. - google.protobuf.BoolValue target_partner_search_network = 4; - } - - // Campaign-level settings for hotel ads. - message HotelSettingInfo { - // Immutable. The linked Hotel Center account. - google.protobuf.Int64Value hotel_center_id = 1 [(google.api.field_behavior) = IMMUTABLE]; - } - - // Describes how unbranded pharma ads will be displayed. - message VanityPharma { - // The display mode for vanity pharma URLs. - google.ads.googleads.v2.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode vanity_pharma_display_url_mode = 1; - - // The text that will be displayed in display URL of the text ad when - // website description is the selected display mode for vanity pharma URLs. - google.ads.googleads.v2.enums.VanityPharmaTextEnum.VanityPharmaText vanity_pharma_text = 2; - } - - // Selective optimization setting for this campaign, which includes a set of - // conversion actions to optimize this campaign towards. - message SelectiveOptimization { - // The selected set of conversion actions for optimizing this campaign. - repeated google.protobuf.StringValue conversion_actions = 1 [(google.api.resource_reference) = { - type: "googleads.googleapis.com/ConversionAction" - }]; - } - - // The setting for controlling Dynamic Search Ads (DSA). - message DynamicSearchAdsSetting { - // The Internet domain name that this setting represents, e.g., "google.com" - // or "www.google.com". - google.protobuf.StringValue domain_name = 1; - - // The language code specifying the language of the domain, e.g., "en". - google.protobuf.StringValue language_code = 2; - - // Whether the campaign uses advertiser supplied URLs exclusively. - google.protobuf.BoolValue use_supplied_urls_only = 3; - - // Output only. The list of page feeds associated with the campaign. - repeated google.protobuf.StringValue feeds = 5 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Feed" - } - ]; - } - - // The setting for Shopping campaigns. Defines the universe of products that - // can be advertised by the campaign, and how this campaign interacts with - // other Shopping campaigns. - message ShoppingSetting { - // Immutable. ID of the Merchant Center account. - // This field is required for create operations. This field is immutable for - // Shopping campaigns. - google.protobuf.Int64Value merchant_id = 1 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Sales country of products to include in the campaign. - // This field is required for Shopping campaigns. This field is immutable. - // This field is optional for non-Shopping campaigns, but it must be equal - // to 'ZZ' if set. - google.protobuf.StringValue sales_country = 2 [(google.api.field_behavior) = IMMUTABLE]; - - // Priority of the campaign. Campaigns with numerically higher priorities - // take precedence over those with lower priorities. - // This field is required for Shopping campaigns, with values between 0 and - // 2, inclusive. - // This field is optional for Smart Shopping campaigns, but must be equal to - // 3 if set. - google.protobuf.Int32Value campaign_priority = 3; - - // Whether to include local products. - google.protobuf.BoolValue enable_local = 4; - } - - // Campaign-level settings for tracking information. - message TrackingSetting { - // Output only. The url used for dynamic tracking. - google.protobuf.StringValue tracking_url = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // Represents a collection of settings related to ads geotargeting. - message GeoTargetTypeSetting { - // The setting used for positive geotargeting in this particular campaign. - google.ads.googleads.v2.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType positive_geo_target_type = 1; - - // The setting used for negative geotargeting in this particular campaign. - google.ads.googleads.v2.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType negative_geo_target_type = 2; - } - - // Campaign-level settings for App Campaigns. - message AppCampaignSetting { - // Represents the goal which the bidding strategy of this app campaign - // should optimize towards. - google.ads.googleads.v2.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType bidding_strategy_goal_type = 1; - - // Immutable. A string that uniquely identifies a mobile application. - google.protobuf.StringValue app_id = 2 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. The application store that distributes this specific app. - google.ads.googleads.v2.enums.AppCampaignAppStoreEnum.AppCampaignAppStore app_store = 3 [(google.api.field_behavior) = IMMUTABLE]; - } - - // Immutable. The resource name of the campaign. - // Campaign resource names have the form: - // - // `customers/{customer_id}/campaigns/{campaign_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Campaign" - } - ]; - - // Output only. The ID of the campaign. - google.protobuf.Int64Value id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The name of the campaign. - // - // This field is required and should not be empty when creating new - // campaigns. - // - // It must not contain any null (code point 0x0), NL line feed - // (code point 0xA) or carriage return (code point 0xD) characters. - google.protobuf.StringValue name = 4; - - // The status of the campaign. - // - // When a new campaign is added, the status defaults to ENABLED. - google.ads.googleads.v2.enums.CampaignStatusEnum.CampaignStatus status = 5; - - // Output only. The ad serving status of the campaign. - google.ads.googleads.v2.enums.CampaignServingStatusEnum.CampaignServingStatus serving_status = 21 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The ad serving optimization status of the campaign. - google.ads.googleads.v2.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus ad_serving_optimization_status = 8; - - // Immutable. The primary serving target for ads within the campaign. - // The targeting options can be refined in `network_settings`. - // - // This field is required and should not be empty when creating new - // campaigns. - // - // Can be set only when creating campaigns. - // After the campaign is created, the field can not be changed. - google.ads.googleads.v2.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 9 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Optional refinement to `advertising_channel_type`. - // Must be a valid sub-type of the parent channel type. - // - // Can be set only when creating campaigns. - // After campaign is created, the field can not be changed. - google.ads.googleads.v2.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType advertising_channel_sub_type = 10 [(google.api.field_behavior) = IMMUTABLE]; - - // The URL template for constructing a tracking URL. - google.protobuf.StringValue tracking_url_template = 11; - - // 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.v2.common.CustomParameter url_custom_parameters = 12; - - // Settings for Real-Time Bidding, a feature only available for campaigns - // targeting the Ad Exchange network. - google.ads.googleads.v2.common.RealTimeBiddingSetting real_time_bidding_setting = 39; - - // The network settings for the campaign. - NetworkSettings network_settings = 14; - - // Immutable. The hotel setting for the campaign. - HotelSettingInfo hotel_setting = 32 [(google.api.field_behavior) = IMMUTABLE]; - - // The setting for controlling Dynamic Search Ads (DSA). - DynamicSearchAdsSetting dynamic_search_ads_setting = 33; - - // The setting for controlling Shopping campaigns. - ShoppingSetting shopping_setting = 36; - - // Setting for targeting related features. - google.ads.googleads.v2.common.TargetingSetting targeting_setting = 43; - - // The setting for ads geotargeting. - GeoTargetTypeSetting geo_target_type_setting = 47; - - // The setting related to App Campaign. - AppCampaignSetting app_campaign_setting = 51; - - // Output only. The resource names of labels attached to this campaign. - repeated google.protobuf.StringValue labels = 53 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignLabel" - } - ]; - - // Output only. The type of campaign: normal, draft, or experiment. - google.ads.googleads.v2.enums.CampaignExperimentTypeEnum.CampaignExperimentType experiment_type = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The resource name of the base campaign of a draft or experiment campaign. - // For base campaigns, this is equal to `resource_name`. - // - // This field is read-only. - google.protobuf.StringValue base_campaign = 28 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Campaign" - } - ]; - - // The budget of the campaign. - google.protobuf.StringValue campaign_budget = 6 [(google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignBudget" - }]; - - // Output only. The type of bidding strategy. - // - // A bidding strategy can be created by setting either the bidding scheme to - // create a standard bidding strategy or the `bidding_strategy` field to - // create a portfolio bidding strategy. - // - // This field is read-only. - google.ads.googleads.v2.enums.BiddingStrategyTypeEnum.BiddingStrategyType bidding_strategy_type = 22 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The date when campaign started. - // This field must not be used in WHERE clauses. - google.protobuf.StringValue start_date = 19; - - // The date when campaign ended. - // This field must not be used in WHERE clauses. - google.protobuf.StringValue end_date = 20; - - // Suffix used to append query parameters to landing pages that are served - // with parallel tracking. - google.protobuf.StringValue final_url_suffix = 38; - - // A list that limits how often each user will see this campaign's ads. - repeated google.ads.googleads.v2.common.FrequencyCapEntry frequency_caps = 40; - - // Output only. 3-Tier Brand Safety setting for the campaign. - google.ads.googleads.v2.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability video_brand_safety_suitability = 42 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Describes how unbranded pharma ads will be displayed. - VanityPharma vanity_pharma = 44; - - // Selective optimization setting for this campaign, which includes a set of - // conversion actions to optimize this campaign towards. - SelectiveOptimization selective_optimization = 45; - - // Output only. Campaign-level settings for tracking information. - TrackingSetting tracking_setting = 46 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Payment mode for the campaign. - google.ads.googleads.v2.enums.PaymentModeEnum.PaymentMode payment_mode = 52; - - // The bidding strategy for the campaign. - // - // Must be either portfolio (created via BiddingStrategy service) or - // standard, that is embedded into the campaign. - oneof campaign_bidding_strategy { - // Portfolio bidding strategy used by campaign. - google.protobuf.StringValue bidding_strategy = 23 [(google.api.resource_reference) = { - type: "googleads.googleapis.com/BiddingStrategy" - }]; - - // Commission is an automatic bidding strategy in which the advertiser pays - // a certain portion of the conversion value. - google.ads.googleads.v2.common.Commission commission = 49; - - // Standard Manual CPC bidding strategy. - // Manual click-based bidding where user pays per click. - google.ads.googleads.v2.common.ManualCpc manual_cpc = 24; - - // Standard Manual CPM bidding strategy. - // Manual impression-based bidding where user pays per thousand - // impressions. - google.ads.googleads.v2.common.ManualCpm manual_cpm = 25; - - // Output only. A bidding strategy that pays a configurable amount per video view. - google.ads.googleads.v2.common.ManualCpv manual_cpv = 37 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Standard Maximize Conversions bidding strategy that automatically - // maximizes number of conversions given a daily budget. - google.ads.googleads.v2.common.MaximizeConversions maximize_conversions = 30; - - // Standard Maximize Conversion Value bidding strategy that automatically - // sets bids to maximize revenue while spending your budget. - google.ads.googleads.v2.common.MaximizeConversionValue maximize_conversion_value = 31; - - // Standard Target CPA bidding strategy that automatically sets bids to - // help get as many conversions as possible at the target - // cost-per-acquisition (CPA) you set. - google.ads.googleads.v2.common.TargetCpa target_cpa = 26; - - // Target Impression Share bidding strategy. An automated bidding strategy - // that sets bids to achieve a desired percentage of impressions. - google.ads.googleads.v2.common.TargetImpressionShare target_impression_share = 48; - - // Standard Target ROAS bidding strategy that automatically maximizes - // revenue while averaging a specific target return on ad spend (ROAS). - google.ads.googleads.v2.common.TargetRoas target_roas = 29; - - // Standard Target Spend bidding strategy that automatically sets your bids - // to help get as many clicks as possible within your budget. - google.ads.googleads.v2.common.TargetSpend target_spend = 27; - - // Standard Percent Cpc bidding strategy where bids are a fraction of the - // advertised price for some good or service. - google.ads.googleads.v2.common.PercentCpc percent_cpc = 34; - - // A bidding strategy that automatically optimizes cost per thousand - // impressions. - google.ads.googleads.v2.common.TargetCpm target_cpm = 41; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/campaign_audience_view.proto b/third_party/googleapis/google/ads/googleads/v2/resources/campaign_audience_view.proto deleted file mode 100644 index 175c2abef..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/campaign_audience_view.proto +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "CampaignAudienceViewProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the campaign audience view resource. - -// A campaign audience view. -// Includes performance data from interests and remarketing lists for Display -// Network and YouTube Network ads, and remarketing lists for search ads (RLSA), -// aggregated by campaign and audience criterion. This view only includes -// audiences attached at the campaign level. -message CampaignAudienceView { - option (google.api.resource) = { - type: "googleads.googleapis.com/CampaignAudienceView" - pattern: "customers/{customer}/campaignAudienceViews/{campaign_audience_view}" - }; - - // Output only. The resource name of the campaign audience view. - // Campaign audience view resource names have the form: - // - // `customers/{customer_id}/campaignAudienceViews/{campaign_id}~{criterion_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignAudienceView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/campaign_bid_modifier.proto b/third_party/googleapis/google/ads/googleads/v2/resources/campaign_bid_modifier.proto deleted file mode 100644 index b60acc613..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/campaign_bid_modifier.proto +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/common/criteria.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "CampaignBidModifierProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the Campaign Bid Modifier resource. - -// Represents a bid-modifiable only criterion at the campaign level. -message CampaignBidModifier { - option (google.api.resource) = { - type: "googleads.googleapis.com/CampaignBidModifier" - pattern: "customers/{customer}/campaignBidModifiers/{campaign_bid_modifier}" - }; - - // Immutable. The resource name of the campaign bid modifier. - // Campaign bid modifier resource names have the form: - // - // `customers/{customer_id}/campaignBidModifiers/{campaign_id}~{criterion_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignBidModifier" - } - ]; - - // Output only. The campaign to which this criterion belongs. - google.protobuf.StringValue campaign = 2 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Campaign" - } - ]; - - // Output only. The ID of the criterion to bid modify. - // - // This field is ignored for mutates. - google.protobuf.Int64Value criterion_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The modifier for the bid when the criterion matches. - google.protobuf.DoubleValue bid_modifier = 4; - - // The criterion of this campaign bid modifier. - // - // Required in create operations starting in V5. - oneof criterion { - // Immutable. Criterion for interaction type. Only supported for search campaigns. - google.ads.googleads.v2.common.InteractionTypeInfo interaction_type = 5 [(google.api.field_behavior) = IMMUTABLE]; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/campaign_budget.proto b/third_party/googleapis/google/ads/googleads/v2/resources/campaign_budget.proto deleted file mode 100644 index e7e2d4130..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/campaign_budget.proto +++ /dev/null @@ -1,157 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/enums/budget_delivery_method.proto"; -import "google/ads/googleads/v2/enums/budget_period.proto"; -import "google/ads/googleads/v2/enums/budget_status.proto"; -import "google/ads/googleads/v2/enums/budget_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "CampaignBudgetProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the Budget resource. - -// A campaign budget. -message CampaignBudget { - option (google.api.resource) = { - type: "googleads.googleapis.com/CampaignBudget" - pattern: "customers/{customer}/campaignBudgets/{campaign_budget}" - }; - - // Immutable. The resource name of the campaign budget. - // Campaign budget resource names have the form: - // - // `customers/{customer_id}/campaignBudgets/{budget_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignBudget" - } - ]; - - // Output only. The ID of the campaign budget. - // - // A campaign budget is created using the CampaignBudgetService create - // operation and is assigned a budget ID. A budget ID can be shared across - // different campaigns; the system will then allocate the campaign budget - // among different campaigns to get optimum results. - google.protobuf.Int64Value id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The name of the campaign budget. - // - // When creating a campaign budget through CampaignBudgetService, every - // explicitly shared campaign budget must have a non-null, non-empty name. - // Campaign budgets that are not explicitly shared derive their name from the - // attached campaign's name. - // - // The length of this string must be between 1 and 255, inclusive, - // in UTF-8 bytes, (trimmed). - google.protobuf.StringValue name = 4; - - // The amount of the budget, in the local currency for the account. - // Amount is specified in micros, where one million is equivalent to one - // currency unit. Monthly spend is capped at 30.4 times this amount. - google.protobuf.Int64Value amount_micros = 5; - - // The lifetime amount of the budget, in the local currency for the account. - // Amount is specified in micros, where one million is equivalent to one - // currency unit. - google.protobuf.Int64Value total_amount_micros = 10; - - // Output only. The status of this campaign budget. This field is read-only. - google.ads.googleads.v2.enums.BudgetStatusEnum.BudgetStatus status = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The delivery method that determines the rate at which the campaign budget - // is spent. - // - // Defaults to STANDARD if unspecified in a create operation. - google.ads.googleads.v2.enums.BudgetDeliveryMethodEnum.BudgetDeliveryMethod delivery_method = 7; - - // Specifies whether the budget is explicitly shared. Defaults to true if - // unspecified in a create operation. - // - // If true, the budget was created with the purpose of sharing - // across one or more campaigns. - // - // If false, the budget was created with the intention of only being used - // with a single campaign. The budget's name and status will stay in sync - // with the campaign's name and status. Attempting to share the budget with a - // second campaign will result in an error. - // - // A non-shared budget can become an explicitly shared. The same operation - // must also assign the budget a name. - // - // A shared campaign budget can never become non-shared. - google.protobuf.BoolValue explicitly_shared = 8; - - // Output only. The number of campaigns actively using the budget. - // - // This field is read-only. - google.protobuf.Int64Value reference_count = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Indicates whether there is a recommended budget for this campaign budget. - // - // This field is read-only. - google.protobuf.BoolValue has_recommended_budget = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The recommended budget amount. If no recommendation is available, this will - // be set to the budget amount. - // Amount is specified in micros, where one million is equivalent to one - // currency unit. - // - // This field is read-only. - google.protobuf.Int64Value recommended_budget_amount_micros = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. Period over which to spend the budget. Defaults to DAILY if not specified. - google.ads.googleads.v2.enums.BudgetPeriodEnum.BudgetPeriod period = 13 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. 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.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. 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.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. 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.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. 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.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. The type of the campaign budget. - google.ads.googleads.v2.enums.BudgetTypeEnum.BudgetType type = 18 [(google.api.field_behavior) = IMMUTABLE]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/campaign_criterion.proto b/third_party/googleapis/google/ads/googleads/v2/resources/campaign_criterion.proto deleted file mode 100644 index 83ac21881..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/campaign_criterion.proto +++ /dev/null @@ -1,168 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/common/criteria.proto"; -import "google/ads/googleads/v2/enums/campaign_criterion_status.proto"; -import "google/ads/googleads/v2/enums/criterion_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "CampaignCriterionProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the Campaign Criterion resource. - -// A campaign criterion. -message CampaignCriterion { - option (google.api.resource) = { - type: "googleads.googleapis.com/CampaignCriterion" - pattern: "customers/{customer}/campaignCriteria/{campaign_criterion}" - }; - - // Immutable. The resource name of the campaign criterion. - // Campaign criterion resource names have the form: - // - // `customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignCriterion" - } - ]; - - // Immutable. The campaign to which the criterion belongs. - google.protobuf.StringValue campaign = 4 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Campaign" - } - ]; - - // Output only. The ID of the criterion. - // - // This field is ignored during mutate. - google.protobuf.Int64Value criterion_id = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The modifier for the bids when the criterion matches. The modifier must be - // in the range: 0.1 - 10.0. Most targetable criteria types support modifiers. - // Use 0 to opt out of a Device type. - google.protobuf.FloatValue bid_modifier = 14; - - // Immutable. Whether to target (`false`) or exclude (`true`) the criterion. - google.protobuf.BoolValue negative = 7 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. The type of the criterion. - google.ads.googleads.v2.enums.CriterionTypeEnum.CriterionType type = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The status of the criterion. - google.ads.googleads.v2.enums.CampaignCriterionStatusEnum.CampaignCriterionStatus status = 35; - - // The campaign criterion. - // - // Exactly one must be set. - oneof criterion { - // Immutable. Keyword. - google.ads.googleads.v2.common.KeywordInfo keyword = 8 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Placement. - google.ads.googleads.v2.common.PlacementInfo placement = 9 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Mobile app category. - google.ads.googleads.v2.common.MobileAppCategoryInfo mobile_app_category = 10 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Mobile application. - google.ads.googleads.v2.common.MobileApplicationInfo mobile_application = 11 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Location. - google.ads.googleads.v2.common.LocationInfo location = 12 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Device. - google.ads.googleads.v2.common.DeviceInfo device = 13 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Ad Schedule. - google.ads.googleads.v2.common.AdScheduleInfo ad_schedule = 15 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Age range. - google.ads.googleads.v2.common.AgeRangeInfo age_range = 16 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Gender. - google.ads.googleads.v2.common.GenderInfo gender = 17 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Income range. - google.ads.googleads.v2.common.IncomeRangeInfo income_range = 18 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Parental status. - google.ads.googleads.v2.common.ParentalStatusInfo parental_status = 19 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. User List. - google.ads.googleads.v2.common.UserListInfo user_list = 22 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. YouTube Video. - google.ads.googleads.v2.common.YouTubeVideoInfo youtube_video = 20 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. YouTube Channel. - google.ads.googleads.v2.common.YouTubeChannelInfo youtube_channel = 21 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Proximity. - google.ads.googleads.v2.common.ProximityInfo proximity = 23 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Topic. - google.ads.googleads.v2.common.TopicInfo topic = 24 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Listing scope. - google.ads.googleads.v2.common.ListingScopeInfo listing_scope = 25 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Language. - google.ads.googleads.v2.common.LanguageInfo language = 26 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. IpBlock. - google.ads.googleads.v2.common.IpBlockInfo ip_block = 27 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. ContentLabel. - google.ads.googleads.v2.common.ContentLabelInfo content_label = 28 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Carrier. - google.ads.googleads.v2.common.CarrierInfo carrier = 29 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. User Interest. - google.ads.googleads.v2.common.UserInterestInfo user_interest = 30 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Webpage. - google.ads.googleads.v2.common.WebpageInfo webpage = 31 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Operating system version. - google.ads.googleads.v2.common.OperatingSystemVersionInfo operating_system_version = 32 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Mobile Device. - google.ads.googleads.v2.common.MobileDeviceInfo mobile_device = 33 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Location Group - google.ads.googleads.v2.common.LocationGroupInfo location_group = 34 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Custom Affinity. - google.ads.googleads.v2.common.CustomAffinityInfo custom_affinity = 36 [(google.api.field_behavior) = IMMUTABLE]; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/campaign_criterion_simulation.proto b/third_party/googleapis/google/ads/googleads/v2/resources/campaign_criterion_simulation.proto deleted file mode 100644 index 293913297..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/campaign_criterion_simulation.proto +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/common/simulation.proto"; -import "google/ads/googleads/v2/enums/simulation_modification_method.proto"; -import "google/ads/googleads/v2/enums/simulation_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "CampaignCriterionSimulationProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the campaign criterion simulation resource. - -// A campaign criterion simulation. Supported combinations of advertising -// channel type, criterion ids, simulation type and simulation modification -// method is detailed below respectively. -// -// 1. SEARCH - 30000,30001,30002 - BID_MODIFIER - UNIFORM -// 2. SHOPPING - 30000,30001,30002 - BID_MODIFIER - UNIFORM -// 3. DISPLAY - 30001 - BID_MODIFIER - UNIFORM -message CampaignCriterionSimulation { - option (google.api.resource) = { - type: "googleads.googleapis.com/CampaignCriterionSimulation" - pattern: "customers/{customer}/campaignCriterionSimulations/{campaign_criterion_simulation}" - }; - - // Output only. The resource name of the campaign criterion simulation. - // Campaign criterion simulation resource names have the form: - // - // `customers/{customer_id}/campaignCriterionSimulations/{campaign_id}~{criterion_id}~{type}~{modification_method}~{start_date}~{end_date}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignCriterionSimulation" - } - ]; - - // Output only. Campaign ID of the simulation. - google.protobuf.Int64Value campaign_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Criterion ID of the simulation. - google.protobuf.Int64Value criterion_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The field that the simulation modifies. - google.ads.googleads.v2.enums.SimulationTypeEnum.SimulationType type = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. How the simulation modifies the field. - google.ads.googleads.v2.enums.SimulationModificationMethodEnum.SimulationModificationMethod modification_method = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. First day on which the simulation is based, in YYYY-MM-DD format. - google.protobuf.StringValue start_date = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Last day on which the simulation is based, in YYYY-MM-DD format. - google.protobuf.StringValue end_date = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // List of simulation points. - oneof point_list { - // Output only. Simulation points if the simulation type is BID_MODIFIER. - google.ads.googleads.v2.common.BidModifierSimulationPointList bid_modifier_point_list = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/campaign_draft.proto b/third_party/googleapis/google/ads/googleads/v2/resources/campaign_draft.proto deleted file mode 100644 index 673acb14f..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/campaign_draft.proto +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/enums/campaign_draft_status.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "CampaignDraftProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the Campaign Draft resource. - -// A campaign draft. -message CampaignDraft { - option (google.api.resource) = { - type: "googleads.googleapis.com/CampaignDraft" - pattern: "customers/{customer}/campaignDrafts/{campaign_draft}" - }; - - // Immutable. The resource name of the campaign draft. - // Campaign draft resource names have the form: - // - // `customers/{customer_id}/campaignDrafts/{base_campaign_id}~{draft_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignDraft" - } - ]; - - // Output only. The ID of the draft. - // - // This field is read-only. - google.protobuf.Int64Value draft_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. The base campaign to which the draft belongs. - google.protobuf.StringValue base_campaign = 3 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Campaign" - } - ]; - - // The name of the campaign draft. - // - // This field is required and should not be empty when creating new - // campaign drafts. - // - // It must not contain any null (code point 0x0), NL line feed - // (code point 0xA) or carriage return (code point 0xD) characters. - google.protobuf.StringValue name = 4; - - // Output only. Resource name of the Campaign that results from overlaying the draft - // changes onto the base campaign. - // - // This field is read-only. - google.protobuf.StringValue draft_campaign = 5 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Campaign" - } - ]; - - // Output only. The status of the campaign draft. This field is read-only. - // - // When a new campaign draft is added, the status defaults to PROPOSED. - google.ads.googleads.v2.enums.CampaignDraftStatusEnum.CampaignDraftStatus status = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Whether there is an experiment based on this draft currently serving. - google.protobuf.BoolValue has_experiment_running = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The resource name of the long-running operation that can be used to poll - // for completion of draft promotion. This is only set if the draft promotion - // is in progress or finished. - google.protobuf.StringValue long_running_operation = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/campaign_experiment.proto b/third_party/googleapis/google/ads/googleads/v2/resources/campaign_experiment.proto deleted file mode 100644 index 86f8ade12..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/campaign_experiment.proto +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/enums/campaign_experiment_status.proto"; -import "google/ads/googleads/v2/enums/campaign_experiment_traffic_split_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "CampaignExperimentProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the Campaign Experiment resource. - -// An A/B experiment that compares the performance of the base campaign -// (the control) and a variation of that campaign (the experiment). -message CampaignExperiment { - option (google.api.resource) = { - type: "googleads.googleapis.com/CampaignExperiment" - pattern: "customers/{customer}/campaignExperiments/{campaign_experiment}" - }; - - // Immutable. The resource name of the campaign experiment. - // Campaign experiment resource names have the form: - // - // `customers/{customer_id}/campaignExperiments/{campaign_experiment_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignExperiment" - } - ]; - - // Output only. The ID of the campaign experiment. - // - // This field is read-only. - google.protobuf.Int64Value id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. The campaign draft with staged changes to the base campaign. - google.protobuf.StringValue campaign_draft = 3 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignDraft" - } - ]; - - // The name of the campaign experiment. - // - // This field is required when creating new campaign experiments - // and must not conflict with the name of another non-removed - // campaign experiment or campaign. - // - // It must not contain any null (code point 0x0), NL line feed - // (code point 0xA) or carriage return (code point 0xD) characters. - google.protobuf.StringValue name = 4; - - // The description of the experiment. - google.protobuf.StringValue description = 5; - - // Immutable. Share of traffic directed to experiment as a percent (must be between 1 and - // 99 inclusive. Base campaign receives the remainder of the traffic - // (100 - traffic_split_percent). Required for create. - google.protobuf.Int64Value traffic_split_percent = 6 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Determines the behavior of the traffic split. - google.ads.googleads.v2.enums.CampaignExperimentTrafficSplitTypeEnum.CampaignExperimentTrafficSplitType traffic_split_type = 7 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. The experiment campaign, as opposed to the base campaign. - google.protobuf.StringValue experiment_campaign = 8 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Campaign" - } - ]; - - // Output only. The status of the campaign experiment. This field is read-only. - google.ads.googleads.v2.enums.CampaignExperimentStatusEnum.CampaignExperimentStatus status = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The resource name of the long-running operation that can be used to poll - // for completion of experiment create or promote. The most recent long - // running operation is returned. - google.protobuf.StringValue long_running_operation = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Date when the campaign experiment starts. By default, the experiment starts - // now or on the campaign's start date, whichever is later. If this field is - // set, then the experiment starts at the beginning of the specified date in - // the customer's time zone. Cannot be changed once the experiment starts. - // - // Format: YYYY-MM-DD - // Example: 2019-03-14 - google.protobuf.StringValue start_date = 11; - - // Date when the campaign experiment ends. By default, the experiment ends on - // the campaign's end date. If this field is set, then the experiment ends at - // the end of the specified date in the customer's time zone. - // - // Format: YYYY-MM-DD - // Example: 2019-04-18 - google.protobuf.StringValue end_date = 12; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/campaign_extension_setting.proto b/third_party/googleapis/google/ads/googleads/v2/resources/campaign_extension_setting.proto deleted file mode 100644 index 233d04b17..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/campaign_extension_setting.proto +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/enums/extension_setting_device.proto"; -import "google/ads/googleads/v2/enums/extension_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "CampaignExtensionSettingProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the CampaignExtensionSetting resource. - -// A campaign extension setting. -message CampaignExtensionSetting { - option (google.api.resource) = { - type: "googleads.googleapis.com/CampaignExtensionSetting" - pattern: "customers/{customer}/campaignExtensionSettings/{campaign_extension_setting}" - }; - - // Immutable. The resource name of the campaign extension setting. - // CampaignExtensionSetting resource names have the form: - // - // `customers/{customer_id}/campaignExtensionSettings/{campaign_id}~{extension_type}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignExtensionSetting" - } - ]; - - // Immutable. The extension type of the customer extension setting. - google.ads.googleads.v2.enums.ExtensionTypeEnum.ExtensionType extension_type = 2 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. The resource name of the campaign. The linked extension feed items will - // serve under this campaign. - // Campaign resource names have the form: - // - // `customers/{customer_id}/campaigns/{campaign_id}` - google.protobuf.StringValue campaign = 3 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Campaign" - } - ]; - - // The resource names of the extension feed items to serve under the campaign. - // ExtensionFeedItem resource names have the form: - // - // `customers/{customer_id}/extensionFeedItems/{feed_item_id}` - repeated google.protobuf.StringValue extension_feed_items = 4 [(google.api.resource_reference) = { - type: "googleads.googleapis.com/ExtensionFeedItem" - }]; - - // The device for which the extensions will serve. Optional. - google.ads.googleads.v2.enums.ExtensionSettingDeviceEnum.ExtensionSettingDevice device = 5; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/campaign_feed.proto b/third_party/googleapis/google/ads/googleads/v2/resources/campaign_feed.proto deleted file mode 100644 index 0f2d18c31..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/campaign_feed.proto +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/common/matching_function.proto"; -import "google/ads/googleads/v2/enums/feed_link_status.proto"; -import "google/ads/googleads/v2/enums/placeholder_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "CampaignFeedProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the CampaignFeed resource. - -// A campaign feed. -message CampaignFeed { - option (google.api.resource) = { - type: "googleads.googleapis.com/CampaignFeed" - pattern: "customers/{customer}/campaignFeeds/{campaign_feed}" - }; - - // Immutable. The resource name of the campaign feed. - // Campaign feed resource names have the form: - // - // `customers/{customer_id}/campaignFeeds/{campaign_id}~{feed_id} - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignFeed" - } - ]; - - // Immutable. The feed to which the CampaignFeed belongs. - google.protobuf.StringValue feed = 2 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Feed" - } - ]; - - // Immutable. The campaign to which the CampaignFeed belongs. - google.protobuf.StringValue campaign = 3 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Campaign" - } - ]; - - // Indicates which placeholder types the feed may populate under the connected - // campaign. Required. - repeated google.ads.googleads.v2.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. - // Required. - google.ads.googleads.v2.common.MatchingFunction matching_function = 5; - - // Output only. Status of the campaign feed. - // This field is read-only. - google.ads.googleads.v2.enums.FeedLinkStatusEnum.FeedLinkStatus status = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/campaign_label.proto b/third_party/googleapis/google/ads/googleads/v2/resources/campaign_label.proto deleted file mode 100644 index 0470ab466..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/campaign_label.proto +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "CampaignLabelProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the campaign label resource. - -// Represents a relationship between a campaign and a label. -message CampaignLabel { - option (google.api.resource) = { - type: "googleads.googleapis.com/CampaignLabel" - pattern: "customers/{customer}/campaignLabels/{campaign_label}" - }; - - // Immutable. Name of the resource. - // Campaign label resource names have the form: - // `customers/{customer_id}/campaignLabels/{campaign_id}~{label_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignLabel" - } - ]; - - // Immutable. The campaign to which the label is attached. - google.protobuf.StringValue campaign = 2 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Campaign" - } - ]; - - // Immutable. The label assigned to the campaign. - google.protobuf.StringValue label = 3 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Label" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/campaign_shared_set.proto b/third_party/googleapis/google/ads/googleads/v2/resources/campaign_shared_set.proto deleted file mode 100644 index 51e88b0bf..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/campaign_shared_set.proto +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/enums/campaign_shared_set_status.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "CampaignSharedSetProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the CampaignSharedSet resource. - -// CampaignSharedSets are used for managing the shared sets associated with a -// campaign. -message CampaignSharedSet { - option (google.api.resource) = { - type: "googleads.googleapis.com/CampaignSharedSet" - pattern: "customers/{customer}/campaignSharedSets/{campaign_shared_set}" - }; - - // Immutable. The resource name of the campaign shared set. - // Campaign shared set resource names have the form: - // - // `customers/{customer_id}/campaignSharedSets/{campaign_id}~{shared_set_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignSharedSet" - } - ]; - - // Immutable. The campaign to which the campaign shared set belongs. - google.protobuf.StringValue campaign = 3 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Campaign" - } - ]; - - // Immutable. The shared set associated with the campaign. This may be a negative keyword - // shared set of another customer. This customer should be a manager of the - // other customer, otherwise the campaign shared set will exist but have no - // serving effect. Only negative keyword shared sets can be associated with - // Shopping campaigns. Only negative placement shared sets can be associated - // with Display mobile app campaigns. - google.protobuf.StringValue shared_set = 4 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/SharedSet" - } - ]; - - // Output only. The status of this campaign shared set. Read only. - google.ads.googleads.v2.enums.CampaignSharedSetStatusEnum.CampaignSharedSetStatus status = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/carrier_constant.proto b/third_party/googleapis/google/ads/googleads/v2/resources/carrier_constant.proto deleted file mode 100644 index 44b0b6fc1..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/carrier_constant.proto +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "CarrierConstantProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the Carrier constant resource. - -// A carrier criterion that can be used in campaign targeting. -message CarrierConstant { - option (google.api.resource) = { - type: "googleads.googleapis.com/CarrierConstant" - pattern: "carrierConstants/{carrier_constant}" - }; - - // Output only. The resource name of the carrier criterion. - // Carrier criterion resource names have the form: - // - // `carrierConstants/{criterion_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CarrierConstant" - } - ]; - - // Output only. The ID of the carrier criterion. - google.protobuf.Int64Value id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The full name of the carrier in English. - google.protobuf.StringValue name = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The country code of the country where the carrier is located, e.g., "AR", - // "FR", etc. - google.protobuf.StringValue country_code = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/change_status.proto b/third_party/googleapis/google/ads/googleads/v2/resources/change_status.proto deleted file mode 100644 index c0f65bf01..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/change_status.proto +++ /dev/null @@ -1,145 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/enums/change_status_operation.proto"; -import "google/ads/googleads/v2/enums/change_status_resource_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "ChangeStatusProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the Change Status resource. - -// Describes the status of returned resource. -message ChangeStatus { - option (google.api.resource) = { - type: "googleads.googleapis.com/ChangeStatus" - pattern: "customers/{customer}/changeStatus/{change_status}" - }; - - // Output only. The resource name of the change status. - // Change status resource names have the form: - // - // `customers/{customer_id}/changeStatus/{change_status_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/ChangeStatus" - } - ]; - - // Output only. Time at which the most recent change has occurred on this resource. - google.protobuf.StringValue last_change_date_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. 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.v2.enums.ChangeStatusResourceTypeEnum.ChangeStatusResourceType resource_type = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The Campaign affected by this change. - google.protobuf.StringValue campaign = 5 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Campaign" - } - ]; - - // Output only. The AdGroup affected by this change. - google.protobuf.StringValue ad_group = 6 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroup" - } - ]; - - // Output only. Represents the status of the changed resource. - google.ads.googleads.v2.enums.ChangeStatusOperationEnum.ChangeStatusOperation resource_status = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The AdGroupAd affected by this change. - google.protobuf.StringValue ad_group_ad = 9 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupAd" - } - ]; - - // Output only. The AdGroupCriterion affected by this change. - google.protobuf.StringValue ad_group_criterion = 10 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupCriterion" - } - ]; - - // Output only. The CampaignCriterion affected by this change. - google.protobuf.StringValue campaign_criterion = 11 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignCriterion" - } - ]; - - // Output only. The Feed affected by this change. - google.protobuf.StringValue feed = 12 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Feed" - } - ]; - - // Output only. The FeedItem affected by this change. - google.protobuf.StringValue feed_item = 13 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/FeedItem" - } - ]; - - // Output only. The AdGroupFeed affected by this change. - google.protobuf.StringValue ad_group_feed = 14 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupFeed" - } - ]; - - // Output only. The CampaignFeed affected by this change. - google.protobuf.StringValue campaign_feed = 15 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignFeed" - } - ]; - - // Output only. The AdGroupBidModifier affected by this change. - google.protobuf.StringValue ad_group_bid_modifier = 16 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupBidModifier" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/click_view.proto b/third_party/googleapis/google/ads/googleads/v2/resources/click_view.proto deleted file mode 100644 index ee9a6ed45..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/click_view.proto +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/common/click_location.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "ClickViewProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the ClickView resource. - -// A click view with metrics aggregated at each click level, including both -// valid and invalid clicks. For non-Search campaigns, metrics.clicks -// represents the number of valid and invalid interactions. -// Queries including ClickView must have a filter limiting the results to one -// day and can be requested for dates back to 90 days before the time of the -// request. -message ClickView { - option (google.api.resource) = { - type: "googleads.googleapis.com/ClickView" - pattern: "customers/{customer}/clickViews/{click_view}" - }; - - // Output only. The resource name of the click view. - // Click view resource names have the form: - // - // `customers/{customer_id}/clickViews/{date (yyyy-MM-dd)}~{gclid}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/ClickView" - } - ]; - - // Output only. The Google Click ID. - google.protobuf.StringValue gclid = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The location criteria matching the area of interest associated with the - // impression. - google.ads.googleads.v2.common.ClickLocation area_of_interest = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The location criteria matching the location of presence associated with the - // impression. - google.ads.googleads.v2.common.ClickLocation location_of_presence = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Page number in search results where the ad was shown. - google.protobuf.Int64Value page_number = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The associated ad. - google.protobuf.StringValue ad_group_ad = 7 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupAd" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/conversion_action.proto b/third_party/googleapis/google/ads/googleads/v2/resources/conversion_action.proto deleted file mode 100644 index ab0093dae..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/conversion_action.proto +++ /dev/null @@ -1,144 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/common/tag_snippet.proto"; -import "google/ads/googleads/v2/enums/attribution_model.proto"; -import "google/ads/googleads/v2/enums/conversion_action_category.proto"; -import "google/ads/googleads/v2/enums/conversion_action_counting_type.proto"; -import "google/ads/googleads/v2/enums/conversion_action_status.proto"; -import "google/ads/googleads/v2/enums/conversion_action_type.proto"; -import "google/ads/googleads/v2/enums/data_driven_model_status.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "ConversionActionProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the Conversion Action resource. - -// A conversion action. -message ConversionAction { - option (google.api.resource) = { - type: "googleads.googleapis.com/ConversionAction" - pattern: "customers/{customer}/conversionActions/{conversion_action}" - }; - - // Settings related to this conversion action's attribution model. - message AttributionModelSettings { - // The attribution model type of this conversion action. - google.ads.googleads.v2.enums.AttributionModelEnum.AttributionModel attribution_model = 1; - - // Output only. The status of the data-driven attribution model for the conversion - // action. - google.ads.googleads.v2.enums.DataDrivenModelStatusEnum.DataDrivenModelStatus data_driven_model_status = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // Settings related to the value for conversion events associated with this - // conversion action. - message ValueSettings { - // The value to use when conversion events for this conversion action are - // sent with an invalid, disallowed or missing value, or when - // this conversion action is configured to always use the default value. - google.protobuf.DoubleValue default_value = 1; - - // The currency code to use when conversion events for this conversion - // action are sent with an invalid or missing currency code, or when this - // conversion action is configured to always use the default value. - google.protobuf.StringValue default_currency_code = 2; - - // Controls whether the default value and default currency code are used in - // place of the value and currency code specified in conversion events for - // this conversion action. - google.protobuf.BoolValue always_use_default_value = 3; - } - - // Immutable. The resource name of the conversion action. - // Conversion action resource names have the form: - // - // `customers/{customer_id}/conversionActions/{conversion_action_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/ConversionAction" - } - ]; - - // Output only. The ID of the conversion action. - google.protobuf.Int64Value id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The name of the conversion action. - // - // This field is required and should not be empty when creating new - // conversion actions. - google.protobuf.StringValue name = 3; - - // The status of this conversion action for conversion event accrual. - google.ads.googleads.v2.enums.ConversionActionStatusEnum.ConversionActionStatus status = 4; - - // Immutable. The type of this conversion action. - google.ads.googleads.v2.enums.ConversionActionTypeEnum.ConversionActionType type = 5 [(google.api.field_behavior) = IMMUTABLE]; - - // The category of conversions reported for this conversion action. - google.ads.googleads.v2.enums.ConversionActionCategoryEnum.ConversionActionCategory category = 6; - - // Output only. The resource name of the conversion action owner customer, or null if this - // is a system-defined conversion action. - google.protobuf.StringValue owner_customer = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Whether this conversion action should be included in the "conversions" - // metric. - google.protobuf.BoolValue include_in_conversions_metric = 8; - - // The maximum number of days that may elapse between an interaction - // (e.g., a click) and a conversion event. - google.protobuf.Int64Value click_through_lookback_window_days = 9; - - // The maximum number of days which may elapse between an impression and a - // conversion without an interaction. - google.protobuf.Int64Value view_through_lookback_window_days = 10; - - // Settings related to the value for conversion events associated with this - // conversion action. - ValueSettings value_settings = 11; - - // How to count conversion events for the conversion action. - google.ads.googleads.v2.enums.ConversionActionCountingTypeEnum.ConversionActionCountingType counting_type = 12; - - // Settings related to this conversion action's attribution model. - AttributionModelSettings attribution_model_settings = 13; - - // Output only. The snippets used for tracking conversions. - repeated google.ads.googleads.v2.common.TagSnippet tag_snippets = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The phone call duration in seconds after which a conversion should be - // reported for this conversion action. - // - // The value must be between 0 and 10000, inclusive. - google.protobuf.Int64Value phone_call_duration_seconds = 15; - - // App ID for an app conversion action. - google.protobuf.StringValue app_id = 16; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/custom_interest.proto b/third_party/googleapis/google/ads/googleads/v2/resources/custom_interest.proto deleted file mode 100644 index 7c0fbba50..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/custom_interest.proto +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/enums/custom_interest_member_type.proto"; -import "google/ads/googleads/v2/enums/custom_interest_status.proto"; -import "google/ads/googleads/v2/enums/custom_interest_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "CustomInterestProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the Custom Interest resource. - -// A custom interest. This is a list of users by interest. -message CustomInterest { - option (google.api.resource) = { - type: "googleads.googleapis.com/CustomInterest" - pattern: "customers/{customer}/customInterests/{custom_interest}" - }; - - // Immutable. The resource name of the custom interest. - // Custom interest resource names have the form: - // - // `customers/{customer_id}/customInterests/{custom_interest_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CustomInterest" - } - ]; - - // Output only. Id of the custom interest. - google.protobuf.Int64Value id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Status of this custom interest. Indicates whether the custom interest is - // enabled or removed. - google.ads.googleads.v2.enums.CustomInterestStatusEnum.CustomInterestStatus status = 3; - - // Name of the custom interest. It should be unique across the same custom - // affinity audience. - // This field is required for create operations. - google.protobuf.StringValue name = 4; - - // Type of the custom interest, CUSTOM_AFFINITY or CUSTOM_INTENT. - // By default the type is set to CUSTOM_AFFINITY. - google.ads.googleads.v2.enums.CustomInterestTypeEnum.CustomInterestType type = 5; - - // Description of this custom interest audience. - google.protobuf.StringValue description = 6; - - // List of custom interest members that this custom interest is composed of. - // Members can be added during CustomInterest creation. If members are - // presented in UPDATE operation, existing members will be overridden. - repeated CustomInterestMember members = 7; -} - -// A member of custom interest audience. A member can be a keyword or url. -// 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.v2.enums.CustomInterestMemberTypeEnum.CustomInterestMemberType member_type = 1; - - // Keyword text when member_type is KEYWORD or URL string when - // member_type is URL. - google.protobuf.StringValue parameter = 2; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/customer.proto b/third_party/googleapis/google/ads/googleads/v2/resources/customer.proto deleted file mode 100644 index b0112db16..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/customer.proto +++ /dev/null @@ -1,138 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/enums/customer_pay_per_conversion_eligibility_failure_reason.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "CustomerProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the Customer resource. - -// A customer. -message Customer { - option (google.api.resource) = { - type: "googleads.googleapis.com/Customer" - pattern: "customers/{customer}" - }; - - // Immutable. The resource name of the customer. - // Customer resource names have the form: - // - // `customers/{customer_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Customer" - } - ]; - - // Output only. The ID of the customer. - google.protobuf.Int64Value id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Optional, non-unique descriptive name of the customer. - google.protobuf.StringValue descriptive_name = 4; - - // Immutable. The currency in which the account operates. - // A subset of the currency codes from the ISO 4217 standard is - // supported. - google.protobuf.StringValue currency_code = 5 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. The local timezone ID of the customer. - google.protobuf.StringValue time_zone = 6 [(google.api.field_behavior) = IMMUTABLE]; - - // The URL template for constructing a tracking URL out of parameters. - google.protobuf.StringValue tracking_url_template = 7; - - // The URL template for appending params to the final URL - google.protobuf.StringValue final_url_suffix = 11; - - // Whether auto-tagging is enabled for the customer. - google.protobuf.BoolValue auto_tagging_enabled = 8; - - // Output only. Whether the Customer has a Partners program badge. If the Customer is not - // associated with the Partners program, this will be false. For more - // information, see https://support.google.com/partners/answer/3125774. - google.protobuf.BoolValue has_partners_badge = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Whether the customer is a manager. - google.protobuf.BoolValue manager = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Whether the customer is a test account. - google.protobuf.BoolValue test_account = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Call reporting setting for a customer. - CallReportingSetting call_reporting_setting = 10; - - // Output only. Conversion tracking setting for a customer. - ConversionTrackingSetting conversion_tracking_setting = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Remarketing setting for a customer. - RemarketingSetting remarketing_setting = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. 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.v2.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason pay_per_conversion_eligibility_failure_reasons = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Call reporting setting for a customer. -message CallReportingSetting { - // Enable reporting of phone call events by redirecting them via Google - // System. - google.protobuf.BoolValue call_reporting_enabled = 1; - - // Whether to enable call conversion reporting. - google.protobuf.BoolValue call_conversion_reporting_enabled = 2; - - // Customer-level call conversion action to attribute a call conversion to. - // If not set a default conversion action is used. Only in effect when - // call_conversion_reporting_enabled is set to true. - google.protobuf.StringValue call_conversion_action = 9 [(google.api.resource_reference) = { - type: "googleads.googleapis.com/ConversionAction" - }]; -} - -// A collection of customer-wide settings related to Google Ads Conversion -// Tracking. -message ConversionTrackingSetting { - // Output only. The conversion tracking id used for this account. This id is automatically - // assigned after any conversion tracking feature is used. If the customer - // doesn't use conversion tracking, this is 0. This field is read-only. - google.protobuf.Int64Value conversion_tracking_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The conversion tracking id of the customer's manager. This is set when the - // customer is opted into cross account conversion tracking, and it overrides - // conversion_tracking_id. This field can only be managed through the Google - // Ads UI. This field is read-only. - google.protobuf.Int64Value cross_account_conversion_tracking_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Remarketing setting for a customer. -message RemarketingSetting { - // Output only. The Google global site tag. - google.protobuf.StringValue google_global_site_tag = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/customer_client.proto b/third_party/googleapis/google/ads/googleads/v2/resources/customer_client.proto deleted file mode 100644 index 9da1049fd..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/customer_client.proto +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "CustomerClientProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the CustomerClient resource. - -// A link between the given customer and a client customer. CustomerClients only -// exist for manager customers. All direct and indirect client customers are -// included, as well as the manager itself. -message CustomerClient { - option (google.api.resource) = { - type: "googleads.googleapis.com/CustomerClient" - pattern: "customers/{customer}/customerClients/{customer_client}" - }; - - // Output only. The resource name of the customer client. - // CustomerClient resource names have the form: - // `customers/{customer_id}/customerClients/{client_customer_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CustomerClient" - } - ]; - - // Output only. The resource name of the client-customer which is linked to - // the given customer. Read only. - google.protobuf.StringValue client_customer = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Specifies whether this is a - // [hidden account](https://support.google.com/google-ads/answer/7519830). - // Read only. - google.protobuf.BoolValue hidden = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Distance between given customer and client. For self link, the level value - // will be 0. Read only. - google.protobuf.Int64Value level = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Common Locale Data Repository (CLDR) string representation of the - // time zone of the client, e.g. America/Los_Angeles. Read only. - google.protobuf.StringValue time_zone = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Identifies if the client is a test account. Read only. - google.protobuf.BoolValue test_account = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Identifies if the client is a manager. Read only. - google.protobuf.BoolValue manager = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Descriptive name for the client. Read only. - google.protobuf.StringValue descriptive_name = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Currency code (e.g. 'USD', 'EUR') for the client. Read only. - google.protobuf.StringValue currency_code = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The ID of the client customer. Read only. - google.protobuf.Int64Value id = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/customer_client_link.proto b/third_party/googleapis/google/ads/googleads/v2/resources/customer_client_link.proto deleted file mode 100644 index 353ec225d..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/customer_client_link.proto +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/enums/manager_link_status.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "CustomerClientLinkProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the CustomerClientLink resource. - -// Represents customer client link relationship. -message CustomerClientLink { - option (google.api.resource) = { - type: "googleads.googleapis.com/CustomerClientLink" - pattern: "customers/{customer}/customerClientLinks/{customer_client_link}" - }; - - // Immutable. Name of the resource. - // CustomerClientLink resource names have the form: - // `customers/{customer_id}/customerClientLinks/{client_customer_id}~{manager_link_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CustomerClientLink" - } - ]; - - // Immutable. The client customer linked to this customer. - google.protobuf.StringValue client_customer = 3 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. This is uniquely identifies a customer client link. Read only. - google.protobuf.Int64Value manager_link_id = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // This is the status of the link between client and manager. - google.ads.googleads.v2.enums.ManagerLinkStatusEnum.ManagerLinkStatus status = 5; - - // The visibility of the link. Users can choose whether or not to see hidden - // links in the Google Ads UI. - // Default value is false - google.protobuf.BoolValue hidden = 6; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/customer_extension_setting.proto b/third_party/googleapis/google/ads/googleads/v2/resources/customer_extension_setting.proto deleted file mode 100644 index e2e9fba83..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/customer_extension_setting.proto +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/enums/extension_setting_device.proto"; -import "google/ads/googleads/v2/enums/extension_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "CustomerExtensionSettingProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the CustomerExtensionSetting resource. - -// A customer extension setting. -message CustomerExtensionSetting { - option (google.api.resource) = { - type: "googleads.googleapis.com/CustomerExtensionSetting" - pattern: "customers/{customer}/customerExtensionSettings/{customer_extension_setting}" - }; - - // Immutable. The resource name of the customer extension setting. - // CustomerExtensionSetting resource names have the form: - // - // `customers/{customer_id}/customerExtensionSettings/{extension_type}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CustomerExtensionSetting" - } - ]; - - // Immutable. The extension type of the customer extension setting. - google.ads.googleads.v2.enums.ExtensionTypeEnum.ExtensionType extension_type = 2 [(google.api.field_behavior) = IMMUTABLE]; - - // The resource names of the extension feed items to serve under the customer. - // ExtensionFeedItem resource names have the form: - // - // `customers/{customer_id}/extensionFeedItems/{feed_item_id}` - repeated google.protobuf.StringValue extension_feed_items = 3 [(google.api.resource_reference) = { - type: "googleads.googleapis.com/ExtensionFeedItem" - }]; - - // The device for which the extensions will serve. Optional. - google.ads.googleads.v2.enums.ExtensionSettingDeviceEnum.ExtensionSettingDevice device = 4; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/customer_feed.proto b/third_party/googleapis/google/ads/googleads/v2/resources/customer_feed.proto deleted file mode 100644 index 1abdc9ab4..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/customer_feed.proto +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/common/matching_function.proto"; -import "google/ads/googleads/v2/enums/feed_link_status.proto"; -import "google/ads/googleads/v2/enums/placeholder_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "CustomerFeedProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the CustomerFeed resource. - -// A customer feed. -message CustomerFeed { - option (google.api.resource) = { - type: "googleads.googleapis.com/CustomerFeed" - pattern: "customers/{customer}/customerFeeds/{customer_feed}" - }; - - // Immutable. The resource name of the customer feed. - // Customer feed resource names have the form: - // - // `customers/{customer_id}/customerFeeds/{feed_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CustomerFeed" - } - ]; - - // Immutable. The feed being linked to the customer. - google.protobuf.StringValue feed = 2 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Feed" - } - ]; - - // Indicates which placeholder types the feed may populate under the connected - // customer. Required. - repeated google.ads.googleads.v2.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. - // Required. - google.ads.googleads.v2.common.MatchingFunction matching_function = 4; - - // Output only. Status of the customer feed. - // This field is read-only. - google.ads.googleads.v2.enums.FeedLinkStatusEnum.FeedLinkStatus status = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/customer_label.proto b/third_party/googleapis/google/ads/googleads/v2/resources/customer_label.proto deleted file mode 100644 index 640b36823..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/customer_label.proto +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "CustomerLabelProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the customer label resource. - -// Represents a relationship between a customer and a label. This customer may -// not have access to all the labels attached to it. Additional CustomerLabels -// may be returned by increasing permissions with login-customer-id. -message CustomerLabel { - option (google.api.resource) = { - type: "googleads.googleapis.com/CustomerLabel" - pattern: "customers/{customer}/customerLabels/{customer_label}" - }; - - // Immutable. Name of the resource. - // Customer label resource names have the form: - // `customers/{customer_id}/customerLabels/{label_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CustomerLabel" - } - ]; - - // Output only. The resource name of the customer to which the label is attached. - // Read only. - google.protobuf.StringValue customer = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The resource name of the label assigned to the customer. - // - // Note: the Customer ID portion of the label resource name is not - // validated when creating a new CustomerLabel. - google.protobuf.StringValue label = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/customer_manager_link.proto b/third_party/googleapis/google/ads/googleads/v2/resources/customer_manager_link.proto deleted file mode 100644 index 5485407cc..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/customer_manager_link.proto +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/enums/manager_link_status.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "CustomerManagerLinkProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the CustomerManagerLink resource. - -// Represents customer-manager link relationship. -message CustomerManagerLink { - option (google.api.resource) = { - type: "googleads.googleapis.com/CustomerManagerLink" - pattern: "customers/{customer}/customerManagerLinks/{customer_manager_link}" - }; - - // Immutable. Name of the resource. - // CustomerManagerLink resource names have the form: - // `customers/{customer_id}/customerManagerLinks/{manager_customer_id}~{manager_link_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CustomerManagerLink" - } - ]; - - // Output only. The manager customer linked to the customer. - google.protobuf.StringValue manager_customer = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. ID of the customer-manager link. This field is read only. - google.protobuf.Int64Value manager_link_id = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Status of the link between the customer and the manager. - google.ads.googleads.v2.enums.ManagerLinkStatusEnum.ManagerLinkStatus status = 5; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/customer_negative_criterion.proto b/third_party/googleapis/google/ads/googleads/v2/resources/customer_negative_criterion.proto deleted file mode 100644 index f8f13997d..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/customer_negative_criterion.proto +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/common/criteria.proto"; -import "google/ads/googleads/v2/enums/criterion_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "CustomerNegativeCriterionProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the Customer Negative Criterion resource. - -// A negative criterion for exclusions at the customer level. -message CustomerNegativeCriterion { - option (google.api.resource) = { - type: "googleads.googleapis.com/CustomerNegativeCriterion" - pattern: "customers/{customer}/customerNegativeCriteria/{customer_negative_criterion}" - }; - - // Immutable. The resource name of the customer negative criterion. - // Customer negative criterion resource names have the form: - // - // `customers/{customer_id}/customerNegativeCriteria/{criterion_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CustomerNegativeCriterion" - } - ]; - - // Output only. The ID of the criterion. - google.protobuf.Int64Value id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The type of the criterion. - google.ads.googleads.v2.enums.CriterionTypeEnum.CriterionType type = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The customer negative criterion. - // - // Exactly one must be set. - oneof criterion { - // Immutable. ContentLabel. - google.ads.googleads.v2.common.ContentLabelInfo content_label = 4 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. MobileApplication. - google.ads.googleads.v2.common.MobileApplicationInfo mobile_application = 5 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. MobileAppCategory. - google.ads.googleads.v2.common.MobileAppCategoryInfo mobile_app_category = 6 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Placement. - google.ads.googleads.v2.common.PlacementInfo placement = 7 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. YouTube Video. - google.ads.googleads.v2.common.YouTubeVideoInfo youtube_video = 8 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. YouTube Channel. - google.ads.googleads.v2.common.YouTubeChannelInfo youtube_channel = 9 [(google.api.field_behavior) = IMMUTABLE]; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/detail_placement_view.proto b/third_party/googleapis/google/ads/googleads/v2/resources/detail_placement_view.proto deleted file mode 100644 index c276b3051..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/detail_placement_view.proto +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/enums/placement_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "DetailPlacementViewProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the detail placement view resource. - -// A view with metrics aggregated by ad group and URL or YouTube video. -message DetailPlacementView { - option (google.api.resource) = { - type: "googleads.googleapis.com/DetailPlacementView" - pattern: "customers/{customer}/detailPlacementViews/{detail_placement_view}" - }; - - // Output only. The resource name of the detail placement view. - // Detail placement view resource names have the form: - // - // `customers/{customer_id}/detailPlacementViews/{ad_group_id}~{base64_placement}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/DetailPlacementView" - } - ]; - - // Output only. The automatic placement string at detail level, e. g. website URL, mobile - // application ID, or a YouTube video ID. - google.protobuf.StringValue placement = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The display name is URL name for websites, YouTube video name for YouTube - // videos, and translated mobile app name for mobile apps. - google.protobuf.StringValue display_name = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. URL of the group placement, e.g. domain, link to the mobile application in - // app store, or a YouTube channel URL. - google.protobuf.StringValue group_placement_target_url = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. URL of the placement, e.g. website, link to the mobile application in app - // store, or a YouTube video URL. - google.protobuf.StringValue target_url = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Type of the placement, e.g. Website, YouTube Video, and Mobile Application. - google.ads.googleads.v2.enums.PlacementTypeEnum.PlacementType placement_type = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/display_keyword_view.proto b/third_party/googleapis/google/ads/googleads/v2/resources/display_keyword_view.proto deleted file mode 100644 index 2f600abc8..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/display_keyword_view.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "DisplayKeywordViewProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the display keyword view resource. - -// A display keyword view. -message DisplayKeywordView { - option (google.api.resource) = { - type: "googleads.googleapis.com/DisplayKeywordView" - pattern: "customers/{customer}/displayKeywordViews/{display_keyword_view}" - }; - - // Output only. The resource name of the display keyword view. - // Display Keyword view resource names have the form: - // - // `customers/{customer_id}/displayKeywordViews/{ad_group_id}~{criterion_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/DisplayKeywordView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/distance_view.proto b/third_party/googleapis/google/ads/googleads/v2/resources/distance_view.proto deleted file mode 100644 index 044d10efa..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/distance_view.proto +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/enums/distance_bucket.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "DistanceViewProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the DistanceView resource. - -// A distance view with metrics aggregated by the user's distance from an -// advertiser's location extensions. Each DistanceBucket includes all -// impressions that fall within its distance and a single impression will -// contribute to the metrics for all DistanceBuckets that include the user's -// distance. -message DistanceView { - option (google.api.resource) = { - type: "googleads.googleapis.com/DistanceView" - pattern: "customers/{customer}/distanceViews/{distance_view}" - }; - - // Output only. The resource name of the distance view. - // Distance view resource names have the form: - // - // `customers/{customer_id}/distanceViews/1~{distance_bucket}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/DistanceView" - } - ]; - - // Output only. Grouping of user distance from location extensions. - google.ads.googleads.v2.enums.DistanceBucketEnum.DistanceBucket distance_bucket = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. True if the DistanceBucket is using the metric system, false otherwise. - google.protobuf.BoolValue metric_system = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/domain_category.proto b/third_party/googleapis/google/ads/googleads/v2/resources/domain_category.proto deleted file mode 100644 index a9b563e9a..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/domain_category.proto +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "DomainCategoryProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the Domain Category resource. - -// A category generated automatically by crawling a domain. If a campaign uses -// the DynamicSearchAdsSetting, then domain categories will be generated for -// the domain. The categories can be targeted using WebpageConditionInfo. -// See: https://support.google.com/google-ads/answer/2471185 -message DomainCategory { - option (google.api.resource) = { - type: "googleads.googleapis.com/DomainCategory" - pattern: "customers/{customer}/domainCategories/{domain_category}" - }; - - // Output only. The resource name of the domain category. - // Domain category resource names have the form: - // - // `customers/{customer_id}/domainCategories/{campaign_id}~{category_base64}~{language_code}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/DomainCategory" - } - ]; - - // Output only. The campaign this category is recommended for. - google.protobuf.StringValue campaign = 2 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Campaign" - } - ]; - - // Output only. Recommended category for the website domain. e.g. if you have a website - // about electronics, the categories could be "cameras", "televisions", etc. - google.protobuf.StringValue category = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The language code specifying the language of the website. e.g. "en" for - // English. The language can be specified in the DynamicSearchAdsSetting - // required for dynamic search ads. This is the language of the pages from - // your website that you want Google Ads to find, create ads for, - // and match searches with. - google.protobuf.StringValue language_code = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The domain for the website. The domain can be specified in the - // DynamicSearchAdsSetting required for dynamic search ads. - google.protobuf.StringValue domain = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Fraction of pages on your site that this category matches. - google.protobuf.DoubleValue coverage_fraction = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The position of this category in the set of categories. Lower numbers - // indicate a better match for the domain. null indicates not recommended. - google.protobuf.Int64Value category_rank = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Indicates whether this category has sub-categories. - google.protobuf.BoolValue has_children = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The recommended cost per click for the category. - google.protobuf.Int64Value recommended_cpc_bid_micros = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/dynamic_search_ads_search_term_view.proto b/third_party/googleapis/google/ads/googleads/v2/resources/dynamic_search_ads_search_term_view.proto deleted file mode 100644 index 402e883dc..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/dynamic_search_ads_search_term_view.proto +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "DynamicSearchAdsSearchTermViewProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the Dynamic Search Ads Search Term View resource. - -// A dynamic search ads search term view. -message DynamicSearchAdsSearchTermView { - option (google.api.resource) = { - type: "googleads.googleapis.com/DynamicSearchAdsSearchTermView" - pattern: "customers/{customer}/dynamicSearchAdsSearchTermViews/{dynamic_search_ads_search_term_view}" - }; - - // Output only. The resource name of the dynamic search ads search term view. - // Dynamic search ads search term view resource names have the form: - // - // `customers/{customer_id}/dynamicSearchAdsSearchTermViews/{ad_group_id}~{search_term_fp}~{headline_fp}~{landing_page_fp}~{page_url_fp}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/DynamicSearchAdsSearchTermView" - } - ]; - - // Output only. Search term - // - // This field is read-only. - google.protobuf.StringValue search_term = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The dynamically generated headline of the Dynamic Search Ad. - // - // This field is read-only. - google.protobuf.StringValue headline = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The dynamically selected landing page URL of the impression. - // - // This field is read-only. - google.protobuf.StringValue landing_page = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The URL of page feed item served for the impression. - // - // This field is read-only. - google.protobuf.StringValue page_url = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/expanded_landing_page_view.proto b/third_party/googleapis/google/ads/googleads/v2/resources/expanded_landing_page_view.proto deleted file mode 100644 index 0e05b2f7d..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/expanded_landing_page_view.proto +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "ExpandedLandingPageViewProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the expanded landing page view resource. - -// A landing page view with metrics aggregated at the expanded final URL -// level. -message ExpandedLandingPageView { - option (google.api.resource) = { - type: "googleads.googleapis.com/ExpandedLandingPageView" - pattern: "customers/{customer}/expandedLandingPageViews/{expanded_landing_page_view}" - }; - - // Output only. The resource name of the expanded landing page view. - // Expanded landing page view resource names have the form: - // - // `customers/{customer_id}/expandedLandingPageViews/{expanded_final_url_fingerprint}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/ExpandedLandingPageView" - } - ]; - - // Output only. The final URL that clicks are directed to. - google.protobuf.StringValue expanded_final_url = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/extension_feed_item.proto b/third_party/googleapis/google/ads/googleads/v2/resources/extension_feed_item.proto deleted file mode 100644 index 52f36ab6f..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/extension_feed_item.proto +++ /dev/null @@ -1,149 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/common/criteria.proto"; -import "google/ads/googleads/v2/common/extensions.proto"; -import "google/ads/googleads/v2/enums/extension_type.proto"; -import "google/ads/googleads/v2/enums/feed_item_status.proto"; -import "google/ads/googleads/v2/enums/feed_item_target_device.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "ExtensionFeedItemProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the ExtensionFeedItem resource. - -// An extension feed item. -message ExtensionFeedItem { - option (google.api.resource) = { - type: "googleads.googleapis.com/ExtensionFeedItem" - pattern: "customers/{customer}/extensionFeedItems/{extension_feed_item}" - }; - - // Immutable. The resource name of the extension feed item. - // Extension feed item resource names have the form: - // - // `customers/{customer_id}/extensionFeedItems/{feed_item_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/ExtensionFeedItem" - } - ]; - - // Output only. The ID of this feed item. Read-only. - google.protobuf.Int64Value id = 24 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The extension type of the extension feed item. - // This field is read-only. - google.ads.googleads.v2.enums.ExtensionTypeEnum.ExtensionType extension_type = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Start time in which this feed item is effective and can begin serving. The - // time is in the customer's time zone. - // The format is "YYYY-MM-DD HH:MM:SS". - // Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30" - google.protobuf.StringValue start_date_time = 5; - - // End time in which this feed item is no longer effective and will stop - // serving. The time is in the customer's time zone. - // The format is "YYYY-MM-DD HH:MM:SS". - // Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30" - google.protobuf.StringValue end_date_time = 6; - - // List of non-overlapping schedules specifying all time intervals - // for which the feed item may serve. There can be a maximum of 6 schedules - // per day. - repeated google.ads.googleads.v2.common.AdScheduleInfo ad_schedules = 16; - - // The targeted device. - google.ads.googleads.v2.enums.FeedItemTargetDeviceEnum.FeedItemTargetDevice device = 17; - - // The targeted geo target constant. - google.protobuf.StringValue targeted_geo_target_constant = 20 [(google.api.resource_reference) = { - type: "googleads.googleapis.com/GeoTargetConstant" - }]; - - // The targeted keyword. - google.ads.googleads.v2.common.KeywordInfo targeted_keyword = 22; - - // Output only. Status of the feed item. - // This field is read-only. - google.ads.googleads.v2.enums.FeedItemStatusEnum.FeedItemStatus status = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Extension type. - oneof extension { - // Sitelink extension. - google.ads.googleads.v2.common.SitelinkFeedItem sitelink_feed_item = 2; - - // Structured snippet extension. - google.ads.googleads.v2.common.StructuredSnippetFeedItem structured_snippet_feed_item = 3; - - // App extension. - google.ads.googleads.v2.common.AppFeedItem app_feed_item = 7; - - // Call extension. - google.ads.googleads.v2.common.CallFeedItem call_feed_item = 8; - - // Callout extension. - google.ads.googleads.v2.common.CalloutFeedItem callout_feed_item = 9; - - // Text message extension. - google.ads.googleads.v2.common.TextMessageFeedItem text_message_feed_item = 10; - - // Price extension. - google.ads.googleads.v2.common.PriceFeedItem price_feed_item = 11; - - // Promotion extension. - google.ads.googleads.v2.common.PromotionFeedItem promotion_feed_item = 12; - - // Output only. Location extension. Locations are synced from a GMB account into a feed. - // This field is read-only. - google.ads.googleads.v2.common.LocationFeedItem location_feed_item = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Affiliate location extension. Feed locations are populated by Google Ads - // based on a chain ID. - // This field is read-only. - google.ads.googleads.v2.common.AffiliateLocationFeedItem affiliate_location_feed_item = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Hotel Callout extension. - google.ads.googleads.v2.common.HotelCalloutFeedItem hotel_callout_feed_item = 23; - } - - // Targeting at either the campaign or ad group level. Feed items that target - // a campaign or ad group will only serve with that resource. - oneof serving_resource_targeting { - // The targeted campaign. - google.protobuf.StringValue targeted_campaign = 18 [(google.api.resource_reference) = { - type: "googleads.googleapis.com/Campaign" - }]; - - // The targeted ad group. - google.protobuf.StringValue targeted_ad_group = 19 [(google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroup" - }]; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/feed.proto b/third_party/googleapis/google/ads/googleads/v2/resources/feed.proto deleted file mode 100644 index bc1a002e4..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/feed.proto +++ /dev/null @@ -1,193 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/enums/affiliate_location_feed_relationship_type.proto"; -import "google/ads/googleads/v2/enums/feed_attribute_type.proto"; -import "google/ads/googleads/v2/enums/feed_origin.proto"; -import "google/ads/googleads/v2/enums/feed_status.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "FeedProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the Feed resource. - -// A feed. -message Feed { - option (google.api.resource) = { - type: "googleads.googleapis.com/Feed" - pattern: "customers/{customer}/feeds/{feed}" - }; - - // Data used to configure a location feed populated from Google My Business - // Locations. - message PlacesLocationFeedData { - // Data used for authorization using OAuth. - message OAuthInfo { - // The HTTP method used to obtain authorization. - google.protobuf.StringValue http_method = 1; - - // The HTTP request URL used to obtain authorization. - google.protobuf.StringValue http_request_url = 2; - - // The HTTP authorization header used to obtain authorization. - google.protobuf.StringValue http_authorization_header = 3; - } - - // Immutable. Required authentication token (from OAuth API) for the email. - // This field can only be specified in a create request. All its subfields - // are not selectable. - OAuthInfo oauth_info = 1 [(google.api.field_behavior) = IMMUTABLE]; - - // Email address of a Google My Business account or email address of a - // manager of the Google My Business account. Required. - google.protobuf.StringValue email_address = 2; - - // Plus page ID of the managed business whose locations should be used. If - // this field is not set, then all businesses accessible by the user - // (specified by email_address) are used. - // This field is mutate-only and is not selectable. - google.protobuf.StringValue business_account_id = 10; - - // Used to filter Google My Business listings by business name. If - // business_name_filter is set, only listings with a matching business name - // are candidates to be sync'd into FeedItems. - google.protobuf.StringValue business_name_filter = 4; - - // Used to filter Google My Business listings by categories. If entries - // exist in category_filters, only listings that belong to any of the - // categories are candidates to be sync'd into FeedItems. If no entries - // exist in category_filters, then all listings are candidates for syncing. - repeated google.protobuf.StringValue category_filters = 5; - - // Used to filter Google My Business listings by labels. If entries exist in - // label_filters, only listings that has any of the labels set are - // candidates to be synchronized into FeedItems. If no entries exist in - // label_filters, then all listings are candidates for syncing. - repeated google.protobuf.StringValue label_filters = 6; - } - - // Data used to configure an affiliate location feed populated with the - // specified chains. - message AffiliateLocationFeedData { - // The list of chains that the affiliate location feed will sync the - // locations from. - repeated google.protobuf.Int64Value chain_ids = 1; - - // The relationship the chains have with the advertiser. - google.ads.googleads.v2.enums.AffiliateLocationFeedRelationshipTypeEnum.AffiliateLocationFeedRelationshipType relationship_type = 2; - } - - // Immutable. The resource name of the feed. - // Feed resource names have the form: - // - // `customers/{customer_id}/feeds/{feed_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Feed" - } - ]; - - // Output only. The ID of the feed. - // This field is read-only. - google.protobuf.Int64Value id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. Name of the feed. Required. - google.protobuf.StringValue name = 3 [(google.api.field_behavior) = IMMUTABLE]; - - // The Feed's attributes. Required on CREATE, unless - // system_feed_generation_data is provided, in which case Google Ads will - // update the feed with the correct attributes. - // Disallowed on UPDATE. Use attribute_operations to add new attributes. - repeated FeedAttribute attributes = 4; - - // The list of operations changing the feed attributes. Attributes can only - // be added, not removed. - repeated FeedAttributeOperation attribute_operations = 9; - - // Immutable. Specifies who manages the FeedAttributes for the Feed. - google.ads.googleads.v2.enums.FeedOriginEnum.FeedOrigin origin = 5 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. Status of the feed. - // This field is read-only. - google.ads.googleads.v2.enums.FeedStatusEnum.FeedStatus status = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The system data for the Feed. This data specifies information for - // generating the feed items of the system generated feed. - oneof system_feed_generation_data { - // Data used to configure a location feed populated from Google My Business - // Locations. - PlacesLocationFeedData places_location_feed_data = 6; - - // Data used to configure an affiliate location feed populated with - // the specified chains. - AffiliateLocationFeedData affiliate_location_feed_data = 7; - } -} - -// FeedAttributes define the types of data expected to be present in a Feed. A -// single FeedAttribute specifies the expected type of the FeedItemAttributes -// with the same FeedAttributeId. Optionally, a FeedAttribute can be marked as -// being part of a FeedItem's unique key. -message FeedAttribute { - // ID of the attribute. - google.protobuf.Int64Value id = 1; - - // The name of the attribute. Required. - google.protobuf.StringValue name = 2; - - // Data type for feed attribute. Required. - google.ads.googleads.v2.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 - // that a unique key is not required in a Feed's schema, in which case the - // FeedItems must be referenced by their feed_item_id. - google.protobuf.BoolValue is_part_of_key = 4; -} - -// Operation to be performed on a feed attribute list in a mutate. -message FeedAttributeOperation { - // The operator. - enum Operator { - // Unspecified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Add the attribute to the existing attributes. - ADD = 2; - } - - // Output only. Type of list operation to perform. - Operator operator = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The feed attribute being added to the list. - FeedAttribute value = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/feed_item.proto b/third_party/googleapis/google/ads/googleads/v2/resources/feed_item.proto deleted file mode 100644 index ebc1e9f88..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/feed_item.proto +++ /dev/null @@ -1,215 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/common/custom_parameter.proto"; -import "google/ads/googleads/v2/common/feed_common.proto"; -import "google/ads/googleads/v2/common/policy.proto"; -import "google/ads/googleads/v2/enums/feed_item_quality_approval_status.proto"; -import "google/ads/googleads/v2/enums/feed_item_quality_disapproval_reason.proto"; -import "google/ads/googleads/v2/enums/feed_item_status.proto"; -import "google/ads/googleads/v2/enums/feed_item_validation_status.proto"; -import "google/ads/googleads/v2/enums/geo_targeting_restriction.proto"; -import "google/ads/googleads/v2/enums/placeholder_type.proto"; -import "google/ads/googleads/v2/enums/policy_approval_status.proto"; -import "google/ads/googleads/v2/enums/policy_review_status.proto"; -import "google/ads/googleads/v2/errors/feed_item_validation_error.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "FeedItemProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the FeedItem resource. - -// A feed item. -message FeedItem { - option (google.api.resource) = { - type: "googleads.googleapis.com/FeedItem" - pattern: "customers/{customer}/feedItems/{feed_item}" - }; - - // Immutable. The resource name of the feed item. - // Feed item resource names have the form: - // - // `customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/FeedItem" - } - ]; - - // Immutable. The feed to which this feed item belongs. - google.protobuf.StringValue feed = 2 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Feed" - } - ]; - - // Output only. The ID of this feed item. - google.protobuf.Int64Value id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Start time in which this feed item is effective and can begin serving. The - // time is in the customer's time zone. - // The format is "YYYY-MM-DD HH:MM:SS". - // Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30" - google.protobuf.StringValue start_date_time = 4; - - // End time in which this feed item is no longer effective and will stop - // serving. The time is in the customer's time zone. - // The format is "YYYY-MM-DD HH:MM:SS". - // Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30" - google.protobuf.StringValue end_date_time = 5; - - // The feed item's attribute values. - repeated FeedItemAttributeValue attribute_values = 6; - - // Geo targeting restriction specifies the type of location that can be used - // for targeting. - google.ads.googleads.v2.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.v2.common.CustomParameter url_custom_parameters = 8; - - // Output only. Status of the feed item. - // This field is read-only. - google.ads.googleads.v2.enums.FeedItemStatusEnum.FeedItemStatus status = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. List of info about a feed item's validation and approval state for active - // feed mappings. There will be an entry in the list for each type of feed - // mapping associated with the feed, e.g. a feed with a sitelink and a call - // feed mapping would cause every feed item associated with that feed to have - // an entry in this list for both sitelink and call. - // This field is read-only. - repeated FeedItemPlaceholderPolicyInfo policy_infos = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// A feed item attribute value. -message FeedItemAttributeValue { - // Id of the feed attribute for which the value is associated with. - google.protobuf.Int64Value feed_attribute_id = 1; - - // Int64 value. Should be set if feed_attribute_id refers to a feed attribute - // of type INT64. - google.protobuf.Int64Value integer_value = 2; - - // Bool value. Should be set if feed_attribute_id refers to a feed attribute - // of type BOOLEAN. - google.protobuf.BoolValue boolean_value = 3; - - // String value. Should be set if feed_attribute_id refers to a feed attribute - // of type STRING, URL or DATE_TIME. - // For STRING the maximum length is 1500 characters. For URL the maximum - // length is 2076 characters. For DATE_TIME the string must be in the format - // "YYYYMMDD HHMMSS". - google.protobuf.StringValue string_value = 4; - - // Double value. Should be set if feed_attribute_id refers to a feed attribute - // of type DOUBLE. - google.protobuf.DoubleValue double_value = 5; - - // Price value. Should be set if feed_attribute_id refers to a feed attribute - // of type PRICE. - google.ads.googleads.v2.common.Money price_value = 6; - - // Repeated int64 value. Should be set if feed_attribute_id refers to a feed - // attribute of type INT64_LIST. - repeated google.protobuf.Int64Value integer_values = 7; - - // Repeated bool value. Should be set if feed_attribute_id refers to a feed - // attribute of type BOOLEAN_LIST. - repeated google.protobuf.BoolValue boolean_values = 8; - - // Repeated string value. Should be set if feed_attribute_id refers to a feed - // attribute of type STRING_LIST, URL_LIST or DATE_TIME_LIST. - // For STRING_LIST and URL_LIST the total size of the list in bytes may not - // exceed 3000. For DATE_TIME_LIST the number of elements may not exceed 200. - // - // For STRING_LIST the maximum length of each string element is 1500 - // characters. For URL_LIST the maximum length is 2076 characters. For - // DATE_TIME the format of the string must be the same as start and end time - // for the feed item. - repeated google.protobuf.StringValue string_values = 9; - - // Repeated double value. Should be set if feed_attribute_id refers to a feed - // attribute of type DOUBLE_LIST. - repeated google.protobuf.DoubleValue double_values = 10; -} - -// Policy, validation, and quality approval info for a feed item for the -// specified placeholder type. -message FeedItemPlaceholderPolicyInfo { - // Output only. The placeholder type. - google.ads.googleads.v2.enums.PlaceholderTypeEnum.PlaceholderType placeholder_type_enum = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The FeedMapping that contains the placeholder type. - google.protobuf.StringValue feed_mapping_resource_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Where the placeholder type is in the review process. - google.ads.googleads.v2.enums.PolicyReviewStatusEnum.PolicyReviewStatus review_status = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The overall approval status of the placeholder type, calculated based on - // the status of its individual policy topic entries. - google.ads.googleads.v2.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus approval_status = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The list of policy findings for the placeholder type. - repeated google.ads.googleads.v2.common.PolicyTopicEntry policy_topic_entries = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The validation status of the palceholder type. - google.ads.googleads.v2.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus validation_status = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. List of placeholder type validation errors. - repeated FeedItemValidationError validation_errors = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Placeholder type quality evaluation approval status. - google.ads.googleads.v2.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus quality_approval_status = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. List of placeholder type quality evaluation disapproval reasons. - repeated google.ads.googleads.v2.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason quality_disapproval_reasons = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Stores a validation error and the set of offending feed attributes which -// together are responsible for causing a feed item validation error. -message FeedItemValidationError { - // Output only. Error code indicating what validation error was triggered. The description - // of the error can be found in the 'description' field. - google.ads.googleads.v2.errors.FeedItemValidationErrorEnum.FeedItemValidationError validation_error = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The description of the validation error. - google.protobuf.StringValue description = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Set of feed attributes in the feed item flagged during validation. If - // empty, no specific feed attributes can be associated with the error - // (e.g. error across the entire feed item). - repeated google.protobuf.Int64Value feed_attribute_ids = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Any extra information related to this error which is not captured by - // validation_error and feed_attribute_id (e.g. placeholder field IDs when - // feed_attribute_id is not mapped). Note that extra_info is not localized. - google.protobuf.StringValue extra_info = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/feed_item_target.proto b/third_party/googleapis/google/ads/googleads/v2/resources/feed_item_target.proto deleted file mode 100644 index 0ea35810f..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/feed_item_target.proto +++ /dev/null @@ -1,104 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/common/criteria.proto"; -import "google/ads/googleads/v2/enums/feed_item_target_device.proto"; -import "google/ads/googleads/v2/enums/feed_item_target_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "FeedItemTargetProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the FeedItemTarget resource. - -// A feed item target. -message FeedItemTarget { - option (google.api.resource) = { - type: "googleads.googleapis.com/FeedItemTarget" - pattern: "customers/{customer}/feedItemTargets/{feed_item_target}" - }; - - // Immutable. The resource name of the feed item target. - // Feed item target resource names have the form: - // `customers/{customer_id}/feedItemTargets/{feed_id}~{feed_item_id}~{feed_item_target_type}~{feed_item_target_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/FeedItemTarget" - } - ]; - - // Immutable. The feed item to which this feed item target belongs. - google.protobuf.StringValue feed_item = 2 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/FeedItem" - } - ]; - - // Output only. The target type of this feed item target. This field is read-only. - google.ads.googleads.v2.enums.FeedItemTargetTypeEnum.FeedItemTargetType feed_item_target_type = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The ID of the targeted resource. This field is read-only. - google.protobuf.Int64Value feed_item_target_id = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The targeted resource. - oneof target { - // Immutable. The targeted campaign. - google.protobuf.StringValue campaign = 4 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Campaign" - } - ]; - - // Immutable. The targeted ad group. - google.protobuf.StringValue ad_group = 5 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroup" - } - ]; - - // Immutable. The targeted keyword. - google.ads.googleads.v2.common.KeywordInfo keyword = 7 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. The targeted geo target constant resource name. - google.protobuf.StringValue geo_target_constant = 8 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/GeoTargetConstant" - } - ]; - - // Immutable. The targeted device. - google.ads.googleads.v2.enums.FeedItemTargetDeviceEnum.FeedItemTargetDevice device = 9 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. The targeted schedule. - google.ads.googleads.v2.common.AdScheduleInfo ad_schedule = 10 [(google.api.field_behavior) = IMMUTABLE]; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/feed_mapping.proto b/third_party/googleapis/google/ads/googleads/v2/resources/feed_mapping.proto deleted file mode 100644 index e5ede0986..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/feed_mapping.proto +++ /dev/null @@ -1,186 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/enums/ad_customizer_placeholder_field.proto"; -import "google/ads/googleads/v2/enums/affiliate_location_placeholder_field.proto"; -import "google/ads/googleads/v2/enums/app_placeholder_field.proto"; -import "google/ads/googleads/v2/enums/call_placeholder_field.proto"; -import "google/ads/googleads/v2/enums/callout_placeholder_field.proto"; -import "google/ads/googleads/v2/enums/custom_placeholder_field.proto"; -import "google/ads/googleads/v2/enums/dsa_page_feed_criterion_field.proto"; -import "google/ads/googleads/v2/enums/education_placeholder_field.proto"; -import "google/ads/googleads/v2/enums/feed_mapping_criterion_type.proto"; -import "google/ads/googleads/v2/enums/feed_mapping_status.proto"; -import "google/ads/googleads/v2/enums/flight_placeholder_field.proto"; -import "google/ads/googleads/v2/enums/hotel_placeholder_field.proto"; -import "google/ads/googleads/v2/enums/job_placeholder_field.proto"; -import "google/ads/googleads/v2/enums/local_placeholder_field.proto"; -import "google/ads/googleads/v2/enums/location_extension_targeting_criterion_field.proto"; -import "google/ads/googleads/v2/enums/location_placeholder_field.proto"; -import "google/ads/googleads/v2/enums/message_placeholder_field.proto"; -import "google/ads/googleads/v2/enums/placeholder_type.proto"; -import "google/ads/googleads/v2/enums/price_placeholder_field.proto"; -import "google/ads/googleads/v2/enums/promotion_placeholder_field.proto"; -import "google/ads/googleads/v2/enums/real_estate_placeholder_field.proto"; -import "google/ads/googleads/v2/enums/sitelink_placeholder_field.proto"; -import "google/ads/googleads/v2/enums/structured_snippet_placeholder_field.proto"; -import "google/ads/googleads/v2/enums/travel_placeholder_field.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "FeedMappingProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the FeedMapping resource. - -// A feed mapping. -message FeedMapping { - option (google.api.resource) = { - type: "googleads.googleapis.com/FeedMapping" - pattern: "customers/{customer}/feedMappings/{feed_mapping}" - }; - - // Immutable. The resource name of the feed mapping. - // Feed mapping resource names have the form: - // - // `customers/{customer_id}/feedMappings/{feed_id}~{feed_mapping_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/FeedMapping" - } - ]; - - // Immutable. The feed of this feed mapping. - google.protobuf.StringValue feed = 2 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Feed" - } - ]; - - // Immutable. Feed attributes to field mappings. These mappings are a one-to-many - // relationship meaning that 1 feed attribute can be used to populate - // multiple placeholder fields, but 1 placeholder field can only draw - // data from 1 feed attribute. Ad Customizer is an exception, 1 placeholder - // field can be mapped to multiple feed attributes. Required. - repeated AttributeFieldMapping attribute_field_mappings = 5 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. Status of the feed mapping. - // This field is read-only. - google.ads.googleads.v2.enums.FeedMappingStatusEnum.FeedMappingStatus status = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // 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 { - // Immutable. The placeholder type of this mapping (i.e., if the mapping maps feed - // attributes to placeholder fields). - google.ads.googleads.v2.enums.PlaceholderTypeEnum.PlaceholderType placeholder_type = 3 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. The criterion type of this mapping (i.e., if the mapping maps feed - // attributes to criterion fields). - google.ads.googleads.v2.enums.FeedMappingCriterionTypeEnum.FeedMappingCriterionType criterion_type = 4 [(google.api.field_behavior) = IMMUTABLE]; - } -} - -// Maps from feed attribute id to a placeholder or criterion field id. -message AttributeFieldMapping { - // Immutable. Feed attribute from which to map. - google.protobuf.Int64Value feed_attribute_id = 1 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. The placeholder field ID. If a placeholder field enum is not published in - // the current API version, then this field will be populated and the field - // oneof will be empty. - // This field is read-only. - google.protobuf.Int64Value field_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Placeholder or criterion field to be populated using data from - // the above feed attribute. Required. - oneof field { - // Immutable. Sitelink Placeholder Fields. - google.ads.googleads.v2.enums.SitelinkPlaceholderFieldEnum.SitelinkPlaceholderField sitelink_field = 3 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Call Placeholder Fields. - google.ads.googleads.v2.enums.CallPlaceholderFieldEnum.CallPlaceholderField call_field = 4 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. App Placeholder Fields. - google.ads.googleads.v2.enums.AppPlaceholderFieldEnum.AppPlaceholderField app_field = 5 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. Location Placeholder Fields. This field is read-only. - google.ads.googleads.v2.enums.LocationPlaceholderFieldEnum.LocationPlaceholderField location_field = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Affiliate Location Placeholder Fields. This field is read-only. - google.ads.googleads.v2.enums.AffiliateLocationPlaceholderFieldEnum.AffiliateLocationPlaceholderField affiliate_location_field = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. Callout Placeholder Fields. - google.ads.googleads.v2.enums.CalloutPlaceholderFieldEnum.CalloutPlaceholderField callout_field = 8 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Structured Snippet Placeholder Fields. - google.ads.googleads.v2.enums.StructuredSnippetPlaceholderFieldEnum.StructuredSnippetPlaceholderField structured_snippet_field = 9 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Message Placeholder Fields. - google.ads.googleads.v2.enums.MessagePlaceholderFieldEnum.MessagePlaceholderField message_field = 10 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Price Placeholder Fields. - google.ads.googleads.v2.enums.PricePlaceholderFieldEnum.PricePlaceholderField price_field = 11 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Promotion Placeholder Fields. - google.ads.googleads.v2.enums.PromotionPlaceholderFieldEnum.PromotionPlaceholderField promotion_field = 12 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Ad Customizer Placeholder Fields - google.ads.googleads.v2.enums.AdCustomizerPlaceholderFieldEnum.AdCustomizerPlaceholderField ad_customizer_field = 13 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Dynamic Search Ad Page Feed Fields. - google.ads.googleads.v2.enums.DsaPageFeedCriterionFieldEnum.DsaPageFeedCriterionField dsa_page_feed_field = 14 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Location Target Fields. - google.ads.googleads.v2.enums.LocationExtensionTargetingCriterionFieldEnum.LocationExtensionTargetingCriterionField location_extension_targeting_field = 15 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Education Placeholder Fields - google.ads.googleads.v2.enums.EducationPlaceholderFieldEnum.EducationPlaceholderField education_field = 16 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Flight Placeholder Fields - google.ads.googleads.v2.enums.FlightPlaceholderFieldEnum.FlightPlaceholderField flight_field = 17 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Custom Placeholder Fields - google.ads.googleads.v2.enums.CustomPlaceholderFieldEnum.CustomPlaceholderField custom_field = 18 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Hotel Placeholder Fields - google.ads.googleads.v2.enums.HotelPlaceholderFieldEnum.HotelPlaceholderField hotel_field = 19 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Real Estate Placeholder Fields - google.ads.googleads.v2.enums.RealEstatePlaceholderFieldEnum.RealEstatePlaceholderField real_estate_field = 20 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Travel Placeholder Fields - google.ads.googleads.v2.enums.TravelPlaceholderFieldEnum.TravelPlaceholderField travel_field = 21 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Local Placeholder Fields - google.ads.googleads.v2.enums.LocalPlaceholderFieldEnum.LocalPlaceholderField local_field = 22 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Job Placeholder Fields - google.ads.googleads.v2.enums.JobPlaceholderFieldEnum.JobPlaceholderField job_field = 23 [(google.api.field_behavior) = IMMUTABLE]; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/feed_placeholder_view.proto b/third_party/googleapis/google/ads/googleads/v2/resources/feed_placeholder_view.proto deleted file mode 100644 index ffbcfefe0..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/feed_placeholder_view.proto +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/enums/placeholder_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "FeedPlaceholderViewProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the FeedPlaceholderView resource. - -// A feed placeholder view. -message FeedPlaceholderView { - option (google.api.resource) = { - type: "googleads.googleapis.com/FeedPlaceholderView" - pattern: "customers/{customer}/feedPlaceholderViews/{feed_placeholder_view}" - }; - - // Output only. The resource name of the feed placeholder view. - // Feed placeholder view resource names have the form: - // - // `customers/{customer_id}/feedPlaceholderViews/{placeholder_type}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/FeedPlaceholderView" - } - ]; - - // Output only. The placeholder type of the feed placeholder view. - google.ads.googleads.v2.enums.PlaceholderTypeEnum.PlaceholderType placeholder_type = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/gender_view.proto b/third_party/googleapis/google/ads/googleads/v2/resources/gender_view.proto deleted file mode 100644 index 2cba7b8a4..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/gender_view.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "GenderViewProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the gender view resource. - -// A gender view. -message GenderView { - option (google.api.resource) = { - type: "googleads.googleapis.com/GenderView" - pattern: "customers/{customer}/genderViews/{gender_view}" - }; - - // Output only. The resource name of the gender view. - // Gender view resource names have the form: - // - // `customers/{customer_id}/genderViews/{ad_group_id}~{criterion_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/GenderView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/geo_target_constant.proto b/third_party/googleapis/google/ads/googleads/v2/resources/geo_target_constant.proto deleted file mode 100644 index 533880044..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/geo_target_constant.proto +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/enums/geo_target_constant_status.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "GeoTargetConstantProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the geo target constant resource. - -// A geo target constant. -message GeoTargetConstant { - option (google.api.resource) = { - type: "googleads.googleapis.com/GeoTargetConstant" - pattern: "geoTargetConstants/{geo_target_constant}" - }; - - // Output only. The resource name of the geo target constant. - // Geo target constant resource names have the form: - // - // `geoTargetConstants/{geo_target_constant_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/GeoTargetConstant" - } - ]; - - // Output only. The ID of the geo target constant. - google.protobuf.Int64Value id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Geo target constant English name. - google.protobuf.StringValue name = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The ISO-3166-1 alpha-2 country code that is associated with the target. - google.protobuf.StringValue country_code = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Geo target constant target type. - google.protobuf.StringValue target_type = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Geo target constant status. - google.ads.googleads.v2.enums.GeoTargetConstantStatusEnum.GeoTargetConstantStatus status = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The fully qualified English name, consisting of the target's name and that - // of its parent and country. - google.protobuf.StringValue canonical_name = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/geographic_view.proto b/third_party/googleapis/google/ads/googleads/v2/resources/geographic_view.proto deleted file mode 100644 index dd7d5f917..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/geographic_view.proto +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/enums/geo_targeting_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "GeographicViewProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the geographic view resource. - -// A geographic view. -// -// Geographic View includes all metrics aggregated at the country level, -// one row per country. It reports metrics at either actual physical location of -// the user or an area of interest. If other segment fields are used, you may -// get more than one row per country. -message GeographicView { - option (google.api.resource) = { - type: "googleads.googleapis.com/GeographicView" - pattern: "customers/{customer}/geographicViews/{geographic_view}" - }; - - // Output only. The resource name of the geographic view. - // Geographic view resource names have the form: - // - // `customers/{customer_id}/geographicViews/{country_criterion_id}~{location_type}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/GeographicView" - } - ]; - - // Output only. Type of the geo targeting of the campaign. - google.ads.googleads.v2.enums.GeoTargetingTypeEnum.GeoTargetingType location_type = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Criterion Id for the country. - google.protobuf.Int64Value country_criterion_id = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/google_ads_field.proto b/third_party/googleapis/google/ads/googleads/v2/resources/google_ads_field.proto deleted file mode 100644 index a2fc17ecf..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/google_ads_field.proto +++ /dev/null @@ -1,118 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/enums/google_ads_field_category.proto"; -import "google/ads/googleads/v2/enums/google_ads_field_data_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "GoogleAdsFieldProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the Google Ads Field resource. - -// A field or resource (artifact) used by GoogleAdsService. -message GoogleAdsField { - option (google.api.resource) = { - type: "googleads.googleapis.com/GoogleAdsField" - pattern: "googleAdsFields/{google_ads_field}" - }; - - // Output only. The resource name of the artifact. - // Artifact resource names have the form: - // - // `googleAdsFields/{name}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/GoogleAdsField" - } - ]; - - // Output only. The name of the artifact. - google.protobuf.StringValue name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The category of the artifact. - google.ads.googleads.v2.enums.GoogleAdsFieldCategoryEnum.GoogleAdsFieldCategory category = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Whether the artifact can be used in a SELECT clause in search - // queries. - google.protobuf.BoolValue selectable = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Whether the artifact can be used in a WHERE clause in search - // queries. - google.protobuf.BoolValue filterable = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Whether the artifact can be used in a ORDER BY clause in search - // queries. - google.protobuf.BoolValue sortable = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The names of all resources, segments, and metrics that are selectable with - // the described artifact. - repeated google.protobuf.StringValue selectable_with = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The names of all resources that are selectable with the described - // artifact. Fields from these resources do not segment metrics when included - // in search queries. - // - // This field is only set for artifacts whose category is RESOURCE. - repeated google.protobuf.StringValue attribute_resources = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. At and beyond version V1 this field lists the names of all metrics that are - // selectable with the described artifact when it is used in the FROM clause. - // It is only set for artifacts whose category is RESOURCE. - // - // Before version V1 this field lists the names of all metrics that are - // selectable with the described artifact. It is only set for artifacts whose - // category is either RESOURCE or SEGMENT - repeated google.protobuf.StringValue metrics = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. At and beyond version V1 this field lists the names of all artifacts, - // whether a segment or another resource, that segment metrics when included - // in search queries and when the described artifact is used in the FROM - // clause. It is only set for artifacts whose category is RESOURCE. - // - // Before version V1 this field lists the names of all artifacts, whether a - // segment or another resource, that segment metrics when included in search - // queries. It is only set for artifacts of category RESOURCE, SEGMENT or - // METRIC. - repeated google.protobuf.StringValue segments = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Values the artifact can assume if it is a field of type ENUM. - // - // This field is only set for artifacts of category SEGMENT or ATTRIBUTE. - repeated google.protobuf.StringValue enum_values = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. This field determines the operators that can be used with the artifact - // in WHERE clauses. - google.ads.googleads.v2.enums.GoogleAdsFieldDataTypeEnum.GoogleAdsFieldDataType data_type = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The URL of proto describing the artifact's data type. - google.protobuf.StringValue type_url = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Whether the field artifact is repeated. - google.protobuf.BoolValue is_repeated = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/group_placement_view.proto b/third_party/googleapis/google/ads/googleads/v2/resources/group_placement_view.proto deleted file mode 100644 index fa2147ed6..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/group_placement_view.proto +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/enums/placement_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "GroupPlacementViewProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the group placement view resource. - -// A group placement view. -message GroupPlacementView { - option (google.api.resource) = { - type: "googleads.googleapis.com/GroupPlacementView" - pattern: "customers/{customer}/groupPlacementViews/{group_placement_view}" - }; - - // Output only. The resource name of the group placement view. - // Group placement view resource names have the form: - // - // `customers/{customer_id}/groupPlacementViews/{ad_group_id}~{base64_placement}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/GroupPlacementView" - } - ]; - - // Output only. The automatic placement string at group level, e. g. web domain, mobile - // app ID, or a YouTube channel ID. - google.protobuf.StringValue placement = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Domain name for websites and YouTube channel name for YouTube channels. - google.protobuf.StringValue display_name = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. URL of the group placement, e.g. domain, link to the mobile application in - // app store, or a YouTube channel URL. - google.protobuf.StringValue target_url = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Type of the placement, e.g. Website, YouTube Channel, Mobile Application. - google.ads.googleads.v2.enums.PlacementTypeEnum.PlacementType placement_type = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/hotel_group_view.proto b/third_party/googleapis/google/ads/googleads/v2/resources/hotel_group_view.proto deleted file mode 100644 index e26861fe9..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/hotel_group_view.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "HotelGroupViewProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the hotel group view resource. - -// A hotel group view. -message HotelGroupView { - option (google.api.resource) = { - type: "googleads.googleapis.com/HotelGroupView" - pattern: "customers/{customer}/hotelGroupViews/{hotel_group_view}" - }; - - // Output only. The resource name of the hotel group view. - // Hotel Group view resource names have the form: - // - // `customers/{customer_id}/hotelGroupViews/{ad_group_id}~{criterion_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/HotelGroupView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/hotel_performance_view.proto b/third_party/googleapis/google/ads/googleads/v2/resources/hotel_performance_view.proto deleted file mode 100644 index 1b5c32b78..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/hotel_performance_view.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "HotelPerformanceViewProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the hotel performance view resource. - -// A hotel performance view. -message HotelPerformanceView { - option (google.api.resource) = { - type: "googleads.googleapis.com/HotelPerformanceView" - pattern: "customers/{customer}/hotelPerformanceView" - }; - - // Output only. The resource name of the hotel performance view. - // Hotel performance view resource names have the form: - // - // `customers/{customer_id}/hotelPerformanceView` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/HotelPerformanceView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/invoice.proto b/third_party/googleapis/google/ads/googleads/v2/resources/invoice.proto deleted file mode 100644 index c76b43f0c..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/invoice.proto +++ /dev/null @@ -1,183 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/common/dates.proto"; -import "google/ads/googleads/v2/enums/invoice_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "InvoiceProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the Invoice resource. - -// An invoice. All invoice information is snapshotted to match the PDF invoice. -// For invoices older than the launch of InvoiceService, the snapshotted -// information may not match the PDF invoice. -message Invoice { - option (google.api.resource) = { - type: "googleads.googleapis.com/Invoice" - pattern: "customers/{customer}/invoices/{invoice}" - }; - - // Represents a summarized account budget billable cost. - message AccountBudgetSummary { - // Output only. The resource name of the customer associated with this account budget. - // This contains the customer ID, which appears on the invoice PDF as - // "Account ID". - // Customer resource names have the form: - // - // `customers/{customer_id}` - google.protobuf.StringValue customer = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The descriptive name of the account budget’s customer. It appears on the - // invoice PDF as "Account". - google.protobuf.StringValue customer_descriptive_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The resource name of the account budget associated with this summarized - // billable cost. - // AccountBudget resource names have the form: - // - // `customers/{customer_id}/accountBudgets/{account_budget_id}` - google.protobuf.StringValue account_budget = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The name of the account budget. It appears on the invoice PDF as "Account - // budget". - google.protobuf.StringValue account_budget_name = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The purchase order number of the account budget. It appears on the - // invoice PDF as "Purchase order". - google.protobuf.StringValue purchase_order_number = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The pretax subtotal amount attributable to this budget during the service - // period, in micros. - google.protobuf.Int64Value subtotal_amount_micros = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The tax amount attributable to this budget during the service period, in - // micros. - google.protobuf.Int64Value tax_amount_micros = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The total amount attributable to this budget during the service period, - // in micros. This equals the sum of the account budget subtotal amount and - // the account budget tax amount. - google.protobuf.Int64Value total_amount_micros = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The billable activity date range of the account budget, within the - // service date range of this invoice. The end date is inclusive. This can - // be different from the account budget's start and end time. - google.ads.googleads.v2.common.DateRange billable_activity_date_range = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // Output only. The resource name of the invoice. Multiple customers can share a given - // invoice, so multiple resource names may point to the same invoice. - // Invoice resource names have the form: - // - // `customers/{customer_id}/invoices/{invoice_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Invoice" - } - ]; - - // Output only. The ID of the invoice. It appears on the invoice PDF as "Invoice number". - google.protobuf.StringValue id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The type of invoice. - google.ads.googleads.v2.enums.InvoiceTypeEnum.InvoiceType type = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The resource name of this invoice’s billing setup. - // - // `customers/{customer_id}/billingSetups/{billing_setup_id}` - google.protobuf.StringValue billing_setup = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. A 16 digit ID used to identify the payments account associated with the - // billing setup, e.g. "1234-5678-9012-3456". It appears on the invoice PDF as - // "Billing Account Number". - google.protobuf.StringValue payments_account_id = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. A 12 digit ID used to identify the payments profile associated with the - // billing setup, e.g. "1234-5678-9012". It appears on the invoice PDF as - // "Billing ID". - google.protobuf.StringValue payments_profile_id = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The issue date in yyyy-mm-dd format. It appears on the invoice PDF as - // either "Issue date" or "Invoice date". - google.protobuf.StringValue issue_date = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The due date in yyyy-mm-dd format. - google.protobuf.StringValue due_date = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The service period date range of this invoice. The end date is inclusive. - google.ads.googleads.v2.common.DateRange service_date_range = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The currency code. All costs are returned in this currency. A subset of the - // currency codes derived from the ISO 4217 standard is supported. - google.protobuf.StringValue currency_code = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The total amount of invoice level adjustments. These adjustments are made - // on the invoice, not on a specific account budget. - google.protobuf.Int64Value invoice_level_adjustments_micros = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The pretax subtotal amount, in micros. This equals the sum of the - // AccountBudgetSummary subtotal amounts, plus the invoice level adjustments. - google.protobuf.Int64Value subtotal_amount_micros = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The sum of all taxes on the invoice, in micros. This equals the sum of the - // AccountBudgetSummary tax amounts, plus taxes not associated with a specific - // account budget. - google.protobuf.Int64Value tax_amount_micros = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The total amount, in micros. This equals the sum of the invoice subtotal - // amount and the invoice tax amount. - google.protobuf.Int64Value total_amount_micros = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The resource name of the original invoice corrected, wrote off, or canceled - // by this invoice, if applicable. If `corrected_invoice` is set, - // `replaced_invoices` will not be set. - // Invoice resource names have the form: - // - // `customers/{customer_id}/invoices/{invoice_id}` - google.protobuf.StringValue corrected_invoice = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The resource name of the original invoice(s) being rebilled or replaced by - // this invoice, if applicable. There might be multiple replaced invoices due - // to invoice consolidation. The replaced invoices may not belong to the same - // payments account. If `replaced_invoices` is set, `corrected_invoice` will - // not be set. - // Invoice resource names have the form: - // - // `customers/{customer_id}/invoices/{invoice_id}` - repeated google.protobuf.StringValue replaced_invoices = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The URL to a PDF copy of the invoice. Users need to pass in their OAuth - // token to request the PDF with this URL. - google.protobuf.StringValue pdf_url = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The list of summarized account budget information associated with this - // invoice. - repeated AccountBudgetSummary account_budget_summaries = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/keyword_plan.proto b/third_party/googleapis/google/ads/googleads/v2/resources/keyword_plan.proto deleted file mode 100644 index 51da46e11..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/keyword_plan.proto +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/common/dates.proto"; -import "google/ads/googleads/v2/enums/keyword_plan_forecast_interval.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "KeywordPlanProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the keyword plan resource. - -// A Keyword Planner plan. -// Max number of saved keyword plans: 10000. -// It's possible to remove plans if limit is reached. -message KeywordPlan { - option (google.api.resource) = { - type: "googleads.googleapis.com/KeywordPlan" - pattern: "customers/{customer}/keywordPlans/{keyword_plan}" - }; - - // Immutable. The resource name of the Keyword Planner plan. - // KeywordPlan resource names have the form: - // - // `customers/{customer_id}/keywordPlans/{kp_plan_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/KeywordPlan" - } - ]; - - // Output only. The ID of the keyword plan. - google.protobuf.Int64Value id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The name of the keyword plan. - // - // This field is required and should not be empty when creating new keyword - // plans. - google.protobuf.StringValue name = 3; - - // The date period used for forecasting the plan. - KeywordPlanForecastPeriod forecast_period = 4; -} - -// The forecasting period associated with the keyword plan. -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.v2.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 - // be returned when the forecasting action is performed. - // The start and end dates are inclusive. - google.ads.googleads.v2.common.DateRange date_range = 2; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/keyword_plan_ad_group.proto b/third_party/googleapis/google/ads/googleads/v2/resources/keyword_plan_ad_group.proto deleted file mode 100644 index abb48acc4..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/keyword_plan_ad_group.proto +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "KeywordPlanAdGroupProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the keyword plan ad group resource. - -// A Keyword Planner ad group. -// Max number of keyword plan ad groups per plan: 200. -message KeywordPlanAdGroup { - option (google.api.resource) = { - type: "googleads.googleapis.com/KeywordPlanAdGroup" - pattern: "customers/{customer}/keywordPlanAdGroups/{keyword_plan_ad_group}" - }; - - // Immutable. The resource name of the Keyword Planner ad group. - // KeywordPlanAdGroup resource names have the form: - // - // `customers/{customer_id}/keywordPlanAdGroups/{kp_ad_group_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/KeywordPlanAdGroup" - } - ]; - - // The keyword plan campaign to which this ad group belongs. - google.protobuf.StringValue keyword_plan_campaign = 2 [(google.api.resource_reference) = { - type: "googleads.googleapis.com/KeywordPlanCampaign" - }]; - - // Output only. The ID of the keyword plan ad group. - google.protobuf.Int64Value id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The name of the keyword plan ad group. - // - // This field is required and should not be empty when creating keyword plan - // ad group. - google.protobuf.StringValue name = 4; - - // A default ad group max cpc bid in micros in account currency for all - // biddable keywords under the keyword plan ad group. - // If not set, will inherit from parent campaign. - google.protobuf.Int64Value cpc_bid_micros = 5; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/keyword_plan_campaign.proto b/third_party/googleapis/google/ads/googleads/v2/resources/keyword_plan_campaign.proto deleted file mode 100644 index cebd04a54..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/keyword_plan_campaign.proto +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/enums/keyword_plan_network.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "KeywordPlanCampaignProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the keyword plan campaign resource. - -// A Keyword Plan campaign. -// Max number of keyword plan campaigns per plan allowed: 1. -message KeywordPlanCampaign { - option (google.api.resource) = { - type: "googleads.googleapis.com/KeywordPlanCampaign" - pattern: "customers/{customer}/keywordPlanCampaigns/{keyword_plan_campaign}" - }; - - // Immutable. The resource name of the Keyword Plan campaign. - // KeywordPlanCampaign resource names have the form: - // - // `customers/{customer_id}/keywordPlanCampaigns/{kp_campaign_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/KeywordPlanCampaign" - } - ]; - - // The keyword plan this campaign belongs to. - google.protobuf.StringValue keyword_plan = 2 [(google.api.resource_reference) = { - type: "googleads.googleapis.com/KeywordPlan" - }]; - - // Output only. The ID of the Keyword Plan campaign. - google.protobuf.Int64Value id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The name of the Keyword Plan campaign. - // - // This field is required and should not be empty when creating Keyword Plan - // campaigns. - google.protobuf.StringValue name = 4; - - // The languages targeted for the Keyword Plan campaign. - // Max allowed: 1. - repeated google.protobuf.StringValue language_constants = 5 [(google.api.resource_reference) = { - type: "googleads.googleapis.com/LanguageConstant" - }]; - - // Targeting network. - // - // This field is required and should not be empty when creating Keyword Plan - // campaigns. - google.ads.googleads.v2.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. - // - // This field is required and should not be empty when creating Keyword Plan - // campaigns. - google.protobuf.Int64Value cpc_bid_micros = 7; - - // The geo targets. - // Max number allowed: 20. - repeated KeywordPlanGeoTarget geo_targets = 8; -} - -// A geo target. -message KeywordPlanGeoTarget { - // Required. The resource name of the geo target. - google.protobuf.StringValue geo_target_constant = 1 [(google.api.resource_reference) = { - type: "googleads.googleapis.com/GeoTargetConstant" - }]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/keyword_plan_keyword.proto b/third_party/googleapis/google/ads/googleads/v2/resources/keyword_plan_keyword.proto deleted file mode 100644 index 16a0858a6..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/keyword_plan_keyword.proto +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/enums/keyword_match_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "KeywordPlanKeywordProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the keyword plan keyword resource. - -// A Keyword Plan ad group keyword. -// Max number of keyword plan keywords per plan: 2500. -message KeywordPlanKeyword { - option (google.api.resource) = { - type: "googleads.googleapis.com/KeywordPlanKeyword" - pattern: "customers/{customer}/keywordPlanKeywords/{keyword_plan_keyword}" - }; - - // Immutable. The resource name of the Keyword Plan ad group keyword. - // KeywordPlanKeyword resource names have the form: - // - // `customers/{customer_id}/keywordPlanKeywords/{kp_ad_group_keyword_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/KeywordPlanKeyword" - } - ]; - - // The Keyword Plan ad group to which this keyword belongs. - google.protobuf.StringValue keyword_plan_ad_group = 2 [(google.api.resource_reference) = { - type: "googleads.googleapis.com/KeywordPlanAdGroup" - }]; - - // Output only. The ID of the Keyword Plan keyword. - google.protobuf.Int64Value id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The keyword text. - google.protobuf.StringValue text = 4; - - // The keyword match type. - google.ads.googleads.v2.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. - google.protobuf.Int64Value cpc_bid_micros = 6; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/keyword_plan_negative_keyword.proto b/third_party/googleapis/google/ads/googleads/v2/resources/keyword_plan_negative_keyword.proto deleted file mode 100644 index be7955615..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/keyword_plan_negative_keyword.proto +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/enums/keyword_match_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "KeywordPlanNegativeKeywordProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the keyword plan negative keyword resource. - -// A Keyword Plan negative keyword. -// Max number of keyword plan negative keywords per plan: 1000. -message KeywordPlanNegativeKeyword { - option (google.api.resource) = { - type: "googleads.googleapis.com/KeywordPlanNegativeKeyword" - pattern: "customers/{customer}/keywordPlanNegativeKeywords/{keyword_plan_negative_keyword}" - }; - - // Immutable. The resource name of the Keyword Plan negative keyword. - // KeywordPlanNegativeKeyword resource names have the form: - // - // `customers/{customer_id}/keywordPlanNegativeKeywords/{kp_negative_keyword_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/KeywordPlanNegativeKeyword" - } - ]; - - // The Keyword Plan campaign to which this negative keyword belongs. - google.protobuf.StringValue keyword_plan_campaign = 2 [(google.api.resource_reference) = { - type: "googleads.googleapis.com/KeywordPlanCampaign" - }]; - - // Output only. The ID of the Keyword Plan negative keyword. - google.protobuf.Int64Value id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The keyword text. - google.protobuf.StringValue text = 4; - - // The keyword match type. - google.ads.googleads.v2.enums.KeywordMatchTypeEnum.KeywordMatchType match_type = 5; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/keyword_view.proto b/third_party/googleapis/google/ads/googleads/v2/resources/keyword_view.proto deleted file mode 100644 index b8e44b9da..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/keyword_view.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "KeywordViewProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the keyword view resource. - -// A keyword view. -message KeywordView { - option (google.api.resource) = { - type: "googleads.googleapis.com/KeywordView" - pattern: "customers/{customer}/keywordViews/{keyword_view}" - }; - - // Output only. The resource name of the keyword view. - // Keyword view resource names have the form: - // - // `customers/{customer_id}/keywordViews/{ad_group_id}~{criterion_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/KeywordView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/label.proto b/third_party/googleapis/google/ads/googleads/v2/resources/label.proto deleted file mode 100644 index b5782ac64..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/label.proto +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/common/text_label.proto"; -import "google/ads/googleads/v2/enums/label_status.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "LabelProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// A label. -message Label { - option (google.api.resource) = { - type: "googleads.googleapis.com/Label" - pattern: "customers/{customer}/labels/{label}" - }; - - // Immutable. Name of the resource. - // Label resource names have the form: - // `customers/{customer_id}/labels/{label_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Label" - } - ]; - - // Output only. Id of the label. Read only. - google.protobuf.Int64Value id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The name of the label. - // - // This field is required and should not be empty when creating a new label. - // - // The length of this string should be between 1 and 80, inclusive. - google.protobuf.StringValue name = 3; - - // Output only. Status of the label. Read only. - google.ads.googleads.v2.enums.LabelStatusEnum.LabelStatus status = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // A type of label displaying text on a colored background. - google.ads.googleads.v2.common.TextLabel text_label = 5; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/landing_page_view.proto b/third_party/googleapis/google/ads/googleads/v2/resources/landing_page_view.proto deleted file mode 100644 index 59117a823..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/landing_page_view.proto +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "LandingPageViewProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the landing page view resource. - -// A landing page view with metrics aggregated at the unexpanded final URL -// level. -message LandingPageView { - option (google.api.resource) = { - type: "googleads.googleapis.com/LandingPageView" - pattern: "customers/{customer}/landingPageViews/{landing_page_view}" - }; - - // Output only. The resource name of the landing page view. - // Landing page view resource names have the form: - // - // `customers/{customer_id}/landingPageViews/{unexpanded_final_url_fingerprint}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/LandingPageView" - } - ]; - - // Output only. The advertiser-specified final URL. - google.protobuf.StringValue unexpanded_final_url = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/language_constant.proto b/third_party/googleapis/google/ads/googleads/v2/resources/language_constant.proto deleted file mode 100644 index 6444fa45c..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/language_constant.proto +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "LanguageConstantProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the language constant resource. - -// A language. -message LanguageConstant { - option (google.api.resource) = { - type: "googleads.googleapis.com/LanguageConstant" - pattern: "languageConstants/{language_constant}" - }; - - // Output only. The resource name of the language constant. - // Language constant resource names have the form: - // - // `languageConstants/{criterion_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/LanguageConstant" - } - ]; - - // Output only. The ID of the language constant. - google.protobuf.Int64Value id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The language code, e.g. "en_US", "en_AU", "es", "fr", etc. - google.protobuf.StringValue code = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The full name of the language in English, e.g., "English (US)", "Spanish", - // etc. - google.protobuf.StringValue name = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Whether the language is targetable. - google.protobuf.BoolValue targetable = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/location_view.proto b/third_party/googleapis/google/ads/googleads/v2/resources/location_view.proto deleted file mode 100644 index 65c8e1126..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/location_view.proto +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "LocationViewProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the location view resource. - -// A location view summarizes the performance of campaigns by -// Location criteria. -message LocationView { - option (google.api.resource) = { - type: "googleads.googleapis.com/LocationView" - pattern: "customers/{customer}/locationViews/{location_view}" - }; - - // Output only. The resource name of the location view. - // Location view resource names have the form: - // - // `customers/{customer_id}/locationViews/{campaign_id}~{criterion_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/LocationView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/managed_placement_view.proto b/third_party/googleapis/google/ads/googleads/v2/resources/managed_placement_view.proto deleted file mode 100644 index d3e4bda08..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/managed_placement_view.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "ManagedPlacementViewProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the Managed Placement view resource. - -// A managed placement view. -message ManagedPlacementView { - option (google.api.resource) = { - type: "googleads.googleapis.com/ManagedPlacementView" - pattern: "customers/{customer}/managedPlacementViews/{managed_placement_view}" - }; - - // Output only. The resource name of the Managed Placement view. - // Managed placement view resource names have the form: - // - // `customers/{customer_id}/managedPlacementViews/{ad_group_id}~{criterion_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/ManagedPlacementView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/media_file.proto b/third_party/googleapis/google/ads/googleads/v2/resources/media_file.proto deleted file mode 100644 index 215cdce0c..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/media_file.proto +++ /dev/null @@ -1,125 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/enums/media_type.proto"; -import "google/ads/googleads/v2/enums/mime_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "MediaFileProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the media file resource. - -// A media file. -message MediaFile { - option (google.api.resource) = { - type: "googleads.googleapis.com/MediaFile" - pattern: "customers/{customer}/mediaFiles/{media_file}" - }; - - // Immutable. The resource name of the media file. - // Media file resource names have the form: - // - // `customers/{customer_id}/mediaFiles/{media_file_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/MediaFile" - } - ]; - - // Output only. The ID of the media file. - google.protobuf.Int64Value id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. Type of the media file. - google.ads.googleads.v2.enums.MediaTypeEnum.MediaType type = 5 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. The mime type of the media file. - google.ads.googleads.v2.enums.MimeTypeEnum.MimeType mime_type = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. The URL of where the original media file was downloaded from (or a file - // name). Only used for media of type AUDIO and IMAGE. - google.protobuf.StringValue source_url = 7 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. The name of the media file. The name can be used by clients to help - // identify previously uploaded media. - google.protobuf.StringValue name = 8 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. The size of the media file in bytes. - google.protobuf.Int64Value file_size = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The specific type of the media file. - oneof mediatype { - // Immutable. Encapsulates an Image. - MediaImage image = 3 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. A ZIP archive media the content of which contains HTML5 assets. - MediaBundle media_bundle = 4 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. Encapsulates an Audio. - MediaAudio audio = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. Encapsulates a Video. - MediaVideo video = 11 [(google.api.field_behavior) = IMMUTABLE]; - } -} - -// Encapsulates an Image. -message MediaImage { - // Immutable. Raw image data. - google.protobuf.BytesValue data = 1 [(google.api.field_behavior) = IMMUTABLE]; -} - -// Represents a ZIP archive media the content of which contains HTML5 assets. -message MediaBundle { - // Immutable. Raw zipped data. - google.protobuf.BytesValue data = 1 [(google.api.field_behavior) = IMMUTABLE]; -} - -// Encapsulates an Audio. -message MediaAudio { - // Output only. The duration of the Audio in milliseconds. - google.protobuf.Int64Value ad_duration_millis = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Encapsulates a Video. -message MediaVideo { - // Output only. The duration of the Video in milliseconds. - google.protobuf.Int64Value ad_duration_millis = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. The YouTube video ID (as seen in YouTube URLs). - google.protobuf.StringValue youtube_video_id = 2 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. The Advertising Digital Identification code for this video, as defined by - // the American Association of Advertising Agencies, used mainly for - // television commercials. - google.protobuf.StringValue advertising_id_code = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The Industry Standard Commercial Identifier code for this video, used - // mainly for television commercials. - google.protobuf.StringValue isci_code = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/merchant_center_link.proto b/third_party/googleapis/google/ads/googleads/v2/resources/merchant_center_link.proto deleted file mode 100644 index 49f61d3ea..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/merchant_center_link.proto +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/enums/merchant_center_link_status.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "MerchantCenterLinkProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the Merchant Center link resource. - -// A data sharing connection, proposed or in use, -// between a Google Ads Customer and a Merchant Center account. -message MerchantCenterLink { - option (google.api.resource) = { - type: "googleads.googleapis.com/MerchantCenterLink" - pattern: "customers/{customer}/merchantCenterLinks/{merchant_center_link}" - }; - - // Immutable. The resource name of the merchant center link. - // Merchant center link resource names have the form: - // - // `customers/{customer_id}/merchantCenterLinks/{merchant_center_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/MerchantCenterLink" - } - ]; - - // Output only. The ID of the Merchant Center account. - // This field is readonly. - google.protobuf.Int64Value id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The name of the Merchant Center account. - // This field is readonly. - google.protobuf.StringValue merchant_center_account_name = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The status of the link. - google.ads.googleads.v2.enums.MerchantCenterLinkStatusEnum.MerchantCenterLinkStatus status = 5; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/mobile_app_category_constant.proto b/third_party/googleapis/google/ads/googleads/v2/resources/mobile_app_category_constant.proto deleted file mode 100644 index c9f15eb8b..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/mobile_app_category_constant.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "MobileAppCategoryConstantProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the Mobile App Category Constant resource. - -// A mobile application category constant. -message MobileAppCategoryConstant { - option (google.api.resource) = { - type: "googleads.googleapis.com/MobileAppCategoryConstant" - pattern: "mobileAppCategoryConstants/{mobile_app_category_constant}" - }; - - // Output only. The resource name of the mobile app category constant. - // Mobile app category constant resource names have the form: - // - // `mobileAppCategoryConstants/{mobile_app_category_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/MobileAppCategoryConstant" - } - ]; - - // Output only. The ID of the mobile app category constant. - google.protobuf.Int32Value id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Mobile app category name. - google.protobuf.StringValue name = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/mobile_device_constant.proto b/third_party/googleapis/google/ads/googleads/v2/resources/mobile_device_constant.proto deleted file mode 100644 index 4c83d2341..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/mobile_device_constant.proto +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/enums/mobile_device_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "MobileDeviceConstantProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the mobile device constant resource. - -// A mobile device constant. -message MobileDeviceConstant { - option (google.api.resource) = { - type: "googleads.googleapis.com/MobileDeviceConstant" - pattern: "mobileDeviceConstants/{mobile_device_constant}" - }; - - // Output only. The resource name of the mobile device constant. - // Mobile device constant resource names have the form: - // - // `mobileDeviceConstants/{criterion_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/MobileDeviceConstant" - } - ]; - - // Output only. The ID of the mobile device constant. - google.protobuf.Int64Value id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The name of the mobile device. - google.protobuf.StringValue name = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The manufacturer of the mobile device. - google.protobuf.StringValue manufacturer_name = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The operating system of the mobile device. - google.protobuf.StringValue operating_system_name = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The type of mobile device. - google.ads.googleads.v2.enums.MobileDeviceTypeEnum.MobileDeviceType type = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/mutate_job.proto b/third_party/googleapis/google/ads/googleads/v2/resources/mutate_job.proto deleted file mode 100644 index 7546dd618..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/mutate_job.proto +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/enums/mutate_job_status.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "MutateJobProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the mutate job resource. - -// A list of mutates being processed asynchronously. The mutates are uploaded -// by the user. The mutates themselves aren't readable and the results of the -// job can only be read using MutateJobService.ListMutateJobResults. -message MutateJob { - option (google.api.resource) = { - type: "googleads.googleapis.com/MutateJob" - pattern: "customers/{customer}/mutateJobs/{mutate_job}" - }; - - // Additional information about the mutate job. This message is also used as - // metadata returned in mutate job Long Running Operations. - message MutateJobMetadata { - // Output only. The time when this mutate job was created. - // Formatted as yyyy-mm-dd hh:mm:ss. Example: "2018-03-05 09:15:00" - google.protobuf.StringValue creation_date_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The time when this mutate job was completed. - // Formatted as yyyy-MM-dd HH:mm:ss. Example: "2018-03-05 09:16:00" - google.protobuf.StringValue completion_date_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The fraction (between 0.0 and 1.0) of mutates that have been processed. - // This is empty if the job hasn't started running yet. - google.protobuf.DoubleValue estimated_completion_ratio = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The number of mutate operations in the mutate job. - google.protobuf.Int64Value operation_count = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The number of mutate operations executed by the mutate job. - // Present only if the job has started running. - google.protobuf.Int64Value executed_operation_count = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // Immutable. The resource name of the mutate job. - // Mutate job resource names have the form: - // - // `customers/{customer_id}/mutateJobs/{mutate_job_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/MutateJob" - } - ]; - - // Output only. ID of this mutate job. - google.protobuf.Int64Value id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The next sequence token to use when adding operations. Only set when the - // mutate job status is PENDING. - google.protobuf.StringValue next_add_sequence_token = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Contains additional information about this mutate job. - MutateJobMetadata metadata = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Status of this mutate job. - google.ads.googleads.v2.enums.MutateJobStatusEnum.MutateJobStatus status = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The resource name of the long-running operation that can be used to poll - // for completion. Only set when the mutate job status is RUNNING or DONE. - google.protobuf.StringValue long_running_operation = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/operating_system_version_constant.proto b/third_party/googleapis/google/ads/googleads/v2/resources/operating_system_version_constant.proto deleted file mode 100644 index 1c8e49483..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/operating_system_version_constant.proto +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/enums/operating_system_version_operator_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "OperatingSystemVersionConstantProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the operating system version constant resource. - -// A mobile operating system version or a range of versions, depending on -// `operator_type`. List of available mobile platforms at -// https://developers.google.com/adwords/api/docs/appendix/codes-formats#mobile-platforms -message OperatingSystemVersionConstant { - option (google.api.resource) = { - type: "googleads.googleapis.com/OperatingSystemVersionConstant" - pattern: "operatingSystemVersionConstants/{operating_system_version_constant}" - }; - - // Output only. The resource name of the operating system version constant. - // Operating system version constant resource names have the form: - // - // `operatingSystemVersionConstants/{criterion_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/OperatingSystemVersionConstant" - } - ]; - - // Output only. The ID of the operating system version. - google.protobuf.Int64Value id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Name of the operating system. - google.protobuf.StringValue name = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The OS Major Version number. - google.protobuf.Int32Value os_major_version = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The OS Minor Version number. - google.protobuf.Int32Value os_minor_version = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Determines whether this constant represents a single version or a range of - // versions. - google.ads.googleads.v2.enums.OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorType operator_type = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/paid_organic_search_term_view.proto b/third_party/googleapis/google/ads/googleads/v2/resources/paid_organic_search_term_view.proto deleted file mode 100644 index 2b24d6d1e..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/paid_organic_search_term_view.proto +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "PaidOrganicSearchTermViewProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the PaidOrganicSearchTermView resource. - -// A paid organic search term view providing a view of search stats across -// ads and organic listings aggregated by search term at the ad group level. -message PaidOrganicSearchTermView { - option (google.api.resource) = { - type: "googleads.googleapis.com/PaidOrganicSearchTermView" - pattern: "customers/{customer}/paidOrganicSearchTermViews/{paid_organic_search_term_view}" - }; - - // Output only. The resource name of the search term view. - // Search term view resource names have the form: - // - // `customers/{customer_id}/paidOrganicSearchTermViews/{campaign_id}~ - // {ad_group_id}~{URL-base64 search term}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/PaidOrganicSearchTermView" - } - ]; - - // Output only. The search term. - google.protobuf.StringValue search_term = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/parental_status_view.proto b/third_party/googleapis/google/ads/googleads/v2/resources/parental_status_view.proto deleted file mode 100644 index 7f4d36bc2..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/parental_status_view.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "ParentalStatusViewProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the parental status view resource. - -// A parental status view. -message ParentalStatusView { - option (google.api.resource) = { - type: "googleads.googleapis.com/ParentalStatusView" - pattern: "customers/{customer}/parentalStatusViews/{parental_status_view}" - }; - - // Output only. The resource name of the parental status view. - // Parental Status view resource names have the form: - // - // `customers/{customer_id}/parentalStatusViews/{ad_group_id}~{criterion_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/ParentalStatusView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/payments_account.proto b/third_party/googleapis/google/ads/googleads/v2/resources/payments_account.proto deleted file mode 100644 index 96e7c1396..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/payments_account.proto +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "PaymentsAccountProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the PaymentsAccount resource. - -// A payments account, which can be used to set up billing for an Ads customer. -message PaymentsAccount { - option (google.api.resource) = { - type: "googleads.googleapis.com/PaymentsAccount" - pattern: "customers/{customer}/paymentsAccounts/{payments_account}" - }; - - // Output only. The resource name of the payments account. - // PaymentsAccount resource names have the form: - // - // `customers/{customer_id}/paymentsAccounts/{payments_account_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/PaymentsAccount" - } - ]; - - // Output only. A 16 digit ID used to identify a payments account. - google.protobuf.StringValue payments_account_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The name of the payments account. - google.protobuf.StringValue name = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The currency code of the payments account. - // A subset of the currency codes derived from the ISO 4217 standard is - // supported. - google.protobuf.StringValue currency_code = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. A 12 digit ID used to identify the payments profile associated with the - // payments account. - google.protobuf.StringValue payments_profile_id = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. A secondary payments profile ID present in uncommon situations, e.g. - // when a sequential liability agreement has been arranged. - google.protobuf.StringValue secondary_payments_profile_id = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/product_bidding_category_constant.proto b/third_party/googleapis/google/ads/googleads/v2/resources/product_bidding_category_constant.proto deleted file mode 100644 index 06a261897..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/product_bidding_category_constant.proto +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/enums/product_bidding_category_level.proto"; -import "google/ads/googleads/v2/enums/product_bidding_category_status.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "ProductBiddingCategoryConstantProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the ProductBiddingCategoryConstant resource. - -// A Product Bidding Category. -message ProductBiddingCategoryConstant { - option (google.api.resource) = { - type: "googleads.googleapis.com/ProductBiddingCategoryConstant" - pattern: "productBiddingCategoryConstants/{product_bidding_category_constant}" - }; - - // Output only. The resource name of the product bidding category. - // Product bidding category resource names have the form: - // - // `productBiddingCategoryConstants/{country_code}~{level}~{id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/ProductBiddingCategoryConstant" - } - ]; - - // Output only. ID of the product bidding category. - // - // This ID is equivalent to the google_product_category ID as described in - // this article: https://support.google.com/merchants/answer/6324436. - google.protobuf.Int64Value id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Two-letter upper-case country code of the product bidding category. - google.protobuf.StringValue country_code = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Resource name of the parent product bidding category. - google.protobuf.StringValue product_bidding_category_constant_parent = 4 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/ProductBiddingCategoryConstant" - } - ]; - - // Output only. Level of the product bidding category. - google.ads.googleads.v2.enums.ProductBiddingCategoryLevelEnum.ProductBiddingCategoryLevel level = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Status of the product bidding category. - google.ads.googleads.v2.enums.ProductBiddingCategoryStatusEnum.ProductBiddingCategoryStatus status = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Language code of the product bidding category. - google.protobuf.StringValue language_code = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Display value of the product bidding category localized according to - // language_code. - google.protobuf.StringValue localized_name = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/product_group_view.proto b/third_party/googleapis/google/ads/googleads/v2/resources/product_group_view.proto deleted file mode 100644 index 9d02f20ab..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/product_group_view.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "ProductGroupViewProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the ProductGroup View resource. - -// A product group view. -message ProductGroupView { - option (google.api.resource) = { - type: "googleads.googleapis.com/ProductGroupView" - pattern: "customers/{customer}/productGroupViews/{product_group_view}" - }; - - // Output only. The resource name of the product group view. - // Product group view resource names have the form: - // - // `customers/{customer_id}/productGroupViews/{ad_group_id}~{criterion_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/ProductGroupView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/recommendation.proto b/third_party/googleapis/google/ads/googleads/v2/resources/recommendation.proto deleted file mode 100644 index 0d3fd3c69..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/recommendation.proto +++ /dev/null @@ -1,319 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/common/criteria.proto"; -import "google/ads/googleads/v2/common/extensions.proto"; -import "google/ads/googleads/v2/enums/keyword_match_type.proto"; -import "google/ads/googleads/v2/enums/recommendation_type.proto"; -import "google/ads/googleads/v2/enums/target_cpa_opt_in_recommendation_goal.proto"; -import "google/ads/googleads/v2/resources/ad.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "RecommendationProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the Recommendation resource. - -// A recommendation. -message Recommendation { - option (google.api.resource) = { - type: "googleads.googleapis.com/Recommendation" - pattern: "customers/{customer}/recommendations/{recommendation}" - }; - - // The impact of making the change as described in the recommendation. - // Some types of recommendations may not have impact information. - message RecommendationImpact { - // Output only. Base metrics at the time the recommendation was generated. - RecommendationMetrics base_metrics = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Estimated metrics if the recommendation is applied. - RecommendationMetrics potential_metrics = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // Weekly account performance metrics. For some recommendation types, these - // are averaged over the past 90-day period and hence can be fractional. - message RecommendationMetrics { - // Output only. Number of ad impressions. - google.protobuf.DoubleValue impressions = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Number of ad clicks. - google.protobuf.DoubleValue clicks = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Cost (in micros) for advertising, in the local currency for the account. - google.protobuf.Int64Value cost_micros = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Number of conversions. - google.protobuf.DoubleValue conversions = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Number of video views for a video ad campaign. - google.protobuf.DoubleValue video_views = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // The budget recommendation for budget constrained campaigns. - message CampaignBudgetRecommendation { - // The impact estimates for a given budget amount. - message CampaignBudgetRecommendationOption { - // Output only. The budget amount for this option. - google.protobuf.Int64Value budget_amount_micros = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The impact estimate if budget is changed to amount specified in this - // option. - RecommendationImpact impact = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // Output only. The current budget amount in micros. - google.protobuf.Int64Value current_budget_amount_micros = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The recommended budget amount in micros. - google.protobuf.Int64Value recommended_budget_amount_micros = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The budget amounts and associated impact estimates for some values of - // possible budget amounts. - repeated CampaignBudgetRecommendationOption budget_options = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // The keyword recommendation. - message KeywordRecommendation { - // Output only. The recommended keyword. - google.ads.googleads.v2.common.KeywordInfo keyword = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The recommended CPC (cost-per-click) bid. - google.protobuf.Int64Value recommended_cpc_bid_micros = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // The move unused budget recommendation. - message MoveUnusedBudgetRecommendation { - // Output only. The excess budget's resource_name. - google.protobuf.StringValue excess_campaign_budget = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The recommendation for the constrained budget to increase. - CampaignBudgetRecommendation budget_recommendation = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // The text ad recommendation. - message TextAdRecommendation { - // Output only. Recommended ad. - Ad ad = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Creation date of the recommended ad. - // YYYY-MM-DD format, e.g., 2018-04-17. - google.protobuf.StringValue creation_date = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Date, if present, is the earliest when the recommendation will be auto - // applied. - // YYYY-MM-DD format, e.g., 2018-04-17. - google.protobuf.StringValue auto_apply_date = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // The Target CPA opt-in recommendation. - message TargetCpaOptInRecommendation { - // The Target CPA opt-in option with impact estimate. - message TargetCpaOptInRecommendationOption { - // Output only. The goal achieved by this option. - google.ads.googleads.v2.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal goal = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Average CPA target. - google.protobuf.Int64Value target_cpa_micros = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The minimum campaign budget, in local currency for the account, - // required to achieve the target CPA. - // Amount is specified in micros, where one million is equivalent to one - // currency unit. - google.protobuf.Int64Value required_campaign_budget_amount_micros = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The impact estimate if this option is selected. - RecommendationImpact impact = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // Output only. The available goals and corresponding options for Target CPA strategy. - repeated TargetCpaOptInRecommendationOption options = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The recommended average CPA target. See required budget amount and impact - // of using this recommendation in options list. - google.protobuf.Int64Value recommended_target_cpa_micros = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // The Maximize Conversions Opt-In recommendation. - message MaximizeConversionsOptInRecommendation { - // Output only. The recommended new budget amount. - google.protobuf.Int64Value recommended_budget_amount_micros = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // The Enhanced Cost-Per-Click Opt-In recommendation. - message EnhancedCpcOptInRecommendation { - - } - - // The Search Partners Opt-In recommendation. - message SearchPartnersOptInRecommendation { - - } - - // The Maximize Clicks opt-in recommendation. - message MaximizeClicksOptInRecommendation { - // Output only. The recommended new budget amount. - // Only set if the current budget is too high. - google.protobuf.Int64Value recommended_budget_amount_micros = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // The keyword match type recommendation. - message KeywordMatchTypeRecommendation { - // Output only. The existing keyword where the match type should be more broad. - google.ads.googleads.v2.common.KeywordInfo keyword = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The recommended new match type. - google.ads.googleads.v2.enums.KeywordMatchTypeEnum.KeywordMatchType recommended_match_type = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // The Optimize Ad Rotation recommendation. - message OptimizeAdRotationRecommendation { - - } - - // The Callout extension recommendation. - message CalloutExtensionRecommendation { - // Output only. Callout extensions recommended to be added. - repeated google.ads.googleads.v2.common.CalloutFeedItem recommended_extensions = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // The Sitelink extension recommendation. - message SitelinkExtensionRecommendation { - // Output only. Sitelink extensions recommended to be added. - repeated google.ads.googleads.v2.common.SitelinkFeedItem recommended_extensions = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // The Call extension recommendation. - message CallExtensionRecommendation { - // Output only. Call extensions recommended to be added. - repeated google.ads.googleads.v2.common.CallFeedItem recommended_extensions = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // Immutable. The resource name of the recommendation. - // - // `customers/{customer_id}/recommendations/{recommendation_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Recommendation" - } - ]; - - // Output only. The type of recommendation. - google.ads.googleads.v2.enums.RecommendationTypeEnum.RecommendationType type = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The impact on account performance as a result of applying the - // recommendation. - RecommendationImpact impact = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The budget targeted by this recommendation. This will be set only when - // the recommendation affects a single campaign budget. - // - // This field will be set for the following recommendation types: - // CAMPAIGN_BUDGET, FORECASTING_CAMPAIGN_BUDGET, MOVE_UNUSED_BUDGET - google.protobuf.StringValue campaign_budget = 5 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignBudget" - } - ]; - - // Output only. The campaign targeted by this recommendation. This will be set only when - // the recommendation affects a single campaign. - // - // This field will be set for the following recommendation types: - // CALL_EXTENSION, CALLOUT_EXTENSION, ENHANCED_CPC_OPT_IN, KEYWORD, - // KEYWORD_MATCH_TYPE, MAXIMIZE_CLICKS_OPT_IN, MAXIMIZE_CONVERSIONS_OPT_IN, - // OPTIMIZE_AD_ROTATION, SEARCH_PARTNERS_OPT_IN, SITELINK_EXTENSION, - // TARGET_CPA_OPT_IN, TARGET_ROAS_OPT_IN, TEXT_AD - google.protobuf.StringValue campaign = 6 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Campaign" - } - ]; - - // Output only. The ad group targeted by this recommendation. This will be set only when - // the recommendation affects a single ad group. - // - // This field will be set for the following recommendation types: - // KEYWORD, OPTIMIZE_AD_ROTATION, TEXT_AD - google.protobuf.StringValue ad_group = 7 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroup" - } - ]; - - // Output only. Whether the recommendation is dismissed or not. - google.protobuf.BoolValue dismissed = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The details of recommendation. - oneof recommendation { - // Output only. The campaign budget recommendation. - CampaignBudgetRecommendation campaign_budget_recommendation = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The keyword recommendation. - KeywordRecommendation keyword_recommendation = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Add expanded text ad recommendation. - TextAdRecommendation text_ad_recommendation = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The TargetCPA opt-in recommendation. - TargetCpaOptInRecommendation target_cpa_opt_in_recommendation = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The MaximizeConversions Opt-In recommendation. - MaximizeConversionsOptInRecommendation maximize_conversions_opt_in_recommendation = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The Enhanced Cost-Per-Click Opt-In recommendation. - EnhancedCpcOptInRecommendation enhanced_cpc_opt_in_recommendation = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The Search Partners Opt-In recommendation. - SearchPartnersOptInRecommendation search_partners_opt_in_recommendation = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The MaximizeClicks Opt-In recommendation. - MaximizeClicksOptInRecommendation maximize_clicks_opt_in_recommendation = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The Optimize Ad Rotation recommendation. - OptimizeAdRotationRecommendation optimize_ad_rotation_recommendation = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The Callout extension recommendation. - CalloutExtensionRecommendation callout_extension_recommendation = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The Sitelink extension recommendation. - SitelinkExtensionRecommendation sitelink_extension_recommendation = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The Call extension recommendation. - CallExtensionRecommendation call_extension_recommendation = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The keyword match type recommendation. - KeywordMatchTypeRecommendation keyword_match_type_recommendation = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The move unused budget recommendation. - MoveUnusedBudgetRecommendation move_unused_budget_recommendation = 21 [(google.api.field_behavior) = OUTPUT_ONLY]; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/remarketing_action.proto b/third_party/googleapis/google/ads/googleads/v2/resources/remarketing_action.proto deleted file mode 100644 index f055fecee..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/remarketing_action.proto +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/common/tag_snippet.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "RemarketingActionProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the Remarketing Action resource. - -// A remarketing action. A snippet of JavaScript code that will collect the -// product id and the type of page people visited (product page, shopping cart -// page, purchase page, general site visit) on an advertiser's website. -message RemarketingAction { - option (google.api.resource) = { - type: "googleads.googleapis.com/RemarketingAction" - pattern: "customers/{customer}/remarketingActions/{remarketing_action}" - }; - - // Immutable. The resource name of the remarketing action. - // Remarketing action resource names have the form: - // - // `customers/{customer_id}/remarketingActions/{remarketing_action_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/RemarketingAction" - } - ]; - - // Output only. Id of the remarketing action. - google.protobuf.Int64Value id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The name of the remarketing action. - // - // This field is required and should not be empty when creating new - // remarketing actions. - google.protobuf.StringValue name = 3; - - // Output only. The snippets used for tracking remarketing actions. - repeated google.ads.googleads.v2.common.TagSnippet tag_snippets = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/search_term_view.proto b/third_party/googleapis/google/ads/googleads/v2/resources/search_term_view.proto deleted file mode 100644 index 0ffc45dc6..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/search_term_view.proto +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/enums/search_term_targeting_status.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "SearchTermViewProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the SearchTermView resource. - -// A search term view with metrics aggregated by search term at the ad group -// level. -message SearchTermView { - option (google.api.resource) = { - type: "googleads.googleapis.com/SearchTermView" - pattern: "customers/{customer}/searchTermViews/{search_term_view}" - }; - - // Output only. The resource name of the search term view. - // Search term view resource names have the form: - // - // `customers/{customer_id}/searchTermViews/{campaign_id}~{ad_group_id}~{URL-base64_search_term}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/SearchTermView" - } - ]; - - // Output only. The search term. - google.protobuf.StringValue search_term = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The ad group the search term served in. - google.protobuf.StringValue ad_group = 3 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroup" - } - ]; - - // Output only. Indicates whether the search term is currently one of your - // targeted or excluded keywords. - google.ads.googleads.v2.enums.SearchTermTargetingStatusEnum.SearchTermTargetingStatus status = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/shared_criterion.proto b/third_party/googleapis/google/ads/googleads/v2/resources/shared_criterion.proto deleted file mode 100644 index bdcac8039..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/shared_criterion.proto +++ /dev/null @@ -1,93 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/common/criteria.proto"; -import "google/ads/googleads/v2/enums/criterion_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "SharedCriterionProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the SharedCriterion resource. - -// A criterion belonging to a shared set. -message SharedCriterion { - option (google.api.resource) = { - type: "googleads.googleapis.com/SharedCriterion" - pattern: "customers/{customer}/sharedCriteria/{shared_criterion}" - }; - - // Immutable. The resource name of the shared criterion. - // Shared set resource names have the form: - // - // `customers/{customer_id}/sharedCriteria/{shared_set_id}~{criterion_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/SharedCriterion" - } - ]; - - // Immutable. The shared set to which the shared criterion belongs. - google.protobuf.StringValue shared_set = 2 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/SharedSet" - } - ]; - - // Output only. The ID of the criterion. - // - // This field is ignored for mutates. - google.protobuf.Int64Value criterion_id = 26 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The type of the criterion. - google.ads.googleads.v2.enums.CriterionTypeEnum.CriterionType type = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The criterion. - // - // Exactly one must be set. - oneof criterion { - // Immutable. Keyword. - google.ads.googleads.v2.common.KeywordInfo keyword = 3 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. YouTube Video. - google.ads.googleads.v2.common.YouTubeVideoInfo youtube_video = 5 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. YouTube Channel. - google.ads.googleads.v2.common.YouTubeChannelInfo youtube_channel = 6 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Placement. - google.ads.googleads.v2.common.PlacementInfo placement = 7 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Mobile App Category. - google.ads.googleads.v2.common.MobileAppCategoryInfo mobile_app_category = 8 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Mobile application. - google.ads.googleads.v2.common.MobileApplicationInfo mobile_application = 9 [(google.api.field_behavior) = IMMUTABLE]; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/shared_set.proto b/third_party/googleapis/google/ads/googleads/v2/resources/shared_set.proto deleted file mode 100644 index b7a8edc26..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/shared_set.proto +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/enums/shared_set_status.proto"; -import "google/ads/googleads/v2/enums/shared_set_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "SharedSetProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the SharedSet resource. - -// SharedSets are used for sharing criterion exclusions across multiple -// campaigns. -message SharedSet { - option (google.api.resource) = { - type: "googleads.googleapis.com/SharedSet" - pattern: "customers/{customer}/sharedSets/{shared_set}" - }; - - // Immutable. The resource name of the shared set. - // Shared set resource names have the form: - // - // `customers/{customer_id}/sharedSets/{shared_set_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/SharedSet" - } - ]; - - // Output only. The ID of this shared set. Read only. - google.protobuf.Int64Value id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. The type of this shared set: each shared set holds only a single kind - // of resource. Required. Immutable. - google.ads.googleads.v2.enums.SharedSetTypeEnum.SharedSetType type = 3 [(google.api.field_behavior) = IMMUTABLE]; - - // The name of this shared set. Required. - // Shared Sets must have names that are unique among active shared sets of - // the same type. - // The length of this string should be between 1 and 255 UTF-8 bytes, - // inclusive. - google.protobuf.StringValue name = 4; - - // Output only. The status of this shared set. Read only. - google.ads.googleads.v2.enums.SharedSetStatusEnum.SharedSetStatus status = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The number of shared criteria within this shared set. Read only. - google.protobuf.Int64Value member_count = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The number of campaigns associated with this shared set. Read only. - google.protobuf.Int64Value reference_count = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/shopping_performance_view.proto b/third_party/googleapis/google/ads/googleads/v2/resources/shopping_performance_view.proto deleted file mode 100644 index 314418264..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/shopping_performance_view.proto +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "ShoppingPerformanceViewProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the ShoppingPerformanceView resource. - -// Shopping performance view. -// Provides Shopping campaign statistics aggregated at several product dimension -// levels. Product dimension values from Merchant Center such as brand, -// category, custom attributes, product condition and product type will reflect -// the state of each dimension as of the date and time when the corresponding -// event was recorded. -message ShoppingPerformanceView { - option (google.api.resource) = { - type: "googleads.googleapis.com/ShoppingPerformanceView" - pattern: "customers/{customer}/shoppingPerformanceView" - }; - - // Output only. The resource name of the Shopping performance view. - // Shopping performance view resource names have the form: - // `customers/{customer_id}/shoppingPerformanceView` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/ShoppingPerformanceView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/topic_constant.proto b/third_party/googleapis/google/ads/googleads/v2/resources/topic_constant.proto deleted file mode 100644 index fcfc5c4aa..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/topic_constant.proto +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "TopicConstantProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the Topic Constant resource. - -// Use topics to target or exclude placements in the Google Display Network -// based on the category into which the placement falls (for example, -// "Pets & Animals/Pets/Dogs"). -message TopicConstant { - option (google.api.resource) = { - type: "googleads.googleapis.com/TopicConstant" - pattern: "topicConstants/{topic_constant}" - }; - - // Output only. The resource name of the topic constant. - // topic constant resource names have the form: - // - // `topicConstants/{topic_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/TopicConstant" - } - ]; - - // Output only. The ID of the topic. - google.protobuf.Int64Value id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Resource name of parent of the topic constant. - google.protobuf.StringValue topic_constant_parent = 3 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/TopicConstant" - } - ]; - - // Output only. The category to target or exclude. Each subsequent element in the array - // describes a more specific sub-category. For example, - // {"Pets & Animals", "Pets", "Dogs"} represents the - // "Pets & Animals/Pets/Dogs" category. List of available topic categories at - // https://developers.google.com/adwords/api/docs/appendix/verticals - repeated google.protobuf.StringValue path = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/topic_view.proto b/third_party/googleapis/google/ads/googleads/v2/resources/topic_view.proto deleted file mode 100644 index 73a0aaedc..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/topic_view.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "TopicViewProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the topic view resource. - -// A topic view. -message TopicView { - option (google.api.resource) = { - type: "googleads.googleapis.com/TopicView" - pattern: "customers/{customer}/topicViews/{topic_view}" - }; - - // Output only. The resource name of the topic view. - // Topic view resource names have the form: - // - // `customers/{customer_id}/topicViews/{ad_group_id}~{criterion_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/TopicView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/user_interest.proto b/third_party/googleapis/google/ads/googleads/v2/resources/user_interest.proto deleted file mode 100644 index a393cf70c..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/user_interest.proto +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/common/criterion_category_availability.proto"; -import "google/ads/googleads/v2/enums/user_interest_taxonomy_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "UserInterestProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the User Interest resource. - -// A user interest: a particular interest-based vertical to be targeted. -message UserInterest { - option (google.api.resource) = { - type: "googleads.googleapis.com/UserInterest" - pattern: "customers/{customer}/userInterests/{user_interest}" - }; - - // Output only. The resource name of the user interest. - // User interest resource names have the form: - // - // `customers/{customer_id}/userInterests/{user_interest_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/UserInterest" - } - ]; - - // Output only. Taxonomy type of the user interest. - google.ads.googleads.v2.enums.UserInterestTaxonomyTypeEnum.UserInterestTaxonomyType taxonomy_type = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The ID of the user interest. - google.protobuf.Int64Value user_interest_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The name of the user interest. - google.protobuf.StringValue name = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The parent of the user interest. - google.protobuf.StringValue user_interest_parent = 5 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/UserInterest" - } - ]; - - // Output only. True if the user interest is launched to all channels and locales. - google.protobuf.BoolValue launched_to_all = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Availability information of the user interest. - repeated google.ads.googleads.v2.common.CriterionCategoryAvailability availabilities = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/user_list.proto b/third_party/googleapis/google/ads/googleads/v2/resources/user_list.proto deleted file mode 100644 index 35d15acdb..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/user_list.proto +++ /dev/null @@ -1,168 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/ads/googleads/v2/common/user_lists.proto"; -import "google/ads/googleads/v2/enums/access_reason.proto"; -import "google/ads/googleads/v2/enums/user_list_access_status.proto"; -import "google/ads/googleads/v2/enums/user_list_closing_reason.proto"; -import "google/ads/googleads/v2/enums/user_list_membership_status.proto"; -import "google/ads/googleads/v2/enums/user_list_size_range.proto"; -import "google/ads/googleads/v2/enums/user_list_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "UserListProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the User List resource. - -// A user list. This is a list of users a customer may target. -message UserList { - option (google.api.resource) = { - type: "googleads.googleapis.com/UserList" - pattern: "customers/{customer}/userLists/{user_list}" - }; - - // Immutable. The resource name of the user list. - // User list resource names have the form: - // - // `customers/{customer_id}/userLists/{user_list_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/UserList" - } - ]; - - // Output only. Id of the user list. - google.protobuf.Int64Value id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. A flag that indicates if a user may edit a list. Depends on the list - // ownership and list type. For example, external remarketing user lists are - // not editable. - // - // This field is read-only. - google.protobuf.BoolValue read_only = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Name of this user list. Depending on its access_reason, the user list name - // may not be unique (e.g. if access_reason=SHARED) - google.protobuf.StringValue name = 4; - - // Description of this user list. - google.protobuf.StringValue description = 5; - - // 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.v2.enums.UserListMembershipStatusEnum.UserListMembershipStatus membership_status = 6; - - // An ID from external system. It is used by user list sellers to correlate - // IDs on their systems. - google.protobuf.StringValue integration_code = 7; - - // Number of days a user's cookie stays on your list since its most recent - // addition to the list. This field must be between 0 and 540 inclusive. - // However, for CRM based userlists, this field can be set to 10000 which - // means no expiration. - // - // It'll be ignored for logical_user_list. - google.protobuf.Int64Value membership_life_span = 8; - - // Output only. Estimated number of users in this user list, on the Google Display Network. - // This value is null if the number of users has not yet been determined. - // - // This field is read-only. - google.protobuf.Int64Value size_for_display = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Size range in terms of number of users of the UserList, on the Google - // Display Network. - // - // This field is read-only. - google.ads.googleads.v2.enums.UserListSizeRangeEnum.UserListSizeRange size_range_for_display = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Estimated number of users in this user list in the google.com domain. - // These are the users available for targeting in Search campaigns. - // This value is null if the number of users has not yet been determined. - // - // This field is read-only. - google.protobuf.Int64Value size_for_search = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Size range in terms of number of users of the UserList, for Search ads. - // - // This field is read-only. - google.ads.googleads.v2.enums.UserListSizeRangeEnum.UserListSizeRange size_range_for_search = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Type of this list. - // - // This field is read-only. - google.ads.googleads.v2.enums.UserListTypeEnum.UserListType type = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // 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.v2.enums.UserListClosingReasonEnum.UserListClosingReason closing_reason = 14; - - // Output only. 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.v2.enums.AccessReasonEnum.AccessReason access_reason = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // 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.v2.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; - - // Output only. Indicates this user list is eligible for Google Display Network. - // - // This field is read-only. - google.protobuf.BoolValue eligible_for_display = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The user list. - // - // Exactly one must be set. - oneof user_list { - // User list of CRM users provided by the advertiser. - google.ads.googleads.v2.common.CrmBasedUserListInfo crm_based_user_list = 19; - - // Output only. User list which are similar to users from another UserList. - // These lists are readonly and automatically created by google. - google.ads.googleads.v2.common.SimilarUserListInfo similar_user_list = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // User list generated by a rule. - google.ads.googleads.v2.common.RuleBasedUserListInfo rule_based_user_list = 21; - - // User list that is a custom combination of user lists and user interests. - google.ads.googleads.v2.common.LogicalUserListInfo logical_user_list = 22; - - // User list targeting as a collection of conversion or remarketing actions. - google.ads.googleads.v2.common.BasicUserListInfo basic_user_list = 23; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/user_location_view.proto b/third_party/googleapis/google/ads/googleads/v2/resources/user_location_view.proto deleted file mode 100644 index 759835cab..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/user_location_view.proto +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "UserLocationViewProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the user location view resource. - -// A user location view. -// -// User Location View includes all metrics aggregated at the country level, -// one row per country. It reports metrics at the actual physical location of -// the user by targeted or not targeted location. If other segment fields are -// used, you may get more than one row per country. -message UserLocationView { - option (google.api.resource) = { - type: "googleads.googleapis.com/UserLocationView" - pattern: "customers/{customer}/userLocationViews/{user_location_view}" - }; - - // Output only. The resource name of the user location view. - // UserLocation view resource names have the form: - // - // `customers/{customer_id}/userLocationViews/{country_criterion_id}~{targeting_location}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/UserLocationView" - } - ]; - - // Output only. Criterion Id for the country. - google.protobuf.Int64Value country_criterion_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Indicates whether location was targeted or not. - google.protobuf.BoolValue targeting_location = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/resources/video.proto b/third_party/googleapis/google/ads/googleads/v2/resources/video.proto deleted file mode 100644 index d2f838fdb..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/resources/video.proto +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "VideoProto"; -option java_package = "com.google.ads.googleads.v2.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V2::Resources"; - -// Proto file describing the video resource. - -// A video. -message Video { - option (google.api.resource) = { - type: "googleads.googleapis.com/Video" - pattern: "customers/{customer}/videos/{video}" - }; - - // Output only. The resource name of the video. - // Video resource names have the form: - // - // `customers/{customer_id}/videos/{video_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Video" - } - ]; - - // Output only. The ID of the video. - google.protobuf.StringValue id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The owner channel id of the video. - google.protobuf.StringValue channel_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The duration of the video in milliseconds. - google.protobuf.Int64Value duration_millis = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The title of the video. - google.protobuf.StringValue title = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/account_budget_proposal_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/account_budget_proposal_service.proto deleted file mode 100644 index 40cc7c9b8..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/account_budget_proposal_service.proto +++ /dev/null @@ -1,137 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/account_budget_proposal.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "AccountBudgetProposalServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the AccountBudgetProposal service. - -// A service for managing account-level budgets via proposals. -// -// A proposal is a request to create a new budget or make changes to an -// existing one. -// -// Reads for account-level budgets managed by these proposals will be -// supported in a future version. Until then, please use the -// BudgetOrderService from the AdWords API. Learn more at -// https://developers.google.com/adwords/api/docs/guides/budget-order -// -// Mutates: -// The CREATE operation creates a new proposal. -// UPDATE operations aren't supported. -// The REMOVE operation cancels a pending proposal. -service AccountBudgetProposalService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns an account-level budget proposal in full detail. - rpc GetAccountBudgetProposal(GetAccountBudgetProposalRequest) returns (google.ads.googleads.v2.resources.AccountBudgetProposal) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/accountBudgetProposals/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes account budget proposals. Operation statuses - // are returned. - rpc MutateAccountBudgetProposal(MutateAccountBudgetProposalRequest) returns (MutateAccountBudgetProposalResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/accountBudgetProposals:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operation"; - } -} - -// Request message for -// [AccountBudgetProposalService.GetAccountBudgetProposal][google.ads.googleads.v2.services.AccountBudgetProposalService.GetAccountBudgetProposal]. -message GetAccountBudgetProposalRequest { - // Required. The resource name of the account-level budget proposal to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AccountBudgetProposal" - } - ]; -} - -// Request message for -// [AccountBudgetProposalService.MutateAccountBudgetProposal][google.ads.googleads.v2.services.AccountBudgetProposalService.MutateAccountBudgetProposal]. -message MutateAccountBudgetProposalRequest { - // Required. The ID of the customer. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The operation to perform on an individual account-level budget proposal. - AccountBudgetProposalOperation operation = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 3; -} - -// A single operation to propose the creation of a new account-level budget or -// edit/end/remove an existing one. -message AccountBudgetProposalOperation { - // FieldMask that determines which budget fields are modified. While budgets - // may be modified, proposals that propose such modifications are final. - // Therefore, update operations are not supported for proposals. - // - // Proposals that modify budgets have the 'update' proposal type. Specifying - // a mask for any other proposal type is considered an error. - google.protobuf.FieldMask update_mask = 3; - - // The mutate operation. - oneof operation { - // Create operation: A new proposal to create a new budget, edit an - // existing budget, end an actively running budget, or remove an approved - // budget scheduled to start in the future. - // No resource name is expected for the new proposal. - google.ads.googleads.v2.resources.AccountBudgetProposal create = 2; - - // Remove operation: A resource name for the removed proposal is expected, - // in this format: - // - // `customers/{customer_id}/accountBudgetProposals/{account_budget_proposal_id}` - // A request may be cancelled iff it is pending. - string remove = 1; - } -} - -// Response message for account-level budget mutate operations. -message MutateAccountBudgetProposalResponse { - // The result of the mutate. - MutateAccountBudgetProposalResult result = 2; -} - -// The result for the account budget proposal mutate. -message MutateAccountBudgetProposalResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/account_budget_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/account_budget_service.proto deleted file mode 100644 index 8aaa8663a..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/account_budget_service.proto +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/account_budget.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "AccountBudgetServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the AccountBudget service. - -// A service for fetching an account-level budget. -// -// Account-level budgets are mutated by creating proposal resources. -service AccountBudgetService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns an account-level budget in full detail. - rpc GetAccountBudget(GetAccountBudgetRequest) returns (google.ads.googleads.v2.resources.AccountBudget) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/accountBudgets/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for -// [AccountBudgetService.GetAccountBudget][google.ads.googleads.v2.services.AccountBudgetService.GetAccountBudget]. -message GetAccountBudgetRequest { - // Required. The resource name of the account-level budget to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AccountBudget" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/ad_group_ad_asset_view_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/ad_group_ad_asset_view_service.proto deleted file mode 100644 index 93a0cb758..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/ad_group_ad_asset_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/ad_group_ad_asset_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupAdAssetViewServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the ad group ad asset view service. - -// Service to fetch ad group ad asset views. -service AdGroupAdAssetViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested ad group ad asset view in full detail. - rpc GetAdGroupAdAssetView(GetAdGroupAdAssetViewRequest) returns (google.ads.googleads.v2.resources.AdGroupAdAssetView) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/adGroupAdAssetViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [AdGroupAdAssetViewService.GetAdGroupAdAssetView][google.ads.googleads.v2.services.AdGroupAdAssetViewService.GetAdGroupAdAssetView]. -message GetAdGroupAdAssetViewRequest { - // Required. The resource name of the ad group ad asset view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupAdAssetView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/ad_group_ad_label_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/ad_group_ad_label_service.proto deleted file mode 100644 index b1bbad731..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/ad_group_ad_label_service.proto +++ /dev/null @@ -1,123 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/ad_group_ad_label.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupAdLabelServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Ad Group Ad Label service. - -// Service to manage labels on ad group ads. -service AdGroupAdLabelService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested ad group ad label in full detail. - rpc GetAdGroupAdLabel(GetAdGroupAdLabelRequest) returns (google.ads.googleads.v2.resources.AdGroupAdLabel) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/adGroupAdLabels/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates and removes ad group ad labels. - // Operation statuses are returned. - rpc MutateAdGroupAdLabels(MutateAdGroupAdLabelsRequest) returns (MutateAdGroupAdLabelsResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/adGroupAdLabels:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [AdGroupAdLabelService.GetAdGroupAdLabel][google.ads.googleads.v2.services.AdGroupAdLabelService.GetAdGroupAdLabel]. -message GetAdGroupAdLabelRequest { - // Required. The resource name of the ad group ad label to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupAdLabel" - } - ]; -} - -// Request message for [AdGroupAdLabelService.MutateAdGroupAdLabels][google.ads.googleads.v2.services.AdGroupAdLabelService.MutateAdGroupAdLabels]. -message MutateAdGroupAdLabelsRequest { - // Required. ID of the customer whose ad group ad labels are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on ad group ad labels. - repeated AdGroupAdLabelOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, remove) on an ad group ad label. -message AdGroupAdLabelOperation { - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new ad group ad - // label. - google.ads.googleads.v2.resources.AdGroupAdLabel create = 1; - - // Remove operation: A resource name for the ad group ad label - // being removed, in this format: - // - // `customers/{customer_id}/adGroupAdLabels/{ad_group_id}~{ad_id} - // _{label_id}` - string remove = 2; - } -} - -// Response message for an ad group ad labels mutate. -message MutateAdGroupAdLabelsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateAdGroupAdLabelResult results = 2; -} - -// The result for an ad group ad label mutate. -message MutateAdGroupAdLabelResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/ad_group_ad_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/ad_group_ad_service.proto deleted file mode 100644 index 566ddc0ca..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/ad_group_ad_service.proto +++ /dev/null @@ -1,131 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/common/policy.proto"; -import "google/ads/googleads/v2/resources/ad_group_ad.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupAdServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Ad Group Ad service. - -// Service to manage ads in an ad group. -service AdGroupAdService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested ad in full detail. - rpc GetAdGroupAd(GetAdGroupAdRequest) returns (google.ads.googleads.v2.resources.AdGroupAd) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/adGroupAds/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes ads. Operation statuses are returned. - rpc MutateAdGroupAds(MutateAdGroupAdsRequest) returns (MutateAdGroupAdsResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/adGroupAds:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [AdGroupAdService.GetAdGroupAd][google.ads.googleads.v2.services.AdGroupAdService.GetAdGroupAd]. -message GetAdGroupAdRequest { - // Required. The resource name of the ad to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupAd" - } - ]; -} - -// Request message for [AdGroupAdService.MutateAdGroupAds][google.ads.googleads.v2.services.AdGroupAdService.MutateAdGroupAds]. -message MutateAdGroupAdsRequest { - // Required. The ID of the customer whose ads are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual ads. - repeated AdGroupAdOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update, remove) on an ad group ad. -message AdGroupAdOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // Configuration for how policies are validated. - google.ads.googleads.v2.common.PolicyValidationParameter policy_validation_parameter = 5; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new ad. - google.ads.googleads.v2.resources.AdGroupAd create = 1; - - // Update operation: The ad is expected to have a valid resource name. - google.ads.googleads.v2.resources.AdGroupAd update = 2; - - // Remove operation: A resource name for the removed ad is expected, - // in this format: - // - // `customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}` - string remove = 3; - } -} - -// Response message for an ad group ad mutate. -message MutateAdGroupAdsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateAdGroupAdResult results = 2; -} - -// The result for the ad mutate. -message MutateAdGroupAdResult { - // The resource name returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/ad_group_audience_view_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/ad_group_audience_view_service.proto deleted file mode 100644 index 4182ae5f9..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/ad_group_audience_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/ad_group_audience_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupAudienceViewServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the AdGroup Audience View service. - -// Service to manage ad group audience views. -service AdGroupAudienceViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested ad group audience view in full detail. - rpc GetAdGroupAudienceView(GetAdGroupAudienceViewRequest) returns (google.ads.googleads.v2.resources.AdGroupAudienceView) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/adGroupAudienceViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [AdGroupAudienceViewService.GetAdGroupAudienceView][google.ads.googleads.v2.services.AdGroupAudienceViewService.GetAdGroupAudienceView]. -message GetAdGroupAudienceViewRequest { - // Required. The resource name of the ad group audience view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupAudienceView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/ad_group_bid_modifier_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/ad_group_bid_modifier_service.proto deleted file mode 100644 index 9f58476e7..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/ad_group_bid_modifier_service.proto +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/ad_group_bid_modifier.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupBidModifierServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Ad Group Bid Modifier service. - -// Service to manage ad group bid modifiers. -service AdGroupBidModifierService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested ad group bid modifier in full detail. - rpc GetAdGroupBidModifier(GetAdGroupBidModifierRequest) returns (google.ads.googleads.v2.resources.AdGroupBidModifier) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/adGroupBidModifiers/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes ad group bid modifiers. - // Operation statuses are returned. - rpc MutateAdGroupBidModifiers(MutateAdGroupBidModifiersRequest) returns (MutateAdGroupBidModifiersResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/adGroupBidModifiers:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [AdGroupBidModifierService.GetAdGroupBidModifier][google.ads.googleads.v2.services.AdGroupBidModifierService.GetAdGroupBidModifier]. -message GetAdGroupBidModifierRequest { - // Required. The resource name of the ad group bid modifier to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupBidModifier" - } - ]; -} - -// Request message for [AdGroupBidModifierService.MutateAdGroupBidModifiers][google.ads.googleads.v2.services.AdGroupBidModifierService.MutateAdGroupBidModifiers]. -message MutateAdGroupBidModifiersRequest { - // Required. ID of the customer whose ad group bid modifiers are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual ad group bid modifiers. - repeated AdGroupBidModifierOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, remove, update) on an ad group bid modifier. -message AdGroupBidModifierOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new ad group bid - // modifier. - google.ads.googleads.v2.resources.AdGroupBidModifier create = 1; - - // Update operation: The ad group bid modifier is expected to have a valid - // resource name. - google.ads.googleads.v2.resources.AdGroupBidModifier update = 2; - - // Remove operation: A resource name for the removed ad group bid modifier - // is expected, in this format: - // - // `customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}` - string remove = 3; - } -} - -// Response message for ad group bid modifiers mutate. -message MutateAdGroupBidModifiersResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateAdGroupBidModifierResult results = 2; -} - -// The result for the criterion mutate. -message MutateAdGroupBidModifierResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/ad_group_criterion_label_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/ad_group_criterion_label_service.proto deleted file mode 100644 index 4c8b6e56d..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/ad_group_criterion_label_service.proto +++ /dev/null @@ -1,124 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/ad_group_criterion_label.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupCriterionLabelServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Ad Group Criterion Label service. - -// Service to manage labels on ad group criteria. -service AdGroupCriterionLabelService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested ad group criterion label in full detail. - rpc GetAdGroupCriterionLabel(GetAdGroupCriterionLabelRequest) returns (google.ads.googleads.v2.resources.AdGroupCriterionLabel) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/adGroupCriterionLabels/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates and removes ad group criterion labels. - // Operation statuses are returned. - rpc MutateAdGroupCriterionLabels(MutateAdGroupCriterionLabelsRequest) returns (MutateAdGroupCriterionLabelsResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/adGroupCriterionLabels:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for -// [AdGroupCriterionLabelService.GetAdGroupCriterionLabel][google.ads.googleads.v2.services.AdGroupCriterionLabelService.GetAdGroupCriterionLabel]. -message GetAdGroupCriterionLabelRequest { - // Required. The resource name of the ad group criterion label to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupCriterionLabel" - } - ]; -} - -// Request message for -// [AdGroupCriterionLabelService.MutateAdGroupCriterionLabels][google.ads.googleads.v2.services.AdGroupCriterionLabelService.MutateAdGroupCriterionLabels]. -message MutateAdGroupCriterionLabelsRequest { - // Required. ID of the customer whose ad group criterion labels are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on ad group criterion labels. - repeated AdGroupCriterionLabelOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, remove) on an ad group criterion label. -message AdGroupCriterionLabelOperation { - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new ad group - // label. - google.ads.googleads.v2.resources.AdGroupCriterionLabel create = 1; - - // Remove operation: A resource name for the ad group criterion label - // being removed, in this format: - // - // `customers/{customer_id}/adGroupCriterionLabels/{ad_group_id}~{criterion_id}~{label_id}` - string remove = 2; - } -} - -// Response message for an ad group criterion labels mutate. -message MutateAdGroupCriterionLabelsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateAdGroupCriterionLabelResult results = 2; -} - -// The result for an ad group criterion label mutate. -message MutateAdGroupCriterionLabelResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/ad_group_criterion_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/ad_group_criterion_service.proto deleted file mode 100644 index 48ca349d3..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/ad_group_criterion_service.proto +++ /dev/null @@ -1,140 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/common/policy.proto"; -import "google/ads/googleads/v2/resources/ad_group_criterion.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupCriterionServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Ad Group Criterion service. - -// Service to manage ad group criteria. -service AdGroupCriterionService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested criterion in full detail. - rpc GetAdGroupCriterion(GetAdGroupCriterionRequest) returns (google.ads.googleads.v2.resources.AdGroupCriterion) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/adGroupCriteria/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes criteria. Operation statuses are returned. - rpc MutateAdGroupCriteria(MutateAdGroupCriteriaRequest) returns (MutateAdGroupCriteriaResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/adGroupCriteria:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [AdGroupCriterionService.GetAdGroupCriterion][google.ads.googleads.v2.services.AdGroupCriterionService.GetAdGroupCriterion]. -message GetAdGroupCriterionRequest { - // Required. The resource name of the criterion to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupCriterion" - } - ]; -} - -// Request message for [AdGroupCriterionService.MutateAdGroupCriteria][google.ads.googleads.v2.services.AdGroupCriterionService.MutateAdGroupCriteria]. -message MutateAdGroupCriteriaRequest { - // Required. ID of the customer whose criteria are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual criteria. - repeated AdGroupCriterionOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, remove, update) on an ad group criterion. -message AdGroupCriterionOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The list of policy violation keys that should not cause a - // PolicyViolationError to be reported. Not all policy violations are - // exemptable, please refer to the is_exemptible field in the returned - // PolicyViolationError. - // - // Resources violating these polices will be saved, but will not be eligible - // to serve. They may begin serving at a later time due to a change in - // policies, re-review of the resource, or a change in advertiser - // certificates. - repeated google.ads.googleads.v2.common.PolicyViolationKey exempt_policy_violation_keys = 5; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new criterion. - google.ads.googleads.v2.resources.AdGroupCriterion create = 1; - - // Update operation: The criterion is expected to have a valid resource - // name. - google.ads.googleads.v2.resources.AdGroupCriterion update = 2; - - // Remove operation: A resource name for the removed criterion is expected, - // in this format: - // - // `customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}` - string remove = 3; - } -} - -// Response message for an ad group criterion mutate. -message MutateAdGroupCriteriaResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateAdGroupCriterionResult results = 2; -} - -// The result for the criterion mutate. -message MutateAdGroupCriterionResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/ad_group_criterion_simulation_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/ad_group_criterion_simulation_service.proto deleted file mode 100644 index 08ec34b1b..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/ad_group_criterion_simulation_service.proto +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/ad_group_criterion_simulation.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupCriterionSimulationServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the AdGroupCriterionSimulation service. - -// Service to fetch ad group criterion simulations. -service AdGroupCriterionSimulationService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested ad group criterion simulation in full detail. - rpc GetAdGroupCriterionSimulation(GetAdGroupCriterionSimulationRequest) returns (google.ads.googleads.v2.resources.AdGroupCriterionSimulation) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/adGroupCriterionSimulations/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for -// [AdGroupCriterionSimulationService.GetAdGroupCriterionSimulation][google.ads.googleads.v2.services.AdGroupCriterionSimulationService.GetAdGroupCriterionSimulation]. -message GetAdGroupCriterionSimulationRequest { - // Required. The resource name of the ad group criterion simulation to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupCriterionSimulation" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/ad_group_extension_setting_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/ad_group_extension_setting_service.proto deleted file mode 100644 index c78b5b6a9..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/ad_group_extension_setting_service.proto +++ /dev/null @@ -1,134 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/ad_group_extension_setting.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupExtensionSettingServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the AdGroupExtensionSetting service. - -// Service to manage ad group extension settings. -service AdGroupExtensionSettingService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested ad group extension setting in full detail. - rpc GetAdGroupExtensionSetting(GetAdGroupExtensionSettingRequest) returns (google.ads.googleads.v2.resources.AdGroupExtensionSetting) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/adGroupExtensionSettings/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes ad group extension settings. Operation - // statuses are returned. - rpc MutateAdGroupExtensionSettings(MutateAdGroupExtensionSettingsRequest) returns (MutateAdGroupExtensionSettingsResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/adGroupExtensionSettings:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for -// [AdGroupExtensionSettingService.GetAdGroupExtensionSetting][google.ads.googleads.v2.services.AdGroupExtensionSettingService.GetAdGroupExtensionSetting]. -message GetAdGroupExtensionSettingRequest { - // Required. The resource name of the ad group extension setting to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupExtensionSetting" - } - ]; -} - -// Request message for -// [AdGroupExtensionSettingService.MutateAdGroupExtensionSettings][google.ads.googleads.v2.services.AdGroupExtensionSettingService.MutateAdGroupExtensionSettings]. -message MutateAdGroupExtensionSettingsRequest { - // Required. The ID of the customer whose ad group extension settings are being - // modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual ad group extension - // settings. - repeated AdGroupExtensionSettingOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update, remove) on an ad group extension setting. -message AdGroupExtensionSettingOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new ad group - // extension setting. - google.ads.googleads.v2.resources.AdGroupExtensionSetting create = 1; - - // Update operation: The ad group extension setting is expected to have a - // valid resource name. - google.ads.googleads.v2.resources.AdGroupExtensionSetting update = 2; - - // Remove operation: A resource name for the removed ad group extension - // setting is expected, in this format: - // - // `customers/{customer_id}/adGroupExtensionSettings/{ad_group_id}~{extension_type}` - string remove = 3; - } -} - -// Response message for an ad group extension setting mutate. -message MutateAdGroupExtensionSettingsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateAdGroupExtensionSettingResult results = 2; -} - -// The result for the ad group extension setting mutate. -message MutateAdGroupExtensionSettingResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/ad_group_feed_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/ad_group_feed_service.proto deleted file mode 100644 index 4a57759e5..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/ad_group_feed_service.proto +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/ad_group_feed.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupFeedServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the AdGroupFeed service. - -// Service to manage ad group feeds. -service AdGroupFeedService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested ad group feed in full detail. - rpc GetAdGroupFeed(GetAdGroupFeedRequest) returns (google.ads.googleads.v2.resources.AdGroupFeed) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/adGroupFeeds/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes ad group feeds. Operation statuses are - // returned. - rpc MutateAdGroupFeeds(MutateAdGroupFeedsRequest) returns (MutateAdGroupFeedsResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/adGroupFeeds:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [AdGroupFeedService.GetAdGroupFeed][google.ads.googleads.v2.services.AdGroupFeedService.GetAdGroupFeed]. -message GetAdGroupFeedRequest { - // Required. The resource name of the ad group feed to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupFeed" - } - ]; -} - -// Request message for [AdGroupFeedService.MutateAdGroupFeeds][google.ads.googleads.v2.services.AdGroupFeedService.MutateAdGroupFeeds]. -message MutateAdGroupFeedsRequest { - // Required. The ID of the customer whose ad group feeds are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual ad group feeds. - repeated AdGroupFeedOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update, remove) on an ad group feed. -message AdGroupFeedOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new ad group feed. - google.ads.googleads.v2.resources.AdGroupFeed create = 1; - - // Update operation: The ad group feed is expected to have a valid resource - // name. - google.ads.googleads.v2.resources.AdGroupFeed update = 2; - - // Remove operation: A resource name for the removed ad group feed is - // expected, in this format: - // - // `customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_id}` - string remove = 3; - } -} - -// Response message for an ad group feed mutate. -message MutateAdGroupFeedsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateAdGroupFeedResult results = 2; -} - -// The result for the ad group feed mutate. -message MutateAdGroupFeedResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/ad_group_label_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/ad_group_label_service.proto deleted file mode 100644 index 80fda5aab..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/ad_group_label_service.proto +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/ad_group_label.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupLabelServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Ad Group Label service. - -// Service to manage labels on ad groups. -service AdGroupLabelService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested ad group label in full detail. - rpc GetAdGroupLabel(GetAdGroupLabelRequest) returns (google.ads.googleads.v2.resources.AdGroupLabel) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/adGroupLabels/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates and removes ad group labels. - // Operation statuses are returned. - rpc MutateAdGroupLabels(MutateAdGroupLabelsRequest) returns (MutateAdGroupLabelsResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/adGroupLabels:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [AdGroupLabelService.GetAdGroupLabel][google.ads.googleads.v2.services.AdGroupLabelService.GetAdGroupLabel]. -message GetAdGroupLabelRequest { - // Required. The resource name of the ad group label to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupLabel" - } - ]; -} - -// Request message for [AdGroupLabelService.MutateAdGroupLabels][google.ads.googleads.v2.services.AdGroupLabelService.MutateAdGroupLabels]. -message MutateAdGroupLabelsRequest { - // Required. ID of the customer whose ad group labels are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on ad group labels. - repeated AdGroupLabelOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, remove) on an ad group label. -message AdGroupLabelOperation { - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new ad group - // label. - google.ads.googleads.v2.resources.AdGroupLabel create = 1; - - // Remove operation: A resource name for the ad group label - // being removed, in this format: - // - // `customers/{customer_id}/adGroupLabels/{ad_group_id}~{label_id}` - string remove = 2; - } -} - -// Response message for an ad group labels mutate. -message MutateAdGroupLabelsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateAdGroupLabelResult results = 2; -} - -// The result for an ad group label mutate. -message MutateAdGroupLabelResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/ad_group_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/ad_group_service.proto deleted file mode 100644 index c7d165615..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/ad_group_service.proto +++ /dev/null @@ -1,127 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/ad_group.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Ad Group service. - -// Service to manage ad groups. -service AdGroupService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested ad group in full detail. - rpc GetAdGroup(GetAdGroupRequest) returns (google.ads.googleads.v2.resources.AdGroup) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/adGroups/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes ad groups. Operation statuses are returned. - rpc MutateAdGroups(MutateAdGroupsRequest) returns (MutateAdGroupsResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/adGroups:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [AdGroupService.GetAdGroup][google.ads.googleads.v2.services.AdGroupService.GetAdGroup]. -message GetAdGroupRequest { - // Required. The resource name of the ad group to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroup" - } - ]; -} - -// Request message for [AdGroupService.MutateAdGroups][google.ads.googleads.v2.services.AdGroupService.MutateAdGroups]. -message MutateAdGroupsRequest { - // Required. The ID of the customer whose ad groups are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual ad groups. - repeated AdGroupOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update, remove) on an ad group. -message AdGroupOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new ad group. - google.ads.googleads.v2.resources.AdGroup create = 1; - - // Update operation: The ad group is expected to have a valid resource name. - google.ads.googleads.v2.resources.AdGroup update = 2; - - // Remove operation: A resource name for the removed ad group is expected, - // in this format: - // - // `customers/{customer_id}/adGroups/{ad_group_id}` - string remove = 3; - } -} - -// Response message for an ad group mutate. -message MutateAdGroupsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateAdGroupResult results = 2; -} - -// The result for the ad group mutate. -message MutateAdGroupResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/ad_group_simulation_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/ad_group_simulation_service.proto deleted file mode 100644 index 94fd27f7f..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/ad_group_simulation_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/ad_group_simulation.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupSimulationServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the AdGroupSimulation service. - -// Service to fetch ad group simulations. -service AdGroupSimulationService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested ad group simulation in full detail. - rpc GetAdGroupSimulation(GetAdGroupSimulationRequest) returns (google.ads.googleads.v2.resources.AdGroupSimulation) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/adGroupSimulations/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [AdGroupSimulationService.GetAdGroupSimulation][google.ads.googleads.v2.services.AdGroupSimulationService.GetAdGroupSimulation]. -message GetAdGroupSimulationRequest { - // Required. The resource name of the ad group simulation to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupSimulation" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/ad_parameter_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/ad_parameter_service.proto deleted file mode 100644 index e0caf586e..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/ad_parameter_service.proto +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/ad_parameter.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "AdParameterServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Ad Parameter service. - -// Service to manage ad parameters. -service AdParameterService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested ad parameter in full detail. - rpc GetAdParameter(GetAdParameterRequest) returns (google.ads.googleads.v2.resources.AdParameter) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/adParameters/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes ad parameters. Operation statuses are - // returned. - rpc MutateAdParameters(MutateAdParametersRequest) returns (MutateAdParametersResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/adParameters:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [AdParameterService.GetAdParameter][google.ads.googleads.v2.services.AdParameterService.GetAdParameter] -message GetAdParameterRequest { - // Required. The resource name of the ad parameter to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdParameter" - } - ]; -} - -// Request message for [AdParameterService.MutateAdParameters][google.ads.googleads.v2.services.AdParameterService.MutateAdParameters] -message MutateAdParametersRequest { - // Required. The ID of the customer whose ad parameters are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual ad parameters. - repeated AdParameterOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update, remove) on ad parameter. -message AdParameterOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new ad parameter. - google.ads.googleads.v2.resources.AdParameter create = 1; - - // Update operation: The ad parameter is expected to have a valid resource - // name. - google.ads.googleads.v2.resources.AdParameter update = 2; - - // Remove operation: A resource name for the ad parameter to remove is - // expected in this format: - // - // `customers/{customer_id}/adParameters/{ad_group_id}~{criterion_id}~{parameter_index}` - string remove = 3; - } -} - -// Response message for an ad parameter mutate. -message MutateAdParametersResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateAdParameterResult results = 2; -} - -// The result for the ad parameter mutate. -message MutateAdParameterResult { - // The resource name returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/ad_schedule_view_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/ad_schedule_view_service.proto deleted file mode 100644 index b9859096f..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/ad_schedule_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/ad_schedule_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "AdScheduleViewServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the AdSchedule View service. - -// Service to fetch ad schedule views. -service AdScheduleViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested ad schedule view in full detail. - rpc GetAdScheduleView(GetAdScheduleViewRequest) returns (google.ads.googleads.v2.resources.AdScheduleView) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/adScheduleViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [AdScheduleViewService.GetAdScheduleView][google.ads.googleads.v2.services.AdScheduleViewService.GetAdScheduleView]. -message GetAdScheduleViewRequest { - // Required. The resource name of the ad schedule view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdScheduleView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/ad_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/ad_service.proto deleted file mode 100644 index cc6d59712..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/ad_service.proto +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/ad.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "AdServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Ad service. - -// Service to manage ads. -service AdService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested ad in full detail. - rpc GetAd(GetAdRequest) returns (google.ads.googleads.v2.resources.Ad) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/ads/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Updates ads. Operation statuses are returned. Updating ads is not supported - // for TextAd, ExpandedDynamicSearchAd, GmailAd and ImageAd. - rpc MutateAds(MutateAdsRequest) returns (MutateAdsResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/ads:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [AdService.GetAd][google.ads.googleads.v2.services.AdService.GetAd]. -message GetAdRequest { - // Required. The resource name of the ad to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Ad" - } - ]; -} - -// Request message for [AdService.MutateAds][google.ads.googleads.v2.services.AdService.MutateAds]. -message MutateAdsRequest { - // Required. The ID of the customer whose ads are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual ads. - repeated AdOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// A single update operation on an ad. -message AdOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 2; - - // The mutate operation. - oneof operation { - // Update operation: The ad is expected to have a valid resource name - // in this format: - // - // `customers/{customer_id}/ads/{ad_id}` - google.ads.googleads.v2.resources.Ad update = 1; - } -} - -// Response message for an ad mutate. -message MutateAdsResponse { - // All results for the mutate. - repeated MutateAdResult results = 2; -} - -// The result for the ad mutate. -message MutateAdResult { - // The resource name returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/age_range_view_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/age_range_view_service.proto deleted file mode 100644 index 17c64935a..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/age_range_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/age_range_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "AgeRangeViewServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Age Range View service. - -// Service to manage age range views. -service AgeRangeViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested age range view in full detail. - rpc GetAgeRangeView(GetAgeRangeViewRequest) returns (google.ads.googleads.v2.resources.AgeRangeView) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/ageRangeViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [AgeRangeViewService.GetAgeRangeView][google.ads.googleads.v2.services.AgeRangeViewService.GetAgeRangeView]. -message GetAgeRangeViewRequest { - // Required. The resource name of the age range view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AgeRangeView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/asset_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/asset_service.proto deleted file mode 100644 index 5ed9d0c1a..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/asset_service.proto +++ /dev/null @@ -1,101 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/asset.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "AssetServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Asset service. - -// Service to manage assets. Asset types can be created with AssetService are -// YoutubeVideoAsset, MediaBundleAsset and ImageAsset. TextAsset should be -// created with Ad inline. -service AssetService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested asset in full detail. - rpc GetAsset(GetAssetRequest) returns (google.ads.googleads.v2.resources.Asset) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/assets/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates assets. Operation statuses are returned. - rpc MutateAssets(MutateAssetsRequest) returns (MutateAssetsResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/assets:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [AssetService.GetAsset][google.ads.googleads.v2.services.AssetService.GetAsset] -message GetAssetRequest { - // Required. The resource name of the asset to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Asset" - } - ]; -} - -// Request message for [AssetService.MutateAssets][google.ads.googleads.v2.services.AssetService.MutateAssets] -message MutateAssetsRequest { - // Required. The ID of the customer whose assets are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual assets. - repeated AssetOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// A single operation to create an asset. Supported asset types are -// YoutubeVideoAsset, MediaBundleAsset, ImageAsset, and LeadFormAsset. TextAsset -// should be created with Ad inline. -message AssetOperation { - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new asset. - google.ads.googleads.v2.resources.Asset create = 1; - } -} - -// Response message for an asset mutate. -message MutateAssetsResponse { - // All results for the mutate. - repeated MutateAssetResult results = 2; -} - -// The result for the asset mutate. -message MutateAssetResult { - // The resource name returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/bidding_strategy_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/bidding_strategy_service.proto deleted file mode 100644 index df61d2278..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/bidding_strategy_service.proto +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/bidding_strategy.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "BiddingStrategyServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Bidding Strategy service. - -// Service to manage bidding strategies. -service BiddingStrategyService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested bidding strategy in full detail. - rpc GetBiddingStrategy(GetBiddingStrategyRequest) returns (google.ads.googleads.v2.resources.BiddingStrategy) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/biddingStrategies/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes bidding strategies. Operation statuses are - // returned. - rpc MutateBiddingStrategies(MutateBiddingStrategiesRequest) returns (MutateBiddingStrategiesResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/biddingStrategies:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [BiddingStrategyService.GetBiddingStrategy][google.ads.googleads.v2.services.BiddingStrategyService.GetBiddingStrategy]. -message GetBiddingStrategyRequest { - // Required. The resource name of the bidding strategy to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/BiddingStrategy" - } - ]; -} - -// Request message for [BiddingStrategyService.MutateBiddingStrategies][google.ads.googleads.v2.services.BiddingStrategyService.MutateBiddingStrategies]. -message MutateBiddingStrategiesRequest { - // Required. The ID of the customer whose bidding strategies are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual bidding strategies. - repeated BiddingStrategyOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update, remove) on a bidding strategy. -message BiddingStrategyOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new bidding - // strategy. - google.ads.googleads.v2.resources.BiddingStrategy create = 1; - - // Update operation: The bidding strategy is expected to have a valid - // resource name. - google.ads.googleads.v2.resources.BiddingStrategy update = 2; - - // Remove operation: A resource name for the removed bidding strategy is - // expected, in this format: - // - // `customers/{customer_id}/biddingStrategies/{bidding_strategy_id}` - string remove = 3; - } -} - -// Response message for bidding strategy mutate. -message MutateBiddingStrategiesResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateBiddingStrategyResult results = 2; -} - -// The result for the bidding strategy mutate. -message MutateBiddingStrategyResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/billing_setup_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/billing_setup_service.proto deleted file mode 100644 index ea17bf1a0..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/billing_setup_service.proto +++ /dev/null @@ -1,115 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/billing_setup.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "BillingSetupServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the BillingSetup service. - -// A service for designating the business entity responsible for accrued costs. -// -// A billing setup is associated with a payments account. Billing-related -// activity for all billing setups associated with a particular payments account -// will appear on a single invoice generated monthly. -// -// Mutates: -// The REMOVE operation cancels a pending billing setup. -// The CREATE operation creates a new billing setup. -service BillingSetupService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns a billing setup. - rpc GetBillingSetup(GetBillingSetupRequest) returns (google.ads.googleads.v2.resources.BillingSetup) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/billingSetups/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates a billing setup, or cancels an existing billing setup. - rpc MutateBillingSetup(MutateBillingSetupRequest) returns (MutateBillingSetupResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/billingSetups:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operation"; - } -} - -// Request message for -// [BillingSetupService.GetBillingSetup][google.ads.googleads.v2.services.BillingSetupService.GetBillingSetup]. -message GetBillingSetupRequest { - // Required. The resource name of the billing setup to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/BillingSetup" - } - ]; -} - -// Request message for billing setup mutate operations. -message MutateBillingSetupRequest { - // Required. Id of the customer to apply the billing setup mutate operation to. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The operation to perform. - BillingSetupOperation operation = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// A single operation on a billing setup, which describes the cancellation of an -// existing billing setup. -message BillingSetupOperation { - // Only one of these operations can be set. "Update" operations are not - // supported. - oneof operation { - // Creates a billing setup. No resource name is expected for the new billing - // setup. - google.ads.googleads.v2.resources.BillingSetup create = 2; - - // Resource name of the billing setup to remove. A setup cannot be - // removed unless it is in a pending state or its scheduled start time is in - // the future. The resource name looks like - // `customers/{customer_id}/billingSetups/{billing_id}`. - string remove = 1; - } -} - -// Response message for a billing setup operation. -message MutateBillingSetupResponse { - // A result that identifies the resource affected by the mutate request. - MutateBillingSetupResult result = 1; -} - -// Result for a single billing setup mutate. -message MutateBillingSetupResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/campaign_audience_view_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/campaign_audience_view_service.proto deleted file mode 100644 index 073f5eff2..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/campaign_audience_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/campaign_audience_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "CampaignAudienceViewServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Campaign Audience View service. - -// Service to manage campaign audience views. -service CampaignAudienceViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested campaign audience view in full detail. - rpc GetCampaignAudienceView(GetCampaignAudienceViewRequest) returns (google.ads.googleads.v2.resources.CampaignAudienceView) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/campaignAudienceViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [CampaignAudienceViewService.GetCampaignAudienceView][google.ads.googleads.v2.services.CampaignAudienceViewService.GetCampaignAudienceView]. -message GetCampaignAudienceViewRequest { - // Required. The resource name of the campaign audience view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignAudienceView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/campaign_bid_modifier_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/campaign_bid_modifier_service.proto deleted file mode 100644 index cd358ee3c..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/campaign_bid_modifier_service.proto +++ /dev/null @@ -1,131 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/campaign_bid_modifier.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "CampaignBidModifierServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Campaign Bid Modifier service. - -// Service to manage campaign bid modifiers. -service CampaignBidModifierService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested campaign bid modifier in full detail. - rpc GetCampaignBidModifier(GetCampaignBidModifierRequest) returns (google.ads.googleads.v2.resources.CampaignBidModifier) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/campaignBidModifiers/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes campaign bid modifiers. - // Operation statuses are returned. - rpc MutateCampaignBidModifiers(MutateCampaignBidModifiersRequest) returns (MutateCampaignBidModifiersResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/campaignBidModifiers:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [CampaignBidModifierService.GetCampaignBidModifier][google.ads.googleads.v2.services.CampaignBidModifierService.GetCampaignBidModifier]. -message GetCampaignBidModifierRequest { - // Required. The resource name of the campaign bid modifier to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignBidModifier" - } - ]; -} - -// Request message for -// [CampaignBidModifierService.MutateCampaignBidModifiers][google.ads.googleads.v2.services.CampaignBidModifierService.MutateCampaignBidModifiers]. -message MutateCampaignBidModifiersRequest { - // Required. ID of the customer whose campaign bid modifiers are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual campaign bid modifiers. - repeated CampaignBidModifierOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, remove, update) on a campaign bid modifier. -message CampaignBidModifierOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new campaign bid - // modifier. - google.ads.googleads.v2.resources.CampaignBidModifier create = 1; - - // Update operation: The campaign bid modifier is expected to have a valid - // resource name. - google.ads.googleads.v2.resources.CampaignBidModifier update = 2; - - // Remove operation: A resource name for the removed campaign bid modifier - // is expected, in this format: - // - // `customers/{customer_id}/CampaignBidModifiers/{campaign_id}~{criterion_id}` - string remove = 3; - } -} - -// Response message for campaign bid modifiers mutate. -message MutateCampaignBidModifiersResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateCampaignBidModifierResult results = 2; -} - -// The result for the criterion mutate. -message MutateCampaignBidModifierResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/campaign_budget_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/campaign_budget_service.proto deleted file mode 100644 index ed7b9a66e..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/campaign_budget_service.proto +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/campaign_budget.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "CampaignBudgetServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Campaign Budget service. - -// Service to manage campaign budgets. -service CampaignBudgetService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested Campaign Budget in full detail. - rpc GetCampaignBudget(GetCampaignBudgetRequest) returns (google.ads.googleads.v2.resources.CampaignBudget) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/campaignBudgets/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes campaign budgets. Operation statuses are - // returned. - rpc MutateCampaignBudgets(MutateCampaignBudgetsRequest) returns (MutateCampaignBudgetsResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/campaignBudgets:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [CampaignBudgetService.GetCampaignBudget][google.ads.googleads.v2.services.CampaignBudgetService.GetCampaignBudget]. -message GetCampaignBudgetRequest { - // Required. The resource name of the campaign budget to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignBudget" - } - ]; -} - -// Request message for [CampaignBudgetService.MutateCampaignBudgets][google.ads.googleads.v2.services.CampaignBudgetService.MutateCampaignBudgets]. -message MutateCampaignBudgetsRequest { - // Required. The ID of the customer whose campaign budgets are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual campaign budgets. - repeated CampaignBudgetOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update, remove) on a campaign budget. -message CampaignBudgetOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new budget. - google.ads.googleads.v2.resources.CampaignBudget create = 1; - - // Update operation: The campaign budget is expected to have a valid - // resource name. - google.ads.googleads.v2.resources.CampaignBudget update = 2; - - // Remove operation: A resource name for the removed budget is expected, in - // this format: - // - // `customers/{customer_id}/campaignBudgets/{budget_id}` - string remove = 3; - } -} - -// Response message for campaign budget mutate. -message MutateCampaignBudgetsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateCampaignBudgetResult results = 2; -} - -// The result for the campaign budget mutate. -message MutateCampaignBudgetResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/campaign_criterion_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/campaign_criterion_service.proto deleted file mode 100644 index 791bd33af..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/campaign_criterion_service.proto +++ /dev/null @@ -1,128 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/campaign_criterion.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "CampaignCriterionServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Campaign Criterion service. - -// Service to manage campaign criteria. -service CampaignCriterionService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested criterion in full detail. - rpc GetCampaignCriterion(GetCampaignCriterionRequest) returns (google.ads.googleads.v2.resources.CampaignCriterion) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/campaignCriteria/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes criteria. Operation statuses are returned. - rpc MutateCampaignCriteria(MutateCampaignCriteriaRequest) returns (MutateCampaignCriteriaResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/campaignCriteria:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [CampaignCriterionService.GetCampaignCriterion][google.ads.googleads.v2.services.CampaignCriterionService.GetCampaignCriterion]. -message GetCampaignCriterionRequest { - // Required. The resource name of the criterion to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignCriterion" - } - ]; -} - -// Request message for [CampaignCriterionService.MutateCampaignCriteria][google.ads.googleads.v2.services.CampaignCriterionService.MutateCampaignCriteria]. -message MutateCampaignCriteriaRequest { - // Required. The ID of the customer whose criteria are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual criteria. - repeated CampaignCriterionOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update, remove) on a campaign criterion. -message CampaignCriterionOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new criterion. - google.ads.googleads.v2.resources.CampaignCriterion create = 1; - - // Update operation: The criterion is expected to have a valid resource - // name. - google.ads.googleads.v2.resources.CampaignCriterion update = 2; - - // Remove operation: A resource name for the removed criterion is expected, - // in this format: - // - // `customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id}` - string remove = 3; - } -} - -// Response message for campaign criterion mutate. -message MutateCampaignCriteriaResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateCampaignCriterionResult results = 2; -} - -// The result for the criterion mutate. -message MutateCampaignCriterionResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/campaign_criterion_simulation_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/campaign_criterion_simulation_service.proto deleted file mode 100644 index 670092916..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/campaign_criterion_simulation_service.proto +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/campaign_criterion_simulation.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "CampaignCriterionSimulationServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the CampaignCriterionSimulation service. - -// Service to fetch campaign criterion simulations. -service CampaignCriterionSimulationService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested campaign criterion simulation in full detail. - rpc GetCampaignCriterionSimulation(GetCampaignCriterionSimulationRequest) returns (google.ads.googleads.v2.resources.CampaignCriterionSimulation) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/campaignCriterionSimulations/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for -// [CampaignCriterionSimulationService.GetCampaignCriterionSimulation][google.ads.googleads.v2.services.CampaignCriterionSimulationService.GetCampaignCriterionSimulation]. -message GetCampaignCriterionSimulationRequest { - // Required. The resource name of the campaign criterion simulation to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignCriterionSimulation" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/campaign_draft_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/campaign_draft_service.proto deleted file mode 100644 index ab44f78a9..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/campaign_draft_service.proto +++ /dev/null @@ -1,202 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/campaign_draft.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/longrunning/operations.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "CampaignDraftServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Campaign Draft service. - -// Service to manage campaign drafts. -service CampaignDraftService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested campaign draft in full detail. - rpc GetCampaignDraft(GetCampaignDraftRequest) returns (google.ads.googleads.v2.resources.CampaignDraft) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/campaignDrafts/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes campaign drafts. Operation statuses are - // returned. - rpc MutateCampaignDrafts(MutateCampaignDraftsRequest) returns (MutateCampaignDraftsResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/campaignDrafts:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } - - // Promotes the changes in a draft back to the base campaign. - // - // This method returns a Long Running Operation (LRO) indicating if the - // Promote is done. Use [Operations.GetOperation] to poll the LRO until it - // is done. Only a done status is returned in the response. See the status - // in the Campaign Draft resource to determine if the promotion was - // successful. If the LRO failed, use - // [CampaignDraftService.ListCampaignDraftAsyncErrors][google.ads.googleads.v2.services.CampaignDraftService.ListCampaignDraftAsyncErrors] to view the list of - // error reasons. - rpc PromoteCampaignDraft(PromoteCampaignDraftRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v2/{campaign_draft=customers/*/campaignDrafts/*}:promote" - body: "*" - }; - option (google.api.method_signature) = "campaign_draft"; - option (google.longrunning.operation_info) = { - response_type: "google.protobuf.Empty" - metadata_type: "google.protobuf.Empty" - }; - } - - // Returns all errors that occurred during CampaignDraft promote. Throws an - // error if called before campaign draft is promoted. - // Supports standard list paging. - rpc ListCampaignDraftAsyncErrors(ListCampaignDraftAsyncErrorsRequest) returns (ListCampaignDraftAsyncErrorsResponse) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/campaignDrafts/*}:listAsyncErrors" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [CampaignDraftService.GetCampaignDraft][google.ads.googleads.v2.services.CampaignDraftService.GetCampaignDraft]. -message GetCampaignDraftRequest { - // Required. The resource name of the campaign draft to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignDraft" - } - ]; -} - -// Request message for [CampaignDraftService.MutateCampaignDrafts][google.ads.googleads.v2.services.CampaignDraftService.MutateCampaignDrafts]. -message MutateCampaignDraftsRequest { - // Required. The ID of the customer whose campaign drafts are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual campaign drafts. - repeated CampaignDraftOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// Request message for [CampaignDraftService.PromoteCampaignDraft][google.ads.googleads.v2.services.CampaignDraftService.PromoteCampaignDraft]. -message PromoteCampaignDraftRequest { - // Required. The resource name of the campaign draft to promote. - string campaign_draft = 1 [(google.api.field_behavior) = REQUIRED]; -} - -// A single operation (create, update, remove) on a campaign draft. -message CampaignDraftOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new campaign - // draft. - google.ads.googleads.v2.resources.CampaignDraft create = 1; - - // Update operation: The campaign draft is expected to have a valid - // resource name. - google.ads.googleads.v2.resources.CampaignDraft update = 2; - - // Remove operation: The campaign draft is expected to have a valid - // resource name, in this format: - // - // `customers/{customer_id}/campaignDrafts/{base_campaign_id}~{draft_id}` - string remove = 3; - } -} - -// Response message for campaign draft mutate. -message MutateCampaignDraftsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateCampaignDraftResult results = 2; -} - -// The result for the campaign draft mutate. -message MutateCampaignDraftResult { - // Returned for successful operations. - string resource_name = 1; -} - -// Request message for [CampaignDraftService.ListCampaignDraftAsyncErrors][google.ads.googleads.v2.services.CampaignDraftService.ListCampaignDraftAsyncErrors]. -message ListCampaignDraftAsyncErrorsRequest { - // Required. The name of the campaign draft from which to retrieve the async errors. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignDraft" - } - ]; - - // Token of the page to retrieve. If not specified, the first - // page of results will be returned. Use the value obtained from - // `next_page_token` in the previous response in order to request - // the next page of results. - string page_token = 2; - - // Number of elements to retrieve in a single page. - // When a page request is too large, the server may decide to - // further limit the number of returned resources. - int32 page_size = 3; -} - -// Response message for [CampaignDraftService.ListCampaignDraftAsyncErrors][google.ads.googleads.v2.services.CampaignDraftService.ListCampaignDraftAsyncErrors]. -message ListCampaignDraftAsyncErrorsResponse { - // Details of the errors when performing the asynchronous operation. - repeated google.rpc.Status errors = 1; - - // Pagination token used to retrieve the next page of results. - // Pass the content of this string as the `page_token` attribute of - // the next request. `next_page_token` is not returned for the last - // page. - string next_page_token = 2; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/campaign_experiment_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/campaign_experiment_service.proto deleted file mode 100644 index c6e9eede2..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/campaign_experiment_service.proto +++ /dev/null @@ -1,293 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/campaign_experiment.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/longrunning/operations.proto"; -import "google/protobuf/empty.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "CampaignExperimentServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Campaign Experiment service. - -// CampaignExperimentService manages the life cycle of campaign experiments. -// It is used to create new experiments from drafts, modify experiment -// properties, promote changes in an experiment back to its base campaign, -// graduate experiments into new stand-alone campaigns, and to remove an -// experiment. -// -// An experiment consists of two variants or arms - the base campaign and the -// experiment campaign, directing a fixed share of traffic to each arm. -// A campaign experiment is created from a draft of changes to the base campaign -// and will be a snapshot of changes in the draft at the time of creation. -service CampaignExperimentService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested campaign experiment in full detail. - rpc GetCampaignExperiment(GetCampaignExperimentRequest) returns (google.ads.googleads.v2.resources.CampaignExperiment) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/campaignExperiments/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates a campaign experiment based on a campaign draft. The draft campaign - // will be forked into a real campaign (called the experiment campaign) that - // will begin serving ads if successfully created. - // - // The campaign experiment is created immediately with status INITIALIZING. - // This method return a long running operation that tracks the forking of the - // draft campaign. If the forking fails, a list of errors can be retrieved - // using the ListCampaignExperimentAsyncErrors method. The operation's - // metadata will be a StringValue containing the resource name of the created - // campaign experiment. - rpc CreateCampaignExperiment(CreateCampaignExperimentRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/campaignExperiments:create" - body: "*" - }; - option (google.api.method_signature) = "customer_id,campaign_experiment"; - option (google.longrunning.operation_info) = { - response_type: "google.protobuf.Empty" - metadata_type: "google.ads.googleads.v2.services.CreateCampaignExperimentMetadata" - }; - } - - // Updates campaign experiments. Operation statuses are returned. - rpc MutateCampaignExperiments(MutateCampaignExperimentsRequest) returns (MutateCampaignExperimentsResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/campaignExperiments:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } - - // Graduates a campaign experiment to a full campaign. The base and experiment - // campaigns will start running independently with their own budgets. - rpc GraduateCampaignExperiment(GraduateCampaignExperimentRequest) returns (GraduateCampaignExperimentResponse) { - option (google.api.http) = { - post: "/v2/{campaign_experiment=customers/*/campaignExperiments/*}:graduate" - body: "*" - }; - option (google.api.method_signature) = "campaign_experiment,campaign_budget"; - } - - // Promotes the changes in a experiment campaign back to the base campaign. - // - // The campaign experiment is updated immediately with status PROMOTING. - // This method return a long running operation that tracks the promoting of - // the experiment campaign. If the promoting fails, a list of errors can be - // retrieved using the ListCampaignExperimentAsyncErrors method. - rpc PromoteCampaignExperiment(PromoteCampaignExperimentRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v2/{campaign_experiment=customers/*/campaignExperiments/*}:promote" - body: "*" - }; - option (google.api.method_signature) = "campaign_experiment"; - option (google.longrunning.operation_info) = { - response_type: "google.protobuf.Empty" - metadata_type: "google.protobuf.Empty" - }; - } - - // Immediately ends a campaign experiment, changing the experiment's scheduled - // end date and without waiting for end of day. End date is updated to be the - // time of the request. - rpc EndCampaignExperiment(EndCampaignExperimentRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - post: "/v2/{campaign_experiment=customers/*/campaignExperiments/*}:end" - body: "*" - }; - option (google.api.method_signature) = "campaign_experiment"; - } - - // Returns all errors that occurred during CampaignExperiment create or - // promote (whichever occurred last). - // Supports standard list paging. - rpc ListCampaignExperimentAsyncErrors(ListCampaignExperimentAsyncErrorsRequest) returns (ListCampaignExperimentAsyncErrorsResponse) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/campaignExperiments/*}:listAsyncErrors" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [CampaignExperimentService.GetCampaignExperiment][google.ads.googleads.v2.services.CampaignExperimentService.GetCampaignExperiment]. -message GetCampaignExperimentRequest { - // Required. The resource name of the campaign experiment to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignExperiment" - } - ]; -} - -// Request message for [CampaignExperimentService.MutateCampaignExperiments][google.ads.googleads.v2.services.CampaignExperimentService.MutateCampaignExperiments]. -message MutateCampaignExperimentsRequest { - // Required. The ID of the customer whose campaign experiments are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual campaign experiments. - repeated CampaignExperimentOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single update operation on a campaign experiment. -message CampaignExperimentOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 3; - - // The mutate operation. - oneof operation { - // Update operation: The campaign experiment is expected to have a valid - // resource name. - google.ads.googleads.v2.resources.CampaignExperiment update = 1; - - // Remove operation: The campaign experiment is expected to have a valid - // resource name, in this format: - // - // `customers/{customer_id}/campaignExperiments/{campaign_experiment_id}` - string remove = 2; - } -} - -// Response message for campaign experiment mutate. -message MutateCampaignExperimentsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateCampaignExperimentResult results = 2; -} - -// The result for the campaign experiment mutate. -message MutateCampaignExperimentResult { - // Returned for successful operations. - string resource_name = 1; -} - -// Request message for [CampaignExperimentService.CreateCampaignExperiment][google.ads.googleads.v2.services.CampaignExperimentService.CreateCampaignExperiment]. -message CreateCampaignExperimentRequest { - // Required. The ID of the customer whose campaign experiment is being created. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The campaign experiment to be created. - google.ads.googleads.v2.resources.CampaignExperiment campaign_experiment = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 3; -} - -// Message used as metadata returned in Long Running Operations for -// CreateCampaignExperimentRequest -message CreateCampaignExperimentMetadata { - // Resource name of campaign experiment created. - string campaign_experiment = 1; -} - -// Request message for [CampaignExperimentService.GraduateCampaignExperiment][google.ads.googleads.v2.services.CampaignExperimentService.GraduateCampaignExperiment]. -message GraduateCampaignExperimentRequest { - // Required. The resource name of the campaign experiment to graduate. - string campaign_experiment = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. Resource name of the budget to attach to the campaign graduated from the - // experiment. - string campaign_budget = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Response message for campaign experiment graduate. -message GraduateCampaignExperimentResponse { - // The resource name of the campaign from the graduated experiment. - // This campaign is the same one as CampaignExperiment.experiment_campaign. - string graduated_campaign = 1; -} - -// Request message for [CampaignExperimentService.PromoteCampaignExperiment][google.ads.googleads.v2.services.CampaignExperimentService.PromoteCampaignExperiment]. -message PromoteCampaignExperimentRequest { - // Required. The resource name of the campaign experiment to promote. - string campaign_experiment = 1 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for [CampaignExperimentService.EndCampaignExperiment][google.ads.googleads.v2.services.CampaignExperimentService.EndCampaignExperiment]. -message EndCampaignExperimentRequest { - // Required. The resource name of the campaign experiment to end. - string campaign_experiment = 1 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for -// [CampaignExperimentService.ListCampaignExperimentAsyncErrors][google.ads.googleads.v2.services.CampaignExperimentService.ListCampaignExperimentAsyncErrors]. -message ListCampaignExperimentAsyncErrorsRequest { - // Required. The name of the campaign experiment from which to retrieve the async - // errors. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignExperiment" - } - ]; - - // Token of the page to retrieve. If not specified, the first - // page of results will be returned. Use the value obtained from - // `next_page_token` in the previous response in order to request - // the next page of results. - string page_token = 2; - - // Number of elements to retrieve in a single page. - // When a page request is too large, the server may decide to - // further limit the number of returned resources. - int32 page_size = 3; -} - -// Response message for -// [CampaignExperimentService.ListCampaignExperimentAsyncErrors][google.ads.googleads.v2.services.CampaignExperimentService.ListCampaignExperimentAsyncErrors]. -message ListCampaignExperimentAsyncErrorsResponse { - // Details of the errors when performing the asynchronous operation. - repeated google.rpc.Status errors = 1; - - // Pagination token used to retrieve the next page of results. - // Pass the content of this string as the `page_token` attribute of - // the next request. `next_page_token` is not returned for the last - // page. - string next_page_token = 2; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/campaign_extension_setting_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/campaign_extension_setting_service.proto deleted file mode 100644 index 04647610d..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/campaign_extension_setting_service.proto +++ /dev/null @@ -1,134 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/campaign_extension_setting.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "CampaignExtensionSettingServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the CampaignExtensionSetting service. - -// Service to manage campaign extension settings. -service CampaignExtensionSettingService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested campaign extension setting in full detail. - rpc GetCampaignExtensionSetting(GetCampaignExtensionSettingRequest) returns (google.ads.googleads.v2.resources.CampaignExtensionSetting) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/campaignExtensionSettings/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes campaign extension settings. Operation - // statuses are returned. - rpc MutateCampaignExtensionSettings(MutateCampaignExtensionSettingsRequest) returns (MutateCampaignExtensionSettingsResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/campaignExtensionSettings:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for -// [CampaignExtensionSettingService.GetCampaignExtensionSetting][google.ads.googleads.v2.services.CampaignExtensionSettingService.GetCampaignExtensionSetting]. -message GetCampaignExtensionSettingRequest { - // Required. The resource name of the campaign extension setting to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignExtensionSetting" - } - ]; -} - -// Request message for -// [CampaignExtensionSettingService.MutateCampaignExtensionSettings][google.ads.googleads.v2.services.CampaignExtensionSettingService.MutateCampaignExtensionSettings]. -message MutateCampaignExtensionSettingsRequest { - // Required. The ID of the customer whose campaign extension settings are being - // modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual campaign extension - // settings. - repeated CampaignExtensionSettingOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update, remove) on a campaign extension setting. -message CampaignExtensionSettingOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new campaign - // extension setting. - google.ads.googleads.v2.resources.CampaignExtensionSetting create = 1; - - // Update operation: The campaign extension setting is expected to have a - // valid resource name. - google.ads.googleads.v2.resources.CampaignExtensionSetting update = 2; - - // Remove operation: A resource name for the removed campaign extension - // setting is expected, in this format: - // - // `customers/{customer_id}/campaignExtensionSettings/{campaign_id}~{extension_type}` - string remove = 3; - } -} - -// Response message for a campaign extension setting mutate. -message MutateCampaignExtensionSettingsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateCampaignExtensionSettingResult results = 2; -} - -// The result for the campaign extension setting mutate. -message MutateCampaignExtensionSettingResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/campaign_feed_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/campaign_feed_service.proto deleted file mode 100644 index dbbc12822..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/campaign_feed_service.proto +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/campaign_feed.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "CampaignFeedServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the CampaignFeed service. - -// Service to manage campaign feeds. -service CampaignFeedService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested campaign feed in full detail. - rpc GetCampaignFeed(GetCampaignFeedRequest) returns (google.ads.googleads.v2.resources.CampaignFeed) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/campaignFeeds/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes campaign feeds. Operation statuses are - // returned. - rpc MutateCampaignFeeds(MutateCampaignFeedsRequest) returns (MutateCampaignFeedsResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/campaignFeeds:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [CampaignFeedService.GetCampaignFeed][google.ads.googleads.v2.services.CampaignFeedService.GetCampaignFeed]. -message GetCampaignFeedRequest { - // Required. The resource name of the campaign feed to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignFeed" - } - ]; -} - -// Request message for [CampaignFeedService.MutateCampaignFeeds][google.ads.googleads.v2.services.CampaignFeedService.MutateCampaignFeeds]. -message MutateCampaignFeedsRequest { - // Required. The ID of the customer whose campaign feeds are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual campaign feeds. - repeated CampaignFeedOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update, remove) on a campaign feed. -message CampaignFeedOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new campaign feed. - google.ads.googleads.v2.resources.CampaignFeed create = 1; - - // Update operation: The campaign feed is expected to have a valid resource - // name. - google.ads.googleads.v2.resources.CampaignFeed update = 2; - - // Remove operation: A resource name for the removed campaign feed is - // expected, in this format: - // - // `customers/{customer_id}/campaignFeeds/{campaign_id}~{feed_id}` - string remove = 3; - } -} - -// Response message for a campaign feed mutate. -message MutateCampaignFeedsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateCampaignFeedResult results = 2; -} - -// The result for the campaign feed mutate. -message MutateCampaignFeedResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/campaign_label_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/campaign_label_service.proto deleted file mode 100644 index e8f68ad81..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/campaign_label_service.proto +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/campaign_label.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "CampaignLabelServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Campaign Label service. - -// Service to manage labels on campaigns. -service CampaignLabelService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested campaign-label relationship in full detail. - rpc GetCampaignLabel(GetCampaignLabelRequest) returns (google.ads.googleads.v2.resources.CampaignLabel) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/campaignLabels/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates and removes campaign-label relationships. - // Operation statuses are returned. - rpc MutateCampaignLabels(MutateCampaignLabelsRequest) returns (MutateCampaignLabelsResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/campaignLabels:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [CampaignLabelService.GetCampaignLabel][google.ads.googleads.v2.services.CampaignLabelService.GetCampaignLabel]. -message GetCampaignLabelRequest { - // Required. The resource name of the campaign-label relationship to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignLabel" - } - ]; -} - -// Request message for [CampaignLabelService.MutateCampaignLabels][google.ads.googleads.v2.services.CampaignLabelService.MutateCampaignLabels]. -message MutateCampaignLabelsRequest { - // Required. ID of the customer whose campaign-label relationships are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on campaign-label relationships. - repeated CampaignLabelOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, remove) on a campaign-label relationship. -message CampaignLabelOperation { - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new campaign-label - // relationship. - google.ads.googleads.v2.resources.CampaignLabel create = 1; - - // Remove operation: A resource name for the campaign-label relationship - // being removed, in this format: - // - // `customers/{customer_id}/campaignLabels/{campaign_id}~{label_id}` - string remove = 2; - } -} - -// Response message for a campaign labels mutate. -message MutateCampaignLabelsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateCampaignLabelResult results = 2; -} - -// The result for a campaign label mutate. -message MutateCampaignLabelResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/campaign_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/campaign_service.proto deleted file mode 100644 index 77ba8364a..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/campaign_service.proto +++ /dev/null @@ -1,128 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/campaign.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "CampaignServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Campaign service. - -// Service to manage campaigns. -service CampaignService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested campaign in full detail. - rpc GetCampaign(GetCampaignRequest) returns (google.ads.googleads.v2.resources.Campaign) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/campaigns/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes campaigns. Operation statuses are returned. - rpc MutateCampaigns(MutateCampaignsRequest) returns (MutateCampaignsResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/campaigns:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [CampaignService.GetCampaign][google.ads.googleads.v2.services.CampaignService.GetCampaign]. -message GetCampaignRequest { - // Required. The resource name of the campaign to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Campaign" - } - ]; -} - -// Request message for [CampaignService.MutateCampaigns][google.ads.googleads.v2.services.CampaignService.MutateCampaigns]. -message MutateCampaignsRequest { - // Required. The ID of the customer whose campaigns are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual campaigns. - repeated CampaignOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update, remove) on a campaign. -message CampaignOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new campaign. - google.ads.googleads.v2.resources.Campaign create = 1; - - // Update operation: The campaign is expected to have a valid - // resource name. - google.ads.googleads.v2.resources.Campaign update = 2; - - // Remove operation: A resource name for the removed campaign is - // expected, in this format: - // - // `customers/{customer_id}/campaigns/{campaign_id}` - string remove = 3; - } -} - -// Response message for campaign mutate. -message MutateCampaignsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateCampaignResult results = 2; -} - -// The result for the campaign mutate. -message MutateCampaignResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/campaign_shared_set_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/campaign_shared_set_service.proto deleted file mode 100644 index 778693aea..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/campaign_shared_set_service.proto +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/campaign_shared_set.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "CampaignSharedSetServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Campaign Shared Set service. - -// Service to manage campaign shared sets. -service CampaignSharedSetService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested campaign shared set in full detail. - rpc GetCampaignSharedSet(GetCampaignSharedSetRequest) returns (google.ads.googleads.v2.resources.CampaignSharedSet) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/campaignSharedSets/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates or removes campaign shared sets. Operation statuses are returned. - rpc MutateCampaignSharedSets(MutateCampaignSharedSetsRequest) returns (MutateCampaignSharedSetsResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/campaignSharedSets:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [CampaignSharedSetService.GetCampaignSharedSet][google.ads.googleads.v2.services.CampaignSharedSetService.GetCampaignSharedSet]. -message GetCampaignSharedSetRequest { - // Required. The resource name of the campaign shared set to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignSharedSet" - } - ]; -} - -// Request message for [CampaignSharedSetService.MutateCampaignSharedSets][google.ads.googleads.v2.services.CampaignSharedSetService.MutateCampaignSharedSets]. -message MutateCampaignSharedSetsRequest { - // Required. The ID of the customer whose campaign shared sets are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual campaign shared sets. - repeated CampaignSharedSetOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, remove) on an campaign shared set. -message CampaignSharedSetOperation { - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new campaign - // shared set. - google.ads.googleads.v2.resources.CampaignSharedSet create = 1; - - // Remove operation: A resource name for the removed campaign shared set is - // expected, in this format: - // - // `customers/{customer_id}/campaignSharedSets/{campaign_id}~{shared_set_id}` - string remove = 3; - } -} - -// Response message for a campaign shared set mutate. -message MutateCampaignSharedSetsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateCampaignSharedSetResult results = 2; -} - -// The result for the campaign shared set mutate. -message MutateCampaignSharedSetResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/carrier_constant_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/carrier_constant_service.proto deleted file mode 100644 index e8592dc0f..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/carrier_constant_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/carrier_constant.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "CarrierConstantServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the carrier constant service. - -// Service to fetch carrier constants. -service CarrierConstantService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested carrier constant in full detail. - rpc GetCarrierConstant(GetCarrierConstantRequest) returns (google.ads.googleads.v2.resources.CarrierConstant) { - option (google.api.http) = { - get: "/v2/{resource_name=carrierConstants/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [CarrierConstantService.GetCarrierConstant][google.ads.googleads.v2.services.CarrierConstantService.GetCarrierConstant]. -message GetCarrierConstantRequest { - // Required. Resource name of the carrier constant to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CarrierConstant" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/change_status_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/change_status_service.proto deleted file mode 100644 index 4402e16a3..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/change_status_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/change_status.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "ChangeStatusServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Change Status service. - -// Service to fetch change statuses. -service ChangeStatusService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested change status in full detail. - rpc GetChangeStatus(GetChangeStatusRequest) returns (google.ads.googleads.v2.resources.ChangeStatus) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/changeStatus/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for '[ChangeStatusService.GetChangeStatus][google.ads.googleads.v2.services.ChangeStatusService.GetChangeStatus]'. -message GetChangeStatusRequest { - // Required. The resource name of the change status to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/ChangeStatus" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/click_view_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/click_view_service.proto deleted file mode 100644 index fe002e75d..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/click_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/click_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "ClickViewServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the ClickView service. - -// Service to fetch click views. -service ClickViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested click view in full detail. - rpc GetClickView(GetClickViewRequest) returns (google.ads.googleads.v2.resources.ClickView) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/clickViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [ClickViewService.GetClickView][google.ads.googleads.v2.services.ClickViewService.GetClickView]. -message GetClickViewRequest { - // Required. The resource name of the click view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/ClickView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/conversion_action_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/conversion_action_service.proto deleted file mode 100644 index 571055485..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/conversion_action_service.proto +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/conversion_action.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "ConversionActionServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Conversion Action service. - -// Service to manage conversion actions. -service ConversionActionService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested conversion action. - rpc GetConversionAction(GetConversionActionRequest) returns (google.ads.googleads.v2.resources.ConversionAction) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/conversionActions/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates or removes conversion actions. Operation statuses are - // returned. - rpc MutateConversionActions(MutateConversionActionsRequest) returns (MutateConversionActionsResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/conversionActions:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [ConversionActionService.GetConversionAction][google.ads.googleads.v2.services.ConversionActionService.GetConversionAction]. -message GetConversionActionRequest { - // Required. The resource name of the conversion action to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/ConversionAction" - } - ]; -} - -// Request message for [ConversionActionService.MutateConversionActions][google.ads.googleads.v2.services.ConversionActionService.MutateConversionActions]. -message MutateConversionActionsRequest { - // Required. The ID of the customer whose conversion actions are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual conversion actions. - repeated ConversionActionOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update, remove) on a conversion action. -message ConversionActionOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new conversion - // action. - google.ads.googleads.v2.resources.ConversionAction create = 1; - - // Update operation: The conversion action is expected to have a valid - // resource name. - google.ads.googleads.v2.resources.ConversionAction update = 2; - - // Remove operation: A resource name for the removed conversion action is - // expected, in this format: - // - // `customers/{customer_id}/conversionActions/{conversion_action_id}` - string remove = 3; - } -} - -// Response message for [ConversionActionService.MutateConversionActions][google.ads.googleads.v2.services.ConversionActionService.MutateConversionActions]. -message MutateConversionActionsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateConversionActionResult results = 2; -} - -// The result for the conversion action mutate. -message MutateConversionActionResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/conversion_adjustment_upload_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/conversion_adjustment_upload_service.proto deleted file mode 100644 index 6662741f5..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/conversion_adjustment_upload_service.proto +++ /dev/null @@ -1,181 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/enums/conversion_adjustment_type.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/protobuf/wrappers.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "ConversionAdjustmentUploadServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Service to upload conversion adjustments. -service ConversionAdjustmentUploadService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Processes the given conversion adjustments. - rpc UploadConversionAdjustments(UploadConversionAdjustmentsRequest) returns (UploadConversionAdjustmentsResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}:uploadConversionAdjustments" - body: "*" - }; - option (google.api.method_signature) = "customer_id,conversion_adjustments,partial_failure"; - } -} - -// Request message for -// [ConversionAdjustmentUploadService.UploadConversionAdjustments][google.ads.googleads.v2.services.ConversionAdjustmentUploadService.UploadConversionAdjustments]. -message UploadConversionAdjustmentsRequest { - // Required. The ID of the customer performing the upload. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The conversion adjustments that are being uploaded. - repeated ConversionAdjustment conversion_adjustments = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried out - // in one transaction if and only if they are all valid. This should always be - // set to true. - // See - // https://developers.google.com/google-ads/api/docs/best-practices/partial-failures - // for more information about partial failure. - bool partial_failure = 3 [(google.api.field_behavior) = REQUIRED]; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// Response message for -// [ConversionAdjustmentUploadService.UploadConversionAdjustments][google.ads.googleads.v2.services.ConversionAdjustmentUploadService.UploadConversionAdjustments]. -message UploadConversionAdjustmentsResponse { - // Errors that pertain to conversion adjustment failures in the partial - // failure mode. Returned when all errors occur inside the adjustments. If any - // errors occur outside the adjustments (e.g. auth errors), we return an RPC - // level error. - // See - // https://developers.google.com/google-ads/api/docs/best-practices/partial-failures - // for more information about partial failure. - google.rpc.Status partial_failure_error = 1; - - // Returned for successfully processed conversion adjustments. Proto will be - // empty for rows that received an error. Results are not returned when - // validate_only is true. - repeated ConversionAdjustmentResult results = 2; -} - -// A conversion adjustment. -message ConversionAdjustment { - // Resource name of the conversion action associated with this conversion - // adjustment. Note: Although this resource name consists of a customer id and - // a conversion action id, validation will ignore the customer id and use the - // conversion action id as the sole identifier of the conversion action. - google.protobuf.StringValue conversion_action = 3; - - // The date time at which the adjustment occurred. Must be after the - // conversion_date_time. The timezone must be specified. The format is - // "yyyy-mm-dd hh:mm:ss+|-hh:mm", e.g. "2019-01-01 12:32:45-08:00". - google.protobuf.StringValue adjustment_date_time = 4; - - // The adjustment type. - google.ads.googleads.v2.enums.ConversionAdjustmentTypeEnum.ConversionAdjustmentType adjustment_type = 5; - - // Information needed to restate the conversion's value. - // Required for restatements. Should not be supplied for retractions. An error - // will be returned if provided for a retraction. - // NOTE: If you want to upload a second restatement with a different adjusted - // value, it must have a new, more recent, adjustment occurrence time. - // Otherwise, it will be treated as a duplicate of the previous restatement - // and ignored. - RestatementValue restatement_value = 6; - - // Identifies the conversion to be adjusted. - oneof conversion_identifier { - // Uniquely identifies a conversion that was reported without an order ID - // specified. - GclidDateTimePair gclid_date_time_pair = 1; - - // The order ID of the conversion to be adjusted. If the conversion was - // reported with an order ID specified, that order ID must be used as the - // identifier here. - google.protobuf.StringValue order_id = 2; - } -} - -// Contains information needed to restate a conversion's value. -message RestatementValue { - // The restated conversion value. This is the value of the conversion after - // restatement. For example, to change the value of a conversion from 100 to - // 70, an adjusted value of 70 should be reported. - // NOTE: If you want to upload a second restatement with a different adjusted - // value, it must have a new, more recent, adjustment occurrence time. - // Otherwise, it will be treated as a duplicate of the previous restatement - // and ignored. - google.protobuf.DoubleValue adjusted_value = 1; - - // The currency of the restated value. If not provided, then the default - // currency from the conversion action is used, and if that is not set then - // the account currency is used. This is the ISO 4217 3-character currency - // code e.g. USD or EUR. - google.protobuf.StringValue currency_code = 2; -} - -// Uniquely identifies a conversion that was reported without an order ID -// specified. -message GclidDateTimePair { - // Google click ID (gclid) associated with the original conversion for this - // adjustment. - google.protobuf.StringValue gclid = 1; - - // The date time at which the original conversion for this adjustment - // occurred. The timezone must be specified. The format is "yyyy-mm-dd - // hh:mm:ss+|-hh:mm", e.g. "2019-01-01 12:32:45-08:00". - google.protobuf.StringValue conversion_date_time = 2; -} - -// Information identifying a successfully processed ConversionAdjustment. -message ConversionAdjustmentResult { - // Resource name of the conversion action associated with this conversion - // adjustment. - google.protobuf.StringValue conversion_action = 3; - - // The date time at which the adjustment occurred. The format is - // "yyyy-mm-dd hh:mm:ss+|-hh:mm", e.g. "2019-01-01 12:32:45-08:00". - google.protobuf.StringValue adjustment_date_time = 4; - - // The adjustment type. - google.ads.googleads.v2.enums.ConversionAdjustmentTypeEnum.ConversionAdjustmentType adjustment_type = 5; - - // Identifies the conversion that was adjusted. - oneof conversion_identifier { - // Uniquely identifies a conversion that was reported without an order ID - // specified. - GclidDateTimePair gclid_date_time_pair = 1; - - // The order ID of the conversion that was adjusted. - google.protobuf.StringValue order_id = 2; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/conversion_upload_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/conversion_upload_service.proto deleted file mode 100644 index 7f220e46b..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/conversion_upload_service.proto +++ /dev/null @@ -1,235 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/protobuf/wrappers.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "ConversionUploadServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Service to upload conversions. -service ConversionUploadService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Processes the given click conversions. - rpc UploadClickConversions(UploadClickConversionsRequest) returns (UploadClickConversionsResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}:uploadClickConversions" - body: "*" - }; - option (google.api.method_signature) = "customer_id,conversions,partial_failure"; - } - - // Processes the given call conversions. - rpc UploadCallConversions(UploadCallConversionsRequest) returns (UploadCallConversionsResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}:uploadCallConversions" - body: "*" - }; - option (google.api.method_signature) = "customer_id,conversions,partial_failure"; - } -} - -// Request message for [ConversionUploadService.UploadClickConversions][google.ads.googleads.v2.services.ConversionUploadService.UploadClickConversions]. -message UploadClickConversionsRequest { - // Required. The ID of the customer performing the upload. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The conversions that are being uploaded. - repeated ClickConversion conversions = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // This should always be set to true. - // See - // https://developers.google.com/google-ads/api/docs/best-practices/partial-failures - // for more information about partial failure. - bool partial_failure = 3 [(google.api.field_behavior) = REQUIRED]; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// Response message for [ConversionUploadService.UploadClickConversions][google.ads.googleads.v2.services.ConversionUploadService.UploadClickConversions]. -message UploadClickConversionsResponse { - // Errors that pertain to conversion failures in the partial failure mode. - // Returned when all errors occur inside the conversions. If any errors occur - // outside the conversions (e.g. auth errors), we return an RPC level error. - // See - // https://developers.google.com/google-ads/api/docs/best-practices/partial-failures - // for more information about partial failure. - google.rpc.Status partial_failure_error = 1; - - // Returned for successfully processed conversions. Proto will be empty for - // rows that received an error. Results are not returned when validate_only is - // true. - repeated ClickConversionResult results = 2; -} - -// Request message for [ConversionUploadService.UploadCallConversions][google.ads.googleads.v2.services.ConversionUploadService.UploadCallConversions]. -message UploadCallConversionsRequest { - // Required. The ID of the customer performing the upload. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The conversions that are being uploaded. - repeated CallConversion conversions = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // This should always be set to true. - // See - // https://developers.google.com/google-ads/api/docs/best-practices/partial-failures - // for more information about partial failure. - bool partial_failure = 3 [(google.api.field_behavior) = REQUIRED]; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// Response message for [ConversionUploadService.UploadCallConversions][google.ads.googleads.v2.services.ConversionUploadService.UploadCallConversions]. -message UploadCallConversionsResponse { - // Errors that pertain to conversion failures in the partial failure mode. - // Returned when all errors occur inside the conversions. If any errors occur - // outside the conversions (e.g. auth errors), we return an RPC level error. - // See - // https://developers.google.com/google-ads/api/docs/best-practices/partial-failures - // for more information about partial failure. - google.rpc.Status partial_failure_error = 1; - - // Returned for successfully processed conversions. Proto will be empty for - // rows that received an error. Results are not returned when validate_only is - // true. - repeated CallConversionResult results = 2; -} - -// A click conversion. -message ClickConversion { - // The Google click ID (gclid) associated with this conversion. - google.protobuf.StringValue gclid = 1; - - // Resource name of the conversion action associated with this conversion. - // Note: Although this resource name consists of a customer id and a - // conversion action id, validation will ignore the customer id and use the - // conversion action id as the sole identifier of the conversion action. - google.protobuf.StringValue conversion_action = 2; - - // The date time at which the conversion occurred. Must be after - // the click time. The timezone must be specified. The format is - // "yyyy-mm-dd hh:mm:ss+|-hh:mm", e.g. “2019-01-01 12:32:45-08:00”. - google.protobuf.StringValue conversion_date_time = 3; - - // The value of the conversion for the advertiser. - google.protobuf.DoubleValue conversion_value = 4; - - // Currency associated with the conversion value. This is the ISO 4217 - // 3-character currency code. For example: USD, EUR. - google.protobuf.StringValue currency_code = 5; - - // The order ID associated with the conversion. An order id can only be used - // for one conversion per conversion action. - google.protobuf.StringValue order_id = 6; - - // Additional data about externally attributed conversions. This field - // is required for conversions with an externally attributed conversion - // action, but should not be set otherwise. - ExternalAttributionData external_attribution_data = 7; -} - -// A call conversion. -message CallConversion { - // The caller id from which this call was placed. Caller id is expected to be - // in E.164 format with preceding '+' sign. e.g. "+16502531234". - google.protobuf.StringValue caller_id = 1; - - // The date time at which the call occurred. The timezone must be specified. - // The format is "yyyy-mm-dd hh:mm:ss+|-hh:mm", - // e.g. "2019-01-01 12:32:45-08:00". - google.protobuf.StringValue call_start_date_time = 2; - - // Resource name of the conversion action associated with this conversion. - // Note: Although this resource name consists of a customer id and a - // conversion action id, validation will ignore the customer id and use the - // conversion action id as the sole identifier of the conversion action. - google.protobuf.StringValue conversion_action = 3; - - // The date time at which the conversion occurred. Must be after the call - // time. The timezone must be specified. The format is - // "yyyy-mm-dd hh:mm:ss+|-hh:mm", e.g. "2019-01-01 12:32:45-08:00". - google.protobuf.StringValue conversion_date_time = 4; - - // The value of the conversion for the advertiser. - google.protobuf.DoubleValue conversion_value = 5; - - // Currency associated with the conversion value. This is the ISO 4217 - // 3-character currency code. For example: USD, EUR. - google.protobuf.StringValue currency_code = 6; -} - -// Contains additional information about externally attributed conversions. -message ExternalAttributionData { - // Represents the fraction of the conversion that is attributed to the - // Google Ads click. - google.protobuf.DoubleValue external_attribution_credit = 1; - - // Specifies the attribution model name. - google.protobuf.StringValue external_attribution_model = 2; -} - -// Identifying information for a successfully processed ClickConversion. -message ClickConversionResult { - // The Google Click ID (gclid) associated with this conversion. - google.protobuf.StringValue gclid = 1; - - // Resource name of the conversion action associated with this conversion. - google.protobuf.StringValue conversion_action = 2; - - // The date time at which the conversion occurred. The format is - // "yyyy-mm-dd hh:mm:ss+|-hh:mm", e.g. “2019-01-01 12:32:45-08:00”. - google.protobuf.StringValue conversion_date_time = 3; -} - -// Identifying information for a successfully processed CallConversionUpload. -message CallConversionResult { - // The caller id from which this call was placed. Caller id is expected to be - // in E.164 format with preceding '+' sign. - google.protobuf.StringValue caller_id = 1; - - // The date time at which the call occurred. The format is - // "yyyy-mm-dd hh:mm:ss+|-hh:mm", e.g. "2019-01-01 12:32:45-08:00". - google.protobuf.StringValue call_start_date_time = 2; - - // Resource name of the conversion action associated with this conversion. - google.protobuf.StringValue conversion_action = 3; - - // The date time at which the conversion occurred. The format is - // "yyyy-mm-dd hh:mm:ss+|-hh:mm", e.g. "2019-01-01 12:32:45-08:00". - google.protobuf.StringValue conversion_date_time = 4; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/custom_interest_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/custom_interest_service.proto deleted file mode 100644 index 11fa505b0..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/custom_interest_service.proto +++ /dev/null @@ -1,110 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/custom_interest.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "CustomInterestServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Custom Interest service. - -// Service to manage custom interests. -service CustomInterestService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested custom interest in full detail. - rpc GetCustomInterest(GetCustomInterestRequest) returns (google.ads.googleads.v2.resources.CustomInterest) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/customInterests/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates or updates custom interests. Operation statuses are returned. - rpc MutateCustomInterests(MutateCustomInterestsRequest) returns (MutateCustomInterestsResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/customInterests:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [CustomInterestService.GetCustomInterest][google.ads.googleads.v2.services.CustomInterestService.GetCustomInterest]. -message GetCustomInterestRequest { - // Required. The resource name of the custom interest to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CustomInterest" - } - ]; -} - -// Request message for [CustomInterestService.MutateCustomInterests][google.ads.googleads.v2.services.CustomInterestService.MutateCustomInterests]. -message MutateCustomInterestsRequest { - // Required. The ID of the customer whose custom interests are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual custom interests. - repeated CustomInterestOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update) on a custom interest. -message CustomInterestOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new custom - // interest. - google.ads.googleads.v2.resources.CustomInterest create = 1; - - // Update operation: The custom interest is expected to have a valid - // resource name. - google.ads.googleads.v2.resources.CustomInterest update = 2; - } -} - -// Response message for custom interest mutate. -message MutateCustomInterestsResponse { - // All results for the mutate. - repeated MutateCustomInterestResult results = 2; -} - -// The result for the custom interest mutate. -message MutateCustomInterestResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/customer_client_link_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/customer_client_link_service.proto deleted file mode 100644 index 198a48780..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/customer_client_link_service.proto +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/customer_client_link.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "CustomerClientLinkServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Service to manage customer client links. -service CustomerClientLinkService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested CustomerClientLink in full detail. - rpc GetCustomerClientLink(GetCustomerClientLinkRequest) returns (google.ads.googleads.v2.resources.CustomerClientLink) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/customerClientLinks/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates or updates a customer client link. Operation statuses are returned. - rpc MutateCustomerClientLink(MutateCustomerClientLinkRequest) returns (MutateCustomerClientLinkResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/customerClientLinks:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operation"; - } -} - -// Request message for [CustomerClientLinkService.GetCustomerClientLink][google.ads.googleads.v2.services.CustomerClientLinkService.GetCustomerClientLink]. -message GetCustomerClientLinkRequest { - // Required. The resource name of the customer client link to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CustomerClientLink" - } - ]; -} - -// Request message for [CustomerClientLinkService.MutateCustomerClientLink][google.ads.googleads.v2.services.CustomerClientLinkService.MutateCustomerClientLink]. -message MutateCustomerClientLinkRequest { - // Required. The ID of the customer whose customer link are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The operation to perform on the individual CustomerClientLink. - CustomerClientLinkOperation operation = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// A single operation (create, update) on a CustomerClientLink. -message CustomerClientLinkOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new link. - google.ads.googleads.v2.resources.CustomerClientLink create = 1; - - // Update operation: The link is expected to have a valid resource name. - google.ads.googleads.v2.resources.CustomerClientLink update = 2; - } -} - -// Response message for a CustomerClientLink mutate. -message MutateCustomerClientLinkResponse { - // A result that identifies the resource affected by the mutate request. - MutateCustomerClientLinkResult result = 1; -} - -// The result for a single customer client link mutate. -message MutateCustomerClientLinkResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/customer_client_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/customer_client_service.proto deleted file mode 100644 index 99f60b2ed..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/customer_client_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/customer_client.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "CustomerClientServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Customer Client service. - -// Service to get clients in a customer's hierarchy. -service CustomerClientService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested client in full detail. - rpc GetCustomerClient(GetCustomerClientRequest) returns (google.ads.googleads.v2.resources.CustomerClient) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/customerClients/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [CustomerClientService.GetCustomerClient][google.ads.googleads.v2.services.CustomerClientService.GetCustomerClient]. -message GetCustomerClientRequest { - // Required. The resource name of the client to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CustomerClient" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/customer_extension_setting_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/customer_extension_setting_service.proto deleted file mode 100644 index bd08f5eb8..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/customer_extension_setting_service.proto +++ /dev/null @@ -1,134 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/customer_extension_setting.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "CustomerExtensionSettingServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the CustomerExtensionSetting service. - -// Service to manage customer extension settings. -service CustomerExtensionSettingService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested customer extension setting in full detail. - rpc GetCustomerExtensionSetting(GetCustomerExtensionSettingRequest) returns (google.ads.googleads.v2.resources.CustomerExtensionSetting) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/customerExtensionSettings/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes customer extension settings. Operation - // statuses are returned. - rpc MutateCustomerExtensionSettings(MutateCustomerExtensionSettingsRequest) returns (MutateCustomerExtensionSettingsResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/customerExtensionSettings:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for -// [CustomerExtensionSettingService.GetCustomerExtensionSetting][google.ads.googleads.v2.services.CustomerExtensionSettingService.GetCustomerExtensionSetting]. -message GetCustomerExtensionSettingRequest { - // Required. The resource name of the customer extension setting to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CustomerExtensionSetting" - } - ]; -} - -// Request message for -// [CustomerExtensionSettingService.MutateCustomerExtensionSettings][google.ads.googleads.v2.services.CustomerExtensionSettingService.MutateCustomerExtensionSettings]. -message MutateCustomerExtensionSettingsRequest { - // Required. The ID of the customer whose customer extension settings are being - // modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual customer extension - // settings. - repeated CustomerExtensionSettingOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update, remove) on a customer extension setting. -message CustomerExtensionSettingOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new customer - // extension setting. - google.ads.googleads.v2.resources.CustomerExtensionSetting create = 1; - - // Update operation: The customer extension setting is expected to have a - // valid resource name. - google.ads.googleads.v2.resources.CustomerExtensionSetting update = 2; - - // Remove operation: A resource name for the removed customer extension - // setting is expected, in this format: - // - // `customers/{customer_id}/customerExtensionSettings/{extension_type}` - string remove = 3; - } -} - -// Response message for a customer extension setting mutate. -message MutateCustomerExtensionSettingsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateCustomerExtensionSettingResult results = 2; -} - -// The result for the customer extension setting mutate. -message MutateCustomerExtensionSettingResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/customer_feed_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/customer_feed_service.proto deleted file mode 100644 index ee15cd526..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/customer_feed_service.proto +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/customer_feed.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "CustomerFeedServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the CustomerFeed service. - -// Service to manage customer feeds. -service CustomerFeedService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested customer feed in full detail. - rpc GetCustomerFeed(GetCustomerFeedRequest) returns (google.ads.googleads.v2.resources.CustomerFeed) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/customerFeeds/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes customer feeds. Operation statuses are - // returned. - rpc MutateCustomerFeeds(MutateCustomerFeedsRequest) returns (MutateCustomerFeedsResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/customerFeeds:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [CustomerFeedService.GetCustomerFeed][google.ads.googleads.v2.services.CustomerFeedService.GetCustomerFeed]. -message GetCustomerFeedRequest { - // Required. The resource name of the customer feed to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CustomerFeed" - } - ]; -} - -// Request message for [CustomerFeedService.MutateCustomerFeeds][google.ads.googleads.v2.services.CustomerFeedService.MutateCustomerFeeds]. -message MutateCustomerFeedsRequest { - // Required. The ID of the customer whose customer feeds are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual customer feeds. - repeated CustomerFeedOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update, remove) on a customer feed. -message CustomerFeedOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new customer feed. - google.ads.googleads.v2.resources.CustomerFeed create = 1; - - // Update operation: The customer feed is expected to have a valid resource - // name. - google.ads.googleads.v2.resources.CustomerFeed update = 2; - - // Remove operation: A resource name for the removed customer feed is - // expected, in this format: - // - // `customers/{customer_id}/customerFeeds/{feed_id}` - string remove = 3; - } -} - -// Response message for a customer feed mutate. -message MutateCustomerFeedsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateCustomerFeedResult results = 2; -} - -// The result for the customer feed mutate. -message MutateCustomerFeedResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/customer_label_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/customer_label_service.proto deleted file mode 100644 index e8424b664..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/customer_label_service.proto +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/customer_label.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "CustomerLabelServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Customer Label service. - -// Service to manage labels on customers. -service CustomerLabelService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested customer-label relationship in full detail. - rpc GetCustomerLabel(GetCustomerLabelRequest) returns (google.ads.googleads.v2.resources.CustomerLabel) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/customerLabels/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates and removes customer-label relationships. - // Operation statuses are returned. - rpc MutateCustomerLabels(MutateCustomerLabelsRequest) returns (MutateCustomerLabelsResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/customerLabels:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [CustomerLabelService.GetCustomerLabel][google.ads.googleads.v2.services.CustomerLabelService.GetCustomerLabel]. -message GetCustomerLabelRequest { - // Required. The resource name of the customer-label relationship to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CustomerLabel" - } - ]; -} - -// Request message for [CustomerLabelService.MutateCustomerLabels][google.ads.googleads.v2.services.CustomerLabelService.MutateCustomerLabels]. -message MutateCustomerLabelsRequest { - // Required. ID of the customer whose customer-label relationships are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on customer-label relationships. - repeated CustomerLabelOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, remove) on a customer-label relationship. -message CustomerLabelOperation { - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new customer-label - // relationship. - google.ads.googleads.v2.resources.CustomerLabel create = 1; - - // Remove operation: A resource name for the customer-label relationship - // being removed, in this format: - // - // `customers/{customer_id}/customerLabels/{label_id}` - string remove = 2; - } -} - -// Response message for a customer labels mutate. -message MutateCustomerLabelsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateCustomerLabelResult results = 2; -} - -// The result for a customer label mutate. -message MutateCustomerLabelResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/customer_manager_link_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/customer_manager_link_service.proto deleted file mode 100644 index 6b89892fa..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/customer_manager_link_service.proto +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/customer_manager_link.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "CustomerManagerLinkServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Service to manage customer-manager links. -service CustomerManagerLinkService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested CustomerManagerLink in full detail. - rpc GetCustomerManagerLink(GetCustomerManagerLinkRequest) returns (google.ads.googleads.v2.resources.CustomerManagerLink) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/customerManagerLinks/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates or updates customer manager links. Operation statuses are returned. - rpc MutateCustomerManagerLink(MutateCustomerManagerLinkRequest) returns (MutateCustomerManagerLinkResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/customerManagerLinks:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [CustomerManagerLinkService.GetCustomerManagerLink][google.ads.googleads.v2.services.CustomerManagerLinkService.GetCustomerManagerLink]. -message GetCustomerManagerLinkRequest { - // Required. The resource name of the CustomerManagerLink to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CustomerManagerLink" - } - ]; -} - -// Request message for [CustomerManagerLinkService.MutateCustomerManagerLink][google.ads.googleads.v2.services.CustomerManagerLinkService.MutateCustomerManagerLink]. -message MutateCustomerManagerLinkRequest { - // Required. The ID of the customer whose customer manager links are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual customer manager links. - repeated CustomerManagerLinkOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Updates the status of a CustomerManagerLink. -// The following actions are possible: -// 1. Update operation with status ACTIVE accepts a pending invitation. -// 2. Update operation with status REFUSED declines a pending invitation. -// 3. Update operation with status INACTIVE terminates link to manager. -message CustomerManagerLinkOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Update operation: The link is expected to have a valid resource name. - google.ads.googleads.v2.resources.CustomerManagerLink update = 2; - } -} - -// Response message for a CustomerManagerLink mutate. -message MutateCustomerManagerLinkResponse { - // A result that identifies the resource affected by the mutate request. - repeated MutateCustomerManagerLinkResult results = 1; -} - -// The result for the customer manager link mutate. -message MutateCustomerManagerLinkResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/customer_negative_criterion_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/customer_negative_criterion_service.proto deleted file mode 100644 index bdb7aa50c..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/customer_negative_criterion_service.proto +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/customer_negative_criterion.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "CustomerNegativeCriterionServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Customer Negative Criterion service. - -// Service to manage customer negative criteria. -service CustomerNegativeCriterionService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested criterion in full detail. - rpc GetCustomerNegativeCriterion(GetCustomerNegativeCriterionRequest) returns (google.ads.googleads.v2.resources.CustomerNegativeCriterion) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/customerNegativeCriteria/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates or removes criteria. Operation statuses are returned. - rpc MutateCustomerNegativeCriteria(MutateCustomerNegativeCriteriaRequest) returns (MutateCustomerNegativeCriteriaResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/customerNegativeCriteria:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for -// [CustomerNegativeCriterionService.GetCustomerNegativeCriterion][google.ads.googleads.v2.services.CustomerNegativeCriterionService.GetCustomerNegativeCriterion]. -message GetCustomerNegativeCriterionRequest { - // Required. The resource name of the criterion to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CustomerNegativeCriterion" - } - ]; -} - -// Request message for -// [CustomerNegativeCriterionService.MutateCustomerNegativeCriteria][google.ads.googleads.v2.services.CustomerNegativeCriterionService.MutateCustomerNegativeCriteria]. -message MutateCustomerNegativeCriteriaRequest { - // Required. The ID of the customer whose criteria are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual criteria. - repeated CustomerNegativeCriterionOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create or remove) on a customer level negative criterion. -message CustomerNegativeCriterionOperation { - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new criterion. - google.ads.googleads.v2.resources.CustomerNegativeCriterion create = 1; - - // Remove operation: A resource name for the removed criterion is expected, - // in this format: - // - // `customers/{customer_id}/customerNegativeCriteria/{criterion_id}` - string remove = 2; - } -} - -// Response message for customer negative criterion mutate. -message MutateCustomerNegativeCriteriaResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateCustomerNegativeCriteriaResult results = 2; -} - -// The result for the criterion mutate. -message MutateCustomerNegativeCriteriaResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/customer_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/customer_service.proto deleted file mode 100644 index e61253268..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/customer_service.proto +++ /dev/null @@ -1,157 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/enums/access_role.proto"; -import "google/ads/googleads/v2/resources/customer.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/protobuf/wrappers.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "CustomerServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Customer service. - -// Service to manage customers. -service CustomerService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested customer in full detail. - rpc GetCustomer(GetCustomerRequest) returns (google.ads.googleads.v2.resources.Customer) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Updates a customer. Operation statuses are returned. - rpc MutateCustomer(MutateCustomerRequest) returns (MutateCustomerResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operation"; - } - - // Returns resource names of customers directly accessible by the - // user authenticating the call. - rpc ListAccessibleCustomers(ListAccessibleCustomersRequest) returns (ListAccessibleCustomersResponse) { - option (google.api.http) = { - get: "/v2/customers:listAccessibleCustomers" - }; - } - - // Creates a new client under manager. The new client customer is returned. - rpc CreateCustomerClient(CreateCustomerClientRequest) returns (CreateCustomerClientResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}:createCustomerClient" - body: "*" - }; - option (google.api.method_signature) = "customer_id,customer_client"; - } -} - -// Request message for [CustomerService.GetCustomer][google.ads.googleads.v2.services.CustomerService.GetCustomer]. -message GetCustomerRequest { - // Required. The resource name of the customer to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Customer" - } - ]; -} - -// Request message for [CustomerService.MutateCustomer][google.ads.googleads.v2.services.CustomerService.MutateCustomer]. -message MutateCustomerRequest { - // Required. The ID of the customer being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The operation to perform on the customer - CustomerOperation operation = 4 [(google.api.field_behavior) = REQUIRED]; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 5; -} - -// Request message for [CustomerService.CreateCustomerClient][google.ads.googleads.v2.services.CustomerService.CreateCustomerClient]. -message CreateCustomerClientRequest { - // Required. The ID of the Manager under whom client customer is being created. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The new client customer to create. The resource name on this customer - // will be ignored. - google.ads.googleads.v2.resources.Customer customer_client = 2 [(google.api.field_behavior) = REQUIRED]; - - // Email address of the user who should be invited on the created client - // customer. Accessible only to customers on the allow-list. - google.protobuf.StringValue email_address = 3; - - // The proposed role of user on the created client customer. - // Accessible only to customers on the allow-list. - google.ads.googleads.v2.enums.AccessRoleEnum.AccessRole access_role = 4; -} - -// A single update on a customer. -message CustomerOperation { - // Mutate operation. Only updates are supported for customer. - google.ads.googleads.v2.resources.Customer update = 1; - - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 2; -} - -// Response message for CreateCustomerClient mutate. -message CreateCustomerClientResponse { - // The resource name of the newly created customer client. - string resource_name = 2; -} - -// Response message for customer mutate. -message MutateCustomerResponse { - // Result for the mutate. - MutateCustomerResult result = 2; -} - -// The result for the customer mutate. -message MutateCustomerResult { - // Returned for successful operations. - string resource_name = 1; -} - -// Request message for [CustomerService.ListAccessibleCustomers][google.ads.googleads.v2.services.CustomerService.ListAccessibleCustomers]. -message ListAccessibleCustomersRequest { - -} - -// Response message for [CustomerService.ListAccessibleCustomers][google.ads.googleads.v2.services.CustomerService.ListAccessibleCustomers]. -message ListAccessibleCustomersResponse { - // Resource name of customers directly accessible by the - // user authenticating the call. - repeated string resource_names = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/detail_placement_view_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/detail_placement_view_service.proto deleted file mode 100644 index bfcb3a5f6..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/detail_placement_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/detail_placement_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "DetailPlacementViewServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Detail Placement View service. - -// Service to fetch Detail Placement views. -service DetailPlacementViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested Detail Placement view in full detail. - rpc GetDetailPlacementView(GetDetailPlacementViewRequest) returns (google.ads.googleads.v2.resources.DetailPlacementView) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/detailPlacementViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [DetailPlacementViewService.GetDetailPlacementView][google.ads.googleads.v2.services.DetailPlacementViewService.GetDetailPlacementView]. -message GetDetailPlacementViewRequest { - // Required. The resource name of the Detail Placement view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/DetailPlacementView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/display_keyword_view_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/display_keyword_view_service.proto deleted file mode 100644 index 98693bbf4..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/display_keyword_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/display_keyword_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "DisplayKeywordViewServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Display Keyword View service. - -// Service to manage display keyword views. -service DisplayKeywordViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested display keyword view in full detail. - rpc GetDisplayKeywordView(GetDisplayKeywordViewRequest) returns (google.ads.googleads.v2.resources.DisplayKeywordView) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/displayKeywordViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [DisplayKeywordViewService.GetDisplayKeywordView][google.ads.googleads.v2.services.DisplayKeywordViewService.GetDisplayKeywordView]. -message GetDisplayKeywordViewRequest { - // Required. The resource name of the display keyword view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/DisplayKeywordView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/distance_view_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/distance_view_service.proto deleted file mode 100644 index 75440d2b4..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/distance_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/distance_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "DistanceViewServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Distance View service. - -// Service to fetch distance views. -service DistanceViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the attributes of the requested distance view. - rpc GetDistanceView(GetDistanceViewRequest) returns (google.ads.googleads.v2.resources.DistanceView) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/distanceViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [DistanceViewService.GetDistanceView][google.ads.googleads.v2.services.DistanceViewService.GetDistanceView]. -message GetDistanceViewRequest { - // Required. The resource name of the distance view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/DistanceView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/domain_category_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/domain_category_service.proto deleted file mode 100644 index 2b6242da6..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/domain_category_service.proto +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/domain_category.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "DomainCategoryServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the DomainCategory Service. - -// Service to fetch domain categories. -service DomainCategoryService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested domain category. - rpc GetDomainCategory(GetDomainCategoryRequest) returns (google.ads.googleads.v2.resources.DomainCategory) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/domainCategories/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for -// [DomainCategoryService.GetDomainCategory][google.ads.googleads.v2.services.DomainCategoryService.GetDomainCategory]. -message GetDomainCategoryRequest { - // Required. Resource name of the domain category to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/DomainCategory" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/dynamic_search_ads_search_term_view_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/dynamic_search_ads_search_term_view_service.proto deleted file mode 100644 index 3bb4dd6c1..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/dynamic_search_ads_search_term_view_service.proto +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/dynamic_search_ads_search_term_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "DynamicSearchAdsSearchTermViewServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Dynamic Search Ads Search Term View service. - -// Service to fetch dynamic search ads views. -service DynamicSearchAdsSearchTermViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested dynamic search ads search term view in full detail. - rpc GetDynamicSearchAdsSearchTermView(GetDynamicSearchAdsSearchTermViewRequest) returns (google.ads.googleads.v2.resources.DynamicSearchAdsSearchTermView) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/dynamicSearchAdsSearchTermViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for -// [DynamicSearchAdsSearchTermViewService.GetDynamicSearchAdsSearchTermView][google.ads.googleads.v2.services.DynamicSearchAdsSearchTermViewService.GetDynamicSearchAdsSearchTermView]. -message GetDynamicSearchAdsSearchTermViewRequest { - // Required. The resource name of the dynamic search ads search term view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/DynamicSearchAdsSearchTermView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/expanded_landing_page_view_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/expanded_landing_page_view_service.proto deleted file mode 100644 index d7b26b5a0..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/expanded_landing_page_view_service.proto +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/expanded_landing_page_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "ExpandedLandingPageViewServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the expanded landing page view service. - -// Service to fetch expanded landing page views. -service ExpandedLandingPageViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested expanded landing page view in full detail. - rpc GetExpandedLandingPageView(GetExpandedLandingPageViewRequest) returns (google.ads.googleads.v2.resources.ExpandedLandingPageView) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/expandedLandingPageViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for -// [ExpandedLandingPageViewService.GetExpandedLandingPageView][google.ads.googleads.v2.services.ExpandedLandingPageViewService.GetExpandedLandingPageView]. -message GetExpandedLandingPageViewRequest { - // Required. The resource name of the expanded landing page view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/ExpandedLandingPageView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/extension_feed_item_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/extension_feed_item_service.proto deleted file mode 100644 index fa2ccb4f4..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/extension_feed_item_service.proto +++ /dev/null @@ -1,131 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/extension_feed_item.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "ExtensionFeedItemServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the ExtensionFeedItem service. - -// Service to manage extension feed items. -service ExtensionFeedItemService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested extension feed item in full detail. - rpc GetExtensionFeedItem(GetExtensionFeedItemRequest) returns (google.ads.googleads.v2.resources.ExtensionFeedItem) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/extensionFeedItems/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes extension feed items. Operation - // statuses are returned. - rpc MutateExtensionFeedItems(MutateExtensionFeedItemsRequest) returns (MutateExtensionFeedItemsResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/extensionFeedItems:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [ExtensionFeedItemService.GetExtensionFeedItem][google.ads.googleads.v2.services.ExtensionFeedItemService.GetExtensionFeedItem]. -message GetExtensionFeedItemRequest { - // Required. The resource name of the extension feed item to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/ExtensionFeedItem" - } - ]; -} - -// Request message for [ExtensionFeedItemService.MutateExtensionFeedItems][google.ads.googleads.v2.services.ExtensionFeedItemService.MutateExtensionFeedItems]. -message MutateExtensionFeedItemsRequest { - // Required. The ID of the customer whose extension feed items are being - // modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual extension feed items. - repeated ExtensionFeedItemOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update, remove) on an extension feed item. -message ExtensionFeedItemOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new extension - // feed item. - google.ads.googleads.v2.resources.ExtensionFeedItem create = 1; - - // Update operation: The extension feed item is expected to have a - // valid resource name. - google.ads.googleads.v2.resources.ExtensionFeedItem update = 2; - - // Remove operation: A resource name for the removed extension feed item - // is expected, in this format: - // - // `customers/{customer_id}/extensionFeedItems/{feed_item_id}` - string remove = 3; - } -} - -// Response message for an extension feed item mutate. -message MutateExtensionFeedItemsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateExtensionFeedItemResult results = 2; -} - -// The result for the extension feed item mutate. -message MutateExtensionFeedItemResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/feed_item_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/feed_item_service.proto deleted file mode 100644 index a91fb15f6..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/feed_item_service.proto +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/feed_item.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "FeedItemServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the FeedItem service. - -// Service to manage feed items. -service FeedItemService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested feed item in full detail. - rpc GetFeedItem(GetFeedItemRequest) returns (google.ads.googleads.v2.resources.FeedItem) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/feedItems/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes feed items. Operation statuses are - // returned. - rpc MutateFeedItems(MutateFeedItemsRequest) returns (MutateFeedItemsResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/feedItems:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [FeedItemService.GetFeedItem][google.ads.googleads.v2.services.FeedItemService.GetFeedItem]. -message GetFeedItemRequest { - // Required. The resource name of the feed item to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/FeedItem" - } - ]; -} - -// Request message for [FeedItemService.MutateFeedItems][google.ads.googleads.v2.services.FeedItemService.MutateFeedItems]. -message MutateFeedItemsRequest { - // Required. The ID of the customer whose feed items are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual feed items. - repeated FeedItemOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update, remove) on an feed item. -message FeedItemOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new feed item. - google.ads.googleads.v2.resources.FeedItem create = 1; - - // Update operation: The feed item is expected to have a valid resource - // name. - google.ads.googleads.v2.resources.FeedItem update = 2; - - // Remove operation: A resource name for the removed feed item is - // expected, in this format: - // - // `customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}` - string remove = 3; - } -} - -// Response message for an feed item mutate. -message MutateFeedItemsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateFeedItemResult results = 2; -} - -// The result for the feed item mutate. -message MutateFeedItemResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/feed_item_target_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/feed_item_target_service.proto deleted file mode 100644 index b683d7f3c..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/feed_item_target_service.proto +++ /dev/null @@ -1,104 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/feed_item_target.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "FeedItemTargetServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the FeedItemTarget service. - -// Service to manage feed item targets. -service FeedItemTargetService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested feed item targets in full detail. - rpc GetFeedItemTarget(GetFeedItemTargetRequest) returns (google.ads.googleads.v2.resources.FeedItemTarget) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/feedItemTargets/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates or removes feed item targets. Operation statuses are returned. - rpc MutateFeedItemTargets(MutateFeedItemTargetsRequest) returns (MutateFeedItemTargetsResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/feedItemTargets:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [FeedItemTargetService.GetFeedItemTarget][google.ads.googleads.v2.services.FeedItemTargetService.GetFeedItemTarget]. -message GetFeedItemTargetRequest { - // Required. The resource name of the feed item targets to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/FeedItemTarget" - } - ]; -} - -// Request message for [FeedItemTargetService.MutateFeedItemTargets][google.ads.googleads.v2.services.FeedItemTargetService.MutateFeedItemTargets]. -message MutateFeedItemTargetsRequest { - // Required. The ID of the customer whose feed item targets are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual feed item targets. - repeated FeedItemTargetOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// A single operation (create, remove) on an feed item target. -message FeedItemTargetOperation { - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new feed item - // target. - google.ads.googleads.v2.resources.FeedItemTarget create = 1; - - // Remove operation: A resource name for the removed feed item target is - // expected, in this format: - // - // `customers/{customer_id}/feedItemTargets/{feed_id}~{feed_item_id}~{feed_item_target_type}~{feed_item_target_id}` - string remove = 2; - } -} - -// Response message for an feed item target mutate. -message MutateFeedItemTargetsResponse { - // All results for the mutate. - repeated MutateFeedItemTargetResult results = 2; -} - -// The result for the feed item target mutate. -message MutateFeedItemTargetResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/feed_mapping_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/feed_mapping_service.proto deleted file mode 100644 index 932599c46..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/feed_mapping_service.proto +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/feed_mapping.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "FeedMappingServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the FeedMapping service. - -// Service to manage feed mappings. -service FeedMappingService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested feed mapping in full detail. - rpc GetFeedMapping(GetFeedMappingRequest) returns (google.ads.googleads.v2.resources.FeedMapping) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/feedMappings/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates or removes feed mappings. Operation statuses are - // returned. - rpc MutateFeedMappings(MutateFeedMappingsRequest) returns (MutateFeedMappingsResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/feedMappings:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [FeedMappingService.GetFeedMapping][google.ads.googleads.v2.services.FeedMappingService.GetFeedMapping]. -message GetFeedMappingRequest { - // Required. The resource name of the feed mapping to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/FeedMapping" - } - ]; -} - -// Request message for [FeedMappingService.MutateFeedMappings][google.ads.googleads.v2.services.FeedMappingService.MutateFeedMappings]. -message MutateFeedMappingsRequest { - // Required. The ID of the customer whose feed mappings are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual feed mappings. - repeated FeedMappingOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, remove) on a feed mapping. -message FeedMappingOperation { - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new feed mapping. - google.ads.googleads.v2.resources.FeedMapping create = 1; - - // Remove operation: A resource name for the removed feed mapping is - // expected, in this format: - // - // `customers/{customer_id}/feedMappings/{feed_id}~{feed_mapping_id}` - string remove = 3; - } -} - -// Response message for a feed mapping mutate. -message MutateFeedMappingsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateFeedMappingResult results = 2; -} - -// The result for the feed mapping mutate. -message MutateFeedMappingResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/feed_placeholder_view_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/feed_placeholder_view_service.proto deleted file mode 100644 index 8dd0feaa1..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/feed_placeholder_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/feed_placeholder_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "FeedPlaceholderViewServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the FeedPlaceholderView service. - -// Service to fetch feed placeholder views. -service FeedPlaceholderViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested feed placeholder view in full detail. - rpc GetFeedPlaceholderView(GetFeedPlaceholderViewRequest) returns (google.ads.googleads.v2.resources.FeedPlaceholderView) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/feedPlaceholderViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [FeedPlaceholderViewService.GetFeedPlaceholderView][google.ads.googleads.v2.services.FeedPlaceholderViewService.GetFeedPlaceholderView]. -message GetFeedPlaceholderViewRequest { - // Required. The resource name of the feed placeholder view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/FeedPlaceholderView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/feed_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/feed_service.proto deleted file mode 100644 index b3cb5c624..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/feed_service.proto +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/feed.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "FeedServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Feed service. - -// Service to manage feeds. -service FeedService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested feed in full detail. - rpc GetFeed(GetFeedRequest) returns (google.ads.googleads.v2.resources.Feed) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/feeds/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes feeds. Operation statuses are - // returned. - rpc MutateFeeds(MutateFeedsRequest) returns (MutateFeedsResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/feeds:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [FeedService.GetFeed][google.ads.googleads.v2.services.FeedService.GetFeed]. -message GetFeedRequest { - // Required. The resource name of the feed to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Feed" - } - ]; -} - -// Request message for [FeedService.MutateFeeds][google.ads.googleads.v2.services.FeedService.MutateFeeds]. -message MutateFeedsRequest { - // Required. The ID of the customer whose feeds are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual feeds. - repeated FeedOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update, remove) on an feed. -message FeedOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new feed. - google.ads.googleads.v2.resources.Feed create = 1; - - // Update operation: The feed is expected to have a valid resource - // name. - google.ads.googleads.v2.resources.Feed update = 2; - - // Remove operation: A resource name for the removed feed is - // expected, in this format: - // - // `customers/{customer_id}/feeds/{feed_id}` - string remove = 3; - } -} - -// Response message for an feed mutate. -message MutateFeedsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateFeedResult results = 2; -} - -// The result for the feed mutate. -message MutateFeedResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/gender_view_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/gender_view_service.proto deleted file mode 100644 index 9f1bd6da9..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/gender_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/gender_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "GenderViewServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Gender View service. - -// Service to manage gender views. -service GenderViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested gender view in full detail. - rpc GetGenderView(GetGenderViewRequest) returns (google.ads.googleads.v2.resources.GenderView) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/genderViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [GenderViewService.GetGenderView][google.ads.googleads.v2.services.GenderViewService.GetGenderView]. -message GetGenderViewRequest { - // Required. The resource name of the gender view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/GenderView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/geo_target_constant_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/geo_target_constant_service.proto deleted file mode 100644 index de850cdb0..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/geo_target_constant_service.proto +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/geo_target_constant.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "GeoTargetConstantServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Geo target constant service. - -// Service to fetch geo target constants. -service GeoTargetConstantService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested geo target constant in full detail. - rpc GetGeoTargetConstant(GetGeoTargetConstantRequest) returns (google.ads.googleads.v2.resources.GeoTargetConstant) { - option (google.api.http) = { - get: "/v2/{resource_name=geoTargetConstants/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Returns GeoTargetConstant suggestions by location name or by resource name. - rpc SuggestGeoTargetConstants(SuggestGeoTargetConstantsRequest) returns (SuggestGeoTargetConstantsResponse) { - option (google.api.http) = { - post: "/v2/geoTargetConstants:suggest" - body: "*" - }; - } -} - -// Request message for [GeoTargetConstantService.GetGeoTargetConstant][google.ads.googleads.v2.services.GeoTargetConstantService.GetGeoTargetConstant]. -message GetGeoTargetConstantRequest { - // Required. The resource name of the geo target constant to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/GeoTargetConstant" - } - ]; -} - -// Request message for -// [GeoTargetConstantService.SuggestGeoTargetConstants][google.ads.googleads.v2.services.GeoTargetConstantService.SuggestGeoTargetConstants]. -message SuggestGeoTargetConstantsRequest { - // A list of location names. - message LocationNames { - // A list of location names. - repeated google.protobuf.StringValue names = 1; - } - - // A list of geo target constant resource names. - message GeoTargets { - // A list of geo target constant resource names. - repeated google.protobuf.StringValue geo_target_constants = 1; - } - - // If possible, returned geo targets are translated using this locale. If not, - // en is used by default. This is also used as a hint for returned geo - // targets. - google.protobuf.StringValue locale = 3; - - // Returned geo targets are restricted to this country code. - google.protobuf.StringValue country_code = 5; - - // Required. A selector of geo target constants. - oneof query { - // The location names to search by. At most 25 names can be set. - LocationNames location_names = 1; - - // The geo target constant resource names to filter by. - GeoTargets geo_targets = 2; - } -} - -// Response message for [GeoTargetConstantService.SuggestGeoTargetConstants][google.ads.googleads.v2.services.GeoTargetConstantService.SuggestGeoTargetConstants]. -message SuggestGeoTargetConstantsResponse { - // Geo target constant suggestions. - repeated GeoTargetConstantSuggestion geo_target_constant_suggestions = 1; -} - -// A geo target constant suggestion. -message GeoTargetConstantSuggestion { - // The language this GeoTargetConstantSuggestion is currently translated to. - // It affects the name of geo target fields. For example, if locale=en, then - // name=Spain. If locale=es, then name=España. The default locale will be - // returned if no translation exists for the locale in the request. - google.protobuf.StringValue locale = 1; - - // Approximate user population that will be targeted, rounded to the - // nearest 100. - google.protobuf.Int64Value reach = 2; - - // If the request searched by location name, this is the location name that - // matched the geo target. - google.protobuf.StringValue search_term = 3; - - // The GeoTargetConstant result. - google.ads.googleads.v2.resources.GeoTargetConstant geo_target_constant = 4; - - // The list of parents of the geo target constant. - repeated google.ads.googleads.v2.resources.GeoTargetConstant geo_target_constant_parents = 5; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/geographic_view_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/geographic_view_service.proto deleted file mode 100644 index cd2ca0947..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/geographic_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/geographic_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "GeographicViewServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the GeographicViewService. - -// Service to manage geographic views. -service GeographicViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested geographic view in full detail. - rpc GetGeographicView(GetGeographicViewRequest) returns (google.ads.googleads.v2.resources.GeographicView) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/geographicViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [GeographicViewService.GetGeographicView][google.ads.googleads.v2.services.GeographicViewService.GetGeographicView]. -message GetGeographicViewRequest { - // Required. The resource name of the geographic view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/GeographicView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/google_ads_field_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/google_ads_field_service.proto deleted file mode 100644 index 66017383b..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/google_ads_field_service.proto +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/google_ads_field.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "GoogleAdsFieldServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the GoogleAdsFieldService - -// Service to fetch Google Ads API fields. -service GoogleAdsFieldService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns just the requested field. - rpc GetGoogleAdsField(GetGoogleAdsFieldRequest) returns (google.ads.googleads.v2.resources.GoogleAdsField) { - option (google.api.http) = { - get: "/v2/{resource_name=googleAdsFields/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Returns all fields that match the search query. - rpc SearchGoogleAdsFields(SearchGoogleAdsFieldsRequest) returns (SearchGoogleAdsFieldsResponse) { - option (google.api.http) = { - post: "/v2/googleAdsFields:search" - body: "*" - }; - option (google.api.method_signature) = "query"; - } -} - -// Request message for [GoogleAdsFieldService.GetGoogleAdsField][google.ads.googleads.v2.services.GoogleAdsFieldService.GetGoogleAdsField]. -message GetGoogleAdsFieldRequest { - // Required. The resource name of the field to get. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/GoogleAdsField" - } - ]; -} - -// Request message for [GoogleAdsFieldService.SearchGoogleAdsFields][google.ads.googleads.v2.services.GoogleAdsFieldService.SearchGoogleAdsFields]. -message SearchGoogleAdsFieldsRequest { - // Required. The query string. - string query = 1 [(google.api.field_behavior) = REQUIRED]; - - // Token of the page to retrieve. If not specified, the first page of - // results will be returned. Use the value obtained from `next_page_token` - // in the previous response in order to request the next page of results. - string page_token = 2; - - // Number of elements to retrieve in a single page. - // When too large a page is requested, the server may decide to further - // limit the number of returned resources. - int32 page_size = 3; -} - -// Response message for [GoogleAdsFieldService.SearchGoogleAdsFields][google.ads.googleads.v2.services.GoogleAdsFieldService.SearchGoogleAdsFields]. -message SearchGoogleAdsFieldsResponse { - // The list of fields that matched the query. - repeated google.ads.googleads.v2.resources.GoogleAdsField results = 1; - - // Pagination token used to retrieve the next page of results. Pass the - // content of this string as the `page_token` attribute of the next request. - // `next_page_token` is not returned for the last page. - string next_page_token = 2; - - // Total number of results that match the query ignoring the LIMIT clause. - int64 total_results_count = 3; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/google_ads_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/google_ads_service.proto deleted file mode 100644 index 2ec47a0e1..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/google_ads_service.proto +++ /dev/null @@ -1,869 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/common/metrics.proto"; -import "google/ads/googleads/v2/common/segments.proto"; -import "google/ads/googleads/v2/resources/account_budget.proto"; -import "google/ads/googleads/v2/resources/account_budget_proposal.proto"; -import "google/ads/googleads/v2/resources/ad_group.proto"; -import "google/ads/googleads/v2/resources/ad_group_ad.proto"; -import "google/ads/googleads/v2/resources/ad_group_ad_asset_view.proto"; -import "google/ads/googleads/v2/resources/ad_group_ad_label.proto"; -import "google/ads/googleads/v2/resources/ad_group_audience_view.proto"; -import "google/ads/googleads/v2/resources/ad_group_bid_modifier.proto"; -import "google/ads/googleads/v2/resources/ad_group_criterion.proto"; -import "google/ads/googleads/v2/resources/ad_group_criterion_label.proto"; -import "google/ads/googleads/v2/resources/ad_group_criterion_simulation.proto"; -import "google/ads/googleads/v2/resources/ad_group_extension_setting.proto"; -import "google/ads/googleads/v2/resources/ad_group_feed.proto"; -import "google/ads/googleads/v2/resources/ad_group_label.proto"; -import "google/ads/googleads/v2/resources/ad_group_simulation.proto"; -import "google/ads/googleads/v2/resources/ad_parameter.proto"; -import "google/ads/googleads/v2/resources/ad_schedule_view.proto"; -import "google/ads/googleads/v2/resources/age_range_view.proto"; -import "google/ads/googleads/v2/resources/asset.proto"; -import "google/ads/googleads/v2/resources/bidding_strategy.proto"; -import "google/ads/googleads/v2/resources/billing_setup.proto"; -import "google/ads/googleads/v2/resources/campaign.proto"; -import "google/ads/googleads/v2/resources/campaign_audience_view.proto"; -import "google/ads/googleads/v2/resources/campaign_bid_modifier.proto"; -import "google/ads/googleads/v2/resources/campaign_budget.proto"; -import "google/ads/googleads/v2/resources/campaign_criterion.proto"; -import "google/ads/googleads/v2/resources/campaign_criterion_simulation.proto"; -import "google/ads/googleads/v2/resources/campaign_draft.proto"; -import "google/ads/googleads/v2/resources/campaign_experiment.proto"; -import "google/ads/googleads/v2/resources/campaign_extension_setting.proto"; -import "google/ads/googleads/v2/resources/campaign_feed.proto"; -import "google/ads/googleads/v2/resources/campaign_label.proto"; -import "google/ads/googleads/v2/resources/campaign_shared_set.proto"; -import "google/ads/googleads/v2/resources/carrier_constant.proto"; -import "google/ads/googleads/v2/resources/change_status.proto"; -import "google/ads/googleads/v2/resources/click_view.proto"; -import "google/ads/googleads/v2/resources/conversion_action.proto"; -import "google/ads/googleads/v2/resources/custom_interest.proto"; -import "google/ads/googleads/v2/resources/customer.proto"; -import "google/ads/googleads/v2/resources/customer_client.proto"; -import "google/ads/googleads/v2/resources/customer_client_link.proto"; -import "google/ads/googleads/v2/resources/customer_extension_setting.proto"; -import "google/ads/googleads/v2/resources/customer_feed.proto"; -import "google/ads/googleads/v2/resources/customer_label.proto"; -import "google/ads/googleads/v2/resources/customer_manager_link.proto"; -import "google/ads/googleads/v2/resources/customer_negative_criterion.proto"; -import "google/ads/googleads/v2/resources/detail_placement_view.proto"; -import "google/ads/googleads/v2/resources/display_keyword_view.proto"; -import "google/ads/googleads/v2/resources/distance_view.proto"; -import "google/ads/googleads/v2/resources/domain_category.proto"; -import "google/ads/googleads/v2/resources/dynamic_search_ads_search_term_view.proto"; -import "google/ads/googleads/v2/resources/expanded_landing_page_view.proto"; -import "google/ads/googleads/v2/resources/extension_feed_item.proto"; -import "google/ads/googleads/v2/resources/feed.proto"; -import "google/ads/googleads/v2/resources/feed_item.proto"; -import "google/ads/googleads/v2/resources/feed_item_target.proto"; -import "google/ads/googleads/v2/resources/feed_mapping.proto"; -import "google/ads/googleads/v2/resources/feed_placeholder_view.proto"; -import "google/ads/googleads/v2/resources/gender_view.proto"; -import "google/ads/googleads/v2/resources/geo_target_constant.proto"; -import "google/ads/googleads/v2/resources/geographic_view.proto"; -import "google/ads/googleads/v2/resources/group_placement_view.proto"; -import "google/ads/googleads/v2/resources/hotel_group_view.proto"; -import "google/ads/googleads/v2/resources/hotel_performance_view.proto"; -import "google/ads/googleads/v2/resources/keyword_plan.proto"; -import "google/ads/googleads/v2/resources/keyword_plan_ad_group.proto"; -import "google/ads/googleads/v2/resources/keyword_plan_campaign.proto"; -import "google/ads/googleads/v2/resources/keyword_plan_keyword.proto"; -import "google/ads/googleads/v2/resources/keyword_plan_negative_keyword.proto"; -import "google/ads/googleads/v2/resources/keyword_view.proto"; -import "google/ads/googleads/v2/resources/label.proto"; -import "google/ads/googleads/v2/resources/landing_page_view.proto"; -import "google/ads/googleads/v2/resources/language_constant.proto"; -import "google/ads/googleads/v2/resources/location_view.proto"; -import "google/ads/googleads/v2/resources/managed_placement_view.proto"; -import "google/ads/googleads/v2/resources/media_file.proto"; -import "google/ads/googleads/v2/resources/mobile_app_category_constant.proto"; -import "google/ads/googleads/v2/resources/mobile_device_constant.proto"; -import "google/ads/googleads/v2/resources/mutate_job.proto"; -import "google/ads/googleads/v2/resources/operating_system_version_constant.proto"; -import "google/ads/googleads/v2/resources/paid_organic_search_term_view.proto"; -import "google/ads/googleads/v2/resources/parental_status_view.proto"; -import "google/ads/googleads/v2/resources/product_bidding_category_constant.proto"; -import "google/ads/googleads/v2/resources/product_group_view.proto"; -import "google/ads/googleads/v2/resources/recommendation.proto"; -import "google/ads/googleads/v2/resources/remarketing_action.proto"; -import "google/ads/googleads/v2/resources/search_term_view.proto"; -import "google/ads/googleads/v2/resources/shared_criterion.proto"; -import "google/ads/googleads/v2/resources/shared_set.proto"; -import "google/ads/googleads/v2/resources/shopping_performance_view.proto"; -import "google/ads/googleads/v2/resources/topic_constant.proto"; -import "google/ads/googleads/v2/resources/topic_view.proto"; -import "google/ads/googleads/v2/resources/user_interest.proto"; -import "google/ads/googleads/v2/resources/user_list.proto"; -import "google/ads/googleads/v2/resources/user_location_view.proto"; -import "google/ads/googleads/v2/resources/video.proto"; -import "google/ads/googleads/v2/services/ad_group_ad_label_service.proto"; -import "google/ads/googleads/v2/services/ad_group_ad_service.proto"; -import "google/ads/googleads/v2/services/ad_group_bid_modifier_service.proto"; -import "google/ads/googleads/v2/services/ad_group_criterion_label_service.proto"; -import "google/ads/googleads/v2/services/ad_group_criterion_service.proto"; -import "google/ads/googleads/v2/services/ad_group_extension_setting_service.proto"; -import "google/ads/googleads/v2/services/ad_group_feed_service.proto"; -import "google/ads/googleads/v2/services/ad_group_label_service.proto"; -import "google/ads/googleads/v2/services/ad_group_service.proto"; -import "google/ads/googleads/v2/services/ad_parameter_service.proto"; -import "google/ads/googleads/v2/services/asset_service.proto"; -import "google/ads/googleads/v2/services/bidding_strategy_service.proto"; -import "google/ads/googleads/v2/services/campaign_bid_modifier_service.proto"; -import "google/ads/googleads/v2/services/campaign_budget_service.proto"; -import "google/ads/googleads/v2/services/campaign_criterion_service.proto"; -import "google/ads/googleads/v2/services/campaign_draft_service.proto"; -import "google/ads/googleads/v2/services/campaign_experiment_service.proto"; -import "google/ads/googleads/v2/services/campaign_extension_setting_service.proto"; -import "google/ads/googleads/v2/services/campaign_feed_service.proto"; -import "google/ads/googleads/v2/services/campaign_label_service.proto"; -import "google/ads/googleads/v2/services/campaign_service.proto"; -import "google/ads/googleads/v2/services/campaign_shared_set_service.proto"; -import "google/ads/googleads/v2/services/conversion_action_service.proto"; -import "google/ads/googleads/v2/services/customer_extension_setting_service.proto"; -import "google/ads/googleads/v2/services/customer_feed_service.proto"; -import "google/ads/googleads/v2/services/customer_label_service.proto"; -import "google/ads/googleads/v2/services/customer_negative_criterion_service.proto"; -import "google/ads/googleads/v2/services/customer_service.proto"; -import "google/ads/googleads/v2/services/extension_feed_item_service.proto"; -import "google/ads/googleads/v2/services/feed_item_service.proto"; -import "google/ads/googleads/v2/services/feed_item_target_service.proto"; -import "google/ads/googleads/v2/services/feed_mapping_service.proto"; -import "google/ads/googleads/v2/services/feed_service.proto"; -import "google/ads/googleads/v2/services/label_service.proto"; -import "google/ads/googleads/v2/services/media_file_service.proto"; -import "google/ads/googleads/v2/services/remarketing_action_service.proto"; -import "google/ads/googleads/v2/services/shared_criterion_service.proto"; -import "google/ads/googleads/v2/services/shared_set_service.proto"; -import "google/ads/googleads/v2/services/user_list_service.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "GoogleAdsServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the GoogleAdsService. - -// Service to fetch data and metrics across resources. -service GoogleAdsService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns all rows that match the search query. - rpc Search(SearchGoogleAdsRequest) returns (SearchGoogleAdsResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/googleAds:search" - body: "*" - }; - option (google.api.method_signature) = "customer_id,query"; - } - - // Creates, updates, or removes resources. This method supports atomic - // transactions with multiple types of resources. For example, you can - // atomically create a campaign and a campaign budget, or perform up to - // thousands of mutates atomically. - // - // This method is essentially a wrapper around a series of mutate methods. The - // only features it offers over calling those methods directly are: - // - // - Atomic transactions - // - Temp resource names (described below) - // - Somewhat reduced latency over making a series of mutate calls - // - // Note: Only resources that support atomic transactions are included, so this - // method can't replace all calls to individual services. - // - // ## Atomic Transaction Benefits - // - // Atomicity makes error handling much easier. If you're making a series of - // changes and one fails, it can leave your account in an inconsistent state. - // With atomicity, you either reach the desired state directly, or the request - // fails and you can retry. - // - // ## Temp Resource Names - // - // Temp resource names are a special type of resource name used to create a - // resource and reference that resource in the same request. For example, if a - // campaign budget is created with `resource_name` equal to - // `customers/123/campaignBudgets/-1`, that resource name can be reused in - // the `Campaign.budget` field in the same request. That way, the two - // resources are created and linked atomically. - // - // To create a temp resource name, put a negative number in the part of the - // name that the server would normally allocate. - // - // Note: - // - // - Resources must be created with a temp name before the name can be reused. - // For example, the previous CampaignBudget+Campaign example would fail if - // the mutate order was reversed. - // - Temp names are not remembered across requests. - // - There's no limit to the number of temp names in a request. - // - Each temp name must use a unique negative number, even if the resource - // types differ. - // - // ## Latency - // - // It's important to group mutates by resource type or the request may time - // out and fail. Latency is roughly equal to a series of calls to individual - // mutate methods, where each change in resource type is a new call. For - // example, mutating 10 campaigns then 10 ad groups is like 2 calls, while - // mutating 1 campaign, 1 ad group, 1 campaign, 1 ad group is like 4 calls. - rpc Mutate(MutateGoogleAdsRequest) returns (MutateGoogleAdsResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/googleAds:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,mutate_operations"; - } -} - -// Request message for [GoogleAdsService.Search][google.ads.googleads.v2.services.GoogleAdsService.Search]. -message SearchGoogleAdsRequest { - // Required. The ID of the customer being queried. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The query string. - string query = 2 [(google.api.field_behavior) = REQUIRED]; - - // Token of the page to retrieve. If not specified, the first - // page of results will be returned. Use the value obtained from - // `next_page_token` in the previous response in order to request - // the next page of results. - string page_token = 3; - - // Number of elements to retrieve in a single page. - // When too large a page is requested, the server may decide to - // further limit the number of returned resources. - int32 page_size = 4; - - // If true, the request is validated but not executed. - bool validate_only = 5; - - // If true, summary row will be included in the response. - // Otherwise(false or not specified) summary row will not be returned. - bool return_summary_row = 6; -} - -// Response message for [GoogleAdsService.Search][google.ads.googleads.v2.services.GoogleAdsService.Search]. -message SearchGoogleAdsResponse { - // The list of rows that matched the query. - repeated GoogleAdsRow results = 1; - - // Pagination token used to retrieve the next page of results. - // Pass the content of this string as the `page_token` attribute of - // the next request. `next_page_token` is not returned for the last - // page. - string next_page_token = 2; - - // Total number of results that match the query ignoring the LIMIT - // clause. - int64 total_results_count = 3; - - // FieldMask that represents what fields were requested by the user. - google.protobuf.FieldMask field_mask = 5; - - // Summary row that contains summary of metrics in results. - // Summary of metrics means aggregation of metrics across all results, - // here aggregation could be sum, average, rate, etc. - GoogleAdsRow summary_row = 6; -} - -// A returned row from the query. -message GoogleAdsRow { - // The account budget in the query. - google.ads.googleads.v2.resources.AccountBudget account_budget = 42; - - // The account budget proposal referenced in the query. - google.ads.googleads.v2.resources.AccountBudgetProposal account_budget_proposal = 43; - - // The ad group referenced in the query. - google.ads.googleads.v2.resources.AdGroup ad_group = 3; - - // The ad referenced in the query. - google.ads.googleads.v2.resources.AdGroupAd ad_group_ad = 16; - - // The ad group ad asset view in the query. - google.ads.googleads.v2.resources.AdGroupAdAssetView ad_group_ad_asset_view = 131; - - // The ad group ad label referenced in the query. - google.ads.googleads.v2.resources.AdGroupAdLabel ad_group_ad_label = 120; - - // The ad group audience view referenced in the query. - google.ads.googleads.v2.resources.AdGroupAudienceView ad_group_audience_view = 57; - - // The bid modifier referenced in the query. - google.ads.googleads.v2.resources.AdGroupBidModifier ad_group_bid_modifier = 24; - - // The criterion referenced in the query. - google.ads.googleads.v2.resources.AdGroupCriterion ad_group_criterion = 17; - - // The ad group criterion label referenced in the query. - google.ads.googleads.v2.resources.AdGroupCriterionLabel ad_group_criterion_label = 121; - - // The ad group criterion simulation referenced in the query. - google.ads.googleads.v2.resources.AdGroupCriterionSimulation ad_group_criterion_simulation = 110; - - // The ad group extension setting referenced in the query. - google.ads.googleads.v2.resources.AdGroupExtensionSetting ad_group_extension_setting = 112; - - // The ad group feed referenced in the query. - google.ads.googleads.v2.resources.AdGroupFeed ad_group_feed = 67; - - // The ad group label referenced in the query. - google.ads.googleads.v2.resources.AdGroupLabel ad_group_label = 115; - - // The ad group simulation referenced in the query. - google.ads.googleads.v2.resources.AdGroupSimulation ad_group_simulation = 107; - - // The ad parameter referenced in the query. - google.ads.googleads.v2.resources.AdParameter ad_parameter = 130; - - // The age range view referenced in the query. - google.ads.googleads.v2.resources.AgeRangeView age_range_view = 48; - - // The ad schedule view referenced in the query. - google.ads.googleads.v2.resources.AdScheduleView ad_schedule_view = 89; - - // The domain category referenced in the query. - google.ads.googleads.v2.resources.DomainCategory domain_category = 91; - - // The asset referenced in the query. - google.ads.googleads.v2.resources.Asset asset = 105; - - // The bidding strategy referenced in the query. - google.ads.googleads.v2.resources.BiddingStrategy bidding_strategy = 18; - - // The billing setup referenced in the query. - google.ads.googleads.v2.resources.BillingSetup billing_setup = 41; - - // The campaign budget referenced in the query. - google.ads.googleads.v2.resources.CampaignBudget campaign_budget = 19; - - // The campaign referenced in the query. - google.ads.googleads.v2.resources.Campaign campaign = 2; - - // The campaign audience view referenced in the query. - google.ads.googleads.v2.resources.CampaignAudienceView campaign_audience_view = 69; - - // The campaign bid modifier referenced in the query. - google.ads.googleads.v2.resources.CampaignBidModifier campaign_bid_modifier = 26; - - // The campaign criterion referenced in the query. - google.ads.googleads.v2.resources.CampaignCriterion campaign_criterion = 20; - - // The campaign criterion simulation referenced in the query. - google.ads.googleads.v2.resources.CampaignCriterionSimulation campaign_criterion_simulation = 111; - - // The campaign draft referenced in the query. - google.ads.googleads.v2.resources.CampaignDraft campaign_draft = 49; - - // The campaign experiment referenced in the query. - google.ads.googleads.v2.resources.CampaignExperiment campaign_experiment = 84; - - // The campaign extension setting referenced in the query. - google.ads.googleads.v2.resources.CampaignExtensionSetting campaign_extension_setting = 113; - - // The campaign feed referenced in the query. - google.ads.googleads.v2.resources.CampaignFeed campaign_feed = 63; - - // The campaign label referenced in the query. - google.ads.googleads.v2.resources.CampaignLabel campaign_label = 108; - - // Campaign Shared Set referenced in AWQL query. - google.ads.googleads.v2.resources.CampaignSharedSet campaign_shared_set = 30; - - // The carrier constant referenced in the query. - google.ads.googleads.v2.resources.CarrierConstant carrier_constant = 66; - - // The ChangeStatus referenced in the query. - google.ads.googleads.v2.resources.ChangeStatus change_status = 37; - - // The conversion action referenced in the query. - google.ads.googleads.v2.resources.ConversionAction conversion_action = 103; - - // The ClickView referenced in the query. - google.ads.googleads.v2.resources.ClickView click_view = 122; - - // The CustomInterest referenced in the query. - google.ads.googleads.v2.resources.CustomInterest custom_interest = 104; - - // The customer referenced in the query. - google.ads.googleads.v2.resources.Customer customer = 1; - - // The CustomerManagerLink referenced in the query. - google.ads.googleads.v2.resources.CustomerManagerLink customer_manager_link = 61; - - // The CustomerClientLink referenced in the query. - google.ads.googleads.v2.resources.CustomerClientLink customer_client_link = 62; - - // The CustomerClient referenced in the query. - google.ads.googleads.v2.resources.CustomerClient customer_client = 70; - - // The customer extension setting referenced in the query. - google.ads.googleads.v2.resources.CustomerExtensionSetting customer_extension_setting = 114; - - // The customer feed referenced in the query. - google.ads.googleads.v2.resources.CustomerFeed customer_feed = 64; - - // The customer label referenced in the query. - google.ads.googleads.v2.resources.CustomerLabel customer_label = 124; - - // The customer negative criterion referenced in the query. - google.ads.googleads.v2.resources.CustomerNegativeCriterion customer_negative_criterion = 88; - - // The detail placement view referenced in the query. - google.ads.googleads.v2.resources.DetailPlacementView detail_placement_view = 118; - - // The display keyword view referenced in the query. - google.ads.googleads.v2.resources.DisplayKeywordView display_keyword_view = 47; - - // The distance view referenced in the query. - google.ads.googleads.v2.resources.DistanceView distance_view = 132; - - // The dynamic search ads search term view referenced in the query. - google.ads.googleads.v2.resources.DynamicSearchAdsSearchTermView dynamic_search_ads_search_term_view = 106; - - // The expanded landing page view referenced in the query. - google.ads.googleads.v2.resources.ExpandedLandingPageView expanded_landing_page_view = 128; - - // The extension feed item referenced in the query. - google.ads.googleads.v2.resources.ExtensionFeedItem extension_feed_item = 85; - - // The feed referenced in the query. - google.ads.googleads.v2.resources.Feed feed = 46; - - // The feed item referenced in the query. - google.ads.googleads.v2.resources.FeedItem feed_item = 50; - - // The feed item target referenced in the query. - google.ads.googleads.v2.resources.FeedItemTarget feed_item_target = 116; - - // The feed mapping referenced in the query. - google.ads.googleads.v2.resources.FeedMapping feed_mapping = 58; - - // The feed placeholder view referenced in the query. - google.ads.googleads.v2.resources.FeedPlaceholderView feed_placeholder_view = 97; - - // The gender view referenced in the query. - google.ads.googleads.v2.resources.GenderView gender_view = 40; - - // The geo target constant referenced in the query. - google.ads.googleads.v2.resources.GeoTargetConstant geo_target_constant = 23; - - // The geographic view referenced in the query. - google.ads.googleads.v2.resources.GeographicView geographic_view = 125; - - // The group placement view referenced in the query. - google.ads.googleads.v2.resources.GroupPlacementView group_placement_view = 119; - - // The hotel group view referenced in the query. - google.ads.googleads.v2.resources.HotelGroupView hotel_group_view = 51; - - // The hotel performance view referenced in the query. - google.ads.googleads.v2.resources.HotelPerformanceView hotel_performance_view = 71; - - // The keyword view referenced in the query. - google.ads.googleads.v2.resources.KeywordView keyword_view = 21; - - // The keyword plan referenced in the query. - google.ads.googleads.v2.resources.KeywordPlan keyword_plan = 32; - - // The keyword plan campaign referenced in the query. - google.ads.googleads.v2.resources.KeywordPlanCampaign keyword_plan_campaign = 33; - - // The keyword plan negative keyword referenced in the query. - google.ads.googleads.v2.resources.KeywordPlanNegativeKeyword keyword_plan_negative_keyword = 34; - - // The keyword plan ad group referenced in the query. - google.ads.googleads.v2.resources.KeywordPlanAdGroup keyword_plan_ad_group = 35; - - // The keyword plan keyword referenced in the query. - google.ads.googleads.v2.resources.KeywordPlanKeyword keyword_plan_keyword = 36; - - // The label referenced in the query. - google.ads.googleads.v2.resources.Label label = 52; - - // The landing page view referenced in the query. - google.ads.googleads.v2.resources.LandingPageView landing_page_view = 126; - - // The language constant referenced in the query. - google.ads.googleads.v2.resources.LanguageConstant language_constant = 55; - - // The location view referenced in the query. - google.ads.googleads.v2.resources.LocationView location_view = 123; - - // The managed placement view referenced in the query. - google.ads.googleads.v2.resources.ManagedPlacementView managed_placement_view = 53; - - // The media file referenced in the query. - google.ads.googleads.v2.resources.MediaFile media_file = 90; - - // The mobile app category constant referenced in the query. - google.ads.googleads.v2.resources.MobileAppCategoryConstant mobile_app_category_constant = 87; - - // The mobile device constant referenced in the query. - google.ads.googleads.v2.resources.MobileDeviceConstant mobile_device_constant = 98; - - // The mutate job referenced in the query. - google.ads.googleads.v2.resources.MutateJob mutate_job = 127; - - // The operating system version constant referenced in the query. - google.ads.googleads.v2.resources.OperatingSystemVersionConstant operating_system_version_constant = 86; - - // The paid organic search term view referenced in the query. - google.ads.googleads.v2.resources.PaidOrganicSearchTermView paid_organic_search_term_view = 129; - - // The parental status view referenced in the query. - google.ads.googleads.v2.resources.ParentalStatusView parental_status_view = 45; - - // The Product Bidding Category referenced in the query. - google.ads.googleads.v2.resources.ProductBiddingCategoryConstant product_bidding_category_constant = 109; - - // The product group view referenced in the query. - google.ads.googleads.v2.resources.ProductGroupView product_group_view = 54; - - // The recommendation referenced in the query. - google.ads.googleads.v2.resources.Recommendation recommendation = 22; - - // The search term view referenced in the query. - google.ads.googleads.v2.resources.SearchTermView search_term_view = 68; - - // The shared set referenced in the query. - google.ads.googleads.v2.resources.SharedCriterion shared_criterion = 29; - - // The shared set referenced in the query. - google.ads.googleads.v2.resources.SharedSet shared_set = 27; - - // The shopping performance view referenced in the query. - google.ads.googleads.v2.resources.ShoppingPerformanceView shopping_performance_view = 117; - - // The topic view referenced in the query. - google.ads.googleads.v2.resources.TopicView topic_view = 44; - - // The user interest referenced in the query. - google.ads.googleads.v2.resources.UserInterest user_interest = 59; - - // The user list referenced in the query. - google.ads.googleads.v2.resources.UserList user_list = 38; - - // The user location view referenced in the query. - google.ads.googleads.v2.resources.UserLocationView user_location_view = 135; - - // The remarketing action referenced in the query. - google.ads.googleads.v2.resources.RemarketingAction remarketing_action = 60; - - // The topic constant referenced in the query. - google.ads.googleads.v2.resources.TopicConstant topic_constant = 31; - - // The video referenced in the query. - google.ads.googleads.v2.resources.Video video = 39; - - // The metrics. - google.ads.googleads.v2.common.Metrics metrics = 4; - - // The segments. - google.ads.googleads.v2.common.Segments segments = 102; -} - -// Request message for [GoogleAdsService.Mutate][google.ads.googleads.v2.services.GoogleAdsService.Mutate]. -message MutateGoogleAdsRequest { - // Required. The ID of the customer whose resources are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual resources. - repeated MutateOperation mutate_operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// Response message for [GoogleAdsService.Mutate][google.ads.googleads.v2.services.GoogleAdsService.Mutate]. -message MutateGoogleAdsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g., auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All responses for the mutate. - repeated MutateOperationResponse mutate_operation_responses = 1; -} - -// A single operation (create, update, remove) on a resource. -message MutateOperation { - // The mutate operation. - oneof operation { - // An ad group ad label mutate operation. - AdGroupAdLabelOperation ad_group_ad_label_operation = 17; - - // An ad group ad mutate operation. - AdGroupAdOperation ad_group_ad_operation = 1; - - // An ad group bid modifier mutate operation. - AdGroupBidModifierOperation ad_group_bid_modifier_operation = 2; - - // An ad group criterion label mutate operation. - AdGroupCriterionLabelOperation ad_group_criterion_label_operation = 18; - - // An ad group criterion mutate operation. - AdGroupCriterionOperation ad_group_criterion_operation = 3; - - // An ad group extension setting mutate operation. - AdGroupExtensionSettingOperation ad_group_extension_setting_operation = 19; - - // An ad group feed mutate operation. - AdGroupFeedOperation ad_group_feed_operation = 20; - - // An ad group label mutate operation. - AdGroupLabelOperation ad_group_label_operation = 21; - - // An ad group mutate operation. - AdGroupOperation ad_group_operation = 5; - - // An ad parameter mutate operation. - AdParameterOperation ad_parameter_operation = 22; - - // An asset mutate operation. - AssetOperation asset_operation = 23; - - // A bidding strategy mutate operation. - BiddingStrategyOperation bidding_strategy_operation = 6; - - // A campaign bid modifier mutate operation. - CampaignBidModifierOperation campaign_bid_modifier_operation = 7; - - // A campaign budget mutate operation. - CampaignBudgetOperation campaign_budget_operation = 8; - - // A campaign criterion mutate operation. - CampaignCriterionOperation campaign_criterion_operation = 13; - - // A campaign draft mutate operation. - CampaignDraftOperation campaign_draft_operation = 24; - - // A campaign experiment mutate operation. - CampaignExperimentOperation campaign_experiment_operation = 25; - - // A campaign extension setting mutate operation. - CampaignExtensionSettingOperation campaign_extension_setting_operation = 26; - - // A campaign feed mutate operation. - CampaignFeedOperation campaign_feed_operation = 27; - - // A campaign label mutate operation. - CampaignLabelOperation campaign_label_operation = 28; - - // A campaign mutate operation. - CampaignOperation campaign_operation = 10; - - // A campaign shared set mutate operation. - CampaignSharedSetOperation campaign_shared_set_operation = 11; - - // A conversion action mutate operation. - ConversionActionOperation conversion_action_operation = 12; - - // A customer extension setting mutate operation. - CustomerExtensionSettingOperation customer_extension_setting_operation = 30; - - // A customer feed mutate operation. - CustomerFeedOperation customer_feed_operation = 31; - - // A customer label mutate operation. - CustomerLabelOperation customer_label_operation = 32; - - // A customer negative criterion mutate operation. - CustomerNegativeCriterionOperation customer_negative_criterion_operation = 34; - - // A customer mutate operation. - CustomerOperation customer_operation = 35; - - // An extension feed item mutate operation. - ExtensionFeedItemOperation extension_feed_item_operation = 36; - - // A feed item mutate operation. - FeedItemOperation feed_item_operation = 37; - - // A feed item target mutate operation. - FeedItemTargetOperation feed_item_target_operation = 38; - - // A feed mapping mutate operation. - FeedMappingOperation feed_mapping_operation = 39; - - // A feed mutate operation. - FeedOperation feed_operation = 40; - - // A label mutate operation. - LabelOperation label_operation = 41; - - // A media file mutate operation. - MediaFileOperation media_file_operation = 42; - - // A remarketing action mutate operation. - RemarketingActionOperation remarketing_action_operation = 43; - - // A shared criterion mutate operation. - SharedCriterionOperation shared_criterion_operation = 14; - - // A shared set mutate operation. - SharedSetOperation shared_set_operation = 15; - - // A user list mutate operation. - UserListOperation user_list_operation = 16; - } -} - -// Response message for the resource mutate. -message MutateOperationResponse { - // The mutate response. - oneof response { - // The result for the ad group ad label mutate. - MutateAdGroupAdLabelResult ad_group_ad_label_result = 17; - - // The result for the ad group ad mutate. - MutateAdGroupAdResult ad_group_ad_result = 1; - - // The result for the ad group bid modifier mutate. - MutateAdGroupBidModifierResult ad_group_bid_modifier_result = 2; - - // The result for the ad group criterion label mutate. - MutateAdGroupCriterionLabelResult ad_group_criterion_label_result = 18; - - // The result for the ad group criterion mutate. - MutateAdGroupCriterionResult ad_group_criterion_result = 3; - - // The result for the ad group extension setting mutate. - MutateAdGroupExtensionSettingResult ad_group_extension_setting_result = 19; - - // The result for the ad group feed mutate. - MutateAdGroupFeedResult ad_group_feed_result = 20; - - // The result for the ad group label mutate. - MutateAdGroupLabelResult ad_group_label_result = 21; - - // The result for the ad group mutate. - MutateAdGroupResult ad_group_result = 5; - - // The result for the ad parameter mutate. - MutateAdParameterResult ad_parameter_result = 22; - - // The result for the asset mutate. - MutateAssetResult asset_result = 23; - - // The result for the bidding strategy mutate. - MutateBiddingStrategyResult bidding_strategy_result = 6; - - // The result for the campaign bid modifier mutate. - MutateCampaignBidModifierResult campaign_bid_modifier_result = 7; - - // The result for the campaign budget mutate. - MutateCampaignBudgetResult campaign_budget_result = 8; - - // The result for the campaign criterion mutate. - MutateCampaignCriterionResult campaign_criterion_result = 13; - - // The result for the campaign draft mutate. - MutateCampaignDraftResult campaign_draft_result = 24; - - // The result for the campaign experiment mutate. - MutateCampaignExperimentResult campaign_experiment_result = 25; - - // The result for the campaign extension setting mutate. - MutateCampaignExtensionSettingResult campaign_extension_setting_result = 26; - - // The result for the campaign feed mutate. - MutateCampaignFeedResult campaign_feed_result = 27; - - // The result for the campaign label mutate. - MutateCampaignLabelResult campaign_label_result = 28; - - // The result for the campaign mutate. - MutateCampaignResult campaign_result = 10; - - // The result for the campaign shared set mutate. - MutateCampaignSharedSetResult campaign_shared_set_result = 11; - - // The result for the conversion action mutate. - MutateConversionActionResult conversion_action_result = 12; - - // The result for the customer extension setting mutate. - MutateCustomerExtensionSettingResult customer_extension_setting_result = 30; - - // The result for the customer feed mutate. - MutateCustomerFeedResult customer_feed_result = 31; - - // The result for the customer label mutate. - MutateCustomerLabelResult customer_label_result = 32; - - // The result for the customer negative criterion mutate. - MutateCustomerNegativeCriteriaResult customer_negative_criterion_result = 34; - - // The result for the customer mutate. - MutateCustomerResult customer_result = 35; - - // The result for the extension feed item mutate. - MutateExtensionFeedItemResult extension_feed_item_result = 36; - - // The result for the feed item mutate. - MutateFeedItemResult feed_item_result = 37; - - // The result for the feed item target mutate. - MutateFeedItemTargetResult feed_item_target_result = 38; - - // The result for the feed mapping mutate. - MutateFeedMappingResult feed_mapping_result = 39; - - // The result for the feed mutate. - MutateFeedResult feed_result = 40; - - // The result for the label mutate. - MutateLabelResult label_result = 41; - - // The result for the media file mutate. - MutateMediaFileResult media_file_result = 42; - - // The result for the remarketing action mutate. - MutateRemarketingActionResult remarketing_action_result = 43; - - // The result for the shared criterion mutate. - MutateSharedCriterionResult shared_criterion_result = 14; - - // The result for the shared set mutate. - MutateSharedSetResult shared_set_result = 15; - - // The result for the user list mutate. - MutateUserListResult user_list_result = 16; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/group_placement_view_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/group_placement_view_service.proto deleted file mode 100644 index bae213d8a..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/group_placement_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/group_placement_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "GroupPlacementViewServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Group Placement View service. - -// Service to fetch Group Placement views. -service GroupPlacementViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested Group Placement view in full detail. - rpc GetGroupPlacementView(GetGroupPlacementViewRequest) returns (google.ads.googleads.v2.resources.GroupPlacementView) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/groupPlacementViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [GroupPlacementViewService.GetGroupPlacementView][google.ads.googleads.v2.services.GroupPlacementViewService.GetGroupPlacementView]. -message GetGroupPlacementViewRequest { - // Required. The resource name of the Group Placement view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/GroupPlacementView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/hotel_group_view_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/hotel_group_view_service.proto deleted file mode 100644 index 5e5c9a780..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/hotel_group_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/hotel_group_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "HotelGroupViewServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Hotel Group View Service. - -// Service to manage Hotel Group Views. -service HotelGroupViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested Hotel Group View in full detail. - rpc GetHotelGroupView(GetHotelGroupViewRequest) returns (google.ads.googleads.v2.resources.HotelGroupView) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/hotelGroupViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [HotelGroupViewService.GetHotelGroupView][google.ads.googleads.v2.services.HotelGroupViewService.GetHotelGroupView]. -message GetHotelGroupViewRequest { - // Required. Resource name of the Hotel Group View to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/HotelGroupView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/hotel_performance_view_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/hotel_performance_view_service.proto deleted file mode 100644 index 2d79e92df..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/hotel_performance_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/hotel_performance_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "HotelPerformanceViewServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Hotel Performance View Service. - -// Service to manage Hotel Performance Views. -service HotelPerformanceViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested Hotel Performance View in full detail. - rpc GetHotelPerformanceView(GetHotelPerformanceViewRequest) returns (google.ads.googleads.v2.resources.HotelPerformanceView) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/hotelPerformanceView}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [HotelPerformanceViewService.GetHotelPerformanceView][google.ads.googleads.v2.services.HotelPerformanceViewService.GetHotelPerformanceView]. -message GetHotelPerformanceViewRequest { - // Required. Resource name of the Hotel Performance View to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/HotelPerformanceView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/invoice_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/invoice_service.proto deleted file mode 100644 index 79e81d9a9..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/invoice_service.proto +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/enums/month_of_year.proto"; -import "google/ads/googleads/v2/resources/invoice.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "InvoiceServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Invoice service. - -// A service to fetch invoices issued for a billing setup during a given month. -service InvoiceService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns all invoices associated with a billing setup, for a given month. - rpc ListInvoices(ListInvoicesRequest) returns (ListInvoicesResponse) { - option (google.api.http) = { - get: "/v2/customers/{customer_id=*}/invoices" - }; - option (google.api.method_signature) = "customer_id,billing_setup,issue_year,issue_month"; - } -} - -// Request message for fetching the invoices of a given billing setup that were -// issued during a given month. -message ListInvoicesRequest { - // Required. The ID of the customer to fetch invoices for. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The billing setup resource name of the requested invoices. - // - // `customers/{customer_id}/billingSetups/{billing_setup_id}` - string billing_setup = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. The issue year to retrieve invoices, in yyyy format. Only - // invoices issued in 2019 or later can be retrieved. - string issue_year = 3 [(google.api.field_behavior) = REQUIRED]; - - // Required. The issue month to retrieve invoices. - google.ads.googleads.v2.enums.MonthOfYearEnum.MonthOfYear issue_month = 4 [(google.api.field_behavior) = REQUIRED]; -} - -// Response message for [InvoiceService.ListInvoices][google.ads.googleads.v2.services.InvoiceService.ListInvoices]. -message ListInvoicesResponse { - // The list of invoices that match the billing setup and time period. - repeated google.ads.googleads.v2.resources.Invoice invoices = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/keyword_plan_ad_group_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/keyword_plan_ad_group_service.proto deleted file mode 100644 index ba1406c4a..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/keyword_plan_ad_group_service.proto +++ /dev/null @@ -1,132 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/keyword_plan_ad_group.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "KeywordPlanAdGroupServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the keyword plan ad group service. - -// Service to manage Keyword Plan ad groups. -service KeywordPlanAdGroupService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested Keyword Plan ad group in full detail. - rpc GetKeywordPlanAdGroup(GetKeywordPlanAdGroupRequest) returns (google.ads.googleads.v2.resources.KeywordPlanAdGroup) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/keywordPlanAdGroups/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes Keyword Plan ad groups. Operation statuses are - // returned. - rpc MutateKeywordPlanAdGroups(MutateKeywordPlanAdGroupsRequest) returns (MutateKeywordPlanAdGroupsResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/keywordPlanAdGroups:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [KeywordPlanAdGroupService.GetKeywordPlanAdGroup][google.ads.googleads.v2.services.KeywordPlanAdGroupService.GetKeywordPlanAdGroup]. -message GetKeywordPlanAdGroupRequest { - // Required. The resource name of the Keyword Plan ad group to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/KeywordPlanAdGroup" - } - ]; -} - -// Request message for [KeywordPlanAdGroupService.MutateKeywordPlanAdGroups][google.ads.googleads.v2.services.KeywordPlanAdGroupService.MutateKeywordPlanAdGroups]. -message MutateKeywordPlanAdGroupsRequest { - // Required. The ID of the customer whose Keyword Plan ad groups are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual Keyword Plan ad groups. - repeated KeywordPlanAdGroupOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update, remove) on a Keyword Plan ad group. -message KeywordPlanAdGroupOperation { - // The FieldMask that determines which resource fields are modified in an - // update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new Keyword Plan - // ad group. - google.ads.googleads.v2.resources.KeywordPlanAdGroup create = 1; - - // Update operation: The Keyword Plan ad group is expected to have a valid - // resource name. - google.ads.googleads.v2.resources.KeywordPlanAdGroup update = 2; - - // Remove operation: A resource name for the removed Keyword Plan ad group - // is expected, in this format: - // - // `customers/{customer_id}/keywordPlanAdGroups/{kp_ad_group_id}` - string remove = 3; - } -} - -// Response message for a Keyword Plan ad group mutate. -message MutateKeywordPlanAdGroupsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. The order of the results is determined by the - // order of the keywords in the original request. - repeated MutateKeywordPlanAdGroupResult results = 2; -} - -// The result for the Keyword Plan ad group mutate. -message MutateKeywordPlanAdGroupResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/keyword_plan_campaign_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/keyword_plan_campaign_service.proto deleted file mode 100644 index 8d66d8af1..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/keyword_plan_campaign_service.proto +++ /dev/null @@ -1,132 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/keyword_plan_campaign.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "KeywordPlanCampaignServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the keyword plan campaign service. - -// Service to manage Keyword Plan campaigns. -service KeywordPlanCampaignService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested Keyword Plan campaign in full detail. - rpc GetKeywordPlanCampaign(GetKeywordPlanCampaignRequest) returns (google.ads.googleads.v2.resources.KeywordPlanCampaign) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/keywordPlanCampaigns/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes Keyword Plan campaigns. Operation statuses are - // returned. - rpc MutateKeywordPlanCampaigns(MutateKeywordPlanCampaignsRequest) returns (MutateKeywordPlanCampaignsResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/keywordPlanCampaigns:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [KeywordPlanCampaignService.GetKeywordPlanCampaign][google.ads.googleads.v2.services.KeywordPlanCampaignService.GetKeywordPlanCampaign]. -message GetKeywordPlanCampaignRequest { - // Required. The resource name of the Keyword Plan campaign to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/KeywordPlanCampaign" - } - ]; -} - -// Request message for -// [KeywordPlanCampaignService.MutateKeywordPlanCampaigns][google.ads.googleads.v2.services.KeywordPlanCampaignService.MutateKeywordPlanCampaigns]. -message MutateKeywordPlanCampaignsRequest { - // Required. The ID of the customer whose Keyword Plan campaigns are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual Keyword Plan campaigns. - repeated KeywordPlanCampaignOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update, remove) on a Keyword Plan campaign. -message KeywordPlanCampaignOperation { - // The FieldMask that determines which resource fields are modified in an - // update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new Keyword Plan - // campaign. - google.ads.googleads.v2.resources.KeywordPlanCampaign create = 1; - - // Update operation: The Keyword Plan campaign is expected to have a valid - // resource name. - google.ads.googleads.v2.resources.KeywordPlanCampaign update = 2; - - // Remove operation: A resource name for the removed Keyword Plan campaign - // is expected, in this format: - // - // `customers/{customer_id}/keywordPlanCampaigns/{keywordPlan_campaign_id}` - string remove = 3; - } -} - -// Response message for a Keyword Plan campaign mutate. -message MutateKeywordPlanCampaignsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateKeywordPlanCampaignResult results = 2; -} - -// The result for the Keyword Plan campaign mutate. -message MutateKeywordPlanCampaignResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/keyword_plan_idea_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/keyword_plan_idea_service.proto deleted file mode 100644 index 8fee9e7a5..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/keyword_plan_idea_service.proto +++ /dev/null @@ -1,117 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/common/keyword_plan_common.proto"; -import "google/ads/googleads/v2/enums/keyword_plan_network.proto"; -import "google/api/annotations.proto"; -import "google/api/field_behavior.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/client.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "KeywordPlanIdeaServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the keyword plan idea service. - -// Service to generate keyword ideas. -service KeywordPlanIdeaService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns a list of keyword ideas. - rpc GenerateKeywordIdeas(GenerateKeywordIdeasRequest) returns (GenerateKeywordIdeaResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}:generateKeywordIdeas" - body: "*" - }; - } -} - -// Request message for [KeywordPlanIdeaService.GenerateKeywordIdeas][google.ads.googleads.v2.services.KeywordPlanIdeaService.GenerateKeywordIdeas]. -message GenerateKeywordIdeasRequest { - // The ID of the customer with the recommendation. - string customer_id = 1; - - // Required. The resource name of the language to target. - // Required - google.protobuf.StringValue language = 7 [(google.api.field_behavior) = REQUIRED]; - - // The resource names of the location to target. - // Max 10 - repeated google.protobuf.StringValue geo_target_constants = 8; - - // Targeting network. - google.ads.googleads.v2.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork keyword_plan_network = 9; - - // The type of seed to generate keyword ideas. - oneof seed { - // A Keyword and a specific Url to generate ideas from - // e.g. cars, www.example.com/cars. - KeywordAndUrlSeed keyword_and_url_seed = 2; - - // A Keyword or phrase to generate ideas from, e.g. cars. - KeywordSeed keyword_seed = 3; - - // A specific url to generate ideas from, e.g. www.example.com/cars. - UrlSeed url_seed = 5; - } -} - -// Keyword And Url Seed -message KeywordAndUrlSeed { - // The URL to crawl in order to generate keyword ideas. - google.protobuf.StringValue url = 1; - - // Requires at least one keyword. - repeated google.protobuf.StringValue keywords = 2; -} - -// Keyword Seed -message KeywordSeed { - // Requires at least one keyword. - repeated google.protobuf.StringValue keywords = 1; -} - -// Url Seed -message UrlSeed { - // The URL to crawl in order to generate keyword ideas. - google.protobuf.StringValue url = 1; -} - -// Response message for [KeywordPlanIdeaService.GenerateKeywordIdeas][google.ads.googleads.v2.services.KeywordPlanIdeaService.GenerateKeywordIdeas]. -message GenerateKeywordIdeaResponse { - // Results of generating keyword ideas. - repeated GenerateKeywordIdeaResult results = 1; -} - -// The result of generating keyword ideas. -message GenerateKeywordIdeaResult { - // Text of the keyword idea. - // As in Keyword Plan historical metrics, this text may not be an actual - // keyword, but the canonical form of multiple keywords. - // See KeywordPlanKeywordHistoricalMetrics message in KeywordPlanService. - google.protobuf.StringValue text = 2; - - // The historical metrics for the keyword - google.ads.googleads.v2.common.KeywordPlanHistoricalMetrics keyword_idea_metrics = 3; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/keyword_plan_keyword_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/keyword_plan_keyword_service.proto deleted file mode 100644 index 2b48362bf..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/keyword_plan_keyword_service.proto +++ /dev/null @@ -1,131 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/keyword_plan_keyword.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "KeywordPlanKeywordServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the keyword plan keyword service. - -// Service to manage Keyword Plan ad group keywords. -service KeywordPlanKeywordService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested Keyword Plan keyword in full detail. - rpc GetKeywordPlanKeyword(GetKeywordPlanKeywordRequest) returns (google.ads.googleads.v2.resources.KeywordPlanKeyword) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/keywordPlanKeywords/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes Keyword Plan keywords. Operation statuses are - // returned. - rpc MutateKeywordPlanKeywords(MutateKeywordPlanKeywordsRequest) returns (MutateKeywordPlanKeywordsResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/keywordPlanKeywords:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [KeywordPlanKeywordService.GetKeywordPlanKeyword][google.ads.googleads.v2.services.KeywordPlanKeywordService.GetKeywordPlanKeyword]. -message GetKeywordPlanKeywordRequest { - // Required. The resource name of the ad group keyword to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/KeywordPlanKeyword" - } - ]; -} - -// Request message for [KeywordPlanKeywordService.MutateKeywordPlanKeywords][google.ads.googleads.v2.services.KeywordPlanKeywordService.MutateKeywordPlanKeywords]. -message MutateKeywordPlanKeywordsRequest { - // Required. The ID of the customer whose Keyword Plan keywords are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual Keyword Plan keywords. - repeated KeywordPlanKeywordOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update, remove) on a Keyword Plan keyword. -message KeywordPlanKeywordOperation { - // The FieldMask that determines which resource fields are modified in an - // update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new Keyword Plan - // ad group keyword. - google.ads.googleads.v2.resources.KeywordPlanKeyword create = 1; - - // Update operation: The Keyword Plan keyword is expected to have a valid - // resource name. - google.ads.googleads.v2.resources.KeywordPlanKeyword update = 2; - - // Remove operation: A resource name for the removed Keyword Plan keyword is - // expected, in this format: - // - // `customers/{customer_id}/keywordPlanKeywords/{kp_ad_group_keyword_id}` - string remove = 3; - } -} - -// Response message for a Keyword Plan keyword mutate. -message MutateKeywordPlanKeywordsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateKeywordPlanKeywordResult results = 2; -} - -// The result for the Keyword Plan keyword mutate. -message MutateKeywordPlanKeywordResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/keyword_plan_negative_keyword_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/keyword_plan_negative_keyword_service.proto deleted file mode 100644 index e61537419..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/keyword_plan_negative_keyword_service.proto +++ /dev/null @@ -1,135 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/keyword_plan_negative_keyword.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "KeywordPlanNegativeKeywordServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the keyword plan negative keyword service. - -// Service to manage Keyword Plan negative keywords. -service KeywordPlanNegativeKeywordService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested plan in full detail. - rpc GetKeywordPlanNegativeKeyword(GetKeywordPlanNegativeKeywordRequest) returns (google.ads.googleads.v2.resources.KeywordPlanNegativeKeyword) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/keywordPlanNegativeKeywords/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes Keyword Plan negative keywords. Operation - // statuses are returned. - rpc MutateKeywordPlanNegativeKeywords(MutateKeywordPlanNegativeKeywordsRequest) returns (MutateKeywordPlanNegativeKeywordsResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/keywordPlanNegativeKeywords:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for -// [KeywordPlanNegativeKeywordService.GetKeywordPlanNegativeKeyword][google.ads.googleads.v2.services.KeywordPlanNegativeKeywordService.GetKeywordPlanNegativeKeyword]. -message GetKeywordPlanNegativeKeywordRequest { - // Required. The resource name of the plan to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/KeywordPlanNegativeKeyword" - } - ]; -} - -// Request message for -// [KeywordPlanNegativeKeywordService.MutateKeywordPlanNegativeKeywords][google.ads.googleads.v2.services.KeywordPlanNegativeKeywordService.MutateKeywordPlanNegativeKeywords]. -message MutateKeywordPlanNegativeKeywordsRequest { - // Required. The ID of the customer whose negative keywords are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual Keyword Plan negative - // keywords. - repeated KeywordPlanNegativeKeywordOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update, remove) on a Keyword Plan negative -// keyword. -message KeywordPlanNegativeKeywordOperation { - // The FieldMask that determines which resource fields are modified in an - // update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new Keyword Plan - // negative keyword. - google.ads.googleads.v2.resources.KeywordPlanNegativeKeyword create = 1; - - // Update operation: The Keyword Plan negative keyword expected to have a - // valid resource name. - google.ads.googleads.v2.resources.KeywordPlanNegativeKeyword update = 2; - - // Remove operation: A resource name for the removed Keyword Plan negative - // keywords expected in this format: - // - // `customers/{customer_id}/keywordPlanNegativeKeywords/{kp_negative_keyword_id}` - string remove = 3; - } -} - -// Response message for a Keyword Plan negative keyword mutate. -message MutateKeywordPlanNegativeKeywordsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateKeywordPlanNegativeKeywordResult results = 2; -} - -// The result for the Keyword Plan negative keyword mutate. -message MutateKeywordPlanNegativeKeywordResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/keyword_plan_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/keyword_plan_service.proto deleted file mode 100644 index 1f2f76570..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/keyword_plan_service.proto +++ /dev/null @@ -1,251 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/common/keyword_plan_common.proto"; -import "google/ads/googleads/v2/resources/keyword_plan.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/protobuf/wrappers.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "KeywordPlanServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the keyword plan service. - -// Service to manage keyword plans. -service KeywordPlanService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested plan in full detail. - rpc GetKeywordPlan(GetKeywordPlanRequest) returns (google.ads.googleads.v2.resources.KeywordPlan) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/keywordPlans/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes keyword plans. Operation statuses are - // returned. - rpc MutateKeywordPlans(MutateKeywordPlansRequest) returns (MutateKeywordPlansResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/keywordPlans:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } - - // Returns the requested Keyword Plan forecasts. - rpc GenerateForecastMetrics(GenerateForecastMetricsRequest) returns (GenerateForecastMetricsResponse) { - option (google.api.http) = { - post: "/v2/{keyword_plan=customers/*/keywordPlans/*}:generateForecastMetrics" - body: "*" - }; - option (google.api.method_signature) = "keyword_plan"; - } - - // Returns the requested Keyword Plan historical metrics. - rpc GenerateHistoricalMetrics(GenerateHistoricalMetricsRequest) returns (GenerateHistoricalMetricsResponse) { - option (google.api.http) = { - post: "/v2/{keyword_plan=customers/*/keywordPlans/*}:generateHistoricalMetrics" - body: "*" - }; - option (google.api.method_signature) = "keyword_plan"; - } -} - -// Request message for [KeywordPlanService.GetKeywordPlan][google.ads.googleads.v2.services.KeywordPlanService.GetKeywordPlan]. -message GetKeywordPlanRequest { - // Required. The resource name of the plan to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/KeywordPlan" - } - ]; -} - -// Request message for [KeywordPlanService.MutateKeywordPlans][google.ads.googleads.v2.services.KeywordPlanService.MutateKeywordPlans]. -message MutateKeywordPlansRequest { - // Required. The ID of the customer whose keyword plans are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual keyword plans. - repeated KeywordPlanOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update, remove) on a keyword plan. -message KeywordPlanOperation { - // The FieldMask that determines which resource fields are modified in an - // update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new keyword plan. - google.ads.googleads.v2.resources.KeywordPlan create = 1; - - // Update operation: The keyword plan is expected to have a valid resource - // name. - google.ads.googleads.v2.resources.KeywordPlan update = 2; - - // Remove operation: A resource name for the removed keyword plan is - // expected in this format: - // - // `customers/{customer_id}/keywordPlans/{keyword_plan_id}` - string remove = 3; - } -} - -// Response message for a keyword plan mutate. -message MutateKeywordPlansResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateKeywordPlansResult results = 2; -} - -// The result for the keyword plan mutate. -message MutateKeywordPlansResult { - // Returned for successful operations. - string resource_name = 1; -} - -// Request message for [KeywordPlanService.GenerateForecastMetrics][google.ads.googleads.v2.services.KeywordPlanService.GenerateForecastMetrics]. -message GenerateForecastMetricsRequest { - // Required. The resource name of the keyword plan to be forecasted. - string keyword_plan = 1 [(google.api.field_behavior) = REQUIRED]; -} - -// Response message for [KeywordPlanService.GenerateForecastMetrics][google.ads.googleads.v2.services.KeywordPlanService.GenerateForecastMetrics]. -message GenerateForecastMetricsResponse { - // List of campaign forecasts. - // One maximum. - repeated KeywordPlanCampaignForecast campaign_forecasts = 1; - - // List of ad group forecasts. - repeated KeywordPlanAdGroupForecast ad_group_forecasts = 2; - - // List of keyword forecasts. - repeated KeywordPlanKeywordForecast keyword_forecasts = 3; -} - -// A campaign forecast. -message KeywordPlanCampaignForecast { - // The resource name of the Keyword Plan campaign related to the forecast. - // - // `customers/{customer_id}/keywordPlanCampaigns/{keyword_plan_campaign_id}` - google.protobuf.StringValue keyword_plan_campaign = 1; - - // The forecast for the Keyword Plan campaign. - ForecastMetrics campaign_forecast = 2; -} - -// An ad group forecast. -message KeywordPlanAdGroupForecast { - // The resource name of the Keyword Plan ad group related to the forecast. - // - // `customers/{customer_id}/keywordPlanAdGroups/{keyword_plan_ad_group_id}` - google.protobuf.StringValue keyword_plan_ad_group = 1; - - // The forecast for the Keyword Plan ad group. - ForecastMetrics ad_group_forecast = 2; -} - -// A keyword forecast. -message KeywordPlanKeywordForecast { - // The resource name of the Keyword Plan keyword related to the forecast. - // - // `customers/{customer_id}/keywordPlanAdGroupKeywords/{keyword_plan_ad_group_keyword_id}` - google.protobuf.StringValue keyword_plan_ad_group_keyword = 1; - - // The forecast for the Keyword Plan keyword. - ForecastMetrics keyword_forecast = 2; -} - -// Forecast metrics. -message ForecastMetrics { - // Impressions - google.protobuf.DoubleValue impressions = 1; - - // Ctr - google.protobuf.DoubleValue ctr = 2; - - // AVG cpc - google.protobuf.Int64Value average_cpc = 3; - - // Clicks - google.protobuf.DoubleValue clicks = 5; - - // Cost - google.protobuf.Int64Value cost_micros = 6; -} - -// Request message for [KeywordPlanService.GenerateHistoricalMetrics][google.ads.googleads.v2.services.KeywordPlanService.GenerateHistoricalMetrics]. -message GenerateHistoricalMetricsRequest { - // Required. The resource name of the keyword plan of which historical metrics are - // requested. - string keyword_plan = 1 [(google.api.field_behavior) = REQUIRED]; -} - -// Response message for [KeywordPlanService.GenerateHistoricalMetrics][google.ads.googleads.v2.services.KeywordPlanService.GenerateHistoricalMetrics]. -message GenerateHistoricalMetricsResponse { - // List of keyword historical metrics. - repeated KeywordPlanKeywordHistoricalMetrics metrics = 1; -} - -// A keyword historical metrics. -message KeywordPlanKeywordHistoricalMetrics { - // The text of the query associated with one or more ad_group_keywords in the - // plan. - // - // Note that we de-dupe your keywords list, eliminating close variants before - // returning the plan's keywords as text. For example, if your plan originally - // contained the keywords 'car' and 'cars', the returned search query will - // only contain 'cars'. - // Starting V5, the list of de-duped queries will be included in - // close_variants field. - google.protobuf.StringValue search_query = 1; - - // The historical metrics for the query associated with one or more - // ad_group_keywords in the plan. - google.ads.googleads.v2.common.KeywordPlanHistoricalMetrics keyword_metrics = 2; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/keyword_view_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/keyword_view_service.proto deleted file mode 100644 index 2cacfd0d5..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/keyword_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/keyword_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "KeywordViewServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Keyword View service. - -// Service to manage keyword views. -service KeywordViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested keyword view in full detail. - rpc GetKeywordView(GetKeywordViewRequest) returns (google.ads.googleads.v2.resources.KeywordView) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/keywordViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [KeywordViewService.GetKeywordView][google.ads.googleads.v2.services.KeywordViewService.GetKeywordView]. -message GetKeywordViewRequest { - // Required. The resource name of the keyword view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/KeywordView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/label_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/label_service.proto deleted file mode 100644 index f18d15a6b..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/label_service.proto +++ /dev/null @@ -1,125 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/label.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "LabelServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Service to manage labels. -service LabelService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested label in full detail. - rpc GetLabel(GetLabelRequest) returns (google.ads.googleads.v2.resources.Label) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/labels/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes labels. Operation statuses are returned. - rpc MutateLabels(MutateLabelsRequest) returns (MutateLabelsResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/labels:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [LabelService.GetLabel][google.ads.googleads.v2.services.LabelService.GetLabel]. -message GetLabelRequest { - // Required. The resource name of the label to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Label" - } - ]; -} - -// Request message for [LabelService.MutateLabels][google.ads.googleads.v2.services.LabelService.MutateLabels]. -message MutateLabelsRequest { - // Required. ID of the customer whose labels are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on labels. - repeated LabelOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, remove, update) on a label. -message LabelOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new label. - google.ads.googleads.v2.resources.Label create = 1; - - // Update operation: The label is expected to have a valid resource name. - google.ads.googleads.v2.resources.Label update = 2; - - // Remove operation: A resource name for the label being removed, in - // this format: - // - // `customers/{customer_id}/labels/{label_id}` - string remove = 3; - } -} - -// Response message for a labels mutate. -message MutateLabelsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateLabelResult results = 2; -} - -// The result for a label mutate. -message MutateLabelResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/landing_page_view_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/landing_page_view_service.proto deleted file mode 100644 index 188298bf9..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/landing_page_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/landing_page_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "LandingPageViewServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the landing page view service. - -// Service to fetch landing page views. -service LandingPageViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested landing page view in full detail. - rpc GetLandingPageView(GetLandingPageViewRequest) returns (google.ads.googleads.v2.resources.LandingPageView) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/landingPageViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [LandingPageViewService.GetLandingPageView][google.ads.googleads.v2.services.LandingPageViewService.GetLandingPageView]. -message GetLandingPageViewRequest { - // Required. The resource name of the landing page view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/LandingPageView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/language_constant_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/language_constant_service.proto deleted file mode 100644 index 29b1ec922..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/language_constant_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/language_constant.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "LanguageConstantServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the language constant service. - -// Service to fetch language constants. -service LanguageConstantService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested language constant. - rpc GetLanguageConstant(GetLanguageConstantRequest) returns (google.ads.googleads.v2.resources.LanguageConstant) { - option (google.api.http) = { - get: "/v2/{resource_name=languageConstants/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [LanguageConstantService.GetLanguageConstant][google.ads.googleads.v2.services.LanguageConstantService.GetLanguageConstant]. -message GetLanguageConstantRequest { - // Required. Resource name of the language constant to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/LanguageConstant" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/location_view_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/location_view_service.proto deleted file mode 100644 index af2dd4fbd..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/location_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/location_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "LocationViewServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Location View service. - -// Service to fetch location views. -service LocationViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested location view in full detail. - rpc GetLocationView(GetLocationViewRequest) returns (google.ads.googleads.v2.resources.LocationView) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/locationViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [LocationViewService.GetLocationView][google.ads.googleads.v2.services.LocationViewService.GetLocationView]. -message GetLocationViewRequest { - // Required. The resource name of the location view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/LocationView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/managed_placement_view_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/managed_placement_view_service.proto deleted file mode 100644 index 154bf7a16..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/managed_placement_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/managed_placement_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "ManagedPlacementViewServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Managed Placement View service. - -// Service to manage Managed Placement views. -service ManagedPlacementViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested Managed Placement view in full detail. - rpc GetManagedPlacementView(GetManagedPlacementViewRequest) returns (google.ads.googleads.v2.resources.ManagedPlacementView) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/managedPlacementViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [ManagedPlacementViewService.GetManagedPlacementView][google.ads.googleads.v2.services.ManagedPlacementViewService.GetManagedPlacementView]. -message GetManagedPlacementViewRequest { - // Required. The resource name of the Managed Placement View to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/ManagedPlacementView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/media_file_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/media_file_service.proto deleted file mode 100644 index 86e0b3d07..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/media_file_service.proto +++ /dev/null @@ -1,114 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/media_file.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "MediaFileServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Media File service. - -// Service to manage media files. -service MediaFileService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested media file in full detail. - rpc GetMediaFile(GetMediaFileRequest) returns (google.ads.googleads.v2.resources.MediaFile) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/mediaFiles/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates media files. Operation statuses are returned. - rpc MutateMediaFiles(MutateMediaFilesRequest) returns (MutateMediaFilesResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/mediaFiles:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [MediaFileService.GetMediaFile][google.ads.googleads.v2.services.MediaFileService.GetMediaFile] -message GetMediaFileRequest { - // Required. The resource name of the media file to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/MediaFile" - } - ]; -} - -// Request message for [MediaFileService.MutateMediaFiles][google.ads.googleads.v2.services.MediaFileService.MutateMediaFiles] -message MutateMediaFilesRequest { - // Required. The ID of the customer whose media files are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual media file. - repeated MediaFileOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation to create media file. -message MediaFileOperation { - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new media file. - google.ads.googleads.v2.resources.MediaFile create = 1; - } -} - -// Response message for a media file mutate. -message MutateMediaFilesResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateMediaFileResult results = 2; -} - -// The result for the media file mutate. -message MutateMediaFileResult { - // The resource name returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/merchant_center_link_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/merchant_center_link_service.proto deleted file mode 100644 index 5f27e4267..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/merchant_center_link_service.proto +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/merchant_center_link.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "MerchantCenterLinkServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the MerchantCenterLink service. - -// This service allows management of links between Google Ads and Google -// Merchant Center. -service MerchantCenterLinkService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns Merchant Center links available for this customer. - rpc ListMerchantCenterLinks(ListMerchantCenterLinksRequest) returns (ListMerchantCenterLinksResponse) { - option (google.api.http) = { - get: "/v2/customers/{customer_id=*}/merchantCenterLinks" - }; - option (google.api.method_signature) = "customer_id"; - } - - // Returns the Merchant Center link in full detail. - rpc GetMerchantCenterLink(GetMerchantCenterLinkRequest) returns (google.ads.googleads.v2.resources.MerchantCenterLink) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/merchantCenterLinks/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Updates status or removes a Merchant Center link. - rpc MutateMerchantCenterLink(MutateMerchantCenterLinkRequest) returns (MutateMerchantCenterLinkResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/merchantCenterLinks:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operation"; - } -} - -// Request message for [MerchantCenterLinkService.ListMerchantCenterLinks][google.ads.googleads.v2.services.MerchantCenterLinkService.ListMerchantCenterLinks]. -message ListMerchantCenterLinksRequest { - // Required. The ID of the customer onto which to apply the Merchant Center link list - // operation. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; -} - -// Response message for [MerchantCenterLinkService.ListMerchantCenterLinks][google.ads.googleads.v2.services.MerchantCenterLinkService.ListMerchantCenterLinks]. -message ListMerchantCenterLinksResponse { - // Merchant Center links available for the requested customer - repeated google.ads.googleads.v2.resources.MerchantCenterLink merchant_center_links = 1; -} - -// Request message for [MerchantCenterLinkService.GetMerchantCenterLink][google.ads.googleads.v2.services.MerchantCenterLinkService.GetMerchantCenterLink]. -message GetMerchantCenterLinkRequest { - // Required. Resource name of the Merchant Center link. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/MerchantCenterLink" - } - ]; -} - -// Request message for [MerchantCenterLinkService.MutateMerchantCenterLink][google.ads.googleads.v2.services.MerchantCenterLinkService.MutateMerchantCenterLink]. -message MutateMerchantCenterLinkRequest { - // Required. The ID of the customer being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The operation to perform on the link - MerchantCenterLinkOperation operation = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// A single update on a Merchant Center link. -message MerchantCenterLinkOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 3; - - // The operation to perform - oneof operation { - // Update operation: The merchant center link is expected to have a valid - // resource name. - google.ads.googleads.v2.resources.MerchantCenterLink update = 1; - - // Remove operation: A resource name for the removed merchant center link is - // expected, in this format: - // - // `customers/{customer_id}/merchantCenterLinks/{merchant_center_id}` - string remove = 2; - } -} - -// Response message for Merchant Center link mutate. -message MutateMerchantCenterLinkResponse { - // Result for the mutate. - MutateMerchantCenterLinkResult result = 2; -} - -// The result for the Merchant Center link mutate. -message MutateMerchantCenterLinkResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/mobile_app_category_constant_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/mobile_app_category_constant_service.proto deleted file mode 100644 index 5a45e35db..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/mobile_app_category_constant_service.proto +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/mobile_app_category_constant.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "MobileAppCategoryConstantServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Service to fetch mobile app category constants. -service MobileAppCategoryConstantService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested mobile app category constant. - rpc GetMobileAppCategoryConstant(GetMobileAppCategoryConstantRequest) returns (google.ads.googleads.v2.resources.MobileAppCategoryConstant) { - option (google.api.http) = { - get: "/v2/{resource_name=mobileAppCategoryConstants/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for -// [MobileAppCategoryConstantService.GetMobileAppCategoryConstant][google.ads.googleads.v2.services.MobileAppCategoryConstantService.GetMobileAppCategoryConstant]. -message GetMobileAppCategoryConstantRequest { - // Required. Resource name of the mobile app category constant to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/MobileAppCategoryConstant" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/mobile_device_constant_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/mobile_device_constant_service.proto deleted file mode 100644 index 6bc26b4b1..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/mobile_device_constant_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/mobile_device_constant.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "MobileDeviceConstantServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the mobile device constant service. - -// Service to fetch mobile device constants. -service MobileDeviceConstantService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested mobile device constant in full detail. - rpc GetMobileDeviceConstant(GetMobileDeviceConstantRequest) returns (google.ads.googleads.v2.resources.MobileDeviceConstant) { - option (google.api.http) = { - get: "/v2/{resource_name=mobileDeviceConstants/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [MobileDeviceConstantService.GetMobileDeviceConstant][google.ads.googleads.v2.services.MobileDeviceConstantService.GetMobileDeviceConstant]. -message GetMobileDeviceConstantRequest { - // Required. Resource name of the mobile device to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/MobileDeviceConstant" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/mutate_job_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/mutate_job_service.proto deleted file mode 100644 index 7eb9b710c..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/mutate_job_service.proto +++ /dev/null @@ -1,217 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/mutate_job.proto"; -import "google/ads/googleads/v2/services/google_ads_service.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/longrunning/operations.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "MutateJobServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the MutateJobService. - -// Service to manage mutate jobs. -service MutateJobService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Creates a mutate job. - rpc CreateMutateJob(CreateMutateJobRequest) returns (CreateMutateJobResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/mutateJobs:create" - body: "*" - }; - option (google.api.method_signature) = "customer_id"; - } - - // Returns the mutate job. - rpc GetMutateJob(GetMutateJobRequest) returns (google.ads.googleads.v2.resources.MutateJob) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/mutateJobs/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Returns the results of the mutate job. The job must be done. - // Supports standard list paging. - rpc ListMutateJobResults(ListMutateJobResultsRequest) returns (ListMutateJobResultsResponse) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/mutateJobs/*}:listResults" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Runs the mutate job. - // - // The Operation.metadata field type is MutateJobMetadata. When finished, the - // long running operation will not contain errors or a response. Instead, use - // ListMutateJobResults to get the results of the job. - rpc RunMutateJob(RunMutateJobRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v2/{resource_name=customers/*/mutateJobs/*}:run" - body: "*" - }; - option (google.api.method_signature) = "resource_name"; - option (google.longrunning.operation_info) = { - response_type: "google.protobuf.Empty" - metadata_type: "google.ads.googleads.v2.resources.MutateJob.MutateJobMetadata" - }; - } - - // Add operations to the mutate job. - rpc AddMutateJobOperations(AddMutateJobOperationsRequest) returns (AddMutateJobOperationsResponse) { - option (google.api.http) = { - post: "/v2/{resource_name=customers/*/mutateJobs/*}:addOperations" - body: "*" - }; - option (google.api.method_signature) = "resource_name,sequence_token,mutate_operations"; - option (google.api.method_signature) = "resource_name,mutate_operations"; - } -} - -// Request message for [MutateJobService.CreateMutateJobRequest][] -message CreateMutateJobRequest { - // Required. The ID of the customer for which to create a mutate job. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; -} - -// Response message for [MutateJobService.CreateMutateJobResponse][] -message CreateMutateJobResponse { - // The resource name of the MutateJob. - string resource_name = 1; -} - -// Request message for [MutateJobService.GetMutateJob][google.ads.googleads.v2.services.MutateJobService.GetMutateJob] -message GetMutateJobRequest { - // Required. The resource name of the MutateJob to get. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/MutateJob" - } - ]; -} - -// Request message for [MutateJobService.RunMutateJob][google.ads.googleads.v2.services.MutateJobService.RunMutateJob] -message RunMutateJobRequest { - // Required. The resource name of the MutateJob to run. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/MutateJob" - } - ]; -} - -// Request message for [MutateJobService.AddMutateJobOperations][google.ads.googleads.v2.services.MutateJobService.AddMutateJobOperations] -message AddMutateJobOperationsRequest { - // Required. The resource name of the MutateJob. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/MutateJob" - } - ]; - - // A token used to enforce sequencing. - // - // The first AddMutateJobOperations request for a MutateJob should not set - // sequence_token. Subsequent requests must set sequence_token to the value of - // next_sequence_token received in the previous AddMutateJobOperations - // response. - string sequence_token = 2; - - // Required. The list of mutates being added. - // - // Operations can use negative integers as temp ids to signify dependencies - // between entities created in this MutateJob. For example, a customer with - // id = 1234 can create a campaign and an ad group in that same campaign by - // creating a campaign in the first operation with the resource name - // explicitly set to "customers/1234/campaigns/-1", and creating an ad group - // in the second operation with the campaign field also set to - // "customers/1234/campaigns/-1". - repeated MutateOperation mutate_operations = 3 [(google.api.field_behavior) = REQUIRED]; -} - -// Response message for [MutateJobService.AddMutateJobOperations][google.ads.googleads.v2.services.MutateJobService.AddMutateJobOperations] -message AddMutateJobOperationsResponse { - // The total number of operations added so far for this job. - int64 total_operations = 1; - - // The sequence token to be used when calling AddMutateJobOperations again if - // more operations need to be added. The next AddMutateJobOperations request - // must set the sequence_token field to the value of this field. - string next_sequence_token = 2; -} - -// Request message for [MutateJobService.ListMutateJobResults][google.ads.googleads.v2.services.MutateJobService.ListMutateJobResults]. -message ListMutateJobResultsRequest { - // Required. The resource name of the MutateJob whose results are being listed. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/MutateJob" - } - ]; - - // Token of the page to retrieve. If not specified, the first - // page of results will be returned. Use the value obtained from - // `next_page_token` in the previous response in order to request - // the next page of results. - string page_token = 2; - - // Number of elements to retrieve in a single page. - // When a page request is too large, the server may decide to - // further limit the number of returned resources. - int32 page_size = 3; -} - -// Response message for [MutateJobService.ListMutateJobResults][google.ads.googleads.v2.services.MutateJobService.ListMutateJobResults]. -message ListMutateJobResultsResponse { - // The list of rows that matched the query. - repeated MutateJobResult results = 1; - - // Pagination token used to retrieve the next page of results. - // Pass the content of this string as the `page_token` attribute of - // the next request. `next_page_token` is not returned for the last - // page. - string next_page_token = 2; -} - -// MutateJob result. -message MutateJobResult { - // Index of the mutate operation. - int64 operation_index = 1; - - // Response for the mutate. - // May be empty if errors occurred. - MutateOperationResponse mutate_operation_response = 2; - - // Details of the errors when processing the operation. - google.rpc.Status status = 3; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/operating_system_version_constant_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/operating_system_version_constant_service.proto deleted file mode 100644 index a620e4d9e..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/operating_system_version_constant_service.proto +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/operating_system_version_constant.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "OperatingSystemVersionConstantServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the OS version constant service - -// Service to fetch Operating System Version constants. -service OperatingSystemVersionConstantService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested OS version constant in full detail. - rpc GetOperatingSystemVersionConstant(GetOperatingSystemVersionConstantRequest) returns (google.ads.googleads.v2.resources.OperatingSystemVersionConstant) { - option (google.api.http) = { - get: "/v2/{resource_name=operatingSystemVersionConstants/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for -// [OperatingSystemVersionConstantService.GetOperatingSystemVersionConstant][google.ads.googleads.v2.services.OperatingSystemVersionConstantService.GetOperatingSystemVersionConstant]. -message GetOperatingSystemVersionConstantRequest { - // Required. Resource name of the OS version to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/OperatingSystemVersionConstant" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/paid_organic_search_term_view_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/paid_organic_search_term_view_service.proto deleted file mode 100644 index 76412b023..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/paid_organic_search_term_view_service.proto +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/paid_organic_search_term_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "PaidOrganicSearchTermViewServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Paid Organic Search Term View service. - -// Service to fetch paid organic search term views. -service PaidOrganicSearchTermViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested paid organic search term view in full detail. - rpc GetPaidOrganicSearchTermView(GetPaidOrganicSearchTermViewRequest) returns (google.ads.googleads.v2.resources.PaidOrganicSearchTermView) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/paidOrganicSearchTermViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for -// [PaidOrganicSearchTermViewService.GetPaidOrganicSearchTermView][google.ads.googleads.v2.services.PaidOrganicSearchTermViewService.GetPaidOrganicSearchTermView]. -message GetPaidOrganicSearchTermViewRequest { - // Required. The resource name of the paid organic search term view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/PaidOrganicSearchTermView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/parental_status_view_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/parental_status_view_service.proto deleted file mode 100644 index cc07c2c0e..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/parental_status_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/parental_status_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "ParentalStatusViewServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Parental Status View service. - -// Service to manage parental status views. -service ParentalStatusViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested parental status view in full detail. - rpc GetParentalStatusView(GetParentalStatusViewRequest) returns (google.ads.googleads.v2.resources.ParentalStatusView) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/parentalStatusViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [ParentalStatusViewService.GetParentalStatusView][google.ads.googleads.v2.services.ParentalStatusViewService.GetParentalStatusView]. -message GetParentalStatusViewRequest { - // Required. The resource name of the parental status view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/ParentalStatusView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/payments_account_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/payments_account_service.proto deleted file mode 100644 index 74a406179..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/payments_account_service.proto +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/payments_account.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "PaymentsAccountServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the payments account service. - -// Service to provide payments accounts that can be used to set up consolidated -// billing. -service PaymentsAccountService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns all payments accounts associated with all managers - // between the login customer ID and specified serving customer in the - // hierarchy, inclusive. - rpc ListPaymentsAccounts(ListPaymentsAccountsRequest) returns (ListPaymentsAccountsResponse) { - option (google.api.http) = { - get: "/v2/customers/{customer_id=*}/paymentsAccounts" - }; - option (google.api.method_signature) = "customer_id"; - } -} - -// Request message for fetching all accessible payments accounts. -message ListPaymentsAccountsRequest { - // Required. The ID of the customer to apply the PaymentsAccount list operation to. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; -} - -// Response message for [PaymentsAccountService.ListPaymentsAccounts][google.ads.googleads.v2.services.PaymentsAccountService.ListPaymentsAccounts]. -message ListPaymentsAccountsResponse { - // The list of accessible payments accounts. - repeated google.ads.googleads.v2.resources.PaymentsAccount payments_accounts = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/product_bidding_category_constant_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/product_bidding_category_constant_service.proto deleted file mode 100644 index 2e90d945e..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/product_bidding_category_constant_service.proto +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/product_bidding_category_constant.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "ProductBiddingCategoryConstantServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Product Bidding Category constant service - -// Service to fetch Product Bidding Categories. -service ProductBiddingCategoryConstantService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested Product Bidding Category in full detail. - rpc GetProductBiddingCategoryConstant(GetProductBiddingCategoryConstantRequest) returns (google.ads.googleads.v2.resources.ProductBiddingCategoryConstant) { - option (google.api.http) = { - get: "/v2/{resource_name=productBiddingCategoryConstants/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for -// [ProductBiddingCategoryConstantService.GetProductBiddingCategoryConstant][google.ads.googleads.v2.services.ProductBiddingCategoryConstantService.GetProductBiddingCategoryConstant]. -message GetProductBiddingCategoryConstantRequest { - // Required. Resource name of the Product Bidding Category to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/ProductBiddingCategoryConstant" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/product_group_view_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/product_group_view_service.proto deleted file mode 100644 index 98f683bc1..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/product_group_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/product_group_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "ProductGroupViewServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the ProductGroup View service. - -// Service to manage product group views. -service ProductGroupViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested product group view in full detail. - rpc GetProductGroupView(GetProductGroupViewRequest) returns (google.ads.googleads.v2.resources.ProductGroupView) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/productGroupViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [ProductGroupViewService.GetProductGroupView][google.ads.googleads.v2.services.ProductGroupViewService.GetProductGroupView]. -message GetProductGroupViewRequest { - // Required. The resource name of the product group view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/ProductGroupView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/reach_plan_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/reach_plan_service.proto deleted file mode 100644 index ccad4e46b..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/reach_plan_service.proto +++ /dev/null @@ -1,361 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/common/criteria.proto"; -import "google/ads/googleads/v2/enums/reach_plan_ad_length.proto"; -import "google/ads/googleads/v2/enums/reach_plan_age_range.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/protobuf/wrappers.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "ReachPlanServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the reach plan service. - -// Reach Plan Service gives users information about audience size that can -// be reached through advertisement on YouTube. In particular, -// GenerateReachForecast provides estimated number of people of specified -// demographics that can be reached by an ad in a given market by a campaign of -// certain duration with a defined budget. -service ReachPlanService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the list of plannable locations (for example, countries & DMAs). - rpc ListPlannableLocations(ListPlannableLocationsRequest) returns (ListPlannableLocationsResponse) { - option (google.api.http) = { - post: "/v2:listPlannableLocations" - body: "*" - }; - } - - // Returns the list of per-location plannable YouTube ad formats with allowed - // targeting. - rpc ListPlannableProducts(ListPlannableProductsRequest) returns (ListPlannableProductsResponse) { - option (google.api.http) = { - post: "/v2:listPlannableProducts" - body: "*" - }; - option (google.api.method_signature) = "plannable_location_id"; - } - - // Generates a product mix ideas given a set of preferences. This method - // helps the advertiser to obtain a good mix of ad formats and budget - // allocations based on its preferences. - rpc GenerateProductMixIdeas(GenerateProductMixIdeasRequest) returns (GenerateProductMixIdeasResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}:generateProductMixIdeas" - body: "*" - }; - option (google.api.method_signature) = "customer_id,plannable_location_id,currency_code,budget_micros"; - } - - // Generates a reach forecast for a given targeting / product mix. - rpc GenerateReachForecast(GenerateReachForecastRequest) returns (GenerateReachForecastResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}:generateReachForecast" - body: "*" - }; - option (google.api.method_signature) = "customer_id,campaign_duration,planned_products"; - } -} - -// Request message for [ReachPlanService.ListPlannableLocations][google.ads.googleads.v2.services.ReachPlanService.ListPlannableLocations]. -message ListPlannableLocationsRequest { - -} - -// The list of plannable locations. -message ListPlannableLocationsResponse { - // The list of locations available for planning (Countries, DMAs, - // sub-countries). - // For locations like Countries, DMAs see - // https://developers.google.com/adwords/api/docs/appendix/geotargeting for - // more information. - repeated PlannableLocation plannable_locations = 1; -} - -// A plannable location: a country, a DMA, a metro region, a tv region, -// a province. -message PlannableLocation { - // The location identifier. - google.protobuf.StringValue id = 1; - - // The unique location name in english. - google.protobuf.StringValue name = 2; - - // The parent country code, not present if location is a country. - // If present will always be a criterion id: additional information, such as - // country name are returned both via ListPlannableLocations or directly by - // accessing GeoTargetConstantService with the criterion id. - google.protobuf.Int64Value parent_country_id = 3; -} - -// Request to list available products in a given location. -message ListPlannableProductsRequest { - // Required. The ID of the selected location for planning. To list the available - // plannable location ids use ListPlannableLocations. - google.protobuf.StringValue plannable_location_id = 1 [(google.api.field_behavior) = REQUIRED]; -} - -// A response with all available products. -message ListPlannableProductsResponse { - // The list of products available for planning and related targeting metadata. - repeated ProductMetadata product_metadata = 1; -} - -// The metadata associated with an available plannable product. -message ProductMetadata { - // The code associated with the ad product. E.g. Trueview, Bumper - // To list the available plannable product codes use ListPlannableProducts. - google.protobuf.StringValue plannable_product_code = 1; - - // The allowed plannable targeting for this product. - PlannableTargeting plannable_targeting = 2; -} - -// The targeting for which traffic metrics will be reported. -message PlannableTargeting { - // Allowed plannable age ranges for the product for which metrics will be - // reported. Actual targeting is computed by mapping this age range onto - // standard Google common.AgeRangeInfo values. - repeated google.ads.googleads.v2.enums.ReachPlanAgeRangeEnum.ReachPlanAgeRange age_ranges = 1; - - // Targetable genders for the ad product. - repeated google.ads.googleads.v2.common.GenderInfo genders = 2; - - // Targetable devices for the ad product. - repeated google.ads.googleads.v2.common.DeviceInfo devices = 3; -} - -// Request message for [ReachPlanService.GenerateProductMixIdeas][google.ads.googleads.v2.services.ReachPlanService.GenerateProductMixIdeas]. -message GenerateProductMixIdeasRequest { - // Required. The ID of the customer. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The ID of the location, this is one of the ids returned by - // ListPlannableLocations. - google.protobuf.StringValue plannable_location_id = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. Currency code. - // Three-character ISO 4217 currency code. - google.protobuf.StringValue currency_code = 3 [(google.api.field_behavior) = REQUIRED]; - - // Required. Total budget. - // Amount in micros. One million is equivalent to one unit. - google.protobuf.Int64Value budget_micros = 4 [(google.api.field_behavior) = REQUIRED]; - - // The preferences of the suggested product mix. - // An unset preference is interpreted as all possible values are allowed, - // unless explicitly specified. - Preferences preferences = 5; -} - -// Set of preferences about the planned mix. -message Preferences { - // True if ad skippable. - // If not set, default is any value. - google.protobuf.BoolValue is_skippable = 1; - - // True if ad start with sound. - // If not set, default is any value. - google.protobuf.BoolValue starts_with_sound = 2; - - // The length of the ad. - // If not set, default is any value. - google.ads.googleads.v2.enums.ReachPlanAdLengthEnum.ReachPlanAdLength ad_length = 3; - - // True if ad will only show on the top content. - // If not set, default is false. - google.protobuf.BoolValue top_content_only = 4; - - // True if the price guaranteed. The cost of serving the ad is agreed upfront - // and not subject to an auction. - // If not set, default is any value. - google.protobuf.BoolValue has_guaranteed_price = 5; -} - -// The suggested product mix. -message GenerateProductMixIdeasResponse { - // A list of products (ad formats) and the associated budget allocation idea. - repeated ProductAllocation product_allocation = 1; -} - -// An allocation of a part of the budget on a given product. -message ProductAllocation { - // Selected product for planning. The product codes returned are within the - // set of the ones returned by ListPlannableProducts when using the same - // location id. - google.protobuf.StringValue plannable_product_code = 1; - - // The value to be allocated for the suggested product in requested currency. - // Amount in micros. One million is equivalent to one unit. - google.protobuf.Int64Value budget_micros = 2; -} - -// Request message for [ReachPlanService.GenerateReachForecast][google.ads.googleads.v2.services.ReachPlanService.GenerateReachForecast]. -message GenerateReachForecastRequest { - // Required. The ID of the customer. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // The currency code. - // Three-character ISO 4217 currency code. - google.protobuf.StringValue currency_code = 2; - - // Required. Campaign duration. - CampaignDuration campaign_duration = 3 [(google.api.field_behavior) = REQUIRED]; - - // Desired cookie frequency cap that will be applied to each planned product. - // This is equivalent to the frequency cap exposed in Google Ads when creating - // a campaign, it represents the maximum number of times an ad can be shown to - // the same user. - // If not specified no cap is applied. - // - // This field is deprecated in v4 and will eventually be removed. - // Please use cookie_frequency_cap_setting instead. - google.protobuf.Int32Value cookie_frequency_cap = 4; - - // Desired minimum effective frequency (the number of times a person was - // exposed to the ad) for the reported reach metrics [1-10]. - // This won't affect the targeting, but just the reporting. - // If not specified, a default of 1 is applied. - google.protobuf.Int32Value min_effective_frequency = 5; - - // The targeting to be applied to all products selected in the product mix. - // - // This is planned targeting: execution details might vary based on the - // advertising product, please consult an implementation specialist. - // - // See specific metrics for details on how targeting affects them. - // - // In some cases, targeting may be overridden using the - // PlannedProduct.advanced_product_targeting field. - Targeting targeting = 6; - - // Required. The products to be forecast. - // The max number of allowed planned products is 15. - repeated PlannedProduct planned_products = 7 [(google.api.field_behavior) = REQUIRED]; -} - -// The targeting for which traffic metrics will be reported. -message Targeting { - // Required. The ID of the selected location. - // Plannable locations ID can be obtained from ListPlannableLocations. - google.protobuf.StringValue plannable_location_id = 1; - - // Targeted age range. - // If not specified, targets all age ranges. - google.ads.googleads.v2.enums.ReachPlanAgeRangeEnum.ReachPlanAgeRange age_range = 2; - - // Targeted genders. - // If not specified, targets all genders. - repeated google.ads.googleads.v2.common.GenderInfo genders = 3; - - // Targeted devices. - // If not specified, targets all applicable devices. Applicable devices vary - // by product and region and can be obtained from ListPlannableProducts. - repeated google.ads.googleads.v2.common.DeviceInfo devices = 4; -} - -// The duration of a planned campaign. -message CampaignDuration { - // The duration value in days. - google.protobuf.Int32Value duration_in_days = 1; -} - -// A product being planned for reach. -message PlannedProduct { - // Required. Selected product for planning. - // Plannable products codes can be obtained from ListPlannableProducts. - google.protobuf.StringValue plannable_product_code = 1; - - // Required. Maximum budget allocation in micros for the selected product. - // The value is specified in the selected planning currency_code. - // E.g. 1 000 000$ = 1 000 000 000 000 micros. - google.protobuf.Int64Value budget_micros = 2; -} - -// Response message containing the generated reach curve. -message GenerateReachForecastResponse { - // Reference on target audiences for this curve. - OnTargetAudienceMetrics on_target_audience_metrics = 1; - - // The generated reach curve for the planned product mix. - ReachCurve reach_curve = 2; -} - -// The reach curve for the planned products. -message ReachCurve { - // All points on the reach curve. - repeated ReachForecast reach_forecasts = 1; -} - -// A point on reach curve. -message ReachForecast { - // The cost in micros. - google.protobuf.Int64Value cost_micros = 1; - - // Forecasted traffic metrics for this point. - Forecast forecast = 2; - - // The forecasted allocation. This differs from the input allocation if one - // or more product cannot fulfill the budget because of limited inventory. - repeated ProductAllocation forecasted_product_allocations = 3; -} - -// Forecasted traffic metrics for the planned products and targeting. -message Forecast { - // Number of unique people reached at least - // GenerateReachForecastRequest.min_effective_frequency times that exactly - // matches the Targeting. - google.protobuf.Int64Value on_target_reach = 1; - - // Total number of unique people reached at least - // GenerateReachForecastRequest.min_effective_frequency times. This includes - // people that may fall outside the specified Targeting. - google.protobuf.Int64Value total_reach = 2; - - // Number of ad impressions that exactly matches the Targeting. - google.protobuf.Int64Value on_target_impressions = 3; - - // Total number of ad impressions. This includes impressions that may fall - // outside the specified Targeting, due to insufficient information on - // signed-in users. - google.protobuf.Int64Value total_impressions = 4; -} - -// Audience metrics for the planned products. -// These metrics consider the following targeting dimensions: -// -// - Location -// - PlannableAgeRange -// - Gender -message OnTargetAudienceMetrics { - // Reference audience size matching the considered targeting for YouTube. - google.protobuf.Int64Value youtube_audience_size = 1; - - // Reference audience size matching the considered targeting for Census. - google.protobuf.Int64Value census_audience_size = 2; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/recommendation_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/recommendation_service.proto deleted file mode 100644 index 9b3d542d6..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/recommendation_service.proto +++ /dev/null @@ -1,255 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/common/extensions.proto"; -import "google/ads/googleads/v2/enums/keyword_match_type.proto"; -import "google/ads/googleads/v2/resources/ad.proto"; -import "google/ads/googleads/v2/resources/recommendation.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "RecommendationServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Recommendation service. - -// Service to manage recommendations. -service RecommendationService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested recommendation in full detail. - rpc GetRecommendation(GetRecommendationRequest) returns (google.ads.googleads.v2.resources.Recommendation) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/recommendations/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Applies given recommendations with corresponding apply parameters. - rpc ApplyRecommendation(ApplyRecommendationRequest) returns (ApplyRecommendationResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/recommendations:apply" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } - - // Dismisses given recommendations. - rpc DismissRecommendation(DismissRecommendationRequest) returns (DismissRecommendationResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/recommendations:dismiss" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [RecommendationService.GetRecommendation][google.ads.googleads.v2.services.RecommendationService.GetRecommendation]. -message GetRecommendationRequest { - // Required. The resource name of the recommendation to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Recommendation" - } - ]; -} - -// Request message for [RecommendationService.ApplyRecommendation][google.ads.googleads.v2.services.RecommendationService.ApplyRecommendation]. -message ApplyRecommendationRequest { - // Required. The ID of the customer with the recommendation. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to apply recommendations. - // If partial_failure=false all recommendations should be of the same type - // There is a limit of 100 operations per request. - repeated ApplyRecommendationOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, operations will be carried - // out as a transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; -} - -// Information about the operation to apply a recommendation and any parameters -// to customize it. -message ApplyRecommendationOperation { - // Parameters to use when applying a campaign budget recommendation. - message CampaignBudgetParameters { - // New budget amount to set for target budget resource. This is a required - // field. - google.protobuf.Int64Value new_budget_amount_micros = 1; - } - - // Parameters to use when applying a text ad recommendation. - message TextAdParameters { - // New ad to add to recommended ad group. All necessary fields need to be - // set in this message. This is a required field. - google.ads.googleads.v2.resources.Ad ad = 1; - } - - // Parameters to use when applying keyword recommendation. - message KeywordParameters { - // The ad group resource to add keyword to. This is a required field. - google.protobuf.StringValue ad_group = 1; - - // The match type of the keyword. This is a required field. - google.ads.googleads.v2.enums.KeywordMatchTypeEnum.KeywordMatchType match_type = 2; - - // Optional, CPC bid to set for the keyword. If not set, keyword will use - // bid based on bidding strategy used by target ad group. - google.protobuf.Int64Value cpc_bid_micros = 3; - } - - // Parameters to use when applying Target CPA recommendation. - message TargetCpaOptInParameters { - // Average CPA to use for Target CPA bidding strategy. This is a required - // field. - google.protobuf.Int64Value target_cpa_micros = 1; - - // Optional, budget amount to set for the campaign. - google.protobuf.Int64Value new_campaign_budget_amount_micros = 2; - } - - // Parameters to use when applying callout extension recommendation. - message CalloutExtensionParameters { - // Callout extensions to be added. This is a required field. - repeated google.ads.googleads.v2.common.CalloutFeedItem callout_extensions = 1; - } - - // Parameters to use when applying call extension recommendation. - message CallExtensionParameters { - // Call extensions to be added. This is a required field. - repeated google.ads.googleads.v2.common.CallFeedItem call_extensions = 1; - } - - // Parameters to use when applying sitelink extension recommendation. - message SitelinkExtensionParameters { - // Sitelink extensions to be added. This is a required field. - repeated google.ads.googleads.v2.common.SitelinkFeedItem sitelink_extensions = 1; - } - - // Parameters to use when applying move unused budget recommendation. - message MoveUnusedBudgetParameters { - // Budget amount to move from excess budget to constrained budget. This is - // a required field. - google.protobuf.Int64Value budget_micros_to_move = 1; - } - - // The resource name of the recommendation to apply. - string resource_name = 1; - - // Parameters to use when applying the recommendation. - oneof apply_parameters { - // Optional parameters to use when applying a campaign budget - // recommendation. - CampaignBudgetParameters campaign_budget = 2; - - // Optional parameters to use when applying a text ad recommendation. - TextAdParameters text_ad = 3; - - // Optional parameters to use when applying keyword recommendation. - KeywordParameters keyword = 4; - - // Optional parameters to use when applying target CPA opt-in - // recommendation. - TargetCpaOptInParameters target_cpa_opt_in = 5; - - // Parameters to use when applying callout extension recommendation. - CalloutExtensionParameters callout_extension = 6; - - // Parameters to use when applying call extension recommendation. - CallExtensionParameters call_extension = 7; - - // Parameters to use when applying sitelink extension recommendation. - SitelinkExtensionParameters sitelink_extension = 8; - - // Parameters to use when applying move unused budget recommendation. - MoveUnusedBudgetParameters move_unused_budget = 9; - } -} - -// Response message for [RecommendationService.ApplyRecommendation][google.ads.googleads.v2.services.RecommendationService.ApplyRecommendation]. -message ApplyRecommendationResponse { - // Results of operations to apply recommendations. - repeated ApplyRecommendationResult results = 1; - - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors) - // we return the RPC level error. - google.rpc.Status partial_failure_error = 2; -} - -// The result of applying a recommendation. -message ApplyRecommendationResult { - // Returned for successful applies. - string resource_name = 1; -} - -// Request message for [RecommendationService.DismissRecommendation][google.ads.googleads.v2.services.RecommendationService.DismissRecommendation]. -message DismissRecommendationRequest { - // Operation to dismiss a single recommendation identified by resource_name. - message DismissRecommendationOperation { - // The resource name of the recommendation to dismiss. - string resource_name = 1; - } - - // Required. The ID of the customer with the recommendation. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to dismiss recommendations. - // If partial_failure=false all recommendations should be of the same type - // There is a limit of 100 operations per request. - repeated DismissRecommendationOperation operations = 3 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, operations will be carried in a - // single transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 2; -} - -// Response message for [RecommendationService.DismissRecommendation][google.ads.googleads.v2.services.RecommendationService.DismissRecommendation]. -message DismissRecommendationResponse { - // The result of dismissing a recommendation. - message DismissRecommendationResult { - // Returned for successful dismissals. - string resource_name = 1; - } - - // Results of operations to dismiss recommendations. - repeated DismissRecommendationResult results = 1; - - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors) - // we return the RPC level error. - google.rpc.Status partial_failure_error = 2; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/remarketing_action_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/remarketing_action_service.proto deleted file mode 100644 index f6a73df2e..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/remarketing_action_service.proto +++ /dev/null @@ -1,123 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/remarketing_action.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "RemarketingActionServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Remarketing Action service. - -// Service to manage remarketing actions. -service RemarketingActionService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested remarketing action in full detail. - rpc GetRemarketingAction(GetRemarketingActionRequest) returns (google.ads.googleads.v2.resources.RemarketingAction) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/remarketingActions/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates or updates remarketing actions. Operation statuses are returned. - rpc MutateRemarketingActions(MutateRemarketingActionsRequest) returns (MutateRemarketingActionsResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/remarketingActions:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [RemarketingActionService.GetRemarketingAction][google.ads.googleads.v2.services.RemarketingActionService.GetRemarketingAction]. -message GetRemarketingActionRequest { - // Required. The resource name of the remarketing action to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/RemarketingAction" - } - ]; -} - -// Request message for [RemarketingActionService.MutateRemarketingActions][google.ads.googleads.v2.services.RemarketingActionService.MutateRemarketingActions]. -message MutateRemarketingActionsRequest { - // Required. The ID of the customer whose remarketing actions are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual remarketing actions. - repeated RemarketingActionOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update) on a remarketing action. -message RemarketingActionOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new remarketing - // action. - google.ads.googleads.v2.resources.RemarketingAction create = 1; - - // Update operation: The remarketing action is expected to have a valid - // resource name. - google.ads.googleads.v2.resources.RemarketingAction update = 2; - } -} - -// Response message for remarketing action mutate. -message MutateRemarketingActionsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateRemarketingActionResult results = 2; -} - -// The result for the remarketing action mutate. -message MutateRemarketingActionResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/search_term_view_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/search_term_view_service.proto deleted file mode 100644 index e73992568..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/search_term_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/search_term_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "SearchTermViewServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Search Term View service. - -// Service to manage search term views. -service SearchTermViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the attributes of the requested search term view. - rpc GetSearchTermView(GetSearchTermViewRequest) returns (google.ads.googleads.v2.resources.SearchTermView) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/searchTermViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [SearchTermViewService.GetSearchTermView][google.ads.googleads.v2.services.SearchTermViewService.GetSearchTermView]. -message GetSearchTermViewRequest { - // Required. The resource name of the search term view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/SearchTermView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/shared_criterion_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/shared_criterion_service.proto deleted file mode 100644 index 9fc60251c..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/shared_criterion_service.proto +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/shared_criterion.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "SharedCriterionServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Shared Criterion service. - -// Service to manage shared criteria. -service SharedCriterionService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested shared criterion in full detail. - rpc GetSharedCriterion(GetSharedCriterionRequest) returns (google.ads.googleads.v2.resources.SharedCriterion) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/sharedCriteria/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates or removes shared criteria. Operation statuses are returned. - rpc MutateSharedCriteria(MutateSharedCriteriaRequest) returns (MutateSharedCriteriaResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/sharedCriteria:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [SharedCriterionService.GetSharedCriterion][google.ads.googleads.v2.services.SharedCriterionService.GetSharedCriterion]. -message GetSharedCriterionRequest { - // Required. The resource name of the shared criterion to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/SharedCriterion" - } - ]; -} - -// Request message for [SharedCriterionService.MutateSharedCriteria][google.ads.googleads.v2.services.SharedCriterionService.MutateSharedCriteria]. -message MutateSharedCriteriaRequest { - // Required. The ID of the customer whose shared criteria are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual shared criteria. - repeated SharedCriterionOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, remove) on an shared criterion. -message SharedCriterionOperation { - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new shared - // criterion. - google.ads.googleads.v2.resources.SharedCriterion create = 1; - - // Remove operation: A resource name for the removed shared criterion is - // expected, in this format: - // - // `customers/{customer_id}/sharedCriteria/{shared_set_id}~{criterion_id}` - string remove = 3; - } -} - -// Response message for a shared criterion mutate. -message MutateSharedCriteriaResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateSharedCriterionResult results = 2; -} - -// The result for the shared criterion mutate. -message MutateSharedCriterionResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/shared_set_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/shared_set_service.proto deleted file mode 100644 index 9cf555dba..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/shared_set_service.proto +++ /dev/null @@ -1,128 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/shared_set.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "SharedSetServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Shared Set service. - -// Service to manage shared sets. -service SharedSetService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested shared set in full detail. - rpc GetSharedSet(GetSharedSetRequest) returns (google.ads.googleads.v2.resources.SharedSet) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/sharedSets/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes shared sets. Operation statuses are returned. - rpc MutateSharedSets(MutateSharedSetsRequest) returns (MutateSharedSetsResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/sharedSets:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [SharedSetService.GetSharedSet][google.ads.googleads.v2.services.SharedSetService.GetSharedSet]. -message GetSharedSetRequest { - // Required. The resource name of the shared set to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/SharedSet" - } - ]; -} - -// Request message for [SharedSetService.MutateSharedSets][google.ads.googleads.v2.services.SharedSetService.MutateSharedSets]. -message MutateSharedSetsRequest { - // Required. The ID of the customer whose shared sets are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual shared sets. - repeated SharedSetOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update, remove) on an shared set. -message SharedSetOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new shared set. - google.ads.googleads.v2.resources.SharedSet create = 1; - - // Update operation: The shared set is expected to have a valid resource - // name. - google.ads.googleads.v2.resources.SharedSet update = 2; - - // Remove operation: A resource name for the removed shared set is expected, - // in this format: - // - // `customers/{customer_id}/sharedSets/{shared_set_id}` - string remove = 3; - } -} - -// Response message for a shared set mutate. -message MutateSharedSetsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateSharedSetResult results = 2; -} - -// The result for the shared set mutate. -message MutateSharedSetResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/shopping_performance_view_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/shopping_performance_view_service.proto deleted file mode 100644 index 9b4deff19..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/shopping_performance_view_service.proto +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/shopping_performance_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "ShoppingPerformanceViewServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the ShoppingPerformanceView service. - -// Service to fetch Shopping performance views. -service ShoppingPerformanceViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested Shopping performance view in full detail. - rpc GetShoppingPerformanceView(GetShoppingPerformanceViewRequest) returns (google.ads.googleads.v2.resources.ShoppingPerformanceView) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/shoppingPerformanceView}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for -// [ShoppingPerformanceViewService.GetShoppingPerformanceView][google.ads.googleads.v2.services.ShoppingPerformanceViewService.GetShoppingPerformanceView]. -message GetShoppingPerformanceViewRequest { - // Required. The resource name of the Shopping performance view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/ShoppingPerformanceView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/topic_constant_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/topic_constant_service.proto deleted file mode 100644 index 96da1963f..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/topic_constant_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/topic_constant.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "TopicConstantServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Topic constant service - -// Service to fetch topic constants. -service TopicConstantService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested topic constant in full detail. - rpc GetTopicConstant(GetTopicConstantRequest) returns (google.ads.googleads.v2.resources.TopicConstant) { - option (google.api.http) = { - get: "/v2/{resource_name=topicConstants/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [TopicConstantService.GetTopicConstant][google.ads.googleads.v2.services.TopicConstantService.GetTopicConstant]. -message GetTopicConstantRequest { - // Required. Resource name of the Topic to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/TopicConstant" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/topic_view_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/topic_view_service.proto deleted file mode 100644 index f4a3ac7f1..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/topic_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/topic_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "TopicViewServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Topic View service. - -// Service to manage topic views. -service TopicViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested topic view in full detail. - rpc GetTopicView(GetTopicViewRequest) returns (google.ads.googleads.v2.resources.TopicView) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/topicViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [TopicViewService.GetTopicView][google.ads.googleads.v2.services.TopicViewService.GetTopicView]. -message GetTopicViewRequest { - // Required. The resource name of the topic view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/TopicView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/user_interest_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/user_interest_service.proto deleted file mode 100644 index c1f351121..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/user_interest_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/user_interest.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "UserInterestServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the user interest service - -// Service to fetch Google Ads User Interest. -service UserInterestService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested user interest in full detail - rpc GetUserInterest(GetUserInterestRequest) returns (google.ads.googleads.v2.resources.UserInterest) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/userInterests/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [UserInterestService.GetUserInterest][google.ads.googleads.v2.services.UserInterestService.GetUserInterest]. -message GetUserInterestRequest { - // Required. Resource name of the UserInterest to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/UserInterest" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/user_list_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/user_list_service.proto deleted file mode 100644 index beb18e600..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/user_list_service.proto +++ /dev/null @@ -1,128 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/user_list.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "UserListServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the User List service. - -// Service to manage user lists. -service UserListService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested user list. - rpc GetUserList(GetUserListRequest) returns (google.ads.googleads.v2.resources.UserList) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/userLists/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates or updates user lists. Operation statuses are returned. - rpc MutateUserLists(MutateUserListsRequest) returns (MutateUserListsResponse) { - option (google.api.http) = { - post: "/v2/customers/{customer_id=*}/userLists:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [UserListService.GetUserList][google.ads.googleads.v2.services.UserListService.GetUserList]. -message GetUserListRequest { - // Required. The resource name of the user list to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/UserList" - } - ]; -} - -// Request message for [UserListService.MutateUserLists][google.ads.googleads.v2.services.UserListService.MutateUserLists]. -message MutateUserListsRequest { - // Required. The ID of the customer whose user lists are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual user lists. - repeated UserListOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update) on a user list. -message UserListOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new user list. - google.ads.googleads.v2.resources.UserList create = 1; - - // Update operation: The user list is expected to have a valid resource - // name. - google.ads.googleads.v2.resources.UserList update = 2; - - // Remove operation: A resource name for the removed user list is expected, - // in this format: - // - // `customers/{customer_id}/userLists/{user_list_id}` - string remove = 3; - } -} - -// Response message for user list mutate. -message MutateUserListsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateUserListResult results = 2; -} - -// The result for the user list mutate. -message MutateUserListResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/user_location_view_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/user_location_view_service.proto deleted file mode 100644 index a9eac2a0b..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/user_location_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/user_location_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "UserLocationViewServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the UserLocationView service. - -// Service to manage user location views. -service UserLocationViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested user location view in full detail. - rpc GetUserLocationView(GetUserLocationViewRequest) returns (google.ads.googleads.v2.resources.UserLocationView) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/userLocationViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [UserLocationViewService.GetUserLocationView][google.ads.googleads.v2.services.UserLocationViewService.GetUserLocationView]. -message GetUserLocationViewRequest { - // Required. The resource name of the user location view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/UserLocationView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v2/services/video_service.proto b/third_party/googleapis/google/ads/googleads/v2/services/video_service.proto deleted file mode 100644 index dbb5b2995..000000000 --- a/third_party/googleapis/google/ads/googleads/v2/services/video_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v2.services; - -import "google/ads/googleads/v2/resources/video.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V2.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v2/services;services"; -option java_multiple_files = true; -option java_outer_classname = "VideoServiceProto"; -option java_package = "com.google.ads.googleads.v2.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V2\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V2::Services"; - -// Proto file describing the Video service. - -// Service to manage videos. -service VideoService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested video in full detail. - rpc GetVideo(GetVideoRequest) returns (google.ads.googleads.v2.resources.Video) { - option (google.api.http) = { - get: "/v2/{resource_name=customers/*/videos/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [VideoService.GetVideo][google.ads.googleads.v2.services.VideoService.GetVideo]. -message GetVideoRequest { - // Required. The resource name of the video to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Video" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/common/ad_asset.proto b/third_party/googleapis/google/ads/googleads/v3/common/ad_asset.proto deleted file mode 100644 index d78ea8426..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/common/ad_asset.proto +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.common; - -import "google/ads/googleads/v3/enums/served_asset_field_type.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/common;common"; -option java_multiple_files = true; -option java_outer_classname = "AdAssetProto"; -option java_package = "com.google.ads.googleads.v3.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V3::Common"; - -// Proto file describing assets used inside an ad. - -// A text asset used inside an ad. -message AdTextAsset { - // Asset text. - google.protobuf.StringValue text = 1; - - // The pinned field of the asset. This restricts the asset to only serve - // 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.v3.enums.ServedAssetFieldTypeEnum.ServedAssetFieldType pinned_field = 2; -} - -// An image asset used inside an ad. -message AdImageAsset { - // The Asset resource name of this image. - google.protobuf.StringValue asset = 1; -} - -// A video asset used inside an ad. -message AdVideoAsset { - // The Asset resource name of this video. - google.protobuf.StringValue asset = 1; -} - -// A media bundle asset used inside an ad. -message AdMediaBundleAsset { - // The Asset resource name of this media bundle. - google.protobuf.StringValue asset = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/common/ad_type_infos.proto b/third_party/googleapis/google/ads/googleads/v3/common/ad_type_infos.proto deleted file mode 100644 index e4bc2aac9..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/common/ad_type_infos.proto +++ /dev/null @@ -1,597 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.common; - -import "google/ads/googleads/v3/common/ad_asset.proto"; -import "google/ads/googleads/v3/enums/call_conversion_reporting_state.proto"; -import "google/ads/googleads/v3/enums/display_ad_format_setting.proto"; -import "google/ads/googleads/v3/enums/display_upload_product_type.proto"; -import "google/ads/googleads/v3/enums/legacy_app_install_ad_app_store.proto"; -import "google/ads/googleads/v3/enums/mime_type.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/common;common"; -option java_multiple_files = true; -option java_outer_classname = "AdTypeInfosProto"; -option java_package = "com.google.ads.googleads.v3.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V3::Common"; - -// Proto file containing info messages for specific ad types. - -// A text ad. -message TextAdInfo { - // The headline of the ad. - google.protobuf.StringValue headline = 1; - - // The first line of the ad's description. - google.protobuf.StringValue description1 = 2; - - // The second line of the ad's description. - google.protobuf.StringValue description2 = 3; -} - -// An expanded text ad. -message ExpandedTextAdInfo { - // The first part of the ad's headline. - google.protobuf.StringValue headline_part1 = 1; - - // The second part of the ad's headline. - google.protobuf.StringValue headline_part2 = 2; - - // The third part of the ad's headline. - google.protobuf.StringValue headline_part3 = 6; - - // The description of the ad. - google.protobuf.StringValue description = 3; - - // The second description of the ad. - google.protobuf.StringValue description2 = 7; - - // The text that can appear alongside the ad's displayed URL. - google.protobuf.StringValue path1 = 4; - - // Additional text that can appear alongside the ad's displayed URL. - google.protobuf.StringValue path2 = 5; -} - -// A call-only ad. -message CallOnlyAdInfo { - // The country code in the ad. - google.protobuf.StringValue country_code = 1; - - // The phone number in the ad. - google.protobuf.StringValue phone_number = 2; - - // The business name in the ad. - google.protobuf.StringValue business_name = 3; - - // First headline in the ad. - google.protobuf.StringValue headline1 = 11; - - // Second headline in the ad. - google.protobuf.StringValue headline2 = 12; - - // The first line of the ad's description. - google.protobuf.StringValue description1 = 4; - - // The second line of the ad's description. - google.protobuf.StringValue description2 = 5; - - // Whether to enable call tracking for the creative. Enabling call - // tracking also enables call conversions. - google.protobuf.BoolValue call_tracked = 6; - - // Whether to disable call conversion for the creative. - // If set to `true`, disables call conversions even when `call_tracked` is - // `true`. - // If `call_tracked` is `false`, this field is ignored. - google.protobuf.BoolValue disable_call_conversion = 7; - - // The URL to be used for phone number verification. - google.protobuf.StringValue phone_number_verification_url = 8; - - // The conversion action to attribute a call conversion to. If not set a - // default conversion action is used. This field only has effect if - // call_tracked is set to true. Otherwise this field is ignored. - google.protobuf.StringValue conversion_action = 9; - - // 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.v3.enums.CallConversionReportingStateEnum.CallConversionReportingState conversion_reporting_state = 10; -} - -// An expanded dynamic search ad. -message ExpandedDynamicSearchAdInfo { - // The description of the ad. - google.protobuf.StringValue description = 1; - - // The second description of the ad. - google.protobuf.StringValue description2 = 2; -} - -// A hotel ad. -message HotelAdInfo { - -} - -// A Smart Shopping ad. -message ShoppingSmartAdInfo { - -} - -// A standard Shopping ad. -message ShoppingProductAdInfo { - -} - -// A Shopping Comparison Listing ad. -message ShoppingComparisonListingAdInfo { - // Headline of the ad. This field is required. Allowed length is between 25 - // and 45 characters. - google.protobuf.StringValue headline = 1; -} - -// A Gmail ad. -message GmailAdInfo { - // The Gmail teaser. - GmailTeaser teaser = 1; - - // The MediaFile resource name of the header image. Valid image types are GIF, - // JPEG and PNG. The minimum size is 300x100 pixels and the aspect ratio must - // be between 3:1 and 5:1 (+-1%). - google.protobuf.StringValue header_image = 2; - - // The MediaFile resource name of the marketing image. Valid image types are - // GIF, JPEG and PNG. The image must either be landscape with a minimum size - // of 600x314 pixels and aspect ratio of 600:314 (+-1%) or square with a - // minimum size of 300x300 pixels and aspect ratio of 1:1 (+-1%) - google.protobuf.StringValue marketing_image = 3; - - // Headline of the marketing image. - google.protobuf.StringValue marketing_image_headline = 4; - - // Description of the marketing image. - google.protobuf.StringValue marketing_image_description = 5; - - // Display-call-to-action of the marketing image. - DisplayCallToAction marketing_image_display_call_to_action = 6; - - // Product images. Up to 15 images are supported. - repeated ProductImage product_images = 7; - - // Product videos. Up to 7 videos are supported. At least one product video - // or a marketing image must be specified. - repeated ProductVideo product_videos = 8; -} - -// Gmail teaser data. The teaser is a small header that acts as an invitation -// to view the rest of the ad (the body). -message GmailTeaser { - // Headline of the teaser. - google.protobuf.StringValue headline = 1; - - // Description of the teaser. - google.protobuf.StringValue description = 2; - - // Business name of the advertiser. - google.protobuf.StringValue business_name = 3; - - // The MediaFile resource name of the logo image. Valid image types are GIF, - // JPEG and PNG. The minimum size is 144x144 pixels and the aspect ratio must - // be 1:1 (+-1%). - google.protobuf.StringValue logo_image = 4; -} - -// Data for display call to action. The call to action is a piece of the ad -// that prompts the user to do something. Like clicking a link or making a phone -// call. -message DisplayCallToAction { - // Text for the display-call-to-action. - google.protobuf.StringValue text = 1; - - // Text color for the display-call-to-action in hexadecimal, e.g. #ffffff for - // white. - google.protobuf.StringValue text_color = 2; - - // Identifies the url collection in the ad.url_collections field. If not set - // the url defaults to final_url. - google.protobuf.StringValue url_collection_id = 3; -} - -// Product image specific data. -message ProductImage { - // The MediaFile resource name of the product image. Valid image types are - // GIF, JPEG and PNG. The minimum size is 300x300 pixels and the aspect ratio - // must be 1:1 (+-1%). - google.protobuf.StringValue product_image = 1; - - // Description of the product. - google.protobuf.StringValue description = 2; - - // Display-call-to-action of the product image. - DisplayCallToAction display_call_to_action = 3; -} - -// Product video specific data. -message ProductVideo { - // The MediaFile resource name of a video which must be hosted on YouTube. - google.protobuf.StringValue product_video = 1; -} - -// An image ad. -message ImageAdInfo { - // Width in pixels of the full size image. - google.protobuf.Int64Value pixel_width = 4; - - // Height in pixels of the full size image. - google.protobuf.Int64Value pixel_height = 5; - - // URL of the full size image. - google.protobuf.StringValue image_url = 6; - - // Width in pixels of the preview size image. - google.protobuf.Int64Value preview_pixel_width = 7; - - // Height in pixels of the preview size image. - google.protobuf.Int64Value preview_pixel_height = 8; - - // URL of the preview size image. - google.protobuf.StringValue preview_image_url = 9; - - // The mime type of the image. - google.ads.googleads.v3.enums.MimeTypeEnum.MimeType mime_type = 10; - - // The name of the image. If the image was created from a MediaFile, this is - // the MediaFile's name. If the image was created from bytes, this is empty. - google.protobuf.StringValue name = 11; - - // The image to create the ImageAd from. This can be specified in one of - // two ways. - // 1. An existing MediaFile resource. - // 2. The raw image data as bytes. - oneof image { - // The MediaFile resource to use for the image. - google.protobuf.StringValue media_file = 1; - - // Raw image data as bytes. - google.protobuf.BytesValue data = 2; - - // An ad ID to copy the image from. - google.protobuf.Int64Value ad_id_to_copy_image_from = 3; - } -} - -// Representation of video bumper in-stream ad format (very short in-stream -// non-skippable video ad). -message VideoBumperInStreamAdInfo { - // The MediaFile resource name of the companion banner used with the ad. - google.protobuf.StringValue companion_banner = 1; -} - -// Representation of video non-skippable in-stream ad format (15 second -// in-stream non-skippable video ad). -message VideoNonSkippableInStreamAdInfo { - // The MediaFile resource name of the companion banner used with the ad. - google.protobuf.StringValue companion_banner = 1; -} - -// 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 -// the video). -message VideoTrueViewInStreamAdInfo { - // Label on the CTA (call-to-action) button taking the user to the video ad's - // final URL. - // Required for TrueView for action campaigns, optional otherwise. - google.protobuf.StringValue action_button_label = 1; - - // Additional text displayed with the CTA (call-to-action) button to give - // context and encourage clicking on the button. - google.protobuf.StringValue action_headline = 2; - - // The MediaFile resource name of the companion banner used with the ad. - google.protobuf.StringValue companion_banner = 3; -} - -// Representation of video out-stream ad format (ad shown alongside a feed -// with automatic playback, without sound). -message VideoOutstreamAdInfo { - // The headline of the ad. - google.protobuf.StringValue headline = 1; - - // The description line. - google.protobuf.StringValue description = 2; -} - -// Representation of video TrueView discovery ad format. -message VideoTrueViewDiscoveryAdInfo { - // The headline of the ad. - google.protobuf.StringValue headline = 1; - - // First text line for a TrueView video discovery ad. - google.protobuf.StringValue description1 = 2; - - // Second text line for a TrueView video discovery ad. - google.protobuf.StringValue description2 = 3; -} - -// A video ad. -message VideoAdInfo { - // The MediaFile resource to use for the video. - google.protobuf.StringValue media_file = 1; - - // Format-specific schema for the different video formats. - oneof format { - // Video TrueView in-stream ad format. - VideoTrueViewInStreamAdInfo in_stream = 2; - - // Video bumper in-stream ad format. - VideoBumperInStreamAdInfo bumper = 3; - - // Video out-stream ad format. - VideoOutstreamAdInfo out_stream = 4; - - // Video non-skippable in-stream ad format. - VideoNonSkippableInStreamAdInfo non_skippable = 5; - - // Video TrueView discovery ad format. - VideoTrueViewDiscoveryAdInfo discovery = 6; - } -} - -// A responsive search ad. -// -// Responsive search ads let you create an ad that adapts to show more text, and -// more relevant messages, to your customers. Enter multiple headlines and -// descriptions when creating a responsive search ad, and over time, Google Ads -// will automatically test different combinations and learn which combinations -// perform best. By adapting your ad's content to more closely match potential -// customers' search terms, responsive search ads may improve your campaign's -// performance. -// -// More information at https://support.google.com/google-ads/answer/7684791 -message ResponsiveSearchAdInfo { - // List of text assets for headlines. When the ad serves the headlines will - // be selected from this list. - repeated AdTextAsset headlines = 1; - - // List of text assets for descriptions. When the ad serves the descriptions - // will be selected from this list. - repeated AdTextAsset descriptions = 2; - - // First part of text that may appear appended to the url displayed in the ad. - google.protobuf.StringValue path1 = 3; - - // Second part of text that may appear appended to the url displayed in the - // ad. This field can only be set when path1 is also set. - google.protobuf.StringValue path2 = 4; -} - -// A legacy responsive display ad. Ads of this type are labeled 'Responsive ads' -// in the Google Ads UI. -message LegacyResponsiveDisplayAdInfo { - // The short version of the ad's headline. - google.protobuf.StringValue short_headline = 1; - - // The long version of the ad's headline. - google.protobuf.StringValue long_headline = 2; - - // The description of the ad. - google.protobuf.StringValue description = 3; - - // The business name in the ad. - google.protobuf.StringValue business_name = 4; - - // Advertiser's consent to allow flexible color. When true, the ad may be - // served with different color if necessary. When false, the ad will be served - // with the specified colors or a neutral color. - // The default value is true. - // Must be true if main_color and accent_color are not set. - google.protobuf.BoolValue allow_flexible_color = 5; - - // The accent color of the ad in hexadecimal, e.g. #ffffff for white. - // If one of main_color and accent_color is set, the other is required as - // well. - google.protobuf.StringValue accent_color = 6; - - // The main color of the ad in hexadecimal, e.g. #ffffff for white. - // If one of main_color and accent_color is set, the other is required as - // well. - google.protobuf.StringValue main_color = 7; - - // The call-to-action text for the ad. - google.protobuf.StringValue call_to_action_text = 8; - - // The MediaFile resource name of the logo image used in the ad. - google.protobuf.StringValue logo_image = 9; - - // The MediaFile resource name of the square logo image used in the ad. - google.protobuf.StringValue square_logo_image = 10; - - // The MediaFile resource name of the marketing image used in the ad. - google.protobuf.StringValue marketing_image = 11; - - // The MediaFile resource name of the square marketing image used in the ad. - google.protobuf.StringValue square_marketing_image = 12; - - // Specifies which format the ad will be served in. Default is ALL_FORMATS. - google.ads.googleads.v3.enums.DisplayAdFormatSettingEnum.DisplayAdFormatSetting format_setting = 13; - - // Prefix before price. E.g. 'as low as'. - google.protobuf.StringValue price_prefix = 14; - - // Promotion text used for dyanmic formats of responsive ads. For example - // 'Free two-day shipping'. - google.protobuf.StringValue promo_text = 15; -} - -// An app ad. -message AppAdInfo { - // An optional text asset that, if specified, must always be displayed when - // the ad is served. - AdTextAsset mandatory_ad_text = 1; - - // List of text assets for headlines. When the ad serves the headlines will - // be selected from this list. - repeated AdTextAsset headlines = 2; - - // List of text assets for descriptions. When the ad serves the descriptions - // will be selected from this list. - repeated AdTextAsset descriptions = 3; - - // List of image assets that may be displayed with the ad. - repeated AdImageAsset images = 4; - - // List of YouTube video assets that may be displayed with the ad. - repeated AdVideoAsset youtube_videos = 5; - - // List of media bundle assets that may be used with the ad. - repeated AdMediaBundleAsset html5_media_bundles = 6; -} - -// App engagement ads allow you to write text encouraging a specific action in -// the app, like checking in, making a purchase, or booking a flight. -// They allow you to send users to a specific part of your app where they can -// find what they're looking for easier and faster. -message AppEngagementAdInfo { - // List of text assets for headlines. When the ad serves the headlines will - // be selected from this list. - repeated AdTextAsset headlines = 1; - - // List of text assets for descriptions. When the ad serves the descriptions - // will be selected from this list. - repeated AdTextAsset descriptions = 2; - - // List of image assets that may be displayed with the ad. - repeated AdImageAsset images = 3; - - // List of video assets that may be displayed with the ad. - repeated AdVideoAsset videos = 4; -} - -// A legacy app install ad that only can be used by a few select customers. -message LegacyAppInstallAdInfo { - // The id of the mobile app. - google.protobuf.StringValue app_id = 1; - - // The app store the mobile app is available in. - google.ads.googleads.v3.enums.LegacyAppInstallAdAppStoreEnum.LegacyAppInstallAdAppStore app_store = 2; - - // The headline of the ad. - google.protobuf.StringValue headline = 3; - - // The first description line of the ad. - google.protobuf.StringValue description1 = 4; - - // The second description line of the ad. - google.protobuf.StringValue description2 = 5; -} - -// A responsive display ad. -message ResponsiveDisplayAdInfo { - // Marketing images to be used in the ad. Valid image types are GIF, - // JPEG, and PNG. The minimum size is 600x314 and the aspect ratio must - // be 1.91:1 (+-1%). At least one marketing_image is required. Combined with - // square_marketing_images the maximum is 15. - repeated AdImageAsset marketing_images = 1; - - // Square marketing images to be used in the ad. Valid image types are GIF, - // JPEG, and PNG. The minimum size is 300x300 and the aspect ratio must - // be 1:1 (+-1%). At least one square marketing_image is required. Combined - // with marketing_images the maximum is 15. - repeated AdImageAsset square_marketing_images = 2; - - // Logo images to be used in the ad. Valid image types are GIF, - // JPEG, and PNG. The minimum size is 512x128 and the aspect ratio must - // be 4:1 (+-1%). Combined with square_logo_images the maximum is 5. - repeated AdImageAsset logo_images = 3; - - // Square logo images to be used in the ad. Valid image types are GIF, - // JPEG, and PNG. The minimum size is 128x128 and the aspect ratio must - // be 1:1 (+-1%). Combined with square_logo_images the maximum is 5. - repeated AdImageAsset square_logo_images = 4; - - // Short format headlines for the ad. The maximum length is 30 characters. - // At least 1 and max 5 headlines can be specified. - repeated AdTextAsset headlines = 5; - - // A required long format headline. The maximum length is 90 characters. - AdTextAsset long_headline = 6; - - // Descriptive texts for the ad. The maximum length is 90 characters. At - // least 1 and max 5 headlines can be specified. - repeated AdTextAsset descriptions = 7; - - // Optional YouTube videos for the ad. A maximum of 5 videos can be specified. - repeated AdVideoAsset youtube_videos = 8; - - // The advertiser/brand name. Maximum display width is 25. - google.protobuf.StringValue business_name = 9; - - // The main color of the ad in hexadecimal, e.g. #ffffff for white. - // If one of main_color and accent_color is set, the other is required as - // well. - google.protobuf.StringValue main_color = 10; - - // The accent color of the ad in hexadecimal, e.g. #ffffff for white. - // If one of main_color and accent_color is set, the other is required as - // well. - google.protobuf.StringValue accent_color = 11; - - // Advertiser's consent to allow flexible color. When true, the ad may be - // served with different color if necessary. When false, the ad will be served - // with the specified colors or a neutral color. - // The default value is true. - // Must be true if main_color and accent_color are not set. - google.protobuf.BoolValue allow_flexible_color = 12; - - // The call-to-action text for the ad. Maximum display width is 30. - google.protobuf.StringValue call_to_action_text = 13; - - // Prefix before price. E.g. 'as low as'. - google.protobuf.StringValue price_prefix = 14; - - // Promotion text used for dyanmic formats of responsive ads. For example - // 'Free two-day shipping'. - google.protobuf.StringValue promo_text = 15; - - // Specifies which format the ad will be served in. Default is ALL_FORMATS. - google.ads.googleads.v3.enums.DisplayAdFormatSettingEnum.DisplayAdFormatSetting format_setting = 16; -} - -// A generic type of display ad. The exact ad format is controlled by the -// display_upload_product_type field, which determines what kinds of data -// 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.v3.enums.DisplayUploadProductTypeEnum.DisplayUploadProductType display_upload_product_type = 1; - - // The asset data that makes up the ad. - oneof media_asset { - // A media bundle asset to be used in the ad. For information about the - // media bundle for HTML5_UPLOAD_AD see - // https://support.google.com/google-ads/answer/1722096 - // Media bundles that are part of dynamic product types use a special format - // that needs to be created through the Google Web Designer. See - // https://support.google.com/webdesigner/answer/7543898 for more - // information. - AdMediaBundleAsset media_bundle = 2; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v3/common/asset_types.proto b/third_party/googleapis/google/ads/googleads/v3/common/asset_types.proto deleted file mode 100644 index eb33d4777..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/common/asset_types.proto +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.common; - -import "google/ads/googleads/v3/enums/mime_type.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/common;common"; -option java_multiple_files = true; -option java_outer_classname = "AssetTypesProto"; -option java_package = "com.google.ads.googleads.v3.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V3::Common"; - -// Proto file containing info messages for specific asset types. - -// A YouTube asset. -message YoutubeVideoAsset { - // YouTube video id. This is the 11 character string value used in the - // YouTube video URL. - google.protobuf.StringValue youtube_video_id = 1; -} - -// A MediaBundle asset. -message MediaBundleAsset { - // Media bundle (ZIP file) asset data. The format of the uploaded ZIP file - // depends on the ad field where it will be used. For more information on the - // format, see the documentation of the ad field where you plan on using the - // MediaBundleAsset. This field is mutate only. - google.protobuf.BytesValue data = 1; -} - -// An Image asset. -message ImageAsset { - // The raw bytes data of an image. This field is mutate only. - google.protobuf.BytesValue data = 1; - - // File size of the image asset in bytes. - google.protobuf.Int64Value file_size = 2; - - // MIME type of the image asset. - google.ads.googleads.v3.enums.MimeTypeEnum.MimeType mime_type = 3; - - // Metadata for this image at its original size. - ImageDimension full_size = 4; -} - -// Metadata for an image at a certain size, either original or resized. -message ImageDimension { - // Height of the image. - google.protobuf.Int64Value height_pixels = 1; - - // Width of the image. - google.protobuf.Int64Value width_pixels = 2; - - // A URL that returns the image with this height and width. - google.protobuf.StringValue url = 3; -} - -// A Text asset. -message TextAsset { - // Text content of the text asset. - google.protobuf.StringValue text = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/common/bidding.proto b/third_party/googleapis/google/ads/googleads/v3/common/bidding.proto deleted file mode 100644 index 4b36cc752..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/common/bidding.proto +++ /dev/null @@ -1,168 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.common; - -import "google/ads/googleads/v3/enums/target_impression_share_location.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/common;common"; -option java_multiple_files = true; -option java_outer_classname = "BiddingProto"; -option java_package = "com.google.ads.googleads.v3.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V3::Common"; - -// Proto file describing bidding schemes. - -// Commission is an automatic bidding strategy in which the advertiser pays a -// certain portion of the conversion value. -message Commission { - // Commission rate defines the portion of the conversion value that the - // advertiser will be billed. A commission rate of x should be passed into - // this field as (x * 1,000,000). For example, 106,000 represents a commission - // rate of 0.106 (10.6%). - google.protobuf.Int64Value commission_rate_micros = 1; -} - -// 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 { - -} - -// Manual click-based bidding where user pays per click. -message ManualCpc { - // Whether bids are to be enhanced based on conversion optimizer data. - google.protobuf.BoolValue enhanced_cpc_enabled = 1; -} - -// Manual impression-based bidding where user pays per thousand impressions. -message ManualCpm { - -} - -// View based bidding where user pays per video view. -message ManualCpv { - -} - -// An automated bidding strategy that sets bids to help get the most conversions -// for your campaign while spending your budget. -message MaximizeConversions { - -} - -// An automated bidding strategy which tries to maximize conversion value -// given a daily budget. -message MaximizeConversionValue { - // The target return on ad spend (ROAS) option. If set, the bid strategy will - // maximize revenue while averaging the target return on ad spend. If the - // target ROAS is high, the bid strategy may not be able to spend the full - // budget. If the target ROAS is not set, the bid strategy will aim to - // achieve the highest possible ROAS for the budget. - google.protobuf.DoubleValue target_roas = 1; -} - -// An automated bid strategy that sets bids to help get as many conversions as -// possible at the target cost-per-acquisition (CPA) you set. -message TargetCpa { - // Average CPA target. - // This target should be greater than or equal to minimum billable unit based - // on the currency for the account. - google.protobuf.Int64Value target_cpa_micros = 1; - - // Maximum bid limit that can be set by the bid strategy. - // The limit applies to all keywords managed by the strategy. - google.protobuf.Int64Value cpc_bid_ceiling_micros = 2; - - // Minimum bid limit that can be set by the bid strategy. - // The limit applies to all keywords managed by the strategy. - google.protobuf.Int64Value cpc_bid_floor_micros = 3; -} - -// 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 { - -} - -// 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 -// location). -message TargetImpressionShare { - // The targeted location on the search results page. - google.ads.googleads.v3.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. - google.protobuf.Int64Value location_fraction_micros = 2; - - // The highest CPC bid the automated bidding system is permitted to specify. - // This is a required field entered by the advertiser that sets the ceiling - // and specified in local micros. - google.protobuf.Int64Value cpc_bid_ceiling_micros = 3; -} - -// An automated bidding strategy that helps you maximize revenue while -// averaging a specific target return on ad spend (ROAS). -message TargetRoas { - // Required. The desired revenue (based on conversion data) per unit of spend. - // Value must be between 0.01 and 1000.0, inclusive. - google.protobuf.DoubleValue target_roas = 1; - - // Maximum bid limit that can be set by the bid strategy. - // The limit applies to all keywords managed by the strategy. - google.protobuf.Int64Value cpc_bid_ceiling_micros = 2; - - // Minimum bid limit that can be set by the bid strategy. - // The limit applies to all keywords managed by the strategy. - google.protobuf.Int64Value cpc_bid_floor_micros = 3; -} - -// An automated bid strategy that sets your bids to help get as many clicks -// as possible within your budget. -message TargetSpend { - // The spend target under which to maximize clicks. - // A TargetSpend bidder will attempt to spend the smaller of this value - // or the natural throttling spend amount. - // If not specified, the budget is used as the spend target. - google.protobuf.Int64Value target_spend_micros = 1; - - // Maximum bid limit that can be set by the bid strategy. - // The limit applies to all keywords managed by the strategy. - google.protobuf.Int64Value cpc_bid_ceiling_micros = 2; -} - -// A bidding strategy where bids are a fraction of the advertised price for -// some good or service. -message PercentCpc { - // Maximum bid limit that can be set by the bid strategy. This is - // an optional field entered by the advertiser and specified in local micros. - // Note: A zero value is interpreted in the same way as having bid_ceiling - // undefined. - google.protobuf.Int64Value cpc_bid_ceiling_micros = 1; - - // Adjusts the bid for each auction upward or downward, depending on the - // likelihood of a conversion. Individual bids may exceed - // cpc_bid_ceiling_micros, but the average bid amount for a campaign should - // not. - google.protobuf.BoolValue enhanced_cpc_enabled = 2; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/common/click_location.proto b/third_party/googleapis/google/ads/googleads/v3/common/click_location.proto deleted file mode 100644 index 21069c2a4..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/common/click_location.proto +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.common; - -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/common;common"; -option java_multiple_files = true; -option java_outer_classname = "ClickLocationProto"; -option java_package = "com.google.ads.googleads.v3.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V3::Common"; - -// Proto file describing a ClickLocation. - -// Location criteria associated with a click. -message ClickLocation { - // The city location criterion associated with the impression. - google.protobuf.StringValue city = 1; - - // The country location criterion associated with the impression. - google.protobuf.StringValue country = 2; - - // The metro location criterion associated with the impression. - google.protobuf.StringValue metro = 3; - - // The most specific location criterion associated with the impression. - google.protobuf.StringValue most_specific = 4; - - // The region location criterion associated with the impression. - google.protobuf.StringValue region = 5; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/common/criteria.proto b/third_party/googleapis/google/ads/googleads/v3/common/criteria.proto deleted file mode 100644 index 9442c75ff..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/common/criteria.proto +++ /dev/null @@ -1,593 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.common; - -import "google/ads/googleads/v3/enums/age_range_type.proto"; -import "google/ads/googleads/v3/enums/app_payment_model_type.proto"; -import "google/ads/googleads/v3/enums/content_label_type.proto"; -import "google/ads/googleads/v3/enums/day_of_week.proto"; -import "google/ads/googleads/v3/enums/device.proto"; -import "google/ads/googleads/v3/enums/gender_type.proto"; -import "google/ads/googleads/v3/enums/hotel_date_selection_type.proto"; -import "google/ads/googleads/v3/enums/income_range_type.proto"; -import "google/ads/googleads/v3/enums/interaction_type.proto"; -import "google/ads/googleads/v3/enums/keyword_match_type.proto"; -import "google/ads/googleads/v3/enums/listing_group_type.proto"; -import "google/ads/googleads/v3/enums/location_group_radius_units.proto"; -import "google/ads/googleads/v3/enums/minute_of_hour.proto"; -import "google/ads/googleads/v3/enums/parental_status_type.proto"; -import "google/ads/googleads/v3/enums/preferred_content_type.proto"; -import "google/ads/googleads/v3/enums/product_bidding_category_level.proto"; -import "google/ads/googleads/v3/enums/product_channel.proto"; -import "google/ads/googleads/v3/enums/product_channel_exclusivity.proto"; -import "google/ads/googleads/v3/enums/product_condition.proto"; -import "google/ads/googleads/v3/enums/product_custom_attribute_index.proto"; -import "google/ads/googleads/v3/enums/product_type_level.proto"; -import "google/ads/googleads/v3/enums/proximity_radius_units.proto"; -import "google/ads/googleads/v3/enums/webpage_condition_operand.proto"; -import "google/ads/googleads/v3/enums/webpage_condition_operator.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/common;common"; -option java_multiple_files = true; -option java_outer_classname = "CriteriaProto"; -option java_package = "com.google.ads.googleads.v3.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V3::Common"; - -// Proto file describing criteria types. - -// A keyword criterion. -message KeywordInfo { - // The text of the keyword (at most 80 characters and 10 words). - google.protobuf.StringValue text = 1; - - // The match type of the keyword. - google.ads.googleads.v3.enums.KeywordMatchTypeEnum.KeywordMatchType match_type = 2; -} - -// A placement criterion. This can be used to modify bids for sites when -// targeting the content network. -message PlacementInfo { - // URL of the placement. - // - // For example, "http://www.domain.com". - google.protobuf.StringValue url = 1; -} - -// A mobile app category criterion. -message MobileAppCategoryInfo { - // The mobile app category constant resource name. - google.protobuf.StringValue mobile_app_category_constant = 1; -} - -// A mobile application criterion. -message MobileApplicationInfo { - // A string that uniquely identifies a mobile application to Google Ads API. - // The format of this string is "{platform}-{platform_native_id}", where - // platform is "1" for iOS apps and "2" for Android apps, and where - // platform_native_id is the mobile application identifier native to the - // corresponding platform. - // For iOS, this native identifier is the 9 digit string that appears at the - // end of an App Store URL (e.g., "476943146" for "Flood-It! 2" whose App - // Store link is "http://itunes.apple.com/us/app/flood-it!-2/id476943146"). - // For Android, this native identifier is the application's package name - // (e.g., "com.labpixies.colordrips" for "Color Drips" given Google Play link - // "https://play.google.com/store/apps/details?id=com.labpixies.colordrips"). - // A well formed app id for Google Ads API would thus be "1-476943146" for iOS - // and "2-com.labpixies.colordrips" for Android. - // This field is required and must be set in CREATE operations. - google.protobuf.StringValue app_id = 2; - - // Name of this mobile application. - google.protobuf.StringValue name = 3; -} - -// A location criterion. -message LocationInfo { - // The geo target constant resource name. - google.protobuf.StringValue geo_target_constant = 1; -} - -// A device criterion. -message DeviceInfo { - // Type of the device. - google.ads.googleads.v3.enums.DeviceEnum.Device type = 1; -} - -// A preferred content criterion. -message PreferredContentInfo { - // Type of the preferred content. - google.ads.googleads.v3.enums.PreferredContentTypeEnum.PreferredContentType type = 2; -} - -// A listing group criterion. -message ListingGroupInfo { - // Type of the listing group. - google.ads.googleads.v3.enums.ListingGroupTypeEnum.ListingGroupType type = 1; - - // Dimension value with which this listing group is refining its parent. - // Undefined for the root group. - ListingDimensionInfo case_value = 2; - - // Resource name of ad group criterion which is the parent listing group - // subdivision. Null for the root group. - google.protobuf.StringValue parent_ad_group_criterion = 3; -} - -// A listing scope criterion. -message ListingScopeInfo { - // Scope of the campaign criterion. - repeated ListingDimensionInfo dimensions = 2; -} - -// Listing dimensions for listing group criterion. -message ListingDimensionInfo { - // Dimension of one of the types below is always present. - oneof dimension { - // Advertiser-specific hotel ID. - HotelIdInfo hotel_id = 2; - - // Class of the hotel as a number of stars 1 to 5. - HotelClassInfo hotel_class = 3; - - // Country or Region the hotel is located in. - HotelCountryRegionInfo hotel_country_region = 4; - - // State the hotel is located in. - HotelStateInfo hotel_state = 5; - - // City the hotel is located in. - HotelCityInfo hotel_city = 6; - - // Bidding category of a product offer. - ProductBiddingCategoryInfo product_bidding_category = 13; - - // Brand of a product offer. - ProductBrandInfo product_brand = 15; - - // Locality of a product offer. - ProductChannelInfo product_channel = 8; - - // Availability of a product offer. - ProductChannelExclusivityInfo product_channel_exclusivity = 9; - - // Condition of a product offer. - ProductConditionInfo product_condition = 10; - - // Custom attribute of a product offer. - ProductCustomAttributeInfo product_custom_attribute = 16; - - // Item id of a product offer. - ProductItemIdInfo product_item_id = 11; - - // Type of a product offer. - ProductTypeInfo product_type = 12; - - // Unknown dimension. Set when no other listing dimension is set. - UnknownListingDimensionInfo unknown_listing_dimension = 14; - } -} - -// Advertiser-specific hotel ID. -message HotelIdInfo { - // String value of the hotel ID. - google.protobuf.StringValue value = 1; -} - -// Class of the hotel as a number of stars 1 to 5. -message HotelClassInfo { - // Long value of the hotel class. - google.protobuf.Int64Value value = 1; -} - -// Country or Region the hotel is located in. -message HotelCountryRegionInfo { - // The Geo Target Constant resource name. - google.protobuf.StringValue country_region_criterion = 1; -} - -// State the hotel is located in. -message HotelStateInfo { - // The Geo Target Constant resource name. - google.protobuf.StringValue state_criterion = 1; -} - -// City the hotel is located in. -message HotelCityInfo { - // The Geo Target Constant resource name. - google.protobuf.StringValue city_criterion = 1; -} - -// Bidding category of a product offer. -message ProductBiddingCategoryInfo { - // ID of the product bidding category. - // - // This ID is equivalent to the google_product_category ID as described in - // this article: https://support.google.com/merchants/answer/6324436 - google.protobuf.Int64Value id = 1; - - // Two-letter upper-case country code of the product bidding category. It must - // match the campaign.shopping_setting.sales_country field. - google.protobuf.StringValue country_code = 2; - - // Level of the product bidding category. - google.ads.googleads.v3.enums.ProductBiddingCategoryLevelEnum.ProductBiddingCategoryLevel level = 3; -} - -// Brand of the product. -message ProductBrandInfo { - // String value of the product brand. - google.protobuf.StringValue value = 1; -} - -// Locality of a product offer. -message ProductChannelInfo { - // Value of the locality. - google.ads.googleads.v3.enums.ProductChannelEnum.ProductChannel channel = 1; -} - -// Availability of a product offer. -message ProductChannelExclusivityInfo { - // Value of the availability. - google.ads.googleads.v3.enums.ProductChannelExclusivityEnum.ProductChannelExclusivity channel_exclusivity = 1; -} - -// Condition of a product offer. -message ProductConditionInfo { - // Value of the condition. - google.ads.googleads.v3.enums.ProductConditionEnum.ProductCondition condition = 1; -} - -// Custom attribute of a product offer. -message ProductCustomAttributeInfo { - // String value of the product custom attribute. - google.protobuf.StringValue value = 1; - - // Indicates the index of the custom attribute. - google.ads.googleads.v3.enums.ProductCustomAttributeIndexEnum.ProductCustomAttributeIndex index = 2; -} - -// Item id of a product offer. -message ProductItemIdInfo { - // Value of the id. - google.protobuf.StringValue value = 1; -} - -// Type of a product offer. -message ProductTypeInfo { - // Value of the type. - google.protobuf.StringValue value = 1; - - // Level of the type. - google.ads.googleads.v3.enums.ProductTypeLevelEnum.ProductTypeLevel level = 2; -} - -// Unknown listing dimension. -message UnknownListingDimensionInfo { - -} - -// Criterion for hotel date selection (default dates vs. user selected). -message HotelDateSelectionTypeInfo { - // Type of the hotel date selection - google.ads.googleads.v3.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType type = 1; -} - -// Criterion for number of days prior to the stay the booking is being made. -message HotelAdvanceBookingWindowInfo { - // Low end of the number of days prior to the stay. - google.protobuf.Int64Value min_days = 1; - - // High end of the number of days prior to the stay. - google.protobuf.Int64Value max_days = 2; -} - -// Criterion for length of hotel stay in nights. -message HotelLengthOfStayInfo { - // Low end of the number of nights in the stay. - google.protobuf.Int64Value min_nights = 1; - - // High end of the number of nights in the stay. - google.protobuf.Int64Value max_nights = 2; -} - -// Criterion for day of the week the booking is for. -message HotelCheckInDayInfo { - // The day of the week. - google.ads.googleads.v3.enums.DayOfWeekEnum.DayOfWeek day_of_week = 1; -} - -// Criterion for Interaction Type. -message InteractionTypeInfo { - // The interaction type. - google.ads.googleads.v3.enums.InteractionTypeEnum.InteractionType type = 1; -} - -// Represents an AdSchedule criterion. -// -// AdSchedule is specified as the day of the week and a time interval -// within which ads will be shown. -// -// No more than six AdSchedules can be added for the same day. -message AdScheduleInfo { - // Minutes after the start hour at which this schedule starts. - // - // This field is required for CREATE operations and is prohibited on UPDATE - // operations. - google.ads.googleads.v3.enums.MinuteOfHourEnum.MinuteOfHour start_minute = 1; - - // Minutes after the end hour at which this schedule ends. The schedule is - // exclusive of the end minute. - // - // This field is required for CREATE operations and is prohibited on UPDATE - // operations. - google.ads.googleads.v3.enums.MinuteOfHourEnum.MinuteOfHour end_minute = 2; - - // Starting hour in 24 hour time. - // This field must be between 0 and 23, inclusive. - // - // This field is required for CREATE operations and is prohibited on UPDATE - // operations. - google.protobuf.Int32Value start_hour = 3; - - // Ending hour in 24 hour time; 24 signifies end of the day. - // This field must be between 0 and 24, inclusive. - // - // This field is required for CREATE operations and is prohibited on UPDATE - // operations. - google.protobuf.Int32Value end_hour = 4; - - // Day of the week the schedule applies to. - // - // This field is required for CREATE operations and is prohibited on UPDATE - // operations. - google.ads.googleads.v3.enums.DayOfWeekEnum.DayOfWeek day_of_week = 5; -} - -// An age range criterion. -message AgeRangeInfo { - // Type of the age range. - google.ads.googleads.v3.enums.AgeRangeTypeEnum.AgeRangeType type = 1; -} - -// A gender criterion. -message GenderInfo { - // Type of the gender. - google.ads.googleads.v3.enums.GenderTypeEnum.GenderType type = 1; -} - -// An income range criterion. -message IncomeRangeInfo { - // Type of the income range. - google.ads.googleads.v3.enums.IncomeRangeTypeEnum.IncomeRangeType type = 1; -} - -// A parental status criterion. -message ParentalStatusInfo { - // Type of the parental status. - google.ads.googleads.v3.enums.ParentalStatusTypeEnum.ParentalStatusType type = 1; -} - -// A YouTube Video criterion. -message YouTubeVideoInfo { - // YouTube video id as it appears on the YouTube watch page. - google.protobuf.StringValue video_id = 1; -} - -// A YouTube Channel criterion. -message YouTubeChannelInfo { - // The YouTube uploader channel id or the channel code of a YouTube channel. - google.protobuf.StringValue channel_id = 1; -} - -// A User List criterion. Represents a user list that is defined by the -// advertiser to be targeted. -message UserListInfo { - // The User List resource name. - google.protobuf.StringValue user_list = 1; -} - -// A Proximity criterion. The geo point and radius determine what geographical -// area is included. The address is a description of the geo point that does -// not affect ad serving. -// -// There are two ways to create a proximity. First, by setting an address -// and radius. The geo point will be automatically computed. Second, by -// setting a geo point and radius. The address is an optional label that won't -// be validated. -message ProximityInfo { - // Latitude and longitude. - GeoPointInfo geo_point = 1; - - // The radius of the proximity. - google.protobuf.DoubleValue radius = 2; - - // The unit of measurement of the radius. Default is KILOMETERS. - google.ads.googleads.v3.enums.ProximityRadiusUnitsEnum.ProximityRadiusUnits radius_units = 3; - - // Full address. - AddressInfo address = 4; -} - -// Geo point for proximity criterion. -message GeoPointInfo { - // Micro degrees for the longitude. - google.protobuf.Int32Value longitude_in_micro_degrees = 1; - - // Micro degrees for the latitude. - google.protobuf.Int32Value latitude_in_micro_degrees = 2; -} - -// Address for proximity criterion. -message AddressInfo { - // Postal code. - google.protobuf.StringValue postal_code = 1; - - // Province or state code. - google.protobuf.StringValue province_code = 2; - - // Country code. - google.protobuf.StringValue country_code = 3; - - // Province or state name. - google.protobuf.StringValue province_name = 4; - - // Street address line 1. - google.protobuf.StringValue street_address = 5; - - // Street address line 2. This field is write-only. It is only used for - // calculating the longitude and latitude of an address when geo_point is - // empty. - google.protobuf.StringValue street_address2 = 6; - - // Name of the city. - google.protobuf.StringValue city_name = 7; -} - -// A topic criterion. Use topics to target or exclude placements in the -// Google Display Network based on the category into which the placement falls -// (for example, "Pets & Animals/Pets/Dogs"). -message TopicInfo { - // The Topic Constant resource name. - google.protobuf.StringValue topic_constant = 1; - - // The category to target or exclude. Each subsequent element in the array - // describes a more specific sub-category. For example, - // "Pets & Animals", "Pets", "Dogs" represents the "Pets & Animals/Pets/Dogs" - // category. - repeated google.protobuf.StringValue path = 2; -} - -// A language criterion. -message LanguageInfo { - // The language constant resource name. - google.protobuf.StringValue language_constant = 1; -} - -// An IpBlock criterion used for IP exclusions. We allow: -// - IPv4 and IPv6 addresses -// - individual addresses (192.168.0.1) -// - masks for individual addresses (192.168.0.1/32) -// - masks for Class C networks (192.168.0.1/24) -message IpBlockInfo { - // The IP address of this IP block. - google.protobuf.StringValue ip_address = 1; -} - -// Content Label for category exclusion. -message ContentLabelInfo { - // Content label type, required for CREATE operations. - google.ads.googleads.v3.enums.ContentLabelTypeEnum.ContentLabelType type = 1; -} - -// Represents a Carrier Criterion. -message CarrierInfo { - // The Carrier constant resource name. - google.protobuf.StringValue carrier_constant = 1; -} - -// Represents a particular interest-based topic to be targeted. -message UserInterestInfo { - // The UserInterest resource name. - google.protobuf.StringValue user_interest_category = 1; -} - -// Represents a criterion for targeting webpages of an advertiser's website. -message WebpageInfo { - // The name of the criterion that is defined by this parameter. The name value - // will be used for identifying, sorting and filtering criteria with this type - // of parameters. - // - // This field is required for CREATE operations and is prohibited on UPDATE - // operations. - google.protobuf.StringValue criterion_name = 1; - - // Conditions, or logical expressions, for webpage targeting. The list of - // webpage targeting conditions are and-ed together when evaluated - // for targeting. - // - // This field is required for CREATE operations and is prohibited on UPDATE - // operations. - repeated WebpageConditionInfo conditions = 2; -} - -// Logical expression for targeting webpages of an advertiser's website. -message WebpageConditionInfo { - // Operand of webpage targeting condition. - google.ads.googleads.v3.enums.WebpageConditionOperandEnum.WebpageConditionOperand operand = 1; - - // Operator of webpage targeting condition. - google.ads.googleads.v3.enums.WebpageConditionOperatorEnum.WebpageConditionOperator operator = 2; - - // Argument of webpage targeting condition. - google.protobuf.StringValue argument = 3; -} - -// Represents an operating system version to be targeted. -message OperatingSystemVersionInfo { - // The operating system version constant resource name. - google.protobuf.StringValue operating_system_version_constant = 1; -} - -// An app payment model criterion. -message AppPaymentModelInfo { - // Type of the app payment model. - google.ads.googleads.v3.enums.AppPaymentModelTypeEnum.AppPaymentModelType type = 1; -} - -// A mobile device criterion. -message MobileDeviceInfo { - // The mobile device constant resource name. - google.protobuf.StringValue mobile_device_constant = 1; -} - -// A custom affinity criterion. -// A criterion of this type is only targetable. -message CustomAffinityInfo { - // The CustomInterest resource name. - google.protobuf.StringValue custom_affinity = 1; -} - -// A custom intent criterion. -// A criterion of this type is only targetable. -message CustomIntentInfo { - // The CustomInterest resource name. - google.protobuf.StringValue custom_intent = 1; -} - -// A radius around a list of locations specified via a feed. -message LocationGroupInfo { - // Feed specifying locations for targeting. - // This is required and must be set in CREATE operations. - google.protobuf.StringValue feed = 1; - - // Geo target constant(s) restricting the scope of the geographic area within - // the feed. Currently only one geo target constant is allowed. - repeated google.protobuf.StringValue geo_target_constants = 2; - - // Distance in units specifying the radius around targeted locations. - // This is required and must be set in CREATE operations. - google.protobuf.Int64Value radius = 3; - - // Unit of the radius, miles and meters supported currently. - // This is required and must be set in CREATE operations. - google.ads.googleads.v3.enums.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnits radius_units = 4; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/common/criterion_category_availability.proto b/third_party/googleapis/google/ads/googleads/v3/common/criterion_category_availability.proto deleted file mode 100644 index 7770b5012..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/common/criterion_category_availability.proto +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.common; - -import "google/ads/googleads/v3/enums/advertising_channel_sub_type.proto"; -import "google/ads/googleads/v3/enums/advertising_channel_type.proto"; -import "google/ads/googleads/v3/enums/criterion_category_channel_availability_mode.proto"; -import "google/ads/googleads/v3/enums/criterion_category_locale_availability_mode.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/common;common"; -option java_multiple_files = true; -option java_outer_classname = "CriterionCategoryAvailabilityProto"; -option java_package = "com.google.ads.googleads.v3.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V3::Common"; - -// Proto file describing criterion category availability information. - -// Information of category availability, per advertising channel. -message CriterionCategoryAvailability { - // Channel types and subtypes that are available to the category. - CriterionCategoryChannelAvailability channel = 1; - - // Locales that are available to the category for the channel. - repeated CriterionCategoryLocaleAvailability locale = 2; -} - -// Information of advertising channel type and subtypes a category is available -// in. -message CriterionCategoryChannelAvailability { - // Format of the channel availability. Can be ALL_CHANNELS (the rest of the - // fields will not be set), CHANNEL_TYPE (only advertising_channel_type type - // will be set, the category is available to all sub types under it) or - // CHANNEL_TYPE_AND_SUBTYPES (advertising_channel_type, - // advertising_channel_sub_type, and include_default_channel_sub_type will all - // be set). - google.ads.googleads.v3.enums.CriterionCategoryChannelAvailabilityModeEnum.CriterionCategoryChannelAvailabilityMode availability_mode = 1; - - // Channel type the category is available to. - google.ads.googleads.v3.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 2; - - // Channel subtypes under the channel type the category is available to. - repeated google.ads.googleads.v3.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 - // being false means that the default display campaign where channel sub type - // is not set is not included in this availability configuration. - google.protobuf.BoolValue include_default_channel_sub_type = 4; -} - -// Information about which locales a category is available in. -message CriterionCategoryLocaleAvailability { - // Format of the locale availability. Can be LAUNCHED_TO_ALL (both country and - // 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.v3.enums.CriterionCategoryLocaleAvailabilityModeEnum.CriterionCategoryLocaleAvailabilityMode availability_mode = 1; - - // Code of the country. - google.protobuf.StringValue country_code = 2; - - // Code of the language. - google.protobuf.StringValue language_code = 3; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/common/custom_parameter.proto b/third_party/googleapis/google/ads/googleads/v3/common/custom_parameter.proto deleted file mode 100644 index 1710c1620..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/common/custom_parameter.proto +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.common; - -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/common;common"; -option java_multiple_files = true; -option java_outer_classname = "CustomParameterProto"; -option java_package = "com.google.ads.googleads.v3.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V3::Common"; - -// Proto file describing CustomParameter and operation - -// A mapping that can be used by custom parameter tags in a -// `tracking_url_template`, `final_urls`, or `mobile_final_urls`. -message CustomParameter { - // The key matching the parameter tag name. - google.protobuf.StringValue key = 1; - - // The value to be substituted. - google.protobuf.StringValue value = 2; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/common/dates.proto b/third_party/googleapis/google/ads/googleads/v3/common/dates.proto deleted file mode 100644 index b1edbd0c7..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/common/dates.proto +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.common; - -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/common;common"; -option java_multiple_files = true; -option java_outer_classname = "DatesProto"; -option java_package = "com.google.ads.googleads.v3.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V3::Common"; - -// Proto file describing date range message. - -// A date range. -message DateRange { - // The start date, in yyyy-mm-dd format. This date is inclusive. - google.protobuf.StringValue start_date = 1; - - // The end date, in yyyy-mm-dd format. This date is inclusive. - google.protobuf.StringValue end_date = 2; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/common/explorer_auto_optimizer_setting.proto b/third_party/googleapis/google/ads/googleads/v3/common/explorer_auto_optimizer_setting.proto deleted file mode 100644 index 0506cf859..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/common/explorer_auto_optimizer_setting.proto +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.common; - -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/common;common"; -option java_multiple_files = true; -option java_outer_classname = "ExplorerAutoOptimizerSettingProto"; -option java_package = "com.google.ads.googleads.v3.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V3::Common"; - -// Proto file describing ExplorerAutoOptimizerSetting - -// Settings for the Display Campaign Optimizer, initially named "Explorer". -// Learn more about -// [automatic targeting](https://support.google.com/google-ads/answer/190596). -message ExplorerAutoOptimizerSetting { - // Indicates whether the optimizer is turned on. - google.protobuf.BoolValue opt_in = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/common/extensions.proto b/third_party/googleapis/google/ads/googleads/v3/common/extensions.proto deleted file mode 100644 index 19026eaa2..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/common/extensions.proto +++ /dev/null @@ -1,357 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.common; - -import "google/ads/googleads/v3/common/custom_parameter.proto"; -import "google/ads/googleads/v3/common/feed_common.proto"; -import "google/ads/googleads/v3/enums/app_store.proto"; -import "google/ads/googleads/v3/enums/call_conversion_reporting_state.proto"; -import "google/ads/googleads/v3/enums/price_extension_price_qualifier.proto"; -import "google/ads/googleads/v3/enums/price_extension_price_unit.proto"; -import "google/ads/googleads/v3/enums/price_extension_type.proto"; -import "google/ads/googleads/v3/enums/promotion_extension_discount_modifier.proto"; -import "google/ads/googleads/v3/enums/promotion_extension_occasion.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/common;common"; -option java_multiple_files = true; -option java_outer_classname = "ExtensionsProto"; -option java_package = "com.google.ads.googleads.v3.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V3::Common"; - -// Proto file describing extension types. - -// Represents an App extension. -message AppFeedItem { - // The visible text displayed when the link is rendered in an ad. - // This string must not be empty, and the length of this string should - // be between 1 and 25, inclusive. - google.protobuf.StringValue link_text = 1; - - // The store-specific ID for the target application. - // This string must not be empty. - google.protobuf.StringValue app_id = 2; - - // The application store that the target application belongs to. - // This field is required. - google.ads.googleads.v3.enums.AppStoreEnum.AppStore app_store = 3; - - // A list of possible final URLs after all cross domain redirects. - // This list must not be empty. - repeated google.protobuf.StringValue final_urls = 4; - - // A list of possible final mobile URLs after all cross domain redirects. - repeated google.protobuf.StringValue final_mobile_urls = 5; - - // URL template for constructing a tracking URL. Default value is "{lpurl}". - google.protobuf.StringValue tracking_url_template = 6; - - // A list of mappings to be used for substituting URL custom parameter tags in - // the tracking_url_template, final_urls, and/or final_mobile_urls. - repeated CustomParameter url_custom_parameters = 7; - - // URL template for appending params to landing page URLs served with parallel - // tracking. - google.protobuf.StringValue final_url_suffix = 8; -} - -// Represents a Call extension. -message CallFeedItem { - // The advertiser's phone number to append to the ad. - // This string must not be empty. - google.protobuf.StringValue phone_number = 1; - - // Uppercase two-letter country code of the advertiser's phone number. - // This string must not be empty. - google.protobuf.StringValue country_code = 2; - - // Indicates whether call tracking is enabled. By default, call tracking is - // not enabled. - google.protobuf.BoolValue call_tracking_enabled = 3; - - // The conversion action to attribute a call conversion to. If not set a - // default conversion action is used. This field only has effect if - // call_tracking_enabled is set to true. Otherwise this field is ignored. - google.protobuf.StringValue call_conversion_action = 4; - - // If true, disable call conversion tracking. call_conversion_action should - // not be set if this is true. Optional. - google.protobuf.BoolValue call_conversion_tracking_disabled = 5; - - // 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.v3.enums.CallConversionReportingStateEnum.CallConversionReportingState call_conversion_reporting_state = 6; -} - -// Represents a callout extension. -message CalloutFeedItem { - // The callout text. - // The length of this string should be between 1 and 25, inclusive. - google.protobuf.StringValue callout_text = 1; -} - -// Represents a location extension. -message LocationFeedItem { - // The name of the business. - google.protobuf.StringValue business_name = 1; - - // Line 1 of the business address. - google.protobuf.StringValue address_line_1 = 2; - - // Line 2 of the business address. - google.protobuf.StringValue address_line_2 = 3; - - // City of the business address. - google.protobuf.StringValue city = 4; - - // Province of the business address. - google.protobuf.StringValue province = 5; - - // Postal code of the business address. - google.protobuf.StringValue postal_code = 6; - - // Country code of the business address. - google.protobuf.StringValue country_code = 7; - - // Phone number of the business. - google.protobuf.StringValue phone_number = 8; -} - -// Represents an affiliate location extension. -message AffiliateLocationFeedItem { - // The name of the business. - google.protobuf.StringValue business_name = 1; - - // Line 1 of the business address. - google.protobuf.StringValue address_line_1 = 2; - - // Line 2 of the business address. - google.protobuf.StringValue address_line_2 = 3; - - // City of the business address. - google.protobuf.StringValue city = 4; - - // Province of the business address. - google.protobuf.StringValue province = 5; - - // Postal code of the business address. - google.protobuf.StringValue postal_code = 6; - - // Country code of the business address. - google.protobuf.StringValue country_code = 7; - - // Phone number of the business. - google.protobuf.StringValue phone_number = 8; - - // Id of the retail chain that is advertised as a seller of your product. - google.protobuf.Int64Value chain_id = 9; - - // Name of chain. - google.protobuf.StringValue chain_name = 10; -} - -// An extension that users can click on to send a text message to the -// advertiser. -message TextMessageFeedItem { - // The business name to prepend to the message text. - // This field is required. - google.protobuf.StringValue business_name = 1; - - // Uppercase two-letter country code of the advertiser's phone number. - // This field is required. - google.protobuf.StringValue country_code = 2; - - // The advertiser's phone number the message will be sent to. Required. - google.protobuf.StringValue phone_number = 3; - - // The text to show in the ad. - // This field is required. - google.protobuf.StringValue text = 4; - - // The message text populated in the messaging app. - google.protobuf.StringValue extension_text = 5; -} - -// Represents a Price extension. -message PriceFeedItem { - // Price extension type of this extension. - google.ads.googleads.v3.enums.PriceExtensionTypeEnum.PriceExtensionType type = 1; - - // Price qualifier for all offers of this price extension. - google.ads.googleads.v3.enums.PriceExtensionPriceQualifierEnum.PriceExtensionPriceQualifier price_qualifier = 2; - - // Tracking URL template for all offers of this price extension. - google.protobuf.StringValue tracking_url_template = 3; - - // The code of the language used for this price extension. - google.protobuf.StringValue language_code = 4; - - // The price offerings in this price extension. - repeated PriceOffer price_offerings = 5; - - // URL template for appending params to landing page URLs served with parallel - // tracking. - google.protobuf.StringValue final_url_suffix = 6; -} - -// Represents one price offer in a price extension. -message PriceOffer { - // Header text of this offer. - google.protobuf.StringValue header = 1; - - // Description text of this offer. - google.protobuf.StringValue description = 2; - - // Price value of this offer. - Money price = 3; - - // Price unit for this offer. - google.ads.googleads.v3.enums.PriceExtensionPriceUnitEnum.PriceExtensionPriceUnit unit = 4; - - // A list of possible final URLs after all cross domain redirects. - repeated google.protobuf.StringValue final_urls = 5; - - // A list of possible final mobile URLs after all cross domain redirects. - repeated google.protobuf.StringValue final_mobile_urls = 6; -} - -// Represents a Promotion extension. -message PromotionFeedItem { - // A freeform description of what the promotion is targeting. - // This field is required. - google.protobuf.StringValue promotion_target = 1; - - // Enum that modifies the qualification of the discount. - google.ads.googleads.v3.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier discount_modifier = 2; - - // Start date of when the promotion is eligible to be redeemed. - google.protobuf.StringValue promotion_start_date = 7; - - // End date of when the promotion is eligible to be redeemed. - google.protobuf.StringValue promotion_end_date = 8; - - // 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.v3.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion occasion = 9; - - // A list of possible final URLs after all cross domain redirects. - // This field is required. - repeated google.protobuf.StringValue final_urls = 10; - - // A list of possible final mobile URLs after all cross domain redirects. - repeated google.protobuf.StringValue final_mobile_urls = 11; - - // URL template for constructing a tracking URL. - google.protobuf.StringValue tracking_url_template = 12; - - // A list of mappings to be used for substituting URL custom parameter tags in - // the tracking_url_template, final_urls, and/or final_mobile_urls. - repeated CustomParameter url_custom_parameters = 13; - - // URL template for appending params to landing page URLs served with parallel - // tracking. - google.protobuf.StringValue final_url_suffix = 14; - - // The language of the promotion. - // Represented as BCP 47 language tag. - google.protobuf.StringValue language_code = 15; - - // Discount type, can be percentage off or amount off. - oneof discount_type { - // Percentage off discount in the promotion in micros. - // One million is equivalent to one percent. - // Either this or money_off_amount is required. - google.protobuf.Int64Value percent_off = 3; - - // Money amount off for discount in the promotion. - // Either this or percent_off is required. - Money money_amount_off = 4; - } - - // Promotion trigger. Can be by promotion code or promo by eligible order - // amount. - oneof promotion_trigger { - // A code the user should use in order to be eligible for the promotion. - google.protobuf.StringValue promotion_code = 5; - - // The amount the total order needs to be for the user to be eligible for - // the promotion. - Money orders_over_amount = 6; - } -} - -// Represents a structured snippet extension. -message StructuredSnippetFeedItem { - // The header of the snippet. - // This string must not be empty. - google.protobuf.StringValue header = 1; - - // The values in the snippet. - // The maximum size of this collection is 10. - repeated google.protobuf.StringValue values = 2; -} - -// Represents a sitelink extension. -message SitelinkFeedItem { - // URL display text for the sitelink. - // The length of this string should be between 1 and 25, inclusive. - google.protobuf.StringValue link_text = 1; - - // First line of the description for the sitelink. - // If this value is set, line2 must also be set. - // The length of this string should be between 0 and 35, inclusive. - google.protobuf.StringValue line1 = 2; - - // Second line of the description for the sitelink. - // If this value is set, line1 must also be set. - // The length of this string should be between 0 and 35, inclusive. - google.protobuf.StringValue line2 = 3; - - // A list of possible final URLs after all cross domain redirects. - repeated google.protobuf.StringValue final_urls = 4; - - // A list of possible final mobile URLs after all cross domain redirects. - repeated google.protobuf.StringValue final_mobile_urls = 5; - - // URL template for constructing a tracking URL. - google.protobuf.StringValue tracking_url_template = 6; - - // A list of mappings to be used for substituting URL custom parameter tags in - // the tracking_url_template, final_urls, and/or final_mobile_urls. - repeated CustomParameter url_custom_parameters = 7; - - // Final URL suffix to be appended to landing page URLs served with - // parallel tracking. - google.protobuf.StringValue final_url_suffix = 8; -} - -// Represents a hotel callout extension. -message HotelCalloutFeedItem { - // The callout text. - // The length of this string should be between 1 and 25, inclusive. - google.protobuf.StringValue text = 1; - - // The language of the hotel callout text. - // IETF BCP 47 compliant language code. - google.protobuf.StringValue language_code = 2; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/common/feed_common.proto b/third_party/googleapis/google/ads/googleads/v3/common/feed_common.proto deleted file mode 100644 index d41803a2a..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/common/feed_common.proto +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.common; - -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/common;common"; -option java_multiple_files = true; -option java_outer_classname = "FeedCommonProto"; -option java_package = "com.google.ads.googleads.v3.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V3::Common"; - -// Proto file describing common feed proto messages. - -// Represents a price in a particular currency. -message Money { - // Three-character ISO 4217 currency code. - google.protobuf.StringValue currency_code = 1; - - // Amount in micros. One million is equivalent to one unit. - google.protobuf.Int64Value amount_micros = 2; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/common/final_app_url.proto b/third_party/googleapis/google/ads/googleads/v3/common/final_app_url.proto deleted file mode 100644 index 1b362dd5e..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/common/final_app_url.proto +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.common; - -import "google/ads/googleads/v3/enums/app_url_operating_system_type.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/common;common"; -option java_multiple_files = true; -option java_outer_classname = "FinalAppUrlProto"; -option java_package = "com.google.ads.googleads.v3.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V3::Common"; - -// Proto file FinalAppUrl type. - -// 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.v3.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 - // {scheme}://{host_path} - // The scheme identifies which app to open. For your app, you can use a custom - // scheme that starts with the app's name. The host and path specify the - // unique location in the app where your content exists. - // Example: "exampleapp://productid_1234". Required. - google.protobuf.StringValue url = 2; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/common/frequency_cap.proto b/third_party/googleapis/google/ads/googleads/v3/common/frequency_cap.proto deleted file mode 100644 index ee3bb8445..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/common/frequency_cap.proto +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.common; - -import "google/ads/googleads/v3/enums/frequency_cap_event_type.proto"; -import "google/ads/googleads/v3/enums/frequency_cap_level.proto"; -import "google/ads/googleads/v3/enums/frequency_cap_time_unit.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/common;common"; -option java_multiple_files = true; -option java_outer_classname = "FrequencyCapProto"; -option java_package = "com.google.ads.googleads.v3.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V3::Common"; - -// Proto file describing frequency caps. - -// A rule specifying the maximum number of times an ad (or some set of ads) can -// be shown to a user over a particular time period. -message FrequencyCapEntry { - // The key of a particular frequency cap. There can be no more - // than one frequency cap with the same key. - FrequencyCapKey key = 1; - - // Maximum number of events allowed during the time range by this cap. - google.protobuf.Int32Value cap = 2; -} - -// A group of fields used as keys for a frequency cap. -// There can be no more than one frequency cap with the same key. -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.v3.enums.FrequencyCapLevelEnum.FrequencyCapLevel level = 1; - - // The type of event that the cap applies to (e.g. impression). - google.ads.googleads.v3.enums.FrequencyCapEventTypeEnum.FrequencyCapEventType event_type = 3; - - // Unit of time the cap is defined at (e.g. day, week). - google.ads.googleads.v3.enums.FrequencyCapTimeUnitEnum.FrequencyCapTimeUnit time_unit = 2; - - // Number of time units the cap lasts. - google.protobuf.Int32Value time_length = 4; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/common/keyword_plan_common.proto b/third_party/googleapis/google/ads/googleads/v3/common/keyword_plan_common.proto deleted file mode 100644 index dc0ca81cb..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/common/keyword_plan_common.proto +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.common; - -import "google/ads/googleads/v3/enums/keyword_plan_competition_level.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/common;common"; -option java_multiple_files = true; -option java_outer_classname = "KeywordPlanCommonProto"; -option java_package = "com.google.ads.googleads.v3.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V3::Common"; - -// Proto file describing Keyword Planner messages. - -// Historical metrics specific to the targeting options selected. -// Targeting options include geographies, network, etc. -// Refer to https://support.google.com/google-ads/answer/3022575 for more -// details. -message KeywordPlanHistoricalMetrics { - // Approximate number of monthly searches on this query averaged - // for the past 12 months. - google.protobuf.Int64Value avg_monthly_searches = 1; - - // The competition level for the query. - google.ads.googleads.v3.enums.KeywordPlanCompetitionLevelEnum.KeywordPlanCompetitionLevel competition = 2; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/common/matching_function.proto b/third_party/googleapis/google/ads/googleads/v3/common/matching_function.proto deleted file mode 100644 index ab3b5165b..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/common/matching_function.proto +++ /dev/null @@ -1,127 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.common; - -import "google/ads/googleads/v3/enums/matching_function_context_type.proto"; -import "google/ads/googleads/v3/enums/matching_function_operator.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/common;common"; -option java_multiple_files = true; -option java_outer_classname = "MatchingFunctionProto"; -option java_package = "com.google.ads.googleads.v3.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V3::Common"; - -// Proto file describing a matching function. - -// Matching function associated with a -// CustomerFeed, CampaignFeed, or AdGroupFeed. The matching function is used -// to filter the set of feed items selected. -message MatchingFunction { - // String representation of the Function. - // - // Examples: - // - // 1. IDENTITY(true) or IDENTITY(false). All or no feed items served. - // 2. EQUALS(CONTEXT.DEVICE,"Mobile") - // 3. IN(FEED_ITEM_ID,{1000001,1000002,1000003}) - // 4. CONTAINS_ANY(FeedAttribute[12345678,0],{"Mars cruise","Venus cruise"}) - // 5. AND(IN(FEED_ITEM_ID,{10001,10002}),EQUALS(CONTEXT.DEVICE,"Mobile")) - // - // For more details, visit - // https://developers.google.com/adwords/api/docs/guides/feed-matching-functions - // - // Note that because multiple strings may represent the same underlying - // function (whitespace and single versus double quotation marks, for - // example), the value returned may not be identical to the string sent in a - // mutate request. - google.protobuf.StringValue function_string = 1; - - // Operator for a function. - google.ads.googleads.v3.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. - repeated Operand left_operands = 2; - - // The operands on the right hand side of the equation. - repeated Operand right_operands = 3; -} - -// An operand in a matching function. -message Operand { - // A constant operand in a matching function. - message ConstantOperand { - // Constant operand values. Required. - oneof constant_operand_value { - // String value of the operand if it is a string type. - google.protobuf.StringValue string_value = 1; - - // Int64 value of the operand if it is a int64 type. - google.protobuf.Int64Value long_value = 2; - - // Boolean value of the operand if it is a boolean type. - google.protobuf.BoolValue boolean_value = 3; - - // Double value of the operand if it is a double type. - google.protobuf.DoubleValue double_value = 4; - } - } - - // A feed attribute operand in a matching function. - // Used to represent a feed attribute in feed. - message FeedAttributeOperand { - // The associated feed. Required. - google.protobuf.Int64Value feed_id = 1; - - // Id of the referenced feed attribute. Required. - google.protobuf.Int64Value feed_attribute_id = 2; - } - - // A function operand in a matching function. - // Used to represent nested functions. - message FunctionOperand { - // The matching function held in this operand. - MatchingFunction matching_function = 1; - } - - // 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.v3.enums.MatchingFunctionContextTypeEnum.MatchingFunctionContextType context_type = 1; - } - - // Different operands that can be used in a matching function. Required. - oneof function_argument_operand { - // A constant operand in a matching function. - ConstantOperand constant_operand = 1; - - // This operand specifies a feed attribute in feed. - FeedAttributeOperand feed_attribute_operand = 2; - - // A function operand in a matching function. - // Used to represent nested functions. - FunctionOperand function_operand = 3; - - // An operand in a function referring to a value in the request context. - RequestContextOperand request_context_operand = 4; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v3/common/metrics.proto b/third_party/googleapis/google/ads/googleads/v3/common/metrics.proto deleted file mode 100644 index 66ac6bf49..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/common/metrics.proto +++ /dev/null @@ -1,556 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.common; - -import "google/ads/googleads/v3/enums/interaction_event_type.proto"; -import "google/ads/googleads/v3/enums/quality_score_bucket.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/common;common"; -option java_multiple_files = true; -option java_outer_classname = "MetricsProto"; -option java_package = "com.google.ads.googleads.v3.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V3::Common"; - -// Proto file describing metrics. - -// Metrics data. -message Metrics { - // The percent of your ad impressions that are shown as the very first ad - // above the organic search results. - google.protobuf.DoubleValue absolute_top_impression_percentage = 95; - - // Average cost of viewable impressions (`active_view_impressions`). - google.protobuf.DoubleValue active_view_cpm = 1; - - // Active view measurable clicks divided by active view viewable impressions. - // This metric is reported only for display network. - google.protobuf.DoubleValue active_view_ctr = 79; - - // A measurement of how often your ad has become viewable on a Display - // Network site. - google.protobuf.Int64Value active_view_impressions = 2; - - // The ratio of impressions that could be measured by Active View over the - // number of served impressions. - google.protobuf.DoubleValue active_view_measurability = 96; - - // The cost of the impressions you received that were measurable by Active - // View. - google.protobuf.Int64Value active_view_measurable_cost_micros = 3; - - // The number of times your ads are appearing on placements in positions - // where they can be seen. - google.protobuf.Int64Value active_view_measurable_impressions = 4; - - // The percentage of time when your ad appeared on an Active View enabled site - // (measurable impressions) and was viewable (viewable impressions). - google.protobuf.DoubleValue active_view_viewability = 97; - - // All conversions from interactions (as oppose to view through conversions) - // divided by the number of ad interactions. - google.protobuf.DoubleValue all_conversions_from_interactions_rate = 65; - - // The value of all conversions. - google.protobuf.DoubleValue all_conversions_value = 66; - - // The total number of conversions. This includes all conversions regardless - // of the value of include_in_conversions_metric. - google.protobuf.DoubleValue all_conversions = 7; - - // The value of all conversions divided by the total cost of ad interactions - // (such as clicks for text ads or views for video ads). - google.protobuf.DoubleValue all_conversions_value_per_cost = 62; - - // The number of times people clicked the "Call" button to call a store during - // or after clicking an ad. This number doesn't include whether or not calls - // were connected, or the duration of any calls. - // This metric applies to feed items only. - google.protobuf.DoubleValue all_conversions_from_click_to_call = 118; - - // The number of times people clicked a "Get directions" button to navigate to - // a store after clicking an ad. - // This metric applies to feed items only. - google.protobuf.DoubleValue all_conversions_from_directions = 119; - - // 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; - - // The number of times people clicked a link to view a store's menu after - // clicking an ad. - // This metric applies to feed items only. - google.protobuf.DoubleValue all_conversions_from_menu = 120; - - // The number of times people placed an order at a store after clicking an ad. - // This metric applies to feed items only. - google.protobuf.DoubleValue all_conversions_from_order = 121; - - // The number of other conversions (for example, posting a review or saving a - // location for a store) that occurred after people clicked an ad. - // This metric applies to feed items only. - google.protobuf.DoubleValue all_conversions_from_other_engagement = 122; - - // Estimated number of times people visited a store after clicking an ad. - // This metric applies to feed items only. - google.protobuf.DoubleValue all_conversions_from_store_visit = 123; - - // The number of times that people were taken to a store's URL after clicking - // an ad. - // This metric applies to feed items only. - google.protobuf.DoubleValue all_conversions_from_store_website = 124; - - // The average amount you pay per interaction. This amount is the total cost - // of your ads divided by the total number of interactions. - google.protobuf.DoubleValue average_cost = 8; - - // The total cost of all clicks divided by the total number of clicks - // received. - google.protobuf.DoubleValue average_cpc = 9; - - // The average amount that you've been charged for an ad engagement. This - // amount is the total cost of all ad engagements divided by the total number - // of ad engagements. - google.protobuf.DoubleValue average_cpe = 98; - - // Average cost-per-thousand impressions (CPM). - google.protobuf.DoubleValue average_cpm = 10; - - // The average amount you pay each time someone views your ad. - // The average CPV is defined by the total cost of all ad views divided by - // the number of views. - google.protobuf.DoubleValue average_cpv = 11; - - // Average number of pages viewed per session. - google.protobuf.DoubleValue average_page_views = 99; - - // Total duration of all sessions (in seconds) / number of sessions. Imported - // from Google Analytics. - google.protobuf.DoubleValue average_time_on_site = 84; - - // An indication of how other advertisers are bidding on similar products. - google.protobuf.DoubleValue benchmark_average_max_cpc = 14; - - // An indication on how other advertisers' Shopping ads for similar products - // are performing based on how often people who see their ad click on it. - google.protobuf.DoubleValue benchmark_ctr = 77; - - // Percentage of clicks where the user only visited a single page on your - // site. Imported from Google Analytics. - google.protobuf.DoubleValue bounce_rate = 15; - - // The number of clicks. - google.protobuf.Int64Value clicks = 19; - - // The number of times your ad or your site's listing in the unpaid - // results was clicked. See the help page at - // https://support.google.com/google-ads/answer/3097241 for details. - google.protobuf.Int64Value combined_clicks = 115; - - // The number of times your ad or your site's listing in the unpaid - // results was clicked (combined_clicks) divided by combined_queries. See the - // help page at https://support.google.com/google-ads/answer/3097241 for - // details. - google.protobuf.DoubleValue combined_clicks_per_query = 116; - - // The number of searches that returned pages from your site in the unpaid - // results or showed one of your text ads. See the help page at - // https://support.google.com/google-ads/answer/3097241 for details. - google.protobuf.Int64Value combined_queries = 117; - - // The estimated percent of times that your ad was eligible to show - // on the Display Network but didn't because your budget was too low. - // Note: Content budget lost 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 content_budget_lost_impression_share = 20; - - // The impressions you've received on the Display Network divided - // by the estimated number of impressions you were eligible to receive. - // Note: Content impression share is reported in the range of 0.1 to 1. Any - // value below 0.1 is reported as 0.0999. - google.protobuf.DoubleValue content_impression_share = 21; - - // The last date/time a conversion tag for this conversion action successfully - // fired and was seen by Google Ads. This firing event may not have been the - // result of an attributable conversion (e.g. because the tag was fired from a - // browser that did not previously click an ad from an appropriate - // advertiser). The date/time is in the customer's time zone. - google.protobuf.StringValue conversion_last_received_request_date_time = 73; - - // The date of the most recent conversion for this conversion action. The date - // is in the customer's time zone. - google.protobuf.StringValue conversion_last_conversion_date = 74; - - // The estimated percentage of impressions on the Display Network - // that your ads didn't receive due to poor Ad Rank. - // Note: Content rank lost 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 content_rank_lost_impression_share = 22; - - // Conversions from interactions divided by the 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. If you use conversion-based bidding, your bid strategies will - // optimize for these conversions. - google.protobuf.DoubleValue conversions_from_interactions_rate = 69; - - // The value of conversions. This only includes conversion actions which - // include_in_conversions_metric attribute is set to true. If you use - // conversion-based bidding, your bid strategies will optimize for these - // conversions. - google.protobuf.DoubleValue conversions_value = 70; - - // The value of conversions divided by the cost of ad interactions. This only - // includes conversion actions which include_in_conversions_metric attribute - // is set to true. If you use conversion-based bidding, your bid strategies - // will optimize for these conversions. - google.protobuf.DoubleValue conversions_value_per_cost = 71; - - // 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. If you use - // conversion-based bidding, your bid strategies will optimize for these - // conversions. - 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. If you use - // conversion-based bidding, your bid strategies will optimize for these - // conversions. - google.protobuf.DoubleValue conversions = 25; - - // The sum of your cost-per-click (CPC) and cost-per-thousand impressions - // (CPM) costs during this period. - google.protobuf.Int64Value cost_micros = 26; - - // The cost of ad interactions divided by all conversions. - google.protobuf.DoubleValue cost_per_all_conversions = 68; - - // The cost of ad interactions divided by conversions. This only includes - // conversion actions which include_in_conversions_metric attribute is set to - // true. If you use conversion-based bidding, your bid strategies will - // optimize for these conversions. - google.protobuf.DoubleValue cost_per_conversion = 28; - - // 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. If you use - // conversion-based bidding, your bid strategies will optimize for these - // conversions. - 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. - // Cross-device conversions are already included in all_conversions. - google.protobuf.DoubleValue cross_device_conversions = 29; - - // The number of clicks your ad receives (Clicks) divided by the number - // of times your ad is shown (Impressions). - google.protobuf.DoubleValue ctr = 30; - - // Shows how your historic conversions data would look under the attribution - // model you've currently selected. This only includes conversion actions - // which include_in_conversions_metric attribute is set to true. If you use - // conversion-based bidding, your bid strategies will optimize for these - // conversions. - google.protobuf.DoubleValue current_model_attributed_conversions = 101; - - // Current model attributed conversions from interactions divided by the - // 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. If you use - // conversion-based bidding, your bid strategies will optimize for these - // conversions. - 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. If you use - // conversion-based bidding, your bid strategies will optimize for these - // conversions. - google.protobuf.DoubleValue current_model_attributed_conversions_from_interactions_value_per_interaction = 103; - - // The value of current model attributed conversions. This only includes - // conversion actions which include_in_conversions_metric attribute is set to - // true. If you use conversion-based bidding, your bid strategies will - // optimize for these conversions. - google.protobuf.DoubleValue current_model_attributed_conversions_value = 104; - - // 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. If you use - // conversion-based bidding, your bid strategies will optimize for these - // conversions. - 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. - google.protobuf.DoubleValue engagement_rate = 31; - - // The number of engagements. - // An engagement occurs when a viewer expands your Lightbox ad. Also, in the - // future, other ad types may support engagement metrics. - google.protobuf.Int64Value engagements = 32; - - // Average lead value based on clicks. - google.protobuf.DoubleValue hotel_average_lead_value_micros = 75; - - // The average price difference between the price offered by reporting hotel - // advertiser and the cheapest price offered by the competing advertiser. - google.protobuf.DoubleValue hotel_price_difference_percentage = 129; - - // The creative historical quality score. - google.ads.googleads.v3.enums.QualityScoreBucketEnum.QualityScoreBucket historical_creative_quality_score = 80; - - // The quality of historical landing page experience. - google.ads.googleads.v3.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.v3.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; - - // The number of times someone has saved your Gmail ad to their inbox as a - // message. - google.protobuf.Int64Value gmail_saves = 86; - - // The number of clicks to the landing page on the expanded state of Gmail - // ads. - google.protobuf.Int64Value gmail_secondary_clicks = 87; - - // The number of times a store's location-based ad was shown. - // This metric applies to feed items only. - google.protobuf.Int64Value impressions_from_store_reach = 125; - - // Count of how often your ad has appeared on a search results page or - // website on the Google Network. - google.protobuf.Int64Value impressions = 37; - - // How often people interact with your ad after it is shown to them. - // This is the number of interactions divided by the number of times your ad - // is shown. - google.protobuf.DoubleValue interaction_rate = 38; - - // The number of interactions. - // An interaction is the main user action associated with an ad format-clicks - // for text and shopping ads, views for video ads, and so on. - google.protobuf.Int64Value interactions = 39; - - // The types of payable and free interactions. - repeated google.ads.googleads.v3.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. - google.protobuf.DoubleValue invalid_click_rate = 40; - - // Number of clicks Google considers illegitimate and doesn't charge you for. - google.protobuf.Int64Value invalid_clicks = 41; - - // Number of message chats initiated for Click To Message impressions that - // were message tracking eligible. - google.protobuf.Int64Value message_chats = 126; - - // Number of Click To Message impressions that were message tracking eligible. - google.protobuf.Int64Value message_impressions = 127; - - // Number of message chats initiated (message_chats) divided by the number - // of message impressions (message_impressions). - // Rate at which a user initiates a message chat from an ad impression with - // a messaging option and message tracking enabled. - // Note that this rate can be more than 1.0 for a given message impression. - google.protobuf.DoubleValue message_chat_rate = 128; - - // The percentage of mobile clicks that go to a mobile-friendly page. - google.protobuf.DoubleValue mobile_friendly_clicks_percentage = 109; - - // The number of times someone clicked your site's listing in the unpaid - // results for a particular query. See the help page at - // https://support.google.com/google-ads/answer/3097241 for details. - google.protobuf.Int64Value organic_clicks = 110; - - // The number of times someone clicked your site's listing in the unpaid - // results (organic_clicks) divided by the total number of searches that - // returned pages from your site (organic_queries). See the help page at - // https://support.google.com/google-ads/answer/3097241 for details. - google.protobuf.DoubleValue organic_clicks_per_query = 111; - - // The number of listings for your site in the unpaid search results. See the - // help page at https://support.google.com/google-ads/answer/3097241 for - // details. - google.protobuf.Int64Value organic_impressions = 112; - - // The number of times a page from your site was listed in the unpaid search - // results (organic_impressions) divided by the number of searches returning - // your site's listing in the unpaid results (organic_queries). See the help - // page at https://support.google.com/google-ads/answer/3097241 for details. - google.protobuf.DoubleValue organic_impressions_per_query = 113; - - // The total number of searches that returned your site's listing in the - // unpaid results. See the help page at - // https://support.google.com/google-ads/answer/3097241 for details. - google.protobuf.Int64Value organic_queries = 114; - - // Percentage of first-time sessions (from people who had never visited your - // site before). Imported from Google Analytics. - google.protobuf.DoubleValue percent_new_visitors = 42; - - // Number of offline phone calls. - google.protobuf.Int64Value phone_calls = 43; - - // Number of offline phone impressions. - google.protobuf.Int64Value phone_impressions = 44; - - // Number of phone calls received (phone_calls) divided by the number of - // times your phone number is shown (phone_impressions). - google.protobuf.DoubleValue phone_through_rate = 45; - - // Your clickthrough rate (Ctr) divided by the average clickthrough rate of - // all advertisers on the websites that show your ads. Measures how your ads - // perform on Display Network sites compared to other ads on the same sites. - google.protobuf.DoubleValue relative_ctr = 46; - - // The percentage of the customer's Shopping or Search ad impressions that are - // shown in the most prominent Shopping position. See - // https://support.google.com/google-ads/answer/7501826 - // for details. Any value below 0.1 is reported as 0.0999. - google.protobuf.DoubleValue search_absolute_top_impression_share = 78; - - // The number estimating how often your ad wasn't the very first ad above the - // 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; - - // 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 - // budget lost 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_impression_share = 47; - - // The number estimating how often your ad didn't show anywhere above the - // organic search results due to a low budget. Note: Search - // budget lost 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_top_impression_share = 89; - - // The number of clicks you've received on the Search Network - // divided by the estimated number of clicks you were eligible to receive. - // Note: Search click share is reported in the range of 0.1 to 1. Any value - // below 0.1 is reported as 0.0999. - google.protobuf.DoubleValue search_click_share = 48; - - // The impressions you've received divided by the estimated number of - // impressions you were eligible to receive on the Search Network for search - // terms that matched your keywords exactly (or were close variants of your - // keyword), regardless of your keyword match types. Note: Search exact match - // impression share is reported in the range of 0.1 to 1. Any value below 0.1 - // is reported as 0.0999. - google.protobuf.DoubleValue search_exact_match_impression_share = 49; - - // The impressions you've received on the Search Network divided - // by the estimated number of impressions you were eligible to receive. - // Note: Search impression share is reported in the range of 0.1 to 1. Any - // value below 0.1 is reported as 0.0999. - google.protobuf.DoubleValue search_impression_share = 50; - - // The number estimating how often your ad wasn't the very first ad above the - // 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; - - // The estimated percentage of impressions on the Search Network - // that your ads didn't receive due to poor Ad Rank. - // Note: Search rank lost 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_impression_share = 51; - - // The number estimating how often your ad didn't show anywhere above the - // organic search results due to poor Ad Rank. - // Note: Search rank lost 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_top_impression_share = 91; - - // The impressions you've received in the top location (anywhere above the - // organic search results) compared to the estimated number of impressions you - // were eligible to receive in the top location. - // Note: Search top impression share is reported in the range of 0.1 to 1. Any - // value below 0.1 is reported as 0.0999. - google.protobuf.DoubleValue search_top_impression_share = 92; - - // A measure of how quickly your page loads after clicks on your mobile ads. - // The score is a range from 1 to 10, 10 being the fastest. - google.protobuf.Int64Value speed_score = 107; - - // The percent of your ad impressions that are shown anywhere above the - // organic search results. - google.protobuf.DoubleValue top_impression_percentage = 93; - - // 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; - - // The value of all conversions divided by the number of all conversions. - google.protobuf.DoubleValue value_per_all_conversions = 52; - - // The value of conversions divided by the number of conversions. This only - // includes conversion actions which include_in_conversions_metric attribute - // is set to true. If you use conversion-based bidding, your bid strategies - // will optimize for these conversions. - google.protobuf.DoubleValue value_per_conversion = 53; - - // 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. If you use - // conversion-based bidding, your bid strategies will optimize for these - // conversions. - 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; - - // Percentage of impressions where the viewer watched 25% of your video. - google.protobuf.DoubleValue video_quartile_25_rate = 55; - - // Percentage of impressions where the viewer watched 50% of your video. - google.protobuf.DoubleValue video_quartile_50_rate = 56; - - // Percentage of impressions where the viewer watched 75% of your video. - google.protobuf.DoubleValue video_quartile_75_rate = 57; - - // The number of views your TrueView video ad receives divided by its number - // of impressions, including thumbnail impressions for TrueView in-display - // ads. - google.protobuf.DoubleValue video_view_rate = 58; - - // The number of times your video ads were viewed. - google.protobuf.Int64Value video_views = 59; - - // The total number of view-through conversions. - // These happen when a customer sees an image or rich media ad, then later - // completes a conversion on your site without interacting with (e.g., - // clicking on) another ad. - google.protobuf.Int64Value view_through_conversions = 60; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/common/offline_user_data.proto b/third_party/googleapis/google/ads/googleads/v3/common/offline_user_data.proto deleted file mode 100644 index df94bb46e..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/common/offline_user_data.proto +++ /dev/null @@ -1,192 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.common; - -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/common;common"; -option java_multiple_files = true; -option java_outer_classname = "OfflineUserDataProto"; -option java_package = "com.google.ads.googleads.v3.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V3::Common"; - -// Proto file describing offline user data. - -// Address identifier of offline data. -message OfflineUserAddressInfo { - // First name of the user, which is hashed as SHA-256 after normalized - // (Lowercase all characters; Remove any extra spaces before, after, and in - // between). - google.protobuf.StringValue hashed_first_name = 1; - - // Last name of the user, which is hashed as SHA-256 after normalized (lower - // case only and no punctuation). - google.protobuf.StringValue hashed_last_name = 2; - - // City of the address. Only accepted for Store Sales Direct data. - google.protobuf.StringValue city = 3; - - // State code of the address. Only accepted for Store Sales Direct data. - google.protobuf.StringValue state = 4; - - // 2-letter country code in ISO-3166-1 alpha-2 of the user's address. - google.protobuf.StringValue country_code = 5; - - // Postal code of the user's address. - google.protobuf.StringValue postal_code = 6; -} - -// Hashed user identifying information. -message UserIdentifier { - // Exactly one must be specified. - oneof identifier { - // Hashed email address using SHA-256 hash function after normalization. - google.protobuf.StringValue hashed_email = 1; - - // Hashed phone number using SHA-256 hash function after normalization - // (E164 standard). - google.protobuf.StringValue hashed_phone_number = 2; - - // Mobile device ID (advertising ID/IDFA). - google.protobuf.StringValue mobile_id = 3; - - // Advertiser-assigned user ID for Customer Match upload, or - // third-party-assigned user ID for SSD. - google.protobuf.StringValue third_party_user_id = 4; - - // Address information. - OfflineUserAddressInfo address_info = 5; - } -} - -// Attribute of the store sales transaction. -message TransactionAttribute { - // Timestamp when transaction occurred. Required. - // The format is "YYYY-MM-DD HH:MM:SS". - // Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30" - google.protobuf.StringValue transaction_date_time = 1; - - // Transaction amount in micros. Required. - google.protobuf.DoubleValue transaction_amount_micros = 2; - - // Transaction currency code. ISO 4217 three-letter code is used. Required. - google.protobuf.StringValue currency_code = 3; - - // The resource name of conversion action to report conversions to. - // Required. - google.protobuf.StringValue conversion_action = 4; - - // Transaction order id. - // Accessible only to customers on the allow-list. - google.protobuf.StringValue order_id = 5; - - // Store attributes of the transaction. - // Accessible only to customers on the allow-list. - StoreAttribute store_attribute = 6; - - // Value of the custom variable for each transaction. - // Accessible only to customers on the allow-list. - google.protobuf.StringValue custom_value = 7; -} - -// Store attributes of the transaction. -message StoreAttribute { - // Store code from - // https://support.google.com/business/answer/3370250#storecode - google.protobuf.StringValue store_code = 1; -} - -// User data holding user identifiers and attributes. -message UserData { - // User identification info. Required. - repeated UserIdentifier user_identifiers = 1; - - // Additional transactions/attributes associated with the user. - // Required when updating store sales data. - TransactionAttribute transaction_attribute = 2; -} - -// Metadata for customer match user list. -message CustomerMatchUserListMetadata { - // The resource name of remarketing list to update data. - // Required for job of CUSTOMER_MATCH_USER_LIST type. - google.protobuf.StringValue user_list = 1; -} - -// Metadata for Store Sales Direct. -message StoreSalesMetadata { - // This is the fraction of all transactions that are identifiable (i.e., - // associated with any form of customer information). - // Required. - // The fraction needs to be between 0 and 1 (excluding 0). - google.protobuf.DoubleValue loyalty_fraction = 1; - - // This is the ratio of sales being uploaded compared to the overall sales - // that can be associated with a customer. Required. - // The fraction needs to be between 0 and 1 (excluding 0). For example, if you - // upload half the sales that you are able to associate with a customer, this - // would be 0.5. - google.protobuf.DoubleValue transaction_upload_fraction = 2; - - // Name of the store sales custom variable key. A predefined key that - // can be applied to the transaction and then later used for custom - // segmentation in reporting. - // Accessible only to customers on the allow-list. - google.protobuf.StringValue custom_key = 4; - - // Metadata for a third party Store Sales upload. - StoreSalesThirdPartyMetadata third_party_metadata = 3; -} - -// Metadata for a third party Store Sales. -// This product is only for customers on the allow-list. Please contact your -// Google business development representative for details on the upload -// configuration. -message StoreSalesThirdPartyMetadata { - // Time the advertiser uploaded the data to the partner. Required. - // The format is "YYYY-MM-DD HH:MM:SS". - // Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30" - google.protobuf.StringValue advertiser_upload_date_time = 1; - - // The fraction of transactions that are valid. Invalid transactions may - // include invalid formats or values. - // Required. - // The fraction needs to be between 0 and 1 (excluding 0). - google.protobuf.DoubleValue valid_transaction_fraction = 2; - - // The fraction of valid transactions that are matched to a third party - // assigned user ID on the partner side. - // Required. - // The fraction needs to be between 0 and 1 (excluding 0). - google.protobuf.DoubleValue partner_match_fraction = 3; - - // The fraction of valid transactions that are uploaded by the partner to - // Google. - // Required. - // The fraction needs to be between 0 and 1 (excluding 0). - google.protobuf.DoubleValue partner_upload_fraction = 4; - - // Version of partner IDs to be used for uploads. Required. - google.protobuf.StringValue bridge_map_version_id = 5; - - // ID of the third party partner updating the transaction feed. - google.protobuf.Int64Value partner_id = 6; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/common/policy.proto b/third_party/googleapis/google/ads/googleads/v3/common/policy.proto deleted file mode 100644 index 7372bc069..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/common/policy.proto +++ /dev/null @@ -1,223 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.common; - -import "google/ads/googleads/v3/enums/policy_topic_entry_type.proto"; -import "google/ads/googleads/v3/enums/policy_topic_evidence_destination_mismatch_url_type.proto"; -import "google/ads/googleads/v3/enums/policy_topic_evidence_destination_not_working_device.proto"; -import "google/ads/googleads/v3/enums/policy_topic_evidence_destination_not_working_dns_error_type.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/common;common"; -option java_multiple_files = true; -option java_outer_classname = "PolicyProto"; -option java_package = "com.google.ads.googleads.v3.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V3::Common"; - -// Proto file describing policy information. - -// Key of the violation. The key is used for referring to a violation -// when filing an exemption request. -message PolicyViolationKey { - // Unique ID of the violated policy. - google.protobuf.StringValue policy_name = 1; - - // The text that violates the policy if specified. - // Otherwise, refers to the policy in general - // (e.g., when requesting to be exempt from the whole policy). - // If not specified for criterion exemptions, the whole policy is implied. - // Must be specified for ad exemptions. - google.protobuf.StringValue violating_text = 2; -} - -// Parameter for controlling how policy exemption is done. Ignorable policy -// topics are only usable with expanded text ads and responsive search ads. All -// other ad types must use policy violation keys. -message PolicyValidationParameter { - // The list of policy topics that should not cause a PolicyFindingError to - // be reported. This field is currently only compatible with Enhanced Text Ad. - // It corresponds to the PolicyTopicEntry.topic field. - // - // Resources violating these policies will be saved, but will not be eligible - // to serve. They may begin serving at a later time due to a change in - // policies, re-review of the resource, or a change in advertiser - // certificates. - repeated google.protobuf.StringValue ignorable_policy_topics = 1; - - // The list of policy violation keys that should not cause a - // PolicyViolationError to be reported. Not all policy violations are - // exemptable, please refer to the is_exemptible field in the returned - // PolicyViolationError. - // - // Resources violating these polices will be saved, but will not be eligible - // to serve. They may begin serving at a later time due to a change in - // policies, re-review of the resource, or a change in advertiser - // certificates. - repeated PolicyViolationKey exempt_policy_violation_keys = 2; -} - -// Policy finding attached to a resource (e.g. alcohol policy associated with -// a site that sells alcohol). -// -// Each PolicyTopicEntry has a topic that indicates the specific ads policy -// the entry is about and a type to indicate the effect that the entry will have -// on serving. It may optionally have one or more evidences that indicate the -// reason for the finding. It may also optionally have one or more constraints -// that provide details about how serving may be restricted. -message PolicyTopicEntry { - // Policy topic this finding refers to. For example, "ALCOHOL", - // "TRADEMARKS_IN_AD_TEXT", or "DESTINATION_NOT_WORKING". The set of possible - // policy topics is not fixed for a particular API version and may change - // at any time. - google.protobuf.StringValue topic = 1; - - // Describes the negative or positive effect this policy will have on serving. - google.ads.googleads.v3.enums.PolicyTopicEntryTypeEnum.PolicyTopicEntryType type = 2; - - // Additional information that explains policy finding - // (e.g. the brand name for a trademark finding). - repeated PolicyTopicEvidence evidences = 3; - - // Indicates how serving of this resource may be affected (e.g. not serving - // in a country). - repeated PolicyTopicConstraint constraints = 4; -} - -// Additional information that explains a policy finding. -message PolicyTopicEvidence { - // A list of fragments of text that violated a policy. - message TextList { - // The fragments of text from the resource that caused the policy finding. - repeated google.protobuf.StringValue texts = 1; - } - - // A list of websites that caused a policy finding. Used for - // ONE_WEBSITE_PER_AD_GROUP policy topic, for example. In case there are more - // than five websites, only the top five (those that appear in resources the - // most) will be listed here. - message WebsiteList { - // Websites that caused the policy finding. - repeated google.protobuf.StringValue websites = 1; - } - - // A list of strings found in a destination page that caused a policy - // finding. - message DestinationTextList { - // List of text found in the resource's destination page. - repeated google.protobuf.StringValue destination_texts = 1; - } - - // 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.v3.enums.PolicyTopicEvidenceDestinationMismatchUrlTypeEnum.PolicyTopicEvidenceDestinationMismatchUrlType url_types = 1; - } - - // Evidence details when the destination is returning an HTTP error - // code or isn't functional in all locations for commonly used devices. - message DestinationNotWorking { - // The full URL that didn't work. - google.protobuf.StringValue expanded_url = 3; - - // The type of device that failed to load the URL. - google.ads.googleads.v3.enums.PolicyTopicEvidenceDestinationNotWorkingDeviceEnum.PolicyTopicEvidenceDestinationNotWorkingDevice device = 4; - - // The time the URL was last checked. - // The format is "YYYY-MM-DD HH:MM:SS". - // Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30" - google.protobuf.StringValue last_checked_date_time = 5; - - // Indicates the reason of the DESTINATION_NOT_WORKING policy finding. - oneof reason { - // The type of DNS error. - google.ads.googleads.v3.enums.PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum.PolicyTopicEvidenceDestinationNotWorkingDnsErrorType dns_error_type = 1; - - // The HTTP error code. - google.protobuf.Int64Value http_error_code = 2; - } - } - - // Specific evidence information depending on the evidence type. - oneof value { - // List of websites linked with this resource. - WebsiteList website_list = 3; - - // List of evidence found in the text of a resource. - TextList text_list = 4; - - // The language the resource was detected to be written in. - // This is an IETF language tag such as "en-US". - google.protobuf.StringValue language_code = 5; - - // The text in the destination of the resource that is causing a policy - // finding. - DestinationTextList destination_text_list = 6; - - // Mismatch between the destinations of a resource's URLs. - DestinationMismatch destination_mismatch = 7; - - // Details when the destination is returning an HTTP error code or isn't - // functional in all locations for commonly used devices. - DestinationNotWorking destination_not_working = 8; - } -} - -// Describes the effect on serving that a policy topic entry will have. -message PolicyTopicConstraint { - // A list of countries where a resource's serving is constrained. - message CountryConstraintList { - // Total number of countries targeted by the resource. - google.protobuf.Int32Value total_targeted_countries = 1; - - // Countries in which serving is restricted. - repeated CountryConstraint countries = 2; - } - - // Indicates that a policy topic was constrained due to disapproval of the - // website for reseller purposes. - message ResellerConstraint { - - } - - // Indicates that a resource's ability to serve in a particular country is - // constrained. - message CountryConstraint { - // Geo target constant resource name of the country in which serving is - // constrained. - google.protobuf.StringValue country_criterion = 1; - } - - // Specific information about the constraint. - oneof value { - // Countries where the resource cannot serve. - CountryConstraintList country_constraint_list = 1; - - // Reseller constraint. - ResellerConstraint reseller_constraint = 2; - - // Countries where a certificate is required for serving. - CountryConstraintList certificate_missing_in_country_list = 3; - - // Countries where the resource's domain is not covered by the - // certificates associated with it. - CountryConstraintList certificate_domain_mismatch_in_country_list = 4; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v3/common/real_time_bidding_setting.proto b/third_party/googleapis/google/ads/googleads/v3/common/real_time_bidding_setting.proto deleted file mode 100644 index 5f62fc0ab..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/common/real_time_bidding_setting.proto +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.common; - -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/common;common"; -option java_multiple_files = true; -option java_outer_classname = "RealTimeBiddingSettingProto"; -option java_package = "com.google.ads.googleads.v3.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V3::Common"; - -// Proto file describing RealTimeBiddingSetting - -// Settings for Real-Time Bidding, a feature only available for campaigns -// targeting the Ad Exchange network. -message RealTimeBiddingSetting { - // Whether the campaign is opted in to real-time bidding. - google.protobuf.BoolValue opt_in = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/common/segments.proto b/third_party/googleapis/google/ads/googleads/v3/common/segments.proto deleted file mode 100644 index 40869fb3d..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/common/segments.proto +++ /dev/null @@ -1,313 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.common; - -import "google/ads/googleads/v3/common/criteria.proto"; -import "google/ads/googleads/v3/enums/ad_network_type.proto"; -import "google/ads/googleads/v3/enums/click_type.proto"; -import "google/ads/googleads/v3/enums/conversion_action_category.proto"; -import "google/ads/googleads/v3/enums/conversion_attribution_event_type.proto"; -import "google/ads/googleads/v3/enums/conversion_lag_bucket.proto"; -import "google/ads/googleads/v3/enums/conversion_or_adjustment_lag_bucket.proto"; -import "google/ads/googleads/v3/enums/day_of_week.proto"; -import "google/ads/googleads/v3/enums/device.proto"; -import "google/ads/googleads/v3/enums/external_conversion_source.proto"; -import "google/ads/googleads/v3/enums/hotel_date_selection_type.proto"; -import "google/ads/googleads/v3/enums/hotel_price_bucket.proto"; -import "google/ads/googleads/v3/enums/hotel_rate_type.proto"; -import "google/ads/googleads/v3/enums/month_of_year.proto"; -import "google/ads/googleads/v3/enums/placeholder_type.proto"; -import "google/ads/googleads/v3/enums/product_channel.proto"; -import "google/ads/googleads/v3/enums/product_channel_exclusivity.proto"; -import "google/ads/googleads/v3/enums/product_condition.proto"; -import "google/ads/googleads/v3/enums/search_engine_results_page_type.proto"; -import "google/ads/googleads/v3/enums/search_term_match_type.proto"; -import "google/ads/googleads/v3/enums/slot.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/common;common"; -option java_multiple_files = true; -option java_outer_classname = "SegmentsProto"; -option java_package = "com.google.ads.googleads.v3.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V3::Common"; - -// Proto file describing segment only fields. - -// Segment only fields. -message Segments { - // Ad network type. - google.ads.googleads.v3.enums.AdNetworkTypeEnum.AdNetworkType ad_network_type = 3; - - // Click type. - google.ads.googleads.v3.enums.ClickTypeEnum.ClickType click_type = 26; - - // Resource name of the conversion action. - google.protobuf.StringValue conversion_action = 52; - - // Conversion action category. - google.ads.googleads.v3.enums.ConversionActionCategoryEnum.ConversionActionCategory conversion_action_category = 53; - - // Conversion action name. - google.protobuf.StringValue conversion_action_name = 54; - - // This segments your conversion columns by the original conversion and - // conversion value vs. the delta if conversions were adjusted. False row has - // the data as originally stated; While true row has the delta between data - // now and the data as originally stated. Summing the two together results - // post-adjustment data. - google.protobuf.BoolValue conversion_adjustment = 27; - - // Conversion attribution event type. - google.ads.googleads.v3.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.v3.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.v3.enums.ConversionOrAdjustmentLagBucketEnum.ConversionOrAdjustmentLagBucket conversion_or_adjustment_lag_bucket = 51; - - // Date to which metrics apply. - // yyyy-MM-dd format, e.g., 2018-04-17. - google.protobuf.StringValue date = 4; - - // Day of the week, e.g., MONDAY. - google.ads.googleads.v3.enums.DayOfWeekEnum.DayOfWeek day_of_week = 5; - - // Device to which metrics apply. - google.ads.googleads.v3.enums.DeviceEnum.Device device = 1; - - // External conversion source. - google.ads.googleads.v3.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; - - // Resource name of the geo target constant that represents a canton. - google.protobuf.StringValue geo_target_canton = 76; - - // Resource name of the geo target constant that represents a city. - google.protobuf.StringValue geo_target_city = 62; - - // Resource name of the geo target constant that represents a country. - google.protobuf.StringValue geo_target_country = 77; - - // Resource name of the geo target constant that represents a county. - google.protobuf.StringValue geo_target_county = 68; - - // Resource name of the geo target constant that represents a district. - google.protobuf.StringValue geo_target_district = 69; - - // Resource name of the geo target constant that represents a metro. - google.protobuf.StringValue geo_target_metro = 63; - - // Resource name of the geo target constant that represents the most - // specific location. - google.protobuf.StringValue geo_target_most_specific_location = 72; - - // Resource name of the geo target constant that represents a postal code. - google.protobuf.StringValue geo_target_postal_code = 71; - - // Resource name of the geo target constant that represents a province. - google.protobuf.StringValue geo_target_province = 75; - - // Resource name of the geo target constant that represents a region. - google.protobuf.StringValue geo_target_region = 64; - - // Resource name of the geo target constant that represents a state. - google.protobuf.StringValue geo_target_state = 67; - - // Hotel booking window in days. - google.protobuf.Int64Value hotel_booking_window_days = 6; - - // Hotel center ID. - google.protobuf.Int64Value hotel_center_id = 7; - - // Hotel check-in date. Formatted as yyyy-MM-dd. - google.protobuf.StringValue hotel_check_in_date = 8; - - // Hotel check-in day of week. - google.ads.googleads.v3.enums.DayOfWeekEnum.DayOfWeek hotel_check_in_day_of_week = 9; - - // Hotel city. - google.protobuf.StringValue hotel_city = 10; - - // Hotel class. - google.protobuf.Int32Value hotel_class = 11; - - // Hotel country. - google.protobuf.StringValue hotel_country = 12; - - // Hotel date selection type. - google.ads.googleads.v3.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType hotel_date_selection_type = 13; - - // Hotel length of stay. - google.protobuf.Int32Value hotel_length_of_stay = 14; - - // Hotel rate rule ID. - google.protobuf.StringValue hotel_rate_rule_id = 73; - - // Hotel rate type. - google.ads.googleads.v3.enums.HotelRateTypeEnum.HotelRateType hotel_rate_type = 74; - - // Hotel price bucket. - google.ads.googleads.v3.enums.HotelPriceBucketEnum.HotelPriceBucket hotel_price_bucket = 78; - - // Hotel state. - google.protobuf.StringValue hotel_state = 15; - - // Hour of day as a number between 0 and 23, inclusive. - google.protobuf.Int32Value hour = 16; - - // Only used with feed item metrics. - // Indicates whether the interaction metrics occurred on the feed item itself - // or a different extension or ad unit. - google.protobuf.BoolValue interaction_on_this_extension = 49; - - // Keyword criterion. - Keyword keyword = 61; - - // Month as represented by the date of the first day of a month. Formatted as - // yyyy-MM-dd. - google.protobuf.StringValue month = 17; - - // Month of the year, e.g., January. - google.ads.googleads.v3.enums.MonthOfYearEnum.MonthOfYear month_of_year = 18; - - // Partner hotel ID. - google.protobuf.StringValue partner_hotel_id = 19; - - // Placeholder type. This is only used with feed item metrics. - google.ads.googleads.v3.enums.PlaceholderTypeEnum.PlaceholderType placeholder_type = 20; - - // Aggregator ID of the product. - google.protobuf.UInt64Value product_aggregator_id = 28; - - // Bidding category (level 1) of the product. - google.protobuf.StringValue product_bidding_category_level1 = 56; - - // Bidding category (level 2) of the product. - google.protobuf.StringValue product_bidding_category_level2 = 57; - - // Bidding category (level 3) of the product. - google.protobuf.StringValue product_bidding_category_level3 = 58; - - // Bidding category (level 4) of the product. - google.protobuf.StringValue product_bidding_category_level4 = 59; - - // Bidding category (level 5) of the product. - google.protobuf.StringValue product_bidding_category_level5 = 60; - - // Brand of the product. - google.protobuf.StringValue product_brand = 29; - - // Channel of the product. - google.ads.googleads.v3.enums.ProductChannelEnum.ProductChannel product_channel = 30; - - // Channel exclusivity of the product. - google.ads.googleads.v3.enums.ProductChannelExclusivityEnum.ProductChannelExclusivity product_channel_exclusivity = 31; - - // Condition of the product. - google.ads.googleads.v3.enums.ProductConditionEnum.ProductCondition product_condition = 32; - - // Resource name of the geo target constant for the country of sale of the - // product. - google.protobuf.StringValue product_country = 33; - - // Custom attribute 0 of the product. - google.protobuf.StringValue product_custom_attribute0 = 34; - - // Custom attribute 1 of the product. - google.protobuf.StringValue product_custom_attribute1 = 35; - - // Custom attribute 2 of the product. - google.protobuf.StringValue product_custom_attribute2 = 36; - - // Custom attribute 3 of the product. - google.protobuf.StringValue product_custom_attribute3 = 37; - - // Custom attribute 4 of the product. - google.protobuf.StringValue product_custom_attribute4 = 38; - - // Item ID of the product. - google.protobuf.StringValue product_item_id = 39; - - // Resource name of the language constant for the language of the product. - google.protobuf.StringValue product_language = 40; - - // Merchant ID of the product. - google.protobuf.UInt64Value product_merchant_id = 41; - - // Store ID of the product. - google.protobuf.StringValue product_store_id = 42; - - // Title of the product. - google.protobuf.StringValue product_title = 43; - - // Type (level 1) of the product. - google.protobuf.StringValue product_type_l1 = 44; - - // Type (level 2) of the product. - google.protobuf.StringValue product_type_l2 = 45; - - // Type (level 3) of the product. - google.protobuf.StringValue product_type_l3 = 46; - - // Type (level 4) of the product. - google.protobuf.StringValue product_type_l4 = 47; - - // Type (level 5) of the product. - google.protobuf.StringValue product_type_l5 = 48; - - // Quarter as represented by the date of the first day of a quarter. - // Uses the calendar year for quarters, e.g., the second quarter of 2018 - // starts on 2018-04-01. Formatted as yyyy-MM-dd. - google.protobuf.StringValue quarter = 21; - - // Type of the search engine results page. - google.ads.googleads.v3.enums.SearchEngineResultsPageTypeEnum.SearchEngineResultsPageType search_engine_results_page_type = 70; - - // Match type of the keyword that triggered the ad, including variants. - google.ads.googleads.v3.enums.SearchTermMatchTypeEnum.SearchTermMatchType search_term_match_type = 22; - - // Position of the ad. - google.ads.googleads.v3.enums.SlotEnum.Slot slot = 23; - - // Resource name of the ad group criterion that represents webpage criterion. - google.protobuf.StringValue webpage = 66; - - // Week as defined as Monday through Sunday, and represented by the date of - // Monday. Formatted as yyyy-MM-dd. - google.protobuf.StringValue week = 24; - - // Year, formatted as yyyy. - google.protobuf.Int32Value year = 25; -} - -// A Keyword criterion segment. -message Keyword { - // The AdGroupCriterion resource name. - google.protobuf.StringValue ad_group_criterion = 1; - - // Keyword info. - KeywordInfo info = 2; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/common/simulation.proto b/third_party/googleapis/google/ads/googleads/v3/common/simulation.proto deleted file mode 100644 index 4987e6aa5..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/common/simulation.proto +++ /dev/null @@ -1,172 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.common; - -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/common;common"; -option java_multiple_files = true; -option java_outer_classname = "SimulationProto"; -option java_package = "com.google.ads.googleads.v3.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V3::Common"; - -// Proto file describing simulation points. - -// A container for simulation points for simulations of type BID_MODIFIER. -message BidModifierSimulationPointList { - // Projected metrics for a series of bid modifier amounts. - repeated BidModifierSimulationPoint points = 1; -} - -// A container for simulation points for simulations of type CPC_BID. -message CpcBidSimulationPointList { - // Projected metrics for a series of CPC bid amounts. - repeated CpcBidSimulationPoint points = 1; -} - -// A container for simulation points for simulations of type CPV_BID. -message CpvBidSimulationPointList { - // Projected metrics for a series of CPV bid amounts. - repeated CpvBidSimulationPoint points = 1; -} - -// A container for simulation points for simulations of type TARGET_CPA. -message TargetCpaSimulationPointList { - // Projected metrics for a series of target CPA amounts. - repeated TargetCpaSimulationPoint points = 1; -} - -// Projected metrics for a specific bid modifier amount. -message BidModifierSimulationPoint { - // The simulated bid modifier upon which projected metrics are based. - google.protobuf.DoubleValue bid_modifier = 1; - - // Projected number of biddable conversions. - // Only search advertising channel type supports this field. - google.protobuf.DoubleValue biddable_conversions = 2; - - // Projected total value of biddable conversions. - // Only search advertising channel type supports this field. - google.protobuf.DoubleValue biddable_conversions_value = 3; - - // Projected number of clicks. - google.protobuf.Int64Value clicks = 4; - - // Projected cost in micros. - google.protobuf.Int64Value cost_micros = 5; - - // Projected number of impressions. - google.protobuf.Int64Value impressions = 6; - - // Projected number of top slot impressions. - // Only search advertising channel type supports this field. - google.protobuf.Int64Value top_slot_impressions = 7; - - // Projected number of biddable conversions for the parent resource. - // Only search advertising channel type supports this field. - google.protobuf.DoubleValue parent_biddable_conversions = 8; - - // Projected total value of biddable conversions for the parent resource. - // Only search advertising channel type supports this field. - google.protobuf.DoubleValue parent_biddable_conversions_value = 9; - - // Projected number of clicks for the parent resource. - google.protobuf.Int64Value parent_clicks = 10; - - // Projected cost in micros for the parent resource. - google.protobuf.Int64Value parent_cost_micros = 11; - - // Projected number of impressions for the parent resource. - google.protobuf.Int64Value parent_impressions = 12; - - // Projected number of top slot impressions for the parent resource. - // Only search advertising channel type supports this field. - google.protobuf.Int64Value parent_top_slot_impressions = 13; - - // Projected minimum daily budget that must be available to the parent - // resource to realize this simulation. - google.protobuf.Int64Value parent_required_budget_micros = 14; -} - -// Projected metrics for a specific CPC bid amount. -message CpcBidSimulationPoint { - // The simulated CPC bid upon which projected metrics are based. - google.protobuf.Int64Value cpc_bid_micros = 1; - - // Projected number of biddable conversions. - google.protobuf.DoubleValue biddable_conversions = 2; - - // Projected total value of biddable conversions. - google.protobuf.DoubleValue biddable_conversions_value = 3; - - // Projected number of clicks. - google.protobuf.Int64Value clicks = 4; - - // Projected cost in micros. - google.protobuf.Int64Value cost_micros = 5; - - // Projected number of impressions. - google.protobuf.Int64Value impressions = 6; - - // Projected number of top slot impressions. - // Only search advertising channel type supports this field. - google.protobuf.Int64Value top_slot_impressions = 7; -} - -// Projected metrics for a specific CPV bid amount. -message CpvBidSimulationPoint { - // The simulated CPV bid upon which projected metrics are based. - google.protobuf.Int64Value cpv_bid_micros = 1; - - // Projected cost in micros. - google.protobuf.Int64Value cost_micros = 2; - - // Projected number of impressions. - google.protobuf.Int64Value impressions = 3; - - // Projected number of views. - google.protobuf.Int64Value views = 4; -} - -// Projected metrics for a specific target CPA amount. -message TargetCpaSimulationPoint { - // The simulated target CPA upon which projected metrics are based. - google.protobuf.Int64Value target_cpa_micros = 1; - - // Projected number of biddable conversions. - google.protobuf.DoubleValue biddable_conversions = 2; - - // Projected total value of biddable conversions. - google.protobuf.DoubleValue biddable_conversions_value = 3; - - // Projected number of clicks. - google.protobuf.Int64Value clicks = 4; - - // Projected cost in micros. - google.protobuf.Int64Value cost_micros = 5; - - // Projected number of impressions. - google.protobuf.Int64Value impressions = 6; - - // Projected number of top slot impressions. - // Only search advertising channel type supports this field. - google.protobuf.Int64Value top_slot_impressions = 7; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/common/tag_snippet.proto b/third_party/googleapis/google/ads/googleads/v3/common/tag_snippet.proto deleted file mode 100644 index 51e1a3a43..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/common/tag_snippet.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.common; - -import "google/ads/googleads/v3/enums/tracking_code_page_format.proto"; -import "google/ads/googleads/v3/enums/tracking_code_type.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/common;common"; -option java_multiple_files = true; -option java_outer_classname = "TagSnippetProto"; -option java_package = "com.google.ads.googleads.v3.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V3::Common"; - -// Proto file describing TagSnippet - -// The site tag and event snippet pair for a TrackingCodeType. -message TagSnippet { - // The type of the generated tag snippets for tracking conversions. - google.ads.googleads.v3.enums.TrackingCodeTypeEnum.TrackingCodeType type = 1; - - // The format of the web page where the tracking tag and snippet will be - // installed, e.g. HTML. - google.ads.googleads.v3.enums.TrackingCodePageFormatEnum.TrackingCodePageFormat page_format = 2; - - // The site tag that adds visitors to your basic remarketing lists and sets - // new cookies on your domain. - google.protobuf.StringValue global_site_tag = 3; - - // The event snippet that works with the site tag to track actions that - // should be counted as conversions. - google.protobuf.StringValue event_snippet = 4; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/common/targeting_setting.proto b/third_party/googleapis/google/ads/googleads/v3/common/targeting_setting.proto deleted file mode 100644 index d2df8dd2b..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/common/targeting_setting.proto +++ /dev/null @@ -1,86 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.common; - -import "google/ads/googleads/v3/enums/targeting_dimension.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/common;common"; -option java_multiple_files = true; -option java_outer_classname = "TargetingSettingProto"; -option java_package = "com.google.ads.googleads.v3.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V3::Common"; - -// Proto file describing TargetingSetting - -// Settings for the targeting-related features, at the campaign and ad group -// levels. For more details about the targeting setting, visit -// https://support.google.com/google-ads/answer/7365594 -message TargetingSetting { - // The per-targeting-dimension setting to restrict the reach of your campaign - // or ad group. - repeated TargetRestriction target_restrictions = 1; - - // The list of operations changing the target restrictions. - // - // Adding a target restriction with a targeting dimension that already exists - // causes the existing target restriction to be replaced with the new value. - repeated TargetRestrictionOperation target_restriction_operations = 2; -} - -// The list of per-targeting-dimension targeting settings. -message TargetRestriction { - // The targeting dimension that these settings apply to. - google.ads.googleads.v3.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 - // this targeting_dimension and show ads based on your targeting in other - // TargetingDimensions. A value of `true` means that these criteria will only - // apply bid modifiers, and not affect targeting. A value of `false` means - // that these criteria will restrict targeting as well as applying bid - // modifiers. - google.protobuf.BoolValue bid_only = 2; -} - -// Operation to be performed on a target restriction list in a mutate. -message TargetRestrictionOperation { - // The operator. - enum Operator { - // Unspecified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Add the restriction to the existing restrictions. - ADD = 2; - - // Remove the restriction from the existing restrictions. - REMOVE = 3; - } - - // Type of list operation to perform. - Operator operator = 1; - - // The target restriction being added to or removed from the list. - TargetRestriction value = 2; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/common/text_label.proto b/third_party/googleapis/google/ads/googleads/v3/common/text_label.proto deleted file mode 100644 index 448b7247e..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/common/text_label.proto +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.common; - -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/common;common"; -option java_multiple_files = true; -option java_outer_classname = "TextLabelProto"; -option java_package = "com.google.ads.googleads.v3.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V3::Common"; - -// A type of label displaying text on a colored background. -message TextLabel { - // Background color of the label in RGB format. This string must match the - // regular expression '^\#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$'. - // Note: The background color may not be visible for manager accounts. - google.protobuf.StringValue background_color = 1; - - // A short description of the label. The length must be no more than 200 - // characters. - google.protobuf.StringValue description = 2; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/common/url_collection.proto b/third_party/googleapis/google/ads/googleads/v3/common/url_collection.proto deleted file mode 100644 index 85b90bd61..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/common/url_collection.proto +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.common; - -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/common;common"; -option java_multiple_files = true; -option java_outer_classname = "UrlCollectionProto"; -option java_package = "com.google.ads.googleads.v3.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V3::Common"; - -// Proto file UrlCollection type. - -// Collection of urls that is tagged with a unique identifier. -message UrlCollection { - // Unique identifier for this UrlCollection instance. - google.protobuf.StringValue url_collection_id = 1; - - // A list of possible final URLs. - repeated google.protobuf.StringValue final_urls = 2; - - // A list of possible final mobile URLs. - repeated google.protobuf.StringValue final_mobile_urls = 3; - - // URL template for constructing a tracking URL. - google.protobuf.StringValue tracking_url_template = 4; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/common/user_lists.proto b/third_party/googleapis/google/ads/googleads/v3/common/user_lists.proto deleted file mode 100644 index 5964403d6..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/common/user_lists.proto +++ /dev/null @@ -1,292 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.common; - -import "google/ads/googleads/v3/enums/customer_match_upload_key_type.proto"; -import "google/ads/googleads/v3/enums/user_list_combined_rule_operator.proto"; -import "google/ads/googleads/v3/enums/user_list_crm_data_source_type.proto"; -import "google/ads/googleads/v3/enums/user_list_date_rule_item_operator.proto"; -import "google/ads/googleads/v3/enums/user_list_logical_rule_operator.proto"; -import "google/ads/googleads/v3/enums/user_list_number_rule_item_operator.proto"; -import "google/ads/googleads/v3/enums/user_list_prepopulation_status.proto"; -import "google/ads/googleads/v3/enums/user_list_rule_type.proto"; -import "google/ads/googleads/v3/enums/user_list_string_rule_item_operator.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/common;common"; -option java_multiple_files = true; -option java_outer_classname = "UserListsProto"; -option java_package = "com.google.ads.googleads.v3.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V3::Common"; - -// Proto file describing user list types. - -// SimilarUserList is a list of users which are similar to users from another -// UserList. These lists are read-only and automatically created by Google. -message SimilarUserListInfo { - // Seed UserList from which this list is derived. - google.protobuf.StringValue seed_user_list = 1; -} - -// UserList of CRM users provided by the advertiser. -message CrmBasedUserListInfo { - // A string that uniquely identifies a mobile application from which the data - // was collected to the Google Ads API. - // For iOS, the ID string is the 9 digit string that appears at the end of an - // App Store URL (e.g., "476943146" for "Flood-It! 2" whose App Store link is - // http://itunes.apple.com/us/app/flood-it!-2/id476943146). - // For Android, the ID string is the application's package name - // (e.g., "com.labpixies.colordrips" for "Color Drips" given Google Play link - // https://play.google.com/store/apps/details?id=com.labpixies.colordrips). - // Required when creating CrmBasedUserList for uploading mobile advertising - // IDs. - google.protobuf.StringValue app_id = 1; - - // 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.v3.enums.CustomerMatchUploadKeyTypeEnum.CustomerMatchUploadKeyType upload_key_type = 2; - - // Data source of the list. Default value is FIRST_PARTY. - // Only customers on the allow-list can create third-party sourced CRM lists. - google.ads.googleads.v3.enums.UserListCrmDataSourceTypeEnum.UserListCrmDataSourceType data_source_type = 3; -} - -// A client defined rule based on custom parameters sent by web sites or -// uploaded by the advertiser. -message UserListRuleInfo { - // Rule type is used to determine how to group rule items. - // - // The default is OR of ANDs (disjunctive normal form). - // That is, rule items will be ANDed together within rule item groups and the - // groups themselves will be ORed together. - // - // Currently AND of ORs (conjunctive normal form) is only supported for - // ExpressionRuleUserList. - google.ads.googleads.v3.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. - repeated UserListRuleItemGroupInfo rule_item_groups = 2; -} - -// A group of rule items. -message UserListRuleItemGroupInfo { - // Rule items that will be grouped together based on rule_type. - repeated UserListRuleItemInfo rule_items = 1; -} - -// An atomic rule item. -message UserListRuleItemInfo { - // Rule variable name. It should match the corresponding key name fired - // by the pixel. - // A name must begin with US-ascii letters or underscore or UTF8 code that is - // greater than 127 and consist of US-ascii letters or digits or underscore or - // UTF8 code that is greater than 127. - // For websites, there are two built-in variable URL (name = 'url__') and - // referrer URL (name = 'ref_url__'). - // This field must be populated when creating a new rule item. - google.protobuf.StringValue name = 1; - - // An atomic rule item. - oneof rule_item { - // An atomic rule item composed of a number operation. - UserListNumberRuleItemInfo number_rule_item = 2; - - // An atomic rule item composed of a string operation. - UserListStringRuleItemInfo string_rule_item = 3; - - // An atomic rule item composed of a date operation. - UserListDateRuleItemInfo date_rule_item = 4; - } -} - -// A rule item composed of a date operation. -message UserListDateRuleItemInfo { - // Date comparison operator. - // This field is required and must be populated when creating new date - // rule item. - google.ads.googleads.v3.enums.UserListDateRuleItemOperatorEnum.UserListDateRuleItemOperator operator = 1; - - // String representing date value to be compared with the rule variable. - // Supported date format is YYYY-MM-DD. - // Times are reported in the customer's time zone. - google.protobuf.StringValue value = 2; - - // The relative date value of the right hand side denoted by number of days - // offset from now. The value field will override this field when both are - // present. - google.protobuf.Int64Value offset_in_days = 3; -} - -// A rule item composed of a number operation. -message UserListNumberRuleItemInfo { - // Number comparison operator. - // This field is required and must be populated when creating a new number - // rule item. - google.ads.googleads.v3.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 - // rule item. - google.protobuf.DoubleValue value = 2; -} - -// A rule item composed of a string operation. -message UserListStringRuleItemInfo { - // String comparison operator. - // This field is required and must be populated when creating a new string - // rule item. - google.ads.googleads.v3.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, - // tabs, or parentheses. This field is required and must be populated when - // creating a new string rule item. - google.protobuf.StringValue value = 2; -} - -// User lists defined by combining two rules, left operand and right operand. -// There are two operators: AND where left operand and right operand have to be -// true; AND_NOT where left operand is true but right operand is false. -message CombinedRuleUserListInfo { - // Left operand of the combined rule. - // This field is required and must be populated when creating new combined - // rule based user list. - UserListRuleInfo left_operand = 1; - - // Right operand of the combined rule. - // This field is required and must be populated when creating new combined - // rule based user list. - UserListRuleInfo right_operand = 2; - - // Operator to connect the two operands. - // - // Required for creating a combined rule user list. - google.ads.googleads.v3.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator rule_operator = 3; -} - -// Visitors of a page during specific dates. -message DateSpecificRuleUserListInfo { - // Boolean rule that defines visitor of a page. - // - // Required for creating a date specific rule user list. - UserListRuleInfo rule = 1; - - // Start date of users visit. If set to 2000-01-01, then the list includes all - // users before end_date. The date's format should be YYYY-MM-DD. - // - // Required for creating a data specific rule user list. - google.protobuf.StringValue start_date = 2; - - // End date of users visit. If set to 2037-12-30, then the list includes all - // users after start_date. The date's format should be YYYY-MM-DD. - // - // Required for creating a data specific rule user list. - google.protobuf.StringValue end_date = 3; -} - -// Visitors of a page. The page visit is defined by one boolean rule expression. -message ExpressionRuleUserListInfo { - // Boolean rule that defines this user list. The rule consists of a list of - // rule item groups and each rule item group consists of a list of rule items. - // All the rule item groups are ORed or ANDed together for evaluation based on - // rule.rule_type. - // - // Required for creating an expression rule user list. - UserListRuleInfo rule = 1; -} - -// Representation of a userlist that is generated by a rule. -message RuleBasedUserListInfo { - // The status of pre-population. The field is default to NONE if not set which - // means the previous users will not be considered. If set to REQUESTED, past - // site visitors or app users who match the list definition will be included - // in the list (works on the Display Network only). This will only - // add past users from within the last 30 days, depending on the - // 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.v3.enums.UserListPrepopulationStatusEnum.UserListPrepopulationStatus prepopulation_status = 1; - - // Subtypes of rule based user lists. - oneof rule_based_user_list { - // User lists defined by combining two rules. - // There are two operators: AND, where the left and right operands have to - // be true; AND_NOT where left operand is true but right operand is false. - CombinedRuleUserListInfo combined_rule_user_list = 2; - - // Visitors of a page during specific dates. The visiting periods are - // defined as follows: - // Between start_date (inclusive) and end_date (inclusive); - // Before end_date (exclusive) with start_date = 2000-01-01; - // After start_date (exclusive) with end_date = 2037-12-30. - DateSpecificRuleUserListInfo date_specific_rule_user_list = 3; - - // Visitors of a page. The page visit is defined by one boolean rule - // expression. - ExpressionRuleUserListInfo expression_rule_user_list = 4; - } -} - -// Represents a user list that is a custom combination of user lists. -message LogicalUserListInfo { - // Logical list rules that define this user list. The rules are defined as a - // logical operator (ALL/ANY/NONE) and a list of user lists. All the rules are - // ANDed when they are evaluated. - // - // Required for creating a logical user list. - repeated UserListLogicalRuleInfo rules = 1; -} - -// A user list logical rule. A rule has a logical operator (and/or/not) and a -// list of user lists as operands. -message UserListLogicalRuleInfo { - // The logical operator of the rule. - google.ads.googleads.v3.enums.UserListLogicalRuleOperatorEnum.UserListLogicalRuleOperator operator = 1; - - // The list of operands of the rule. - repeated LogicalUserListOperandInfo rule_operands = 2; -} - -// Operand of logical user list that consists of a user list. -message LogicalUserListOperandInfo { - // Resource name of a user list as an operand. - google.protobuf.StringValue user_list = 1; -} - -// User list targeting as a collection of conversions or remarketing actions. -message BasicUserListInfo { - // Actions associated with this user list. - repeated UserListActionInfo actions = 1; -} - -// Represents an action type used for building remarketing user lists. -message UserListActionInfo { - // Subtypes of user list action. - oneof user_list_action { - // A conversion action that's not generated from remarketing. - google.protobuf.StringValue conversion_action = 1; - - // A remarketing action. - google.protobuf.StringValue remarketing_action = 2; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v3/common/value.proto b/third_party/googleapis/google/ads/googleads/v3/common/value.proto deleted file mode 100644 index be5792e25..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/common/value.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.common; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Common"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/common;common"; -option java_multiple_files = true; -option java_outer_classname = "ValueProto"; -option java_package = "com.google.ads.googleads.v3.common"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Common"; -option ruby_package = "Google::Ads::GoogleAds::V3::Common"; - -// Proto file describing value types - -// A generic data container. -message Value { - // A value. - oneof value { - // A boolean. - bool boolean_value = 1; - - // An int64. - int64 int64_value = 2; - - // A float. - float float_value = 3; - - // A double. - double double_value = 4; - - // A string. - string string_value = 5; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/access_reason.proto b/third_party/googleapis/google/ads/googleads/v3/enums/access_reason.proto deleted file mode 100644 index 8acee7121..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/access_reason.proto +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AccessReasonProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Indicates the way the resource such as user list is related to a user. -message AccessReasonEnum { - // Enum describing possible access reasons. - enum AccessReason { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The resource is owned by the user. - OWNED = 2; - - // The resource is shared to the user. - SHARED = 3; - - // The resource is licensed to the user. - LICENSED = 4; - - // The user subscribed to the resource. - SUBSCRIBED = 5; - - // The resource is accessible to the user. - AFFILIATED = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/access_role.proto b/third_party/googleapis/google/ads/googleads/v3/enums/access_role.proto deleted file mode 100644 index 9ea06ac03..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/access_role.proto +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AccessRoleProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Container for enum describing possible access role for user. -message AccessRoleEnum { - // Possible access role of a user. - enum AccessRole { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Owns its account and can control the addition of other users. - ADMIN = 2; - - // Can modify campaigns, but can't affect other users. - STANDARD = 3; - - // Can view campaigns and account changes, but cannot make edits. - READ_ONLY = 4; - - // Role for \"email only\" access. Represents an email recipient rather than - // a true User entity. - EMAIL_ONLY = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/account_budget_proposal_status.proto b/third_party/googleapis/google/ads/googleads/v3/enums/account_budget_proposal_status.proto deleted file mode 100644 index 286be91df..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/account_budget_proposal_status.proto +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AccountBudgetProposalStatusProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing AccountBudgetProposal statuses. - -// Message describing AccountBudgetProposal statuses. -message AccountBudgetProposalStatusEnum { - // The possible statuses of an AccountBudgetProposal. - enum AccountBudgetProposalStatus { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The proposal is pending approval. - PENDING = 2; - - // The proposal has been approved but the corresponding billing setup - // has not. This can occur for proposals that set up the first budget - // when signing up for billing or when performing a change of bill-to - // operation. - APPROVED_HELD = 3; - - // The proposal has been approved. - APPROVED = 4; - - // The proposal has been cancelled by the user. - CANCELLED = 5; - - // The proposal has been rejected by the user, e.g. by rejecting an - // acceptance email. - REJECTED = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/account_budget_proposal_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/account_budget_proposal_type.proto deleted file mode 100644 index 55f33d981..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/account_budget_proposal_type.proto +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AccountBudgetProposalTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing AccountBudgetProposal types. - -// Message describing AccountBudgetProposal types. -message AccountBudgetProposalTypeEnum { - // The possible types of an AccountBudgetProposal. - enum AccountBudgetProposalType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Identifies a request to create a new budget. - CREATE = 2; - - // Identifies a request to edit an existing budget. - UPDATE = 3; - - // Identifies a request to end a budget that has already started. - END = 4; - - // Identifies a request to remove a budget that hasn't started yet. - REMOVE = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/account_budget_status.proto b/third_party/googleapis/google/ads/googleads/v3/enums/account_budget_status.proto deleted file mode 100644 index f5035cc46..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/account_budget_status.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AccountBudgetStatusProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing AccountBudget statuses. - -// Message describing AccountBudget statuses. -message AccountBudgetStatusEnum { - // The possible statuses of an AccountBudget. - enum AccountBudgetStatus { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The account budget is pending approval. - PENDING = 2; - - // The account budget has been approved. - APPROVED = 3; - - // The account budget has been cancelled by the user. - CANCELLED = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/ad_customizer_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v3/enums/ad_customizer_placeholder_field.proto deleted file mode 100644 index 5df0748f8..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/ad_customizer_placeholder_field.proto +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AdCustomizerPlaceholderFieldProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing Ad Customizer placeholder fields. - -// Values for Ad Customizer placeholder fields. -message AdCustomizerPlaceholderFieldEnum { - // Possible values for Ad Customizers placeholder fields. - enum AdCustomizerPlaceholderField { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Data Type: INT64. Integer value to be inserted. - INTEGER = 2; - - // Data Type: STRING. Price value to be inserted. - PRICE = 3; - - // Data Type: DATE_TIME. Date value to be inserted. - DATE = 4; - - // Data Type: STRING. String value to be inserted. - STRING = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/ad_group_ad_rotation_mode.proto b/third_party/googleapis/google/ads/googleads/v3/enums/ad_group_ad_rotation_mode.proto deleted file mode 100644 index d7a89d168..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/ad_group_ad_rotation_mode.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupAdRotationModeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing ad group ad rotation mode. - -// Container for enum describing possible ad rotation modes of ads within an -// ad group. -message AdGroupAdRotationModeEnum { - // The possible ad rotation modes of an ad group. - enum AdGroupAdRotationMode { - // The ad rotation mode has not been specified. - UNSPECIFIED = 0; - - // The received value is not known in this version. - // - // This is a response-only value. - UNKNOWN = 1; - - // Optimize ad group ads based on clicks or conversions. - OPTIMIZE = 2; - - // Rotate evenly forever. - ROTATE_FOREVER = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/ad_group_ad_status.proto b/third_party/googleapis/google/ads/googleads/v3/enums/ad_group_ad_status.proto deleted file mode 100644 index 22ca2b0fd..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/ad_group_ad_status.proto +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupAdStatusProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing ad group status. - -// Container for enum describing possible statuses of an AdGroupAd. -message AdGroupAdStatusEnum { - // The possible statuses of an AdGroupAd. - enum AdGroupAdStatus { - // No value has been specified. - UNSPECIFIED = 0; - - // The received value is not known in this version. - // - // This is a response-only value. - UNKNOWN = 1; - - // The ad group ad is enabled. - ENABLED = 2; - - // The ad group ad is paused. - PAUSED = 3; - - // The ad group ad is removed. - REMOVED = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/ad_group_criterion_approval_status.proto b/third_party/googleapis/google/ads/googleads/v3/enums/ad_group_criterion_approval_status.proto deleted file mode 100644 index e4e6bff64..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/ad_group_criterion_approval_status.proto +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupCriterionApprovalStatusProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing approval status for the criterion. - -// Container for enum describing possible AdGroupCriterion approval statuses. -message AdGroupCriterionApprovalStatusEnum { - // Enumerates AdGroupCriterion approval statuses. - enum AdGroupCriterionApprovalStatus { - // Not specified. - UNSPECIFIED = 0; - - // The value is unknown in this version. - UNKNOWN = 1; - - // Approved. - APPROVED = 2; - - // Disapproved. - DISAPPROVED = 3; - - // Pending Review. - PENDING_REVIEW = 4; - - // Under review. - UNDER_REVIEW = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/ad_group_criterion_status.proto b/third_party/googleapis/google/ads/googleads/v3/enums/ad_group_criterion_status.proto deleted file mode 100644 index f281e6154..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/ad_group_criterion_status.proto +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupCriterionStatusProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing AdGroupCriterion statuses. - -// Message describing AdGroupCriterion statuses. -message AdGroupCriterionStatusEnum { - // The possible statuses of an AdGroupCriterion. - enum AdGroupCriterionStatus { - // No value has been specified. - UNSPECIFIED = 0; - - // The received value is not known in this version. - // - // This is a response-only value. - UNKNOWN = 1; - - // The ad group criterion is enabled. - ENABLED = 2; - - // The ad group criterion is paused. - PAUSED = 3; - - // The ad group criterion is removed. - REMOVED = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/ad_group_status.proto b/third_party/googleapis/google/ads/googleads/v3/enums/ad_group_status.proto deleted file mode 100644 index 52079e3c5..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/ad_group_status.proto +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupStatusProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing ad group status. - -// Container for enum describing possible statuses of an ad group. -message AdGroupStatusEnum { - // The possible statuses of an ad group. - enum AdGroupStatus { - // The status has not been specified. - UNSPECIFIED = 0; - - // The received value is not known in this version. - // - // This is a response-only value. - UNKNOWN = 1; - - // The ad group is enabled. - ENABLED = 2; - - // The ad group is paused. - PAUSED = 3; - - // The ad group is removed. - REMOVED = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/ad_group_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/ad_group_type.proto deleted file mode 100644 index 992996fd8..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/ad_group_type.proto +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing ad group types. - -// Defines types of an ad group, specific to a particular campaign channel -// type. This type drives validations that restrict which entities can be -// added to the ad group. -message AdGroupTypeEnum { - // Enum listing the possible types of an ad group. - enum AdGroupType { - // The type has not been specified. - UNSPECIFIED = 0; - - // The received value is not known in this version. - // - // This is a response-only value. - UNKNOWN = 1; - - // The default ad group type for Search campaigns. - SEARCH_STANDARD = 2; - - // The default ad group type for Display campaigns. - DISPLAY_STANDARD = 3; - - // The ad group type for Shopping campaigns serving standard product ads. - SHOPPING_PRODUCT_ADS = 4; - - // The default ad group type for Hotel campaigns. - HOTEL_ADS = 6; - - // The type for ad groups in Smart Shopping campaigns. - SHOPPING_SMART_ADS = 7; - - // Short unskippable in-stream video ads. - VIDEO_BUMPER = 8; - - // TrueView (skippable) in-stream video ads. - VIDEO_TRUE_VIEW_IN_STREAM = 9; - - // TrueView in-display video ads. - VIDEO_TRUE_VIEW_IN_DISPLAY = 10; - - // Unskippable in-stream video ads. - VIDEO_NON_SKIPPABLE_IN_STREAM = 11; - - // Outstream video ads. - VIDEO_OUTSTREAM = 12; - - // Ad group type for Dynamic Search Ads ad groups. - SEARCH_DYNAMIC_ADS = 13; - - // The type for ad groups in Shopping Comparison Listing campaigns. - SHOPPING_COMPARISON_LISTING_ADS = 14; - - // The ad group type for Promoted Hotel ad groups. - PROMOTED_HOTEL_ADS = 15; - - // Video responsive ad groups. - VIDEO_RESPONSIVE = 16; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/ad_network_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/ad_network_type.proto deleted file mode 100644 index 022f8c100..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/ad_network_type.proto +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AdNetworkTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing ad network types. - -// Container for enumeration of Google Ads network types. -message AdNetworkTypeEnum { - // Enumerates Google Ads network types. - enum AdNetworkType { - // Not specified. - UNSPECIFIED = 0; - - // The value is unknown in this version. - UNKNOWN = 1; - - // Google search. - SEARCH = 2; - - // Search partners. - SEARCH_PARTNERS = 3; - - // Display Network. - CONTENT = 4; - - // YouTube Search. - YOUTUBE_SEARCH = 5; - - // YouTube Videos - YOUTUBE_WATCH = 6; - - // Cross-network. - MIXED = 7; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/ad_serving_optimization_status.proto b/third_party/googleapis/google/ads/googleads/v3/enums/ad_serving_optimization_status.proto deleted file mode 100644 index 9148ce069..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/ad_serving_optimization_status.proto +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AdServingOptimizationStatusProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing ad serving statuses. - -// Possible ad serving statuses of a campaign. -message AdServingOptimizationStatusEnum { - // Enum describing possible serving statuses. - enum AdServingOptimizationStatus { - // No value has been specified. - UNSPECIFIED = 0; - - // The received value is not known in this version. - // - // This is a response-only value. - UNKNOWN = 1; - - // Ad serving is optimized based on CTR for the campaign. - OPTIMIZE = 2; - - // Ad serving is optimized based on CTR * Conversion for the campaign. If - // the campaign is not in the conversion optimizer bidding strategy, it will - // default to OPTIMIZED. - CONVERSION_OPTIMIZE = 3; - - // Ads are rotated evenly for 90 days, then optimized for clicks. - ROTATE = 4; - - // Show lower performing ads more evenly with higher performing ads, and do - // not optimize. - ROTATE_INDEFINITELY = 5; - - // Ad serving optimization status is not available. - UNAVAILABLE = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/ad_strength.proto b/third_party/googleapis/google/ads/googleads/v3/enums/ad_strength.proto deleted file mode 100644 index 7e51ee150..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/ad_strength.proto +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AdStrengthProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing ad strengths. - -// Container for enum describing possible ad strengths. -message AdStrengthEnum { - // Enum listing the possible ad strengths. - enum AdStrength { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The ad strength is currently pending. - PENDING = 2; - - // No ads could be generated. - NO_ADS = 3; - - // Poor strength. - POOR = 4; - - // Average strength. - AVERAGE = 5; - - // Good strength. - GOOD = 6; - - // Excellent strength. - EXCELLENT = 7; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/ad_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/ad_type.proto deleted file mode 100644 index 184161826..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/ad_type.proto +++ /dev/null @@ -1,107 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AdTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing the ad type. - -// Container for enum describing possible types of an ad. -message AdTypeEnum { - // The possible types of an ad. - enum AdType { - // No value has been specified. - UNSPECIFIED = 0; - - // The received value is not known in this version. - // - // This is a response-only value. - UNKNOWN = 1; - - // The ad is a text ad. - TEXT_AD = 2; - - // The ad is an expanded text ad. - EXPANDED_TEXT_AD = 3; - - // The ad is a call only ad. - CALL_ONLY_AD = 6; - - // The ad is an expanded dynamic search ad. - EXPANDED_DYNAMIC_SEARCH_AD = 7; - - // The ad is a hotel ad. - HOTEL_AD = 8; - - // The ad is a Smart Shopping ad. - SHOPPING_SMART_AD = 9; - - // The ad is a standard Shopping ad. - SHOPPING_PRODUCT_AD = 10; - - // The ad is a video ad. - VIDEO_AD = 12; - - // This ad is a Gmail ad. - GMAIL_AD = 13; - - // This ad is an Image ad. - IMAGE_AD = 14; - - // The ad is a responsive search ad. - RESPONSIVE_SEARCH_AD = 15; - - // The ad is a legacy responsive display ad. - LEGACY_RESPONSIVE_DISPLAY_AD = 16; - - // The ad is an app ad. - APP_AD = 17; - - // The ad is a legacy app install ad. - LEGACY_APP_INSTALL_AD = 18; - - // The ad is a responsive display ad. - RESPONSIVE_DISPLAY_AD = 19; - - // The ad is a display upload ad with the HTML5_UPLOAD_AD product type. - HTML5_UPLOAD_AD = 21; - - // The ad is a display upload ad with one of the DYNAMIC_HTML5_* product - // types. - DYNAMIC_HTML5_AD = 22; - - // The ad is an app engagement ad. - APP_ENGAGEMENT_AD = 23; - - // The ad is a Shopping Comparison Listing ad. - SHOPPING_COMPARISON_LISTING_AD = 24; - - // Video responsive ad. - VIDEO_RESPONSIVE_AD = 30; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/advertising_channel_sub_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/advertising_channel_sub_type.proto deleted file mode 100644 index 9ea36496f..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/advertising_channel_sub_type.proto +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AdvertisingChannelSubTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing advertising channel subtypes. - -// An immutable specialization of an Advertising Channel. -message AdvertisingChannelSubTypeEnum { - // Enum describing the different channel subtypes. - enum AdvertisingChannelSubType { - // Not specified. - UNSPECIFIED = 0; - - // Used as a return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Mobile app campaigns for Search. - SEARCH_MOBILE_APP = 2; - - // Mobile app campaigns for Display. - DISPLAY_MOBILE_APP = 3; - - // AdWords express campaigns for search. - SEARCH_EXPRESS = 4; - - // AdWords Express campaigns for display. - DISPLAY_EXPRESS = 5; - - // Smart Shopping campaigns. - SHOPPING_SMART_ADS = 6; - - // Gmail Ad campaigns. - DISPLAY_GMAIL_AD = 7; - - // Smart display campaigns. - DISPLAY_SMART_CAMPAIGN = 8; - - // Video Outstream campaigns. - VIDEO_OUTSTREAM = 9; - - // Video TrueView for Action campaigns. - VIDEO_ACTION = 10; - - // Video campaigns with non-skippable video ads. - VIDEO_NON_SKIPPABLE = 11; - - // App Campaign that allows you to easily promote your Android or iOS app - // across Google's top properties including Search, Play, YouTube, and the - // Google Display Network. - APP_CAMPAIGN = 12; - - // App Campaign for engagement, focused on driving re-engagement with the - // app across several of Google’s top properties including Search, YouTube, - // and the Google Display Network. - APP_CAMPAIGN_FOR_ENGAGEMENT = 13; - - // Shopping Comparison Listing campaigns. - SHOPPING_COMPARISON_LISTING_ADS = 15; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/advertising_channel_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/advertising_channel_type.proto deleted file mode 100644 index 9827e4b8b..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/advertising_channel_type.proto +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AdvertisingChannelTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing advertising channel types - -// The channel type a campaign may target to serve on. -message AdvertisingChannelTypeEnum { - // Enum describing the various advertising channel types. - enum AdvertisingChannelType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Search Network. Includes display bundled, and Search+ campaigns. - SEARCH = 2; - - // Google Display Network only. - DISPLAY = 3; - - // Shopping campaigns serve on the shopping property - // and on google.com search results. - SHOPPING = 4; - - // Hotel Ads campaigns. - HOTEL = 5; - - // Video campaigns. - VIDEO = 6; - - // App Campaigns, and App Campaigns for Engagement, that run - // across multiple channels. - MULTI_CHANNEL = 7; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/affiliate_location_feed_relationship_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/affiliate_location_feed_relationship_type.proto deleted file mode 100644 index 985eac98e..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/affiliate_location_feed_relationship_type.proto +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AffiliateLocationFeedRelationshipTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing relation type for affiliate location feeds. - -// Container for enum describing possible values for a relationship type for -// an affiliate location feed. -message AffiliateLocationFeedRelationshipTypeEnum { - // Possible values for a relationship type for an affiliate location feed. - enum AffiliateLocationFeedRelationshipType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // General retailer relationship. - GENERAL_RETAILER = 2; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/affiliate_location_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v3/enums/affiliate_location_placeholder_field.proto deleted file mode 100644 index 6aa7e5d21..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/affiliate_location_placeholder_field.proto +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AffiliateLocationPlaceholderFieldProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing Affiliate Location placeholder fields. - -// Values for Affiliate Location placeholder fields. -message AffiliateLocationPlaceholderFieldEnum { - // Possible values for Affiliate Location placeholder fields. - enum AffiliateLocationPlaceholderField { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Data Type: STRING. The name of the business. - BUSINESS_NAME = 2; - - // Data Type: STRING. Line 1 of the business address. - ADDRESS_LINE_1 = 3; - - // Data Type: STRING. Line 2 of the business address. - ADDRESS_LINE_2 = 4; - - // Data Type: STRING. City of the business address. - CITY = 5; - - // Data Type: STRING. Province of the business address. - PROVINCE = 6; - - // Data Type: STRING. Postal code of the business address. - POSTAL_CODE = 7; - - // Data Type: STRING. Country code of the business address. - COUNTRY_CODE = 8; - - // Data Type: STRING. Phone number of the business. - PHONE_NUMBER = 9; - - // Data Type: STRING. Language code of the business. - LANGUAGE_CODE = 10; - - // Data Type: INT64. ID of the chain. - CHAIN_ID = 11; - - // Data Type: STRING. Name of the chain. - CHAIN_NAME = 12; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/age_range_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/age_range_type.proto deleted file mode 100644 index 28f172bcd..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/age_range_type.proto +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AgeRangeTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing age range types. - -// Container for enum describing the type of demographic age ranges. -message AgeRangeTypeEnum { - // The type of demographic age ranges (e.g. between 18 and 24 years old). - enum AgeRangeType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Between 18 and 24 years old. - AGE_RANGE_18_24 = 503001; - - // Between 25 and 34 years old. - AGE_RANGE_25_34 = 503002; - - // Between 35 and 44 years old. - AGE_RANGE_35_44 = 503003; - - // Between 45 and 54 years old. - AGE_RANGE_45_54 = 503004; - - // Between 55 and 64 years old. - AGE_RANGE_55_64 = 503005; - - // 65 years old and beyond. - AGE_RANGE_65_UP = 503006; - - // Undetermined age range. - AGE_RANGE_UNDETERMINED = 503999; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/app_campaign_app_store.proto b/third_party/googleapis/google/ads/googleads/v3/enums/app_campaign_app_store.proto deleted file mode 100644 index 30d8032d4..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/app_campaign_app_store.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AppCampaignAppStoreProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing App Campaign app store. - -// The application store that distributes mobile applications. -message AppCampaignAppStoreEnum { - // Enum describing app campaign app store. - enum AppCampaignAppStore { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Apple app store. - APPLE_APP_STORE = 2; - - // Google play. - GOOGLE_APP_STORE = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/app_campaign_bidding_strategy_goal_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/app_campaign_bidding_strategy_goal_type.proto deleted file mode 100644 index 26d3460ce..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/app_campaign_bidding_strategy_goal_type.proto +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AppCampaignBiddingStrategyGoalTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing App Campaign bidding strategy goal types. - -// Container for enum describing goal towards which the bidding strategy of an -// app campaign should optimize for. -message AppCampaignBiddingStrategyGoalTypeEnum { - // Goal type of App campaign BiddingStrategy. - enum AppCampaignBiddingStrategyGoalType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Aim to maximize the number of app installs. The cpa bid is the - // target cost per install. - OPTIMIZE_INSTALLS_TARGET_INSTALL_COST = 2; - - // Aim to maximize the long term number of selected in-app conversions from - // app installs. The cpa bid is the target cost per install. - OPTIMIZE_IN_APP_CONVERSIONS_TARGET_INSTALL_COST = 3; - - // Aim to maximize the long term number of selected in-app conversions from - // app installs. The cpa bid is the target cost per in-app conversion. Note - // that the actual cpa may seem higher than the target cpa at first, since - // the long term conversions haven’t happened yet. - OPTIMIZE_IN_APP_CONVERSIONS_TARGET_CONVERSION_COST = 4; - - // Aim to maximize all conversions' value, i.e. install + selected in-app - // conversions while achieving or exceeding target return on advertising - // spend. - OPTIMIZE_RETURN_ON_ADVERTISING_SPEND = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/app_payment_model_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/app_payment_model_type.proto deleted file mode 100644 index 1147e363f..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/app_payment_model_type.proto +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AppPaymentModelTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing criteria types. - -// Represents a criterion for targeting paid apps. -message AppPaymentModelTypeEnum { - // Enum describing possible app payment models. - enum AppPaymentModelType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Represents paid-for apps. - PAID = 30; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/app_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v3/enums/app_placeholder_field.proto deleted file mode 100644 index 52db714fa..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/app_placeholder_field.proto +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AppPlaceholderFieldProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing App placeholder fields. - -// Values for App placeholder fields. -message AppPlaceholderFieldEnum { - // Possible values for App placeholder fields. - enum AppPlaceholderField { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Data Type: INT64. The application store that the target application - // belongs to. Valid values are: 1 = Apple iTunes Store; 2 = Google Play - // Store. - STORE = 2; - - // Data Type: STRING. The store-specific ID for the target application. - ID = 3; - - // Data Type: STRING. The visible text displayed when the link is rendered - // in an ad. - LINK_TEXT = 4; - - // Data Type: STRING. The destination URL of the in-app link. - URL = 5; - - // Data Type: URL_LIST. Final URLs for the in-app link when using Upgraded - // URLs. - FINAL_URLS = 6; - - // Data Type: URL_LIST. Final Mobile URLs for the in-app link when using - // Upgraded URLs. - FINAL_MOBILE_URLS = 7; - - // Data Type: URL. Tracking template for the in-app link when using Upgraded - // URLs. - TRACKING_URL = 8; - - // Data Type: STRING. Final URL suffix for the in-app link when using - // parallel tracking. - FINAL_URL_SUFFIX = 9; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/app_store.proto b/third_party/googleapis/google/ads/googleads/v3/enums/app_store.proto deleted file mode 100644 index 80bad8036..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/app_store.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AppStoreProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing app store types for an app extension. - -// Container for enum describing app store type in an app extension. -message AppStoreEnum { - // App store type in an app extension. - enum AppStore { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Apple iTunes. - APPLE_ITUNES = 2; - - // Google Play. - GOOGLE_PLAY = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/app_url_operating_system_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/app_url_operating_system_type.proto deleted file mode 100644 index b90d04c26..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/app_url_operating_system_type.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AppUrlOperatingSystemTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing operating system for a deeplink app URL. - -// The possible OS types for a deeplink AppUrl. -message AppUrlOperatingSystemTypeEnum { - // Operating System - enum AppUrlOperatingSystemType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The Apple IOS operating system. - IOS = 2; - - // The Android operating system. - ANDROID = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/asset_field_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/asset_field_type.proto deleted file mode 100644 index 27d756de4..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/asset_field_type.proto +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AssetFieldTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing asset type. - -// Container for enum describing the possible placements of an asset. -message AssetFieldTypeEnum { - // Enum describing the possible placements of an asset. - enum AssetFieldType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The asset is linked for use as a headline. - HEADLINE = 2; - - // The asset is linked for use as a description. - DESCRIPTION = 3; - - // The asset is linked for use as mandatory ad text. - MANDATORY_AD_TEXT = 4; - - // The asset is linked for use as a marketing image. - MARKETING_IMAGE = 5; - - // The asset is linked for use as a media bundle. - MEDIA_BUNDLE = 6; - - // The asset is linked for use as a YouTube video. - YOUTUBE_VIDEO = 7; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/asset_performance_label.proto b/third_party/googleapis/google/ads/googleads/v3/enums/asset_performance_label.proto deleted file mode 100644 index bce7adf99..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/asset_performance_label.proto +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AssetPerformanceLabelProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing the performance label of an asset. - -// Container for enum describing the performance label of an asset. -message AssetPerformanceLabelEnum { - // Enum describing the possible performance labels of an asset, usually - // computed in the context of a linkage. - enum AssetPerformanceLabel { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // This asset does not yet have any performance informantion. This may be - // because it is still under review. - PENDING = 2; - - // The asset has started getting impressions but the stats are not - // statistically significant enough to get an asset performance label. - LEARNING = 3; - - // Worst performing assets. - LOW = 4; - - // Good performing assets. - GOOD = 5; - - // Best performing assets. - BEST = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/asset_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/asset_type.proto deleted file mode 100644 index 430606ac8..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/asset_type.proto +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AssetTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing asset type. - -// Container for enum describing the types of asset. -message AssetTypeEnum { - // Enum describing possible types of asset. - enum AssetType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // YouTube video asset. - YOUTUBE_VIDEO = 2; - - // Media bundle asset. - MEDIA_BUNDLE = 3; - - // Image asset. - IMAGE = 4; - - // Text asset. - TEXT = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/attribution_model.proto b/third_party/googleapis/google/ads/googleads/v3/enums/attribution_model.proto deleted file mode 100644 index 0d162687c..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/attribution_model.proto +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "AttributionModelProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Container for enum representing the attribution model that describes how to -// distribute credit for a particular conversion across potentially many prior -// interactions. -message AttributionModelEnum { - // The attribution model that describes how to distribute credit for a - // particular conversion across potentially many prior interactions. - enum AttributionModel { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Uses external attribution. - EXTERNAL = 100; - - // Attributes all credit for a conversion to its last click. - GOOGLE_ADS_LAST_CLICK = 101; - - // Attributes all credit for a conversion to its first click using Google - // Search attribution. - GOOGLE_SEARCH_ATTRIBUTION_FIRST_CLICK = 102; - - // Attributes credit for a conversion equally across all of its clicks using - // Google Search attribution. - GOOGLE_SEARCH_ATTRIBUTION_LINEAR = 103; - - // Attributes exponentially more credit for a conversion to its more recent - // clicks using Google Search attribution (half-life is 1 week). - GOOGLE_SEARCH_ATTRIBUTION_TIME_DECAY = 104; - - // Attributes 40% of the credit for a conversion to its first and last - // clicks. Remaining 20% is evenly distributed across all other clicks. This - // uses Google Search attribution. - GOOGLE_SEARCH_ATTRIBUTION_POSITION_BASED = 105; - - // Flexible model that uses machine learning to determine the appropriate - // distribution of credit among clicks using Google Search attribution. - GOOGLE_SEARCH_ATTRIBUTION_DATA_DRIVEN = 106; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/bid_modifier_source.proto b/third_party/googleapis/google/ads/googleads/v3/enums/bid_modifier_source.proto deleted file mode 100644 index 08627b4a8..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/bid_modifier_source.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "BidModifierSourceProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing bid modifier source. - -// Container for enum describing possible bid modifier sources. -message BidModifierSourceEnum { - // Enum describing possible bid modifier sources. - enum BidModifierSource { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The bid modifier is specified at the campaign level, on the campaign - // level criterion. - CAMPAIGN = 2; - - // The bid modifier is specified (overridden) at the ad group level. - AD_GROUP = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/bidding_source.proto b/third_party/googleapis/google/ads/googleads/v3/enums/bidding_source.proto deleted file mode 100644 index 813926db0..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/bidding_source.proto +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "BiddingSourceProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing bidding sources. - -// Container for enum describing possible bidding sources. -message BiddingSourceEnum { - // Indicates where a bid or target is defined. For example, an ad group - // criterion may define a cpc bid directly, or it can inherit its cpc bid from - // the ad group. - enum BiddingSource { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Effective bid or target is inherited from campaign bidding strategy. - CAMPAIGN_BIDDING_STRATEGY = 5; - - // The bid or target is defined on the ad group. - AD_GROUP = 6; - - // The bid or target is defined on the ad group criterion. - AD_GROUP_CRITERION = 7; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/bidding_strategy_status.proto b/third_party/googleapis/google/ads/googleads/v3/enums/bidding_strategy_status.proto deleted file mode 100644 index 87c8bdcd1..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/bidding_strategy_status.proto +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "BiddingStrategyStatusProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing BiddingStrategy statuses. - -// Message describing BiddingStrategy statuses. -message BiddingStrategyStatusEnum { - // The possible statuses of a BiddingStrategy. - enum BiddingStrategyStatus { - // No value has been specified. - UNSPECIFIED = 0; - - // The received value is not known in this version. - // - // This is a response-only value. - UNKNOWN = 1; - - // The bidding strategy is enabled. - ENABLED = 2; - - // The bidding strategy is removed. - REMOVED = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/bidding_strategy_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/bidding_strategy_type.proto deleted file mode 100644 index 192121556..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/bidding_strategy_type.proto +++ /dev/null @@ -1,110 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "BiddingStrategyTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing bidding schemes. - -// Container for enum describing possible bidding strategy types. -message BiddingStrategyTypeEnum { - // Enum describing possible bidding strategy types. - enum BiddingStrategyType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Commission is an automatic bidding strategy in which the advertiser pays - // a certain portion of the conversion value. - COMMISSION = 16; - - // Enhanced CPC is a 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. - ENHANCED_CPC = 2; - - // Manual click based bidding where user pays per click. - MANUAL_CPC = 3; - - // Manual impression based bidding - // where user pays per thousand impressions. - MANUAL_CPM = 4; - - // A bidding strategy that pays a configurable amount per video view. - MANUAL_CPV = 13; - - // A bidding strategy that automatically maximizes number of conversions - // given a daily budget. - MAXIMIZE_CONVERSIONS = 10; - - // An automated bidding strategy that automatically sets bids to maximize - // revenue while spending your budget. - MAXIMIZE_CONVERSION_VALUE = 11; - - // Page-One Promoted bidding scheme, which sets max cpc bids to - // target impressions on page one or page one promoted slots on google.com. - // This enum value is deprecated. - PAGE_ONE_PROMOTED = 5; - - // Percent Cpc is bidding strategy where bids are a fraction of the - // advertised price for some good or service. - PERCENT_CPC = 12; - - // Target CPA is an automated bid strategy that sets bids - // to help get as many conversions as possible - // at the target cost-per-acquisition (CPA) you set. - TARGET_CPA = 6; - - // Target CPM is an automated bid strategy that sets bids to help get - // as many impressions as possible at the target cost per one thousand - // impressions (CPM) you set. - TARGET_CPM = 14; - - // 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 - // location). - TARGET_IMPRESSION_SHARE = 15; - - // Target Outrank Share is an automated bidding strategy that sets bids - // based on the target fraction of auctions where the advertiser - // should outrank a specific competitor. - // This enum value is deprecated. - TARGET_OUTRANK_SHARE = 7; - - // Target ROAS is an automated bidding strategy - // that helps you maximize revenue while averaging - // a specific target Return On Average Spend (ROAS). - TARGET_ROAS = 8; - - // Target Spend is an automated bid strategy that sets your bids - // to help get as many clicks as possible within your budget. - TARGET_SPEND = 9; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/billing_setup_status.proto b/third_party/googleapis/google/ads/googleads/v3/enums/billing_setup_status.proto deleted file mode 100644 index f2084bbca..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/billing_setup_status.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "BillingSetupStatusProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing BillingSetup statuses. - -// Message describing BillingSetup statuses. -message BillingSetupStatusEnum { - // The possible statuses of a BillingSetup. - enum BillingSetupStatus { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The billing setup is pending approval. - PENDING = 2; - - // The billing setup has been approved but the corresponding first budget - // has not. This can only occur for billing setups configured for monthly - // invoicing. - APPROVED_HELD = 3; - - // The billing setup has been approved. - APPROVED = 4; - - // The billing setup was cancelled by the user prior to approval. - CANCELLED = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/brand_safety_suitability.proto b/third_party/googleapis/google/ads/googleads/v3/enums/brand_safety_suitability.proto deleted file mode 100644 index d083fc6d9..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/brand_safety_suitability.proto +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "BrandSafetySuitabilityProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing brand safety suitability settings. - -// Container for enum with 3-Tier brand safety suitability control. -message BrandSafetySuitabilityEnum { - // 3-Tier brand safety suitability control. - enum BrandSafetySuitability { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // This option lets you show ads across all inventory on YouTube and video - // partners that meet our standards for monetization. This option may be an - // appropriate choice for brands that want maximum access to the full - // breadth of videos eligible for ads, including, for example, videos that - // have strong profanity in the context of comedy or a documentary, or - // excessive violence as featured in video games. - EXPANDED_INVENTORY = 2; - - // This option lets you show ads across a wide range of content that's - // appropriate for most brands, such as popular music videos, documentaries, - // and movie trailers. The content you can show ads on is based on YouTube's - // advertiser-friendly content guidelines that take into account, for - // example, the strength or frequency of profanity, or the appropriateness - // of subject matter like sensitive events. Ads won't show, for example, on - // content with repeated strong profanity, strong sexual content, or graphic - // violence. - STANDARD_INVENTORY = 3; - - // This option lets you show ads on a reduced range of content that's - // appropriate for brands with particularly strict guidelines around - // inappropriate language and sexual suggestiveness; above and beyond what - // YouTube's advertiser-friendly content guidelines address. The videos - // accessible in this sensitive category meet heightened requirements, - // especially for inappropriate language and sexual suggestiveness. For - // example, your ads will be excluded from showing on some of YouTube's most - // popular music videos and other pop culture content across YouTube and - // Google video partners. - LIMITED_INVENTORY = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/budget_delivery_method.proto b/third_party/googleapis/google/ads/googleads/v3/enums/budget_delivery_method.proto deleted file mode 100644 index 4fd6bee2e..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/budget_delivery_method.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "BudgetDeliveryMethodProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing Budget delivery methods. - -// Message describing Budget delivery methods. A delivery method determines the -// rate at which the Budget is spent. -message BudgetDeliveryMethodEnum { - // Possible delivery methods of a Budget. - enum BudgetDeliveryMethod { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The budget server will throttle serving evenly across - // the entire time period. - STANDARD = 2; - - // The budget server will not throttle serving, - // and ads will serve as fast as possible. - ACCELERATED = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/budget_period.proto b/third_party/googleapis/google/ads/googleads/v3/enums/budget_period.proto deleted file mode 100644 index 440d048ad..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/budget_period.proto +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "BudgetPeriodProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing Budget delivery methods. - -// Message describing Budget period. -message BudgetPeriodEnum { - // Possible period of a Budget. - enum BudgetPeriod { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Daily budget. - DAILY = 2; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/budget_status.proto b/third_party/googleapis/google/ads/googleads/v3/enums/budget_status.proto deleted file mode 100644 index c9a85146c..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/budget_status.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "BudgetStatusProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing Budget statuses - -// Message describing a Budget status -message BudgetStatusEnum { - // Possible statuses of a Budget. - enum BudgetStatus { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Budget is enabled. - ENABLED = 2; - - // Budget is removed. - REMOVED = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/budget_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/budget_type.proto deleted file mode 100644 index 8538fcc74..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/budget_type.proto +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "BudgetTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing Budget types. - -// Describes Budget types. -message BudgetTypeEnum { - // Possible Budget types. - enum BudgetType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Budget type for standard Google Ads usage. - // Caps daily spend at two times the specified budget amount. - // Full details: https://support.google.com/google-ads/answer/6385083 - STANDARD = 2; - - // Budget type for Hotels Ads commission program. - // Full details: https://support.google.com/google-ads/answer/9243945 - // - // This type is only supported by campaigns with - // AdvertisingChannelType.HOTEL, BiddingStrategyType.COMMISSION and - // PaymentMode.CONVERSION_VALUE. - HOTEL_ADS_COMMISSION = 3; - - // Budget type with a fixed cost-per-acquisition (conversion). - // Full details: https://support.google.com/google-ads/answer/7528254 - // - // This type is only supported by campaigns with - // AdvertisingChannelType.DISPLAY (excluding - // AdvertisingChannelSubType.DISPLAY_GMAIL), - // BiddingStrategyType.TARGET_CPA and PaymentMode.CONVERSIONS. - FIXED_CPA = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/call_conversion_reporting_state.proto b/third_party/googleapis/google/ads/googleads/v3/enums/call_conversion_reporting_state.proto deleted file mode 100644 index 1d1d0aba3..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/call_conversion_reporting_state.proto +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "CallConversionReportingStateProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing call conversion reporting state. - -// Container for enum describing possible data types for call conversion -// reporting state. -message CallConversionReportingStateEnum { - // Possible data types for a call conversion action state. - enum CallConversionReportingState { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Call conversion action is disabled. - DISABLED = 2; - - // Call conversion action will use call conversion type set at the - // account level. - USE_ACCOUNT_LEVEL_CALL_CONVERSION_ACTION = 3; - - // Call conversion action will use call conversion type set at the resource - // (call only ads/call extensions) level. - USE_RESOURCE_LEVEL_CALL_CONVERSION_ACTION = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/call_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v3/enums/call_placeholder_field.proto deleted file mode 100644 index 58e024959..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/call_placeholder_field.proto +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "CallPlaceholderFieldProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing Call placeholder fields. - -// Values for Call placeholder fields. -message CallPlaceholderFieldEnum { - // Possible values for Call placeholder fields. - enum CallPlaceholderField { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Data Type: STRING. The advertiser's phone number to append to the ad. - PHONE_NUMBER = 2; - - // Data Type: STRING. Uppercase two-letter country code of the advertiser's - // phone number. - COUNTRY_CODE = 3; - - // Data Type: BOOLEAN. Indicates whether call tracking is enabled. Default: - // true. - TRACKED = 4; - - // Data Type: INT64. The ID of an AdCallMetricsConversion object. This - // object contains the phoneCallDurationfield which is the minimum duration - // (in seconds) of a call to be considered a conversion. - CONVERSION_TYPE_ID = 5; - - // Data Type: STRING. Indicates whether this call extension uses its own - // call conversion setting or follows the account level setting. - // Valid values are: USE_ACCOUNT_LEVEL_CALL_CONVERSION_ACTION and - // USE_RESOURCE_LEVEL_CALL_CONVERSION_ACTION. - CONVERSION_REPORTING_STATE = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/callout_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v3/enums/callout_placeholder_field.proto deleted file mode 100644 index 49f0cb55b..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/callout_placeholder_field.proto +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "CalloutPlaceholderFieldProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing Callout placeholder fields. - -// Values for Callout placeholder fields. -message CalloutPlaceholderFieldEnum { - // Possible values for Callout placeholder fields. - enum CalloutPlaceholderField { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Data Type: STRING. Callout text. - CALLOUT_TEXT = 2; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/campaign_criterion_status.proto b/third_party/googleapis/google/ads/googleads/v3/enums/campaign_criterion_status.proto deleted file mode 100644 index 8539b12f8..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/campaign_criterion_status.proto +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "CampaignCriterionStatusProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing CampaignCriterion statuses. - -// Message describing CampaignCriterion statuses. -message CampaignCriterionStatusEnum { - // The possible statuses of a CampaignCriterion. - enum CampaignCriterionStatus { - // No value has been specified. - UNSPECIFIED = 0; - - // The received value is not known in this version. - // - // This is a response-only value. - UNKNOWN = 1; - - // The campaign criterion is enabled. - ENABLED = 2; - - // The campaign criterion is paused. - PAUSED = 3; - - // The campaign criterion is removed. - REMOVED = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/campaign_draft_status.proto b/third_party/googleapis/google/ads/googleads/v3/enums/campaign_draft_status.proto deleted file mode 100644 index 378068b37..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/campaign_draft_status.proto +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "CampaignDraftStatusProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing campaign draft status. - -// Container for enum describing possible statuses of a campaign draft. -message CampaignDraftStatusEnum { - // Possible statuses of a campaign draft. - enum CampaignDraftStatus { - // The status has not been specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Initial state of the draft, the advertiser can start adding changes with - // no effect on serving. - PROPOSED = 2; - - // The campaign draft is removed. - REMOVED = 3; - - // Advertiser requested to promote draft's changes back into the original - // campaign. Advertiser can poll the long running operation returned by - // the promote action to see the status of the promotion. - PROMOTING = 5; - - // The process to merge changes in the draft back to the original campaign - // has completed successfully. - PROMOTED = 4; - - // The promotion failed after it was partially applied. Promote cannot be - // attempted again safely, so the issue must be corrected in the original - // campaign. - PROMOTE_FAILED = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/campaign_experiment_status.proto b/third_party/googleapis/google/ads/googleads/v3/enums/campaign_experiment_status.proto deleted file mode 100644 index 6d21682bd..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/campaign_experiment_status.proto +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "CampaignExperimentStatusProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing campaign experiment status. - -// Container for enum describing possible statuses of a campaign experiment. -message CampaignExperimentStatusEnum { - // Possible statuses of a campaign experiment. - enum CampaignExperimentStatus { - // The status has not been specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The experiment campaign is being initialized. - INITIALIZING = 2; - - // Initialization of the experiment campaign failed. - INITIALIZATION_FAILED = 8; - - // The experiment campaign is fully initialized. The experiment is currently - // running, scheduled to run in the future or has ended based on its - // end date. An experiment with the status INITIALIZING will be updated to - // ENABLED when it is fully created. - ENABLED = 3; - - // The experiment campaign was graduated to a stand-alone - // campaign, existing independently of the experiment. - GRADUATED = 4; - - // The experiment is removed. - REMOVED = 5; - - // The experiment's changes are being applied to the original campaign. - // The long running operation returned by the promote method can be polled - // to see the status of the promotion. - PROMOTING = 6; - - // Promote of the experiment campaign failed. - PROMOTION_FAILED = 9; - - // The changes of the experiment are promoted to their original campaign. - PROMOTED = 7; - - // The experiment was ended manually. It did not end based on its end date. - ENDED_MANUALLY = 10; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/campaign_experiment_traffic_split_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/campaign_experiment_traffic_split_type.proto deleted file mode 100644 index a4514903e..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/campaign_experiment_traffic_split_type.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "CampaignExperimentTrafficSplitTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing campaign experiment traffic split type. - -// Container for enum describing campaign experiment traffic split type. -message CampaignExperimentTrafficSplitTypeEnum { - // Enum of strategies for splitting traffic between base and experiment - // campaigns in campaign experiment. - enum CampaignExperimentTrafficSplitType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Traffic is randomly assigned to the base or experiment arm for each - // query, independent of previous assignments for the same user. - RANDOM_QUERY = 2; - - // Traffic is split using cookies to keep users in the same arm (base or - // experiment) of the experiment. - COOKIE = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/campaign_experiment_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/campaign_experiment_type.proto deleted file mode 100644 index 7d5ea246e..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/campaign_experiment_type.proto +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "CampaignExperimentTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing campaign experiment type. - -// Container for enum describing campaign experiment type. -message CampaignExperimentTypeEnum { - // Indicates if this campaign is a normal campaign, - // a draft campaign, or an experiment campaign. - enum CampaignExperimentType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // This is a regular campaign. - BASE = 2; - - // This is a draft version of a campaign. - // It has some modifications from a base campaign, - // but it does not serve or accrue metrics. - DRAFT = 3; - - // This is an experiment version of a campaign. - // It has some modifications from a base campaign, - // and a percentage of traffic is being diverted - // from the BASE campaign to this experiment campaign. - EXPERIMENT = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/campaign_serving_status.proto b/third_party/googleapis/google/ads/googleads/v3/enums/campaign_serving_status.proto deleted file mode 100644 index 59f20a92f..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/campaign_serving_status.proto +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "CampaignServingStatusProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing Campaign serving statuses. - -// Message describing Campaign serving statuses. -message CampaignServingStatusEnum { - // Possible serving statuses of a campaign. - enum CampaignServingStatus { - // No value has been specified. - UNSPECIFIED = 0; - - // The received value is not known in this version. - // - // This is a response-only value. - UNKNOWN = 1; - - // Serving. - SERVING = 2; - - // None. - NONE = 3; - - // Ended. - ENDED = 4; - - // Pending. - PENDING = 5; - - // Suspended. - SUSPENDED = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/campaign_shared_set_status.proto b/third_party/googleapis/google/ads/googleads/v3/enums/campaign_shared_set_status.proto deleted file mode 100644 index 348326d3c..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/campaign_shared_set_status.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "CampaignSharedSetStatusProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing campaign shared set statuses. - -// Container for enum describing types of campaign shared set statuses. -message CampaignSharedSetStatusEnum { - // Enum listing the possible campaign shared set statuses. - enum CampaignSharedSetStatus { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The campaign shared set is enabled. - ENABLED = 2; - - // The campaign shared set is removed and can no longer be used. - REMOVED = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/campaign_status.proto b/third_party/googleapis/google/ads/googleads/v3/enums/campaign_status.proto deleted file mode 100644 index 6cc32f61b..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/campaign_status.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "CampaignStatusProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing campaign status. - -// Container for enum describing possible statuses of a campaign. -message CampaignStatusEnum { - // Possible statuses of a campaign. - enum CampaignStatus { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Campaign is currently serving ads depending on budget information. - ENABLED = 2; - - // Campaign has been paused by the user. - PAUSED = 3; - - // Campaign has been removed. - REMOVED = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/change_status_operation.proto b/third_party/googleapis/google/ads/googleads/v3/enums/change_status_operation.proto deleted file mode 100644 index 7b5f4a53e..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/change_status_operation.proto +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ChangeStatusOperationProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing the change status operations. - -// Container for enum describing operations for the ChangeStatus resource. -message ChangeStatusOperationEnum { - // Status of the changed resource - enum ChangeStatusOperation { - // No value has been specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents an unclassified resource unknown - // in this version. - UNKNOWN = 1; - - // The resource was created. - ADDED = 2; - - // The resource was modified. - CHANGED = 3; - - // The resource was removed. - REMOVED = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/change_status_resource_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/change_status_resource_type.proto deleted file mode 100644 index b760d4d03..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/change_status_resource_type.proto +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ChangeStatusResourceTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing the resource types the ChangeStatus resource supports. - -// Container for enum describing supported resource types for the ChangeStatus -// resource. -message ChangeStatusResourceTypeEnum { - // Enum listing the resource types support by the ChangeStatus resource. - enum ChangeStatusResourceType { - // No value has been specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents an unclassified resource unknown - // in this version. - UNKNOWN = 1; - - // An AdGroup resource change. - AD_GROUP = 3; - - // An AdGroupAd resource change. - AD_GROUP_AD = 4; - - // An AdGroupCriterion resource change. - AD_GROUP_CRITERION = 5; - - // A Campaign resource change. - CAMPAIGN = 6; - - // A CampaignCriterion resource change. - CAMPAIGN_CRITERION = 7; - - // A Feed resource change. - FEED = 9; - - // A FeedItem resource change. - FEED_ITEM = 10; - - // An AdGroupFeed resource change. - AD_GROUP_FEED = 11; - - // A CampaignFeed resource change. - CAMPAIGN_FEED = 12; - - // An AdGroupBidModifier resource change. - AD_GROUP_BID_MODIFIER = 13; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/click_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/click_type.proto deleted file mode 100644 index e5dec52c2..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/click_type.proto +++ /dev/null @@ -1,203 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ClickTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing click types. - -// Container for enumeration of Google Ads click types. -message ClickTypeEnum { - // Enumerates Google Ads click types. - enum ClickType { - // Not specified. - UNSPECIFIED = 0; - - // The value is unknown in this version. - UNKNOWN = 1; - - // App engagement ad deep link. - APP_DEEPLINK = 2; - - // Breadcrumbs. - BREADCRUMBS = 3; - - // Broadband Plan. - BROADBAND_PLAN = 4; - - // Manually dialed phone calls. - CALL_TRACKING = 5; - - // Phone calls. - CALLS = 6; - - // Click on engagement ad. - CLICK_ON_ENGAGEMENT_AD = 7; - - // Driving direction. - GET_DIRECTIONS = 8; - - // Get location details. - LOCATION_EXPANSION = 9; - - // Call. - LOCATION_FORMAT_CALL = 10; - - // Directions. - LOCATION_FORMAT_DIRECTIONS = 11; - - // Image(s). - LOCATION_FORMAT_IMAGE = 12; - - // Go to landing page. - LOCATION_FORMAT_LANDING_PAGE = 13; - - // Map. - LOCATION_FORMAT_MAP = 14; - - // Go to store info. - LOCATION_FORMAT_STORE_INFO = 15; - - // Text. - LOCATION_FORMAT_TEXT = 16; - - // Mobile phone calls. - MOBILE_CALL_TRACKING = 17; - - // Print offer. - OFFER_PRINTS = 18; - - // Other. - OTHER = 19; - - // Product plusbox offer. - PRODUCT_EXTENSION_CLICKS = 20; - - // Shopping - Product - Online. - PRODUCT_LISTING_AD_CLICKS = 21; - - // Sitelink. - SITELINKS = 22; - - // Show nearby locations. - STORE_LOCATOR = 23; - - // Headline. - URL_CLICKS = 25; - - // App store. - VIDEO_APP_STORE_CLICKS = 26; - - // Call-to-Action overlay. - VIDEO_CALL_TO_ACTION_CLICKS = 27; - - // Cards. - VIDEO_CARD_ACTION_HEADLINE_CLICKS = 28; - - // End cap. - VIDEO_END_CAP_CLICKS = 29; - - // Website. - VIDEO_WEBSITE_CLICKS = 30; - - // Visual Sitelinks. - VISUAL_SITELINKS = 31; - - // Wireless Plan. - WIRELESS_PLAN = 32; - - // Shopping - Product - Local. - PRODUCT_LISTING_AD_LOCAL = 33; - - // Shopping - Product - MultiChannel Local. - PRODUCT_LISTING_AD_MULTICHANNEL_LOCAL = 34; - - // Shopping - Product - MultiChannel Online. - PRODUCT_LISTING_AD_MULTICHANNEL_ONLINE = 35; - - // Shopping - Product - Coupon. - PRODUCT_LISTING_ADS_COUPON = 36; - - // Shopping - Product - Sell on Google. - PRODUCT_LISTING_AD_TRANSACTABLE = 37; - - // Shopping - Product - App engagement ad deep link. - PRODUCT_AD_APP_DEEPLINK = 38; - - // Shopping - Showcase - Category. - SHOWCASE_AD_CATEGORY_LINK = 39; - - // Shopping - Showcase - Local storefront. - SHOWCASE_AD_LOCAL_STOREFRONT_LINK = 40; - - // Shopping - Showcase - Online product. - SHOWCASE_AD_ONLINE_PRODUCT_LINK = 42; - - // Shopping - Showcase - Local product. - SHOWCASE_AD_LOCAL_PRODUCT_LINK = 43; - - // Promotion Extension. - PROMOTION_EXTENSION = 44; - - // Ad Headline. - SWIPEABLE_GALLERY_AD_HEADLINE = 45; - - // Swipes. - SWIPEABLE_GALLERY_AD_SWIPES = 46; - - // See More. - SWIPEABLE_GALLERY_AD_SEE_MORE = 47; - - // Sitelink 1. - SWIPEABLE_GALLERY_AD_SITELINK_ONE = 48; - - // Sitelink 2. - SWIPEABLE_GALLERY_AD_SITELINK_TWO = 49; - - // Sitelink 3. - SWIPEABLE_GALLERY_AD_SITELINK_THREE = 50; - - // Sitelink 4. - SWIPEABLE_GALLERY_AD_SITELINK_FOUR = 51; - - // Sitelink 5. - SWIPEABLE_GALLERY_AD_SITELINK_FIVE = 52; - - // Hotel price. - HOTEL_PRICE = 53; - - // Price Extension. - PRICE_EXTENSION = 54; - - // Book on Google hotel room selection. - HOTEL_BOOK_ON_GOOGLE_ROOM_SELECTION = 55; - - // Shopping - Comparison Listing. - SHOPPING_COMPARISON_LISTING = 56; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/content_label_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/content_label_type.proto deleted file mode 100644 index 53a122695..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/content_label_type.proto +++ /dev/null @@ -1,89 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ContentLabelTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing content label types. - -// Container for enum describing content label types in ContentLabel. -message ContentLabelTypeEnum { - // Enum listing the content label types supported by ContentLabel criterion. - enum ContentLabelType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Sexually suggestive content. - SEXUALLY_SUGGESTIVE = 2; - - // Below the fold placement. - BELOW_THE_FOLD = 3; - - // Parked domain. - PARKED_DOMAIN = 4; - - // Juvenile, gross & bizarre content. - JUVENILE = 6; - - // Profanity & rough language. - PROFANITY = 7; - - // Death & tragedy. - TRAGEDY = 8; - - // Video. - VIDEO = 9; - - // Content rating: G. - VIDEO_RATING_DV_G = 10; - - // Content rating: PG. - VIDEO_RATING_DV_PG = 11; - - // Content rating: T. - VIDEO_RATING_DV_T = 12; - - // Content rating: MA. - VIDEO_RATING_DV_MA = 13; - - // Content rating: not yet rated. - VIDEO_NOT_YET_RATED = 14; - - // Embedded video. - EMBEDDED_VIDEO = 15; - - // Live streaming video. - LIVE_STREAMING_VIDEO = 16; - - // Sensitive social issues. - SOCIAL_ISSUES = 17; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/conversion_action_category.proto b/third_party/googleapis/google/ads/googleads/v3/enums/conversion_action_category.proto deleted file mode 100644 index ef4127e9c..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/conversion_action_category.proto +++ /dev/null @@ -1,106 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ConversionActionCategoryProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Container for enum describing the category of conversions that are associated -// with a ConversionAction. -message ConversionActionCategoryEnum { - // The category of conversions that are associated with a ConversionAction. - enum ConversionActionCategory { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Default category. - DEFAULT = 2; - - // User visiting a page. - PAGE_VIEW = 3; - - // Purchase, sales, or "order placed" event. - PURCHASE = 4; - - // Signup user action. - SIGNUP = 5; - - // Lead-generating action. - LEAD = 6; - - // Software download action (as for an app). - DOWNLOAD = 7; - - // The addition of items to a shopping cart or bag on an advertiser site. - ADD_TO_CART = 8; - - // When someone enters the checkout flow on an advertiser site. - BEGIN_CHECKOUT = 9; - - // The start of a paid subscription for a product or service. - SUBSCRIBE_PAID = 10; - - // A call to indicate interest in an advertiser's offering. - PHONE_CALL_LEAD = 11; - - // A lead conversion imported from an external source into Google Ads. - IMPORTED_LEAD = 12; - - // A submission of a form on an advertiser site indicating business - // interest. - SUBMIT_LEAD_FORM = 13; - - // A booking of an appointment with an advertiser's business. - BOOK_APPOINTMENT = 14; - - // A quote or price estimate request. - REQUEST_QUOTE = 15; - - // A search for an advertiser's business location with intention to visit. - GET_DIRECTIONS = 16; - - // A click to an advertiser's partner's site. - OUTBOUND_CLICK = 17; - - // A call, SMS, email, chat or other type of contact to an advertiser. - CONTACT = 18; - - // A website engagement event such as long site time or a Google Analytics - // (GA) Smart Goal. Intended to be used for GA, Firebase, GA Gold goal - // imports. - ENGAGEMENT = 19; - - // A visit to a physical store location. - STORE_VISIT = 20; - - // A sale occurring in a physical store. - STORE_SALE = 21; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/conversion_action_counting_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/conversion_action_counting_type.proto deleted file mode 100644 index a2721fece..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/conversion_action_counting_type.proto +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ConversionActionCountingTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing conversion action counting type. - -// Container for enum describing the conversion deduplication mode for -// conversion optimizer. -message ConversionActionCountingTypeEnum { - // Indicates how conversions for this action will be counted. For more - // information, see https://support.google.com/google-ads/answer/3438531. - enum ConversionActionCountingType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Count only one conversion per click. - ONE_PER_CLICK = 2; - - // Count all conversions per click. - MANY_PER_CLICK = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/conversion_action_status.proto b/third_party/googleapis/google/ads/googleads/v3/enums/conversion_action_status.proto deleted file mode 100644 index c30e95816..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/conversion_action_status.proto +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ConversionActionStatusProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing conversion action status. - -// Container for enum describing possible statuses of a conversion action. -message ConversionActionStatusEnum { - // Possible statuses of a conversion action. - enum ConversionActionStatus { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Conversions will be recorded. - ENABLED = 2; - - // Conversions will not be recorded. - REMOVED = 3; - - // Conversions will not be recorded and the conversion action will not - // appear in the UI. - HIDDEN = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/conversion_action_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/conversion_action_type.proto deleted file mode 100644 index 70878cb9a..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/conversion_action_type.proto +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ConversionActionTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing conversion action type. - -// Container for enum describing possible types of a conversion action. -message ConversionActionTypeEnum { - // Possible types of a conversion action. - enum ConversionActionType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Conversions that occur when a user clicks on an ad's call extension. - AD_CALL = 2; - - // Conversions that occur when a user on a mobile device clicks a phone - // number. - CLICK_TO_CALL = 3; - - // Conversions that occur when a user downloads a mobile app from the Google - // Play Store. - GOOGLE_PLAY_DOWNLOAD = 4; - - // Conversions that occur when a user makes a purchase in an app through - // Android billing. - GOOGLE_PLAY_IN_APP_PURCHASE = 5; - - // Call conversions that are tracked by the advertiser and uploaded. - UPLOAD_CALLS = 6; - - // Conversions that are tracked by the advertiser and uploaded with - // attributed clicks. - UPLOAD_CLICKS = 7; - - // Conversions that occur on a webpage. - WEBPAGE = 8; - - // Conversions that occur when a user calls a dynamically-generated phone - // number from an advertiser's website. - WEBSITE_CALL = 9; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/conversion_adjustment_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/conversion_adjustment_type.proto deleted file mode 100644 index e225309e6..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/conversion_adjustment_type.proto +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ConversionAdjustmentTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing conversion adjustment type. - -// Container for enum describing conversion adjustment types. -message ConversionAdjustmentTypeEnum { - // The different actions advertisers can take to adjust the conversions that - // they already reported. Retractions negate a conversion. Restatements change - // the value of a conversion. - enum ConversionAdjustmentType { - // Not specified. - UNSPECIFIED = 0; - - // Represents value unknown in this version. - UNKNOWN = 1; - - // Negates a conversion so that its total value and count are both zero. - RETRACTION = 2; - - // Changes the value of a conversion. - RESTATEMENT = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/conversion_attribution_event_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/conversion_attribution_event_type.proto deleted file mode 100644 index fe02d9424..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/conversion_attribution_event_type.proto +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ConversionAttributionEventTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Container for enum indicating the event type the conversion is attributed to. -message ConversionAttributionEventTypeEnum { - // The event type of conversions that are attributed to. - enum ConversionAttributionEventType { - // Not specified. - UNSPECIFIED = 0; - - // Represents value unknown in this version. - UNKNOWN = 1; - - // The conversion is attributed to an impression. - IMPRESSION = 2; - - // The conversion is attributed to an interaction. - INTERACTION = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/conversion_lag_bucket.proto b/third_party/googleapis/google/ads/googleads/v3/enums/conversion_lag_bucket.proto deleted file mode 100644 index 2f446381e..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/conversion_lag_bucket.proto +++ /dev/null @@ -1,117 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ConversionLagBucketProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Container for enum representing the number of days between impression and -// conversion. -message ConversionLagBucketEnum { - // Enum representing the number of days between impression and conversion. - enum ConversionLagBucket { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Conversion lag bucket from 0 to 1 day. 0 day is included, 1 day is not. - LESS_THAN_ONE_DAY = 2; - - // Conversion lag bucket from 1 to 2 days. 1 day is included, 2 days is not. - ONE_TO_TWO_DAYS = 3; - - // Conversion lag bucket from 2 to 3 days. 2 days is included, - // 3 days is not. - TWO_TO_THREE_DAYS = 4; - - // Conversion lag bucket from 3 to 4 days. 3 days is included, - // 4 days is not. - THREE_TO_FOUR_DAYS = 5; - - // Conversion lag bucket from 4 to 5 days. 4 days is included, - // 5 days is not. - FOUR_TO_FIVE_DAYS = 6; - - // Conversion lag bucket from 5 to 6 days. 5 days is included, - // 6 days is not. - FIVE_TO_SIX_DAYS = 7; - - // Conversion lag bucket from 6 to 7 days. 6 days is included, - // 7 days is not. - SIX_TO_SEVEN_DAYS = 8; - - // Conversion lag bucket from 7 to 8 days. 7 days is included, - // 8 days is not. - SEVEN_TO_EIGHT_DAYS = 9; - - // Conversion lag bucket from 8 to 9 days. 8 days is included, - // 9 days is not. - EIGHT_TO_NINE_DAYS = 10; - - // Conversion lag bucket from 9 to 10 days. 9 days is included, - // 10 days is not. - NINE_TO_TEN_DAYS = 11; - - // Conversion lag bucket from 10 to 11 days. 10 days is included, - // 11 days is not. - TEN_TO_ELEVEN_DAYS = 12; - - // Conversion lag bucket from 11 to 12 days. 11 days is included, - // 12 days is not. - ELEVEN_TO_TWELVE_DAYS = 13; - - // Conversion lag bucket from 12 to 13 days. 12 days is included, - // 13 days is not. - TWELVE_TO_THIRTEEN_DAYS = 14; - - // Conversion lag bucket from 13 to 14 days. 13 days is included, - // 14 days is not. - THIRTEEN_TO_FOURTEEN_DAYS = 15; - - // Conversion lag bucket from 14 to 21 days. 14 days is included, - // 21 days is not. - FOURTEEN_TO_TWENTY_ONE_DAYS = 16; - - // Conversion lag bucket from 21 to 30 days. 21 days is included, - // 30 days is not. - TWENTY_ONE_TO_THIRTY_DAYS = 17; - - // Conversion lag bucket from 30 to 45 days. 30 days is included, - // 45 days is not. - THIRTY_TO_FORTY_FIVE_DAYS = 18; - - // Conversion lag bucket from 45 to 60 days. 45 days is included, - // 60 days is not. - FORTY_FIVE_TO_SIXTY_DAYS = 19; - - // Conversion lag bucket from 60 to 90 days. 60 days is included, - // 90 days is not. - SIXTY_TO_NINETY_DAYS = 20; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/conversion_or_adjustment_lag_bucket.proto b/third_party/googleapis/google/ads/googleads/v3/enums/conversion_or_adjustment_lag_bucket.proto deleted file mode 100644 index 48d49728f..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/conversion_or_adjustment_lag_bucket.proto +++ /dev/null @@ -1,206 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ConversionOrAdjustmentLagBucketProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Container for enum representing the number of days between the impression and -// the conversion or between the impression and adjustments to the conversion. -message ConversionOrAdjustmentLagBucketEnum { - // Enum representing the number of days between the impression and the - // conversion or between the impression and adjustments to the conversion. - enum ConversionOrAdjustmentLagBucket { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Conversion lag bucket from 0 to 1 day. 0 day is included, 1 day is not. - CONVERSION_LESS_THAN_ONE_DAY = 2; - - // Conversion lag bucket from 1 to 2 days. 1 day is included, 2 days is not. - CONVERSION_ONE_TO_TWO_DAYS = 3; - - // Conversion lag bucket from 2 to 3 days. 2 days is included, - // 3 days is not. - CONVERSION_TWO_TO_THREE_DAYS = 4; - - // Conversion lag bucket from 3 to 4 days. 3 days is included, - // 4 days is not. - CONVERSION_THREE_TO_FOUR_DAYS = 5; - - // Conversion lag bucket from 4 to 5 days. 4 days is included, - // 5 days is not. - CONVERSION_FOUR_TO_FIVE_DAYS = 6; - - // Conversion lag bucket from 5 to 6 days. 5 days is included, - // 6 days is not. - CONVERSION_FIVE_TO_SIX_DAYS = 7; - - // Conversion lag bucket from 6 to 7 days. 6 days is included, - // 7 days is not. - CONVERSION_SIX_TO_SEVEN_DAYS = 8; - - // Conversion lag bucket from 7 to 8 days. 7 days is included, - // 8 days is not. - CONVERSION_SEVEN_TO_EIGHT_DAYS = 9; - - // Conversion lag bucket from 8 to 9 days. 8 days is included, - // 9 days is not. - CONVERSION_EIGHT_TO_NINE_DAYS = 10; - - // Conversion lag bucket from 9 to 10 days. 9 days is included, - // 10 days is not. - CONVERSION_NINE_TO_TEN_DAYS = 11; - - // Conversion lag bucket from 10 to 11 days. 10 days is included, - // 11 days is not. - CONVERSION_TEN_TO_ELEVEN_DAYS = 12; - - // Conversion lag bucket from 11 to 12 days. 11 days is included, - // 12 days is not. - CONVERSION_ELEVEN_TO_TWELVE_DAYS = 13; - - // Conversion lag bucket from 12 to 13 days. 12 days is included, - // 13 days is not. - CONVERSION_TWELVE_TO_THIRTEEN_DAYS = 14; - - // Conversion lag bucket from 13 to 14 days. 13 days is included, - // 14 days is not. - CONVERSION_THIRTEEN_TO_FOURTEEN_DAYS = 15; - - // Conversion lag bucket from 14 to 21 days. 14 days is included, - // 21 days is not. - CONVERSION_FOURTEEN_TO_TWENTY_ONE_DAYS = 16; - - // Conversion lag bucket from 21 to 30 days. 21 days is included, - // 30 days is not. - CONVERSION_TWENTY_ONE_TO_THIRTY_DAYS = 17; - - // Conversion lag bucket from 30 to 45 days. 30 days is included, - // 45 days is not. - CONVERSION_THIRTY_TO_FORTY_FIVE_DAYS = 18; - - // Conversion lag bucket from 45 to 60 days. 45 days is included, - // 60 days is not. - CONVERSION_FORTY_FIVE_TO_SIXTY_DAYS = 19; - - // Conversion lag bucket from 60 to 90 days. 60 days is included, - // 90 days is not. - CONVERSION_SIXTY_TO_NINETY_DAYS = 20; - - // Conversion adjustment lag bucket from 0 to 1 day. 0 day is included, - // 1 day is not. - ADJUSTMENT_LESS_THAN_ONE_DAY = 21; - - // Conversion adjustment lag bucket from 1 to 2 days. 1 day is included, - // 2 days is not. - ADJUSTMENT_ONE_TO_TWO_DAYS = 22; - - // Conversion adjustment lag bucket from 2 to 3 days. 2 days is included, - // 3 days is not. - ADJUSTMENT_TWO_TO_THREE_DAYS = 23; - - // Conversion adjustment lag bucket from 3 to 4 days. 3 days is included, - // 4 days is not. - ADJUSTMENT_THREE_TO_FOUR_DAYS = 24; - - // Conversion adjustment lag bucket from 4 to 5 days. 4 days is included, - // 5 days is not. - ADJUSTMENT_FOUR_TO_FIVE_DAYS = 25; - - // Conversion adjustment lag bucket from 5 to 6 days. 5 days is included, - // 6 days is not. - ADJUSTMENT_FIVE_TO_SIX_DAYS = 26; - - // Conversion adjustment lag bucket from 6 to 7 days. 6 days is included, - // 7 days is not. - ADJUSTMENT_SIX_TO_SEVEN_DAYS = 27; - - // Conversion adjustment lag bucket from 7 to 8 days. 7 days is included, - // 8 days is not. - ADJUSTMENT_SEVEN_TO_EIGHT_DAYS = 28; - - // Conversion adjustment lag bucket from 8 to 9 days. 8 days is included, - // 9 days is not. - ADJUSTMENT_EIGHT_TO_NINE_DAYS = 29; - - // Conversion adjustment lag bucket from 9 to 10 days. 9 days is included, - // 10 days is not. - ADJUSTMENT_NINE_TO_TEN_DAYS = 30; - - // Conversion adjustment lag bucket from 10 to 11 days. 10 days is included, - // 11 days is not. - ADJUSTMENT_TEN_TO_ELEVEN_DAYS = 31; - - // Conversion adjustment lag bucket from 11 to 12 days. 11 days is included, - // 12 days is not. - ADJUSTMENT_ELEVEN_TO_TWELVE_DAYS = 32; - - // Conversion adjustment lag bucket from 12 to 13 days. 12 days is included, - // 13 days is not. - ADJUSTMENT_TWELVE_TO_THIRTEEN_DAYS = 33; - - // Conversion adjustment lag bucket from 13 to 14 days. 13 days is included, - // 14 days is not. - ADJUSTMENT_THIRTEEN_TO_FOURTEEN_DAYS = 34; - - // Conversion adjustment lag bucket from 14 to 21 days. 14 days is included, - // 21 days is not. - ADJUSTMENT_FOURTEEN_TO_TWENTY_ONE_DAYS = 35; - - // Conversion adjustment lag bucket from 21 to 30 days. 21 days is included, - // 30 days is not. - ADJUSTMENT_TWENTY_ONE_TO_THIRTY_DAYS = 36; - - // Conversion adjustment lag bucket from 30 to 45 days. 30 days is included, - // 45 days is not. - ADJUSTMENT_THIRTY_TO_FORTY_FIVE_DAYS = 37; - - // Conversion adjustment lag bucket from 45 to 60 days. 45 days is included, - // 60 days is not. - ADJUSTMENT_FORTY_FIVE_TO_SIXTY_DAYS = 38; - - // Conversion adjustment lag bucket from 60 to 90 days. 60 days is included, - // 90 days is not. - ADJUSTMENT_SIXTY_TO_NINETY_DAYS = 39; - - // Conversion adjustment lag bucket from 90 to 145 days. 90 days is - // included, 145 days is not. - ADJUSTMENT_NINETY_TO_ONE_HUNDRED_AND_FORTY_FIVE_DAYS = 40; - - // Conversion lag bucket UNKNOWN. This is for dates before conversion lag - // bucket was available in Google Ads. - CONVERSION_UNKNOWN = 41; - - // Conversion adjustment lag bucket UNKNOWN. This is for dates before - // conversion adjustment lag bucket was available in Google Ads. - ADJUSTMENT_UNKNOWN = 42; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/criterion_category_channel_availability_mode.proto b/third_party/googleapis/google/ads/googleads/v3/enums/criterion_category_channel_availability_mode.proto deleted file mode 100644 index ce04a6b09..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/criterion_category_channel_availability_mode.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "CriterionCategoryChannelAvailabilityModeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing the criterion category channel availability mode. - -// Describes channel availability mode for a criterion availability - whether -// the availability is meant to include all advertising channels, or a -// particular channel with all its channel subtypes, or a channel with a certain -// subset of channel subtypes. -message CriterionCategoryChannelAvailabilityModeEnum { - // Enum containing the possible CriterionCategoryChannelAvailabilityMode. - enum CriterionCategoryChannelAvailabilityMode { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The category is available to campaigns of all channel types and subtypes. - ALL_CHANNELS = 2; - - // The category is available to campaigns of a specific channel type, - // including all subtypes under it. - CHANNEL_TYPE_AND_ALL_SUBTYPES = 3; - - // The category is available to campaigns of a specific channel type and - // subtype(s). - CHANNEL_TYPE_AND_SUBSET_SUBTYPES = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/criterion_category_locale_availability_mode.proto b/third_party/googleapis/google/ads/googleads/v3/enums/criterion_category_locale_availability_mode.proto deleted file mode 100644 index 6d8691516..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/criterion_category_locale_availability_mode.proto +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "CriterionCategoryLocaleAvailabilityModeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing the criterion category locale availability mode. - -// Describes locale availability mode for a criterion availability - whether -// it's available globally, or a particular country with all languages, or a -// particular language with all countries, or a country-language pair. -message CriterionCategoryLocaleAvailabilityModeEnum { - // Enum containing the possible CriterionCategoryLocaleAvailabilityMode. - enum CriterionCategoryLocaleAvailabilityMode { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The category is available to campaigns of all locales. - ALL_LOCALES = 2; - - // The category is available to campaigns within a list of countries, - // regardless of language. - COUNTRY_AND_ALL_LANGUAGES = 3; - - // The category is available to campaigns within a list of languages, - // regardless of country. - LANGUAGE_AND_ALL_COUNTRIES = 4; - - // The category is available to campaigns within a list of country, language - // pairs. - COUNTRY_AND_LANGUAGE = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/criterion_system_serving_status.proto b/third_party/googleapis/google/ads/googleads/v3/enums/criterion_system_serving_status.proto deleted file mode 100644 index e6b30ec14..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/criterion_system_serving_status.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "CriterionSystemServingStatusProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing approval status for the criterion. - -// Container for enum describing possible criterion system serving statuses. -message CriterionSystemServingStatusEnum { - // Enumerates criterion system serving statuses. - enum CriterionSystemServingStatus { - // Not specified. - UNSPECIFIED = 0; - - // The value is unknown in this version. - UNKNOWN = 1; - - // Eligible. - ELIGIBLE = 2; - - // Low search volume. - RARELY_SERVED = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/criterion_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/criterion_type.proto deleted file mode 100644 index 2ce579917..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/criterion_type.proto +++ /dev/null @@ -1,134 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "CriterionTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing criteria types. - -// The possible types of a criterion. -message CriterionTypeEnum { - // Enum describing possible criterion types. - enum CriterionType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Keyword. e.g. 'mars cruise'. - KEYWORD = 2; - - // Placement, aka Website. e.g. 'www.flowers4sale.com' - PLACEMENT = 3; - - // Mobile application categories to target. - MOBILE_APP_CATEGORY = 4; - - // Mobile applications to target. - MOBILE_APPLICATION = 5; - - // Devices to target. - DEVICE = 6; - - // Locations to target. - LOCATION = 7; - - // Listing groups to target. - LISTING_GROUP = 8; - - // Ad Schedule. - AD_SCHEDULE = 9; - - // Age range. - AGE_RANGE = 10; - - // Gender. - GENDER = 11; - - // Income Range. - INCOME_RANGE = 12; - - // Parental status. - PARENTAL_STATUS = 13; - - // YouTube Video. - YOUTUBE_VIDEO = 14; - - // YouTube Channel. - YOUTUBE_CHANNEL = 15; - - // User list. - USER_LIST = 16; - - // Proximity. - PROXIMITY = 17; - - // A topic target on the display network (e.g. "Pets & Animals"). - TOPIC = 18; - - // Listing scope to target. - LISTING_SCOPE = 19; - - // Language. - LANGUAGE = 20; - - // IpBlock. - IP_BLOCK = 21; - - // Content Label for category exclusion. - CONTENT_LABEL = 22; - - // Carrier. - CARRIER = 23; - - // A category the user is interested in. - USER_INTEREST = 24; - - // Webpage criterion for dynamic search ads. - WEBPAGE = 25; - - // Operating system version. - OPERATING_SYSTEM_VERSION = 26; - - // App payment model. - APP_PAYMENT_MODEL = 27; - - // Mobile device. - MOBILE_DEVICE = 28; - - // Custom affinity. - CUSTOM_AFFINITY = 29; - - // Custom intent. - CUSTOM_INTENT = 30; - - // Location group. - LOCATION_GROUP = 31; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/custom_interest_member_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/custom_interest_member_type.proto deleted file mode 100644 index cd05e545c..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/custom_interest_member_type.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "CustomInterestMemberTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing custom interest member type. - -// The types of custom interest member, either KEYWORD or URL. -message CustomInterestMemberTypeEnum { - // Enum containing possible custom interest member types. - enum CustomInterestMemberType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Custom interest member type KEYWORD. - KEYWORD = 2; - - // Custom interest member type URL. - URL = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/custom_interest_status.proto b/third_party/googleapis/google/ads/googleads/v3/enums/custom_interest_status.proto deleted file mode 100644 index 24dc1c141..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/custom_interest_status.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "CustomInterestStatusProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing custom interest status. - -// The status of custom interest. -message CustomInterestStatusEnum { - // Enum containing possible custom interest types. - enum CustomInterestStatus { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Enabled status - custom interest is enabled and can be targeted to. - ENABLED = 2; - - // Removed status - custom interest is removed and cannot be used for - // targeting. - REMOVED = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/custom_interest_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/custom_interest_type.proto deleted file mode 100644 index 35ea338fd..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/custom_interest_type.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "CustomInterestTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing custom interest type. - -// The types of custom interest. -message CustomInterestTypeEnum { - // Enum containing possible custom interest types. - enum CustomInterestType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Allows brand advertisers to define custom affinity audience lists. - CUSTOM_AFFINITY = 2; - - // Allows advertisers to define custom intent audience lists. - CUSTOM_INTENT = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/custom_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v3/enums/custom_placeholder_field.proto deleted file mode 100644 index e3152c21f..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/custom_placeholder_field.proto +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "CustomPlaceholderFieldProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing Custom placeholder fields. - -// Values for Custom placeholder fields. -// For more information about dynamic remarketing feeds, see -// https://support.google.com/google-ads/answer/6053288. -message CustomPlaceholderFieldEnum { - // Possible values for Custom placeholder fields. - enum CustomPlaceholderField { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Data Type: STRING. Required. Combination ID and ID2 must be unique per - // offer. - ID = 2; - - // Data Type: STRING. Combination ID and ID2 must be unique per offer. - ID2 = 3; - - // Data Type: STRING. Required. Main headline with product name to be shown - // in dynamic ad. - ITEM_TITLE = 4; - - // Data Type: STRING. Optional text to be shown in the image ad. - ITEM_SUBTITLE = 5; - - // Data Type: STRING. Optional description of the product to be shown in the - // ad. - ITEM_DESCRIPTION = 6; - - // Data Type: STRING. Full address of your offer or service, including - // postal code. This will be used to identify the closest product to the - // user when there are multiple offers in the feed that are relevant to the - // user. - ITEM_ADDRESS = 7; - - // Data Type: STRING. Price to be shown in the ad. - // Example: "100.00 USD" - PRICE = 8; - - // Data Type: STRING. Formatted price to be shown in the ad. - // Example: "Starting at $100.00 USD", "$80 - $100" - FORMATTED_PRICE = 9; - - // Data Type: STRING. Sale price to be shown in the ad. - // Example: "80.00 USD" - SALE_PRICE = 10; - - // Data Type: STRING. Formatted sale price to be shown in the ad. - // Example: "On sale for $80.00", "$60 - $80" - FORMATTED_SALE_PRICE = 11; - - // Data Type: URL. Image to be displayed in the ad. Highly recommended for - // image ads. - IMAGE_URL = 12; - - // Data Type: STRING. Used as a recommendation engine signal to serve items - // in the same category. - ITEM_CATEGORY = 13; - - // Data Type: URL_LIST. Final URLs for the ad when using Upgraded - // URLs. User will be redirected to these URLs when they click on an ad, or - // when they click on a specific product for ads that have multiple - // products. - FINAL_URLS = 14; - - // Data Type: URL_LIST. Final mobile URLs for the ad when using Upgraded - // URLs. - FINAL_MOBILE_URLS = 15; - - // Data Type: URL. Tracking template for the ad when using Upgraded URLs. - TRACKING_URL = 16; - - // Data Type: STRING_LIST. Keywords used for product retrieval. - CONTEXTUAL_KEYWORDS = 17; - - // Data Type: STRING. Android app link. Must be formatted as: - // android-app://{package_id}/{scheme}/{host_path}. - // The components are defined as follows: - // package_id: app ID as specified in Google Play. - // scheme: the scheme to pass to the application. Can be HTTP, or a custom - // scheme. - // host_path: identifies the specific content within your application. - ANDROID_APP_LINK = 18; - - // Data Type: STRING_LIST. List of recommended IDs to show together with - // this item. - SIMILAR_IDS = 19; - - // Data Type: STRING. iOS app link. - IOS_APP_LINK = 20; - - // Data Type: INT64. iOS app store ID. - IOS_APP_STORE_ID = 21; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/customer_match_upload_key_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/customer_match_upload_key_type.proto deleted file mode 100644 index ae40149f8..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/customer_match_upload_key_type.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "CustomerMatchUploadKeyTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Indicates what type of data are the user list's members matched from. -message CustomerMatchUploadKeyTypeEnum { - // Enum describing possible customer match upload key types. - enum CustomerMatchUploadKeyType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Members are matched from customer info such as email address, phone - // number or physical address. - CONTACT_INFO = 2; - - // Members are matched from a user id generated and assigned by the - // advertiser. - CRM_ID = 3; - - // Members are matched from mobile advertising ids. - MOBILE_ADVERTISING_ID = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/customer_pay_per_conversion_eligibility_failure_reason.proto b/third_party/googleapis/google/ads/googleads/v3/enums/customer_pay_per_conversion_eligibility_failure_reason.proto deleted file mode 100644 index 7d3b11c40..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/customer_pay_per_conversion_eligibility_failure_reason.proto +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "CustomerPayPerConversionEligibilityFailureReasonProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing pay per conversion eligibility failure reasons. - -// Container for enum describing reasons why a customer is not eligible to use -// PaymentMode.CONVERSIONS. -message CustomerPayPerConversionEligibilityFailureReasonEnum { - // Enum describing possible reasons a customer is not eligible to use - // PaymentMode.CONVERSIONS. - enum CustomerPayPerConversionEligibilityFailureReason { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Customer does not have enough conversions. - NOT_ENOUGH_CONVERSIONS = 2; - - // Customer's conversion lag is too high. - CONVERSION_LAG_TOO_HIGH = 3; - - // Customer uses shared budgets. - HAS_CAMPAIGN_WITH_SHARED_BUDGET = 4; - - // Customer has conversions with ConversionActionType.UPLOAD_CLICKS. - HAS_UPLOAD_CLICKS_CONVERSION = 5; - - // Customer's average daily spend is too high. - AVERAGE_DAILY_SPEND_TOO_HIGH = 6; - - // Customer's eligibility has not yet been calculated by the Google Ads - // backend. Check back soon. - ANALYSIS_NOT_COMPLETE = 7; - - // Customer is not eligible due to other reasons. - OTHER = 8; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/data_driven_model_status.proto b/third_party/googleapis/google/ads/googleads/v3/enums/data_driven_model_status.proto deleted file mode 100644 index 4ce19402c..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/data_driven_model_status.proto +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "DataDrivenModelStatusProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing data-driven model status. - -// Container for enum indicating data driven model status. -message DataDrivenModelStatusEnum { - // Enumerates data driven model statuses. - enum DataDrivenModelStatus { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The data driven model is available. - AVAILABLE = 2; - - // The data driven model is stale. It hasn't been updated for at least 7 - // days. It is still being used, but will become expired if it does not get - // updated for 30 days. - STALE = 3; - - // The data driven model expired. It hasn't been updated for at least 30 - // days and cannot be used. Most commonly this is because there hasn't been - // the required number of events in a recent 30-day period. - EXPIRED = 4; - - // The data driven model has never been generated. Most commonly this is - // because there has never been the required number of events in any 30-day - // period. - NEVER_GENERATED = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/day_of_week.proto b/third_party/googleapis/google/ads/googleads/v3/enums/day_of_week.proto deleted file mode 100644 index e10fca7d4..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/day_of_week.proto +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "DayOfWeekProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing days of week. - -// Container for enumeration of days of the week, e.g., "Monday". -message DayOfWeekEnum { - // Enumerates days of the week, e.g., "Monday". - enum DayOfWeek { - // Not specified. - UNSPECIFIED = 0; - - // The value is unknown in this version. - UNKNOWN = 1; - - // Monday. - MONDAY = 2; - - // Tuesday. - TUESDAY = 3; - - // Wednesday. - WEDNESDAY = 4; - - // Thursday. - THURSDAY = 5; - - // Friday. - FRIDAY = 6; - - // Saturday. - SATURDAY = 7; - - // Sunday. - SUNDAY = 8; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/device.proto b/third_party/googleapis/google/ads/googleads/v3/enums/device.proto deleted file mode 100644 index 547a06aae..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/device.proto +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "DeviceProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing devices. - -// Container for enumeration of Google Ads devices available for targeting. -message DeviceEnum { - // Enumerates Google Ads devices available for targeting. - enum Device { - // Not specified. - UNSPECIFIED = 0; - - // The value is unknown in this version. - UNKNOWN = 1; - - // Mobile devices with full browsers. - MOBILE = 2; - - // Tablets with full browsers. - TABLET = 3; - - // Computers. - DESKTOP = 4; - - // Smart TVs and game consoles. - CONNECTED_TV = 6; - - // Other device types. - OTHER = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/display_ad_format_setting.proto b/third_party/googleapis/google/ads/googleads/v3/enums/display_ad_format_setting.proto deleted file mode 100644 index 47394a102..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/display_ad_format_setting.proto +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "DisplayAdFormatSettingProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing display ad format settings. - -// Container for display ad format settings. -message DisplayAdFormatSettingEnum { - // Enumerates display ad format settings. - enum DisplayAdFormatSetting { - // Not specified. - UNSPECIFIED = 0; - - // The value is unknown in this version. - UNKNOWN = 1; - - // Text, image and native formats. - ALL_FORMATS = 2; - - // Text and image formats. - NON_NATIVE = 3; - - // Native format, i.e. the format rendering is controlled by the publisher - // and not by Google. - NATIVE = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/display_upload_product_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/display_upload_product_type.proto deleted file mode 100644 index 2ed71ae4b..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/display_upload_product_type.proto +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "DisplayUploadProductTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing display upload product types. - -// Container for display upload product types. Product types that have the word -// "DYNAMIC" in them must be associated with a campaign that has a dynamic -// remarketing feed. See https://support.google.com/google-ads/answer/6053288 -// for more info about dynamic remarketing. Other product types are regarded -// as "static" and do not have this requirement. -message DisplayUploadProductTypeEnum { - // Enumerates display upload product types. - enum DisplayUploadProductType { - // Not specified. - UNSPECIFIED = 0; - - // The value is unknown in this version. - UNKNOWN = 1; - - // HTML5 upload ad. This product type requires the upload_media_bundle - // field in DisplayUploadAdInfo to be set. - HTML5_UPLOAD_AD = 2; - - // Dynamic HTML5 education ad. This product type requires the - // upload_media_bundle field in DisplayUploadAdInfo to be set. Can only be - // used in an education campaign. - DYNAMIC_HTML5_EDUCATION_AD = 3; - - // Dynamic HTML5 flight ad. This product type requires the - // upload_media_bundle field in DisplayUploadAdInfo to be set. Can only be - // used in a flight campaign. - DYNAMIC_HTML5_FLIGHT_AD = 4; - - // Dynamic HTML5 hotel and rental ad. This product type requires the - // upload_media_bundle field in DisplayUploadAdInfo to be set. Can only be - // used in a hotel campaign. - DYNAMIC_HTML5_HOTEL_RENTAL_AD = 5; - - // Dynamic HTML5 job ad. This product type requires the - // upload_media_bundle field in DisplayUploadAdInfo to be set. Can only be - // used in a job campaign. - DYNAMIC_HTML5_JOB_AD = 6; - - // Dynamic HTML5 local ad. This product type requires the - // upload_media_bundle field in DisplayUploadAdInfo to be set. Can only be - // used in a local campaign. - DYNAMIC_HTML5_LOCAL_AD = 7; - - // Dynamic HTML5 real estate ad. This product type requires the - // upload_media_bundle field in DisplayUploadAdInfo to be set. Can only be - // used in a real estate campaign. - DYNAMIC_HTML5_REAL_ESTATE_AD = 8; - - // Dynamic HTML5 custom ad. This product type requires the - // upload_media_bundle field in DisplayUploadAdInfo to be set. Can only be - // used in a custom campaign. - DYNAMIC_HTML5_CUSTOM_AD = 9; - - // Dynamic HTML5 travel ad. This product type requires the - // upload_media_bundle field in DisplayUploadAdInfo to be set. Can only be - // used in a travel campaign. - DYNAMIC_HTML5_TRAVEL_AD = 10; - - // Dynamic HTML5 hotel ad. This product type requires the - // upload_media_bundle field in DisplayUploadAdInfo to be set. Can only be - // used in a hotel campaign. - DYNAMIC_HTML5_HOTEL_AD = 11; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/distance_bucket.proto b/third_party/googleapis/google/ads/googleads/v3/enums/distance_bucket.proto deleted file mode 100644 index f598de3ba..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/distance_bucket.proto +++ /dev/null @@ -1,127 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "DistanceBucketProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing distance buckets. - -// Container for distance buckets of a user’s distance from an advertiser’s -// location extension. -message DistanceBucketEnum { - // The distance bucket for a user’s distance from an advertiser’s location - // extension. - enum DistanceBucket { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // User was within 700m of the location. - WITHIN_700M = 2; - - // User was within 1KM of the location. - WITHIN_1KM = 3; - - // User was within 5KM of the location. - WITHIN_5KM = 4; - - // User was within 10KM of the location. - WITHIN_10KM = 5; - - // User was within 15KM of the location. - WITHIN_15KM = 6; - - // User was within 20KM of the location. - WITHIN_20KM = 7; - - // User was within 25KM of the location. - WITHIN_25KM = 8; - - // User was within 30KM of the location. - WITHIN_30KM = 9; - - // User was within 35KM of the location. - WITHIN_35KM = 10; - - // User was within 40KM of the location. - WITHIN_40KM = 11; - - // User was within 45KM of the location. - WITHIN_45KM = 12; - - // User was within 50KM of the location. - WITHIN_50KM = 13; - - // User was within 55KM of the location. - WITHIN_55KM = 14; - - // User was within 60KM of the location. - WITHIN_60KM = 15; - - // User was within 65KM of the location. - WITHIN_65KM = 16; - - // User was beyond 65KM of the location. - BEYOND_65KM = 17; - - // User was within 0.7 miles of the location. - WITHIN_0_7MILES = 18; - - // User was within 1 mile of the location. - WITHIN_1MILE = 19; - - // User was within 5 miles of the location. - WITHIN_5MILES = 20; - - // User was within 10 miles of the location. - WITHIN_10MILES = 21; - - // User was within 15 miles of the location. - WITHIN_15MILES = 22; - - // User was within 20 miles of the location. - WITHIN_20MILES = 23; - - // User was within 25 miles of the location. - WITHIN_25MILES = 24; - - // User was within 30 miles of the location. - WITHIN_30MILES = 25; - - // User was within 35 miles of the location. - WITHIN_35MILES = 26; - - // User was within 40 miles of the location. - WITHIN_40MILES = 27; - - // User was beyond 40 miles of the location. - BEYOND_40MILES = 28; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/dsa_page_feed_criterion_field.proto b/third_party/googleapis/google/ads/googleads/v3/enums/dsa_page_feed_criterion_field.proto deleted file mode 100644 index ac4ddad9e..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/dsa_page_feed_criterion_field.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "DsaPageFeedCriterionFieldProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing Dynamic Search Ad Page Feed criterion fields. - -// Values for Dynamic Search Ad Page Feed criterion fields. -message DsaPageFeedCriterionFieldEnum { - // Possible values for Dynamic Search Ad Page Feed criterion fields. - enum DsaPageFeedCriterionField { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Data Type: URL or URL_LIST. URL of the web page you want to target. - PAGE_URL = 2; - - // Data Type: STRING_LIST. The labels that will help you target ads within - // your page feed. - LABEL = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/education_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v3/enums/education_placeholder_field.proto deleted file mode 100644 index 51912c931..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/education_placeholder_field.proto +++ /dev/null @@ -1,111 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "EducationPlaceholderFieldProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing Education placeholder fields. - -// Values for Education placeholder fields. -// For more information about dynamic remarketing feeds, see -// https://support.google.com/google-ads/answer/6053288. -message EducationPlaceholderFieldEnum { - // Possible values for Education placeholder fields. - enum EducationPlaceholderField { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Data Type: STRING. Required. Combination of PROGRAM ID and LOCATION ID - // must be unique per offer. - PROGRAM_ID = 2; - - // Data Type: STRING. Combination of PROGRAM ID and LOCATION ID must be - // unique per offer. - LOCATION_ID = 3; - - // Data Type: STRING. Required. Main headline with program name to be shown - // in dynamic ad. - PROGRAM_NAME = 4; - - // Data Type: STRING. Area of study that can be shown in dynamic ad. - AREA_OF_STUDY = 5; - - // Data Type: STRING. Description of program that can be shown in dynamic - // ad. - PROGRAM_DESCRIPTION = 6; - - // Data Type: STRING. Name of school that can be shown in dynamic ad. - SCHOOL_NAME = 7; - - // Data Type: STRING. Complete school address, including postal code. - ADDRESS = 8; - - // Data Type: URL. Image to be displayed in ads. - THUMBNAIL_IMAGE_URL = 9; - - // Data Type: URL. Alternative hosted file of image to be used in the ad. - ALTERNATIVE_THUMBNAIL_IMAGE_URL = 10; - - // Data Type: URL_LIST. Required. Final URLs to be used in ad when using - // Upgraded URLs; the more specific the better (e.g. the individual URL of a - // specific program and its location). - FINAL_URLS = 11; - - // Data Type: URL_LIST. Final mobile URLs for the ad when using Upgraded - // URLs. - FINAL_MOBILE_URLS = 12; - - // Data Type: URL. Tracking template for the ad when using Upgraded URLs. - TRACKING_URL = 13; - - // Data Type: STRING_LIST. Keywords used for product retrieval. - CONTEXTUAL_KEYWORDS = 14; - - // Data Type: STRING. Android app link. Must be formatted as: - // android-app://{package_id}/{scheme}/{host_path}. - // The components are defined as follows: - // package_id: app ID as specified in Google Play. - // scheme: the scheme to pass to the application. Can be HTTP, or a custom - // scheme. - // host_path: identifies the specific content within your application. - ANDROID_APP_LINK = 15; - - // Data Type: STRING_LIST. List of recommended program IDs to show together - // with this item. - SIMILAR_PROGRAM_IDS = 16; - - // Data Type: STRING. iOS app link. - IOS_APP_LINK = 17; - - // Data Type: INT64. iOS app store ID. - IOS_APP_STORE_ID = 18; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/extension_setting_device.proto b/third_party/googleapis/google/ads/googleads/v3/enums/extension_setting_device.proto deleted file mode 100644 index ac615623d..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/extension_setting_device.proto +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ExtensionSettingDeviceProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing extension setting device type. - -// Container for enum describing extension setting device types. -message ExtensionSettingDeviceEnum { - // Possible device types for an extension setting. - enum ExtensionSettingDevice { - // Not specified. - UNSPECIFIED = 0; - - // The value is unknown in this version. - UNKNOWN = 1; - - // Mobile. The extensions in the extension setting will only serve on - // mobile devices. - MOBILE = 2; - - // Desktop. The extensions in the extension setting will only serve on - // desktop devices. - DESKTOP = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/extension_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/extension_type.proto deleted file mode 100644 index e864c4b5a..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/extension_type.proto +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ExtensionTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing extension type. - -// Container for enum describing possible data types for an extension in an -// extension setting. -message ExtensionTypeEnum { - // Possible data types for an extension in an extension setting. - enum ExtensionType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // None. - NONE = 2; - - // App. - APP = 3; - - // Call. - CALL = 4; - - // Callout. - CALLOUT = 5; - - // Message. - MESSAGE = 6; - - // Price. - PRICE = 7; - - // Promotion. - PROMOTION = 8; - - // Sitelink. - SITELINK = 10; - - // Structured snippet. - STRUCTURED_SNIPPET = 11; - - // Location. - LOCATION = 12; - - // Affiliate location. - AFFILIATE_LOCATION = 13; - - // Hotel callout - HOTEL_CALLOUT = 15; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/external_conversion_source.proto b/third_party/googleapis/google/ads/googleads/v3/enums/external_conversion_source.proto deleted file mode 100644 index 2ce5c64eb..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/external_conversion_source.proto +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ExternalConversionSourceProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Container for enum describing the external conversion source that is -// associated with a ConversionAction. -message ExternalConversionSourceEnum { - // The external conversion source that is associated with a ConversionAction. - enum ExternalConversionSource { - // Not specified. - UNSPECIFIED = 0; - - // Represents value unknown in this version. - UNKNOWN = 1; - - // Conversion that occurs when a user navigates to a particular webpage - // after viewing an ad; Displayed in Google Ads UI as 'Website'. - WEBPAGE = 2; - - // Conversion that comes from linked Google Analytics goal or transaction; - // Displayed in Google Ads UI as 'Analytics'. - ANALYTICS = 3; - - // Website conversion that is uploaded through ConversionUploadService; - // Displayed in Google Ads UI as 'Import from clicks'. - UPLOAD = 4; - - // Conversion that occurs when a user clicks on a call extension directly on - // an ad; Displayed in Google Ads UI as 'Calls from ads'. - AD_CALL_METRICS = 5; - - // Conversion that occurs when a user calls a dynamically-generated phone - // number (by installed javascript) from an advertiser's website after - // clicking on an ad; Displayed in Google Ads UI as 'Calls from website'. - WEBSITE_CALL_METRICS = 6; - - // Conversion that occurs when a user visits an advertiser's retail store - // after clicking on a Google ad; - // Displayed in Google Ads UI as 'Store visits'. - STORE_VISITS = 7; - - // Conversion that occurs when a user takes an in-app action such as a - // purchase in an Android app; - // Displayed in Google Ads UI as 'Android in-app action'. - ANDROID_IN_APP = 8; - - // Conversion that occurs when a user takes an in-app action such as a - // purchase in an iOS app; - // Displayed in Google Ads UI as 'iOS in-app action'. - IOS_IN_APP = 9; - - // Conversion that occurs when a user opens an iOS app for the first time; - // Displayed in Google Ads UI as 'iOS app install (first open)'. - IOS_FIRST_OPEN = 10; - - // Legacy app conversions that do not have an AppPlatform provided; - // Displayed in Google Ads UI as 'Mobile app'. - APP_UNSPECIFIED = 11; - - // Conversion that occurs when a user opens an Android app for the first - // time; Displayed in Google Ads UI as 'Android app install (first open)'. - ANDROID_FIRST_OPEN = 12; - - // Call conversion that is uploaded through ConversionUploadService; - // Displayed in Google Ads UI as 'Import from calls'. - UPLOAD_CALLS = 13; - - // Conversion that comes from a linked Firebase event; - // Displayed in Google Ads UI as 'Firebase'. - FIREBASE = 14; - - // Conversion that occurs when a user clicks on a mobile phone number; - // Displayed in Google Ads UI as 'Phone number clicks'. - CLICK_TO_CALL = 15; - - // Conversion that comes from Salesforce; - // Displayed in Google Ads UI as 'Salesforce.com'. - SALESFORCE = 16; - - // Conversion that comes from in-store purchases recorded by CRM; - // Displayed in Google Ads UI as 'Store sales (data partner)'. - STORE_SALES_CRM = 17; - - // Conversion that comes from in-store purchases from payment network; - // Displayed in Google Ads UI as 'Store sales (payment network)'. - STORE_SALES_PAYMENT_NETWORK = 18; - - // Codeless Google Play conversion; - // Displayed in Google Ads UI as 'Google Play'. - GOOGLE_PLAY = 19; - - // Conversion that comes from a linked third-party app analytics event; - // Displayed in Google Ads UI as 'Third-party app analytics'. - THIRD_PARTY_APP_ANALYTICS = 20; - - // Conversion that is controlled by Google Attribution. - GOOGLE_ATTRIBUTION = 21; - - // Store Sales conversion based on first-party or third-party merchant data - // uploads. Displayed in Google Ads UI as 'Store sales (direct)'. - STORE_SALES_DIRECT = 22; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/feed_attribute_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/feed_attribute_type.proto deleted file mode 100644 index 5a8d414c1..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/feed_attribute_type.proto +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "FeedAttributeTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing feed attribute type. - -// Container for enum describing possible data types for a feed attribute. -message FeedAttributeTypeEnum { - // Possible data types for a feed attribute. - enum FeedAttributeType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Int64. - INT64 = 2; - - // Double. - DOUBLE = 3; - - // String. - STRING = 4; - - // Boolean. - BOOLEAN = 5; - - // Url. - URL = 6; - - // Datetime. - DATE_TIME = 7; - - // Int64 list. - INT64_LIST = 8; - - // Double (8 bytes) list. - DOUBLE_LIST = 9; - - // String list. - STRING_LIST = 10; - - // Boolean list. - BOOLEAN_LIST = 11; - - // Url list. - URL_LIST = 12; - - // Datetime list. - DATE_TIME_LIST = 13; - - // Price. - PRICE = 14; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/feed_item_quality_approval_status.proto b/third_party/googleapis/google/ads/googleads/v3/enums/feed_item_quality_approval_status.proto deleted file mode 100644 index 9e37b1b3d..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/feed_item_quality_approval_status.proto +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "FeedItemQualityApprovalStatusProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing feed item quality evaluation approval statuses. - -// Container for enum describing possible quality evaluation approval statuses -// of a feed item. -message FeedItemQualityApprovalStatusEnum { - // The possible quality evaluation approval statuses of a feed item. - enum FeedItemQualityApprovalStatus { - // No value has been specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Meets all quality expectations. - APPROVED = 2; - - // Does not meet some quality expectations. The specific reason is found in - // the quality_disapproval_reasons field. - DISAPPROVED = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/feed_item_quality_disapproval_reason.proto b/third_party/googleapis/google/ads/googleads/v3/enums/feed_item_quality_disapproval_reason.proto deleted file mode 100644 index 1bf0dc718..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/feed_item_quality_disapproval_reason.proto +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "FeedItemQualityDisapprovalReasonProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing feed item quality disapproval reasons. - -// Container for enum describing possible quality evaluation disapproval reasons -// of a feed item. -message FeedItemQualityDisapprovalReasonEnum { - // The possible quality evaluation disapproval reasons of a feed item. - enum FeedItemQualityDisapprovalReason { - // No value has been specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Price contains repetitive headers. - PRICE_TABLE_REPETITIVE_HEADERS = 2; - - // Price contains repetitive description. - PRICE_TABLE_REPETITIVE_DESCRIPTION = 3; - - // Price contains inconsistent items. - PRICE_TABLE_INCONSISTENT_ROWS = 4; - - // Price contains qualifiers in description. - PRICE_DESCRIPTION_HAS_PRICE_QUALIFIERS = 5; - - // Price contains an unsupported language. - PRICE_UNSUPPORTED_LANGUAGE = 6; - - // Price item header is not relevant to the price type. - PRICE_TABLE_ROW_HEADER_TABLE_TYPE_MISMATCH = 7; - - // Price item header has promotional text. - PRICE_TABLE_ROW_HEADER_HAS_PROMOTIONAL_TEXT = 8; - - // Price item description is not relevant to the item header. - PRICE_TABLE_ROW_DESCRIPTION_NOT_RELEVANT = 9; - - // Price item description contains promotional text. - PRICE_TABLE_ROW_DESCRIPTION_HAS_PROMOTIONAL_TEXT = 10; - - // Price item header and description are repetitive. - PRICE_TABLE_ROW_HEADER_DESCRIPTION_REPETITIVE = 11; - - // Price item is in a foreign language, nonsense, or can't be rated. - PRICE_TABLE_ROW_UNRATEABLE = 12; - - // Price item price is invalid or inaccurate. - PRICE_TABLE_ROW_PRICE_INVALID = 13; - - // Price item URL is invalid or irrelevant. - PRICE_TABLE_ROW_URL_INVALID = 14; - - // Price item header or description has price. - PRICE_HEADER_OR_DESCRIPTION_HAS_PRICE = 15; - - // Structured snippet values do not match the header. - STRUCTURED_SNIPPETS_HEADER_POLICY_VIOLATED = 16; - - // Structured snippet values are repeated. - STRUCTURED_SNIPPETS_REPEATED_VALUES = 17; - - // Structured snippet values violate editorial guidelines like punctuation. - STRUCTURED_SNIPPETS_EDITORIAL_GUIDELINES = 18; - - // Structured snippet contain promotional text. - STRUCTURED_SNIPPETS_HAS_PROMOTIONAL_TEXT = 19; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/feed_item_status.proto b/third_party/googleapis/google/ads/googleads/v3/enums/feed_item_status.proto deleted file mode 100644 index 33d8fe730..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/feed_item_status.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "FeedItemStatusProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing feed item status. - -// Container for enum describing possible statuses of a feed item. -message FeedItemStatusEnum { - // Possible statuses of a feed item. - enum FeedItemStatus { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Feed item is enabled. - ENABLED = 2; - - // Feed item has been removed. - REMOVED = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/feed_item_target_device.proto b/third_party/googleapis/google/ads/googleads/v3/enums/feed_item_target_device.proto deleted file mode 100644 index c750f6622..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/feed_item_target_device.proto +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "FeedItemTargetDeviceProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing feed item target device type. - -// Container for enum describing possible data types for a feed item target -// device. -message FeedItemTargetDeviceEnum { - // Possible data types for a feed item target device. - enum FeedItemTargetDevice { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Mobile. - MOBILE = 2; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/feed_item_target_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/feed_item_target_type.proto deleted file mode 100644 index dd046c965..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/feed_item_target_type.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "FeedItemTargetTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing feed item target type status. - -// Container for enum describing possible types of a feed item target. -message FeedItemTargetTypeEnum { - // Possible type of a feed item target. - enum FeedItemTargetType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Feed item targets a campaign. - CAMPAIGN = 2; - - // Feed item targets an ad group. - AD_GROUP = 3; - - // Feed item targets a criterion. - CRITERION = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/feed_item_validation_status.proto b/third_party/googleapis/google/ads/googleads/v3/enums/feed_item_validation_status.proto deleted file mode 100644 index c083d14a6..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/feed_item_validation_status.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "FeedItemValidationStatusProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing feed item validation statuses. - -// Container for enum describing possible validation statuses of a feed item. -message FeedItemValidationStatusEnum { - // The possible validation statuses of a feed item. - enum FeedItemValidationStatus { - // No value has been specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Validation pending. - PENDING = 2; - - // An error was found. - INVALID = 3; - - // Feed item is semantically well-formed. - VALID = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/feed_link_status.proto b/third_party/googleapis/google/ads/googleads/v3/enums/feed_link_status.proto deleted file mode 100644 index 92253fbb2..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/feed_link_status.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "FeedLinkStatusProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing status of a feed link. - -// Container for an enum describing possible statuses of a feed link. -message FeedLinkStatusEnum { - // Possible statuses of a feed link. - enum FeedLinkStatus { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Feed link is enabled. - ENABLED = 2; - - // Feed link has been removed. - REMOVED = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/feed_mapping_criterion_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/feed_mapping_criterion_type.proto deleted file mode 100644 index fc6510574..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/feed_mapping_criterion_type.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "FeedMappingCriterionTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing criterion types for feed mappings. - -// Container for enum describing possible criterion types for a feed mapping. -message FeedMappingCriterionTypeEnum { - // Possible placeholder types for a feed mapping. - enum FeedMappingCriterionType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Allows campaign targeting at locations within a location feed. - LOCATION_EXTENSION_TARGETING = 4; - - // Allows url targeting for your dynamic search ads within a page feed. - DSA_PAGE_FEED = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/feed_mapping_status.proto b/third_party/googleapis/google/ads/googleads/v3/enums/feed_mapping_status.proto deleted file mode 100644 index 06fb88c1b..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/feed_mapping_status.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "FeedMappingStatusProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing feed mapping status. - -// Container for enum describing possible statuses of a feed mapping. -message FeedMappingStatusEnum { - // Possible statuses of a feed mapping. - enum FeedMappingStatus { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Feed mapping is enabled. - ENABLED = 2; - - // Feed mapping has been removed. - REMOVED = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/feed_origin.proto b/third_party/googleapis/google/ads/googleads/v3/enums/feed_origin.proto deleted file mode 100644 index b8e3fd7a1..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/feed_origin.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "FeedOriginProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing feed origin. - -// Container for enum describing possible values for a feed origin. -message FeedOriginEnum { - // Possible values for a feed origin. - enum FeedOrigin { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The FeedAttributes for this Feed are managed by the - // user. Users can add FeedAttributes to this Feed. - USER = 2; - - // The FeedAttributes for an GOOGLE Feed are created by Google. A feed of - // this type is maintained by Google and will have the correct attributes - // for the placeholder type of the feed. - GOOGLE = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/feed_status.proto b/third_party/googleapis/google/ads/googleads/v3/enums/feed_status.proto deleted file mode 100644 index adb38a24c..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/feed_status.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "FeedStatusProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing feed status. - -// Container for enum describing possible statuses of a feed. -message FeedStatusEnum { - // Possible statuses of a feed. - enum FeedStatus { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Feed is enabled. - ENABLED = 2; - - // Feed has been removed. - REMOVED = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/flight_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v3/enums/flight_placeholder_field.proto deleted file mode 100644 index 2e2c822b1..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/flight_placeholder_field.proto +++ /dev/null @@ -1,118 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "FlightsPlaceholderFieldProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing Flight placeholder fields. - -// Values for Flight placeholder fields. -// For more information about dynamic remarketing feeds, see -// https://support.google.com/google-ads/answer/6053288. -message FlightPlaceholderFieldEnum { - // Possible values for Flight placeholder fields. - enum FlightPlaceholderField { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Data Type: STRING. Required. Destination id. Example: PAR, LON. - // For feed items that only have destination id, destination id must be a - // unique key. For feed items that have both destination id and origin id, - // then the combination must be a unique key. - DESTINATION_ID = 2; - - // Data Type: STRING. Origin id. Example: PAR, LON. - // Optional. Combination of destination id and origin id must be unique per - // offer. - ORIGIN_ID = 3; - - // Data Type: STRING. Required. Main headline with product name to be shown - // in dynamic ad. - FLIGHT_DESCRIPTION = 4; - - // Data Type: STRING. Shorter names are recommended. - ORIGIN_NAME = 5; - - // Data Type: STRING. Shorter names are recommended. - DESTINATION_NAME = 6; - - // Data Type: STRING. Price to be shown in the ad. - // Example: "100.00 USD" - FLIGHT_PRICE = 7; - - // Data Type: STRING. Formatted price to be shown in the ad. - // Example: "Starting at $100.00 USD", "$80 - $100" - FORMATTED_PRICE = 8; - - // Data Type: STRING. Sale price to be shown in the ad. - // Example: "80.00 USD" - FLIGHT_SALE_PRICE = 9; - - // Data Type: STRING. Formatted sale price to be shown in the ad. - // Example: "On sale for $80.00", "$60 - $80" - FORMATTED_SALE_PRICE = 10; - - // Data Type: URL. Image to be displayed in the ad. - IMAGE_URL = 11; - - // Data Type: URL_LIST. Required. Final URLs for the ad when using Upgraded - // URLs. User will be redirected to these URLs when they click on an ad, or - // when they click on a specific flight for ads that show multiple - // flights. - FINAL_URLS = 12; - - // Data Type: URL_LIST. Final mobile URLs for the ad when using Upgraded - // URLs. - FINAL_MOBILE_URLS = 13; - - // Data Type: URL. Tracking template for the ad when using Upgraded URLs. - TRACKING_URL = 14; - - // Data Type: STRING. Android app link. Must be formatted as: - // android-app://{package_id}/{scheme}/{host_path}. - // The components are defined as follows: - // package_id: app ID as specified in Google Play. - // scheme: the scheme to pass to the application. Can be HTTP, or a custom - // scheme. - // host_path: identifies the specific content within your application. - ANDROID_APP_LINK = 15; - - // Data Type: STRING_LIST. List of recommended destination IDs to show - // together with this item. - SIMILAR_DESTINATION_IDS = 16; - - // Data Type: STRING. iOS app link. - IOS_APP_LINK = 17; - - // Data Type: INT64. iOS app store ID. - IOS_APP_STORE_ID = 18; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/frequency_cap_event_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/frequency_cap_event_type.proto deleted file mode 100644 index 53492e727..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/frequency_cap_event_type.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "FrequencyCapEventTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing frequency caps. - -// Container for enum describing the type of event that the cap applies to. -message FrequencyCapEventTypeEnum { - // The type of event that the cap applies to (e.g. impression). - enum FrequencyCapEventType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The cap applies on ad impressions. - IMPRESSION = 2; - - // The cap applies on video ad views. - VIDEO_VIEW = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/frequency_cap_level.proto b/third_party/googleapis/google/ads/googleads/v3/enums/frequency_cap_level.proto deleted file mode 100644 index 497671d38..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/frequency_cap_level.proto +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "FrequencyCapLevelProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing frequency caps. - -// Container for enum describing the level on which the cap is to be applied. -message FrequencyCapLevelEnum { - // The level on which the cap is to be applied (e.g ad group ad, ad group). - // Cap is applied to all the resources of this level. - enum FrequencyCapLevel { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The cap is applied at the ad group ad level. - AD_GROUP_AD = 2; - - // The cap is applied at the ad group level. - AD_GROUP = 3; - - // The cap is applied at the campaign level. - CAMPAIGN = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/frequency_cap_time_unit.proto b/third_party/googleapis/google/ads/googleads/v3/enums/frequency_cap_time_unit.proto deleted file mode 100644 index 70f105263..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/frequency_cap_time_unit.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "FrequencyCapTimeUnitProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing frequency caps. - -// Container for enum describing the unit of time the cap is defined at. -message FrequencyCapTimeUnitEnum { - // Unit of time the cap is defined at (e.g. day, week). - enum FrequencyCapTimeUnit { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The cap would define limit per one day. - DAY = 2; - - // The cap would define limit per one week. - WEEK = 3; - - // The cap would define limit per one month. - MONTH = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/gender_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/gender_type.proto deleted file mode 100644 index e29af5f44..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/gender_type.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "GenderTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing gender types. - -// Container for enum describing the type of demographic genders. -message GenderTypeEnum { - // The type of demographic genders (e.g. female). - enum GenderType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Male. - MALE = 10; - - // Female. - FEMALE = 11; - - // Undetermined gender. - UNDETERMINED = 20; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/geo_target_constant_status.proto b/third_party/googleapis/google/ads/googleads/v3/enums/geo_target_constant_status.proto deleted file mode 100644 index 067121467..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/geo_target_constant_status.proto +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "GeoTargetConstantStatusProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing geo target constant statuses. - -// Container for describing the status of a geo target constant. -message GeoTargetConstantStatusEnum { - // The possible statuses of a geo target constant. - enum GeoTargetConstantStatus { - // No value has been specified. - UNSPECIFIED = 0; - - // The received value is not known in this version. - // - // This is a response-only value. - UNKNOWN = 1; - - // The geo target constant is valid. - ENABLED = 2; - - // The geo target constant is obsolete and will be removed. - REMOVAL_PLANNED = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/geo_targeting_restriction.proto b/third_party/googleapis/google/ads/googleads/v3/enums/geo_targeting_restriction.proto deleted file mode 100644 index dc5c15c0e..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/geo_targeting_restriction.proto +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "GeoTargetingRestrictionProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing GeoTargetingRestriction. - -// Message describing feed item geo targeting restriction. -message GeoTargetingRestrictionEnum { - // A restriction used to determine if the request context's - // geo should be matched. - enum GeoTargetingRestriction { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Indicates that request context should match the physical location of - // the user. - LOCATION_OF_PRESENCE = 2; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/geo_targeting_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/geo_targeting_type.proto deleted file mode 100644 index a3a17b6ee..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/geo_targeting_type.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "GeoTargetingTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing geo targeting types. - -// Container for enum describing possible geo targeting types. -message GeoTargetingTypeEnum { - // The possible geo targeting types. - enum GeoTargetingType { - // Not specified. - UNSPECIFIED = 0; - - // The value is unknown in this version. - UNKNOWN = 1; - - // Location the user is interested in while making the query. - AREA_OF_INTEREST = 2; - - // Location of the user issuing the query. - LOCATION_OF_PRESENCE = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/google_ads_field_category.proto b/third_party/googleapis/google/ads/googleads/v3/enums/google_ads_field_category.proto deleted file mode 100644 index ab5880744..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/google_ads_field_category.proto +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "GoogleAdsFieldCategoryProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing GoogleAdsField categories - -// Container for enum that determines if the described artifact is a resource -// or a field, and if it is a field, when it segments search queries. -message GoogleAdsFieldCategoryEnum { - // The category of the artifact. - enum GoogleAdsFieldCategory { - // Unspecified - UNSPECIFIED = 0; - - // Unknown - UNKNOWN = 1; - - // The described artifact is a resource. - RESOURCE = 2; - - // The described artifact is a field and is an attribute of a resource. - // Including a resource attribute field in a query may segment the query if - // the resource to which it is attributed segments the resource found in - // the FROM clause. - ATTRIBUTE = 3; - - // The described artifact is a field and always segments search queries. - SEGMENT = 5; - - // The described artifact is a field and is a metric. It never segments - // search queries. - METRIC = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/google_ads_field_data_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/google_ads_field_data_type.proto deleted file mode 100644 index 43d4c7e1e..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/google_ads_field_data_type.proto +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "GoogleAdsFieldDataTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing GoogleAdsField data types - -// Container holding the various data types. -message GoogleAdsFieldDataTypeEnum { - // These are the various types a GoogleAdsService artifact may take on. - enum GoogleAdsFieldDataType { - // Unspecified - UNSPECIFIED = 0; - - // Unknown - UNKNOWN = 1; - - // Maps to google.protobuf.BoolValue - // - // Applicable operators: =, != - BOOLEAN = 2; - - // Maps to google.protobuf.StringValue. It can be compared using the set of - // operators specific to dates however. - // - // Applicable operators: =, <, >, <=, >=, BETWEEN, DURING, and IN - DATE = 3; - - // Maps to google.protobuf.DoubleValue - // - // Applicable operators: =, !=, <, >, IN, NOT IN - DOUBLE = 4; - - // Maps to an enum. It's specific definition can be found at type_url. - // - // Applicable operators: =, !=, IN, NOT IN - ENUM = 5; - - // Maps to google.protobuf.FloatValue - // - // Applicable operators: =, !=, <, >, IN, NOT IN - FLOAT = 6; - - // Maps to google.protobuf.Int32Value - // - // Applicable operators: =, !=, <, >, <=, >=, BETWEEN, IN, NOT IN - INT32 = 7; - - // Maps to google.protobuf.Int64Value - // - // Applicable operators: =, !=, <, >, <=, >=, BETWEEN, IN, NOT IN - INT64 = 8; - - // Maps to a protocol buffer message type. The data type's details can be - // found in type_url. - // - // No operators work with MESSAGE fields. - MESSAGE = 9; - - // Maps to google.protobuf.StringValue. Represents the resource name - // (unique id) of a resource or one of its foreign keys. - // - // No operators work with RESOURCE_NAME fields. - RESOURCE_NAME = 10; - - // Maps to google.protobuf.StringValue. - // - // Applicable operators: =, !=, LIKE, NOT LIKE, IN, NOT IN - STRING = 11; - - // Maps to google.protobuf.UInt64Value - // - // Applicable operators: =, !=, <, >, <=, >=, BETWEEN, IN, NOT IN - UINT64 = 12; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/hotel_date_selection_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/hotel_date_selection_type.proto deleted file mode 100644 index d21e23706..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/hotel_date_selection_type.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "HotelDateSelectionTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing hotel date selection types. - -// Container for enum describing possible hotel date selection types -message HotelDateSelectionTypeEnum { - // Enum describing possible hotel date selection types. - enum HotelDateSelectionType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Dates selected by default. - DEFAULT_SELECTION = 50; - - // Dates selected by the user. - USER_SELECTED = 51; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/hotel_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v3/enums/hotel_placeholder_field.proto deleted file mode 100644 index 776e5aa86..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/hotel_placeholder_field.proto +++ /dev/null @@ -1,124 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "HotelsPlaceholderFieldProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing Hotel placeholder fields. - -// Values for Hotel placeholder fields. -// For more information about dynamic remarketing feeds, see -// https://support.google.com/google-ads/answer/6053288. -message HotelPlaceholderFieldEnum { - // Possible values for Hotel placeholder fields. - enum HotelPlaceholderField { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Data Type: STRING. Required. Unique ID. - PROPERTY_ID = 2; - - // Data Type: STRING. Required. Main headline with property name to be shown - // in dynamic ad. - PROPERTY_NAME = 3; - - // Data Type: STRING. Name of destination to be shown in dynamic ad. - DESTINATION_NAME = 4; - - // Data Type: STRING. Description of destination to be shown in dynamic ad. - DESCRIPTION = 5; - - // Data Type: STRING. Complete property address, including postal code. - ADDRESS = 6; - - // Data Type: STRING. Price to be shown in the ad. - // Example: "100.00 USD" - PRICE = 7; - - // Data Type: STRING. Formatted price to be shown in the ad. - // Example: "Starting at $100.00 USD", "$80 - $100" - FORMATTED_PRICE = 8; - - // Data Type: STRING. Sale price to be shown in the ad. - // Example: "80.00 USD" - SALE_PRICE = 9; - - // Data Type: STRING. Formatted sale price to be shown in the ad. - // Example: "On sale for $80.00", "$60 - $80" - FORMATTED_SALE_PRICE = 10; - - // Data Type: URL. Image to be displayed in the ad. - IMAGE_URL = 11; - - // Data Type: STRING. Category of property used to group like items together - // for recommendation engine. - CATEGORY = 12; - - // Data Type: INT64. Star rating (1 to 5) used to group like items - // together for recommendation engine. - STAR_RATING = 13; - - // Data Type: STRING_LIST. Keywords used for product retrieval. - CONTEXTUAL_KEYWORDS = 14; - - // Data Type: URL_LIST. Required. Final URLs for the ad when using Upgraded - // URLs. User will be redirected to these URLs when they click on an ad, or - // when they click on a specific flight for ads that show multiple - // flights. - FINAL_URLS = 15; - - // Data Type: URL_LIST. Final mobile URLs for the ad when using Upgraded - // URLs. - FINAL_MOBILE_URLS = 16; - - // Data Type: URL. Tracking template for the ad when using Upgraded URLs. - TRACKING_URL = 17; - - // Data Type: STRING. Android app link. Must be formatted as: - // android-app://{package_id}/{scheme}/{host_path}. - // The components are defined as follows: - // package_id: app ID as specified in Google Play. - // scheme: the scheme to pass to the application. Can be HTTP, or a custom - // scheme. - // host_path: identifies the specific content within your application. - ANDROID_APP_LINK = 18; - - // Data Type: STRING_LIST. List of recommended property IDs to show together - // with this item. - SIMILAR_PROPERTY_IDS = 19; - - // Data Type: STRING. iOS app link. - IOS_APP_LINK = 20; - - // Data Type: INT64. iOS app store ID. - IOS_APP_STORE_ID = 21; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/hotel_price_bucket.proto b/third_party/googleapis/google/ads/googleads/v3/enums/hotel_price_bucket.proto deleted file mode 100644 index ac9efcef9..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/hotel_price_bucket.proto +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "HotelPriceBucketProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing hotel price buckets. - -// Container for enum describing hotel price bucket for a hotel itinerary. -message HotelPriceBucketEnum { - // Enum describing possible hotel price buckets. - enum HotelPriceBucket { - // Not specified. - UNSPECIFIED = 0; - - // The value is unknown in this version. - UNKNOWN = 1; - - // Tied for lowest price. Partner is within a small variance of the lowest - // price. - LOWEST_TIED = 3; - - // Not lowest price. Partner is not within a small variance of the lowest - // price. - NOT_LOWEST = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/hotel_rate_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/hotel_rate_type.proto deleted file mode 100644 index 0611f8b3e..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/hotel_rate_type.proto +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "HotelRateTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing hotel rate types. - -// Container for enum describing possible hotel rate types. -message HotelRateTypeEnum { - // Enum describing possible hotel rate types. - enum HotelRateType { - // Not specified. - UNSPECIFIED = 0; - - // The value is unknown in this version. - UNKNOWN = 1; - - // Rate type information is unavailable. - UNAVAILABLE = 2; - - // Rates available to everyone. - PUBLIC_RATE = 3; - - // A membership program rate is available and satisfies basic requirements - // like having a public rate available. UI treatment will strikethrough the - // public rate and indicate that a discount is available to the user. For - // more on Qualified Rates, visit - // https://developers.google.com/hotels/hotel-ads/dev-guide/qualified-rates - QUALIFIED_RATE = 4; - - // Rates available to users that satisfy some eligibility criteria. e.g. - // all signed-in users, 20% of mobile users, all mobile users in Canada, - // etc. - PRIVATE_RATE = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/income_range_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/income_range_type.proto deleted file mode 100644 index e2bb50f0c..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/income_range_type.proto +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "IncomeRangeTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing income range types. - -// Container for enum describing the type of demographic income ranges. -message IncomeRangeTypeEnum { - // The type of demographic income ranges (e.g. between 0% to 50%). - enum IncomeRangeType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // 0%-50%. - INCOME_RANGE_0_50 = 510001; - - // 50% to 60%. - INCOME_RANGE_50_60 = 510002; - - // 60% to 70%. - INCOME_RANGE_60_70 = 510003; - - // 70% to 80%. - INCOME_RANGE_70_80 = 510004; - - // 80% to 90%. - INCOME_RANGE_80_90 = 510005; - - // Greater than 90%. - INCOME_RANGE_90_UP = 510006; - - // Undetermined income range. - INCOME_RANGE_UNDETERMINED = 510000; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/interaction_event_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/interaction_event_type.proto deleted file mode 100644 index 5c93c0a82..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/interaction_event_type.proto +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "InteractionEventTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing types of payable and free interactions. - -// Container for enum describing types of payable and free interactions. -message InteractionEventTypeEnum { - // Enum describing possible types of payable and free interactions. - enum InteractionEventType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Click to site. In most cases, this interaction navigates to an external - // location, usually the advertiser's landing page. This is also the default - // InteractionEventType for click events. - CLICK = 2; - - // The user's expressed intent to engage with the ad in-place. - ENGAGEMENT = 3; - - // User viewed a video ad. - VIDEO_VIEW = 4; - - // The default InteractionEventType for ad conversion events. - // This is used when an ad conversion row does NOT indicate - // that the free interactions (i.e., the ad conversions) - // should be 'promoted' and reported as part of the core metrics. - // These are simply other (ad) conversions. - NONE = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/interaction_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/interaction_type.proto deleted file mode 100644 index b50f85ead..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/interaction_type.proto +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "InteractionTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing interaction types. - -// Container for enum describing possible interaction types. -message InteractionTypeEnum { - // Enum describing possible interaction types. - enum InteractionType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Calls. - CALLS = 8000; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/invoice_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/invoice_type.proto deleted file mode 100644 index 0013adcfc..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/invoice_type.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "InvoiceTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing invoice types. - -// Container for enum describing the type of invoices. -message InvoiceTypeEnum { - // The possible type of invoices. - enum InvoiceType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // An invoice with a negative amount. The account receives a credit. - CREDIT_MEMO = 2; - - // An invoice with a positive amount. The account owes a balance. - INVOICE = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/job_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v3/enums/job_placeholder_field.proto deleted file mode 100644 index ac09c8933..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/job_placeholder_field.proto +++ /dev/null @@ -1,115 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "JobsPlaceholderFieldProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing Job placeholder fields. - -// Values for Job placeholder fields. -// For more information about dynamic remarketing feeds, see -// https://support.google.com/google-ads/answer/6053288. -message JobPlaceholderFieldEnum { - // Possible values for Job placeholder fields. - enum JobPlaceholderField { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Data Type: STRING. Required. If only JOB_ID is specified, then it must be - // unique. If both JOB_ID and LOCATION_ID are specified, then the - // pair must be unique. - // ID) pair must be unique. - JOB_ID = 2; - - // Data Type: STRING. Combination of JOB_ID and LOCATION_ID must be unique - // per offer. - LOCATION_ID = 3; - - // Data Type: STRING. Required. Main headline with job title to be shown in - // dynamic ad. - TITLE = 4; - - // Data Type: STRING. Job subtitle to be shown in dynamic ad. - SUBTITLE = 5; - - // Data Type: STRING. Description of job to be shown in dynamic ad. - DESCRIPTION = 6; - - // Data Type: URL. Image to be displayed in the ad. Highly recommended for - // image ads. - IMAGE_URL = 7; - - // Data Type: STRING. Category of property used to group like items together - // for recommendation engine. - CATEGORY = 8; - - // Data Type: STRING_LIST. Keywords used for product retrieval. - CONTEXTUAL_KEYWORDS = 9; - - // Data Type: STRING. Complete property address, including postal code. - ADDRESS = 10; - - // Data Type: STRING. Salary or salary range of job to be shown in dynamic - // ad. - SALARY = 11; - - // Data Type: URL_LIST. Required. Final URLs to be used in ad when using - // Upgraded URLs; the more specific the better (e.g. the individual URL of a - // specific job and its location). - FINAL_URLS = 12; - - // Data Type: URL_LIST. Final mobile URLs for the ad when using Upgraded - // URLs. - FINAL_MOBILE_URLS = 14; - - // Data Type: URL. Tracking template for the ad when using Upgraded URLs. - TRACKING_URL = 15; - - // Data Type: STRING. Android app link. Must be formatted as: - // android-app://{package_id}/{scheme}/{host_path}. - // The components are defined as follows: - // package_id: app ID as specified in Google Play. - // scheme: the scheme to pass to the application. Can be HTTP, or a custom - // scheme. - // host_path: identifies the specific content within your application. - ANDROID_APP_LINK = 16; - - // Data Type: STRING_LIST. List of recommended job IDs to show together with - // this item. - SIMILAR_JOB_IDS = 17; - - // Data Type: STRING. iOS app link. - IOS_APP_LINK = 18; - - // Data Type: INT64. iOS app store ID. - IOS_APP_STORE_ID = 19; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/keyword_match_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/keyword_match_type.proto deleted file mode 100644 index 73a60905b..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/keyword_match_type.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "KeywordMatchTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing Keyword match types. - -// Message describing Keyword match types. -message KeywordMatchTypeEnum { - // Possible Keyword match types. - enum KeywordMatchType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Exact match. - EXACT = 2; - - // Phrase match. - PHRASE = 3; - - // Broad match. - BROAD = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/keyword_plan_competition_level.proto b/third_party/googleapis/google/ads/googleads/v3/enums/keyword_plan_competition_level.proto deleted file mode 100644 index 324e313dc..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/keyword_plan_competition_level.proto +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "KeywordPlanCompetitionLevelProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing Keyword Planner competition levels. - -// Container for enumeration of keyword competition levels. The competition -// level indicates how competitive ad placement is for a keyword and -// is determined by the number of advertisers bidding on that keyword relative -// to all keywords across Google. The competition level can depend on the -// location and Search Network targeting options you've selected. -message KeywordPlanCompetitionLevelEnum { - // Competition level of a keyword. - enum KeywordPlanCompetitionLevel { - // Not specified. - UNSPECIFIED = 0; - - // The value is unknown in this version. - UNKNOWN = 1; - - // Low competition. The Competition Index range for this is [0, 33]. - LOW = 2; - - // Medium competition. The Competition Index range for this is [34, 66]. - MEDIUM = 3; - - // High competition. The Competition Index range for this is [67, 100]. - HIGH = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/keyword_plan_forecast_interval.proto b/third_party/googleapis/google/ads/googleads/v3/enums/keyword_plan_forecast_interval.proto deleted file mode 100644 index c92f37503..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/keyword_plan_forecast_interval.proto +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "KeywordPlanForecastIntervalProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing keyword plan forecast intervals. - -// Container for enumeration of forecast intervals. -message KeywordPlanForecastIntervalEnum { - // Forecast intervals. - enum KeywordPlanForecastInterval { - // Not specified. - UNSPECIFIED = 0; - - // The value is unknown in this version. - UNKNOWN = 1; - - // The next week date range for keyword plan. The next week is based - // on the default locale of the user's account and is mostly SUN-SAT or - // MON-SUN. - // This can be different from next-7 days. - NEXT_WEEK = 3; - - // The next month date range for keyword plan. - NEXT_MONTH = 4; - - // The next quarter date range for keyword plan. - NEXT_QUARTER = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/keyword_plan_network.proto b/third_party/googleapis/google/ads/googleads/v3/enums/keyword_plan_network.proto deleted file mode 100644 index a3b0505fb..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/keyword_plan_network.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "KeywordPlanNetworkProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing Keyword Planner forecastable network types. - -// Container for enumeration of keyword plan forecastable network types. -message KeywordPlanNetworkEnum { - // Enumerates keyword plan forecastable network types. - enum KeywordPlanNetwork { - // Not specified. - UNSPECIFIED = 0; - - // The value is unknown in this version. - UNKNOWN = 1; - - // Google Search. - GOOGLE_SEARCH = 2; - - // Google Search + Search partners. - GOOGLE_SEARCH_AND_PARTNERS = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/label_status.proto b/third_party/googleapis/google/ads/googleads/v3/enums/label_status.proto deleted file mode 100644 index 8b869e64d..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/label_status.proto +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "LabelStatusProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Container for enum describing possible status of a label. -message LabelStatusEnum { - // Possible statuses of a label. - enum LabelStatus { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Label is enabled. - ENABLED = 2; - - // Label is removed. - REMOVED = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/legacy_app_install_ad_app_store.proto b/third_party/googleapis/google/ads/googleads/v3/enums/legacy_app_install_ad_app_store.proto deleted file mode 100644 index c1cb10a80..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/legacy_app_install_ad_app_store.proto +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "LegacyAppInstallAdAppStoreProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing app store types for a legacy app install ad. - -// Container for enum describing app store type in a legacy app install ad. -message LegacyAppInstallAdAppStoreEnum { - // App store type in a legacy app install ad. - enum LegacyAppInstallAdAppStore { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Apple iTunes. - APPLE_APP_STORE = 2; - - // Google Play. - GOOGLE_PLAY = 3; - - // Windows Store. - WINDOWS_STORE = 4; - - // Windows Phone Store. - WINDOWS_PHONE_STORE = 5; - - // The app is hosted in a Chinese app store. - CN_APP_STORE = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/listing_group_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/listing_group_type.proto deleted file mode 100644 index fe75d13c1..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/listing_group_type.proto +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ListingGroupTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing listing groups. - -// Container for enum describing the type of the listing group. -message ListingGroupTypeEnum { - // The type of the listing group. - enum ListingGroupType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Subdivision of products along some listing dimension. These nodes - // are not used by serving to target listing entries, but is purely - // to define the structure of the tree. - SUBDIVISION = 2; - - // Listing group unit that defines a bid. - UNIT = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/local_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v3/enums/local_placeholder_field.proto deleted file mode 100644 index c6f67d9dc..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/local_placeholder_field.proto +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "LocalPlaceholderFieldProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing Local placeholder fields. - -// Values for Local placeholder fields. -// For more information about dynamic remarketing feeds, see -// https://support.google.com/google-ads/answer/6053288. -message LocalPlaceholderFieldEnum { - // Possible values for Local placeholder fields. - enum LocalPlaceholderField { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Data Type: STRING. Required. Unique ID. - DEAL_ID = 2; - - // Data Type: STRING. Required. Main headline with local deal title to be - // shown in dynamic ad. - DEAL_NAME = 3; - - // Data Type: STRING. Local deal subtitle to be shown in dynamic ad. - SUBTITLE = 4; - - // Data Type: STRING. Description of local deal to be shown in dynamic ad. - DESCRIPTION = 5; - - // Data Type: STRING. Price to be shown in the ad. Highly recommended for - // dynamic ads. Example: "100.00 USD" - PRICE = 6; - - // Data Type: STRING. Formatted price to be shown in the ad. - // Example: "Starting at $100.00 USD", "$80 - $100" - FORMATTED_PRICE = 7; - - // Data Type: STRING. Sale price to be shown in the ad. - // Example: "80.00 USD" - SALE_PRICE = 8; - - // Data Type: STRING. Formatted sale price to be shown in the ad. - // Example: "On sale for $80.00", "$60 - $80" - FORMATTED_SALE_PRICE = 9; - - // Data Type: URL. Image to be displayed in the ad. - IMAGE_URL = 10; - - // Data Type: STRING. Complete property address, including postal code. - ADDRESS = 11; - - // Data Type: STRING. Category of local deal used to group like items - // together for recommendation engine. - CATEGORY = 12; - - // Data Type: STRING_LIST. Keywords used for product retrieval. - CONTEXTUAL_KEYWORDS = 13; - - // Data Type: URL_LIST. Required. Final URLs to be used in ad when using - // Upgraded URLs; the more specific the better (e.g. the individual URL of a - // specific local deal and its location). - FINAL_URLS = 14; - - // Data Type: URL_LIST. Final mobile URLs for the ad when using Upgraded - // URLs. - FINAL_MOBILE_URLS = 15; - - // Data Type: URL. Tracking template for the ad when using Upgraded URLs. - TRACKING_URL = 16; - - // Data Type: STRING. Android app link. Must be formatted as: - // android-app://{package_id}/{scheme}/{host_path}. - // The components are defined as follows: - // package_id: app ID as specified in Google Play. - // scheme: the scheme to pass to the application. Can be HTTP, or a custom - // scheme. - // host_path: identifies the specific content within your application. - ANDROID_APP_LINK = 17; - - // Data Type: STRING_LIST. List of recommended local deal IDs to show - // together with this item. - SIMILAR_DEAL_IDS = 18; - - // Data Type: STRING. iOS app link. - IOS_APP_LINK = 19; - - // Data Type: INT64. iOS app store ID. - IOS_APP_STORE_ID = 20; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/location_extension_targeting_criterion_field.proto b/third_party/googleapis/google/ads/googleads/v3/enums/location_extension_targeting_criterion_field.proto deleted file mode 100644 index 99f4bc5e1..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/location_extension_targeting_criterion_field.proto +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "LocationExtensionTargetingCriterionFieldProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing Location Extension Targeting criterion fields. - -// Values for Location Extension Targeting criterion fields. -message LocationExtensionTargetingCriterionFieldEnum { - // Possible values for Location Extension Targeting criterion fields. - enum LocationExtensionTargetingCriterionField { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Data Type: STRING. Line 1 of the business address. - ADDRESS_LINE_1 = 2; - - // Data Type: STRING. Line 2 of the business address. - ADDRESS_LINE_2 = 3; - - // Data Type: STRING. City of the business address. - CITY = 4; - - // Data Type: STRING. Province of the business address. - PROVINCE = 5; - - // Data Type: STRING. Postal code of the business address. - POSTAL_CODE = 6; - - // Data Type: STRING. Country code of the business address. - COUNTRY_CODE = 7; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/location_group_radius_units.proto b/third_party/googleapis/google/ads/googleads/v3/enums/location_group_radius_units.proto deleted file mode 100644 index 7a5480e20..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/location_group_radius_units.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "LocationGroupRadiusUnitsProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing location group radius units. - -// Container for enum describing unit of radius in location group. -message LocationGroupRadiusUnitsEnum { - // The unit of radius distance in location group (e.g. MILES) - enum LocationGroupRadiusUnits { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Meters - METERS = 2; - - // Miles - MILES = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/location_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v3/enums/location_placeholder_field.proto deleted file mode 100644 index c8f4b4a73..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/location_placeholder_field.proto +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "LocationPlaceholderFieldProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing Location placeholder fields. - -// Values for Location placeholder fields. -message LocationPlaceholderFieldEnum { - // Possible values for Location placeholder fields. - enum LocationPlaceholderField { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Data Type: STRING. The name of the business. - BUSINESS_NAME = 2; - - // Data Type: STRING. Line 1 of the business address. - ADDRESS_LINE_1 = 3; - - // Data Type: STRING. Line 2 of the business address. - ADDRESS_LINE_2 = 4; - - // Data Type: STRING. City of the business address. - CITY = 5; - - // Data Type: STRING. Province of the business address. - PROVINCE = 6; - - // Data Type: STRING. Postal code of the business address. - POSTAL_CODE = 7; - - // Data Type: STRING. Country code of the business address. - COUNTRY_CODE = 8; - - // Data Type: STRING. Phone number of the business. - PHONE_NUMBER = 9; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/manager_link_status.proto b/third_party/googleapis/google/ads/googleads/v3/enums/manager_link_status.proto deleted file mode 100644 index 5a5ea0776..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/manager_link_status.proto +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ManagerLinkStatusProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Container for enum describing possible status of a manager and client link. -message ManagerLinkStatusEnum { - // Possible statuses of a link. - enum ManagerLinkStatus { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Indicates current in-effect relationship - ACTIVE = 2; - - // Indicates terminated relationship - INACTIVE = 3; - - // Indicates relationship has been requested by manager, but the client - // hasn't accepted yet. - PENDING = 4; - - // Relationship was requested by the manager, but the client has refused. - REFUSED = 5; - - // Indicates relationship has been requested by manager, but manager - // canceled it. - CANCELED = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/matching_function_context_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/matching_function_context_type.proto deleted file mode 100644 index 3d123233e..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/matching_function_context_type.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "MatchingFunctionContextTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing matching function context types. - -// Container for context types for an operand in a matching function. -message MatchingFunctionContextTypeEnum { - // Possible context types for an operand in a matching function. - enum MatchingFunctionContextType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Feed item id in the request context. - FEED_ITEM_ID = 2; - - // The device being used (possible values are 'Desktop' or 'Mobile'). - DEVICE_NAME = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/matching_function_operator.proto b/third_party/googleapis/google/ads/googleads/v3/enums/matching_function_operator.proto deleted file mode 100644 index 378a21be7..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/matching_function_operator.proto +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "MatchingFunctionOperatorProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing matching function operators. - -// Container for enum describing matching function operator. -message MatchingFunctionOperatorEnum { - // Possible operators in a matching function. - enum MatchingFunctionOperator { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The IN operator. - IN = 2; - - // The IDENTITY operator. - IDENTITY = 3; - - // The EQUALS operator - EQUALS = 4; - - // Operator that takes two or more operands that are of type - // FunctionOperand and checks that all the operands evaluate to true. - // For functions related to ad formats, all the operands must be in - // left_operands. - AND = 5; - - // Operator that returns true if the elements in left_operands contain any - // of the elements in right_operands. Otherwise, return false. The - // right_operands must contain at least 1 and no more than 3 - // ConstantOperands. - CONTAINS_ANY = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/media_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/media_type.proto deleted file mode 100644 index ce85a74e3..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/media_type.proto +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "MediaTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing media types. - -// Container for enum describing the types of media. -message MediaTypeEnum { - // The type of media. - enum MediaType { - // The media type has not been specified. - UNSPECIFIED = 0; - - // The received value is not known in this version. - // - // This is a response-only value. - UNKNOWN = 1; - - // Static image, used for image ad. - IMAGE = 2; - - // Small image, used for map ad. - ICON = 3; - - // ZIP file, used in fields of template ads. - MEDIA_BUNDLE = 4; - - // Audio file. - AUDIO = 5; - - // Video file. - VIDEO = 6; - - // Animated image, such as animated GIF. - DYNAMIC_IMAGE = 7; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/merchant_center_link_status.proto b/third_party/googleapis/google/ads/googleads/v3/enums/merchant_center_link_status.proto deleted file mode 100644 index f60f9b19f..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/merchant_center_link_status.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "MerchantCenterLinkStatusProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing Merchant Center link statuses. - -// Container for enum describing possible statuses of a Google Merchant Center -// link. -message MerchantCenterLinkStatusEnum { - // Describes the possible statuses for a link between a Google Ads customer - // and a Google Merchant Center account. - enum MerchantCenterLinkStatus { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The link is enabled. - ENABLED = 2; - - // The link has no effect. It was proposed by the Merchant Center Account - // owner and hasn't been confirmed by the customer. - PENDING = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/message_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v3/enums/message_placeholder_field.proto deleted file mode 100644 index 57db0f293..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/message_placeholder_field.proto +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "MessagePlaceholderFieldProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing Message placeholder fields. - -// Values for Message placeholder fields. -message MessagePlaceholderFieldEnum { - // Possible values for Message placeholder fields. - enum MessagePlaceholderField { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Data Type: STRING. The name of your business. - BUSINESS_NAME = 2; - - // Data Type: STRING. Country code of phone number. - COUNTRY_CODE = 3; - - // Data Type: STRING. A phone number that's capable of sending and receiving - // text messages. - PHONE_NUMBER = 4; - - // Data Type: STRING. The text that will go in your click-to-message ad. - MESSAGE_EXTENSION_TEXT = 5; - - // Data Type: STRING. The message text automatically shows in people's - // messaging apps when they tap to send you a message. - MESSAGE_TEXT = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/mime_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/mime_type.proto deleted file mode 100644 index 7956c2535..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/mime_type.proto +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "MimeTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing mime types. - -// Container for enum describing the mime types. -message MimeTypeEnum { - // The mime type - enum MimeType { - // The mime type has not been specified. - UNSPECIFIED = 0; - - // The received value is not known in this version. - // - // This is a response-only value. - UNKNOWN = 1; - - // MIME type of image/jpeg. - IMAGE_JPEG = 2; - - // MIME type of image/gif. - IMAGE_GIF = 3; - - // MIME type of image/png. - IMAGE_PNG = 4; - - // MIME type of application/x-shockwave-flash. - FLASH = 5; - - // MIME type of text/html. - TEXT_HTML = 6; - - // MIME type of application/pdf. - PDF = 7; - - // MIME type of application/msword. - MSWORD = 8; - - // MIME type of application/vnd.ms-excel. - MSEXCEL = 9; - - // MIME type of application/rtf. - RTF = 10; - - // MIME type of audio/wav. - AUDIO_WAV = 11; - - // MIME type of audio/mp3. - AUDIO_MP3 = 12; - - // MIME type of application/x-html5-ad-zip. - HTML5_AD_ZIP = 13; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/minute_of_hour.proto b/third_party/googleapis/google/ads/googleads/v3/enums/minute_of_hour.proto deleted file mode 100644 index 1545fe9e4..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/minute_of_hour.proto +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "MinuteOfHourProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing days of week. - -// Container for enumeration of quarter-hours. -message MinuteOfHourEnum { - // Enumerates of quarter-hours. E.g. "FIFTEEN" - enum MinuteOfHour { - // Not specified. - UNSPECIFIED = 0; - - // The value is unknown in this version. - UNKNOWN = 1; - - // Zero minutes past the hour. - ZERO = 2; - - // Fifteen minutes past the hour. - FIFTEEN = 3; - - // Thirty minutes past the hour. - THIRTY = 4; - - // Forty-five minutes past the hour. - FORTY_FIVE = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/mobile_device_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/mobile_device_type.proto deleted file mode 100644 index 8cdec0de8..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/mobile_device_type.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "MobileDeviceTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing mobile device types. - -// Container for enum describing the types of mobile device. -message MobileDeviceTypeEnum { - // The type of mobile device. - enum MobileDeviceType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Mobile phones. - MOBILE = 2; - - // Tablets. - TABLET = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/month_of_year.proto b/third_party/googleapis/google/ads/googleads/v3/enums/month_of_year.proto deleted file mode 100644 index ae6255fd1..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/month_of_year.proto +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "MonthOfYearProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing days of week. - -// Container for enumeration of months of the year, e.g., "January". -message MonthOfYearEnum { - // Enumerates months of the year, e.g., "January". - enum MonthOfYear { - // Not specified. - UNSPECIFIED = 0; - - // The value is unknown in this version. - UNKNOWN = 1; - - // January. - JANUARY = 2; - - // February. - FEBRUARY = 3; - - // March. - MARCH = 4; - - // April. - APRIL = 5; - - // May. - MAY = 6; - - // June. - JUNE = 7; - - // July. - JULY = 8; - - // August. - AUGUST = 9; - - // September. - SEPTEMBER = 10; - - // October. - OCTOBER = 11; - - // November. - NOVEMBER = 12; - - // December. - DECEMBER = 13; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/mutate_job_status.proto b/third_party/googleapis/google/ads/googleads/v3/enums/mutate_job_status.proto deleted file mode 100644 index 840ffe8be..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/mutate_job_status.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "MutateJobStatusProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing mutate job statuses. - -// Container for enum describing possible mutate job statuses. -message MutateJobStatusEnum { - // The mutate job statuses. - enum MutateJobStatus { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The job is not currently running. - PENDING = 2; - - // The job is running. - RUNNING = 3; - - // The job is done. - DONE = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/negative_geo_target_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/negative_geo_target_type.proto deleted file mode 100644 index 7e19c16dc..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/negative_geo_target_type.proto +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "NegativeGeoTargetTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing negative geo target types. - -// Container for enum describing possible negative geo target types. -message NegativeGeoTargetTypeEnum { - // The possible negative geo target types. - enum NegativeGeoTargetType { - // Not specified. - UNSPECIFIED = 0; - - // The value is unknown in this version. - UNKNOWN = 1; - - // Specifies that a user is excluded from seeing the ad if they - // are in, or show interest in, advertiser's excluded locations. - PRESENCE_OR_INTEREST = 4; - - // Specifies that a user is excluded from seeing the ad if they - // are in advertiser's excluded locations. - PRESENCE = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/operating_system_version_operator_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/operating_system_version_operator_type.proto deleted file mode 100644 index d1369b20a..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/operating_system_version_operator_type.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "OperatingSystemVersionOperatorTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing operating system version operator types. - -// Container for enum describing the type of OS operators. -message OperatingSystemVersionOperatorTypeEnum { - // The type of operating system version. - enum OperatingSystemVersionOperatorType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Equals to the specified version. - EQUALS_TO = 2; - - // Greater than or equals to the specified version. - GREATER_THAN_EQUALS_TO = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/page_one_promoted_strategy_goal.proto b/third_party/googleapis/google/ads/googleads/v3/enums/page_one_promoted_strategy_goal.proto deleted file mode 100644 index 7b0ad9dc6..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/page_one_promoted_strategy_goal.proto +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "PageOnePromotedStrategyGoalProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing bidding schemes. diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/parental_status_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/parental_status_type.proto deleted file mode 100644 index ed4d12020..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/parental_status_type.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ParentalStatusTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing parenal status types. - -// Container for enum describing the type of demographic parental statuses. -message ParentalStatusTypeEnum { - // The type of parental statuses (e.g. not a parent). - enum ParentalStatusType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Parent. - PARENT = 300; - - // Not a parent. - NOT_A_PARENT = 301; - - // Undetermined parental status. - UNDETERMINED = 302; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/payment_mode.proto b/third_party/googleapis/google/ads/googleads/v3/enums/payment_mode.proto deleted file mode 100644 index 29ab88f2a..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/payment_mode.proto +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "PaymentModeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing payment modes. - -// Container for enum describing possible payment modes. -message PaymentModeEnum { - // Enum describing possible payment modes. - enum PaymentMode { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Pay per click. - CLICKS = 4; - - // Pay per conversion value. This mode is only supported by campaigns with - // AdvertisingChannelType.HOTEL, BiddingStrategyType.COMMISSION, and - // BudgetType.HOTEL_ADS_COMMISSION. - CONVERSION_VALUE = 5; - - // Pay per conversion. This mode is only supported by campaigns with - // AdvertisingChannelType.DISPLAY (excluding - // AdvertisingChannelSubType.DISPLAY_GMAIL), BiddingStrategyType.TARGET_CPA, - // and BudgetType.FIXED_CPA. The customer must also be eligible for this - // mode. See Customer.eligibility_failure_reasons for details. - CONVERSIONS = 6; - - // Pay per guest stay value. This mode is only supported by campaigns with - // AdvertisingChannelType.HOTEL, BiddingStrategyType.COMMISSION, and - // BudgetType.STANDARD. - GUEST_STAY = 7; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/placeholder_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/placeholder_type.proto deleted file mode 100644 index cd0959a1b..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/placeholder_type.proto +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "PlaceholderTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing feed placeholder types. - -// Container for enum describing possible placeholder types for a feed mapping. -message PlaceholderTypeEnum { - // Possible placeholder types for a feed mapping. - enum PlaceholderType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Lets you show links in your ad to pages from your website, including the - // main landing page. - SITELINK = 2; - - // Lets you attach a phone number to an ad, allowing customers to call - // directly from the ad. - CALL = 3; - - // Lets you provide users with a link that points to a mobile app in - // addition to a website. - APP = 4; - - // Lets you show locations of businesses from your Google My Business - // account in your ad. This helps people find your locations by showing your - // ads with your address, a map to your location, or the distance to your - // business. This extension type is useful to draw customers to your - // brick-and-mortar location. - LOCATION = 5; - - // If you sell your product through retail chains, affiliate location - // extensions let you show nearby stores that carry your products. - AFFILIATE_LOCATION = 6; - - // Lets you include additional text with your search ads that provide - // detailed information about your business, including products and services - // you offer. Callouts appear in ads at the top and bottom of Google search - // results. - CALLOUT = 7; - - // Lets you add more info to your ad, specific to some predefined categories - // such as types, brands, styles, etc. A minimum of 3 text (SNIPPETS) values - // are required. - STRUCTURED_SNIPPET = 8; - - // Allows users to see your ad, click an icon, and contact you directly by - // text message. With one tap on your ad, people can contact you to book an - // appointment, get a quote, ask for information, or request a service. - MESSAGE = 9; - - // Lets you display prices for a list of items along with your ads. A price - // feed is composed of three to eight price table rows. - PRICE = 10; - - // Allows you to highlight sales and other promotions that let users see how - // they can save by buying now. - PROMOTION = 11; - - // Lets you dynamically inject custom data into the title and description - // of your ads. - AD_CUSTOMIZER = 12; - - // Indicates that this feed is for education dynamic remarketing. - DYNAMIC_EDUCATION = 13; - - // Indicates that this feed is for flight dynamic remarketing. - DYNAMIC_FLIGHT = 14; - - // Indicates that this feed is for a custom dynamic remarketing type. Use - // this only if the other business types don't apply to your products or - // services. - DYNAMIC_CUSTOM = 15; - - // Indicates that this feed is for hotels and rentals dynamic remarketing. - DYNAMIC_HOTEL = 16; - - // Indicates that this feed is for real estate dynamic remarketing. - DYNAMIC_REAL_ESTATE = 17; - - // Indicates that this feed is for travel dynamic remarketing. - DYNAMIC_TRAVEL = 18; - - // Indicates that this feed is for local deals dynamic remarketing. - DYNAMIC_LOCAL = 19; - - // Indicates that this feed is for job dynamic remarketing. - DYNAMIC_JOB = 20; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/placement_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/placement_type.proto deleted file mode 100644 index 942397dc3..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/placement_type.proto +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "PlacementTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing placement types. - -// Container for enum describing possible placement types. -message PlacementTypeEnum { - // Possible placement types for a feed mapping. - enum PlacementType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Websites(e.g. 'www.flowers4sale.com'). - WEBSITE = 2; - - // Mobile application categories(e.g. 'Games'). - MOBILE_APP_CATEGORY = 3; - - // mobile applications(e.g. 'mobileapp::2-com.whatsthewordanswers'). - MOBILE_APPLICATION = 4; - - // YouTube videos(e.g. 'youtube.com/video/wtLJPvx7-ys'). - YOUTUBE_VIDEO = 5; - - // YouTube channels(e.g. 'youtube.com::L8ZULXASCc1I_oaOT0NaOQ'). - YOUTUBE_CHANNEL = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/policy_approval_status.proto b/third_party/googleapis/google/ads/googleads/v3/enums/policy_approval_status.proto deleted file mode 100644 index 9530d5268..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/policy_approval_status.proto +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "PolicyApprovalStatusProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing policy approval statuses. - -// Container for enum describing possible policy approval statuses. -message PolicyApprovalStatusEnum { - // The possible policy approval statuses. When there are several approval - // statuses available the most severe one will be used. The order of severity - // is DISAPPROVED, AREA_OF_INTEREST_ONLY, APPROVED_LIMITED and APPROVED. - enum PolicyApprovalStatus { - // No value has been specified. - UNSPECIFIED = 0; - - // The received value is not known in this version. - // - // This is a response-only value. - UNKNOWN = 1; - - // Will not serve. - DISAPPROVED = 2; - - // Serves with restrictions. - APPROVED_LIMITED = 3; - - // Serves without restrictions. - APPROVED = 4; - - // Will not serve in targeted countries, but may serve for users who are - // searching for information about the targeted countries. - AREA_OF_INTEREST_ONLY = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/policy_review_status.proto b/third_party/googleapis/google/ads/googleads/v3/enums/policy_review_status.proto deleted file mode 100644 index cdc9dde4c..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/policy_review_status.proto +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "PolicyReviewStatusProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing policy review statuses. - -// Container for enum describing possible policy review statuses. -message PolicyReviewStatusEnum { - // The possible policy review statuses. - enum PolicyReviewStatus { - // No value has been specified. - UNSPECIFIED = 0; - - // The received value is not known in this version. - // - // This is a response-only value. - UNKNOWN = 1; - - // Currently under review. - REVIEW_IN_PROGRESS = 2; - - // Primary review complete. Other reviews may be continuing. - REVIEWED = 3; - - // The resource has been resubmitted for approval or its policy decision has - // been appealed. - UNDER_APPEAL = 4; - - // The resource is eligible and may be serving but could still undergo - // further review. - ELIGIBLE_MAY_SERVE = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/policy_topic_entry_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/policy_topic_entry_type.proto deleted file mode 100644 index 087e18b9a..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/policy_topic_entry_type.proto +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "PolicyTopicEntryTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing policy topic entry types. - -// Container for enum describing possible policy topic entry types. -message PolicyTopicEntryTypeEnum { - // The possible policy topic entry types. - enum PolicyTopicEntryType { - // No value has been specified. - UNSPECIFIED = 0; - - // The received value is not known in this version. - // - // This is a response-only value. - UNKNOWN = 1; - - // The resource will not be served. - PROHIBITED = 2; - - // The resource will not be served under some circumstances. - LIMITED = 4; - - // The resource cannot serve at all because of the current targeting - // criteria. - FULLY_LIMITED = 8; - - // May be of interest, but does not limit how the resource is served. - DESCRIPTIVE = 5; - - // Could increase coverage beyond normal. - BROADENING = 6; - - // Constrained for all targeted countries, but may serve in other countries - // through area of interest. - AREA_OF_INTEREST_ONLY = 7; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/policy_topic_evidence_destination_mismatch_url_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/policy_topic_evidence_destination_mismatch_url_type.proto deleted file mode 100644 index d9abcddc4..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/policy_topic_evidence_destination_mismatch_url_type.proto +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "PolicyTopicEvidenceDestinationMismatchUrlTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing policy topic evidence destination mismatch url types. - -// Container for enum describing possible policy topic evidence destination -// mismatch url types. -message PolicyTopicEvidenceDestinationMismatchUrlTypeEnum { - // The possible policy topic evidence destination mismatch url types. - enum PolicyTopicEvidenceDestinationMismatchUrlType { - // No value has been specified. - UNSPECIFIED = 0; - - // The received value is not known in this version. - // - // This is a response-only value. - UNKNOWN = 1; - - // The display url. - DISPLAY_URL = 2; - - // The final url. - FINAL_URL = 3; - - // The final mobile url. - FINAL_MOBILE_URL = 4; - - // The tracking url template, with substituted desktop url. - TRACKING_URL = 5; - - // The tracking url template, with substituted mobile url. - MOBILE_TRACKING_URL = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/policy_topic_evidence_destination_not_working_device.proto b/third_party/googleapis/google/ads/googleads/v3/enums/policy_topic_evidence_destination_not_working_device.proto deleted file mode 100644 index bb77e67e2..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/policy_topic_evidence_destination_not_working_device.proto +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "PolicyTopicEvidenceDestinationNotWorkingDeviceProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing device of destination not working policy topic -// evidence. - -// Container for enum describing possible policy topic evidence destination not -// working devices. -message PolicyTopicEvidenceDestinationNotWorkingDeviceEnum { - // The possible policy topic evidence destination not working devices. - enum PolicyTopicEvidenceDestinationNotWorkingDevice { - // No value has been specified. - UNSPECIFIED = 0; - - // The received value is not known in this version. - // - // This is a response-only value. - UNKNOWN = 1; - - // Landing page doesn't work on desktop device. - DESKTOP = 2; - - // Landing page doesn't work on Android device. - ANDROID = 3; - - // Landing page doesn't work on iOS device. - IOS = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/policy_topic_evidence_destination_not_working_dns_error_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/policy_topic_evidence_destination_not_working_dns_error_type.proto deleted file mode 100644 index 5c33b35c2..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/policy_topic_evidence_destination_not_working_dns_error_type.proto +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing DNS error types of destination not working policy topic -// evidence. - -// Container for enum describing possible policy topic evidence destination not -// working DNS error types. -message PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum { - // The possible policy topic evidence destination not working DNS error types. - enum PolicyTopicEvidenceDestinationNotWorkingDnsErrorType { - // No value has been specified. - UNSPECIFIED = 0; - - // The received value is not known in this version. - // - // This is a response-only value. - UNKNOWN = 1; - - // Host name not found in DNS when fetching landing page. - HOSTNAME_NOT_FOUND = 2; - - // Google internal crawler issue when communicating with DNS. This error - // doesn't mean the landing page doesn't work. Google will recrawl the - // landing page. - GOOGLE_CRAWLER_DNS_ISSUE = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/positive_geo_target_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/positive_geo_target_type.proto deleted file mode 100644 index 7dc400989..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/positive_geo_target_type.proto +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "PositiveGeoTargetTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing positive geo target types. - -// Container for enum describing possible positive geo target types. -message PositiveGeoTargetTypeEnum { - // The possible positive geo target types. - enum PositiveGeoTargetType { - // Not specified. - UNSPECIFIED = 0; - - // The value is unknown in this version. - UNKNOWN = 1; - - // Specifies that an ad is triggered if the user is in, - // or shows interest in, advertiser's targeted locations. - PRESENCE_OR_INTEREST = 5; - - // Specifies that an ad is triggered if the user - // searches for advertiser's targeted locations. - SEARCH_INTEREST = 6; - - // Specifies that an ad is triggered if the user is in - // or regularly in advertiser's targeted locations. - PRESENCE = 7; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/preferred_content_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/preferred_content_type.proto deleted file mode 100644 index 4e40b2a75..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/preferred_content_type.proto +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "PreferredContentTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing preferred content criterion type. - -// Container for enumeration of preferred content criterion type. -message PreferredContentTypeEnum { - // Enumerates preferred content criterion type. - enum PreferredContentType { - // Not specified. - UNSPECIFIED = 0; - - // The value is unknown in this version. - UNKNOWN = 1; - - // Represents top content on YouTube. - YOUTUBE_TOP_CONTENT = 400; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/price_extension_price_qualifier.proto b/third_party/googleapis/google/ads/googleads/v3/enums/price_extension_price_qualifier.proto deleted file mode 100644 index 36fb1d4e5..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/price_extension_price_qualifier.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "PriceExtensionPriceQualifierProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing price extension price qualifier type. - -// Container for enum describing a price extension price qualifier. -message PriceExtensionPriceQualifierEnum { - // Enums of price extension price qualifier. - enum PriceExtensionPriceQualifier { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // 'From' qualifier for the price. - FROM = 2; - - // 'Up to' qualifier for the price. - UP_TO = 3; - - // 'Average' qualifier for the price. - AVERAGE = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/price_extension_price_unit.proto b/third_party/googleapis/google/ads/googleads/v3/enums/price_extension_price_unit.proto deleted file mode 100644 index 6d5d06ad1..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/price_extension_price_unit.proto +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "PriceExtensionPriceUnitProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing price extension price unit. - -// Container for enum describing price extension price unit. -message PriceExtensionPriceUnitEnum { - // Price extension price unit. - enum PriceExtensionPriceUnit { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Per hour. - PER_HOUR = 2; - - // Per day. - PER_DAY = 3; - - // Per week. - PER_WEEK = 4; - - // Per month. - PER_MONTH = 5; - - // Per year. - PER_YEAR = 6; - - // Per night. - PER_NIGHT = 7; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/price_extension_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/price_extension_type.proto deleted file mode 100644 index c2bccdced..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/price_extension_type.proto +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "PriceExtensionTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing price extension type. - -// Container for enum describing types for a price extension. -message PriceExtensionTypeEnum { - // Price extension type. - enum PriceExtensionType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The type for showing a list of brands. - BRANDS = 2; - - // The type for showing a list of events. - EVENTS = 3; - - // The type for showing locations relevant to your business. - LOCATIONS = 4; - - // The type for showing sub-regions or districts within a city or region. - NEIGHBORHOODS = 5; - - // The type for showing a collection of product categories. - PRODUCT_CATEGORIES = 6; - - // The type for showing a collection of related product tiers. - PRODUCT_TIERS = 7; - - // The type for showing a collection of services offered by your business. - SERVICES = 8; - - // The type for showing a collection of service categories. - SERVICE_CATEGORIES = 9; - - // The type for showing a collection of related service tiers. - SERVICE_TIERS = 10; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/price_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v3/enums/price_placeholder_field.proto deleted file mode 100644 index 15b3b82ef..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/price_placeholder_field.proto +++ /dev/null @@ -1,240 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "PricePlaceholderFieldProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing Price placeholder fields. - -// Values for Price placeholder fields. -message PricePlaceholderFieldEnum { - // Possible values for Price placeholder fields. - enum PricePlaceholderField { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Data Type: STRING. The type of your price feed. Must match one of the - // predefined price feed type exactly. - TYPE = 2; - - // Data Type: STRING. The qualifier of each price. Must match one of the - // predefined price qualifiers exactly. - PRICE_QUALIFIER = 3; - - // Data Type: URL. Tracking template for the price feed when using Upgraded - // URLs. - TRACKING_TEMPLATE = 4; - - // Data Type: STRING. Language of the price feed. Must match one of the - // available available locale codes exactly. - LANGUAGE = 5; - - // Data Type: STRING. Final URL suffix for the price feed when using - // parallel tracking. - FINAL_URL_SUFFIX = 6; - - // Data Type: STRING. The header of item 1 of the table. - ITEM_1_HEADER = 100; - - // Data Type: STRING. The description of item 1 of the table. - ITEM_1_DESCRIPTION = 101; - - // Data Type: MONEY. The price (money with currency) of item 1 of the table, - // e.g., 30 USD. The currency must match one of the available currencies. - ITEM_1_PRICE = 102; - - // Data Type: STRING. The price unit of item 1 of the table. Must match one - // of the predefined price units. - ITEM_1_UNIT = 103; - - // Data Type: URL_LIST. The final URLs of item 1 of the table when using - // Upgraded URLs. - ITEM_1_FINAL_URLS = 104; - - // Data Type: URL_LIST. The final mobile URLs of item 1 of the table when - // using Upgraded URLs. - ITEM_1_FINAL_MOBILE_URLS = 105; - - // Data Type: STRING. The header of item 2 of the table. - ITEM_2_HEADER = 200; - - // Data Type: STRING. The description of item 2 of the table. - ITEM_2_DESCRIPTION = 201; - - // Data Type: MONEY. The price (money with currency) of item 2 of the table, - // e.g., 30 USD. The currency must match one of the available currencies. - ITEM_2_PRICE = 202; - - // Data Type: STRING. The price unit of item 2 of the table. Must match one - // of the predefined price units. - ITEM_2_UNIT = 203; - - // Data Type: URL_LIST. The final URLs of item 2 of the table when using - // Upgraded URLs. - ITEM_2_FINAL_URLS = 204; - - // Data Type: URL_LIST. The final mobile URLs of item 2 of the table when - // using Upgraded URLs. - ITEM_2_FINAL_MOBILE_URLS = 205; - - // Data Type: STRING. The header of item 3 of the table. - ITEM_3_HEADER = 300; - - // Data Type: STRING. The description of item 3 of the table. - ITEM_3_DESCRIPTION = 301; - - // Data Type: MONEY. The price (money with currency) of item 3 of the table, - // e.g., 30 USD. The currency must match one of the available currencies. - ITEM_3_PRICE = 302; - - // Data Type: STRING. The price unit of item 3 of the table. Must match one - // of the predefined price units. - ITEM_3_UNIT = 303; - - // Data Type: URL_LIST. The final URLs of item 3 of the table when using - // Upgraded URLs. - ITEM_3_FINAL_URLS = 304; - - // Data Type: URL_LIST. The final mobile URLs of item 3 of the table when - // using Upgraded URLs. - ITEM_3_FINAL_MOBILE_URLS = 305; - - // Data Type: STRING. The header of item 4 of the table. - ITEM_4_HEADER = 400; - - // Data Type: STRING. The description of item 4 of the table. - ITEM_4_DESCRIPTION = 401; - - // Data Type: MONEY. The price (money with currency) of item 4 of the table, - // e.g., 30 USD. The currency must match one of the available currencies. - ITEM_4_PRICE = 402; - - // Data Type: STRING. The price unit of item 4 of the table. Must match one - // of the predefined price units. - ITEM_4_UNIT = 403; - - // Data Type: URL_LIST. The final URLs of item 4 of the table when using - // Upgraded URLs. - ITEM_4_FINAL_URLS = 404; - - // Data Type: URL_LIST. The final mobile URLs of item 4 of the table when - // using Upgraded URLs. - ITEM_4_FINAL_MOBILE_URLS = 405; - - // Data Type: STRING. The header of item 5 of the table. - ITEM_5_HEADER = 500; - - // Data Type: STRING. The description of item 5 of the table. - ITEM_5_DESCRIPTION = 501; - - // Data Type: MONEY. The price (money with currency) of item 5 of the table, - // e.g., 30 USD. The currency must match one of the available currencies. - ITEM_5_PRICE = 502; - - // Data Type: STRING. The price unit of item 5 of the table. Must match one - // of the predefined price units. - ITEM_5_UNIT = 503; - - // Data Type: URL_LIST. The final URLs of item 5 of the table when using - // Upgraded URLs. - ITEM_5_FINAL_URLS = 504; - - // Data Type: URL_LIST. The final mobile URLs of item 5 of the table when - // using Upgraded URLs. - ITEM_5_FINAL_MOBILE_URLS = 505; - - // Data Type: STRING. The header of item 6 of the table. - ITEM_6_HEADER = 600; - - // Data Type: STRING. The description of item 6 of the table. - ITEM_6_DESCRIPTION = 601; - - // Data Type: MONEY. The price (money with currency) of item 6 of the table, - // e.g., 30 USD. The currency must match one of the available currencies. - ITEM_6_PRICE = 602; - - // Data Type: STRING. The price unit of item 6 of the table. Must match one - // of the predefined price units. - ITEM_6_UNIT = 603; - - // Data Type: URL_LIST. The final URLs of item 6 of the table when using - // Upgraded URLs. - ITEM_6_FINAL_URLS = 604; - - // Data Type: URL_LIST. The final mobile URLs of item 6 of the table when - // using Upgraded URLs. - ITEM_6_FINAL_MOBILE_URLS = 605; - - // Data Type: STRING. The header of item 7 of the table. - ITEM_7_HEADER = 700; - - // Data Type: STRING. The description of item 7 of the table. - ITEM_7_DESCRIPTION = 701; - - // Data Type: MONEY. The price (money with currency) of item 7 of the table, - // e.g., 30 USD. The currency must match one of the available currencies. - ITEM_7_PRICE = 702; - - // Data Type: STRING. The price unit of item 7 of the table. Must match one - // of the predefined price units. - ITEM_7_UNIT = 703; - - // Data Type: URL_LIST. The final URLs of item 7 of the table when using - // Upgraded URLs. - ITEM_7_FINAL_URLS = 704; - - // Data Type: URL_LIST. The final mobile URLs of item 7 of the table when - // using Upgraded URLs. - ITEM_7_FINAL_MOBILE_URLS = 705; - - // Data Type: STRING. The header of item 8 of the table. - ITEM_8_HEADER = 800; - - // Data Type: STRING. The description of item 8 of the table. - ITEM_8_DESCRIPTION = 801; - - // Data Type: MONEY. The price (money with currency) of item 8 of the table, - // e.g., 30 USD. The currency must match one of the available currencies. - ITEM_8_PRICE = 802; - - // Data Type: STRING. The price unit of item 8 of the table. Must match one - // of the predefined price units. - ITEM_8_UNIT = 803; - - // Data Type: URL_LIST. The final URLs of item 8 of the table when using - // Upgraded URLs. - ITEM_8_FINAL_URLS = 804; - - // Data Type: URL_LIST. The final mobile URLs of item 8 of the table when - // using Upgraded URLs. - ITEM_8_FINAL_MOBILE_URLS = 805; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/product_bidding_category_level.proto b/third_party/googleapis/google/ads/googleads/v3/enums/product_bidding_category_level.proto deleted file mode 100644 index 4c0b0c162..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/product_bidding_category_level.proto +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ProductBiddingCategoryLevelProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Level of a product bidding category. -message ProductBiddingCategoryLevelEnum { - // Enum describing the level of the product bidding category. - enum ProductBiddingCategoryLevel { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Level 1. - LEVEL1 = 2; - - // Level 2. - LEVEL2 = 3; - - // Level 3. - LEVEL3 = 4; - - // Level 4. - LEVEL4 = 5; - - // Level 5. - LEVEL5 = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/product_bidding_category_status.proto b/third_party/googleapis/google/ads/googleads/v3/enums/product_bidding_category_status.proto deleted file mode 100644 index d3627f143..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/product_bidding_category_status.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ProductBiddingCategoryStatusProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing bidding schemes. - -// Status of the product bidding category. -message ProductBiddingCategoryStatusEnum { - // Enum describing the status of the product bidding category. - enum ProductBiddingCategoryStatus { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The category is active and can be used for bidding. - ACTIVE = 2; - - // The category is obsolete. Used only for reporting purposes. - OBSOLETE = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/product_channel.proto b/third_party/googleapis/google/ads/googleads/v3/enums/product_channel.proto deleted file mode 100644 index b1265b5a8..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/product_channel.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ProductChannelProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing bidding schemes. - -// Locality of a product offer. -message ProductChannelEnum { - // Enum describing the locality of a product offer. - enum ProductChannel { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The item is sold online. - ONLINE = 2; - - // The item is sold in local stores. - LOCAL = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/product_channel_exclusivity.proto b/third_party/googleapis/google/ads/googleads/v3/enums/product_channel_exclusivity.proto deleted file mode 100644 index 30b183fbb..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/product_channel_exclusivity.proto +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ProductChannelExclusivityProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing bidding schemes. - -// Availability of a product offer. -message ProductChannelExclusivityEnum { - // Enum describing the availability of a product offer. - enum ProductChannelExclusivity { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The item is sold through one channel only, either local stores or online - // as indicated by its ProductChannel. - SINGLE_CHANNEL = 2; - - // The item is matched to its online or local stores counterpart, indicating - // it is available for purchase in both ShoppingProductChannels. - MULTI_CHANNEL = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/product_condition.proto b/third_party/googleapis/google/ads/googleads/v3/enums/product_condition.proto deleted file mode 100644 index c43d6031b..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/product_condition.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ProductConditionProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing bidding schemes. - -// Condition of a product offer. -message ProductConditionEnum { - // Enum describing the condition of a product offer. - enum ProductCondition { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The product condition is new. - NEW = 3; - - // The product condition is refurbished. - REFURBISHED = 4; - - // The product condition is used. - USED = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/product_type_level.proto b/third_party/googleapis/google/ads/googleads/v3/enums/product_type_level.proto deleted file mode 100644 index 4fc7b976b..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/product_type_level.proto +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ProductTypeLevelProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing bidding schemes. - -// Level of the type of a product offer. -message ProductTypeLevelEnum { - // Enum describing the level of the type of a product offer. - enum ProductTypeLevel { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Level 1. - LEVEL1 = 7; - - // Level 2. - LEVEL2 = 8; - - // Level 3. - LEVEL3 = 9; - - // Level 4. - LEVEL4 = 10; - - // Level 5. - LEVEL5 = 11; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/promotion_extension_discount_modifier.proto b/third_party/googleapis/google/ads/googleads/v3/enums/promotion_extension_discount_modifier.proto deleted file mode 100644 index 467ac2482..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/promotion_extension_discount_modifier.proto +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "PromotionExtensionDiscountModifierProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing promotion extension discount modifier. - -// Container for enum describing possible a promotion extension -// discount modifier. -message PromotionExtensionDiscountModifierEnum { - // A promotion extension discount modifier. - enum PromotionExtensionDiscountModifier { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // 'Up to'. - UP_TO = 2; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/promotion_extension_occasion.proto b/third_party/googleapis/google/ads/googleads/v3/enums/promotion_extension_occasion.proto deleted file mode 100644 index 493667ea4..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/promotion_extension_occasion.proto +++ /dev/null @@ -1,157 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "PromotionExtensionOccasionProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing promotion extension occasion. - -// Container for enum describing a promotion extension occasion. -// For more information about the occasions please check: -// https://support.google.com/google-ads/answer/7367521 -message PromotionExtensionOccasionEnum { - // A promotion extension occasion. - enum PromotionExtensionOccasion { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // New Year's. - NEW_YEARS = 2; - - // Chinese New Year. - CHINESE_NEW_YEAR = 3; - - // Valentine's Day. - VALENTINES_DAY = 4; - - // Easter. - EASTER = 5; - - // Mother's Day. - MOTHERS_DAY = 6; - - // Father's Day. - FATHERS_DAY = 7; - - // Labor Day. - LABOR_DAY = 8; - - // Back To School. - BACK_TO_SCHOOL = 9; - - // Halloween. - HALLOWEEN = 10; - - // Black Friday. - BLACK_FRIDAY = 11; - - // Cyber Monday. - CYBER_MONDAY = 12; - - // Christmas. - CHRISTMAS = 13; - - // Boxing Day. - BOXING_DAY = 14; - - // Independence Day in any country. - INDEPENDENCE_DAY = 15; - - // National Day in any country. - NATIONAL_DAY = 16; - - // End of any season. - END_OF_SEASON = 17; - - // Winter Sale. - WINTER_SALE = 18; - - // Summer sale. - SUMMER_SALE = 19; - - // Fall Sale. - FALL_SALE = 20; - - // Spring Sale. - SPRING_SALE = 21; - - // Ramadan. - RAMADAN = 22; - - // Eid al-Fitr. - EID_AL_FITR = 23; - - // Eid al-Adha. - EID_AL_ADHA = 24; - - // Singles Day. - SINGLES_DAY = 25; - - // Women's Day. - WOMENS_DAY = 26; - - // Holi. - HOLI = 27; - - // Parent's Day. - PARENTS_DAY = 28; - - // St. Nicholas Day. - ST_NICHOLAS_DAY = 29; - - // Carnival. - CARNIVAL = 30; - - // Epiphany, also known as Three Kings' Day. - EPIPHANY = 31; - - // Rosh Hashanah. - ROSH_HASHANAH = 32; - - // Passover. - PASSOVER = 33; - - // Hanukkah. - HANUKKAH = 34; - - // Diwali. - DIWALI = 35; - - // Navratri. - NAVRATRI = 36; - - // Available in Thai: Songkran. - SONGKRAN = 37; - - // Available in Japanese: Year-end Gift. - YEAR_END_GIFT = 38; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/promotion_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v3/enums/promotion_placeholder_field.proto deleted file mode 100644 index 9b6d74b95..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/promotion_placeholder_field.proto +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "PromotionPlaceholderFieldProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing Promotion placeholder fields. - -// Values for Promotion placeholder fields. -message PromotionPlaceholderFieldEnum { - // Possible values for Promotion placeholder fields. - enum PromotionPlaceholderField { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Data Type: STRING. The text that appears on the ad when the extension is - // shown. - PROMOTION_TARGET = 2; - - // Data Type: STRING. Allows you to add "up to" phrase to the promotion, - // in case you have variable promotion rates. - DISCOUNT_MODIFIER = 3; - - // Data Type: INT64. Takes a value in micros, where 1 million micros - // represents 1%, and is shown as a percentage when rendered. - PERCENT_OFF = 4; - - // Data Type: MONEY. Requires a currency and an amount of money. - MONEY_AMOUNT_OFF = 5; - - // Data Type: STRING. A string that the user enters to get the discount. - PROMOTION_CODE = 6; - - // Data Type: MONEY. A minimum spend before the user qualifies for the - // promotion. - ORDERS_OVER_AMOUNT = 7; - - // Data Type: DATE. The start date of the promotion. - PROMOTION_START = 8; - - // Data Type: DATE. The end date of the promotion. - PROMOTION_END = 9; - - // Data Type: STRING. Describes the associated event for the promotion using - // one of the PromotionExtensionOccasion enum values, for example NEW_YEARS. - OCCASION = 10; - - // Data Type: URL_LIST. Final URLs to be used in the ad when using Upgraded - // URLs. - FINAL_URLS = 11; - - // Data Type: URL_LIST. Final mobile URLs for the ad when using Upgraded - // URLs. - FINAL_MOBILE_URLS = 12; - - // Data Type: URL. Tracking template for the ad when using Upgraded URLs. - TRACKING_URL = 13; - - // Data Type: STRING. A string represented by a language code for the - // promotion. - LANGUAGE = 14; - - // Data Type: STRING. Final URL suffix for the ad when using parallel - // tracking. - FINAL_URL_SUFFIX = 15; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/proximity_radius_units.proto b/third_party/googleapis/google/ads/googleads/v3/enums/proximity_radius_units.proto deleted file mode 100644 index 986ca5579..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/proximity_radius_units.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ProximityRadiusUnitsProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing proximity radius units. - -// Container for enum describing unit of radius in proximity. -message ProximityRadiusUnitsEnum { - // The unit of radius distance in proximity (e.g. MILES) - enum ProximityRadiusUnits { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Miles - MILES = 2; - - // Kilometers - KILOMETERS = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/quality_score_bucket.proto b/third_party/googleapis/google/ads/googleads/v3/enums/quality_score_bucket.proto deleted file mode 100644 index 3b9e9b6f1..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/quality_score_bucket.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "QualityScoreBucketProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing quality score buckets. - -// The relative performance compared to other advertisers. -message QualityScoreBucketEnum { - // Enum listing the possible quality score buckets. - enum QualityScoreBucket { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Quality of the creative is below average. - BELOW_AVERAGE = 2; - - // Quality of the creative is average. - AVERAGE = 3; - - // Quality of the creative is above average. - ABOVE_AVERAGE = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/reach_plan_ad_length.proto b/third_party/googleapis/google/ads/googleads/v3/enums/reach_plan_ad_length.proto deleted file mode 100644 index 230918343..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/reach_plan_ad_length.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ReachPlanAdLengthProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing ad lengths of a plannable video ad. - -// Message describing length of a plannable video ad. -message ReachPlanAdLengthEnum { - // Possible ad length values. - enum ReachPlanAdLength { - // Not specified. - UNSPECIFIED = 0; - - // The value is unknown in this version. - UNKNOWN = 1; - - // 6 seconds long ad. - SIX_SECONDS = 2; - - // 15 or 20 seconds long ad. - FIFTEEN_OR_TWENTY_SECONDS = 3; - - // More than 20 seconds long ad. - TWENTY_SECONDS_OR_MORE = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/reach_plan_age_range.proto b/third_party/googleapis/google/ads/googleads/v3/enums/reach_plan_age_range.proto deleted file mode 100644 index 8bfa2fa8b..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/reach_plan_age_range.proto +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ReachPlanAgeRangeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing a plannable age range. - -// Message describing plannable age ranges. -message ReachPlanAgeRangeEnum { - // Possible plannable age range values. - enum ReachPlanAgeRange { - // Not specified. - UNSPECIFIED = 0; - - // The value is unknown in this version. - UNKNOWN = 1; - - // Between 18 and 24 years old. - AGE_RANGE_18_24 = 503001; - - // Between 18 and 34 years old. - AGE_RANGE_18_34 = 2; - - // Between 18 and 44 years old. - AGE_RANGE_18_44 = 3; - - // Between 18 and 49 years old. - AGE_RANGE_18_49 = 4; - - // Between 18 and 54 years old. - AGE_RANGE_18_54 = 5; - - // Between 18 and 64 years old. - AGE_RANGE_18_64 = 6; - - // Between 18 and 65+ years old. - AGE_RANGE_18_65_UP = 7; - - // Between 21 and 34 years old. - AGE_RANGE_21_34 = 8; - - // Between 25 and 34 years old. - AGE_RANGE_25_34 = 503002; - - // Between 25 and 44 years old. - AGE_RANGE_25_44 = 9; - - // Between 25 and 49 years old. - AGE_RANGE_25_49 = 10; - - // Between 25 and 54 years old. - AGE_RANGE_25_54 = 11; - - // Between 25 and 64 years old. - AGE_RANGE_25_64 = 12; - - // Between 25 and 65+ years old. - AGE_RANGE_25_65_UP = 13; - - // Between 35 and 44 years old. - AGE_RANGE_35_44 = 503003; - - // Between 35 and 49 years old. - AGE_RANGE_35_49 = 14; - - // Between 35 and 54 years old. - AGE_RANGE_35_54 = 15; - - // Between 35 and 64 years old. - AGE_RANGE_35_64 = 16; - - // Between 35 and 65+ years old. - AGE_RANGE_35_65_UP = 17; - - // Between 45 and 54 years old. - AGE_RANGE_45_54 = 503004; - - // Between 45 and 64 years old. - AGE_RANGE_45_64 = 18; - - // Between 45 and 65+ years old. - AGE_RANGE_45_65_UP = 19; - - // Between 50 and 65+ years old. - AGE_RANGE_50_65_UP = 20; - - // Between 55 and 64 years old. - AGE_RANGE_55_64 = 503005; - - // Between 55 and 65+ years old. - AGE_RANGE_55_65_UP = 21; - - // 65 years old and beyond. - AGE_RANGE_65_UP = 503006; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/real_estate_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v3/enums/real_estate_placeholder_field.proto deleted file mode 100644 index 11e113eb6..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/real_estate_placeholder_field.proto +++ /dev/null @@ -1,115 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "RealEstatePlaceholderFieldProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing Real Estate placeholder fields. - -// Values for Real Estate placeholder fields. -// For more information about dynamic remarketing feeds, see -// https://support.google.com/google-ads/answer/6053288. -message RealEstatePlaceholderFieldEnum { - // Possible values for Real Estate placeholder fields. - enum RealEstatePlaceholderField { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Data Type: STRING. Unique ID. - LISTING_ID = 2; - - // Data Type: STRING. Main headline with listing name to be shown in dynamic - // ad. - LISTING_NAME = 3; - - // Data Type: STRING. City name to be shown in dynamic ad. - CITY_NAME = 4; - - // Data Type: STRING. Description of listing to be shown in dynamic ad. - DESCRIPTION = 5; - - // Data Type: STRING. Complete listing address, including postal code. - ADDRESS = 6; - - // Data Type: STRING. Price to be shown in the ad. - // Example: "100.00 USD" - PRICE = 7; - - // Data Type: STRING. Formatted price to be shown in the ad. - // Example: "Starting at $100.00 USD", "$80 - $100" - FORMATTED_PRICE = 8; - - // Data Type: URL. Image to be displayed in the ad. - IMAGE_URL = 9; - - // Data Type: STRING. Type of property (house, condo, apartment, etc.) used - // to group like items together for recommendation engine. - PROPERTY_TYPE = 10; - - // Data Type: STRING. Type of listing (resale, rental, foreclosure, etc.) - // used to group like items together for recommendation engine. - LISTING_TYPE = 11; - - // Data Type: STRING_LIST. Keywords used for product retrieval. - CONTEXTUAL_KEYWORDS = 12; - - // Data Type: URL_LIST. Final URLs to be used in ad when using Upgraded - // URLs; the more specific the better (e.g. the individual URL of a specific - // listing and its location). - FINAL_URLS = 13; - - // Data Type: URL_LIST. Final mobile URLs for the ad when using Upgraded - // URLs. - FINAL_MOBILE_URLS = 14; - - // Data Type: URL. Tracking template for the ad when using Upgraded URLs. - TRACKING_URL = 15; - - // Data Type: STRING. Android app link. Must be formatted as: - // android-app://{package_id}/{scheme}/{host_path}. - // The components are defined as follows: - // package_id: app ID as specified in Google Play. - // scheme: the scheme to pass to the application. Can be HTTP, or a custom - // scheme. - // host_path: identifies the specific content within your application. - ANDROID_APP_LINK = 16; - - // Data Type: STRING_LIST. List of recommended listing IDs to show together - // with this item. - SIMILAR_LISTING_IDS = 17; - - // Data Type: STRING. iOS app link. - IOS_APP_LINK = 18; - - // Data Type: INT64. iOS app store ID. - IOS_APP_STORE_ID = 19; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/recommendation_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/recommendation_type.proto deleted file mode 100644 index 6a7d87ecb..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/recommendation_type.proto +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "RecommendationTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing Recommendation types. - -// Container for enum describing types of recommendations. -message RecommendationTypeEnum { - // Types of recommendations. - enum RecommendationType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Budget recommendation for campaigns that are currently budget-constrained - // (as opposed to the FORECASTING_CAMPAIGN_BUDGET recommendation, which - // applies to campaigns that are expected to become budget-constrained in - // the future). - CAMPAIGN_BUDGET = 2; - - // Keyword recommendation. - KEYWORD = 3; - - // Recommendation to add a new text ad. - TEXT_AD = 4; - - // Recommendation to update a campaign to use a Target CPA bidding strategy. - TARGET_CPA_OPT_IN = 5; - - // Recommendation to update a campaign to use the Maximize Conversions - // bidding strategy. - MAXIMIZE_CONVERSIONS_OPT_IN = 6; - - // Recommendation to enable Enhanced Cost Per Click for a campaign. - ENHANCED_CPC_OPT_IN = 7; - - // Recommendation to start showing your campaign's ads on Google Search - // Partners Websites. - SEARCH_PARTNERS_OPT_IN = 8; - - // Recommendation to update a campaign to use a Maximize Clicks bidding - // strategy. - MAXIMIZE_CLICKS_OPT_IN = 9; - - // Recommendation to start using the "Optimize" ad rotation setting for the - // given ad group. - OPTIMIZE_AD_ROTATION = 10; - - // Recommendation to add callout extensions to a campaign. - CALLOUT_EXTENSION = 11; - - // Recommendation to add sitelink extensions to a campaign. - SITELINK_EXTENSION = 12; - - // Recommendation to add call extensions to a campaign. - CALL_EXTENSION = 13; - - // Recommendation to change an existing keyword from one match type to a - // broader match type. - KEYWORD_MATCH_TYPE = 14; - - // Recommendation to move unused budget from one budget to a constrained - // budget. - MOVE_UNUSED_BUDGET = 15; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/search_engine_results_page_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/search_engine_results_page_type.proto deleted file mode 100644 index 0858f0c80..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/search_engine_results_page_type.proto +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "SearchEngineResultsPageTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing search engine results page types. - -// The type of the search engine results page. -message SearchEngineResultsPageTypeEnum { - // The type of the search engine results page. - enum SearchEngineResultsPageType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Only ads were contained in the search engine results page. - ADS_ONLY = 2; - - // Only organic results were contained in the search engine results page. - ORGANIC_ONLY = 3; - - // Both ads and organic results were contained in the search engine results - // page. - ADS_AND_ORGANIC = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/search_term_match_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/search_term_match_type.proto deleted file mode 100644 index 47981c4b0..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/search_term_match_type.proto +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "SearchTermMatchTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing search term match types. - -// Container for enum describing match types for a keyword triggering an ad. -message SearchTermMatchTypeEnum { - // Possible match types for a keyword triggering an ad, including variants. - enum SearchTermMatchType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Broad match. - BROAD = 2; - - // Exact match. - EXACT = 3; - - // Phrase match. - PHRASE = 4; - - // Exact match (close variant). - NEAR_EXACT = 5; - - // Phrase match (close variant). - NEAR_PHRASE = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/search_term_targeting_status.proto b/third_party/googleapis/google/ads/googleads/v3/enums/search_term_targeting_status.proto deleted file mode 100644 index cff59dfcc..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/search_term_targeting_status.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "SearchTermTargetingStatusProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing search term targeting statuses. - -// Container for enum indicating whether a search term is one of your targeted -// or excluded keywords. -message SearchTermTargetingStatusEnum { - // Indicates whether the search term is one of your targeted or excluded - // keywords. - enum SearchTermTargetingStatus { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Search term is added to targeted keywords. - ADDED = 2; - - // Search term matches a negative keyword. - EXCLUDED = 3; - - // Search term has been both added and excluded. - ADDED_EXCLUDED = 4; - - // Search term is neither targeted nor excluded. - NONE = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/served_asset_field_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/served_asset_field_type.proto deleted file mode 100644 index 5b0fdecb3..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/served_asset_field_type.proto +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "ServedAssetFieldTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing policy review statuses. - -// Container for enum describing possible asset field types. -message ServedAssetFieldTypeEnum { - // The possible asset field types. - enum ServedAssetFieldType { - // No value has been specified. - UNSPECIFIED = 0; - - // The received value is not known in this version. - // - // This is a response-only value. - UNKNOWN = 1; - - // The asset is used in headline 1. - HEADLINE_1 = 2; - - // The asset is used in headline 2. - HEADLINE_2 = 3; - - // The asset is used in headline 3. - HEADLINE_3 = 4; - - // The asset is used in description 1. - DESCRIPTION_1 = 5; - - // The asset is used in description 2. - DESCRIPTION_2 = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/shared_set_status.proto b/third_party/googleapis/google/ads/googleads/v3/enums/shared_set_status.proto deleted file mode 100644 index 5eba8cd19..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/shared_set_status.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "SharedSetStatusProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing shared set statuses. - -// Container for enum describing types of shared set statuses. -message SharedSetStatusEnum { - // Enum listing the possible shared set statuses. - enum SharedSetStatus { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The shared set is enabled. - ENABLED = 2; - - // The shared set is removed and can no longer be used. - REMOVED = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/shared_set_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/shared_set_type.proto deleted file mode 100644 index cbcb1cc7c..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/shared_set_type.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "SharedSetTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing shared set types. - -// Container for enum describing types of shared sets. -message SharedSetTypeEnum { - // Enum listing the possible shared set types. - enum SharedSetType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // A set of keywords that can be excluded from targeting. - NEGATIVE_KEYWORDS = 2; - - // A set of placements that can be excluded from targeting. - NEGATIVE_PLACEMENTS = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/simulation_modification_method.proto b/third_party/googleapis/google/ads/googleads/v3/enums/simulation_modification_method.proto deleted file mode 100644 index 069f6a257..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/simulation_modification_method.proto +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "SimulationModificationMethodProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing simulation modification methods. - -// Container for enum describing the method by which a simulation modifies -// a field. -message SimulationModificationMethodEnum { - // Enum describing the method by which a simulation modifies a field. - enum SimulationModificationMethod { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The values in a simulation were applied to all children of a given - // resource uniformly. Overrides on child resources were not respected. - UNIFORM = 2; - - // The values in a simulation were applied to the given resource. - // Overrides on child resources were respected, and traffic estimates - // do not include these resources. - DEFAULT = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/simulation_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/simulation_type.proto deleted file mode 100644 index b90de6133..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/simulation_type.proto +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "SimulationTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing simulation types. - -// Container for enum describing the field a simulation modifies. -message SimulationTypeEnum { - // Enum describing the field a simulation modifies. - enum SimulationType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The simulation is for a CPC bid. - CPC_BID = 2; - - // The simulation is for a CPV bid. - CPV_BID = 3; - - // The simulation is for a CPA target. - TARGET_CPA = 4; - - // The simulation is for a bid modifier. - BID_MODIFIER = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/sitelink_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v3/enums/sitelink_placeholder_field.proto deleted file mode 100644 index ccc367685..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/sitelink_placeholder_field.proto +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "SitelinkPlaceholderFieldProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing Sitelink placeholder fields. - -// Values for Sitelink placeholder fields. -message SitelinkPlaceholderFieldEnum { - // Possible values for Sitelink placeholder fields. - enum SitelinkPlaceholderField { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Data Type: STRING. The link text for your sitelink. - TEXT = 2; - - // Data Type: STRING. First line of the sitelink description. - LINE_1 = 3; - - // Data Type: STRING. Second line of the sitelink description. - LINE_2 = 4; - - // Data Type: URL_LIST. Final URLs for the sitelink when using Upgraded - // URLs. - FINAL_URLS = 5; - - // Data Type: URL_LIST. Final Mobile URLs for the sitelink when using - // Upgraded URLs. - FINAL_MOBILE_URLS = 6; - - // Data Type: URL. Tracking template for the sitelink when using Upgraded - // URLs. - TRACKING_URL = 7; - - // Data Type: STRING. Final URL suffix for sitelink when using parallel - // tracking. - FINAL_URL_SUFFIX = 8; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/slot.proto b/third_party/googleapis/google/ads/googleads/v3/enums/slot.proto deleted file mode 100644 index 702ed1479..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/slot.proto +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "SlotProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing slots. - -// Container for enumeration of possible positions of the Ad. -message SlotEnum { - // Enumerates possible positions of the Ad. - enum Slot { - // Not specified. - UNSPECIFIED = 0; - - // The value is unknown in this version. - UNKNOWN = 1; - - // Google search: Side. - SEARCH_SIDE = 2; - - // Google search: Top. - SEARCH_TOP = 3; - - // Google search: Other. - SEARCH_OTHER = 4; - - // Google Display Network. - CONTENT = 5; - - // Search partners: Top. - SEARCH_PARTNER_TOP = 6; - - // Search partners: Other. - SEARCH_PARTNER_OTHER = 7; - - // Cross-network. - MIXED = 8; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/spending_limit_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/spending_limit_type.proto deleted file mode 100644 index da6a155b2..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/spending_limit_type.proto +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "SpendingLimitTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing SpendingLimit types. - -// Message describing spending limit types. -message SpendingLimitTypeEnum { - // The possible spending limit types used by certain resources as an - // alternative to absolute money values in micros. - enum SpendingLimitType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Infinite, indicates unlimited spending power. - INFINITE = 2; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/structured_snippet_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v3/enums/structured_snippet_placeholder_field.proto deleted file mode 100644 index 6f43aa196..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/structured_snippet_placeholder_field.proto +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "StructuredSnippetPlaceholderFieldProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing Structured Snippet placeholder fields. - -// Values for Structured Snippet placeholder fields. -message StructuredSnippetPlaceholderFieldEnum { - // Possible values for Structured Snippet placeholder fields. - enum StructuredSnippetPlaceholderField { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Data Type: STRING. The category of snippet of your products/services. - // Must match exactly one of the predefined structured snippets headers. - // For a list, visit - // https://developers.google.com/adwords/api/docs/appendix/structured-snippet-headers - HEADER = 2; - - // Data Type: STRING_LIST. Text values that describe your products/services. - // All text must be family safe. Special or non-ASCII characters are not - // permitted. A snippet can be at most 25 characters. - SNIPPETS = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/system_managed_entity_source.proto b/third_party/googleapis/google/ads/googleads/v3/enums/system_managed_entity_source.proto deleted file mode 100644 index 0d1ff47a8..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/system_managed_entity_source.proto +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "SystemManagedEntitySourceProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing system managed entity sources. - -// Container for enum describing possible system managed entity sources. -message SystemManagedResourceSourceEnum { - // Enum listing the possible system managed entity sources. - enum SystemManagedResourceSource { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Generated ad variations experiment ad. - AD_VARIATIONS = 2; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/target_cpa_opt_in_recommendation_goal.proto b/third_party/googleapis/google/ads/googleads/v3/enums/target_cpa_opt_in_recommendation_goal.proto deleted file mode 100644 index 828460dbb..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/target_cpa_opt_in_recommendation_goal.proto +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "TargetCpaOptInRecommendationGoalProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing TargetCpaOptIn recommendation goals. - -// Container for enum describing goals for TargetCpaOptIn recommendation. -message TargetCpaOptInRecommendationGoalEnum { - // Goal of TargetCpaOptIn recommendation. - enum TargetCpaOptInRecommendationGoal { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Recommendation to set Target CPA to maintain the same cost. - SAME_COST = 2; - - // Recommendation to set Target CPA to maintain the same conversions. - SAME_CONVERSIONS = 3; - - // Recommendation to set Target CPA to maintain the same CPA. - SAME_CPA = 4; - - // Recommendation to set Target CPA to a value that is as close as possible - // to, yet lower than, the actual CPA (computed for past 28 days). - CLOSEST_CPA = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/target_impression_share_location.proto b/third_party/googleapis/google/ads/googleads/v3/enums/target_impression_share_location.proto deleted file mode 100644 index e26046e7b..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/target_impression_share_location.proto +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "TargetImpressionShareLocationProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing target impression share goal. - -// Container for enum describing where on the first search results page the -// automated bidding system should target impressions for the -// TargetImpressionShare bidding strategy. -message TargetImpressionShareLocationEnum { - // Enum describing possible goals. - enum TargetImpressionShareLocation { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Any location on the web page. - ANYWHERE_ON_PAGE = 2; - - // Top box of ads. - TOP_OF_PAGE = 3; - - // Top slot in the top box of ads. - ABSOLUTE_TOP_OF_PAGE = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/targeting_dimension.proto b/third_party/googleapis/google/ads/googleads/v3/enums/targeting_dimension.proto deleted file mode 100644 index 3e31dc6fe..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/targeting_dimension.proto +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "TargetingDimensionProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing criteria types. - -// The dimensions that can be targeted. -message TargetingDimensionEnum { - // Enum describing possible targeting dimensions. - enum TargetingDimension { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Keyword criteria, e.g. 'mars cruise'. KEYWORD may be used as a custom bid - // dimension. Keywords are always a targeting dimension, so may not be set - // as a target "ALL" dimension with TargetRestriction. - KEYWORD = 2; - - // Audience criteria, which include user list, user interest, custom - // affinity, and custom in market. - AUDIENCE = 3; - - // Topic criteria for targeting categories of content, e.g. - // 'category::Animals>Pets' Used for Display and Video targeting. - TOPIC = 4; - - // Criteria for targeting gender. - GENDER = 5; - - // Criteria for targeting age ranges. - AGE_RANGE = 6; - - // Placement criteria, which include websites like 'www.flowers4sale.com', - // as well as mobile applications, mobile app categories, YouTube videos, - // and YouTube channels. - PLACEMENT = 7; - - // Criteria for parental status targeting. - PARENTAL_STATUS = 8; - - // Criteria for income range targeting. - INCOME_RANGE = 9; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/time_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/time_type.proto deleted file mode 100644 index 80925901c..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/time_type.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "TimeTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing TimeType types. - -// Message describing time types. -message TimeTypeEnum { - // The possible time types used by certain resources as an alternative to - // absolute timestamps. - enum TimeType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // As soon as possible. - NOW = 2; - - // An infinite point in the future. - FOREVER = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/tracking_code_page_format.proto b/third_party/googleapis/google/ads/googleads/v3/enums/tracking_code_page_format.proto deleted file mode 100644 index c621e93cc..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/tracking_code_page_format.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "TrackingCodePageFormatProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Container for enum describing the format of the web page where the tracking -// tag and snippet will be installed. -message TrackingCodePageFormatEnum { - // The format of the web page where the tracking tag and snippet will be - // installed. - enum TrackingCodePageFormat { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Standard HTML page format. - HTML = 2; - - // Google AMP page format. - AMP = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/tracking_code_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/tracking_code_type.proto deleted file mode 100644 index 7d43ee0d2..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/tracking_code_type.proto +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "TrackingCodeTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Container for enum describing the type of the generated tag snippets for -// tracking conversions. -message TrackingCodeTypeEnum { - // The type of the generated tag snippets for tracking conversions. - enum TrackingCodeType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The snippet that is fired as a result of a website page loading. - WEBPAGE = 2; - - // The snippet contains a JavaScript function which fires the tag. This - // function is typically called from an onClick handler added to a link or - // button element on the page. - WEBPAGE_ONCLICK = 3; - - // For embedding on a mobile webpage. The snippet contains a JavaScript - // function which fires the tag. - CLICK_TO_CALL = 4; - - // The snippet that is used to replace the phone number on your website with - // a Google forwarding number for call tracking purposes. - WEBSITE_CALL = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/travel_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v3/enums/travel_placeholder_field.proto deleted file mode 100644 index ef9c67795..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/travel_placeholder_field.proto +++ /dev/null @@ -1,128 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "TravelPlaceholderFieldProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing Travel placeholder fields. - -// Values for Travel placeholder fields. -// For more information about dynamic remarketing feeds, see -// https://support.google.com/google-ads/answer/6053288. -message TravelPlaceholderFieldEnum { - // Possible values for Travel placeholder fields. - enum TravelPlaceholderField { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Data Type: STRING. Required. Destination id. Example: PAR, LON. - // For feed items that only have destination id, destination id must be a - // unique key. For feed items that have both destination id and origin id, - // then the combination must be a unique key. - DESTINATION_ID = 2; - - // Data Type: STRING. Origin id. Example: PAR, LON. - // Combination of DESTINATION_ID and ORIGIN_ID must be - // unique per offer. - ORIGIN_ID = 3; - - // Data Type: STRING. Required. Main headline with name to be shown in - // dynamic ad. - TITLE = 4; - - // Data Type: STRING. The destination name. Shorter names are recommended. - DESTINATION_NAME = 5; - - // Data Type: STRING. Origin name. Shorter names are recommended. - ORIGIN_NAME = 6; - - // Data Type: STRING. Price to be shown in the ad. Highly recommended for - // dynamic ads. - // Example: "100.00 USD" - PRICE = 7; - - // Data Type: STRING. Formatted price to be shown in the ad. - // Example: "Starting at $100.00 USD", "$80 - $100" - FORMATTED_PRICE = 8; - - // Data Type: STRING. Sale price to be shown in the ad. - // Example: "80.00 USD" - SALE_PRICE = 9; - - // Data Type: STRING. Formatted sale price to be shown in the ad. - // Example: "On sale for $80.00", "$60 - $80" - FORMATTED_SALE_PRICE = 10; - - // Data Type: URL. Image to be displayed in the ad. - IMAGE_URL = 11; - - // Data Type: STRING. Category of travel offer used to group like items - // together for recommendation engine. - CATEGORY = 12; - - // Data Type: STRING_LIST. Keywords used for product retrieval. - CONTEXTUAL_KEYWORDS = 13; - - // Data Type: STRING. Address of travel offer, including postal code. - DESTINATION_ADDRESS = 14; - - // Data Type: URL_LIST. Required. Final URLs to be used in ad, when using - // Upgraded URLs; the more specific the better (e.g. the individual URL of a - // specific travel offer and its location). - FINAL_URL = 15; - - // Data Type: URL_LIST. Final mobile URLs for the ad when using Upgraded - // URLs. - FINAL_MOBILE_URLS = 16; - - // Data Type: URL. Tracking template for the ad when using Upgraded URLs. - TRACKING_URL = 17; - - // Data Type: STRING. Android app link. Must be formatted as: - // android-app://{package_id}/{scheme}/{host_path}. - // The components are defined as follows: - // package_id: app ID as specified in Google Play. - // scheme: the scheme to pass to the application. Can be HTTP, or a custom - // scheme. - // host_path: identifies the specific content within your application. - ANDROID_APP_LINK = 18; - - // Data Type: STRING_LIST. List of recommended destination IDs to show - // together with this item. - SIMILAR_DESTINATION_IDS = 19; - - // Data Type: STRING. iOS app link. - IOS_APP_LINK = 20; - - // Data Type: INT64. iOS app store ID. - IOS_APP_STORE_ID = 21; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/user_interest_taxonomy_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/user_interest_taxonomy_type.proto deleted file mode 100644 index a6c34892d..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/user_interest_taxonomy_type.proto +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "UserInterestTaxonomyTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing the UserInterest taxonomy type - -// Message describing a UserInterestTaxonomyType. -message UserInterestTaxonomyTypeEnum { - // Enum containing the possible UserInterestTaxonomyTypes. - enum UserInterestTaxonomyType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The affinity for this user interest. - AFFINITY = 2; - - // The market for this user interest. - IN_MARKET = 3; - - // Users known to have installed applications in the specified categories. - MOBILE_APP_INSTALL_USER = 4; - - // The geographical location of the interest-based vertical. - VERTICAL_GEO = 5; - - // User interest criteria for new smart phone users. - NEW_SMART_PHONE_USER = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/user_list_access_status.proto b/third_party/googleapis/google/ads/googleads/v3/enums/user_list_access_status.proto deleted file mode 100644 index b7a7f5fb4..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/user_list_access_status.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "UserListAccessStatusProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing user list access status. - -// Indicates if this client still has access to the list. -message UserListAccessStatusEnum { - // Enum containing possible user list access statuses. - enum UserListAccessStatus { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The access is enabled. - ENABLED = 2; - - // The access is disabled. - DISABLED = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/user_list_closing_reason.proto b/third_party/googleapis/google/ads/googleads/v3/enums/user_list_closing_reason.proto deleted file mode 100644 index b14300908..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/user_list_closing_reason.proto +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "UserListClosingReasonProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing user list closing reason. - -// Indicates the reason why the userlist was closed. -// This enum is only used when a list is auto-closed by the system. -message UserListClosingReasonEnum { - // Enum describing possible user list closing reasons. - enum UserListClosingReason { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The userlist was closed because of not being used for over one year. - UNUSED = 2; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/user_list_combined_rule_operator.proto b/third_party/googleapis/google/ads/googleads/v3/enums/user_list_combined_rule_operator.proto deleted file mode 100644 index 6fdeb650b..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/user_list_combined_rule_operator.proto +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "UserListCombinedRuleOperatorProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Logical operator connecting two rules. -message UserListCombinedRuleOperatorEnum { - // Enum describing possible user list combined rule operators. - enum UserListCombinedRuleOperator { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // A AND B. - AND = 2; - - // A AND NOT B. - AND_NOT = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/user_list_crm_data_source_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/user_list_crm_data_source_type.proto deleted file mode 100644 index 1a792b92e..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/user_list_crm_data_source_type.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "UserListCrmDataSourceTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Indicates source of Crm upload data. -message UserListCrmDataSourceTypeEnum { - // Enum describing possible user list crm data source type. - enum UserListCrmDataSourceType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The uploaded data is first-party data. - FIRST_PARTY = 2; - - // The uploaded data is from a third-party credit bureau. - THIRD_PARTY_CREDIT_BUREAU = 3; - - // The uploaded data is from a third-party voter file. - THIRD_PARTY_VOTER_FILE = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/user_list_date_rule_item_operator.proto b/third_party/googleapis/google/ads/googleads/v3/enums/user_list_date_rule_item_operator.proto deleted file mode 100644 index af386825a..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/user_list_date_rule_item_operator.proto +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "UserListDateRuleItemOperatorProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Supported rule operator for date type. -message UserListDateRuleItemOperatorEnum { - // Enum describing possible user list date rule item operators. - enum UserListDateRuleItemOperator { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Equals. - EQUALS = 2; - - // Not Equals. - NOT_EQUALS = 3; - - // Before. - BEFORE = 4; - - // After. - AFTER = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/user_list_logical_rule_operator.proto b/third_party/googleapis/google/ads/googleads/v3/enums/user_list_logical_rule_operator.proto deleted file mode 100644 index 141b028d0..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/user_list_logical_rule_operator.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "UserListLogicalRuleOperatorProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// The logical operator of the rule. -message UserListLogicalRuleOperatorEnum { - // Enum describing possible user list logical rule operators. - enum UserListLogicalRuleOperator { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // And - all of the operands. - ALL = 2; - - // Or - at least one of the operands. - ANY = 3; - - // Not - none of the operands. - NONE = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/user_list_membership_status.proto b/third_party/googleapis/google/ads/googleads/v3/enums/user_list_membership_status.proto deleted file mode 100644 index a921ae29f..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/user_list_membership_status.proto +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "UserListMembershipStatusProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing user list membership status. - -// 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 used for -// targeting. -message UserListMembershipStatusEnum { - // Enum containing possible user list membership statuses. - enum UserListMembershipStatus { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Open status - List is accruing members and can be targeted to. - OPEN = 2; - - // Closed status - No new members being added. Cannot be used for targeting. - CLOSED = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/user_list_number_rule_item_operator.proto b/third_party/googleapis/google/ads/googleads/v3/enums/user_list_number_rule_item_operator.proto deleted file mode 100644 index e3fe69adb..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/user_list_number_rule_item_operator.proto +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "UserListNumberRuleItemOperatorProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Supported rule operator for number type. -message UserListNumberRuleItemOperatorEnum { - // Enum describing possible user list number rule item operators. - enum UserListNumberRuleItemOperator { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Greater than. - GREATER_THAN = 2; - - // Greater than or equal. - GREATER_THAN_OR_EQUAL = 3; - - // Equals. - EQUALS = 4; - - // Not equals. - NOT_EQUALS = 5; - - // Less than. - LESS_THAN = 6; - - // Less than or equal. - LESS_THAN_OR_EQUAL = 7; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/user_list_prepopulation_status.proto b/third_party/googleapis/google/ads/googleads/v3/enums/user_list_prepopulation_status.proto deleted file mode 100644 index 0aa56c010..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/user_list_prepopulation_status.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "UserListPrepopulationStatusProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Indicates status of prepopulation based on the rule. -message UserListPrepopulationStatusEnum { - // Enum describing possible user list prepopulation status. - enum UserListPrepopulationStatus { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Prepopoulation is being requested. - REQUESTED = 2; - - // Prepopulation is finished. - FINISHED = 3; - - // Prepopulation failed. - FAILED = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/user_list_rule_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/user_list_rule_type.proto deleted file mode 100644 index 5b38251c4..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/user_list_rule_type.proto +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "UserListRuleTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Rule based user list rule type. -message UserListRuleTypeEnum { - // Enum describing possible user list rule types. - enum UserListRuleType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Conjunctive normal form. - AND_OF_ORS = 2; - - // Disjunctive normal form. - OR_OF_ANDS = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/user_list_size_range.proto b/third_party/googleapis/google/ads/googleads/v3/enums/user_list_size_range.proto deleted file mode 100644 index d319d3e34..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/user_list_size_range.proto +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "UserListSizeRangeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing user list size range. - -// Size range in terms of number of users of a UserList. -message UserListSizeRangeEnum { - // Enum containing possible user list size ranges. - enum UserListSizeRange { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // User list has less than 500 users. - LESS_THAN_FIVE_HUNDRED = 2; - - // User list has number of users in range of 500 to 1000. - LESS_THAN_ONE_THOUSAND = 3; - - // User list has number of users in range of 1000 to 10000. - ONE_THOUSAND_TO_TEN_THOUSAND = 4; - - // User list has number of users in range of 10000 to 50000. - TEN_THOUSAND_TO_FIFTY_THOUSAND = 5; - - // User list has number of users in range of 50000 to 100000. - FIFTY_THOUSAND_TO_ONE_HUNDRED_THOUSAND = 6; - - // User list has number of users in range of 100000 to 300000. - ONE_HUNDRED_THOUSAND_TO_THREE_HUNDRED_THOUSAND = 7; - - // User list has number of users in range of 300000 to 500000. - THREE_HUNDRED_THOUSAND_TO_FIVE_HUNDRED_THOUSAND = 8; - - // User list has number of users in range of 500000 to 1 million. - FIVE_HUNDRED_THOUSAND_TO_ONE_MILLION = 9; - - // User list has number of users in range of 1 to 2 millions. - ONE_MILLION_TO_TWO_MILLION = 10; - - // User list has number of users in range of 2 to 3 millions. - TWO_MILLION_TO_THREE_MILLION = 11; - - // User list has number of users in range of 3 to 5 millions. - THREE_MILLION_TO_FIVE_MILLION = 12; - - // User list has number of users in range of 5 to 10 millions. - FIVE_MILLION_TO_TEN_MILLION = 13; - - // User list has number of users in range of 10 to 20 millions. - TEN_MILLION_TO_TWENTY_MILLION = 14; - - // User list has number of users in range of 20 to 30 millions. - TWENTY_MILLION_TO_THIRTY_MILLION = 15; - - // User list has number of users in range of 30 to 50 millions. - THIRTY_MILLION_TO_FIFTY_MILLION = 16; - - // User list has over 50 million users. - OVER_FIFTY_MILLION = 17; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/user_list_string_rule_item_operator.proto b/third_party/googleapis/google/ads/googleads/v3/enums/user_list_string_rule_item_operator.proto deleted file mode 100644 index 3ddd510c8..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/user_list_string_rule_item_operator.proto +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "UserListStringRuleItemOperatorProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Supported rule operator for string type. -message UserListStringRuleItemOperatorEnum { - // Enum describing possible user list string rule item operators. - enum UserListStringRuleItemOperator { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Contains. - CONTAINS = 2; - - // Equals. - EQUALS = 3; - - // Starts with. - STARTS_WITH = 4; - - // Ends with. - ENDS_WITH = 5; - - // Not equals. - NOT_EQUALS = 6; - - // Not contains. - NOT_CONTAINS = 7; - - // Not starts with. - NOT_STARTS_WITH = 8; - - // Not ends with. - NOT_ENDS_WITH = 9; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/user_list_type.proto b/third_party/googleapis/google/ads/googleads/v3/enums/user_list_type.proto deleted file mode 100644 index 91d2e8912..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/user_list_type.proto +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "UserListTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing user list type. - -// The user list types. -message UserListTypeEnum { - // Enum containing possible user list types. - enum UserListType { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // UserList represented as a collection of conversion types. - REMARKETING = 2; - - // UserList represented as a combination of other user lists/interests. - LOGICAL = 3; - - // UserList created in the Google Ad Manager platform. - EXTERNAL_REMARKETING = 4; - - // UserList associated with a rule. - RULE_BASED = 5; - - // UserList with users similar to users of another UserList. - SIMILAR = 6; - - // UserList of first-party CRM data provided by advertiser in the form of - // emails or other formats. - CRM_BASED = 7; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/vanity_pharma_display_url_mode.proto b/third_party/googleapis/google/ads/googleads/v3/enums/vanity_pharma_display_url_mode.proto deleted file mode 100644 index e00f76ae6..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/vanity_pharma_display_url_mode.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "VanityPharmaDisplayUrlModeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing vanity pharma display url modes. - -// The display mode for vanity pharma URLs. -message VanityPharmaDisplayUrlModeEnum { - // Enum describing possible display modes for vanity pharma URLs. - enum VanityPharmaDisplayUrlMode { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Replace vanity pharma URL with manufacturer website url. - MANUFACTURER_WEBSITE_URL = 2; - - // Replace vanity pharma URL with description of the website. - WEBSITE_DESCRIPTION = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/vanity_pharma_text.proto b/third_party/googleapis/google/ads/googleads/v3/enums/vanity_pharma_text.proto deleted file mode 100644 index 1a6cfa941..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/vanity_pharma_text.proto +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "VanityPharmaTextProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing vanity pharma texts. - -// The text that will be displayed in display URL of the text ad when website -// description is the selected display mode for vanity pharma URLs. -message VanityPharmaTextEnum { - // Enum describing possible text. - enum VanityPharmaText { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Prescription treatment website with website content in English. - PRESCRIPTION_TREATMENT_WEBSITE_EN = 2; - - // Prescription treatment website with website content in Spanish - // (Sitio de tratamientos con receta). - PRESCRIPTION_TREATMENT_WEBSITE_ES = 3; - - // Prescription device website with website content in English. - PRESCRIPTION_DEVICE_WEBSITE_EN = 4; - - // Prescription device website with website content in Spanish (Sitio de - // dispositivos con receta). - PRESCRIPTION_DEVICE_WEBSITE_ES = 5; - - // Medical device website with website content in English. - MEDICAL_DEVICE_WEBSITE_EN = 6; - - // Medical device website with website content in Spanish (Sitio de - // dispositivos médicos). - MEDICAL_DEVICE_WEBSITE_ES = 7; - - // Preventative treatment website with website content in English. - PREVENTATIVE_TREATMENT_WEBSITE_EN = 8; - - // Preventative treatment website with website content in Spanish (Sitio de - // tratamientos preventivos). - PREVENTATIVE_TREATMENT_WEBSITE_ES = 9; - - // Prescription contraception website with website content in English. - PRESCRIPTION_CONTRACEPTION_WEBSITE_EN = 10; - - // Prescription contraception website with website content in Spanish (Sitio - // de anticonceptivos con receta). - PRESCRIPTION_CONTRACEPTION_WEBSITE_ES = 11; - - // Prescription vaccine website with website content in English. - PRESCRIPTION_VACCINE_WEBSITE_EN = 12; - - // Prescription vaccine website with website content in Spanish (Sitio de - // vacunas con receta). - PRESCRIPTION_VACCINE_WEBSITE_ES = 13; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/webpage_condition_operand.proto b/third_party/googleapis/google/ads/googleads/v3/enums/webpage_condition_operand.proto deleted file mode 100644 index 869f9e3d4..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/webpage_condition_operand.proto +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "WebpageConditionOperandProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing webpage condition operand. - -// Container for enum describing webpage condition operand in webpage criterion. -message WebpageConditionOperandEnum { - // The webpage condition operand in webpage criterion. - enum WebpageConditionOperand { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Operand denoting a webpage URL targeting condition. - URL = 2; - - // Operand denoting a webpage category targeting condition. - CATEGORY = 3; - - // Operand denoting a webpage title targeting condition. - PAGE_TITLE = 4; - - // Operand denoting a webpage content targeting condition. - PAGE_CONTENT = 5; - - // Operand denoting a webpage custom label targeting condition. - CUSTOM_LABEL = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/webpage_condition_operator.proto b/third_party/googleapis/google/ads/googleads/v3/enums/webpage_condition_operator.proto deleted file mode 100644 index 8d37393b3..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/enums/webpage_condition_operator.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.enums; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; -option java_multiple_files = true; -option java_outer_classname = "WebpageConditionOperatorProto"; -option java_package = "com.google.ads.googleads.v3.enums"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; - -// Proto file describing webpage condition operator. - -// Container for enum describing webpage condition operator in webpage -// criterion. -message WebpageConditionOperatorEnum { - // The webpage condition operator in webpage criterion. - enum WebpageConditionOperator { - // Not specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // The argument web condition is equal to the compared web condition. - EQUALS = 2; - - // The argument web condition is part of the compared web condition. - CONTAINS = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/access_invitation_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/access_invitation_error.proto deleted file mode 100644 index 8d697dcef..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/access_invitation_error.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "AccessInvitationErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing AccessInvitation errors. - -// Container for enum describing possible AccessInvitation errors. -message AccessInvitationErrorEnum { - // Enum describing possible AccessInvitation errors. - enum AccessInvitationError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The email address is invalid for sending an invitation. - INVALID_EMAIL_ADDRESS = 2; - - // Email address already has access to this customer. - EMAIL_ADDRESS_ALREADY_HAS_ACCESS = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/account_budget_proposal_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/account_budget_proposal_error.proto deleted file mode 100644 index 9ecf85ff9..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/account_budget_proposal_error.proto +++ /dev/null @@ -1,118 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "AccountBudgetProposalErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing account budget proposal errors. - -// Container for enum describing possible account budget proposal errors. -message AccountBudgetProposalErrorEnum { - // Enum describing possible account budget proposal errors. - enum AccountBudgetProposalError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The field mask must be empty for create/end/remove proposals. - FIELD_MASK_NOT_ALLOWED = 2; - - // The field cannot be set because of the proposal type. - IMMUTABLE_FIELD = 3; - - // The field is required because of the proposal type. - REQUIRED_FIELD_MISSING = 4; - - // Proposals that have been approved cannot be cancelled. - CANNOT_CANCEL_APPROVED_PROPOSAL = 5; - - // Budgets that haven't been approved cannot be removed. - CANNOT_REMOVE_UNAPPROVED_BUDGET = 6; - - // Budgets that are currently running cannot be removed. - CANNOT_REMOVE_RUNNING_BUDGET = 7; - - // Budgets that haven't been approved cannot be truncated. - CANNOT_END_UNAPPROVED_BUDGET = 8; - - // Only budgets that are currently running can be truncated. - CANNOT_END_INACTIVE_BUDGET = 9; - - // All budgets must have names. - BUDGET_NAME_REQUIRED = 10; - - // Expired budgets cannot be edited after a sufficient amount of time has - // passed. - CANNOT_UPDATE_OLD_BUDGET = 11; - - // It is not permissible a propose a new budget that ends in the past. - CANNOT_END_IN_PAST = 12; - - // An expired budget cannot be extended to overlap with the running budget. - CANNOT_EXTEND_END_TIME = 13; - - // A purchase order number is required. - PURCHASE_ORDER_NUMBER_REQUIRED = 14; - - // Budgets that have a pending update cannot be updated. - PENDING_UPDATE_PROPOSAL_EXISTS = 15; - - // Cannot propose more than one budget when the corresponding billing setup - // hasn't been approved. - MULTIPLE_BUDGETS_NOT_ALLOWED_FOR_UNAPPROVED_BILLING_SETUP = 16; - - // Cannot update the start time of a budget that has already started. - CANNOT_UPDATE_START_TIME_FOR_STARTED_BUDGET = 17; - - // Cannot update the spending limit of a budget with an amount lower than - // what has already been spent. - SPENDING_LIMIT_LOWER_THAN_ACCRUED_COST_NOT_ALLOWED = 18; - - // Cannot propose a budget update without actually changing any fields. - UPDATE_IS_NO_OP = 19; - - // The end time must come after the start time. - END_TIME_MUST_FOLLOW_START_TIME = 20; - - // The budget's date range must fall within the date range of its billing - // setup. - BUDGET_DATE_RANGE_INCOMPATIBLE_WITH_BILLING_SETUP = 21; - - // The user is not authorized to mutate budgets for the given billing setup. - NOT_AUTHORIZED = 22; - - // Mutates are not allowed for the given billing setup. - INVALID_BILLING_SETUP = 23; - - // Budget creation failed as it overlaps with an pending budget proposal - // or an approved budget. - OVERLAPS_EXISTING_BUDGET = 24; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/ad_customizer_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/ad_customizer_error.proto deleted file mode 100644 index e46fa0183..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/ad_customizer_error.proto +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "AdCustomizerErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing ad customizer errors. - -// Container for enum describing possible ad customizer errors. -message AdCustomizerErrorEnum { - // Enum describing possible ad customizer errors. - enum AdCustomizerError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Invalid date argument in countdown function. - COUNTDOWN_INVALID_DATE_FORMAT = 2; - - // Countdown end date is in the past. - COUNTDOWN_DATE_IN_PAST = 3; - - // Invalid locale string in countdown function. - COUNTDOWN_INVALID_LOCALE = 4; - - // Days-before argument to countdown function is not positive. - COUNTDOWN_INVALID_START_DAYS_BEFORE = 5; - - // A user list referenced in an IF function does not exist. - UNKNOWN_USER_LIST = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/ad_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/ad_error.proto deleted file mode 100644 index d191eaf82..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/ad_error.proto +++ /dev/null @@ -1,478 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "AdErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing ad errors. - -// Container for enum describing possible ad errors. -message AdErrorEnum { - // Enum describing possible ad errors. - enum AdError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Ad customizers are not supported for ad type. - AD_CUSTOMIZERS_NOT_SUPPORTED_FOR_AD_TYPE = 2; - - // Estimating character sizes the string is too long. - APPROXIMATELY_TOO_LONG = 3; - - // Estimating character sizes the string is too short. - APPROXIMATELY_TOO_SHORT = 4; - - // There is a problem with the snippet. - BAD_SNIPPET = 5; - - // Cannot modify an ad. - CANNOT_MODIFY_AD = 6; - - // business name and url cannot be set at the same time - CANNOT_SET_BUSINESS_NAME_IF_URL_SET = 7; - - // The specified field is incompatible with this ad's type or settings. - CANNOT_SET_FIELD = 8; - - // Cannot set field when originAdId is set. - CANNOT_SET_FIELD_WITH_ORIGIN_AD_ID_SET = 9; - - // Cannot set field when an existing ad id is set for sharing. - CANNOT_SET_FIELD_WITH_AD_ID_SET_FOR_SHARING = 10; - - // Cannot set allowFlexibleColor false if no color is provided by user. - CANNOT_SET_ALLOW_FLEXIBLE_COLOR_FALSE = 11; - - // When user select native, no color control is allowed because we will - // always respect publisher color for native format serving. - CANNOT_SET_COLOR_CONTROL_WHEN_NATIVE_FORMAT_SETTING = 12; - - // Cannot specify a url for the ad type - CANNOT_SET_URL = 13; - - // Cannot specify a tracking or mobile url without also setting final urls - CANNOT_SET_WITHOUT_FINAL_URLS = 14; - - // Cannot specify a legacy url and a final url simultaneously - CANNOT_SET_WITH_FINAL_URLS = 15; - - // Cannot specify a urls in UrlData and in template fields simultaneously. - CANNOT_SET_WITH_URL_DATA = 17; - - // This operator cannot be used with a subclass of Ad. - CANNOT_USE_AD_SUBCLASS_FOR_OPERATOR = 18; - - // Customer is not approved for mobile ads. - CUSTOMER_NOT_APPROVED_MOBILEADS = 19; - - // Customer is not approved for 3PAS richmedia ads. - CUSTOMER_NOT_APPROVED_THIRDPARTY_ADS = 20; - - // Customer is not approved for 3PAS redirect richmedia (Ad Exchange) ads. - CUSTOMER_NOT_APPROVED_THIRDPARTY_REDIRECT_ADS = 21; - - // Not an eligible customer - CUSTOMER_NOT_ELIGIBLE = 22; - - // Customer is not eligible for updating beacon url - CUSTOMER_NOT_ELIGIBLE_FOR_UPDATING_BEACON_URL = 23; - - // There already exists an ad with the same dimensions in the union. - DIMENSION_ALREADY_IN_UNION = 24; - - // Ad's dimension must be set before setting union dimension. - DIMENSION_MUST_BE_SET = 25; - - // Ad's dimension must be included in the union dimensions. - DIMENSION_NOT_IN_UNION = 26; - - // Display Url cannot be specified (applies to Ad Exchange Ads) - DISPLAY_URL_CANNOT_BE_SPECIFIED = 27; - - // Telephone number contains invalid characters or invalid format. Please - // re-enter your number using digits (0-9), dashes (-), and parentheses - // only. - DOMESTIC_PHONE_NUMBER_FORMAT = 28; - - // Emergency telephone numbers are not allowed. Please enter a valid - // domestic phone number to connect customers to your business. - EMERGENCY_PHONE_NUMBER = 29; - - // A required field was not specified or is an empty string. - EMPTY_FIELD = 30; - - // A feed attribute referenced in an ad customizer tag is not in the ad - // customizer mapping for the feed. - FEED_ATTRIBUTE_MUST_HAVE_MAPPING_FOR_TYPE_ID = 31; - - // The ad customizer field mapping for the feed attribute does not match the - // expected field type. - FEED_ATTRIBUTE_MAPPING_TYPE_MISMATCH = 32; - - // The use of ad customizer tags in the ad text is disallowed. Details in - // trigger. - ILLEGAL_AD_CUSTOMIZER_TAG_USE = 33; - - // Tags of the form {PH_x}, where x is a number, are disallowed in ad text. - ILLEGAL_TAG_USE = 34; - - // The dimensions of the ad are specified or derived in multiple ways and - // are not consistent. - INCONSISTENT_DIMENSIONS = 35; - - // The status cannot differ among template ads of the same union. - INCONSISTENT_STATUS_IN_TEMPLATE_UNION = 36; - - // The length of the string is not valid. - INCORRECT_LENGTH = 37; - - // The ad is ineligible for upgrade. - INELIGIBLE_FOR_UPGRADE = 38; - - // User cannot create mobile ad for countries targeted in specified - // campaign. - INVALID_AD_ADDRESS_CAMPAIGN_TARGET = 39; - - // Invalid Ad type. A specific type of Ad is required. - INVALID_AD_TYPE = 40; - - // Headline, description or phone cannot be present when creating mobile - // image ad. - INVALID_ATTRIBUTES_FOR_MOBILE_IMAGE = 41; - - // Image cannot be present when creating mobile text ad. - INVALID_ATTRIBUTES_FOR_MOBILE_TEXT = 42; - - // Invalid call to action text. - INVALID_CALL_TO_ACTION_TEXT = 43; - - // Invalid character in URL. - INVALID_CHARACTER_FOR_URL = 44; - - // Creative's country code is not valid. - INVALID_COUNTRY_CODE = 45; - - // Invalid use of Expanded Dynamic Search Ads tags ({lpurl} etc.) - INVALID_EXPANDED_DYNAMIC_SEARCH_AD_TAG = 47; - - // An input error whose real reason was not properly mapped (should not - // happen). - INVALID_INPUT = 48; - - // An invalid markup language was entered. - INVALID_MARKUP_LANGUAGE = 49; - - // An invalid mobile carrier was entered. - INVALID_MOBILE_CARRIER = 50; - - // Specified mobile carriers target a country not targeted by the campaign. - INVALID_MOBILE_CARRIER_TARGET = 51; - - // Wrong number of elements for given element type - INVALID_NUMBER_OF_ELEMENTS = 52; - - // The format of the telephone number is incorrect. Please re-enter the - // number using the correct format. - INVALID_PHONE_NUMBER_FORMAT = 53; - - // The certified vendor format id is incorrect. - INVALID_RICH_MEDIA_CERTIFIED_VENDOR_FORMAT_ID = 54; - - // The template ad data contains validation errors. - INVALID_TEMPLATE_DATA = 55; - - // The template field doesn't have have the correct type. - INVALID_TEMPLATE_ELEMENT_FIELD_TYPE = 56; - - // Invalid template id. - INVALID_TEMPLATE_ID = 57; - - // After substituting replacement strings, the line is too wide. - LINE_TOO_WIDE = 58; - - // The feed referenced must have ad customizer mapping to be used in a - // customizer tag. - MISSING_AD_CUSTOMIZER_MAPPING = 59; - - // Missing address component in template element address field. - MISSING_ADDRESS_COMPONENT = 60; - - // An ad name must be entered. - MISSING_ADVERTISEMENT_NAME = 61; - - // Business name must be entered. - MISSING_BUSINESS_NAME = 62; - - // Description (line 2) must be entered. - MISSING_DESCRIPTION1 = 63; - - // Description (line 3) must be entered. - MISSING_DESCRIPTION2 = 64; - - // The destination url must contain at least one tag (e.g. {lpurl}) - MISSING_DESTINATION_URL_TAG = 65; - - // The tracking url template of ExpandedDynamicSearchAd must contain at - // least one tag. (e.g. {lpurl}) - MISSING_LANDING_PAGE_URL_TAG = 66; - - // A valid dimension must be specified for this ad. - MISSING_DIMENSION = 67; - - // A display URL must be entered. - MISSING_DISPLAY_URL = 68; - - // Headline must be entered. - MISSING_HEADLINE = 69; - - // A height must be entered. - MISSING_HEIGHT = 70; - - // An image must be entered. - MISSING_IMAGE = 71; - - // Marketing image or product videos are required. - MISSING_MARKETING_IMAGE_OR_PRODUCT_VIDEOS = 72; - - // The markup language in which your site is written must be entered. - MISSING_MARKUP_LANGUAGES = 73; - - // A mobile carrier must be entered. - MISSING_MOBILE_CARRIER = 74; - - // Phone number must be entered. - MISSING_PHONE = 75; - - // Missing required template fields - MISSING_REQUIRED_TEMPLATE_FIELDS = 76; - - // Missing a required field value - MISSING_TEMPLATE_FIELD_VALUE = 77; - - // The ad must have text. - MISSING_TEXT = 78; - - // A visible URL must be entered. - MISSING_VISIBLE_URL = 79; - - // A width must be entered. - MISSING_WIDTH = 80; - - // Only 1 feed can be used as the source of ad customizer substitutions in a - // single ad. - MULTIPLE_DISTINCT_FEEDS_UNSUPPORTED = 81; - - // TempAdUnionId must be use when adding template ads. - MUST_USE_TEMP_AD_UNION_ID_ON_ADD = 82; - - // The string has too many characters. - TOO_LONG = 83; - - // The string has too few characters. - TOO_SHORT = 84; - - // Ad union dimensions cannot change for saved ads. - UNION_DIMENSIONS_CANNOT_CHANGE = 85; - - // Address component is not {country, lat, lng}. - UNKNOWN_ADDRESS_COMPONENT = 86; - - // Unknown unique field name - UNKNOWN_FIELD_NAME = 87; - - // Unknown unique name (template element type specifier) - UNKNOWN_UNIQUE_NAME = 88; - - // Unsupported ad dimension - UNSUPPORTED_DIMENSIONS = 89; - - // URL starts with an invalid scheme. - URL_INVALID_SCHEME = 90; - - // URL ends with an invalid top-level domain name. - URL_INVALID_TOP_LEVEL_DOMAIN = 91; - - // URL contains illegal characters. - URL_MALFORMED = 92; - - // URL must contain a host name. - URL_NO_HOST = 93; - - // URL not equivalent during upgrade. - URL_NOT_EQUIVALENT = 94; - - // URL host name too long to be stored as visible URL (applies to Ad - // Exchange ads) - URL_HOST_NAME_TOO_LONG = 95; - - // URL must start with a scheme. - URL_NO_SCHEME = 96; - - // URL should end in a valid domain extension, such as .com or .net. - URL_NO_TOP_LEVEL_DOMAIN = 97; - - // URL must not end with a path. - URL_PATH_NOT_ALLOWED = 98; - - // URL must not specify a port. - URL_PORT_NOT_ALLOWED = 99; - - // URL must not contain a query. - URL_QUERY_NOT_ALLOWED = 100; - - // A url scheme is not allowed in front of tag in tracking url template - // (e.g. http://{lpurl}) - URL_SCHEME_BEFORE_EXPANDED_DYNAMIC_SEARCH_AD_TAG = 102; - - // The user does not have permissions to create a template ad for the given - // template. - USER_DOES_NOT_HAVE_ACCESS_TO_TEMPLATE = 103; - - // Expandable setting is inconsistent/wrong. For example, an AdX ad is - // invalid if it has a expandable vendor format but no expanding directions - // specified, or expanding directions is specified, but the vendor format is - // not expandable. - INCONSISTENT_EXPANDABLE_SETTINGS = 104; - - // Format is invalid - INVALID_FORMAT = 105; - - // The text of this field did not match a pattern of allowed values. - INVALID_FIELD_TEXT = 106; - - // Template element is mising - ELEMENT_NOT_PRESENT = 107; - - // Error occurred during image processing - IMAGE_ERROR = 108; - - // The value is not within the valid range - VALUE_NOT_IN_RANGE = 109; - - // Template element field is not present - FIELD_NOT_PRESENT = 110; - - // Address is incomplete - ADDRESS_NOT_COMPLETE = 111; - - // Invalid address - ADDRESS_INVALID = 112; - - // Error retrieving specified video - VIDEO_RETRIEVAL_ERROR = 113; - - // Error processing audio - AUDIO_ERROR = 114; - - // Display URL is incorrect for YouTube PYV ads - INVALID_YOUTUBE_DISPLAY_URL = 115; - - // Too many product Images in GmailAd - TOO_MANY_PRODUCT_IMAGES = 116; - - // Too many product Videos in GmailAd - TOO_MANY_PRODUCT_VIDEOS = 117; - - // The device preference is not compatible with the ad type - INCOMPATIBLE_AD_TYPE_AND_DEVICE_PREFERENCE = 118; - - // Call tracking is not supported for specified country. - CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY = 119; - - // Carrier specific short number is not allowed. - CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED = 120; - - // Specified phone number type is disallowed. - DISALLOWED_NUMBER_TYPE = 121; - - // Phone number not supported for country. - PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY = 122; - - // Phone number not supported with call tracking enabled for country. - PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY = 123; - - // Premium rate phone number is not allowed. - PREMIUM_RATE_NUMBER_NOT_ALLOWED = 124; - - // Vanity phone number is not allowed. - VANITY_PHONE_NUMBER_NOT_ALLOWED = 125; - - // Invalid call conversion type id. - INVALID_CALL_CONVERSION_TYPE_ID = 126; - - // Cannot disable call conversion and set conversion type id. - CANNOT_DISABLE_CALL_CONVERSION_AND_SET_CONVERSION_TYPE_ID = 127; - - // Cannot set path2 without path1. - CANNOT_SET_PATH2_WITHOUT_PATH1 = 128; - - // Missing domain name in campaign setting when adding expanded dynamic - // search ad. - MISSING_DYNAMIC_SEARCH_ADS_SETTING_DOMAIN_NAME = 129; - - // The associated ad is not compatible with restriction type. - INCOMPATIBLE_WITH_RESTRICTION_TYPE = 130; - - // Consent for call recording is required for creating/updating call only - // ads. Please see https://support.google.com/google-ads/answer/7412639. - CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED = 131; - - // Either an image or a media bundle is required in a display upload ad. - MISSING_IMAGE_OR_MEDIA_BUNDLE = 132; - - // The display upload product type is not supported in this campaign. - PRODUCT_TYPE_NOT_SUPPORTED_IN_THIS_CAMPAIGN = 133; - - // The default value of an ad placeholder can not be the empty string. - PLACEHOLDER_CANNOT_HAVE_EMPTY_DEFAULT_VALUE = 134; - - // Ad placeholders with countdown functions must not have a default value. - PLACEHOLDER_COUNTDOWN_FUNCTION_CANNOT_HAVE_DEFAULT_VALUE = 135; - - // A previous ad placeholder that had a default value was found which means - // that all (non-countdown) placeholders must have a default value. This - // ad placeholder does not have a default value. - PLACEHOLDER_DEFAULT_VALUE_MISSING = 136; - - // A previous ad placeholder that did not have a default value was found - // which means that no placeholders may have a default value. This - // ad placeholder does have a default value. - UNEXPECTED_PLACEHOLDER_DEFAULT_VALUE = 137; - - // Two ad customizers may not be directly adjacent in an ad text. They must - // be separated by at least one character. - AD_CUSTOMIZERS_MAY_NOT_BE_ADJACENT = 138; - - // The ad is not associated with any enabled AdGroupAd, and cannot be - // updated. - UPDATING_AD_WITH_NO_ENABLED_ASSOCIATION = 139; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/ad_group_ad_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/ad_group_ad_error.proto deleted file mode 100644 index 99044c56f..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/ad_group_ad_error.proto +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupAdErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing ad group ad errors. - -// Container for enum describing possible ad group ad errors. -message AdGroupAdErrorEnum { - // Enum describing possible ad group ad errors. - enum AdGroupAdError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // No link found between the adgroup ad and the label. - AD_GROUP_AD_LABEL_DOES_NOT_EXIST = 2; - - // The label has already been attached to the adgroup ad. - AD_GROUP_AD_LABEL_ALREADY_EXISTS = 3; - - // The specified ad was not found in the adgroup - AD_NOT_UNDER_ADGROUP = 4; - - // Removed ads may not be modified - CANNOT_OPERATE_ON_REMOVED_ADGROUPAD = 5; - - // An ad of this type is deprecated and cannot be created. Only deletions - // are permitted. - CANNOT_CREATE_DEPRECATED_ADS = 6; - - // Text ads are deprecated and cannot be created. Use expanded text ads - // instead. - CANNOT_CREATE_TEXT_ADS = 7; - - // A required field was not specified or is an empty string. - EMPTY_FIELD = 8; - - // An ad may only be modified once per call - RESOURCE_REFERENCED_IN_MULTIPLE_OPS = 9; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/ad_group_bid_modifier_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/ad_group_bid_modifier_error.proto deleted file mode 100644 index aaba025f9..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/ad_group_bid_modifier_error.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupBidModifierErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing ad group bid modifier errors. - -// Container for enum describing possible ad group bid modifier errors. -message AdGroupBidModifierErrorEnum { - // Enum describing possible ad group bid modifier errors. - enum AdGroupBidModifierError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The criterion ID does not support bid modification. - CRITERION_ID_NOT_SUPPORTED = 2; - - // Cannot override the bid modifier for the given criterion ID if the parent - // campaign is opted out of the same criterion. - CANNOT_OVERRIDE_OPTED_OUT_CAMPAIGN_CRITERION_BID_MODIFIER = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/ad_group_criterion_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/ad_group_criterion_error.proto deleted file mode 100644 index ad2a0c0f7..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/ad_group_criterion_error.proto +++ /dev/null @@ -1,165 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupCriterionErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing ad group criterion errors. - -// Container for enum describing possible ad group criterion errors. -message AdGroupCriterionErrorEnum { - // Enum describing possible ad group criterion errors. - enum AdGroupCriterionError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // No link found between the AdGroupCriterion and the label. - AD_GROUP_CRITERION_LABEL_DOES_NOT_EXIST = 2; - - // The label has already been attached to the AdGroupCriterion. - AD_GROUP_CRITERION_LABEL_ALREADY_EXISTS = 3; - - // Negative AdGroupCriterion cannot have labels. - CANNOT_ADD_LABEL_TO_NEGATIVE_CRITERION = 4; - - // Too many operations for a single call. - TOO_MANY_OPERATIONS = 5; - - // Negative ad group criteria are not updateable. - CANT_UPDATE_NEGATIVE = 6; - - // Concrete type of criterion (keyword v.s. placement) is required for ADD - // and SET operations. - CONCRETE_TYPE_REQUIRED = 7; - - // Bid is incompatible with ad group's bidding settings. - BID_INCOMPATIBLE_WITH_ADGROUP = 8; - - // Cannot target and exclude the same criterion at once. - CANNOT_TARGET_AND_EXCLUDE = 9; - - // The URL of a placement is invalid. - ILLEGAL_URL = 10; - - // Keyword text was invalid. - INVALID_KEYWORD_TEXT = 11; - - // Destination URL was invalid. - INVALID_DESTINATION_URL = 12; - - // The destination url must contain at least one tag (e.g. {lpurl}) - MISSING_DESTINATION_URL_TAG = 13; - - // Keyword-level cpm bid is not supported - KEYWORD_LEVEL_BID_NOT_SUPPORTED_FOR_MANUALCPM = 14; - - // For example, cannot add a biddable ad group criterion that had been - // removed. - INVALID_USER_STATUS = 15; - - // Criteria type cannot be targeted for the ad group. Either the account is - // restricted to keywords only, the criteria type is incompatible with the - // campaign's bidding strategy, or the criteria type can only be applied to - // campaigns. - CANNOT_ADD_CRITERIA_TYPE = 16; - - // Criteria type cannot be excluded for the ad group. Refer to the - // documentation for a specific criterion to check if it is excludable. - CANNOT_EXCLUDE_CRITERIA_TYPE = 17; - - // Partial failure is not supported for shopping campaign mutate operations. - CAMPAIGN_TYPE_NOT_COMPATIBLE_WITH_PARTIAL_FAILURE = 27; - - // Operations in the mutate request changes too many shopping ad groups. - // Please split requests for multiple shopping ad groups across multiple - // requests. - OPERATIONS_FOR_TOO_MANY_SHOPPING_ADGROUPS = 28; - - // Not allowed to modify url fields of an ad group criterion if there are - // duplicate elements for that ad group criterion in the request. - CANNOT_MODIFY_URL_FIELDS_WITH_DUPLICATE_ELEMENTS = 29; - - // Cannot set url fields without also setting final urls. - CANNOT_SET_WITHOUT_FINAL_URLS = 30; - - // Cannot clear final urls if final mobile urls exist. - CANNOT_CLEAR_FINAL_URLS_IF_FINAL_MOBILE_URLS_EXIST = 31; - - // Cannot clear final urls if final app urls exist. - CANNOT_CLEAR_FINAL_URLS_IF_FINAL_APP_URLS_EXIST = 32; - - // Cannot clear final urls if tracking url template exists. - CANNOT_CLEAR_FINAL_URLS_IF_TRACKING_URL_TEMPLATE_EXISTS = 33; - - // Cannot clear final urls if url custom parameters exist. - CANNOT_CLEAR_FINAL_URLS_IF_URL_CUSTOM_PARAMETERS_EXIST = 34; - - // Cannot set both destination url and final urls. - CANNOT_SET_BOTH_DESTINATION_URL_AND_FINAL_URLS = 35; - - // Cannot set both destination url and tracking url template. - CANNOT_SET_BOTH_DESTINATION_URL_AND_TRACKING_URL_TEMPLATE = 36; - - // Final urls are not supported for this criterion type. - FINAL_URLS_NOT_SUPPORTED_FOR_CRITERION_TYPE = 37; - - // Final mobile urls are not supported for this criterion type. - FINAL_MOBILE_URLS_NOT_SUPPORTED_FOR_CRITERION_TYPE = 38; - - // Ad group is invalid due to the listing groups it contains. - INVALID_LISTING_GROUP_HIERARCHY = 39; - - // Listing group unit cannot have children. - LISTING_GROUP_UNIT_CANNOT_HAVE_CHILDREN = 40; - - // Subdivided listing groups must have an "others" case. - LISTING_GROUP_SUBDIVISION_REQUIRES_OTHERS_CASE = 41; - - // Dimension type of listing group must be the same as that of its siblings. - LISTING_GROUP_REQUIRES_SAME_DIMENSION_TYPE_AS_SIBLINGS = 42; - - // Listing group cannot be added to the ad group because it already exists. - LISTING_GROUP_ALREADY_EXISTS = 43; - - // Listing group referenced in the operation was not found in the ad group. - LISTING_GROUP_DOES_NOT_EXIST = 44; - - // Recursive removal failed because listing group subdivision is being - // created or modified in this request. - LISTING_GROUP_CANNOT_BE_REMOVED = 45; - - // Listing group type is not allowed for specified ad group criterion type. - INVALID_LISTING_GROUP_TYPE = 46; - - // Listing group in an ADD operation specifies a non temporary criterion id. - LISTING_GROUP_ADD_MAY_ONLY_USE_TEMP_ID = 47; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/ad_group_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/ad_group_error.proto deleted file mode 100644 index 45fb920f9..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/ad_group_error.proto +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing ad group errors. - -// Container for enum describing possible ad group errors. -message AdGroupErrorEnum { - // Enum describing possible ad group errors. - enum AdGroupError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // AdGroup with the same name already exists for the campaign. - DUPLICATE_ADGROUP_NAME = 2; - - // AdGroup name is not valid. - INVALID_ADGROUP_NAME = 3; - - // Advertiser is not allowed to target sites or set site bids that are not - // on the Google Search Network. - ADVERTISER_NOT_ON_CONTENT_NETWORK = 5; - - // Bid amount is too big. - BID_TOO_BIG = 6; - - // AdGroup bid does not match the campaign's bidding strategy. - BID_TYPE_AND_BIDDING_STRATEGY_MISMATCH = 7; - - // AdGroup name is required for Add. - MISSING_ADGROUP_NAME = 8; - - // No link found between the ad group and the label. - ADGROUP_LABEL_DOES_NOT_EXIST = 9; - - // The label has already been attached to the ad group. - ADGROUP_LABEL_ALREADY_EXISTS = 10; - - // The CriterionTypeGroup is not supported for the content bid dimension. - INVALID_CONTENT_BID_CRITERION_TYPE_GROUP = 11; - - // The ad group type is not compatible with the campaign channel type. - AD_GROUP_TYPE_NOT_VALID_FOR_ADVERTISING_CHANNEL_TYPE = 12; - - // The ad group type is not supported in the country of sale of the - // campaign. - ADGROUP_TYPE_NOT_SUPPORTED_FOR_CAMPAIGN_SALES_COUNTRY = 13; - - // Ad groups of AdGroupType.SEARCH_DYNAMIC_ADS can only be added to - // campaigns that have DynamicSearchAdsSetting attached. - CANNOT_ADD_ADGROUP_OF_TYPE_DSA_TO_CAMPAIGN_WITHOUT_DSA_SETTING = 14; - - // Promoted hotels ad groups are only available to customers on the - // allow-list. - PROMOTED_HOTEL_AD_GROUPS_NOT_AVAILABLE_FOR_CUSTOMER = 15; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/ad_group_feed_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/ad_group_feed_error.proto deleted file mode 100644 index e0d17955c..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/ad_group_feed_error.proto +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupFeedErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing ad group feed errors. - -// Container for enum describing possible ad group feed errors. -message AdGroupFeedErrorEnum { - // Enum describing possible ad group feed errors. - enum AdGroupFeedError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // An active feed already exists for this ad group and place holder type. - FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE = 2; - - // The specified feed is removed. - CANNOT_CREATE_FOR_REMOVED_FEED = 3; - - // The AdGroupFeed already exists. UPDATE operation should be used to modify - // the existing AdGroupFeed. - ADGROUP_FEED_ALREADY_EXISTS = 4; - - // Cannot operate on removed AdGroupFeed. - CANNOT_OPERATE_ON_REMOVED_ADGROUP_FEED = 5; - - // Invalid placeholder type. - INVALID_PLACEHOLDER_TYPE = 6; - - // Feed mapping for this placeholder type does not exist. - MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE = 7; - - // Location AdGroupFeeds cannot be created unless there is a location - // CustomerFeed for the specified feed. - NO_EXISTING_LOCATION_CUSTOMER_FEED = 8; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/ad_parameter_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/ad_parameter_error.proto deleted file mode 100644 index e911181cd..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/ad_parameter_error.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "AdParameterErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing ad parameter errors. - -// Container for enum describing possible ad parameter errors. -message AdParameterErrorEnum { - // Enum describing possible ad parameter errors. - enum AdParameterError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The ad group criterion must be a keyword criterion. - AD_GROUP_CRITERION_MUST_BE_KEYWORD = 2; - - // The insertion text is invalid. - INVALID_INSERTION_TEXT_FORMAT = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/ad_sharing_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/ad_sharing_error.proto deleted file mode 100644 index 326a131eb..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/ad_sharing_error.proto +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "AdSharingErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing ad sharing errors. - -// Container for enum describing possible ad sharing errors. -message AdSharingErrorEnum { - // Enum describing possible ad sharing errors. - enum AdSharingError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Error resulting in attempting to add an Ad to an AdGroup that already - // contains the Ad. - AD_GROUP_ALREADY_CONTAINS_AD = 2; - - // Ad is not compatible with the AdGroup it is being shared with. - INCOMPATIBLE_AD_UNDER_AD_GROUP = 3; - - // Cannot add AdGroupAd on inactive Ad. - CANNOT_SHARE_INACTIVE_AD = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/adx_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/adx_error.proto deleted file mode 100644 index 598d6cf20..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/adx_error.proto +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "AdxErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing adx errors. - -// Container for enum describing possible adx errors. -message AdxErrorEnum { - // Enum describing possible adx errors. - enum AdxError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Attempt to use non-AdX feature by AdX customer. - UNSUPPORTED_FEATURE = 2; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/asset_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/asset_error.proto deleted file mode 100644 index 57b93f215..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/asset_error.proto +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "AssetErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing asset errors. - -// Container for enum describing possible asset errors. -message AssetErrorEnum { - // Enum describing possible asset errors. - enum AssetError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The customer is not on the allow-list for this asset type. - CUSTOMER_NOT_WHITELISTED_FOR_ASSET_TYPE = 2; - - // Assets are duplicated across operations. - DUPLICATE_ASSET = 3; - - // The asset name is duplicated, either across operations or with an - // existing asset. - DUPLICATE_ASSET_NAME = 4; - - // The Asset.asset_data oneof is empty. - ASSET_DATA_IS_MISSING = 5; - - // The asset has a name which is different from an existing duplicate that - // represents the same content. - CANNOT_MODIFY_ASSET_NAME = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/asset_link_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/asset_link_error.proto deleted file mode 100644 index 42bc94c2c..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/asset_link_error.proto +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "AssetLinkErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing asset link errors. - -// Container for enum describing possible asset link errors. -message AssetLinkErrorEnum { - // Enum describing possible asset link errors. - enum AssetLinkError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Pinning is not supported for the given asset link field. - PINNING_UNSUPPORTED = 2; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/authentication_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/authentication_error.proto deleted file mode 100644 index b2c889b4c..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/authentication_error.proto +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "AuthenticationErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing authentication errors. - -// Container for enum describing possible authentication errors. -message AuthenticationErrorEnum { - // Enum describing possible authentication errors. - enum AuthenticationError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Authentication of the request failed. - AUTHENTICATION_ERROR = 2; - - // Client Customer Id is not a number. - CLIENT_CUSTOMER_ID_INVALID = 5; - - // No customer found for the provided customer id. - CUSTOMER_NOT_FOUND = 8; - - // Client's Google Account is deleted. - GOOGLE_ACCOUNT_DELETED = 9; - - // Google account login token in the cookie is invalid. - GOOGLE_ACCOUNT_COOKIE_INVALID = 10; - - // A problem occurred during Google account authentication. - GOOGLE_ACCOUNT_AUTHENTICATION_FAILED = 25; - - // The user in the google account login token does not match the UserId in - // the cookie. - GOOGLE_ACCOUNT_USER_AND_ADS_USER_MISMATCH = 12; - - // Login cookie is required for authentication. - LOGIN_COOKIE_REQUIRED = 13; - - // User in the cookie is not a valid Ads user. - NOT_ADS_USER = 14; - - // Oauth token in the header is not valid. - OAUTH_TOKEN_INVALID = 15; - - // Oauth token in the header has expired. - OAUTH_TOKEN_EXPIRED = 16; - - // Oauth token in the header has been disabled. - OAUTH_TOKEN_DISABLED = 17; - - // Oauth token in the header has been revoked. - OAUTH_TOKEN_REVOKED = 18; - - // Oauth token HTTP header is malformed. - OAUTH_TOKEN_HEADER_INVALID = 19; - - // Login cookie is not valid. - LOGIN_COOKIE_INVALID = 20; - - // User Id in the header is not a valid id. - USER_ID_INVALID = 22; - - // An account administrator changed this account's authentication settings. - // To access this Google Ads account, enable 2-Step Verification in your - // Google account at https://www.google.com/landing/2step. - TWO_STEP_VERIFICATION_NOT_ENROLLED = 23; - - // An account administrator changed this account's authentication settings. - // To access this Google Ads account, enable Advanced Protection in your - // Google account at https://landing.google.com/advancedprotection. - ADVANCED_PROTECTION_NOT_ENROLLED = 24; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/authorization_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/authorization_error.proto deleted file mode 100644 index 4f8559d5b..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/authorization_error.proto +++ /dev/null @@ -1,88 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "AuthorizationErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing authorization errors. - -// Container for enum describing possible authorization errors. -message AuthorizationErrorEnum { - // Enum describing possible authorization errors. - enum AuthorizationError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // User doesn't have permission to access customer. Note: If you're - // accessing a client customer, the manager's customer ID must be set in the - // `login-customer-id` header. Learn more at - // https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid - USER_PERMISSION_DENIED = 2; - - // The developer token is not on the allow-list. - DEVELOPER_TOKEN_NOT_WHITELISTED = 3; - - // The developer token is not allowed with the project sent in the request. - DEVELOPER_TOKEN_PROHIBITED = 4; - - // The Google Cloud project sent in the request does not have permission to - // access the api. - PROJECT_DISABLED = 5; - - // Authorization of the client failed. - AUTHORIZATION_ERROR = 6; - - // The user does not have permission to perform this action - // (e.g., ADD, UPDATE, REMOVE) on the resource or call a method. - ACTION_NOT_PERMITTED = 7; - - // Signup not complete. - INCOMPLETE_SIGNUP = 8; - - // The customer can't be used because it isn't enabled. - CUSTOMER_NOT_ENABLED = 24; - - // The developer must sign the terms of service. They can be found here: - // ads.google.com/aw/apicenter - MISSING_TOS = 9; - - // The developer token is not approved. Non-approved developer tokens can - // only be used with test accounts. - DEVELOPER_TOKEN_NOT_APPROVED = 10; - - // The login customer specified does not have access to the account - // specified, so the request is invalid. - INVALID_LOGIN_CUSTOMER_ID_SERVING_CUSTOMER_ID_COMBINATION = 11; - - // The developer specified does not have access to the service. - SERVICE_ACCESS_DENIED = 12; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/bidding_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/bidding_error.proto deleted file mode 100644 index c0d2259d0..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/bidding_error.proto +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "BiddingErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing bidding errors. - -// Container for enum describing possible bidding errors. -message BiddingErrorEnum { - // Enum describing possible bidding errors. - enum BiddingError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Cannot transition to new bidding strategy. - BIDDING_STRATEGY_TRANSITION_NOT_ALLOWED = 2; - - // Cannot attach bidding strategy to campaign. - CANNOT_ATTACH_BIDDING_STRATEGY_TO_CAMPAIGN = 7; - - // Bidding strategy is not supported or cannot be used as anonymous. - INVALID_ANONYMOUS_BIDDING_STRATEGY_TYPE = 10; - - // The type does not match the named strategy's type. - INVALID_BIDDING_STRATEGY_TYPE = 14; - - // The bid is invalid. - INVALID_BID = 17; - - // Bidding strategy is not available for the account type. - BIDDING_STRATEGY_NOT_AVAILABLE_FOR_ACCOUNT_TYPE = 18; - - // Conversion tracking is not enabled in the campaign that has YouTube - // Video Builder transitions. - CONVERSION_TRACKING_NOT_ENABLED = 19; - - // Not enough conversions tracked for YouTube Video Builder transitions. - NOT_ENOUGH_CONVERSIONS = 20; - - // Campaign can not be created with given bidding strategy. It can be - // transitioned to the strategy, once eligible. - CANNOT_CREATE_CAMPAIGN_WITH_BIDDING_STRATEGY = 21; - - // Cannot target content network only as campaign uses Page One Promoted - // bidding strategy. - CANNOT_TARGET_CONTENT_NETWORK_ONLY_WITH_CAMPAIGN_LEVEL_POP_BIDDING_STRATEGY = 23; - - // Budget Optimizer and Target Spend bidding strategies are not supported - // for campaigns with AdSchedule targeting. - BIDDING_STRATEGY_NOT_SUPPORTED_WITH_AD_SCHEDULE = 24; - - // Pay per conversion is not available to all the customer, only few - // customers on the allow-list can use this. - PAY_PER_CONVERSION_NOT_AVAILABLE_FOR_CUSTOMER = 25; - - // Pay per conversion is not allowed with Target CPA. - PAY_PER_CONVERSION_NOT_ALLOWED_WITH_TARGET_CPA = 26; - - // Cannot set bidding strategy to Manual CPM for search network only - // campaigns. - BIDDING_STRATEGY_NOT_ALLOWED_FOR_SEARCH_ONLY_CAMPAIGNS = 27; - - // The bidding strategy is not supported for use in drafts or experiments. - BIDDING_STRATEGY_NOT_SUPPORTED_IN_DRAFTS_OR_EXPERIMENTS = 28; - - // Bidding strategy type does not support product type ad group criterion. - BIDDING_STRATEGY_TYPE_DOES_NOT_SUPPORT_PRODUCT_TYPE_ADGROUP_CRITERION = 29; - - // Bid amount is too small. - BID_TOO_SMALL = 30; - - // Bid amount is too big. - BID_TOO_BIG = 31; - - // Bid has too many fractional digit precision. - BID_TOO_MANY_FRACTIONAL_DIGITS = 32; - - // Invalid domain name specified. - INVALID_DOMAIN_NAME = 33; - - // The field is not compatible with the payment mode. - NOT_COMPATIBLE_WITH_PAYMENT_MODE = 34; - - // The field is not compatible with the budget type. - NOT_COMPATIBLE_WITH_BUDGET_TYPE = 35; - - // The field is not compatible with the bidding strategy type. - NOT_COMPATIBLE_WITH_BIDDING_STRATEGY_TYPE = 36; - - // Bidding strategy type is incompatible with shared budget. - BIDDING_STRATEGY_TYPE_INCOMPATIBLE_WITH_SHARED_BUDGET = 37; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/bidding_strategy_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/bidding_strategy_error.proto deleted file mode 100644 index 1d5648047..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/bidding_strategy_error.proto +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "BiddingStrategyErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing bidding strategy errors. - -// Container for enum describing possible bidding strategy errors. -message BiddingStrategyErrorEnum { - // Enum describing possible bidding strategy errors. - enum BiddingStrategyError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Each bidding strategy must have a unique name. - DUPLICATE_NAME = 2; - - // Bidding strategy type is immutable. - CANNOT_CHANGE_BIDDING_STRATEGY_TYPE = 3; - - // Only bidding strategies not linked to campaigns, adgroups or adgroup - // criteria can be removed. - CANNOT_REMOVE_ASSOCIATED_STRATEGY = 4; - - // The specified bidding strategy is not supported. - BIDDING_STRATEGY_NOT_SUPPORTED = 5; - - // The bidding strategy is incompatible with the campaign's bidding - // strategy goal type. - INCOMPATIBLE_BIDDING_STRATEGY_AND_BIDDING_STRATEGY_GOAL_TYPE = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/billing_setup_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/billing_setup_error.proto deleted file mode 100644 index a34c6f2d7..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/billing_setup_error.proto +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "BillingSetupErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing billing setup errors. - -// Container for enum describing possible billing setup errors. -message BillingSetupErrorEnum { - // Enum describing possible billing setup errors. - enum BillingSetupError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Cannot specify both an existing payments account and a new payments - // account when setting up billing. - CANNOT_USE_EXISTING_AND_NEW_ACCOUNT = 2; - - // Cannot cancel an approved billing setup whose start time has passed. - CANNOT_REMOVE_STARTED_BILLING_SETUP = 3; - - // Cannot perform a Change of Bill-To (CBT) to the same payments account. - CANNOT_CHANGE_BILLING_TO_SAME_PAYMENTS_ACCOUNT = 4; - - // Billing setups can only be used by customers with ENABLED or DRAFT - // status. - BILLING_SETUP_NOT_PERMITTED_FOR_CUSTOMER_STATUS = 5; - - // Billing setups must either include a correctly formatted existing - // payments account id, or a non-empty new payments account name. - INVALID_PAYMENTS_ACCOUNT = 6; - - // Only billable and third-party customers can create billing setups. - BILLING_SETUP_NOT_PERMITTED_FOR_CUSTOMER_CATEGORY = 7; - - // Billing setup creations can only use NOW for start time type. - INVALID_START_TIME_TYPE = 8; - - // Billing setups can only be created for a third-party customer if they do - // not already have a setup. - THIRD_PARTY_ALREADY_HAS_BILLING = 9; - - // Billing setups cannot be created if there is already a pending billing in - // progress. - BILLING_SETUP_IN_PROGRESS = 10; - - // Billing setups can only be created by customers who have permission to - // setup billings. Users can contact a representative for help setting up - // permissions. - NO_SIGNUP_PERMISSION = 11; - - // Billing setups cannot be created if there is already a future-approved - // billing. - CHANGE_OF_BILL_TO_IN_PROGRESS = 12; - - // Requested payments profile not found. - PAYMENTS_PROFILE_NOT_FOUND = 13; - - // Requested payments account not found. - PAYMENTS_ACCOUNT_NOT_FOUND = 14; - - // Billing setup creation failed because the payments profile is ineligible. - PAYMENTS_PROFILE_INELIGIBLE = 15; - - // Billing setup creation failed because the payments account is ineligible. - PAYMENTS_ACCOUNT_INELIGIBLE = 16; - - // Billing setup creation failed because the payments profile needs internal - // approval. - CUSTOMER_NEEDS_INTERNAL_APPROVAL = 17; - - // Payments account has different currency code than the current customer - // and hence cannot be used to setup billing. - PAYMENTS_ACCOUNT_INELIGIBLE_CURRENCY_CODE_MISMATCH = 19; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/campaign_budget_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/campaign_budget_error.proto deleted file mode 100644 index 41b11cfd7..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/campaign_budget_error.proto +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "CampaignBudgetErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing campaign budget errors. - -// Container for enum describing possible campaign budget errors. -message CampaignBudgetErrorEnum { - // Enum describing possible campaign budget errors. - enum CampaignBudgetError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The campaign budget cannot be shared. - CAMPAIGN_BUDGET_CANNOT_BE_SHARED = 17; - - // The requested campaign budget no longer exists. - CAMPAIGN_BUDGET_REMOVED = 2; - - // The campaign budget is associated with at least one campaign, and so the - // campaign budget cannot be removed. - CAMPAIGN_BUDGET_IN_USE = 3; - - // Customer is not on the allow-list for this campaign budget period. - CAMPAIGN_BUDGET_PERIOD_NOT_AVAILABLE = 4; - - // This field is not mutable on implicitly shared campaign budgets - CANNOT_MODIFY_FIELD_OF_IMPLICITLY_SHARED_CAMPAIGN_BUDGET = 6; - - // Cannot change explicitly shared campaign budgets back to implicitly - // shared ones. - CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_IMPLICITLY_SHARED = 7; - - // An implicit campaign budget without a name cannot be changed to - // explicitly shared campaign budget. - CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED_WITHOUT_NAME = 8; - - // Cannot change an implicitly shared campaign budget to an explicitly - // shared one. - CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED = 9; - - // Only explicitly shared campaign budgets can be used with multiple - // campaigns. - CANNOT_USE_IMPLICITLY_SHARED_CAMPAIGN_BUDGET_WITH_MULTIPLE_CAMPAIGNS = 10; - - // A campaign budget with this name already exists. - DUPLICATE_NAME = 11; - - // A money amount was not in the expected currency. - MONEY_AMOUNT_IN_WRONG_CURRENCY = 12; - - // A money amount was less than the minimum CPC for currency. - MONEY_AMOUNT_LESS_THAN_CURRENCY_MINIMUM_CPC = 13; - - // A money amount was greater than the maximum allowed. - MONEY_AMOUNT_TOO_LARGE = 14; - - // A money amount was negative. - NEGATIVE_MONEY_AMOUNT = 15; - - // A money amount was not a multiple of a minimum unit. - NON_MULTIPLE_OF_MINIMUM_CURRENCY_UNIT = 16; - - // Total budget amount must be unset when BudgetPeriod is DAILY. - TOTAL_BUDGET_AMOUNT_MUST_BE_UNSET_FOR_BUDGET_PERIOD_DAILY = 18; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/campaign_criterion_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/campaign_criterion_error.proto deleted file mode 100644 index 8ab8358aa..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/campaign_criterion_error.proto +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "CampaignCriterionErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing campaign criterion errors. - -// Container for enum describing possible campaign criterion errors. -message CampaignCriterionErrorEnum { - // Enum describing possible campaign criterion errors. - enum CampaignCriterionError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Concrete type of criterion (keyword v.s. placement) is required for - // CREATE and UPDATE operations. - CONCRETE_TYPE_REQUIRED = 2; - - // Invalid placement URL. - INVALID_PLACEMENT_URL = 3; - - // Criteria type can not be excluded for the campaign by the customer. like - // AOL account type cannot target site type criteria - CANNOT_EXCLUDE_CRITERIA_TYPE = 4; - - // Cannot set the campaign criterion status for this criteria type. - CANNOT_SET_STATUS_FOR_CRITERIA_TYPE = 5; - - // Cannot set the campaign criterion status for an excluded criteria. - CANNOT_SET_STATUS_FOR_EXCLUDED_CRITERIA = 6; - - // Cannot target and exclude the same criterion. - CANNOT_TARGET_AND_EXCLUDE = 7; - - // The mutate contained too many operations. - TOO_MANY_OPERATIONS = 8; - - // This operator cannot be applied to a criterion of this type. - OPERATOR_NOT_SUPPORTED_FOR_CRITERION_TYPE = 9; - - // The Shopping campaign sales country is not supported for - // ProductSalesChannel targeting. - SHOPPING_CAMPAIGN_SALES_COUNTRY_NOT_SUPPORTED_FOR_SALES_CHANNEL = 10; - - // The existing field can't be updated with CREATE operation. It can be - // updated with UPDATE operation only. - CANNOT_ADD_EXISTING_FIELD = 11; - - // Negative criteria are immutable, so updates are not allowed. - CANNOT_UPDATE_NEGATIVE_CRITERION = 12; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/campaign_draft_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/campaign_draft_error.proto deleted file mode 100644 index fcf940018..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/campaign_draft_error.proto +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "CampaignDraftErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing campaign draft errors. - -// Container for enum describing possible campaign draft errors. -message CampaignDraftErrorEnum { - // Enum describing possible campaign draft errors. - enum CampaignDraftError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // A draft with this name already exists for this campaign. - DUPLICATE_DRAFT_NAME = 2; - - // The draft is removed and cannot be transitioned to another status. - INVALID_STATUS_TRANSITION_FROM_REMOVED = 3; - - // The draft has been promoted and cannot be transitioned to the specified - // status. - INVALID_STATUS_TRANSITION_FROM_PROMOTED = 4; - - // The draft has failed to be promoted and cannot be transitioned to the - // specified status. - INVALID_STATUS_TRANSITION_FROM_PROMOTE_FAILED = 5; - - // This customer is not allowed to create drafts. - CUSTOMER_CANNOT_CREATE_DRAFT = 6; - - // This campaign is not allowed to create drafts. - CAMPAIGN_CANNOT_CREATE_DRAFT = 7; - - // This modification cannot be made on a draft. - INVALID_DRAFT_CHANGE = 8; - - // The draft cannot be transitioned to the specified status from its - // current status. - INVALID_STATUS_TRANSITION = 9; - - // The campaign has reached the maximum number of drafts that can be created - // for a campaign throughout its lifetime. No additional drafts can be - // created for this campaign. Removed drafts also count towards this limit. - MAX_NUMBER_OF_DRAFTS_PER_CAMPAIGN_REACHED = 10; - - // ListAsyncErrors was called without first promoting the draft. - LIST_ERRORS_FOR_PROMOTED_DRAFT_ONLY = 11; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/campaign_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/campaign_error.proto deleted file mode 100644 index 865e77ed1..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/campaign_error.proto +++ /dev/null @@ -1,179 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "CampaignErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing campaign errors. - -// Container for enum describing possible campaign errors. -message CampaignErrorEnum { - // Enum describing possible campaign errors. - enum CampaignError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Cannot target content network. - CANNOT_TARGET_CONTENT_NETWORK = 3; - - // Cannot target search network. - CANNOT_TARGET_SEARCH_NETWORK = 4; - - // Cannot cover search network without google search network. - CANNOT_TARGET_SEARCH_NETWORK_WITHOUT_GOOGLE_SEARCH = 5; - - // Cannot target Google Search network for a CPM campaign. - CANNOT_TARGET_GOOGLE_SEARCH_FOR_CPM_CAMPAIGN = 6; - - // Must target at least one network. - CAMPAIGN_MUST_TARGET_AT_LEAST_ONE_NETWORK = 7; - - // Only some Google partners are allowed to target partner search network. - CANNOT_TARGET_PARTNER_SEARCH_NETWORK = 8; - - // Cannot target content network only as campaign has criteria-level bidding - // strategy. - CANNOT_TARGET_CONTENT_NETWORK_ONLY_WITH_CRITERIA_LEVEL_BIDDING_STRATEGY = 9; - - // Cannot modify the start or end date such that the campaign duration would - // not contain the durations of all runnable trials. - CAMPAIGN_DURATION_MUST_CONTAIN_ALL_RUNNABLE_TRIALS = 10; - - // Cannot modify dates, budget or campaign name of a trial campaign. - CANNOT_MODIFY_FOR_TRIAL_CAMPAIGN = 11; - - // Trying to modify the name of an active or paused campaign, where the name - // is already assigned to another active or paused campaign. - DUPLICATE_CAMPAIGN_NAME = 12; - - // Two fields are in conflicting modes. - INCOMPATIBLE_CAMPAIGN_FIELD = 13; - - // Campaign name cannot be used. - INVALID_CAMPAIGN_NAME = 14; - - // Given status is invalid. - INVALID_AD_SERVING_OPTIMIZATION_STATUS = 15; - - // Error in the campaign level tracking URL. - INVALID_TRACKING_URL = 16; - - // Cannot set both tracking URL template and tracking setting. A user has - // to clear legacy tracking setting in order to add tracking URL template. - CANNOT_SET_BOTH_TRACKING_URL_TEMPLATE_AND_TRACKING_SETTING = 17; - - // The maximum number of impressions for Frequency Cap should be an integer - // greater than 0. - MAX_IMPRESSIONS_NOT_IN_RANGE = 18; - - // Only the Day, Week and Month time units are supported. - TIME_UNIT_NOT_SUPPORTED = 19; - - // Operation not allowed on a campaign whose serving status has ended - INVALID_OPERATION_IF_SERVING_STATUS_HAS_ENDED = 20; - - // This budget is exclusively linked to a Campaign that is using experiments - // so it cannot be shared. - BUDGET_CANNOT_BE_SHARED = 21; - - // Campaigns using experiments cannot use a shared budget. - CAMPAIGN_CANNOT_USE_SHARED_BUDGET = 22; - - // A different budget cannot be assigned to a campaign when there are - // running or scheduled trials. - CANNOT_CHANGE_BUDGET_ON_CAMPAIGN_WITH_TRIALS = 23; - - // No link found between the campaign and the label. - CAMPAIGN_LABEL_DOES_NOT_EXIST = 24; - - // The label has already been attached to the campaign. - CAMPAIGN_LABEL_ALREADY_EXISTS = 25; - - // A ShoppingSetting was not found when creating a shopping campaign. - MISSING_SHOPPING_SETTING = 26; - - // The country in shopping setting is not an allowed country. - INVALID_SHOPPING_SALES_COUNTRY = 27; - - // The requested channel type is not available according to the customer's - // account setting. - ADVERTISING_CHANNEL_TYPE_NOT_AVAILABLE_FOR_ACCOUNT_TYPE = 31; - - // The AdvertisingChannelSubType is not a valid subtype of the primary - // channel type. - INVALID_ADVERTISING_CHANNEL_SUB_TYPE = 32; - - // At least one conversion must be selected. - AT_LEAST_ONE_CONVERSION_MUST_BE_SELECTED = 33; - - // Setting ad rotation mode for a campaign is not allowed. Ad rotation mode - // at campaign is deprecated. - CANNOT_SET_AD_ROTATION_MODE = 34; - - // Trying to change start date on a campaign that has started. - CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED = 35; - - // Trying to modify a date into the past. - CANNOT_SET_DATE_TO_PAST = 36; - - // Hotel center id in the hotel setting does not match any customer links. - MISSING_HOTEL_CUSTOMER_LINK = 37; - - // Hotel center id in the hotel setting must match an active customer link. - INVALID_HOTEL_CUSTOMER_LINK = 38; - - // Hotel setting was not found when creating a hotel ads campaign. - MISSING_HOTEL_SETTING = 39; - - // A Campaign cannot use shared campaign budgets and be part of a campaign - // group. - CANNOT_USE_SHARED_CAMPAIGN_BUDGET_WHILE_PART_OF_CAMPAIGN_GROUP = 40; - - // The app ID was not found. - APP_NOT_FOUND = 41; - - // Campaign.shopping_setting.enable_local is not supported for the specified - // campaign type. - SHOPPING_ENABLE_LOCAL_NOT_SUPPORTED_FOR_CAMPAIGN_TYPE = 42; - - // The merchant does not support the creation of campaigns for Shopping - // Comparison Listing Ads. - MERCHANT_NOT_ALLOWED_FOR_COMPARISON_LISTING_ADS = 43; - - // The App campaign for engagement cannot be created because there aren't - // enough installs. - INSUFFICIENT_APP_INSTALLS_COUNT = 44; - - // The App campaign for engagement cannot be created because the app is - // sensitive. - SENSITIVE_CATEGORY_APP = 45; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/campaign_experiment_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/campaign_experiment_error.proto deleted file mode 100644 index 4d55ef7c0..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/campaign_experiment_error.proto +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "CampaignExperimentErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing campaign experiment errors. - -// Container for enum describing possible campaign experiment errors. -message CampaignExperimentErrorEnum { - // Enum describing possible campaign experiment errors. - enum CampaignExperimentError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // An active campaign or experiment with this name already exists. - DUPLICATE_NAME = 2; - - // Experiment cannot be updated from the current state to the - // requested target state. For example, an experiment can only graduate - // if its status is ENABLED. - INVALID_TRANSITION = 3; - - // Cannot create an experiment from a campaign using an explicitly shared - // budget. - CANNOT_CREATE_EXPERIMENT_WITH_SHARED_BUDGET = 4; - - // Cannot create an experiment for a removed base campaign. - CANNOT_CREATE_EXPERIMENT_FOR_REMOVED_BASE_CAMPAIGN = 5; - - // Cannot create an experiment from a draft, which has a status other than - // proposed. - CANNOT_CREATE_EXPERIMENT_FOR_NON_PROPOSED_DRAFT = 6; - - // This customer is not allowed to create an experiment. - CUSTOMER_CANNOT_CREATE_EXPERIMENT = 7; - - // This campaign is not allowed to create an experiment. - CAMPAIGN_CANNOT_CREATE_EXPERIMENT = 8; - - // Trying to set an experiment duration which overlaps with another - // experiment. - EXPERIMENT_DURATIONS_MUST_NOT_OVERLAP = 9; - - // All non-removed experiments must start and end within their campaign's - // duration. - EXPERIMENT_DURATION_MUST_BE_WITHIN_CAMPAIGN_DURATION = 10; - - // The experiment cannot be modified because its status is in a terminal - // state, such as REMOVED. - CANNOT_MUTATE_EXPERIMENT_DUE_TO_STATUS = 11; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/campaign_feed_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/campaign_feed_error.proto deleted file mode 100644 index 5ab25af5f..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/campaign_feed_error.proto +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "CampaignFeedErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing campaign feed errors. - -// Container for enum describing possible campaign feed errors. -message CampaignFeedErrorEnum { - // Enum describing possible campaign feed errors. - enum CampaignFeedError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // An active feed already exists for this campaign and placeholder type. - FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE = 2; - - // The specified feed is removed. - CANNOT_CREATE_FOR_REMOVED_FEED = 4; - - // The CampaignFeed already exists. UPDATE should be used to modify the - // existing CampaignFeed. - CANNOT_CREATE_ALREADY_EXISTING_CAMPAIGN_FEED = 5; - - // Cannot update removed campaign feed. - CANNOT_MODIFY_REMOVED_CAMPAIGN_FEED = 6; - - // Invalid placeholder type. - INVALID_PLACEHOLDER_TYPE = 7; - - // Feed mapping for this placeholder type does not exist. - MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE = 8; - - // Location CampaignFeeds cannot be created unless there is a location - // CustomerFeed for the specified feed. - NO_EXISTING_LOCATION_CUSTOMER_FEED = 9; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/campaign_shared_set_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/campaign_shared_set_error.proto deleted file mode 100644 index b87cd000d..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/campaign_shared_set_error.proto +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "CampaignSharedSetErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing campaign shared set errors. - -// Container for enum describing possible campaign shared set errors. -message CampaignSharedSetErrorEnum { - // Enum describing possible campaign shared set errors. - enum CampaignSharedSetError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The shared set belongs to another customer and permission isn't granted. - SHARED_SET_ACCESS_DENIED = 2; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/change_status_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/change_status_error.proto deleted file mode 100644 index e8ba8d936..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/change_status_error.proto +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "ChangeStatusErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing change status errors. - -// Container for enum describing possible change status errors. -message ChangeStatusErrorEnum { - // Enum describing possible change status errors. - enum ChangeStatusError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The requested start date is too old. - START_DATE_TOO_OLD = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/collection_size_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/collection_size_error.proto deleted file mode 100644 index 2af17e8d3..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/collection_size_error.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "CollectionSizeErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing collection size errors. - -// Container for enum describing possible collection size errors. -message CollectionSizeErrorEnum { - // Enum describing possible collection size errors. - enum CollectionSizeError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Too few. - TOO_FEW = 2; - - // Too many. - TOO_MANY = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/context_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/context_error.proto deleted file mode 100644 index c0c5e594a..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/context_error.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "ContextErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing context errors. - -// Container for enum describing possible context errors. -message ContextErrorEnum { - // Enum describing possible context errors. - enum ContextError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The operation is not allowed for the given context. - OPERATION_NOT_PERMITTED_FOR_CONTEXT = 2; - - // The operation is not allowed for removed resources. - OPERATION_NOT_PERMITTED_FOR_REMOVED_RESOURCE = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/conversion_action_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/conversion_action_error.proto deleted file mode 100644 index dbafaef0f..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/conversion_action_error.proto +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "ConversionActionErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing conversion action errors. - -// Container for enum describing possible conversion action errors. -message ConversionActionErrorEnum { - // Enum describing possible conversion action errors. - enum ConversionActionError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The specified conversion action name already exists. - DUPLICATE_NAME = 2; - - // Another conversion action with the specified app id already exists. - DUPLICATE_APP_ID = 3; - - // Android first open action conflicts with Google play codeless download - // action tracking the same app. - TWO_CONVERSION_ACTIONS_BIDDING_ON_SAME_APP_DOWNLOAD = 4; - - // Android first open action conflicts with Google play codeless download - // action tracking the same app. - BIDDING_ON_SAME_APP_DOWNLOAD_AS_GLOBAL_ACTION = 5; - - // The attribution model cannot be set to DATA_DRIVEN because a data-driven - // model has never been generated. - DATA_DRIVEN_MODEL_WAS_NEVER_GENERATED = 6; - - // The attribution model cannot be set to DATA_DRIVEN because the - // data-driven model is expired. - DATA_DRIVEN_MODEL_EXPIRED = 7; - - // The attribution model cannot be set to DATA_DRIVEN because the - // data-driven model is stale. - DATA_DRIVEN_MODEL_STALE = 8; - - // The attribution model cannot be set to DATA_DRIVEN because the - // data-driven model is unavailable or the conversion action was newly - // added. - DATA_DRIVEN_MODEL_UNKNOWN = 9; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/conversion_adjustment_upload_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/conversion_adjustment_upload_error.proto deleted file mode 100644 index ac6534f16..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/conversion_adjustment_upload_error.proto +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "ConversionAdjustmentUploadErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing conversion adjustment upload errors. - -// Container for enum describing possible conversion adjustment upload errors. -message ConversionAdjustmentUploadErrorEnum { - // Enum describing possible conversion adjustment upload errors. - enum ConversionAdjustmentUploadError { - // Not specified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The specified conversion action was created too recently. - // Please try the upload again after 4-6 hours have passed since the - // conversion action was created. - TOO_RECENT_CONVERSION_ACTION = 2; - - // No conversion action of a supported ConversionActionType that matches the - // provided information can be found for the customer. - INVALID_CONVERSION_ACTION = 3; - - // A retraction was already reported for this conversion. - CONVERSION_ALREADY_RETRACTED = 4; - - // A conversion for the supplied combination of conversion - // action and conversion identifier could not be found. - CONVERSION_NOT_FOUND = 5; - - // The specified conversion has already expired. Conversions expire after 55 - // days, after which adjustments cannot be reported against them. - CONVERSION_EXPIRED = 6; - - // The supplied adjustment date time precedes that of the original - // conversion. - ADJUSTMENT_PRECEDES_CONVERSION = 7; - - // A restatement with a more recent adjustment date time was already - // reported for this conversion. - MORE_RECENT_RESTATEMENT_FOUND = 8; - - // The conversion was created too recently. - TOO_RECENT_CONVERSION = 9; - - // Restatements cannot be reported for a conversion action that always uses - // the default value. - CANNOT_RESTATE_CONVERSION_ACTION_THAT_ALWAYS_USES_DEFAULT_CONVERSION_VALUE = 10; - - // The request contained more than 2000 adjustments. - TOO_MANY_ADJUSTMENTS_IN_REQUEST = 11; - - // The conversion has been adjusted too many times. - TOO_MANY_ADJUSTMENTS = 12; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/conversion_upload_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/conversion_upload_error.proto deleted file mode 100644 index b852de862..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/conversion_upload_error.proto +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "ConversionUploadErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing conversion upload errors. - -// Container for enum describing possible conversion upload errors. -message ConversionUploadErrorEnum { - // Enum describing possible conversion upload errors. - enum ConversionUploadError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The request contained more than 2000 conversions. - TOO_MANY_CONVERSIONS_IN_REQUEST = 2; - - // The specified gclid could not be decoded. - UNPARSEABLE_GCLID = 3; - - // The specified conversion_date_time is before the event time - // associated with the given gclid. - CONVERSION_PRECEDES_GCLID = 4; - - // The click associated with the given gclid is either too old to be - // imported or occurred outside of the click through lookback window for the - // specified conversion action. - EXPIRED_GCLID = 5; - - // The click associated with the given gclid occurred too recently. Please - // try uploading again after 6 hours have passed since the click occurred. - TOO_RECENT_GCLID = 6; - - // The click associated with the given gclid could not be found in the - // system. This can happen if Google Click IDs are collected for non Google - // Ads clicks. - GCLID_NOT_FOUND = 7; - - // The click associated with the given gclid is owned by a customer - // account that the uploading customer does not manage. - UNAUTHORIZED_CUSTOMER = 8; - - // No upload eligible conversion action that matches the provided - // information can be found for the customer. - INVALID_CONVERSION_ACTION = 9; - - // The specified conversion action was created too recently. - // Please try the upload again after 4-6 hours have passed since the - // conversion action was created. - TOO_RECENT_CONVERSION_ACTION = 10; - - // The click associated with the given gclid does not contain conversion - // tracking information. - CONVERSION_TRACKING_NOT_ENABLED_AT_IMPRESSION_TIME = 11; - - // The specified conversion action does not use an external attribution - // model, but external_attribution_data was set. - EXTERNAL_ATTRIBUTION_DATA_SET_FOR_NON_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION = 12; - - // The specified conversion action uses an external attribution model, but - // external_attribution_data or one of its contained fields was not set. - // Both external_attribution_credit and external_attribution_model must be - // set for externally attributed conversion actions. - EXTERNAL_ATTRIBUTION_DATA_NOT_SET_FOR_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION = 13; - - // Order IDs are not supported for conversion actions which use an external - // attribution model. - ORDER_ID_NOT_PERMITTED_FOR_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION = 14; - - // A conversion with the same order id and conversion action combination - // already exists in our system. - ORDER_ID_ALREADY_IN_USE = 15; - - // The request contained two or more conversions with the same order id and - // conversion action combination. - DUPLICATE_ORDER_ID = 16; - - // The call occurred too recently. Please try uploading again after 6 hours - // have passed since the call occurred. - TOO_RECENT_CALL = 17; - - // The click that initiated the call is too old for this conversion to be - // imported. - EXPIRED_CALL = 18; - - // The call or the click leading to the call was not found. - CALL_NOT_FOUND = 19; - - // The specified conversion_date_time is before the call_start_date_time. - CONVERSION_PRECEDES_CALL = 20; - - // The click associated with the call does not contain conversion tracking - // information. - CONVERSION_TRACKING_NOT_ENABLED_AT_CALL_TIME = 21; - - // The caller’s phone number cannot be parsed. It should be formatted either - // as E.164 "+16502531234", International "+64 3-331 6005" or US national - // number "6502531234". - UNPARSEABLE_CALLERS_PHONE_NUMBER = 22; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/country_code_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/country_code_error.proto deleted file mode 100644 index 688c56566..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/country_code_error.proto +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "CountryCodeErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing country code errors. - -// Container for enum describing country code errors. -message CountryCodeErrorEnum { - // Enum describing country code errors. - enum CountryCodeError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The country code is invalid. - INVALID_COUNTRY_CODE = 2; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/criterion_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/criterion_error.proto deleted file mode 100644 index 4017df97b..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/criterion_error.proto +++ /dev/null @@ -1,390 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "CriterionErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing criterion errors. - -// Container for enum describing possible criterion errors. -message CriterionErrorEnum { - // Enum describing possible criterion errors. - enum CriterionError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Concrete type of criterion is required for CREATE and UPDATE operations. - CONCRETE_TYPE_REQUIRED = 2; - - // The category requested for exclusion is invalid. - INVALID_EXCLUDED_CATEGORY = 3; - - // Invalid keyword criteria text. - INVALID_KEYWORD_TEXT = 4; - - // Keyword text should be less than 80 chars. - KEYWORD_TEXT_TOO_LONG = 5; - - // Keyword text has too many words. - KEYWORD_HAS_TOO_MANY_WORDS = 6; - - // Keyword text has invalid characters or symbols. - KEYWORD_HAS_INVALID_CHARS = 7; - - // Invalid placement URL. - INVALID_PLACEMENT_URL = 8; - - // Invalid user list criterion. - INVALID_USER_LIST = 9; - - // Invalid user interest criterion. - INVALID_USER_INTEREST = 10; - - // Placement URL has wrong format. - INVALID_FORMAT_FOR_PLACEMENT_URL = 11; - - // Placement URL is too long. - PLACEMENT_URL_IS_TOO_LONG = 12; - - // Indicates the URL contains an illegal character. - PLACEMENT_URL_HAS_ILLEGAL_CHAR = 13; - - // Indicates the URL contains multiple comma separated URLs. - PLACEMENT_URL_HAS_MULTIPLE_SITES_IN_LINE = 14; - - // Indicates the domain is blocked. - PLACEMENT_IS_NOT_AVAILABLE_FOR_TARGETING_OR_EXCLUSION = 15; - - // Invalid topic path. - INVALID_TOPIC_PATH = 16; - - // The YouTube Channel Id is invalid. - INVALID_YOUTUBE_CHANNEL_ID = 17; - - // The YouTube Video Id is invalid. - INVALID_YOUTUBE_VIDEO_ID = 18; - - // Indicates the placement is a YouTube vertical channel, which is no longer - // supported. - YOUTUBE_VERTICAL_CHANNEL_DEPRECATED = 19; - - // Indicates the placement is a YouTube demographic channel, which is no - // longer supported. - YOUTUBE_DEMOGRAPHIC_CHANNEL_DEPRECATED = 20; - - // YouTube urls are not supported in Placement criterion. Use YouTubeChannel - // and YouTubeVideo criterion instead. - YOUTUBE_URL_UNSUPPORTED = 21; - - // Criteria type can not be excluded by the customer, like AOL account type - // cannot target site type criteria. - CANNOT_EXCLUDE_CRITERIA_TYPE = 22; - - // Criteria type can not be targeted. - CANNOT_ADD_CRITERIA_TYPE = 23; - - // Product filter in the product criteria has invalid characters. Operand - // and the argument in the filter can not have "==" or "&+". - INVALID_PRODUCT_FILTER = 24; - - // Product filter in the product criteria is translated to a string as - // operand1==argument1&+operand2==argument2, maximum allowed length for the - // string is 255 chars. - PRODUCT_FILTER_TOO_LONG = 25; - - // Not allowed to exclude similar user list. - CANNOT_EXCLUDE_SIMILAR_USER_LIST = 26; - - // Not allowed to target a closed user list. - CANNOT_ADD_CLOSED_USER_LIST = 27; - - // Not allowed to add display only UserLists to search only campaigns. - CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SEARCH_ONLY_CAMPAIGNS = 28; - - // Not allowed to add display only UserLists to search plus campaigns. - CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SEARCH_CAMPAIGNS = 29; - - // Not allowed to add display only UserLists to shopping campaigns. - CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SHOPPING_CAMPAIGNS = 30; - - // Not allowed to add User interests to search only campaigns. - CANNOT_ADD_USER_INTERESTS_TO_SEARCH_CAMPAIGNS = 31; - - // Not allowed to set bids for this criterion type in search campaigns - CANNOT_SET_BIDS_ON_CRITERION_TYPE_IN_SEARCH_CAMPAIGNS = 32; - - // Final URLs, URL Templates and CustomParameters cannot be set for the - // criterion types of Gender, AgeRange, UserList, Placement, MobileApp, and - // MobileAppCategory in search campaigns and shopping campaigns. - CANNOT_ADD_URLS_TO_CRITERION_TYPE_FOR_CAMPAIGN_TYPE = 33; - - // Invalid custom affinity criterion. - INVALID_CUSTOM_AFFINITY = 96; - - // Invalid custom intent criterion. - INVALID_CUSTOM_INTENT = 97; - - // IP address is not valid. - INVALID_IP_ADDRESS = 34; - - // IP format is not valid. - INVALID_IP_FORMAT = 35; - - // Mobile application is not valid. - INVALID_MOBILE_APP = 36; - - // Mobile application category is not valid. - INVALID_MOBILE_APP_CATEGORY = 37; - - // The CriterionId does not exist or is of the incorrect type. - INVALID_CRITERION_ID = 38; - - // The Criterion is not allowed to be targeted. - CANNOT_TARGET_CRITERION = 39; - - // The criterion is not allowed to be targeted as it is deprecated. - CANNOT_TARGET_OBSOLETE_CRITERION = 40; - - // The CriterionId is not valid for the type. - CRITERION_ID_AND_TYPE_MISMATCH = 41; - - // Distance for the radius for the proximity criterion is invalid. - INVALID_PROXIMITY_RADIUS = 42; - - // Units for the distance for the radius for the proximity criterion is - // invalid. - INVALID_PROXIMITY_RADIUS_UNITS = 43; - - // Street address in the address is not valid. - INVALID_STREETADDRESS_LENGTH = 44; - - // City name in the address is not valid. - INVALID_CITYNAME_LENGTH = 45; - - // Region code in the address is not valid. - INVALID_REGIONCODE_LENGTH = 46; - - // Region name in the address is not valid. - INVALID_REGIONNAME_LENGTH = 47; - - // Postal code in the address is not valid. - INVALID_POSTALCODE_LENGTH = 48; - - // Country code in the address is not valid. - INVALID_COUNTRY_CODE = 49; - - // Latitude for the GeoPoint is not valid. - INVALID_LATITUDE = 50; - - // Longitude for the GeoPoint is not valid. - INVALID_LONGITUDE = 51; - - // The Proximity input is not valid. Both address and geoPoint cannot be - // null. - PROXIMITY_GEOPOINT_AND_ADDRESS_BOTH_CANNOT_BE_NULL = 52; - - // The Proximity address cannot be geocoded to a valid lat/long. - INVALID_PROXIMITY_ADDRESS = 53; - - // User domain name is not valid. - INVALID_USER_DOMAIN_NAME = 54; - - // Length of serialized criterion parameter exceeded size limit. - CRITERION_PARAMETER_TOO_LONG = 55; - - // Time interval in the AdSchedule overlaps with another AdSchedule. - AD_SCHEDULE_TIME_INTERVALS_OVERLAP = 56; - - // AdSchedule time interval cannot span multiple days. - AD_SCHEDULE_INTERVAL_CANNOT_SPAN_MULTIPLE_DAYS = 57; - - // AdSchedule time interval specified is invalid, endTime cannot be earlier - // than startTime. - AD_SCHEDULE_INVALID_TIME_INTERVAL = 58; - - // The number of AdSchedule entries in a day exceeds the limit. - AD_SCHEDULE_EXCEEDED_INTERVALS_PER_DAY_LIMIT = 59; - - // CriteriaId does not match the interval of the AdSchedule specified. - AD_SCHEDULE_CRITERION_ID_MISMATCHING_FIELDS = 60; - - // Cannot set bid modifier for this criterion type. - CANNOT_BID_MODIFY_CRITERION_TYPE = 61; - - // Cannot bid modify criterion, since it is opted out of the campaign. - CANNOT_BID_MODIFY_CRITERION_CAMPAIGN_OPTED_OUT = 62; - - // Cannot set bid modifier for a negative criterion. - CANNOT_BID_MODIFY_NEGATIVE_CRITERION = 63; - - // Bid Modifier already exists. Use SET operation to update. - BID_MODIFIER_ALREADY_EXISTS = 64; - - // Feed Id is not allowed in these Location Groups. - FEED_ID_NOT_ALLOWED = 65; - - // The account may not use the requested criteria type. For example, some - // accounts are restricted to keywords only. - ACCOUNT_INELIGIBLE_FOR_CRITERIA_TYPE = 66; - - // The requested criteria type cannot be used with campaign or ad group - // bidding strategy. - CRITERIA_TYPE_INVALID_FOR_BIDDING_STRATEGY = 67; - - // The Criterion is not allowed to be excluded. - CANNOT_EXCLUDE_CRITERION = 68; - - // The criterion is not allowed to be removed. For example, we cannot remove - // any of the device criterion. - CANNOT_REMOVE_CRITERION = 69; - - // The combined length of product dimension values of the product scope - // criterion is too long. - PRODUCT_SCOPE_TOO_LONG = 70; - - // Product scope contains too many dimensions. - PRODUCT_SCOPE_TOO_MANY_DIMENSIONS = 71; - - // The combined length of product dimension values of the product partition - // criterion is too long. - PRODUCT_PARTITION_TOO_LONG = 72; - - // Product partition contains too many dimensions. - PRODUCT_PARTITION_TOO_MANY_DIMENSIONS = 73; - - // The product dimension is invalid (e.g. dimension contains illegal value, - // dimension type is represented with wrong class, etc). Product dimension - // value can not contain "==" or "&+". - INVALID_PRODUCT_DIMENSION = 74; - - // Product dimension type is either invalid for campaigns of this type or - // cannot be used in the current context. BIDDING_CATEGORY_Lx and - // PRODUCT_TYPE_Lx product dimensions must be used in ascending order of - // their levels: L1, L2, L3, L4, L5... The levels must be specified - // sequentially and start from L1. Furthermore, an "others" product - // partition cannot be subdivided with a dimension of the same type but of a - // higher level ("others" BIDDING_CATEGORY_L3 can be subdivided with BRAND - // but not with BIDDING_CATEGORY_L4). - INVALID_PRODUCT_DIMENSION_TYPE = 75; - - // Bidding categories do not form a valid path in the Shopping bidding - // category taxonomy. - INVALID_PRODUCT_BIDDING_CATEGORY = 76; - - // ShoppingSetting must be added to the campaign before ProductScope - // criteria can be added. - MISSING_SHOPPING_SETTING = 77; - - // Matching function is invalid. - INVALID_MATCHING_FUNCTION = 78; - - // Filter parameters not allowed for location groups targeting. - LOCATION_FILTER_NOT_ALLOWED = 79; - - // Feed not found, or the feed is not an enabled location feed. - INVALID_FEED_FOR_LOCATION_FILTER = 98; - - // Given location filter parameter is invalid for location groups targeting. - LOCATION_FILTER_INVALID = 80; - - // Criteria type cannot be associated with a campaign and its ad group(s) - // simultaneously. - CANNOT_ATTACH_CRITERIA_AT_CAMPAIGN_AND_ADGROUP = 81; - - // Range represented by hotel length of stay's min nights and max nights - // overlaps with an existing criterion. - HOTEL_LENGTH_OF_STAY_OVERLAPS_WITH_EXISTING_CRITERION = 82; - - // Range represented by hotel advance booking window's min days and max days - // overlaps with an existing criterion. - HOTEL_ADVANCE_BOOKING_WINDOW_OVERLAPS_WITH_EXISTING_CRITERION = 83; - - // The field is not allowed to be set when the negative field is set to - // true, e.g. we don't allow bids in negative ad group or campaign criteria. - FIELD_INCOMPATIBLE_WITH_NEGATIVE_TARGETING = 84; - - // The combination of operand and operator in webpage condition is invalid. - INVALID_WEBPAGE_CONDITION = 85; - - // The URL of webpage condition is invalid. - INVALID_WEBPAGE_CONDITION_URL = 86; - - // The URL of webpage condition cannot be empty or contain white space. - WEBPAGE_CONDITION_URL_CANNOT_BE_EMPTY = 87; - - // The URL of webpage condition contains an unsupported protocol. - WEBPAGE_CONDITION_URL_UNSUPPORTED_PROTOCOL = 88; - - // The URL of webpage condition cannot be an IP address. - WEBPAGE_CONDITION_URL_CANNOT_BE_IP_ADDRESS = 89; - - // The domain of the URL is not consistent with the domain in campaign - // setting. - WEBPAGE_CONDITION_URL_DOMAIN_NOT_CONSISTENT_WITH_CAMPAIGN_SETTING = 90; - - // The URL of webpage condition cannot be a public suffix itself. - WEBPAGE_CONDITION_URL_CANNOT_BE_PUBLIC_SUFFIX = 91; - - // The URL of webpage condition has an invalid public suffix. - WEBPAGE_CONDITION_URL_INVALID_PUBLIC_SUFFIX = 92; - - // Value track parameter is not supported in webpage condition URL. - WEBPAGE_CONDITION_URL_VALUE_TRACK_VALUE_NOT_SUPPORTED = 93; - - // Only one URL-EQUALS webpage condition is allowed in a webpage - // criterion and it cannot be combined with other conditions. - WEBPAGE_CRITERION_URL_EQUALS_CAN_HAVE_ONLY_ONE_CONDITION = 94; - - // A webpage criterion cannot be added to a non-DSA ad group. - WEBPAGE_CRITERION_NOT_SUPPORTED_ON_NON_DSA_AD_GROUP = 95; - - // Cannot add positive user list criteria in Smart Display campaigns. - CANNOT_TARGET_USER_LIST_FOR_SMART_DISPLAY_CAMPAIGNS = 99; - - // Listing scope contains too many dimension types. - LISTING_SCOPE_TOO_MANY_DIMENSION_TYPES = 100; - - // Listing scope has too many IN operators. - LISTING_SCOPE_TOO_MANY_IN_OPERATORS = 101; - - // Listing scope contains IN operator on an unsupported dimension type. - LISTING_SCOPE_IN_OPERATOR_NOT_SUPPORTED = 102; - - // There are dimensions with duplicate dimension type. - DUPLICATE_LISTING_DIMENSION_TYPE = 103; - - // There are dimensions with duplicate dimension value. - DUPLICATE_LISTING_DIMENSION_VALUE = 104; - - // Listing group SUBDIVISION nodes cannot have bids. - CANNOT_SET_BIDS_ON_LISTING_GROUP_SUBDIVISION = 105; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/currency_code_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/currency_code_error.proto deleted file mode 100644 index ab25f216f..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/currency_code_error.proto +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "CurrencyCodeErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing currency code errors. - -// Container for enum describing possible currency code errors. -message CurrencyCodeErrorEnum { - // Enum describing possible currency code errors. - enum CurrencyCodeError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The currency code is not supported. - UNSUPPORTED = 2; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/custom_interest_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/custom_interest_error.proto deleted file mode 100644 index a2d9396af..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/custom_interest_error.proto +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "CustomInterestErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing custom interest errors. - -// Container for enum describing possible custom interest errors. -message CustomInterestErrorEnum { - // Enum describing possible custom interest errors. - enum CustomInterestError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Duplicate custom interest name ignoring case. - NAME_ALREADY_USED = 2; - - // In the remove custom interest member operation, both member ID and - // pair [type, parameter] are not present. - CUSTOM_INTEREST_MEMBER_ID_AND_TYPE_PARAMETER_NOT_PRESENT_IN_REMOVE = 3; - - // The pair of [type, parameter] does not exist. - TYPE_AND_PARAMETER_NOT_FOUND = 4; - - // The pair of [type, parameter] already exists. - TYPE_AND_PARAMETER_ALREADY_EXISTED = 5; - - // Unsupported custom interest member type. - INVALID_CUSTOM_INTEREST_MEMBER_TYPE = 6; - - // Cannot remove a custom interest while it's still being targeted. - CANNOT_REMOVE_WHILE_IN_USE = 7; - - // Cannot mutate custom interest type. - CANNOT_CHANGE_TYPE = 8; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/customer_client_link_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/customer_client_link_error.proto deleted file mode 100644 index 19976aaff..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/customer_client_link_error.proto +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "CustomerClientLinkErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing CustomerClientLink errors. - -// Container for enum describing possible CustomeClientLink errors. -message CustomerClientLinkErrorEnum { - // Enum describing possible CustomerClientLink errors. - enum CustomerClientLinkError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Trying to manage a client that already in being managed by customer. - CLIENT_ALREADY_INVITED_BY_THIS_MANAGER = 2; - - // Already managed by some other manager in the hierarchy. - CLIENT_ALREADY_MANAGED_IN_HIERARCHY = 3; - - // Attempt to create a cycle in the hierarchy. - CYCLIC_LINK_NOT_ALLOWED = 4; - - // Managed accounts has the maximum number of linked accounts. - CUSTOMER_HAS_TOO_MANY_ACCOUNTS = 5; - - // Invitor has the maximum pending invitations. - CLIENT_HAS_TOO_MANY_INVITATIONS = 6; - - // Attempt to change hidden status of a link that is not active. - CANNOT_HIDE_OR_UNHIDE_MANAGER_ACCOUNTS = 7; - - // Parent manager account has the maximum number of linked accounts. - CUSTOMER_HAS_TOO_MANY_ACCOUNTS_AT_MANAGER = 8; - - // Client has too many managers. - CLIENT_HAS_TOO_MANY_MANAGERS = 9; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/customer_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/customer_error.proto deleted file mode 100644 index 4c139b504..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/customer_error.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "CustomerErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Container for enum describing possible customer errors. -message CustomerErrorEnum { - // Set of errors that are related to requests dealing with Customer. - enum CustomerError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Customer status is not allowed to be changed from DRAFT and CLOSED. - // Currency code and at least one of country code and time zone needs to be - // set when status is changed to ENABLED. - STATUS_CHANGE_DISALLOWED = 2; - - // CustomerService cannot get a customer that has not been fully set up. - ACCOUNT_NOT_SET_UP = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/customer_feed_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/customer_feed_error.proto deleted file mode 100644 index 18ddb4426..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/customer_feed_error.proto +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "CustomerFeedErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing customer feed errors. - -// Container for enum describing possible customer feed errors. -message CustomerFeedErrorEnum { - // Enum describing possible customer feed errors. - enum CustomerFeedError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // An active feed already exists for this customer and place holder type. - FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE = 2; - - // The specified feed is removed. - CANNOT_CREATE_FOR_REMOVED_FEED = 3; - - // The CustomerFeed already exists. Update should be used to modify the - // existing CustomerFeed. - CANNOT_CREATE_ALREADY_EXISTING_CUSTOMER_FEED = 4; - - // Cannot update removed customer feed. - CANNOT_MODIFY_REMOVED_CUSTOMER_FEED = 5; - - // Invalid placeholder type. - INVALID_PLACEHOLDER_TYPE = 6; - - // Feed mapping for this placeholder type does not exist. - MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE = 7; - - // Placeholder not allowed at the account level. - PLACEHOLDER_TYPE_NOT_ALLOWED_ON_CUSTOMER_FEED = 8; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/customer_manager_link_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/customer_manager_link_error.proto deleted file mode 100644 index 457d35d04..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/customer_manager_link_error.proto +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "CustomerManagerLinkErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing CustomerManagerLink errors. - -// Container for enum describing possible CustomerManagerLink errors. -message CustomerManagerLinkErrorEnum { - // Enum describing possible CustomerManagerLink errors. - enum CustomerManagerLinkError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // No pending invitation. - NO_PENDING_INVITE = 2; - - // Attempt to operate on the same client more than once in the same call. - SAME_CLIENT_MORE_THAN_ONCE_PER_CALL = 3; - - // Manager account has the maximum number of linked accounts. - MANAGER_HAS_MAX_NUMBER_OF_LINKED_ACCOUNTS = 4; - - // If no active user on account it cannot be unlinked from its manager. - CANNOT_UNLINK_ACCOUNT_WITHOUT_ACTIVE_USER = 5; - - // Account should have at least one active owner on it before being - // unlinked. - CANNOT_REMOVE_LAST_CLIENT_ACCOUNT_OWNER = 6; - - // Only account owners may change their permission role. - CANNOT_CHANGE_ROLE_BY_NON_ACCOUNT_OWNER = 7; - - // When a client's link to its manager is not active, the link role cannot - // be changed. - CANNOT_CHANGE_ROLE_FOR_NON_ACTIVE_LINK_ACCOUNT = 8; - - // Attempt to link a child to a parent that contains or will contain - // duplicate children. - DUPLICATE_CHILD_FOUND = 9; - - // The authorized customer is a test account. It can add no more than the - // allowed number of accounts - TEST_ACCOUNT_LINKS_TOO_MANY_CHILD_ACCOUNTS = 10; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/database_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/database_error.proto deleted file mode 100644 index c24eb1c1d..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/database_error.proto +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "DatabaseErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing database errors. - -// Container for enum describing possible database errors. -message DatabaseErrorEnum { - // Enum describing possible database errors. - enum DatabaseError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Multiple requests were attempting to modify the same resource at once. - // Please retry the request. - CONCURRENT_MODIFICATION = 2; - - // The request conflicted with existing data. This error will usually be - // replaced with a more specific error if the request is retried. - DATA_CONSTRAINT_VIOLATION = 3; - - // The data written is too large. Please split the request into smaller - // requests. - REQUEST_TOO_LARGE = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/date_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/date_error.proto deleted file mode 100644 index 18cea7025..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/date_error.proto +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "DateErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing date errors. - -// Container for enum describing possible date errors. -message DateErrorEnum { - // Enum describing possible date errors. - enum DateError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Given field values do not correspond to a valid date. - INVALID_FIELD_VALUES_IN_DATE = 2; - - // Given field values do not correspond to a valid date time. - INVALID_FIELD_VALUES_IN_DATE_TIME = 3; - - // The string date's format should be yyyy-mm-dd. - INVALID_STRING_DATE = 4; - - // The string date time's format should be yyyy-mm-dd hh:mm:ss.ssssss. - INVALID_STRING_DATE_TIME_MICROS = 6; - - // The string date time's format should be yyyy-mm-dd hh:mm:ss. - INVALID_STRING_DATE_TIME_SECONDS = 11; - - // The string date time's format should be yyyy-mm-dd hh:mm:ss+|-hh:mm. - INVALID_STRING_DATE_TIME_SECONDS_WITH_OFFSET = 12; - - // Date is before allowed minimum. - EARLIER_THAN_MINIMUM_DATE = 7; - - // Date is after allowed maximum. - LATER_THAN_MAXIMUM_DATE = 8; - - // Date range bounds are not in order. - DATE_RANGE_MINIMUM_DATE_LATER_THAN_MAXIMUM_DATE = 9; - - // Both dates in range are null. - DATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL = 10; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/date_range_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/date_range_error.proto deleted file mode 100644 index b42babd3a..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/date_range_error.proto +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "DateRangeErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing date range errors. - -// Container for enum describing possible date range errors. -message DateRangeErrorEnum { - // Enum describing possible date range errors. - enum DateRangeError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Invalid date. - INVALID_DATE = 2; - - // The start date was after the end date. - START_DATE_AFTER_END_DATE = 3; - - // Cannot set date to past time - CANNOT_SET_DATE_TO_PAST = 4; - - // A date was used that is past the system "last" date. - AFTER_MAXIMUM_ALLOWABLE_DATE = 5; - - // Trying to change start date on a resource that has started. - CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/distinct_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/distinct_error.proto deleted file mode 100644 index ac5b32b2c..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/distinct_error.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "DistinctErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing distinct errors. - -// Container for enum describing possible distinct errors. -message DistinctErrorEnum { - // Enum describing possible distinct errors. - enum DistinctError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Duplicate element. - DUPLICATE_ELEMENT = 2; - - // Duplicate type. - DUPLICATE_TYPE = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/enum_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/enum_error.proto deleted file mode 100644 index 5683037a5..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/enum_error.proto +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "EnumErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing enum errors. - -// Container for enum describing possible enum errors. -message EnumErrorEnum { - // Enum describing possible enum errors. - enum EnumError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The enum value is not permitted. - ENUM_VALUE_NOT_PERMITTED = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/errors.proto b/third_party/googleapis/google/ads/googleads/v3/errors/errors.proto deleted file mode 100644 index 704c302bb..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/errors.proto +++ /dev/null @@ -1,565 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/ads/googleads/v3/common/policy.proto"; -import "google/ads/googleads/v3/common/value.proto"; -import "google/ads/googleads/v3/errors/access_invitation_error.proto"; -import "google/ads/googleads/v3/errors/account_budget_proposal_error.proto"; -import "google/ads/googleads/v3/errors/ad_customizer_error.proto"; -import "google/ads/googleads/v3/errors/ad_error.proto"; -import "google/ads/googleads/v3/errors/ad_group_ad_error.proto"; -import "google/ads/googleads/v3/errors/ad_group_bid_modifier_error.proto"; -import "google/ads/googleads/v3/errors/ad_group_criterion_error.proto"; -import "google/ads/googleads/v3/errors/ad_group_error.proto"; -import "google/ads/googleads/v3/errors/ad_group_feed_error.proto"; -import "google/ads/googleads/v3/errors/ad_parameter_error.proto"; -import "google/ads/googleads/v3/errors/ad_sharing_error.proto"; -import "google/ads/googleads/v3/errors/adx_error.proto"; -import "google/ads/googleads/v3/errors/asset_error.proto"; -import "google/ads/googleads/v3/errors/asset_link_error.proto"; -import "google/ads/googleads/v3/errors/authentication_error.proto"; -import "google/ads/googleads/v3/errors/authorization_error.proto"; -import "google/ads/googleads/v3/errors/bidding_error.proto"; -import "google/ads/googleads/v3/errors/bidding_strategy_error.proto"; -import "google/ads/googleads/v3/errors/billing_setup_error.proto"; -import "google/ads/googleads/v3/errors/campaign_budget_error.proto"; -import "google/ads/googleads/v3/errors/campaign_criterion_error.proto"; -import "google/ads/googleads/v3/errors/campaign_draft_error.proto"; -import "google/ads/googleads/v3/errors/campaign_error.proto"; -import "google/ads/googleads/v3/errors/campaign_experiment_error.proto"; -import "google/ads/googleads/v3/errors/campaign_feed_error.proto"; -import "google/ads/googleads/v3/errors/campaign_shared_set_error.proto"; -import "google/ads/googleads/v3/errors/change_status_error.proto"; -import "google/ads/googleads/v3/errors/collection_size_error.proto"; -import "google/ads/googleads/v3/errors/context_error.proto"; -import "google/ads/googleads/v3/errors/conversion_action_error.proto"; -import "google/ads/googleads/v3/errors/conversion_adjustment_upload_error.proto"; -import "google/ads/googleads/v3/errors/conversion_upload_error.proto"; -import "google/ads/googleads/v3/errors/country_code_error.proto"; -import "google/ads/googleads/v3/errors/criterion_error.proto"; -import "google/ads/googleads/v3/errors/currency_code_error.proto"; -import "google/ads/googleads/v3/errors/custom_interest_error.proto"; -import "google/ads/googleads/v3/errors/customer_client_link_error.proto"; -import "google/ads/googleads/v3/errors/customer_error.proto"; -import "google/ads/googleads/v3/errors/customer_feed_error.proto"; -import "google/ads/googleads/v3/errors/customer_manager_link_error.proto"; -import "google/ads/googleads/v3/errors/database_error.proto"; -import "google/ads/googleads/v3/errors/date_error.proto"; -import "google/ads/googleads/v3/errors/date_range_error.proto"; -import "google/ads/googleads/v3/errors/distinct_error.proto"; -import "google/ads/googleads/v3/errors/enum_error.proto"; -import "google/ads/googleads/v3/errors/extension_feed_item_error.proto"; -import "google/ads/googleads/v3/errors/extension_setting_error.proto"; -import "google/ads/googleads/v3/errors/feed_attribute_reference_error.proto"; -import "google/ads/googleads/v3/errors/feed_error.proto"; -import "google/ads/googleads/v3/errors/feed_item_error.proto"; -import "google/ads/googleads/v3/errors/feed_item_target_error.proto"; -import "google/ads/googleads/v3/errors/feed_item_validation_error.proto"; -import "google/ads/googleads/v3/errors/feed_mapping_error.proto"; -import "google/ads/googleads/v3/errors/field_error.proto"; -import "google/ads/googleads/v3/errors/field_mask_error.proto"; -import "google/ads/googleads/v3/errors/function_error.proto"; -import "google/ads/googleads/v3/errors/function_parsing_error.proto"; -import "google/ads/googleads/v3/errors/geo_target_constant_suggestion_error.proto"; -import "google/ads/googleads/v3/errors/header_error.proto"; -import "google/ads/googleads/v3/errors/id_error.proto"; -import "google/ads/googleads/v3/errors/image_error.proto"; -import "google/ads/googleads/v3/errors/internal_error.proto"; -import "google/ads/googleads/v3/errors/invoice_error.proto"; -import "google/ads/googleads/v3/errors/keyword_plan_ad_group_error.proto"; -import "google/ads/googleads/v3/errors/keyword_plan_campaign_error.proto"; -import "google/ads/googleads/v3/errors/keyword_plan_error.proto"; -import "google/ads/googleads/v3/errors/keyword_plan_idea_error.proto"; -import "google/ads/googleads/v3/errors/keyword_plan_keyword_error.proto"; -import "google/ads/googleads/v3/errors/keyword_plan_negative_keyword_error.proto"; -import "google/ads/googleads/v3/errors/label_error.proto"; -import "google/ads/googleads/v3/errors/language_code_error.proto"; -import "google/ads/googleads/v3/errors/list_operation_error.proto"; -import "google/ads/googleads/v3/errors/manager_link_error.proto"; -import "google/ads/googleads/v3/errors/media_bundle_error.proto"; -import "google/ads/googleads/v3/errors/media_file_error.proto"; -import "google/ads/googleads/v3/errors/media_upload_error.proto"; -import "google/ads/googleads/v3/errors/multiplier_error.proto"; -import "google/ads/googleads/v3/errors/mutate_error.proto"; -import "google/ads/googleads/v3/errors/mutate_job_error.proto"; -import "google/ads/googleads/v3/errors/new_resource_creation_error.proto"; -import "google/ads/googleads/v3/errors/not_empty_error.proto"; -import "google/ads/googleads/v3/errors/not_whitelisted_error.proto"; -import "google/ads/googleads/v3/errors/null_error.proto"; -import "google/ads/googleads/v3/errors/offline_user_data_job_error.proto"; -import "google/ads/googleads/v3/errors/operation_access_denied_error.proto"; -import "google/ads/googleads/v3/errors/operator_error.proto"; -import "google/ads/googleads/v3/errors/partial_failure_error.proto"; -import "google/ads/googleads/v3/errors/payments_account_error.proto"; -import "google/ads/googleads/v3/errors/policy_finding_error.proto"; -import "google/ads/googleads/v3/errors/policy_validation_parameter_error.proto"; -import "google/ads/googleads/v3/errors/policy_violation_error.proto"; -import "google/ads/googleads/v3/errors/query_error.proto"; -import "google/ads/googleads/v3/errors/quota_error.proto"; -import "google/ads/googleads/v3/errors/range_error.proto"; -import "google/ads/googleads/v3/errors/reach_plan_error.proto"; -import "google/ads/googleads/v3/errors/recommendation_error.proto"; -import "google/ads/googleads/v3/errors/region_code_error.proto"; -import "google/ads/googleads/v3/errors/request_error.proto"; -import "google/ads/googleads/v3/errors/resource_access_denied_error.proto"; -import "google/ads/googleads/v3/errors/resource_count_limit_exceeded_error.proto"; -import "google/ads/googleads/v3/errors/setting_error.proto"; -import "google/ads/googleads/v3/errors/shared_criterion_error.proto"; -import "google/ads/googleads/v3/errors/shared_set_error.proto"; -import "google/ads/googleads/v3/errors/size_limit_error.proto"; -import "google/ads/googleads/v3/errors/string_format_error.proto"; -import "google/ads/googleads/v3/errors/string_length_error.proto"; -import "google/ads/googleads/v3/errors/time_zone_error.proto"; -import "google/ads/googleads/v3/errors/url_field_error.proto"; -import "google/ads/googleads/v3/errors/user_data_error.proto"; -import "google/ads/googleads/v3/errors/user_list_error.proto"; -import "google/ads/googleads/v3/errors/youtube_video_registration_error.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "ErrorsProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing the common error protos - -// Describes how a GoogleAds API call failed. It's returned inside -// google.rpc.Status.details when a call fails. -message GoogleAdsFailure { - // The list of errors that occurred. - repeated GoogleAdsError errors = 1; -} - -// GoogleAds-specific error. -message GoogleAdsError { - // An enum value that indicates which error occurred. - ErrorCode error_code = 1; - - // A human-readable description of the error. - string message = 2; - - // The value that triggered the error. - google.ads.googleads.v3.common.Value trigger = 3; - - // Describes the part of the request proto that caused the error. - ErrorLocation location = 4; - - // Additional error details, which are returned by certain error codes. Most - // error codes do not include details. - ErrorDetails details = 5; -} - -// The error reason represented by type and enum. -message ErrorCode { - // The list of error enums - oneof error_code { - // An error caused by the request - RequestErrorEnum.RequestError request_error = 1; - - // An error with a Bidding Strategy mutate. - BiddingStrategyErrorEnum.BiddingStrategyError bidding_strategy_error = 2; - - // An error with a URL field mutate. - UrlFieldErrorEnum.UrlFieldError url_field_error = 3; - - // An error with a list operation. - ListOperationErrorEnum.ListOperationError list_operation_error = 4; - - // An error with an AWQL query - QueryErrorEnum.QueryError query_error = 5; - - // An error with a mutate - MutateErrorEnum.MutateError mutate_error = 7; - - // An error with a field mask - FieldMaskErrorEnum.FieldMaskError field_mask_error = 8; - - // An error encountered when trying to authorize a user. - AuthorizationErrorEnum.AuthorizationError authorization_error = 9; - - // An unexpected server-side error. - InternalErrorEnum.InternalError internal_error = 10; - - // An error with the amonut of quota remaining. - QuotaErrorEnum.QuotaError quota_error = 11; - - // An error with an Ad Group Ad mutate. - AdErrorEnum.AdError ad_error = 12; - - // An error with an Ad Group mutate. - AdGroupErrorEnum.AdGroupError ad_group_error = 13; - - // An error with a Campaign Budget mutate. - CampaignBudgetErrorEnum.CampaignBudgetError campaign_budget_error = 14; - - // An error with a Campaign mutate. - CampaignErrorEnum.CampaignError campaign_error = 15; - - // Indicates failure to properly authenticate user. - AuthenticationErrorEnum.AuthenticationError authentication_error = 17; - - // Indicates failure to properly authenticate user. - AdGroupCriterionErrorEnum.AdGroupCriterionError ad_group_criterion_error = 18; - - // The reasons for the ad customizer error - AdCustomizerErrorEnum.AdCustomizerError ad_customizer_error = 19; - - // The reasons for the ad group ad error - AdGroupAdErrorEnum.AdGroupAdError ad_group_ad_error = 21; - - // The reasons for the ad sharing error - AdSharingErrorEnum.AdSharingError ad_sharing_error = 24; - - // The reasons for the adx error - AdxErrorEnum.AdxError adx_error = 25; - - // The reasons for the asset error - AssetErrorEnum.AssetError asset_error = 107; - - // The reasons for the bidding errors - BiddingErrorEnum.BiddingError bidding_error = 26; - - // The reasons for the campaign criterion error - CampaignCriterionErrorEnum.CampaignCriterionError campaign_criterion_error = 29; - - // The reasons for the collection size error - CollectionSizeErrorEnum.CollectionSizeError collection_size_error = 31; - - // The reasons for the country code error - CountryCodeErrorEnum.CountryCodeError country_code_error = 109; - - // The reasons for the criterion error - CriterionErrorEnum.CriterionError criterion_error = 32; - - // The reasons for the customer error - CustomerErrorEnum.CustomerError customer_error = 90; - - // The reasons for the date error - DateErrorEnum.DateError date_error = 33; - - // The reasons for the date range error - DateRangeErrorEnum.DateRangeError date_range_error = 34; - - // The reasons for the distinct error - DistinctErrorEnum.DistinctError distinct_error = 35; - - // The reasons for the feed attribute reference error - FeedAttributeReferenceErrorEnum.FeedAttributeReferenceError feed_attribute_reference_error = 36; - - // The reasons for the function error - FunctionErrorEnum.FunctionError function_error = 37; - - // The reasons for the function parsing error - FunctionParsingErrorEnum.FunctionParsingError function_parsing_error = 38; - - // The reasons for the id error - IdErrorEnum.IdError id_error = 39; - - // The reasons for the image error - ImageErrorEnum.ImageError image_error = 40; - - // The reasons for the language code error - LanguageCodeErrorEnum.LanguageCodeError language_code_error = 110; - - // The reasons for the media bundle error - MediaBundleErrorEnum.MediaBundleError media_bundle_error = 42; - - // The reasons for media uploading errors. - MediaUploadErrorEnum.MediaUploadError media_upload_error = 116; - - // The reasons for the media file error - MediaFileErrorEnum.MediaFileError media_file_error = 86; - - // The reasons for the multiplier error - MultiplierErrorEnum.MultiplierError multiplier_error = 44; - - // The reasons for the new resource creation error - NewResourceCreationErrorEnum.NewResourceCreationError new_resource_creation_error = 45; - - // The reasons for the not empty error - NotEmptyErrorEnum.NotEmptyError not_empty_error = 46; - - // The reasons for the null error - NullErrorEnum.NullError null_error = 47; - - // The reasons for the operator error - OperatorErrorEnum.OperatorError operator_error = 48; - - // The reasons for the range error - RangeErrorEnum.RangeError range_error = 49; - - // The reasons for error in applying a recommendation - RecommendationErrorEnum.RecommendationError recommendation_error = 58; - - // The reasons for the region code error - RegionCodeErrorEnum.RegionCodeError region_code_error = 51; - - // The reasons for the setting error - SettingErrorEnum.SettingError setting_error = 52; - - // The reasons for the string format error - StringFormatErrorEnum.StringFormatError string_format_error = 53; - - // The reasons for the string length error - StringLengthErrorEnum.StringLengthError string_length_error = 54; - - // The reasons for the operation access denied error - OperationAccessDeniedErrorEnum.OperationAccessDeniedError operation_access_denied_error = 55; - - // The reasons for the resource access denied error - ResourceAccessDeniedErrorEnum.ResourceAccessDeniedError resource_access_denied_error = 56; - - // The reasons for the resource count limit exceeded error - ResourceCountLimitExceededErrorEnum.ResourceCountLimitExceededError resource_count_limit_exceeded_error = 57; - - // The reasons for YouTube video registration errors. - YoutubeVideoRegistrationErrorEnum.YoutubeVideoRegistrationError youtube_video_registration_error = 117; - - // The reasons for the ad group bid modifier error - AdGroupBidModifierErrorEnum.AdGroupBidModifierError ad_group_bid_modifier_error = 59; - - // The reasons for the context error - ContextErrorEnum.ContextError context_error = 60; - - // The reasons for the field error - FieldErrorEnum.FieldError field_error = 61; - - // The reasons for the shared set error - SharedSetErrorEnum.SharedSetError shared_set_error = 62; - - // The reasons for the shared criterion error - SharedCriterionErrorEnum.SharedCriterionError shared_criterion_error = 63; - - // The reasons for the campaign shared set error - CampaignSharedSetErrorEnum.CampaignSharedSetError campaign_shared_set_error = 64; - - // The reasons for the conversion action error - ConversionActionErrorEnum.ConversionActionError conversion_action_error = 65; - - // The reasons for the conversion adjustment upload error - ConversionAdjustmentUploadErrorEnum.ConversionAdjustmentUploadError conversion_adjustment_upload_error = 115; - - // The reasons for the conversion upload error - ConversionUploadErrorEnum.ConversionUploadError conversion_upload_error = 111; - - // The reasons for the header error. - HeaderErrorEnum.HeaderError header_error = 66; - - // The reasons for the database error. - DatabaseErrorEnum.DatabaseError database_error = 67; - - // The reasons for the policy finding error. - PolicyFindingErrorEnum.PolicyFindingError policy_finding_error = 68; - - // The reason for enum error. - EnumErrorEnum.EnumError enum_error = 70; - - // The reason for keyword plan error. - KeywordPlanErrorEnum.KeywordPlanError keyword_plan_error = 71; - - // The reason for keyword plan campaign error. - KeywordPlanCampaignErrorEnum.KeywordPlanCampaignError keyword_plan_campaign_error = 72; - - // The reason for keyword plan negative keyword error. - KeywordPlanNegativeKeywordErrorEnum.KeywordPlanNegativeKeywordError keyword_plan_negative_keyword_error = 73; - - // The reason for keyword plan ad group error. - KeywordPlanAdGroupErrorEnum.KeywordPlanAdGroupError keyword_plan_ad_group_error = 74; - - // The reason for keyword plan keyword error. - KeywordPlanKeywordErrorEnum.KeywordPlanKeywordError keyword_plan_keyword_error = 75; - - // The reason for keyword idea error. - KeywordPlanIdeaErrorEnum.KeywordPlanIdeaError keyword_plan_idea_error = 76; - - // The reasons for account budget proposal errors. - AccountBudgetProposalErrorEnum.AccountBudgetProposalError account_budget_proposal_error = 77; - - // The reasons for the user list error - UserListErrorEnum.UserListError user_list_error = 78; - - // The reasons for the change status error - ChangeStatusErrorEnum.ChangeStatusError change_status_error = 79; - - // The reasons for the feed error - FeedErrorEnum.FeedError feed_error = 80; - - // The reasons for the geo target constant suggestion error. - GeoTargetConstantSuggestionErrorEnum.GeoTargetConstantSuggestionError geo_target_constant_suggestion_error = 81; - - // The reasons for the campaign draft error - CampaignDraftErrorEnum.CampaignDraftError campaign_draft_error = 82; - - // The reasons for the feed item error - FeedItemErrorEnum.FeedItemError feed_item_error = 83; - - // The reason for the label error. - LabelErrorEnum.LabelError label_error = 84; - - // The reasons for the billing setup error - BillingSetupErrorEnum.BillingSetupError billing_setup_error = 87; - - // The reasons for the customer client link error - CustomerClientLinkErrorEnum.CustomerClientLinkError customer_client_link_error = 88; - - // The reasons for the customer manager link error - CustomerManagerLinkErrorEnum.CustomerManagerLinkError customer_manager_link_error = 91; - - // The reasons for the feed mapping error - FeedMappingErrorEnum.FeedMappingError feed_mapping_error = 92; - - // The reasons for the customer feed error - CustomerFeedErrorEnum.CustomerFeedError customer_feed_error = 93; - - // The reasons for the ad group feed error - AdGroupFeedErrorEnum.AdGroupFeedError ad_group_feed_error = 94; - - // The reasons for the campaign feed error - CampaignFeedErrorEnum.CampaignFeedError campaign_feed_error = 96; - - // The reasons for the custom interest error - CustomInterestErrorEnum.CustomInterestError custom_interest_error = 97; - - // The reasons for the campaign experiment error - CampaignExperimentErrorEnum.CampaignExperimentError campaign_experiment_error = 98; - - // The reasons for the extension feed item error - ExtensionFeedItemErrorEnum.ExtensionFeedItemError extension_feed_item_error = 100; - - // The reasons for the ad parameter error - AdParameterErrorEnum.AdParameterError ad_parameter_error = 101; - - // The reasons for the feed item validation error - FeedItemValidationErrorEnum.FeedItemValidationError feed_item_validation_error = 102; - - // The reasons for the extension setting error - ExtensionSettingErrorEnum.ExtensionSettingError extension_setting_error = 103; - - // The reasons for the feed item target error - FeedItemTargetErrorEnum.FeedItemTargetError feed_item_target_error = 104; - - // The reasons for the policy violation error - PolicyViolationErrorEnum.PolicyViolationError policy_violation_error = 105; - - // The reasons for the mutate job error - MutateJobErrorEnum.MutateJobError mutate_job_error = 108; - - // The reasons for the mutate job error - PartialFailureErrorEnum.PartialFailureError partial_failure_error = 112; - - // The reasons for the policy validation parameter error - PolicyValidationParameterErrorEnum.PolicyValidationParameterError policy_validation_parameter_error = 114; - - // The reasons for the size limit error - SizeLimitErrorEnum.SizeLimitError size_limit_error = 118; - - // The reasons for the offline user data job error. - OfflineUserDataJobErrorEnum.OfflineUserDataJobError offline_user_data_job_error = 119; - - // The reasons for the not whitelisted error - NotWhitelistedErrorEnum.NotWhitelistedError not_whitelisted_error = 120; - - // The reasons for the manager link error - ManagerLinkErrorEnum.ManagerLinkError manager_link_error = 121; - - // The reasons for the currency code error - CurrencyCodeErrorEnum.CurrencyCodeError currency_code_error = 122; - - // The reasons for the access invitation error - AccessInvitationErrorEnum.AccessInvitationError access_invitation_error = 124; - - // The reasons for the reach plan error - ReachPlanErrorEnum.ReachPlanError reach_plan_error = 125; - - // The reasons for the invoice error - InvoiceErrorEnum.InvoiceError invoice_error = 126; - - // The reasons for errors in payments accounts service - PaymentsAccountErrorEnum.PaymentsAccountError payments_account_error = 127; - - // The reasons for the time zone error - TimeZoneErrorEnum.TimeZoneError time_zone_error = 128; - - // The reasons for the asset link error - AssetLinkErrorEnum.AssetLinkError asset_link_error = 129; - - // The reasons for the user data error. - UserDataErrorEnum.UserDataError user_data_error = 130; - } -} - -// Describes the part of the request proto that caused the error. -message ErrorLocation { - // A part of a field path. - message FieldPathElement { - // The name of a field or a oneof - string field_name = 1; - - // If field_name is a repeated field, this is the element that failed - google.protobuf.Int64Value index = 2; - } - - // A field path that indicates which field was invalid in the request. - repeated FieldPathElement field_path_elements = 2; -} - -// Additional error details. -message ErrorDetails { - // The error code that should have been returned, but wasn't. This is used - // when the error code is not published in the client specified version. - string unpublished_error_code = 1; - - // Describes an ad policy violation. - PolicyViolationDetails policy_violation_details = 2; - - // Describes policy violation findings. - PolicyFindingDetails policy_finding_details = 3; -} - -// Error returned as part of a mutate response. -// This error indicates single policy violation by some text -// in one of the fields. -message PolicyViolationDetails { - // Human readable description of policy violation. - string external_policy_description = 2; - - // Unique identifier for this violation. - // If policy is exemptible, this key may be used to request exemption. - google.ads.googleads.v3.common.PolicyViolationKey key = 4; - - // Human readable name of the policy. - string external_policy_name = 5; - - // Whether user can file an exemption request for this violation. - bool is_exemptible = 6; -} - -// Error returned as part of a mutate response. -// This error indicates one or more policy findings in the fields of a -// resource. -message PolicyFindingDetails { - // The list of policy topics for the resource. Contains the PROHIBITED or - // FULLY_LIMITED policy topic entries that prevented the resource from being - // saved (among any other entries the resource may also have). - repeated google.ads.googleads.v3.common.PolicyTopicEntry policy_topic_entries = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/extension_feed_item_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/extension_feed_item_error.proto deleted file mode 100644 index e3cb4ae56..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/extension_feed_item_error.proto +++ /dev/null @@ -1,195 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "ExtensionFeedItemErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing extension feed item errors. - -// Container for enum describing possible extension feed item error. -message ExtensionFeedItemErrorEnum { - // Enum describing possible extension feed item errors. - enum ExtensionFeedItemError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Value is not within the accepted range. - VALUE_OUT_OF_RANGE = 2; - - // Url list is too long. - URL_LIST_TOO_LONG = 3; - - // Cannot have a geo targeting restriction without having geo targeting. - CANNOT_HAVE_RESTRICTION_ON_EMPTY_GEO_TARGETING = 4; - - // Cannot simultaneously set sitelink field with final urls. - CANNOT_SET_WITH_FINAL_URLS = 5; - - // Must set field with final urls. - CANNOT_SET_WITHOUT_FINAL_URLS = 6; - - // Phone number for a call extension is invalid. - INVALID_PHONE_NUMBER = 7; - - // Phone number for a call extension is not supported for the given country - // code. - PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY = 8; - - // A carrier specific number in short format is not allowed for call - // extensions. - CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED = 9; - - // Premium rate numbers are not allowed for call extensions. - PREMIUM_RATE_NUMBER_NOT_ALLOWED = 10; - - // Phone number type for a call extension is not allowed. - // For example, personal number is not allowed for a call extension in - // most regions. - DISALLOWED_NUMBER_TYPE = 11; - - // Phone number for a call extension does not meet domestic format - // requirements. - INVALID_DOMESTIC_PHONE_NUMBER_FORMAT = 12; - - // Vanity phone numbers (i.e. those including letters) are not allowed for - // call extensions. - VANITY_PHONE_NUMBER_NOT_ALLOWED = 13; - - // Call conversion action provided for a call extension is invalid. - INVALID_CALL_CONVERSION_ACTION = 14; - - // For a call extension, the customer is not on the allow-list for call - // tracking. - CUSTOMER_NOT_WHITELISTED_FOR_CALLTRACKING = 15; - - // Call tracking is not supported for the given country for a call - // extension. - CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY = 16; - - // Customer hasn't consented for call recording, which is required for - // creating/updating call feed items. Please see - // https://support.google.com/google-ads/answer/7412639. - CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED = 17; - - // App id provided for an app extension is invalid. - INVALID_APP_ID = 18; - - // Quotation marks present in the review text for a review extension. - QUOTES_IN_REVIEW_EXTENSION_SNIPPET = 19; - - // Hyphen character present in the review text for a review extension. - HYPHENS_IN_REVIEW_EXTENSION_SNIPPET = 20; - - // A denylisted review source name or url was provided for a review - // extension. - REVIEW_EXTENSION_SOURCE_INELIGIBLE = 21; - - // Review source name should not be found in the review text. - SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT = 22; - - // Inconsistent currency codes. - INCONSISTENT_CURRENCY_CODES = 23; - - // Price extension cannot have duplicated headers. - PRICE_EXTENSION_HAS_DUPLICATED_HEADERS = 24; - - // Price item cannot have duplicated header and description. - PRICE_ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION = 25; - - // Price extension has too few items. - PRICE_EXTENSION_HAS_TOO_FEW_ITEMS = 26; - - // Price extension has too many items. - PRICE_EXTENSION_HAS_TOO_MANY_ITEMS = 27; - - // The input value is not currently supported. - UNSUPPORTED_VALUE = 28; - - // The input value is not currently supported in the selected language of an - // extension. - UNSUPPORTED_VALUE_IN_SELECTED_LANGUAGE = 29; - - // Unknown or unsupported device preference. - INVALID_DEVICE_PREFERENCE = 30; - - // Invalid feed item schedule end time (i.e., endHour = 24 and endMinute != - // 0). - INVALID_SCHEDULE_END = 31; - - // Date time zone does not match the account's time zone. - DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE = 32; - - // Invalid structured snippet header. - INVALID_SNIPPETS_HEADER = 33; - - // Cannot operate on removed feed item. - CANNOT_OPERATE_ON_REMOVED_FEED_ITEM = 34; - - // Phone number not supported when call tracking enabled for country. - PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY = 35; - - // Cannot set call_conversion_action while call_conversion_tracking_enabled - // is set to true. - CONFLICTING_CALL_CONVERSION_SETTINGS = 36; - - // The type of the input extension feed item doesn't match the existing - // extension feed item. - EXTENSION_TYPE_MISMATCH = 37; - - // The oneof field extension i.e. subtype of extension feed item is - // required. - EXTENSION_SUBTYPE_REQUIRED = 38; - - // The referenced feed item is not mapped to a supported extension type. - EXTENSION_TYPE_UNSUPPORTED = 39; - - // Cannot operate on a Feed with more than one active FeedMapping. - CANNOT_OPERATE_ON_FEED_WITH_MULTIPLE_MAPPINGS = 40; - - // Cannot operate on a Feed that has key attributes. - CANNOT_OPERATE_ON_FEED_WITH_KEY_ATTRIBUTES = 41; - - // Input price is not in a valid format. - INVALID_PRICE_FORMAT = 42; - - // The promotion time is invalid. - PROMOTION_INVALID_TIME = 43; - - // This field has too many decimal places specified. - TOO_MANY_DECIMAL_PLACES_SPECIFIED = 44; - - // Concrete sub type of ExtensionFeedItem is required for this operation. - CONCRETE_EXTENSION_TYPE_REQUIRED = 45; - - // Feed item schedule end time must be after start time. - SCHEDULE_END_NOT_AFTER_START = 46; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/extension_setting_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/extension_setting_error.proto deleted file mode 100644 index 3d1b436d3..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/extension_setting_error.proto +++ /dev/null @@ -1,258 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "ExtensionSettingErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing extension setting validation errors. - -// Container for enum describing validation errors of extension settings. -message ExtensionSettingErrorEnum { - // Enum describing possible extension setting errors. - enum ExtensionSettingError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // A platform restriction was provided without input extensions or existing - // extensions. - EXTENSIONS_REQUIRED = 2; - - // The provided feed type does not correspond to the provided extensions. - FEED_TYPE_EXTENSION_TYPE_MISMATCH = 3; - - // The provided feed type cannot be used. - INVALID_FEED_TYPE = 4; - - // The provided feed type cannot be used at the customer level. - INVALID_FEED_TYPE_FOR_CUSTOMER_EXTENSION_SETTING = 5; - - // Cannot change a feed item field on a CREATE operation. - CANNOT_CHANGE_FEED_ITEM_ON_CREATE = 6; - - // Cannot update an extension that is not already in this setting. - CANNOT_UPDATE_NEWLY_CREATED_EXTENSION = 7; - - // There is no existing AdGroupExtensionSetting for this type. - NO_EXISTING_AD_GROUP_EXTENSION_SETTING_FOR_TYPE = 8; - - // There is no existing CampaignExtensionSetting for this type. - NO_EXISTING_CAMPAIGN_EXTENSION_SETTING_FOR_TYPE = 9; - - // There is no existing CustomerExtensionSetting for this type. - NO_EXISTING_CUSTOMER_EXTENSION_SETTING_FOR_TYPE = 10; - - // The AdGroupExtensionSetting already exists. UPDATE should be used to - // modify the existing AdGroupExtensionSetting. - AD_GROUP_EXTENSION_SETTING_ALREADY_EXISTS = 11; - - // The CampaignExtensionSetting already exists. UPDATE should be used to - // modify the existing CampaignExtensionSetting. - CAMPAIGN_EXTENSION_SETTING_ALREADY_EXISTS = 12; - - // The CustomerExtensionSetting already exists. UPDATE should be used to - // modify the existing CustomerExtensionSetting. - CUSTOMER_EXTENSION_SETTING_ALREADY_EXISTS = 13; - - // An active ad group feed already exists for this place holder type. - AD_GROUP_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE = 14; - - // An active campaign feed already exists for this place holder type. - CAMPAIGN_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE = 15; - - // An active customer feed already exists for this place holder type. - CUSTOMER_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE = 16; - - // Value is not within the accepted range. - VALUE_OUT_OF_RANGE = 17; - - // Cannot simultaneously set specified field with final urls. - CANNOT_SET_FIELD_WITH_FINAL_URLS = 18; - - // Must set field with final urls. - FINAL_URLS_NOT_SET = 19; - - // Phone number for a call extension is invalid. - INVALID_PHONE_NUMBER = 20; - - // Phone number for a call extension is not supported for the given country - // code. - PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY = 21; - - // A carrier specific number in short format is not allowed for call - // extensions. - CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED = 22; - - // Premium rate numbers are not allowed for call extensions. - PREMIUM_RATE_NUMBER_NOT_ALLOWED = 23; - - // Phone number type for a call extension is not allowed. - DISALLOWED_NUMBER_TYPE = 24; - - // Phone number for a call extension does not meet domestic format - // requirements. - INVALID_DOMESTIC_PHONE_NUMBER_FORMAT = 25; - - // Vanity phone numbers (i.e. those including letters) are not allowed for - // call extensions. - VANITY_PHONE_NUMBER_NOT_ALLOWED = 26; - - // Country code provided for a call extension is invalid. - INVALID_COUNTRY_CODE = 27; - - // Call conversion type id provided for a call extension is invalid. - INVALID_CALL_CONVERSION_TYPE_ID = 28; - - // For a call extension, the customer is not on the allow-list for call - // tracking. - CUSTOMER_NOT_WHITELISTED_FOR_CALLTRACKING = 29; - - // Call tracking is not supported for the given country for a call - // extension. - CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY = 30; - - // App id provided for an app extension is invalid. - INVALID_APP_ID = 31; - - // Quotation marks present in the review text for a review extension. - QUOTES_IN_REVIEW_EXTENSION_SNIPPET = 32; - - // Hyphen character present in the review text for a review extension. - HYPHENS_IN_REVIEW_EXTENSION_SNIPPET = 33; - - // A blocked review source name or url was provided for a review - // extension. - REVIEW_EXTENSION_SOURCE_NOT_ELIGIBLE = 34; - - // Review source name should not be found in the review text. - SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT = 35; - - // Field must be set. - MISSING_FIELD = 36; - - // Inconsistent currency codes. - INCONSISTENT_CURRENCY_CODES = 37; - - // Price extension cannot have duplicated headers. - PRICE_EXTENSION_HAS_DUPLICATED_HEADERS = 38; - - // Price item cannot have duplicated header and description. - PRICE_ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION = 39; - - // Price extension has too few items - PRICE_EXTENSION_HAS_TOO_FEW_ITEMS = 40; - - // Price extension has too many items - PRICE_EXTENSION_HAS_TOO_MANY_ITEMS = 41; - - // The input value is not currently supported. - UNSUPPORTED_VALUE = 42; - - // Unknown or unsupported device preference. - INVALID_DEVICE_PREFERENCE = 43; - - // Invalid feed item schedule end time (i.e., endHour = 24 and - // endMinute != 0). - INVALID_SCHEDULE_END = 45; - - // Date time zone does not match the account's time zone. - DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE = 47; - - // Overlapping feed item schedule times (e.g., 7-10AM and 8-11AM) are not - // allowed. - OVERLAPPING_SCHEDULES_NOT_ALLOWED = 48; - - // Feed item schedule end time must be after start time. - SCHEDULE_END_NOT_AFTER_START = 49; - - // There are too many feed item schedules per day. - TOO_MANY_SCHEDULES_PER_DAY = 50; - - // Cannot edit the same extension feed item more than once in the same - // request. - DUPLICATE_EXTENSION_FEED_ITEM_EDIT = 51; - - // Invalid structured snippet header. - INVALID_SNIPPETS_HEADER = 52; - - // Phone number with call tracking enabled is not supported for the - // specified country. - PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY = 53; - - // The targeted adgroup must belong to the targeted campaign. - CAMPAIGN_TARGETING_MISMATCH = 54; - - // The feed used by the ExtensionSetting is removed and cannot be operated - // on. Remove the ExtensionSetting to allow a new one to be created using - // an active feed. - CANNOT_OPERATE_ON_REMOVED_FEED = 55; - - // The ExtensionFeedItem type is required for this operation. - EXTENSION_TYPE_REQUIRED = 56; - - // The matching function that links the extension feed to the customer, - // campaign, or ad group is not compatible with the ExtensionSetting - // services. - INCOMPATIBLE_UNDERLYING_MATCHING_FUNCTION = 57; - - // Start date must be before end date. - START_DATE_AFTER_END_DATE = 58; - - // Input price is not in a valid format. - INVALID_PRICE_FORMAT = 59; - - // The promotion time is invalid. - PROMOTION_INVALID_TIME = 60; - - // Cannot set both percent discount and money discount fields. - PROMOTION_CANNOT_SET_PERCENT_DISCOUNT_AND_MONEY_DISCOUNT = 61; - - // Cannot set both promotion code and orders over amount fields. - PROMOTION_CANNOT_SET_PROMOTION_CODE_AND_ORDERS_OVER_AMOUNT = 62; - - // This field has too many decimal places specified. - TOO_MANY_DECIMAL_PLACES_SPECIFIED = 63; - - // The language code is not valid. - INVALID_LANGUAGE_CODE = 64; - - // The language is not supported. - UNSUPPORTED_LANGUAGE = 65; - - // Customer hasn't consented for call recording, which is required for - // adding/updating call extensions. Please see - // https://support.google.com/google-ads/answer/7412639. - CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED = 66; - - // The UPDATE operation does not specify any fields other than the resource - // name in the update mask. - EXTENSION_SETTING_UPDATE_IS_A_NOOP = 67; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/feed_attribute_reference_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/feed_attribute_reference_error.proto deleted file mode 100644 index 84d32435f..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/feed_attribute_reference_error.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "FeedAttributeReferenceErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing feed attribute reference errors. - -// Container for enum describing possible feed attribute reference errors. -message FeedAttributeReferenceErrorEnum { - // Enum describing possible feed attribute reference errors. - enum FeedAttributeReferenceError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // A feed referenced by ID has been removed. - CANNOT_REFERENCE_REMOVED_FEED = 2; - - // There is no enabled feed with the given name. - INVALID_FEED_NAME = 3; - - // There is no feed attribute in an enabled feed with the given name. - INVALID_FEED_ATTRIBUTE_NAME = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/feed_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/feed_error.proto deleted file mode 100644 index 0aa6ab86a..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/feed_error.proto +++ /dev/null @@ -1,111 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "FeedErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing feed errors. - -// Container for enum describing possible feed errors. -message FeedErrorEnum { - // Enum describing possible feed errors. - enum FeedError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The names of the FeedAttributes must be unique. - ATTRIBUTE_NAMES_NOT_UNIQUE = 2; - - // The attribute list must be an exact copy of the existing list if the - // attribute ID's are present. - ATTRIBUTES_DO_NOT_MATCH_EXISTING_ATTRIBUTES = 3; - - // Cannot specify USER origin for a system generated feed. - CANNOT_SPECIFY_USER_ORIGIN_FOR_SYSTEM_FEED = 4; - - // Cannot specify GOOGLE origin for a non-system generated feed. - CANNOT_SPECIFY_GOOGLE_ORIGIN_FOR_NON_SYSTEM_FEED = 5; - - // Cannot specify feed attributes for system feed. - CANNOT_SPECIFY_FEED_ATTRIBUTES_FOR_SYSTEM_FEED = 6; - - // Cannot update FeedAttributes on feed with origin GOOGLE. - CANNOT_UPDATE_FEED_ATTRIBUTES_WITH_ORIGIN_GOOGLE = 7; - - // The given ID refers to a removed Feed. Removed Feeds are immutable. - FEED_REMOVED = 8; - - // The origin of the feed is not valid for the client. - INVALID_ORIGIN_VALUE = 9; - - // A user can only create and modify feeds with USER origin. - FEED_ORIGIN_IS_NOT_USER = 10; - - // Invalid auth token for the given email. - INVALID_AUTH_TOKEN_FOR_EMAIL = 11; - - // Invalid email specified. - INVALID_EMAIL = 12; - - // Feed name matches that of another active Feed. - DUPLICATE_FEED_NAME = 13; - - // Name of feed is not allowed. - INVALID_FEED_NAME = 14; - - // Missing OAuthInfo. - MISSING_OAUTH_INFO = 15; - - // New FeedAttributes must not affect the unique key. - NEW_ATTRIBUTE_CANNOT_BE_PART_OF_UNIQUE_KEY = 16; - - // Too many FeedAttributes for a Feed. - TOO_MANY_ATTRIBUTES = 17; - - // The business account is not valid. - INVALID_BUSINESS_ACCOUNT = 18; - - // Business account cannot access Google My Business account. - BUSINESS_ACCOUNT_CANNOT_ACCESS_LOCATION_ACCOUNT = 19; - - // Invalid chain ID provided for affiliate location feed. - INVALID_AFFILIATE_CHAIN_ID = 20; - - // There is already a feed with the given system feed generation data. - DUPLICATE_SYSTEM_FEED = 21; - - // An error occurred accessing GMB account. - GMB_ACCESS_ERROR = 22; - - // A customer cannot have both LOCATION and AFFILIATE_LOCATION feeds. - CANNOT_HAVE_LOCATION_AND_AFFILIATE_LOCATION_FEEDS = 23; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/feed_item_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/feed_item_error.proto deleted file mode 100644 index 465c3ce32..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/feed_item_error.proto +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "FeedItemErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing feed item errors. - -// Container for enum describing possible feed item errors. -message FeedItemErrorEnum { - // Enum describing possible feed item errors. - enum FeedItemError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Cannot convert the feed attribute value from string to its real type. - CANNOT_CONVERT_ATTRIBUTE_VALUE_FROM_STRING = 2; - - // Cannot operate on removed feed item. - CANNOT_OPERATE_ON_REMOVED_FEED_ITEM = 3; - - // Date time zone does not match the account's time zone. - DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE = 4; - - // Feed item with the key attributes could not be found. - KEY_ATTRIBUTES_NOT_FOUND = 5; - - // Url feed attribute value is not valid. - INVALID_URL = 6; - - // Some key attributes are missing. - MISSING_KEY_ATTRIBUTES = 7; - - // Feed item has same key attributes as another feed item. - KEY_ATTRIBUTES_NOT_UNIQUE = 8; - - // Cannot modify key attributes on an existing feed item. - CANNOT_MODIFY_KEY_ATTRIBUTE_VALUE = 9; - - // The feed attribute value is too large. - SIZE_TOO_LARGE_FOR_MULTI_VALUE_ATTRIBUTE = 10; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/feed_item_target_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/feed_item_target_error.proto deleted file mode 100644 index 7f1d897af..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/feed_item_target_error.proto +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "FeedItemTargetErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing feed item target errors. - -// Container for enum describing possible feed item target errors. -message FeedItemTargetErrorEnum { - // Enum describing possible feed item target errors. - enum FeedItemTargetError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // On CREATE, the FeedItemTarget must have a populated field in the oneof - // target. - MUST_SET_TARGET_ONEOF_ON_CREATE = 2; - - // The specified feed item target already exists, so it cannot be added. - FEED_ITEM_TARGET_ALREADY_EXISTS = 3; - - // The schedules for a given feed item cannot overlap. - FEED_ITEM_SCHEDULES_CANNOT_OVERLAP = 4; - - // Too many targets of a given type were added for a single feed item. - TARGET_LIMIT_EXCEEDED_FOR_GIVEN_TYPE = 5; - - // Too many AdSchedules are enabled for the feed item for the given day. - TOO_MANY_SCHEDULES_PER_DAY = 6; - - // A feed item may either have an enabled campaign target or an enabled ad - // group target. - CANNOT_HAVE_ENABLED_CAMPAIGN_AND_ENABLED_AD_GROUP_TARGETS = 7; - - // Duplicate ad schedules aren't allowed. - DUPLICATE_AD_SCHEDULE = 8; - - // Duplicate keywords aren't allowed. - DUPLICATE_KEYWORD = 9; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/feed_item_validation_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/feed_item_validation_error.proto deleted file mode 100644 index 8ef4e1fab..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/feed_item_validation_error.proto +++ /dev/null @@ -1,353 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "FeedItemValidationErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing feed item validation errors. - -// Container for enum describing possible validation errors of a feed item. -message FeedItemValidationErrorEnum { - // The possible validation errors of a feed item. - enum FeedItemValidationError { - // No value has been specified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // String is too short. - STRING_TOO_SHORT = 2; - - // String is too long. - STRING_TOO_LONG = 3; - - // Value is not provided. - VALUE_NOT_SPECIFIED = 4; - - // Phone number format is invalid for region. - INVALID_DOMESTIC_PHONE_NUMBER_FORMAT = 5; - - // String does not represent a phone number. - INVALID_PHONE_NUMBER = 6; - - // Phone number format is not compatible with country code. - PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY = 7; - - // Premium rate number is not allowed. - PREMIUM_RATE_NUMBER_NOT_ALLOWED = 8; - - // Phone number type is not allowed. - DISALLOWED_NUMBER_TYPE = 9; - - // Specified value is outside of the valid range. - VALUE_OUT_OF_RANGE = 10; - - // Call tracking is not supported in the selected country. - CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY = 11; - - // Customer is not on the allow-list for call tracking. - CUSTOMER_NOT_WHITELISTED_FOR_CALLTRACKING = 12; - - // Country code is invalid. - INVALID_COUNTRY_CODE = 13; - - // The specified mobile app id is invalid. - INVALID_APP_ID = 14; - - // Some required field attributes are missing. - MISSING_ATTRIBUTES_FOR_FIELDS = 15; - - // Invalid email button type for email extension. - INVALID_TYPE_ID = 16; - - // Email address is invalid. - INVALID_EMAIL_ADDRESS = 17; - - // The HTTPS URL in email extension is invalid. - INVALID_HTTPS_URL = 18; - - // Delivery address is missing from email extension. - MISSING_DELIVERY_ADDRESS = 19; - - // FeedItem scheduling start date comes after end date. - START_DATE_AFTER_END_DATE = 20; - - // FeedItem scheduling start time is missing. - MISSING_FEED_ITEM_START_TIME = 21; - - // FeedItem scheduling end time is missing. - MISSING_FEED_ITEM_END_TIME = 22; - - // Cannot compute system attributes on a FeedItem that has no FeedItemId. - MISSING_FEED_ITEM_ID = 23; - - // Call extension vanity phone numbers are not supported. - VANITY_PHONE_NUMBER_NOT_ALLOWED = 24; - - // Invalid review text. - INVALID_REVIEW_EXTENSION_SNIPPET = 25; - - // Invalid format for numeric value in ad parameter. - INVALID_NUMBER_FORMAT = 26; - - // Invalid format for date value in ad parameter. - INVALID_DATE_FORMAT = 27; - - // Invalid format for price value in ad parameter. - INVALID_PRICE_FORMAT = 28; - - // Unrecognized type given for value in ad parameter. - UNKNOWN_PLACEHOLDER_FIELD = 29; - - // Enhanced sitelinks must have both description lines specified. - MISSING_ENHANCED_SITELINK_DESCRIPTION_LINE = 30; - - // Review source is ineligible. - REVIEW_EXTENSION_SOURCE_INELIGIBLE = 31; - - // Review text cannot contain hyphens or dashes. - HYPHENS_IN_REVIEW_EXTENSION_SNIPPET = 32; - - // Review text cannot contain double quote characters. - DOUBLE_QUOTES_IN_REVIEW_EXTENSION_SNIPPET = 33; - - // Review text cannot contain quote characters. - QUOTES_IN_REVIEW_EXTENSION_SNIPPET = 34; - - // Parameters are encoded in the wrong format. - INVALID_FORM_ENCODED_PARAMS = 35; - - // URL parameter name must contain only letters, numbers, underscores, and - // dashes. - INVALID_URL_PARAMETER_NAME = 36; - - // Cannot find address location. - NO_GEOCODING_RESULT = 37; - - // Review extension text has source name. - SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT = 38; - - // Some phone numbers can be shorter than usual. Some of these short numbers - // are carrier-specific, and we disallow those in ad extensions because they - // will not be available to all users. - CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED = 39; - - // Triggered when a request references a placeholder field id that does not - // exist. - INVALID_PLACEHOLDER_FIELD_ID = 40; - - // URL contains invalid ValueTrack tags or format. - INVALID_URL_TAG = 41; - - // Provided list exceeds acceptable size. - LIST_TOO_LONG = 42; - - // Certain combinations of attributes aren't allowed to be specified in the - // same feed item. - INVALID_ATTRIBUTES_COMBINATION = 43; - - // An attribute has the same value repeatedly. - DUPLICATE_VALUES = 44; - - // Advertisers can link a conversion action with a phone number to indicate - // that sufficiently long calls forwarded to that phone number should be - // counted as conversions of the specified type. This is an error message - // indicating that the conversion action specified is invalid (e.g., the - // conversion action does not exist within the appropriate Google Ads - // account, or it is a type of conversion not appropriate to phone call - // conversions). - INVALID_CALL_CONVERSION_ACTION_ID = 45; - - // Tracking template requires final url to be set. - CANNOT_SET_WITHOUT_FINAL_URLS = 46; - - // An app id was provided that doesn't exist in the given app store. - APP_ID_DOESNT_EXIST_IN_APP_STORE = 47; - - // Invalid U2 final url. - INVALID_FINAL_URL = 48; - - // Invalid U2 tracking url. - INVALID_TRACKING_URL = 49; - - // Final URL should start from App download URL. - INVALID_FINAL_URL_FOR_APP_DOWNLOAD_URL = 50; - - // List provided is too short. - LIST_TOO_SHORT = 51; - - // User Action field has invalid value. - INVALID_USER_ACTION = 52; - - // Type field has invalid value. - INVALID_TYPE_NAME = 53; - - // Change status for event is invalid. - INVALID_EVENT_CHANGE_STATUS = 54; - - // The header of a structured snippets extension is not one of the valid - // headers. - INVALID_SNIPPETS_HEADER = 55; - - // Android app link is not formatted correctly - INVALID_ANDROID_APP_LINK = 56; - - // Phone number incompatible with call tracking for country. - NUMBER_TYPE_WITH_CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY = 57; - - // The input is identical to a reserved keyword - RESERVED_KEYWORD_OTHER = 58; - - // Each option label in the message extension must be unique. - DUPLICATE_OPTION_LABELS = 59; - - // Each option prefill in the message extension must be unique. - DUPLICATE_OPTION_PREFILLS = 60; - - // In message extensions, the number of optional labels and optional - // prefills must be the same. - UNEQUAL_LIST_LENGTHS = 61; - - // All currency codes in an ad extension must be the same. - INCONSISTENT_CURRENCY_CODES = 62; - - // Headers in price extension are not unique. - PRICE_EXTENSION_HAS_DUPLICATED_HEADERS = 63; - - // Header and description in an item are the same. - ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION = 64; - - // Price extension has too few items. - PRICE_EXTENSION_HAS_TOO_FEW_ITEMS = 65; - - // The given value is not supported. - UNSUPPORTED_VALUE = 66; - - // Invalid final mobile url. - INVALID_FINAL_MOBILE_URL = 67; - - // The given string value of Label contains invalid characters - INVALID_KEYWORDLESS_AD_RULE_LABEL = 68; - - // The given URL contains value track parameters. - VALUE_TRACK_PARAMETER_NOT_SUPPORTED = 69; - - // The given value is not supported in the selected language of an - // extension. - UNSUPPORTED_VALUE_IN_SELECTED_LANGUAGE = 70; - - // The iOS app link is not formatted correctly. - INVALID_IOS_APP_LINK = 71; - - // iOS app link or iOS app store id is missing. - MISSING_IOS_APP_LINK_OR_IOS_APP_STORE_ID = 72; - - // Promotion time is invalid. - PROMOTION_INVALID_TIME = 73; - - // Both the percent off and money amount off fields are set. - PROMOTION_CANNOT_SET_PERCENT_OFF_AND_MONEY_AMOUNT_OFF = 74; - - // Both the promotion code and orders over amount fields are set. - PROMOTION_CANNOT_SET_PROMOTION_CODE_AND_ORDERS_OVER_AMOUNT = 75; - - // Too many decimal places are specified. - TOO_MANY_DECIMAL_PLACES_SPECIFIED = 76; - - // Ad Customizers are present and not allowed. - AD_CUSTOMIZERS_NOT_ALLOWED = 77; - - // Language code is not valid. - INVALID_LANGUAGE_CODE = 78; - - // Language is not supported. - UNSUPPORTED_LANGUAGE = 79; - - // IF Function is present and not allowed. - IF_FUNCTION_NOT_ALLOWED = 80; - - // Final url suffix is not valid. - INVALID_FINAL_URL_SUFFIX = 81; - - // Final url suffix contains an invalid tag. - INVALID_TAG_IN_FINAL_URL_SUFFIX = 82; - - // Final url suffix is formatted incorrectly. - INVALID_FINAL_URL_SUFFIX_FORMAT = 83; - - // Consent for call recording, which is required for the use of call - // extensions, was not provided by the advertiser. Please see - // https://support.google.com/google-ads/answer/7412639. - CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED = 84; - - // Multiple message delivery options are set. - ONLY_ONE_DELIVERY_OPTION_IS_ALLOWED = 85; - - // No message delivery option is set. - NO_DELIVERY_OPTION_IS_SET = 86; - - // String value of conversion reporting state field is not valid. - INVALID_CONVERSION_REPORTING_STATE = 87; - - // Image size is not right. - IMAGE_SIZE_WRONG = 88; - - // Email delivery is not supported in the country specified in the country - // code field. - EMAIL_DELIVERY_NOT_AVAILABLE_IN_COUNTRY = 89; - - // Auto reply is not supported in the country specified in the country code - // field. - AUTO_REPLY_NOT_AVAILABLE_IN_COUNTRY = 90; - - // Invalid value specified for latitude. - INVALID_LATITUDE_VALUE = 91; - - // Invalid value specified for longitude. - INVALID_LONGITUDE_VALUE = 92; - - // Too many label fields provided. - TOO_MANY_LABELS = 93; - - // Invalid image url. - INVALID_IMAGE_URL = 94; - - // Latitude value is missing. - MISSING_LATITUDE_VALUE = 95; - - // Longitude value is missing. - MISSING_LONGITUDE_VALUE = 96; - - // Unable to find address. - ADDRESS_NOT_FOUND = 97; - - // Cannot target provided address. - ADDRESS_NOT_TARGETABLE = 98; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/feed_mapping_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/feed_mapping_error.proto deleted file mode 100644 index 284be5e12..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/feed_mapping_error.proto +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "FeedMappingErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing feed item errors. - -// Container for enum describing possible feed item errors. -message FeedMappingErrorEnum { - // Enum describing possible feed item errors. - enum FeedMappingError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The given placeholder field does not exist. - INVALID_PLACEHOLDER_FIELD = 2; - - // The given criterion field does not exist. - INVALID_CRITERION_FIELD = 3; - - // The given placeholder type does not exist. - INVALID_PLACEHOLDER_TYPE = 4; - - // The given criterion type does not exist. - INVALID_CRITERION_TYPE = 5; - - // A feed mapping must contain at least one attribute field mapping. - NO_ATTRIBUTE_FIELD_MAPPINGS = 7; - - // The type of the feed attribute referenced in the attribute field mapping - // must match the type of the placeholder field. - FEED_ATTRIBUTE_TYPE_MISMATCH = 8; - - // A feed mapping for a system generated feed cannot be operated on. - CANNOT_OPERATE_ON_MAPPINGS_FOR_SYSTEM_GENERATED_FEED = 9; - - // Only one feed mapping for a placeholder type is allowed per feed or - // customer (depending on the placeholder type). - MULTIPLE_MAPPINGS_FOR_PLACEHOLDER_TYPE = 10; - - // Only one feed mapping for a criterion type is allowed per customer. - MULTIPLE_MAPPINGS_FOR_CRITERION_TYPE = 11; - - // Only one feed attribute mapping for a placeholder field is allowed - // (depending on the placeholder type). - MULTIPLE_MAPPINGS_FOR_PLACEHOLDER_FIELD = 12; - - // Only one feed attribute mapping for a criterion field is allowed - // (depending on the criterion type). - MULTIPLE_MAPPINGS_FOR_CRITERION_FIELD = 13; - - // This feed mapping may not contain any explicit attribute field mappings. - UNEXPECTED_ATTRIBUTE_FIELD_MAPPINGS = 14; - - // Location placeholder feed mappings can only be created for Places feeds. - LOCATION_PLACEHOLDER_ONLY_FOR_PLACES_FEEDS = 15; - - // Mappings for typed feeds cannot be modified. - CANNOT_MODIFY_MAPPINGS_FOR_TYPED_FEED = 16; - - // The given placeholder type can only be mapped to system generated feeds. - INVALID_PLACEHOLDER_TYPE_FOR_NON_SYSTEM_GENERATED_FEED = 17; - - // The given placeholder type cannot be mapped to a system generated feed - // with the given type. - INVALID_PLACEHOLDER_TYPE_FOR_SYSTEM_GENERATED_FEED_TYPE = 18; - - // The "field" oneof was not set in an AttributeFieldMapping. - ATTRIBUTE_FIELD_MAPPING_MISSING_FIELD = 19; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/field_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/field_error.proto deleted file mode 100644 index 9fd4688d8..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/field_error.proto +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "FieldErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing field errors. - -// Container for enum describing possible field errors. -message FieldErrorEnum { - // Enum describing possible field errors. - enum FieldError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The required field was not present. - REQUIRED = 2; - - // The field attempted to be mutated is immutable. - IMMUTABLE_FIELD = 3; - - // The field's value is invalid. - INVALID_VALUE = 4; - - // The field cannot be set. - VALUE_MUST_BE_UNSET = 5; - - // The required repeated field was empty. - REQUIRED_NONEMPTY_LIST = 6; - - // The field cannot be cleared. - FIELD_CANNOT_BE_CLEARED = 7; - - // The field's value is on a deny-list for this field. - BLACKLISTED_VALUE = 8; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/field_mask_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/field_mask_error.proto deleted file mode 100644 index 6f2cdc597..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/field_mask_error.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "FieldMaskErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing field mask errors. - -// Container for enum describing possible field mask errors. -message FieldMaskErrorEnum { - // Enum describing possible field mask errors. - enum FieldMaskError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The field mask must be provided for update operations. - FIELD_MASK_MISSING = 5; - - // The field mask must be empty for create and remove operations. - FIELD_MASK_NOT_ALLOWED = 4; - - // The field mask contained an invalid field. - FIELD_NOT_FOUND = 2; - - // The field mask updated a field with subfields. Fields with subfields may - // be cleared, but not updated. To fix this, the field mask should select - // all the subfields of the invalid field. - FIELD_HAS_SUBFIELDS = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/function_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/function_error.proto deleted file mode 100644 index 118f0c071..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/function_error.proto +++ /dev/null @@ -1,93 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "FunctionErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing function errors. - -// Container for enum describing possible function errors. -message FunctionErrorEnum { - // Enum describing possible function errors. - enum FunctionError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The format of the function is not recognized as a supported function - // format. - INVALID_FUNCTION_FORMAT = 2; - - // Operand data types do not match. - DATA_TYPE_MISMATCH = 3; - - // The operands cannot be used together in a conjunction. - INVALID_CONJUNCTION_OPERANDS = 4; - - // Invalid numer of Operands. - INVALID_NUMBER_OF_OPERANDS = 5; - - // Operand Type not supported. - INVALID_OPERAND_TYPE = 6; - - // Operator not supported. - INVALID_OPERATOR = 7; - - // Request context type not supported. - INVALID_REQUEST_CONTEXT_TYPE = 8; - - // The matching function is not allowed for call placeholders - INVALID_FUNCTION_FOR_CALL_PLACEHOLDER = 9; - - // The matching function is not allowed for the specified placeholder - INVALID_FUNCTION_FOR_PLACEHOLDER = 10; - - // Invalid operand. - INVALID_OPERAND = 11; - - // Missing value for the constant operand. - MISSING_CONSTANT_OPERAND_VALUE = 12; - - // The value of the constant operand is invalid. - INVALID_CONSTANT_OPERAND_VALUE = 13; - - // Invalid function nesting. - INVALID_NESTING = 14; - - // The Feed ID was different from another Feed ID in the same function. - MULTIPLE_FEED_IDS_NOT_SUPPORTED = 15; - - // The matching function is invalid for use with a feed with a fixed schema. - INVALID_FUNCTION_FOR_FEED_WITH_FIXED_SCHEMA = 16; - - // Invalid attribute name. - INVALID_ATTRIBUTE_NAME = 17; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/function_parsing_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/function_parsing_error.proto deleted file mode 100644 index a7c634f5b..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/function_parsing_error.proto +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "FunctionParsingErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing function parsing errors. - -// Container for enum describing possible function parsing errors. -message FunctionParsingErrorEnum { - // Enum describing possible function parsing errors. - enum FunctionParsingError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Unexpected end of function string. - NO_MORE_INPUT = 2; - - // Could not find an expected character. - EXPECTED_CHARACTER = 3; - - // Unexpected separator character. - UNEXPECTED_SEPARATOR = 4; - - // Unmatched left bracket or parenthesis. - UNMATCHED_LEFT_BRACKET = 5; - - // Unmatched right bracket or parenthesis. - UNMATCHED_RIGHT_BRACKET = 6; - - // Functions are nested too deeply. - TOO_MANY_NESTED_FUNCTIONS = 7; - - // Missing right-hand-side operand. - MISSING_RIGHT_HAND_OPERAND = 8; - - // Invalid operator/function name. - INVALID_OPERATOR_NAME = 9; - - // Feed attribute operand's argument is not an integer. - FEED_ATTRIBUTE_OPERAND_ARGUMENT_NOT_INTEGER = 10; - - // Missing function operands. - NO_OPERANDS = 11; - - // Function had too many operands. - TOO_MANY_OPERANDS = 12; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/geo_target_constant_suggestion_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/geo_target_constant_suggestion_error.proto deleted file mode 100644 index 039dd5f98..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/geo_target_constant_suggestion_error.proto +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "GeoTargetConstantSuggestionErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Container for enum describing possible geo target constant suggestion errors. -message GeoTargetConstantSuggestionErrorEnum { - // Enum describing possible geo target constant suggestion errors. - enum GeoTargetConstantSuggestionError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // A location name cannot be greater than 300 characters. - LOCATION_NAME_SIZE_LIMIT = 2; - - // At most 25 location names can be specified in a SuggestGeoTargetConstants - // method. - LOCATION_NAME_LIMIT = 3; - - // The country code is invalid. - INVALID_COUNTRY_CODE = 4; - - // Geo target constant resource names or location names must be provided in - // the request. - REQUEST_PARAMETERS_UNSET = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/header_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/header_error.proto deleted file mode 100644 index dfbbe4544..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/header_error.proto +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "HeaderErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing header errors. - -// Container for enum describing possible header errors. -message HeaderErrorEnum { - // Enum describing possible header errors. - enum HeaderError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The login customer id could not be validated. - INVALID_LOGIN_CUSTOMER_ID = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/id_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/id_error.proto deleted file mode 100644 index d37b0fa9c..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/id_error.proto +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "IdErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing id errors. - -// Container for enum describing possible id errors. -message IdErrorEnum { - // Enum describing possible id errors. - enum IdError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Id not found - NOT_FOUND = 2; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/image_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/image_error.proto deleted file mode 100644 index e226d6b2a..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/image_error.proto +++ /dev/null @@ -1,161 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "ImageErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing image errors. - -// Container for enum describing possible image errors. -message ImageErrorEnum { - // Enum describing possible image errors. - enum ImageError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The image is not valid. - INVALID_IMAGE = 2; - - // The image could not be stored. - STORAGE_ERROR = 3; - - // There was a problem with the request. - BAD_REQUEST = 4; - - // The image is not of legal dimensions. - UNEXPECTED_SIZE = 5; - - // Animated image are not permitted. - ANIMATED_NOT_ALLOWED = 6; - - // Animation is too long. - ANIMATION_TOO_LONG = 7; - - // There was an error on the server. - SERVER_ERROR = 8; - - // Image cannot be in CMYK color format. - CMYK_JPEG_NOT_ALLOWED = 9; - - // Flash images are not permitted. - FLASH_NOT_ALLOWED = 10; - - // Flash images must support clickTag. - FLASH_WITHOUT_CLICKTAG = 11; - - // A flash error has occurred after fixing the click tag. - FLASH_ERROR_AFTER_FIXING_CLICK_TAG = 12; - - // Unacceptable visual effects. - ANIMATED_VISUAL_EFFECT = 13; - - // There was a problem with the flash image. - FLASH_ERROR = 14; - - // Incorrect image layout. - LAYOUT_PROBLEM = 15; - - // There was a problem reading the image file. - PROBLEM_READING_IMAGE_FILE = 16; - - // There was an error storing the image. - ERROR_STORING_IMAGE = 17; - - // The aspect ratio of the image is not allowed. - ASPECT_RATIO_NOT_ALLOWED = 18; - - // Flash cannot have network objects. - FLASH_HAS_NETWORK_OBJECTS = 19; - - // Flash cannot have network methods. - FLASH_HAS_NETWORK_METHODS = 20; - - // Flash cannot have a Url. - FLASH_HAS_URL = 21; - - // Flash cannot use mouse tracking. - FLASH_HAS_MOUSE_TRACKING = 22; - - // Flash cannot have a random number. - FLASH_HAS_RANDOM_NUM = 23; - - // Ad click target cannot be '_self'. - FLASH_SELF_TARGETS = 24; - - // GetUrl method should only use '_blank'. - FLASH_BAD_GETURL_TARGET = 25; - - // Flash version is not supported. - FLASH_VERSION_NOT_SUPPORTED = 26; - - // Flash movies need to have hard coded click URL or clickTAG - FLASH_WITHOUT_HARD_CODED_CLICK_URL = 27; - - // Uploaded flash file is corrupted. - INVALID_FLASH_FILE = 28; - - // Uploaded flash file can be parsed, but the click tag can not be fixed - // properly. - FAILED_TO_FIX_CLICK_TAG_IN_FLASH = 29; - - // Flash movie accesses network resources - FLASH_ACCESSES_NETWORK_RESOURCES = 30; - - // Flash movie attempts to call external javascript code - FLASH_EXTERNAL_JS_CALL = 31; - - // Flash movie attempts to call flash system commands - FLASH_EXTERNAL_FS_CALL = 32; - - // Image file is too large. - FILE_TOO_LARGE = 33; - - // Image data is too large. - IMAGE_DATA_TOO_LARGE = 34; - - // Error while processing the image. - IMAGE_PROCESSING_ERROR = 35; - - // Image is too small. - IMAGE_TOO_SMALL = 36; - - // Input was invalid. - INVALID_INPUT = 37; - - // There was a problem reading the image file. - PROBLEM_READING_FILE = 38; - - // Image constraints are violated, but details like ASPECT_RATIO_NOT_ALLOWED - // can't be provided. This happens when asset spec contains more than one - // constraint and different criteria of different constraints are violated. - IMAGE_CONSTRAINTS_VIOLATED = 39; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/internal_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/internal_error.proto deleted file mode 100644 index 79b760108..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/internal_error.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "InternalErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing internal errors. - -// Container for enum describing possible internal errors. -message InternalErrorEnum { - // Enum describing possible internal errors. - enum InternalError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Google Ads API encountered unexpected internal error. - INTERNAL_ERROR = 2; - - // The intended error code doesn't exist in specified API version. It will - // be released in a future API version. - ERROR_CODE_NOT_PUBLISHED = 3; - - // Google Ads API encountered an unexpected transient error. The user - // should retry their request in these cases. - TRANSIENT_ERROR = 4; - - // The request took longer than a deadline. - DEADLINE_EXCEEDED = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/invoice_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/invoice_error.proto deleted file mode 100644 index 134843d47..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/invoice_error.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "InvoiceErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing invoice errors. - -// Container for enum describing possible invoice errors. -message InvoiceErrorEnum { - // Enum describing possible invoice errors. - enum InvoiceError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Cannot request invoices issued before 2019-01-01. - YEAR_MONTH_TOO_OLD = 2; - - // Cannot request invoices for customer who doesn't receive invoices. - NOT_INVOICED_CUSTOMER = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/keyword_plan_ad_group_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/keyword_plan_ad_group_error.proto deleted file mode 100644 index b7989d04b..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/keyword_plan_ad_group_error.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "KeywordPlanAdGroupErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing errors from applying a keyword plan ad group. - -// Container for enum describing possible errors from applying a keyword plan -// ad group. -message KeywordPlanAdGroupErrorEnum { - // Enum describing possible errors from applying a keyword plan ad group. - enum KeywordPlanAdGroupError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The keyword plan ad group name is missing, empty, longer than allowed - // limit or contains invalid chars. - INVALID_NAME = 2; - - // The keyword plan ad group name is duplicate to an existing keyword plan - // AdGroup name or other keyword plan AdGroup name in the request. - DUPLICATE_NAME = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/keyword_plan_campaign_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/keyword_plan_campaign_error.proto deleted file mode 100644 index 4c7e9e0ec..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/keyword_plan_campaign_error.proto +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "KeywordPlanCampaignErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing errors from applying a keyword plan campaign. - -// Container for enum describing possible errors from applying a keyword plan -// campaign. -message KeywordPlanCampaignErrorEnum { - // Enum describing possible errors from applying a keyword plan campaign. - enum KeywordPlanCampaignError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // A keyword plan campaign name is missing, empty, longer than allowed limit - // or contains invalid chars. - INVALID_NAME = 2; - - // A keyword plan campaign contains one or more untargetable languages. - INVALID_LANGUAGES = 3; - - // A keyword plan campaign contains one or more invalid geo targets. - INVALID_GEOS = 4; - - // The keyword plan campaign name is duplicate to an existing keyword plan - // campaign name or other keyword plan campaign name in the request. - DUPLICATE_NAME = 5; - - // The number of geo targets in the keyword plan campaign exceeds limits. - MAX_GEOS_EXCEEDED = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/keyword_plan_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/keyword_plan_error.proto deleted file mode 100644 index 42c6ba91b..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/keyword_plan_error.proto +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "KeywordPlanErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing errors from applying keyword plan resources (keyword -// plan, keyword plan campaign, keyword plan ad group or keyword plan keyword) -// or KeywordPlanService RPC. - -// Container for enum describing possible errors from applying a keyword plan -// resource (keyword plan, keyword plan campaign, keyword plan ad group or -// keyword plan keyword) or KeywordPlanService RPC. -message KeywordPlanErrorEnum { - // Enum describing possible errors from applying a keyword plan. - enum KeywordPlanError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The plan's bid multiplier value is outside the valid range. - BID_MULTIPLIER_OUT_OF_RANGE = 2; - - // The plan's bid value is too high. - BID_TOO_HIGH = 3; - - // The plan's bid value is too low. - BID_TOO_LOW = 4; - - // The plan's cpc bid is not a multiple of the minimum billable unit. - BID_TOO_MANY_FRACTIONAL_DIGITS = 5; - - // The plan's daily budget value is too low. - DAILY_BUDGET_TOO_LOW = 6; - - // The plan's daily budget is not a multiple of the minimum billable unit. - DAILY_BUDGET_TOO_MANY_FRACTIONAL_DIGITS = 7; - - // The input has an invalid value. - INVALID_VALUE = 8; - - // The plan has no keyword. - KEYWORD_PLAN_HAS_NO_KEYWORDS = 9; - - // The plan is not enabled and API cannot provide mutation, forecast or - // stats. - KEYWORD_PLAN_NOT_ENABLED = 10; - - // The requested plan cannot be found for providing forecast or stats. - KEYWORD_PLAN_NOT_FOUND = 11; - - // The plan is missing a cpc bid. - MISSING_BID = 13; - - // The plan is missing required forecast_period field. - MISSING_FORECAST_PERIOD = 14; - - // The plan's forecast_period has invalid forecast date range. - INVALID_FORECAST_DATE_RANGE = 15; - - // The plan's name is invalid. - INVALID_NAME = 16; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/keyword_plan_idea_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/keyword_plan_idea_error.proto deleted file mode 100644 index fd4eaf45e..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/keyword_plan_idea_error.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "KeywordPlanIdeaErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing errors from KeywordPlanIdeaService. - -// Container for enum describing possible errors from KeywordPlanIdeaService. -message KeywordPlanIdeaErrorEnum { - // Enum describing possible errors from KeywordPlanIdeaService. - enum KeywordPlanIdeaError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Error when crawling the input URL. - URL_CRAWL_ERROR = 2; - - // The input has an invalid value. - INVALID_VALUE = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/keyword_plan_keyword_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/keyword_plan_keyword_error.proto deleted file mode 100644 index bada6547a..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/keyword_plan_keyword_error.proto +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "KeywordPlanKeywordErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing errors from applying a keyword plan keyword or keyword -// plan negative keyword. - -// Container for enum describing possible errors from applying a keyword or a -// negative keyword from a keyword plan. -message KeywordPlanKeywordErrorEnum { - // Enum describing possible errors from applying a keyword plan keyword. - enum KeywordPlanKeywordError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // A keyword or negative keyword has invalid match type. - INVALID_KEYWORD_MATCH_TYPE = 2; - - // A keyword or negative keyword with same text and match type already - // exists. - DUPLICATE_KEYWORD = 3; - - // Keyword or negative keyword text exceeds the allowed limit. - KEYWORD_TEXT_TOO_LONG = 4; - - // Keyword or negative keyword text has invalid characters or symbols. - KEYWORD_HAS_INVALID_CHARS = 5; - - // Keyword or negative keyword text has too many words. - KEYWORD_HAS_TOO_MANY_WORDS = 6; - - // Keyword or negative keyword has invalid text. - INVALID_KEYWORD_TEXT = 7; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/keyword_plan_negative_keyword_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/keyword_plan_negative_keyword_error.proto deleted file mode 100644 index 36a4e5d88..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/keyword_plan_negative_keyword_error.proto +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "KeywordPlanNegativeKeywordErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing errors from applying a keyword plan negative keyword. - -// Container for enum describing possible errors from applying a keyword plan -// negative keyword. -message KeywordPlanNegativeKeywordErrorEnum { - // Enum describing possible errors from applying a keyword plan negative - // keyword. - enum KeywordPlanNegativeKeywordError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/label_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/label_error.proto deleted file mode 100644 index 7b048b538..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/label_error.proto +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "LabelErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing label errors. - -// Container for enum describing possible label errors. -message LabelErrorEnum { - // Enum describing possible label errors. - enum LabelError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // An inactive label cannot be applied. - CANNOT_APPLY_INACTIVE_LABEL = 2; - - // A label cannot be applied to a disabled ad group criterion. - CANNOT_APPLY_LABEL_TO_DISABLED_AD_GROUP_CRITERION = 3; - - // A label cannot be applied to a negative ad group criterion. - CANNOT_APPLY_LABEL_TO_NEGATIVE_AD_GROUP_CRITERION = 4; - - // Cannot apply more than 50 labels per resource. - EXCEEDED_LABEL_LIMIT_PER_TYPE = 5; - - // Labels from a manager account cannot be applied to campaign, ad group, - // ad group ad, or ad group criterion resources. - INVALID_RESOURCE_FOR_MANAGER_LABEL = 6; - - // Label names must be unique. - DUPLICATE_NAME = 7; - - // Label names cannot be empty. - INVALID_LABEL_NAME = 8; - - // Labels cannot be applied to a draft. - CANNOT_ATTACH_LABEL_TO_DRAFT = 9; - - // Labels not from a manager account cannot be applied to the customer - // resource. - CANNOT_ATTACH_NON_MANAGER_LABEL_TO_CUSTOMER = 10; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/language_code_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/language_code_error.proto deleted file mode 100644 index c6bc8fd16..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/language_code_error.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "LanguageCodeErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing language code errors. - -// Container for enum describing language code errors. -message LanguageCodeErrorEnum { - // Enum describing language code errors. - enum LanguageCodeError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The input language code is not recognized. - LANGUAGE_CODE_NOT_FOUND = 2; - - // The language is not allowed to use. - INVALID_LANGUAGE_CODE = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/list_operation_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/list_operation_error.proto deleted file mode 100644 index 9407a0292..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/list_operation_error.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "ListOperationErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing list operation errors. - -// Container for enum describing possible list operation errors. -message ListOperationErrorEnum { - // Enum describing possible list operation errors. - enum ListOperationError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Field required in value is missing. - REQUIRED_FIELD_MISSING = 7; - - // Duplicate or identical value is sent in multiple list operations. - DUPLICATE_VALUES = 8; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/manager_link_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/manager_link_error.proto deleted file mode 100644 index 09ff2cd0e..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/manager_link_error.proto +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "ManagerLinkErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing ManagerLink errors. - -// Container for enum describing possible ManagerLink errors. -message ManagerLinkErrorEnum { - // Enum describing possible ManagerLink errors. - enum ManagerLinkError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The manager and client have incompatible account types. - ACCOUNTS_NOT_COMPATIBLE_FOR_LINKING = 2; - - // Client is already linked to too many managers. - TOO_MANY_MANAGERS = 3; - - // Manager has too many pending invitations. - TOO_MANY_INVITES = 4; - - // Client is already invited by this manager. - ALREADY_INVITED_BY_THIS_MANAGER = 5; - - // The client is already managed by this manager. - ALREADY_MANAGED_BY_THIS_MANAGER = 6; - - // Client is already managed in hierarchy. - ALREADY_MANAGED_IN_HIERARCHY = 7; - - // Manger and sub-manager to be linked have duplicate client. - DUPLICATE_CHILD_FOUND = 8; - - // Client has no active user that can access the client account. - CLIENT_HAS_NO_ADMIN_USER = 9; - - // Adding this link would exceed the maximum hierarchy depth. - MAX_DEPTH_EXCEEDED = 10; - - // Adding this link will create a cycle. - CYCLE_NOT_ALLOWED = 11; - - // Manager account has the maximum number of linked clients. - TOO_MANY_ACCOUNTS = 12; - - // Parent manager account has the maximum number of linked clients. - TOO_MANY_ACCOUNTS_AT_MANAGER = 13; - - // The account is not authorized owner. - NON_OWNER_USER_CANNOT_MODIFY_LINK = 14; - - // Your manager account is suspended, and you are no longer allowed to link - // to clients. - SUSPENDED_ACCOUNT_CANNOT_ADD_CLIENTS = 15; - - // You are not allowed to move a client to a manager that is not under your - // current hierarchy. - CLIENT_OUTSIDE_TREE = 16; - - // The changed status for mutate link is invalid. - INVALID_STATUS_CHANGE = 17; - - // The change for mutate link is invalid. - INVALID_CHANGE = 18; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/media_bundle_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/media_bundle_error.proto deleted file mode 100644 index 400716509..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/media_bundle_error.proto +++ /dev/null @@ -1,110 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "MediaBundleErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing media bundle errors. - -// Container for enum describing possible media bundle errors. -message MediaBundleErrorEnum { - // Enum describing possible media bundle errors. - enum MediaBundleError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // There was a problem with the request. - BAD_REQUEST = 3; - - // HTML5 ads using DoubleClick Studio created ZIP files are not supported. - DOUBLECLICK_BUNDLE_NOT_ALLOWED = 4; - - // Cannot reference URL external to the media bundle. - EXTERNAL_URL_NOT_ALLOWED = 5; - - // Media bundle file is too large. - FILE_TOO_LARGE = 6; - - // ZIP file from Google Web Designer is not published. - GOOGLE_WEB_DESIGNER_ZIP_FILE_NOT_PUBLISHED = 7; - - // Input was invalid. - INVALID_INPUT = 8; - - // There was a problem with the media bundle. - INVALID_MEDIA_BUNDLE = 9; - - // There was a problem with one or more of the media bundle entries. - INVALID_MEDIA_BUNDLE_ENTRY = 10; - - // The media bundle contains a file with an unknown mime type - INVALID_MIME_TYPE = 11; - - // The media bundle contain an invalid asset path. - INVALID_PATH = 12; - - // HTML5 ad is trying to reference an asset not in .ZIP file - INVALID_URL_REFERENCE = 13; - - // Media data is too large. - MEDIA_DATA_TOO_LARGE = 14; - - // The media bundle contains no primary entry. - MISSING_PRIMARY_MEDIA_BUNDLE_ENTRY = 15; - - // There was an error on the server. - SERVER_ERROR = 16; - - // The image could not be stored. - STORAGE_ERROR = 17; - - // Media bundle created with the Swiffy tool is not allowed. - SWIFFY_BUNDLE_NOT_ALLOWED = 18; - - // The media bundle contains too many files. - TOO_MANY_FILES = 19; - - // The media bundle is not of legal dimensions. - UNEXPECTED_SIZE = 20; - - // Google Web Designer not created for "Google Ads" environment. - UNSUPPORTED_GOOGLE_WEB_DESIGNER_ENVIRONMENT = 21; - - // Unsupported HTML5 feature in HTML5 asset. - UNSUPPORTED_HTML5_FEATURE = 22; - - // URL in HTML5 entry is not ssl compliant. - URL_IN_MEDIA_BUNDLE_NOT_SSL_COMPLIANT = 23; - - // Custom exits not allowed in HTML5 entry. - CUSTOM_EXIT_NOT_ALLOWED = 24; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/media_file_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/media_file_error.proto deleted file mode 100644 index 1f6ec768b..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/media_file_error.proto +++ /dev/null @@ -1,113 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "MediaFileErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing media file errors. - -// Container for enum describing possible media file errors. -message MediaFileErrorEnum { - // Enum describing possible media file errors. - enum MediaFileError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Cannot create a standard icon type. - CANNOT_CREATE_STANDARD_ICON = 2; - - // May only select Standard Icons alone. - CANNOT_SELECT_STANDARD_ICON_WITH_OTHER_TYPES = 3; - - // Image contains both a media file ID and data. - CANNOT_SPECIFY_MEDIA_FILE_ID_AND_DATA = 4; - - // A media file with given type and reference ID already exists. - DUPLICATE_MEDIA = 5; - - // A required field was not specified or is an empty string. - EMPTY_FIELD = 6; - - // A media file may only be modified once per call. - RESOURCE_REFERENCED_IN_MULTIPLE_OPS = 7; - - // Field is not supported for the media sub type. - FIELD_NOT_SUPPORTED_FOR_MEDIA_SUB_TYPE = 8; - - // The media file ID is invalid. - INVALID_MEDIA_FILE_ID = 9; - - // The media subtype is invalid. - INVALID_MEDIA_SUB_TYPE = 10; - - // The media file type is invalid. - INVALID_MEDIA_FILE_TYPE = 11; - - // The mimetype is invalid. - INVALID_MIME_TYPE = 12; - - // The media reference ID is invalid. - INVALID_REFERENCE_ID = 13; - - // The YouTube video ID is invalid. - INVALID_YOU_TUBE_ID = 14; - - // Media file has failed transcoding - MEDIA_FILE_FAILED_TRANSCODING = 15; - - // Media file has not been transcoded. - MEDIA_NOT_TRANSCODED = 16; - - // The media type does not match the actual media file's type. - MEDIA_TYPE_DOES_NOT_MATCH_MEDIA_FILE_TYPE = 17; - - // None of the fields have been specified. - NO_FIELDS_SPECIFIED = 18; - - // One of reference ID or media file ID must be specified. - NULL_REFERENCE_ID_AND_MEDIA_ID = 19; - - // The string has too many characters. - TOO_LONG = 20; - - // The specified type is not supported. - UNSUPPORTED_TYPE = 21; - - // YouTube is unavailable for requesting video data. - YOU_TUBE_SERVICE_UNAVAILABLE = 22; - - // The YouTube video has a non positive duration. - YOU_TUBE_VIDEO_HAS_NON_POSITIVE_DURATION = 23; - - // The YouTube video ID is syntactically valid but the video was not found. - YOU_TUBE_VIDEO_NOT_FOUND = 24; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/media_upload_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/media_upload_error.proto deleted file mode 100644 index 91e16ba95..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/media_upload_error.proto +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "MediaUploadErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing media uploading errors. - -// Container for enum describing possible media uploading errors. -message MediaUploadErrorEnum { - // Enum describing possible media uploading errors. - enum MediaUploadError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The uploaded file is too big. - FILE_TOO_BIG = 2; - - // Image data is unparseable. - UNPARSEABLE_IMAGE = 3; - - // Animated images are not allowed. - ANIMATED_IMAGE_NOT_ALLOWED = 4; - - // The image or media bundle format is not allowed. - FORMAT_NOT_ALLOWED = 5; - - // Cannot reference URL external to the media bundle. - EXTERNAL_URL_NOT_ALLOWED = 6; - - // HTML5 ad is trying to reference an asset not in .ZIP file. - INVALID_URL_REFERENCE = 7; - - // The media bundle contains no primary entry. - MISSING_PRIMARY_MEDIA_BUNDLE_ENTRY = 8; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/multiplier_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/multiplier_error.proto deleted file mode 100644 index e80463b10..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/multiplier_error.proto +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "MultiplierErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing multiplier errors. - -// Container for enum describing possible multiplier errors. -message MultiplierErrorEnum { - // Enum describing possible multiplier errors. - enum MultiplierError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Multiplier value is too high - MULTIPLIER_TOO_HIGH = 2; - - // Multiplier value is too low - MULTIPLIER_TOO_LOW = 3; - - // Too many fractional digits - TOO_MANY_FRACTIONAL_DIGITS = 4; - - // A multiplier cannot be set for this bidding strategy - MULTIPLIER_NOT_ALLOWED_FOR_BIDDING_STRATEGY = 5; - - // A multiplier cannot be set when there is no base bid (e.g., content max - // cpc) - MULTIPLIER_NOT_ALLOWED_WHEN_BASE_BID_IS_MISSING = 6; - - // A bid multiplier must be specified - NO_MULTIPLIER_SPECIFIED = 7; - - // Multiplier causes bid to exceed daily budget - MULTIPLIER_CAUSES_BID_TO_EXCEED_DAILY_BUDGET = 8; - - // Multiplier causes bid to exceed monthly budget - MULTIPLIER_CAUSES_BID_TO_EXCEED_MONTHLY_BUDGET = 9; - - // Multiplier causes bid to exceed custom budget - MULTIPLIER_CAUSES_BID_TO_EXCEED_CUSTOM_BUDGET = 10; - - // Multiplier causes bid to exceed maximum allowed bid - MULTIPLIER_CAUSES_BID_TO_EXCEED_MAX_ALLOWED_BID = 11; - - // Multiplier causes bid to become less than the minimum bid allowed - BID_LESS_THAN_MIN_ALLOWED_BID_WITH_MULTIPLIER = 12; - - // Multiplier type (cpc vs. cpm) needs to match campaign's bidding strategy - MULTIPLIER_AND_BIDDING_STRATEGY_TYPE_MISMATCH = 13; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/mutate_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/mutate_error.proto deleted file mode 100644 index e81ef5f30..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/mutate_error.proto +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "MutateErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing mutate errors. - -// Container for enum describing possible mutate errors. -message MutateErrorEnum { - // Enum describing possible mutate errors. - enum MutateError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Requested resource was not found. - RESOURCE_NOT_FOUND = 3; - - // Cannot mutate the same resource twice in one request. - ID_EXISTS_IN_MULTIPLE_MUTATES = 7; - - // The field's contents don't match another field that represents the same - // data. - INCONSISTENT_FIELD_VALUES = 8; - - // Mutates are not allowed for the requested resource. - MUTATE_NOT_ALLOWED = 9; - - // The resource isn't in Google Ads. It belongs to another ads system. - RESOURCE_NOT_IN_GOOGLE_ADS = 10; - - // The resource being created already exists. - RESOURCE_ALREADY_EXISTS = 11; - - // This resource cannot be used with "validate_only". - RESOURCE_DOES_NOT_SUPPORT_VALIDATE_ONLY = 12; - - // Attempt to write to read-only fields. - RESOURCE_READ_ONLY = 13; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/mutate_job_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/mutate_job_error.proto deleted file mode 100644 index e1fac000a..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/mutate_job_error.proto +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "MutateJobErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing mutate job errors. - -// Container for enum describing possible mutate job errors. -message MutateJobErrorEnum { - // Enum describing possible request errors. - enum MutateJobError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The mutate job cannot add more operations or run after it has started - // running. - CANNOT_MODIFY_JOB_AFTER_JOB_STARTS_RUNNING = 2; - - // The operations for an AddMutateJobOperations request were empty. - EMPTY_OPERATIONS = 3; - - // The sequence token for an AddMutateJobOperations request was invalid. - INVALID_SEQUENCE_TOKEN = 4; - - // Mutate Job Results can only be retrieved once the job is finished. - RESULTS_NOT_READY = 5; - - // The page size for ListMutateJobResults was invalid. - INVALID_PAGE_SIZE = 6; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/new_resource_creation_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/new_resource_creation_error.proto deleted file mode 100644 index 0b2b398ce..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/new_resource_creation_error.proto +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "NewResourceCreationErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing new resource creation errors. - -// Container for enum describing possible new resource creation errors. -message NewResourceCreationErrorEnum { - // Enum describing possible new resource creation errors. - enum NewResourceCreationError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Do not set the id field while creating new resources. - CANNOT_SET_ID_FOR_CREATE = 2; - - // Creating more than one resource with the same temp ID is not allowed. - DUPLICATE_TEMP_IDS = 3; - - // Parent resource with specified temp ID failed validation, so no - // validation will be done for this child resource. - TEMP_ID_RESOURCE_HAD_ERRORS = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/not_empty_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/not_empty_error.proto deleted file mode 100644 index ca04a45d5..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/not_empty_error.proto +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "NotEmptyErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing not empty errors. - -// Container for enum describing possible not empty errors. -message NotEmptyErrorEnum { - // Enum describing possible not empty errors. - enum NotEmptyError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Empty list. - EMPTY_LIST = 2; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/not_whitelisted_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/not_whitelisted_error.proto deleted file mode 100644 index 385715bb8..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/not_whitelisted_error.proto +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "NotWhitelistedErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing not whitelisted errors. - -// Container for enum describing possible not whitelisted errors. -message NotWhitelistedErrorEnum { - // Enum describing possible not whitelisted errors. - enum NotWhitelistedError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Customer is not whitelisted for accessing this feature. - CUSTOMER_NOT_WHITELISTED_FOR_THIS_FEATURE = 2; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/null_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/null_error.proto deleted file mode 100644 index eb35b2484..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/null_error.proto +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "NullErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing null errors. - -// Container for enum describing possible null errors. -message NullErrorEnum { - // Enum describing possible null errors. - enum NullError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Specified list/container must not contain any null elements - NULL_CONTENT = 2; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/offline_user_data_job_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/offline_user_data_job_error.proto deleted file mode 100644 index 54bdc2bdb..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/offline_user_data_job_error.proto +++ /dev/null @@ -1,117 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "OfflineUserDataJobErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing offline user data job errors. - -// Container for enum describing possible offline user data job errors. -message OfflineUserDataJobErrorEnum { - // Enum describing possible request errors. - enum OfflineUserDataJobError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The user list ID provided for the job is invalid. - INVALID_USER_LIST_ID = 3; - - // Type of the user list is not applicable for the job. - INVALID_USER_LIST_TYPE = 4; - - // Customer is not on the allow-list for using user ID in upload data. - NOT_WHITELISTED_FOR_USER_ID = 5; - - // Upload data is not compatible with the upload key type of the associated - // user list. - INCOMPATIBLE_UPLOAD_KEY_TYPE = 6; - - // The user identifier is missing valid data. - MISSING_USER_IDENTIFIER = 7; - - // The mobile ID is malformed. - INVALID_MOBILE_ID_FORMAT = 8; - - // Request is exceeding the maximum number of user identifiers allowed. - TOO_MANY_USER_IDENTIFIERS = 9; - - // Customer is not on the allow-list for store sales direct data. - NOT_WHITELISTED_FOR_STORE_SALES_DIRECT = 10; - - // The partner ID in store sales direct metadata is invalid. - INVALID_PARTNER_ID = 11; - - // The data in user identifier should not be encoded. - INVALID_ENCODING = 12; - - // The country code is invalid. - INVALID_COUNTRY_CODE = 13; - - // Incompatible user identifier when using third_party_user_id for store - // sales direct first party data or not using third_party_user_id for store - // sales third party data. - INCOMPATIBLE_USER_IDENTIFIER = 14; - - // A transaction time in the future is not allowed. - FUTURE_TRANSACTION_TIME = 15; - - // The conversion_action specified in transaction_attributes is used to - // report conversions to a conversion action configured in Google Ads. This - // error indicates there is no such conversion action in the account. - INVALID_CONVERSION_ACTION = 16; - - // Mobile ID is not supported for store sales direct data. - MOBILE_ID_NOT_SUPPORTED = 17; - - // When a remove-all operation is provided, it has to be the first operation - // of the operation list. - INVALID_OPERATION_ORDER = 18; - - // Mixing creation and removal of offline data in the same job is not - // allowed. - CONFLICTING_OPERATION = 19; - - // The external update ID already exists. - EXTERNAL_UPDATE_ID_ALREADY_EXISTS = 21; - - // Once the upload job is started, new operations cannot be added. - JOB_ALREADY_STARTED = 22; - - // Remove operation is not allowed for store sales direct updates. - REMOVE_NOT_SUPPORTED = 23; - - // Remove-all is not supported for store sales direct updates. - REMOVE_ALL_NOT_SUPPORTED = 24; - - // The SHA256 encoded value is malformed. - INVALID_SHA256_FORMAT = 25; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/operation_access_denied_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/operation_access_denied_error.proto deleted file mode 100644 index a53e5397b..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/operation_access_denied_error.proto +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "OperationAccessDeniedErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing operation access denied errors. - -// Container for enum describing possible operation access denied errors. -message OperationAccessDeniedErrorEnum { - // Enum describing possible operation access denied errors. - enum OperationAccessDeniedError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Unauthorized invocation of a service's method (get, mutate, etc.) - ACTION_NOT_PERMITTED = 2; - - // Unauthorized CREATE operation in invoking a service's mutate method. - CREATE_OPERATION_NOT_PERMITTED = 3; - - // Unauthorized REMOVE operation in invoking a service's mutate method. - REMOVE_OPERATION_NOT_PERMITTED = 4; - - // Unauthorized UPDATE operation in invoking a service's mutate method. - UPDATE_OPERATION_NOT_PERMITTED = 5; - - // A mutate action is not allowed on this campaign, from this client. - MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT = 6; - - // This operation is not permitted on this campaign type - OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE = 7; - - // A CREATE operation may not set status to REMOVED. - CREATE_AS_REMOVED_NOT_PERMITTED = 8; - - // This operation is not allowed because the campaign or adgroup is removed. - OPERATION_NOT_PERMITTED_FOR_REMOVED_RESOURCE = 9; - - // This operation is not permitted on this ad group type. - OPERATION_NOT_PERMITTED_FOR_AD_GROUP_TYPE = 10; - - // The mutate is not allowed for this customer. - MUTATE_NOT_PERMITTED_FOR_CUSTOMER = 11; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/operator_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/operator_error.proto deleted file mode 100644 index 76e157ee1..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/operator_error.proto +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "OperatorErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing operator errors. - -// Container for enum describing possible operator errors. -message OperatorErrorEnum { - // Enum describing possible operator errors. - enum OperatorError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Operator not supported. - OPERATOR_NOT_SUPPORTED = 2; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/partial_failure_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/partial_failure_error.proto deleted file mode 100644 index 6fabcec85..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/partial_failure_error.proto +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "PartialFailureErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing partial failure errors. - -// Container for enum describing possible partial failure errors. -message PartialFailureErrorEnum { - // Enum describing possible partial failure errors. - enum PartialFailureError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The partial failure field was false in the request. - // This method requires this field be set to true. - PARTIAL_FAILURE_MODE_REQUIRED = 2; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/policy_finding_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/policy_finding_error.proto deleted file mode 100644 index eb5f508d2..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/policy_finding_error.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "PolicyFindingErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing policy finding errors. - -// Container for enum describing possible policy finding errors. -message PolicyFindingErrorEnum { - // Enum describing possible policy finding errors. - enum PolicyFindingError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The resource has been disapproved since the policy summary includes - // policy topics of type PROHIBITED. - POLICY_FINDING = 2; - - // The given policy topic does not exist. - POLICY_TOPIC_NOT_FOUND = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/policy_validation_parameter_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/policy_validation_parameter_error.proto deleted file mode 100644 index 0c61af74f..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/policy_validation_parameter_error.proto +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "PolicyValidationParameterErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing policy validation parameter errors. - -// Container for enum describing possible policy validation parameter errors. -message PolicyValidationParameterErrorEnum { - // Enum describing possible policy validation parameter errors. - enum PolicyValidationParameterError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Ignorable policy topics are not supported for the ad type. - UNSUPPORTED_AD_TYPE_FOR_IGNORABLE_POLICY_TOPICS = 2; - - // Exempt policy violation keys are not supported for the ad type. - UNSUPPORTED_AD_TYPE_FOR_EXEMPT_POLICY_VIOLATION_KEYS = 3; - - // Cannot set ignorable policy topics and exempt policy violation keys in - // the same policy violation parameter. - CANNOT_SET_BOTH_IGNORABLE_POLICY_TOPICS_AND_EXEMPT_POLICY_VIOLATION_KEYS = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/policy_violation_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/policy_violation_error.proto deleted file mode 100644 index f38ab67ba..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/policy_violation_error.proto +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "PolicyViolationErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing policy violation errors. - -// Container for enum describing possible policy violation errors. -message PolicyViolationErrorEnum { - // Enum describing possible policy violation errors. - enum PolicyViolationError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // A policy was violated. See PolicyViolationDetails for more detail. - POLICY_ERROR = 2; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/query_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/query_error.proto deleted file mode 100644 index c7c176e77..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/query_error.proto +++ /dev/null @@ -1,218 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "QueryErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing query errors. - -// Container for enum describing possible query errors. -message QueryErrorEnum { - // Enum describing possible query errors. - enum QueryError { - // Name unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Returned if all other query error reasons are not applicable. - QUERY_ERROR = 50; - - // A condition used in the query references an invalid enum constant. - BAD_ENUM_CONSTANT = 18; - - // Query contains an invalid escape sequence. - BAD_ESCAPE_SEQUENCE = 7; - - // Field name is invalid. - BAD_FIELD_NAME = 12; - - // Limit value is invalid (i.e. not a number) - BAD_LIMIT_VALUE = 15; - - // Encountered number can not be parsed. - BAD_NUMBER = 5; - - // Invalid operator encountered. - BAD_OPERATOR = 3; - - // Parameter unknown or not supported. - BAD_PARAMETER_NAME = 61; - - // Parameter have invalid value. - BAD_PARAMETER_VALUE = 62; - - // Invalid resource type was specified in the FROM clause. - BAD_RESOURCE_TYPE_IN_FROM_CLAUSE = 45; - - // Non-ASCII symbol encountered outside of strings. - BAD_SYMBOL = 2; - - // Value is invalid. - BAD_VALUE = 4; - - // Date filters fail to restrict date to a range smaller than 31 days. - // Applicable if the query is segmented by date. - DATE_RANGE_TOO_WIDE = 36; - - // Filters on date/week/month/quarter have a start date after - // end date. - DATE_RANGE_TOO_NARROW = 60; - - // Expected AND between values with BETWEEN operator. - EXPECTED_AND = 30; - - // Expecting ORDER BY to have BY. - EXPECTED_BY = 14; - - // There was no dimension field selected. - EXPECTED_DIMENSION_FIELD_IN_SELECT_CLAUSE = 37; - - // Missing filters on date related fields. - EXPECTED_FILTERS_ON_DATE_RANGE = 55; - - // Missing FROM clause. - EXPECTED_FROM = 44; - - // The operator used in the conditions requires the value to be a list. - EXPECTED_LIST = 41; - - // Fields used in WHERE or ORDER BY clauses are missing from the SELECT - // clause. - EXPECTED_REFERENCED_FIELD_IN_SELECT_CLAUSE = 16; - - // SELECT is missing at the beginning of query. - EXPECTED_SELECT = 13; - - // A list was passed as a value to a condition whose operator expects a - // single value. - EXPECTED_SINGLE_VALUE = 42; - - // Missing one or both values with BETWEEN operator. - EXPECTED_VALUE_WITH_BETWEEN_OPERATOR = 29; - - // Invalid date format. Expected 'YYYY-MM-DD'. - INVALID_DATE_FORMAT = 38; - - // Value passed was not a string when it should have been. I.e., it was a - // number or unquoted literal. - INVALID_STRING_VALUE = 57; - - // A String value passed to the BETWEEN operator does not parse as a date. - INVALID_VALUE_WITH_BETWEEN_OPERATOR = 26; - - // The value passed to the DURING operator is not a Date range literal - INVALID_VALUE_WITH_DURING_OPERATOR = 22; - - // A non-string value was passed to the LIKE operator. - INVALID_VALUE_WITH_LIKE_OPERATOR = 56; - - // An operator was provided that is inapplicable to the field being - // filtered. - OPERATOR_FIELD_MISMATCH = 35; - - // A Condition was found with an empty list. - PROHIBITED_EMPTY_LIST_IN_CONDITION = 28; - - // A condition used in the query references an unsupported enum constant. - PROHIBITED_ENUM_CONSTANT = 54; - - // Fields that are not allowed to be selected together were included in - // the SELECT clause. - PROHIBITED_FIELD_COMBINATION_IN_SELECT_CLAUSE = 31; - - // A field that is not orderable was included in the ORDER BY clause. - PROHIBITED_FIELD_IN_ORDER_BY_CLAUSE = 40; - - // A field that is not selectable was included in the SELECT clause. - PROHIBITED_FIELD_IN_SELECT_CLAUSE = 23; - - // A field that is not filterable was included in the WHERE clause. - PROHIBITED_FIELD_IN_WHERE_CLAUSE = 24; - - // Resource type specified in the FROM clause is not supported by this - // service. - PROHIBITED_RESOURCE_TYPE_IN_FROM_CLAUSE = 43; - - // A field that comes from an incompatible resource was included in the - // SELECT clause. - PROHIBITED_RESOURCE_TYPE_IN_SELECT_CLAUSE = 48; - - // A field that comes from an incompatible resource was included in the - // WHERE clause. - PROHIBITED_RESOURCE_TYPE_IN_WHERE_CLAUSE = 58; - - // A metric incompatible with the main resource or other selected - // segmenting resources was included in the SELECT or WHERE clause. - PROHIBITED_METRIC_IN_SELECT_OR_WHERE_CLAUSE = 49; - - // A segment incompatible with the main resource or other selected - // segmenting resources was included in the SELECT or WHERE clause. - PROHIBITED_SEGMENT_IN_SELECT_OR_WHERE_CLAUSE = 51; - - // A segment in the SELECT clause is incompatible with a metric in the - // SELECT or WHERE clause. - PROHIBITED_SEGMENT_WITH_METRIC_IN_SELECT_OR_WHERE_CLAUSE = 53; - - // The value passed to the limit clause is too low. - LIMIT_VALUE_TOO_LOW = 25; - - // Query has a string containing a newline character. - PROHIBITED_NEWLINE_IN_STRING = 8; - - // List contains values of different types. - PROHIBITED_VALUE_COMBINATION_IN_LIST = 10; - - // The values passed to the BETWEEN operator are not of the same type. - PROHIBITED_VALUE_COMBINATION_WITH_BETWEEN_OPERATOR = 21; - - // Query contains unterminated string. - STRING_NOT_TERMINATED = 6; - - // Too many segments are specified in SELECT clause. - TOO_MANY_SEGMENTS = 34; - - // Query is incomplete and cannot be parsed. - UNEXPECTED_END_OF_QUERY = 9; - - // FROM clause cannot be specified in this query. - UNEXPECTED_FROM_CLAUSE = 47; - - // Query contains one or more unrecognized fields. - UNRECOGNIZED_FIELD = 32; - - // Query has an unexpected extra part. - UNEXPECTED_INPUT = 11; - - // Metrics cannot be requested for a manager account. To retrieve metrics, - // issue separate requests against each client account under the manager - // account. - REQUESTED_METRICS_FOR_MANAGER = 59; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/quota_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/quota_error.proto deleted file mode 100644 index a0c6e9069..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/quota_error.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "QuotaErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing quota errors. - -// Container for enum describing possible quota errors. -message QuotaErrorEnum { - // Enum describing possible quota errors. - enum QuotaError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Too many requests. - RESOURCE_EXHAUSTED = 2; - - // Access is prohibited. - ACCESS_PROHIBITED = 3; - - // Too many requests in a short amount of time. - RESOURCE_TEMPORARILY_EXHAUSTED = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/range_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/range_error.proto deleted file mode 100644 index f7ae95680..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/range_error.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "RangeErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing range errors. - -// Container for enum describing possible range errors. -message RangeErrorEnum { - // Enum describing possible range errors. - enum RangeError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Too low. - TOO_LOW = 2; - - // Too high. - TOO_HIGH = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/reach_plan_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/reach_plan_error.proto deleted file mode 100644 index 8f22c40f1..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/reach_plan_error.proto +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "ReachPlanErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing errors generated from ReachPlanService. - -// Container for enum describing possible errors returned from -// the ReachPlanService. -message ReachPlanErrorEnum { - // Enum describing possible errors from ReachPlanService. - enum ReachPlanError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/recommendation_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/recommendation_error.proto deleted file mode 100644 index 5dd203ba1..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/recommendation_error.proto +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "RecommendationErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing errors from applying a recommendation. - -// Container for enum describing possible errors from applying a recommendation. -message RecommendationErrorEnum { - // Enum describing possible errors from applying a recommendation. - enum RecommendationError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The specified budget amount is too low e.g. lower than minimum currency - // unit or lower than ad group minimum cost-per-click. - BUDGET_AMOUNT_TOO_SMALL = 2; - - // The specified budget amount is too large. - BUDGET_AMOUNT_TOO_LARGE = 3; - - // The specified budget amount is not a valid amount. e.g. not a multiple - // of minimum currency unit. - INVALID_BUDGET_AMOUNT = 4; - - // The specified keyword or ad violates ad policy. - POLICY_ERROR = 5; - - // The specified bid amount is not valid. e.g. too many fractional digits, - // or negative amount. - INVALID_BID_AMOUNT = 6; - - // The number of keywords in ad group have reached the maximum allowed. - ADGROUP_KEYWORD_LIMIT = 7; - - // The recommendation requested to apply has already been applied. - RECOMMENDATION_ALREADY_APPLIED = 8; - - // The recommendation requested to apply has been invalidated. - RECOMMENDATION_INVALIDATED = 9; - - // The number of operations in a single request exceeds the maximum allowed. - TOO_MANY_OPERATIONS = 10; - - // There are no operations in the request. - NO_OPERATIONS = 11; - - // Operations with multiple recommendation types are not supported when - // partial failure mode is not enabled. - DIFFERENT_TYPES_NOT_SUPPORTED = 12; - - // Request contains multiple operations with the same resource_name. - DUPLICATE_RESOURCE_NAME = 13; - - // The recommendation requested to dismiss has already been dismissed. - RECOMMENDATION_ALREADY_DISMISSED = 14; - - // The recommendation apply request was malformed and invalid. - INVALID_APPLY_REQUEST = 15; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/region_code_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/region_code_error.proto deleted file mode 100644 index c6d11856f..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/region_code_error.proto +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "RegionCodeErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing region code errors. - -// Container for enum describing possible region code errors. -message RegionCodeErrorEnum { - // Enum describing possible region code errors. - enum RegionCodeError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Invalid region code. - INVALID_REGION_CODE = 2; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/request_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/request_error.proto deleted file mode 100644 index 9df0d207a..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/request_error.proto +++ /dev/null @@ -1,116 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "RequestErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing request errors. - -// Container for enum describing possible request errors. -message RequestErrorEnum { - // Enum describing possible request errors. - enum RequestError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Resource name is required for this request. - RESOURCE_NAME_MISSING = 3; - - // Resource name provided is malformed. - RESOURCE_NAME_MALFORMED = 4; - - // Resource name provided is malformed. - BAD_RESOURCE_ID = 17; - - // Customer ID is invalid. - INVALID_CUSTOMER_ID = 16; - - // Mutate operation should have either create, update, or remove specified. - OPERATION_REQUIRED = 5; - - // Requested resource not found. - RESOURCE_NOT_FOUND = 6; - - // Next page token specified in user request is invalid. - INVALID_PAGE_TOKEN = 7; - - // Next page token specified in user request has expired. - EXPIRED_PAGE_TOKEN = 8; - - // Page size specified in user request is invalid. - INVALID_PAGE_SIZE = 22; - - // Required field is missing. - REQUIRED_FIELD_MISSING = 9; - - // The field cannot be modified because it's immutable. It's also possible - // that the field can be modified using 'create' operation but not 'update'. - IMMUTABLE_FIELD = 11; - - // Received too many entries in request. - TOO_MANY_MUTATE_OPERATIONS = 13; - - // Request cannot be executed by a manager account. - CANNOT_BE_EXECUTED_BY_MANAGER_ACCOUNT = 14; - - // Mutate request was attempting to modify a readonly field. - // For instance, Budget fields can be requested for Ad Group, - // but are read-only for adGroups:mutate. - CANNOT_MODIFY_FOREIGN_FIELD = 15; - - // Enum value is not permitted. - INVALID_ENUM_VALUE = 18; - - // The developer-token parameter is required for all requests. - DEVELOPER_TOKEN_PARAMETER_MISSING = 19; - - // The login-customer-id parameter is required for this request. - LOGIN_CUSTOMER_ID_PARAMETER_MISSING = 20; - - // page_token is set in the validate only request - VALIDATE_ONLY_REQUEST_HAS_PAGE_TOKEN = 21; - - // return_summary_row cannot be enabled if request did not select any - // metrics field. - CANNOT_RETURN_SUMMARY_ROW_FOR_REQUEST_WITHOUT_METRICS = 29; - - // return_summary_row should not be enabled for validate only requests. - CANNOT_RETURN_SUMMARY_ROW_FOR_VALIDATE_ONLY_REQUESTS = 30; - - // return_summary_row parameter value should be the same between requests - // with page_token field set and their original request. - INCONSISTENT_RETURN_SUMMARY_ROW_VALUE = 31; - - // The total results count cannot be returned if it was not requested in the - // original request. - TOTAL_RESULTS_COUNT_NOT_ORIGINALLY_REQUESTED = 32; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/resource_access_denied_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/resource_access_denied_error.proto deleted file mode 100644 index 9ec2aed30..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/resource_access_denied_error.proto +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "ResourceAccessDeniedErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing resource access denied errors. - -// Container for enum describing possible resource access denied errors. -message ResourceAccessDeniedErrorEnum { - // Enum describing possible resource access denied errors. - enum ResourceAccessDeniedError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // User did not have write access. - WRITE_ACCESS_DENIED = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/resource_count_limit_exceeded_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/resource_count_limit_exceeded_error.proto deleted file mode 100644 index de749c727..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/resource_count_limit_exceeded_error.proto +++ /dev/null @@ -1,93 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "ResourceCountLimitExceededErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing resource count limit exceeded errors. - -// Container for enum describing possible resource count limit exceeded errors. -message ResourceCountLimitExceededErrorEnum { - // Enum describing possible resource count limit exceeded errors. - enum ResourceCountLimitExceededError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Indicates that this request would exceed the number of allowed resources - // for the Google Ads account. The exact resource type and limit being - // checked can be inferred from accountLimitType. - ACCOUNT_LIMIT = 2; - - // Indicates that this request would exceed the number of allowed resources - // in a Campaign. The exact resource type and limit being checked can be - // inferred from accountLimitType, and the numeric id of the - // Campaign involved is given by enclosingId. - CAMPAIGN_LIMIT = 3; - - // Indicates that this request would exceed the number of allowed resources - // in an ad group. The exact resource type and limit being checked can be - // inferred from accountLimitType, and the numeric id of the - // ad group involved is given by enclosingId. - ADGROUP_LIMIT = 4; - - // Indicates that this request would exceed the number of allowed resources - // in an ad group ad. The exact resource type and limit being checked can - // be inferred from accountLimitType, and the enclosingId - // contains the ad group id followed by the ad id, separated by a single - // comma (,). - AD_GROUP_AD_LIMIT = 5; - - // Indicates that this request would exceed the number of allowed resources - // in an ad group criterion. The exact resource type and limit being checked - // can be inferred from accountLimitType, and the - // enclosingId contains the ad group id followed by the - // criterion id, separated by a single comma (,). - AD_GROUP_CRITERION_LIMIT = 6; - - // Indicates that this request would exceed the number of allowed resources - // in this shared set. The exact resource type and limit being checked can - // be inferred from accountLimitType, and the numeric id of the - // shared set involved is given by enclosingId. - SHARED_SET_LIMIT = 7; - - // Exceeds a limit related to a matching function. - MATCHING_FUNCTION_LIMIT = 8; - - // The response for this request would exceed the maximum number of rows - // that can be returned. - RESPONSE_ROW_LIMIT_EXCEEDED = 9; - - // This request would exceed a limit on the number of allowed resources. - // The details of which type of limit was exceeded will eventually be - // returned in ErrorDetails. - RESOURCE_LIMIT = 10; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/setting_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/setting_error.proto deleted file mode 100644 index b3fb0e035..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/setting_error.proto +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "SettingErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing setting errors. - -// Container for enum describing possible setting errors. -message SettingErrorEnum { - // Enum describing possible setting errors. - enum SettingError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The campaign setting is not available for this Google Ads account. - SETTING_TYPE_IS_NOT_AVAILABLE = 3; - - // The setting is not compatible with the campaign. - SETTING_TYPE_IS_NOT_COMPATIBLE_WITH_CAMPAIGN = 4; - - // The supplied TargetingSetting contains an invalid CriterionTypeGroup. See - // CriterionTypeGroup documentation for CriterionTypeGroups allowed - // in Campaign or AdGroup TargetingSettings. - TARGETING_SETTING_CONTAINS_INVALID_CRITERION_TYPE_GROUP = 5; - - // TargetingSetting must not explicitly - // set any of the Demographic CriterionTypeGroups (AGE_RANGE, GENDER, - // PARENT, INCOME_RANGE) to false (it's okay to not set them at all, in - // which case the system will set them to true automatically). - TARGETING_SETTING_DEMOGRAPHIC_CRITERION_TYPE_GROUPS_MUST_BE_SET_TO_TARGET_ALL = 6; - - // TargetingSetting cannot change any of - // the Demographic CriterionTypeGroups (AGE_RANGE, GENDER, PARENT, - // INCOME_RANGE) from true to false. - TARGETING_SETTING_CANNOT_CHANGE_TARGET_ALL_TO_FALSE_FOR_DEMOGRAPHIC_CRITERION_TYPE_GROUP = 7; - - // At least one feed id should be present. - DYNAMIC_SEARCH_ADS_SETTING_AT_LEAST_ONE_FEED_ID_MUST_BE_PRESENT = 8; - - // The supplied DynamicSearchAdsSetting contains an invalid domain name. - DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_INVALID_DOMAIN_NAME = 9; - - // The supplied DynamicSearchAdsSetting contains a subdomain name. - DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_SUBDOMAIN_NAME = 10; - - // The supplied DynamicSearchAdsSetting contains an invalid language code. - DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_INVALID_LANGUAGE_CODE = 11; - - // TargetingSettings in search campaigns should not have - // CriterionTypeGroup.PLACEMENT set to targetAll. - TARGET_ALL_IS_NOT_ALLOWED_FOR_PLACEMENT_IN_SEARCH_CAMPAIGN = 12; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/shared_criterion_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/shared_criterion_error.proto deleted file mode 100644 index 9a3600030..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/shared_criterion_error.proto +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "SharedCriterionErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing shared criterion errors. - -// Container for enum describing possible shared criterion errors. -message SharedCriterionErrorEnum { - // Enum describing possible shared criterion errors. - enum SharedCriterionError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The criterion is not appropriate for the shared set type. - CRITERION_TYPE_NOT_ALLOWED_FOR_SHARED_SET_TYPE = 2; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/shared_set_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/shared_set_error.proto deleted file mode 100644 index b4627fca7..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/shared_set_error.proto +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "SharedSetErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing shared set errors. - -// Container for enum describing possible shared set errors. -message SharedSetErrorEnum { - // Enum describing possible shared set errors. - enum SharedSetError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The customer cannot create this type of shared set. - CUSTOMER_CANNOT_CREATE_SHARED_SET_OF_THIS_TYPE = 2; - - // A shared set with this name already exists. - DUPLICATE_NAME = 3; - - // Removed shared sets cannot be mutated. - SHARED_SET_REMOVED = 4; - - // The shared set cannot be removed because it is in use. - SHARED_SET_IN_USE = 5; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/size_limit_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/size_limit_error.proto deleted file mode 100644 index d935fc573..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/size_limit_error.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "SizeLimitErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing size limit errors. - -// Container for enum describing possible size limit errors. -message SizeLimitErrorEnum { - // Enum describing possible size limit errors. - enum SizeLimitError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The number of entries in the request exceeds the system limit. - REQUEST_SIZE_LIMIT_EXCEEDED = 2; - - // The number of entries in the response exceeds the system limit. - RESPONSE_SIZE_LIMIT_EXCEEDED = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/string_format_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/string_format_error.proto deleted file mode 100644 index 8381603e0..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/string_format_error.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "StringFormatErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing string format errors. - -// Container for enum describing possible string format errors. -message StringFormatErrorEnum { - // Enum describing possible string format errors. - enum StringFormatError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The input string value contains disallowed characters. - ILLEGAL_CHARS = 2; - - // The input string value is invalid for the associated field. - INVALID_FORMAT = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/string_length_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/string_length_error.proto deleted file mode 100644 index e178d2f6a..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/string_length_error.proto +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "StringLengthErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing string length errors. - -// Container for enum describing possible string length errors. -message StringLengthErrorEnum { - // Enum describing possible string length errors. - enum StringLengthError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The specified field should have a least one non-whitespace character in - // it. - EMPTY = 4; - - // Too short. - TOO_SHORT = 2; - - // Too long. - TOO_LONG = 3; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/url_field_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/url_field_error.proto deleted file mode 100644 index 17678be03..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/url_field_error.proto +++ /dev/null @@ -1,215 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "UrlFieldErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing url field errors. - -// Container for enum describing possible url field errors. -message UrlFieldErrorEnum { - // Enum describing possible url field errors. - enum UrlFieldError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // The tracking url template is invalid. - INVALID_TRACKING_URL_TEMPLATE = 2; - - // The tracking url template contains invalid tag. - INVALID_TAG_IN_TRACKING_URL_TEMPLATE = 3; - - // The tracking url template must contain at least one tag (e.g. {lpurl}), - // This applies only to tracking url template associated with website ads or - // product ads. - MISSING_TRACKING_URL_TEMPLATE_TAG = 4; - - // The tracking url template must start with a valid protocol (or lpurl - // tag). - MISSING_PROTOCOL_IN_TRACKING_URL_TEMPLATE = 5; - - // The tracking url template starts with an invalid protocol. - INVALID_PROTOCOL_IN_TRACKING_URL_TEMPLATE = 6; - - // The tracking url template contains illegal characters. - MALFORMED_TRACKING_URL_TEMPLATE = 7; - - // The tracking url template must contain a host name (or lpurl tag). - MISSING_HOST_IN_TRACKING_URL_TEMPLATE = 8; - - // The tracking url template has an invalid or missing top level domain - // extension. - INVALID_TLD_IN_TRACKING_URL_TEMPLATE = 9; - - // The tracking url template contains nested occurrences of the same - // conditional tag (i.e. {ifmobile:{ifmobile:x}}). - REDUNDANT_NESTED_TRACKING_URL_TEMPLATE_TAG = 10; - - // The final url is invalid. - INVALID_FINAL_URL = 11; - - // The final url contains invalid tag. - INVALID_TAG_IN_FINAL_URL = 12; - - // The final url contains nested occurrences of the same conditional tag - // (i.e. {ifmobile:{ifmobile:x}}). - REDUNDANT_NESTED_FINAL_URL_TAG = 13; - - // The final url must start with a valid protocol. - MISSING_PROTOCOL_IN_FINAL_URL = 14; - - // The final url starts with an invalid protocol. - INVALID_PROTOCOL_IN_FINAL_URL = 15; - - // The final url contains illegal characters. - MALFORMED_FINAL_URL = 16; - - // The final url must contain a host name. - MISSING_HOST_IN_FINAL_URL = 17; - - // The tracking url template has an invalid or missing top level domain - // extension. - INVALID_TLD_IN_FINAL_URL = 18; - - // The final mobile url is invalid. - INVALID_FINAL_MOBILE_URL = 19; - - // The final mobile url contains invalid tag. - INVALID_TAG_IN_FINAL_MOBILE_URL = 20; - - // The final mobile url contains nested occurrences of the same conditional - // tag (i.e. {ifmobile:{ifmobile:x}}). - REDUNDANT_NESTED_FINAL_MOBILE_URL_TAG = 21; - - // The final mobile url must start with a valid protocol. - MISSING_PROTOCOL_IN_FINAL_MOBILE_URL = 22; - - // The final mobile url starts with an invalid protocol. - INVALID_PROTOCOL_IN_FINAL_MOBILE_URL = 23; - - // The final mobile url contains illegal characters. - MALFORMED_FINAL_MOBILE_URL = 24; - - // The final mobile url must contain a host name. - MISSING_HOST_IN_FINAL_MOBILE_URL = 25; - - // The tracking url template has an invalid or missing top level domain - // extension. - INVALID_TLD_IN_FINAL_MOBILE_URL = 26; - - // The final app url is invalid. - INVALID_FINAL_APP_URL = 27; - - // The final app url contains invalid tag. - INVALID_TAG_IN_FINAL_APP_URL = 28; - - // The final app url contains nested occurrences of the same conditional tag - // (i.e. {ifmobile:{ifmobile:x}}). - REDUNDANT_NESTED_FINAL_APP_URL_TAG = 29; - - // More than one app url found for the same OS type. - MULTIPLE_APP_URLS_FOR_OSTYPE = 30; - - // The OS type given for an app url is not valid. - INVALID_OSTYPE = 31; - - // The protocol given for an app url is not valid. (E.g. "android-app://") - INVALID_PROTOCOL_FOR_APP_URL = 32; - - // The package id (app id) given for an app url is not valid. - INVALID_PACKAGE_ID_FOR_APP_URL = 33; - - // The number of url custom parameters for an resource exceeds the maximum - // limit allowed. - URL_CUSTOM_PARAMETERS_COUNT_EXCEEDS_LIMIT = 34; - - // An invalid character appears in the parameter key. - INVALID_CHARACTERS_IN_URL_CUSTOM_PARAMETER_KEY = 39; - - // An invalid character appears in the parameter value. - INVALID_CHARACTERS_IN_URL_CUSTOM_PARAMETER_VALUE = 40; - - // The url custom parameter value fails url tag validation. - INVALID_TAG_IN_URL_CUSTOM_PARAMETER_VALUE = 41; - - // The custom parameter contains nested occurrences of the same conditional - // tag (i.e. {ifmobile:{ifmobile:x}}). - REDUNDANT_NESTED_URL_CUSTOM_PARAMETER_TAG = 42; - - // The protocol (http:// or https://) is missing. - MISSING_PROTOCOL = 43; - - // Unsupported protocol in URL. Only http and https are supported. - INVALID_PROTOCOL = 52; - - // The url is invalid. - INVALID_URL = 44; - - // Destination Url is deprecated. - DESTINATION_URL_DEPRECATED = 45; - - // The url contains invalid tag. - INVALID_TAG_IN_URL = 46; - - // The url must contain at least one tag (e.g. {lpurl}), This applies only - // to urls associated with website ads or product ads. - MISSING_URL_TAG = 47; - - // Duplicate url id. - DUPLICATE_URL_ID = 48; - - // Invalid url id. - INVALID_URL_ID = 49; - - // The final url suffix cannot begin with '?' or '&' characters and must be - // a valid query string. - FINAL_URL_SUFFIX_MALFORMED = 50; - - // The final url suffix cannot contain {lpurl} related or {ignore} tags. - INVALID_TAG_IN_FINAL_URL_SUFFIX = 51; - - // The top level domain is invalid, e.g, not a public top level domain - // listed in publicsuffix.org. - INVALID_TOP_LEVEL_DOMAIN = 53; - - // Malformed top level domain in URL. - MALFORMED_TOP_LEVEL_DOMAIN = 54; - - // Malformed URL. - MALFORMED_URL = 55; - - // No host found in URL. - MISSING_HOST = 56; - - // Custom parameter value cannot be null. - NULL_CUSTOM_PARAMETER_VALUE = 57; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/user_list_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/user_list_error.proto deleted file mode 100644 index d33257417..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/user_list_error.proto +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "UserListErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing user list errors. - -// Container for enum describing possible user list errors. -message UserListErrorEnum { - // Enum describing possible user list errors. - enum UserListError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Creating and updating external remarketing user lists is not supported. - EXTERNAL_REMARKETING_USER_LIST_MUTATE_NOT_SUPPORTED = 2; - - // Concrete type of user list is required. - CONCRETE_TYPE_REQUIRED = 3; - - // Creating/updating user list conversion types requires specifying the - // conversion type Id. - CONVERSION_TYPE_ID_REQUIRED = 4; - - // Remarketing user list cannot have duplicate conversion types. - DUPLICATE_CONVERSION_TYPES = 5; - - // Conversion type is invalid/unknown. - INVALID_CONVERSION_TYPE = 6; - - // User list description is empty or invalid. - INVALID_DESCRIPTION = 7; - - // User list name is empty or invalid. - INVALID_NAME = 8; - - // Type of the UserList does not match. - INVALID_TYPE = 9; - - // Embedded logical user lists are not allowed. - CAN_NOT_ADD_LOGICAL_LIST_AS_LOGICAL_LIST_OPERAND = 10; - - // User list rule operand is invalid. - INVALID_USER_LIST_LOGICAL_RULE_OPERAND = 11; - - // Name is already being used for another user list for the account. - NAME_ALREADY_USED = 12; - - // Name is required when creating a new conversion type. - NEW_CONVERSION_TYPE_NAME_REQUIRED = 13; - - // The given conversion type name has been used. - CONVERSION_TYPE_NAME_ALREADY_USED = 14; - - // Only an owner account may edit a user list. - OWNERSHIP_REQUIRED_FOR_SET = 15; - - // Creating user list without setting type in oneof user_list field, or - // creating/updating read-only user list types is not allowed. - USER_LIST_MUTATE_NOT_SUPPORTED = 16; - - // Rule is invalid. - INVALID_RULE = 17; - - // The specified date range is empty. - INVALID_DATE_RANGE = 27; - - // A UserList which is privacy sensitive or legal rejected cannot be mutated - // by external users. - CAN_NOT_MUTATE_SENSITIVE_USERLIST = 28; - - // Maximum number of rulebased user lists a customer can have. - MAX_NUM_RULEBASED_USERLISTS = 29; - - // BasicUserList's billable record field cannot be modified once it is set. - CANNOT_MODIFY_BILLABLE_RECORD_COUNT = 30; - - // crm_based_user_list.app_id field must be set when upload_key_type is - // MOBILE_ADVERTISING_ID. - APP_ID_NOT_SET = 31; - - // Name of the user list is reserved for system generated lists and cannot - // be used. - USERLIST_NAME_IS_RESERVED_FOR_SYSTEM_LIST = 32; - - // Advertiser needs to be on the allow-list to use remarketing lists created - // from advertiser uploaded data (e.g., Customer Match lists). - ADVERTISER_NOT_WHITELISTED_FOR_USING_UPLOADED_DATA = 33; - - // The provided rule_type is not supported for the user list. - RULE_TYPE_IS_NOT_SUPPORTED = 34; - - // Similar user list cannot be used as a logical user list operand. - CAN_NOT_ADD_A_SIMILAR_USERLIST_AS_LOGICAL_LIST_OPERAND = 35; - - // Logical user list should not have a mix of CRM based user list and other - // types of lists in its rules. - CAN_NOT_MIX_CRM_BASED_IN_LOGICAL_LIST_WITH_OTHER_LISTS = 36; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/youtube_video_registration_error.proto b/third_party/googleapis/google/ads/googleads/v3/errors/youtube_video_registration_error.proto deleted file mode 100644 index 1e189778e..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/errors/youtube_video_registration_error.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.errors; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; -option java_multiple_files = true; -option java_outer_classname = "YoutubeVideoRegistrationErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; - -// Proto file describing YouTube video registration errors. - -// Container for enum describing YouTube video registration errors. -message YoutubeVideoRegistrationErrorEnum { - // Enum describing YouTube video registration errors. - enum YoutubeVideoRegistrationError { - // Enum unspecified. - UNSPECIFIED = 0; - - // The received error code is not known in this version. - UNKNOWN = 1; - - // Video to be registered wasn't found. - VIDEO_NOT_FOUND = 2; - - // Video to be registered is not accessible (e.g. private). - VIDEO_NOT_ACCESSIBLE = 3; - - // Video to be registered is not eligible (e.g. mature content). - VIDEO_NOT_ELIGIBLE = 4; - } - - -} diff --git a/third_party/googleapis/google/ads/googleads/v3/googleads_gapic.yaml b/third_party/googleapis/google/ads/googleads/v3/googleads_gapic.yaml deleted file mode 100644 index f8a3ee9f9..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/googleads_gapic.yaml +++ /dev/null @@ -1,26 +0,0 @@ -type: com.google.api.codegen.ConfigProto -config_schema_version: 2.0.0 -language_settings: - csharp: - package_name: Google.Ads.GoogleAds.V3.Services - go: - package_name: google.golang.org/google/ads/googleads/v3/services - java: - package_name: com.google.ads.googleads.v3.services - nodejs: - package_name: v3.services - php: - package_name: Google\Ads\Googleads\V3\Services - python: - package_name: google.ads.googleads_v3.gapic.services - ruby: - package_name: Google::Ads::Googleads::V3::Services -interfaces: -- name: google.ads.googleads.v3.services.OfflineUserDataJobService - methods: - - name: RunOfflineUserDataJob - long_running: - initial_poll_delay_millis: 300000 - max_poll_delay_millis: 3600000 - poll_delay_multiplier: 1.25 - total_poll_timeout_millis: 43200000 diff --git a/third_party/googleapis/google/ads/googleads/v3/googleads_grpc_service_config.json b/third_party/googleapis/google/ads/googleads/v3/googleads_grpc_service_config.json deleted file mode 100644 index 0d4298221..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/googleads_grpc_service_config.json +++ /dev/null @@ -1,354 +0,0 @@ -{ - "methodConfig": [ - { - "name": [ - { - "service": "google.ads.googleads.v3.services.AccountBudgetProposalService" - }, - { - "service": "google.ads.googleads.v3.services.AccountBudgetService" - }, - { - "service": "google.ads.googleads.v3.services.AdGroupAdAssetViewService" - }, - { - "service": "google.ads.googleads.v3.services.AdGroupAdLabelService" - }, - { - "service": "google.ads.googleads.v3.services.AdGroupAdService" - }, - { - "service": "google.ads.googleads.v3.services.AdGroupAudienceViewService" - }, - { - "service": "google.ads.googleads.v3.services.AdGroupBidModifierService" - }, - { - "service": "google.ads.googleads.v3.services.AdGroupCriterionLabelService" - }, - { - "service": "google.ads.googleads.v3.services.AdGroupCriterionService" - }, - { - "service": "google.ads.googleads.v3.services.AdGroupCriterionSimulationService" - }, - { - "service": "google.ads.googleads.v3.services.AdGroupExtensionSettingService" - }, - { - "service": "google.ads.googleads.v3.services.AdGroupFeedService" - }, - { - "service": "google.ads.googleads.v3.services.AdGroupLabelService" - }, - { - "service": "google.ads.googleads.v3.services.AdGroupService" - }, - { - "service": "google.ads.googleads.v3.services.AdGroupSimulationService" - }, - { - "service": "google.ads.googleads.v3.services.AdParameterService" - }, - { - "service": "google.ads.googleads.v3.services.AdScheduleViewService" - }, - { - "service": "google.ads.googleads.v3.services.AdService" - }, - { - "service": "google.ads.googleads.v3.services.AgeRangeViewService" - }, - { - "service": "google.ads.googleads.v3.services.AssetService" - }, - { - "service": "google.ads.googleads.v3.services.BiddingStrategyService" - }, - { - "service": "google.ads.googleads.v3.services.BillingSetupService" - }, - { - "service": "google.ads.googleads.v3.services.CampaignAudienceViewService" - }, - { - "service": "google.ads.googleads.v3.services.CampaignBidModifierService" - }, - { - "service": "google.ads.googleads.v3.services.CampaignBudgetService" - }, - { - "service": "google.ads.googleads.v3.services.CampaignCriterionService" - }, - { - "service": "google.ads.googleads.v3.services.CampaignCriterionSimulationService" - }, - { - "service": "google.ads.googleads.v3.services.CampaignDraftService" - }, - { - "service": "google.ads.googleads.v3.services.CampaignExperimentService" - }, - { - "service": "google.ads.googleads.v3.services.CampaignExtensionSettingService" - }, - { - "service": "google.ads.googleads.v3.services.CampaignFeedService" - }, - { - "service": "google.ads.googleads.v3.services.CampaignLabelService" - }, - { - "service": "google.ads.googleads.v3.services.CampaignService" - }, - { - "service": "google.ads.googleads.v3.services.CampaignSharedSetService" - }, - { - "service": "google.ads.googleads.v3.services.CarrierConstantService" - }, - { - "service": "google.ads.googleads.v3.services.ChangeStatusService" - }, - { - "service": "google.ads.googleads.v3.services.ClickViewService" - }, - { - "service": "google.ads.googleads.v3.services.ConversionActionService" - }, - { - "service": "google.ads.googleads.v3.services.ConversionAdjustmentUploadService" - }, - { - "service": "google.ads.googleads.v3.services.ConversionUploadService" - }, - { - "service": "google.ads.googleads.v3.services.CurrencyConstantService" - }, - { - "service": "google.ads.googleads.v3.services.CustomInterestService" - }, - { - "service": "google.ads.googleads.v3.services.CustomerClientLinkService" - }, - { - "service": "google.ads.googleads.v3.services.CustomerClientService" - }, - { - "service": "google.ads.googleads.v3.services.CustomerExtensionSettingService" - }, - { - "service": "google.ads.googleads.v3.services.CustomerFeedService" - }, - { - "service": "google.ads.googleads.v3.services.CustomerLabelService" - }, - { - "service": "google.ads.googleads.v3.services.CustomerManagerLinkService" - }, - { - "service": "google.ads.googleads.v3.services.CustomerNegativeCriterionService" - }, - { - "service": "google.ads.googleads.v3.services.CustomerService" - }, - { - "service": "google.ads.googleads.v3.services.DetailPlacementViewService" - }, - { - "service": "google.ads.googleads.v3.services.DisplayKeywordViewService" - }, - { - "service": "google.ads.googleads.v3.services.DistanceViewService" - }, - { - "service": "google.ads.googleads.v3.services.DomainCategoryService" - }, - { - "service": "google.ads.googleads.v3.services.DynamicSearchAdsSearchTermViewService" - }, - { - "service": "google.ads.googleads.v3.services.ExpandedLandingPageViewService" - }, - { - "service": "google.ads.googleads.v3.services.ExtensionFeedItemService" - }, - { - "service": "google.ads.googleads.v3.services.FeedItemService" - }, - { - "service": "google.ads.googleads.v3.services.FeedItemTargetService" - }, - { - "service": "google.ads.googleads.v3.services.FeedMappingService" - }, - { - "service": "google.ads.googleads.v3.services.FeedPlaceholderViewService" - }, - { - "service": "google.ads.googleads.v3.services.FeedService" - }, - { - "service": "google.ads.googleads.v3.services.GenderViewService" - }, - { - "service": "google.ads.googleads.v3.services.GeoTargetConstantService" - }, - { - "service": "google.ads.googleads.v3.services.GeographicViewService" - }, - { - "service": "google.ads.googleads.v3.services.GoogleAdsFieldService" - }, - { - "service": "google.ads.googleads.v3.services.GoogleAdsService" - }, - { - "service": "google.ads.googleads.v3.services.GroupPlacementViewService" - }, - { - "service": "google.ads.googleads.v3.services.HotelGroupViewService" - }, - { - "service": "google.ads.googleads.v3.services.HotelPerformanceViewService" - }, - { - "service": "google.ads.googleads.v3.services.InvoiceService" - }, - { - "service": "google.ads.googleads.v3.services.KeywordPlanAdGroupService" - }, - { - "service": "google.ads.googleads.v3.services.KeywordPlanCampaignService" - }, - { - "service": "google.ads.googleads.v3.services.KeywordPlanIdeaService" - }, - { - "service": "google.ads.googleads.v3.services.KeywordPlanKeywordService" - }, - { - "service": "google.ads.googleads.v3.services.KeywordPlanNegativeKeywordService" - }, - { - "service": "google.ads.googleads.v3.services.KeywordPlanService" - }, - { - "service": "google.ads.googleads.v3.services.KeywordViewService" - }, - { - "service": "google.ads.googleads.v3.services.LabelService" - }, - { - "service": "google.ads.googleads.v3.services.LandingPageViewService" - }, - { - "service": "google.ads.googleads.v3.services.LanguageConstantService" - }, - { - "service": "google.ads.googleads.v3.services.LocationViewService" - }, - { - "service": "google.ads.googleads.v3.services.ManagedPlacementViewService" - }, - { - "service": "google.ads.googleads.v3.services.MediaFileService" - }, - { - "service": "google.ads.googleads.v3.services.MerchantCenterLinkService" - }, - { - "service": "google.ads.googleads.v3.services.MobileAppCategoryConstantService" - }, - { - "service": "google.ads.googleads.v3.services.MobileDeviceConstantService" - }, - { - "service": "google.ads.googleads.v3.services.MutateJobService" - }, - { - "service": "google.ads.googleads.v3.services.OfflineUserDataJobService" - }, - { - "service": "google.ads.googleads.v3.services.OperatingSystemVersionConstantService" - }, - { - "service": "google.ads.googleads.v3.services.PaidOrganicSearchTermViewService" - }, - { - "service": "google.ads.googleads.v3.services.ParentalStatusViewService" - }, - { - "service": "google.ads.googleads.v3.services.PaymentsAccountService" - }, - { - "service": "google.ads.googleads.v3.services.ProductBiddingCategoryConstantService" - }, - { - "service": "google.ads.googleads.v3.services.ProductGroupViewService" - }, - { - "service": "google.ads.googleads.v3.services.ReachPlanService" - }, - { - "service": "google.ads.googleads.v3.services.RecommendationService" - }, - { - "service": "google.ads.googleads.v3.services.RemarketingActionService" - }, - { - "service": "google.ads.googleads.v3.services.SearchTermViewService" - }, - { - "service": "google.ads.googleads.v3.services.SharedCriterionService" - }, - { - "service": "google.ads.googleads.v3.services.SharedSetService" - }, - { - "service": "google.ads.googleads.v3.services.ShoppingPerformanceViewService" - }, - { - "service": "google.ads.googleads.v3.services.TopicConstantService" - }, - { - "service": "google.ads.googleads.v3.services.TopicViewService" - }, - { - "service": "google.ads.googleads.v3.services.UserDataService" - }, - { - "service": "google.ads.googleads.v3.services.UserInterestService" - }, - { - "service": "google.ads.googleads.v3.services.UserListService" - }, - { - "service": "google.ads.googleads.v3.services.UserLocationViewService" - }, - { - "service": "google.ads.googleads.v3.services.VideoService" - } - ], - "timeout": "3600s", - "retryPolicy": { - "initialBackoff": "5s", - "maxBackoff": "60s", - "backoffMultiplier": 1.3, - "retryableStatusCodes": [ - "UNAVAILABLE", - "DEADLINE_EXCEEDED" - ] - } - }, - { - "name": [ - { - "service": "google.ads.googleads.v3.services.GoogleAdsService", - "method": "SearchStream" - } - ], - "timeout": "3600s" - } - ] -} diff --git a/third_party/googleapis/google/ads/googleads/v3/googleads_v3.yaml b/third_party/googleapis/google/ads/googleads/v3/googleads_v3.yaml deleted file mode 100644 index f4d879290..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/googleads_v3.yaml +++ /dev/null @@ -1,457 +0,0 @@ -type: google.api.Service -config_version: 3 -name: googleads.googleapis.com -title: Google Ads API - -apis: -- name: google.ads.googleads.v3.services.AccountBudgetProposalService -- name: google.ads.googleads.v3.services.AccountBudgetService -- name: google.ads.googleads.v3.services.AdGroupAdAssetViewService -- name: google.ads.googleads.v3.services.AdGroupAdLabelService -- name: google.ads.googleads.v3.services.AdGroupAdService -- name: google.ads.googleads.v3.services.AdGroupAudienceViewService -- name: google.ads.googleads.v3.services.AdGroupBidModifierService -- name: google.ads.googleads.v3.services.AdGroupCriterionLabelService -- name: google.ads.googleads.v3.services.AdGroupCriterionService -- name: google.ads.googleads.v3.services.AdGroupCriterionSimulationService -- name: google.ads.googleads.v3.services.AdGroupExtensionSettingService -- name: google.ads.googleads.v3.services.AdGroupFeedService -- name: google.ads.googleads.v3.services.AdGroupLabelService -- name: google.ads.googleads.v3.services.AdGroupService -- name: google.ads.googleads.v3.services.AdGroupSimulationService -- name: google.ads.googleads.v3.services.AdParameterService -- name: google.ads.googleads.v3.services.AdScheduleViewService -- name: google.ads.googleads.v3.services.AdService -- name: google.ads.googleads.v3.services.AgeRangeViewService -- name: google.ads.googleads.v3.services.AssetService -- name: google.ads.googleads.v3.services.BiddingStrategyService -- name: google.ads.googleads.v3.services.BillingSetupService -- name: google.ads.googleads.v3.services.CampaignAudienceViewService -- name: google.ads.googleads.v3.services.CampaignBidModifierService -- name: google.ads.googleads.v3.services.CampaignBudgetService -- name: google.ads.googleads.v3.services.CampaignCriterionService -- name: google.ads.googleads.v3.services.CampaignCriterionSimulationService -- name: google.ads.googleads.v3.services.CampaignDraftService -- name: google.ads.googleads.v3.services.CampaignExperimentService -- name: google.ads.googleads.v3.services.CampaignExtensionSettingService -- name: google.ads.googleads.v3.services.CampaignFeedService -- name: google.ads.googleads.v3.services.CampaignLabelService -- name: google.ads.googleads.v3.services.CampaignService -- name: google.ads.googleads.v3.services.CampaignSharedSetService -- name: google.ads.googleads.v3.services.CarrierConstantService -- name: google.ads.googleads.v3.services.ChangeStatusService -- name: google.ads.googleads.v3.services.ClickViewService -- name: google.ads.googleads.v3.services.ConversionActionService -- name: google.ads.googleads.v3.services.ConversionAdjustmentUploadService -- name: google.ads.googleads.v3.services.ConversionUploadService -- name: google.ads.googleads.v3.services.CurrencyConstantService -- name: google.ads.googleads.v3.services.CustomInterestService -- name: google.ads.googleads.v3.services.CustomerClientLinkService -- name: google.ads.googleads.v3.services.CustomerClientService -- name: google.ads.googleads.v3.services.CustomerExtensionSettingService -- name: google.ads.googleads.v3.services.CustomerFeedService -- name: google.ads.googleads.v3.services.CustomerLabelService -- name: google.ads.googleads.v3.services.CustomerManagerLinkService -- name: google.ads.googleads.v3.services.CustomerNegativeCriterionService -- name: google.ads.googleads.v3.services.CustomerService -- name: google.ads.googleads.v3.services.DetailPlacementViewService -- name: google.ads.googleads.v3.services.DisplayKeywordViewService -- name: google.ads.googleads.v3.services.DistanceViewService -- name: google.ads.googleads.v3.services.DomainCategoryService -- name: google.ads.googleads.v3.services.DynamicSearchAdsSearchTermViewService -- name: google.ads.googleads.v3.services.ExpandedLandingPageViewService -- name: google.ads.googleads.v3.services.ExtensionFeedItemService -- name: google.ads.googleads.v3.services.FeedItemService -- name: google.ads.googleads.v3.services.FeedItemTargetService -- name: google.ads.googleads.v3.services.FeedMappingService -- name: google.ads.googleads.v3.services.FeedPlaceholderViewService -- name: google.ads.googleads.v3.services.FeedService -- name: google.ads.googleads.v3.services.GenderViewService -- name: google.ads.googleads.v3.services.GeoTargetConstantService -- name: google.ads.googleads.v3.services.GeographicViewService -- name: google.ads.googleads.v3.services.GoogleAdsFieldService -- name: google.ads.googleads.v3.services.GoogleAdsService -- name: google.ads.googleads.v3.services.GroupPlacementViewService -- name: google.ads.googleads.v3.services.HotelGroupViewService -- name: google.ads.googleads.v3.services.HotelPerformanceViewService -- name: google.ads.googleads.v3.services.InvoiceService -- name: google.ads.googleads.v3.services.KeywordPlanAdGroupService -- name: google.ads.googleads.v3.services.KeywordPlanCampaignService -- name: google.ads.googleads.v3.services.KeywordPlanIdeaService -- name: google.ads.googleads.v3.services.KeywordPlanKeywordService -- name: google.ads.googleads.v3.services.KeywordPlanNegativeKeywordService -- name: google.ads.googleads.v3.services.KeywordPlanService -- name: google.ads.googleads.v3.services.KeywordViewService -- name: google.ads.googleads.v3.services.LabelService -- name: google.ads.googleads.v3.services.LandingPageViewService -- name: google.ads.googleads.v3.services.LanguageConstantService -- name: google.ads.googleads.v3.services.LocationViewService -- name: google.ads.googleads.v3.services.ManagedPlacementViewService -- name: google.ads.googleads.v3.services.MediaFileService -- name: google.ads.googleads.v3.services.MerchantCenterLinkService -- name: google.ads.googleads.v3.services.MobileAppCategoryConstantService -- name: google.ads.googleads.v3.services.MobileDeviceConstantService -- name: google.ads.googleads.v3.services.MutateJobService -- name: google.ads.googleads.v3.services.OfflineUserDataJobService -- name: google.ads.googleads.v3.services.OperatingSystemVersionConstantService -- name: google.ads.googleads.v3.services.PaidOrganicSearchTermViewService -- name: google.ads.googleads.v3.services.ParentalStatusViewService -- name: google.ads.googleads.v3.services.PaymentsAccountService -- name: google.ads.googleads.v3.services.ProductBiddingCategoryConstantService -- name: google.ads.googleads.v3.services.ProductGroupViewService -- name: google.ads.googleads.v3.services.ReachPlanService -- name: google.ads.googleads.v3.services.RecommendationService -- name: google.ads.googleads.v3.services.RemarketingActionService -- name: google.ads.googleads.v3.services.SearchTermViewService -- name: google.ads.googleads.v3.services.SharedCriterionService -- name: google.ads.googleads.v3.services.SharedSetService -- name: google.ads.googleads.v3.services.ShoppingPerformanceViewService -- name: google.ads.googleads.v3.services.TopicConstantService -- name: google.ads.googleads.v3.services.TopicViewService -- name: google.ads.googleads.v3.services.UserDataService -- name: google.ads.googleads.v3.services.UserInterestService -- name: google.ads.googleads.v3.services.UserListService -- name: google.ads.googleads.v3.services.UserLocationViewService -- name: google.ads.googleads.v3.services.VideoService - -types: -- name: google.ads.googleads.v3.errors.GoogleAdsFailure -- name: google.ads.googleads.v3.resources.MutateJob.MutateJobMetadata -- name: google.ads.googleads.v3.services.CreateCampaignExperimentMetadata - -documentation: - summary: 'Manage your Google Ads accounts, campaigns, and reports with this API.' - overview: |- - The Google Ads API enables an app to integrate with the Google Ads - platform. You can efficiently retrieve and change your Google Ads data - using the API, making it ideal for managing large or complex accounts and - campaigns. - -backend: - rules: - - selector: google.ads.googleads.v3.services.AccountBudgetProposalService.GetAccountBudgetProposal - deadline: 60.0 - - selector: google.ads.googleads.v3.services.AccountBudgetProposalService.MutateAccountBudgetProposal - deadline: 60.0 - - selector: google.ads.googleads.v3.services.AccountBudgetService.GetAccountBudget - deadline: 60.0 - - selector: google.ads.googleads.v3.services.AdGroupAdAssetViewService.GetAdGroupAdAssetView - deadline: 60.0 - - selector: google.ads.googleads.v3.services.AdGroupAdLabelService.GetAdGroupAdLabel - deadline: 60.0 - - selector: google.ads.googleads.v3.services.AdGroupAdLabelService.MutateAdGroupAdLabels - deadline: 60.0 - - selector: google.ads.googleads.v3.services.AdGroupAdService.GetAdGroupAd - deadline: 60.0 - - selector: google.ads.googleads.v3.services.AdGroupAdService.MutateAdGroupAds - deadline: 60.0 - - selector: google.ads.googleads.v3.services.AdGroupAudienceViewService.GetAdGroupAudienceView - deadline: 60.0 - - selector: google.ads.googleads.v3.services.AdGroupBidModifierService.GetAdGroupBidModifier - deadline: 60.0 - - selector: google.ads.googleads.v3.services.AdGroupBidModifierService.MutateAdGroupBidModifiers - deadline: 60.0 - - selector: google.ads.googleads.v3.services.AdGroupCriterionLabelService.GetAdGroupCriterionLabel - deadline: 60.0 - - selector: google.ads.googleads.v3.services.AdGroupCriterionLabelService.MutateAdGroupCriterionLabels - deadline: 60.0 - - selector: google.ads.googleads.v3.services.AdGroupCriterionService.GetAdGroupCriterion - deadline: 60.0 - - selector: google.ads.googleads.v3.services.AdGroupCriterionService.MutateAdGroupCriteria - deadline: 60.0 - - selector: google.ads.googleads.v3.services.AdGroupCriterionSimulationService.GetAdGroupCriterionSimulation - deadline: 60.0 - - selector: google.ads.googleads.v3.services.AdGroupExtensionSettingService.GetAdGroupExtensionSetting - deadline: 60.0 - - selector: google.ads.googleads.v3.services.AdGroupExtensionSettingService.MutateAdGroupExtensionSettings - deadline: 60.0 - - selector: google.ads.googleads.v3.services.AdGroupFeedService.GetAdGroupFeed - deadline: 60.0 - - selector: google.ads.googleads.v3.services.AdGroupFeedService.MutateAdGroupFeeds - deadline: 60.0 - - selector: google.ads.googleads.v3.services.AdGroupLabelService.GetAdGroupLabel - deadline: 60.0 - - selector: google.ads.googleads.v3.services.AdGroupLabelService.MutateAdGroupLabels - deadline: 60.0 - - selector: google.ads.googleads.v3.services.AdGroupService.GetAdGroup - deadline: 60.0 - - selector: google.ads.googleads.v3.services.AdGroupService.MutateAdGroups - deadline: 60.0 - - selector: google.ads.googleads.v3.services.AdGroupSimulationService.GetAdGroupSimulation - deadline: 60.0 - - selector: google.ads.googleads.v3.services.AdParameterService.GetAdParameter - deadline: 60.0 - - selector: google.ads.googleads.v3.services.AdParameterService.MutateAdParameters - deadline: 60.0 - - selector: google.ads.googleads.v3.services.AdScheduleViewService.GetAdScheduleView - deadline: 60.0 - - selector: google.ads.googleads.v3.services.AdService.GetAd - deadline: 60.0 - - selector: google.ads.googleads.v3.services.AdService.MutateAds - deadline: 60.0 - - selector: google.ads.googleads.v3.services.AgeRangeViewService.GetAgeRangeView - deadline: 60.0 - - selector: google.ads.googleads.v3.services.AssetService.GetAsset - deadline: 60.0 - - selector: google.ads.googleads.v3.services.AssetService.MutateAssets - deadline: 60.0 - - selector: google.ads.googleads.v3.services.BiddingStrategyService.GetBiddingStrategy - deadline: 60.0 - - selector: google.ads.googleads.v3.services.BiddingStrategyService.MutateBiddingStrategies - deadline: 60.0 - - selector: google.ads.googleads.v3.services.BillingSetupService.GetBillingSetup - deadline: 60.0 - - selector: google.ads.googleads.v3.services.BillingSetupService.MutateBillingSetup - deadline: 60.0 - - selector: google.ads.googleads.v3.services.CampaignAudienceViewService.GetCampaignAudienceView - deadline: 60.0 - - selector: google.ads.googleads.v3.services.CampaignBidModifierService.GetCampaignBidModifier - deadline: 60.0 - - selector: google.ads.googleads.v3.services.CampaignBidModifierService.MutateCampaignBidModifiers - deadline: 60.0 - - selector: google.ads.googleads.v3.services.CampaignBudgetService.GetCampaignBudget - deadline: 60.0 - - selector: google.ads.googleads.v3.services.CampaignBudgetService.MutateCampaignBudgets - deadline: 60.0 - - selector: google.ads.googleads.v3.services.CampaignCriterionService.GetCampaignCriterion - deadline: 60.0 - - selector: google.ads.googleads.v3.services.CampaignCriterionService.MutateCampaignCriteria - deadline: 60.0 - - selector: google.ads.googleads.v3.services.CampaignCriterionSimulationService.GetCampaignCriterionSimulation - deadline: 60.0 - - selector: 'google.ads.googleads.v3.services.CampaignDraftService.*' - deadline: 60.0 - - selector: 'google.ads.googleads.v3.services.CampaignExperimentService.*' - deadline: 60.0 - - selector: google.ads.googleads.v3.services.CampaignExtensionSettingService.GetCampaignExtensionSetting - deadline: 60.0 - - selector: google.ads.googleads.v3.services.CampaignExtensionSettingService.MutateCampaignExtensionSettings - deadline: 60.0 - - selector: google.ads.googleads.v3.services.CampaignFeedService.GetCampaignFeed - deadline: 60.0 - - selector: google.ads.googleads.v3.services.CampaignFeedService.MutateCampaignFeeds - deadline: 60.0 - - selector: google.ads.googleads.v3.services.CampaignLabelService.GetCampaignLabel - deadline: 60.0 - - selector: google.ads.googleads.v3.services.CampaignLabelService.MutateCampaignLabels - deadline: 60.0 - - selector: google.ads.googleads.v3.services.CampaignService.GetCampaign - deadline: 60.0 - - selector: google.ads.googleads.v3.services.CampaignService.MutateCampaigns - deadline: 60.0 - - selector: google.ads.googleads.v3.services.CampaignSharedSetService.GetCampaignSharedSet - deadline: 60.0 - - selector: google.ads.googleads.v3.services.CampaignSharedSetService.MutateCampaignSharedSets - deadline: 60.0 - - selector: google.ads.googleads.v3.services.CarrierConstantService.GetCarrierConstant - deadline: 60.0 - - selector: google.ads.googleads.v3.services.ChangeStatusService.GetChangeStatus - deadline: 60.0 - - selector: google.ads.googleads.v3.services.ClickViewService.GetClickView - deadline: 60.0 - - selector: google.ads.googleads.v3.services.ConversionActionService.GetConversionAction - deadline: 60.0 - - selector: google.ads.googleads.v3.services.ConversionActionService.MutateConversionActions - deadline: 60.0 - - selector: google.ads.googleads.v3.services.ConversionAdjustmentUploadService.UploadConversionAdjustments - deadline: 60.0 - - selector: google.ads.googleads.v3.services.ConversionUploadService.UploadCallConversions - deadline: 60.0 - - selector: google.ads.googleads.v3.services.ConversionUploadService.UploadClickConversions - deadline: 60.0 - - selector: google.ads.googleads.v3.services.CurrencyConstantService.GetCurrencyConstant - deadline: 60.0 - - selector: google.ads.googleads.v3.services.CustomInterestService.GetCustomInterest - deadline: 60.0 - - selector: google.ads.googleads.v3.services.CustomInterestService.MutateCustomInterests - deadline: 60.0 - - selector: google.ads.googleads.v3.services.CustomerClientLinkService.GetCustomerClientLink - deadline: 60.0 - - selector: google.ads.googleads.v3.services.CustomerClientLinkService.MutateCustomerClientLink - deadline: 60.0 - - selector: google.ads.googleads.v3.services.CustomerClientService.GetCustomerClient - deadline: 60.0 - - selector: google.ads.googleads.v3.services.CustomerExtensionSettingService.GetCustomerExtensionSetting - deadline: 60.0 - - selector: google.ads.googleads.v3.services.CustomerExtensionSettingService.MutateCustomerExtensionSettings - deadline: 60.0 - - selector: google.ads.googleads.v3.services.CustomerFeedService.GetCustomerFeed - deadline: 60.0 - - selector: google.ads.googleads.v3.services.CustomerFeedService.MutateCustomerFeeds - deadline: 60.0 - - selector: google.ads.googleads.v3.services.CustomerLabelService.GetCustomerLabel - deadline: 60.0 - - selector: google.ads.googleads.v3.services.CustomerLabelService.MutateCustomerLabels - deadline: 60.0 - - selector: 'google.ads.googleads.v3.services.CustomerManagerLinkService.*' - deadline: 60.0 - - selector: google.ads.googleads.v3.services.CustomerNegativeCriterionService.GetCustomerNegativeCriterion - deadline: 60.0 - - selector: google.ads.googleads.v3.services.CustomerNegativeCriterionService.MutateCustomerNegativeCriteria - deadline: 60.0 - - selector: 'google.ads.googleads.v3.services.CustomerService.*' - deadline: 60.0 - - selector: google.ads.googleads.v3.services.DetailPlacementViewService.GetDetailPlacementView - deadline: 60.0 - - selector: google.ads.googleads.v3.services.DisplayKeywordViewService.GetDisplayKeywordView - deadline: 60.0 - - selector: google.ads.googleads.v3.services.DistanceViewService.GetDistanceView - deadline: 60.0 - - selector: google.ads.googleads.v3.services.DomainCategoryService.GetDomainCategory - deadline: 60.0 - - selector: google.ads.googleads.v3.services.DynamicSearchAdsSearchTermViewService.GetDynamicSearchAdsSearchTermView - deadline: 60.0 - - selector: google.ads.googleads.v3.services.ExpandedLandingPageViewService.GetExpandedLandingPageView - deadline: 60.0 - - selector: google.ads.googleads.v3.services.ExtensionFeedItemService.GetExtensionFeedItem - deadline: 60.0 - - selector: google.ads.googleads.v3.services.ExtensionFeedItemService.MutateExtensionFeedItems - deadline: 60.0 - - selector: google.ads.googleads.v3.services.FeedItemService.GetFeedItem - deadline: 60.0 - - selector: google.ads.googleads.v3.services.FeedItemService.MutateFeedItems - deadline: 60.0 - - selector: google.ads.googleads.v3.services.FeedItemTargetService.GetFeedItemTarget - deadline: 60.0 - - selector: google.ads.googleads.v3.services.FeedItemTargetService.MutateFeedItemTargets - deadline: 60.0 - - selector: google.ads.googleads.v3.services.FeedMappingService.GetFeedMapping - deadline: 60.0 - - selector: google.ads.googleads.v3.services.FeedMappingService.MutateFeedMappings - deadline: 60.0 - - selector: google.ads.googleads.v3.services.FeedPlaceholderViewService.GetFeedPlaceholderView - deadline: 60.0 - - selector: google.ads.googleads.v3.services.FeedService.GetFeed - deadline: 60.0 - - selector: google.ads.googleads.v3.services.FeedService.MutateFeeds - deadline: 60.0 - - selector: google.ads.googleads.v3.services.GenderViewService.GetGenderView - deadline: 60.0 - - selector: google.ads.googleads.v3.services.GeoTargetConstantService.GetGeoTargetConstant - deadline: 60.0 - - selector: google.ads.googleads.v3.services.GeoTargetConstantService.SuggestGeoTargetConstants - deadline: 60.0 - - selector: google.ads.googleads.v3.services.GeographicViewService.GetGeographicView - deadline: 60.0 - - selector: google.ads.googleads.v3.services.GoogleAdsFieldService.GetGoogleAdsField - deadline: 600.0 - - selector: google.ads.googleads.v3.services.GoogleAdsFieldService.SearchGoogleAdsFields - deadline: 600.0 - - selector: google.ads.googleads.v3.services.GoogleAdsService.Mutate - deadline: 600.0 - - selector: google.ads.googleads.v3.services.GoogleAdsService.Search - deadline: 3600.0 - - selector: google.ads.googleads.v3.services.GoogleAdsService.SearchStream - deadline: 3600.0 - - selector: google.ads.googleads.v3.services.GroupPlacementViewService.GetGroupPlacementView - deadline: 60.0 - - selector: google.ads.googleads.v3.services.HotelGroupViewService.GetHotelGroupView - deadline: 60.0 - - selector: google.ads.googleads.v3.services.HotelPerformanceViewService.GetHotelPerformanceView - deadline: 60.0 - - selector: google.ads.googleads.v3.services.InvoiceService.ListInvoices - deadline: 60.0 - - selector: google.ads.googleads.v3.services.KeywordPlanAdGroupService.GetKeywordPlanAdGroup - deadline: 60.0 - - selector: google.ads.googleads.v3.services.KeywordPlanAdGroupService.MutateKeywordPlanAdGroups - deadline: 60.0 - - selector: google.ads.googleads.v3.services.KeywordPlanCampaignService.GetKeywordPlanCampaign - deadline: 60.0 - - selector: google.ads.googleads.v3.services.KeywordPlanCampaignService.MutateKeywordPlanCampaigns - deadline: 60.0 - - selector: google.ads.googleads.v3.services.KeywordPlanIdeaService.GenerateKeywordIdeas - deadline: 600.0 - - selector: google.ads.googleads.v3.services.KeywordPlanKeywordService.GetKeywordPlanKeyword - deadline: 60.0 - - selector: google.ads.googleads.v3.services.KeywordPlanKeywordService.MutateKeywordPlanKeywords - deadline: 60.0 - - selector: google.ads.googleads.v3.services.KeywordPlanNegativeKeywordService.GetKeywordPlanNegativeKeyword - deadline: 60.0 - - selector: google.ads.googleads.v3.services.KeywordPlanNegativeKeywordService.MutateKeywordPlanNegativeKeywords - deadline: 60.0 - - selector: google.ads.googleads.v3.services.KeywordPlanService.GenerateForecastMetrics - deadline: 600.0 - - selector: google.ads.googleads.v3.services.KeywordPlanService.GenerateHistoricalMetrics - deadline: 600.0 - - selector: google.ads.googleads.v3.services.KeywordPlanService.GetKeywordPlan - deadline: 60.0 - - selector: google.ads.googleads.v3.services.KeywordPlanService.MutateKeywordPlans - deadline: 60.0 - - selector: google.ads.googleads.v3.services.KeywordViewService.GetKeywordView - deadline: 60.0 - - selector: google.ads.googleads.v3.services.LabelService.GetLabel - deadline: 60.0 - - selector: google.ads.googleads.v3.services.LabelService.MutateLabels - deadline: 60.0 - - selector: google.ads.googleads.v3.services.LandingPageViewService.GetLandingPageView - deadline: 60.0 - - selector: google.ads.googleads.v3.services.LanguageConstantService.GetLanguageConstant - deadline: 60.0 - - selector: google.ads.googleads.v3.services.LocationViewService.GetLocationView - deadline: 60.0 - - selector: google.ads.googleads.v3.services.ManagedPlacementViewService.GetManagedPlacementView - deadline: 60.0 - - selector: google.ads.googleads.v3.services.MediaFileService.GetMediaFile - deadline: 60.0 - - selector: google.ads.googleads.v3.services.MediaFileService.MutateMediaFiles - deadline: 60.0 - - selector: 'google.ads.googleads.v3.services.MerchantCenterLinkService.*' - deadline: 60.0 - - selector: google.ads.googleads.v3.services.MobileAppCategoryConstantService.GetMobileAppCategoryConstant - deadline: 60.0 - - selector: google.ads.googleads.v3.services.MobileDeviceConstantService.GetMobileDeviceConstant - deadline: 60.0 - - selector: 'google.ads.googleads.v3.services.MutateJobService.*' - deadline: 60.0 - - selector: 'google.ads.googleads.v3.services.OfflineUserDataJobService.*' - deadline: 600.0 - - selector: google.ads.googleads.v3.services.OperatingSystemVersionConstantService.GetOperatingSystemVersionConstant - deadline: 60.0 - - selector: google.ads.googleads.v3.services.PaidOrganicSearchTermViewService.GetPaidOrganicSearchTermView - deadline: 60.0 - - selector: google.ads.googleads.v3.services.ParentalStatusViewService.GetParentalStatusView - deadline: 60.0 - - selector: google.ads.googleads.v3.services.PaymentsAccountService.ListPaymentsAccounts - deadline: 60.0 - - selector: google.ads.googleads.v3.services.ProductBiddingCategoryConstantService.GetProductBiddingCategoryConstant - deadline: 60.0 - - selector: google.ads.googleads.v3.services.ProductGroupViewService.GetProductGroupView - deadline: 60.0 - - selector: 'google.ads.googleads.v3.services.ReachPlanService.*' - deadline: 600.0 - - selector: 'google.ads.googleads.v3.services.RecommendationService.*' - deadline: 600.0 - - selector: google.ads.googleads.v3.services.RemarketingActionService.GetRemarketingAction - deadline: 60.0 - - selector: google.ads.googleads.v3.services.RemarketingActionService.MutateRemarketingActions - deadline: 60.0 - - selector: google.ads.googleads.v3.services.SearchTermViewService.GetSearchTermView - deadline: 60.0 - - selector: google.ads.googleads.v3.services.SharedCriterionService.GetSharedCriterion - deadline: 60.0 - - selector: google.ads.googleads.v3.services.SharedCriterionService.MutateSharedCriteria - deadline: 60.0 - - selector: google.ads.googleads.v3.services.SharedSetService.GetSharedSet - deadline: 60.0 - - selector: google.ads.googleads.v3.services.SharedSetService.MutateSharedSets - deadline: 60.0 - - selector: google.ads.googleads.v3.services.ShoppingPerformanceViewService.GetShoppingPerformanceView - deadline: 60.0 - - selector: google.ads.googleads.v3.services.TopicConstantService.GetTopicConstant - deadline: 60.0 - - selector: google.ads.googleads.v3.services.TopicViewService.GetTopicView - deadline: 60.0 - - selector: google.ads.googleads.v3.services.UserDataService.UploadUserData - deadline: 600.0 - - selector: google.ads.googleads.v3.services.UserInterestService.GetUserInterest - deadline: 60.0 - - selector: google.ads.googleads.v3.services.UserListService.GetUserList - deadline: 60.0 - - selector: google.ads.googleads.v3.services.UserListService.MutateUserLists - deadline: 60.0 - - selector: google.ads.googleads.v3.services.UserLocationViewService.GetUserLocationView - deadline: 60.0 - - selector: google.ads.googleads.v3.services.VideoService.GetVideo - deadline: 60.0 - - selector: 'google.longrunning.Operations.*' - deadline: 60.0 diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/account_budget.proto b/third_party/googleapis/google/ads/googleads/v3/resources/account_budget.proto deleted file mode 100644 index 1b12d891e..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/account_budget.proto +++ /dev/null @@ -1,253 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/enums/account_budget_proposal_type.proto"; -import "google/ads/googleads/v3/enums/account_budget_status.proto"; -import "google/ads/googleads/v3/enums/spending_limit_type.proto"; -import "google/ads/googleads/v3/enums/time_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "AccountBudgetProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the AccountBudget resource. - -// An account-level budget. It contains information about the budget itself, -// as well as the most recently approved changes to the budget and proposed -// changes that are pending approval. The proposed changes that are pending -// approval, if any, are found in 'pending_proposal'. Effective details about -// the budget are found in fields prefixed 'approved_', 'adjusted_' and those -// without a prefix. Since some effective details may differ from what the user -// had originally requested (e.g. spending limit), these differences are -// juxtaposed via 'proposed_', 'approved_', and possibly 'adjusted_' fields. -// -// This resource is mutated using AccountBudgetProposal and cannot be mutated -// directly. A budget may have at most one pending proposal at any given time. -// It is read through pending_proposal. -// -// Once approved, a budget may be subject to adjustments, such as credit -// adjustments. Adjustments create differences between the 'approved' and -// 'adjusted' fields, which would otherwise be identical. -message AccountBudget { - option (google.api.resource) = { - type: "googleads.googleapis.com/AccountBudget" - pattern: "customers/{customer}/accountBudgets/{account_budget}" - }; - - // A pending proposal associated with the enclosing account-level budget, - // if applicable. - message PendingAccountBudgetProposal { - // Output only. The resource name of the proposal. - // AccountBudgetProposal resource names have the form: - // - // `customers/{customer_id}/accountBudgetProposals/{account_budget_proposal_id}` - google.protobuf.StringValue account_budget_proposal = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AccountBudgetProposal" - } - ]; - - // Output only. The type of this proposal, e.g. END to end the budget associated - // with this proposal. - google.ads.googleads.v3.enums.AccountBudgetProposalTypeEnum.AccountBudgetProposalType proposal_type = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The name to assign to the account-level budget. - google.protobuf.StringValue name = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The start time in yyyy-MM-dd HH:mm:ss format. - google.protobuf.StringValue start_date_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. A purchase order number is a value that helps users reference this budget - // in their monthly invoices. - google.protobuf.StringValue purchase_order_number = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Notes associated with this budget. - google.protobuf.StringValue notes = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The time when this account-level budget proposal was created. - // Formatted as yyyy-MM-dd HH:mm:ss. - google.protobuf.StringValue creation_date_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The end time of the account-level budget. - oneof end_time { - // Output only. The end time in yyyy-MM-dd HH:mm:ss format. - google.protobuf.StringValue end_date_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The end time as a well-defined type, e.g. FOREVER. - google.ads.googleads.v3.enums.TimeTypeEnum.TimeType end_time_type = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // The spending limit. - oneof spending_limit { - // Output only. The spending limit in micros. One million is equivalent to - // one unit. - google.protobuf.Int64Value spending_limit_micros = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The spending limit as a well-defined type, e.g. INFINITE. - google.ads.googleads.v3.enums.SpendingLimitTypeEnum.SpendingLimitType spending_limit_type = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - } - - // Output only. The resource name of the account-level budget. - // AccountBudget resource names have the form: - // - // `customers/{customer_id}/accountBudgets/{account_budget_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AccountBudget" - } - ]; - - // Output only. The ID of the account-level budget. - google.protobuf.Int64Value id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The resource name of the billing setup associated with this account-level - // budget. BillingSetup resource names have the form: - // - // `customers/{customer_id}/billingSetups/{billing_setup_id}` - google.protobuf.StringValue billing_setup = 3 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/BillingSetup" - } - ]; - - // Output only. The status of this account-level budget. - google.ads.googleads.v3.enums.AccountBudgetStatusEnum.AccountBudgetStatus status = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The name of the account-level budget. - google.protobuf.StringValue name = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The proposed start time of the account-level budget in - // yyyy-MM-dd HH:mm:ss format. If a start time type of NOW was proposed, - // this is the time of request. - google.protobuf.StringValue proposed_start_date_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The approved start time of the account-level budget in yyyy-MM-dd HH:mm:ss - // format. - // - // For example, if a new budget is approved after the proposed start time, - // the approved start time is the time of approval. - google.protobuf.StringValue approved_start_date_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The total adjustments amount. - // - // An example of an adjustment is courtesy credits. - google.protobuf.Int64Value total_adjustments_micros = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The value of Ads that have been served, in micros. - // - // This includes overdelivery costs, in which case a credit might be - // automatically applied to the budget (see total_adjustments_micros). - google.protobuf.Int64Value amount_served_micros = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. A purchase order number is a value that helps users reference this budget - // in their monthly invoices. - google.protobuf.StringValue purchase_order_number = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Notes associated with the budget. - google.protobuf.StringValue notes = 21 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The pending proposal to modify this budget, if applicable. - PendingAccountBudgetProposal pending_proposal = 22 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The proposed end time of the account-level budget. - oneof proposed_end_time { - // Output only. The proposed end time in yyyy-MM-dd HH:mm:ss format. - google.protobuf.StringValue proposed_end_date_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The proposed end time as a well-defined type, e.g. FOREVER. - google.ads.googleads.v3.enums.TimeTypeEnum.TimeType proposed_end_time_type = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // The approved end time of the account-level budget. - // - // For example, if a budget's end time is updated and the proposal is approved - // after the proposed end time, the approved end time is the time of approval. - oneof approved_end_time { - // Output only. The approved end time in yyyy-MM-dd HH:mm:ss format. - google.protobuf.StringValue approved_end_date_time = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The approved end time as a well-defined type, e.g. FOREVER. - google.ads.googleads.v3.enums.TimeTypeEnum.TimeType approved_end_time_type = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // The proposed spending limit. - oneof proposed_spending_limit { - // Output only. The proposed spending limit in micros. One million is equivalent to - // one unit. - google.protobuf.Int64Value proposed_spending_limit_micros = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The proposed spending limit as a well-defined type, e.g. INFINITE. - google.ads.googleads.v3.enums.SpendingLimitTypeEnum.SpendingLimitType proposed_spending_limit_type = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // The approved spending limit. - // - // For example, if the amount already spent by the account exceeds the - // proposed spending limit at the time the proposal is approved, the approved - // spending limit is set to the amount already spent. - oneof approved_spending_limit { - // Output only. The approved spending limit in micros. One million is equivalent to - // one unit. This will only be populated if the proposed spending limit - // is finite, and will always be greater than or equal to the - // proposed spending limit. - google.protobuf.Int64Value approved_spending_limit_micros = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. 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.v3.enums.SpendingLimitTypeEnum.SpendingLimitType approved_spending_limit_type = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // The spending limit after adjustments have been applied. Adjustments are - // stored in total_adjustments_micros. - // - // This value has the final say on how much the account is allowed to spend. - oneof adjusted_spending_limit { - // Output only. The adjusted spending limit in micros. One million is equivalent to - // one unit. - // - // If the approved spending limit is finite, the adjusted - // spending limit may vary depending on the types of adjustments applied - // to this budget, if applicable. - // - // The different kinds of adjustments are described here: - // https://support.google.com/google-ads/answer/1704323 - // - // For example, a debit adjustment reduces how much the account is - // allowed to spend. - google.protobuf.Int64Value adjusted_spending_limit_micros = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The adjusted spending limit as a well-defined type, e.g. INFINITE. - // 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.v3.enums.SpendingLimitTypeEnum.SpendingLimitType adjusted_spending_limit_type = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/account_budget_proposal.proto b/third_party/googleapis/google/ads/googleads/v3/resources/account_budget_proposal.proto deleted file mode 100644 index 5c0c635d4..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/account_budget_proposal.proto +++ /dev/null @@ -1,161 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/enums/account_budget_proposal_status.proto"; -import "google/ads/googleads/v3/enums/account_budget_proposal_type.proto"; -import "google/ads/googleads/v3/enums/spending_limit_type.proto"; -import "google/ads/googleads/v3/enums/time_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "AccountBudgetProposalProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the AccountBudgetProposal resource. - -// An account-level budget proposal. -// -// All fields prefixed with 'proposed' may not necessarily be applied directly. -// For example, proposed spending limits may be adjusted before their -// application. This is true if the 'proposed' field has an 'approved' -// counterpart, e.g. spending limits. -// -// Please note that the proposal type (proposal_type) changes which fields are -// required and which must remain empty. -message AccountBudgetProposal { - option (google.api.resource) = { - type: "googleads.googleapis.com/AccountBudgetProposal" - pattern: "customers/{customer}/accountBudgetProposals/{account_budget_proposal}" - }; - - // Immutable. The resource name of the proposal. - // AccountBudgetProposal resource names have the form: - // - // `customers/{customer_id}/accountBudgetProposals/{account_budget_proposal_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AccountBudgetProposal" - } - ]; - - // Output only. The ID of the proposal. - google.protobuf.Int64Value id = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. The resource name of the billing setup associated with this proposal. - google.protobuf.StringValue billing_setup = 2 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/BillingSetup" - } - ]; - - // Immutable. The resource name of the account-level budget associated with this - // proposal. - google.protobuf.StringValue account_budget = 3 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AccountBudget" - } - ]; - - // Immutable. The type of this proposal, e.g. END to end the budget associated with this - // proposal. - google.ads.googleads.v3.enums.AccountBudgetProposalTypeEnum.AccountBudgetProposalType proposal_type = 4 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. The status of this proposal. - // When a new proposal is created, the status defaults to PENDING. - google.ads.googleads.v3.enums.AccountBudgetProposalStatusEnum.AccountBudgetProposalStatus status = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. The name to assign to the account-level budget. - google.protobuf.StringValue proposed_name = 5 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. The approved start date time in yyyy-mm-dd hh:mm:ss format. - google.protobuf.StringValue approved_start_date_time = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. A purchase order number is a value that enables the user to help them - // reference this budget in their monthly invoices. - google.protobuf.StringValue proposed_purchase_order_number = 12 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Notes associated with this budget. - google.protobuf.StringValue proposed_notes = 13 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. The date time when this account-level budget proposal was created, which is - // not the same as its approval date time, if applicable. - google.protobuf.StringValue creation_date_time = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The date time when this account-level budget was approved, if applicable. - google.protobuf.StringValue approval_date_time = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The proposed start date time of the account-level budget, which cannot be - // in the past. - oneof proposed_start_time { - // Immutable. The proposed start date time in yyyy-mm-dd hh:mm:ss format. - google.protobuf.StringValue proposed_start_date_time = 18 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. The proposed start date time as a well-defined type, e.g. NOW. - google.ads.googleads.v3.enums.TimeTypeEnum.TimeType proposed_start_time_type = 7 [(google.api.field_behavior) = IMMUTABLE]; - } - - // The proposed end date time of the account-level budget, which cannot be in - // the past. - oneof proposed_end_time { - // Immutable. The proposed end date time in yyyy-mm-dd hh:mm:ss format. - google.protobuf.StringValue proposed_end_date_time = 19 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. The proposed end date time as a well-defined type, e.g. FOREVER. - google.ads.googleads.v3.enums.TimeTypeEnum.TimeType proposed_end_time_type = 9 [(google.api.field_behavior) = IMMUTABLE]; - } - - // The approved end date time of the account-level budget. - oneof approved_end_time { - // Output only. The approved end date time in yyyy-mm-dd hh:mm:ss format. - google.protobuf.StringValue approved_end_date_time = 21 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The approved end date time as a well-defined type, e.g. FOREVER. - google.ads.googleads.v3.enums.TimeTypeEnum.TimeType approved_end_time_type = 22 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // The proposed spending limit. - oneof proposed_spending_limit { - // Immutable. The proposed spending limit in micros. One million is equivalent to - // one unit. - google.protobuf.Int64Value proposed_spending_limit_micros = 10 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. The proposed spending limit as a well-defined type, e.g. INFINITE. - google.ads.googleads.v3.enums.SpendingLimitTypeEnum.SpendingLimitType proposed_spending_limit_type = 11 [(google.api.field_behavior) = IMMUTABLE]; - } - - // The approved spending limit. - oneof approved_spending_limit { - // Output only. The approved spending limit in micros. One million is equivalent to - // one unit. - google.protobuf.Int64Value approved_spending_limit_micros = 23 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The approved spending limit as a well-defined type, e.g. INFINITE. - google.ads.googleads.v3.enums.SpendingLimitTypeEnum.SpendingLimitType approved_spending_limit_type = 24 [(google.api.field_behavior) = OUTPUT_ONLY]; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/ad.proto b/third_party/googleapis/google/ads/googleads/v3/resources/ad.proto deleted file mode 100644 index 096452108..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/ad.proto +++ /dev/null @@ -1,178 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/common/ad_type_infos.proto"; -import "google/ads/googleads/v3/common/custom_parameter.proto"; -import "google/ads/googleads/v3/common/final_app_url.proto"; -import "google/ads/googleads/v3/common/url_collection.proto"; -import "google/ads/googleads/v3/enums/ad_type.proto"; -import "google/ads/googleads/v3/enums/device.proto"; -import "google/ads/googleads/v3/enums/system_managed_entity_source.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "AdProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the ad type. - -// An ad. -message Ad { - option (google.api.resource) = { - type: "googleads.googleapis.com/Ad" - pattern: "customers/{customer}/ads/{ad}" - }; - - // Immutable. The resource name of the ad. - // Ad resource names have the form: - // - // `customers/{customer_id}/ads/{ad_id}` - string resource_name = 37 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Ad" - } - ]; - - // Output only. The ID of the ad. - google.protobuf.Int64Value id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The list of possible final URLs after all cross-domain redirects for the - // ad. - repeated google.protobuf.StringValue final_urls = 2; - - // A list of final app URLs that will be used on mobile if the user has the - // specific app installed. - repeated google.ads.googleads.v3.common.FinalAppUrl final_app_urls = 35; - - // The list of possible final mobile URLs after all cross-domain redirects - // for the ad. - repeated google.protobuf.StringValue final_mobile_urls = 16; - - // The URL template for constructing a tracking URL. - google.protobuf.StringValue tracking_url_template = 12; - - // The suffix to use when constructing a final URL. - google.protobuf.StringValue final_url_suffix = 38; - - // The list of mappings that can be used to substitute custom parameter tags - // in a `tracking_url_template`, `final_urls`, or `mobile_final_urls`. - // For mutates, please use url custom parameter operations. - repeated google.ads.googleads.v3.common.CustomParameter url_custom_parameters = 10; - - // The URL that appears in the ad description for some ad formats. - google.protobuf.StringValue display_url = 4; - - // Output only. The type of ad. - google.ads.googleads.v3.enums.AdTypeEnum.AdType type = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Indicates if this ad was automatically added by Google Ads and not by a - // user. For example, this could happen when ads are automatically created as - // suggestions for new ads based on knowledge of how existing ads are - // performing. - google.protobuf.BoolValue added_by_google_ads = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The device preference for the ad. You can only specify a preference for - // mobile devices. When this preference is set the ad will be preferred over - // other ads when being displayed on a mobile device. The ad can still be - // displayed on other device types, e.g. if no other ads are available. - // If unspecified (no device preference), all devices are targeted. - // This is only supported by some ad types. - google.ads.googleads.v3.enums.DeviceEnum.Device device_preference = 20; - - // Additional URLs for the ad that are tagged with a unique identifier that - // can be referenced from other fields in the ad. - repeated google.ads.googleads.v3.common.UrlCollection url_collections = 26; - - // Immutable. The name of the ad. This is only used to be able to identify the ad. It - // does not need to be unique and does not affect the served ad. - google.protobuf.StringValue name = 23 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. If this ad is system managed, then this field will indicate the source. - // This field is read-only. - google.ads.googleads.v3.enums.SystemManagedResourceSourceEnum.SystemManagedResourceSource system_managed_resource_source = 27 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Details pertinent to the ad type. Exactly one value must be set. - oneof ad_data { - // Immutable. Details pertaining to a text ad. - google.ads.googleads.v3.common.TextAdInfo text_ad = 6 [(google.api.field_behavior) = IMMUTABLE]; - - // Details pertaining to an expanded text ad. - google.ads.googleads.v3.common.ExpandedTextAdInfo expanded_text_ad = 7; - - // Details pertaining to a call-only ad. - google.ads.googleads.v3.common.CallOnlyAdInfo call_only_ad = 13; - - // Immutable. Details pertaining to an Expanded Dynamic Search Ad. - // This type of ad has its headline, final URLs, and display URL - // 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.v3.common.ExpandedDynamicSearchAdInfo expanded_dynamic_search_ad = 14 [(google.api.field_behavior) = IMMUTABLE]; - - // Details pertaining to a hotel ad. - google.ads.googleads.v3.common.HotelAdInfo hotel_ad = 15; - - // Details pertaining to a Smart Shopping ad. - google.ads.googleads.v3.common.ShoppingSmartAdInfo shopping_smart_ad = 17; - - // Details pertaining to a Shopping product ad. - google.ads.googleads.v3.common.ShoppingProductAdInfo shopping_product_ad = 18; - - // Immutable. Details pertaining to a Gmail ad. - google.ads.googleads.v3.common.GmailAdInfo gmail_ad = 21 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Details pertaining to an Image ad. - google.ads.googleads.v3.common.ImageAdInfo image_ad = 22 [(google.api.field_behavior) = IMMUTABLE]; - - // Details pertaining to a Video ad. - google.ads.googleads.v3.common.VideoAdInfo video_ad = 24; - - // Details pertaining to a responsive search ad. - google.ads.googleads.v3.common.ResponsiveSearchAdInfo responsive_search_ad = 25; - - // Details pertaining to a legacy responsive display ad. - google.ads.googleads.v3.common.LegacyResponsiveDisplayAdInfo legacy_responsive_display_ad = 28; - - // Details pertaining to an app ad. - google.ads.googleads.v3.common.AppAdInfo app_ad = 29; - - // Immutable. Details pertaining to a legacy app install ad. - google.ads.googleads.v3.common.LegacyAppInstallAdInfo legacy_app_install_ad = 30 [(google.api.field_behavior) = IMMUTABLE]; - - // Details pertaining to a responsive display ad. - google.ads.googleads.v3.common.ResponsiveDisplayAdInfo responsive_display_ad = 31; - - // Details pertaining to a display upload ad. - google.ads.googleads.v3.common.DisplayUploadAdInfo display_upload_ad = 33; - - // Details pertaining to an app engagement ad. - google.ads.googleads.v3.common.AppEngagementAdInfo app_engagement_ad = 34; - - // Details pertaining to a Shopping Comparison Listing ad. - google.ads.googleads.v3.common.ShoppingComparisonListingAdInfo shopping_comparison_listing_ad = 36; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/ad_group.proto b/third_party/googleapis/google/ads/googleads/v3/resources/ad_group.proto deleted file mode 100644 index 271f2954f..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/ad_group.proto +++ /dev/null @@ -1,177 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/common/custom_parameter.proto"; -import "google/ads/googleads/v3/common/explorer_auto_optimizer_setting.proto"; -import "google/ads/googleads/v3/common/targeting_setting.proto"; -import "google/ads/googleads/v3/enums/ad_group_ad_rotation_mode.proto"; -import "google/ads/googleads/v3/enums/ad_group_status.proto"; -import "google/ads/googleads/v3/enums/ad_group_type.proto"; -import "google/ads/googleads/v3/enums/bidding_source.proto"; -import "google/ads/googleads/v3/enums/targeting_dimension.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the ad group resource. - -// An ad group. -message AdGroup { - option (google.api.resource) = { - type: "googleads.googleapis.com/AdGroup" - pattern: "customers/{customer}/adGroups/{ad_group}" - }; - - // Immutable. The resource name of the ad group. - // Ad group resource names have the form: - // - // `customers/{customer_id}/adGroups/{ad_group_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroup" - } - ]; - - // Output only. The ID of the ad group. - google.protobuf.Int64Value id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The name of the ad group. - // - // This field is required and should not be empty when creating new ad - // groups. - // - // It must contain fewer than 255 UTF-8 full-width characters. - // - // It must not contain any null (code point 0x0), NL line feed - // (code point 0xA) or carriage return (code point 0xD) characters. - google.protobuf.StringValue name = 4; - - // The status of the ad group. - google.ads.googleads.v3.enums.AdGroupStatusEnum.AdGroupStatus status = 5; - - // Immutable. The type of the ad group. - google.ads.googleads.v3.enums.AdGroupTypeEnum.AdGroupType type = 12 [(google.api.field_behavior) = IMMUTABLE]; - - // The ad rotation mode of the ad group. - google.ads.googleads.v3.enums.AdGroupAdRotationModeEnum.AdGroupAdRotationMode ad_rotation_mode = 22; - - // Output only. 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 - // experiment ad group does not have a base ad group, then this field is null. - // - // For base ad groups, this field equals the ad group resource name. - // - // This field is read-only. - google.protobuf.StringValue base_ad_group = 18 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroup" - } - ]; - - // The URL template for constructing a tracking URL. - google.protobuf.StringValue tracking_url_template = 13; - - // 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.v3.common.CustomParameter url_custom_parameters = 6; - - // Immutable. The campaign to which the ad group belongs. - google.protobuf.StringValue campaign = 10 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Campaign" - } - ]; - - // The maximum CPC (cost-per-click) bid. - google.protobuf.Int64Value cpc_bid_micros = 14; - - // The maximum CPM (cost-per-thousand viewable impressions) bid. - google.protobuf.Int64Value cpm_bid_micros = 15; - - // The target CPA (cost-per-acquisition). - google.protobuf.Int64Value target_cpa_micros = 27; - - // Output only. The CPV (cost-per-view) bid. - google.protobuf.Int64Value cpv_bid_micros = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Average amount in micros that the advertiser is willing to pay for every - // thousand times the ad is shown. - google.protobuf.Int64Value target_cpm_micros = 26; - - // The target ROAS (return-on-ad-spend) override. If the ad group's campaign - // bidding strategy is a standard Target ROAS strategy, then this field - // overrides the target ROAS specified in the campaign's bidding strategy. - // Otherwise, this value is ignored. - google.protobuf.DoubleValue target_roas = 30; - - // The percent cpc bid amount, expressed as a fraction of the advertised price - // for some good or service. The valid range for the fraction is [0,1) and the - // value stored here is 1,000,000 * [fraction]. - google.protobuf.Int64Value percent_cpc_bid_micros = 20; - - // Settings for the Display Campaign Optimizer, initially termed "Explorer". - google.ads.googleads.v3.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.v3.enums.TargetingDimensionEnum.TargetingDimension display_custom_bid_dimension = 23; - - // URL template for appending params to Final URL. - google.protobuf.StringValue final_url_suffix = 24; - - // Setting for targeting related features. - google.ads.googleads.v3.common.TargetingSetting targeting_setting = 25; - - // Output only. The effective target CPA (cost-per-acquisition). - // This field is read-only. - google.protobuf.Int64Value effective_target_cpa_micros = 28 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Source of the effective target CPA. - // This field is read-only. - google.ads.googleads.v3.enums.BiddingSourceEnum.BiddingSource effective_target_cpa_source = 29 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The effective target ROAS (return-on-ad-spend). - // This field is read-only. - google.protobuf.DoubleValue effective_target_roas = 31 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Source of the effective target ROAS. - // This field is read-only. - google.ads.googleads.v3.enums.BiddingSourceEnum.BiddingSource effective_target_roas_source = 32 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The resource names of labels attached to this ad group. - repeated google.protobuf.StringValue labels = 33 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupLabel" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/ad_group_ad.proto b/third_party/googleapis/google/ads/googleads/v3/resources/ad_group_ad.proto deleted file mode 100644 index 3210f075e..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/ad_group_ad.proto +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/common/policy.proto"; -import "google/ads/googleads/v3/enums/ad_group_ad_status.proto"; -import "google/ads/googleads/v3/enums/ad_strength.proto"; -import "google/ads/googleads/v3/enums/policy_approval_status.proto"; -import "google/ads/googleads/v3/enums/policy_review_status.proto"; -import "google/ads/googleads/v3/resources/ad.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupAdProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the ad group ad resource. - -// An ad group ad. -message AdGroupAd { - option (google.api.resource) = { - type: "googleads.googleapis.com/AdGroupAd" - pattern: "customers/{customer}/adGroupAds/{ad_group_ad}" - }; - - // Immutable. The resource name of the ad. - // Ad group ad resource names have the form: - // - // `customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupAd" - } - ]; - - // The status of the ad. - google.ads.googleads.v3.enums.AdGroupAdStatusEnum.AdGroupAdStatus status = 3; - - // Immutable. The ad group to which the ad belongs. - google.protobuf.StringValue ad_group = 4 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroup" - } - ]; - - // Immutable. The ad. - Ad ad = 5 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. Policy information for the ad. - AdGroupAdPolicySummary policy_summary = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Overall ad strength for this ad group ad. - google.ads.googleads.v3.enums.AdStrengthEnum.AdStrength ad_strength = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Contains policy information for an ad. -message AdGroupAdPolicySummary { - // Output only. The list of policy findings for this ad. - repeated google.ads.googleads.v3.common.PolicyTopicEntry policy_topic_entries = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Where in the review process this ad is. - google.ads.googleads.v3.enums.PolicyReviewStatusEnum.PolicyReviewStatus review_status = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The overall approval status of this ad, calculated based on the status of - // its individual policy topic entries. - google.ads.googleads.v3.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus approval_status = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/ad_group_ad_asset_view.proto b/third_party/googleapis/google/ads/googleads/v3/resources/ad_group_ad_asset_view.proto deleted file mode 100644 index c14f45b6c..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/ad_group_ad_asset_view.proto +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/common/policy.proto"; -import "google/ads/googleads/v3/enums/asset_field_type.proto"; -import "google/ads/googleads/v3/enums/asset_performance_label.proto"; -import "google/ads/googleads/v3/enums/policy_approval_status.proto"; -import "google/ads/googleads/v3/enums/policy_review_status.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupAdAssetViewProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the ad group ad asset view resource. - -// A link between an AdGroupAd and an Asset. -message AdGroupAdAssetView { - option (google.api.resource) = { - type: "googleads.googleapis.com/AdGroupAdAssetView" - pattern: "customers/{customer}/adGroupAdAssets/{ad_group_ad_asset_view}" - }; - - // Output only. The resource name of the ad group ad asset view. - // Ad group ad asset view resource names have the form (Before V4): - // - // `customers/{customer_id}/adGroupAdAssets/{AdGroupAdAsset.ad_group_id}~{AdGroupAdAsset.ad.ad_id}~{AdGroupAdAsset.asset_id}~{AdGroupAdAsset.field_type}` - // - // Ad group ad asset view resource names have the form (Beginning from V4): - // - // `customers/{customer_id}/adGroupAdAssetViews/{AdGroupAdAsset.ad_group_id}~{AdGroupAdAsset.ad_id}~{AdGroupAdAsset.asset_id}~{AdGroupAdAsset.field_type}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupAdAssetView" - } - ]; - - // Output only. The ad group ad to which the asset is linked. - google.protobuf.StringValue ad_group_ad = 5 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupAd" - } - ]; - - // Output only. The asset which is linked to the ad group ad. - google.protobuf.StringValue asset = 6 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Asset" - } - ]; - - // Output only. Role that the asset takes in the ad. - google.ads.googleads.v3.enums.AssetFieldTypeEnum.AssetFieldType field_type = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Policy information for the ad group ad asset. - AdGroupAdAssetPolicySummary policy_summary = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Performance of an asset linkage. - google.ads.googleads.v3.enums.AssetPerformanceLabelEnum.AssetPerformanceLabel performance_label = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Contains policy information for an ad group ad asset. -message AdGroupAdAssetPolicySummary { - // Output only. The list of policy findings for the ad group ad asset. - repeated google.ads.googleads.v3.common.PolicyTopicEntry policy_topic_entries = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Where in the review process this ad group ad asset is. - google.ads.googleads.v3.enums.PolicyReviewStatusEnum.PolicyReviewStatus review_status = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The overall approval status of this ad group ad asset, calculated based on - // the status of its individual policy topic entries. - google.ads.googleads.v3.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus approval_status = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/ad_group_ad_label.proto b/third_party/googleapis/google/ads/googleads/v3/resources/ad_group_ad_label.proto deleted file mode 100644 index 21e1f6719..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/ad_group_ad_label.proto +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupAdLabelProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the ad group ad label resource. - -// A relationship between an ad group ad and a label. -message AdGroupAdLabel { - option (google.api.resource) = { - type: "googleads.googleapis.com/AdGroupAdLabel" - pattern: "customers/{customer}/adGroupAdLabels/{ad_group_ad_label}" - }; - - // Immutable. The resource name of the ad group ad label. - // Ad group ad label resource names have the form: - // `customers/{customer_id}/adGroupAdLabels/{ad_group_id}~{ad_id}~{label_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupAdLabel" - } - ]; - - // Immutable. The ad group ad to which the label is attached. - google.protobuf.StringValue ad_group_ad = 2 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupAd" - } - ]; - - // Immutable. The label assigned to the ad group ad. - google.protobuf.StringValue label = 3 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Label" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/ad_group_audience_view.proto b/third_party/googleapis/google/ads/googleads/v3/resources/ad_group_audience_view.proto deleted file mode 100644 index db25b8126..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/ad_group_audience_view.proto +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupAudienceViewProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the ad group audience view resource. - -// An ad group audience view. -// Includes performance data from interests and remarketing lists for Display -// Network and YouTube Network ads, and remarketing lists for search ads (RLSA), -// aggregated at the audience level. -message AdGroupAudienceView { - option (google.api.resource) = { - type: "googleads.googleapis.com/AdGroupAudienceView" - pattern: "customers/{customer}/adGroupAudienceViews/{ad_group_audience_view}" - }; - - // Output only. The resource name of the ad group audience view. - // Ad group audience view resource names have the form: - // - // `customers/{customer_id}/adGroupAudienceViews/{ad_group_id}~{criterion_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupAudienceView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/ad_group_bid_modifier.proto b/third_party/googleapis/google/ads/googleads/v3/resources/ad_group_bid_modifier.proto deleted file mode 100644 index 9b4857025..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/ad_group_bid_modifier.proto +++ /dev/null @@ -1,110 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/common/criteria.proto"; -import "google/ads/googleads/v3/enums/bid_modifier_source.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupBidModifierProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the ad group bid modifier resource. - -// Represents an ad group bid modifier. -message AdGroupBidModifier { - option (google.api.resource) = { - type: "googleads.googleapis.com/AdGroupBidModifier" - pattern: "customers/{customer}/adGroupBidModifiers/{ad_group_bid_modifier}" - }; - - // Immutable. The resource name of the ad group bid modifier. - // Ad group bid modifier resource names have the form: - // - // `customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupBidModifier" - } - ]; - - // Immutable. The ad group to which this criterion belongs. - google.protobuf.StringValue ad_group = 2 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroup" - } - ]; - - // Output only. The ID of the criterion to bid modify. - // - // This field is ignored for mutates. - google.protobuf.Int64Value criterion_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The modifier for the bid when the criterion matches. The modifier must be - // in the range: 0.1 - 10.0. The range is 1.0 - 6.0 for PreferredContent. - // Use 0 to opt out of a Device type. - google.protobuf.DoubleValue bid_modifier = 4; - - // Output only. The base ad group from which this draft/trial adgroup bid modifier was - // created. If ad_group is a base ad group then this field will be equal to - // ad_group. If the ad group was created in the draft or trial and has no - // corresponding base ad group, then this field will be null. - // This field is readonly. - google.protobuf.StringValue base_ad_group = 9 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroup" - } - ]; - - // Output only. Bid modifier source. - google.ads.googleads.v3.enums.BidModifierSourceEnum.BidModifierSource bid_modifier_source = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The criterion of this ad group bid modifier. - // - // Required in create operations starting in V5. - oneof criterion { - // Immutable. Criterion for hotel date selection (default dates vs. user selected). - google.ads.googleads.v3.common.HotelDateSelectionTypeInfo hotel_date_selection_type = 5 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Criterion for number of days prior to the stay the booking is being made. - google.ads.googleads.v3.common.HotelAdvanceBookingWindowInfo hotel_advance_booking_window = 6 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Criterion for length of hotel stay in nights. - google.ads.googleads.v3.common.HotelLengthOfStayInfo hotel_length_of_stay = 7 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Criterion for day of the week the booking is for. - google.ads.googleads.v3.common.HotelCheckInDayInfo hotel_check_in_day = 8 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. A device criterion. - google.ads.googleads.v3.common.DeviceInfo device = 11 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. A preferred content criterion. - google.ads.googleads.v3.common.PreferredContentInfo preferred_content = 12 [(google.api.field_behavior) = IMMUTABLE]; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/ad_group_criterion.proto b/third_party/googleapis/google/ads/googleads/v3/resources/ad_group_criterion.proto deleted file mode 100644 index 3c5511dd0..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/ad_group_criterion.proto +++ /dev/null @@ -1,265 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/common/criteria.proto"; -import "google/ads/googleads/v3/common/custom_parameter.proto"; -import "google/ads/googleads/v3/enums/ad_group_criterion_approval_status.proto"; -import "google/ads/googleads/v3/enums/ad_group_criterion_status.proto"; -import "google/ads/googleads/v3/enums/bidding_source.proto"; -import "google/ads/googleads/v3/enums/criterion_system_serving_status.proto"; -import "google/ads/googleads/v3/enums/criterion_type.proto"; -import "google/ads/googleads/v3/enums/quality_score_bucket.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupCriterionProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the ad group criterion resource. - -// An ad group criterion. -message AdGroupCriterion { - option (google.api.resource) = { - type: "googleads.googleapis.com/AdGroupCriterion" - pattern: "customers/{customer}/adGroupCriteria/{ad_group_criterion}" - }; - - // A container for ad group criterion quality information. - message QualityInfo { - // Output only. The quality score. - // - // This field may not be populated if Google does not have enough - // information to determine a value. - google.protobuf.Int32Value quality_score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The performance of the ad compared to other advertisers. - google.ads.googleads.v3.enums.QualityScoreBucketEnum.QualityScoreBucket creative_quality_score = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The quality score of the landing page. - google.ads.googleads.v3.enums.QualityScoreBucketEnum.QualityScoreBucket post_click_quality_score = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The click-through rate compared to that of other advertisers. - google.ads.googleads.v3.enums.QualityScoreBucketEnum.QualityScoreBucket search_predicted_ctr = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // Estimates for criterion bids at various positions. - message PositionEstimates { - // Output only. The estimate of the CPC bid required for ad to be shown on first - // page of search results. - google.protobuf.Int64Value first_page_cpc_micros = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The estimate of the CPC bid required for ad to be displayed in first - // position, at the top of the first page of search results. - google.protobuf.Int64Value first_position_cpc_micros = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The estimate of the CPC bid required for ad to be displayed at the top - // of the first page of search results. - google.protobuf.Int64Value top_of_page_cpc_micros = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Estimate of how many clicks per week you might get by changing your - // keyword bid to the value in first_position_cpc_micros. - google.protobuf.Int64Value estimated_add_clicks_at_first_position_cpc = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Estimate of how your cost per week might change when changing your - // keyword bid to the value in first_position_cpc_micros. - google.protobuf.Int64Value estimated_add_cost_at_first_position_cpc = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // Immutable. The resource name of the ad group criterion. - // Ad group criterion resource names have the form: - // - // `customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupCriterion" - } - ]; - - // Output only. The ID of the criterion. - // - // This field is ignored for mutates. - google.protobuf.Int64Value criterion_id = 26 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The status of the criterion. - // - // This is the status of the ad group criterion entity, set by the client. - // Note: UI reports may incorporate additional information that affects - // whether a criterion is eligible to run. In some cases a criterion that's - // REMOVED in the API can still show as enabled in the UI. - // For example, campaigns by default show to users of all age ranges unless - // excluded. The UI will show each age range as "enabled", since they're - // eligible to see the ads; but AdGroupCriterion.status will show "removed", - // since no positive criterion was added. - google.ads.googleads.v3.enums.AdGroupCriterionStatusEnum.AdGroupCriterionStatus status = 3; - - // Output only. Information regarding the quality of the criterion. - QualityInfo quality_info = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. The ad group to which the criterion belongs. - google.protobuf.StringValue ad_group = 5 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroup" - } - ]; - - // Output only. The type of the criterion. - google.ads.googleads.v3.enums.CriterionTypeEnum.CriterionType type = 25 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. Whether to target (`false`) or exclude (`true`) the criterion. - // - // This field is immutable. To switch a criterion from positive to negative, - // remove then re-add it. - google.protobuf.BoolValue negative = 31 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. Serving status of the criterion. - google.ads.googleads.v3.enums.CriterionSystemServingStatusEnum.CriterionSystemServingStatus system_serving_status = 52 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Approval status of the criterion. - google.ads.googleads.v3.enums.AdGroupCriterionApprovalStatusEnum.AdGroupCriterionApprovalStatus approval_status = 53 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // 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. - google.protobuf.DoubleValue bid_modifier = 44; - - // The CPC (cost-per-click) bid. - google.protobuf.Int64Value cpc_bid_micros = 16; - - // The CPM (cost-per-thousand viewable impressions) bid. - google.protobuf.Int64Value cpm_bid_micros = 17; - - // The CPV (cost-per-view) bid. - google.protobuf.Int64Value cpv_bid_micros = 24; - - // The CPC bid amount, expressed as a fraction of the advertised price - // for some good or service. The valid range for the fraction is [0,1) and the - // value stored here is 1,000,000 * [fraction]. - google.protobuf.Int64Value percent_cpc_bid_micros = 33; - - // Output only. The effective CPC (cost-per-click) bid. - google.protobuf.Int64Value effective_cpc_bid_micros = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The effective CPM (cost-per-thousand viewable impressions) bid. - google.protobuf.Int64Value effective_cpm_bid_micros = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The effective CPV (cost-per-view) bid. - google.protobuf.Int64Value effective_cpv_bid_micros = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The effective Percent CPC bid amount. - google.protobuf.Int64Value effective_percent_cpc_bid_micros = 34 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Source of the effective CPC bid. - google.ads.googleads.v3.enums.BiddingSourceEnum.BiddingSource effective_cpc_bid_source = 21 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Source of the effective CPM bid. - google.ads.googleads.v3.enums.BiddingSourceEnum.BiddingSource effective_cpm_bid_source = 22 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Source of the effective CPV bid. - google.ads.googleads.v3.enums.BiddingSourceEnum.BiddingSource effective_cpv_bid_source = 23 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Source of the effective Percent CPC bid. - google.ads.googleads.v3.enums.BiddingSourceEnum.BiddingSource effective_percent_cpc_bid_source = 35 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Estimates for criterion bids at various positions. - PositionEstimates position_estimates = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The list of possible final URLs after all cross-domain redirects for the - // ad. - repeated google.protobuf.StringValue final_urls = 11; - - // The list of possible final mobile URLs after all cross-domain redirects. - repeated google.protobuf.StringValue final_mobile_urls = 51; - - // URL template for appending params to final URL. - google.protobuf.StringValue final_url_suffix = 50; - - // The URL template for constructing a tracking URL. - google.protobuf.StringValue tracking_url_template = 13; - - // 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.v3.common.CustomParameter url_custom_parameters = 14; - - // The ad group criterion. - // - // Exactly one must be set. - oneof criterion { - // Immutable. Keyword. - google.ads.googleads.v3.common.KeywordInfo keyword = 27 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Placement. - google.ads.googleads.v3.common.PlacementInfo placement = 28 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Mobile app category. - google.ads.googleads.v3.common.MobileAppCategoryInfo mobile_app_category = 29 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Mobile application. - google.ads.googleads.v3.common.MobileApplicationInfo mobile_application = 30 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Listing group. - google.ads.googleads.v3.common.ListingGroupInfo listing_group = 32 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Age range. - google.ads.googleads.v3.common.AgeRangeInfo age_range = 36 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Gender. - google.ads.googleads.v3.common.GenderInfo gender = 37 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Income range. - google.ads.googleads.v3.common.IncomeRangeInfo income_range = 38 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Parental status. - google.ads.googleads.v3.common.ParentalStatusInfo parental_status = 39 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. User List. - google.ads.googleads.v3.common.UserListInfo user_list = 42 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. YouTube Video. - google.ads.googleads.v3.common.YouTubeVideoInfo youtube_video = 40 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. YouTube Channel. - google.ads.googleads.v3.common.YouTubeChannelInfo youtube_channel = 41 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Topic. - google.ads.googleads.v3.common.TopicInfo topic = 43 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. User Interest. - google.ads.googleads.v3.common.UserInterestInfo user_interest = 45 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Webpage - google.ads.googleads.v3.common.WebpageInfo webpage = 46 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. App Payment Model. - google.ads.googleads.v3.common.AppPaymentModelInfo app_payment_model = 47 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Custom Affinity. - google.ads.googleads.v3.common.CustomAffinityInfo custom_affinity = 48 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Custom Intent. - google.ads.googleads.v3.common.CustomIntentInfo custom_intent = 49 [(google.api.field_behavior) = IMMUTABLE]; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/ad_group_criterion_label.proto b/third_party/googleapis/google/ads/googleads/v3/resources/ad_group_criterion_label.proto deleted file mode 100644 index 54b131677..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/ad_group_criterion_label.proto +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupCriterionLabelProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the ad group criterion label resource. - -// A relationship between an ad group criterion and a label. -message AdGroupCriterionLabel { - option (google.api.resource) = { - type: "googleads.googleapis.com/AdGroupCriterionLabel" - pattern: "customers/{customer}/adGroupCriterionLabels/{ad_group_criterion_label}" - }; - - // Immutable. The resource name of the ad group criterion label. - // Ad group criterion label resource names have the form: - // `customers/{customer_id}/adGroupCriterionLabels/{ad_group_id}~{criterion_id}~{label_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupCriterionLabel" - } - ]; - - // Immutable. The ad group criterion to which the label is attached. - google.protobuf.StringValue ad_group_criterion = 2 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupCriterion" - } - ]; - - // Immutable. The label assigned to the ad group criterion. - google.protobuf.StringValue label = 3 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Label" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/ad_group_criterion_simulation.proto b/third_party/googleapis/google/ads/googleads/v3/resources/ad_group_criterion_simulation.proto deleted file mode 100644 index 4b5e73154..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/ad_group_criterion_simulation.proto +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/common/simulation.proto"; -import "google/ads/googleads/v3/enums/simulation_modification_method.proto"; -import "google/ads/googleads/v3/enums/simulation_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupCriterionSimulationProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the ad group criterion simulation resource. - -// An ad group criterion simulation. Supported combinations of advertising -// channel type, criterion type, simulation type, and simulation modification -// method are detailed below respectively. -// -// 1. DISPLAY - KEYWORD - CPC_BID - UNIFORM -// 2. SEARCH - KEYWORD - CPC_BID - UNIFORM -// 3. SHOPPING - LISTING_GROUP - CPC_BID - UNIFORM -message AdGroupCriterionSimulation { - option (google.api.resource) = { - type: "googleads.googleapis.com/AdGroupCriterionSimulation" - pattern: "customers/{customer}/adGroupCriterionSimulations/{ad_group_criterion_simulation}" - }; - - // Output only. The resource name of the ad group criterion simulation. - // Ad group criterion simulation resource names have the form: - // - // `customers/{customer_id}/adGroupCriterionSimulations/{ad_group_id}~{criterion_id}~{type}~{modification_method}~{start_date}~{end_date}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupCriterionSimulation" - } - ]; - - // Output only. AdGroup ID of the simulation. - google.protobuf.Int64Value ad_group_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Criterion ID of the simulation. - google.protobuf.Int64Value criterion_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The field that the simulation modifies. - google.ads.googleads.v3.enums.SimulationTypeEnum.SimulationType type = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. How the simulation modifies the field. - google.ads.googleads.v3.enums.SimulationModificationMethodEnum.SimulationModificationMethod modification_method = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. First day on which the simulation is based, in YYYY-MM-DD format. - google.protobuf.StringValue start_date = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Last day on which the simulation is based, in YYYY-MM-DD format. - google.protobuf.StringValue end_date = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // List of simulation points. - oneof point_list { - // Output only. Simulation points if the simulation type is CPC_BID. - google.ads.googleads.v3.common.CpcBidSimulationPointList cpc_bid_point_list = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/ad_group_extension_setting.proto b/third_party/googleapis/google/ads/googleads/v3/resources/ad_group_extension_setting.proto deleted file mode 100644 index 5dabbcf4d..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/ad_group_extension_setting.proto +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/enums/extension_setting_device.proto"; -import "google/ads/googleads/v3/enums/extension_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupExtensionSettingProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the AdGroupExtensionSetting resource. - -// An ad group extension setting. -message AdGroupExtensionSetting { - option (google.api.resource) = { - type: "googleads.googleapis.com/AdGroupExtensionSetting" - pattern: "customers/{customer}/adGroupExtensionSettings/{ad_group_extension_setting}" - }; - - // Immutable. The resource name of the ad group extension setting. - // AdGroupExtensionSetting resource names have the form: - // - // `customers/{customer_id}/adGroupExtensionSettings/{ad_group_id}~{extension_type}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupExtensionSetting" - } - ]; - - // Immutable. The extension type of the ad group extension setting. - google.ads.googleads.v3.enums.ExtensionTypeEnum.ExtensionType extension_type = 2 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. The resource name of the ad group. The linked extension feed items will - // serve under this ad group. - // AdGroup resource names have the form: - // - // `customers/{customer_id}/adGroups/{ad_group_id}` - google.protobuf.StringValue ad_group = 3 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroup" - } - ]; - - // The resource names of the extension feed items to serve under the ad group. - // ExtensionFeedItem resource names have the form: - // - // `customers/{customer_id}/extensionFeedItems/{feed_item_id}` - repeated google.protobuf.StringValue extension_feed_items = 4 [(google.api.resource_reference) = { - type: "googleads.googleapis.com/ExtensionFeedItem" - }]; - - // The device for which the extensions will serve. Optional. - google.ads.googleads.v3.enums.ExtensionSettingDeviceEnum.ExtensionSettingDevice device = 5; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/ad_group_feed.proto b/third_party/googleapis/google/ads/googleads/v3/resources/ad_group_feed.proto deleted file mode 100644 index f3ed3fca7..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/ad_group_feed.proto +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/common/matching_function.proto"; -import "google/ads/googleads/v3/enums/feed_link_status.proto"; -import "google/ads/googleads/v3/enums/placeholder_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupFeedProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the AdGroupFeed resource. - -// An ad group feed. -message AdGroupFeed { - option (google.api.resource) = { - type: "googleads.googleapis.com/AdGroupFeed" - pattern: "customers/{customer}/adGroupFeeds/{ad_group_feed}" - }; - - // Immutable. The resource name of the ad group feed. - // Ad group feed resource names have the form: - // - // `customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_id} - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupFeed" - } - ]; - - // Immutable. The feed being linked to the ad group. - google.protobuf.StringValue feed = 2 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Feed" - } - ]; - - // Immutable. The ad group being linked to the feed. - google.protobuf.StringValue ad_group = 3 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroup" - } - ]; - - // Indicates which placeholder types the feed may populate under the connected - // ad group. Required. - repeated google.ads.googleads.v3.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. - // Required. - google.ads.googleads.v3.common.MatchingFunction matching_function = 5; - - // Output only. Status of the ad group feed. - // This field is read-only. - google.ads.googleads.v3.enums.FeedLinkStatusEnum.FeedLinkStatus status = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/ad_group_label.proto b/third_party/googleapis/google/ads/googleads/v3/resources/ad_group_label.proto deleted file mode 100644 index e6213c35b..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/ad_group_label.proto +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupLabelProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the ad group label resource. - -// A relationship between an ad group and a label. -message AdGroupLabel { - option (google.api.resource) = { - type: "googleads.googleapis.com/AdGroupLabel" - pattern: "customers/{customer}/adGroupLabels/{ad_group_label}" - }; - - // Immutable. The resource name of the ad group label. - // Ad group label resource names have the form: - // `customers/{customer_id}/adGroupLabels/{ad_group_id}~{label_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupLabel" - } - ]; - - // Immutable. The ad group to which the label is attached. - google.protobuf.StringValue ad_group = 2 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroup" - } - ]; - - // Immutable. The label assigned to the ad group. - google.protobuf.StringValue label = 3 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Label" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/ad_group_simulation.proto b/third_party/googleapis/google/ads/googleads/v3/resources/ad_group_simulation.proto deleted file mode 100644 index 2b93dec31..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/ad_group_simulation.proto +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/common/simulation.proto"; -import "google/ads/googleads/v3/enums/simulation_modification_method.proto"; -import "google/ads/googleads/v3/enums/simulation_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupSimulationProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the ad group simulation resource. - -// An ad group simulation. Supported combinations of advertising -// channel type, simulation type and simulation modification method is -// detailed below respectively. -// -// 1. SEARCH - CPC_BID - DEFAULT -// 2. SEARCH - CPC_BID - UNIFORM -// 3. SEARCH - TARGET_CPA - UNIFORM -// 4. SEARCH - TARGET_ROAS - UNIFORM -// 5. DISPLAY - CPC_BID - DEFAULT -// 6. DISPLAY - CPC_BID - UNIFORM -// 7. DISPLAY - TARGET_CPA - UNIFORM -// 8. VIDEO - CPV_BID - DEFAULT -// 9. VIDEO - CPV_BID - UNIFORM -message AdGroupSimulation { - option (google.api.resource) = { - type: "googleads.googleapis.com/AdGroupSimulation" - pattern: "customers/{customer}/adGroupSimulations/{ad_group_simulation}" - }; - - // Output only. The resource name of the ad group simulation. - // Ad group simulation resource names have the form: - // - // `customers/{customer_id}/adGroupSimulations/{ad_group_id}~{type}~{modification_method}~{start_date}~{end_date}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupSimulation" - } - ]; - - // Output only. Ad group id of the simulation. - google.protobuf.Int64Value ad_group_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The field that the simulation modifies. - google.ads.googleads.v3.enums.SimulationTypeEnum.SimulationType type = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. How the simulation modifies the field. - google.ads.googleads.v3.enums.SimulationModificationMethodEnum.SimulationModificationMethod modification_method = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. First day on which the simulation is based, in YYYY-MM-DD format. - google.protobuf.StringValue start_date = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Last day on which the simulation is based, in YYYY-MM-DD format - google.protobuf.StringValue end_date = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // List of simulation points. - oneof point_list { - // Output only. Simulation points if the simulation type is CPC_BID. - google.ads.googleads.v3.common.CpcBidSimulationPointList cpc_bid_point_list = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Simulation points if the simulation type is CPV_BID. - google.ads.googleads.v3.common.CpvBidSimulationPointList cpv_bid_point_list = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Simulation points if the simulation type is TARGET_CPA. - google.ads.googleads.v3.common.TargetCpaSimulationPointList target_cpa_point_list = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/ad_parameter.proto b/third_party/googleapis/google/ads/googleads/v3/resources/ad_parameter.proto deleted file mode 100644 index d19383e3d..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/ad_parameter.proto +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "AdParameterProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the ad parameter resource. - -// An ad parameter that is used to update numeric values (such as prices or -// inventory levels) in any text line of an ad (including URLs). There can -// be a maximum of two AdParameters per ad group criterion. (One with -// parameter_index = 1 and one with parameter_index = 2.) -// In the ad the parameters are referenced by a placeholder of the form -// "{param#:value}". E.g. "{param1:$17}" -message AdParameter { - option (google.api.resource) = { - type: "googleads.googleapis.com/AdParameter" - pattern: "customers/{customer}/adParameters/{ad_parameter}" - }; - - // Immutable. The resource name of the ad parameter. - // Ad parameter resource names have the form: - // - // `customers/{customer_id}/adParameters/{ad_group_id}~{criterion_id}~{parameter_index}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdParameter" - } - ]; - - // Immutable. The ad group criterion that this ad parameter belongs to. - google.protobuf.StringValue ad_group_criterion = 2 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupCriterion" - } - ]; - - // Immutable. The unique index of this ad parameter. Must be either 1 or 2. - google.protobuf.Int64Value parameter_index = 3 [(google.api.field_behavior) = IMMUTABLE]; - - // Numeric value to insert into the ad text. The following restrictions - // apply: - // - Can use comma or period as a separator, with an optional period or - // comma (respectively) for fractional values. For example, 1,000,000.00 - // and 2.000.000,10 are valid. - // - Can be prepended or appended with a currency symbol. For example, - // $99.99 is valid. - // - Can be prepended or appended with a currency code. For example, 99.99USD - // and EUR200 are valid. - // - Can use '%'. For example, 1.0% and 1,0% are valid. - // - Can use plus or minus. For example, -10.99 and 25+ are valid. - // - Can use '/' between two numbers. For example 4/1 and 0.95/0.45 are - // valid. - google.protobuf.StringValue insertion_text = 4; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/ad_schedule_view.proto b/third_party/googleapis/google/ads/googleads/v3/resources/ad_schedule_view.proto deleted file mode 100644 index 3e667ac05..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/ad_schedule_view.proto +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "AdScheduleViewProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the ad schedule view resource. - -// An ad schedule view summarizes the performance of campaigns by -// AdSchedule criteria. -message AdScheduleView { - option (google.api.resource) = { - type: "googleads.googleapis.com/AdScheduleView" - pattern: "customers/{customer}/adScheduleViews/{ad_schedule_view}" - }; - - // Output only. The resource name of the ad schedule view. - // AdSchedule view resource names have the form: - // - // `customers/{customer_id}/adScheduleViews/{campaign_id}~{criterion_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdScheduleView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/age_range_view.proto b/third_party/googleapis/google/ads/googleads/v3/resources/age_range_view.proto deleted file mode 100644 index 83b9450fc..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/age_range_view.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "AgeRangeViewProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the age range view resource. - -// An age range view. -message AgeRangeView { - option (google.api.resource) = { - type: "googleads.googleapis.com/AgeRangeView" - pattern: "customers/{customer}/ageRangeViews/{age_range_view}" - }; - - // Output only. The resource name of the age range view. - // Age range view resource names have the form: - // - // `customers/{customer_id}/ageRangeViews/{ad_group_id}~{criterion_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AgeRangeView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/asset.proto b/third_party/googleapis/google/ads/googleads/v3/resources/asset.proto deleted file mode 100644 index 814936872..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/asset.proto +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/common/asset_types.proto"; -import "google/ads/googleads/v3/enums/asset_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "AssetProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the asset resource. - -// Asset is a part of an ad which can be shared across multiple ads. -// It can be an image (ImageAsset), a video (YoutubeVideoAsset), etc. -message Asset { - option (google.api.resource) = { - type: "googleads.googleapis.com/Asset" - pattern: "customers/{customer}/assets/{asset}" - }; - - // Immutable. The resource name of the asset. - // Asset resource names have the form: - // - // `customers/{customer_id}/assets/{asset_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Asset" - } - ]; - - // Output only. The ID of the asset. - google.protobuf.Int64Value id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Optional name of the asset. - google.protobuf.StringValue name = 3; - - // Output only. Type of the asset. - google.ads.googleads.v3.enums.AssetTypeEnum.AssetType type = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The specific type of the asset. - oneof asset_data { - // Immutable. A YouTube video asset. - google.ads.googleads.v3.common.YoutubeVideoAsset youtube_video_asset = 5 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. A media bundle asset. - google.ads.googleads.v3.common.MediaBundleAsset media_bundle_asset = 6 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. An image asset. - google.ads.googleads.v3.common.ImageAsset image_asset = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. A text asset. - google.ads.googleads.v3.common.TextAsset text_asset = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/bidding_strategy.proto b/third_party/googleapis/google/ads/googleads/v3/resources/bidding_strategy.proto deleted file mode 100644 index 5a45e755a..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/bidding_strategy.proto +++ /dev/null @@ -1,112 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/common/bidding.proto"; -import "google/ads/googleads/v3/enums/bidding_strategy_status.proto"; -import "google/ads/googleads/v3/enums/bidding_strategy_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "BiddingStrategyProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the BiddingStrategy resource - -// A bidding strategy. -message BiddingStrategy { - option (google.api.resource) = { - type: "googleads.googleapis.com/BiddingStrategy" - pattern: "customers/{customer}/biddingStrategies/{bidding_strategy}" - }; - - // Immutable. The resource name of the bidding strategy. - // Bidding strategy resource names have the form: - // - // `customers/{customer_id}/biddingStrategies/{bidding_strategy_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/BiddingStrategy" - } - ]; - - // Output only. The ID of the bidding strategy. - google.protobuf.Int64Value id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The name of the bidding strategy. - // All bidding strategies within an account must be named distinctly. - // - // The length of this string should be between 1 and 255, inclusive, - // in UTF-8 bytes, (trimmed). - google.protobuf.StringValue name = 4; - - // Output only. The status of the bidding strategy. - // - // This field is read-only. - google.ads.googleads.v3.enums.BiddingStrategyStatusEnum.BiddingStrategyStatus status = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The type of the bidding strategy. - // Create a bidding strategy by setting the bidding scheme. - // - // This field is read-only. - google.ads.googleads.v3.enums.BiddingStrategyTypeEnum.BiddingStrategyType type = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The number of campaigns attached to this bidding strategy. - // - // This field is read-only. - google.protobuf.Int64Value campaign_count = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The number of non-removed campaigns attached to this bidding strategy. - // - // This field is read-only. - google.protobuf.Int64Value non_removed_campaign_count = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The bidding scheme. - // - // Only one can be set. - oneof scheme { - // A 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. - google.ads.googleads.v3.common.EnhancedCpc enhanced_cpc = 7; - - // A bidding strategy that sets bids to help get as many conversions as - // possible at the target cost-per-acquisition (CPA) you set. - google.ads.googleads.v3.common.TargetCpa target_cpa = 9; - - // A bidding strategy that automatically optimizes towards a desired - // percentage of impressions. - google.ads.googleads.v3.common.TargetImpressionShare target_impression_share = 48; - - // A bidding strategy that helps you maximize revenue while averaging a - // specific target Return On Ad Spend (ROAS). - google.ads.googleads.v3.common.TargetRoas target_roas = 11; - - // A bid strategy that sets your bids to help get as many clicks as - // possible within your budget. - google.ads.googleads.v3.common.TargetSpend target_spend = 12; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/billing_setup.proto b/third_party/googleapis/google/ads/googleads/v3/resources/billing_setup.proto deleted file mode 100644 index f37f59175..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/billing_setup.proto +++ /dev/null @@ -1,139 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/enums/billing_setup_status.proto"; -import "google/ads/googleads/v3/enums/time_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "BillingSetupProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the BillingSetup resource. - -// A billing setup, which associates a payments account and an advertiser. A -// billing setup is specific to one advertiser. -message BillingSetup { - option (google.api.resource) = { - type: "googleads.googleapis.com/BillingSetup" - pattern: "customers/{customer}/billingSetups/{billing_setup}" - }; - - // Container of payments account information for this billing. - message PaymentsAccountInfo { - // Output only. A 16 digit id used to identify the payments account associated with the - // billing setup. - // - // This must be passed as a string with dashes, e.g. "1234-5678-9012-3456". - google.protobuf.StringValue payments_account_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. The name of the payments account associated with the billing setup. - // - // This enables the user to specify a meaningful name for a payments account - // to aid in reconciling monthly invoices. - // - // This name will be printed in the monthly invoices. - google.protobuf.StringValue payments_account_name = 2 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. A 12 digit id used to identify the payments profile associated with the - // billing setup. - // - // This must be passed in as a string with dashes, e.g. "1234-5678-9012". - google.protobuf.StringValue payments_profile_id = 3 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. The name of the payments profile associated with the billing setup. - google.protobuf.StringValue payments_profile_name = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. A secondary payments profile id present in uncommon situations, e.g. - // when a sequential liability agreement has been arranged. - google.protobuf.StringValue secondary_payments_profile_id = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // Immutable. The resource name of the billing setup. - // BillingSetup resource names have the form: - // - // `customers/{customer_id}/billingSetups/{billing_setup_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/BillingSetup" - } - ]; - - // Output only. The ID of the billing setup. - google.protobuf.Int64Value id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The status of the billing setup. - google.ads.googleads.v3.enums.BillingSetupStatusEnum.BillingSetupStatus status = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. The resource name of the payments account associated with this billing - // setup. Payments resource names have the form: - // - // `customers/{customer_id}/paymentsAccounts/{payments_account_id}` - // When setting up billing, this is used to signup with an existing payments - // account (and then payments_account_info should not be set). - // When getting a billing setup, this and payments_account_info will be - // populated. - google.protobuf.StringValue payments_account = 11 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/PaymentsAccount" - } - ]; - - // Immutable. The payments account information associated with this billing setup. - // When setting up billing, this is used to signup with a new payments account - // (and then payments_account should not be set). - // When getting a billing setup, this and payments_account will be - // populated. - PaymentsAccountInfo payments_account_info = 12 [(google.api.field_behavior) = IMMUTABLE]; - - // When creating a new billing setup, this is when the setup should take - // effect. NOW is the only acceptable start time if the customer doesn't have - // any approved setups. - // - // When fetching an existing billing setup, this is the requested start time. - // However, if the setup was approved (see status) after the requested start - // time, then this is the approval time. - oneof start_time { - // Immutable. The start date time in yyyy-MM-dd or yyyy-MM-dd HH:mm:ss format. Only a - // future time is allowed. - google.protobuf.StringValue start_date_time = 9 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. The start time as a type. Only NOW is allowed. - google.ads.googleads.v3.enums.TimeTypeEnum.TimeType start_time_type = 10 [(google.api.field_behavior) = IMMUTABLE]; - } - - // When the billing setup ends / ended. This is either FOREVER or the start - // time of the next scheduled billing setup. - oneof end_time { - // Output only. The end date time in yyyy-MM-dd or yyyy-MM-dd HH:mm:ss format. - google.protobuf.StringValue end_date_time = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The end time as a type. The only possible value is FOREVER. - google.ads.googleads.v3.enums.TimeTypeEnum.TimeType end_time_type = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/campaign.proto b/third_party/googleapis/google/ads/googleads/v3/resources/campaign.proto deleted file mode 100644 index 87471596e..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/campaign.proto +++ /dev/null @@ -1,402 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/common/bidding.proto"; -import "google/ads/googleads/v3/common/custom_parameter.proto"; -import "google/ads/googleads/v3/common/frequency_cap.proto"; -import "google/ads/googleads/v3/common/real_time_bidding_setting.proto"; -import "google/ads/googleads/v3/common/targeting_setting.proto"; -import "google/ads/googleads/v3/enums/ad_serving_optimization_status.proto"; -import "google/ads/googleads/v3/enums/advertising_channel_sub_type.proto"; -import "google/ads/googleads/v3/enums/advertising_channel_type.proto"; -import "google/ads/googleads/v3/enums/app_campaign_app_store.proto"; -import "google/ads/googleads/v3/enums/app_campaign_bidding_strategy_goal_type.proto"; -import "google/ads/googleads/v3/enums/bidding_strategy_type.proto"; -import "google/ads/googleads/v3/enums/brand_safety_suitability.proto"; -import "google/ads/googleads/v3/enums/campaign_experiment_type.proto"; -import "google/ads/googleads/v3/enums/campaign_serving_status.proto"; -import "google/ads/googleads/v3/enums/campaign_status.proto"; -import "google/ads/googleads/v3/enums/negative_geo_target_type.proto"; -import "google/ads/googleads/v3/enums/payment_mode.proto"; -import "google/ads/googleads/v3/enums/positive_geo_target_type.proto"; -import "google/ads/googleads/v3/enums/vanity_pharma_display_url_mode.proto"; -import "google/ads/googleads/v3/enums/vanity_pharma_text.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "CampaignProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the Campaign resource. - -// A campaign. -message Campaign { - option (google.api.resource) = { - type: "googleads.googleapis.com/Campaign" - pattern: "customers/{customer}/campaigns/{campaign}" - }; - - // The network settings for the campaign. - message NetworkSettings { - // Whether ads will be served with google.com search results. - google.protobuf.BoolValue target_google_search = 1; - - // Whether ads will be served on partner sites in the Google Search Network - // (requires `target_google_search` to also be `true`). - google.protobuf.BoolValue target_search_network = 2; - - // Whether ads will be served on specified placements in the Google Display - // Network. Placements are specified using the Placement criterion. - google.protobuf.BoolValue target_content_network = 3; - - // Whether ads will be served on the Google Partner Network. - // This is available only to some select Google partner accounts. - google.protobuf.BoolValue target_partner_search_network = 4; - } - - // Campaign-level settings for hotel ads. - message HotelSettingInfo { - // Immutable. The linked Hotel Center account. - google.protobuf.Int64Value hotel_center_id = 1 [(google.api.field_behavior) = IMMUTABLE]; - } - - // The setting for Shopping campaigns. Defines the universe of products that - // can be advertised by the campaign, and how this campaign interacts with - // other Shopping campaigns. - message ShoppingSetting { - // Immutable. ID of the Merchant Center account. - // This field is required for create operations. This field is immutable for - // Shopping campaigns. - google.protobuf.Int64Value merchant_id = 1 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Sales country of products to include in the campaign. - // This field is required for Shopping campaigns. This field is immutable. - // This field is optional for non-Shopping campaigns, but it must be equal - // to 'ZZ' if set. - google.protobuf.StringValue sales_country = 2 [(google.api.field_behavior) = IMMUTABLE]; - - // Priority of the campaign. Campaigns with numerically higher priorities - // take precedence over those with lower priorities. - // This field is required for Shopping campaigns, with values between 0 and - // 2, inclusive. - // This field is optional for Smart Shopping campaigns, but must be equal to - // 3 if set. - google.protobuf.Int32Value campaign_priority = 3; - - // Whether to include local products. - google.protobuf.BoolValue enable_local = 4; - } - - // Campaign-level settings for tracking information. - message TrackingSetting { - // Output only. The url used for dynamic tracking. - google.protobuf.StringValue tracking_url = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // The setting for controlling Dynamic Search Ads (DSA). - message DynamicSearchAdsSetting { - // The Internet domain name that this setting represents, e.g., "google.com" - // or "www.google.com". - google.protobuf.StringValue domain_name = 1; - - // The language code specifying the language of the domain, e.g., "en". - google.protobuf.StringValue language_code = 2; - - // Whether the campaign uses advertiser supplied URLs exclusively. - google.protobuf.BoolValue use_supplied_urls_only = 3; - - // Output only. The list of page feeds associated with the campaign. - repeated google.protobuf.StringValue feeds = 5 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Feed" - } - ]; - } - - // Represents a collection of settings related to ads geotargeting. - message GeoTargetTypeSetting { - // The setting used for positive geotargeting in this particular campaign. - google.ads.googleads.v3.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType positive_geo_target_type = 1; - - // The setting used for negative geotargeting in this particular campaign. - google.ads.googleads.v3.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType negative_geo_target_type = 2; - } - - // Campaign-level settings for App Campaigns. - message AppCampaignSetting { - // Represents the goal which the bidding strategy of this app campaign - // should optimize towards. - google.ads.googleads.v3.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType bidding_strategy_goal_type = 1; - - // Immutable. A string that uniquely identifies a mobile application. - google.protobuf.StringValue app_id = 2 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. The application store that distributes this specific app. - google.ads.googleads.v3.enums.AppCampaignAppStoreEnum.AppCampaignAppStore app_store = 3 [(google.api.field_behavior) = IMMUTABLE]; - } - - // Describes how unbranded pharma ads will be displayed. - message VanityPharma { - // The display mode for vanity pharma URLs. - google.ads.googleads.v3.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode vanity_pharma_display_url_mode = 1; - - // The text that will be displayed in display URL of the text ad when - // website description is the selected display mode for vanity pharma URLs. - google.ads.googleads.v3.enums.VanityPharmaTextEnum.VanityPharmaText vanity_pharma_text = 2; - } - - // Selective optimization setting for this campaign, which includes a set of - // conversion actions to optimize this campaign towards. - message SelectiveOptimization { - // The selected set of conversion actions for optimizing this campaign. - repeated google.protobuf.StringValue conversion_actions = 1 [(google.api.resource_reference) = { - type: "googleads.googleapis.com/ConversionAction" - }]; - } - - // Immutable. The resource name of the campaign. - // Campaign resource names have the form: - // - // `customers/{customer_id}/campaigns/{campaign_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Campaign" - } - ]; - - // Output only. The ID of the campaign. - google.protobuf.Int64Value id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The name of the campaign. - // - // This field is required and should not be empty when creating new - // campaigns. - // - // It must not contain any null (code point 0x0), NL line feed - // (code point 0xA) or carriage return (code point 0xD) characters. - google.protobuf.StringValue name = 4; - - // The status of the campaign. - // - // When a new campaign is added, the status defaults to ENABLED. - google.ads.googleads.v3.enums.CampaignStatusEnum.CampaignStatus status = 5; - - // Output only. The ad serving status of the campaign. - google.ads.googleads.v3.enums.CampaignServingStatusEnum.CampaignServingStatus serving_status = 21 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The ad serving optimization status of the campaign. - google.ads.googleads.v3.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus ad_serving_optimization_status = 8; - - // Immutable. The primary serving target for ads within the campaign. - // The targeting options can be refined in `network_settings`. - // - // This field is required and should not be empty when creating new - // campaigns. - // - // Can be set only when creating campaigns. - // After the campaign is created, the field can not be changed. - google.ads.googleads.v3.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 9 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Optional refinement to `advertising_channel_type`. - // Must be a valid sub-type of the parent channel type. - // - // Can be set only when creating campaigns. - // After campaign is created, the field can not be changed. - google.ads.googleads.v3.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType advertising_channel_sub_type = 10 [(google.api.field_behavior) = IMMUTABLE]; - - // The URL template for constructing a tracking URL. - google.protobuf.StringValue tracking_url_template = 11; - - // 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.v3.common.CustomParameter url_custom_parameters = 12; - - // Settings for Real-Time Bidding, a feature only available for campaigns - // targeting the Ad Exchange network. - google.ads.googleads.v3.common.RealTimeBiddingSetting real_time_bidding_setting = 39; - - // The network settings for the campaign. - NetworkSettings network_settings = 14; - - // Immutable. The hotel setting for the campaign. - HotelSettingInfo hotel_setting = 32 [(google.api.field_behavior) = IMMUTABLE]; - - // The setting for controlling Dynamic Search Ads (DSA). - DynamicSearchAdsSetting dynamic_search_ads_setting = 33; - - // The setting for controlling Shopping campaigns. - ShoppingSetting shopping_setting = 36; - - // Setting for targeting related features. - google.ads.googleads.v3.common.TargetingSetting targeting_setting = 43; - - // The setting for ads geotargeting. - GeoTargetTypeSetting geo_target_type_setting = 47; - - // The setting related to App Campaign. - AppCampaignSetting app_campaign_setting = 51; - - // Output only. The resource names of labels attached to this campaign. - repeated google.protobuf.StringValue labels = 53 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignLabel" - } - ]; - - // Output only. The type of campaign: normal, draft, or experiment. - google.ads.googleads.v3.enums.CampaignExperimentTypeEnum.CampaignExperimentType experiment_type = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The resource name of the base campaign of a draft or experiment campaign. - // For base campaigns, this is equal to `resource_name`. - // - // This field is read-only. - google.protobuf.StringValue base_campaign = 28 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Campaign" - } - ]; - - // The budget of the campaign. - google.protobuf.StringValue campaign_budget = 6 [(google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignBudget" - }]; - - // Output only. The type of bidding strategy. - // - // A bidding strategy can be created by setting either the bidding scheme to - // create a standard bidding strategy or the `bidding_strategy` field to - // create a portfolio bidding strategy. - // - // This field is read-only. - google.ads.googleads.v3.enums.BiddingStrategyTypeEnum.BiddingStrategyType bidding_strategy_type = 22 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The date when campaign started. - // This field must not be used in WHERE clauses. - google.protobuf.StringValue start_date = 19; - - // The date when campaign ended. - // This field must not be used in WHERE clauses. - google.protobuf.StringValue end_date = 20; - - // Suffix used to append query parameters to landing pages that are served - // with parallel tracking. - google.protobuf.StringValue final_url_suffix = 38; - - // A list that limits how often each user will see this campaign's ads. - repeated google.ads.googleads.v3.common.FrequencyCapEntry frequency_caps = 40; - - // Output only. 3-Tier Brand Safety setting for the campaign. - google.ads.googleads.v3.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability video_brand_safety_suitability = 42 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Describes how unbranded pharma ads will be displayed. - VanityPharma vanity_pharma = 44; - - // Selective optimization setting for this campaign, which includes a set of - // conversion actions to optimize this campaign towards. - SelectiveOptimization selective_optimization = 45; - - // Output only. Campaign-level settings for tracking information. - TrackingSetting tracking_setting = 46 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Payment mode for the campaign. - google.ads.googleads.v3.enums.PaymentModeEnum.PaymentMode payment_mode = 52; - - // Output only. Optimization score of the campaign. - // - // Optimization score is an estimate of how well a campaign is set to perform. - // It ranges from 0% (0.0) to 100% (1.0), with 100% indicating that the - // campaign is performing at full potential. - // - // See "About optimization score" at - // https://support.google.com/google-ads/answer/9061546. - // - // This field is read-only. - google.protobuf.DoubleValue optimization_score = 55 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The bidding strategy for the campaign. - // - // Must be either portfolio (created via BiddingStrategy service) or - // standard, that is embedded into the campaign. - oneof campaign_bidding_strategy { - // Portfolio bidding strategy used by campaign. - google.protobuf.StringValue bidding_strategy = 23 [(google.api.resource_reference) = { - type: "googleads.googleapis.com/BiddingStrategy" - }]; - - // Commission is an automatic bidding strategy in which the advertiser pays - // a certain portion of the conversion value. - google.ads.googleads.v3.common.Commission commission = 49; - - // Standard Manual CPC bidding strategy. - // Manual click-based bidding where user pays per click. - google.ads.googleads.v3.common.ManualCpc manual_cpc = 24; - - // Standard Manual CPM bidding strategy. - // Manual impression-based bidding where user pays per thousand - // impressions. - google.ads.googleads.v3.common.ManualCpm manual_cpm = 25; - - // Output only. A bidding strategy that pays a configurable amount per video view. - google.ads.googleads.v3.common.ManualCpv manual_cpv = 37 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Standard Maximize Conversions bidding strategy that automatically - // maximizes number of conversions given a daily budget. - google.ads.googleads.v3.common.MaximizeConversions maximize_conversions = 30; - - // Standard Maximize Conversion Value bidding strategy that automatically - // sets bids to maximize revenue while spending your budget. - google.ads.googleads.v3.common.MaximizeConversionValue maximize_conversion_value = 31; - - // Standard Target CPA bidding strategy that automatically sets bids to - // help get as many conversions as possible at the target - // cost-per-acquisition (CPA) you set. - google.ads.googleads.v3.common.TargetCpa target_cpa = 26; - - // Target Impression Share bidding strategy. An automated bidding strategy - // that sets bids to achieve a desired percentage of impressions. - google.ads.googleads.v3.common.TargetImpressionShare target_impression_share = 48; - - // Standard Target ROAS bidding strategy that automatically maximizes - // revenue while averaging a specific target return on ad spend (ROAS). - google.ads.googleads.v3.common.TargetRoas target_roas = 29; - - // Standard Target Spend bidding strategy that automatically sets your bids - // to help get as many clicks as possible within your budget. - google.ads.googleads.v3.common.TargetSpend target_spend = 27; - - // Standard Percent Cpc bidding strategy where bids are a fraction of the - // advertised price for some good or service. - google.ads.googleads.v3.common.PercentCpc percent_cpc = 34; - - // A bidding strategy that automatically optimizes cost per thousand - // impressions. - google.ads.googleads.v3.common.TargetCpm target_cpm = 41; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/campaign_audience_view.proto b/third_party/googleapis/google/ads/googleads/v3/resources/campaign_audience_view.proto deleted file mode 100644 index a68968694..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/campaign_audience_view.proto +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "CampaignAudienceViewProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the campaign audience view resource. - -// A campaign audience view. -// Includes performance data from interests and remarketing lists for Display -// Network and YouTube Network ads, and remarketing lists for search ads (RLSA), -// aggregated by campaign and audience criterion. This view only includes -// audiences attached at the campaign level. -message CampaignAudienceView { - option (google.api.resource) = { - type: "googleads.googleapis.com/CampaignAudienceView" - pattern: "customers/{customer}/campaignAudienceViews/{campaign_audience_view}" - }; - - // Output only. The resource name of the campaign audience view. - // Campaign audience view resource names have the form: - // - // `customers/{customer_id}/campaignAudienceViews/{campaign_id}~{criterion_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignAudienceView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/campaign_bid_modifier.proto b/third_party/googleapis/google/ads/googleads/v3/resources/campaign_bid_modifier.proto deleted file mode 100644 index 3a4642be6..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/campaign_bid_modifier.proto +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/common/criteria.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "CampaignBidModifierProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the Campaign Bid Modifier resource. - -// Represents a bid-modifiable only criterion at the campaign level. -message CampaignBidModifier { - option (google.api.resource) = { - type: "googleads.googleapis.com/CampaignBidModifier" - pattern: "customers/{customer}/campaignBidModifiers/{campaign_bid_modifier}" - }; - - // Immutable. The resource name of the campaign bid modifier. - // Campaign bid modifier resource names have the form: - // - // `customers/{customer_id}/campaignBidModifiers/{campaign_id}~{criterion_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignBidModifier" - } - ]; - - // Output only. The campaign to which this criterion belongs. - google.protobuf.StringValue campaign = 2 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Campaign" - } - ]; - - // Output only. The ID of the criterion to bid modify. - // - // This field is ignored for mutates. - google.protobuf.Int64Value criterion_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The modifier for the bid when the criterion matches. - google.protobuf.DoubleValue bid_modifier = 4; - - // The criterion of this campaign bid modifier. - // - // Required in create operations starting in V5. - oneof criterion { - // Immutable. Criterion for interaction type. Only supported for search campaigns. - google.ads.googleads.v3.common.InteractionTypeInfo interaction_type = 5 [(google.api.field_behavior) = IMMUTABLE]; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/campaign_budget.proto b/third_party/googleapis/google/ads/googleads/v3/resources/campaign_budget.proto deleted file mode 100644 index 46b1a7a34..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/campaign_budget.proto +++ /dev/null @@ -1,157 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/enums/budget_delivery_method.proto"; -import "google/ads/googleads/v3/enums/budget_period.proto"; -import "google/ads/googleads/v3/enums/budget_status.proto"; -import "google/ads/googleads/v3/enums/budget_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "CampaignBudgetProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the Budget resource. - -// A campaign budget. -message CampaignBudget { - option (google.api.resource) = { - type: "googleads.googleapis.com/CampaignBudget" - pattern: "customers/{customer}/campaignBudgets/{campaign_budget}" - }; - - // Immutable. The resource name of the campaign budget. - // Campaign budget resource names have the form: - // - // `customers/{customer_id}/campaignBudgets/{budget_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignBudget" - } - ]; - - // Output only. The ID of the campaign budget. - // - // A campaign budget is created using the CampaignBudgetService create - // operation and is assigned a budget ID. A budget ID can be shared across - // different campaigns; the system will then allocate the campaign budget - // among different campaigns to get optimum results. - google.protobuf.Int64Value id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The name of the campaign budget. - // - // When creating a campaign budget through CampaignBudgetService, every - // explicitly shared campaign budget must have a non-null, non-empty name. - // Campaign budgets that are not explicitly shared derive their name from the - // attached campaign's name. - // - // The length of this string must be between 1 and 255, inclusive, - // in UTF-8 bytes, (trimmed). - google.protobuf.StringValue name = 4; - - // The amount of the budget, in the local currency for the account. - // Amount is specified in micros, where one million is equivalent to one - // currency unit. Monthly spend is capped at 30.4 times this amount. - google.protobuf.Int64Value amount_micros = 5; - - // The lifetime amount of the budget, in the local currency for the account. - // Amount is specified in micros, where one million is equivalent to one - // currency unit. - google.protobuf.Int64Value total_amount_micros = 10; - - // Output only. The status of this campaign budget. This field is read-only. - google.ads.googleads.v3.enums.BudgetStatusEnum.BudgetStatus status = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The delivery method that determines the rate at which the campaign budget - // is spent. - // - // Defaults to STANDARD if unspecified in a create operation. - google.ads.googleads.v3.enums.BudgetDeliveryMethodEnum.BudgetDeliveryMethod delivery_method = 7; - - // Specifies whether the budget is explicitly shared. Defaults to true if - // unspecified in a create operation. - // - // If true, the budget was created with the purpose of sharing - // across one or more campaigns. - // - // If false, the budget was created with the intention of only being used - // with a single campaign. The budget's name and status will stay in sync - // with the campaign's name and status. Attempting to share the budget with a - // second campaign will result in an error. - // - // A non-shared budget can become an explicitly shared. The same operation - // must also assign the budget a name. - // - // A shared campaign budget can never become non-shared. - google.protobuf.BoolValue explicitly_shared = 8; - - // Output only. The number of campaigns actively using the budget. - // - // This field is read-only. - google.protobuf.Int64Value reference_count = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Indicates whether there is a recommended budget for this campaign budget. - // - // This field is read-only. - google.protobuf.BoolValue has_recommended_budget = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The recommended budget amount. If no recommendation is available, this will - // be set to the budget amount. - // Amount is specified in micros, where one million is equivalent to one - // currency unit. - // - // This field is read-only. - google.protobuf.Int64Value recommended_budget_amount_micros = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. Period over which to spend the budget. Defaults to DAILY if not specified. - google.ads.googleads.v3.enums.BudgetPeriodEnum.BudgetPeriod period = 13 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. 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.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. 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.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. 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.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. 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.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. The type of the campaign budget. - google.ads.googleads.v3.enums.BudgetTypeEnum.BudgetType type = 18 [(google.api.field_behavior) = IMMUTABLE]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/campaign_criterion.proto b/third_party/googleapis/google/ads/googleads/v3/resources/campaign_criterion.proto deleted file mode 100644 index 3a84f0b31..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/campaign_criterion.proto +++ /dev/null @@ -1,168 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/common/criteria.proto"; -import "google/ads/googleads/v3/enums/campaign_criterion_status.proto"; -import "google/ads/googleads/v3/enums/criterion_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "CampaignCriterionProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the Campaign Criterion resource. - -// A campaign criterion. -message CampaignCriterion { - option (google.api.resource) = { - type: "googleads.googleapis.com/CampaignCriterion" - pattern: "customers/{customer}/campaignCriteria/{campaign_criterion}" - }; - - // Immutable. The resource name of the campaign criterion. - // Campaign criterion resource names have the form: - // - // `customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignCriterion" - } - ]; - - // Immutable. The campaign to which the criterion belongs. - google.protobuf.StringValue campaign = 4 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Campaign" - } - ]; - - // Output only. The ID of the criterion. - // - // This field is ignored during mutate. - google.protobuf.Int64Value criterion_id = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The modifier for the bids when the criterion matches. The modifier must be - // in the range: 0.1 - 10.0. Most targetable criteria types support modifiers. - // Use 0 to opt out of a Device type. - google.protobuf.FloatValue bid_modifier = 14; - - // Immutable. Whether to target (`false`) or exclude (`true`) the criterion. - google.protobuf.BoolValue negative = 7 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. The type of the criterion. - google.ads.googleads.v3.enums.CriterionTypeEnum.CriterionType type = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The status of the criterion. - google.ads.googleads.v3.enums.CampaignCriterionStatusEnum.CampaignCriterionStatus status = 35; - - // The campaign criterion. - // - // Exactly one must be set. - oneof criterion { - // Immutable. Keyword. - google.ads.googleads.v3.common.KeywordInfo keyword = 8 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Placement. - google.ads.googleads.v3.common.PlacementInfo placement = 9 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Mobile app category. - google.ads.googleads.v3.common.MobileAppCategoryInfo mobile_app_category = 10 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Mobile application. - google.ads.googleads.v3.common.MobileApplicationInfo mobile_application = 11 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Location. - google.ads.googleads.v3.common.LocationInfo location = 12 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Device. - google.ads.googleads.v3.common.DeviceInfo device = 13 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Ad Schedule. - google.ads.googleads.v3.common.AdScheduleInfo ad_schedule = 15 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Age range. - google.ads.googleads.v3.common.AgeRangeInfo age_range = 16 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Gender. - google.ads.googleads.v3.common.GenderInfo gender = 17 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Income range. - google.ads.googleads.v3.common.IncomeRangeInfo income_range = 18 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Parental status. - google.ads.googleads.v3.common.ParentalStatusInfo parental_status = 19 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. User List. - google.ads.googleads.v3.common.UserListInfo user_list = 22 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. YouTube Video. - google.ads.googleads.v3.common.YouTubeVideoInfo youtube_video = 20 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. YouTube Channel. - google.ads.googleads.v3.common.YouTubeChannelInfo youtube_channel = 21 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Proximity. - google.ads.googleads.v3.common.ProximityInfo proximity = 23 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Topic. - google.ads.googleads.v3.common.TopicInfo topic = 24 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Listing scope. - google.ads.googleads.v3.common.ListingScopeInfo listing_scope = 25 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Language. - google.ads.googleads.v3.common.LanguageInfo language = 26 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. IpBlock. - google.ads.googleads.v3.common.IpBlockInfo ip_block = 27 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. ContentLabel. - google.ads.googleads.v3.common.ContentLabelInfo content_label = 28 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Carrier. - google.ads.googleads.v3.common.CarrierInfo carrier = 29 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. User Interest. - google.ads.googleads.v3.common.UserInterestInfo user_interest = 30 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Webpage. - google.ads.googleads.v3.common.WebpageInfo webpage = 31 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Operating system version. - google.ads.googleads.v3.common.OperatingSystemVersionInfo operating_system_version = 32 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Mobile Device. - google.ads.googleads.v3.common.MobileDeviceInfo mobile_device = 33 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Location Group - google.ads.googleads.v3.common.LocationGroupInfo location_group = 34 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Custom Affinity. - google.ads.googleads.v3.common.CustomAffinityInfo custom_affinity = 36 [(google.api.field_behavior) = IMMUTABLE]; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/campaign_criterion_simulation.proto b/third_party/googleapis/google/ads/googleads/v3/resources/campaign_criterion_simulation.proto deleted file mode 100644 index f57a3ba76..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/campaign_criterion_simulation.proto +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/common/simulation.proto"; -import "google/ads/googleads/v3/enums/simulation_modification_method.proto"; -import "google/ads/googleads/v3/enums/simulation_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "CampaignCriterionSimulationProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the campaign criterion simulation resource. - -// A campaign criterion simulation. Supported combinations of advertising -// channel type, criterion ids, simulation type and simulation modification -// method is detailed below respectively. -// -// 1. SEARCH - 30000,30001,30002 - BID_MODIFIER - UNIFORM -// 2. SHOPPING - 30000,30001,30002 - BID_MODIFIER - UNIFORM -// 3. DISPLAY - 30001 - BID_MODIFIER - UNIFORM -message CampaignCriterionSimulation { - option (google.api.resource) = { - type: "googleads.googleapis.com/CampaignCriterionSimulation" - pattern: "customers/{customer}/campaignCriterionSimulations/{campaign_criterion_simulation}" - }; - - // Output only. The resource name of the campaign criterion simulation. - // Campaign criterion simulation resource names have the form: - // - // `customers/{customer_id}/campaignCriterionSimulations/{campaign_id}~{criterion_id}~{type}~{modification_method}~{start_date}~{end_date}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignCriterionSimulation" - } - ]; - - // Output only. Campaign ID of the simulation. - google.protobuf.Int64Value campaign_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Criterion ID of the simulation. - google.protobuf.Int64Value criterion_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The field that the simulation modifies. - google.ads.googleads.v3.enums.SimulationTypeEnum.SimulationType type = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. How the simulation modifies the field. - google.ads.googleads.v3.enums.SimulationModificationMethodEnum.SimulationModificationMethod modification_method = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. First day on which the simulation is based, in YYYY-MM-DD format. - google.protobuf.StringValue start_date = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Last day on which the simulation is based, in YYYY-MM-DD format. - google.protobuf.StringValue end_date = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // List of simulation points. - oneof point_list { - // Output only. Simulation points if the simulation type is BID_MODIFIER. - google.ads.googleads.v3.common.BidModifierSimulationPointList bid_modifier_point_list = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/campaign_draft.proto b/third_party/googleapis/google/ads/googleads/v3/resources/campaign_draft.proto deleted file mode 100644 index 6e3601b68..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/campaign_draft.proto +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/enums/campaign_draft_status.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "CampaignDraftProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the Campaign Draft resource. - -// A campaign draft. -message CampaignDraft { - option (google.api.resource) = { - type: "googleads.googleapis.com/CampaignDraft" - pattern: "customers/{customer}/campaignDrafts/{campaign_draft}" - }; - - // Immutable. The resource name of the campaign draft. - // Campaign draft resource names have the form: - // - // `customers/{customer_id}/campaignDrafts/{base_campaign_id}~{draft_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignDraft" - } - ]; - - // Output only. The ID of the draft. - // - // This field is read-only. - google.protobuf.Int64Value draft_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. The base campaign to which the draft belongs. - google.protobuf.StringValue base_campaign = 3 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Campaign" - } - ]; - - // The name of the campaign draft. - // - // This field is required and should not be empty when creating new - // campaign drafts. - // - // It must not contain any null (code point 0x0), NL line feed - // (code point 0xA) or carriage return (code point 0xD) characters. - google.protobuf.StringValue name = 4; - - // Output only. Resource name of the Campaign that results from overlaying the draft - // changes onto the base campaign. - // - // This field is read-only. - google.protobuf.StringValue draft_campaign = 5 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Campaign" - } - ]; - - // Output only. The status of the campaign draft. This field is read-only. - // - // When a new campaign draft is added, the status defaults to PROPOSED. - google.ads.googleads.v3.enums.CampaignDraftStatusEnum.CampaignDraftStatus status = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Whether there is an experiment based on this draft currently serving. - google.protobuf.BoolValue has_experiment_running = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The resource name of the long-running operation that can be used to poll - // for completion of draft promotion. This is only set if the draft promotion - // is in progress or finished. - google.protobuf.StringValue long_running_operation = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/campaign_experiment.proto b/third_party/googleapis/google/ads/googleads/v3/resources/campaign_experiment.proto deleted file mode 100644 index a02838ba5..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/campaign_experiment.proto +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/enums/campaign_experiment_status.proto"; -import "google/ads/googleads/v3/enums/campaign_experiment_traffic_split_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "CampaignExperimentProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the Campaign Experiment resource. - -// An A/B experiment that compares the performance of the base campaign -// (the control) and a variation of that campaign (the experiment). -message CampaignExperiment { - option (google.api.resource) = { - type: "googleads.googleapis.com/CampaignExperiment" - pattern: "customers/{customer}/campaignExperiments/{campaign_experiment}" - }; - - // Immutable. The resource name of the campaign experiment. - // Campaign experiment resource names have the form: - // - // `customers/{customer_id}/campaignExperiments/{campaign_experiment_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignExperiment" - } - ]; - - // Output only. The ID of the campaign experiment. - // - // This field is read-only. - google.protobuf.Int64Value id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. The campaign draft with staged changes to the base campaign. - google.protobuf.StringValue campaign_draft = 3 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignDraft" - } - ]; - - // The name of the campaign experiment. - // - // This field is required when creating new campaign experiments - // and must not conflict with the name of another non-removed - // campaign experiment or campaign. - // - // It must not contain any null (code point 0x0), NL line feed - // (code point 0xA) or carriage return (code point 0xD) characters. - google.protobuf.StringValue name = 4; - - // The description of the experiment. - google.protobuf.StringValue description = 5; - - // Immutable. Share of traffic directed to experiment as a percent (must be between 1 and - // 99 inclusive. Base campaign receives the remainder of the traffic - // (100 - traffic_split_percent). Required for create. - google.protobuf.Int64Value traffic_split_percent = 6 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Determines the behavior of the traffic split. - google.ads.googleads.v3.enums.CampaignExperimentTrafficSplitTypeEnum.CampaignExperimentTrafficSplitType traffic_split_type = 7 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. The experiment campaign, as opposed to the base campaign. - google.protobuf.StringValue experiment_campaign = 8 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Campaign" - } - ]; - - // Output only. The status of the campaign experiment. This field is read-only. - google.ads.googleads.v3.enums.CampaignExperimentStatusEnum.CampaignExperimentStatus status = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The resource name of the long-running operation that can be used to poll - // for completion of experiment create or promote. The most recent long - // running operation is returned. - google.protobuf.StringValue long_running_operation = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Date when the campaign experiment starts. By default, the experiment starts - // now or on the campaign's start date, whichever is later. If this field is - // set, then the experiment starts at the beginning of the specified date in - // the customer's time zone. Cannot be changed once the experiment starts. - // - // Format: YYYY-MM-DD - // Example: 2019-03-14 - google.protobuf.StringValue start_date = 11; - - // Date when the campaign experiment ends. By default, the experiment ends on - // the campaign's end date. If this field is set, then the experiment ends at - // the end of the specified date in the customer's time zone. - // - // Format: YYYY-MM-DD - // Example: 2019-04-18 - google.protobuf.StringValue end_date = 12; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/campaign_extension_setting.proto b/third_party/googleapis/google/ads/googleads/v3/resources/campaign_extension_setting.proto deleted file mode 100644 index 32758f7e4..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/campaign_extension_setting.proto +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/enums/extension_setting_device.proto"; -import "google/ads/googleads/v3/enums/extension_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "CampaignExtensionSettingProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the CampaignExtensionSetting resource. - -// A campaign extension setting. -message CampaignExtensionSetting { - option (google.api.resource) = { - type: "googleads.googleapis.com/CampaignExtensionSetting" - pattern: "customers/{customer}/campaignExtensionSettings/{campaign_extension_setting}" - }; - - // Immutable. The resource name of the campaign extension setting. - // CampaignExtensionSetting resource names have the form: - // - // `customers/{customer_id}/campaignExtensionSettings/{campaign_id}~{extension_type}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignExtensionSetting" - } - ]; - - // Immutable. The extension type of the customer extension setting. - google.ads.googleads.v3.enums.ExtensionTypeEnum.ExtensionType extension_type = 2 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. The resource name of the campaign. The linked extension feed items will - // serve under this campaign. - // Campaign resource names have the form: - // - // `customers/{customer_id}/campaigns/{campaign_id}` - google.protobuf.StringValue campaign = 3 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Campaign" - } - ]; - - // The resource names of the extension feed items to serve under the campaign. - // ExtensionFeedItem resource names have the form: - // - // `customers/{customer_id}/extensionFeedItems/{feed_item_id}` - repeated google.protobuf.StringValue extension_feed_items = 4 [(google.api.resource_reference) = { - type: "googleads.googleapis.com/ExtensionFeedItem" - }]; - - // The device for which the extensions will serve. Optional. - google.ads.googleads.v3.enums.ExtensionSettingDeviceEnum.ExtensionSettingDevice device = 5; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/campaign_feed.proto b/third_party/googleapis/google/ads/googleads/v3/resources/campaign_feed.proto deleted file mode 100644 index 7836d161a..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/campaign_feed.proto +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/common/matching_function.proto"; -import "google/ads/googleads/v3/enums/feed_link_status.proto"; -import "google/ads/googleads/v3/enums/placeholder_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "CampaignFeedProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the CampaignFeed resource. - -// A campaign feed. -message CampaignFeed { - option (google.api.resource) = { - type: "googleads.googleapis.com/CampaignFeed" - pattern: "customers/{customer}/campaignFeeds/{campaign_feed}" - }; - - // Immutable. The resource name of the campaign feed. - // Campaign feed resource names have the form: - // - // `customers/{customer_id}/campaignFeeds/{campaign_id}~{feed_id} - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignFeed" - } - ]; - - // Immutable. The feed to which the CampaignFeed belongs. - google.protobuf.StringValue feed = 2 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Feed" - } - ]; - - // Immutable. The campaign to which the CampaignFeed belongs. - google.protobuf.StringValue campaign = 3 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Campaign" - } - ]; - - // Indicates which placeholder types the feed may populate under the connected - // campaign. Required. - repeated google.ads.googleads.v3.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. - // Required. - google.ads.googleads.v3.common.MatchingFunction matching_function = 5; - - // Output only. Status of the campaign feed. - // This field is read-only. - google.ads.googleads.v3.enums.FeedLinkStatusEnum.FeedLinkStatus status = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/campaign_label.proto b/third_party/googleapis/google/ads/googleads/v3/resources/campaign_label.proto deleted file mode 100644 index 8a92f5fa0..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/campaign_label.proto +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "CampaignLabelProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the campaign label resource. - -// Represents a relationship between a campaign and a label. -message CampaignLabel { - option (google.api.resource) = { - type: "googleads.googleapis.com/CampaignLabel" - pattern: "customers/{customer}/campaignLabels/{campaign_label}" - }; - - // Immutable. Name of the resource. - // Campaign label resource names have the form: - // `customers/{customer_id}/campaignLabels/{campaign_id}~{label_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignLabel" - } - ]; - - // Immutable. The campaign to which the label is attached. - google.protobuf.StringValue campaign = 2 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Campaign" - } - ]; - - // Immutable. The label assigned to the campaign. - google.protobuf.StringValue label = 3 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Label" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/campaign_shared_set.proto b/third_party/googleapis/google/ads/googleads/v3/resources/campaign_shared_set.proto deleted file mode 100644 index 2dab3234e..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/campaign_shared_set.proto +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/enums/campaign_shared_set_status.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "CampaignSharedSetProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the CampaignSharedSet resource. - -// CampaignSharedSets are used for managing the shared sets associated with a -// campaign. -message CampaignSharedSet { - option (google.api.resource) = { - type: "googleads.googleapis.com/CampaignSharedSet" - pattern: "customers/{customer}/campaignSharedSets/{campaign_shared_set}" - }; - - // Immutable. The resource name of the campaign shared set. - // Campaign shared set resource names have the form: - // - // `customers/{customer_id}/campaignSharedSets/{campaign_id}~{shared_set_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignSharedSet" - } - ]; - - // Immutable. The campaign to which the campaign shared set belongs. - google.protobuf.StringValue campaign = 3 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Campaign" - } - ]; - - // Immutable. The shared set associated with the campaign. This may be a negative keyword - // shared set of another customer. This customer should be a manager of the - // other customer, otherwise the campaign shared set will exist but have no - // serving effect. Only negative keyword shared sets can be associated with - // Shopping campaigns. Only negative placement shared sets can be associated - // with Display mobile app campaigns. - google.protobuf.StringValue shared_set = 4 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/SharedSet" - } - ]; - - // Output only. The status of this campaign shared set. Read only. - google.ads.googleads.v3.enums.CampaignSharedSetStatusEnum.CampaignSharedSetStatus status = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/carrier_constant.proto b/third_party/googleapis/google/ads/googleads/v3/resources/carrier_constant.proto deleted file mode 100644 index b892f3e4f..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/carrier_constant.proto +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "CarrierConstantProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the Carrier constant resource. - -// A carrier criterion that can be used in campaign targeting. -message CarrierConstant { - option (google.api.resource) = { - type: "googleads.googleapis.com/CarrierConstant" - pattern: "carrierConstants/{carrier_constant}" - }; - - // Output only. The resource name of the carrier criterion. - // Carrier criterion resource names have the form: - // - // `carrierConstants/{criterion_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CarrierConstant" - } - ]; - - // Output only. The ID of the carrier criterion. - google.protobuf.Int64Value id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The full name of the carrier in English. - google.protobuf.StringValue name = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The country code of the country where the carrier is located, e.g., "AR", - // "FR", etc. - google.protobuf.StringValue country_code = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/change_status.proto b/third_party/googleapis/google/ads/googleads/v3/resources/change_status.proto deleted file mode 100644 index 9c54a236c..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/change_status.proto +++ /dev/null @@ -1,145 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/enums/change_status_operation.proto"; -import "google/ads/googleads/v3/enums/change_status_resource_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "ChangeStatusProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the Change Status resource. - -// Describes the status of returned resource. -message ChangeStatus { - option (google.api.resource) = { - type: "googleads.googleapis.com/ChangeStatus" - pattern: "customers/{customer}/changeStatus/{change_status}" - }; - - // Output only. The resource name of the change status. - // Change status resource names have the form: - // - // `customers/{customer_id}/changeStatus/{change_status_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/ChangeStatus" - } - ]; - - // Output only. Time at which the most recent change has occurred on this resource. - google.protobuf.StringValue last_change_date_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. 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.v3.enums.ChangeStatusResourceTypeEnum.ChangeStatusResourceType resource_type = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The Campaign affected by this change. - google.protobuf.StringValue campaign = 5 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Campaign" - } - ]; - - // Output only. The AdGroup affected by this change. - google.protobuf.StringValue ad_group = 6 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroup" - } - ]; - - // Output only. Represents the status of the changed resource. - google.ads.googleads.v3.enums.ChangeStatusOperationEnum.ChangeStatusOperation resource_status = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The AdGroupAd affected by this change. - google.protobuf.StringValue ad_group_ad = 9 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupAd" - } - ]; - - // Output only. The AdGroupCriterion affected by this change. - google.protobuf.StringValue ad_group_criterion = 10 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupCriterion" - } - ]; - - // Output only. The CampaignCriterion affected by this change. - google.protobuf.StringValue campaign_criterion = 11 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignCriterion" - } - ]; - - // Output only. The Feed affected by this change. - google.protobuf.StringValue feed = 12 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Feed" - } - ]; - - // Output only. The FeedItem affected by this change. - google.protobuf.StringValue feed_item = 13 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/FeedItem" - } - ]; - - // Output only. The AdGroupFeed affected by this change. - google.protobuf.StringValue ad_group_feed = 14 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupFeed" - } - ]; - - // Output only. The CampaignFeed affected by this change. - google.protobuf.StringValue campaign_feed = 15 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignFeed" - } - ]; - - // Output only. The AdGroupBidModifier affected by this change. - google.protobuf.StringValue ad_group_bid_modifier = 16 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupBidModifier" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/click_view.proto b/third_party/googleapis/google/ads/googleads/v3/resources/click_view.proto deleted file mode 100644 index 216e207e4..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/click_view.proto +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/common/click_location.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "ClickViewProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the ClickView resource. - -// A click view with metrics aggregated at each click level, including both -// valid and invalid clicks. For non-Search campaigns, metrics.clicks -// represents the number of valid and invalid interactions. -// Queries including ClickView must have a filter limiting the results to one -// day and can be requested for dates back to 90 days before the time of the -// request. -message ClickView { - option (google.api.resource) = { - type: "googleads.googleapis.com/ClickView" - pattern: "customers/{customer}/clickViews/{click_view}" - }; - - // Output only. The resource name of the click view. - // Click view resource names have the form: - // - // `customers/{customer_id}/clickViews/{date (yyyy-MM-dd)}~{gclid}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/ClickView" - } - ]; - - // Output only. The Google Click ID. - google.protobuf.StringValue gclid = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The location criteria matching the area of interest associated with the - // impression. - google.ads.googleads.v3.common.ClickLocation area_of_interest = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The location criteria matching the location of presence associated with the - // impression. - google.ads.googleads.v3.common.ClickLocation location_of_presence = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Page number in search results where the ad was shown. - google.protobuf.Int64Value page_number = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The associated ad. - google.protobuf.StringValue ad_group_ad = 7 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupAd" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/conversion_action.proto b/third_party/googleapis/google/ads/googleads/v3/resources/conversion_action.proto deleted file mode 100644 index b5a33d3c6..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/conversion_action.proto +++ /dev/null @@ -1,144 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/common/tag_snippet.proto"; -import "google/ads/googleads/v3/enums/attribution_model.proto"; -import "google/ads/googleads/v3/enums/conversion_action_category.proto"; -import "google/ads/googleads/v3/enums/conversion_action_counting_type.proto"; -import "google/ads/googleads/v3/enums/conversion_action_status.proto"; -import "google/ads/googleads/v3/enums/conversion_action_type.proto"; -import "google/ads/googleads/v3/enums/data_driven_model_status.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "ConversionActionProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the Conversion Action resource. - -// A conversion action. -message ConversionAction { - option (google.api.resource) = { - type: "googleads.googleapis.com/ConversionAction" - pattern: "customers/{customer}/conversionActions/{conversion_action}" - }; - - // Settings related to this conversion action's attribution model. - message AttributionModelSettings { - // The attribution model type of this conversion action. - google.ads.googleads.v3.enums.AttributionModelEnum.AttributionModel attribution_model = 1; - - // Output only. The status of the data-driven attribution model for the conversion - // action. - google.ads.googleads.v3.enums.DataDrivenModelStatusEnum.DataDrivenModelStatus data_driven_model_status = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // Settings related to the value for conversion events associated with this - // conversion action. - message ValueSettings { - // The value to use when conversion events for this conversion action are - // sent with an invalid, disallowed or missing value, or when - // this conversion action is configured to always use the default value. - google.protobuf.DoubleValue default_value = 1; - - // The currency code to use when conversion events for this conversion - // action are sent with an invalid or missing currency code, or when this - // conversion action is configured to always use the default value. - google.protobuf.StringValue default_currency_code = 2; - - // Controls whether the default value and default currency code are used in - // place of the value and currency code specified in conversion events for - // this conversion action. - google.protobuf.BoolValue always_use_default_value = 3; - } - - // Immutable. The resource name of the conversion action. - // Conversion action resource names have the form: - // - // `customers/{customer_id}/conversionActions/{conversion_action_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/ConversionAction" - } - ]; - - // Output only. The ID of the conversion action. - google.protobuf.Int64Value id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The name of the conversion action. - // - // This field is required and should not be empty when creating new - // conversion actions. - google.protobuf.StringValue name = 3; - - // The status of this conversion action for conversion event accrual. - google.ads.googleads.v3.enums.ConversionActionStatusEnum.ConversionActionStatus status = 4; - - // Immutable. The type of this conversion action. - google.ads.googleads.v3.enums.ConversionActionTypeEnum.ConversionActionType type = 5 [(google.api.field_behavior) = IMMUTABLE]; - - // The category of conversions reported for this conversion action. - google.ads.googleads.v3.enums.ConversionActionCategoryEnum.ConversionActionCategory category = 6; - - // Output only. The resource name of the conversion action owner customer, or null if this - // is a system-defined conversion action. - google.protobuf.StringValue owner_customer = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Whether this conversion action should be included in the "conversions" - // metric. - google.protobuf.BoolValue include_in_conversions_metric = 8; - - // The maximum number of days that may elapse between an interaction - // (e.g., a click) and a conversion event. - google.protobuf.Int64Value click_through_lookback_window_days = 9; - - // The maximum number of days which may elapse between an impression and a - // conversion without an interaction. - google.protobuf.Int64Value view_through_lookback_window_days = 10; - - // Settings related to the value for conversion events associated with this - // conversion action. - ValueSettings value_settings = 11; - - // How to count conversion events for the conversion action. - google.ads.googleads.v3.enums.ConversionActionCountingTypeEnum.ConversionActionCountingType counting_type = 12; - - // Settings related to this conversion action's attribution model. - AttributionModelSettings attribution_model_settings = 13; - - // Output only. The snippets used for tracking conversions. - repeated google.ads.googleads.v3.common.TagSnippet tag_snippets = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The phone call duration in seconds after which a conversion should be - // reported for this conversion action. - // - // The value must be between 0 and 10000, inclusive. - google.protobuf.Int64Value phone_call_duration_seconds = 15; - - // App ID for an app conversion action. - google.protobuf.StringValue app_id = 16; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/currency_constant.proto b/third_party/googleapis/google/ads/googleads/v3/resources/currency_constant.proto deleted file mode 100644 index 69be80653..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/currency_constant.proto +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "CurrencyConstantProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the Currency Constant resource. - -// A currency constant. -message CurrencyConstant { - option (google.api.resource) = { - type: "googleads.googleapis.com/CurrencyConstant" - pattern: "currencyConstants/{currency_constant}" - }; - - // Output only. The resource name of the currency constant. - // Currency constant resource names have the form: - // - // `currencyConstants/{currency_code}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CurrencyConstant" - } - ]; - - // Output only. ISO 4217 three-letter currency code, e.g. "USD" - google.protobuf.StringValue code = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Full English name of the currency. - google.protobuf.StringValue name = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Standard symbol for describing this currency, e.g. '$' for US Dollars. - google.protobuf.StringValue symbol = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The billable unit for this currency. Billed amounts should be multiples of - // this value. - google.protobuf.Int64Value billable_unit_micros = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/custom_interest.proto b/third_party/googleapis/google/ads/googleads/v3/resources/custom_interest.proto deleted file mode 100644 index c2824decd..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/custom_interest.proto +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/enums/custom_interest_member_type.proto"; -import "google/ads/googleads/v3/enums/custom_interest_status.proto"; -import "google/ads/googleads/v3/enums/custom_interest_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "CustomInterestProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the Custom Interest resource. - -// A custom interest. This is a list of users by interest. -message CustomInterest { - option (google.api.resource) = { - type: "googleads.googleapis.com/CustomInterest" - pattern: "customers/{customer}/customInterests/{custom_interest}" - }; - - // Immutable. The resource name of the custom interest. - // Custom interest resource names have the form: - // - // `customers/{customer_id}/customInterests/{custom_interest_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CustomInterest" - } - ]; - - // Output only. Id of the custom interest. - google.protobuf.Int64Value id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Status of this custom interest. Indicates whether the custom interest is - // enabled or removed. - google.ads.googleads.v3.enums.CustomInterestStatusEnum.CustomInterestStatus status = 3; - - // Name of the custom interest. It should be unique across the same custom - // affinity audience. - // This field is required for create operations. - google.protobuf.StringValue name = 4; - - // Type of the custom interest, CUSTOM_AFFINITY or CUSTOM_INTENT. - // By default the type is set to CUSTOM_AFFINITY. - google.ads.googleads.v3.enums.CustomInterestTypeEnum.CustomInterestType type = 5; - - // Description of this custom interest audience. - google.protobuf.StringValue description = 6; - - // List of custom interest members that this custom interest is composed of. - // Members can be added during CustomInterest creation. If members are - // presented in UPDATE operation, existing members will be overridden. - repeated CustomInterestMember members = 7; -} - -// A member of custom interest audience. A member can be a keyword or url. -// 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.v3.enums.CustomInterestMemberTypeEnum.CustomInterestMemberType member_type = 1; - - // Keyword text when member_type is KEYWORD or URL string when - // member_type is URL. - google.protobuf.StringValue parameter = 2; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/customer.proto b/third_party/googleapis/google/ads/googleads/v3/resources/customer.proto deleted file mode 100644 index 7e4d3af1a..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/customer.proto +++ /dev/null @@ -1,138 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/enums/customer_pay_per_conversion_eligibility_failure_reason.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "CustomerProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the Customer resource. - -// A customer. -message Customer { - option (google.api.resource) = { - type: "googleads.googleapis.com/Customer" - pattern: "customers/{customer}" - }; - - // Immutable. The resource name of the customer. - // Customer resource names have the form: - // - // `customers/{customer_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Customer" - } - ]; - - // Output only. The ID of the customer. - google.protobuf.Int64Value id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Optional, non-unique descriptive name of the customer. - google.protobuf.StringValue descriptive_name = 4; - - // Immutable. The currency in which the account operates. - // A subset of the currency codes from the ISO 4217 standard is - // supported. - google.protobuf.StringValue currency_code = 5 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. The local timezone ID of the customer. - google.protobuf.StringValue time_zone = 6 [(google.api.field_behavior) = IMMUTABLE]; - - // The URL template for constructing a tracking URL out of parameters. - google.protobuf.StringValue tracking_url_template = 7; - - // The URL template for appending params to the final URL - google.protobuf.StringValue final_url_suffix = 11; - - // Whether auto-tagging is enabled for the customer. - google.protobuf.BoolValue auto_tagging_enabled = 8; - - // Output only. Whether the Customer has a Partners program badge. If the Customer is not - // associated with the Partners program, this will be false. For more - // information, see https://support.google.com/partners/answer/3125774. - google.protobuf.BoolValue has_partners_badge = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Whether the customer is a manager. - google.protobuf.BoolValue manager = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Whether the customer is a test account. - google.protobuf.BoolValue test_account = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Call reporting setting for a customer. - CallReportingSetting call_reporting_setting = 10; - - // Output only. Conversion tracking setting for a customer. - ConversionTrackingSetting conversion_tracking_setting = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Remarketing setting for a customer. - RemarketingSetting remarketing_setting = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. 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.v3.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason pay_per_conversion_eligibility_failure_reasons = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Call reporting setting for a customer. -message CallReportingSetting { - // Enable reporting of phone call events by redirecting them via Google - // System. - google.protobuf.BoolValue call_reporting_enabled = 1; - - // Whether to enable call conversion reporting. - google.protobuf.BoolValue call_conversion_reporting_enabled = 2; - - // Customer-level call conversion action to attribute a call conversion to. - // If not set a default conversion action is used. Only in effect when - // call_conversion_reporting_enabled is set to true. - google.protobuf.StringValue call_conversion_action = 9 [(google.api.resource_reference) = { - type: "googleads.googleapis.com/ConversionAction" - }]; -} - -// A collection of customer-wide settings related to Google Ads Conversion -// Tracking. -message ConversionTrackingSetting { - // Output only. The conversion tracking id used for this account. This id is automatically - // assigned after any conversion tracking feature is used. If the customer - // doesn't use conversion tracking, this is 0. This field is read-only. - google.protobuf.Int64Value conversion_tracking_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The conversion tracking id of the customer's manager. This is set when the - // customer is opted into cross account conversion tracking, and it overrides - // conversion_tracking_id. This field can only be managed through the Google - // Ads UI. This field is read-only. - google.protobuf.Int64Value cross_account_conversion_tracking_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Remarketing setting for a customer. -message RemarketingSetting { - // Output only. The Google global site tag. - google.protobuf.StringValue google_global_site_tag = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/customer_client.proto b/third_party/googleapis/google/ads/googleads/v3/resources/customer_client.proto deleted file mode 100644 index d04d4cada..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/customer_client.proto +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "CustomerClientProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the CustomerClient resource. - -// A link between the given customer and a client customer. CustomerClients only -// exist for manager customers. All direct and indirect client customers are -// included, as well as the manager itself. -message CustomerClient { - option (google.api.resource) = { - type: "googleads.googleapis.com/CustomerClient" - pattern: "customers/{customer}/customerClients/{customer_client}" - }; - - // Output only. The resource name of the customer client. - // CustomerClient resource names have the form: - // `customers/{customer_id}/customerClients/{client_customer_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CustomerClient" - } - ]; - - // Output only. The resource name of the client-customer which is linked to - // the given customer. Read only. - google.protobuf.StringValue client_customer = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Specifies whether this is a - // [hidden account](https://support.google.com/google-ads/answer/7519830). - // Read only. - google.protobuf.BoolValue hidden = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Distance between given customer and client. For self link, the level value - // will be 0. Read only. - google.protobuf.Int64Value level = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Common Locale Data Repository (CLDR) string representation of the - // time zone of the client, e.g. America/Los_Angeles. Read only. - google.protobuf.StringValue time_zone = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Identifies if the client is a test account. Read only. - google.protobuf.BoolValue test_account = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Identifies if the client is a manager. Read only. - google.protobuf.BoolValue manager = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Descriptive name for the client. Read only. - google.protobuf.StringValue descriptive_name = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Currency code (e.g. 'USD', 'EUR') for the client. Read only. - google.protobuf.StringValue currency_code = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The ID of the client customer. Read only. - google.protobuf.Int64Value id = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/customer_client_link.proto b/third_party/googleapis/google/ads/googleads/v3/resources/customer_client_link.proto deleted file mode 100644 index 520606171..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/customer_client_link.proto +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/enums/manager_link_status.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "CustomerClientLinkProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the CustomerClientLink resource. - -// Represents customer client link relationship. -message CustomerClientLink { - option (google.api.resource) = { - type: "googleads.googleapis.com/CustomerClientLink" - pattern: "customers/{customer}/customerClientLinks/{customer_client_link}" - }; - - // Immutable. Name of the resource. - // CustomerClientLink resource names have the form: - // `customers/{customer_id}/customerClientLinks/{client_customer_id}~{manager_link_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CustomerClientLink" - } - ]; - - // Immutable. The client customer linked to this customer. - google.protobuf.StringValue client_customer = 3 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. This is uniquely identifies a customer client link. Read only. - google.protobuf.Int64Value manager_link_id = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // This is the status of the link between client and manager. - google.ads.googleads.v3.enums.ManagerLinkStatusEnum.ManagerLinkStatus status = 5; - - // The visibility of the link. Users can choose whether or not to see hidden - // links in the Google Ads UI. - // Default value is false - google.protobuf.BoolValue hidden = 6; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/customer_extension_setting.proto b/third_party/googleapis/google/ads/googleads/v3/resources/customer_extension_setting.proto deleted file mode 100644 index c4c1ef8b8..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/customer_extension_setting.proto +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/enums/extension_setting_device.proto"; -import "google/ads/googleads/v3/enums/extension_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "CustomerExtensionSettingProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the CustomerExtensionSetting resource. - -// A customer extension setting. -message CustomerExtensionSetting { - option (google.api.resource) = { - type: "googleads.googleapis.com/CustomerExtensionSetting" - pattern: "customers/{customer}/customerExtensionSettings/{customer_extension_setting}" - }; - - // Immutable. The resource name of the customer extension setting. - // CustomerExtensionSetting resource names have the form: - // - // `customers/{customer_id}/customerExtensionSettings/{extension_type}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CustomerExtensionSetting" - } - ]; - - // Immutable. The extension type of the customer extension setting. - google.ads.googleads.v3.enums.ExtensionTypeEnum.ExtensionType extension_type = 2 [(google.api.field_behavior) = IMMUTABLE]; - - // The resource names of the extension feed items to serve under the customer. - // ExtensionFeedItem resource names have the form: - // - // `customers/{customer_id}/extensionFeedItems/{feed_item_id}` - repeated google.protobuf.StringValue extension_feed_items = 3 [(google.api.resource_reference) = { - type: "googleads.googleapis.com/ExtensionFeedItem" - }]; - - // The device for which the extensions will serve. Optional. - google.ads.googleads.v3.enums.ExtensionSettingDeviceEnum.ExtensionSettingDevice device = 4; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/customer_feed.proto b/third_party/googleapis/google/ads/googleads/v3/resources/customer_feed.proto deleted file mode 100644 index aacc6938d..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/customer_feed.proto +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/common/matching_function.proto"; -import "google/ads/googleads/v3/enums/feed_link_status.proto"; -import "google/ads/googleads/v3/enums/placeholder_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "CustomerFeedProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the CustomerFeed resource. - -// A customer feed. -message CustomerFeed { - option (google.api.resource) = { - type: "googleads.googleapis.com/CustomerFeed" - pattern: "customers/{customer}/customerFeeds/{customer_feed}" - }; - - // Immutable. The resource name of the customer feed. - // Customer feed resource names have the form: - // - // `customers/{customer_id}/customerFeeds/{feed_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CustomerFeed" - } - ]; - - // Immutable. The feed being linked to the customer. - google.protobuf.StringValue feed = 2 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Feed" - } - ]; - - // Indicates which placeholder types the feed may populate under the connected - // customer. Required. - repeated google.ads.googleads.v3.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. - // Required. - google.ads.googleads.v3.common.MatchingFunction matching_function = 4; - - // Output only. Status of the customer feed. - // This field is read-only. - google.ads.googleads.v3.enums.FeedLinkStatusEnum.FeedLinkStatus status = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/customer_label.proto b/third_party/googleapis/google/ads/googleads/v3/resources/customer_label.proto deleted file mode 100644 index c36f4c381..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/customer_label.proto +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "CustomerLabelProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the customer label resource. - -// Represents a relationship between a customer and a label. This customer may -// not have access to all the labels attached to it. Additional CustomerLabels -// may be returned by increasing permissions with login-customer-id. -message CustomerLabel { - option (google.api.resource) = { - type: "googleads.googleapis.com/CustomerLabel" - pattern: "customers/{customer}/customerLabels/{customer_label}" - }; - - // Immutable. Name of the resource. - // Customer label resource names have the form: - // `customers/{customer_id}/customerLabels/{label_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CustomerLabel" - } - ]; - - // Output only. The resource name of the customer to which the label is attached. - // Read only. - google.protobuf.StringValue customer = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The resource name of the label assigned to the customer. - // - // Note: the Customer ID portion of the label resource name is not - // validated when creating a new CustomerLabel. - google.protobuf.StringValue label = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/customer_manager_link.proto b/third_party/googleapis/google/ads/googleads/v3/resources/customer_manager_link.proto deleted file mode 100644 index 9843d9d39..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/customer_manager_link.proto +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/enums/manager_link_status.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "CustomerManagerLinkProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the CustomerManagerLink resource. - -// Represents customer-manager link relationship. -message CustomerManagerLink { - option (google.api.resource) = { - type: "googleads.googleapis.com/CustomerManagerLink" - pattern: "customers/{customer}/customerManagerLinks/{customer_manager_link}" - }; - - // Immutable. Name of the resource. - // CustomerManagerLink resource names have the form: - // `customers/{customer_id}/customerManagerLinks/{manager_customer_id}~{manager_link_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CustomerManagerLink" - } - ]; - - // Output only. The manager customer linked to the customer. - google.protobuf.StringValue manager_customer = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. ID of the customer-manager link. This field is read only. - google.protobuf.Int64Value manager_link_id = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Status of the link between the customer and the manager. - google.ads.googleads.v3.enums.ManagerLinkStatusEnum.ManagerLinkStatus status = 5; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/customer_negative_criterion.proto b/third_party/googleapis/google/ads/googleads/v3/resources/customer_negative_criterion.proto deleted file mode 100644 index 521aabcdf..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/customer_negative_criterion.proto +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/common/criteria.proto"; -import "google/ads/googleads/v3/enums/criterion_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "CustomerNegativeCriterionProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the Customer Negative Criterion resource. - -// A negative criterion for exclusions at the customer level. -message CustomerNegativeCriterion { - option (google.api.resource) = { - type: "googleads.googleapis.com/CustomerNegativeCriterion" - pattern: "customers/{customer}/customerNegativeCriteria/{customer_negative_criterion}" - }; - - // Immutable. The resource name of the customer negative criterion. - // Customer negative criterion resource names have the form: - // - // `customers/{customer_id}/customerNegativeCriteria/{criterion_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CustomerNegativeCriterion" - } - ]; - - // Output only. The ID of the criterion. - google.protobuf.Int64Value id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The type of the criterion. - google.ads.googleads.v3.enums.CriterionTypeEnum.CriterionType type = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The customer negative criterion. - // - // Exactly one must be set. - oneof criterion { - // Immutable. ContentLabel. - google.ads.googleads.v3.common.ContentLabelInfo content_label = 4 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. MobileApplication. - google.ads.googleads.v3.common.MobileApplicationInfo mobile_application = 5 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. MobileAppCategory. - google.ads.googleads.v3.common.MobileAppCategoryInfo mobile_app_category = 6 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Placement. - google.ads.googleads.v3.common.PlacementInfo placement = 7 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. YouTube Video. - google.ads.googleads.v3.common.YouTubeVideoInfo youtube_video = 8 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. YouTube Channel. - google.ads.googleads.v3.common.YouTubeChannelInfo youtube_channel = 9 [(google.api.field_behavior) = IMMUTABLE]; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/detail_placement_view.proto b/third_party/googleapis/google/ads/googleads/v3/resources/detail_placement_view.proto deleted file mode 100644 index b34526abd..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/detail_placement_view.proto +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/enums/placement_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "DetailPlacementViewProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the detail placement view resource. - -// A view with metrics aggregated by ad group and URL or YouTube video. -message DetailPlacementView { - option (google.api.resource) = { - type: "googleads.googleapis.com/DetailPlacementView" - pattern: "customers/{customer}/detailPlacementViews/{detail_placement_view}" - }; - - // Output only. The resource name of the detail placement view. - // Detail placement view resource names have the form: - // - // `customers/{customer_id}/detailPlacementViews/{ad_group_id}~{base64_placement}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/DetailPlacementView" - } - ]; - - // Output only. The automatic placement string at detail level, e. g. website URL, mobile - // application ID, or a YouTube video ID. - google.protobuf.StringValue placement = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The display name is URL name for websites, YouTube video name for YouTube - // videos, and translated mobile app name for mobile apps. - google.protobuf.StringValue display_name = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. URL of the group placement, e.g. domain, link to the mobile application in - // app store, or a YouTube channel URL. - google.protobuf.StringValue group_placement_target_url = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. URL of the placement, e.g. website, link to the mobile application in app - // store, or a YouTube video URL. - google.protobuf.StringValue target_url = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Type of the placement, e.g. Website, YouTube Video, and Mobile Application. - google.ads.googleads.v3.enums.PlacementTypeEnum.PlacementType placement_type = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/display_keyword_view.proto b/third_party/googleapis/google/ads/googleads/v3/resources/display_keyword_view.proto deleted file mode 100644 index ef6a16f7c..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/display_keyword_view.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "DisplayKeywordViewProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the display keyword view resource. - -// A display keyword view. -message DisplayKeywordView { - option (google.api.resource) = { - type: "googleads.googleapis.com/DisplayKeywordView" - pattern: "customers/{customer}/displayKeywordViews/{display_keyword_view}" - }; - - // Output only. The resource name of the display keyword view. - // Display Keyword view resource names have the form: - // - // `customers/{customer_id}/displayKeywordViews/{ad_group_id}~{criterion_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/DisplayKeywordView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/distance_view.proto b/third_party/googleapis/google/ads/googleads/v3/resources/distance_view.proto deleted file mode 100644 index d334934b6..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/distance_view.proto +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/enums/distance_bucket.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "DistanceViewProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the DistanceView resource. - -// A distance view with metrics aggregated by the user's distance from an -// advertiser's location extensions. Each DistanceBucket includes all -// impressions that fall within its distance and a single impression will -// contribute to the metrics for all DistanceBuckets that include the user's -// distance. -message DistanceView { - option (google.api.resource) = { - type: "googleads.googleapis.com/DistanceView" - pattern: "customers/{customer}/distanceViews/{distance_view}" - }; - - // Output only. The resource name of the distance view. - // Distance view resource names have the form: - // - // `customers/{customer_id}/distanceViews/1~{distance_bucket}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/DistanceView" - } - ]; - - // Output only. Grouping of user distance from location extensions. - google.ads.googleads.v3.enums.DistanceBucketEnum.DistanceBucket distance_bucket = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. True if the DistanceBucket is using the metric system, false otherwise. - google.protobuf.BoolValue metric_system = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/domain_category.proto b/third_party/googleapis/google/ads/googleads/v3/resources/domain_category.proto deleted file mode 100644 index 95faa4dcd..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/domain_category.proto +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "DomainCategoryProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the Domain Category resource. - -// A category generated automatically by crawling a domain. If a campaign uses -// the DynamicSearchAdsSetting, then domain categories will be generated for -// the domain. The categories can be targeted using WebpageConditionInfo. -// See: https://support.google.com/google-ads/answer/2471185 -message DomainCategory { - option (google.api.resource) = { - type: "googleads.googleapis.com/DomainCategory" - pattern: "customers/{customer}/domainCategories/{domain_category}" - }; - - // Output only. The resource name of the domain category. - // Domain category resource names have the form: - // - // `customers/{customer_id}/domainCategories/{campaign_id}~{category_base64}~{language_code}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/DomainCategory" - } - ]; - - // Output only. The campaign this category is recommended for. - google.protobuf.StringValue campaign = 2 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Campaign" - } - ]; - - // Output only. Recommended category for the website domain. e.g. if you have a website - // about electronics, the categories could be "cameras", "televisions", etc. - google.protobuf.StringValue category = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The language code specifying the language of the website. e.g. "en" for - // English. The language can be specified in the DynamicSearchAdsSetting - // required for dynamic search ads. This is the language of the pages from - // your website that you want Google Ads to find, create ads for, - // and match searches with. - google.protobuf.StringValue language_code = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The domain for the website. The domain can be specified in the - // DynamicSearchAdsSetting required for dynamic search ads. - google.protobuf.StringValue domain = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Fraction of pages on your site that this category matches. - google.protobuf.DoubleValue coverage_fraction = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The position of this category in the set of categories. Lower numbers - // indicate a better match for the domain. null indicates not recommended. - google.protobuf.Int64Value category_rank = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Indicates whether this category has sub-categories. - google.protobuf.BoolValue has_children = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The recommended cost per click for the category. - google.protobuf.Int64Value recommended_cpc_bid_micros = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/dynamic_search_ads_search_term_view.proto b/third_party/googleapis/google/ads/googleads/v3/resources/dynamic_search_ads_search_term_view.proto deleted file mode 100644 index 688d4af4d..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/dynamic_search_ads_search_term_view.proto +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "DynamicSearchAdsSearchTermViewProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the Dynamic Search Ads Search Term View resource. - -// A dynamic search ads search term view. -message DynamicSearchAdsSearchTermView { - option (google.api.resource) = { - type: "googleads.googleapis.com/DynamicSearchAdsSearchTermView" - pattern: "customers/{customer}/dynamicSearchAdsSearchTermViews/{dynamic_search_ads_search_term_view}" - }; - - // Output only. The resource name of the dynamic search ads search term view. - // Dynamic search ads search term view resource names have the form: - // - // `customers/{customer_id}/dynamicSearchAdsSearchTermViews/{ad_group_id}~{search_term_fp}~{headline_fp}~{landing_page_fp}~{page_url_fp}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/DynamicSearchAdsSearchTermView" - } - ]; - - // Output only. Search term - // - // This field is read-only. - google.protobuf.StringValue search_term = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The dynamically generated headline of the Dynamic Search Ad. - // - // This field is read-only. - google.protobuf.StringValue headline = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The dynamically selected landing page URL of the impression. - // - // This field is read-only. - google.protobuf.StringValue landing_page = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The URL of page feed item served for the impression. - // - // This field is read-only. - google.protobuf.StringValue page_url = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. True if query matches a negative keyword. - // - // This field is read-only. - google.protobuf.BoolValue has_negative_keyword = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. True if query is added to targeted keywords. - // - // This field is read-only. - google.protobuf.BoolValue has_matching_keyword = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. True if query matches a negative url. - // - // This field is read-only. - google.protobuf.BoolValue has_negative_url = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/expanded_landing_page_view.proto b/third_party/googleapis/google/ads/googleads/v3/resources/expanded_landing_page_view.proto deleted file mode 100644 index c6402b156..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/expanded_landing_page_view.proto +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "ExpandedLandingPageViewProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the expanded landing page view resource. - -// A landing page view with metrics aggregated at the expanded final URL -// level. -message ExpandedLandingPageView { - option (google.api.resource) = { - type: "googleads.googleapis.com/ExpandedLandingPageView" - pattern: "customers/{customer}/expandedLandingPageViews/{expanded_landing_page_view}" - }; - - // Output only. The resource name of the expanded landing page view. - // Expanded landing page view resource names have the form: - // - // `customers/{customer_id}/expandedLandingPageViews/{expanded_final_url_fingerprint}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/ExpandedLandingPageView" - } - ]; - - // Output only. The final URL that clicks are directed to. - google.protobuf.StringValue expanded_final_url = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/extension_feed_item.proto b/third_party/googleapis/google/ads/googleads/v3/resources/extension_feed_item.proto deleted file mode 100644 index 5f8348682..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/extension_feed_item.proto +++ /dev/null @@ -1,149 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/common/criteria.proto"; -import "google/ads/googleads/v3/common/extensions.proto"; -import "google/ads/googleads/v3/enums/extension_type.proto"; -import "google/ads/googleads/v3/enums/feed_item_status.proto"; -import "google/ads/googleads/v3/enums/feed_item_target_device.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "ExtensionFeedItemProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the ExtensionFeedItem resource. - -// An extension feed item. -message ExtensionFeedItem { - option (google.api.resource) = { - type: "googleads.googleapis.com/ExtensionFeedItem" - pattern: "customers/{customer}/extensionFeedItems/{extension_feed_item}" - }; - - // Immutable. The resource name of the extension feed item. - // Extension feed item resource names have the form: - // - // `customers/{customer_id}/extensionFeedItems/{feed_item_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/ExtensionFeedItem" - } - ]; - - // Output only. The ID of this feed item. Read-only. - google.protobuf.Int64Value id = 24 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The extension type of the extension feed item. - // This field is read-only. - google.ads.googleads.v3.enums.ExtensionTypeEnum.ExtensionType extension_type = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Start time in which this feed item is effective and can begin serving. The - // time is in the customer's time zone. - // The format is "YYYY-MM-DD HH:MM:SS". - // Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30" - google.protobuf.StringValue start_date_time = 5; - - // End time in which this feed item is no longer effective and will stop - // serving. The time is in the customer's time zone. - // The format is "YYYY-MM-DD HH:MM:SS". - // Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30" - google.protobuf.StringValue end_date_time = 6; - - // List of non-overlapping schedules specifying all time intervals - // for which the feed item may serve. There can be a maximum of 6 schedules - // per day. - repeated google.ads.googleads.v3.common.AdScheduleInfo ad_schedules = 16; - - // The targeted device. - google.ads.googleads.v3.enums.FeedItemTargetDeviceEnum.FeedItemTargetDevice device = 17; - - // The targeted geo target constant. - google.protobuf.StringValue targeted_geo_target_constant = 20 [(google.api.resource_reference) = { - type: "googleads.googleapis.com/GeoTargetConstant" - }]; - - // The targeted keyword. - google.ads.googleads.v3.common.KeywordInfo targeted_keyword = 22; - - // Output only. Status of the feed item. - // This field is read-only. - google.ads.googleads.v3.enums.FeedItemStatusEnum.FeedItemStatus status = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Extension type. - oneof extension { - // Sitelink extension. - google.ads.googleads.v3.common.SitelinkFeedItem sitelink_feed_item = 2; - - // Structured snippet extension. - google.ads.googleads.v3.common.StructuredSnippetFeedItem structured_snippet_feed_item = 3; - - // App extension. - google.ads.googleads.v3.common.AppFeedItem app_feed_item = 7; - - // Call extension. - google.ads.googleads.v3.common.CallFeedItem call_feed_item = 8; - - // Callout extension. - google.ads.googleads.v3.common.CalloutFeedItem callout_feed_item = 9; - - // Text message extension. - google.ads.googleads.v3.common.TextMessageFeedItem text_message_feed_item = 10; - - // Price extension. - google.ads.googleads.v3.common.PriceFeedItem price_feed_item = 11; - - // Promotion extension. - google.ads.googleads.v3.common.PromotionFeedItem promotion_feed_item = 12; - - // Output only. Location extension. Locations are synced from a GMB account into a feed. - // This field is read-only. - google.ads.googleads.v3.common.LocationFeedItem location_feed_item = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Affiliate location extension. Feed locations are populated by Google Ads - // based on a chain ID. - // This field is read-only. - google.ads.googleads.v3.common.AffiliateLocationFeedItem affiliate_location_feed_item = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Hotel Callout extension. - google.ads.googleads.v3.common.HotelCalloutFeedItem hotel_callout_feed_item = 23; - } - - // Targeting at either the campaign or ad group level. Feed items that target - // a campaign or ad group will only serve with that resource. - oneof serving_resource_targeting { - // The targeted campaign. - google.protobuf.StringValue targeted_campaign = 18 [(google.api.resource_reference) = { - type: "googleads.googleapis.com/Campaign" - }]; - - // The targeted ad group. - google.protobuf.StringValue targeted_ad_group = 19 [(google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroup" - }]; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/feed.proto b/third_party/googleapis/google/ads/googleads/v3/resources/feed.proto deleted file mode 100644 index 98c58d338..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/feed.proto +++ /dev/null @@ -1,193 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/enums/affiliate_location_feed_relationship_type.proto"; -import "google/ads/googleads/v3/enums/feed_attribute_type.proto"; -import "google/ads/googleads/v3/enums/feed_origin.proto"; -import "google/ads/googleads/v3/enums/feed_status.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "FeedProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the Feed resource. - -// A feed. -message Feed { - option (google.api.resource) = { - type: "googleads.googleapis.com/Feed" - pattern: "customers/{customer}/feeds/{feed}" - }; - - // Data used to configure a location feed populated from Google My Business - // Locations. - message PlacesLocationFeedData { - // Data used for authorization using OAuth. - message OAuthInfo { - // The HTTP method used to obtain authorization. - google.protobuf.StringValue http_method = 1; - - // The HTTP request URL used to obtain authorization. - google.protobuf.StringValue http_request_url = 2; - - // The HTTP authorization header used to obtain authorization. - google.protobuf.StringValue http_authorization_header = 3; - } - - // Immutable. Required authentication token (from OAuth API) for the email. - // This field can only be specified in a create request. All its subfields - // are not selectable. - OAuthInfo oauth_info = 1 [(google.api.field_behavior) = IMMUTABLE]; - - // Email address of a Google My Business account or email address of a - // manager of the Google My Business account. Required. - google.protobuf.StringValue email_address = 2; - - // Plus page ID of the managed business whose locations should be used. If - // this field is not set, then all businesses accessible by the user - // (specified by email_address) are used. - // This field is mutate-only and is not selectable. - google.protobuf.StringValue business_account_id = 10; - - // Used to filter Google My Business listings by business name. If - // business_name_filter is set, only listings with a matching business name - // are candidates to be sync'd into FeedItems. - google.protobuf.StringValue business_name_filter = 4; - - // Used to filter Google My Business listings by categories. If entries - // exist in category_filters, only listings that belong to any of the - // categories are candidates to be sync'd into FeedItems. If no entries - // exist in category_filters, then all listings are candidates for syncing. - repeated google.protobuf.StringValue category_filters = 5; - - // Used to filter Google My Business listings by labels. If entries exist in - // label_filters, only listings that has any of the labels set are - // candidates to be synchronized into FeedItems. If no entries exist in - // label_filters, then all listings are candidates for syncing. - repeated google.protobuf.StringValue label_filters = 6; - } - - // Data used to configure an affiliate location feed populated with the - // specified chains. - message AffiliateLocationFeedData { - // The list of chains that the affiliate location feed will sync the - // locations from. - repeated google.protobuf.Int64Value chain_ids = 1; - - // The relationship the chains have with the advertiser. - google.ads.googleads.v3.enums.AffiliateLocationFeedRelationshipTypeEnum.AffiliateLocationFeedRelationshipType relationship_type = 2; - } - - // Immutable. The resource name of the feed. - // Feed resource names have the form: - // - // `customers/{customer_id}/feeds/{feed_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Feed" - } - ]; - - // Output only. The ID of the feed. - // This field is read-only. - google.protobuf.Int64Value id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. Name of the feed. Required. - google.protobuf.StringValue name = 3 [(google.api.field_behavior) = IMMUTABLE]; - - // The Feed's attributes. Required on CREATE, unless - // system_feed_generation_data is provided, in which case Google Ads will - // update the feed with the correct attributes. - // Disallowed on UPDATE. Use attribute_operations to add new attributes. - repeated FeedAttribute attributes = 4; - - // The list of operations changing the feed attributes. Attributes can only - // be added, not removed. - repeated FeedAttributeOperation attribute_operations = 9; - - // Immutable. Specifies who manages the FeedAttributes for the Feed. - google.ads.googleads.v3.enums.FeedOriginEnum.FeedOrigin origin = 5 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. Status of the feed. - // This field is read-only. - google.ads.googleads.v3.enums.FeedStatusEnum.FeedStatus status = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The system data for the Feed. This data specifies information for - // generating the feed items of the system generated feed. - oneof system_feed_generation_data { - // Data used to configure a location feed populated from Google My Business - // Locations. - PlacesLocationFeedData places_location_feed_data = 6; - - // Data used to configure an affiliate location feed populated with - // the specified chains. - AffiliateLocationFeedData affiliate_location_feed_data = 7; - } -} - -// FeedAttributes define the types of data expected to be present in a Feed. A -// single FeedAttribute specifies the expected type of the FeedItemAttributes -// with the same FeedAttributeId. Optionally, a FeedAttribute can be marked as -// being part of a FeedItem's unique key. -message FeedAttribute { - // ID of the attribute. - google.protobuf.Int64Value id = 1; - - // The name of the attribute. Required. - google.protobuf.StringValue name = 2; - - // Data type for feed attribute. Required. - google.ads.googleads.v3.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 - // that a unique key is not required in a Feed's schema, in which case the - // FeedItems must be referenced by their feed_item_id. - google.protobuf.BoolValue is_part_of_key = 4; -} - -// Operation to be performed on a feed attribute list in a mutate. -message FeedAttributeOperation { - // The operator. - enum Operator { - // Unspecified. - UNSPECIFIED = 0; - - // Used for return value only. Represents value unknown in this version. - UNKNOWN = 1; - - // Add the attribute to the existing attributes. - ADD = 2; - } - - // Output only. Type of list operation to perform. - Operator operator = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The feed attribute being added to the list. - FeedAttribute value = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/feed_item.proto b/third_party/googleapis/google/ads/googleads/v3/resources/feed_item.proto deleted file mode 100644 index e683626fc..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/feed_item.proto +++ /dev/null @@ -1,215 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/common/custom_parameter.proto"; -import "google/ads/googleads/v3/common/feed_common.proto"; -import "google/ads/googleads/v3/common/policy.proto"; -import "google/ads/googleads/v3/enums/feed_item_quality_approval_status.proto"; -import "google/ads/googleads/v3/enums/feed_item_quality_disapproval_reason.proto"; -import "google/ads/googleads/v3/enums/feed_item_status.proto"; -import "google/ads/googleads/v3/enums/feed_item_validation_status.proto"; -import "google/ads/googleads/v3/enums/geo_targeting_restriction.proto"; -import "google/ads/googleads/v3/enums/placeholder_type.proto"; -import "google/ads/googleads/v3/enums/policy_approval_status.proto"; -import "google/ads/googleads/v3/enums/policy_review_status.proto"; -import "google/ads/googleads/v3/errors/feed_item_validation_error.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "FeedItemProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the FeedItem resource. - -// A feed item. -message FeedItem { - option (google.api.resource) = { - type: "googleads.googleapis.com/FeedItem" - pattern: "customers/{customer}/feedItems/{feed_item}" - }; - - // Immutable. The resource name of the feed item. - // Feed item resource names have the form: - // - // `customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/FeedItem" - } - ]; - - // Immutable. The feed to which this feed item belongs. - google.protobuf.StringValue feed = 2 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Feed" - } - ]; - - // Output only. The ID of this feed item. - google.protobuf.Int64Value id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Start time in which this feed item is effective and can begin serving. The - // time is in the customer's time zone. - // The format is "YYYY-MM-DD HH:MM:SS". - // Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30" - google.protobuf.StringValue start_date_time = 4; - - // End time in which this feed item is no longer effective and will stop - // serving. The time is in the customer's time zone. - // The format is "YYYY-MM-DD HH:MM:SS". - // Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30" - google.protobuf.StringValue end_date_time = 5; - - // The feed item's attribute values. - repeated FeedItemAttributeValue attribute_values = 6; - - // Geo targeting restriction specifies the type of location that can be used - // for targeting. - google.ads.googleads.v3.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.v3.common.CustomParameter url_custom_parameters = 8; - - // Output only. Status of the feed item. - // This field is read-only. - google.ads.googleads.v3.enums.FeedItemStatusEnum.FeedItemStatus status = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. List of info about a feed item's validation and approval state for active - // feed mappings. There will be an entry in the list for each type of feed - // mapping associated with the feed, e.g. a feed with a sitelink and a call - // feed mapping would cause every feed item associated with that feed to have - // an entry in this list for both sitelink and call. - // This field is read-only. - repeated FeedItemPlaceholderPolicyInfo policy_infos = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// A feed item attribute value. -message FeedItemAttributeValue { - // Id of the feed attribute for which the value is associated with. - google.protobuf.Int64Value feed_attribute_id = 1; - - // Int64 value. Should be set if feed_attribute_id refers to a feed attribute - // of type INT64. - google.protobuf.Int64Value integer_value = 2; - - // Bool value. Should be set if feed_attribute_id refers to a feed attribute - // of type BOOLEAN. - google.protobuf.BoolValue boolean_value = 3; - - // String value. Should be set if feed_attribute_id refers to a feed attribute - // of type STRING, URL or DATE_TIME. - // For STRING the maximum length is 1500 characters. For URL the maximum - // length is 2076 characters. For DATE_TIME the string must be in the format - // "YYYYMMDD HHMMSS". - google.protobuf.StringValue string_value = 4; - - // Double value. Should be set if feed_attribute_id refers to a feed attribute - // of type DOUBLE. - google.protobuf.DoubleValue double_value = 5; - - // Price value. Should be set if feed_attribute_id refers to a feed attribute - // of type PRICE. - google.ads.googleads.v3.common.Money price_value = 6; - - // Repeated int64 value. Should be set if feed_attribute_id refers to a feed - // attribute of type INT64_LIST. - repeated google.protobuf.Int64Value integer_values = 7; - - // Repeated bool value. Should be set if feed_attribute_id refers to a feed - // attribute of type BOOLEAN_LIST. - repeated google.protobuf.BoolValue boolean_values = 8; - - // Repeated string value. Should be set if feed_attribute_id refers to a feed - // attribute of type STRING_LIST, URL_LIST or DATE_TIME_LIST. - // For STRING_LIST and URL_LIST the total size of the list in bytes may not - // exceed 3000. For DATE_TIME_LIST the number of elements may not exceed 200. - // - // For STRING_LIST the maximum length of each string element is 1500 - // characters. For URL_LIST the maximum length is 2076 characters. For - // DATE_TIME the format of the string must be the same as start and end time - // for the feed item. - repeated google.protobuf.StringValue string_values = 9; - - // Repeated double value. Should be set if feed_attribute_id refers to a feed - // attribute of type DOUBLE_LIST. - repeated google.protobuf.DoubleValue double_values = 10; -} - -// Policy, validation, and quality approval info for a feed item for the -// specified placeholder type. -message FeedItemPlaceholderPolicyInfo { - // Output only. The placeholder type. - google.ads.googleads.v3.enums.PlaceholderTypeEnum.PlaceholderType placeholder_type_enum = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The FeedMapping that contains the placeholder type. - google.protobuf.StringValue feed_mapping_resource_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Where the placeholder type is in the review process. - google.ads.googleads.v3.enums.PolicyReviewStatusEnum.PolicyReviewStatus review_status = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The overall approval status of the placeholder type, calculated based on - // the status of its individual policy topic entries. - google.ads.googleads.v3.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus approval_status = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The list of policy findings for the placeholder type. - repeated google.ads.googleads.v3.common.PolicyTopicEntry policy_topic_entries = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The validation status of the palceholder type. - google.ads.googleads.v3.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus validation_status = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. List of placeholder type validation errors. - repeated FeedItemValidationError validation_errors = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Placeholder type quality evaluation approval status. - google.ads.googleads.v3.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus quality_approval_status = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. List of placeholder type quality evaluation disapproval reasons. - repeated google.ads.googleads.v3.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason quality_disapproval_reasons = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Stores a validation error and the set of offending feed attributes which -// together are responsible for causing a feed item validation error. -message FeedItemValidationError { - // Output only. Error code indicating what validation error was triggered. The description - // of the error can be found in the 'description' field. - google.ads.googleads.v3.errors.FeedItemValidationErrorEnum.FeedItemValidationError validation_error = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The description of the validation error. - google.protobuf.StringValue description = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Set of feed attributes in the feed item flagged during validation. If - // empty, no specific feed attributes can be associated with the error - // (e.g. error across the entire feed item). - repeated google.protobuf.Int64Value feed_attribute_ids = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Any extra information related to this error which is not captured by - // validation_error and feed_attribute_id (e.g. placeholder field IDs when - // feed_attribute_id is not mapped). Note that extra_info is not localized. - google.protobuf.StringValue extra_info = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/feed_item_target.proto b/third_party/googleapis/google/ads/googleads/v3/resources/feed_item_target.proto deleted file mode 100644 index d5ca398df..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/feed_item_target.proto +++ /dev/null @@ -1,109 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/common/criteria.proto"; -import "google/ads/googleads/v3/enums/feed_item_target_device.proto"; -import "google/ads/googleads/v3/enums/feed_item_target_status.proto"; -import "google/ads/googleads/v3/enums/feed_item_target_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "FeedItemTargetProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the FeedItemTarget resource. - -// A feed item target. -message FeedItemTarget { - option (google.api.resource) = { - type: "googleads.googleapis.com/FeedItemTarget" - pattern: "customers/{customer}/feedItemTargets/{feed_item_target}" - }; - - // Immutable. The resource name of the feed item target. - // Feed item target resource names have the form: - // `customers/{customer_id}/feedItemTargets/{feed_id}~{feed_item_id}~{feed_item_target_type}~{feed_item_target_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/FeedItemTarget" - } - ]; - - // Immutable. The feed item to which this feed item target belongs. - google.protobuf.StringValue feed_item = 2 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/FeedItem" - } - ]; - - // Output only. The target type of this feed item target. This field is read-only. - google.ads.googleads.v3.enums.FeedItemTargetTypeEnum.FeedItemTargetType feed_item_target_type = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The ID of the targeted resource. This field is read-only. - google.protobuf.Int64Value feed_item_target_id = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Status of the feed item target. - // This field is read-only. - google.ads.googleads.v3.enums.FeedItemTargetStatusEnum.FeedItemTargetStatus status = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The targeted resource. - oneof target { - // Immutable. The targeted campaign. - google.protobuf.StringValue campaign = 4 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Campaign" - } - ]; - - // Immutable. The targeted ad group. - google.protobuf.StringValue ad_group = 5 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroup" - } - ]; - - // Immutable. The targeted keyword. - google.ads.googleads.v3.common.KeywordInfo keyword = 7 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. The targeted geo target constant resource name. - google.protobuf.StringValue geo_target_constant = 8 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/GeoTargetConstant" - } - ]; - - // Immutable. The targeted device. - google.ads.googleads.v3.enums.FeedItemTargetDeviceEnum.FeedItemTargetDevice device = 9 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. The targeted schedule. - google.ads.googleads.v3.common.AdScheduleInfo ad_schedule = 10 [(google.api.field_behavior) = IMMUTABLE]; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/feed_mapping.proto b/third_party/googleapis/google/ads/googleads/v3/resources/feed_mapping.proto deleted file mode 100644 index b0a0d51b7..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/feed_mapping.proto +++ /dev/null @@ -1,186 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/enums/ad_customizer_placeholder_field.proto"; -import "google/ads/googleads/v3/enums/affiliate_location_placeholder_field.proto"; -import "google/ads/googleads/v3/enums/app_placeholder_field.proto"; -import "google/ads/googleads/v3/enums/call_placeholder_field.proto"; -import "google/ads/googleads/v3/enums/callout_placeholder_field.proto"; -import "google/ads/googleads/v3/enums/custom_placeholder_field.proto"; -import "google/ads/googleads/v3/enums/dsa_page_feed_criterion_field.proto"; -import "google/ads/googleads/v3/enums/education_placeholder_field.proto"; -import "google/ads/googleads/v3/enums/feed_mapping_criterion_type.proto"; -import "google/ads/googleads/v3/enums/feed_mapping_status.proto"; -import "google/ads/googleads/v3/enums/flight_placeholder_field.proto"; -import "google/ads/googleads/v3/enums/hotel_placeholder_field.proto"; -import "google/ads/googleads/v3/enums/job_placeholder_field.proto"; -import "google/ads/googleads/v3/enums/local_placeholder_field.proto"; -import "google/ads/googleads/v3/enums/location_extension_targeting_criterion_field.proto"; -import "google/ads/googleads/v3/enums/location_placeholder_field.proto"; -import "google/ads/googleads/v3/enums/message_placeholder_field.proto"; -import "google/ads/googleads/v3/enums/placeholder_type.proto"; -import "google/ads/googleads/v3/enums/price_placeholder_field.proto"; -import "google/ads/googleads/v3/enums/promotion_placeholder_field.proto"; -import "google/ads/googleads/v3/enums/real_estate_placeholder_field.proto"; -import "google/ads/googleads/v3/enums/sitelink_placeholder_field.proto"; -import "google/ads/googleads/v3/enums/structured_snippet_placeholder_field.proto"; -import "google/ads/googleads/v3/enums/travel_placeholder_field.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "FeedMappingProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the FeedMapping resource. - -// A feed mapping. -message FeedMapping { - option (google.api.resource) = { - type: "googleads.googleapis.com/FeedMapping" - pattern: "customers/{customer}/feedMappings/{feed_mapping}" - }; - - // Immutable. The resource name of the feed mapping. - // Feed mapping resource names have the form: - // - // `customers/{customer_id}/feedMappings/{feed_id}~{feed_mapping_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/FeedMapping" - } - ]; - - // Immutable. The feed of this feed mapping. - google.protobuf.StringValue feed = 2 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Feed" - } - ]; - - // Immutable. Feed attributes to field mappings. These mappings are a one-to-many - // relationship meaning that 1 feed attribute can be used to populate - // multiple placeholder fields, but 1 placeholder field can only draw - // data from 1 feed attribute. Ad Customizer is an exception, 1 placeholder - // field can be mapped to multiple feed attributes. Required. - repeated AttributeFieldMapping attribute_field_mappings = 5 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. Status of the feed mapping. - // This field is read-only. - google.ads.googleads.v3.enums.FeedMappingStatusEnum.FeedMappingStatus status = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // 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 { - // Immutable. The placeholder type of this mapping (i.e., if the mapping maps feed - // attributes to placeholder fields). - google.ads.googleads.v3.enums.PlaceholderTypeEnum.PlaceholderType placeholder_type = 3 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. The criterion type of this mapping (i.e., if the mapping maps feed - // attributes to criterion fields). - google.ads.googleads.v3.enums.FeedMappingCriterionTypeEnum.FeedMappingCriterionType criterion_type = 4 [(google.api.field_behavior) = IMMUTABLE]; - } -} - -// Maps from feed attribute id to a placeholder or criterion field id. -message AttributeFieldMapping { - // Immutable. Feed attribute from which to map. - google.protobuf.Int64Value feed_attribute_id = 1 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. The placeholder field ID. If a placeholder field enum is not published in - // the current API version, then this field will be populated and the field - // oneof will be empty. - // This field is read-only. - google.protobuf.Int64Value field_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Placeholder or criterion field to be populated using data from - // the above feed attribute. Required. - oneof field { - // Immutable. Sitelink Placeholder Fields. - google.ads.googleads.v3.enums.SitelinkPlaceholderFieldEnum.SitelinkPlaceholderField sitelink_field = 3 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Call Placeholder Fields. - google.ads.googleads.v3.enums.CallPlaceholderFieldEnum.CallPlaceholderField call_field = 4 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. App Placeholder Fields. - google.ads.googleads.v3.enums.AppPlaceholderFieldEnum.AppPlaceholderField app_field = 5 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. Location Placeholder Fields. This field is read-only. - google.ads.googleads.v3.enums.LocationPlaceholderFieldEnum.LocationPlaceholderField location_field = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Affiliate Location Placeholder Fields. This field is read-only. - google.ads.googleads.v3.enums.AffiliateLocationPlaceholderFieldEnum.AffiliateLocationPlaceholderField affiliate_location_field = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. Callout Placeholder Fields. - google.ads.googleads.v3.enums.CalloutPlaceholderFieldEnum.CalloutPlaceholderField callout_field = 8 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Structured Snippet Placeholder Fields. - google.ads.googleads.v3.enums.StructuredSnippetPlaceholderFieldEnum.StructuredSnippetPlaceholderField structured_snippet_field = 9 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Message Placeholder Fields. - google.ads.googleads.v3.enums.MessagePlaceholderFieldEnum.MessagePlaceholderField message_field = 10 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Price Placeholder Fields. - google.ads.googleads.v3.enums.PricePlaceholderFieldEnum.PricePlaceholderField price_field = 11 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Promotion Placeholder Fields. - google.ads.googleads.v3.enums.PromotionPlaceholderFieldEnum.PromotionPlaceholderField promotion_field = 12 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Ad Customizer Placeholder Fields - google.ads.googleads.v3.enums.AdCustomizerPlaceholderFieldEnum.AdCustomizerPlaceholderField ad_customizer_field = 13 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Dynamic Search Ad Page Feed Fields. - google.ads.googleads.v3.enums.DsaPageFeedCriterionFieldEnum.DsaPageFeedCriterionField dsa_page_feed_field = 14 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Location Target Fields. - google.ads.googleads.v3.enums.LocationExtensionTargetingCriterionFieldEnum.LocationExtensionTargetingCriterionField location_extension_targeting_field = 15 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Education Placeholder Fields - google.ads.googleads.v3.enums.EducationPlaceholderFieldEnum.EducationPlaceholderField education_field = 16 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Flight Placeholder Fields - google.ads.googleads.v3.enums.FlightPlaceholderFieldEnum.FlightPlaceholderField flight_field = 17 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Custom Placeholder Fields - google.ads.googleads.v3.enums.CustomPlaceholderFieldEnum.CustomPlaceholderField custom_field = 18 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Hotel Placeholder Fields - google.ads.googleads.v3.enums.HotelPlaceholderFieldEnum.HotelPlaceholderField hotel_field = 19 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Real Estate Placeholder Fields - google.ads.googleads.v3.enums.RealEstatePlaceholderFieldEnum.RealEstatePlaceholderField real_estate_field = 20 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Travel Placeholder Fields - google.ads.googleads.v3.enums.TravelPlaceholderFieldEnum.TravelPlaceholderField travel_field = 21 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Local Placeholder Fields - google.ads.googleads.v3.enums.LocalPlaceholderFieldEnum.LocalPlaceholderField local_field = 22 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Job Placeholder Fields - google.ads.googleads.v3.enums.JobPlaceholderFieldEnum.JobPlaceholderField job_field = 23 [(google.api.field_behavior) = IMMUTABLE]; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/feed_placeholder_view.proto b/third_party/googleapis/google/ads/googleads/v3/resources/feed_placeholder_view.proto deleted file mode 100644 index 1857fb14a..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/feed_placeholder_view.proto +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/enums/placeholder_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "FeedPlaceholderViewProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the FeedPlaceholderView resource. - -// A feed placeholder view. -message FeedPlaceholderView { - option (google.api.resource) = { - type: "googleads.googleapis.com/FeedPlaceholderView" - pattern: "customers/{customer}/feedPlaceholderViews/{feed_placeholder_view}" - }; - - // Output only. The resource name of the feed placeholder view. - // Feed placeholder view resource names have the form: - // - // `customers/{customer_id}/feedPlaceholderViews/{placeholder_type}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/FeedPlaceholderView" - } - ]; - - // Output only. The placeholder type of the feed placeholder view. - google.ads.googleads.v3.enums.PlaceholderTypeEnum.PlaceholderType placeholder_type = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/gender_view.proto b/third_party/googleapis/google/ads/googleads/v3/resources/gender_view.proto deleted file mode 100644 index ab28a2361..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/gender_view.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "GenderViewProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the gender view resource. - -// A gender view. -message GenderView { - option (google.api.resource) = { - type: "googleads.googleapis.com/GenderView" - pattern: "customers/{customer}/genderViews/{gender_view}" - }; - - // Output only. The resource name of the gender view. - // Gender view resource names have the form: - // - // `customers/{customer_id}/genderViews/{ad_group_id}~{criterion_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/GenderView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/geo_target_constant.proto b/third_party/googleapis/google/ads/googleads/v3/resources/geo_target_constant.proto deleted file mode 100644 index ca8e916f2..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/geo_target_constant.proto +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/enums/geo_target_constant_status.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "GeoTargetConstantProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the geo target constant resource. - -// A geo target constant. -message GeoTargetConstant { - option (google.api.resource) = { - type: "googleads.googleapis.com/GeoTargetConstant" - pattern: "geoTargetConstants/{geo_target_constant}" - }; - - // Output only. The resource name of the geo target constant. - // Geo target constant resource names have the form: - // - // `geoTargetConstants/{geo_target_constant_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/GeoTargetConstant" - } - ]; - - // Output only. The ID of the geo target constant. - google.protobuf.Int64Value id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Geo target constant English name. - google.protobuf.StringValue name = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The ISO-3166-1 alpha-2 country code that is associated with the target. - google.protobuf.StringValue country_code = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Geo target constant target type. - google.protobuf.StringValue target_type = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Geo target constant status. - google.ads.googleads.v3.enums.GeoTargetConstantStatusEnum.GeoTargetConstantStatus status = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The fully qualified English name, consisting of the target's name and that - // of its parent and country. - google.protobuf.StringValue canonical_name = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/geographic_view.proto b/third_party/googleapis/google/ads/googleads/v3/resources/geographic_view.proto deleted file mode 100644 index 39b363716..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/geographic_view.proto +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/enums/geo_targeting_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "GeographicViewProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the geographic view resource. - -// A geographic view. -// -// Geographic View includes all metrics aggregated at the country level, -// one row per country. It reports metrics at either actual physical location of -// the user or an area of interest. If other segment fields are used, you may -// get more than one row per country. -message GeographicView { - option (google.api.resource) = { - type: "googleads.googleapis.com/GeographicView" - pattern: "customers/{customer}/geographicViews/{geographic_view}" - }; - - // Output only. The resource name of the geographic view. - // Geographic view resource names have the form: - // - // `customers/{customer_id}/geographicViews/{country_criterion_id}~{location_type}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/GeographicView" - } - ]; - - // Output only. Type of the geo targeting of the campaign. - google.ads.googleads.v3.enums.GeoTargetingTypeEnum.GeoTargetingType location_type = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Criterion Id for the country. - google.protobuf.Int64Value country_criterion_id = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/google_ads_field.proto b/third_party/googleapis/google/ads/googleads/v3/resources/google_ads_field.proto deleted file mode 100644 index 3dc08c1f8..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/google_ads_field.proto +++ /dev/null @@ -1,118 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/enums/google_ads_field_category.proto"; -import "google/ads/googleads/v3/enums/google_ads_field_data_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "GoogleAdsFieldProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the Google Ads Field resource. - -// A field or resource (artifact) used by GoogleAdsService. -message GoogleAdsField { - option (google.api.resource) = { - type: "googleads.googleapis.com/GoogleAdsField" - pattern: "googleAdsFields/{google_ads_field}" - }; - - // Output only. The resource name of the artifact. - // Artifact resource names have the form: - // - // `googleAdsFields/{name}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/GoogleAdsField" - } - ]; - - // Output only. The name of the artifact. - google.protobuf.StringValue name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The category of the artifact. - google.ads.googleads.v3.enums.GoogleAdsFieldCategoryEnum.GoogleAdsFieldCategory category = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Whether the artifact can be used in a SELECT clause in search - // queries. - google.protobuf.BoolValue selectable = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Whether the artifact can be used in a WHERE clause in search - // queries. - google.protobuf.BoolValue filterable = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Whether the artifact can be used in a ORDER BY clause in search - // queries. - google.protobuf.BoolValue sortable = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The names of all resources, segments, and metrics that are selectable with - // the described artifact. - repeated google.protobuf.StringValue selectable_with = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The names of all resources that are selectable with the described - // artifact. Fields from these resources do not segment metrics when included - // in search queries. - // - // This field is only set for artifacts whose category is RESOURCE. - repeated google.protobuf.StringValue attribute_resources = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. At and beyond version V1 this field lists the names of all metrics that are - // selectable with the described artifact when it is used in the FROM clause. - // It is only set for artifacts whose category is RESOURCE. - // - // Before version V1 this field lists the names of all metrics that are - // selectable with the described artifact. It is only set for artifacts whose - // category is either RESOURCE or SEGMENT - repeated google.protobuf.StringValue metrics = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. At and beyond version V1 this field lists the names of all artifacts, - // whether a segment or another resource, that segment metrics when included - // in search queries and when the described artifact is used in the FROM - // clause. It is only set for artifacts whose category is RESOURCE. - // - // Before version V1 this field lists the names of all artifacts, whether a - // segment or another resource, that segment metrics when included in search - // queries. It is only set for artifacts of category RESOURCE, SEGMENT or - // METRIC. - repeated google.protobuf.StringValue segments = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Values the artifact can assume if it is a field of type ENUM. - // - // This field is only set for artifacts of category SEGMENT or ATTRIBUTE. - repeated google.protobuf.StringValue enum_values = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. This field determines the operators that can be used with the artifact - // in WHERE clauses. - google.ads.googleads.v3.enums.GoogleAdsFieldDataTypeEnum.GoogleAdsFieldDataType data_type = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The URL of proto describing the artifact's data type. - google.protobuf.StringValue type_url = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Whether the field artifact is repeated. - google.protobuf.BoolValue is_repeated = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/group_placement_view.proto b/third_party/googleapis/google/ads/googleads/v3/resources/group_placement_view.proto deleted file mode 100644 index 78e5152ed..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/group_placement_view.proto +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/enums/placement_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "GroupPlacementViewProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the group placement view resource. - -// A group placement view. -message GroupPlacementView { - option (google.api.resource) = { - type: "googleads.googleapis.com/GroupPlacementView" - pattern: "customers/{customer}/groupPlacementViews/{group_placement_view}" - }; - - // Output only. The resource name of the group placement view. - // Group placement view resource names have the form: - // - // `customers/{customer_id}/groupPlacementViews/{ad_group_id}~{base64_placement}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/GroupPlacementView" - } - ]; - - // Output only. The automatic placement string at group level, e. g. web domain, mobile - // app ID, or a YouTube channel ID. - google.protobuf.StringValue placement = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Domain name for websites and YouTube channel name for YouTube channels. - google.protobuf.StringValue display_name = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. URL of the group placement, e.g. domain, link to the mobile application in - // app store, or a YouTube channel URL. - google.protobuf.StringValue target_url = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Type of the placement, e.g. Website, YouTube Channel, Mobile Application. - google.ads.googleads.v3.enums.PlacementTypeEnum.PlacementType placement_type = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/hotel_group_view.proto b/third_party/googleapis/google/ads/googleads/v3/resources/hotel_group_view.proto deleted file mode 100644 index 5eaf7a228..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/hotel_group_view.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "HotelGroupViewProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the hotel group view resource. - -// A hotel group view. -message HotelGroupView { - option (google.api.resource) = { - type: "googleads.googleapis.com/HotelGroupView" - pattern: "customers/{customer}/hotelGroupViews/{hotel_group_view}" - }; - - // Output only. The resource name of the hotel group view. - // Hotel Group view resource names have the form: - // - // `customers/{customer_id}/hotelGroupViews/{ad_group_id}~{criterion_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/HotelGroupView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/hotel_performance_view.proto b/third_party/googleapis/google/ads/googleads/v3/resources/hotel_performance_view.proto deleted file mode 100644 index 8af349912..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/hotel_performance_view.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "HotelPerformanceViewProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the hotel performance view resource. - -// A hotel performance view. -message HotelPerformanceView { - option (google.api.resource) = { - type: "googleads.googleapis.com/HotelPerformanceView" - pattern: "customers/{customer}/hotelPerformanceView" - }; - - // Output only. The resource name of the hotel performance view. - // Hotel performance view resource names have the form: - // - // `customers/{customer_id}/hotelPerformanceView` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/HotelPerformanceView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/invoice.proto b/third_party/googleapis/google/ads/googleads/v3/resources/invoice.proto deleted file mode 100644 index 153dfcf6e..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/invoice.proto +++ /dev/null @@ -1,183 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/common/dates.proto"; -import "google/ads/googleads/v3/enums/invoice_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "InvoiceProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the Invoice resource. - -// An invoice. All invoice information is snapshotted to match the PDF invoice. -// For invoices older than the launch of InvoiceService, the snapshotted -// information may not match the PDF invoice. -message Invoice { - option (google.api.resource) = { - type: "googleads.googleapis.com/Invoice" - pattern: "customers/{customer}/invoices/{invoice}" - }; - - // Represents a summarized account budget billable cost. - message AccountBudgetSummary { - // Output only. The resource name of the customer associated with this account budget. - // This contains the customer ID, which appears on the invoice PDF as - // "Account ID". - // Customer resource names have the form: - // - // `customers/{customer_id}` - google.protobuf.StringValue customer = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The descriptive name of the account budget’s customer. It appears on the - // invoice PDF as "Account". - google.protobuf.StringValue customer_descriptive_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The resource name of the account budget associated with this summarized - // billable cost. - // AccountBudget resource names have the form: - // - // `customers/{customer_id}/accountBudgets/{account_budget_id}` - google.protobuf.StringValue account_budget = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The name of the account budget. It appears on the invoice PDF as "Account - // budget". - google.protobuf.StringValue account_budget_name = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The purchase order number of the account budget. It appears on the - // invoice PDF as "Purchase order". - google.protobuf.StringValue purchase_order_number = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The pretax subtotal amount attributable to this budget during the service - // period, in micros. - google.protobuf.Int64Value subtotal_amount_micros = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The tax amount attributable to this budget during the service period, in - // micros. - google.protobuf.Int64Value tax_amount_micros = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The total amount attributable to this budget during the service period, - // in micros. This equals the sum of the account budget subtotal amount and - // the account budget tax amount. - google.protobuf.Int64Value total_amount_micros = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The billable activity date range of the account budget, within the - // service date range of this invoice. The end date is inclusive. This can - // be different from the account budget's start and end time. - google.ads.googleads.v3.common.DateRange billable_activity_date_range = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // Output only. The resource name of the invoice. Multiple customers can share a given - // invoice, so multiple resource names may point to the same invoice. - // Invoice resource names have the form: - // - // `customers/{customer_id}/invoices/{invoice_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Invoice" - } - ]; - - // Output only. The ID of the invoice. It appears on the invoice PDF as "Invoice number". - google.protobuf.StringValue id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The type of invoice. - google.ads.googleads.v3.enums.InvoiceTypeEnum.InvoiceType type = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The resource name of this invoice’s billing setup. - // - // `customers/{customer_id}/billingSetups/{billing_setup_id}` - google.protobuf.StringValue billing_setup = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. A 16 digit ID used to identify the payments account associated with the - // billing setup, e.g. "1234-5678-9012-3456". It appears on the invoice PDF as - // "Billing Account Number". - google.protobuf.StringValue payments_account_id = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. A 12 digit ID used to identify the payments profile associated with the - // billing setup, e.g. "1234-5678-9012". It appears on the invoice PDF as - // "Billing ID". - google.protobuf.StringValue payments_profile_id = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The issue date in yyyy-mm-dd format. It appears on the invoice PDF as - // either "Issue date" or "Invoice date". - google.protobuf.StringValue issue_date = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The due date in yyyy-mm-dd format. - google.protobuf.StringValue due_date = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The service period date range of this invoice. The end date is inclusive. - google.ads.googleads.v3.common.DateRange service_date_range = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The currency code. All costs are returned in this currency. A subset of the - // currency codes derived from the ISO 4217 standard is supported. - google.protobuf.StringValue currency_code = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The total amount of invoice level adjustments. These adjustments are made - // on the invoice, not on a specific account budget. - google.protobuf.Int64Value invoice_level_adjustments_micros = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The pretax subtotal amount, in micros. This equals the sum of the - // AccountBudgetSummary subtotal amounts, plus the invoice level adjustments. - google.protobuf.Int64Value subtotal_amount_micros = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The sum of all taxes on the invoice, in micros. This equals the sum of the - // AccountBudgetSummary tax amounts, plus taxes not associated with a specific - // account budget. - google.protobuf.Int64Value tax_amount_micros = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The total amount, in micros. This equals the sum of the invoice subtotal - // amount and the invoice tax amount. - google.protobuf.Int64Value total_amount_micros = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The resource name of the original invoice corrected, wrote off, or canceled - // by this invoice, if applicable. If `corrected_invoice` is set, - // `replaced_invoices` will not be set. - // Invoice resource names have the form: - // - // `customers/{customer_id}/invoices/{invoice_id}` - google.protobuf.StringValue corrected_invoice = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The resource name of the original invoice(s) being rebilled or replaced by - // this invoice, if applicable. There might be multiple replaced invoices due - // to invoice consolidation. The replaced invoices may not belong to the same - // payments account. If `replaced_invoices` is set, `corrected_invoice` will - // not be set. - // Invoice resource names have the form: - // - // `customers/{customer_id}/invoices/{invoice_id}` - repeated google.protobuf.StringValue replaced_invoices = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The URL to a PDF copy of the invoice. Users need to pass in their OAuth - // token to request the PDF with this URL. - google.protobuf.StringValue pdf_url = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The list of summarized account budget information associated with this - // invoice. - repeated AccountBudgetSummary account_budget_summaries = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/keyword_plan.proto b/third_party/googleapis/google/ads/googleads/v3/resources/keyword_plan.proto deleted file mode 100644 index 58e8b8c84..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/keyword_plan.proto +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/common/dates.proto"; -import "google/ads/googleads/v3/enums/keyword_plan_forecast_interval.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "KeywordPlanProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the keyword plan resource. - -// A Keyword Planner plan. -// Max number of saved keyword plans: 10000. -// It's possible to remove plans if limit is reached. -message KeywordPlan { - option (google.api.resource) = { - type: "googleads.googleapis.com/KeywordPlan" - pattern: "customers/{customer}/keywordPlans/{keyword_plan}" - }; - - // Immutable. The resource name of the Keyword Planner plan. - // KeywordPlan resource names have the form: - // - // `customers/{customer_id}/keywordPlans/{kp_plan_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/KeywordPlan" - } - ]; - - // Output only. The ID of the keyword plan. - google.protobuf.Int64Value id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The name of the keyword plan. - // - // This field is required and should not be empty when creating new keyword - // plans. - google.protobuf.StringValue name = 3; - - // The date period used for forecasting the plan. - KeywordPlanForecastPeriod forecast_period = 4; -} - -// The forecasting period associated with the keyword plan. -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.v3.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 - // be returned when the forecasting action is performed. - // The start and end dates are inclusive. - google.ads.googleads.v3.common.DateRange date_range = 2; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/keyword_plan_ad_group.proto b/third_party/googleapis/google/ads/googleads/v3/resources/keyword_plan_ad_group.proto deleted file mode 100644 index e0fc27991..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/keyword_plan_ad_group.proto +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "KeywordPlanAdGroupProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the keyword plan ad group resource. - -// A Keyword Planner ad group. -// Max number of keyword plan ad groups per plan: 200. -message KeywordPlanAdGroup { - option (google.api.resource) = { - type: "googleads.googleapis.com/KeywordPlanAdGroup" - pattern: "customers/{customer}/keywordPlanAdGroups/{keyword_plan_ad_group}" - }; - - // Immutable. The resource name of the Keyword Planner ad group. - // KeywordPlanAdGroup resource names have the form: - // - // `customers/{customer_id}/keywordPlanAdGroups/{kp_ad_group_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/KeywordPlanAdGroup" - } - ]; - - // The keyword plan campaign to which this ad group belongs. - google.protobuf.StringValue keyword_plan_campaign = 2 [(google.api.resource_reference) = { - type: "googleads.googleapis.com/KeywordPlanCampaign" - }]; - - // Output only. The ID of the keyword plan ad group. - google.protobuf.Int64Value id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The name of the keyword plan ad group. - // - // This field is required and should not be empty when creating keyword plan - // ad group. - google.protobuf.StringValue name = 4; - - // A default ad group max cpc bid in micros in account currency for all - // biddable keywords under the keyword plan ad group. - // If not set, will inherit from parent campaign. - google.protobuf.Int64Value cpc_bid_micros = 5; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/keyword_plan_campaign.proto b/third_party/googleapis/google/ads/googleads/v3/resources/keyword_plan_campaign.proto deleted file mode 100644 index 8c24b0e1b..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/keyword_plan_campaign.proto +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/enums/keyword_plan_network.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "KeywordPlanCampaignProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the keyword plan campaign resource. - -// A Keyword Plan campaign. -// Max number of keyword plan campaigns per plan allowed: 1. -message KeywordPlanCampaign { - option (google.api.resource) = { - type: "googleads.googleapis.com/KeywordPlanCampaign" - pattern: "customers/{customer}/keywordPlanCampaigns/{keyword_plan_campaign}" - }; - - // Immutable. The resource name of the Keyword Plan campaign. - // KeywordPlanCampaign resource names have the form: - // - // `customers/{customer_id}/keywordPlanCampaigns/{kp_campaign_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/KeywordPlanCampaign" - } - ]; - - // The keyword plan this campaign belongs to. - google.protobuf.StringValue keyword_plan = 2 [(google.api.resource_reference) = { - type: "googleads.googleapis.com/KeywordPlan" - }]; - - // Output only. The ID of the Keyword Plan campaign. - google.protobuf.Int64Value id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The name of the Keyword Plan campaign. - // - // This field is required and should not be empty when creating Keyword Plan - // campaigns. - google.protobuf.StringValue name = 4; - - // The languages targeted for the Keyword Plan campaign. - // Max allowed: 1. - repeated google.protobuf.StringValue language_constants = 5 [(google.api.resource_reference) = { - type: "googleads.googleapis.com/LanguageConstant" - }]; - - // Targeting network. - // - // This field is required and should not be empty when creating Keyword Plan - // campaigns. - google.ads.googleads.v3.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. - // - // This field is required and should not be empty when creating Keyword Plan - // campaigns. - google.protobuf.Int64Value cpc_bid_micros = 7; - - // The geo targets. - // Max number allowed: 20. - repeated KeywordPlanGeoTarget geo_targets = 8; -} - -// A geo target. -message KeywordPlanGeoTarget { - // Required. The resource name of the geo target. - google.protobuf.StringValue geo_target_constant = 1 [(google.api.resource_reference) = { - type: "googleads.googleapis.com/GeoTargetConstant" - }]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/keyword_plan_keyword.proto b/third_party/googleapis/google/ads/googleads/v3/resources/keyword_plan_keyword.proto deleted file mode 100644 index ae4ca9033..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/keyword_plan_keyword.proto +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/enums/keyword_match_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "KeywordPlanKeywordProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the keyword plan keyword resource. - -// A Keyword Plan ad group keyword. -// Max number of keyword plan keywords per plan: 2500. -message KeywordPlanKeyword { - option (google.api.resource) = { - type: "googleads.googleapis.com/KeywordPlanKeyword" - pattern: "customers/{customer}/keywordPlanKeywords/{keyword_plan_keyword}" - }; - - // Immutable. The resource name of the Keyword Plan ad group keyword. - // KeywordPlanKeyword resource names have the form: - // - // `customers/{customer_id}/keywordPlanKeywords/{kp_ad_group_keyword_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/KeywordPlanKeyword" - } - ]; - - // The Keyword Plan ad group to which this keyword belongs. - google.protobuf.StringValue keyword_plan_ad_group = 2 [(google.api.resource_reference) = { - type: "googleads.googleapis.com/KeywordPlanAdGroup" - }]; - - // Output only. The ID of the Keyword Plan keyword. - google.protobuf.Int64Value id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The keyword text. - google.protobuf.StringValue text = 4; - - // The keyword match type. - google.ads.googleads.v3.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. - google.protobuf.Int64Value cpc_bid_micros = 6; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/keyword_plan_negative_keyword.proto b/third_party/googleapis/google/ads/googleads/v3/resources/keyword_plan_negative_keyword.proto deleted file mode 100644 index 8c691bd5e..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/keyword_plan_negative_keyword.proto +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/enums/keyword_match_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "KeywordPlanNegativeKeywordProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the keyword plan negative keyword resource. - -// A Keyword Plan negative keyword. -// Max number of keyword plan negative keywords per plan: 1000. -message KeywordPlanNegativeKeyword { - option (google.api.resource) = { - type: "googleads.googleapis.com/KeywordPlanNegativeKeyword" - pattern: "customers/{customer}/keywordPlanNegativeKeywords/{keyword_plan_negative_keyword}" - }; - - // Immutable. The resource name of the Keyword Plan negative keyword. - // KeywordPlanNegativeKeyword resource names have the form: - // - // `customers/{customer_id}/keywordPlanNegativeKeywords/{kp_negative_keyword_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/KeywordPlanNegativeKeyword" - } - ]; - - // The Keyword Plan campaign to which this negative keyword belongs. - google.protobuf.StringValue keyword_plan_campaign = 2 [(google.api.resource_reference) = { - type: "googleads.googleapis.com/KeywordPlanCampaign" - }]; - - // Output only. The ID of the Keyword Plan negative keyword. - google.protobuf.Int64Value id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The keyword text. - google.protobuf.StringValue text = 4; - - // The keyword match type. - google.ads.googleads.v3.enums.KeywordMatchTypeEnum.KeywordMatchType match_type = 5; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/keyword_view.proto b/third_party/googleapis/google/ads/googleads/v3/resources/keyword_view.proto deleted file mode 100644 index 36701ce06..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/keyword_view.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "KeywordViewProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the keyword view resource. - -// A keyword view. -message KeywordView { - option (google.api.resource) = { - type: "googleads.googleapis.com/KeywordView" - pattern: "customers/{customer}/keywordViews/{keyword_view}" - }; - - // Output only. The resource name of the keyword view. - // Keyword view resource names have the form: - // - // `customers/{customer_id}/keywordViews/{ad_group_id}~{criterion_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/KeywordView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/label.proto b/third_party/googleapis/google/ads/googleads/v3/resources/label.proto deleted file mode 100644 index a75871e9f..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/label.proto +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/common/text_label.proto"; -import "google/ads/googleads/v3/enums/label_status.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "LabelProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// A label. -message Label { - option (google.api.resource) = { - type: "googleads.googleapis.com/Label" - pattern: "customers/{customer}/labels/{label}" - }; - - // Immutable. Name of the resource. - // Label resource names have the form: - // `customers/{customer_id}/labels/{label_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Label" - } - ]; - - // Output only. Id of the label. Read only. - google.protobuf.Int64Value id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The name of the label. - // - // This field is required and should not be empty when creating a new label. - // - // The length of this string should be between 1 and 80, inclusive. - google.protobuf.StringValue name = 3; - - // Output only. Status of the label. Read only. - google.ads.googleads.v3.enums.LabelStatusEnum.LabelStatus status = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // A type of label displaying text on a colored background. - google.ads.googleads.v3.common.TextLabel text_label = 5; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/landing_page_view.proto b/third_party/googleapis/google/ads/googleads/v3/resources/landing_page_view.proto deleted file mode 100644 index fda51342c..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/landing_page_view.proto +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "LandingPageViewProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the landing page view resource. - -// A landing page view with metrics aggregated at the unexpanded final URL -// level. -message LandingPageView { - option (google.api.resource) = { - type: "googleads.googleapis.com/LandingPageView" - pattern: "customers/{customer}/landingPageViews/{landing_page_view}" - }; - - // Output only. The resource name of the landing page view. - // Landing page view resource names have the form: - // - // `customers/{customer_id}/landingPageViews/{unexpanded_final_url_fingerprint}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/LandingPageView" - } - ]; - - // Output only. The advertiser-specified final URL. - google.protobuf.StringValue unexpanded_final_url = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/language_constant.proto b/third_party/googleapis/google/ads/googleads/v3/resources/language_constant.proto deleted file mode 100644 index 54eabdbbf..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/language_constant.proto +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "LanguageConstantProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the language constant resource. - -// A language. -message LanguageConstant { - option (google.api.resource) = { - type: "googleads.googleapis.com/LanguageConstant" - pattern: "languageConstants/{language_constant}" - }; - - // Output only. The resource name of the language constant. - // Language constant resource names have the form: - // - // `languageConstants/{criterion_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/LanguageConstant" - } - ]; - - // Output only. The ID of the language constant. - google.protobuf.Int64Value id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The language code, e.g. "en_US", "en_AU", "es", "fr", etc. - google.protobuf.StringValue code = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The full name of the language in English, e.g., "English (US)", "Spanish", - // etc. - google.protobuf.StringValue name = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Whether the language is targetable. - google.protobuf.BoolValue targetable = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/location_view.proto b/third_party/googleapis/google/ads/googleads/v3/resources/location_view.proto deleted file mode 100644 index 1405e57c9..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/location_view.proto +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "LocationViewProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the location view resource. - -// A location view summarizes the performance of campaigns by -// Location criteria. -message LocationView { - option (google.api.resource) = { - type: "googleads.googleapis.com/LocationView" - pattern: "customers/{customer}/locationViews/{location_view}" - }; - - // Output only. The resource name of the location view. - // Location view resource names have the form: - // - // `customers/{customer_id}/locationViews/{campaign_id}~{criterion_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/LocationView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/managed_placement_view.proto b/third_party/googleapis/google/ads/googleads/v3/resources/managed_placement_view.proto deleted file mode 100644 index 2175df462..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/managed_placement_view.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "ManagedPlacementViewProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the Managed Placement view resource. - -// A managed placement view. -message ManagedPlacementView { - option (google.api.resource) = { - type: "googleads.googleapis.com/ManagedPlacementView" - pattern: "customers/{customer}/managedPlacementViews/{managed_placement_view}" - }; - - // Output only. The resource name of the Managed Placement view. - // Managed placement view resource names have the form: - // - // `customers/{customer_id}/managedPlacementViews/{ad_group_id}~{criterion_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/ManagedPlacementView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/media_file.proto b/third_party/googleapis/google/ads/googleads/v3/resources/media_file.proto deleted file mode 100644 index 4068912af..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/media_file.proto +++ /dev/null @@ -1,125 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/enums/media_type.proto"; -import "google/ads/googleads/v3/enums/mime_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "MediaFileProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the media file resource. - -// A media file. -message MediaFile { - option (google.api.resource) = { - type: "googleads.googleapis.com/MediaFile" - pattern: "customers/{customer}/mediaFiles/{media_file}" - }; - - // Immutable. The resource name of the media file. - // Media file resource names have the form: - // - // `customers/{customer_id}/mediaFiles/{media_file_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/MediaFile" - } - ]; - - // Output only. The ID of the media file. - google.protobuf.Int64Value id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. Type of the media file. - google.ads.googleads.v3.enums.MediaTypeEnum.MediaType type = 5 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. The mime type of the media file. - google.ads.googleads.v3.enums.MimeTypeEnum.MimeType mime_type = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. The URL of where the original media file was downloaded from (or a file - // name). Only used for media of type AUDIO and IMAGE. - google.protobuf.StringValue source_url = 7 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. The name of the media file. The name can be used by clients to help - // identify previously uploaded media. - google.protobuf.StringValue name = 8 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. The size of the media file in bytes. - google.protobuf.Int64Value file_size = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The specific type of the media file. - oneof mediatype { - // Immutable. Encapsulates an Image. - MediaImage image = 3 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. A ZIP archive media the content of which contains HTML5 assets. - MediaBundle media_bundle = 4 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. Encapsulates an Audio. - MediaAudio audio = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. Encapsulates a Video. - MediaVideo video = 11 [(google.api.field_behavior) = IMMUTABLE]; - } -} - -// Encapsulates an Image. -message MediaImage { - // Immutable. Raw image data. - google.protobuf.BytesValue data = 1 [(google.api.field_behavior) = IMMUTABLE]; -} - -// Represents a ZIP archive media the content of which contains HTML5 assets. -message MediaBundle { - // Immutable. Raw zipped data. - google.protobuf.BytesValue data = 1 [(google.api.field_behavior) = IMMUTABLE]; -} - -// Encapsulates an Audio. -message MediaAudio { - // Output only. The duration of the Audio in milliseconds. - google.protobuf.Int64Value ad_duration_millis = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Encapsulates a Video. -message MediaVideo { - // Output only. The duration of the Video in milliseconds. - google.protobuf.Int64Value ad_duration_millis = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. The YouTube video ID (as seen in YouTube URLs). - google.protobuf.StringValue youtube_video_id = 2 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. The Advertising Digital Identification code for this video, as defined by - // the American Association of Advertising Agencies, used mainly for - // television commercials. - google.protobuf.StringValue advertising_id_code = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The Industry Standard Commercial Identifier code for this video, used - // mainly for television commercials. - google.protobuf.StringValue isci_code = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/merchant_center_link.proto b/third_party/googleapis/google/ads/googleads/v3/resources/merchant_center_link.proto deleted file mode 100644 index a5a8d021b..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/merchant_center_link.proto +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/enums/merchant_center_link_status.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "MerchantCenterLinkProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the Merchant Center link resource. - -// A data sharing connection, proposed or in use, -// between a Google Ads Customer and a Merchant Center account. -message MerchantCenterLink { - option (google.api.resource) = { - type: "googleads.googleapis.com/MerchantCenterLink" - pattern: "customers/{customer}/merchantCenterLinks/{merchant_center_link}" - }; - - // Immutable. The resource name of the merchant center link. - // Merchant center link resource names have the form: - // - // `customers/{customer_id}/merchantCenterLinks/{merchant_center_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/MerchantCenterLink" - } - ]; - - // Output only. The ID of the Merchant Center account. - // This field is readonly. - google.protobuf.Int64Value id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The name of the Merchant Center account. - // This field is readonly. - google.protobuf.StringValue merchant_center_account_name = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The status of the link. - google.ads.googleads.v3.enums.MerchantCenterLinkStatusEnum.MerchantCenterLinkStatus status = 5; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/mobile_app_category_constant.proto b/third_party/googleapis/google/ads/googleads/v3/resources/mobile_app_category_constant.proto deleted file mode 100644 index 7ae25c914..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/mobile_app_category_constant.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "MobileAppCategoryConstantProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the Mobile App Category Constant resource. - -// A mobile application category constant. -message MobileAppCategoryConstant { - option (google.api.resource) = { - type: "googleads.googleapis.com/MobileAppCategoryConstant" - pattern: "mobileAppCategoryConstants/{mobile_app_category_constant}" - }; - - // Output only. The resource name of the mobile app category constant. - // Mobile app category constant resource names have the form: - // - // `mobileAppCategoryConstants/{mobile_app_category_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/MobileAppCategoryConstant" - } - ]; - - // Output only. The ID of the mobile app category constant. - google.protobuf.Int32Value id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Mobile app category name. - google.protobuf.StringValue name = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/mobile_device_constant.proto b/third_party/googleapis/google/ads/googleads/v3/resources/mobile_device_constant.proto deleted file mode 100644 index 711904254..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/mobile_device_constant.proto +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/enums/mobile_device_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "MobileDeviceConstantProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the mobile device constant resource. - -// A mobile device constant. -message MobileDeviceConstant { - option (google.api.resource) = { - type: "googleads.googleapis.com/MobileDeviceConstant" - pattern: "mobileDeviceConstants/{mobile_device_constant}" - }; - - // Output only. The resource name of the mobile device constant. - // Mobile device constant resource names have the form: - // - // `mobileDeviceConstants/{criterion_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/MobileDeviceConstant" - } - ]; - - // Output only. The ID of the mobile device constant. - google.protobuf.Int64Value id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The name of the mobile device. - google.protobuf.StringValue name = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The manufacturer of the mobile device. - google.protobuf.StringValue manufacturer_name = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The operating system of the mobile device. - google.protobuf.StringValue operating_system_name = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The type of mobile device. - google.ads.googleads.v3.enums.MobileDeviceTypeEnum.MobileDeviceType type = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/mutate_job.proto b/third_party/googleapis/google/ads/googleads/v3/resources/mutate_job.proto deleted file mode 100644 index 61a72ca04..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/mutate_job.proto +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/enums/mutate_job_status.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "MutateJobProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the mutate job resource. - -// A list of mutates being processed asynchronously. The mutates are uploaded -// by the user. The mutates themselves aren't readable and the results of the -// job can only be read using MutateJobService.ListMutateJobResults. -message MutateJob { - option (google.api.resource) = { - type: "googleads.googleapis.com/MutateJob" - pattern: "customers/{customer}/mutateJobs/{mutate_job}" - }; - - // Additional information about the mutate job. This message is also used as - // metadata returned in mutate job Long Running Operations. - message MutateJobMetadata { - // Output only. The time when this mutate job was created. - // Formatted as yyyy-mm-dd hh:mm:ss. Example: "2018-03-05 09:15:00" - google.protobuf.StringValue creation_date_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The time when this mutate job was completed. - // Formatted as yyyy-MM-dd HH:mm:ss. Example: "2018-03-05 09:16:00" - google.protobuf.StringValue completion_date_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The fraction (between 0.0 and 1.0) of mutates that have been processed. - // This is empty if the job hasn't started running yet. - google.protobuf.DoubleValue estimated_completion_ratio = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The number of mutate operations in the mutate job. - google.protobuf.Int64Value operation_count = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The number of mutate operations executed by the mutate job. - // Present only if the job has started running. - google.protobuf.Int64Value executed_operation_count = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // Immutable. The resource name of the mutate job. - // Mutate job resource names have the form: - // - // `customers/{customer_id}/mutateJobs/{mutate_job_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/MutateJob" - } - ]; - - // Output only. ID of this mutate job. - google.protobuf.Int64Value id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The next sequence token to use when adding operations. Only set when the - // mutate job status is PENDING. - google.protobuf.StringValue next_add_sequence_token = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Contains additional information about this mutate job. - MutateJobMetadata metadata = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Status of this mutate job. - google.ads.googleads.v3.enums.MutateJobStatusEnum.MutateJobStatus status = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The resource name of the long-running operation that can be used to poll - // for completion. Only set when the mutate job status is RUNNING or DONE. - google.protobuf.StringValue long_running_operation = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/offline_user_data_job.proto b/third_party/googleapis/google/ads/googleads/v3/resources/offline_user_data_job.proto deleted file mode 100644 index 6e2d5e394..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/offline_user_data_job.proto +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/common/offline_user_data.proto"; -import "google/ads/googleads/v3/enums/offline_user_data_job_failure_reason.proto"; -import "google/ads/googleads/v3/enums/offline_user_data_job_status.proto"; -import "google/ads/googleads/v3/enums/offline_user_data_job_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "OfflineUserDataJobProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the offline user data job resource. - -// A job containing offline user data of store visitors, or user list members -// that will be processed asynchronously. The uploaded data isn't readable and -// the processing results of the job can only be read using -// OfflineUserDataJobService.GetOfflineUserDataJob. -message OfflineUserDataJob { - option (google.api.resource) = { - type: "googleads.googleapis.com/OfflineUserDataJob" - pattern: "customers/{customer}/offlineUserDataJobs/{offline_user_data_job}" - }; - - // Immutable. The resource name of the offline user data job. - // Offline user data job resource names have the form: - // - // `customers/{customer_id}/offlineUserDataJobs/{offline_user_data_job_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/OfflineUserDataJob" - } - ]; - - // Output only. ID of this offline user data job. - google.protobuf.Int64Value id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. User specified job ID. - google.protobuf.Int64Value external_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Type of the job. - google.ads.googleads.v3.enums.OfflineUserDataJobTypeEnum.OfflineUserDataJobType type = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Status of the job. - google.ads.googleads.v3.enums.OfflineUserDataJobStatusEnum.OfflineUserDataJobStatus status = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Reason for the processing failure, if status is FAILED. - google.ads.googleads.v3.enums.OfflineUserDataJobFailureReasonEnum.OfflineUserDataJobFailureReason failure_reason = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Metadata of the job. - oneof metadata { - // Output only. Metadata for data updates to a CRM-based user list. - google.ads.googleads.v3.common.CustomerMatchUserListMetadata customer_match_user_list_metadata = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Metadata for store sales data update. - google.ads.googleads.v3.common.StoreSalesMetadata store_sales_metadata = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/operating_system_version_constant.proto b/third_party/googleapis/google/ads/googleads/v3/resources/operating_system_version_constant.proto deleted file mode 100644 index cb9ed40ba..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/operating_system_version_constant.proto +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/enums/operating_system_version_operator_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "OperatingSystemVersionConstantProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the operating system version constant resource. - -// A mobile operating system version or a range of versions, depending on -// `operator_type`. List of available mobile platforms at -// https://developers.google.com/adwords/api/docs/appendix/codes-formats#mobile-platforms -message OperatingSystemVersionConstant { - option (google.api.resource) = { - type: "googleads.googleapis.com/OperatingSystemVersionConstant" - pattern: "operatingSystemVersionConstants/{operating_system_version_constant}" - }; - - // Output only. The resource name of the operating system version constant. - // Operating system version constant resource names have the form: - // - // `operatingSystemVersionConstants/{criterion_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/OperatingSystemVersionConstant" - } - ]; - - // Output only. The ID of the operating system version. - google.protobuf.Int64Value id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Name of the operating system. - google.protobuf.StringValue name = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The OS Major Version number. - google.protobuf.Int32Value os_major_version = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The OS Minor Version number. - google.protobuf.Int32Value os_minor_version = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Determines whether this constant represents a single version or a range of - // versions. - google.ads.googleads.v3.enums.OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorType operator_type = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/paid_organic_search_term_view.proto b/third_party/googleapis/google/ads/googleads/v3/resources/paid_organic_search_term_view.proto deleted file mode 100644 index 0bb047386..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/paid_organic_search_term_view.proto +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "PaidOrganicSearchTermViewProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the PaidOrganicSearchTermView resource. - -// A paid organic search term view providing a view of search stats across -// ads and organic listings aggregated by search term at the ad group level. -message PaidOrganicSearchTermView { - option (google.api.resource) = { - type: "googleads.googleapis.com/PaidOrganicSearchTermView" - pattern: "customers/{customer}/paidOrganicSearchTermViews/{paid_organic_search_term_view}" - }; - - // Output only. The resource name of the search term view. - // Search term view resource names have the form: - // - // `customers/{customer_id}/paidOrganicSearchTermViews/{campaign_id}~ - // {ad_group_id}~{URL-base64 search term}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/PaidOrganicSearchTermView" - } - ]; - - // Output only. The search term. - google.protobuf.StringValue search_term = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/parental_status_view.proto b/third_party/googleapis/google/ads/googleads/v3/resources/parental_status_view.proto deleted file mode 100644 index 8aae34dbc..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/parental_status_view.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "ParentalStatusViewProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the parental status view resource. - -// A parental status view. -message ParentalStatusView { - option (google.api.resource) = { - type: "googleads.googleapis.com/ParentalStatusView" - pattern: "customers/{customer}/parentalStatusViews/{parental_status_view}" - }; - - // Output only. The resource name of the parental status view. - // Parental Status view resource names have the form: - // - // `customers/{customer_id}/parentalStatusViews/{ad_group_id}~{criterion_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/ParentalStatusView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/payments_account.proto b/third_party/googleapis/google/ads/googleads/v3/resources/payments_account.proto deleted file mode 100644 index 5012e167b..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/payments_account.proto +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "PaymentsAccountProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the PaymentsAccount resource. - -// A payments account, which can be used to set up billing for an Ads customer. -message PaymentsAccount { - option (google.api.resource) = { - type: "googleads.googleapis.com/PaymentsAccount" - pattern: "customers/{customer}/paymentsAccounts/{payments_account}" - }; - - // Output only. The resource name of the payments account. - // PaymentsAccount resource names have the form: - // - // `customers/{customer_id}/paymentsAccounts/{payments_account_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/PaymentsAccount" - } - ]; - - // Output only. A 16 digit ID used to identify a payments account. - google.protobuf.StringValue payments_account_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The name of the payments account. - google.protobuf.StringValue name = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The currency code of the payments account. - // A subset of the currency codes derived from the ISO 4217 standard is - // supported. - google.protobuf.StringValue currency_code = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. A 12 digit ID used to identify the payments profile associated with the - // payments account. - google.protobuf.StringValue payments_profile_id = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. A secondary payments profile ID present in uncommon situations, e.g. - // when a sequential liability agreement has been arranged. - google.protobuf.StringValue secondary_payments_profile_id = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Paying manager of this payment account. - google.protobuf.StringValue paying_manager_customer = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/product_bidding_category_constant.proto b/third_party/googleapis/google/ads/googleads/v3/resources/product_bidding_category_constant.proto deleted file mode 100644 index 149fb016a..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/product_bidding_category_constant.proto +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/enums/product_bidding_category_level.proto"; -import "google/ads/googleads/v3/enums/product_bidding_category_status.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "ProductBiddingCategoryConstantProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the ProductBiddingCategoryConstant resource. - -// A Product Bidding Category. -message ProductBiddingCategoryConstant { - option (google.api.resource) = { - type: "googleads.googleapis.com/ProductBiddingCategoryConstant" - pattern: "productBiddingCategoryConstants/{product_bidding_category_constant}" - }; - - // Output only. The resource name of the product bidding category. - // Product bidding category resource names have the form: - // - // `productBiddingCategoryConstants/{country_code}~{level}~{id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/ProductBiddingCategoryConstant" - } - ]; - - // Output only. ID of the product bidding category. - // - // This ID is equivalent to the google_product_category ID as described in - // this article: https://support.google.com/merchants/answer/6324436. - google.protobuf.Int64Value id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Two-letter upper-case country code of the product bidding category. - google.protobuf.StringValue country_code = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Resource name of the parent product bidding category. - google.protobuf.StringValue product_bidding_category_constant_parent = 4 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/ProductBiddingCategoryConstant" - } - ]; - - // Output only. Level of the product bidding category. - google.ads.googleads.v3.enums.ProductBiddingCategoryLevelEnum.ProductBiddingCategoryLevel level = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Status of the product bidding category. - google.ads.googleads.v3.enums.ProductBiddingCategoryStatusEnum.ProductBiddingCategoryStatus status = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Language code of the product bidding category. - google.protobuf.StringValue language_code = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Display value of the product bidding category localized according to - // language_code. - google.protobuf.StringValue localized_name = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/product_group_view.proto b/third_party/googleapis/google/ads/googleads/v3/resources/product_group_view.proto deleted file mode 100644 index 2572a3fb6..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/product_group_view.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "ProductGroupViewProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the ProductGroup View resource. - -// A product group view. -message ProductGroupView { - option (google.api.resource) = { - type: "googleads.googleapis.com/ProductGroupView" - pattern: "customers/{customer}/productGroupViews/{product_group_view}" - }; - - // Output only. The resource name of the product group view. - // Product group view resource names have the form: - // - // `customers/{customer_id}/productGroupViews/{ad_group_id}~{criterion_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/ProductGroupView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/recommendation.proto b/third_party/googleapis/google/ads/googleads/v3/resources/recommendation.proto deleted file mode 100644 index f4ef7b8a4..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/recommendation.proto +++ /dev/null @@ -1,319 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/common/criteria.proto"; -import "google/ads/googleads/v3/common/extensions.proto"; -import "google/ads/googleads/v3/enums/keyword_match_type.proto"; -import "google/ads/googleads/v3/enums/recommendation_type.proto"; -import "google/ads/googleads/v3/enums/target_cpa_opt_in_recommendation_goal.proto"; -import "google/ads/googleads/v3/resources/ad.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "RecommendationProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the Recommendation resource. - -// A recommendation. -message Recommendation { - option (google.api.resource) = { - type: "googleads.googleapis.com/Recommendation" - pattern: "customers/{customer}/recommendations/{recommendation}" - }; - - // The impact of making the change as described in the recommendation. - // Some types of recommendations may not have impact information. - message RecommendationImpact { - // Output only. Base metrics at the time the recommendation was generated. - RecommendationMetrics base_metrics = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Estimated metrics if the recommendation is applied. - RecommendationMetrics potential_metrics = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // Weekly account performance metrics. For some recommendation types, these - // are averaged over the past 90-day period and hence can be fractional. - message RecommendationMetrics { - // Output only. Number of ad impressions. - google.protobuf.DoubleValue impressions = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Number of ad clicks. - google.protobuf.DoubleValue clicks = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Cost (in micros) for advertising, in the local currency for the account. - google.protobuf.Int64Value cost_micros = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Number of conversions. - google.protobuf.DoubleValue conversions = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Number of video views for a video ad campaign. - google.protobuf.DoubleValue video_views = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // The budget recommendation for budget constrained campaigns. - message CampaignBudgetRecommendation { - // The impact estimates for a given budget amount. - message CampaignBudgetRecommendationOption { - // Output only. The budget amount for this option. - google.protobuf.Int64Value budget_amount_micros = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The impact estimate if budget is changed to amount specified in this - // option. - RecommendationImpact impact = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // Output only. The current budget amount in micros. - google.protobuf.Int64Value current_budget_amount_micros = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The recommended budget amount in micros. - google.protobuf.Int64Value recommended_budget_amount_micros = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The budget amounts and associated impact estimates for some values of - // possible budget amounts. - repeated CampaignBudgetRecommendationOption budget_options = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // The keyword recommendation. - message KeywordRecommendation { - // Output only. The recommended keyword. - google.ads.googleads.v3.common.KeywordInfo keyword = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The recommended CPC (cost-per-click) bid. - google.protobuf.Int64Value recommended_cpc_bid_micros = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // The Optimize Ad Rotation recommendation. - message OptimizeAdRotationRecommendation { - - } - - // The text ad recommendation. - message TextAdRecommendation { - // Output only. Recommended ad. - Ad ad = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Creation date of the recommended ad. - // YYYY-MM-DD format, e.g., 2018-04-17. - google.protobuf.StringValue creation_date = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Date, if present, is the earliest when the recommendation will be auto - // applied. - // YYYY-MM-DD format, e.g., 2018-04-17. - google.protobuf.StringValue auto_apply_date = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // The Target CPA opt-in recommendation. - message TargetCpaOptInRecommendation { - // The Target CPA opt-in option with impact estimate. - message TargetCpaOptInRecommendationOption { - // Output only. The goal achieved by this option. - google.ads.googleads.v3.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal goal = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Average CPA target. - google.protobuf.Int64Value target_cpa_micros = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The minimum campaign budget, in local currency for the account, - // required to achieve the target CPA. - // Amount is specified in micros, where one million is equivalent to one - // currency unit. - google.protobuf.Int64Value required_campaign_budget_amount_micros = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The impact estimate if this option is selected. - RecommendationImpact impact = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // Output only. The available goals and corresponding options for Target CPA strategy. - repeated TargetCpaOptInRecommendationOption options = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The recommended average CPA target. See required budget amount and impact - // of using this recommendation in options list. - google.protobuf.Int64Value recommended_target_cpa_micros = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // The Enhanced Cost-Per-Click Opt-In recommendation. - message EnhancedCpcOptInRecommendation { - - } - - // The Maximize Clicks opt-in recommendation. - message MaximizeClicksOptInRecommendation { - // Output only. The recommended new budget amount. - // Only set if the current budget is too high. - google.protobuf.Int64Value recommended_budget_amount_micros = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // The Maximize Conversions Opt-In recommendation. - message MaximizeConversionsOptInRecommendation { - // Output only. The recommended new budget amount. - google.protobuf.Int64Value recommended_budget_amount_micros = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // The Call extension recommendation. - message CallExtensionRecommendation { - // Output only. Call extensions recommended to be added. - repeated google.ads.googleads.v3.common.CallFeedItem recommended_extensions = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // The Search Partners Opt-In recommendation. - message SearchPartnersOptInRecommendation { - - } - - // The Callout extension recommendation. - message CalloutExtensionRecommendation { - // Output only. Callout extensions recommended to be added. - repeated google.ads.googleads.v3.common.CalloutFeedItem recommended_extensions = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // The Sitelink extension recommendation. - message SitelinkExtensionRecommendation { - // Output only. Sitelink extensions recommended to be added. - repeated google.ads.googleads.v3.common.SitelinkFeedItem recommended_extensions = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // The keyword match type recommendation. - message KeywordMatchTypeRecommendation { - // Output only. The existing keyword where the match type should be more broad. - google.ads.googleads.v3.common.KeywordInfo keyword = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The recommended new match type. - google.ads.googleads.v3.enums.KeywordMatchTypeEnum.KeywordMatchType recommended_match_type = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // The move unused budget recommendation. - message MoveUnusedBudgetRecommendation { - // Output only. The excess budget's resource_name. - google.protobuf.StringValue excess_campaign_budget = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The recommendation for the constrained budget to increase. - CampaignBudgetRecommendation budget_recommendation = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // Immutable. The resource name of the recommendation. - // - // `customers/{customer_id}/recommendations/{recommendation_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Recommendation" - } - ]; - - // Output only. The type of recommendation. - google.ads.googleads.v3.enums.RecommendationTypeEnum.RecommendationType type = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The impact on account performance as a result of applying the - // recommendation. - RecommendationImpact impact = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The budget targeted by this recommendation. This will be set only when - // the recommendation affects a single campaign budget. - // - // This field will be set for the following recommendation types: - // CAMPAIGN_BUDGET, FORECASTING_CAMPAIGN_BUDGET, MOVE_UNUSED_BUDGET - google.protobuf.StringValue campaign_budget = 5 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignBudget" - } - ]; - - // Output only. The campaign targeted by this recommendation. This will be set only when - // the recommendation affects a single campaign. - // - // This field will be set for the following recommendation types: - // CALL_EXTENSION, CALLOUT_EXTENSION, ENHANCED_CPC_OPT_IN, KEYWORD, - // KEYWORD_MATCH_TYPE, MAXIMIZE_CLICKS_OPT_IN, MAXIMIZE_CONVERSIONS_OPT_IN, - // OPTIMIZE_AD_ROTATION, SEARCH_PARTNERS_OPT_IN, SITELINK_EXTENSION, - // TARGET_CPA_OPT_IN, TARGET_ROAS_OPT_IN, TEXT_AD - google.protobuf.StringValue campaign = 6 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Campaign" - } - ]; - - // Output only. The ad group targeted by this recommendation. This will be set only when - // the recommendation affects a single ad group. - // - // This field will be set for the following recommendation types: - // KEYWORD, OPTIMIZE_AD_ROTATION, TEXT_AD - google.protobuf.StringValue ad_group = 7 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroup" - } - ]; - - // Output only. Whether the recommendation is dismissed or not. - google.protobuf.BoolValue dismissed = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The details of recommendation. - oneof recommendation { - // Output only. The campaign budget recommendation. - CampaignBudgetRecommendation campaign_budget_recommendation = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The keyword recommendation. - KeywordRecommendation keyword_recommendation = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Add expanded text ad recommendation. - TextAdRecommendation text_ad_recommendation = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The TargetCPA opt-in recommendation. - TargetCpaOptInRecommendation target_cpa_opt_in_recommendation = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The MaximizeConversions Opt-In recommendation. - MaximizeConversionsOptInRecommendation maximize_conversions_opt_in_recommendation = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The Enhanced Cost-Per-Click Opt-In recommendation. - EnhancedCpcOptInRecommendation enhanced_cpc_opt_in_recommendation = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The Search Partners Opt-In recommendation. - SearchPartnersOptInRecommendation search_partners_opt_in_recommendation = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The MaximizeClicks Opt-In recommendation. - MaximizeClicksOptInRecommendation maximize_clicks_opt_in_recommendation = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The Optimize Ad Rotation recommendation. - OptimizeAdRotationRecommendation optimize_ad_rotation_recommendation = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The Callout extension recommendation. - CalloutExtensionRecommendation callout_extension_recommendation = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The Sitelink extension recommendation. - SitelinkExtensionRecommendation sitelink_extension_recommendation = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The Call extension recommendation. - CallExtensionRecommendation call_extension_recommendation = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The keyword match type recommendation. - KeywordMatchTypeRecommendation keyword_match_type_recommendation = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The move unused budget recommendation. - MoveUnusedBudgetRecommendation move_unused_budget_recommendation = 21 [(google.api.field_behavior) = OUTPUT_ONLY]; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/remarketing_action.proto b/third_party/googleapis/google/ads/googleads/v3/resources/remarketing_action.proto deleted file mode 100644 index e1aff0a8a..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/remarketing_action.proto +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/common/tag_snippet.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "RemarketingActionProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the Remarketing Action resource. - -// A remarketing action. A snippet of JavaScript code that will collect the -// product id and the type of page people visited (product page, shopping cart -// page, purchase page, general site visit) on an advertiser's website. -message RemarketingAction { - option (google.api.resource) = { - type: "googleads.googleapis.com/RemarketingAction" - pattern: "customers/{customer}/remarketingActions/{remarketing_action}" - }; - - // Immutable. The resource name of the remarketing action. - // Remarketing action resource names have the form: - // - // `customers/{customer_id}/remarketingActions/{remarketing_action_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/RemarketingAction" - } - ]; - - // Output only. Id of the remarketing action. - google.protobuf.Int64Value id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The name of the remarketing action. - // - // This field is required and should not be empty when creating new - // remarketing actions. - google.protobuf.StringValue name = 3; - - // Output only. The snippets used for tracking remarketing actions. - repeated google.ads.googleads.v3.common.TagSnippet tag_snippets = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/search_term_view.proto b/third_party/googleapis/google/ads/googleads/v3/resources/search_term_view.proto deleted file mode 100644 index 11125bc95..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/search_term_view.proto +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/enums/search_term_targeting_status.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "SearchTermViewProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the SearchTermView resource. - -// A search term view with metrics aggregated by search term at the ad group -// level. -message SearchTermView { - option (google.api.resource) = { - type: "googleads.googleapis.com/SearchTermView" - pattern: "customers/{customer}/searchTermViews/{search_term_view}" - }; - - // Output only. The resource name of the search term view. - // Search term view resource names have the form: - // - // `customers/{customer_id}/searchTermViews/{campaign_id}~{ad_group_id}~{URL-base64_search_term}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/SearchTermView" - } - ]; - - // Output only. The search term. - google.protobuf.StringValue search_term = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The ad group the search term served in. - google.protobuf.StringValue ad_group = 3 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroup" - } - ]; - - // Output only. Indicates whether the search term is currently one of your - // targeted or excluded keywords. - google.ads.googleads.v3.enums.SearchTermTargetingStatusEnum.SearchTermTargetingStatus status = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/shared_criterion.proto b/third_party/googleapis/google/ads/googleads/v3/resources/shared_criterion.proto deleted file mode 100644 index 25baf4a43..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/shared_criterion.proto +++ /dev/null @@ -1,93 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/common/criteria.proto"; -import "google/ads/googleads/v3/enums/criterion_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "SharedCriterionProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the SharedCriterion resource. - -// A criterion belonging to a shared set. -message SharedCriterion { - option (google.api.resource) = { - type: "googleads.googleapis.com/SharedCriterion" - pattern: "customers/{customer}/sharedCriteria/{shared_criterion}" - }; - - // Immutable. The resource name of the shared criterion. - // Shared set resource names have the form: - // - // `customers/{customer_id}/sharedCriteria/{shared_set_id}~{criterion_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/SharedCriterion" - } - ]; - - // Immutable. The shared set to which the shared criterion belongs. - google.protobuf.StringValue shared_set = 2 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/SharedSet" - } - ]; - - // Output only. The ID of the criterion. - // - // This field is ignored for mutates. - google.protobuf.Int64Value criterion_id = 26 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The type of the criterion. - google.ads.googleads.v3.enums.CriterionTypeEnum.CriterionType type = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The criterion. - // - // Exactly one must be set. - oneof criterion { - // Immutable. Keyword. - google.ads.googleads.v3.common.KeywordInfo keyword = 3 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. YouTube Video. - google.ads.googleads.v3.common.YouTubeVideoInfo youtube_video = 5 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. YouTube Channel. - google.ads.googleads.v3.common.YouTubeChannelInfo youtube_channel = 6 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Placement. - google.ads.googleads.v3.common.PlacementInfo placement = 7 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Mobile App Category. - google.ads.googleads.v3.common.MobileAppCategoryInfo mobile_app_category = 8 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Mobile application. - google.ads.googleads.v3.common.MobileApplicationInfo mobile_application = 9 [(google.api.field_behavior) = IMMUTABLE]; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/shared_set.proto b/third_party/googleapis/google/ads/googleads/v3/resources/shared_set.proto deleted file mode 100644 index 0ec8bc632..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/shared_set.proto +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/enums/shared_set_status.proto"; -import "google/ads/googleads/v3/enums/shared_set_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "SharedSetProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the SharedSet resource. - -// SharedSets are used for sharing criterion exclusions across multiple -// campaigns. -message SharedSet { - option (google.api.resource) = { - type: "googleads.googleapis.com/SharedSet" - pattern: "customers/{customer}/sharedSets/{shared_set}" - }; - - // Immutable. The resource name of the shared set. - // Shared set resource names have the form: - // - // `customers/{customer_id}/sharedSets/{shared_set_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/SharedSet" - } - ]; - - // Output only. The ID of this shared set. Read only. - google.protobuf.Int64Value id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. The type of this shared set: each shared set holds only a single kind - // of resource. Required. Immutable. - google.ads.googleads.v3.enums.SharedSetTypeEnum.SharedSetType type = 3 [(google.api.field_behavior) = IMMUTABLE]; - - // The name of this shared set. Required. - // Shared Sets must have names that are unique among active shared sets of - // the same type. - // The length of this string should be between 1 and 255 UTF-8 bytes, - // inclusive. - google.protobuf.StringValue name = 4; - - // Output only. The status of this shared set. Read only. - google.ads.googleads.v3.enums.SharedSetStatusEnum.SharedSetStatus status = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The number of shared criteria within this shared set. Read only. - google.protobuf.Int64Value member_count = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The number of campaigns associated with this shared set. Read only. - google.protobuf.Int64Value reference_count = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/shopping_performance_view.proto b/third_party/googleapis/google/ads/googleads/v3/resources/shopping_performance_view.proto deleted file mode 100644 index e794512d9..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/shopping_performance_view.proto +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "ShoppingPerformanceViewProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the ShoppingPerformanceView resource. - -// Shopping performance view. -// Provides Shopping campaign statistics aggregated at several product dimension -// levels. Product dimension values from Merchant Center such as brand, -// category, custom attributes, product condition and product type will reflect -// the state of each dimension as of the date and time when the corresponding -// event was recorded. -message ShoppingPerformanceView { - option (google.api.resource) = { - type: "googleads.googleapis.com/ShoppingPerformanceView" - pattern: "customers/{customer}/shoppingPerformanceView" - }; - - // Output only. The resource name of the Shopping performance view. - // Shopping performance view resource names have the form: - // `customers/{customer_id}/shoppingPerformanceView` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/ShoppingPerformanceView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/topic_constant.proto b/third_party/googleapis/google/ads/googleads/v3/resources/topic_constant.proto deleted file mode 100644 index a20f7706c..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/topic_constant.proto +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "TopicConstantProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the Topic Constant resource. - -// Use topics to target or exclude placements in the Google Display Network -// based on the category into which the placement falls (for example, -// "Pets & Animals/Pets/Dogs"). -message TopicConstant { - option (google.api.resource) = { - type: "googleads.googleapis.com/TopicConstant" - pattern: "topicConstants/{topic_constant}" - }; - - // Output only. The resource name of the topic constant. - // topic constant resource names have the form: - // - // `topicConstants/{topic_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/TopicConstant" - } - ]; - - // Output only. The ID of the topic. - google.protobuf.Int64Value id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Resource name of parent of the topic constant. - google.protobuf.StringValue topic_constant_parent = 3 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/TopicConstant" - } - ]; - - // Output only. The category to target or exclude. Each subsequent element in the array - // describes a more specific sub-category. For example, - // {"Pets & Animals", "Pets", "Dogs"} represents the - // "Pets & Animals/Pets/Dogs" category. List of available topic categories at - // https://developers.google.com/adwords/api/docs/appendix/verticals - repeated google.protobuf.StringValue path = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/topic_view.proto b/third_party/googleapis/google/ads/googleads/v3/resources/topic_view.proto deleted file mode 100644 index 8f5731196..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/topic_view.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "TopicViewProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the topic view resource. - -// A topic view. -message TopicView { - option (google.api.resource) = { - type: "googleads.googleapis.com/TopicView" - pattern: "customers/{customer}/topicViews/{topic_view}" - }; - - // Output only. The resource name of the topic view. - // Topic view resource names have the form: - // - // `customers/{customer_id}/topicViews/{ad_group_id}~{criterion_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/TopicView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/user_interest.proto b/third_party/googleapis/google/ads/googleads/v3/resources/user_interest.proto deleted file mode 100644 index 8ab8e5e57..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/user_interest.proto +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/common/criterion_category_availability.proto"; -import "google/ads/googleads/v3/enums/user_interest_taxonomy_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "UserInterestProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the User Interest resource. - -// A user interest: a particular interest-based vertical to be targeted. -message UserInterest { - option (google.api.resource) = { - type: "googleads.googleapis.com/UserInterest" - pattern: "customers/{customer}/userInterests/{user_interest}" - }; - - // Output only. The resource name of the user interest. - // User interest resource names have the form: - // - // `customers/{customer_id}/userInterests/{user_interest_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/UserInterest" - } - ]; - - // Output only. Taxonomy type of the user interest. - google.ads.googleads.v3.enums.UserInterestTaxonomyTypeEnum.UserInterestTaxonomyType taxonomy_type = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The ID of the user interest. - google.protobuf.Int64Value user_interest_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The name of the user interest. - google.protobuf.StringValue name = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The parent of the user interest. - google.protobuf.StringValue user_interest_parent = 5 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/UserInterest" - } - ]; - - // Output only. True if the user interest is launched to all channels and locales. - google.protobuf.BoolValue launched_to_all = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Availability information of the user interest. - repeated google.ads.googleads.v3.common.CriterionCategoryAvailability availabilities = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/user_list.proto b/third_party/googleapis/google/ads/googleads/v3/resources/user_list.proto deleted file mode 100644 index c62da5dc7..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/user_list.proto +++ /dev/null @@ -1,168 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/ads/googleads/v3/common/user_lists.proto"; -import "google/ads/googleads/v3/enums/access_reason.proto"; -import "google/ads/googleads/v3/enums/user_list_access_status.proto"; -import "google/ads/googleads/v3/enums/user_list_closing_reason.proto"; -import "google/ads/googleads/v3/enums/user_list_membership_status.proto"; -import "google/ads/googleads/v3/enums/user_list_size_range.proto"; -import "google/ads/googleads/v3/enums/user_list_type.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "UserListProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the User List resource. - -// A user list. This is a list of users a customer may target. -message UserList { - option (google.api.resource) = { - type: "googleads.googleapis.com/UserList" - pattern: "customers/{customer}/userLists/{user_list}" - }; - - // Immutable. The resource name of the user list. - // User list resource names have the form: - // - // `customers/{customer_id}/userLists/{user_list_id}` - string resource_name = 1 [ - (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/UserList" - } - ]; - - // Output only. Id of the user list. - google.protobuf.Int64Value id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. A flag that indicates if a user may edit a list. Depends on the list - // ownership and list type. For example, external remarketing user lists are - // not editable. - // - // This field is read-only. - google.protobuf.BoolValue read_only = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Name of this user list. Depending on its access_reason, the user list name - // may not be unique (e.g. if access_reason=SHARED) - google.protobuf.StringValue name = 4; - - // Description of this user list. - google.protobuf.StringValue description = 5; - - // 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.v3.enums.UserListMembershipStatusEnum.UserListMembershipStatus membership_status = 6; - - // An ID from external system. It is used by user list sellers to correlate - // IDs on their systems. - google.protobuf.StringValue integration_code = 7; - - // Number of days a user's cookie stays on your list since its most recent - // addition to the list. This field must be between 0 and 540 inclusive. - // However, for CRM based userlists, this field can be set to 10000 which - // means no expiration. - // - // It'll be ignored for logical_user_list. - google.protobuf.Int64Value membership_life_span = 8; - - // Output only. Estimated number of users in this user list, on the Google Display Network. - // This value is null if the number of users has not yet been determined. - // - // This field is read-only. - google.protobuf.Int64Value size_for_display = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Size range in terms of number of users of the UserList, on the Google - // Display Network. - // - // This field is read-only. - google.ads.googleads.v3.enums.UserListSizeRangeEnum.UserListSizeRange size_range_for_display = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Estimated number of users in this user list in the google.com domain. - // These are the users available for targeting in Search campaigns. - // This value is null if the number of users has not yet been determined. - // - // This field is read-only. - google.protobuf.Int64Value size_for_search = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Size range in terms of number of users of the UserList, for Search ads. - // - // This field is read-only. - google.ads.googleads.v3.enums.UserListSizeRangeEnum.UserListSizeRange size_range_for_search = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Type of this list. - // - // This field is read-only. - google.ads.googleads.v3.enums.UserListTypeEnum.UserListType type = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // 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.v3.enums.UserListClosingReasonEnum.UserListClosingReason closing_reason = 14; - - // Output only. 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.v3.enums.AccessReasonEnum.AccessReason access_reason = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // 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.v3.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; - - // Output only. Indicates this user list is eligible for Google Display Network. - // - // This field is read-only. - google.protobuf.BoolValue eligible_for_display = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The user list. - // - // Exactly one must be set. - oneof user_list { - // User list of CRM users provided by the advertiser. - google.ads.googleads.v3.common.CrmBasedUserListInfo crm_based_user_list = 19; - - // Output only. User list which are similar to users from another UserList. - // These lists are readonly and automatically created by google. - google.ads.googleads.v3.common.SimilarUserListInfo similar_user_list = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // User list generated by a rule. - google.ads.googleads.v3.common.RuleBasedUserListInfo rule_based_user_list = 21; - - // User list that is a custom combination of user lists and user interests. - google.ads.googleads.v3.common.LogicalUserListInfo logical_user_list = 22; - - // User list targeting as a collection of conversion or remarketing actions. - google.ads.googleads.v3.common.BasicUserListInfo basic_user_list = 23; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/user_location_view.proto b/third_party/googleapis/google/ads/googleads/v3/resources/user_location_view.proto deleted file mode 100644 index 115196711..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/user_location_view.proto +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "UserLocationViewProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the user location view resource. - -// A user location view. -// -// User Location View includes all metrics aggregated at the country level, -// one row per country. It reports metrics at the actual physical location of -// the user by targeted or not targeted location. If other segment fields are -// used, you may get more than one row per country. -message UserLocationView { - option (google.api.resource) = { - type: "googleads.googleapis.com/UserLocationView" - pattern: "customers/{customer}/userLocationViews/{user_location_view}" - }; - - // Output only. The resource name of the user location view. - // UserLocation view resource names have the form: - // - // `customers/{customer_id}/userLocationViews/{country_criterion_id}~{targeting_location}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/UserLocationView" - } - ]; - - // Output only. Criterion Id for the country. - google.protobuf.Int64Value country_criterion_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Indicates whether location was targeted or not. - google.protobuf.BoolValue targeting_location = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/resources/video.proto b/third_party/googleapis/google/ads/googleads/v3/resources/video.proto deleted file mode 100644 index 5b984c85c..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/resources/video.proto +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.resources; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Resources"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/resources;resources"; -option java_multiple_files = true; -option java_outer_classname = "VideoProto"; -option java_package = "com.google.ads.googleads.v3.resources"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Resources"; -option ruby_package = "Google::Ads::GoogleAds::V3::Resources"; - -// Proto file describing the video resource. - -// A video. -message Video { - option (google.api.resource) = { - type: "googleads.googleapis.com/Video" - pattern: "customers/{customer}/videos/{video}" - }; - - // Output only. The resource name of the video. - // Video resource names have the form: - // - // `customers/{customer_id}/videos/{video_id}` - string resource_name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Video" - } - ]; - - // Output only. The ID of the video. - google.protobuf.StringValue id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The owner channel id of the video. - google.protobuf.StringValue channel_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The duration of the video in milliseconds. - google.protobuf.Int64Value duration_millis = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The title of the video. - google.protobuf.StringValue title = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/account_budget_proposal_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/account_budget_proposal_service.proto deleted file mode 100644 index ddba31b0e..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/account_budget_proposal_service.proto +++ /dev/null @@ -1,137 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/account_budget_proposal.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "AccountBudgetProposalServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the AccountBudgetProposal service. - -// A service for managing account-level budgets via proposals. -// -// A proposal is a request to create a new budget or make changes to an -// existing one. -// -// Reads for account-level budgets managed by these proposals will be -// supported in a future version. Until then, please use the -// BudgetOrderService from the AdWords API. Learn more at -// https://developers.google.com/adwords/api/docs/guides/budget-order -// -// Mutates: -// The CREATE operation creates a new proposal. -// UPDATE operations aren't supported. -// The REMOVE operation cancels a pending proposal. -service AccountBudgetProposalService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns an account-level budget proposal in full detail. - rpc GetAccountBudgetProposal(GetAccountBudgetProposalRequest) returns (google.ads.googleads.v3.resources.AccountBudgetProposal) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/accountBudgetProposals/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes account budget proposals. Operation statuses - // are returned. - rpc MutateAccountBudgetProposal(MutateAccountBudgetProposalRequest) returns (MutateAccountBudgetProposalResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/accountBudgetProposals:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operation"; - } -} - -// Request message for -// [AccountBudgetProposalService.GetAccountBudgetProposal][google.ads.googleads.v3.services.AccountBudgetProposalService.GetAccountBudgetProposal]. -message GetAccountBudgetProposalRequest { - // Required. The resource name of the account-level budget proposal to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AccountBudgetProposal" - } - ]; -} - -// Request message for -// [AccountBudgetProposalService.MutateAccountBudgetProposal][google.ads.googleads.v3.services.AccountBudgetProposalService.MutateAccountBudgetProposal]. -message MutateAccountBudgetProposalRequest { - // Required. The ID of the customer. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The operation to perform on an individual account-level budget proposal. - AccountBudgetProposalOperation operation = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 3; -} - -// A single operation to propose the creation of a new account-level budget or -// edit/end/remove an existing one. -message AccountBudgetProposalOperation { - // FieldMask that determines which budget fields are modified. While budgets - // may be modified, proposals that propose such modifications are final. - // Therefore, update operations are not supported for proposals. - // - // Proposals that modify budgets have the 'update' proposal type. Specifying - // a mask for any other proposal type is considered an error. - google.protobuf.FieldMask update_mask = 3; - - // The mutate operation. - oneof operation { - // Create operation: A new proposal to create a new budget, edit an - // existing budget, end an actively running budget, or remove an approved - // budget scheduled to start in the future. - // No resource name is expected for the new proposal. - google.ads.googleads.v3.resources.AccountBudgetProposal create = 2; - - // Remove operation: A resource name for the removed proposal is expected, - // in this format: - // - // `customers/{customer_id}/accountBudgetProposals/{account_budget_proposal_id}` - // A request may be cancelled iff it is pending. - string remove = 1; - } -} - -// Response message for account-level budget mutate operations. -message MutateAccountBudgetProposalResponse { - // The result of the mutate. - MutateAccountBudgetProposalResult result = 2; -} - -// The result for the account budget proposal mutate. -message MutateAccountBudgetProposalResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/account_budget_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/account_budget_service.proto deleted file mode 100644 index 44ebb9d60..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/account_budget_service.proto +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/account_budget.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "AccountBudgetServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the AccountBudget service. - -// A service for fetching an account-level budget. -// -// Account-level budgets are mutated by creating proposal resources. -service AccountBudgetService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns an account-level budget in full detail. - rpc GetAccountBudget(GetAccountBudgetRequest) returns (google.ads.googleads.v3.resources.AccountBudget) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/accountBudgets/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for -// [AccountBudgetService.GetAccountBudget][google.ads.googleads.v3.services.AccountBudgetService.GetAccountBudget]. -message GetAccountBudgetRequest { - // Required. The resource name of the account-level budget to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AccountBudget" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/ad_group_ad_asset_view_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/ad_group_ad_asset_view_service.proto deleted file mode 100644 index 72248d021..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/ad_group_ad_asset_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/ad_group_ad_asset_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupAdAssetViewServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the ad group ad asset view service. - -// Service to fetch ad group ad asset views. -service AdGroupAdAssetViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested ad group ad asset view in full detail. - rpc GetAdGroupAdAssetView(GetAdGroupAdAssetViewRequest) returns (google.ads.googleads.v3.resources.AdGroupAdAssetView) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/adGroupAdAssetViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [AdGroupAdAssetViewService.GetAdGroupAdAssetView][google.ads.googleads.v3.services.AdGroupAdAssetViewService.GetAdGroupAdAssetView]. -message GetAdGroupAdAssetViewRequest { - // Required. The resource name of the ad group ad asset view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupAdAssetView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/ad_group_ad_label_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/ad_group_ad_label_service.proto deleted file mode 100644 index 4f1271dc3..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/ad_group_ad_label_service.proto +++ /dev/null @@ -1,123 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/ad_group_ad_label.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupAdLabelServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Ad Group Ad Label service. - -// Service to manage labels on ad group ads. -service AdGroupAdLabelService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested ad group ad label in full detail. - rpc GetAdGroupAdLabel(GetAdGroupAdLabelRequest) returns (google.ads.googleads.v3.resources.AdGroupAdLabel) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/adGroupAdLabels/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates and removes ad group ad labels. - // Operation statuses are returned. - rpc MutateAdGroupAdLabels(MutateAdGroupAdLabelsRequest) returns (MutateAdGroupAdLabelsResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/adGroupAdLabels:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [AdGroupAdLabelService.GetAdGroupAdLabel][google.ads.googleads.v3.services.AdGroupAdLabelService.GetAdGroupAdLabel]. -message GetAdGroupAdLabelRequest { - // Required. The resource name of the ad group ad label to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupAdLabel" - } - ]; -} - -// Request message for [AdGroupAdLabelService.MutateAdGroupAdLabels][google.ads.googleads.v3.services.AdGroupAdLabelService.MutateAdGroupAdLabels]. -message MutateAdGroupAdLabelsRequest { - // Required. ID of the customer whose ad group ad labels are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on ad group ad labels. - repeated AdGroupAdLabelOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, remove) on an ad group ad label. -message AdGroupAdLabelOperation { - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new ad group ad - // label. - google.ads.googleads.v3.resources.AdGroupAdLabel create = 1; - - // Remove operation: A resource name for the ad group ad label - // being removed, in this format: - // - // `customers/{customer_id}/adGroupAdLabels/{ad_group_id}~{ad_id} - // _{label_id}` - string remove = 2; - } -} - -// Response message for an ad group ad labels mutate. -message MutateAdGroupAdLabelsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateAdGroupAdLabelResult results = 2; -} - -// The result for an ad group ad label mutate. -message MutateAdGroupAdLabelResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/ad_group_ad_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/ad_group_ad_service.proto deleted file mode 100644 index f6d10b732..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/ad_group_ad_service.proto +++ /dev/null @@ -1,131 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/common/policy.proto"; -import "google/ads/googleads/v3/resources/ad_group_ad.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupAdServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Ad Group Ad service. - -// Service to manage ads in an ad group. -service AdGroupAdService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested ad in full detail. - rpc GetAdGroupAd(GetAdGroupAdRequest) returns (google.ads.googleads.v3.resources.AdGroupAd) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/adGroupAds/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes ads. Operation statuses are returned. - rpc MutateAdGroupAds(MutateAdGroupAdsRequest) returns (MutateAdGroupAdsResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/adGroupAds:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [AdGroupAdService.GetAdGroupAd][google.ads.googleads.v3.services.AdGroupAdService.GetAdGroupAd]. -message GetAdGroupAdRequest { - // Required. The resource name of the ad to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupAd" - } - ]; -} - -// Request message for [AdGroupAdService.MutateAdGroupAds][google.ads.googleads.v3.services.AdGroupAdService.MutateAdGroupAds]. -message MutateAdGroupAdsRequest { - // Required. The ID of the customer whose ads are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual ads. - repeated AdGroupAdOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update, remove) on an ad group ad. -message AdGroupAdOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // Configuration for how policies are validated. - google.ads.googleads.v3.common.PolicyValidationParameter policy_validation_parameter = 5; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new ad. - google.ads.googleads.v3.resources.AdGroupAd create = 1; - - // Update operation: The ad is expected to have a valid resource name. - google.ads.googleads.v3.resources.AdGroupAd update = 2; - - // Remove operation: A resource name for the removed ad is expected, - // in this format: - // - // `customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}` - string remove = 3; - } -} - -// Response message for an ad group ad mutate. -message MutateAdGroupAdsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateAdGroupAdResult results = 2; -} - -// The result for the ad mutate. -message MutateAdGroupAdResult { - // The resource name returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/ad_group_audience_view_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/ad_group_audience_view_service.proto deleted file mode 100644 index 81fb27248..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/ad_group_audience_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/ad_group_audience_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupAudienceViewServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the AdGroup Audience View service. - -// Service to manage ad group audience views. -service AdGroupAudienceViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested ad group audience view in full detail. - rpc GetAdGroupAudienceView(GetAdGroupAudienceViewRequest) returns (google.ads.googleads.v3.resources.AdGroupAudienceView) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/adGroupAudienceViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [AdGroupAudienceViewService.GetAdGroupAudienceView][google.ads.googleads.v3.services.AdGroupAudienceViewService.GetAdGroupAudienceView]. -message GetAdGroupAudienceViewRequest { - // Required. The resource name of the ad group audience view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupAudienceView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/ad_group_bid_modifier_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/ad_group_bid_modifier_service.proto deleted file mode 100644 index 1c44496ec..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/ad_group_bid_modifier_service.proto +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/ad_group_bid_modifier.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupBidModifierServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Ad Group Bid Modifier service. - -// Service to manage ad group bid modifiers. -service AdGroupBidModifierService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested ad group bid modifier in full detail. - rpc GetAdGroupBidModifier(GetAdGroupBidModifierRequest) returns (google.ads.googleads.v3.resources.AdGroupBidModifier) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/adGroupBidModifiers/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes ad group bid modifiers. - // Operation statuses are returned. - rpc MutateAdGroupBidModifiers(MutateAdGroupBidModifiersRequest) returns (MutateAdGroupBidModifiersResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/adGroupBidModifiers:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [AdGroupBidModifierService.GetAdGroupBidModifier][google.ads.googleads.v3.services.AdGroupBidModifierService.GetAdGroupBidModifier]. -message GetAdGroupBidModifierRequest { - // Required. The resource name of the ad group bid modifier to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupBidModifier" - } - ]; -} - -// Request message for [AdGroupBidModifierService.MutateAdGroupBidModifiers][google.ads.googleads.v3.services.AdGroupBidModifierService.MutateAdGroupBidModifiers]. -message MutateAdGroupBidModifiersRequest { - // Required. ID of the customer whose ad group bid modifiers are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual ad group bid modifiers. - repeated AdGroupBidModifierOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, remove, update) on an ad group bid modifier. -message AdGroupBidModifierOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new ad group bid - // modifier. - google.ads.googleads.v3.resources.AdGroupBidModifier create = 1; - - // Update operation: The ad group bid modifier is expected to have a valid - // resource name. - google.ads.googleads.v3.resources.AdGroupBidModifier update = 2; - - // Remove operation: A resource name for the removed ad group bid modifier - // is expected, in this format: - // - // `customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}` - string remove = 3; - } -} - -// Response message for ad group bid modifiers mutate. -message MutateAdGroupBidModifiersResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateAdGroupBidModifierResult results = 2; -} - -// The result for the criterion mutate. -message MutateAdGroupBidModifierResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/ad_group_criterion_label_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/ad_group_criterion_label_service.proto deleted file mode 100644 index b30e72072..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/ad_group_criterion_label_service.proto +++ /dev/null @@ -1,124 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/ad_group_criterion_label.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupCriterionLabelServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Ad Group Criterion Label service. - -// Service to manage labels on ad group criteria. -service AdGroupCriterionLabelService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested ad group criterion label in full detail. - rpc GetAdGroupCriterionLabel(GetAdGroupCriterionLabelRequest) returns (google.ads.googleads.v3.resources.AdGroupCriterionLabel) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/adGroupCriterionLabels/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates and removes ad group criterion labels. - // Operation statuses are returned. - rpc MutateAdGroupCriterionLabels(MutateAdGroupCriterionLabelsRequest) returns (MutateAdGroupCriterionLabelsResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/adGroupCriterionLabels:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for -// [AdGroupCriterionLabelService.GetAdGroupCriterionLabel][google.ads.googleads.v3.services.AdGroupCriterionLabelService.GetAdGroupCriterionLabel]. -message GetAdGroupCriterionLabelRequest { - // Required. The resource name of the ad group criterion label to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupCriterionLabel" - } - ]; -} - -// Request message for -// [AdGroupCriterionLabelService.MutateAdGroupCriterionLabels][google.ads.googleads.v3.services.AdGroupCriterionLabelService.MutateAdGroupCriterionLabels]. -message MutateAdGroupCriterionLabelsRequest { - // Required. ID of the customer whose ad group criterion labels are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on ad group criterion labels. - repeated AdGroupCriterionLabelOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, remove) on an ad group criterion label. -message AdGroupCriterionLabelOperation { - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new ad group - // label. - google.ads.googleads.v3.resources.AdGroupCriterionLabel create = 1; - - // Remove operation: A resource name for the ad group criterion label - // being removed, in this format: - // - // `customers/{customer_id}/adGroupCriterionLabels/{ad_group_id}~{criterion_id}~{label_id}` - string remove = 2; - } -} - -// Response message for an ad group criterion labels mutate. -message MutateAdGroupCriterionLabelsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateAdGroupCriterionLabelResult results = 2; -} - -// The result for an ad group criterion label mutate. -message MutateAdGroupCriterionLabelResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/ad_group_criterion_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/ad_group_criterion_service.proto deleted file mode 100644 index b34ece539..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/ad_group_criterion_service.proto +++ /dev/null @@ -1,140 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/common/policy.proto"; -import "google/ads/googleads/v3/resources/ad_group_criterion.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupCriterionServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Ad Group Criterion service. - -// Service to manage ad group criteria. -service AdGroupCriterionService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested criterion in full detail. - rpc GetAdGroupCriterion(GetAdGroupCriterionRequest) returns (google.ads.googleads.v3.resources.AdGroupCriterion) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/adGroupCriteria/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes criteria. Operation statuses are returned. - rpc MutateAdGroupCriteria(MutateAdGroupCriteriaRequest) returns (MutateAdGroupCriteriaResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/adGroupCriteria:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [AdGroupCriterionService.GetAdGroupCriterion][google.ads.googleads.v3.services.AdGroupCriterionService.GetAdGroupCriterion]. -message GetAdGroupCriterionRequest { - // Required. The resource name of the criterion to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupCriterion" - } - ]; -} - -// Request message for [AdGroupCriterionService.MutateAdGroupCriteria][google.ads.googleads.v3.services.AdGroupCriterionService.MutateAdGroupCriteria]. -message MutateAdGroupCriteriaRequest { - // Required. ID of the customer whose criteria are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual criteria. - repeated AdGroupCriterionOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, remove, update) on an ad group criterion. -message AdGroupCriterionOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The list of policy violation keys that should not cause a - // PolicyViolationError to be reported. Not all policy violations are - // exemptable, please refer to the is_exemptible field in the returned - // PolicyViolationError. - // - // Resources violating these polices will be saved, but will not be eligible - // to serve. They may begin serving at a later time due to a change in - // policies, re-review of the resource, or a change in advertiser - // certificates. - repeated google.ads.googleads.v3.common.PolicyViolationKey exempt_policy_violation_keys = 5; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new criterion. - google.ads.googleads.v3.resources.AdGroupCriterion create = 1; - - // Update operation: The criterion is expected to have a valid resource - // name. - google.ads.googleads.v3.resources.AdGroupCriterion update = 2; - - // Remove operation: A resource name for the removed criterion is expected, - // in this format: - // - // `customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}` - string remove = 3; - } -} - -// Response message for an ad group criterion mutate. -message MutateAdGroupCriteriaResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateAdGroupCriterionResult results = 2; -} - -// The result for the criterion mutate. -message MutateAdGroupCriterionResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/ad_group_criterion_simulation_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/ad_group_criterion_simulation_service.proto deleted file mode 100644 index c56a9b028..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/ad_group_criterion_simulation_service.proto +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/ad_group_criterion_simulation.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupCriterionSimulationServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the AdGroupCriterionSimulation service. - -// Service to fetch ad group criterion simulations. -service AdGroupCriterionSimulationService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested ad group criterion simulation in full detail. - rpc GetAdGroupCriterionSimulation(GetAdGroupCriterionSimulationRequest) returns (google.ads.googleads.v3.resources.AdGroupCriterionSimulation) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/adGroupCriterionSimulations/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for -// [AdGroupCriterionSimulationService.GetAdGroupCriterionSimulation][google.ads.googleads.v3.services.AdGroupCriterionSimulationService.GetAdGroupCriterionSimulation]. -message GetAdGroupCriterionSimulationRequest { - // Required. The resource name of the ad group criterion simulation to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupCriterionSimulation" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/ad_group_extension_setting_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/ad_group_extension_setting_service.proto deleted file mode 100644 index 7047e706a..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/ad_group_extension_setting_service.proto +++ /dev/null @@ -1,134 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/ad_group_extension_setting.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupExtensionSettingServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the AdGroupExtensionSetting service. - -// Service to manage ad group extension settings. -service AdGroupExtensionSettingService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested ad group extension setting in full detail. - rpc GetAdGroupExtensionSetting(GetAdGroupExtensionSettingRequest) returns (google.ads.googleads.v3.resources.AdGroupExtensionSetting) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/adGroupExtensionSettings/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes ad group extension settings. Operation - // statuses are returned. - rpc MutateAdGroupExtensionSettings(MutateAdGroupExtensionSettingsRequest) returns (MutateAdGroupExtensionSettingsResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/adGroupExtensionSettings:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for -// [AdGroupExtensionSettingService.GetAdGroupExtensionSetting][google.ads.googleads.v3.services.AdGroupExtensionSettingService.GetAdGroupExtensionSetting]. -message GetAdGroupExtensionSettingRequest { - // Required. The resource name of the ad group extension setting to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupExtensionSetting" - } - ]; -} - -// Request message for -// [AdGroupExtensionSettingService.MutateAdGroupExtensionSettings][google.ads.googleads.v3.services.AdGroupExtensionSettingService.MutateAdGroupExtensionSettings]. -message MutateAdGroupExtensionSettingsRequest { - // Required. The ID of the customer whose ad group extension settings are being - // modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual ad group extension - // settings. - repeated AdGroupExtensionSettingOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update, remove) on an ad group extension setting. -message AdGroupExtensionSettingOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new ad group - // extension setting. - google.ads.googleads.v3.resources.AdGroupExtensionSetting create = 1; - - // Update operation: The ad group extension setting is expected to have a - // valid resource name. - google.ads.googleads.v3.resources.AdGroupExtensionSetting update = 2; - - // Remove operation: A resource name for the removed ad group extension - // setting is expected, in this format: - // - // `customers/{customer_id}/adGroupExtensionSettings/{ad_group_id}~{extension_type}` - string remove = 3; - } -} - -// Response message for an ad group extension setting mutate. -message MutateAdGroupExtensionSettingsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateAdGroupExtensionSettingResult results = 2; -} - -// The result for the ad group extension setting mutate. -message MutateAdGroupExtensionSettingResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/ad_group_feed_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/ad_group_feed_service.proto deleted file mode 100644 index 103f59c44..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/ad_group_feed_service.proto +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/ad_group_feed.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupFeedServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the AdGroupFeed service. - -// Service to manage ad group feeds. -service AdGroupFeedService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested ad group feed in full detail. - rpc GetAdGroupFeed(GetAdGroupFeedRequest) returns (google.ads.googleads.v3.resources.AdGroupFeed) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/adGroupFeeds/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes ad group feeds. Operation statuses are - // returned. - rpc MutateAdGroupFeeds(MutateAdGroupFeedsRequest) returns (MutateAdGroupFeedsResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/adGroupFeeds:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [AdGroupFeedService.GetAdGroupFeed][google.ads.googleads.v3.services.AdGroupFeedService.GetAdGroupFeed]. -message GetAdGroupFeedRequest { - // Required. The resource name of the ad group feed to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupFeed" - } - ]; -} - -// Request message for [AdGroupFeedService.MutateAdGroupFeeds][google.ads.googleads.v3.services.AdGroupFeedService.MutateAdGroupFeeds]. -message MutateAdGroupFeedsRequest { - // Required. The ID of the customer whose ad group feeds are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual ad group feeds. - repeated AdGroupFeedOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update, remove) on an ad group feed. -message AdGroupFeedOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new ad group feed. - google.ads.googleads.v3.resources.AdGroupFeed create = 1; - - // Update operation: The ad group feed is expected to have a valid resource - // name. - google.ads.googleads.v3.resources.AdGroupFeed update = 2; - - // Remove operation: A resource name for the removed ad group feed is - // expected, in this format: - // - // `customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_id}` - string remove = 3; - } -} - -// Response message for an ad group feed mutate. -message MutateAdGroupFeedsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateAdGroupFeedResult results = 2; -} - -// The result for the ad group feed mutate. -message MutateAdGroupFeedResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/ad_group_label_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/ad_group_label_service.proto deleted file mode 100644 index e903a8fb7..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/ad_group_label_service.proto +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/ad_group_label.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupLabelServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Ad Group Label service. - -// Service to manage labels on ad groups. -service AdGroupLabelService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested ad group label in full detail. - rpc GetAdGroupLabel(GetAdGroupLabelRequest) returns (google.ads.googleads.v3.resources.AdGroupLabel) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/adGroupLabels/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates and removes ad group labels. - // Operation statuses are returned. - rpc MutateAdGroupLabels(MutateAdGroupLabelsRequest) returns (MutateAdGroupLabelsResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/adGroupLabels:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [AdGroupLabelService.GetAdGroupLabel][google.ads.googleads.v3.services.AdGroupLabelService.GetAdGroupLabel]. -message GetAdGroupLabelRequest { - // Required. The resource name of the ad group label to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupLabel" - } - ]; -} - -// Request message for [AdGroupLabelService.MutateAdGroupLabels][google.ads.googleads.v3.services.AdGroupLabelService.MutateAdGroupLabels]. -message MutateAdGroupLabelsRequest { - // Required. ID of the customer whose ad group labels are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on ad group labels. - repeated AdGroupLabelOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, remove) on an ad group label. -message AdGroupLabelOperation { - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new ad group - // label. - google.ads.googleads.v3.resources.AdGroupLabel create = 1; - - // Remove operation: A resource name for the ad group label - // being removed, in this format: - // - // `customers/{customer_id}/adGroupLabels/{ad_group_id}~{label_id}` - string remove = 2; - } -} - -// Response message for an ad group labels mutate. -message MutateAdGroupLabelsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateAdGroupLabelResult results = 2; -} - -// The result for an ad group label mutate. -message MutateAdGroupLabelResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/ad_group_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/ad_group_service.proto deleted file mode 100644 index 495449e0a..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/ad_group_service.proto +++ /dev/null @@ -1,127 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/ad_group.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Ad Group service. - -// Service to manage ad groups. -service AdGroupService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested ad group in full detail. - rpc GetAdGroup(GetAdGroupRequest) returns (google.ads.googleads.v3.resources.AdGroup) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/adGroups/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes ad groups. Operation statuses are returned. - rpc MutateAdGroups(MutateAdGroupsRequest) returns (MutateAdGroupsResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/adGroups:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [AdGroupService.GetAdGroup][google.ads.googleads.v3.services.AdGroupService.GetAdGroup]. -message GetAdGroupRequest { - // Required. The resource name of the ad group to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroup" - } - ]; -} - -// Request message for [AdGroupService.MutateAdGroups][google.ads.googleads.v3.services.AdGroupService.MutateAdGroups]. -message MutateAdGroupsRequest { - // Required. The ID of the customer whose ad groups are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual ad groups. - repeated AdGroupOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update, remove) on an ad group. -message AdGroupOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new ad group. - google.ads.googleads.v3.resources.AdGroup create = 1; - - // Update operation: The ad group is expected to have a valid resource name. - google.ads.googleads.v3.resources.AdGroup update = 2; - - // Remove operation: A resource name for the removed ad group is expected, - // in this format: - // - // `customers/{customer_id}/adGroups/{ad_group_id}` - string remove = 3; - } -} - -// Response message for an ad group mutate. -message MutateAdGroupsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateAdGroupResult results = 2; -} - -// The result for the ad group mutate. -message MutateAdGroupResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/ad_group_simulation_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/ad_group_simulation_service.proto deleted file mode 100644 index 56f00966f..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/ad_group_simulation_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/ad_group_simulation.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "AdGroupSimulationServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the AdGroupSimulation service. - -// Service to fetch ad group simulations. -service AdGroupSimulationService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested ad group simulation in full detail. - rpc GetAdGroupSimulation(GetAdGroupSimulationRequest) returns (google.ads.googleads.v3.resources.AdGroupSimulation) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/adGroupSimulations/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [AdGroupSimulationService.GetAdGroupSimulation][google.ads.googleads.v3.services.AdGroupSimulationService.GetAdGroupSimulation]. -message GetAdGroupSimulationRequest { - // Required. The resource name of the ad group simulation to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdGroupSimulation" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/ad_parameter_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/ad_parameter_service.proto deleted file mode 100644 index 290a6ee3c..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/ad_parameter_service.proto +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/ad_parameter.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "AdParameterServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Ad Parameter service. - -// Service to manage ad parameters. -service AdParameterService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested ad parameter in full detail. - rpc GetAdParameter(GetAdParameterRequest) returns (google.ads.googleads.v3.resources.AdParameter) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/adParameters/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes ad parameters. Operation statuses are - // returned. - rpc MutateAdParameters(MutateAdParametersRequest) returns (MutateAdParametersResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/adParameters:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [AdParameterService.GetAdParameter][google.ads.googleads.v3.services.AdParameterService.GetAdParameter] -message GetAdParameterRequest { - // Required. The resource name of the ad parameter to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdParameter" - } - ]; -} - -// Request message for [AdParameterService.MutateAdParameters][google.ads.googleads.v3.services.AdParameterService.MutateAdParameters] -message MutateAdParametersRequest { - // Required. The ID of the customer whose ad parameters are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual ad parameters. - repeated AdParameterOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update, remove) on ad parameter. -message AdParameterOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new ad parameter. - google.ads.googleads.v3.resources.AdParameter create = 1; - - // Update operation: The ad parameter is expected to have a valid resource - // name. - google.ads.googleads.v3.resources.AdParameter update = 2; - - // Remove operation: A resource name for the ad parameter to remove is - // expected in this format: - // - // `customers/{customer_id}/adParameters/{ad_group_id}~{criterion_id}~{parameter_index}` - string remove = 3; - } -} - -// Response message for an ad parameter mutate. -message MutateAdParametersResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateAdParameterResult results = 2; -} - -// The result for the ad parameter mutate. -message MutateAdParameterResult { - // The resource name returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/ad_schedule_view_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/ad_schedule_view_service.proto deleted file mode 100644 index ac547c10e..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/ad_schedule_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/ad_schedule_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "AdScheduleViewServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the AdSchedule View service. - -// Service to fetch ad schedule views. -service AdScheduleViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested ad schedule view in full detail. - rpc GetAdScheduleView(GetAdScheduleViewRequest) returns (google.ads.googleads.v3.resources.AdScheduleView) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/adScheduleViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [AdScheduleViewService.GetAdScheduleView][google.ads.googleads.v3.services.AdScheduleViewService.GetAdScheduleView]. -message GetAdScheduleViewRequest { - // Required. The resource name of the ad schedule view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AdScheduleView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/ad_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/ad_service.proto deleted file mode 100644 index 7cc38c1a2..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/ad_service.proto +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/ad.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "AdServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Ad service. - -// Service to manage ads. -service AdService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested ad in full detail. - rpc GetAd(GetAdRequest) returns (google.ads.googleads.v3.resources.Ad) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/ads/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Updates ads. Operation statuses are returned. Updating ads is not supported - // for TextAd, ExpandedDynamicSearchAd, GmailAd and ImageAd. - rpc MutateAds(MutateAdsRequest) returns (MutateAdsResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/ads:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [AdService.GetAd][google.ads.googleads.v3.services.AdService.GetAd]. -message GetAdRequest { - // Required. The resource name of the ad to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Ad" - } - ]; -} - -// Request message for [AdService.MutateAds][google.ads.googleads.v3.services.AdService.MutateAds]. -message MutateAdsRequest { - // Required. The ID of the customer whose ads are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual ads. - repeated AdOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// A single update operation on an ad. -message AdOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 2; - - // The mutate operation. - oneof operation { - // Update operation: The ad is expected to have a valid resource name - // in this format: - // - // `customers/{customer_id}/ads/{ad_id}` - google.ads.googleads.v3.resources.Ad update = 1; - } -} - -// Response message for an ad mutate. -message MutateAdsResponse { - // All results for the mutate. - repeated MutateAdResult results = 2; -} - -// The result for the ad mutate. -message MutateAdResult { - // The resource name returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/age_range_view_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/age_range_view_service.proto deleted file mode 100644 index ac159e1b3..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/age_range_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/age_range_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "AgeRangeViewServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Age Range View service. - -// Service to manage age range views. -service AgeRangeViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested age range view in full detail. - rpc GetAgeRangeView(GetAgeRangeViewRequest) returns (google.ads.googleads.v3.resources.AgeRangeView) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/ageRangeViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [AgeRangeViewService.GetAgeRangeView][google.ads.googleads.v3.services.AgeRangeViewService.GetAgeRangeView]. -message GetAgeRangeViewRequest { - // Required. The resource name of the age range view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/AgeRangeView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/asset_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/asset_service.proto deleted file mode 100644 index 8f1416603..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/asset_service.proto +++ /dev/null @@ -1,101 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/asset.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "AssetServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Asset service. - -// Service to manage assets. Asset types can be created with AssetService are -// YoutubeVideoAsset, MediaBundleAsset and ImageAsset. TextAsset should be -// created with Ad inline. -service AssetService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested asset in full detail. - rpc GetAsset(GetAssetRequest) returns (google.ads.googleads.v3.resources.Asset) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/assets/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates assets. Operation statuses are returned. - rpc MutateAssets(MutateAssetsRequest) returns (MutateAssetsResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/assets:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [AssetService.GetAsset][google.ads.googleads.v3.services.AssetService.GetAsset] -message GetAssetRequest { - // Required. The resource name of the asset to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Asset" - } - ]; -} - -// Request message for [AssetService.MutateAssets][google.ads.googleads.v3.services.AssetService.MutateAssets] -message MutateAssetsRequest { - // Required. The ID of the customer whose assets are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual assets. - repeated AssetOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// A single operation to create an asset. Supported asset types are -// YoutubeVideoAsset, MediaBundleAsset, ImageAsset, and LeadFormAsset. TextAsset -// should be created with Ad inline. -message AssetOperation { - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new asset. - google.ads.googleads.v3.resources.Asset create = 1; - } -} - -// Response message for an asset mutate. -message MutateAssetsResponse { - // All results for the mutate. - repeated MutateAssetResult results = 2; -} - -// The result for the asset mutate. -message MutateAssetResult { - // The resource name returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/bidding_strategy_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/bidding_strategy_service.proto deleted file mode 100644 index 8fdbfb8d8..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/bidding_strategy_service.proto +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/bidding_strategy.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "BiddingStrategyServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Bidding Strategy service. - -// Service to manage bidding strategies. -service BiddingStrategyService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested bidding strategy in full detail. - rpc GetBiddingStrategy(GetBiddingStrategyRequest) returns (google.ads.googleads.v3.resources.BiddingStrategy) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/biddingStrategies/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes bidding strategies. Operation statuses are - // returned. - rpc MutateBiddingStrategies(MutateBiddingStrategiesRequest) returns (MutateBiddingStrategiesResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/biddingStrategies:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [BiddingStrategyService.GetBiddingStrategy][google.ads.googleads.v3.services.BiddingStrategyService.GetBiddingStrategy]. -message GetBiddingStrategyRequest { - // Required. The resource name of the bidding strategy to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/BiddingStrategy" - } - ]; -} - -// Request message for [BiddingStrategyService.MutateBiddingStrategies][google.ads.googleads.v3.services.BiddingStrategyService.MutateBiddingStrategies]. -message MutateBiddingStrategiesRequest { - // Required. The ID of the customer whose bidding strategies are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual bidding strategies. - repeated BiddingStrategyOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update, remove) on a bidding strategy. -message BiddingStrategyOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new bidding - // strategy. - google.ads.googleads.v3.resources.BiddingStrategy create = 1; - - // Update operation: The bidding strategy is expected to have a valid - // resource name. - google.ads.googleads.v3.resources.BiddingStrategy update = 2; - - // Remove operation: A resource name for the removed bidding strategy is - // expected, in this format: - // - // `customers/{customer_id}/biddingStrategies/{bidding_strategy_id}` - string remove = 3; - } -} - -// Response message for bidding strategy mutate. -message MutateBiddingStrategiesResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateBiddingStrategyResult results = 2; -} - -// The result for the bidding strategy mutate. -message MutateBiddingStrategyResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/billing_setup_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/billing_setup_service.proto deleted file mode 100644 index 8a177e9b2..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/billing_setup_service.proto +++ /dev/null @@ -1,115 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/billing_setup.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "BillingSetupServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the BillingSetup service. - -// A service for designating the business entity responsible for accrued costs. -// -// A billing setup is associated with a payments account. Billing-related -// activity for all billing setups associated with a particular payments account -// will appear on a single invoice generated monthly. -// -// Mutates: -// The REMOVE operation cancels a pending billing setup. -// The CREATE operation creates a new billing setup. -service BillingSetupService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns a billing setup. - rpc GetBillingSetup(GetBillingSetupRequest) returns (google.ads.googleads.v3.resources.BillingSetup) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/billingSetups/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates a billing setup, or cancels an existing billing setup. - rpc MutateBillingSetup(MutateBillingSetupRequest) returns (MutateBillingSetupResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/billingSetups:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operation"; - } -} - -// Request message for -// [BillingSetupService.GetBillingSetup][google.ads.googleads.v3.services.BillingSetupService.GetBillingSetup]. -message GetBillingSetupRequest { - // Required. The resource name of the billing setup to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/BillingSetup" - } - ]; -} - -// Request message for billing setup mutate operations. -message MutateBillingSetupRequest { - // Required. Id of the customer to apply the billing setup mutate operation to. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The operation to perform. - BillingSetupOperation operation = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// A single operation on a billing setup, which describes the cancellation of an -// existing billing setup. -message BillingSetupOperation { - // Only one of these operations can be set. "Update" operations are not - // supported. - oneof operation { - // Creates a billing setup. No resource name is expected for the new billing - // setup. - google.ads.googleads.v3.resources.BillingSetup create = 2; - - // Resource name of the billing setup to remove. A setup cannot be - // removed unless it is in a pending state or its scheduled start time is in - // the future. The resource name looks like - // `customers/{customer_id}/billingSetups/{billing_id}`. - string remove = 1; - } -} - -// Response message for a billing setup operation. -message MutateBillingSetupResponse { - // A result that identifies the resource affected by the mutate request. - MutateBillingSetupResult result = 1; -} - -// Result for a single billing setup mutate. -message MutateBillingSetupResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/campaign_audience_view_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/campaign_audience_view_service.proto deleted file mode 100644 index 0134cd2fa..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/campaign_audience_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/campaign_audience_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "CampaignAudienceViewServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Campaign Audience View service. - -// Service to manage campaign audience views. -service CampaignAudienceViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested campaign audience view in full detail. - rpc GetCampaignAudienceView(GetCampaignAudienceViewRequest) returns (google.ads.googleads.v3.resources.CampaignAudienceView) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/campaignAudienceViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [CampaignAudienceViewService.GetCampaignAudienceView][google.ads.googleads.v3.services.CampaignAudienceViewService.GetCampaignAudienceView]. -message GetCampaignAudienceViewRequest { - // Required. The resource name of the campaign audience view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignAudienceView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/campaign_bid_modifier_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/campaign_bid_modifier_service.proto deleted file mode 100644 index b733a3671..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/campaign_bid_modifier_service.proto +++ /dev/null @@ -1,131 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/campaign_bid_modifier.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "CampaignBidModifierServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Campaign Bid Modifier service. - -// Service to manage campaign bid modifiers. -service CampaignBidModifierService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested campaign bid modifier in full detail. - rpc GetCampaignBidModifier(GetCampaignBidModifierRequest) returns (google.ads.googleads.v3.resources.CampaignBidModifier) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/campaignBidModifiers/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes campaign bid modifiers. - // Operation statuses are returned. - rpc MutateCampaignBidModifiers(MutateCampaignBidModifiersRequest) returns (MutateCampaignBidModifiersResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/campaignBidModifiers:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [CampaignBidModifierService.GetCampaignBidModifier][google.ads.googleads.v3.services.CampaignBidModifierService.GetCampaignBidModifier]. -message GetCampaignBidModifierRequest { - // Required. The resource name of the campaign bid modifier to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignBidModifier" - } - ]; -} - -// Request message for -// [CampaignBidModifierService.MutateCampaignBidModifiers][google.ads.googleads.v3.services.CampaignBidModifierService.MutateCampaignBidModifiers]. -message MutateCampaignBidModifiersRequest { - // Required. ID of the customer whose campaign bid modifiers are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual campaign bid modifiers. - repeated CampaignBidModifierOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, remove, update) on a campaign bid modifier. -message CampaignBidModifierOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new campaign bid - // modifier. - google.ads.googleads.v3.resources.CampaignBidModifier create = 1; - - // Update operation: The campaign bid modifier is expected to have a valid - // resource name. - google.ads.googleads.v3.resources.CampaignBidModifier update = 2; - - // Remove operation: A resource name for the removed campaign bid modifier - // is expected, in this format: - // - // `customers/{customer_id}/CampaignBidModifiers/{campaign_id}~{criterion_id}` - string remove = 3; - } -} - -// Response message for campaign bid modifiers mutate. -message MutateCampaignBidModifiersResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateCampaignBidModifierResult results = 2; -} - -// The result for the criterion mutate. -message MutateCampaignBidModifierResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/campaign_budget_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/campaign_budget_service.proto deleted file mode 100644 index 95bf89291..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/campaign_budget_service.proto +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/campaign_budget.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "CampaignBudgetServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Campaign Budget service. - -// Service to manage campaign budgets. -service CampaignBudgetService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested Campaign Budget in full detail. - rpc GetCampaignBudget(GetCampaignBudgetRequest) returns (google.ads.googleads.v3.resources.CampaignBudget) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/campaignBudgets/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes campaign budgets. Operation statuses are - // returned. - rpc MutateCampaignBudgets(MutateCampaignBudgetsRequest) returns (MutateCampaignBudgetsResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/campaignBudgets:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [CampaignBudgetService.GetCampaignBudget][google.ads.googleads.v3.services.CampaignBudgetService.GetCampaignBudget]. -message GetCampaignBudgetRequest { - // Required. The resource name of the campaign budget to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignBudget" - } - ]; -} - -// Request message for [CampaignBudgetService.MutateCampaignBudgets][google.ads.googleads.v3.services.CampaignBudgetService.MutateCampaignBudgets]. -message MutateCampaignBudgetsRequest { - // Required. The ID of the customer whose campaign budgets are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual campaign budgets. - repeated CampaignBudgetOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update, remove) on a campaign budget. -message CampaignBudgetOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new budget. - google.ads.googleads.v3.resources.CampaignBudget create = 1; - - // Update operation: The campaign budget is expected to have a valid - // resource name. - google.ads.googleads.v3.resources.CampaignBudget update = 2; - - // Remove operation: A resource name for the removed budget is expected, in - // this format: - // - // `customers/{customer_id}/campaignBudgets/{budget_id}` - string remove = 3; - } -} - -// Response message for campaign budget mutate. -message MutateCampaignBudgetsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateCampaignBudgetResult results = 2; -} - -// The result for the campaign budget mutate. -message MutateCampaignBudgetResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/campaign_criterion_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/campaign_criterion_service.proto deleted file mode 100644 index 678c83e71..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/campaign_criterion_service.proto +++ /dev/null @@ -1,128 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/campaign_criterion.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "CampaignCriterionServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Campaign Criterion service. - -// Service to manage campaign criteria. -service CampaignCriterionService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested criterion in full detail. - rpc GetCampaignCriterion(GetCampaignCriterionRequest) returns (google.ads.googleads.v3.resources.CampaignCriterion) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/campaignCriteria/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes criteria. Operation statuses are returned. - rpc MutateCampaignCriteria(MutateCampaignCriteriaRequest) returns (MutateCampaignCriteriaResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/campaignCriteria:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [CampaignCriterionService.GetCampaignCriterion][google.ads.googleads.v3.services.CampaignCriterionService.GetCampaignCriterion]. -message GetCampaignCriterionRequest { - // Required. The resource name of the criterion to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignCriterion" - } - ]; -} - -// Request message for [CampaignCriterionService.MutateCampaignCriteria][google.ads.googleads.v3.services.CampaignCriterionService.MutateCampaignCriteria]. -message MutateCampaignCriteriaRequest { - // Required. The ID of the customer whose criteria are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual criteria. - repeated CampaignCriterionOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update, remove) on a campaign criterion. -message CampaignCriterionOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new criterion. - google.ads.googleads.v3.resources.CampaignCriterion create = 1; - - // Update operation: The criterion is expected to have a valid resource - // name. - google.ads.googleads.v3.resources.CampaignCriterion update = 2; - - // Remove operation: A resource name for the removed criterion is expected, - // in this format: - // - // `customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id}` - string remove = 3; - } -} - -// Response message for campaign criterion mutate. -message MutateCampaignCriteriaResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateCampaignCriterionResult results = 2; -} - -// The result for the criterion mutate. -message MutateCampaignCriterionResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/campaign_criterion_simulation_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/campaign_criterion_simulation_service.proto deleted file mode 100644 index c2261b0af..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/campaign_criterion_simulation_service.proto +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/campaign_criterion_simulation.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "CampaignCriterionSimulationServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the CampaignCriterionSimulation service. - -// Service to fetch campaign criterion simulations. -service CampaignCriterionSimulationService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested campaign criterion simulation in full detail. - rpc GetCampaignCriterionSimulation(GetCampaignCriterionSimulationRequest) returns (google.ads.googleads.v3.resources.CampaignCriterionSimulation) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/campaignCriterionSimulations/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for -// [CampaignCriterionSimulationService.GetCampaignCriterionSimulation][google.ads.googleads.v3.services.CampaignCriterionSimulationService.GetCampaignCriterionSimulation]. -message GetCampaignCriterionSimulationRequest { - // Required. The resource name of the campaign criterion simulation to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignCriterionSimulation" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/campaign_draft_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/campaign_draft_service.proto deleted file mode 100644 index 1be17bf22..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/campaign_draft_service.proto +++ /dev/null @@ -1,202 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/campaign_draft.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/longrunning/operations.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "CampaignDraftServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Campaign Draft service. - -// Service to manage campaign drafts. -service CampaignDraftService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested campaign draft in full detail. - rpc GetCampaignDraft(GetCampaignDraftRequest) returns (google.ads.googleads.v3.resources.CampaignDraft) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/campaignDrafts/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes campaign drafts. Operation statuses are - // returned. - rpc MutateCampaignDrafts(MutateCampaignDraftsRequest) returns (MutateCampaignDraftsResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/campaignDrafts:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } - - // Promotes the changes in a draft back to the base campaign. - // - // This method returns a Long Running Operation (LRO) indicating if the - // Promote is done. Use [Operations.GetOperation] to poll the LRO until it - // is done. Only a done status is returned in the response. See the status - // in the Campaign Draft resource to determine if the promotion was - // successful. If the LRO failed, use - // [CampaignDraftService.ListCampaignDraftAsyncErrors][google.ads.googleads.v3.services.CampaignDraftService.ListCampaignDraftAsyncErrors] to view the list of - // error reasons. - rpc PromoteCampaignDraft(PromoteCampaignDraftRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v3/{campaign_draft=customers/*/campaignDrafts/*}:promote" - body: "*" - }; - option (google.api.method_signature) = "campaign_draft"; - option (google.longrunning.operation_info) = { - response_type: "google.protobuf.Empty" - metadata_type: "google.protobuf.Empty" - }; - } - - // Returns all errors that occurred during CampaignDraft promote. Throws an - // error if called before campaign draft is promoted. - // Supports standard list paging. - rpc ListCampaignDraftAsyncErrors(ListCampaignDraftAsyncErrorsRequest) returns (ListCampaignDraftAsyncErrorsResponse) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/campaignDrafts/*}:listAsyncErrors" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [CampaignDraftService.GetCampaignDraft][google.ads.googleads.v3.services.CampaignDraftService.GetCampaignDraft]. -message GetCampaignDraftRequest { - // Required. The resource name of the campaign draft to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignDraft" - } - ]; -} - -// Request message for [CampaignDraftService.MutateCampaignDrafts][google.ads.googleads.v3.services.CampaignDraftService.MutateCampaignDrafts]. -message MutateCampaignDraftsRequest { - // Required. The ID of the customer whose campaign drafts are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual campaign drafts. - repeated CampaignDraftOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// Request message for [CampaignDraftService.PromoteCampaignDraft][google.ads.googleads.v3.services.CampaignDraftService.PromoteCampaignDraft]. -message PromoteCampaignDraftRequest { - // Required. The resource name of the campaign draft to promote. - string campaign_draft = 1 [(google.api.field_behavior) = REQUIRED]; -} - -// A single operation (create, update, remove) on a campaign draft. -message CampaignDraftOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new campaign - // draft. - google.ads.googleads.v3.resources.CampaignDraft create = 1; - - // Update operation: The campaign draft is expected to have a valid - // resource name. - google.ads.googleads.v3.resources.CampaignDraft update = 2; - - // Remove operation: The campaign draft is expected to have a valid - // resource name, in this format: - // - // `customers/{customer_id}/campaignDrafts/{base_campaign_id}~{draft_id}` - string remove = 3; - } -} - -// Response message for campaign draft mutate. -message MutateCampaignDraftsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateCampaignDraftResult results = 2; -} - -// The result for the campaign draft mutate. -message MutateCampaignDraftResult { - // Returned for successful operations. - string resource_name = 1; -} - -// Request message for [CampaignDraftService.ListCampaignDraftAsyncErrors][google.ads.googleads.v3.services.CampaignDraftService.ListCampaignDraftAsyncErrors]. -message ListCampaignDraftAsyncErrorsRequest { - // Required. The name of the campaign draft from which to retrieve the async errors. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignDraft" - } - ]; - - // Token of the page to retrieve. If not specified, the first - // page of results will be returned. Use the value obtained from - // `next_page_token` in the previous response in order to request - // the next page of results. - string page_token = 2; - - // Number of elements to retrieve in a single page. - // When a page request is too large, the server may decide to - // further limit the number of returned resources. - int32 page_size = 3; -} - -// Response message for [CampaignDraftService.ListCampaignDraftAsyncErrors][google.ads.googleads.v3.services.CampaignDraftService.ListCampaignDraftAsyncErrors]. -message ListCampaignDraftAsyncErrorsResponse { - // Details of the errors when performing the asynchronous operation. - repeated google.rpc.Status errors = 1; - - // Pagination token used to retrieve the next page of results. - // Pass the content of this string as the `page_token` attribute of - // the next request. `next_page_token` is not returned for the last - // page. - string next_page_token = 2; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/campaign_experiment_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/campaign_experiment_service.proto deleted file mode 100644 index 1f80bda6d..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/campaign_experiment_service.proto +++ /dev/null @@ -1,293 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/campaign_experiment.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/longrunning/operations.proto"; -import "google/protobuf/empty.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "CampaignExperimentServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Campaign Experiment service. - -// CampaignExperimentService manages the life cycle of campaign experiments. -// It is used to create new experiments from drafts, modify experiment -// properties, promote changes in an experiment back to its base campaign, -// graduate experiments into new stand-alone campaigns, and to remove an -// experiment. -// -// An experiment consists of two variants or arms - the base campaign and the -// experiment campaign, directing a fixed share of traffic to each arm. -// A campaign experiment is created from a draft of changes to the base campaign -// and will be a snapshot of changes in the draft at the time of creation. -service CampaignExperimentService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested campaign experiment in full detail. - rpc GetCampaignExperiment(GetCampaignExperimentRequest) returns (google.ads.googleads.v3.resources.CampaignExperiment) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/campaignExperiments/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates a campaign experiment based on a campaign draft. The draft campaign - // will be forked into a real campaign (called the experiment campaign) that - // will begin serving ads if successfully created. - // - // The campaign experiment is created immediately with status INITIALIZING. - // This method return a long running operation that tracks the forking of the - // draft campaign. If the forking fails, a list of errors can be retrieved - // using the ListCampaignExperimentAsyncErrors method. The operation's - // metadata will be a StringValue containing the resource name of the created - // campaign experiment. - rpc CreateCampaignExperiment(CreateCampaignExperimentRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/campaignExperiments:create" - body: "*" - }; - option (google.api.method_signature) = "customer_id,campaign_experiment"; - option (google.longrunning.operation_info) = { - response_type: "google.protobuf.Empty" - metadata_type: "google.ads.googleads.v3.services.CreateCampaignExperimentMetadata" - }; - } - - // Updates campaign experiments. Operation statuses are returned. - rpc MutateCampaignExperiments(MutateCampaignExperimentsRequest) returns (MutateCampaignExperimentsResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/campaignExperiments:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } - - // Graduates a campaign experiment to a full campaign. The base and experiment - // campaigns will start running independently with their own budgets. - rpc GraduateCampaignExperiment(GraduateCampaignExperimentRequest) returns (GraduateCampaignExperimentResponse) { - option (google.api.http) = { - post: "/v3/{campaign_experiment=customers/*/campaignExperiments/*}:graduate" - body: "*" - }; - option (google.api.method_signature) = "campaign_experiment,campaign_budget"; - } - - // Promotes the changes in a experiment campaign back to the base campaign. - // - // The campaign experiment is updated immediately with status PROMOTING. - // This method return a long running operation that tracks the promoting of - // the experiment campaign. If the promoting fails, a list of errors can be - // retrieved using the ListCampaignExperimentAsyncErrors method. - rpc PromoteCampaignExperiment(PromoteCampaignExperimentRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v3/{campaign_experiment=customers/*/campaignExperiments/*}:promote" - body: "*" - }; - option (google.api.method_signature) = "campaign_experiment"; - option (google.longrunning.operation_info) = { - response_type: "google.protobuf.Empty" - metadata_type: "google.protobuf.Empty" - }; - } - - // Immediately ends a campaign experiment, changing the experiment's scheduled - // end date and without waiting for end of day. End date is updated to be the - // time of the request. - rpc EndCampaignExperiment(EndCampaignExperimentRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - post: "/v3/{campaign_experiment=customers/*/campaignExperiments/*}:end" - body: "*" - }; - option (google.api.method_signature) = "campaign_experiment"; - } - - // Returns all errors that occurred during CampaignExperiment create or - // promote (whichever occurred last). - // Supports standard list paging. - rpc ListCampaignExperimentAsyncErrors(ListCampaignExperimentAsyncErrorsRequest) returns (ListCampaignExperimentAsyncErrorsResponse) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/campaignExperiments/*}:listAsyncErrors" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [CampaignExperimentService.GetCampaignExperiment][google.ads.googleads.v3.services.CampaignExperimentService.GetCampaignExperiment]. -message GetCampaignExperimentRequest { - // Required. The resource name of the campaign experiment to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignExperiment" - } - ]; -} - -// Request message for [CampaignExperimentService.MutateCampaignExperiments][google.ads.googleads.v3.services.CampaignExperimentService.MutateCampaignExperiments]. -message MutateCampaignExperimentsRequest { - // Required. The ID of the customer whose campaign experiments are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual campaign experiments. - repeated CampaignExperimentOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single update operation on a campaign experiment. -message CampaignExperimentOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 3; - - // The mutate operation. - oneof operation { - // Update operation: The campaign experiment is expected to have a valid - // resource name. - google.ads.googleads.v3.resources.CampaignExperiment update = 1; - - // Remove operation: The campaign experiment is expected to have a valid - // resource name, in this format: - // - // `customers/{customer_id}/campaignExperiments/{campaign_experiment_id}` - string remove = 2; - } -} - -// Response message for campaign experiment mutate. -message MutateCampaignExperimentsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateCampaignExperimentResult results = 2; -} - -// The result for the campaign experiment mutate. -message MutateCampaignExperimentResult { - // Returned for successful operations. - string resource_name = 1; -} - -// Request message for [CampaignExperimentService.CreateCampaignExperiment][google.ads.googleads.v3.services.CampaignExperimentService.CreateCampaignExperiment]. -message CreateCampaignExperimentRequest { - // Required. The ID of the customer whose campaign experiment is being created. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The campaign experiment to be created. - google.ads.googleads.v3.resources.CampaignExperiment campaign_experiment = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 3; -} - -// Message used as metadata returned in Long Running Operations for -// CreateCampaignExperimentRequest -message CreateCampaignExperimentMetadata { - // Resource name of campaign experiment created. - string campaign_experiment = 1; -} - -// Request message for [CampaignExperimentService.GraduateCampaignExperiment][google.ads.googleads.v3.services.CampaignExperimentService.GraduateCampaignExperiment]. -message GraduateCampaignExperimentRequest { - // Required. The resource name of the campaign experiment to graduate. - string campaign_experiment = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. Resource name of the budget to attach to the campaign graduated from the - // experiment. - string campaign_budget = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Response message for campaign experiment graduate. -message GraduateCampaignExperimentResponse { - // The resource name of the campaign from the graduated experiment. - // This campaign is the same one as CampaignExperiment.experiment_campaign. - string graduated_campaign = 1; -} - -// Request message for [CampaignExperimentService.PromoteCampaignExperiment][google.ads.googleads.v3.services.CampaignExperimentService.PromoteCampaignExperiment]. -message PromoteCampaignExperimentRequest { - // Required. The resource name of the campaign experiment to promote. - string campaign_experiment = 1 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for [CampaignExperimentService.EndCampaignExperiment][google.ads.googleads.v3.services.CampaignExperimentService.EndCampaignExperiment]. -message EndCampaignExperimentRequest { - // Required. The resource name of the campaign experiment to end. - string campaign_experiment = 1 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for -// [CampaignExperimentService.ListCampaignExperimentAsyncErrors][google.ads.googleads.v3.services.CampaignExperimentService.ListCampaignExperimentAsyncErrors]. -message ListCampaignExperimentAsyncErrorsRequest { - // Required. The name of the campaign experiment from which to retrieve the async - // errors. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignExperiment" - } - ]; - - // Token of the page to retrieve. If not specified, the first - // page of results will be returned. Use the value obtained from - // `next_page_token` in the previous response in order to request - // the next page of results. - string page_token = 2; - - // Number of elements to retrieve in a single page. - // When a page request is too large, the server may decide to - // further limit the number of returned resources. - int32 page_size = 3; -} - -// Response message for -// [CampaignExperimentService.ListCampaignExperimentAsyncErrors][google.ads.googleads.v3.services.CampaignExperimentService.ListCampaignExperimentAsyncErrors]. -message ListCampaignExperimentAsyncErrorsResponse { - // Details of the errors when performing the asynchronous operation. - repeated google.rpc.Status errors = 1; - - // Pagination token used to retrieve the next page of results. - // Pass the content of this string as the `page_token` attribute of - // the next request. `next_page_token` is not returned for the last - // page. - string next_page_token = 2; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/campaign_extension_setting_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/campaign_extension_setting_service.proto deleted file mode 100644 index 2c2af123e..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/campaign_extension_setting_service.proto +++ /dev/null @@ -1,134 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/campaign_extension_setting.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "CampaignExtensionSettingServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the CampaignExtensionSetting service. - -// Service to manage campaign extension settings. -service CampaignExtensionSettingService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested campaign extension setting in full detail. - rpc GetCampaignExtensionSetting(GetCampaignExtensionSettingRequest) returns (google.ads.googleads.v3.resources.CampaignExtensionSetting) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/campaignExtensionSettings/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes campaign extension settings. Operation - // statuses are returned. - rpc MutateCampaignExtensionSettings(MutateCampaignExtensionSettingsRequest) returns (MutateCampaignExtensionSettingsResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/campaignExtensionSettings:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for -// [CampaignExtensionSettingService.GetCampaignExtensionSetting][google.ads.googleads.v3.services.CampaignExtensionSettingService.GetCampaignExtensionSetting]. -message GetCampaignExtensionSettingRequest { - // Required. The resource name of the campaign extension setting to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignExtensionSetting" - } - ]; -} - -// Request message for -// [CampaignExtensionSettingService.MutateCampaignExtensionSettings][google.ads.googleads.v3.services.CampaignExtensionSettingService.MutateCampaignExtensionSettings]. -message MutateCampaignExtensionSettingsRequest { - // Required. The ID of the customer whose campaign extension settings are being - // modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual campaign extension - // settings. - repeated CampaignExtensionSettingOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update, remove) on a campaign extension setting. -message CampaignExtensionSettingOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new campaign - // extension setting. - google.ads.googleads.v3.resources.CampaignExtensionSetting create = 1; - - // Update operation: The campaign extension setting is expected to have a - // valid resource name. - google.ads.googleads.v3.resources.CampaignExtensionSetting update = 2; - - // Remove operation: A resource name for the removed campaign extension - // setting is expected, in this format: - // - // `customers/{customer_id}/campaignExtensionSettings/{campaign_id}~{extension_type}` - string remove = 3; - } -} - -// Response message for a campaign extension setting mutate. -message MutateCampaignExtensionSettingsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateCampaignExtensionSettingResult results = 2; -} - -// The result for the campaign extension setting mutate. -message MutateCampaignExtensionSettingResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/campaign_feed_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/campaign_feed_service.proto deleted file mode 100644 index e8a9d8d58..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/campaign_feed_service.proto +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/campaign_feed.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "CampaignFeedServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the CampaignFeed service. - -// Service to manage campaign feeds. -service CampaignFeedService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested campaign feed in full detail. - rpc GetCampaignFeed(GetCampaignFeedRequest) returns (google.ads.googleads.v3.resources.CampaignFeed) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/campaignFeeds/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes campaign feeds. Operation statuses are - // returned. - rpc MutateCampaignFeeds(MutateCampaignFeedsRequest) returns (MutateCampaignFeedsResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/campaignFeeds:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [CampaignFeedService.GetCampaignFeed][google.ads.googleads.v3.services.CampaignFeedService.GetCampaignFeed]. -message GetCampaignFeedRequest { - // Required. The resource name of the campaign feed to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignFeed" - } - ]; -} - -// Request message for [CampaignFeedService.MutateCampaignFeeds][google.ads.googleads.v3.services.CampaignFeedService.MutateCampaignFeeds]. -message MutateCampaignFeedsRequest { - // Required. The ID of the customer whose campaign feeds are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual campaign feeds. - repeated CampaignFeedOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update, remove) on a campaign feed. -message CampaignFeedOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new campaign feed. - google.ads.googleads.v3.resources.CampaignFeed create = 1; - - // Update operation: The campaign feed is expected to have a valid resource - // name. - google.ads.googleads.v3.resources.CampaignFeed update = 2; - - // Remove operation: A resource name for the removed campaign feed is - // expected, in this format: - // - // `customers/{customer_id}/campaignFeeds/{campaign_id}~{feed_id}` - string remove = 3; - } -} - -// Response message for a campaign feed mutate. -message MutateCampaignFeedsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateCampaignFeedResult results = 2; -} - -// The result for the campaign feed mutate. -message MutateCampaignFeedResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/campaign_label_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/campaign_label_service.proto deleted file mode 100644 index eaabcd07a..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/campaign_label_service.proto +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/campaign_label.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "CampaignLabelServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Campaign Label service. - -// Service to manage labels on campaigns. -service CampaignLabelService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested campaign-label relationship in full detail. - rpc GetCampaignLabel(GetCampaignLabelRequest) returns (google.ads.googleads.v3.resources.CampaignLabel) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/campaignLabels/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates and removes campaign-label relationships. - // Operation statuses are returned. - rpc MutateCampaignLabels(MutateCampaignLabelsRequest) returns (MutateCampaignLabelsResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/campaignLabels:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [CampaignLabelService.GetCampaignLabel][google.ads.googleads.v3.services.CampaignLabelService.GetCampaignLabel]. -message GetCampaignLabelRequest { - // Required. The resource name of the campaign-label relationship to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignLabel" - } - ]; -} - -// Request message for [CampaignLabelService.MutateCampaignLabels][google.ads.googleads.v3.services.CampaignLabelService.MutateCampaignLabels]. -message MutateCampaignLabelsRequest { - // Required. ID of the customer whose campaign-label relationships are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on campaign-label relationships. - repeated CampaignLabelOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, remove) on a campaign-label relationship. -message CampaignLabelOperation { - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new campaign-label - // relationship. - google.ads.googleads.v3.resources.CampaignLabel create = 1; - - // Remove operation: A resource name for the campaign-label relationship - // being removed, in this format: - // - // `customers/{customer_id}/campaignLabels/{campaign_id}~{label_id}` - string remove = 2; - } -} - -// Response message for a campaign labels mutate. -message MutateCampaignLabelsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateCampaignLabelResult results = 2; -} - -// The result for a campaign label mutate. -message MutateCampaignLabelResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/campaign_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/campaign_service.proto deleted file mode 100644 index b89d06fc9..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/campaign_service.proto +++ /dev/null @@ -1,128 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/campaign.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "CampaignServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Campaign service. - -// Service to manage campaigns. -service CampaignService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested campaign in full detail. - rpc GetCampaign(GetCampaignRequest) returns (google.ads.googleads.v3.resources.Campaign) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/campaigns/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes campaigns. Operation statuses are returned. - rpc MutateCampaigns(MutateCampaignsRequest) returns (MutateCampaignsResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/campaigns:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [CampaignService.GetCampaign][google.ads.googleads.v3.services.CampaignService.GetCampaign]. -message GetCampaignRequest { - // Required. The resource name of the campaign to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Campaign" - } - ]; -} - -// Request message for [CampaignService.MutateCampaigns][google.ads.googleads.v3.services.CampaignService.MutateCampaigns]. -message MutateCampaignsRequest { - // Required. The ID of the customer whose campaigns are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual campaigns. - repeated CampaignOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update, remove) on a campaign. -message CampaignOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new campaign. - google.ads.googleads.v3.resources.Campaign create = 1; - - // Update operation: The campaign is expected to have a valid - // resource name. - google.ads.googleads.v3.resources.Campaign update = 2; - - // Remove operation: A resource name for the removed campaign is - // expected, in this format: - // - // `customers/{customer_id}/campaigns/{campaign_id}` - string remove = 3; - } -} - -// Response message for campaign mutate. -message MutateCampaignsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateCampaignResult results = 2; -} - -// The result for the campaign mutate. -message MutateCampaignResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/campaign_shared_set_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/campaign_shared_set_service.proto deleted file mode 100644 index 9169a74f5..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/campaign_shared_set_service.proto +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/campaign_shared_set.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "CampaignSharedSetServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Campaign Shared Set service. - -// Service to manage campaign shared sets. -service CampaignSharedSetService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested campaign shared set in full detail. - rpc GetCampaignSharedSet(GetCampaignSharedSetRequest) returns (google.ads.googleads.v3.resources.CampaignSharedSet) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/campaignSharedSets/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates or removes campaign shared sets. Operation statuses are returned. - rpc MutateCampaignSharedSets(MutateCampaignSharedSetsRequest) returns (MutateCampaignSharedSetsResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/campaignSharedSets:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [CampaignSharedSetService.GetCampaignSharedSet][google.ads.googleads.v3.services.CampaignSharedSetService.GetCampaignSharedSet]. -message GetCampaignSharedSetRequest { - // Required. The resource name of the campaign shared set to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CampaignSharedSet" - } - ]; -} - -// Request message for [CampaignSharedSetService.MutateCampaignSharedSets][google.ads.googleads.v3.services.CampaignSharedSetService.MutateCampaignSharedSets]. -message MutateCampaignSharedSetsRequest { - // Required. The ID of the customer whose campaign shared sets are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual campaign shared sets. - repeated CampaignSharedSetOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, remove) on an campaign shared set. -message CampaignSharedSetOperation { - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new campaign - // shared set. - google.ads.googleads.v3.resources.CampaignSharedSet create = 1; - - // Remove operation: A resource name for the removed campaign shared set is - // expected, in this format: - // - // `customers/{customer_id}/campaignSharedSets/{campaign_id}~{shared_set_id}` - string remove = 3; - } -} - -// Response message for a campaign shared set mutate. -message MutateCampaignSharedSetsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateCampaignSharedSetResult results = 2; -} - -// The result for the campaign shared set mutate. -message MutateCampaignSharedSetResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/carrier_constant_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/carrier_constant_service.proto deleted file mode 100644 index 9bc0b4c05..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/carrier_constant_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/carrier_constant.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "CarrierConstantServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the carrier constant service. - -// Service to fetch carrier constants. -service CarrierConstantService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested carrier constant in full detail. - rpc GetCarrierConstant(GetCarrierConstantRequest) returns (google.ads.googleads.v3.resources.CarrierConstant) { - option (google.api.http) = { - get: "/v3/{resource_name=carrierConstants/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [CarrierConstantService.GetCarrierConstant][google.ads.googleads.v3.services.CarrierConstantService.GetCarrierConstant]. -message GetCarrierConstantRequest { - // Required. Resource name of the carrier constant to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CarrierConstant" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/change_status_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/change_status_service.proto deleted file mode 100644 index 1f884296b..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/change_status_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/change_status.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "ChangeStatusServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Change Status service. - -// Service to fetch change statuses. -service ChangeStatusService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested change status in full detail. - rpc GetChangeStatus(GetChangeStatusRequest) returns (google.ads.googleads.v3.resources.ChangeStatus) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/changeStatus/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for '[ChangeStatusService.GetChangeStatus][google.ads.googleads.v3.services.ChangeStatusService.GetChangeStatus]'. -message GetChangeStatusRequest { - // Required. The resource name of the change status to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/ChangeStatus" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/click_view_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/click_view_service.proto deleted file mode 100644 index d1ce74c91..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/click_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/click_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "ClickViewServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the ClickView service. - -// Service to fetch click views. -service ClickViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested click view in full detail. - rpc GetClickView(GetClickViewRequest) returns (google.ads.googleads.v3.resources.ClickView) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/clickViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [ClickViewService.GetClickView][google.ads.googleads.v3.services.ClickViewService.GetClickView]. -message GetClickViewRequest { - // Required. The resource name of the click view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/ClickView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/conversion_action_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/conversion_action_service.proto deleted file mode 100644 index 2b2d4ac34..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/conversion_action_service.proto +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/conversion_action.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "ConversionActionServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Conversion Action service. - -// Service to manage conversion actions. -service ConversionActionService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested conversion action. - rpc GetConversionAction(GetConversionActionRequest) returns (google.ads.googleads.v3.resources.ConversionAction) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/conversionActions/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates or removes conversion actions. Operation statuses are - // returned. - rpc MutateConversionActions(MutateConversionActionsRequest) returns (MutateConversionActionsResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/conversionActions:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [ConversionActionService.GetConversionAction][google.ads.googleads.v3.services.ConversionActionService.GetConversionAction]. -message GetConversionActionRequest { - // Required. The resource name of the conversion action to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/ConversionAction" - } - ]; -} - -// Request message for [ConversionActionService.MutateConversionActions][google.ads.googleads.v3.services.ConversionActionService.MutateConversionActions]. -message MutateConversionActionsRequest { - // Required. The ID of the customer whose conversion actions are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual conversion actions. - repeated ConversionActionOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update, remove) on a conversion action. -message ConversionActionOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new conversion - // action. - google.ads.googleads.v3.resources.ConversionAction create = 1; - - // Update operation: The conversion action is expected to have a valid - // resource name. - google.ads.googleads.v3.resources.ConversionAction update = 2; - - // Remove operation: A resource name for the removed conversion action is - // expected, in this format: - // - // `customers/{customer_id}/conversionActions/{conversion_action_id}` - string remove = 3; - } -} - -// Response message for [ConversionActionService.MutateConversionActions][google.ads.googleads.v3.services.ConversionActionService.MutateConversionActions]. -message MutateConversionActionsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateConversionActionResult results = 2; -} - -// The result for the conversion action mutate. -message MutateConversionActionResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/conversion_adjustment_upload_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/conversion_adjustment_upload_service.proto deleted file mode 100644 index d86fc2123..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/conversion_adjustment_upload_service.proto +++ /dev/null @@ -1,181 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/enums/conversion_adjustment_type.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/protobuf/wrappers.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "ConversionAdjustmentUploadServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Service to upload conversion adjustments. -service ConversionAdjustmentUploadService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Processes the given conversion adjustments. - rpc UploadConversionAdjustments(UploadConversionAdjustmentsRequest) returns (UploadConversionAdjustmentsResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}:uploadConversionAdjustments" - body: "*" - }; - option (google.api.method_signature) = "customer_id,conversion_adjustments,partial_failure"; - } -} - -// Request message for -// [ConversionAdjustmentUploadService.UploadConversionAdjustments][google.ads.googleads.v3.services.ConversionAdjustmentUploadService.UploadConversionAdjustments]. -message UploadConversionAdjustmentsRequest { - // Required. The ID of the customer performing the upload. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The conversion adjustments that are being uploaded. - repeated ConversionAdjustment conversion_adjustments = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried out - // in one transaction if and only if they are all valid. This should always be - // set to true. - // See - // https://developers.google.com/google-ads/api/docs/best-practices/partial-failures - // for more information about partial failure. - bool partial_failure = 3 [(google.api.field_behavior) = REQUIRED]; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// Response message for -// [ConversionAdjustmentUploadService.UploadConversionAdjustments][google.ads.googleads.v3.services.ConversionAdjustmentUploadService.UploadConversionAdjustments]. -message UploadConversionAdjustmentsResponse { - // Errors that pertain to conversion adjustment failures in the partial - // failure mode. Returned when all errors occur inside the adjustments. If any - // errors occur outside the adjustments (e.g. auth errors), we return an RPC - // level error. - // See - // https://developers.google.com/google-ads/api/docs/best-practices/partial-failures - // for more information about partial failure. - google.rpc.Status partial_failure_error = 1; - - // Returned for successfully processed conversion adjustments. Proto will be - // empty for rows that received an error. Results are not returned when - // validate_only is true. - repeated ConversionAdjustmentResult results = 2; -} - -// A conversion adjustment. -message ConversionAdjustment { - // Resource name of the conversion action associated with this conversion - // adjustment. Note: Although this resource name consists of a customer id and - // a conversion action id, validation will ignore the customer id and use the - // conversion action id as the sole identifier of the conversion action. - google.protobuf.StringValue conversion_action = 3; - - // The date time at which the adjustment occurred. Must be after the - // conversion_date_time. The timezone must be specified. The format is - // "yyyy-mm-dd hh:mm:ss+|-hh:mm", e.g. "2019-01-01 12:32:45-08:00". - google.protobuf.StringValue adjustment_date_time = 4; - - // The adjustment type. - google.ads.googleads.v3.enums.ConversionAdjustmentTypeEnum.ConversionAdjustmentType adjustment_type = 5; - - // Information needed to restate the conversion's value. - // Required for restatements. Should not be supplied for retractions. An error - // will be returned if provided for a retraction. - // NOTE: If you want to upload a second restatement with a different adjusted - // value, it must have a new, more recent, adjustment occurrence time. - // Otherwise, it will be treated as a duplicate of the previous restatement - // and ignored. - RestatementValue restatement_value = 6; - - // Identifies the conversion to be adjusted. - oneof conversion_identifier { - // Uniquely identifies a conversion that was reported without an order ID - // specified. - GclidDateTimePair gclid_date_time_pair = 1; - - // The order ID of the conversion to be adjusted. If the conversion was - // reported with an order ID specified, that order ID must be used as the - // identifier here. - google.protobuf.StringValue order_id = 2; - } -} - -// Contains information needed to restate a conversion's value. -message RestatementValue { - // The restated conversion value. This is the value of the conversion after - // restatement. For example, to change the value of a conversion from 100 to - // 70, an adjusted value of 70 should be reported. - // NOTE: If you want to upload a second restatement with a different adjusted - // value, it must have a new, more recent, adjustment occurrence time. - // Otherwise, it will be treated as a duplicate of the previous restatement - // and ignored. - google.protobuf.DoubleValue adjusted_value = 1; - - // The currency of the restated value. If not provided, then the default - // currency from the conversion action is used, and if that is not set then - // the account currency is used. This is the ISO 4217 3-character currency - // code e.g. USD or EUR. - google.protobuf.StringValue currency_code = 2; -} - -// Uniquely identifies a conversion that was reported without an order ID -// specified. -message GclidDateTimePair { - // Google click ID (gclid) associated with the original conversion for this - // adjustment. - google.protobuf.StringValue gclid = 1; - - // The date time at which the original conversion for this adjustment - // occurred. The timezone must be specified. The format is "yyyy-mm-dd - // hh:mm:ss+|-hh:mm", e.g. "2019-01-01 12:32:45-08:00". - google.protobuf.StringValue conversion_date_time = 2; -} - -// Information identifying a successfully processed ConversionAdjustment. -message ConversionAdjustmentResult { - // Resource name of the conversion action associated with this conversion - // adjustment. - google.protobuf.StringValue conversion_action = 3; - - // The date time at which the adjustment occurred. The format is - // "yyyy-mm-dd hh:mm:ss+|-hh:mm", e.g. "2019-01-01 12:32:45-08:00". - google.protobuf.StringValue adjustment_date_time = 4; - - // The adjustment type. - google.ads.googleads.v3.enums.ConversionAdjustmentTypeEnum.ConversionAdjustmentType adjustment_type = 5; - - // Identifies the conversion that was adjusted. - oneof conversion_identifier { - // Uniquely identifies a conversion that was reported without an order ID - // specified. - GclidDateTimePair gclid_date_time_pair = 1; - - // The order ID of the conversion that was adjusted. - google.protobuf.StringValue order_id = 2; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/conversion_upload_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/conversion_upload_service.proto deleted file mode 100644 index 948c0a5da..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/conversion_upload_service.proto +++ /dev/null @@ -1,235 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/protobuf/wrappers.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "ConversionUploadServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Service to upload conversions. -service ConversionUploadService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Processes the given click conversions. - rpc UploadClickConversions(UploadClickConversionsRequest) returns (UploadClickConversionsResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}:uploadClickConversions" - body: "*" - }; - option (google.api.method_signature) = "customer_id,conversions,partial_failure"; - } - - // Processes the given call conversions. - rpc UploadCallConversions(UploadCallConversionsRequest) returns (UploadCallConversionsResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}:uploadCallConversions" - body: "*" - }; - option (google.api.method_signature) = "customer_id,conversions,partial_failure"; - } -} - -// Request message for [ConversionUploadService.UploadClickConversions][google.ads.googleads.v3.services.ConversionUploadService.UploadClickConversions]. -message UploadClickConversionsRequest { - // Required. The ID of the customer performing the upload. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The conversions that are being uploaded. - repeated ClickConversion conversions = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // This should always be set to true. - // See - // https://developers.google.com/google-ads/api/docs/best-practices/partial-failures - // for more information about partial failure. - bool partial_failure = 3 [(google.api.field_behavior) = REQUIRED]; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// Response message for [ConversionUploadService.UploadClickConversions][google.ads.googleads.v3.services.ConversionUploadService.UploadClickConversions]. -message UploadClickConversionsResponse { - // Errors that pertain to conversion failures in the partial failure mode. - // Returned when all errors occur inside the conversions. If any errors occur - // outside the conversions (e.g. auth errors), we return an RPC level error. - // See - // https://developers.google.com/google-ads/api/docs/best-practices/partial-failures - // for more information about partial failure. - google.rpc.Status partial_failure_error = 1; - - // Returned for successfully processed conversions. Proto will be empty for - // rows that received an error. Results are not returned when validate_only is - // true. - repeated ClickConversionResult results = 2; -} - -// Request message for [ConversionUploadService.UploadCallConversions][google.ads.googleads.v3.services.ConversionUploadService.UploadCallConversions]. -message UploadCallConversionsRequest { - // Required. The ID of the customer performing the upload. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The conversions that are being uploaded. - repeated CallConversion conversions = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // This should always be set to true. - // See - // https://developers.google.com/google-ads/api/docs/best-practices/partial-failures - // for more information about partial failure. - bool partial_failure = 3 [(google.api.field_behavior) = REQUIRED]; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// Response message for [ConversionUploadService.UploadCallConversions][google.ads.googleads.v3.services.ConversionUploadService.UploadCallConversions]. -message UploadCallConversionsResponse { - // Errors that pertain to conversion failures in the partial failure mode. - // Returned when all errors occur inside the conversions. If any errors occur - // outside the conversions (e.g. auth errors), we return an RPC level error. - // See - // https://developers.google.com/google-ads/api/docs/best-practices/partial-failures - // for more information about partial failure. - google.rpc.Status partial_failure_error = 1; - - // Returned for successfully processed conversions. Proto will be empty for - // rows that received an error. Results are not returned when validate_only is - // true. - repeated CallConversionResult results = 2; -} - -// A click conversion. -message ClickConversion { - // The Google click ID (gclid) associated with this conversion. - google.protobuf.StringValue gclid = 1; - - // Resource name of the conversion action associated with this conversion. - // Note: Although this resource name consists of a customer id and a - // conversion action id, validation will ignore the customer id and use the - // conversion action id as the sole identifier of the conversion action. - google.protobuf.StringValue conversion_action = 2; - - // The date time at which the conversion occurred. Must be after - // the click time. The timezone must be specified. The format is - // "yyyy-mm-dd hh:mm:ss+|-hh:mm", e.g. “2019-01-01 12:32:45-08:00”. - google.protobuf.StringValue conversion_date_time = 3; - - // The value of the conversion for the advertiser. - google.protobuf.DoubleValue conversion_value = 4; - - // Currency associated with the conversion value. This is the ISO 4217 - // 3-character currency code. For example: USD, EUR. - google.protobuf.StringValue currency_code = 5; - - // The order ID associated with the conversion. An order id can only be used - // for one conversion per conversion action. - google.protobuf.StringValue order_id = 6; - - // Additional data about externally attributed conversions. This field - // is required for conversions with an externally attributed conversion - // action, but should not be set otherwise. - ExternalAttributionData external_attribution_data = 7; -} - -// A call conversion. -message CallConversion { - // The caller id from which this call was placed. Caller id is expected to be - // in E.164 format with preceding '+' sign. e.g. "+16502531234". - google.protobuf.StringValue caller_id = 1; - - // The date time at which the call occurred. The timezone must be specified. - // The format is "yyyy-mm-dd hh:mm:ss+|-hh:mm", - // e.g. "2019-01-01 12:32:45-08:00". - google.protobuf.StringValue call_start_date_time = 2; - - // Resource name of the conversion action associated with this conversion. - // Note: Although this resource name consists of a customer id and a - // conversion action id, validation will ignore the customer id and use the - // conversion action id as the sole identifier of the conversion action. - google.protobuf.StringValue conversion_action = 3; - - // The date time at which the conversion occurred. Must be after the call - // time. The timezone must be specified. The format is - // "yyyy-mm-dd hh:mm:ss+|-hh:mm", e.g. "2019-01-01 12:32:45-08:00". - google.protobuf.StringValue conversion_date_time = 4; - - // The value of the conversion for the advertiser. - google.protobuf.DoubleValue conversion_value = 5; - - // Currency associated with the conversion value. This is the ISO 4217 - // 3-character currency code. For example: USD, EUR. - google.protobuf.StringValue currency_code = 6; -} - -// Contains additional information about externally attributed conversions. -message ExternalAttributionData { - // Represents the fraction of the conversion that is attributed to the - // Google Ads click. - google.protobuf.DoubleValue external_attribution_credit = 1; - - // Specifies the attribution model name. - google.protobuf.StringValue external_attribution_model = 2; -} - -// Identifying information for a successfully processed ClickConversion. -message ClickConversionResult { - // The Google Click ID (gclid) associated with this conversion. - google.protobuf.StringValue gclid = 1; - - // Resource name of the conversion action associated with this conversion. - google.protobuf.StringValue conversion_action = 2; - - // The date time at which the conversion occurred. The format is - // "yyyy-mm-dd hh:mm:ss+|-hh:mm", e.g. “2019-01-01 12:32:45-08:00”. - google.protobuf.StringValue conversion_date_time = 3; -} - -// Identifying information for a successfully processed CallConversionUpload. -message CallConversionResult { - // The caller id from which this call was placed. Caller id is expected to be - // in E.164 format with preceding '+' sign. - google.protobuf.StringValue caller_id = 1; - - // The date time at which the call occurred. The format is - // "yyyy-mm-dd hh:mm:ss+|-hh:mm", e.g. "2019-01-01 12:32:45-08:00". - google.protobuf.StringValue call_start_date_time = 2; - - // Resource name of the conversion action associated with this conversion. - google.protobuf.StringValue conversion_action = 3; - - // The date time at which the conversion occurred. The format is - // "yyyy-mm-dd hh:mm:ss+|-hh:mm", e.g. "2019-01-01 12:32:45-08:00". - google.protobuf.StringValue conversion_date_time = 4; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/currency_constant_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/currency_constant_service.proto deleted file mode 100644 index a9c788ff3..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/currency_constant_service.proto +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/currency_constant.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "CurrencyConstantServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Service to fetch currency constants. -service CurrencyConstantService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested currency constant. - rpc GetCurrencyConstant(GetCurrencyConstantRequest) returns (google.ads.googleads.v3.resources.CurrencyConstant) { - option (google.api.http) = { - get: "/v3/{resource_name=currencyConstants/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [CurrencyConstantService.GetCurrencyConstant][google.ads.googleads.v3.services.CurrencyConstantService.GetCurrencyConstant]. -message GetCurrencyConstantRequest { - // Required. Resource name of the currency constant to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CurrencyConstant" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/custom_interest_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/custom_interest_service.proto deleted file mode 100644 index 4be702b05..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/custom_interest_service.proto +++ /dev/null @@ -1,110 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/custom_interest.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "CustomInterestServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Custom Interest service. - -// Service to manage custom interests. -service CustomInterestService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested custom interest in full detail. - rpc GetCustomInterest(GetCustomInterestRequest) returns (google.ads.googleads.v3.resources.CustomInterest) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/customInterests/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates or updates custom interests. Operation statuses are returned. - rpc MutateCustomInterests(MutateCustomInterestsRequest) returns (MutateCustomInterestsResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/customInterests:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [CustomInterestService.GetCustomInterest][google.ads.googleads.v3.services.CustomInterestService.GetCustomInterest]. -message GetCustomInterestRequest { - // Required. The resource name of the custom interest to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CustomInterest" - } - ]; -} - -// Request message for [CustomInterestService.MutateCustomInterests][google.ads.googleads.v3.services.CustomInterestService.MutateCustomInterests]. -message MutateCustomInterestsRequest { - // Required. The ID of the customer whose custom interests are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual custom interests. - repeated CustomInterestOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update) on a custom interest. -message CustomInterestOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new custom - // interest. - google.ads.googleads.v3.resources.CustomInterest create = 1; - - // Update operation: The custom interest is expected to have a valid - // resource name. - google.ads.googleads.v3.resources.CustomInterest update = 2; - } -} - -// Response message for custom interest mutate. -message MutateCustomInterestsResponse { - // All results for the mutate. - repeated MutateCustomInterestResult results = 2; -} - -// The result for the custom interest mutate. -message MutateCustomInterestResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/customer_client_link_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/customer_client_link_service.proto deleted file mode 100644 index ab1d1a3b8..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/customer_client_link_service.proto +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/customer_client_link.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "CustomerClientLinkServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Service to manage customer client links. -service CustomerClientLinkService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested CustomerClientLink in full detail. - rpc GetCustomerClientLink(GetCustomerClientLinkRequest) returns (google.ads.googleads.v3.resources.CustomerClientLink) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/customerClientLinks/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates or updates a customer client link. Operation statuses are returned. - rpc MutateCustomerClientLink(MutateCustomerClientLinkRequest) returns (MutateCustomerClientLinkResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/customerClientLinks:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operation"; - } -} - -// Request message for [CustomerClientLinkService.GetCustomerClientLink][google.ads.googleads.v3.services.CustomerClientLinkService.GetCustomerClientLink]. -message GetCustomerClientLinkRequest { - // Required. The resource name of the customer client link to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CustomerClientLink" - } - ]; -} - -// Request message for [CustomerClientLinkService.MutateCustomerClientLink][google.ads.googleads.v3.services.CustomerClientLinkService.MutateCustomerClientLink]. -message MutateCustomerClientLinkRequest { - // Required. The ID of the customer whose customer link are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The operation to perform on the individual CustomerClientLink. - CustomerClientLinkOperation operation = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// A single operation (create, update) on a CustomerClientLink. -message CustomerClientLinkOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new link. - google.ads.googleads.v3.resources.CustomerClientLink create = 1; - - // Update operation: The link is expected to have a valid resource name. - google.ads.googleads.v3.resources.CustomerClientLink update = 2; - } -} - -// Response message for a CustomerClientLink mutate. -message MutateCustomerClientLinkResponse { - // A result that identifies the resource affected by the mutate request. - MutateCustomerClientLinkResult result = 1; -} - -// The result for a single customer client link mutate. -message MutateCustomerClientLinkResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/customer_client_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/customer_client_service.proto deleted file mode 100644 index d61eb7e83..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/customer_client_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/customer_client.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "CustomerClientServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Customer Client service. - -// Service to get clients in a customer's hierarchy. -service CustomerClientService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested client in full detail. - rpc GetCustomerClient(GetCustomerClientRequest) returns (google.ads.googleads.v3.resources.CustomerClient) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/customerClients/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [CustomerClientService.GetCustomerClient][google.ads.googleads.v3.services.CustomerClientService.GetCustomerClient]. -message GetCustomerClientRequest { - // Required. The resource name of the client to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CustomerClient" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/customer_extension_setting_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/customer_extension_setting_service.proto deleted file mode 100644 index 4eedadbfd..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/customer_extension_setting_service.proto +++ /dev/null @@ -1,134 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/customer_extension_setting.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "CustomerExtensionSettingServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the CustomerExtensionSetting service. - -// Service to manage customer extension settings. -service CustomerExtensionSettingService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested customer extension setting in full detail. - rpc GetCustomerExtensionSetting(GetCustomerExtensionSettingRequest) returns (google.ads.googleads.v3.resources.CustomerExtensionSetting) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/customerExtensionSettings/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes customer extension settings. Operation - // statuses are returned. - rpc MutateCustomerExtensionSettings(MutateCustomerExtensionSettingsRequest) returns (MutateCustomerExtensionSettingsResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/customerExtensionSettings:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for -// [CustomerExtensionSettingService.GetCustomerExtensionSetting][google.ads.googleads.v3.services.CustomerExtensionSettingService.GetCustomerExtensionSetting]. -message GetCustomerExtensionSettingRequest { - // Required. The resource name of the customer extension setting to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CustomerExtensionSetting" - } - ]; -} - -// Request message for -// [CustomerExtensionSettingService.MutateCustomerExtensionSettings][google.ads.googleads.v3.services.CustomerExtensionSettingService.MutateCustomerExtensionSettings]. -message MutateCustomerExtensionSettingsRequest { - // Required. The ID of the customer whose customer extension settings are being - // modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual customer extension - // settings. - repeated CustomerExtensionSettingOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update, remove) on a customer extension setting. -message CustomerExtensionSettingOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new customer - // extension setting. - google.ads.googleads.v3.resources.CustomerExtensionSetting create = 1; - - // Update operation: The customer extension setting is expected to have a - // valid resource name. - google.ads.googleads.v3.resources.CustomerExtensionSetting update = 2; - - // Remove operation: A resource name for the removed customer extension - // setting is expected, in this format: - // - // `customers/{customer_id}/customerExtensionSettings/{extension_type}` - string remove = 3; - } -} - -// Response message for a customer extension setting mutate. -message MutateCustomerExtensionSettingsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateCustomerExtensionSettingResult results = 2; -} - -// The result for the customer extension setting mutate. -message MutateCustomerExtensionSettingResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/customer_feed_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/customer_feed_service.proto deleted file mode 100644 index 6b8a63a4e..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/customer_feed_service.proto +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/customer_feed.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "CustomerFeedServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the CustomerFeed service. - -// Service to manage customer feeds. -service CustomerFeedService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested customer feed in full detail. - rpc GetCustomerFeed(GetCustomerFeedRequest) returns (google.ads.googleads.v3.resources.CustomerFeed) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/customerFeeds/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes customer feeds. Operation statuses are - // returned. - rpc MutateCustomerFeeds(MutateCustomerFeedsRequest) returns (MutateCustomerFeedsResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/customerFeeds:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [CustomerFeedService.GetCustomerFeed][google.ads.googleads.v3.services.CustomerFeedService.GetCustomerFeed]. -message GetCustomerFeedRequest { - // Required. The resource name of the customer feed to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CustomerFeed" - } - ]; -} - -// Request message for [CustomerFeedService.MutateCustomerFeeds][google.ads.googleads.v3.services.CustomerFeedService.MutateCustomerFeeds]. -message MutateCustomerFeedsRequest { - // Required. The ID of the customer whose customer feeds are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual customer feeds. - repeated CustomerFeedOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update, remove) on a customer feed. -message CustomerFeedOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new customer feed. - google.ads.googleads.v3.resources.CustomerFeed create = 1; - - // Update operation: The customer feed is expected to have a valid resource - // name. - google.ads.googleads.v3.resources.CustomerFeed update = 2; - - // Remove operation: A resource name for the removed customer feed is - // expected, in this format: - // - // `customers/{customer_id}/customerFeeds/{feed_id}` - string remove = 3; - } -} - -// Response message for a customer feed mutate. -message MutateCustomerFeedsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateCustomerFeedResult results = 2; -} - -// The result for the customer feed mutate. -message MutateCustomerFeedResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/customer_label_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/customer_label_service.proto deleted file mode 100644 index c6c7a7c52..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/customer_label_service.proto +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/customer_label.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "CustomerLabelServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Customer Label service. - -// Service to manage labels on customers. -service CustomerLabelService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested customer-label relationship in full detail. - rpc GetCustomerLabel(GetCustomerLabelRequest) returns (google.ads.googleads.v3.resources.CustomerLabel) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/customerLabels/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates and removes customer-label relationships. - // Operation statuses are returned. - rpc MutateCustomerLabels(MutateCustomerLabelsRequest) returns (MutateCustomerLabelsResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/customerLabels:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [CustomerLabelService.GetCustomerLabel][google.ads.googleads.v3.services.CustomerLabelService.GetCustomerLabel]. -message GetCustomerLabelRequest { - // Required. The resource name of the customer-label relationship to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CustomerLabel" - } - ]; -} - -// Request message for [CustomerLabelService.MutateCustomerLabels][google.ads.googleads.v3.services.CustomerLabelService.MutateCustomerLabels]. -message MutateCustomerLabelsRequest { - // Required. ID of the customer whose customer-label relationships are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on customer-label relationships. - repeated CustomerLabelOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, remove) on a customer-label relationship. -message CustomerLabelOperation { - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new customer-label - // relationship. - google.ads.googleads.v3.resources.CustomerLabel create = 1; - - // Remove operation: A resource name for the customer-label relationship - // being removed, in this format: - // - // `customers/{customer_id}/customerLabels/{label_id}` - string remove = 2; - } -} - -// Response message for a customer labels mutate. -message MutateCustomerLabelsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateCustomerLabelResult results = 2; -} - -// The result for a customer label mutate. -message MutateCustomerLabelResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/customer_manager_link_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/customer_manager_link_service.proto deleted file mode 100644 index e0701eaef..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/customer_manager_link_service.proto +++ /dev/null @@ -1,139 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/customer_manager_link.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "CustomerManagerLinkServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Service to manage customer-manager links. -service CustomerManagerLinkService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested CustomerManagerLink in full detail. - rpc GetCustomerManagerLink(GetCustomerManagerLinkRequest) returns (google.ads.googleads.v3.resources.CustomerManagerLink) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/customerManagerLinks/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates or updates customer manager links. Operation statuses are returned. - rpc MutateCustomerManagerLink(MutateCustomerManagerLinkRequest) returns (MutateCustomerManagerLinkResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/customerManagerLinks:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } - - // Moves a client customer to a new manager customer. - // This simplifies the complex request that requires two operations to move - // a client customer to a new manager. i.e: - // 1. Update operation with Status INACTIVE (previous manager) and, - // 2. Update operation with Status ACTIVE (new manager). - rpc MoveManagerLink(MoveManagerLinkRequest) returns (MoveManagerLinkResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/customerManagerLinks:moveManagerLink" - body: "*" - }; - option (google.api.method_signature) = "customer_id,previous_customer_manager_link,new_manager"; - } -} - -// Request message for [CustomerManagerLinkService.GetCustomerManagerLink][google.ads.googleads.v3.services.CustomerManagerLinkService.GetCustomerManagerLink]. -message GetCustomerManagerLinkRequest { - // Required. The resource name of the CustomerManagerLink to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CustomerManagerLink" - } - ]; -} - -// Request message for [CustomerManagerLinkService.MutateCustomerManagerLink][google.ads.googleads.v3.services.CustomerManagerLinkService.MutateCustomerManagerLink]. -message MutateCustomerManagerLinkRequest { - // Required. The ID of the customer whose customer manager links are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual customer manager links. - repeated CustomerManagerLinkOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for [CustomerManagerLinkService.MoveManagerLink][google.ads.googleads.v3.services.CustomerManagerLinkService.MoveManagerLink]. -message MoveManagerLinkRequest { - // Required. The ID of the client customer that is being moved. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The resource name of the previous CustomerManagerLink. - // The resource name has the form: - // `customers/{customer_id}/customerManagerLinks/{manager_customer_id}~{manager_link_id}` - string previous_customer_manager_link = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. The resource name of the new manager customer that the client wants to move - // to. Customer resource names have the format: "customers/{customer_id}" - string new_manager = 3 [(google.api.field_behavior) = REQUIRED]; -} - -// Updates the status of a CustomerManagerLink. -// The following actions are possible: -// 1. Update operation with status ACTIVE accepts a pending invitation. -// 2. Update operation with status REFUSED declines a pending invitation. -// 3. Update operation with status INACTIVE terminates link to manager. -message CustomerManagerLinkOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Update operation: The link is expected to have a valid resource name. - google.ads.googleads.v3.resources.CustomerManagerLink update = 2; - } -} - -// Response message for a CustomerManagerLink mutate. -message MutateCustomerManagerLinkResponse { - // A result that identifies the resource affected by the mutate request. - repeated MutateCustomerManagerLinkResult results = 1; -} - -// Response message for a CustomerManagerLink moveManagerLink. -message MoveManagerLinkResponse { - // Returned for successful operations. Represents a CustomerManagerLink - // resource of the newly created link between client customer and new manager - // customer. - string resource_name = 1; -} - -// The result for the customer manager link mutate. -message MutateCustomerManagerLinkResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/customer_negative_criterion_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/customer_negative_criterion_service.proto deleted file mode 100644 index b4e39244a..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/customer_negative_criterion_service.proto +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/customer_negative_criterion.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "CustomerNegativeCriterionServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Customer Negative Criterion service. - -// Service to manage customer negative criteria. -service CustomerNegativeCriterionService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested criterion in full detail. - rpc GetCustomerNegativeCriterion(GetCustomerNegativeCriterionRequest) returns (google.ads.googleads.v3.resources.CustomerNegativeCriterion) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/customerNegativeCriteria/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates or removes criteria. Operation statuses are returned. - rpc MutateCustomerNegativeCriteria(MutateCustomerNegativeCriteriaRequest) returns (MutateCustomerNegativeCriteriaResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/customerNegativeCriteria:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for -// [CustomerNegativeCriterionService.GetCustomerNegativeCriterion][google.ads.googleads.v3.services.CustomerNegativeCriterionService.GetCustomerNegativeCriterion]. -message GetCustomerNegativeCriterionRequest { - // Required. The resource name of the criterion to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/CustomerNegativeCriterion" - } - ]; -} - -// Request message for -// [CustomerNegativeCriterionService.MutateCustomerNegativeCriteria][google.ads.googleads.v3.services.CustomerNegativeCriterionService.MutateCustomerNegativeCriteria]. -message MutateCustomerNegativeCriteriaRequest { - // Required. The ID of the customer whose criteria are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual criteria. - repeated CustomerNegativeCriterionOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create or remove) on a customer level negative criterion. -message CustomerNegativeCriterionOperation { - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new criterion. - google.ads.googleads.v3.resources.CustomerNegativeCriterion create = 1; - - // Remove operation: A resource name for the removed criterion is expected, - // in this format: - // - // `customers/{customer_id}/customerNegativeCriteria/{criterion_id}` - string remove = 2; - } -} - -// Response message for customer negative criterion mutate. -message MutateCustomerNegativeCriteriaResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateCustomerNegativeCriteriaResult results = 2; -} - -// The result for the criterion mutate. -message MutateCustomerNegativeCriteriaResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/customer_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/customer_service.proto deleted file mode 100644 index 2119e120d..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/customer_service.proto +++ /dev/null @@ -1,157 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/enums/access_role.proto"; -import "google/ads/googleads/v3/resources/customer.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/protobuf/wrappers.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "CustomerServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Customer service. - -// Service to manage customers. -service CustomerService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested customer in full detail. - rpc GetCustomer(GetCustomerRequest) returns (google.ads.googleads.v3.resources.Customer) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Updates a customer. Operation statuses are returned. - rpc MutateCustomer(MutateCustomerRequest) returns (MutateCustomerResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operation"; - } - - // Returns resource names of customers directly accessible by the - // user authenticating the call. - rpc ListAccessibleCustomers(ListAccessibleCustomersRequest) returns (ListAccessibleCustomersResponse) { - option (google.api.http) = { - get: "/v3/customers:listAccessibleCustomers" - }; - } - - // Creates a new client under manager. The new client customer is returned. - rpc CreateCustomerClient(CreateCustomerClientRequest) returns (CreateCustomerClientResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}:createCustomerClient" - body: "*" - }; - option (google.api.method_signature) = "customer_id,customer_client"; - } -} - -// Request message for [CustomerService.GetCustomer][google.ads.googleads.v3.services.CustomerService.GetCustomer]. -message GetCustomerRequest { - // Required. The resource name of the customer to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Customer" - } - ]; -} - -// Request message for [CustomerService.MutateCustomer][google.ads.googleads.v3.services.CustomerService.MutateCustomer]. -message MutateCustomerRequest { - // Required. The ID of the customer being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The operation to perform on the customer - CustomerOperation operation = 4 [(google.api.field_behavior) = REQUIRED]; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 5; -} - -// Request message for [CustomerService.CreateCustomerClient][google.ads.googleads.v3.services.CustomerService.CreateCustomerClient]. -message CreateCustomerClientRequest { - // Required. The ID of the Manager under whom client customer is being created. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The new client customer to create. The resource name on this customer - // will be ignored. - google.ads.googleads.v3.resources.Customer customer_client = 2 [(google.api.field_behavior) = REQUIRED]; - - // Email address of the user who should be invited on the created client - // customer. Accessible only to customers on the allow-list. - google.protobuf.StringValue email_address = 3; - - // The proposed role of user on the created client customer. - // Accessible only to customers on the allow-list. - google.ads.googleads.v3.enums.AccessRoleEnum.AccessRole access_role = 4; -} - -// A single update on a customer. -message CustomerOperation { - // Mutate operation. Only updates are supported for customer. - google.ads.googleads.v3.resources.Customer update = 1; - - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 2; -} - -// Response message for CreateCustomerClient mutate. -message CreateCustomerClientResponse { - // The resource name of the newly created customer client. - string resource_name = 2; -} - -// Response message for customer mutate. -message MutateCustomerResponse { - // Result for the mutate. - MutateCustomerResult result = 2; -} - -// The result for the customer mutate. -message MutateCustomerResult { - // Returned for successful operations. - string resource_name = 1; -} - -// Request message for [CustomerService.ListAccessibleCustomers][google.ads.googleads.v3.services.CustomerService.ListAccessibleCustomers]. -message ListAccessibleCustomersRequest { - -} - -// Response message for [CustomerService.ListAccessibleCustomers][google.ads.googleads.v3.services.CustomerService.ListAccessibleCustomers]. -message ListAccessibleCustomersResponse { - // Resource name of customers directly accessible by the - // user authenticating the call. - repeated string resource_names = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/detail_placement_view_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/detail_placement_view_service.proto deleted file mode 100644 index dc92f24c7..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/detail_placement_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/detail_placement_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "DetailPlacementViewServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Detail Placement View service. - -// Service to fetch Detail Placement views. -service DetailPlacementViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested Detail Placement view in full detail. - rpc GetDetailPlacementView(GetDetailPlacementViewRequest) returns (google.ads.googleads.v3.resources.DetailPlacementView) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/detailPlacementViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [DetailPlacementViewService.GetDetailPlacementView][google.ads.googleads.v3.services.DetailPlacementViewService.GetDetailPlacementView]. -message GetDetailPlacementViewRequest { - // Required. The resource name of the Detail Placement view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/DetailPlacementView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/display_keyword_view_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/display_keyword_view_service.proto deleted file mode 100644 index 1189819fc..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/display_keyword_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/display_keyword_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "DisplayKeywordViewServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Display Keyword View service. - -// Service to manage display keyword views. -service DisplayKeywordViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested display keyword view in full detail. - rpc GetDisplayKeywordView(GetDisplayKeywordViewRequest) returns (google.ads.googleads.v3.resources.DisplayKeywordView) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/displayKeywordViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [DisplayKeywordViewService.GetDisplayKeywordView][google.ads.googleads.v3.services.DisplayKeywordViewService.GetDisplayKeywordView]. -message GetDisplayKeywordViewRequest { - // Required. The resource name of the display keyword view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/DisplayKeywordView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/distance_view_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/distance_view_service.proto deleted file mode 100644 index 6673b5546..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/distance_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/distance_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "DistanceViewServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Distance View service. - -// Service to fetch distance views. -service DistanceViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the attributes of the requested distance view. - rpc GetDistanceView(GetDistanceViewRequest) returns (google.ads.googleads.v3.resources.DistanceView) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/distanceViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [DistanceViewService.GetDistanceView][google.ads.googleads.v3.services.DistanceViewService.GetDistanceView]. -message GetDistanceViewRequest { - // Required. The resource name of the distance view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/DistanceView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/domain_category_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/domain_category_service.proto deleted file mode 100644 index cedbbdb5b..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/domain_category_service.proto +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/domain_category.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "DomainCategoryServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the DomainCategory Service. - -// Service to fetch domain categories. -service DomainCategoryService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested domain category. - rpc GetDomainCategory(GetDomainCategoryRequest) returns (google.ads.googleads.v3.resources.DomainCategory) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/domainCategories/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for -// [DomainCategoryService.GetDomainCategory][google.ads.googleads.v3.services.DomainCategoryService.GetDomainCategory]. -message GetDomainCategoryRequest { - // Required. Resource name of the domain category to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/DomainCategory" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/dynamic_search_ads_search_term_view_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/dynamic_search_ads_search_term_view_service.proto deleted file mode 100644 index fe5066c86..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/dynamic_search_ads_search_term_view_service.proto +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/dynamic_search_ads_search_term_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "DynamicSearchAdsSearchTermViewServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Dynamic Search Ads Search Term View service. - -// Service to fetch dynamic search ads views. -service DynamicSearchAdsSearchTermViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested dynamic search ads search term view in full detail. - rpc GetDynamicSearchAdsSearchTermView(GetDynamicSearchAdsSearchTermViewRequest) returns (google.ads.googleads.v3.resources.DynamicSearchAdsSearchTermView) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/dynamicSearchAdsSearchTermViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for -// [DynamicSearchAdsSearchTermViewService.GetDynamicSearchAdsSearchTermView][google.ads.googleads.v3.services.DynamicSearchAdsSearchTermViewService.GetDynamicSearchAdsSearchTermView]. -message GetDynamicSearchAdsSearchTermViewRequest { - // Required. The resource name of the dynamic search ads search term view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/DynamicSearchAdsSearchTermView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/expanded_landing_page_view_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/expanded_landing_page_view_service.proto deleted file mode 100644 index b0a7909f7..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/expanded_landing_page_view_service.proto +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/expanded_landing_page_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "ExpandedLandingPageViewServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the expanded landing page view service. - -// Service to fetch expanded landing page views. -service ExpandedLandingPageViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested expanded landing page view in full detail. - rpc GetExpandedLandingPageView(GetExpandedLandingPageViewRequest) returns (google.ads.googleads.v3.resources.ExpandedLandingPageView) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/expandedLandingPageViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for -// [ExpandedLandingPageViewService.GetExpandedLandingPageView][google.ads.googleads.v3.services.ExpandedLandingPageViewService.GetExpandedLandingPageView]. -message GetExpandedLandingPageViewRequest { - // Required. The resource name of the expanded landing page view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/ExpandedLandingPageView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/extension_feed_item_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/extension_feed_item_service.proto deleted file mode 100644 index d505f023c..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/extension_feed_item_service.proto +++ /dev/null @@ -1,131 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/extension_feed_item.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "ExtensionFeedItemServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the ExtensionFeedItem service. - -// Service to manage extension feed items. -service ExtensionFeedItemService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested extension feed item in full detail. - rpc GetExtensionFeedItem(GetExtensionFeedItemRequest) returns (google.ads.googleads.v3.resources.ExtensionFeedItem) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/extensionFeedItems/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes extension feed items. Operation - // statuses are returned. - rpc MutateExtensionFeedItems(MutateExtensionFeedItemsRequest) returns (MutateExtensionFeedItemsResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/extensionFeedItems:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [ExtensionFeedItemService.GetExtensionFeedItem][google.ads.googleads.v3.services.ExtensionFeedItemService.GetExtensionFeedItem]. -message GetExtensionFeedItemRequest { - // Required. The resource name of the extension feed item to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/ExtensionFeedItem" - } - ]; -} - -// Request message for [ExtensionFeedItemService.MutateExtensionFeedItems][google.ads.googleads.v3.services.ExtensionFeedItemService.MutateExtensionFeedItems]. -message MutateExtensionFeedItemsRequest { - // Required. The ID of the customer whose extension feed items are being - // modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual extension feed items. - repeated ExtensionFeedItemOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update, remove) on an extension feed item. -message ExtensionFeedItemOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new extension - // feed item. - google.ads.googleads.v3.resources.ExtensionFeedItem create = 1; - - // Update operation: The extension feed item is expected to have a - // valid resource name. - google.ads.googleads.v3.resources.ExtensionFeedItem update = 2; - - // Remove operation: A resource name for the removed extension feed item - // is expected, in this format: - // - // `customers/{customer_id}/extensionFeedItems/{feed_item_id}` - string remove = 3; - } -} - -// Response message for an extension feed item mutate. -message MutateExtensionFeedItemsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateExtensionFeedItemResult results = 2; -} - -// The result for the extension feed item mutate. -message MutateExtensionFeedItemResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/feed_item_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/feed_item_service.proto deleted file mode 100644 index a7b5525f0..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/feed_item_service.proto +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/feed_item.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "FeedItemServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the FeedItem service. - -// Service to manage feed items. -service FeedItemService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested feed item in full detail. - rpc GetFeedItem(GetFeedItemRequest) returns (google.ads.googleads.v3.resources.FeedItem) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/feedItems/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes feed items. Operation statuses are - // returned. - rpc MutateFeedItems(MutateFeedItemsRequest) returns (MutateFeedItemsResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/feedItems:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [FeedItemService.GetFeedItem][google.ads.googleads.v3.services.FeedItemService.GetFeedItem]. -message GetFeedItemRequest { - // Required. The resource name of the feed item to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/FeedItem" - } - ]; -} - -// Request message for [FeedItemService.MutateFeedItems][google.ads.googleads.v3.services.FeedItemService.MutateFeedItems]. -message MutateFeedItemsRequest { - // Required. The ID of the customer whose feed items are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual feed items. - repeated FeedItemOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update, remove) on an feed item. -message FeedItemOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new feed item. - google.ads.googleads.v3.resources.FeedItem create = 1; - - // Update operation: The feed item is expected to have a valid resource - // name. - google.ads.googleads.v3.resources.FeedItem update = 2; - - // Remove operation: A resource name for the removed feed item is - // expected, in this format: - // - // `customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}` - string remove = 3; - } -} - -// Response message for an feed item mutate. -message MutateFeedItemsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateFeedItemResult results = 2; -} - -// The result for the feed item mutate. -message MutateFeedItemResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/feed_item_target_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/feed_item_target_service.proto deleted file mode 100644 index ad135525e..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/feed_item_target_service.proto +++ /dev/null @@ -1,104 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/feed_item_target.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "FeedItemTargetServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the FeedItemTarget service. - -// Service to manage feed item targets. -service FeedItemTargetService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested feed item targets in full detail. - rpc GetFeedItemTarget(GetFeedItemTargetRequest) returns (google.ads.googleads.v3.resources.FeedItemTarget) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/feedItemTargets/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates or removes feed item targets. Operation statuses are returned. - rpc MutateFeedItemTargets(MutateFeedItemTargetsRequest) returns (MutateFeedItemTargetsResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/feedItemTargets:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [FeedItemTargetService.GetFeedItemTarget][google.ads.googleads.v3.services.FeedItemTargetService.GetFeedItemTarget]. -message GetFeedItemTargetRequest { - // Required. The resource name of the feed item targets to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/FeedItemTarget" - } - ]; -} - -// Request message for [FeedItemTargetService.MutateFeedItemTargets][google.ads.googleads.v3.services.FeedItemTargetService.MutateFeedItemTargets]. -message MutateFeedItemTargetsRequest { - // Required. The ID of the customer whose feed item targets are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual feed item targets. - repeated FeedItemTargetOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// A single operation (create, remove) on an feed item target. -message FeedItemTargetOperation { - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new feed item - // target. - google.ads.googleads.v3.resources.FeedItemTarget create = 1; - - // Remove operation: A resource name for the removed feed item target is - // expected, in this format: - // - // `customers/{customer_id}/feedItemTargets/{feed_id}~{feed_item_id}~{feed_item_target_type}~{feed_item_target_id}` - string remove = 2; - } -} - -// Response message for an feed item target mutate. -message MutateFeedItemTargetsResponse { - // All results for the mutate. - repeated MutateFeedItemTargetResult results = 2; -} - -// The result for the feed item target mutate. -message MutateFeedItemTargetResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/feed_mapping_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/feed_mapping_service.proto deleted file mode 100644 index 02aeb34f5..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/feed_mapping_service.proto +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/feed_mapping.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "FeedMappingServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the FeedMapping service. - -// Service to manage feed mappings. -service FeedMappingService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested feed mapping in full detail. - rpc GetFeedMapping(GetFeedMappingRequest) returns (google.ads.googleads.v3.resources.FeedMapping) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/feedMappings/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates or removes feed mappings. Operation statuses are - // returned. - rpc MutateFeedMappings(MutateFeedMappingsRequest) returns (MutateFeedMappingsResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/feedMappings:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [FeedMappingService.GetFeedMapping][google.ads.googleads.v3.services.FeedMappingService.GetFeedMapping]. -message GetFeedMappingRequest { - // Required. The resource name of the feed mapping to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/FeedMapping" - } - ]; -} - -// Request message for [FeedMappingService.MutateFeedMappings][google.ads.googleads.v3.services.FeedMappingService.MutateFeedMappings]. -message MutateFeedMappingsRequest { - // Required. The ID of the customer whose feed mappings are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual feed mappings. - repeated FeedMappingOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, remove) on a feed mapping. -message FeedMappingOperation { - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new feed mapping. - google.ads.googleads.v3.resources.FeedMapping create = 1; - - // Remove operation: A resource name for the removed feed mapping is - // expected, in this format: - // - // `customers/{customer_id}/feedMappings/{feed_id}~{feed_mapping_id}` - string remove = 3; - } -} - -// Response message for a feed mapping mutate. -message MutateFeedMappingsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateFeedMappingResult results = 2; -} - -// The result for the feed mapping mutate. -message MutateFeedMappingResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/feed_placeholder_view_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/feed_placeholder_view_service.proto deleted file mode 100644 index 2936bf767..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/feed_placeholder_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/feed_placeholder_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "FeedPlaceholderViewServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the FeedPlaceholderView service. - -// Service to fetch feed placeholder views. -service FeedPlaceholderViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested feed placeholder view in full detail. - rpc GetFeedPlaceholderView(GetFeedPlaceholderViewRequest) returns (google.ads.googleads.v3.resources.FeedPlaceholderView) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/feedPlaceholderViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [FeedPlaceholderViewService.GetFeedPlaceholderView][google.ads.googleads.v3.services.FeedPlaceholderViewService.GetFeedPlaceholderView]. -message GetFeedPlaceholderViewRequest { - // Required. The resource name of the feed placeholder view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/FeedPlaceholderView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/feed_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/feed_service.proto deleted file mode 100644 index 165a2c374..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/feed_service.proto +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/feed.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "FeedServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Feed service. - -// Service to manage feeds. -service FeedService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested feed in full detail. - rpc GetFeed(GetFeedRequest) returns (google.ads.googleads.v3.resources.Feed) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/feeds/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes feeds. Operation statuses are - // returned. - rpc MutateFeeds(MutateFeedsRequest) returns (MutateFeedsResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/feeds:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [FeedService.GetFeed][google.ads.googleads.v3.services.FeedService.GetFeed]. -message GetFeedRequest { - // Required. The resource name of the feed to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Feed" - } - ]; -} - -// Request message for [FeedService.MutateFeeds][google.ads.googleads.v3.services.FeedService.MutateFeeds]. -message MutateFeedsRequest { - // Required. The ID of the customer whose feeds are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual feeds. - repeated FeedOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update, remove) on an feed. -message FeedOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new feed. - google.ads.googleads.v3.resources.Feed create = 1; - - // Update operation: The feed is expected to have a valid resource - // name. - google.ads.googleads.v3.resources.Feed update = 2; - - // Remove operation: A resource name for the removed feed is - // expected, in this format: - // - // `customers/{customer_id}/feeds/{feed_id}` - string remove = 3; - } -} - -// Response message for an feed mutate. -message MutateFeedsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateFeedResult results = 2; -} - -// The result for the feed mutate. -message MutateFeedResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/gender_view_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/gender_view_service.proto deleted file mode 100644 index 69965c21a..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/gender_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/gender_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "GenderViewServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Gender View service. - -// Service to manage gender views. -service GenderViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested gender view in full detail. - rpc GetGenderView(GetGenderViewRequest) returns (google.ads.googleads.v3.resources.GenderView) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/genderViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [GenderViewService.GetGenderView][google.ads.googleads.v3.services.GenderViewService.GetGenderView]. -message GetGenderViewRequest { - // Required. The resource name of the gender view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/GenderView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/geo_target_constant_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/geo_target_constant_service.proto deleted file mode 100644 index 23daebfd9..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/geo_target_constant_service.proto +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/geo_target_constant.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "GeoTargetConstantServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Geo target constant service. - -// Service to fetch geo target constants. -service GeoTargetConstantService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested geo target constant in full detail. - rpc GetGeoTargetConstant(GetGeoTargetConstantRequest) returns (google.ads.googleads.v3.resources.GeoTargetConstant) { - option (google.api.http) = { - get: "/v3/{resource_name=geoTargetConstants/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Returns GeoTargetConstant suggestions by location name or by resource name. - rpc SuggestGeoTargetConstants(SuggestGeoTargetConstantsRequest) returns (SuggestGeoTargetConstantsResponse) { - option (google.api.http) = { - post: "/v3/geoTargetConstants:suggest" - body: "*" - }; - } -} - -// Request message for [GeoTargetConstantService.GetGeoTargetConstant][google.ads.googleads.v3.services.GeoTargetConstantService.GetGeoTargetConstant]. -message GetGeoTargetConstantRequest { - // Required. The resource name of the geo target constant to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/GeoTargetConstant" - } - ]; -} - -// Request message for -// [GeoTargetConstantService.SuggestGeoTargetConstants][google.ads.googleads.v3.services.GeoTargetConstantService.SuggestGeoTargetConstants]. -message SuggestGeoTargetConstantsRequest { - // A list of location names. - message LocationNames { - // A list of location names. - repeated google.protobuf.StringValue names = 1; - } - - // A list of geo target constant resource names. - message GeoTargets { - // A list of geo target constant resource names. - repeated google.protobuf.StringValue geo_target_constants = 1; - } - - // If possible, returned geo targets are translated using this locale. If not, - // en is used by default. This is also used as a hint for returned geo - // targets. - google.protobuf.StringValue locale = 3; - - // Returned geo targets are restricted to this country code. - google.protobuf.StringValue country_code = 5; - - // Required. A selector of geo target constants. - oneof query { - // The location names to search by. At most 25 names can be set. - LocationNames location_names = 1; - - // The geo target constant resource names to filter by. - GeoTargets geo_targets = 2; - } -} - -// Response message for [GeoTargetConstantService.SuggestGeoTargetConstants][google.ads.googleads.v3.services.GeoTargetConstantService.SuggestGeoTargetConstants]. -message SuggestGeoTargetConstantsResponse { - // Geo target constant suggestions. - repeated GeoTargetConstantSuggestion geo_target_constant_suggestions = 1; -} - -// A geo target constant suggestion. -message GeoTargetConstantSuggestion { - // The language this GeoTargetConstantSuggestion is currently translated to. - // It affects the name of geo target fields. For example, if locale=en, then - // name=Spain. If locale=es, then name=España. The default locale will be - // returned if no translation exists for the locale in the request. - google.protobuf.StringValue locale = 1; - - // Approximate user population that will be targeted, rounded to the - // nearest 100. - google.protobuf.Int64Value reach = 2; - - // If the request searched by location name, this is the location name that - // matched the geo target. - google.protobuf.StringValue search_term = 3; - - // The GeoTargetConstant result. - google.ads.googleads.v3.resources.GeoTargetConstant geo_target_constant = 4; - - // The list of parents of the geo target constant. - repeated google.ads.googleads.v3.resources.GeoTargetConstant geo_target_constant_parents = 5; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/geographic_view_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/geographic_view_service.proto deleted file mode 100644 index a9f301c99..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/geographic_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/geographic_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "GeographicViewServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the GeographicViewService. - -// Service to manage geographic views. -service GeographicViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested geographic view in full detail. - rpc GetGeographicView(GetGeographicViewRequest) returns (google.ads.googleads.v3.resources.GeographicView) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/geographicViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [GeographicViewService.GetGeographicView][google.ads.googleads.v3.services.GeographicViewService.GetGeographicView]. -message GetGeographicViewRequest { - // Required. The resource name of the geographic view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/GeographicView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/google_ads_field_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/google_ads_field_service.proto deleted file mode 100644 index 04f4a7866..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/google_ads_field_service.proto +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/google_ads_field.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "GoogleAdsFieldServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the GoogleAdsFieldService - -// Service to fetch Google Ads API fields. -service GoogleAdsFieldService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns just the requested field. - rpc GetGoogleAdsField(GetGoogleAdsFieldRequest) returns (google.ads.googleads.v3.resources.GoogleAdsField) { - option (google.api.http) = { - get: "/v3/{resource_name=googleAdsFields/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Returns all fields that match the search query. - rpc SearchGoogleAdsFields(SearchGoogleAdsFieldsRequest) returns (SearchGoogleAdsFieldsResponse) { - option (google.api.http) = { - post: "/v3/googleAdsFields:search" - body: "*" - }; - option (google.api.method_signature) = "query"; - } -} - -// Request message for [GoogleAdsFieldService.GetGoogleAdsField][google.ads.googleads.v3.services.GoogleAdsFieldService.GetGoogleAdsField]. -message GetGoogleAdsFieldRequest { - // Required. The resource name of the field to get. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/GoogleAdsField" - } - ]; -} - -// Request message for [GoogleAdsFieldService.SearchGoogleAdsFields][google.ads.googleads.v3.services.GoogleAdsFieldService.SearchGoogleAdsFields]. -message SearchGoogleAdsFieldsRequest { - // Required. The query string. - string query = 1 [(google.api.field_behavior) = REQUIRED]; - - // Token of the page to retrieve. If not specified, the first page of - // results will be returned. Use the value obtained from `next_page_token` - // in the previous response in order to request the next page of results. - string page_token = 2; - - // Number of elements to retrieve in a single page. - // When too large a page is requested, the server may decide to further - // limit the number of returned resources. - int32 page_size = 3; -} - -// Response message for [GoogleAdsFieldService.SearchGoogleAdsFields][google.ads.googleads.v3.services.GoogleAdsFieldService.SearchGoogleAdsFields]. -message SearchGoogleAdsFieldsResponse { - // The list of fields that matched the query. - repeated google.ads.googleads.v3.resources.GoogleAdsField results = 1; - - // Pagination token used to retrieve the next page of results. Pass the - // content of this string as the `page_token` attribute of the next request. - // `next_page_token` is not returned for the last page. - string next_page_token = 2; - - // Total number of results that match the query ignoring the LIMIT clause. - int64 total_results_count = 3; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/google_ads_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/google_ads_service.proto deleted file mode 100644 index 44dc020c9..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/google_ads_service.proto +++ /dev/null @@ -1,928 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/common/metrics.proto"; -import "google/ads/googleads/v3/common/segments.proto"; -import "google/ads/googleads/v3/enums/summary_row_setting.proto"; -import "google/ads/googleads/v3/resources/account_budget.proto"; -import "google/ads/googleads/v3/resources/account_budget_proposal.proto"; -import "google/ads/googleads/v3/resources/ad_group.proto"; -import "google/ads/googleads/v3/resources/ad_group_ad.proto"; -import "google/ads/googleads/v3/resources/ad_group_ad_asset_view.proto"; -import "google/ads/googleads/v3/resources/ad_group_ad_label.proto"; -import "google/ads/googleads/v3/resources/ad_group_audience_view.proto"; -import "google/ads/googleads/v3/resources/ad_group_bid_modifier.proto"; -import "google/ads/googleads/v3/resources/ad_group_criterion.proto"; -import "google/ads/googleads/v3/resources/ad_group_criterion_label.proto"; -import "google/ads/googleads/v3/resources/ad_group_criterion_simulation.proto"; -import "google/ads/googleads/v3/resources/ad_group_extension_setting.proto"; -import "google/ads/googleads/v3/resources/ad_group_feed.proto"; -import "google/ads/googleads/v3/resources/ad_group_label.proto"; -import "google/ads/googleads/v3/resources/ad_group_simulation.proto"; -import "google/ads/googleads/v3/resources/ad_parameter.proto"; -import "google/ads/googleads/v3/resources/ad_schedule_view.proto"; -import "google/ads/googleads/v3/resources/age_range_view.proto"; -import "google/ads/googleads/v3/resources/asset.proto"; -import "google/ads/googleads/v3/resources/bidding_strategy.proto"; -import "google/ads/googleads/v3/resources/billing_setup.proto"; -import "google/ads/googleads/v3/resources/campaign.proto"; -import "google/ads/googleads/v3/resources/campaign_audience_view.proto"; -import "google/ads/googleads/v3/resources/campaign_bid_modifier.proto"; -import "google/ads/googleads/v3/resources/campaign_budget.proto"; -import "google/ads/googleads/v3/resources/campaign_criterion.proto"; -import "google/ads/googleads/v3/resources/campaign_criterion_simulation.proto"; -import "google/ads/googleads/v3/resources/campaign_draft.proto"; -import "google/ads/googleads/v3/resources/campaign_experiment.proto"; -import "google/ads/googleads/v3/resources/campaign_extension_setting.proto"; -import "google/ads/googleads/v3/resources/campaign_feed.proto"; -import "google/ads/googleads/v3/resources/campaign_label.proto"; -import "google/ads/googleads/v3/resources/campaign_shared_set.proto"; -import "google/ads/googleads/v3/resources/carrier_constant.proto"; -import "google/ads/googleads/v3/resources/change_status.proto"; -import "google/ads/googleads/v3/resources/click_view.proto"; -import "google/ads/googleads/v3/resources/conversion_action.proto"; -import "google/ads/googleads/v3/resources/currency_constant.proto"; -import "google/ads/googleads/v3/resources/custom_interest.proto"; -import "google/ads/googleads/v3/resources/customer.proto"; -import "google/ads/googleads/v3/resources/customer_client.proto"; -import "google/ads/googleads/v3/resources/customer_client_link.proto"; -import "google/ads/googleads/v3/resources/customer_extension_setting.proto"; -import "google/ads/googleads/v3/resources/customer_feed.proto"; -import "google/ads/googleads/v3/resources/customer_label.proto"; -import "google/ads/googleads/v3/resources/customer_manager_link.proto"; -import "google/ads/googleads/v3/resources/customer_negative_criterion.proto"; -import "google/ads/googleads/v3/resources/detail_placement_view.proto"; -import "google/ads/googleads/v3/resources/display_keyword_view.proto"; -import "google/ads/googleads/v3/resources/distance_view.proto"; -import "google/ads/googleads/v3/resources/domain_category.proto"; -import "google/ads/googleads/v3/resources/dynamic_search_ads_search_term_view.proto"; -import "google/ads/googleads/v3/resources/expanded_landing_page_view.proto"; -import "google/ads/googleads/v3/resources/extension_feed_item.proto"; -import "google/ads/googleads/v3/resources/feed.proto"; -import "google/ads/googleads/v3/resources/feed_item.proto"; -import "google/ads/googleads/v3/resources/feed_item_target.proto"; -import "google/ads/googleads/v3/resources/feed_mapping.proto"; -import "google/ads/googleads/v3/resources/feed_placeholder_view.proto"; -import "google/ads/googleads/v3/resources/gender_view.proto"; -import "google/ads/googleads/v3/resources/geo_target_constant.proto"; -import "google/ads/googleads/v3/resources/geographic_view.proto"; -import "google/ads/googleads/v3/resources/group_placement_view.proto"; -import "google/ads/googleads/v3/resources/hotel_group_view.proto"; -import "google/ads/googleads/v3/resources/hotel_performance_view.proto"; -import "google/ads/googleads/v3/resources/keyword_plan.proto"; -import "google/ads/googleads/v3/resources/keyword_plan_ad_group.proto"; -import "google/ads/googleads/v3/resources/keyword_plan_campaign.proto"; -import "google/ads/googleads/v3/resources/keyword_plan_keyword.proto"; -import "google/ads/googleads/v3/resources/keyword_plan_negative_keyword.proto"; -import "google/ads/googleads/v3/resources/keyword_view.proto"; -import "google/ads/googleads/v3/resources/label.proto"; -import "google/ads/googleads/v3/resources/landing_page_view.proto"; -import "google/ads/googleads/v3/resources/language_constant.proto"; -import "google/ads/googleads/v3/resources/location_view.proto"; -import "google/ads/googleads/v3/resources/managed_placement_view.proto"; -import "google/ads/googleads/v3/resources/media_file.proto"; -import "google/ads/googleads/v3/resources/mobile_app_category_constant.proto"; -import "google/ads/googleads/v3/resources/mobile_device_constant.proto"; -import "google/ads/googleads/v3/resources/mutate_job.proto"; -import "google/ads/googleads/v3/resources/offline_user_data_job.proto"; -import "google/ads/googleads/v3/resources/operating_system_version_constant.proto"; -import "google/ads/googleads/v3/resources/paid_organic_search_term_view.proto"; -import "google/ads/googleads/v3/resources/parental_status_view.proto"; -import "google/ads/googleads/v3/resources/product_bidding_category_constant.proto"; -import "google/ads/googleads/v3/resources/product_group_view.proto"; -import "google/ads/googleads/v3/resources/recommendation.proto"; -import "google/ads/googleads/v3/resources/remarketing_action.proto"; -import "google/ads/googleads/v3/resources/search_term_view.proto"; -import "google/ads/googleads/v3/resources/shared_criterion.proto"; -import "google/ads/googleads/v3/resources/shared_set.proto"; -import "google/ads/googleads/v3/resources/shopping_performance_view.proto"; -import "google/ads/googleads/v3/resources/topic_constant.proto"; -import "google/ads/googleads/v3/resources/topic_view.proto"; -import "google/ads/googleads/v3/resources/user_interest.proto"; -import "google/ads/googleads/v3/resources/user_list.proto"; -import "google/ads/googleads/v3/resources/user_location_view.proto"; -import "google/ads/googleads/v3/resources/video.proto"; -import "google/ads/googleads/v3/services/ad_group_ad_label_service.proto"; -import "google/ads/googleads/v3/services/ad_group_ad_service.proto"; -import "google/ads/googleads/v3/services/ad_group_bid_modifier_service.proto"; -import "google/ads/googleads/v3/services/ad_group_criterion_label_service.proto"; -import "google/ads/googleads/v3/services/ad_group_criterion_service.proto"; -import "google/ads/googleads/v3/services/ad_group_extension_setting_service.proto"; -import "google/ads/googleads/v3/services/ad_group_feed_service.proto"; -import "google/ads/googleads/v3/services/ad_group_label_service.proto"; -import "google/ads/googleads/v3/services/ad_group_service.proto"; -import "google/ads/googleads/v3/services/ad_parameter_service.proto"; -import "google/ads/googleads/v3/services/ad_service.proto"; -import "google/ads/googleads/v3/services/asset_service.proto"; -import "google/ads/googleads/v3/services/bidding_strategy_service.proto"; -import "google/ads/googleads/v3/services/campaign_bid_modifier_service.proto"; -import "google/ads/googleads/v3/services/campaign_budget_service.proto"; -import "google/ads/googleads/v3/services/campaign_criterion_service.proto"; -import "google/ads/googleads/v3/services/campaign_draft_service.proto"; -import "google/ads/googleads/v3/services/campaign_experiment_service.proto"; -import "google/ads/googleads/v3/services/campaign_extension_setting_service.proto"; -import "google/ads/googleads/v3/services/campaign_feed_service.proto"; -import "google/ads/googleads/v3/services/campaign_label_service.proto"; -import "google/ads/googleads/v3/services/campaign_service.proto"; -import "google/ads/googleads/v3/services/campaign_shared_set_service.proto"; -import "google/ads/googleads/v3/services/conversion_action_service.proto"; -import "google/ads/googleads/v3/services/customer_extension_setting_service.proto"; -import "google/ads/googleads/v3/services/customer_feed_service.proto"; -import "google/ads/googleads/v3/services/customer_label_service.proto"; -import "google/ads/googleads/v3/services/customer_negative_criterion_service.proto"; -import "google/ads/googleads/v3/services/customer_service.proto"; -import "google/ads/googleads/v3/services/extension_feed_item_service.proto"; -import "google/ads/googleads/v3/services/feed_item_service.proto"; -import "google/ads/googleads/v3/services/feed_item_target_service.proto"; -import "google/ads/googleads/v3/services/feed_mapping_service.proto"; -import "google/ads/googleads/v3/services/feed_service.proto"; -import "google/ads/googleads/v3/services/label_service.proto"; -import "google/ads/googleads/v3/services/media_file_service.proto"; -import "google/ads/googleads/v3/services/remarketing_action_service.proto"; -import "google/ads/googleads/v3/services/shared_criterion_service.proto"; -import "google/ads/googleads/v3/services/shared_set_service.proto"; -import "google/ads/googleads/v3/services/user_list_service.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "GoogleAdsServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the GoogleAdsService. - -// Service to fetch data and metrics across resources. -service GoogleAdsService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns all rows that match the search query. - rpc Search(SearchGoogleAdsRequest) returns (SearchGoogleAdsResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/googleAds:search" - body: "*" - }; - option (google.api.method_signature) = "customer_id,query"; - } - - // Returns all rows that match the search stream query. - rpc SearchStream(SearchGoogleAdsStreamRequest) returns (stream SearchGoogleAdsStreamResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/googleAds:searchStream" - body: "*" - }; - option (google.api.method_signature) = "customer_id,query"; - } - - // Creates, updates, or removes resources. This method supports atomic - // transactions with multiple types of resources. For example, you can - // atomically create a campaign and a campaign budget, or perform up to - // thousands of mutates atomically. - // - // This method is essentially a wrapper around a series of mutate methods. The - // only features it offers over calling those methods directly are: - // - // - Atomic transactions - // - Temp resource names (described below) - // - Somewhat reduced latency over making a series of mutate calls - // - // Note: Only resources that support atomic transactions are included, so this - // method can't replace all calls to individual services. - // - // ## Atomic Transaction Benefits - // - // Atomicity makes error handling much easier. If you're making a series of - // changes and one fails, it can leave your account in an inconsistent state. - // With atomicity, you either reach the desired state directly, or the request - // fails and you can retry. - // - // ## Temp Resource Names - // - // Temp resource names are a special type of resource name used to create a - // resource and reference that resource in the same request. For example, if a - // campaign budget is created with `resource_name` equal to - // `customers/123/campaignBudgets/-1`, that resource name can be reused in - // the `Campaign.budget` field in the same request. That way, the two - // resources are created and linked atomically. - // - // To create a temp resource name, put a negative number in the part of the - // name that the server would normally allocate. - // - // Note: - // - // - Resources must be created with a temp name before the name can be reused. - // For example, the previous CampaignBudget+Campaign example would fail if - // the mutate order was reversed. - // - Temp names are not remembered across requests. - // - There's no limit to the number of temp names in a request. - // - Each temp name must use a unique negative number, even if the resource - // types differ. - // - // ## Latency - // - // It's important to group mutates by resource type or the request may time - // out and fail. Latency is roughly equal to a series of calls to individual - // mutate methods, where each change in resource type is a new call. For - // example, mutating 10 campaigns then 10 ad groups is like 2 calls, while - // mutating 1 campaign, 1 ad group, 1 campaign, 1 ad group is like 4 calls. - rpc Mutate(MutateGoogleAdsRequest) returns (MutateGoogleAdsResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/googleAds:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,mutate_operations"; - } -} - -// Request message for [GoogleAdsService.Search][google.ads.googleads.v3.services.GoogleAdsService.Search]. -message SearchGoogleAdsRequest { - // Required. The ID of the customer being queried. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The query string. - string query = 2 [(google.api.field_behavior) = REQUIRED]; - - // Token of the page to retrieve. If not specified, the first - // page of results will be returned. Use the value obtained from - // `next_page_token` in the previous response in order to request - // the next page of results. - string page_token = 3; - - // Number of elements to retrieve in a single page. - // When too large a page is requested, the server may decide to - // further limit the number of returned resources. - int32 page_size = 4; - - // If true, the request is validated but not executed. - bool validate_only = 5; - - // If true, the total number of results that match the query ignoring the - // LIMIT clause will be included in the response. - // Default is false. - bool return_total_results_count = 7; - - // Determines whether a summary row will be returned. By default, summary row - // is not returned. If requested, the summary row will be sent in a response - // by itself after all other query results are returned. - google.ads.googleads.v3.enums.SummaryRowSettingEnum.SummaryRowSetting summary_row_setting = 8; -} - -// Response message for [GoogleAdsService.Search][google.ads.googleads.v3.services.GoogleAdsService.Search]. -message SearchGoogleAdsResponse { - // The list of rows that matched the query. - repeated GoogleAdsRow results = 1; - - // Pagination token used to retrieve the next page of results. - // Pass the content of this string as the `page_token` attribute of - // the next request. `next_page_token` is not returned for the last - // page. - string next_page_token = 2; - - // Total number of results that match the query ignoring the LIMIT - // clause. - int64 total_results_count = 3; - - // FieldMask that represents what fields were requested by the user. - google.protobuf.FieldMask field_mask = 5; - - // Summary row that contains summary of metrics in results. - // Summary of metrics means aggregation of metrics across all results, - // here aggregation could be sum, average, rate, etc. - GoogleAdsRow summary_row = 6; -} - -// Request message for [GoogleAdsService.SearchStream][google.ads.googleads.v3.services.GoogleAdsService.SearchStream]. -message SearchGoogleAdsStreamRequest { - // Required. The ID of the customer being queried. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The query string. - string query = 2 [(google.api.field_behavior) = REQUIRED]; - - // Determines whether a summary row will be returned. By default, summary row - // is not returned. If requested, the summary row will be sent in a response - // by itself after all other query results are returned. - google.ads.googleads.v3.enums.SummaryRowSettingEnum.SummaryRowSetting summary_row_setting = 3; -} - -// Response message for [GoogleAdsService.SearchStream][google.ads.googleads.v3.services.GoogleAdsService.SearchStream]. -message SearchGoogleAdsStreamResponse { - // The list of rows that matched the query. - repeated GoogleAdsRow results = 1; - - // FieldMask that represents what fields were requested by the user. - google.protobuf.FieldMask field_mask = 2; - - // Summary row that contains summary of metrics in results. - // Summary of metrics means aggregation of metrics across all results, - // here aggregation could be sum, average, rate, etc. - GoogleAdsRow summary_row = 3; -} - -// A returned row from the query. -message GoogleAdsRow { - // The account budget in the query. - google.ads.googleads.v3.resources.AccountBudget account_budget = 42; - - // The account budget proposal referenced in the query. - google.ads.googleads.v3.resources.AccountBudgetProposal account_budget_proposal = 43; - - // The ad group referenced in the query. - google.ads.googleads.v3.resources.AdGroup ad_group = 3; - - // The ad referenced in the query. - google.ads.googleads.v3.resources.AdGroupAd ad_group_ad = 16; - - // The ad group ad asset view in the query. - google.ads.googleads.v3.resources.AdGroupAdAssetView ad_group_ad_asset_view = 131; - - // The ad group ad label referenced in the query. - google.ads.googleads.v3.resources.AdGroupAdLabel ad_group_ad_label = 120; - - // The ad group audience view referenced in the query. - google.ads.googleads.v3.resources.AdGroupAudienceView ad_group_audience_view = 57; - - // The bid modifier referenced in the query. - google.ads.googleads.v3.resources.AdGroupBidModifier ad_group_bid_modifier = 24; - - // The criterion referenced in the query. - google.ads.googleads.v3.resources.AdGroupCriterion ad_group_criterion = 17; - - // The ad group criterion label referenced in the query. - google.ads.googleads.v3.resources.AdGroupCriterionLabel ad_group_criterion_label = 121; - - // The ad group criterion simulation referenced in the query. - google.ads.googleads.v3.resources.AdGroupCriterionSimulation ad_group_criterion_simulation = 110; - - // The ad group extension setting referenced in the query. - google.ads.googleads.v3.resources.AdGroupExtensionSetting ad_group_extension_setting = 112; - - // The ad group feed referenced in the query. - google.ads.googleads.v3.resources.AdGroupFeed ad_group_feed = 67; - - // The ad group label referenced in the query. - google.ads.googleads.v3.resources.AdGroupLabel ad_group_label = 115; - - // The ad group simulation referenced in the query. - google.ads.googleads.v3.resources.AdGroupSimulation ad_group_simulation = 107; - - // The ad parameter referenced in the query. - google.ads.googleads.v3.resources.AdParameter ad_parameter = 130; - - // The age range view referenced in the query. - google.ads.googleads.v3.resources.AgeRangeView age_range_view = 48; - - // The ad schedule view referenced in the query. - google.ads.googleads.v3.resources.AdScheduleView ad_schedule_view = 89; - - // The domain category referenced in the query. - google.ads.googleads.v3.resources.DomainCategory domain_category = 91; - - // The asset referenced in the query. - google.ads.googleads.v3.resources.Asset asset = 105; - - // The bidding strategy referenced in the query. - google.ads.googleads.v3.resources.BiddingStrategy bidding_strategy = 18; - - // The billing setup referenced in the query. - google.ads.googleads.v3.resources.BillingSetup billing_setup = 41; - - // The campaign budget referenced in the query. - google.ads.googleads.v3.resources.CampaignBudget campaign_budget = 19; - - // The campaign referenced in the query. - google.ads.googleads.v3.resources.Campaign campaign = 2; - - // The campaign audience view referenced in the query. - google.ads.googleads.v3.resources.CampaignAudienceView campaign_audience_view = 69; - - // The campaign bid modifier referenced in the query. - google.ads.googleads.v3.resources.CampaignBidModifier campaign_bid_modifier = 26; - - // The campaign criterion referenced in the query. - google.ads.googleads.v3.resources.CampaignCriterion campaign_criterion = 20; - - // The campaign criterion simulation referenced in the query. - google.ads.googleads.v3.resources.CampaignCriterionSimulation campaign_criterion_simulation = 111; - - // The campaign draft referenced in the query. - google.ads.googleads.v3.resources.CampaignDraft campaign_draft = 49; - - // The campaign experiment referenced in the query. - google.ads.googleads.v3.resources.CampaignExperiment campaign_experiment = 84; - - // The campaign extension setting referenced in the query. - google.ads.googleads.v3.resources.CampaignExtensionSetting campaign_extension_setting = 113; - - // The campaign feed referenced in the query. - google.ads.googleads.v3.resources.CampaignFeed campaign_feed = 63; - - // The campaign label referenced in the query. - google.ads.googleads.v3.resources.CampaignLabel campaign_label = 108; - - // Campaign Shared Set referenced in AWQL query. - google.ads.googleads.v3.resources.CampaignSharedSet campaign_shared_set = 30; - - // The carrier constant referenced in the query. - google.ads.googleads.v3.resources.CarrierConstant carrier_constant = 66; - - // The ChangeStatus referenced in the query. - google.ads.googleads.v3.resources.ChangeStatus change_status = 37; - - // The conversion action referenced in the query. - google.ads.googleads.v3.resources.ConversionAction conversion_action = 103; - - // The ClickView referenced in the query. - google.ads.googleads.v3.resources.ClickView click_view = 122; - - // The currency constant referenced in the query. - google.ads.googleads.v3.resources.CurrencyConstant currency_constant = 134; - - // The CustomInterest referenced in the query. - google.ads.googleads.v3.resources.CustomInterest custom_interest = 104; - - // The customer referenced in the query. - google.ads.googleads.v3.resources.Customer customer = 1; - - // The CustomerManagerLink referenced in the query. - google.ads.googleads.v3.resources.CustomerManagerLink customer_manager_link = 61; - - // The CustomerClientLink referenced in the query. - google.ads.googleads.v3.resources.CustomerClientLink customer_client_link = 62; - - // The CustomerClient referenced in the query. - google.ads.googleads.v3.resources.CustomerClient customer_client = 70; - - // The customer extension setting referenced in the query. - google.ads.googleads.v3.resources.CustomerExtensionSetting customer_extension_setting = 114; - - // The customer feed referenced in the query. - google.ads.googleads.v3.resources.CustomerFeed customer_feed = 64; - - // The customer label referenced in the query. - google.ads.googleads.v3.resources.CustomerLabel customer_label = 124; - - // The customer negative criterion referenced in the query. - google.ads.googleads.v3.resources.CustomerNegativeCriterion customer_negative_criterion = 88; - - // The detail placement view referenced in the query. - google.ads.googleads.v3.resources.DetailPlacementView detail_placement_view = 118; - - // The display keyword view referenced in the query. - google.ads.googleads.v3.resources.DisplayKeywordView display_keyword_view = 47; - - // The distance view referenced in the query. - google.ads.googleads.v3.resources.DistanceView distance_view = 132; - - // The dynamic search ads search term view referenced in the query. - google.ads.googleads.v3.resources.DynamicSearchAdsSearchTermView dynamic_search_ads_search_term_view = 106; - - // The expanded landing page view referenced in the query. - google.ads.googleads.v3.resources.ExpandedLandingPageView expanded_landing_page_view = 128; - - // The extension feed item referenced in the query. - google.ads.googleads.v3.resources.ExtensionFeedItem extension_feed_item = 85; - - // The feed referenced in the query. - google.ads.googleads.v3.resources.Feed feed = 46; - - // The feed item referenced in the query. - google.ads.googleads.v3.resources.FeedItem feed_item = 50; - - // The feed item target referenced in the query. - google.ads.googleads.v3.resources.FeedItemTarget feed_item_target = 116; - - // The feed mapping referenced in the query. - google.ads.googleads.v3.resources.FeedMapping feed_mapping = 58; - - // The feed placeholder view referenced in the query. - google.ads.googleads.v3.resources.FeedPlaceholderView feed_placeholder_view = 97; - - // The gender view referenced in the query. - google.ads.googleads.v3.resources.GenderView gender_view = 40; - - // The geo target constant referenced in the query. - google.ads.googleads.v3.resources.GeoTargetConstant geo_target_constant = 23; - - // The geographic view referenced in the query. - google.ads.googleads.v3.resources.GeographicView geographic_view = 125; - - // The group placement view referenced in the query. - google.ads.googleads.v3.resources.GroupPlacementView group_placement_view = 119; - - // The hotel group view referenced in the query. - google.ads.googleads.v3.resources.HotelGroupView hotel_group_view = 51; - - // The hotel performance view referenced in the query. - google.ads.googleads.v3.resources.HotelPerformanceView hotel_performance_view = 71; - - // The keyword view referenced in the query. - google.ads.googleads.v3.resources.KeywordView keyword_view = 21; - - // The keyword plan referenced in the query. - google.ads.googleads.v3.resources.KeywordPlan keyword_plan = 32; - - // The keyword plan campaign referenced in the query. - google.ads.googleads.v3.resources.KeywordPlanCampaign keyword_plan_campaign = 33; - - // The keyword plan negative keyword referenced in the query. - google.ads.googleads.v3.resources.KeywordPlanNegativeKeyword keyword_plan_negative_keyword = 34; - - // The keyword plan ad group referenced in the query. - google.ads.googleads.v3.resources.KeywordPlanAdGroup keyword_plan_ad_group = 35; - - // The keyword plan keyword referenced in the query. - google.ads.googleads.v3.resources.KeywordPlanKeyword keyword_plan_keyword = 36; - - // The label referenced in the query. - google.ads.googleads.v3.resources.Label label = 52; - - // The landing page view referenced in the query. - google.ads.googleads.v3.resources.LandingPageView landing_page_view = 126; - - // The language constant referenced in the query. - google.ads.googleads.v3.resources.LanguageConstant language_constant = 55; - - // The location view referenced in the query. - google.ads.googleads.v3.resources.LocationView location_view = 123; - - // The managed placement view referenced in the query. - google.ads.googleads.v3.resources.ManagedPlacementView managed_placement_view = 53; - - // The media file referenced in the query. - google.ads.googleads.v3.resources.MediaFile media_file = 90; - - // The mobile app category constant referenced in the query. - google.ads.googleads.v3.resources.MobileAppCategoryConstant mobile_app_category_constant = 87; - - // The mobile device constant referenced in the query. - google.ads.googleads.v3.resources.MobileDeviceConstant mobile_device_constant = 98; - - // The mutate job referenced in the query. - google.ads.googleads.v3.resources.MutateJob mutate_job = 127; - - // The offline user data job referenced in the query. - google.ads.googleads.v3.resources.OfflineUserDataJob offline_user_data_job = 137; - - // The operating system version constant referenced in the query. - google.ads.googleads.v3.resources.OperatingSystemVersionConstant operating_system_version_constant = 86; - - // The paid organic search term view referenced in the query. - google.ads.googleads.v3.resources.PaidOrganicSearchTermView paid_organic_search_term_view = 129; - - // The parental status view referenced in the query. - google.ads.googleads.v3.resources.ParentalStatusView parental_status_view = 45; - - // The Product Bidding Category referenced in the query. - google.ads.googleads.v3.resources.ProductBiddingCategoryConstant product_bidding_category_constant = 109; - - // The product group view referenced in the query. - google.ads.googleads.v3.resources.ProductGroupView product_group_view = 54; - - // The recommendation referenced in the query. - google.ads.googleads.v3.resources.Recommendation recommendation = 22; - - // The search term view referenced in the query. - google.ads.googleads.v3.resources.SearchTermView search_term_view = 68; - - // The shared set referenced in the query. - google.ads.googleads.v3.resources.SharedCriterion shared_criterion = 29; - - // The shared set referenced in the query. - google.ads.googleads.v3.resources.SharedSet shared_set = 27; - - // The shopping performance view referenced in the query. - google.ads.googleads.v3.resources.ShoppingPerformanceView shopping_performance_view = 117; - - // The topic view referenced in the query. - google.ads.googleads.v3.resources.TopicView topic_view = 44; - - // The user interest referenced in the query. - google.ads.googleads.v3.resources.UserInterest user_interest = 59; - - // The user list referenced in the query. - google.ads.googleads.v3.resources.UserList user_list = 38; - - // The user location view referenced in the query. - google.ads.googleads.v3.resources.UserLocationView user_location_view = 135; - - // The remarketing action referenced in the query. - google.ads.googleads.v3.resources.RemarketingAction remarketing_action = 60; - - // The topic constant referenced in the query. - google.ads.googleads.v3.resources.TopicConstant topic_constant = 31; - - // The video referenced in the query. - google.ads.googleads.v3.resources.Video video = 39; - - // The metrics. - google.ads.googleads.v3.common.Metrics metrics = 4; - - // The segments. - google.ads.googleads.v3.common.Segments segments = 102; -} - -// Request message for [GoogleAdsService.Mutate][google.ads.googleads.v3.services.GoogleAdsService.Mutate]. -message MutateGoogleAdsRequest { - // Required. The ID of the customer whose resources are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual resources. - repeated MutateOperation mutate_operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// Response message for [GoogleAdsService.Mutate][google.ads.googleads.v3.services.GoogleAdsService.Mutate]. -message MutateGoogleAdsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g., auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All responses for the mutate. - repeated MutateOperationResponse mutate_operation_responses = 1; -} - -// A single operation (create, update, remove) on a resource. -message MutateOperation { - // The mutate operation. - oneof operation { - // An ad group ad label mutate operation. - AdGroupAdLabelOperation ad_group_ad_label_operation = 17; - - // An ad group ad mutate operation. - AdGroupAdOperation ad_group_ad_operation = 1; - - // An ad group bid modifier mutate operation. - AdGroupBidModifierOperation ad_group_bid_modifier_operation = 2; - - // An ad group criterion label mutate operation. - AdGroupCriterionLabelOperation ad_group_criterion_label_operation = 18; - - // An ad group criterion mutate operation. - AdGroupCriterionOperation ad_group_criterion_operation = 3; - - // An ad group extension setting mutate operation. - AdGroupExtensionSettingOperation ad_group_extension_setting_operation = 19; - - // An ad group feed mutate operation. - AdGroupFeedOperation ad_group_feed_operation = 20; - - // An ad group label mutate operation. - AdGroupLabelOperation ad_group_label_operation = 21; - - // An ad group mutate operation. - AdGroupOperation ad_group_operation = 5; - - // An ad mutate operation. - AdOperation ad_operation = 49; - - // An ad parameter mutate operation. - AdParameterOperation ad_parameter_operation = 22; - - // An asset mutate operation. - AssetOperation asset_operation = 23; - - // A bidding strategy mutate operation. - BiddingStrategyOperation bidding_strategy_operation = 6; - - // A campaign bid modifier mutate operation. - CampaignBidModifierOperation campaign_bid_modifier_operation = 7; - - // A campaign budget mutate operation. - CampaignBudgetOperation campaign_budget_operation = 8; - - // A campaign criterion mutate operation. - CampaignCriterionOperation campaign_criterion_operation = 13; - - // A campaign draft mutate operation. - CampaignDraftOperation campaign_draft_operation = 24; - - // A campaign experiment mutate operation. - CampaignExperimentOperation campaign_experiment_operation = 25; - - // A campaign extension setting mutate operation. - CampaignExtensionSettingOperation campaign_extension_setting_operation = 26; - - // A campaign feed mutate operation. - CampaignFeedOperation campaign_feed_operation = 27; - - // A campaign label mutate operation. - CampaignLabelOperation campaign_label_operation = 28; - - // A campaign mutate operation. - CampaignOperation campaign_operation = 10; - - // A campaign shared set mutate operation. - CampaignSharedSetOperation campaign_shared_set_operation = 11; - - // A conversion action mutate operation. - ConversionActionOperation conversion_action_operation = 12; - - // A customer extension setting mutate operation. - CustomerExtensionSettingOperation customer_extension_setting_operation = 30; - - // A customer feed mutate operation. - CustomerFeedOperation customer_feed_operation = 31; - - // A customer label mutate operation. - CustomerLabelOperation customer_label_operation = 32; - - // A customer negative criterion mutate operation. - CustomerNegativeCriterionOperation customer_negative_criterion_operation = 34; - - // A customer mutate operation. - CustomerOperation customer_operation = 35; - - // An extension feed item mutate operation. - ExtensionFeedItemOperation extension_feed_item_operation = 36; - - // A feed item mutate operation. - FeedItemOperation feed_item_operation = 37; - - // A feed item target mutate operation. - FeedItemTargetOperation feed_item_target_operation = 38; - - // A feed mapping mutate operation. - FeedMappingOperation feed_mapping_operation = 39; - - // A feed mutate operation. - FeedOperation feed_operation = 40; - - // A label mutate operation. - LabelOperation label_operation = 41; - - // A media file mutate operation. - MediaFileOperation media_file_operation = 42; - - // A remarketing action mutate operation. - RemarketingActionOperation remarketing_action_operation = 43; - - // A shared criterion mutate operation. - SharedCriterionOperation shared_criterion_operation = 14; - - // A shared set mutate operation. - SharedSetOperation shared_set_operation = 15; - - // A user list mutate operation. - UserListOperation user_list_operation = 16; - } -} - -// Response message for the resource mutate. -message MutateOperationResponse { - // The mutate response. - oneof response { - // The result for the ad group ad label mutate. - MutateAdGroupAdLabelResult ad_group_ad_label_result = 17; - - // The result for the ad group ad mutate. - MutateAdGroupAdResult ad_group_ad_result = 1; - - // The result for the ad group bid modifier mutate. - MutateAdGroupBidModifierResult ad_group_bid_modifier_result = 2; - - // The result for the ad group criterion label mutate. - MutateAdGroupCriterionLabelResult ad_group_criterion_label_result = 18; - - // The result for the ad group criterion mutate. - MutateAdGroupCriterionResult ad_group_criterion_result = 3; - - // The result for the ad group extension setting mutate. - MutateAdGroupExtensionSettingResult ad_group_extension_setting_result = 19; - - // The result for the ad group feed mutate. - MutateAdGroupFeedResult ad_group_feed_result = 20; - - // The result for the ad group label mutate. - MutateAdGroupLabelResult ad_group_label_result = 21; - - // The result for the ad group mutate. - MutateAdGroupResult ad_group_result = 5; - - // The result for the ad parameter mutate. - MutateAdParameterResult ad_parameter_result = 22; - - // The result for the ad mutate. - MutateAdResult ad_result = 49; - - // The result for the asset mutate. - MutateAssetResult asset_result = 23; - - // The result for the bidding strategy mutate. - MutateBiddingStrategyResult bidding_strategy_result = 6; - - // The result for the campaign bid modifier mutate. - MutateCampaignBidModifierResult campaign_bid_modifier_result = 7; - - // The result for the campaign budget mutate. - MutateCampaignBudgetResult campaign_budget_result = 8; - - // The result for the campaign criterion mutate. - MutateCampaignCriterionResult campaign_criterion_result = 13; - - // The result for the campaign draft mutate. - MutateCampaignDraftResult campaign_draft_result = 24; - - // The result for the campaign experiment mutate. - MutateCampaignExperimentResult campaign_experiment_result = 25; - - // The result for the campaign extension setting mutate. - MutateCampaignExtensionSettingResult campaign_extension_setting_result = 26; - - // The result for the campaign feed mutate. - MutateCampaignFeedResult campaign_feed_result = 27; - - // The result for the campaign label mutate. - MutateCampaignLabelResult campaign_label_result = 28; - - // The result for the campaign mutate. - MutateCampaignResult campaign_result = 10; - - // The result for the campaign shared set mutate. - MutateCampaignSharedSetResult campaign_shared_set_result = 11; - - // The result for the conversion action mutate. - MutateConversionActionResult conversion_action_result = 12; - - // The result for the customer extension setting mutate. - MutateCustomerExtensionSettingResult customer_extension_setting_result = 30; - - // The result for the customer feed mutate. - MutateCustomerFeedResult customer_feed_result = 31; - - // The result for the customer label mutate. - MutateCustomerLabelResult customer_label_result = 32; - - // The result for the customer negative criterion mutate. - MutateCustomerNegativeCriteriaResult customer_negative_criterion_result = 34; - - // The result for the customer mutate. - MutateCustomerResult customer_result = 35; - - // The result for the extension feed item mutate. - MutateExtensionFeedItemResult extension_feed_item_result = 36; - - // The result for the feed item mutate. - MutateFeedItemResult feed_item_result = 37; - - // The result for the feed item target mutate. - MutateFeedItemTargetResult feed_item_target_result = 38; - - // The result for the feed mapping mutate. - MutateFeedMappingResult feed_mapping_result = 39; - - // The result for the feed mutate. - MutateFeedResult feed_result = 40; - - // The result for the label mutate. - MutateLabelResult label_result = 41; - - // The result for the media file mutate. - MutateMediaFileResult media_file_result = 42; - - // The result for the remarketing action mutate. - MutateRemarketingActionResult remarketing_action_result = 43; - - // The result for the shared criterion mutate. - MutateSharedCriterionResult shared_criterion_result = 14; - - // The result for the shared set mutate. - MutateSharedSetResult shared_set_result = 15; - - // The result for the user list mutate. - MutateUserListResult user_list_result = 16; - } -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/group_placement_view_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/group_placement_view_service.proto deleted file mode 100644 index 0f8a3a668..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/group_placement_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/group_placement_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "GroupPlacementViewServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Group Placement View service. - -// Service to fetch Group Placement views. -service GroupPlacementViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested Group Placement view in full detail. - rpc GetGroupPlacementView(GetGroupPlacementViewRequest) returns (google.ads.googleads.v3.resources.GroupPlacementView) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/groupPlacementViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [GroupPlacementViewService.GetGroupPlacementView][google.ads.googleads.v3.services.GroupPlacementViewService.GetGroupPlacementView]. -message GetGroupPlacementViewRequest { - // Required. The resource name of the Group Placement view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/GroupPlacementView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/hotel_group_view_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/hotel_group_view_service.proto deleted file mode 100644 index 2354eff9a..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/hotel_group_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/hotel_group_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "HotelGroupViewServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Hotel Group View Service. - -// Service to manage Hotel Group Views. -service HotelGroupViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested Hotel Group View in full detail. - rpc GetHotelGroupView(GetHotelGroupViewRequest) returns (google.ads.googleads.v3.resources.HotelGroupView) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/hotelGroupViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [HotelGroupViewService.GetHotelGroupView][google.ads.googleads.v3.services.HotelGroupViewService.GetHotelGroupView]. -message GetHotelGroupViewRequest { - // Required. Resource name of the Hotel Group View to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/HotelGroupView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/hotel_performance_view_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/hotel_performance_view_service.proto deleted file mode 100644 index c24eff83c..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/hotel_performance_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/hotel_performance_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "HotelPerformanceViewServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Hotel Performance View Service. - -// Service to manage Hotel Performance Views. -service HotelPerformanceViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested Hotel Performance View in full detail. - rpc GetHotelPerformanceView(GetHotelPerformanceViewRequest) returns (google.ads.googleads.v3.resources.HotelPerformanceView) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/hotelPerformanceView}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [HotelPerformanceViewService.GetHotelPerformanceView][google.ads.googleads.v3.services.HotelPerformanceViewService.GetHotelPerformanceView]. -message GetHotelPerformanceViewRequest { - // Required. Resource name of the Hotel Performance View to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/HotelPerformanceView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/invoice_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/invoice_service.proto deleted file mode 100644 index 614cf93e9..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/invoice_service.proto +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/enums/month_of_year.proto"; -import "google/ads/googleads/v3/resources/invoice.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "InvoiceServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Invoice service. - -// A service to fetch invoices issued for a billing setup during a given month. -service InvoiceService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns all invoices associated with a billing setup, for a given month. - rpc ListInvoices(ListInvoicesRequest) returns (ListInvoicesResponse) { - option (google.api.http) = { - get: "/v3/customers/{customer_id=*}/invoices" - }; - option (google.api.method_signature) = "customer_id,billing_setup,issue_year,issue_month"; - } -} - -// Request message for fetching the invoices of a given billing setup that were -// issued during a given month. -message ListInvoicesRequest { - // Required. The ID of the customer to fetch invoices for. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The billing setup resource name of the requested invoices. - // - // `customers/{customer_id}/billingSetups/{billing_setup_id}` - string billing_setup = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. The issue year to retrieve invoices, in yyyy format. Only - // invoices issued in 2019 or later can be retrieved. - string issue_year = 3 [(google.api.field_behavior) = REQUIRED]; - - // Required. The issue month to retrieve invoices. - google.ads.googleads.v3.enums.MonthOfYearEnum.MonthOfYear issue_month = 4 [(google.api.field_behavior) = REQUIRED]; -} - -// Response message for [InvoiceService.ListInvoices][google.ads.googleads.v3.services.InvoiceService.ListInvoices]. -message ListInvoicesResponse { - // The list of invoices that match the billing setup and time period. - repeated google.ads.googleads.v3.resources.Invoice invoices = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/keyword_plan_ad_group_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/keyword_plan_ad_group_service.proto deleted file mode 100644 index ffd28fcd7..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/keyword_plan_ad_group_service.proto +++ /dev/null @@ -1,132 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/keyword_plan_ad_group.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "KeywordPlanAdGroupServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the keyword plan ad group service. - -// Service to manage Keyword Plan ad groups. -service KeywordPlanAdGroupService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested Keyword Plan ad group in full detail. - rpc GetKeywordPlanAdGroup(GetKeywordPlanAdGroupRequest) returns (google.ads.googleads.v3.resources.KeywordPlanAdGroup) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/keywordPlanAdGroups/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes Keyword Plan ad groups. Operation statuses are - // returned. - rpc MutateKeywordPlanAdGroups(MutateKeywordPlanAdGroupsRequest) returns (MutateKeywordPlanAdGroupsResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/keywordPlanAdGroups:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [KeywordPlanAdGroupService.GetKeywordPlanAdGroup][google.ads.googleads.v3.services.KeywordPlanAdGroupService.GetKeywordPlanAdGroup]. -message GetKeywordPlanAdGroupRequest { - // Required. The resource name of the Keyword Plan ad group to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/KeywordPlanAdGroup" - } - ]; -} - -// Request message for [KeywordPlanAdGroupService.MutateKeywordPlanAdGroups][google.ads.googleads.v3.services.KeywordPlanAdGroupService.MutateKeywordPlanAdGroups]. -message MutateKeywordPlanAdGroupsRequest { - // Required. The ID of the customer whose Keyword Plan ad groups are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual Keyword Plan ad groups. - repeated KeywordPlanAdGroupOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update, remove) on a Keyword Plan ad group. -message KeywordPlanAdGroupOperation { - // The FieldMask that determines which resource fields are modified in an - // update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new Keyword Plan - // ad group. - google.ads.googleads.v3.resources.KeywordPlanAdGroup create = 1; - - // Update operation: The Keyword Plan ad group is expected to have a valid - // resource name. - google.ads.googleads.v3.resources.KeywordPlanAdGroup update = 2; - - // Remove operation: A resource name for the removed Keyword Plan ad group - // is expected, in this format: - // - // `customers/{customer_id}/keywordPlanAdGroups/{kp_ad_group_id}` - string remove = 3; - } -} - -// Response message for a Keyword Plan ad group mutate. -message MutateKeywordPlanAdGroupsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. The order of the results is determined by the - // order of the keywords in the original request. - repeated MutateKeywordPlanAdGroupResult results = 2; -} - -// The result for the Keyword Plan ad group mutate. -message MutateKeywordPlanAdGroupResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/keyword_plan_campaign_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/keyword_plan_campaign_service.proto deleted file mode 100644 index 728a90c2b..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/keyword_plan_campaign_service.proto +++ /dev/null @@ -1,132 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/keyword_plan_campaign.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "KeywordPlanCampaignServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the keyword plan campaign service. - -// Service to manage Keyword Plan campaigns. -service KeywordPlanCampaignService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested Keyword Plan campaign in full detail. - rpc GetKeywordPlanCampaign(GetKeywordPlanCampaignRequest) returns (google.ads.googleads.v3.resources.KeywordPlanCampaign) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/keywordPlanCampaigns/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes Keyword Plan campaigns. Operation statuses are - // returned. - rpc MutateKeywordPlanCampaigns(MutateKeywordPlanCampaignsRequest) returns (MutateKeywordPlanCampaignsResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/keywordPlanCampaigns:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [KeywordPlanCampaignService.GetKeywordPlanCampaign][google.ads.googleads.v3.services.KeywordPlanCampaignService.GetKeywordPlanCampaign]. -message GetKeywordPlanCampaignRequest { - // Required. The resource name of the Keyword Plan campaign to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/KeywordPlanCampaign" - } - ]; -} - -// Request message for -// [KeywordPlanCampaignService.MutateKeywordPlanCampaigns][google.ads.googleads.v3.services.KeywordPlanCampaignService.MutateKeywordPlanCampaigns]. -message MutateKeywordPlanCampaignsRequest { - // Required. The ID of the customer whose Keyword Plan campaigns are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual Keyword Plan campaigns. - repeated KeywordPlanCampaignOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update, remove) on a Keyword Plan campaign. -message KeywordPlanCampaignOperation { - // The FieldMask that determines which resource fields are modified in an - // update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new Keyword Plan - // campaign. - google.ads.googleads.v3.resources.KeywordPlanCampaign create = 1; - - // Update operation: The Keyword Plan campaign is expected to have a valid - // resource name. - google.ads.googleads.v3.resources.KeywordPlanCampaign update = 2; - - // Remove operation: A resource name for the removed Keyword Plan campaign - // is expected, in this format: - // - // `customers/{customer_id}/keywordPlanCampaigns/{keywordPlan_campaign_id}` - string remove = 3; - } -} - -// Response message for a Keyword Plan campaign mutate. -message MutateKeywordPlanCampaignsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateKeywordPlanCampaignResult results = 2; -} - -// The result for the Keyword Plan campaign mutate. -message MutateKeywordPlanCampaignResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/keyword_plan_idea_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/keyword_plan_idea_service.proto deleted file mode 100644 index 81eb50a4a..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/keyword_plan_idea_service.proto +++ /dev/null @@ -1,117 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/common/keyword_plan_common.proto"; -import "google/ads/googleads/v3/enums/keyword_plan_network.proto"; -import "google/api/annotations.proto"; -import "google/api/field_behavior.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/client.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "KeywordPlanIdeaServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the keyword plan idea service. - -// Service to generate keyword ideas. -service KeywordPlanIdeaService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns a list of keyword ideas. - rpc GenerateKeywordIdeas(GenerateKeywordIdeasRequest) returns (GenerateKeywordIdeaResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}:generateKeywordIdeas" - body: "*" - }; - } -} - -// Request message for [KeywordPlanIdeaService.GenerateKeywordIdeas][google.ads.googleads.v3.services.KeywordPlanIdeaService.GenerateKeywordIdeas]. -message GenerateKeywordIdeasRequest { - // The ID of the customer with the recommendation. - string customer_id = 1; - - // Required. The resource name of the language to target. - // Required - google.protobuf.StringValue language = 7 [(google.api.field_behavior) = REQUIRED]; - - // The resource names of the location to target. - // Max 10 - repeated google.protobuf.StringValue geo_target_constants = 8; - - // Targeting network. - google.ads.googleads.v3.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork keyword_plan_network = 9; - - // The type of seed to generate keyword ideas. - oneof seed { - // A Keyword and a specific Url to generate ideas from - // e.g. cars, www.example.com/cars. - KeywordAndUrlSeed keyword_and_url_seed = 2; - - // A Keyword or phrase to generate ideas from, e.g. cars. - KeywordSeed keyword_seed = 3; - - // A specific url to generate ideas from, e.g. www.example.com/cars. - UrlSeed url_seed = 5; - } -} - -// Keyword And Url Seed -message KeywordAndUrlSeed { - // The URL to crawl in order to generate keyword ideas. - google.protobuf.StringValue url = 1; - - // Requires at least one keyword. - repeated google.protobuf.StringValue keywords = 2; -} - -// Keyword Seed -message KeywordSeed { - // Requires at least one keyword. - repeated google.protobuf.StringValue keywords = 1; -} - -// Url Seed -message UrlSeed { - // The URL to crawl in order to generate keyword ideas. - google.protobuf.StringValue url = 1; -} - -// Response message for [KeywordPlanIdeaService.GenerateKeywordIdeas][google.ads.googleads.v3.services.KeywordPlanIdeaService.GenerateKeywordIdeas]. -message GenerateKeywordIdeaResponse { - // Results of generating keyword ideas. - repeated GenerateKeywordIdeaResult results = 1; -} - -// The result of generating keyword ideas. -message GenerateKeywordIdeaResult { - // Text of the keyword idea. - // As in Keyword Plan historical metrics, this text may not be an actual - // keyword, but the canonical form of multiple keywords. - // See KeywordPlanKeywordHistoricalMetrics message in KeywordPlanService. - google.protobuf.StringValue text = 2; - - // The historical metrics for the keyword - google.ads.googleads.v3.common.KeywordPlanHistoricalMetrics keyword_idea_metrics = 3; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/keyword_plan_keyword_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/keyword_plan_keyword_service.proto deleted file mode 100644 index 5806273ef..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/keyword_plan_keyword_service.proto +++ /dev/null @@ -1,131 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/keyword_plan_keyword.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "KeywordPlanKeywordServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the keyword plan keyword service. - -// Service to manage Keyword Plan ad group keywords. -service KeywordPlanKeywordService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested Keyword Plan keyword in full detail. - rpc GetKeywordPlanKeyword(GetKeywordPlanKeywordRequest) returns (google.ads.googleads.v3.resources.KeywordPlanKeyword) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/keywordPlanKeywords/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes Keyword Plan keywords. Operation statuses are - // returned. - rpc MutateKeywordPlanKeywords(MutateKeywordPlanKeywordsRequest) returns (MutateKeywordPlanKeywordsResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/keywordPlanKeywords:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [KeywordPlanKeywordService.GetKeywordPlanKeyword][google.ads.googleads.v3.services.KeywordPlanKeywordService.GetKeywordPlanKeyword]. -message GetKeywordPlanKeywordRequest { - // Required. The resource name of the ad group keyword to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/KeywordPlanKeyword" - } - ]; -} - -// Request message for [KeywordPlanKeywordService.MutateKeywordPlanKeywords][google.ads.googleads.v3.services.KeywordPlanKeywordService.MutateKeywordPlanKeywords]. -message MutateKeywordPlanKeywordsRequest { - // Required. The ID of the customer whose Keyword Plan keywords are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual Keyword Plan keywords. - repeated KeywordPlanKeywordOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update, remove) on a Keyword Plan keyword. -message KeywordPlanKeywordOperation { - // The FieldMask that determines which resource fields are modified in an - // update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new Keyword Plan - // ad group keyword. - google.ads.googleads.v3.resources.KeywordPlanKeyword create = 1; - - // Update operation: The Keyword Plan keyword is expected to have a valid - // resource name. - google.ads.googleads.v3.resources.KeywordPlanKeyword update = 2; - - // Remove operation: A resource name for the removed Keyword Plan keyword is - // expected, in this format: - // - // `customers/{customer_id}/keywordPlanKeywords/{kp_ad_group_keyword_id}` - string remove = 3; - } -} - -// Response message for a Keyword Plan keyword mutate. -message MutateKeywordPlanKeywordsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateKeywordPlanKeywordResult results = 2; -} - -// The result for the Keyword Plan keyword mutate. -message MutateKeywordPlanKeywordResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/keyword_plan_negative_keyword_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/keyword_plan_negative_keyword_service.proto deleted file mode 100644 index b40bbe457..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/keyword_plan_negative_keyword_service.proto +++ /dev/null @@ -1,135 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/keyword_plan_negative_keyword.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "KeywordPlanNegativeKeywordServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the keyword plan negative keyword service. - -// Service to manage Keyword Plan negative keywords. -service KeywordPlanNegativeKeywordService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested plan in full detail. - rpc GetKeywordPlanNegativeKeyword(GetKeywordPlanNegativeKeywordRequest) returns (google.ads.googleads.v3.resources.KeywordPlanNegativeKeyword) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/keywordPlanNegativeKeywords/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes Keyword Plan negative keywords. Operation - // statuses are returned. - rpc MutateKeywordPlanNegativeKeywords(MutateKeywordPlanNegativeKeywordsRequest) returns (MutateKeywordPlanNegativeKeywordsResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/keywordPlanNegativeKeywords:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for -// [KeywordPlanNegativeKeywordService.GetKeywordPlanNegativeKeyword][google.ads.googleads.v3.services.KeywordPlanNegativeKeywordService.GetKeywordPlanNegativeKeyword]. -message GetKeywordPlanNegativeKeywordRequest { - // Required. The resource name of the plan to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/KeywordPlanNegativeKeyword" - } - ]; -} - -// Request message for -// [KeywordPlanNegativeKeywordService.MutateKeywordPlanNegativeKeywords][google.ads.googleads.v3.services.KeywordPlanNegativeKeywordService.MutateKeywordPlanNegativeKeywords]. -message MutateKeywordPlanNegativeKeywordsRequest { - // Required. The ID of the customer whose negative keywords are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual Keyword Plan negative - // keywords. - repeated KeywordPlanNegativeKeywordOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update, remove) on a Keyword Plan negative -// keyword. -message KeywordPlanNegativeKeywordOperation { - // The FieldMask that determines which resource fields are modified in an - // update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new Keyword Plan - // negative keyword. - google.ads.googleads.v3.resources.KeywordPlanNegativeKeyword create = 1; - - // Update operation: The Keyword Plan negative keyword expected to have a - // valid resource name. - google.ads.googleads.v3.resources.KeywordPlanNegativeKeyword update = 2; - - // Remove operation: A resource name for the removed Keyword Plan negative - // keywords expected in this format: - // - // `customers/{customer_id}/keywordPlanNegativeKeywords/{kp_negative_keyword_id}` - string remove = 3; - } -} - -// Response message for a Keyword Plan negative keyword mutate. -message MutateKeywordPlanNegativeKeywordsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateKeywordPlanNegativeKeywordResult results = 2; -} - -// The result for the Keyword Plan negative keyword mutate. -message MutateKeywordPlanNegativeKeywordResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/keyword_plan_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/keyword_plan_service.proto deleted file mode 100644 index 9f2675c42..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/keyword_plan_service.proto +++ /dev/null @@ -1,251 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/common/keyword_plan_common.proto"; -import "google/ads/googleads/v3/resources/keyword_plan.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/protobuf/wrappers.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "KeywordPlanServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the keyword plan service. - -// Service to manage keyword plans. -service KeywordPlanService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested plan in full detail. - rpc GetKeywordPlan(GetKeywordPlanRequest) returns (google.ads.googleads.v3.resources.KeywordPlan) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/keywordPlans/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes keyword plans. Operation statuses are - // returned. - rpc MutateKeywordPlans(MutateKeywordPlansRequest) returns (MutateKeywordPlansResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/keywordPlans:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } - - // Returns the requested Keyword Plan forecasts. - rpc GenerateForecastMetrics(GenerateForecastMetricsRequest) returns (GenerateForecastMetricsResponse) { - option (google.api.http) = { - post: "/v3/{keyword_plan=customers/*/keywordPlans/*}:generateForecastMetrics" - body: "*" - }; - option (google.api.method_signature) = "keyword_plan"; - } - - // Returns the requested Keyword Plan historical metrics. - rpc GenerateHistoricalMetrics(GenerateHistoricalMetricsRequest) returns (GenerateHistoricalMetricsResponse) { - option (google.api.http) = { - post: "/v3/{keyword_plan=customers/*/keywordPlans/*}:generateHistoricalMetrics" - body: "*" - }; - option (google.api.method_signature) = "keyword_plan"; - } -} - -// Request message for [KeywordPlanService.GetKeywordPlan][google.ads.googleads.v3.services.KeywordPlanService.GetKeywordPlan]. -message GetKeywordPlanRequest { - // Required. The resource name of the plan to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/KeywordPlan" - } - ]; -} - -// Request message for [KeywordPlanService.MutateKeywordPlans][google.ads.googleads.v3.services.KeywordPlanService.MutateKeywordPlans]. -message MutateKeywordPlansRequest { - // Required. The ID of the customer whose keyword plans are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual keyword plans. - repeated KeywordPlanOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update, remove) on a keyword plan. -message KeywordPlanOperation { - // The FieldMask that determines which resource fields are modified in an - // update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new keyword plan. - google.ads.googleads.v3.resources.KeywordPlan create = 1; - - // Update operation: The keyword plan is expected to have a valid resource - // name. - google.ads.googleads.v3.resources.KeywordPlan update = 2; - - // Remove operation: A resource name for the removed keyword plan is - // expected in this format: - // - // `customers/{customer_id}/keywordPlans/{keyword_plan_id}` - string remove = 3; - } -} - -// Response message for a keyword plan mutate. -message MutateKeywordPlansResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateKeywordPlansResult results = 2; -} - -// The result for the keyword plan mutate. -message MutateKeywordPlansResult { - // Returned for successful operations. - string resource_name = 1; -} - -// Request message for [KeywordPlanService.GenerateForecastMetrics][google.ads.googleads.v3.services.KeywordPlanService.GenerateForecastMetrics]. -message GenerateForecastMetricsRequest { - // Required. The resource name of the keyword plan to be forecasted. - string keyword_plan = 1 [(google.api.field_behavior) = REQUIRED]; -} - -// Response message for [KeywordPlanService.GenerateForecastMetrics][google.ads.googleads.v3.services.KeywordPlanService.GenerateForecastMetrics]. -message GenerateForecastMetricsResponse { - // List of campaign forecasts. - // One maximum. - repeated KeywordPlanCampaignForecast campaign_forecasts = 1; - - // List of ad group forecasts. - repeated KeywordPlanAdGroupForecast ad_group_forecasts = 2; - - // List of keyword forecasts. - repeated KeywordPlanKeywordForecast keyword_forecasts = 3; -} - -// A campaign forecast. -message KeywordPlanCampaignForecast { - // The resource name of the Keyword Plan campaign related to the forecast. - // - // `customers/{customer_id}/keywordPlanCampaigns/{keyword_plan_campaign_id}` - google.protobuf.StringValue keyword_plan_campaign = 1; - - // The forecast for the Keyword Plan campaign. - ForecastMetrics campaign_forecast = 2; -} - -// An ad group forecast. -message KeywordPlanAdGroupForecast { - // The resource name of the Keyword Plan ad group related to the forecast. - // - // `customers/{customer_id}/keywordPlanAdGroups/{keyword_plan_ad_group_id}` - google.protobuf.StringValue keyword_plan_ad_group = 1; - - // The forecast for the Keyword Plan ad group. - ForecastMetrics ad_group_forecast = 2; -} - -// A keyword forecast. -message KeywordPlanKeywordForecast { - // The resource name of the Keyword Plan keyword related to the forecast. - // - // `customers/{customer_id}/keywordPlanAdGroupKeywords/{keyword_plan_ad_group_keyword_id}` - google.protobuf.StringValue keyword_plan_ad_group_keyword = 1; - - // The forecast for the Keyword Plan keyword. - ForecastMetrics keyword_forecast = 2; -} - -// Forecast metrics. -message ForecastMetrics { - // Impressions - google.protobuf.DoubleValue impressions = 1; - - // Ctr - google.protobuf.DoubleValue ctr = 2; - - // AVG cpc - google.protobuf.Int64Value average_cpc = 3; - - // Clicks - google.protobuf.DoubleValue clicks = 5; - - // Cost - google.protobuf.Int64Value cost_micros = 6; -} - -// Request message for [KeywordPlanService.GenerateHistoricalMetrics][google.ads.googleads.v3.services.KeywordPlanService.GenerateHistoricalMetrics]. -message GenerateHistoricalMetricsRequest { - // Required. The resource name of the keyword plan of which historical metrics are - // requested. - string keyword_plan = 1 [(google.api.field_behavior) = REQUIRED]; -} - -// Response message for [KeywordPlanService.GenerateHistoricalMetrics][google.ads.googleads.v3.services.KeywordPlanService.GenerateHistoricalMetrics]. -message GenerateHistoricalMetricsResponse { - // List of keyword historical metrics. - repeated KeywordPlanKeywordHistoricalMetrics metrics = 1; -} - -// A keyword historical metrics. -message KeywordPlanKeywordHistoricalMetrics { - // The text of the query associated with one or more ad_group_keywords in the - // plan. - // - // Note that we de-dupe your keywords list, eliminating close variants before - // returning the plan's keywords as text. For example, if your plan originally - // contained the keywords 'car' and 'cars', the returned search query will - // only contain 'cars'. - // Starting V5, the list of de-duped queries will be included in - // close_variants field. - google.protobuf.StringValue search_query = 1; - - // The historical metrics for the query associated with one or more - // ad_group_keywords in the plan. - google.ads.googleads.v3.common.KeywordPlanHistoricalMetrics keyword_metrics = 2; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/keyword_view_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/keyword_view_service.proto deleted file mode 100644 index da07da190..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/keyword_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/keyword_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "KeywordViewServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Keyword View service. - -// Service to manage keyword views. -service KeywordViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested keyword view in full detail. - rpc GetKeywordView(GetKeywordViewRequest) returns (google.ads.googleads.v3.resources.KeywordView) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/keywordViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [KeywordViewService.GetKeywordView][google.ads.googleads.v3.services.KeywordViewService.GetKeywordView]. -message GetKeywordViewRequest { - // Required. The resource name of the keyword view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/KeywordView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/label_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/label_service.proto deleted file mode 100644 index f0a341314..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/label_service.proto +++ /dev/null @@ -1,125 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/label.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "LabelServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Service to manage labels. -service LabelService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested label in full detail. - rpc GetLabel(GetLabelRequest) returns (google.ads.googleads.v3.resources.Label) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/labels/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes labels. Operation statuses are returned. - rpc MutateLabels(MutateLabelsRequest) returns (MutateLabelsResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/labels:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [LabelService.GetLabel][google.ads.googleads.v3.services.LabelService.GetLabel]. -message GetLabelRequest { - // Required. The resource name of the label to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Label" - } - ]; -} - -// Request message for [LabelService.MutateLabels][google.ads.googleads.v3.services.LabelService.MutateLabels]. -message MutateLabelsRequest { - // Required. ID of the customer whose labels are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on labels. - repeated LabelOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, remove, update) on a label. -message LabelOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new label. - google.ads.googleads.v3.resources.Label create = 1; - - // Update operation: The label is expected to have a valid resource name. - google.ads.googleads.v3.resources.Label update = 2; - - // Remove operation: A resource name for the label being removed, in - // this format: - // - // `customers/{customer_id}/labels/{label_id}` - string remove = 3; - } -} - -// Response message for a labels mutate. -message MutateLabelsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateLabelResult results = 2; -} - -// The result for a label mutate. -message MutateLabelResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/landing_page_view_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/landing_page_view_service.proto deleted file mode 100644 index 8ea75bdf3..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/landing_page_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/landing_page_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "LandingPageViewServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the landing page view service. - -// Service to fetch landing page views. -service LandingPageViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested landing page view in full detail. - rpc GetLandingPageView(GetLandingPageViewRequest) returns (google.ads.googleads.v3.resources.LandingPageView) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/landingPageViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [LandingPageViewService.GetLandingPageView][google.ads.googleads.v3.services.LandingPageViewService.GetLandingPageView]. -message GetLandingPageViewRequest { - // Required. The resource name of the landing page view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/LandingPageView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/language_constant_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/language_constant_service.proto deleted file mode 100644 index f1bb58598..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/language_constant_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/language_constant.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "LanguageConstantServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the language constant service. - -// Service to fetch language constants. -service LanguageConstantService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested language constant. - rpc GetLanguageConstant(GetLanguageConstantRequest) returns (google.ads.googleads.v3.resources.LanguageConstant) { - option (google.api.http) = { - get: "/v3/{resource_name=languageConstants/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [LanguageConstantService.GetLanguageConstant][google.ads.googleads.v3.services.LanguageConstantService.GetLanguageConstant]. -message GetLanguageConstantRequest { - // Required. Resource name of the language constant to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/LanguageConstant" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/location_view_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/location_view_service.proto deleted file mode 100644 index cb8d8602f..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/location_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/location_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "LocationViewServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Location View service. - -// Service to fetch location views. -service LocationViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested location view in full detail. - rpc GetLocationView(GetLocationViewRequest) returns (google.ads.googleads.v3.resources.LocationView) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/locationViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [LocationViewService.GetLocationView][google.ads.googleads.v3.services.LocationViewService.GetLocationView]. -message GetLocationViewRequest { - // Required. The resource name of the location view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/LocationView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/managed_placement_view_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/managed_placement_view_service.proto deleted file mode 100644 index cb8c938dc..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/managed_placement_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/managed_placement_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "ManagedPlacementViewServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Managed Placement View service. - -// Service to manage Managed Placement views. -service ManagedPlacementViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested Managed Placement view in full detail. - rpc GetManagedPlacementView(GetManagedPlacementViewRequest) returns (google.ads.googleads.v3.resources.ManagedPlacementView) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/managedPlacementViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [ManagedPlacementViewService.GetManagedPlacementView][google.ads.googleads.v3.services.ManagedPlacementViewService.GetManagedPlacementView]. -message GetManagedPlacementViewRequest { - // Required. The resource name of the Managed Placement View to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/ManagedPlacementView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/media_file_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/media_file_service.proto deleted file mode 100644 index 54e27bea9..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/media_file_service.proto +++ /dev/null @@ -1,114 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/media_file.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "MediaFileServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Media File service. - -// Service to manage media files. -service MediaFileService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested media file in full detail. - rpc GetMediaFile(GetMediaFileRequest) returns (google.ads.googleads.v3.resources.MediaFile) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/mediaFiles/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates media files. Operation statuses are returned. - rpc MutateMediaFiles(MutateMediaFilesRequest) returns (MutateMediaFilesResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/mediaFiles:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [MediaFileService.GetMediaFile][google.ads.googleads.v3.services.MediaFileService.GetMediaFile] -message GetMediaFileRequest { - // Required. The resource name of the media file to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/MediaFile" - } - ]; -} - -// Request message for [MediaFileService.MutateMediaFiles][google.ads.googleads.v3.services.MediaFileService.MutateMediaFiles] -message MutateMediaFilesRequest { - // Required. The ID of the customer whose media files are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual media file. - repeated MediaFileOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation to create media file. -message MediaFileOperation { - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new media file. - google.ads.googleads.v3.resources.MediaFile create = 1; - } -} - -// Response message for a media file mutate. -message MutateMediaFilesResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateMediaFileResult results = 2; -} - -// The result for the media file mutate. -message MutateMediaFileResult { - // The resource name returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/merchant_center_link_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/merchant_center_link_service.proto deleted file mode 100644 index 5a5e80d30..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/merchant_center_link_service.proto +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/merchant_center_link.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "MerchantCenterLinkServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the MerchantCenterLink service. - -// This service allows management of links between Google Ads and Google -// Merchant Center. -service MerchantCenterLinkService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns Merchant Center links available for this customer. - rpc ListMerchantCenterLinks(ListMerchantCenterLinksRequest) returns (ListMerchantCenterLinksResponse) { - option (google.api.http) = { - get: "/v3/customers/{customer_id=*}/merchantCenterLinks" - }; - option (google.api.method_signature) = "customer_id"; - } - - // Returns the Merchant Center link in full detail. - rpc GetMerchantCenterLink(GetMerchantCenterLinkRequest) returns (google.ads.googleads.v3.resources.MerchantCenterLink) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/merchantCenterLinks/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Updates status or removes a Merchant Center link. - rpc MutateMerchantCenterLink(MutateMerchantCenterLinkRequest) returns (MutateMerchantCenterLinkResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/merchantCenterLinks:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operation"; - } -} - -// Request message for [MerchantCenterLinkService.ListMerchantCenterLinks][google.ads.googleads.v3.services.MerchantCenterLinkService.ListMerchantCenterLinks]. -message ListMerchantCenterLinksRequest { - // Required. The ID of the customer onto which to apply the Merchant Center link list - // operation. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; -} - -// Response message for [MerchantCenterLinkService.ListMerchantCenterLinks][google.ads.googleads.v3.services.MerchantCenterLinkService.ListMerchantCenterLinks]. -message ListMerchantCenterLinksResponse { - // Merchant Center links available for the requested customer - repeated google.ads.googleads.v3.resources.MerchantCenterLink merchant_center_links = 1; -} - -// Request message for [MerchantCenterLinkService.GetMerchantCenterLink][google.ads.googleads.v3.services.MerchantCenterLinkService.GetMerchantCenterLink]. -message GetMerchantCenterLinkRequest { - // Required. Resource name of the Merchant Center link. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/MerchantCenterLink" - } - ]; -} - -// Request message for [MerchantCenterLinkService.MutateMerchantCenterLink][google.ads.googleads.v3.services.MerchantCenterLinkService.MutateMerchantCenterLink]. -message MutateMerchantCenterLinkRequest { - // Required. The ID of the customer being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The operation to perform on the link - MerchantCenterLinkOperation operation = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// A single update on a Merchant Center link. -message MerchantCenterLinkOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 3; - - // The operation to perform - oneof operation { - // Update operation: The merchant center link is expected to have a valid - // resource name. - google.ads.googleads.v3.resources.MerchantCenterLink update = 1; - - // Remove operation: A resource name for the removed merchant center link is - // expected, in this format: - // - // `customers/{customer_id}/merchantCenterLinks/{merchant_center_id}` - string remove = 2; - } -} - -// Response message for Merchant Center link mutate. -message MutateMerchantCenterLinkResponse { - // Result for the mutate. - MutateMerchantCenterLinkResult result = 2; -} - -// The result for the Merchant Center link mutate. -message MutateMerchantCenterLinkResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/mobile_app_category_constant_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/mobile_app_category_constant_service.proto deleted file mode 100644 index e40489eaa..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/mobile_app_category_constant_service.proto +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/mobile_app_category_constant.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "MobileAppCategoryConstantServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Service to fetch mobile app category constants. -service MobileAppCategoryConstantService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested mobile app category constant. - rpc GetMobileAppCategoryConstant(GetMobileAppCategoryConstantRequest) returns (google.ads.googleads.v3.resources.MobileAppCategoryConstant) { - option (google.api.http) = { - get: "/v3/{resource_name=mobileAppCategoryConstants/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for -// [MobileAppCategoryConstantService.GetMobileAppCategoryConstant][google.ads.googleads.v3.services.MobileAppCategoryConstantService.GetMobileAppCategoryConstant]. -message GetMobileAppCategoryConstantRequest { - // Required. Resource name of the mobile app category constant to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/MobileAppCategoryConstant" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/mobile_device_constant_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/mobile_device_constant_service.proto deleted file mode 100644 index ce3297ef3..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/mobile_device_constant_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/mobile_device_constant.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "MobileDeviceConstantServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the mobile device constant service. - -// Service to fetch mobile device constants. -service MobileDeviceConstantService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested mobile device constant in full detail. - rpc GetMobileDeviceConstant(GetMobileDeviceConstantRequest) returns (google.ads.googleads.v3.resources.MobileDeviceConstant) { - option (google.api.http) = { - get: "/v3/{resource_name=mobileDeviceConstants/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [MobileDeviceConstantService.GetMobileDeviceConstant][google.ads.googleads.v3.services.MobileDeviceConstantService.GetMobileDeviceConstant]. -message GetMobileDeviceConstantRequest { - // Required. Resource name of the mobile device to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/MobileDeviceConstant" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/mutate_job_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/mutate_job_service.proto deleted file mode 100644 index d8f6583ec..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/mutate_job_service.proto +++ /dev/null @@ -1,217 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/mutate_job.proto"; -import "google/ads/googleads/v3/services/google_ads_service.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/longrunning/operations.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "MutateJobServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the MutateJobService. - -// Service to manage mutate jobs. -service MutateJobService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Creates a mutate job. - rpc CreateMutateJob(CreateMutateJobRequest) returns (CreateMutateJobResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/mutateJobs:create" - body: "*" - }; - option (google.api.method_signature) = "customer_id"; - } - - // Returns the mutate job. - rpc GetMutateJob(GetMutateJobRequest) returns (google.ads.googleads.v3.resources.MutateJob) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/mutateJobs/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Returns the results of the mutate job. The job must be done. - // Supports standard list paging. - rpc ListMutateJobResults(ListMutateJobResultsRequest) returns (ListMutateJobResultsResponse) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/mutateJobs/*}:listResults" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Runs the mutate job. - // - // The Operation.metadata field type is MutateJobMetadata. When finished, the - // long running operation will not contain errors or a response. Instead, use - // ListMutateJobResults to get the results of the job. - rpc RunMutateJob(RunMutateJobRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v3/{resource_name=customers/*/mutateJobs/*}:run" - body: "*" - }; - option (google.api.method_signature) = "resource_name"; - option (google.longrunning.operation_info) = { - response_type: "google.protobuf.Empty" - metadata_type: "google.ads.googleads.v3.resources.MutateJob.MutateJobMetadata" - }; - } - - // Add operations to the mutate job. - rpc AddMutateJobOperations(AddMutateJobOperationsRequest) returns (AddMutateJobOperationsResponse) { - option (google.api.http) = { - post: "/v3/{resource_name=customers/*/mutateJobs/*}:addOperations" - body: "*" - }; - option (google.api.method_signature) = "resource_name,sequence_token,mutate_operations"; - option (google.api.method_signature) = "resource_name,mutate_operations"; - } -} - -// Request message for [MutateJobService.CreateMutateJobRequest][] -message CreateMutateJobRequest { - // Required. The ID of the customer for which to create a mutate job. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; -} - -// Response message for [MutateJobService.CreateMutateJobResponse][] -message CreateMutateJobResponse { - // The resource name of the MutateJob. - string resource_name = 1; -} - -// Request message for [MutateJobService.GetMutateJob][google.ads.googleads.v3.services.MutateJobService.GetMutateJob] -message GetMutateJobRequest { - // Required. The resource name of the MutateJob to get. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/MutateJob" - } - ]; -} - -// Request message for [MutateJobService.RunMutateJob][google.ads.googleads.v3.services.MutateJobService.RunMutateJob] -message RunMutateJobRequest { - // Required. The resource name of the MutateJob to run. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/MutateJob" - } - ]; -} - -// Request message for [MutateJobService.AddMutateJobOperations][google.ads.googleads.v3.services.MutateJobService.AddMutateJobOperations] -message AddMutateJobOperationsRequest { - // Required. The resource name of the MutateJob. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/MutateJob" - } - ]; - - // A token used to enforce sequencing. - // - // The first AddMutateJobOperations request for a MutateJob should not set - // sequence_token. Subsequent requests must set sequence_token to the value of - // next_sequence_token received in the previous AddMutateJobOperations - // response. - string sequence_token = 2; - - // Required. The list of mutates being added. - // - // Operations can use negative integers as temp ids to signify dependencies - // between entities created in this MutateJob. For example, a customer with - // id = 1234 can create a campaign and an ad group in that same campaign by - // creating a campaign in the first operation with the resource name - // explicitly set to "customers/1234/campaigns/-1", and creating an ad group - // in the second operation with the campaign field also set to - // "customers/1234/campaigns/-1". - repeated MutateOperation mutate_operations = 3 [(google.api.field_behavior) = REQUIRED]; -} - -// Response message for [MutateJobService.AddMutateJobOperations][google.ads.googleads.v3.services.MutateJobService.AddMutateJobOperations] -message AddMutateJobOperationsResponse { - // The total number of operations added so far for this job. - int64 total_operations = 1; - - // The sequence token to be used when calling AddMutateJobOperations again if - // more operations need to be added. The next AddMutateJobOperations request - // must set the sequence_token field to the value of this field. - string next_sequence_token = 2; -} - -// Request message for [MutateJobService.ListMutateJobResults][google.ads.googleads.v3.services.MutateJobService.ListMutateJobResults]. -message ListMutateJobResultsRequest { - // Required. The resource name of the MutateJob whose results are being listed. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/MutateJob" - } - ]; - - // Token of the page to retrieve. If not specified, the first - // page of results will be returned. Use the value obtained from - // `next_page_token` in the previous response in order to request - // the next page of results. - string page_token = 2; - - // Number of elements to retrieve in a single page. - // When a page request is too large, the server may decide to - // further limit the number of returned resources. - int32 page_size = 3; -} - -// Response message for [MutateJobService.ListMutateJobResults][google.ads.googleads.v3.services.MutateJobService.ListMutateJobResults]. -message ListMutateJobResultsResponse { - // The list of rows that matched the query. - repeated MutateJobResult results = 1; - - // Pagination token used to retrieve the next page of results. - // Pass the content of this string as the `page_token` attribute of - // the next request. `next_page_token` is not returned for the last - // page. - string next_page_token = 2; -} - -// MutateJob result. -message MutateJobResult { - // Index of the mutate operation. - int64 operation_index = 1; - - // Response for the mutate. - // May be empty if errors occurred. - MutateOperationResponse mutate_operation_response = 2; - - // Details of the errors when processing the operation. - google.rpc.Status status = 3; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/operating_system_version_constant_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/operating_system_version_constant_service.proto deleted file mode 100644 index ea6dbb9a8..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/operating_system_version_constant_service.proto +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/operating_system_version_constant.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "OperatingSystemVersionConstantServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the OS version constant service - -// Service to fetch Operating System Version constants. -service OperatingSystemVersionConstantService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested OS version constant in full detail. - rpc GetOperatingSystemVersionConstant(GetOperatingSystemVersionConstantRequest) returns (google.ads.googleads.v3.resources.OperatingSystemVersionConstant) { - option (google.api.http) = { - get: "/v3/{resource_name=operatingSystemVersionConstants/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for -// [OperatingSystemVersionConstantService.GetOperatingSystemVersionConstant][google.ads.googleads.v3.services.OperatingSystemVersionConstantService.GetOperatingSystemVersionConstant]. -message GetOperatingSystemVersionConstantRequest { - // Required. Resource name of the OS version to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/OperatingSystemVersionConstant" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/paid_organic_search_term_view_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/paid_organic_search_term_view_service.proto deleted file mode 100644 index 8c58ad9f5..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/paid_organic_search_term_view_service.proto +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/paid_organic_search_term_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "PaidOrganicSearchTermViewServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Paid Organic Search Term View service. - -// Service to fetch paid organic search term views. -service PaidOrganicSearchTermViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested paid organic search term view in full detail. - rpc GetPaidOrganicSearchTermView(GetPaidOrganicSearchTermViewRequest) returns (google.ads.googleads.v3.resources.PaidOrganicSearchTermView) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/paidOrganicSearchTermViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for -// [PaidOrganicSearchTermViewService.GetPaidOrganicSearchTermView][google.ads.googleads.v3.services.PaidOrganicSearchTermViewService.GetPaidOrganicSearchTermView]. -message GetPaidOrganicSearchTermViewRequest { - // Required. The resource name of the paid organic search term view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/PaidOrganicSearchTermView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/parental_status_view_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/parental_status_view_service.proto deleted file mode 100644 index b28736bd6..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/parental_status_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/parental_status_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "ParentalStatusViewServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Parental Status View service. - -// Service to manage parental status views. -service ParentalStatusViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested parental status view in full detail. - rpc GetParentalStatusView(GetParentalStatusViewRequest) returns (google.ads.googleads.v3.resources.ParentalStatusView) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/parentalStatusViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [ParentalStatusViewService.GetParentalStatusView][google.ads.googleads.v3.services.ParentalStatusViewService.GetParentalStatusView]. -message GetParentalStatusViewRequest { - // Required. The resource name of the parental status view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/ParentalStatusView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/payments_account_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/payments_account_service.proto deleted file mode 100644 index 4ac37d322..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/payments_account_service.proto +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/payments_account.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "PaymentsAccountServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the payments account service. - -// Service to provide payments accounts that can be used to set up consolidated -// billing. -service PaymentsAccountService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns all payments accounts associated with all managers - // between the login customer ID and specified serving customer in the - // hierarchy, inclusive. - rpc ListPaymentsAccounts(ListPaymentsAccountsRequest) returns (ListPaymentsAccountsResponse) { - option (google.api.http) = { - get: "/v3/customers/{customer_id=*}/paymentsAccounts" - }; - option (google.api.method_signature) = "customer_id"; - } -} - -// Request message for fetching all accessible payments accounts. -message ListPaymentsAccountsRequest { - // Required. The ID of the customer to apply the PaymentsAccount list operation to. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; -} - -// Response message for [PaymentsAccountService.ListPaymentsAccounts][google.ads.googleads.v3.services.PaymentsAccountService.ListPaymentsAccounts]. -message ListPaymentsAccountsResponse { - // The list of accessible payments accounts. - repeated google.ads.googleads.v3.resources.PaymentsAccount payments_accounts = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/product_bidding_category_constant_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/product_bidding_category_constant_service.proto deleted file mode 100644 index 8074fa38e..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/product_bidding_category_constant_service.proto +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/product_bidding_category_constant.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "ProductBiddingCategoryConstantServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Product Bidding Category constant service - -// Service to fetch Product Bidding Categories. -service ProductBiddingCategoryConstantService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested Product Bidding Category in full detail. - rpc GetProductBiddingCategoryConstant(GetProductBiddingCategoryConstantRequest) returns (google.ads.googleads.v3.resources.ProductBiddingCategoryConstant) { - option (google.api.http) = { - get: "/v3/{resource_name=productBiddingCategoryConstants/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for -// [ProductBiddingCategoryConstantService.GetProductBiddingCategoryConstant][google.ads.googleads.v3.services.ProductBiddingCategoryConstantService.GetProductBiddingCategoryConstant]. -message GetProductBiddingCategoryConstantRequest { - // Required. Resource name of the Product Bidding Category to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/ProductBiddingCategoryConstant" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/product_group_view_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/product_group_view_service.proto deleted file mode 100644 index 0205b1d5b..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/product_group_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/product_group_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "ProductGroupViewServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the ProductGroup View service. - -// Service to manage product group views. -service ProductGroupViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested product group view in full detail. - rpc GetProductGroupView(GetProductGroupViewRequest) returns (google.ads.googleads.v3.resources.ProductGroupView) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/productGroupViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [ProductGroupViewService.GetProductGroupView][google.ads.googleads.v3.services.ProductGroupViewService.GetProductGroupView]. -message GetProductGroupViewRequest { - // Required. The resource name of the product group view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/ProductGroupView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/reach_plan_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/reach_plan_service.proto deleted file mode 100644 index 60937d45d..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/reach_plan_service.proto +++ /dev/null @@ -1,370 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/common/criteria.proto"; -import "google/ads/googleads/v3/enums/reach_plan_ad_length.proto"; -import "google/ads/googleads/v3/enums/reach_plan_age_range.proto"; -import "google/ads/googleads/v3/enums/reach_plan_network.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/protobuf/wrappers.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "ReachPlanServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the reach plan service. - -// Reach Plan Service gives users information about audience size that can -// be reached through advertisement on YouTube. In particular, -// GenerateReachForecast provides estimated number of people of specified -// demographics that can be reached by an ad in a given market by a campaign of -// certain duration with a defined budget. -service ReachPlanService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the list of plannable locations (for example, countries & DMAs). - rpc ListPlannableLocations(ListPlannableLocationsRequest) returns (ListPlannableLocationsResponse) { - option (google.api.http) = { - post: "/v3:listPlannableLocations" - body: "*" - }; - } - - // Returns the list of per-location plannable YouTube ad formats with allowed - // targeting. - rpc ListPlannableProducts(ListPlannableProductsRequest) returns (ListPlannableProductsResponse) { - option (google.api.http) = { - post: "/v3:listPlannableProducts" - body: "*" - }; - option (google.api.method_signature) = "plannable_location_id"; - } - - // Generates a product mix ideas given a set of preferences. This method - // helps the advertiser to obtain a good mix of ad formats and budget - // allocations based on its preferences. - rpc GenerateProductMixIdeas(GenerateProductMixIdeasRequest) returns (GenerateProductMixIdeasResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}:generateProductMixIdeas" - body: "*" - }; - option (google.api.method_signature) = "customer_id,plannable_location_id,currency_code,budget_micros"; - } - - // Generates a reach forecast for a given targeting / product mix. - rpc GenerateReachForecast(GenerateReachForecastRequest) returns (GenerateReachForecastResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}:generateReachForecast" - body: "*" - }; - option (google.api.method_signature) = "customer_id,campaign_duration,planned_products"; - } -} - -// Request message for [ReachPlanService.ListPlannableLocations][google.ads.googleads.v3.services.ReachPlanService.ListPlannableLocations]. -message ListPlannableLocationsRequest { - -} - -// The list of plannable locations. -message ListPlannableLocationsResponse { - // The list of locations available for planning (Countries, DMAs, - // sub-countries). - // For locations like Countries, DMAs see - // https://developers.google.com/adwords/api/docs/appendix/geotargeting for - // more information. - repeated PlannableLocation plannable_locations = 1; -} - -// A plannable location: a country, a DMA, a metro region, a tv region, -// a province. -message PlannableLocation { - // The location identifier. - google.protobuf.StringValue id = 1; - - // The unique location name in english. - google.protobuf.StringValue name = 2; - - // The parent country code, not present if location is a country. - // If present will always be a criterion id: additional information, such as - // country name are returned both via ListPlannableLocations or directly by - // accessing GeoTargetConstantService with the criterion id. - google.protobuf.Int64Value parent_country_id = 3; -} - -// Request to list available products in a given location. -message ListPlannableProductsRequest { - // Required. The ID of the selected location for planning. To list the available - // plannable location ids use ListPlannableLocations. - google.protobuf.StringValue plannable_location_id = 1 [(google.api.field_behavior) = REQUIRED]; -} - -// A response with all available products. -message ListPlannableProductsResponse { - // The list of products available for planning and related targeting metadata. - repeated ProductMetadata product_metadata = 1; -} - -// The metadata associated with an available plannable product. -message ProductMetadata { - // The code associated with the ad product. E.g. Trueview, Bumper - // To list the available plannable product codes use ListPlannableProducts. - google.protobuf.StringValue plannable_product_code = 1; - - // The allowed plannable targeting for this product. - PlannableTargeting plannable_targeting = 2; -} - -// The targeting for which traffic metrics will be reported. -message PlannableTargeting { - // Allowed plannable age ranges for the product for which metrics will be - // reported. Actual targeting is computed by mapping this age range onto - // standard Google common.AgeRangeInfo values. - repeated google.ads.googleads.v3.enums.ReachPlanAgeRangeEnum.ReachPlanAgeRange age_ranges = 1; - - // Targetable genders for the ad product. - repeated google.ads.googleads.v3.common.GenderInfo genders = 2; - - // Targetable devices for the ad product. - repeated google.ads.googleads.v3.common.DeviceInfo devices = 3; - - // Targetable networks for the ad product. - repeated google.ads.googleads.v3.enums.ReachPlanNetworkEnum.ReachPlanNetwork networks = 4; -} - -// Request message for [ReachPlanService.GenerateProductMixIdeas][google.ads.googleads.v3.services.ReachPlanService.GenerateProductMixIdeas]. -message GenerateProductMixIdeasRequest { - // Required. The ID of the customer. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The ID of the location, this is one of the ids returned by - // ListPlannableLocations. - google.protobuf.StringValue plannable_location_id = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. Currency code. - // Three-character ISO 4217 currency code. - google.protobuf.StringValue currency_code = 3 [(google.api.field_behavior) = REQUIRED]; - - // Required. Total budget. - // Amount in micros. One million is equivalent to one unit. - google.protobuf.Int64Value budget_micros = 4 [(google.api.field_behavior) = REQUIRED]; - - // The preferences of the suggested product mix. - // An unset preference is interpreted as all possible values are allowed, - // unless explicitly specified. - Preferences preferences = 5; -} - -// Set of preferences about the planned mix. -message Preferences { - // True if ad skippable. - // If not set, default is any value. - google.protobuf.BoolValue is_skippable = 1; - - // True if ad start with sound. - // If not set, default is any value. - google.protobuf.BoolValue starts_with_sound = 2; - - // The length of the ad. - // If not set, default is any value. - google.ads.googleads.v3.enums.ReachPlanAdLengthEnum.ReachPlanAdLength ad_length = 3; - - // True if ad will only show on the top content. - // If not set, default is false. - google.protobuf.BoolValue top_content_only = 4; - - // True if the price guaranteed. The cost of serving the ad is agreed upfront - // and not subject to an auction. - // If not set, default is any value. - google.protobuf.BoolValue has_guaranteed_price = 5; -} - -// The suggested product mix. -message GenerateProductMixIdeasResponse { - // A list of products (ad formats) and the associated budget allocation idea. - repeated ProductAllocation product_allocation = 1; -} - -// An allocation of a part of the budget on a given product. -message ProductAllocation { - // Selected product for planning. The product codes returned are within the - // set of the ones returned by ListPlannableProducts when using the same - // location id. - google.protobuf.StringValue plannable_product_code = 1; - - // The value to be allocated for the suggested product in requested currency. - // Amount in micros. One million is equivalent to one unit. - google.protobuf.Int64Value budget_micros = 2; -} - -// Request message for [ReachPlanService.GenerateReachForecast][google.ads.googleads.v3.services.ReachPlanService.GenerateReachForecast]. -message GenerateReachForecastRequest { - // Required. The ID of the customer. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // The currency code. - // Three-character ISO 4217 currency code. - google.protobuf.StringValue currency_code = 2; - - // Required. Campaign duration. - CampaignDuration campaign_duration = 3 [(google.api.field_behavior) = REQUIRED]; - - // Desired cookie frequency cap that will be applied to each planned product. - // This is equivalent to the frequency cap exposed in Google Ads when creating - // a campaign, it represents the maximum number of times an ad can be shown to - // the same user. - // If not specified no cap is applied. - // - // This field is deprecated in v4 and will eventually be removed. - // Please use cookie_frequency_cap_setting instead. - google.protobuf.Int32Value cookie_frequency_cap = 4; - - // Desired minimum effective frequency (the number of times a person was - // exposed to the ad) for the reported reach metrics [1-10]. - // This won't affect the targeting, but just the reporting. - // If not specified, a default of 1 is applied. - google.protobuf.Int32Value min_effective_frequency = 5; - - // The targeting to be applied to all products selected in the product mix. - // - // This is planned targeting: execution details might vary based on the - // advertising product, please consult an implementation specialist. - // - // See specific metrics for details on how targeting affects them. - // - // In some cases, targeting may be overridden using the - // PlannedProduct.advanced_product_targeting field. - Targeting targeting = 6; - - // Required. The products to be forecast. - // The max number of allowed planned products is 15. - repeated PlannedProduct planned_products = 7 [(google.api.field_behavior) = REQUIRED]; -} - -// The targeting for which traffic metrics will be reported. -message Targeting { - // Required. The ID of the selected location. - // Plannable locations ID can be obtained from ListPlannableLocations. - google.protobuf.StringValue plannable_location_id = 1; - - // Targeted age range. - // If not specified, targets all age ranges. - google.ads.googleads.v3.enums.ReachPlanAgeRangeEnum.ReachPlanAgeRange age_range = 2; - - // Targeted genders. - // If not specified, targets all genders. - repeated google.ads.googleads.v3.common.GenderInfo genders = 3; - - // Targeted devices. - // If not specified, targets all applicable devices. Applicable devices vary - // by product and region and can be obtained from ListPlannableProducts. - repeated google.ads.googleads.v3.common.DeviceInfo devices = 4; - - // Targetable network for the ad product. - // If not specified, targets all applicable networks. Applicable networks vary - // by product and region and can be obtained from ListPlannableProducts. - google.ads.googleads.v3.enums.ReachPlanNetworkEnum.ReachPlanNetwork network = 5; -} - -// The duration of a planned campaign. -message CampaignDuration { - // The duration value in days. - google.protobuf.Int32Value duration_in_days = 1; -} - -// A product being planned for reach. -message PlannedProduct { - // Required. Selected product for planning. - // Plannable products codes can be obtained from ListPlannableProducts. - google.protobuf.StringValue plannable_product_code = 1; - - // Required. Maximum budget allocation in micros for the selected product. - // The value is specified in the selected planning currency_code. - // E.g. 1 000 000$ = 1 000 000 000 000 micros. - google.protobuf.Int64Value budget_micros = 2; -} - -// Response message containing the generated reach curve. -message GenerateReachForecastResponse { - // Reference on target audiences for this curve. - OnTargetAudienceMetrics on_target_audience_metrics = 1; - - // The generated reach curve for the planned product mix. - ReachCurve reach_curve = 2; -} - -// The reach curve for the planned products. -message ReachCurve { - // All points on the reach curve. - repeated ReachForecast reach_forecasts = 1; -} - -// A point on reach curve. -message ReachForecast { - // The cost in micros. - google.protobuf.Int64Value cost_micros = 1; - - // Forecasted traffic metrics for this point. - Forecast forecast = 2; - - // The forecasted allocation. This differs from the input allocation if one - // or more product cannot fulfill the budget because of limited inventory. - repeated ProductAllocation forecasted_product_allocations = 3; -} - -// Forecasted traffic metrics for the planned products and targeting. -message Forecast { - // Number of unique people reached at least - // GenerateReachForecastRequest.min_effective_frequency times that exactly - // matches the Targeting. - google.protobuf.Int64Value on_target_reach = 1; - - // Total number of unique people reached at least - // GenerateReachForecastRequest.min_effective_frequency times. This includes - // people that may fall outside the specified Targeting. - google.protobuf.Int64Value total_reach = 2; - - // Number of ad impressions that exactly matches the Targeting. - google.protobuf.Int64Value on_target_impressions = 3; - - // Total number of ad impressions. This includes impressions that may fall - // outside the specified Targeting, due to insufficient information on - // signed-in users. - google.protobuf.Int64Value total_impressions = 4; -} - -// Audience metrics for the planned products. -// These metrics consider the following targeting dimensions: -// -// - Location -// - PlannableAgeRange -// - Gender -message OnTargetAudienceMetrics { - // Reference audience size matching the considered targeting for YouTube. - google.protobuf.Int64Value youtube_audience_size = 1; - - // Reference audience size matching the considered targeting for Census. - google.protobuf.Int64Value census_audience_size = 2; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/recommendation_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/recommendation_service.proto deleted file mode 100644 index b71d6992d..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/recommendation_service.proto +++ /dev/null @@ -1,255 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/common/extensions.proto"; -import "google/ads/googleads/v3/enums/keyword_match_type.proto"; -import "google/ads/googleads/v3/resources/ad.proto"; -import "google/ads/googleads/v3/resources/recommendation.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/wrappers.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "RecommendationServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Recommendation service. - -// Service to manage recommendations. -service RecommendationService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested recommendation in full detail. - rpc GetRecommendation(GetRecommendationRequest) returns (google.ads.googleads.v3.resources.Recommendation) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/recommendations/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Applies given recommendations with corresponding apply parameters. - rpc ApplyRecommendation(ApplyRecommendationRequest) returns (ApplyRecommendationResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/recommendations:apply" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } - - // Dismisses given recommendations. - rpc DismissRecommendation(DismissRecommendationRequest) returns (DismissRecommendationResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/recommendations:dismiss" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [RecommendationService.GetRecommendation][google.ads.googleads.v3.services.RecommendationService.GetRecommendation]. -message GetRecommendationRequest { - // Required. The resource name of the recommendation to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Recommendation" - } - ]; -} - -// Request message for [RecommendationService.ApplyRecommendation][google.ads.googleads.v3.services.RecommendationService.ApplyRecommendation]. -message ApplyRecommendationRequest { - // Required. The ID of the customer with the recommendation. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to apply recommendations. - // If partial_failure=false all recommendations should be of the same type - // There is a limit of 100 operations per request. - repeated ApplyRecommendationOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, operations will be carried - // out as a transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; -} - -// Information about the operation to apply a recommendation and any parameters -// to customize it. -message ApplyRecommendationOperation { - // Parameters to use when applying a campaign budget recommendation. - message CampaignBudgetParameters { - // New budget amount to set for target budget resource. This is a required - // field. - google.protobuf.Int64Value new_budget_amount_micros = 1; - } - - // Parameters to use when applying a text ad recommendation. - message TextAdParameters { - // New ad to add to recommended ad group. All necessary fields need to be - // set in this message. This is a required field. - google.ads.googleads.v3.resources.Ad ad = 1; - } - - // Parameters to use when applying keyword recommendation. - message KeywordParameters { - // The ad group resource to add keyword to. This is a required field. - google.protobuf.StringValue ad_group = 1; - - // The match type of the keyword. This is a required field. - google.ads.googleads.v3.enums.KeywordMatchTypeEnum.KeywordMatchType match_type = 2; - - // Optional, CPC bid to set for the keyword. If not set, keyword will use - // bid based on bidding strategy used by target ad group. - google.protobuf.Int64Value cpc_bid_micros = 3; - } - - // Parameters to use when applying Target CPA recommendation. - message TargetCpaOptInParameters { - // Average CPA to use for Target CPA bidding strategy. This is a required - // field. - google.protobuf.Int64Value target_cpa_micros = 1; - - // Optional, budget amount to set for the campaign. - google.protobuf.Int64Value new_campaign_budget_amount_micros = 2; - } - - // Parameters to use when applying callout extension recommendation. - message CalloutExtensionParameters { - // Callout extensions to be added. This is a required field. - repeated google.ads.googleads.v3.common.CalloutFeedItem callout_extensions = 1; - } - - // Parameters to use when applying call extension recommendation. - message CallExtensionParameters { - // Call extensions to be added. This is a required field. - repeated google.ads.googleads.v3.common.CallFeedItem call_extensions = 1; - } - - // Parameters to use when applying sitelink extension recommendation. - message SitelinkExtensionParameters { - // Sitelink extensions to be added. This is a required field. - repeated google.ads.googleads.v3.common.SitelinkFeedItem sitelink_extensions = 1; - } - - // Parameters to use when applying move unused budget recommendation. - message MoveUnusedBudgetParameters { - // Budget amount to move from excess budget to constrained budget. This is - // a required field. - google.protobuf.Int64Value budget_micros_to_move = 1; - } - - // The resource name of the recommendation to apply. - string resource_name = 1; - - // Parameters to use when applying the recommendation. - oneof apply_parameters { - // Optional parameters to use when applying a campaign budget - // recommendation. - CampaignBudgetParameters campaign_budget = 2; - - // Optional parameters to use when applying a text ad recommendation. - TextAdParameters text_ad = 3; - - // Optional parameters to use when applying keyword recommendation. - KeywordParameters keyword = 4; - - // Optional parameters to use when applying target CPA opt-in - // recommendation. - TargetCpaOptInParameters target_cpa_opt_in = 5; - - // Parameters to use when applying callout extension recommendation. - CalloutExtensionParameters callout_extension = 6; - - // Parameters to use when applying call extension recommendation. - CallExtensionParameters call_extension = 7; - - // Parameters to use when applying sitelink extension recommendation. - SitelinkExtensionParameters sitelink_extension = 8; - - // Parameters to use when applying move unused budget recommendation. - MoveUnusedBudgetParameters move_unused_budget = 9; - } -} - -// Response message for [RecommendationService.ApplyRecommendation][google.ads.googleads.v3.services.RecommendationService.ApplyRecommendation]. -message ApplyRecommendationResponse { - // Results of operations to apply recommendations. - repeated ApplyRecommendationResult results = 1; - - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors) - // we return the RPC level error. - google.rpc.Status partial_failure_error = 2; -} - -// The result of applying a recommendation. -message ApplyRecommendationResult { - // Returned for successful applies. - string resource_name = 1; -} - -// Request message for [RecommendationService.DismissRecommendation][google.ads.googleads.v3.services.RecommendationService.DismissRecommendation]. -message DismissRecommendationRequest { - // Operation to dismiss a single recommendation identified by resource_name. - message DismissRecommendationOperation { - // The resource name of the recommendation to dismiss. - string resource_name = 1; - } - - // Required. The ID of the customer with the recommendation. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to dismiss recommendations. - // If partial_failure=false all recommendations should be of the same type - // There is a limit of 100 operations per request. - repeated DismissRecommendationOperation operations = 3 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, operations will be carried in a - // single transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 2; -} - -// Response message for [RecommendationService.DismissRecommendation][google.ads.googleads.v3.services.RecommendationService.DismissRecommendation]. -message DismissRecommendationResponse { - // The result of dismissing a recommendation. - message DismissRecommendationResult { - // Returned for successful dismissals. - string resource_name = 1; - } - - // Results of operations to dismiss recommendations. - repeated DismissRecommendationResult results = 1; - - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors) - // we return the RPC level error. - google.rpc.Status partial_failure_error = 2; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/remarketing_action_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/remarketing_action_service.proto deleted file mode 100644 index 234339e95..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/remarketing_action_service.proto +++ /dev/null @@ -1,123 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/remarketing_action.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "RemarketingActionServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Remarketing Action service. - -// Service to manage remarketing actions. -service RemarketingActionService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested remarketing action in full detail. - rpc GetRemarketingAction(GetRemarketingActionRequest) returns (google.ads.googleads.v3.resources.RemarketingAction) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/remarketingActions/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates or updates remarketing actions. Operation statuses are returned. - rpc MutateRemarketingActions(MutateRemarketingActionsRequest) returns (MutateRemarketingActionsResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/remarketingActions:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [RemarketingActionService.GetRemarketingAction][google.ads.googleads.v3.services.RemarketingActionService.GetRemarketingAction]. -message GetRemarketingActionRequest { - // Required. The resource name of the remarketing action to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/RemarketingAction" - } - ]; -} - -// Request message for [RemarketingActionService.MutateRemarketingActions][google.ads.googleads.v3.services.RemarketingActionService.MutateRemarketingActions]. -message MutateRemarketingActionsRequest { - // Required. The ID of the customer whose remarketing actions are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual remarketing actions. - repeated RemarketingActionOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update) on a remarketing action. -message RemarketingActionOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new remarketing - // action. - google.ads.googleads.v3.resources.RemarketingAction create = 1; - - // Update operation: The remarketing action is expected to have a valid - // resource name. - google.ads.googleads.v3.resources.RemarketingAction update = 2; - } -} - -// Response message for remarketing action mutate. -message MutateRemarketingActionsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateRemarketingActionResult results = 2; -} - -// The result for the remarketing action mutate. -message MutateRemarketingActionResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/search_term_view_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/search_term_view_service.proto deleted file mode 100644 index ac752fe30..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/search_term_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/search_term_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "SearchTermViewServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Search Term View service. - -// Service to manage search term views. -service SearchTermViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the attributes of the requested search term view. - rpc GetSearchTermView(GetSearchTermViewRequest) returns (google.ads.googleads.v3.resources.SearchTermView) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/searchTermViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [SearchTermViewService.GetSearchTermView][google.ads.googleads.v3.services.SearchTermViewService.GetSearchTermView]. -message GetSearchTermViewRequest { - // Required. The resource name of the search term view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/SearchTermView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/shared_criterion_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/shared_criterion_service.proto deleted file mode 100644 index 49849e550..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/shared_criterion_service.proto +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/shared_criterion.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "SharedCriterionServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Shared Criterion service. - -// Service to manage shared criteria. -service SharedCriterionService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested shared criterion in full detail. - rpc GetSharedCriterion(GetSharedCriterionRequest) returns (google.ads.googleads.v3.resources.SharedCriterion) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/sharedCriteria/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates or removes shared criteria. Operation statuses are returned. - rpc MutateSharedCriteria(MutateSharedCriteriaRequest) returns (MutateSharedCriteriaResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/sharedCriteria:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [SharedCriterionService.GetSharedCriterion][google.ads.googleads.v3.services.SharedCriterionService.GetSharedCriterion]. -message GetSharedCriterionRequest { - // Required. The resource name of the shared criterion to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/SharedCriterion" - } - ]; -} - -// Request message for [SharedCriterionService.MutateSharedCriteria][google.ads.googleads.v3.services.SharedCriterionService.MutateSharedCriteria]. -message MutateSharedCriteriaRequest { - // Required. The ID of the customer whose shared criteria are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual shared criteria. - repeated SharedCriterionOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, remove) on an shared criterion. -message SharedCriterionOperation { - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new shared - // criterion. - google.ads.googleads.v3.resources.SharedCriterion create = 1; - - // Remove operation: A resource name for the removed shared criterion is - // expected, in this format: - // - // `customers/{customer_id}/sharedCriteria/{shared_set_id}~{criterion_id}` - string remove = 3; - } -} - -// Response message for a shared criterion mutate. -message MutateSharedCriteriaResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateSharedCriterionResult results = 2; -} - -// The result for the shared criterion mutate. -message MutateSharedCriterionResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/shared_set_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/shared_set_service.proto deleted file mode 100644 index 5b5192ec2..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/shared_set_service.proto +++ /dev/null @@ -1,128 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/shared_set.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "SharedSetServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Shared Set service. - -// Service to manage shared sets. -service SharedSetService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested shared set in full detail. - rpc GetSharedSet(GetSharedSetRequest) returns (google.ads.googleads.v3.resources.SharedSet) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/sharedSets/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates, updates, or removes shared sets. Operation statuses are returned. - rpc MutateSharedSets(MutateSharedSetsRequest) returns (MutateSharedSetsResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/sharedSets:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [SharedSetService.GetSharedSet][google.ads.googleads.v3.services.SharedSetService.GetSharedSet]. -message GetSharedSetRequest { - // Required. The resource name of the shared set to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/SharedSet" - } - ]; -} - -// Request message for [SharedSetService.MutateSharedSets][google.ads.googleads.v3.services.SharedSetService.MutateSharedSets]. -message MutateSharedSetsRequest { - // Required. The ID of the customer whose shared sets are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual shared sets. - repeated SharedSetOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update, remove) on an shared set. -message SharedSetOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new shared set. - google.ads.googleads.v3.resources.SharedSet create = 1; - - // Update operation: The shared set is expected to have a valid resource - // name. - google.ads.googleads.v3.resources.SharedSet update = 2; - - // Remove operation: A resource name for the removed shared set is expected, - // in this format: - // - // `customers/{customer_id}/sharedSets/{shared_set_id}` - string remove = 3; - } -} - -// Response message for a shared set mutate. -message MutateSharedSetsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateSharedSetResult results = 2; -} - -// The result for the shared set mutate. -message MutateSharedSetResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/shopping_performance_view_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/shopping_performance_view_service.proto deleted file mode 100644 index 46c91862d..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/shopping_performance_view_service.proto +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/shopping_performance_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "ShoppingPerformanceViewServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the ShoppingPerformanceView service. - -// Service to fetch Shopping performance views. -service ShoppingPerformanceViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested Shopping performance view in full detail. - rpc GetShoppingPerformanceView(GetShoppingPerformanceViewRequest) returns (google.ads.googleads.v3.resources.ShoppingPerformanceView) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/shoppingPerformanceView}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for -// [ShoppingPerformanceViewService.GetShoppingPerformanceView][google.ads.googleads.v3.services.ShoppingPerformanceViewService.GetShoppingPerformanceView]. -message GetShoppingPerformanceViewRequest { - // Required. The resource name of the Shopping performance view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/ShoppingPerformanceView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/topic_constant_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/topic_constant_service.proto deleted file mode 100644 index 5f06a0aa1..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/topic_constant_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/topic_constant.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "TopicConstantServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Topic constant service - -// Service to fetch topic constants. -service TopicConstantService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested topic constant in full detail. - rpc GetTopicConstant(GetTopicConstantRequest) returns (google.ads.googleads.v3.resources.TopicConstant) { - option (google.api.http) = { - get: "/v3/{resource_name=topicConstants/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [TopicConstantService.GetTopicConstant][google.ads.googleads.v3.services.TopicConstantService.GetTopicConstant]. -message GetTopicConstantRequest { - // Required. Resource name of the Topic to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/TopicConstant" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/topic_view_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/topic_view_service.proto deleted file mode 100644 index ef16d79f5..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/topic_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/topic_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "TopicViewServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Topic View service. - -// Service to manage topic views. -service TopicViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested topic view in full detail. - rpc GetTopicView(GetTopicViewRequest) returns (google.ads.googleads.v3.resources.TopicView) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/topicViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [TopicViewService.GetTopicView][google.ads.googleads.v3.services.TopicViewService.GetTopicView]. -message GetTopicViewRequest { - // Required. The resource name of the topic view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/TopicView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/user_data_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/user_data_service.proto deleted file mode 100644 index b799c096f..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/user_data_service.proto +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/common/offline_user_data.proto"; -import "google/api/annotations.proto"; -import "google/api/field_behavior.proto"; -import "google/protobuf/wrappers.proto"; -import "google/api/client.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "UserDataServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the UserDataService. - -// Service to manage user data uploads. -// Accessible only to customers on the allow-list. -service UserDataService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Uploads the given user data. - rpc UploadUserData(UploadUserDataRequest) returns (UploadUserDataResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}:uploadUserData" - body: "*" - }; - } -} - -// Request message for [UserDataService.UploadUserData][google.ads.googleads.v3.services.UserDataService.UploadUserData] -message UploadUserDataRequest { - // Required. The ID of the customer for which to update the user data. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to be done. - repeated UserDataOperation operations = 3 [(google.api.field_behavior) = REQUIRED]; - - // Metadata of the request. - oneof metadata { - // Metadata for data updates to a Customer Match user list. - google.ads.googleads.v3.common.CustomerMatchUserListMetadata customer_match_user_list_metadata = 2; - } -} - -// Operation to be made for the UploadUserDataRequest. -message UserDataOperation { - // Operation to be made for the UploadUserDataRequest. - oneof operation { - // The list of user data to be appended to the user list. - google.ads.googleads.v3.common.UserData create = 1; - } -} - -// Response message for [UserDataService.UploadUserData][google.ads.googleads.v3.services.UserDataService.UploadUserData] -message UploadUserDataResponse { - // The date time at which the request was received by API, formatted as - // "yyyy-mm-dd hh:mm:ss+|-hh:mm", e.g. "2019-01-01 12:32:45-08:00". - google.protobuf.StringValue upload_date_time = 1; - - // Number of upload data operations received by API. - google.protobuf.Int32Value received_operations_count = 2; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/user_interest_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/user_interest_service.proto deleted file mode 100644 index 2b2c1bb5b..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/user_interest_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/user_interest.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "UserInterestServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the user interest service - -// Service to fetch Google Ads User Interest. -service UserInterestService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested user interest in full detail - rpc GetUserInterest(GetUserInterestRequest) returns (google.ads.googleads.v3.resources.UserInterest) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/userInterests/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [UserInterestService.GetUserInterest][google.ads.googleads.v3.services.UserInterestService.GetUserInterest]. -message GetUserInterestRequest { - // Required. Resource name of the UserInterest to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/UserInterest" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/user_list_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/user_list_service.proto deleted file mode 100644 index 5e2f7492e..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/user_list_service.proto +++ /dev/null @@ -1,128 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/user_list.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/field_mask.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "UserListServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the User List service. - -// Service to manage user lists. -service UserListService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested user list. - rpc GetUserList(GetUserListRequest) returns (google.ads.googleads.v3.resources.UserList) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/userLists/*}" - }; - option (google.api.method_signature) = "resource_name"; - } - - // Creates or updates user lists. Operation statuses are returned. - rpc MutateUserLists(MutateUserListsRequest) returns (MutateUserListsResponse) { - option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/userLists:mutate" - body: "*" - }; - option (google.api.method_signature) = "customer_id,operations"; - } -} - -// Request message for [UserListService.GetUserList][google.ads.googleads.v3.services.UserListService.GetUserList]. -message GetUserListRequest { - // Required. The resource name of the user list to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/UserList" - } - ]; -} - -// Request message for [UserListService.MutateUserLists][google.ads.googleads.v3.services.UserListService.MutateUserLists]. -message MutateUserListsRequest { - // Required. The ID of the customer whose user lists are being modified. - string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of operations to perform on individual user lists. - repeated UserListOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, successful operations will be carried out and invalid - // operations will return errors. If false, all operations will be carried - // out in one transaction if and only if they are all valid. - // Default is false. - bool partial_failure = 3; - - // If true, the request is validated but not executed. Only errors are - // returned, not results. - bool validate_only = 4; -} - -// A single operation (create, update) on a user list. -message UserListOperation { - // FieldMask that determines which resource fields are modified in an update. - google.protobuf.FieldMask update_mask = 4; - - // The mutate operation. - oneof operation { - // Create operation: No resource name is expected for the new user list. - google.ads.googleads.v3.resources.UserList create = 1; - - // Update operation: The user list is expected to have a valid resource - // name. - google.ads.googleads.v3.resources.UserList update = 2; - - // Remove operation: A resource name for the removed user list is expected, - // in this format: - // - // `customers/{customer_id}/userLists/{user_list_id}` - string remove = 3; - } -} - -// Response message for user list mutate. -message MutateUserListsResponse { - // Errors that pertain to operation failures in the partial failure mode. - // Returned only when partial_failure = true and all errors occur inside the - // operations. If any errors occur outside the operations (e.g. auth errors), - // we return an RPC level error. - google.rpc.Status partial_failure_error = 3; - - // All results for the mutate. - repeated MutateUserListResult results = 2; -} - -// The result for the user list mutate. -message MutateUserListResult { - // Returned for successful operations. - string resource_name = 1; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/user_location_view_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/user_location_view_service.proto deleted file mode 100644 index 0fc7437fb..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/user_location_view_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/user_location_view.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "UserLocationViewServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the UserLocationView service. - -// Service to manage user location views. -service UserLocationViewService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested user location view in full detail. - rpc GetUserLocationView(GetUserLocationViewRequest) returns (google.ads.googleads.v3.resources.UserLocationView) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/userLocationViews/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [UserLocationViewService.GetUserLocationView][google.ads.googleads.v3.services.UserLocationViewService.GetUserLocationView]. -message GetUserLocationViewRequest { - // Required. The resource name of the user location view to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/UserLocationView" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/video_service.proto b/third_party/googleapis/google/ads/googleads/v3/services/video_service.proto deleted file mode 100644 index d43862235..000000000 --- a/third_party/googleapis/google/ads/googleads/v3/services/video_service.proto +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.ads.googleads.v3.services; - -import "google/ads/googleads/v3/resources/video.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; -option java_multiple_files = true; -option java_outer_classname = "VideoServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; -option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; - -// Proto file describing the Video service. - -// Service to manage videos. -service VideoService { - option (google.api.default_host) = "googleads.googleapis.com"; - - // Returns the requested video in full detail. - rpc GetVideo(GetVideoRequest) returns (google.ads.googleads.v3.resources.Video) { - option (google.api.http) = { - get: "/v3/{resource_name=customers/*/videos/*}" - }; - option (google.api.method_signature) = "resource_name"; - } -} - -// Request message for [VideoService.GetVideo][google.ads.googleads.v3.services.VideoService.GetVideo]. -message GetVideoRequest { - // Required. The resource name of the video to fetch. - string resource_name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "googleads.googleapis.com/Video" - } - ]; -} diff --git a/third_party/googleapis/google/ads/googleads/v4/BUILD.bazel b/third_party/googleapis/google/ads/googleads/v4/BUILD.bazel new file mode 100644 index 000000000..5361d672b --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v4/BUILD.bazel @@ -0,0 +1,306 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package(default_visibility = ["//visibility:public"]) + +exports_files(["googleads_grpc_service_config.json"] + ["*.yaml"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") +load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info") + +proto_library( + name = "googleads_proto", + srcs = [], + deps = [ + "//google/ads/googleads/v4/common:common_proto", + "//google/ads/googleads/v4/enums:enums_proto", + "//google/ads/googleads/v4/errors:errors_proto", + "//google/ads/googleads/v4/resources:resources_proto", + "//google/ads/googleads/v4/services:services_proto", + ], +) + +proto_library_with_info( + name = "googleads_proto_with_info", + deps = [ + ":googleads_proto", + ], +) + +############################################################################## +# Java (gapic-generator-java) +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_gapic_assembly_gradle_pkg", + "java_gapic_library", + "java_gapic_test", +) + +java_gapic_library( + name = "googleads_java_gapic", + srcs = [ + ":googleads_proto_with_info", + ], + gapic_yaml = "googleads_gapic.yaml", + grpc_service_config = ":googleads_grpc_service_config.json", + deps = [ + "//google/ads/googleads/v4/common:common_java_proto", + "//google/ads/googleads/v4/enums:enums_java_proto", + "//google/ads/googleads/v4/resources:resources_java_proto", + "//google/ads/googleads/v4/services:services_java_grpc", + "//google/ads/googleads/v4/services:services_java_proto", + ], +) + +# TODO(ohren): Add more test classes when java_gapic_test is able to run more +# than a single test. Having at least one verifies proper compilation at least. +java_gapic_test( + name = "googleads_java_gapic_suite", + test_classes = [ + "com.google.ads.googleads.v4.services.CampaignServiceClientTest", + ], + runtime_deps = [":googleads_java_gapic_test"], +) + +java_gapic_assembly_gradle_pkg( + name = "googleads-java", + deps = [ + ":googleads_java_gapic", + "//google/ads/googleads/v4:googleads_proto", + "//google/ads/googleads/v4/common:common_java_proto", + "//google/ads/googleads/v4/enums:enums_java_proto", + "//google/ads/googleads/v4/errors:errors_java_proto", + "//google/ads/googleads/v4/resources:resources_java_proto", + "//google/ads/googleads/v4/services:services_java_grpc", + "//google/ads/googleads/v4/services:services_java_proto", + ], +) + +############################################################################## +# PHP (gapic-generator, GAPICv2) +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "php_gapic_assembly_pkg", + "php_gapic_library", + "php_grpc_library", + "php_proto_library", +) + +php_proto_library( + name = "googleads_php_mono_proto", + plugin_args = ["aggregate_metadata=google.ads.googleads"], + deps = [":googleads_proto"], +) + +php_grpc_library( + name = "googleads_php_mono_grpc", + srcs = [":googleads_proto"], + deps = [":googleads_php_mono_proto"], +) + +php_gapic_library( + name = "googleads_php_mono_gapic", + src = ":googleads_proto_with_info", + gapic_yaml = "googleads_gapic.yaml", + grpc_service_config = "googleads_grpc_service_config.json", + package = "google.ads.googleads.v4", + service_yaml = "googleads_v4.yaml", + deps = [ + ":googleads_php_mono_grpc", + ":googleads_php_mono_proto", + ], +) + +php_gapic_assembly_pkg( + name = "googleads-php-mono", + deps = [ + ":googleads_php_mono_gapic", + ":googleads_php_mono_grpc", + ":googleads_php_mono_proto", + ], +) + +############################################################################## +# PHP (gapic-generator-php) +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "php_gapic_assembly_pkg2", + "php_gapic_library2", + "php_grpc_library2", + "php_proto_library2", +) + +php_proto_library2( + name = "googleads_php_micro_proto", + plugin_args = ["aggregate_metadata=google.ads.googleads"], + deps = [":googleads_proto"], +) + +php_grpc_library2( + name = "googleads_php_micro_grpc", + srcs = [":googleads_proto"], + deps = [":googleads_php_micro_proto"], +) + +php_gapic_library2( + name = "googleads_php_micro_gapic", + srcs = [":googleads_proto"], + gapic_yaml = "googleads_gapic.yaml", + grpc_service_config = "googleads_grpc_service_config.json", + service_yaml = "googleads_v4.yaml", + deps = [ + ":googleads_php_micro_grpc", + ":googleads_php_micro_proto", + ], +) + +php_gapic_assembly_pkg2( + name = "googleads-php-micro", + deps = [ + ":googleads_php_micro_gapic", + ":googleads_php_micro_grpc", + ":googleads_php_micro_proto", + ], +) + +############################################################################## +# C# +############################################################################## +load("@gapic_generator_csharp//rules_csharp_gapic:csharp_gapic.bzl", "csharp_gapic_library") +load("@gapic_generator_csharp//rules_csharp_gapic:csharp_gapic_pkg.bzl", "csharp_gapic_assembly_pkg") + +csharp_gapic_library( + name = "googleads_csharp_gapic", + srcs = [ + ":googleads_proto_with_info", + ], + deps = [ + "//google/ads/googleads/v4/services:services_csharp_grpc", + ], +) + +csharp_gapic_assembly_pkg( + name = "googleads-csharp", + deps = [ + ":googleads_csharp_gapic", + "//google/ads/googleads/v4/common:common_csharp_proto", + "//google/ads/googleads/v4/enums:enums_csharp_proto", + "//google/ads/googleads/v4/errors:errors_csharp_proto", + "//google/ads/googleads/v4/resources:resources_csharp_proto", + "//google/ads/googleads/v4/services:services_csharp_grpc", + "//google/ads/googleads/v4/services:services_csharp_proto", + ], +) + +############################################################################## +# Ruby +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "ruby_ads_gapic_library", + "ruby_gapic_assembly_pkg", +) + +ruby_ads_gapic_library( + name = "googleads_ruby_gapic", + srcs = ["googleads_proto_with_info"], + extra_protoc_parameters = [ + ":gem.:name=google-ads-googleads", + ":defaults.:service.:default_host=googleads.googleapis.com", + ":overrides.:namespace.Googleads=GoogleAds", + ], + grpc_service_config = "googleads_grpc_service_config.json", +) + +ruby_gapic_assembly_pkg( + name = "googleads-ruby", + deps = [ + ":googleads_ruby_gapic", + "//google/ads/googleads/v4/common:common_ruby_proto", + "//google/ads/googleads/v4/enums:enums_ruby_proto", + "//google/ads/googleads/v4/errors:errors_ruby_proto", + "//google/ads/googleads/v4/resources:resources_ruby_proto", + "//google/ads/googleads/v4/services:services_ruby_grpc", + "//google/ads/googleads/v4/services:services_ruby_proto", + ], +) + +############################################################################## +# Python (gapic-generator-python) +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "py_gapic_assembly_pkg", + "py_gapic_library", +) + +py_gapic_library( + name = "googleads_py_gapic", + srcs = [":googleads_proto_with_info"], + grpc_service_config = "googleads_grpc_service_config.json", + opt_args = [ + "old-naming", + "lazy-import", + "python-gapic-name=googleads", + "python-gapic-templates=ads-templates", + ], +) + +py_gapic_assembly_pkg( + name = "googleads-py", + deps = [ + ":googleads_py_gapic", + "//google/ads/googleads/v4/common:common_py_proto", + "//google/ads/googleads/v4/enums:enums_py_proto", + "//google/ads/googleads/v4/errors:errors_py_proto", + "//google/ads/googleads/v4/resources:resources_py_proto", + "//google/ads/googleads/v4/services:services_py_grpc", + "//google/ads/googleads/v4/services:services_py_proto", + ], +) + +############################################################################## +# Node.js +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", +) + +nodejs_gapic_library( + name = "googleads_nodejs_gapic", + package_name = "google-ads", + src = ":googleads_proto_with_info", + extra_protoc_parameters = ["metadata"], + grpc_service_config = "googleads_grpc_service_config.json", + main_service = "GoogleAdsService", + package = "google.ads.googleads.v4", + service_yaml = "googleads_v4.yaml", + deps = [], +) + +nodejs_gapic_assembly_pkg( + name = "googleads-nodejs", + deps = [ + ":googleads_nodejs_gapic", + ":googleads_proto", + ], +) diff --git a/third_party/googleapis/google/ads/googleads/v4/common/BUILD.bazel b/third_party/googleapis/google/ads/googleads/v4/common/BUILD.bazel new file mode 100644 index 000000000..020851567 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v4/common/BUILD.bazel @@ -0,0 +1,94 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") + +# TODO(ohren): Change srcs to use an enumeration of each individual proto +# instead of *.proto globbing once the build file generator supports +# subpackages. +proto_library( + name = "common_proto", + srcs = glob(["*.proto"]), + deps = [ + "//google/ads/googleads/v4/enums:enums_proto", + "//google/api:annotations_proto", + "//google/api:field_behavior_proto", + "//google/api:resource_proto", + "@com_google_protobuf//:wrappers_proto", + ], +) + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_proto_library", +) + +java_proto_library( + name = "common_java_proto", + deps = [":common_proto"], +) + +############################################################################## +# PHP +############################################################################## + +# PHP targets are in the parent directory's BUILD.bazel file to facilitate +# aggregating metadata using a single underlying call to protoc. + +############################################################################## +# C# +############################################################################## +load( + "@gapic_generator_csharp//rules_csharp_gapic:csharp_gapic.bzl", + "csharp_proto_library", +) + +csharp_proto_library( + name = "common_csharp_proto", + deps = [":common_proto"], +) + +############################################################################## +# Ruby +############################################################################## +load( + "@gapic_generator_ruby//rules_ruby_gapic:ruby_gapic.bzl", + "ruby_proto_library", +) + +ruby_proto_library( + name = "common_ruby_proto", + deps = [":common_proto"], +) + +############################################################################## +# Python +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "py_proto_library", +) + +py_proto_library( + name = "common_py_proto", + deps = [":common_proto"], +) diff --git a/third_party/googleapis/google/ads/googleads/v4/common/ad_asset.proto b/third_party/googleapis/google/ads/googleads/v4/common/ad_asset.proto index b073eb6c7..b2e58184c 100644 --- a/third_party/googleapis/google/ads/googleads/v4/common/ad_asset.proto +++ b/third_party/googleapis/google/ads/googleads/v4/common/ad_asset.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/common/ad_type_infos.proto b/third_party/googleapis/google/ads/googleads/v4/common/ad_type_infos.proto index d2d8d9fb3..11fbd78b6 100644 --- a/third_party/googleapis/google/ads/googleads/v4/common/ad_type_infos.proto +++ b/third_party/googleapis/google/ads/googleads/v4/common/ad_type_infos.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -444,8 +444,7 @@ message LegacyResponsiveDisplayAdInfo { // An app ad. message AppAdInfo { - // An optional text asset that, if specified, must always be displayed when - // the ad is served. + // Mandatory ad text. AdTextAsset mandatory_ad_text = 1; // List of text assets for headlines. When the ad serves the headlines will diff --git a/third_party/googleapis/google/ads/googleads/v4/common/asset_types.proto b/third_party/googleapis/google/ads/googleads/v4/common/asset_types.proto index b197b099d..eb3943327 100644 --- a/third_party/googleapis/google/ads/googleads/v4/common/asset_types.proto +++ b/third_party/googleapis/google/ads/googleads/v4/common/asset_types.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/common/bidding.proto b/third_party/googleapis/google/ads/googleads/v4/common/bidding.proto index ff1c6d7fa..c99ec8360 100644 --- a/third_party/googleapis/google/ads/googleads/v4/common/bidding.proto +++ b/third_party/googleapis/google/ads/googleads/v4/common/bidding.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -64,14 +64,14 @@ message ManualCpv { } -// An automated bidding strategy that sets bids to help get the most conversions -// for your campaign while spending your budget. +// An automated bidding strategy to help get the most conversions for your +// campaigns while spending your budget. message MaximizeConversions { } -// An automated bidding strategy which tries to maximize conversion value -// given a daily budget. +// An automated bidding strategy to help get the most conversion value for your +// campaigns while spending your budget. message MaximizeConversionValue { // The target return on ad spend (ROAS) option. If set, the bid strategy will // maximize revenue while averaging the target return on ad spend. If the @@ -144,7 +144,10 @@ message TargetSpend { // A TargetSpend bidder will attempt to spend the smaller of this value // or the natural throttling spend amount. // If not specified, the budget is used as the spend target. - google.protobuf.Int64Value target_spend_micros = 1; + // This field is deprecated and should no longer be used. See + // https://ads-developers.googleblog.com/2020/05/reminder-about-sunset-creation-of.html + // for details. + google.protobuf.Int64Value target_spend_micros = 1 [deprecated = true]; // Maximum bid limit that can be set by the bid strategy. // The limit applies to all keywords managed by the strategy. diff --git a/third_party/googleapis/google/ads/googleads/v4/common/click_location.proto b/third_party/googleapis/google/ads/googleads/v4/common/click_location.proto index 42496f4ab..d640a08f0 100644 --- a/third_party/googleapis/google/ads/googleads/v4/common/click_location.proto +++ b/third_party/googleapis/google/ads/googleads/v4/common/click_location.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/common/criteria.proto b/third_party/googleapis/google/ads/googleads/v4/common/criteria.proto index 7fa375c6e..938f3b498 100644 --- a/third_party/googleapis/google/ads/googleads/v4/common/criteria.proto +++ b/third_party/googleapis/google/ads/googleads/v4/common/criteria.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -587,7 +587,8 @@ message LocationGroupInfo { // This is required and must be set in CREATE operations. google.protobuf.Int64Value radius = 3; - // Unit of the radius, miles and meters supported currently. + // Unit of the radius. Miles and meters are supported for geo target + // constants. Milli miles and meters are supported for feed item sets. // This is required and must be set in CREATE operations. google.ads.googleads.v4.enums.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnits radius_units = 4; } diff --git a/third_party/googleapis/google/ads/googleads/v4/common/criterion_category_availability.proto b/third_party/googleapis/google/ads/googleads/v4/common/criterion_category_availability.proto index da8382dc6..c5bb0853f 100644 --- a/third_party/googleapis/google/ads/googleads/v4/common/criterion_category_availability.proto +++ b/third_party/googleapis/google/ads/googleads/v4/common/criterion_category_availability.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/common/custom_parameter.proto b/third_party/googleapis/google/ads/googleads/v4/common/custom_parameter.proto index a0cd26d5f..f1572904a 100644 --- a/third_party/googleapis/google/ads/googleads/v4/common/custom_parameter.proto +++ b/third_party/googleapis/google/ads/googleads/v4/common/custom_parameter.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/common/dates.proto b/third_party/googleapis/google/ads/googleads/v4/common/dates.proto index 9a3fc0b86..5ad0f695e 100644 --- a/third_party/googleapis/google/ads/googleads/v4/common/dates.proto +++ b/third_party/googleapis/google/ads/googleads/v4/common/dates.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/common/explorer_auto_optimizer_setting.proto b/third_party/googleapis/google/ads/googleads/v4/common/explorer_auto_optimizer_setting.proto index b72222feb..a74be7202 100644 --- a/third_party/googleapis/google/ads/googleads/v4/common/explorer_auto_optimizer_setting.proto +++ b/third_party/googleapis/google/ads/googleads/v4/common/explorer_auto_optimizer_setting.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/common/extensions.proto b/third_party/googleapis/google/ads/googleads/v4/common/extensions.proto index 78753b281..a583eae2e 100644 --- a/third_party/googleapis/google/ads/googleads/v4/common/extensions.proto +++ b/third_party/googleapis/google/ads/googleads/v4/common/extensions.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/common/feed_common.proto b/third_party/googleapis/google/ads/googleads/v4/common/feed_common.proto index b948a4b53..3da5fe8a5 100644 --- a/third_party/googleapis/google/ads/googleads/v4/common/feed_common.proto +++ b/third_party/googleapis/google/ads/googleads/v4/common/feed_common.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/common/final_app_url.proto b/third_party/googleapis/google/ads/googleads/v4/common/final_app_url.proto index 2b4e56efe..4cc7d7c71 100644 --- a/third_party/googleapis/google/ads/googleads/v4/common/final_app_url.proto +++ b/third_party/googleapis/google/ads/googleads/v4/common/final_app_url.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/common/frequency_cap.proto b/third_party/googleapis/google/ads/googleads/v4/common/frequency_cap.proto index 07c278664..a57787661 100644 --- a/third_party/googleapis/google/ads/googleads/v4/common/frequency_cap.proto +++ b/third_party/googleapis/google/ads/googleads/v4/common/frequency_cap.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/common/keyword_plan_common.proto b/third_party/googleapis/google/ads/googleads/v4/common/keyword_plan_common.proto index 6089cb429..4b3533ab8 100644 --- a/third_party/googleapis/google/ads/googleads/v4/common/keyword_plan_common.proto +++ b/third_party/googleapis/google/ads/googleads/v4/common/keyword_plan_common.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/common/matching_function.proto b/third_party/googleapis/google/ads/googleads/v4/common/matching_function.proto index 42d05d550..c81f5ab89 100644 --- a/third_party/googleapis/google/ads/googleads/v4/common/matching_function.proto +++ b/third_party/googleapis/google/ads/googleads/v4/common/matching_function.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/common/metrics.proto b/third_party/googleapis/google/ads/googleads/v4/common/metrics.proto index 757c1c6b0..df767523e 100644 --- a/third_party/googleapis/google/ads/googleads/v4/common/metrics.proto +++ b/third_party/googleapis/google/ads/googleads/v4/common/metrics.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/common/offline_user_data.proto b/third_party/googleapis/google/ads/googleads/v4/common/offline_user_data.proto index 443373c1e..234ee70ad 100644 --- a/third_party/googleapis/google/ads/googleads/v4/common/offline_user_data.proto +++ b/third_party/googleapis/google/ads/googleads/v4/common/offline_user_data.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/common/policy.proto b/third_party/googleapis/google/ads/googleads/v4/common/policy.proto index c732e8cc6..d7f50852e 100644 --- a/third_party/googleapis/google/ads/googleads/v4/common/policy.proto +++ b/third_party/googleapis/google/ads/googleads/v4/common/policy.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/common/real_time_bidding_setting.proto b/third_party/googleapis/google/ads/googleads/v4/common/real_time_bidding_setting.proto index c87f0681f..6f9249712 100644 --- a/third_party/googleapis/google/ads/googleads/v4/common/real_time_bidding_setting.proto +++ b/third_party/googleapis/google/ads/googleads/v4/common/real_time_bidding_setting.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/common/segments.proto b/third_party/googleapis/google/ads/googleads/v4/common/segments.proto index 6bdfed081..577e25013 100644 --- a/third_party/googleapis/google/ads/googleads/v4/common/segments.proto +++ b/third_party/googleapis/google/ads/googleads/v4/common/segments.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/common/simulation.proto b/third_party/googleapis/google/ads/googleads/v4/common/simulation.proto index 8776508f9..02afcb4b3 100644 --- a/third_party/googleapis/google/ads/googleads/v4/common/simulation.proto +++ b/third_party/googleapis/google/ads/googleads/v4/common/simulation.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/common/tag_snippet.proto b/third_party/googleapis/google/ads/googleads/v4/common/tag_snippet.proto index 1bf1de941..048bebe6e 100644 --- a/third_party/googleapis/google/ads/googleads/v4/common/tag_snippet.proto +++ b/third_party/googleapis/google/ads/googleads/v4/common/tag_snippet.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/common/targeting_setting.proto b/third_party/googleapis/google/ads/googleads/v4/common/targeting_setting.proto index 91510432c..77720b082 100644 --- a/third_party/googleapis/google/ads/googleads/v4/common/targeting_setting.proto +++ b/third_party/googleapis/google/ads/googleads/v4/common/targeting_setting.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/common/text_label.proto b/third_party/googleapis/google/ads/googleads/v4/common/text_label.proto index a90e98c11..50e4937d6 100644 --- a/third_party/googleapis/google/ads/googleads/v4/common/text_label.proto +++ b/third_party/googleapis/google/ads/googleads/v4/common/text_label.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/common/url_collection.proto b/third_party/googleapis/google/ads/googleads/v4/common/url_collection.proto index 52048f71c..a94306c2c 100644 --- a/third_party/googleapis/google/ads/googleads/v4/common/url_collection.proto +++ b/third_party/googleapis/google/ads/googleads/v4/common/url_collection.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/common/user_lists.proto b/third_party/googleapis/google/ads/googleads/v4/common/user_lists.proto index 6f185dbdc..825ba22d2 100644 --- a/third_party/googleapis/google/ads/googleads/v4/common/user_lists.proto +++ b/third_party/googleapis/google/ads/googleads/v4/common/user_lists.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/common/value.proto b/third_party/googleapis/google/ads/googleads/v4/common/value.proto index bcf3349d2..c313b7455 100644 --- a/third_party/googleapis/google/ads/googleads/v4/common/value.proto +++ b/third_party/googleapis/google/ads/googleads/v4/common/value.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/BUILD.bazel b/third_party/googleapis/google/ads/googleads/v4/enums/BUILD.bazel new file mode 100644 index 000000000..422fc227c --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v4/enums/BUILD.bazel @@ -0,0 +1,89 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") + +# TODO(ohren): Change srcs to use an enumeration of each individual proto +# instead of *.proto globbing once the build file generator supports subpackages. +proto_library( + name = "enums_proto", + srcs = glob(["*.proto"]), + deps = [ + "//google/api:annotations_proto", + ], +) + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_proto_library", +) + +java_proto_library( + name = "enums_java_proto", + deps = [":enums_proto"], +) + +############################################################################## +# PHP +############################################################################## + +# PHP targets are in the parent directory's BUILD.bazel file to facilitate +# aggregating metadata using a single underlying call to protoc. + +############################################################################## +# C# +############################################################################## +load( + "@gapic_generator_csharp//rules_csharp_gapic:csharp_gapic.bzl", + "csharp_proto_library", +) + +csharp_proto_library( + name = "enums_csharp_proto", + deps = [":enums_proto"], +) + +############################################################################## +# Ruby +############################################################################## +load( + "@gapic_generator_ruby//rules_ruby_gapic:ruby_gapic.bzl", + "ruby_proto_library", +) + +ruby_proto_library( + name = "enums_ruby_proto", + deps = [":enums_proto"], +) + +############################################################################## +# Python +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "py_proto_library", +) + +py_proto_library( + name = "enums_py_proto", + deps = [":enums_proto"], +) diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/access_reason.proto b/third_party/googleapis/google/ads/googleads/v4/enums/access_reason.proto index a560318a4..c2d3e785a 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/access_reason.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/access_reason.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/access_role.proto b/third_party/googleapis/google/ads/googleads/v4/enums/access_role.proto index 958adc1d3..06aa865bd 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/access_role.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/access_role.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/account_budget_proposal_status.proto b/third_party/googleapis/google/ads/googleads/v4/enums/account_budget_proposal_status.proto index 9cce22f5d..6978f2195 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/account_budget_proposal_status.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/account_budget_proposal_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/account_budget_proposal_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/account_budget_proposal_type.proto index a1832c9be..ddba188f3 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/account_budget_proposal_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/account_budget_proposal_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/account_budget_status.proto b/third_party/googleapis/google/ads/googleads/v4/enums/account_budget_status.proto index 88697ff7f..94e7e0f57 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/account_budget_status.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/account_budget_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/account_link_status.proto b/third_party/googleapis/google/ads/googleads/v4/enums/account_link_status.proto index 3b11c6988..e19d8be3e 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/account_link_status.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/account_link_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/ad_customizer_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v4/enums/ad_customizer_placeholder_field.proto index f090dadb1..bab3ac02c 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/ad_customizer_placeholder_field.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/ad_customizer_placeholder_field.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/ad_group_ad_rotation_mode.proto b/third_party/googleapis/google/ads/googleads/v4/enums/ad_group_ad_rotation_mode.proto index 1bbcda8fb..c4e7daedb 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/ad_group_ad_rotation_mode.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/ad_group_ad_rotation_mode.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/ad_group_ad_status.proto b/third_party/googleapis/google/ads/googleads/v4/enums/ad_group_ad_status.proto index e293788f6..e959c2c93 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/ad_group_ad_status.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/ad_group_ad_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/ad_group_criterion_approval_status.proto b/third_party/googleapis/google/ads/googleads/v4/enums/ad_group_criterion_approval_status.proto index 0668e8069..9fc408f8e 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/ad_group_criterion_approval_status.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/ad_group_criterion_approval_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/ad_group_criterion_status.proto b/third_party/googleapis/google/ads/googleads/v4/enums/ad_group_criterion_status.proto index 0f869534b..a7f2a56cb 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/ad_group_criterion_status.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/ad_group_criterion_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/ad_group_status.proto b/third_party/googleapis/google/ads/googleads/v4/enums/ad_group_status.proto index f75314754..595c6e793 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/ad_group_status.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/ad_group_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/ad_group_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/ad_group_type.proto index 8073b20b9..832b985c7 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/ad_group_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/ad_group_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/ad_network_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/ad_network_type.proto index 7a3de0c47..ce9c6619d 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/ad_network_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/ad_network_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/ad_serving_optimization_status.proto b/third_party/googleapis/google/ads/googleads/v4/enums/ad_serving_optimization_status.proto index 61a717e3e..06d1e9e0b 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/ad_serving_optimization_status.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/ad_serving_optimization_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/ad_strength.proto b/third_party/googleapis/google/ads/googleads/v4/enums/ad_strength.proto index 089df1b51..932ef53fe 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/ad_strength.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/ad_strength.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/ad_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/ad_type.proto index 3ef5b5082..03262ed23 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/ad_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/ad_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/advertising_channel_sub_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/advertising_channel_sub_type.proto index b6e937b07..e27296896 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/advertising_channel_sub_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/advertising_channel_sub_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/advertising_channel_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/advertising_channel_type.proto index 92844a2dd..4f1b9052f 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/advertising_channel_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/advertising_channel_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/affiliate_location_feed_relationship_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/affiliate_location_feed_relationship_type.proto index 2dc123b77..503a2d668 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/affiliate_location_feed_relationship_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/affiliate_location_feed_relationship_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/affiliate_location_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v4/enums/affiliate_location_placeholder_field.proto index d90e31dcc..743d77ce1 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/affiliate_location_placeholder_field.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/affiliate_location_placeholder_field.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/age_range_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/age_range_type.proto index cc993d30c..9eaaa2c73 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/age_range_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/age_range_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/app_campaign_app_store.proto b/third_party/googleapis/google/ads/googleads/v4/enums/app_campaign_app_store.proto index 0012cada4..98e48cb30 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/app_campaign_app_store.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/app_campaign_app_store.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/app_campaign_bidding_strategy_goal_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/app_campaign_bidding_strategy_goal_type.proto index 202e1f711..c8aeadc98 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/app_campaign_bidding_strategy_goal_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/app_campaign_bidding_strategy_goal_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/app_payment_model_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/app_payment_model_type.proto index 73fe06b27..f0b6ffe2f 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/app_payment_model_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/app_payment_model_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/app_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v4/enums/app_placeholder_field.proto index 16901db9f..d5ed84f99 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/app_placeholder_field.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/app_placeholder_field.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/app_store.proto b/third_party/googleapis/google/ads/googleads/v4/enums/app_store.proto index 8460a600e..f545fe86e 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/app_store.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/app_store.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/app_url_operating_system_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/app_url_operating_system_type.proto index 10187575a..616dc39df 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/app_url_operating_system_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/app_url_operating_system_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/asset_field_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/asset_field_type.proto index 12b8e7101..a9625a9f1 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/asset_field_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/asset_field_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/asset_performance_label.proto b/third_party/googleapis/google/ads/googleads/v4/enums/asset_performance_label.proto index 1ba36b003..bceffe70c 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/asset_performance_label.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/asset_performance_label.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/asset_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/asset_type.proto index 6e02ac9dd..bd8ea3f37 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/asset_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/asset_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/attribution_model.proto b/third_party/googleapis/google/ads/googleads/v4/enums/attribution_model.proto index 84a541ebd..9e26108fa 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/attribution_model.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/attribution_model.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/batch_job_status.proto b/third_party/googleapis/google/ads/googleads/v4/enums/batch_job_status.proto index 4fbd4b3fe..daa06ee8a 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/batch_job_status.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/batch_job_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/bid_modifier_source.proto b/third_party/googleapis/google/ads/googleads/v4/enums/bid_modifier_source.proto index c6287df9e..3914dc8fb 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/bid_modifier_source.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/bid_modifier_source.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/bidding_source.proto b/third_party/googleapis/google/ads/googleads/v4/enums/bidding_source.proto index b7232c57c..bbdfba4ee 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/bidding_source.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/bidding_source.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/bidding_strategy_status.proto b/third_party/googleapis/google/ads/googleads/v4/enums/bidding_strategy_status.proto index 3b9fffcb6..04596f287 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/bidding_strategy_status.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/bidding_strategy_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/bidding_strategy_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/bidding_strategy_type.proto index 45324d453..c9af30b1d 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/bidding_strategy_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/bidding_strategy_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/billing_setup_status.proto b/third_party/googleapis/google/ads/googleads/v4/enums/billing_setup_status.proto index 65d7376de..393b95130 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/billing_setup_status.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/billing_setup_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/brand_safety_suitability.proto b/third_party/googleapis/google/ads/googleads/v4/enums/brand_safety_suitability.proto index 62a3da8c7..e7a283e62 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/brand_safety_suitability.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/brand_safety_suitability.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/budget_delivery_method.proto b/third_party/googleapis/google/ads/googleads/v4/enums/budget_delivery_method.proto index 01eeaf86f..82c847aad 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/budget_delivery_method.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/budget_delivery_method.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/budget_period.proto b/third_party/googleapis/google/ads/googleads/v4/enums/budget_period.proto index 4fe14b135..6c7f8b113 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/budget_period.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/budget_period.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/budget_status.proto b/third_party/googleapis/google/ads/googleads/v4/enums/budget_status.proto index 56e04476b..fe8c9f749 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/budget_status.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/budget_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/budget_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/budget_type.proto index b97c72f60..2ff9f60eb 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/budget_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/budget_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/call_conversion_reporting_state.proto b/third_party/googleapis/google/ads/googleads/v4/enums/call_conversion_reporting_state.proto index 7fa9206a2..d8a90a3e7 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/call_conversion_reporting_state.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/call_conversion_reporting_state.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/call_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v4/enums/call_placeholder_field.proto index cd2461334..79e4bfafc 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/call_placeholder_field.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/call_placeholder_field.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/callout_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v4/enums/callout_placeholder_field.proto index 42ba80800..204063066 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/callout_placeholder_field.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/callout_placeholder_field.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/campaign_criterion_status.proto b/third_party/googleapis/google/ads/googleads/v4/enums/campaign_criterion_status.proto index 8847356c1..ec4f7bfac 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/campaign_criterion_status.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/campaign_criterion_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/campaign_draft_status.proto b/third_party/googleapis/google/ads/googleads/v4/enums/campaign_draft_status.proto index fc26c9460..eabdd359f 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/campaign_draft_status.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/campaign_draft_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/campaign_experiment_status.proto b/third_party/googleapis/google/ads/googleads/v4/enums/campaign_experiment_status.proto index eb8430460..7b3d3723a 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/campaign_experiment_status.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/campaign_experiment_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/campaign_experiment_traffic_split_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/campaign_experiment_traffic_split_type.proto index 2ce39ff14..3f8207312 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/campaign_experiment_traffic_split_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/campaign_experiment_traffic_split_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/campaign_experiment_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/campaign_experiment_type.proto index e1a84b806..3bc90aa84 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/campaign_experiment_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/campaign_experiment_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/campaign_serving_status.proto b/third_party/googleapis/google/ads/googleads/v4/enums/campaign_serving_status.proto index 348e1a91b..15f171560 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/campaign_serving_status.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/campaign_serving_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/campaign_shared_set_status.proto b/third_party/googleapis/google/ads/googleads/v4/enums/campaign_shared_set_status.proto index e03468373..dda25edc5 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/campaign_shared_set_status.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/campaign_shared_set_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/campaign_status.proto b/third_party/googleapis/google/ads/googleads/v4/enums/campaign_status.proto index f3da40d7c..4a4fba5aa 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/campaign_status.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/campaign_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/change_status_operation.proto b/third_party/googleapis/google/ads/googleads/v4/enums/change_status_operation.proto index 5a04347b6..0cedd17c0 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/change_status_operation.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/change_status_operation.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/change_status_resource_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/change_status_resource_type.proto index 94bd53525..ed5df0702 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/change_status_resource_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/change_status_resource_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/click_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/click_type.proto index 7e7dd5029..7e77f00f8 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/click_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/click_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/content_label_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/content_label_type.proto index 413b718ad..012097c4e 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/content_label_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/content_label_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/conversion_action_category.proto b/third_party/googleapis/google/ads/googleads/v4/enums/conversion_action_category.proto index 5c2434d7b..f2867e3f0 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/conversion_action_category.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/conversion_action_category.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/conversion_action_counting_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/conversion_action_counting_type.proto index 63f25a62e..53e961e52 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/conversion_action_counting_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/conversion_action_counting_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/conversion_action_status.proto b/third_party/googleapis/google/ads/googleads/v4/enums/conversion_action_status.proto index 4082537f3..d59454f5e 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/conversion_action_status.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/conversion_action_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/conversion_action_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/conversion_action_type.proto index b33896045..7e15a66e4 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/conversion_action_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/conversion_action_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/conversion_adjustment_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/conversion_adjustment_type.proto index 44d6266d6..828dbca0a 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/conversion_adjustment_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/conversion_adjustment_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/conversion_attribution_event_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/conversion_attribution_event_type.proto index c048f70bd..6defd4f7f 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/conversion_attribution_event_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/conversion_attribution_event_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/conversion_lag_bucket.proto b/third_party/googleapis/google/ads/googleads/v4/enums/conversion_lag_bucket.proto index 11bd1a9ce..010df9350 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/conversion_lag_bucket.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/conversion_lag_bucket.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/conversion_or_adjustment_lag_bucket.proto b/third_party/googleapis/google/ads/googleads/v4/enums/conversion_or_adjustment_lag_bucket.proto index 4034c0ae0..15c5b289d 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/conversion_or_adjustment_lag_bucket.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/conversion_or_adjustment_lag_bucket.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/criterion_category_channel_availability_mode.proto b/third_party/googleapis/google/ads/googleads/v4/enums/criterion_category_channel_availability_mode.proto index aa753a085..66e6f6c55 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/criterion_category_channel_availability_mode.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/criterion_category_channel_availability_mode.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/criterion_category_locale_availability_mode.proto b/third_party/googleapis/google/ads/googleads/v4/enums/criterion_category_locale_availability_mode.proto index 4df55ec46..d8a5b0ad9 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/criterion_category_locale_availability_mode.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/criterion_category_locale_availability_mode.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/criterion_system_serving_status.proto b/third_party/googleapis/google/ads/googleads/v4/enums/criterion_system_serving_status.proto index 601561186..b0d000998 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/criterion_system_serving_status.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/criterion_system_serving_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/criterion_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/criterion_type.proto index e2be48916..bf41ec01c 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/criterion_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/criterion_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/custom_interest_member_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/custom_interest_member_type.proto index 8f47d3c72..039b49f40 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/custom_interest_member_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/custom_interest_member_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/custom_interest_status.proto b/third_party/googleapis/google/ads/googleads/v4/enums/custom_interest_status.proto index be7b479af..c41e4f279 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/custom_interest_status.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/custom_interest_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/custom_interest_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/custom_interest_type.proto index 1c493fda3..f83f29340 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/custom_interest_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/custom_interest_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/custom_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v4/enums/custom_placeholder_field.proto index cdd785547..6ea4cd0c8 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/custom_placeholder_field.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/custom_placeholder_field.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/customer_match_upload_key_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/customer_match_upload_key_type.proto index c4f258a07..6c957df60 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/customer_match_upload_key_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/customer_match_upload_key_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/customer_pay_per_conversion_eligibility_failure_reason.proto b/third_party/googleapis/google/ads/googleads/v4/enums/customer_pay_per_conversion_eligibility_failure_reason.proto index 2647b3a18..4795b9b00 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/customer_pay_per_conversion_eligibility_failure_reason.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/customer_pay_per_conversion_eligibility_failure_reason.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/data_driven_model_status.proto b/third_party/googleapis/google/ads/googleads/v4/enums/data_driven_model_status.proto index cff74e315..8badc9c2d 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/data_driven_model_status.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/data_driven_model_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/day_of_week.proto b/third_party/googleapis/google/ads/googleads/v4/enums/day_of_week.proto index c7a67df8f..53c6886ca 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/day_of_week.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/day_of_week.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/device.proto b/third_party/googleapis/google/ads/googleads/v4/enums/device.proto index 4b6dae1bb..26209c8af 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/device.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/device.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/display_ad_format_setting.proto b/third_party/googleapis/google/ads/googleads/v4/enums/display_ad_format_setting.proto index 2dca34eb4..9e70f2fbc 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/display_ad_format_setting.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/display_ad_format_setting.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/display_upload_product_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/display_upload_product_type.proto index 6450ad460..f0d0a2945 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/display_upload_product_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/display_upload_product_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/distance_bucket.proto b/third_party/googleapis/google/ads/googleads/v4/enums/distance_bucket.proto index ce22d3ef3..dbbbe3616 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/distance_bucket.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/distance_bucket.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/dsa_page_feed_criterion_field.proto b/third_party/googleapis/google/ads/googleads/v4/enums/dsa_page_feed_criterion_field.proto index da5641f0c..3b90621de 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/dsa_page_feed_criterion_field.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/dsa_page_feed_criterion_field.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/education_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v4/enums/education_placeholder_field.proto index d88f840b4..d72229adf 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/education_placeholder_field.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/education_placeholder_field.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/extension_setting_device.proto b/third_party/googleapis/google/ads/googleads/v4/enums/extension_setting_device.proto index b1fb3ef4f..dcd17c038 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/extension_setting_device.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/extension_setting_device.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/extension_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/extension_type.proto index 899e534d8..7761de75d 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/extension_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/extension_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/external_conversion_source.proto b/third_party/googleapis/google/ads/googleads/v4/enums/external_conversion_source.proto index d66f10f58..9f58e4bb3 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/external_conversion_source.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/external_conversion_source.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/feed_attribute_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/feed_attribute_type.proto index 1bc925b9e..edfeaffd9 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/feed_attribute_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/feed_attribute_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/feed_item_quality_approval_status.proto b/third_party/googleapis/google/ads/googleads/v4/enums/feed_item_quality_approval_status.proto index e9604b75a..a0561d5f5 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/feed_item_quality_approval_status.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/feed_item_quality_approval_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/feed_item_quality_disapproval_reason.proto b/third_party/googleapis/google/ads/googleads/v4/enums/feed_item_quality_disapproval_reason.proto index b719e2a4d..399c3b580 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/feed_item_quality_disapproval_reason.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/feed_item_quality_disapproval_reason.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/feed_item_status.proto b/third_party/googleapis/google/ads/googleads/v4/enums/feed_item_status.proto index 459f972bc..be50156a3 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/feed_item_status.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/feed_item_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/feed_item_target_device.proto b/third_party/googleapis/google/ads/googleads/v4/enums/feed_item_target_device.proto index 94bf2ef7b..46aa1b175 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/feed_item_target_device.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/feed_item_target_device.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/feed_item_target_status.proto b/third_party/googleapis/google/ads/googleads/v4/enums/feed_item_target_status.proto index 95c2a2924..848a4b10c 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/feed_item_target_status.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/feed_item_target_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/feed_item_target_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/feed_item_target_type.proto index 7220be45e..9a61da6f3 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/feed_item_target_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/feed_item_target_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/feed_item_validation_status.proto b/third_party/googleapis/google/ads/googleads/v4/enums/feed_item_validation_status.proto index 3977ec109..86293d21a 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/feed_item_validation_status.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/feed_item_validation_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/feed_link_status.proto b/third_party/googleapis/google/ads/googleads/v4/enums/feed_link_status.proto index 46d2c152e..f0aa2b5ff 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/feed_link_status.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/feed_link_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/feed_mapping_criterion_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/feed_mapping_criterion_type.proto index 1a5cb662b..18434e727 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/feed_mapping_criterion_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/feed_mapping_criterion_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/feed_mapping_status.proto b/third_party/googleapis/google/ads/googleads/v4/enums/feed_mapping_status.proto index 13228b95f..d7e45bda6 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/feed_mapping_status.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/feed_mapping_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/feed_origin.proto b/third_party/googleapis/google/ads/googleads/v4/enums/feed_origin.proto index dbf40f9a3..1563ec542 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/feed_origin.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/feed_origin.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/feed_status.proto b/third_party/googleapis/google/ads/googleads/v4/enums/feed_status.proto index 14a07ded3..f829f5d9e 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/feed_status.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/feed_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/flight_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v4/enums/flight_placeholder_field.proto index 16a7c6646..ca0355f86 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/flight_placeholder_field.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/flight_placeholder_field.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/frequency_cap_event_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/frequency_cap_event_type.proto index d7e862706..57121af36 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/frequency_cap_event_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/frequency_cap_event_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/frequency_cap_level.proto b/third_party/googleapis/google/ads/googleads/v4/enums/frequency_cap_level.proto index a8edb7511..6b04f0870 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/frequency_cap_level.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/frequency_cap_level.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/frequency_cap_time_unit.proto b/third_party/googleapis/google/ads/googleads/v4/enums/frequency_cap_time_unit.proto index ba928d64e..efe57705b 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/frequency_cap_time_unit.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/frequency_cap_time_unit.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/gender_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/gender_type.proto index 463630431..bfda5a990 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/gender_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/gender_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/geo_target_constant_status.proto b/third_party/googleapis/google/ads/googleads/v4/enums/geo_target_constant_status.proto index 465f353a7..9efb131b3 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/geo_target_constant_status.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/geo_target_constant_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/geo_targeting_restriction.proto b/third_party/googleapis/google/ads/googleads/v4/enums/geo_targeting_restriction.proto index 11e98a03a..c6274ef41 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/geo_targeting_restriction.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/geo_targeting_restriction.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/geo_targeting_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/geo_targeting_type.proto index 2fdc7756e..af608f546 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/geo_targeting_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/geo_targeting_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/google_ads_field_category.proto b/third_party/googleapis/google/ads/googleads/v4/enums/google_ads_field_category.proto index 8bf25f380..8661f7522 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/google_ads_field_category.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/google_ads_field_category.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/google_ads_field_data_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/google_ads_field_data_type.proto index e4bcd52ae..549e2364f 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/google_ads_field_data_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/google_ads_field_data_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/hotel_date_selection_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/hotel_date_selection_type.proto index 8e6461dfe..9f5531158 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/hotel_date_selection_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/hotel_date_selection_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/hotel_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v4/enums/hotel_placeholder_field.proto index f9fd8e543..7055a4631 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/hotel_placeholder_field.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/hotel_placeholder_field.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/hotel_price_bucket.proto b/third_party/googleapis/google/ads/googleads/v4/enums/hotel_price_bucket.proto index bb6e9cf7a..370fb4cc8 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/hotel_price_bucket.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/hotel_price_bucket.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/hotel_rate_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/hotel_rate_type.proto index ccaa653c9..984c60285 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/hotel_rate_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/hotel_rate_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/income_range_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/income_range_type.proto index f4e339f0c..7c6c5604d 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/income_range_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/income_range_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/interaction_event_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/interaction_event_type.proto index 4129e1b56..1ceabfbc3 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/interaction_event_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/interaction_event_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/interaction_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/interaction_type.proto index 89e0282aa..cb65e92b8 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/interaction_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/interaction_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/invoice_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/invoice_type.proto index 88c70d2d8..4caa281ff 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/invoice_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/invoice_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/job_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v4/enums/job_placeholder_field.proto index 40f6e4fcf..348fb69c0 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/job_placeholder_field.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/job_placeholder_field.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/keyword_match_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/keyword_match_type.proto index 35ed549f7..c527709e8 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/keyword_match_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/keyword_match_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/keyword_plan_competition_level.proto b/third_party/googleapis/google/ads/googleads/v4/enums/keyword_plan_competition_level.proto index 62aada910..e155b317b 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/keyword_plan_competition_level.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/keyword_plan_competition_level.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/keyword_plan_forecast_interval.proto b/third_party/googleapis/google/ads/googleads/v4/enums/keyword_plan_forecast_interval.proto index 2c97fb465..810de8525 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/keyword_plan_forecast_interval.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/keyword_plan_forecast_interval.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/keyword_plan_network.proto b/third_party/googleapis/google/ads/googleads/v4/enums/keyword_plan_network.proto index 02630559c..154346300 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/keyword_plan_network.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/keyword_plan_network.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/label_status.proto b/third_party/googleapis/google/ads/googleads/v4/enums/label_status.proto index 1c3e310e8..7a7026361 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/label_status.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/label_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/legacy_app_install_ad_app_store.proto b/third_party/googleapis/google/ads/googleads/v4/enums/legacy_app_install_ad_app_store.proto index 9fd2853fa..35da6c885 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/legacy_app_install_ad_app_store.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/legacy_app_install_ad_app_store.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/linked_account_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/linked_account_type.proto index 7d896525c..c8350113c 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/linked_account_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/linked_account_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/listing_group_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/listing_group_type.proto index fa8e8feed..a19c7e628 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/listing_group_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/listing_group_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/local_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v4/enums/local_placeholder_field.proto index deb73897a..704db3236 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/local_placeholder_field.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/local_placeholder_field.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/location_extension_targeting_criterion_field.proto b/third_party/googleapis/google/ads/googleads/v4/enums/location_extension_targeting_criterion_field.proto index 45e7fa320..6285fd554 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/location_extension_targeting_criterion_field.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/location_extension_targeting_criterion_field.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/location_group_radius_units.proto b/third_party/googleapis/google/ads/googleads/v4/enums/location_group_radius_units.proto index 70c202299..25d0a9b04 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/location_group_radius_units.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/location_group_radius_units.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/location_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v4/enums/location_placeholder_field.proto index 048925bcf..2db4f1e3a 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/location_placeholder_field.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/location_placeholder_field.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/location_source_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/location_source_type.proto index ae77e875c..c8244e7ea 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/location_source_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/location_source_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/manager_link_status.proto b/third_party/googleapis/google/ads/googleads/v4/enums/manager_link_status.proto index 4139ea918..f64454cef 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/manager_link_status.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/manager_link_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/matching_function_context_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/matching_function_context_type.proto index da3b45fc8..6758b1b3f 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/matching_function_context_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/matching_function_context_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/matching_function_operator.proto b/third_party/googleapis/google/ads/googleads/v4/enums/matching_function_operator.proto index 0f8c3a0ea..d3544432d 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/matching_function_operator.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/matching_function_operator.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/media_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/media_type.proto index b989d14e1..755df8b60 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/media_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/media_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/merchant_center_link_status.proto b/third_party/googleapis/google/ads/googleads/v4/enums/merchant_center_link_status.proto index bb1e1c8eb..79ee833a3 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/merchant_center_link_status.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/merchant_center_link_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/message_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v4/enums/message_placeholder_field.proto index b2c9a81ae..c9e1d6ce0 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/message_placeholder_field.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/message_placeholder_field.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/mime_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/mime_type.proto index 50693b616..43c9c09a3 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/mime_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/mime_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/minute_of_hour.proto b/third_party/googleapis/google/ads/googleads/v4/enums/minute_of_hour.proto index 5e15cced7..0eae256d9 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/minute_of_hour.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/minute_of_hour.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/mobile_app_vendor.proto b/third_party/googleapis/google/ads/googleads/v4/enums/mobile_app_vendor.proto index 1dc86f6fc..dba305bf3 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/mobile_app_vendor.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/mobile_app_vendor.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/mobile_device_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/mobile_device_type.proto index a65c3ba39..324c8a02d 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/mobile_device_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/mobile_device_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/month_of_year.proto b/third_party/googleapis/google/ads/googleads/v4/enums/month_of_year.proto index a57146495..e6c966512 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/month_of_year.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/month_of_year.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/negative_geo_target_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/negative_geo_target_type.proto index fac77ea0a..dfad76d65 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/negative_geo_target_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/negative_geo_target_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/offline_user_data_job_failure_reason.proto b/third_party/googleapis/google/ads/googleads/v4/enums/offline_user_data_job_failure_reason.proto index 16fd1d3a5..a9a346901 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/offline_user_data_job_failure_reason.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/offline_user_data_job_failure_reason.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/offline_user_data_job_status.proto b/third_party/googleapis/google/ads/googleads/v4/enums/offline_user_data_job_status.proto index c8ef80c31..08d98dbb4 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/offline_user_data_job_status.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/offline_user_data_job_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/offline_user_data_job_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/offline_user_data_job_type.proto index 3d6301af5..475eaf05e 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/offline_user_data_job_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/offline_user_data_job_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/operating_system_version_operator_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/operating_system_version_operator_type.proto index 100f66325..c35cc715b 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/operating_system_version_operator_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/operating_system_version_operator_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/optimization_goal_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/optimization_goal_type.proto index 77847790e..01348fdd8 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/optimization_goal_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/optimization_goal_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/page_one_promoted_strategy_goal.proto b/third_party/googleapis/google/ads/googleads/v4/enums/page_one_promoted_strategy_goal.proto index 1378e5201..ec42ac663 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/page_one_promoted_strategy_goal.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/page_one_promoted_strategy_goal.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/parental_status_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/parental_status_type.proto index 16271c9c4..5a587d33b 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/parental_status_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/parental_status_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/payment_mode.proto b/third_party/googleapis/google/ads/googleads/v4/enums/payment_mode.proto index da8dcacd5..d3e677164 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/payment_mode.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/payment_mode.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/placeholder_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/placeholder_type.proto index 40713d1f9..7feb1c2fa 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/placeholder_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/placeholder_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/placement_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/placement_type.proto index e5d989059..d3b1d128f 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/placement_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/placement_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/policy_approval_status.proto b/third_party/googleapis/google/ads/googleads/v4/enums/policy_approval_status.proto index a6c967685..5e6e602aa 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/policy_approval_status.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/policy_approval_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/policy_review_status.proto b/third_party/googleapis/google/ads/googleads/v4/enums/policy_review_status.proto index 70aeddd63..77c806ede 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/policy_review_status.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/policy_review_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/policy_topic_entry_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/policy_topic_entry_type.proto index b82bc5fac..a977d91f5 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/policy_topic_entry_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/policy_topic_entry_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/policy_topic_evidence_destination_mismatch_url_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/policy_topic_evidence_destination_mismatch_url_type.proto index bab3de365..aeaf9679d 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/policy_topic_evidence_destination_mismatch_url_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/policy_topic_evidence_destination_mismatch_url_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/policy_topic_evidence_destination_not_working_device.proto b/third_party/googleapis/google/ads/googleads/v4/enums/policy_topic_evidence_destination_not_working_device.proto index 1fb4816ad..058186a7a 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/policy_topic_evidence_destination_not_working_device.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/policy_topic_evidence_destination_not_working_device.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/policy_topic_evidence_destination_not_working_dns_error_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/policy_topic_evidence_destination_not_working_dns_error_type.proto index beca9d02d..8898970f4 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/policy_topic_evidence_destination_not_working_dns_error_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/policy_topic_evidence_destination_not_working_dns_error_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/positive_geo_target_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/positive_geo_target_type.proto index d1ce48a12..1b13151f4 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/positive_geo_target_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/positive_geo_target_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -45,6 +45,8 @@ message PositiveGeoTargetTypeEnum { // Specifies that an ad is triggered if the user // searches for advertiser's targeted locations. + // This can only be used with Search and standard + // Shopping campaigns. SEARCH_INTEREST = 6; // Specifies that an ad is triggered if the user is in diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/preferred_content_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/preferred_content_type.proto index 1cef3e19a..458890ad6 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/preferred_content_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/preferred_content_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/price_extension_price_qualifier.proto b/third_party/googleapis/google/ads/googleads/v4/enums/price_extension_price_qualifier.proto index 5e5ba3ad9..e0a105d22 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/price_extension_price_qualifier.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/price_extension_price_qualifier.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/price_extension_price_unit.proto b/third_party/googleapis/google/ads/googleads/v4/enums/price_extension_price_unit.proto index d2af4a20c..4d82fbee7 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/price_extension_price_unit.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/price_extension_price_unit.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/price_extension_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/price_extension_type.proto index c70e0b079..69b36413d 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/price_extension_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/price_extension_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/price_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v4/enums/price_placeholder_field.proto index 6d90d9dd2..3f74b2b91 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/price_placeholder_field.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/price_placeholder_field.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/product_bidding_category_level.proto b/third_party/googleapis/google/ads/googleads/v4/enums/product_bidding_category_level.proto index 1cac3cb88..9cc913be8 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/product_bidding_category_level.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/product_bidding_category_level.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/product_bidding_category_status.proto b/third_party/googleapis/google/ads/googleads/v4/enums/product_bidding_category_status.proto index 29991fe34..cf812ee6d 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/product_bidding_category_status.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/product_bidding_category_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/product_channel.proto b/third_party/googleapis/google/ads/googleads/v4/enums/product_channel.proto index 0d2059ccf..c89d92528 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/product_channel.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/product_channel.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/product_channel_exclusivity.proto b/third_party/googleapis/google/ads/googleads/v4/enums/product_channel_exclusivity.proto index 6e8ec437c..d88dc3850 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/product_channel_exclusivity.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/product_channel_exclusivity.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/product_condition.proto b/third_party/googleapis/google/ads/googleads/v4/enums/product_condition.proto index 51f47c62c..01b8ffb76 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/product_condition.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/product_condition.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/product_custom_attribute_index.proto b/third_party/googleapis/google/ads/googleads/v4/enums/product_custom_attribute_index.proto index 18b7cd91f..c8181a533 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/product_custom_attribute_index.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/product_custom_attribute_index.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/product_type_level.proto b/third_party/googleapis/google/ads/googleads/v4/enums/product_type_level.proto index 2e5c650a9..d3f12119e 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/product_type_level.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/product_type_level.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/promotion_extension_discount_modifier.proto b/third_party/googleapis/google/ads/googleads/v4/enums/promotion_extension_discount_modifier.proto index 4fa3ddb6e..130959f5f 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/promotion_extension_discount_modifier.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/promotion_extension_discount_modifier.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/promotion_extension_occasion.proto b/third_party/googleapis/google/ads/googleads/v4/enums/promotion_extension_occasion.proto index 223976ba4..6957793ec 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/promotion_extension_occasion.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/promotion_extension_occasion.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/promotion_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v4/enums/promotion_placeholder_field.proto index bc4807bab..ded588571 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/promotion_placeholder_field.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/promotion_placeholder_field.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/proximity_radius_units.proto b/third_party/googleapis/google/ads/googleads/v4/enums/proximity_radius_units.proto index 676008138..454d81b01 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/proximity_radius_units.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/proximity_radius_units.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/quality_score_bucket.proto b/third_party/googleapis/google/ads/googleads/v4/enums/quality_score_bucket.proto index 809550c9c..ac31fe5fa 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/quality_score_bucket.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/quality_score_bucket.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/reach_plan_ad_length.proto b/third_party/googleapis/google/ads/googleads/v4/enums/reach_plan_ad_length.proto index e0241fafd..85f139382 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/reach_plan_ad_length.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/reach_plan_ad_length.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/reach_plan_age_range.proto b/third_party/googleapis/google/ads/googleads/v4/enums/reach_plan_age_range.proto index 4f8657021..bdd9fdf45 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/reach_plan_age_range.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/reach_plan_age_range.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/reach_plan_network.proto b/third_party/googleapis/google/ads/googleads/v4/enums/reach_plan_network.proto index c700123a7..953c3baf2 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/reach_plan_network.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/reach_plan_network.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/real_estate_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v4/enums/real_estate_placeholder_field.proto index 447773c73..a64297c03 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/real_estate_placeholder_field.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/real_estate_placeholder_field.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/recommendation_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/recommendation_type.proto index 687da50e4..be6e37f09 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/recommendation_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/recommendation_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/search_engine_results_page_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/search_engine_results_page_type.proto index 83c3fe0f8..a29b30ac4 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/search_engine_results_page_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/search_engine_results_page_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/search_term_match_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/search_term_match_type.proto index 8aed5a8e5..4a63af9d1 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/search_term_match_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/search_term_match_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/search_term_targeting_status.proto b/third_party/googleapis/google/ads/googleads/v4/enums/search_term_targeting_status.proto index e6a0fced1..a67b13e20 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/search_term_targeting_status.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/search_term_targeting_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/served_asset_field_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/served_asset_field_type.proto index 884822d62..4d714ba74 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/served_asset_field_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/served_asset_field_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/shared_set_status.proto b/third_party/googleapis/google/ads/googleads/v4/enums/shared_set_status.proto index 2c1ff1cd3..9e7919e16 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/shared_set_status.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/shared_set_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/shared_set_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/shared_set_type.proto index ad80c44af..54491034a 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/shared_set_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/shared_set_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/simulation_modification_method.proto b/third_party/googleapis/google/ads/googleads/v4/enums/simulation_modification_method.proto index 5fa5929af..ecf05e542 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/simulation_modification_method.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/simulation_modification_method.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/simulation_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/simulation_type.proto index 46755abe3..9d03b7c8d 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/simulation_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/simulation_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/sitelink_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v4/enums/sitelink_placeholder_field.proto index 1d395bcc3..b79a83c74 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/sitelink_placeholder_field.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/sitelink_placeholder_field.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/slot.proto b/third_party/googleapis/google/ads/googleads/v4/enums/slot.proto index c862e7bb2..28ce47fe3 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/slot.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/slot.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/spending_limit_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/spending_limit_type.proto index d6fbb0c72..9740bf4e1 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/spending_limit_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/spending_limit_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/structured_snippet_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v4/enums/structured_snippet_placeholder_field.proto index d58005fc6..1ce841749 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/structured_snippet_placeholder_field.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/structured_snippet_placeholder_field.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/summary_row_setting.proto b/third_party/googleapis/google/ads/googleads/v4/enums/summary_row_setting.proto index 48fa251e5..e64708050 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/summary_row_setting.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/summary_row_setting.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/system_managed_entity_source.proto b/third_party/googleapis/google/ads/googleads/v4/enums/system_managed_entity_source.proto index 0105bc10f..608b55ec9 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/system_managed_entity_source.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/system_managed_entity_source.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/target_cpa_opt_in_recommendation_goal.proto b/third_party/googleapis/google/ads/googleads/v4/enums/target_cpa_opt_in_recommendation_goal.proto index 59fde9454..09450228b 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/target_cpa_opt_in_recommendation_goal.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/target_cpa_opt_in_recommendation_goal.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/target_impression_share_location.proto b/third_party/googleapis/google/ads/googleads/v4/enums/target_impression_share_location.proto index 5e7551c4d..e29043a73 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/target_impression_share_location.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/target_impression_share_location.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/targeting_dimension.proto b/third_party/googleapis/google/ads/googleads/v4/enums/targeting_dimension.proto index 398a32010..cdb780c4a 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/targeting_dimension.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/targeting_dimension.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/time_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/time_type.proto index d3bb1ac4a..51b209706 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/time_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/time_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/tracking_code_page_format.proto b/third_party/googleapis/google/ads/googleads/v4/enums/tracking_code_page_format.proto index db68cfe0d..4fa2554a2 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/tracking_code_page_format.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/tracking_code_page_format.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/tracking_code_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/tracking_code_type.proto index fb1495c8e..62c38cd47 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/tracking_code_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/tracking_code_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/travel_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v4/enums/travel_placeholder_field.proto index 3c8bdd008..6c34534f7 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/travel_placeholder_field.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/travel_placeholder_field.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/user_interest_taxonomy_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/user_interest_taxonomy_type.proto index 533c22049..6a6f11a32 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/user_interest_taxonomy_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/user_interest_taxonomy_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/user_list_access_status.proto b/third_party/googleapis/google/ads/googleads/v4/enums/user_list_access_status.proto index 22e9abc94..bc7413b3f 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/user_list_access_status.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/user_list_access_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/user_list_closing_reason.proto b/third_party/googleapis/google/ads/googleads/v4/enums/user_list_closing_reason.proto index d2008faef..d8db736d5 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/user_list_closing_reason.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/user_list_closing_reason.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/user_list_combined_rule_operator.proto b/third_party/googleapis/google/ads/googleads/v4/enums/user_list_combined_rule_operator.proto index 6e857903d..e361be661 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/user_list_combined_rule_operator.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/user_list_combined_rule_operator.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/user_list_crm_data_source_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/user_list_crm_data_source_type.proto index 2d79624d2..dc981c863 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/user_list_crm_data_source_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/user_list_crm_data_source_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/user_list_date_rule_item_operator.proto b/third_party/googleapis/google/ads/googleads/v4/enums/user_list_date_rule_item_operator.proto index 64f7cd804..aaa63a697 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/user_list_date_rule_item_operator.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/user_list_date_rule_item_operator.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/user_list_logical_rule_operator.proto b/third_party/googleapis/google/ads/googleads/v4/enums/user_list_logical_rule_operator.proto index b202ea7b3..76dcafed3 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/user_list_logical_rule_operator.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/user_list_logical_rule_operator.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/user_list_membership_status.proto b/third_party/googleapis/google/ads/googleads/v4/enums/user_list_membership_status.proto index adefd494d..36a5fb2af 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/user_list_membership_status.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/user_list_membership_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/user_list_number_rule_item_operator.proto b/third_party/googleapis/google/ads/googleads/v4/enums/user_list_number_rule_item_operator.proto index 2676c987c..7085993c7 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/user_list_number_rule_item_operator.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/user_list_number_rule_item_operator.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/user_list_prepopulation_status.proto b/third_party/googleapis/google/ads/googleads/v4/enums/user_list_prepopulation_status.proto index 4ea41fb55..c57b4a7c9 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/user_list_prepopulation_status.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/user_list_prepopulation_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/user_list_rule_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/user_list_rule_type.proto index fc7830eda..f4591186e 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/user_list_rule_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/user_list_rule_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/user_list_size_range.proto b/third_party/googleapis/google/ads/googleads/v4/enums/user_list_size_range.proto index ee442010f..5f58f6f8d 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/user_list_size_range.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/user_list_size_range.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/user_list_string_rule_item_operator.proto b/third_party/googleapis/google/ads/googleads/v4/enums/user_list_string_rule_item_operator.proto index 9104f0c93..ca2e52223 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/user_list_string_rule_item_operator.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/user_list_string_rule_item_operator.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/user_list_type.proto b/third_party/googleapis/google/ads/googleads/v4/enums/user_list_type.proto index 3c4828d7f..4b2920b6a 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/user_list_type.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/user_list_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/vanity_pharma_display_url_mode.proto b/third_party/googleapis/google/ads/googleads/v4/enums/vanity_pharma_display_url_mode.proto index 76c5bf30b..8f6e5c7d8 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/vanity_pharma_display_url_mode.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/vanity_pharma_display_url_mode.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/vanity_pharma_text.proto b/third_party/googleapis/google/ads/googleads/v4/enums/vanity_pharma_text.proto index bbbb198ef..6a7b9a3be 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/vanity_pharma_text.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/vanity_pharma_text.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/webpage_condition_operand.proto b/third_party/googleapis/google/ads/googleads/v4/enums/webpage_condition_operand.proto index 2d8acf143..02a161b30 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/webpage_condition_operand.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/webpage_condition_operand.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/enums/webpage_condition_operator.proto b/third_party/googleapis/google/ads/googleads/v4/enums/webpage_condition_operator.proto index c531532b9..cd8771bf1 100644 --- a/third_party/googleapis/google/ads/googleads/v4/enums/webpage_condition_operator.proto +++ b/third_party/googleapis/google/ads/googleads/v4/enums/webpage_condition_operator.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/BUILD.bazel b/third_party/googleapis/google/ads/googleads/v4/errors/BUILD.bazel new file mode 100644 index 000000000..f88de1603 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v4/errors/BUILD.bazel @@ -0,0 +1,94 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") + +# TODO(ohren): Change srcs to use an enumeration of each individual proto +# instead of *.proto globbing once the build file generator supports +# subpackages. +proto_library( + name = "errors_proto", + srcs = glob(["*.proto"]), + deps = [ + "//google/ads/googleads/v4/common:common_proto", + "//google/ads/googleads/v4/enums:enums_proto", + "//google/api:annotations_proto", + "@com_google_protobuf//:duration_proto", + "@com_google_protobuf//:wrappers_proto", + ], +) + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_proto_library", +) + +java_proto_library( + name = "errors_java_proto", + deps = [":errors_proto"], +) + +############################################################################## +# PHP +############################################################################## + +# PHP targets are in the parent directory's BUILD.bazel file to facilitate +# aggregating metadata using a single underlying call to protoc. + +############################################################################## +# C# +############################################################################## +load( + "@gapic_generator_csharp//rules_csharp_gapic:csharp_gapic.bzl", + "csharp_proto_library", +) + +csharp_proto_library( + name = "errors_csharp_proto", + deps = [":errors_proto"], +) + +############################################################################## +# Ruby +############################################################################## +load( + "@gapic_generator_ruby//rules_ruby_gapic:ruby_gapic.bzl", + "ruby_proto_library", +) + +ruby_proto_library( + name = "errors_ruby_proto", + deps = [":errors_proto"], +) + +############################################################################## +# Python +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "py_proto_library", +) + +py_proto_library( + name = "errors_py_proto", + deps = [":errors_proto"], +) diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/access_invitation_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/access_invitation_error.proto index ed4fc1da8..302b05c35 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/access_invitation_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/access_invitation_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/account_budget_proposal_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/account_budget_proposal_error.proto index 244d95d2b..7b1f78eba 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/account_budget_proposal_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/account_budget_proposal_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/account_link_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/account_link_error.proto index 946b2740c..b3af87f34 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/account_link_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/account_link_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/ad_customizer_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/ad_customizer_error.proto index 4a921b5a2..c09bffce2 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/ad_customizer_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/ad_customizer_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/ad_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/ad_error.proto index 6e0c01c82..eea3388bf 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/ad_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/ad_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/ad_group_ad_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/ad_group_ad_error.proto index 8f023b6f2..316f15060 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/ad_group_ad_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/ad_group_ad_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/ad_group_bid_modifier_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/ad_group_bid_modifier_error.proto index 89fee1c9a..27d79198a 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/ad_group_bid_modifier_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/ad_group_bid_modifier_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/ad_group_criterion_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/ad_group_criterion_error.proto index 77133b442..9529af7a8 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/ad_group_criterion_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/ad_group_criterion_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/ad_group_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/ad_group_error.proto index d746120ea..a6c077a45 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/ad_group_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/ad_group_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/ad_group_feed_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/ad_group_feed_error.proto index dc2c8b96e..ad537e5de 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/ad_group_feed_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/ad_group_feed_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/ad_parameter_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/ad_parameter_error.proto index 0288e4292..88fa97367 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/ad_parameter_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/ad_parameter_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/ad_sharing_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/ad_sharing_error.proto index 84ce78bc4..94829da34 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/ad_sharing_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/ad_sharing_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/adx_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/adx_error.proto index 21140fcf5..fc24ce5ee 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/adx_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/adx_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/asset_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/asset_error.proto index 55e327fbd..71340c967 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/asset_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/asset_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/asset_link_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/asset_link_error.proto index 101d5c01a..3974489e6 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/asset_link_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/asset_link_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/authentication_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/authentication_error.proto index a707c014f..226ec5299 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/authentication_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/authentication_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/authorization_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/authorization_error.proto index 958b93efb..a30a1914e 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/authorization_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/authorization_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/batch_job_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/batch_job_error.proto index 160cded9f..d1dc20555 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/batch_job_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/batch_job_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/bidding_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/bidding_error.proto index c2d3d9a05..cbf4f5bec 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/bidding_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/bidding_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -57,11 +57,11 @@ message BiddingErrorEnum { // Bidding strategy is not available for the account type. BIDDING_STRATEGY_NOT_AVAILABLE_FOR_ACCOUNT_TYPE = 18; - // Conversion tracking is not enabled in the campaign that has YouTube - // Video Builder transitions. + // Conversion tracking is not enabled in the campaign that has value-based + // bidding transitions. CONVERSION_TRACKING_NOT_ENABLED = 19; - // Not enough conversions tracked for YouTube Video Builder transitions. + // Not enough conversions tracked for value-based bidding transitions. NOT_ENOUGH_CONVERSIONS = 20; // Campaign can not be created with given bidding strategy. It can be diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/bidding_strategy_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/bidding_strategy_error.proto index d70f5a37f..a63c3446a 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/bidding_strategy_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/bidding_strategy_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/billing_setup_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/billing_setup_error.proto index b8acb52a7..83d063bf1 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/billing_setup_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/billing_setup_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/campaign_budget_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/campaign_budget_error.proto index 2bec50f9e..afb63fa2e 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/campaign_budget_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/campaign_budget_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/campaign_criterion_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/campaign_criterion_error.proto index 9dc62c6d5..2e5dcec08 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/campaign_criterion_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/campaign_criterion_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/campaign_draft_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/campaign_draft_error.proto index 9fa935eb0..0d4c3a5bf 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/campaign_draft_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/campaign_draft_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/campaign_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/campaign_error.proto index 353870a5b..0107b8e2b 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/campaign_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/campaign_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/campaign_experiment_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/campaign_experiment_error.proto index 9ffac2dcf..7a97e2f1f 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/campaign_experiment_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/campaign_experiment_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/campaign_feed_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/campaign_feed_error.proto index dd07c529b..ffbcd7ce8 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/campaign_feed_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/campaign_feed_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/campaign_shared_set_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/campaign_shared_set_error.proto index f423088f0..0ccee4e3c 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/campaign_shared_set_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/campaign_shared_set_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/change_status_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/change_status_error.proto index f47e93bde..009c0725f 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/change_status_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/change_status_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/collection_size_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/collection_size_error.proto index 46d8990d5..cc356ba34 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/collection_size_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/collection_size_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/context_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/context_error.proto index 46cd1e4ee..9031bd5b6 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/context_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/context_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/conversion_action_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/conversion_action_error.proto index 821468f42..99986bce3 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/conversion_action_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/conversion_action_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/conversion_adjustment_upload_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/conversion_adjustment_upload_error.proto index 04c8f94fe..b4850663d 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/conversion_adjustment_upload_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/conversion_adjustment_upload_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/conversion_upload_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/conversion_upload_error.proto index 835cd31ec..f828514b6 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/conversion_upload_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/conversion_upload_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -102,7 +102,7 @@ message ConversionUploadErrorEnum { // conversion action combination. DUPLICATE_ORDER_ID = 16; - // The call occurred too recently. Please try uploading again after 6 hours + // The call occurred too recently. Please try uploading again after 12 hours // have passed since the call occurred. TOO_RECENT_CALL = 17; diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/country_code_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/country_code_error.proto index 67597404c..a56e021bd 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/country_code_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/country_code_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/criterion_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/criterion_error.proto index 40e1e25f0..40cf4349b 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/criterion_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/criterion_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/currency_code_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/currency_code_error.proto index 451efd2b7..9e427ea7b 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/currency_code_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/currency_code_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/custom_interest_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/custom_interest_error.proto index a39d6dcd8..f2e8b7fad 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/custom_interest_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/custom_interest_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/customer_client_link_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/customer_client_link_error.proto index 90eee4050..86d0256f8 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/customer_client_link_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/customer_client_link_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/customer_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/customer_error.proto index 336d13a00..65f26e637 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/customer_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/customer_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/customer_feed_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/customer_feed_error.proto index 66384a54f..57081a51d 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/customer_feed_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/customer_feed_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/customer_manager_link_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/customer_manager_link_error.proto index 281ed4827..ace964e7b 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/customer_manager_link_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/customer_manager_link_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/database_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/database_error.proto index 0567d0650..387593043 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/database_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/database_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/date_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/date_error.proto index 527ad52ee..edc715afc 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/date_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/date_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/date_range_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/date_range_error.proto index 297cacc1e..fc73ec06e 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/date_range_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/date_range_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/distinct_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/distinct_error.proto index 1cbd1bec5..e76375cdd 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/distinct_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/distinct_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/enum_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/enum_error.proto index 0112e1c99..427c11617 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/enum_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/enum_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/errors.proto b/third_party/googleapis/google/ads/googleads/v4/errors/errors.proto index a39f89fed..cfe644274 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/errors.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/errors.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/extension_feed_item_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/extension_feed_item_error.proto index 29d449345..c1361f030 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/extension_feed_item_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/extension_feed_item_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/extension_setting_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/extension_setting_error.proto index f059883d0..5088e340d 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/extension_setting_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/extension_setting_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/feed_attribute_reference_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/feed_attribute_reference_error.proto index 353599e1e..23bffb6a0 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/feed_attribute_reference_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/feed_attribute_reference_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/feed_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/feed_error.proto index 52e9905a9..7334b562b 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/feed_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/feed_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/feed_item_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/feed_item_error.proto index b4222627c..ea1cba3e3 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/feed_item_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/feed_item_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/feed_item_target_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/feed_item_target_error.proto index 35704c3cc..f09d78196 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/feed_item_target_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/feed_item_target_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/feed_item_validation_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/feed_item_validation_error.proto index 279bdc2d5..e92bb7aec 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/feed_item_validation_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/feed_item_validation_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/feed_mapping_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/feed_mapping_error.proto index 9aea85ed9..bfd404c1a 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/feed_mapping_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/feed_mapping_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/field_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/field_error.proto index 10b810d69..773a4be22 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/field_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/field_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/field_mask_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/field_mask_error.proto index b23da4fb8..28f33d0df 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/field_mask_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/field_mask_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/function_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/function_error.proto index 6acb6cc93..920cc6d54 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/function_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/function_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/function_parsing_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/function_parsing_error.proto index 4249f0c4c..edc11f494 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/function_parsing_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/function_parsing_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/geo_target_constant_suggestion_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/geo_target_constant_suggestion_error.proto index 044cd4c63..e988751c6 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/geo_target_constant_suggestion_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/geo_target_constant_suggestion_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/header_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/header_error.proto index 5b207b723..b06b5cb38 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/header_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/header_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/id_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/id_error.proto index a7a8bec92..9a112d464 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/id_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/id_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/image_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/image_error.proto index 5dbcb588e..0d3f8c124 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/image_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/image_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/internal_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/internal_error.proto index df3eaafc1..3f4bda4be 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/internal_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/internal_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/invoice_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/invoice_error.proto index df5940839..616986bc5 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/invoice_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/invoice_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/keyword_plan_ad_group_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/keyword_plan_ad_group_error.proto index 99853eb67..27d5973b5 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/keyword_plan_ad_group_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/keyword_plan_ad_group_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/keyword_plan_ad_group_keyword_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/keyword_plan_ad_group_keyword_error.proto index 306cc3622..c37fe027c 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/keyword_plan_ad_group_keyword_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/keyword_plan_ad_group_keyword_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/keyword_plan_campaign_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/keyword_plan_campaign_error.proto index 9ec0d1511..94d32690e 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/keyword_plan_campaign_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/keyword_plan_campaign_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/keyword_plan_campaign_keyword_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/keyword_plan_campaign_keyword_error.proto index 0e6bbd75e..444fe5d65 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/keyword_plan_campaign_keyword_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/keyword_plan_campaign_keyword_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/keyword_plan_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/keyword_plan_error.proto index 0a6b1a37a..c5cf07f3b 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/keyword_plan_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/keyword_plan_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/keyword_plan_idea_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/keyword_plan_idea_error.proto index 012934cc2..e650971cc 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/keyword_plan_idea_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/keyword_plan_idea_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/label_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/label_error.proto index 178d35b2a..b639ee2a7 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/label_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/label_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/language_code_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/language_code_error.proto index e69195f6a..8b7ff5818 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/language_code_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/language_code_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/list_operation_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/list_operation_error.proto index 3019aaf14..fae40ffca 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/list_operation_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/list_operation_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/manager_link_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/manager_link_error.proto index 08ce02e45..bf10f5d2e 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/manager_link_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/manager_link_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/media_bundle_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/media_bundle_error.proto index 2b76effd0..67ad3a401 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/media_bundle_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/media_bundle_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/media_file_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/media_file_error.proto index adac86a29..4d99d133f 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/media_file_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/media_file_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/media_upload_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/media_upload_error.proto index 3f0358255..8c046c59e 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/media_upload_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/media_upload_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/multiplier_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/multiplier_error.proto index 2a3b8aa40..6136b6d4c 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/multiplier_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/multiplier_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/mutate_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/mutate_error.proto index 278b74bc6..29888fa6a 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/mutate_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/mutate_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/new_resource_creation_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/new_resource_creation_error.proto index 6bd414f09..6282b49a6 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/new_resource_creation_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/new_resource_creation_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/not_empty_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/not_empty_error.proto index 425b32ca8..b61b54316 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/not_empty_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/not_empty_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/not_whitelisted_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/not_whitelisted_error.proto index 511db2fbd..127c878ce 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/not_whitelisted_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/not_whitelisted_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/null_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/null_error.proto index 278eafc77..dd5c0813c 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/null_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/null_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/offline_user_data_job_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/offline_user_data_job_error.proto index dd081a4b9..46003f266 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/offline_user_data_job_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/offline_user_data_job_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -58,7 +58,7 @@ message OfflineUserDataJobErrorEnum { // The mobile ID is malformed. INVALID_MOBILE_ID_FORMAT = 8; - // Request is exceeding the maximum number of user identifiers allowed. + // Maximum number of user identifiers allowed per request is 100,000. TOO_MANY_USER_IDENTIFIERS = 9; // Customer is not on the allow-list for store sales direct data. @@ -109,7 +109,7 @@ message OfflineUserDataJobErrorEnum { // Remove operation is not allowed for store sales direct updates. REMOVE_NOT_SUPPORTED = 23; - // Remove-all is not supported for store sales direct updates. + // Remove-all is not supported for certain offline user data job types. REMOVE_ALL_NOT_SUPPORTED = 24; // The SHA256 encoded value is malformed. @@ -125,7 +125,7 @@ message OfflineUserDataJobErrorEnum { // The custom key specified is not set in the upload. CUSTOM_KEY_NOT_SET = 29; - // The customer has not accpeted the customer data terms in the conversion + // The customer has not accepted the customer data terms in the conversion // settings page. CUSTOMER_NOT_ACCEPTED_CUSTOMER_DATA_TERMS = 30; } diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/operation_access_denied_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/operation_access_denied_error.proto index 0ccc42561..555e08d99 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/operation_access_denied_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/operation_access_denied_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/operator_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/operator_error.proto index 59dac9dc2..24db27904 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/operator_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/operator_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/partial_failure_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/partial_failure_error.proto index 55fa88fe8..aba95f2ff 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/partial_failure_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/partial_failure_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/payments_account_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/payments_account_error.proto index 37a21ea05..ec43fbf91 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/payments_account_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/payments_account_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/policy_finding_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/policy_finding_error.proto index 8949b555c..0e7fe1796 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/policy_finding_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/policy_finding_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/policy_validation_parameter_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/policy_validation_parameter_error.proto index 8a657d59e..fcca63865 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/policy_validation_parameter_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/policy_validation_parameter_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/policy_violation_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/policy_violation_error.proto index 3744416eb..cb1d325d2 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/policy_violation_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/policy_violation_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/query_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/query_error.proto index 2b5e43dee..ce1133b64 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/query_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/query_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/quota_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/quota_error.proto index 12d085b82..9b68bef14 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/quota_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/quota_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/range_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/range_error.proto index f48d01e00..e9dd0b493 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/range_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/range_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/reach_plan_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/reach_plan_error.proto index 9f0af592a..a36012e15 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/reach_plan_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/reach_plan_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/recommendation_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/recommendation_error.proto index f56ecd1ca..348f0088b 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/recommendation_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/recommendation_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/region_code_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/region_code_error.proto index b0c2ff0a5..1bd666031 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/region_code_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/region_code_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/request_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/request_error.proto index 01f4351b6..0fda68b6e 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/request_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/request_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/resource_access_denied_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/resource_access_denied_error.proto index 5abf18b2c..82d88af69 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/resource_access_denied_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/resource_access_denied_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/resource_count_limit_exceeded_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/resource_count_limit_exceeded_error.proto index aecbe751f..abdb9952d 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/resource_count_limit_exceeded_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/resource_count_limit_exceeded_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/setting_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/setting_error.proto index 46d93efda..91acf2795 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/setting_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/setting_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/shared_criterion_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/shared_criterion_error.proto index 18b55ef8b..2232b5190 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/shared_criterion_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/shared_criterion_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/shared_set_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/shared_set_error.proto index f9e53fe92..72e5ed2cf 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/shared_set_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/shared_set_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/size_limit_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/size_limit_error.proto index 84c7dea94..3858591fa 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/size_limit_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/size_limit_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/string_format_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/string_format_error.proto index 4bd5a0d76..28d2b47bd 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/string_format_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/string_format_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/string_length_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/string_length_error.proto index db86ed37e..e254548f4 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/string_length_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/string_length_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/third_party_app_analytics_link_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/third_party_app_analytics_link_error.proto index 9b31713e1..95686b938 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/third_party_app_analytics_link_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/third_party_app_analytics_link_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/time_zone_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/time_zone_error.proto index 243cd3c44..94c55282f 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/time_zone_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/time_zone_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/url_field_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/url_field_error.proto index 896099ad9..7bcb8fc4b 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/url_field_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/url_field_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/user_data_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/user_data_error.proto index 9d1af4ba4..904e8cff0 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/user_data_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/user_data_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/user_list_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/user_list_error.proto index 1473ecc62..8b6269c8b 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/user_list_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/user_list_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/errors/youtube_video_registration_error.proto b/third_party/googleapis/google/ads/googleads/v4/errors/youtube_video_registration_error.proto index fad4d1409..fece5b482 100644 --- a/third_party/googleapis/google/ads/googleads/v4/errors/youtube_video_registration_error.proto +++ b/third_party/googleapis/google/ads/googleads/v4/errors/youtube_video_registration_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/googleads_gapic.yaml b/third_party/googleapis/google/ads/googleads/v4/googleads_gapic.yaml index a6e1d0f6b..5e94457bf 100644 --- a/third_party/googleapis/google/ads/googleads/v4/googleads_gapic.yaml +++ b/third_party/googleapis/google/ads/googleads/v4/googleads_gapic.yaml @@ -10,7 +10,7 @@ language_settings: nodejs: package_name: v4.services php: - package_name: Google\Ads\Googleads\V4\Services + package_name: Google\Ads\GoogleAds\V4\Services python: package_name: google.ads.googleads_v4.gapic.services ruby: diff --git a/third_party/googleapis/google/ads/googleads/v4/googleads_grpc_service_config.json b/third_party/googleapis/google/ads/googleads/v4/googleads_grpc_service_config.json index dcf85b66e..b9c8e3843 100644 --- a/third_party/googleapis/google/ads/googleads/v4/googleads_grpc_service_config.json +++ b/third_party/googleapis/google/ads/googleads/v4/googleads_grpc_service_config.json @@ -349,15 +349,6 @@ "DEADLINE_EXCEEDED" ] } - }, - { - "name": [ - { - "service": "google.ads.googleads.v4.services.GoogleAdsService", - "method": "SearchStream" - } - ], - "timeout": "3600s" } ] } diff --git a/third_party/googleapis/google/ads/googleads/v4/googleads_v4.yaml b/third_party/googleapis/google/ads/googleads/v4/googleads_v4.yaml index 95f677731..383c2034c 100644 --- a/third_party/googleapis/google/ads/googleads/v4/googleads_v4.yaml +++ b/third_party/googleapis/google/ads/googleads/v4/googleads_v4.yaml @@ -464,3 +464,669 @@ backend: deadline: 60.0 - selector: 'google.longrunning.Operations.*' deadline: 60.0 + +http: + rules: + - selector: google.longrunning.Operations.CancelOperation + post: '/v4/{name=customers/*/operations/*}:cancel' + body: '*' + - selector: google.longrunning.Operations.DeleteOperation + delete: '/v4/{name=customers/*/operations/*}' + - selector: google.longrunning.Operations.GetOperation + get: '/v4/{name=customers/*/operations/*}' + - selector: google.longrunning.Operations.ListOperations + get: '/v4/{name=customers/*/operations}' + - selector: google.longrunning.Operations.WaitOperation + post: '/v4/{name=customers/*/operations/*}:wait' + body: '*' + +authentication: + rules: + - selector: google.ads.googleads.v4.services.AccountBudgetProposalService.GetAccountBudgetProposal + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.AccountBudgetProposalService.MutateAccountBudgetProposal + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.AccountBudgetService.GetAccountBudget + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.AccountLinkService.GetAccountLink + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.AccountLinkService.MutateAccountLink + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.AdGroupAdAssetViewService.GetAdGroupAdAssetView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.AdGroupAdLabelService.GetAdGroupAdLabel + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.AdGroupAdLabelService.MutateAdGroupAdLabels + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.AdGroupAdService.GetAdGroupAd + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.AdGroupAdService.MutateAdGroupAds + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.AdGroupAudienceViewService.GetAdGroupAudienceView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.AdGroupBidModifierService.GetAdGroupBidModifier + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.AdGroupBidModifierService.MutateAdGroupBidModifiers + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.AdGroupCriterionLabelService.GetAdGroupCriterionLabel + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.AdGroupCriterionLabelService.MutateAdGroupCriterionLabels + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.AdGroupCriterionService.GetAdGroupCriterion + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.AdGroupCriterionService.MutateAdGroupCriteria + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.AdGroupCriterionSimulationService.GetAdGroupCriterionSimulation + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.AdGroupExtensionSettingService.GetAdGroupExtensionSetting + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.AdGroupExtensionSettingService.MutateAdGroupExtensionSettings + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.AdGroupFeedService.GetAdGroupFeed + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.AdGroupFeedService.MutateAdGroupFeeds + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.AdGroupLabelService.GetAdGroupLabel + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.AdGroupLabelService.MutateAdGroupLabels + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.AdGroupService.GetAdGroup + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.AdGroupService.MutateAdGroups + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.AdGroupSimulationService.GetAdGroupSimulation + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.AdParameterService.GetAdParameter + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.AdParameterService.MutateAdParameters + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.AdScheduleViewService.GetAdScheduleView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.AdService.GetAd + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.AdService.MutateAds + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.AgeRangeViewService.GetAgeRangeView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.AssetService.GetAsset + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.AssetService.MutateAssets + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: 'google.ads.googleads.v4.services.BatchJobService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.BiddingStrategyService.GetBiddingStrategy + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.BiddingStrategyService.MutateBiddingStrategies + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.BillingSetupService.GetBillingSetup + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.BillingSetupService.MutateBillingSetup + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.CampaignAudienceViewService.GetCampaignAudienceView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.CampaignBidModifierService.GetCampaignBidModifier + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.CampaignBidModifierService.MutateCampaignBidModifiers + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.CampaignBudgetService.GetCampaignBudget + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.CampaignBudgetService.MutateCampaignBudgets + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.CampaignCriterionService.GetCampaignCriterion + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.CampaignCriterionService.MutateCampaignCriteria + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.CampaignCriterionSimulationService.GetCampaignCriterionSimulation + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: 'google.ads.googleads.v4.services.CampaignDraftService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: 'google.ads.googleads.v4.services.CampaignExperimentService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.CampaignExtensionSettingService.GetCampaignExtensionSetting + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.CampaignExtensionSettingService.MutateCampaignExtensionSettings + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.CampaignFeedService.GetCampaignFeed + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.CampaignFeedService.MutateCampaignFeeds + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.CampaignLabelService.GetCampaignLabel + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.CampaignLabelService.MutateCampaignLabels + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.CampaignService.GetCampaign + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.CampaignService.MutateCampaigns + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.CampaignSharedSetService.GetCampaignSharedSet + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.CampaignSharedSetService.MutateCampaignSharedSets + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.CarrierConstantService.GetCarrierConstant + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.ChangeStatusService.GetChangeStatus + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.ClickViewService.GetClickView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.ConversionActionService.GetConversionAction + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.ConversionActionService.MutateConversionActions + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.ConversionAdjustmentUploadService.UploadConversionAdjustments + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.ConversionUploadService.UploadCallConversions + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.ConversionUploadService.UploadClickConversions + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.CurrencyConstantService.GetCurrencyConstant + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.CustomInterestService.GetCustomInterest + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.CustomInterestService.MutateCustomInterests + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.CustomerClientLinkService.GetCustomerClientLink + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.CustomerClientLinkService.MutateCustomerClientLink + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.CustomerClientService.GetCustomerClient + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.CustomerExtensionSettingService.GetCustomerExtensionSetting + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.CustomerExtensionSettingService.MutateCustomerExtensionSettings + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.CustomerFeedService.GetCustomerFeed + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.CustomerFeedService.MutateCustomerFeeds + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.CustomerLabelService.GetCustomerLabel + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.CustomerLabelService.MutateCustomerLabels + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: 'google.ads.googleads.v4.services.CustomerManagerLinkService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.CustomerNegativeCriterionService.GetCustomerNegativeCriterion + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.CustomerNegativeCriterionService.MutateCustomerNegativeCriteria + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: 'google.ads.googleads.v4.services.CustomerService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.DetailPlacementViewService.GetDetailPlacementView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.DisplayKeywordViewService.GetDisplayKeywordView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.DistanceViewService.GetDistanceView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.DomainCategoryService.GetDomainCategory + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.DynamicSearchAdsSearchTermViewService.GetDynamicSearchAdsSearchTermView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.ExpandedLandingPageViewService.GetExpandedLandingPageView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.ExtensionFeedItemService.GetExtensionFeedItem + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.ExtensionFeedItemService.MutateExtensionFeedItems + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.FeedItemService.GetFeedItem + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.FeedItemService.MutateFeedItems + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.FeedItemTargetService.GetFeedItemTarget + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.FeedItemTargetService.MutateFeedItemTargets + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.FeedMappingService.GetFeedMapping + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.FeedMappingService.MutateFeedMappings + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.FeedPlaceholderViewService.GetFeedPlaceholderView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.FeedService.GetFeed + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.FeedService.MutateFeeds + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.GenderViewService.GetGenderView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.GeoTargetConstantService.GetGeoTargetConstant + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.GeoTargetConstantService.SuggestGeoTargetConstants + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.GeographicViewService.GetGeographicView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.GoogleAdsFieldService.GetGoogleAdsField + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.GoogleAdsFieldService.SearchGoogleAdsFields + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: 'google.ads.googleads.v4.services.GoogleAdsService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.GroupPlacementViewService.GetGroupPlacementView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.HotelGroupViewService.GetHotelGroupView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.HotelPerformanceViewService.GetHotelPerformanceView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.IncomeRangeViewService.GetIncomeRangeView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.InvoiceService.ListInvoices + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.KeywordPlanAdGroupKeywordService.GetKeywordPlanAdGroupKeyword + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.KeywordPlanAdGroupKeywordService.MutateKeywordPlanAdGroupKeywords + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.KeywordPlanAdGroupService.GetKeywordPlanAdGroup + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.KeywordPlanAdGroupService.MutateKeywordPlanAdGroups + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.KeywordPlanCampaignKeywordService.GetKeywordPlanCampaignKeyword + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.KeywordPlanCampaignKeywordService.MutateKeywordPlanCampaignKeywords + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.KeywordPlanCampaignService.GetKeywordPlanCampaign + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.KeywordPlanCampaignService.MutateKeywordPlanCampaigns + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.KeywordPlanIdeaService.GenerateKeywordIdeas + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: 'google.ads.googleads.v4.services.KeywordPlanService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.KeywordViewService.GetKeywordView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.LabelService.GetLabel + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.LabelService.MutateLabels + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.LandingPageViewService.GetLandingPageView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.LanguageConstantService.GetLanguageConstant + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.LocationViewService.GetLocationView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.ManagedPlacementViewService.GetManagedPlacementView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.MediaFileService.GetMediaFile + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.MediaFileService.MutateMediaFiles + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: 'google.ads.googleads.v4.services.MerchantCenterLinkService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.MobileAppCategoryConstantService.GetMobileAppCategoryConstant + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.MobileDeviceConstantService.GetMobileDeviceConstant + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: 'google.ads.googleads.v4.services.OfflineUserDataJobService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.OperatingSystemVersionConstantService.GetOperatingSystemVersionConstant + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.PaidOrganicSearchTermViewService.GetPaidOrganicSearchTermView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.ParentalStatusViewService.GetParentalStatusView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.PaymentsAccountService.ListPaymentsAccounts + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.ProductBiddingCategoryConstantService.GetProductBiddingCategoryConstant + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.ProductGroupViewService.GetProductGroupView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: 'google.ads.googleads.v4.services.ReachPlanService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: 'google.ads.googleads.v4.services.RecommendationService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.RemarketingActionService.GetRemarketingAction + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.RemarketingActionService.MutateRemarketingActions + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.SearchTermViewService.GetSearchTermView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.SharedCriterionService.GetSharedCriterion + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.SharedCriterionService.MutateSharedCriteria + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.SharedSetService.GetSharedSet + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.SharedSetService.MutateSharedSets + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.ShoppingPerformanceViewService.GetShoppingPerformanceView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.ThirdPartyAppAnalyticsLinkService.GetThirdPartyAppAnalyticsLink + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.TopicConstantService.GetTopicConstant + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.TopicViewService.GetTopicView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.UserDataService.UploadUserData + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.UserInterestService.GetUserInterest + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.UserListService.GetUserList + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.UserListService.MutateUserLists + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.UserLocationViewService.GetUserLocationView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v4.services.VideoService.GetVideo + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: 'google.longrunning.Operations.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/BUILD.bazel b/third_party/googleapis/google/ads/googleads/v4/resources/BUILD.bazel new file mode 100644 index 000000000..12e9933dd --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v4/resources/BUILD.bazel @@ -0,0 +1,97 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") + +# TODO(ohren): Change srcs to use an enumeration of each individual proto +# instead of *.proto globbing once the build file generator supports +# subpackages. +proto_library( + name = "resources_proto", + srcs = glob(["*.proto"]), + deps = [ + "//google/ads/googleads/v4/common:common_proto", + "//google/ads/googleads/v4/enums:enums_proto", + "//google/ads/googleads/v4/errors:errors_proto", + "//google/api:annotations_proto", + "//google/api:field_behavior_proto", + "//google/api:resource_proto", + "@com_google_protobuf//:field_mask_proto", + "@com_google_protobuf//:wrappers_proto", + ], +) + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_proto_library", +) + +java_proto_library( + name = "resources_java_proto", + deps = [":resources_proto"], +) + +############################################################################## +# PHP +############################################################################## + +# PHP targets are in the parent directory's BUILD.bazel file to facilitate +# aggregating metadata using a single underlying call to protoc. + +############################################################################## +# C# +############################################################################## +load( + "@gapic_generator_csharp//rules_csharp_gapic:csharp_gapic.bzl", + "csharp_proto_library", +) + +csharp_proto_library( + name = "resources_csharp_proto", + deps = [":resources_proto"], +) + +############################################################################## +# Ruby +############################################################################## +load( + "@gapic_generator_ruby//rules_ruby_gapic:ruby_gapic.bzl", + "ruby_proto_library", +) + +ruby_proto_library( + name = "resources_ruby_proto", + deps = [":resources_proto"], +) + +############################################################################## +# Python +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "py_proto_library", +) + +py_proto_library( + name = "resources_py_proto", + deps = [":resources_proto"], +) diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/account_budget.proto b/third_party/googleapis/google/ads/googleads/v4/resources/account_budget.proto index 5dfdc0e56..cc4d0a9c5 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/account_budget.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/account_budget.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/account_budget_proposal.proto b/third_party/googleapis/google/ads/googleads/v4/resources/account_budget_proposal.proto index 3b29732f3..52123eebe 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/account_budget_proposal.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/account_budget_proposal.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/account_link.proto b/third_party/googleapis/google/ads/googleads/v4/resources/account_link.proto index 7861c2fd6..114fbf6bf 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/account_link.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/account_link.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/ad.proto b/third_party/googleapis/google/ads/googleads/v4/resources/ad.proto index 43b0804ee..55ed5f03a 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/ad.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/ad.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/ad_group.proto b/third_party/googleapis/google/ads/googleads/v4/resources/ad_group.proto index 68240af97..d23806433 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/ad_group.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/ad_group.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_ad.proto b/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_ad.proto index 71cbce27f..ff42d6c47 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_ad.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_ad.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_ad_asset_view.proto b/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_ad_asset_view.proto index fdb112670..57513455c 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_ad_asset_view.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_ad_asset_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,6 +38,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Resources"; // Proto file describing the ad group ad asset view resource. // A link between an AdGroupAd and an Asset. +// Currently we only support AdGroupAdAssetView for AppAds. message AdGroupAdAssetView { option (google.api.resource) = { type: "googleads.googleapis.com/AdGroupAdAssetView" diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_ad_label.proto b/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_ad_label.proto index d33be6d8f..0190674ac 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_ad_label.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_ad_label.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_audience_view.proto b/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_audience_view.proto index 2594eeabb..ab2a1984d 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_audience_view.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_audience_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_bid_modifier.proto b/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_bid_modifier.proto index 8638508ea..37171de6e 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_bid_modifier.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_bid_modifier.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_criterion.proto b/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_criterion.proto index ca145647b..00a875a29 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_criterion.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_criterion.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_criterion_label.proto b/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_criterion_label.proto index 2d3c0150f..4fe1dd838 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_criterion_label.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_criterion_label.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_criterion_simulation.proto b/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_criterion_simulation.proto index 6100babc9..2759db31c 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_criterion_simulation.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_criterion_simulation.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,11 +37,14 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Resources"; // An ad group criterion simulation. Supported combinations of advertising // channel type, criterion type, simulation type, and simulation modification -// method are detailed below respectively. +// method are detailed below respectively. Hotel AdGroupCriterion simulation +// operations starting in V5. // // 1. DISPLAY - KEYWORD - CPC_BID - UNIFORM // 2. SEARCH - KEYWORD - CPC_BID - UNIFORM // 3. SHOPPING - LISTING_GROUP - CPC_BID - UNIFORM +// 4. HOTEL - LISTING_GROUP - CPC_BID - UNIFORM +// 5. HOTEL - LISTING_GROUP - PERCENT_CPC_BID - UNIFORM message AdGroupCriterionSimulation { option (google.api.resource) = { type: "googleads.googleapis.com/AdGroupCriterionSimulation" diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_extension_setting.proto b/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_extension_setting.proto index 3f5a096a2..973190451 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_extension_setting.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_extension_setting.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_feed.proto b/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_feed.proto index bd3e824d2..794375ad5 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_feed.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_feed.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_label.proto b/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_label.proto index 401ac48b2..e9c91fc7b 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_label.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_label.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_simulation.proto b/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_simulation.proto index d5a3352c5..3b1af10a2 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_simulation.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/ad_group_simulation.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/ad_parameter.proto b/third_party/googleapis/google/ads/googleads/v4/resources/ad_parameter.proto index 91b646f4c..4829f2b65 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/ad_parameter.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/ad_parameter.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/ad_schedule_view.proto b/third_party/googleapis/google/ads/googleads/v4/resources/ad_schedule_view.proto index 31c717e11..1f2932ce8 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/ad_schedule_view.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/ad_schedule_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/age_range_view.proto b/third_party/googleapis/google/ads/googleads/v4/resources/age_range_view.proto index 5b1ea642b..b69c15c8d 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/age_range_view.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/age_range_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/asset.proto b/third_party/googleapis/google/ads/googleads/v4/resources/asset.proto index ccdb817e9..e1fccdab4 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/asset.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/asset.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/batch_job.proto b/third_party/googleapis/google/ads/googleads/v4/resources/batch_job.proto index 402392d30..cab46e181 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/batch_job.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/batch_job.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/bidding_strategy.proto b/third_party/googleapis/google/ads/googleads/v4/resources/bidding_strategy.proto index 4d51df914..1c85d6e74 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/bidding_strategy.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/bidding_strategy.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/billing_setup.proto b/third_party/googleapis/google/ads/googleads/v4/resources/billing_setup.proto index ec2bc0c68..efe966b22 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/billing_setup.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/billing_setup.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/campaign.proto b/third_party/googleapis/google/ads/googleads/v4/resources/campaign.proto index d24d4cfff..4e27fb4a2 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/campaign.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/campaign.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -106,33 +106,13 @@ message Campaign { ]; } - // Represents a collection of settings related to ads geotargeting. - message GeoTargetTypeSetting { - // The setting used for positive geotargeting in this particular campaign. - google.ads.googleads.v4.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType positive_geo_target_type = 1; - - // The setting used for negative geotargeting in this particular campaign. - google.ads.googleads.v4.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType negative_geo_target_type = 2; - } - - // Campaign-level settings for App Campaigns. - message AppCampaignSetting { - // Represents the goal which the bidding strategy of this app campaign - // should optimize towards. - google.ads.googleads.v4.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType bidding_strategy_goal_type = 1; - - // Immutable. A string that uniquely identifies a mobile application. - google.protobuf.StringValue app_id = 2 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. The application store that distributes this specific app. - google.ads.googleads.v4.enums.AppCampaignAppStoreEnum.AppCampaignAppStore app_store = 3 [(google.api.field_behavior) = IMMUTABLE]; - } - - // Optimization goal setting for this campaign, which includes a set of - // optimization goal types. - message OptimizationGoalSetting { - // The list of optimization goal types. - repeated google.ads.googleads.v4.enums.OptimizationGoalTypeEnum.OptimizationGoalType optimization_goal_types = 1; + // Selective optimization setting for this campaign, which includes a set of + // conversion actions to optimize this campaign towards. + message SelectiveOptimization { + // The selected set of conversion actions for optimizing this campaign. + repeated google.protobuf.StringValue conversion_actions = 1 [(google.api.resource_reference) = { + type: "googleads.googleapis.com/ConversionAction" + }]; } // The setting for Shopping campaigns. Defines the universe of products that @@ -162,16 +142,45 @@ message Campaign { google.protobuf.BoolValue enable_local = 4; } + // Campaign setting for local campaigns. + message LocalCampaignSetting { + // The location source type for this local campaign. + google.ads.googleads.v4.enums.LocationSourceTypeEnum.LocationSourceType location_source_type = 1; + } + // Campaign-level settings for tracking information. message TrackingSetting { // Output only. The url used for dynamic tracking. google.protobuf.StringValue tracking_url = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; } - // Campaign setting for local campaigns. - message LocalCampaignSetting { - // The location source type for this local campaign. - google.ads.googleads.v4.enums.LocationSourceTypeEnum.LocationSourceType location_source_type = 1; + // Represents a collection of settings related to ads geotargeting. + message GeoTargetTypeSetting { + // The setting used for positive geotargeting in this particular campaign. + google.ads.googleads.v4.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType positive_geo_target_type = 1; + + // The setting used for negative geotargeting in this particular campaign. + google.ads.googleads.v4.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType negative_geo_target_type = 2; + } + + // Campaign-level settings for App Campaigns. + message AppCampaignSetting { + // Represents the goal which the bidding strategy of this app campaign + // should optimize towards. + google.ads.googleads.v4.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType bidding_strategy_goal_type = 1; + + // Immutable. A string that uniquely identifies a mobile application. + google.protobuf.StringValue app_id = 2 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. The application store that distributes this specific app. + google.ads.googleads.v4.enums.AppCampaignAppStoreEnum.AppCampaignAppStore app_store = 3 [(google.api.field_behavior) = IMMUTABLE]; + } + + // Optimization goal setting for this campaign, which includes a set of + // optimization goal types. + message OptimizationGoalSetting { + // The list of optimization goal types. + repeated google.ads.googleads.v4.enums.OptimizationGoalTypeEnum.OptimizationGoalType optimization_goal_types = 1; } // Describes how unbranded pharma ads will be displayed. @@ -184,15 +193,6 @@ message Campaign { google.ads.googleads.v4.enums.VanityPharmaTextEnum.VanityPharmaText vanity_pharma_text = 2; } - // Selective optimization setting for this campaign, which includes a set of - // conversion actions to optimize this campaign towards. - message SelectiveOptimization { - // The selected set of conversion actions for optimizing this campaign. - repeated google.protobuf.StringValue conversion_actions = 1 [(google.api.resource_reference) = { - type: "googleads.googleapis.com/ConversionAction" - }]; - } - // Immutable. The resource name of the campaign. // Campaign resource names have the form: // @@ -354,7 +354,8 @@ message Campaign { // // Optimization score is an estimate of how well a campaign is set to perform. // It ranges from 0% (0.0) to 100% (1.0), with 100% indicating that the - // campaign is performing at full potential. + // campaign is performing at full potential. This field is null for unscored + // campaigns. // // See "About optimization score" at // https://support.google.com/google-ads/answer/9061546. @@ -389,7 +390,7 @@ message Campaign { google.ads.googleads.v4.common.ManualCpv manual_cpv = 37 [(google.api.field_behavior) = OUTPUT_ONLY]; // Standard Maximize Conversions bidding strategy that automatically - // maximizes number of conversions given a daily budget. + // maximizes number of conversions while spending your budget. google.ads.googleads.v4.common.MaximizeConversions maximize_conversions = 30; // Standard Maximize Conversion Value bidding strategy that automatically diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/campaign_audience_view.proto b/third_party/googleapis/google/ads/googleads/v4/resources/campaign_audience_view.proto index d0eebf0d8..a720c6db1 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/campaign_audience_view.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/campaign_audience_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/campaign_bid_modifier.proto b/third_party/googleapis/google/ads/googleads/v4/resources/campaign_bid_modifier.proto index 0ae38ffff..5b1ca6c87 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/campaign_bid_modifier.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/campaign_bid_modifier.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/campaign_budget.proto b/third_party/googleapis/google/ads/googleads/v4/resources/campaign_budget.proto index add7c88c0..ebb9741b3 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/campaign_budget.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/campaign_budget.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -46,7 +46,7 @@ message CampaignBudget { // Immutable. The resource name of the campaign budget. // Campaign budget resource names have the form: // - // `customers/{customer_id}/campaignBudgets/{budget_id}` + // `customers/{customer_id}/campaignBudgets/{campaign_budget_id}` string resource_name = 1 [ (google.api.field_behavior) = IMMUTABLE, (google.api.resource_reference) = { diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/campaign_criterion.proto b/third_party/googleapis/google/ads/googleads/v4/resources/campaign_criterion.proto index e313996e5..c359d8e46 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/campaign_criterion.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/campaign_criterion.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/campaign_criterion_simulation.proto b/third_party/googleapis/google/ads/googleads/v4/resources/campaign_criterion_simulation.proto index af0aaaa38..96407660e 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/campaign_criterion_simulation.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/campaign_criterion_simulation.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/campaign_draft.proto b/third_party/googleapis/google/ads/googleads/v4/resources/campaign_draft.proto index 524816de3..1918f8621 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/campaign_draft.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/campaign_draft.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/campaign_experiment.proto b/third_party/googleapis/google/ads/googleads/v4/resources/campaign_experiment.proto index 0581fd57f..a18c61e92 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/campaign_experiment.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/campaign_experiment.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/campaign_extension_setting.proto b/third_party/googleapis/google/ads/googleads/v4/resources/campaign_extension_setting.proto index 9e9fdbe12..fdfffd017 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/campaign_extension_setting.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/campaign_extension_setting.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/campaign_feed.proto b/third_party/googleapis/google/ads/googleads/v4/resources/campaign_feed.proto index 152ada4d0..63431546c 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/campaign_feed.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/campaign_feed.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/campaign_label.proto b/third_party/googleapis/google/ads/googleads/v4/resources/campaign_label.proto index 17088fb4e..8cfa1ad38 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/campaign_label.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/campaign_label.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/campaign_shared_set.proto b/third_party/googleapis/google/ads/googleads/v4/resources/campaign_shared_set.proto index f3ebcadb8..5731a22fa 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/campaign_shared_set.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/campaign_shared_set.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/carrier_constant.proto b/third_party/googleapis/google/ads/googleads/v4/resources/carrier_constant.proto index 90d24e3b6..621cb63c2 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/carrier_constant.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/carrier_constant.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/change_status.proto b/third_party/googleapis/google/ads/googleads/v4/resources/change_status.proto index 023a87727..c7a1eab24 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/change_status.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/change_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -34,7 +34,8 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Resources"; // Proto file describing the Change Status resource. -// Describes the status of returned resource. +// Describes the status of returned resource. ChangeStatus could have up to 3 +// minutes delay to reflect a new change. message ChangeStatus { option (google.api.resource) = { type: "googleads.googleapis.com/ChangeStatus" diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/click_view.proto b/third_party/googleapis/google/ads/googleads/v4/resources/click_view.proto index 4402ad5a2..652374d80 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/click_view.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/click_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/conversion_action.proto b/third_party/googleapis/google/ads/googleads/v4/resources/conversion_action.proto index 5cac90a74..6e07c22ef 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/conversion_action.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/conversion_action.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -122,7 +122,12 @@ message ConversionAction { // Output only. The resource name of the conversion action owner customer, or null if this // is a system-defined conversion action. - google.protobuf.StringValue owner_customer = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.StringValue owner_customer = 7 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Customer" + } + ]; // Whether this conversion action should be included in the "conversions" // metric. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/currency_constant.proto b/third_party/googleapis/google/ads/googleads/v4/resources/currency_constant.proto index 6bbea6dd3..594bbbc80 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/currency_constant.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/currency_constant.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -42,7 +42,7 @@ message CurrencyConstant { // Output only. The resource name of the currency constant. // Currency constant resource names have the form: // - // `currencyConstants/{currency_code}` + // `currencyConstants/{code}` string resource_name = 1 [ (google.api.field_behavior) = OUTPUT_ONLY, (google.api.resource_reference) = { diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/custom_interest.proto b/third_party/googleapis/google/ads/googleads/v4/resources/custom_interest.proto index 5107c4e15..6eff8fae4 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/custom_interest.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/custom_interest.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/customer.proto b/third_party/googleapis/google/ads/googleads/v4/resources/customer.proto index 2de4d5ab3..f1700f0da 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/customer.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/customer.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -101,7 +101,8 @@ message Customer { // Output only. Optimization score of the customer. // // Optimization score is an estimate of how well a customer's campaigns are - // set to perform. It ranges from 0% (0.0) to 100% (1.0). + // set to perform. It ranges from 0% (0.0) to 100% (1.0). This field is null + // for all manager customers, and for unscored non-manager customers. // // See "About optimization score" at // https://support.google.com/google-ads/answer/9061546. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/customer_client.proto b/third_party/googleapis/google/ads/googleads/v4/resources/customer_client.proto index c3169b4cc..58c7dc985 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/customer_client.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/customer_client.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -53,7 +53,12 @@ message CustomerClient { // Output only. The resource name of the client-customer which is linked to // the given customer. Read only. - google.protobuf.StringValue client_customer = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.StringValue client_customer = 3 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Customer" + } + ]; // Output only. Specifies whether this is a // [hidden account](https://support.google.com/google-ads/answer/7519830). diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/customer_client_link.proto b/third_party/googleapis/google/ads/googleads/v4/resources/customer_client_link.proto index 51bdab9e8..156dd43a7 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/customer_client_link.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/customer_client_link.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -51,7 +51,12 @@ message CustomerClientLink { ]; // Immutable. The client customer linked to this customer. - google.protobuf.StringValue client_customer = 3 [(google.api.field_behavior) = IMMUTABLE]; + google.protobuf.StringValue client_customer = 3 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Customer" + } + ]; // Output only. This is uniquely identifies a customer client link. Read only. google.protobuf.Int64Value manager_link_id = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/customer_extension_setting.proto b/third_party/googleapis/google/ads/googleads/v4/resources/customer_extension_setting.proto index 75801ac21..2cc88f921 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/customer_extension_setting.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/customer_extension_setting.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/customer_feed.proto b/third_party/googleapis/google/ads/googleads/v4/resources/customer_feed.proto index 2ed337457..b06d8055c 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/customer_feed.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/customer_feed.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/customer_label.proto b/third_party/googleapis/google/ads/googleads/v4/resources/customer_label.proto index 8791fb4be..0254d29b2 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/customer_label.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/customer_label.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -53,11 +53,21 @@ message CustomerLabel { // Output only. The resource name of the customer to which the label is attached. // Read only. - google.protobuf.StringValue customer = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.StringValue customer = 2 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Customer" + } + ]; // Output only. The resource name of the label assigned to the customer. // // Note: the Customer ID portion of the label resource name is not // validated when creating a new CustomerLabel. - google.protobuf.StringValue label = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.StringValue label = 3 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Label" + } + ]; } diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/customer_manager_link.proto b/third_party/googleapis/google/ads/googleads/v4/resources/customer_manager_link.proto index 26eb3b12a..a29e09df5 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/customer_manager_link.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/customer_manager_link.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -51,7 +51,12 @@ message CustomerManagerLink { ]; // Output only. The manager customer linked to the customer. - google.protobuf.StringValue manager_customer = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.StringValue manager_customer = 3 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Customer" + } + ]; // Output only. ID of the customer-manager link. This field is read only. google.protobuf.Int64Value manager_link_id = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/customer_negative_criterion.proto b/third_party/googleapis/google/ads/googleads/v4/resources/customer_negative_criterion.proto index b26d3f53b..9c2b42a8d 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/customer_negative_criterion.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/customer_negative_criterion.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/detail_placement_view.proto b/third_party/googleapis/google/ads/googleads/v4/resources/detail_placement_view.proto index 8595618e3..4e467a158 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/detail_placement_view.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/detail_placement_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/display_keyword_view.proto b/third_party/googleapis/google/ads/googleads/v4/resources/display_keyword_view.proto index 55cab5392..b546d3d52 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/display_keyword_view.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/display_keyword_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/distance_view.proto b/third_party/googleapis/google/ads/googleads/v4/resources/distance_view.proto index 86b72dc2e..a925bf616 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/distance_view.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/distance_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/domain_category.proto b/third_party/googleapis/google/ads/googleads/v4/resources/domain_category.proto index a36095d4b..78d7e73f5 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/domain_category.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/domain_category.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/dynamic_search_ads_search_term_view.proto b/third_party/googleapis/google/ads/googleads/v4/resources/dynamic_search_ads_search_term_view.proto index 492070c93..965cc3edf 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/dynamic_search_ads_search_term_view.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/dynamic_search_ads_search_term_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -42,7 +42,7 @@ message DynamicSearchAdsSearchTermView { // Output only. The resource name of the dynamic search ads search term view. // Dynamic search ads search term view resource names have the form: // - // `customers/{customer_id}/dynamicSearchAdsSearchTermViews/{ad_group_id}~{search_term_fp}~{headline_fp}~{landing_page_fp}~{page_url_fp}` + // `customers/{customer_id}/dynamicSearchAdsSearchTermViews/{ad_group_id}~{search_term_fingerprint}~{headline_fingerprint}~{landing_page_fingerprint}~{page_url_fingerprint}` string resource_name = 1 [ (google.api.field_behavior) = OUTPUT_ONLY, (google.api.resource_reference) = { diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/expanded_landing_page_view.proto b/third_party/googleapis/google/ads/googleads/v4/resources/expanded_landing_page_view.proto index 0a35b4c69..b7f1c20f4 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/expanded_landing_page_view.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/expanded_landing_page_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/extension_feed_item.proto b/third_party/googleapis/google/ads/googleads/v4/resources/extension_feed_item.proto index ca08ebf12..9ca98c00c 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/extension_feed_item.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/extension_feed_item.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/feed.proto b/third_party/googleapis/google/ads/googleads/v4/resources/feed.proto index 15c4b54cf..1158b5eec 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/feed.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/feed.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/feed_item.proto b/third_party/googleapis/google/ads/googleads/v4/resources/feed_item.proto index afd132962..105837d6e 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/feed_item.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/feed_item.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/feed_item_target.proto b/third_party/googleapis/google/ads/googleads/v4/resources/feed_item_target.proto index b60d4caab..4f2a9ee8c 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/feed_item_target.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/feed_item_target.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/feed_mapping.proto b/third_party/googleapis/google/ads/googleads/v4/resources/feed_mapping.proto index bff2bfd11..a420c3f6e 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/feed_mapping.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/feed_mapping.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/feed_placeholder_view.proto b/third_party/googleapis/google/ads/googleads/v4/resources/feed_placeholder_view.proto index 84acf0038..fa7f0a13a 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/feed_placeholder_view.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/feed_placeholder_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/gender_view.proto b/third_party/googleapis/google/ads/googleads/v4/resources/gender_view.proto index c36d335f4..0057a0154 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/gender_view.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/gender_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/geo_target_constant.proto b/third_party/googleapis/google/ads/googleads/v4/resources/geo_target_constant.proto index 98e8d70ee..84c40f8d2 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/geo_target_constant.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/geo_target_constant.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/geographic_view.proto b/third_party/googleapis/google/ads/googleads/v4/resources/geographic_view.proto index efe28cab5..2e6efdf8f 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/geographic_view.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/geographic_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/google_ads_field.proto b/third_party/googleapis/google/ads/googleads/v4/resources/google_ads_field.proto index bdb8132be..84dd085c0 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/google_ads_field.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/google_ads_field.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/group_placement_view.proto b/third_party/googleapis/google/ads/googleads/v4/resources/group_placement_view.proto index 50461203b..3eeb4e886 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/group_placement_view.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/group_placement_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/hotel_group_view.proto b/third_party/googleapis/google/ads/googleads/v4/resources/hotel_group_view.proto index 61148cca2..b2d7ba22c 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/hotel_group_view.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/hotel_group_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/hotel_performance_view.proto b/third_party/googleapis/google/ads/googleads/v4/resources/hotel_performance_view.proto index 5a42da281..47175b33e 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/hotel_performance_view.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/hotel_performance_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/income_range_view.proto b/third_party/googleapis/google/ads/googleads/v4/resources/income_range_view.proto index 70b8aa60c..58869176f 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/income_range_view.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/income_range_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/invoice.proto b/third_party/googleapis/google/ads/googleads/v4/resources/invoice.proto index 33fef4e59..ddd4b7cb1 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/invoice.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/invoice.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -142,8 +142,12 @@ message Invoice { // on the invoice, not on a specific account budget. google.protobuf.Int64Value invoice_level_adjustments_micros = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The pretax subtotal amount, in micros. This equals the sum of the - // AccountBudgetSummary subtotal amounts, plus the invoice level adjustments. + // Output only. The pretax subtotal amount, in micros. This equals the + // sum of the AccountBudgetSummary subtotal amounts, + // Invoice.adjustments_subtotal_amount_micros, and + // Invoice.regulatory_costs_subtotal_amount_micros. + // Starting with v6, the Invoice.regulatory_costs_subtotal_amount_micros is no + // longer included. google.protobuf.Int64Value subtotal_amount_micros = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The sum of all taxes on the invoice, in micros. This equals the sum of the @@ -151,8 +155,11 @@ message Invoice { // account budget. google.protobuf.Int64Value tax_amount_micros = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The total amount, in micros. This equals the sum of the invoice subtotal - // amount and the invoice tax amount. + // Output only. The total amount, in micros. This equals the sum of + // Invoice.subtotal_amount_micros and Invoice.tax_amount_micros. + // Starting with v6, Invoice.regulatory_costs_subtotal_amount_micros is + // also added as it is no longer already included in + // Invoice.tax_amount_micros. google.protobuf.Int64Value total_amount_micros = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The resource name of the original invoice corrected, wrote off, or canceled diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/keyword_plan.proto b/third_party/googleapis/google/ads/googleads/v4/resources/keyword_plan.proto index 2d8960b93..a633a4ef6 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/keyword_plan.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/keyword_plan.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/keyword_plan_ad_group.proto b/third_party/googleapis/google/ads/googleads/v4/resources/keyword_plan_ad_group.proto index 7d3264225..d64aa43c5 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/keyword_plan_ad_group.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/keyword_plan_ad_group.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/keyword_plan_ad_group_keyword.proto b/third_party/googleapis/google/ads/googleads/v4/resources/keyword_plan_ad_group_keyword.proto index e1f05d793..f2dbfce15 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/keyword_plan_ad_group_keyword.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/keyword_plan_ad_group_keyword.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/keyword_plan_campaign.proto b/third_party/googleapis/google/ads/googleads/v4/resources/keyword_plan_campaign.proto index c6a0394e4..62a124caa 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/keyword_plan_campaign.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/keyword_plan_campaign.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/keyword_plan_campaign_keyword.proto b/third_party/googleapis/google/ads/googleads/v4/resources/keyword_plan_campaign_keyword.proto index 47d13c788..a95e21cc7 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/keyword_plan_campaign_keyword.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/keyword_plan_campaign_keyword.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/keyword_view.proto b/third_party/googleapis/google/ads/googleads/v4/resources/keyword_view.proto index bfe41e40c..4c9a7e118 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/keyword_view.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/keyword_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/label.proto b/third_party/googleapis/google/ads/googleads/v4/resources/label.proto index 154672274..38bf5ddc3 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/label.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/label.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/landing_page_view.proto b/third_party/googleapis/google/ads/googleads/v4/resources/landing_page_view.proto index e23435110..72463cd11 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/landing_page_view.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/landing_page_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/language_constant.proto b/third_party/googleapis/google/ads/googleads/v4/resources/language_constant.proto index 81f9cb8ee..7f1fc797f 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/language_constant.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/language_constant.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/location_view.proto b/third_party/googleapis/google/ads/googleads/v4/resources/location_view.proto index 0e7b673ce..c851ca22d 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/location_view.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/location_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/managed_placement_view.proto b/third_party/googleapis/google/ads/googleads/v4/resources/managed_placement_view.proto index 7ff75e6a3..bf9adaab0 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/managed_placement_view.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/managed_placement_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/media_file.proto b/third_party/googleapis/google/ads/googleads/v4/resources/media_file.proto index ecb0a855c..c27f9bfae 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/media_file.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/media_file.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/merchant_center_link.proto b/third_party/googleapis/google/ads/googleads/v4/resources/merchant_center_link.proto index 684abc2d8..4f581ac93 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/merchant_center_link.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/merchant_center_link.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/mobile_app_category_constant.proto b/third_party/googleapis/google/ads/googleads/v4/resources/mobile_app_category_constant.proto index e1e1468f0..c7e9afbb4 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/mobile_app_category_constant.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/mobile_app_category_constant.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/mobile_device_constant.proto b/third_party/googleapis/google/ads/googleads/v4/resources/mobile_device_constant.proto index 9144331fd..d5b1e7b4f 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/mobile_device_constant.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/mobile_device_constant.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/offline_user_data_job.proto b/third_party/googleapis/google/ads/googleads/v4/resources/offline_user_data_job.proto index aa9f5675b..500ba2fb7 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/offline_user_data_job.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/offline_user_data_job.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/operating_system_version_constant.proto b/third_party/googleapis/google/ads/googleads/v4/resources/operating_system_version_constant.proto index 05337ef86..6c0546d22 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/operating_system_version_constant.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/operating_system_version_constant.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/paid_organic_search_term_view.proto b/third_party/googleapis/google/ads/googleads/v4/resources/paid_organic_search_term_view.proto index 251ce099d..44d847af9 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/paid_organic_search_term_view.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/paid_organic_search_term_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/parental_status_view.proto b/third_party/googleapis/google/ads/googleads/v4/resources/parental_status_view.proto index 31ad7a6a6..a7b60dc87 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/parental_status_view.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/parental_status_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/payments_account.proto b/third_party/googleapis/google/ads/googleads/v4/resources/payments_account.proto index 134e7ab84..a86f07051 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/payments_account.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/payments_account.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -70,5 +70,10 @@ message PaymentsAccount { google.protobuf.StringValue secondary_payments_profile_id = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Paying manager of this payment account. - google.protobuf.StringValue paying_manager_customer = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.StringValue paying_manager_customer = 7 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Customer" + } + ]; } diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/product_bidding_category_constant.proto b/third_party/googleapis/google/ads/googleads/v4/resources/product_bidding_category_constant.proto index e393c182f..57ec833fb 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/product_bidding_category_constant.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/product_bidding_category_constant.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/product_group_view.proto b/third_party/googleapis/google/ads/googleads/v4/resources/product_group_view.proto index ec277ad87..aae433309 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/product_group_view.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/product_group_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/recommendation.proto b/third_party/googleapis/google/ads/googleads/v4/resources/recommendation.proto index 195c22fd0..92277b9a8 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/recommendation.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/recommendation.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -106,10 +106,13 @@ message Recommendation { google.protobuf.Int64Value recommended_cpc_bid_micros = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } - // The Call extension recommendation. - message CallExtensionRecommendation { - // Output only. Call extensions recommended to be added. - repeated google.ads.googleads.v4.common.CallFeedItem recommended_extensions = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + // The keyword match type recommendation. + message KeywordMatchTypeRecommendation { + // Output only. The existing keyword where the match type should be more broad. + google.ads.googleads.v4.common.KeywordInfo keyword = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The recommended new match type. + google.ads.googleads.v4.enums.KeywordMatchTypeEnum.KeywordMatchType recommended_match_type = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } // The text ad recommendation. @@ -127,13 +130,23 @@ message Recommendation { google.protobuf.StringValue auto_apply_date = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; } - // The keyword match type recommendation. - message KeywordMatchTypeRecommendation { - // Output only. The existing keyword where the match type should be more broad. - google.ads.googleads.v4.common.KeywordInfo keyword = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + // The Maximize Conversions Opt-In recommendation. + message MaximizeConversionsOptInRecommendation { + // Output only. The recommended new budget amount. + google.protobuf.Int64Value recommended_budget_amount_micros = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + } - // Output only. The recommended new match type. - google.ads.googleads.v4.enums.KeywordMatchTypeEnum.KeywordMatchType recommended_match_type = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + // The Maximize Clicks opt-in recommendation. + message MaximizeClicksOptInRecommendation { + // Output only. The recommended new budget amount. + // Only set if the current budget is too high. + google.protobuf.Int64Value recommended_budget_amount_micros = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The Callout extension recommendation. + message CalloutExtensionRecommendation { + // Output only. Callout extensions recommended to be added. + repeated google.ads.googleads.v4.common.CalloutFeedItem recommended_extensions = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; } // The Target CPA opt-in recommendation. @@ -164,18 +177,6 @@ message Recommendation { google.protobuf.Int64Value recommended_target_cpa_micros = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } - // The Maximize Conversions Opt-In recommendation. - message MaximizeConversionsOptInRecommendation { - // Output only. The recommended new budget amount. - google.protobuf.Int64Value recommended_budget_amount_micros = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // The Sitelink extension recommendation. - message SitelinkExtensionRecommendation { - // Output only. Sitelink extensions recommended to be added. - repeated google.ads.googleads.v4.common.SitelinkFeedItem recommended_extensions = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - // The Enhanced Cost-Per-Click Opt-In recommendation. message EnhancedCpcOptInRecommendation { @@ -186,11 +187,10 @@ message Recommendation { } - // The Maximize Clicks opt-in recommendation. - message MaximizeClicksOptInRecommendation { - // Output only. The recommended new budget amount. - // Only set if the current budget is too high. - google.protobuf.Int64Value recommended_budget_amount_micros = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + // The Sitelink extension recommendation. + message SitelinkExtensionRecommendation { + // Output only. Sitelink extensions recommended to be added. + repeated google.ads.googleads.v4.common.SitelinkFeedItem recommended_extensions = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; } // The Optimize Ad Rotation recommendation. @@ -198,10 +198,10 @@ message Recommendation { } - // The Callout extension recommendation. - message CalloutExtensionRecommendation { - // Output only. Callout extensions recommended to be added. - repeated google.ads.googleads.v4.common.CalloutFeedItem recommended_extensions = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + // The Call extension recommendation. + message CallExtensionRecommendation { + // Output only. Call extensions recommended to be added. + repeated google.ads.googleads.v4.common.CallFeedItem recommended_extensions = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; } // The move unused budget recommendation. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/remarketing_action.proto b/third_party/googleapis/google/ads/googleads/v4/resources/remarketing_action.proto index 8b04ba5ce..aebe1b230 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/remarketing_action.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/remarketing_action.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/search_term_view.proto b/third_party/googleapis/google/ads/googleads/v4/resources/search_term_view.proto index ec518ceaa..feeffbfbc 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/search_term_view.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/search_term_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/shared_criterion.proto b/third_party/googleapis/google/ads/googleads/v4/resources/shared_criterion.proto index 0b9a46bc9..f4172640b 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/shared_criterion.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/shared_criterion.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/shared_set.proto b/third_party/googleapis/google/ads/googleads/v4/resources/shared_set.proto index 599184284..bb43c5b0d 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/shared_set.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/shared_set.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/shopping_performance_view.proto b/third_party/googleapis/google/ads/googleads/v4/resources/shopping_performance_view.proto index ff42a4325..4dd3c9393 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/shopping_performance_view.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/shopping_performance_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/third_party_app_analytics_link.proto b/third_party/googleapis/google/ads/googleads/v4/resources/third_party_app_analytics_link.proto index f9ee139c6..a903e7629 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/third_party_app_analytics_link.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/third_party_app_analytics_link.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/topic_constant.proto b/third_party/googleapis/google/ads/googleads/v4/resources/topic_constant.proto index 7278ed572..53d9fe411 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/topic_constant.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/topic_constant.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/topic_view.proto b/third_party/googleapis/google/ads/googleads/v4/resources/topic_view.proto index 5c9873c13..d17fa34c7 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/topic_view.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/topic_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/user_interest.proto b/third_party/googleapis/google/ads/googleads/v4/resources/user_interest.proto index c40c30d9b..2a336fb9a 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/user_interest.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/user_interest.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/user_list.proto b/third_party/googleapis/google/ads/googleads/v4/resources/user_list.proto index e72fb3682..1f2d1007e 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/user_list.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/user_list.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/user_location_view.proto b/third_party/googleapis/google/ads/googleads/v4/resources/user_location_view.proto index e2e26fb0f..c82bc5a98 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/user_location_view.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/user_location_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/resources/video.proto b/third_party/googleapis/google/ads/googleads/v4/resources/video.proto index e6a1a7fc3..266d8efda 100644 --- a/third_party/googleapis/google/ads/googleads/v4/resources/video.proto +++ b/third_party/googleapis/google/ads/googleads/v4/resources/video.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v4/services/BUILD.bazel b/third_party/googleapis/google/ads/googleads/v4/services/BUILD.bazel new file mode 100644 index 000000000..3a7c22caf --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v4/services/BUILD.bazel @@ -0,0 +1,138 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") +load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info") + +# TODO(ohren): Change srcs to use an enumeration of each individual proto +# instead of *.proto globbing once the build file generator supports +# subpackages. +proto_library( + name = "services_proto", + srcs = glob(["*.proto"]), + deps = [ + "//google/ads/googleads/v4/common:common_proto", + "//google/ads/googleads/v4/enums:enums_proto", + "//google/ads/googleads/v4/errors:errors_proto", + "//google/ads/googleads/v4/resources:resources_proto", + "//google/api:annotations_proto", + "//google/api:client_proto", + "//google/api:field_behavior_proto", + "//google/api:resource_proto", + "//google/longrunning:operations_proto", + "//google/rpc:status_proto", + "@com_google_protobuf//:empty_proto", + "@com_google_protobuf//:field_mask_proto", + "@com_google_protobuf//:wrappers_proto", + ], +) + +proto_library_with_info( + name = "services_proto_with_info", + deps = [ + ":services_proto", + ], +) + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_grpc_library", + "java_proto_library", +) + +java_proto_library( + name = "services_java_proto", + deps = [":services_proto"], +) + +java_grpc_library( + name = "services_java_grpc", + srcs = [":services_proto"], + deps = [":services_java_proto"], +) + +############################################################################## +# PHP +############################################################################## + +# PHP targets are in the parent directory's BUILD.bazel file to facilitate +# aggregating metadata using a single underlying call to protoc. + +############################################################################## +# C# +############################################################################## +load( + "@gapic_generator_csharp//rules_csharp_gapic:csharp_gapic.bzl", + "csharp_grpc_library", + "csharp_proto_library", +) + +csharp_proto_library( + name = "services_csharp_proto", + deps = [":services_proto"], +) + +csharp_grpc_library( + name = "services_csharp_grpc", + srcs = [":services_proto"], + deps = [":services_csharp_proto"], +) + +############################################################################## +# Ruby +############################################################################## +load( + "@gapic_generator_ruby//rules_ruby_gapic:ruby_gapic.bzl", + "ruby_grpc_library", + "ruby_proto_library", +) + +ruby_proto_library( + name = "services_ruby_proto", + deps = [":services_proto"], +) + +ruby_grpc_library( + name = "services_ruby_grpc", + srcs = [":services_proto"], + deps = [":services_ruby_proto"], +) + +############################################################################## +# Python +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "py_grpc_library", + "py_proto_library", +) + +py_proto_library( + name = "services_py_proto", + deps = [":services_proto"], +) + +py_grpc_library( + name = "services_py_grpc", + srcs = [":services_proto"], + deps = [":services_py_proto"], +) diff --git a/third_party/googleapis/google/ads/googleads/v4/services/account_budget_proposal_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/account_budget_proposal_service.proto index ccd276d70..bf4d330ce 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/account_budget_proposal_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/account_budget_proposal_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -50,6 +50,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // The REMOVE operation cancels a pending proposal. service AccountBudgetProposalService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns an account-level budget proposal in full detail. rpc GetAccountBudgetProposal(GetAccountBudgetProposalRequest) returns (google.ads.googleads.v4.resources.AccountBudgetProposal) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/account_budget_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/account_budget_service.proto index bbbd881f5..0659f6bb8 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/account_budget_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/account_budget_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,6 +38,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Account-level budgets are mutated by creating proposal resources. service AccountBudgetService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns an account-level budget in full detail. rpc GetAccountBudget(GetAccountBudgetRequest) returns (google.ads.googleads.v4.resources.AccountBudget) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/account_link_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/account_link_service.proto index 00bcc2e14..207e3c8cc 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/account_link_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/account_link_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -35,6 +35,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // accounts. service AccountLinkService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the account link in full detail. rpc GetAccountLink(GetAccountLinkRequest) returns (google.ads.googleads.v4.resources.AccountLink) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/ad_group_ad_asset_view_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/ad_group_ad_asset_view_service.proto index 72324e3a8..2c23bf920 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/ad_group_ad_asset_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/ad_group_ad_asset_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to fetch ad group ad asset views. service AdGroupAdAssetViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested ad group ad asset view in full detail. rpc GetAdGroupAdAssetView(GetAdGroupAdAssetViewRequest) returns (google.ads.googleads.v4.resources.AdGroupAdAssetView) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/ad_group_ad_label_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/ad_group_ad_label_service.proto index 75b85b699..8b436584e 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/ad_group_ad_label_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/ad_group_ad_label_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,6 +37,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage labels on ad group ads. service AdGroupAdLabelService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested ad group ad label in full detail. rpc GetAdGroupAdLabel(GetAdGroupAdLabelRequest) returns (google.ads.googleads.v4.resources.AdGroupAdLabel) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/ad_group_ad_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/ad_group_ad_service.proto index 42e63b307..81dc8625e 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/ad_group_ad_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/ad_group_ad_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -39,6 +39,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage ads in an ad group. service AdGroupAdService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested ad in full detail. rpc GetAdGroupAd(GetAdGroupAdRequest) returns (google.ads.googleads.v4.resources.AdGroupAd) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/ad_group_audience_view_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/ad_group_audience_view_service.proto index 19ab2f033..86cf1879e 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/ad_group_audience_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/ad_group_audience_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage ad group audience views. service AdGroupAudienceViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested ad group audience view in full detail. rpc GetAdGroupAudienceView(GetAdGroupAudienceViewRequest) returns (google.ads.googleads.v4.resources.AdGroupAudienceView) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/ad_group_bid_modifier_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/ad_group_bid_modifier_service.proto index 4e1d25d2b..f7ff32696 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/ad_group_bid_modifier_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/ad_group_bid_modifier_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,6 +38,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage ad group bid modifiers. service AdGroupBidModifierService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested ad group bid modifier in full detail. rpc GetAdGroupBidModifier(GetAdGroupBidModifierRequest) returns (google.ads.googleads.v4.resources.AdGroupBidModifier) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/ad_group_criterion_label_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/ad_group_criterion_label_service.proto index dcdb10b53..8e33da123 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/ad_group_criterion_label_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/ad_group_criterion_label_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,6 +37,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage labels on ad group criteria. service AdGroupCriterionLabelService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested ad group criterion label in full detail. rpc GetAdGroupCriterionLabel(GetAdGroupCriterionLabelRequest) returns (google.ads.googleads.v4.resources.AdGroupCriterionLabel) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/ad_group_criterion_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/ad_group_criterion_service.proto index bff227242..4c15598c9 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/ad_group_criterion_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/ad_group_criterion_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -39,6 +39,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage ad group criteria. service AdGroupCriterionService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested criterion in full detail. rpc GetAdGroupCriterion(GetAdGroupCriterionRequest) returns (google.ads.googleads.v4.resources.AdGroupCriterion) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/ad_group_criterion_simulation_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/ad_group_criterion_simulation_service.proto index ca0713642..d27bd022f 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/ad_group_criterion_simulation_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/ad_group_criterion_simulation_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to fetch ad group criterion simulations. service AdGroupCriterionSimulationService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested ad group criterion simulation in full detail. rpc GetAdGroupCriterionSimulation(GetAdGroupCriterionSimulationRequest) returns (google.ads.googleads.v4.resources.AdGroupCriterionSimulation) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/ad_group_extension_setting_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/ad_group_extension_setting_service.proto index 0edc0ba3a..8acb24de8 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/ad_group_extension_setting_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/ad_group_extension_setting_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,6 +38,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage ad group extension settings. service AdGroupExtensionSettingService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested ad group extension setting in full detail. rpc GetAdGroupExtensionSetting(GetAdGroupExtensionSettingRequest) returns (google.ads.googleads.v4.resources.AdGroupExtensionSetting) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/ad_group_feed_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/ad_group_feed_service.proto index dc6cf485a..9b5e9e2c3 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/ad_group_feed_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/ad_group_feed_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,6 +38,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage ad group feeds. service AdGroupFeedService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested ad group feed in full detail. rpc GetAdGroupFeed(GetAdGroupFeedRequest) returns (google.ads.googleads.v4.resources.AdGroupFeed) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/ad_group_label_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/ad_group_label_service.proto index fbd4ab9ef..e24614e22 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/ad_group_label_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/ad_group_label_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,6 +37,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage labels on ad groups. service AdGroupLabelService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested ad group label in full detail. rpc GetAdGroupLabel(GetAdGroupLabelRequest) returns (google.ads.googleads.v4.resources.AdGroupLabel) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/ad_group_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/ad_group_service.proto index 558a5b2b6..ada2d12dc 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/ad_group_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/ad_group_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,6 +38,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage ad groups. service AdGroupService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested ad group in full detail. rpc GetAdGroup(GetAdGroupRequest) returns (google.ads.googleads.v4.resources.AdGroup) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/ad_group_simulation_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/ad_group_simulation_service.proto index a55e69cbf..528289909 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/ad_group_simulation_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/ad_group_simulation_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to fetch ad group simulations. service AdGroupSimulationService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested ad group simulation in full detail. rpc GetAdGroupSimulation(GetAdGroupSimulationRequest) returns (google.ads.googleads.v4.resources.AdGroupSimulation) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/ad_parameter_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/ad_parameter_service.proto index 562c67e79..1703d8c0a 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/ad_parameter_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/ad_parameter_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,6 +38,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage ad parameters. service AdParameterService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested ad parameter in full detail. rpc GetAdParameter(GetAdParameterRequest) returns (google.ads.googleads.v4.resources.AdParameter) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/ad_schedule_view_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/ad_schedule_view_service.proto index cb0d07943..4df40c3de 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/ad_schedule_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/ad_schedule_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to fetch ad schedule views. service AdScheduleViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested ad schedule view in full detail. rpc GetAdScheduleView(GetAdScheduleViewRequest) returns (google.ads.googleads.v4.resources.AdScheduleView) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/ad_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/ad_service.proto index c68937ffc..74de3d6d7 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/ad_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/ad_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,6 +37,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage ads. service AdService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested ad in full detail. rpc GetAd(GetAdRequest) returns (google.ads.googleads.v4.resources.Ad) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/age_range_view_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/age_range_view_service.proto index bc0201e6c..59e0899dc 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/age_range_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/age_range_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage age range views. service AgeRangeViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested age range view in full detail. rpc GetAgeRangeView(GetAgeRangeViewRequest) returns (google.ads.googleads.v4.resources.AgeRangeView) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/asset_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/asset_service.proto index 00f6a67cf..96de20e57 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/asset_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/asset_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,6 +38,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // created with Ad inline. service AssetService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested asset in full detail. rpc GetAsset(GetAssetRequest) returns (google.ads.googleads.v4.resources.Asset) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/batch_job_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/batch_job_service.proto index 1edc33d69..ad4ee04ed 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/batch_job_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/batch_job_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -39,6 +39,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage batch jobs. service BatchJobService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Mutates a batch job. rpc MutateBatchJob(MutateBatchJobRequest) returns (MutateBatchJobResponse) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/bidding_strategy_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/bidding_strategy_service.proto index 1016c6866..3854cd10e 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/bidding_strategy_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/bidding_strategy_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,6 +38,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage bidding strategies. service BiddingStrategyService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested bidding strategy in full detail. rpc GetBiddingStrategy(GetBiddingStrategyRequest) returns (google.ads.googleads.v4.resources.BiddingStrategy) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/billing_setup_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/billing_setup_service.proto index 7cb0bbd1f..57d8f9943 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/billing_setup_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/billing_setup_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -44,6 +44,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // The CREATE operation creates a new billing setup. service BillingSetupService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns a billing setup. rpc GetBillingSetup(GetBillingSetupRequest) returns (google.ads.googleads.v4.resources.BillingSetup) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/campaign_audience_view_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/campaign_audience_view_service.proto index 88da72a13..72c528b42 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/campaign_audience_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/campaign_audience_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage campaign audience views. service CampaignAudienceViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested campaign audience view in full detail. rpc GetCampaignAudienceView(GetCampaignAudienceViewRequest) returns (google.ads.googleads.v4.resources.CampaignAudienceView) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/campaign_bid_modifier_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/campaign_bid_modifier_service.proto index 58e92802b..d7f3ac041 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/campaign_bid_modifier_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/campaign_bid_modifier_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,6 +38,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage campaign bid modifiers. service CampaignBidModifierService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested campaign bid modifier in full detail. rpc GetCampaignBidModifier(GetCampaignBidModifierRequest) returns (google.ads.googleads.v4.resources.CampaignBidModifier) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/campaign_budget_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/campaign_budget_service.proto index e39b56a01..826dd2b62 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/campaign_budget_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/campaign_budget_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,6 +38,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage campaign budgets. service CampaignBudgetService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested Campaign Budget in full detail. rpc GetCampaignBudget(GetCampaignBudgetRequest) returns (google.ads.googleads.v4.resources.CampaignBudget) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/campaign_criterion_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/campaign_criterion_service.proto index 43e8c4bd2..f2b13492e 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/campaign_criterion_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/campaign_criterion_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,6 +38,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage campaign criteria. service CampaignCriterionService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested criterion in full detail. rpc GetCampaignCriterion(GetCampaignCriterionRequest) returns (google.ads.googleads.v4.resources.CampaignCriterion) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/campaign_criterion_simulation_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/campaign_criterion_simulation_service.proto index c929b55ff..6c88f2bfc 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/campaign_criterion_simulation_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/campaign_criterion_simulation_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to fetch campaign criterion simulations. service CampaignCriterionSimulationService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested campaign criterion simulation in full detail. rpc GetCampaignCriterionSimulation(GetCampaignCriterionSimulationRequest) returns (google.ads.googleads.v4.resources.CampaignCriterionSimulation) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/campaign_draft_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/campaign_draft_service.proto index add4c1194..a0bc813a3 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/campaign_draft_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/campaign_draft_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -39,6 +39,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage campaign drafts. service CampaignDraftService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested campaign draft in full detail. rpc GetCampaignDraft(GetCampaignDraftRequest) returns (google.ads.googleads.v4.resources.CampaignDraft) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/campaign_experiment_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/campaign_experiment_service.proto index a7c3d0a8f..c732903c0 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/campaign_experiment_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/campaign_experiment_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -49,6 +49,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // and will be a snapshot of changes in the draft at the time of creation. service CampaignExperimentService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested campaign experiment in full detail. rpc GetCampaignExperiment(GetCampaignExperimentRequest) returns (google.ads.googleads.v4.resources.CampaignExperiment) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/campaign_extension_setting_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/campaign_extension_setting_service.proto index af3e5a255..0100bbcaa 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/campaign_extension_setting_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/campaign_extension_setting_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,6 +38,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage campaign extension settings. service CampaignExtensionSettingService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested campaign extension setting in full detail. rpc GetCampaignExtensionSetting(GetCampaignExtensionSettingRequest) returns (google.ads.googleads.v4.resources.CampaignExtensionSetting) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/campaign_feed_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/campaign_feed_service.proto index 11c1e81e9..9a5fd8cdb 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/campaign_feed_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/campaign_feed_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,6 +38,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage campaign feeds. service CampaignFeedService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested campaign feed in full detail. rpc GetCampaignFeed(GetCampaignFeedRequest) returns (google.ads.googleads.v4.resources.CampaignFeed) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/campaign_label_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/campaign_label_service.proto index 251cf65ff..e83f16e5a 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/campaign_label_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/campaign_label_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,6 +37,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage labels on campaigns. service CampaignLabelService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested campaign-label relationship in full detail. rpc GetCampaignLabel(GetCampaignLabelRequest) returns (google.ads.googleads.v4.resources.CampaignLabel) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/campaign_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/campaign_service.proto index 55b80c82c..2b0c87d35 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/campaign_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/campaign_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,6 +38,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage campaigns. service CampaignService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested campaign in full detail. rpc GetCampaign(GetCampaignRequest) returns (google.ads.googleads.v4.resources.Campaign) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/campaign_shared_set_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/campaign_shared_set_service.proto index 849521d23..2c96856b7 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/campaign_shared_set_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/campaign_shared_set_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,6 +37,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage campaign shared sets. service CampaignSharedSetService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested campaign shared set in full detail. rpc GetCampaignSharedSet(GetCampaignSharedSetRequest) returns (google.ads.googleads.v4.resources.CampaignSharedSet) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/carrier_constant_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/carrier_constant_service.proto index e27a8a732..c5892e5a7 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/carrier_constant_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/carrier_constant_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to fetch carrier constants. service CarrierConstantService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested carrier constant in full detail. rpc GetCarrierConstant(GetCarrierConstantRequest) returns (google.ads.googleads.v4.resources.CarrierConstant) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/change_status_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/change_status_service.proto index eec0326a2..7cbbff17b 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/change_status_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/change_status_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to fetch change statuses. service ChangeStatusService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested change status in full detail. rpc GetChangeStatus(GetChangeStatusRequest) returns (google.ads.googleads.v4.resources.ChangeStatus) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/click_view_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/click_view_service.proto index a3ac75306..fcd6bf516 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/click_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/click_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to fetch click views. service ClickViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested click view in full detail. rpc GetClickView(GetClickViewRequest) returns (google.ads.googleads.v4.resources.ClickView) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/conversion_action_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/conversion_action_service.proto index 9f4584ca1..b2246e574 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/conversion_action_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/conversion_action_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,6 +38,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage conversion actions. service ConversionActionService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested conversion action. rpc GetConversionAction(GetConversionActionRequest) returns (google.ads.googleads.v4.resources.ConversionAction) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/conversion_adjustment_upload_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/conversion_adjustment_upload_service.proto index a1212364d..807b6ebd1 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/conversion_adjustment_upload_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/conversion_adjustment_upload_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -35,6 +35,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to upload conversion adjustments. service ConversionAdjustmentUploadService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Processes the given conversion adjustments. rpc UploadConversionAdjustments(UploadConversionAdjustmentsRequest) returns (UploadConversionAdjustmentsResponse) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/conversion_upload_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/conversion_upload_service.proto index 0bba3cee6..bcb415ab4 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/conversion_upload_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/conversion_upload_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -34,6 +34,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to upload conversions. service ConversionUploadService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Processes the given click conversions. rpc UploadClickConversions(UploadClickConversionsRequest) returns (UploadClickConversionsResponse) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/currency_constant_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/currency_constant_service.proto index c4518c06e..de518301e 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/currency_constant_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/currency_constant_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -34,6 +34,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to fetch currency constants. service CurrencyConstantService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested currency constant. rpc GetCurrencyConstant(GetCurrencyConstantRequest) returns (google.ads.googleads.v4.resources.CurrencyConstant) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/custom_interest_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/custom_interest_service.proto index 177ed9032..7e10e0b60 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/custom_interest_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/custom_interest_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,6 +37,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage custom interests. service CustomInterestService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested custom interest in full detail. rpc GetCustomInterest(GetCustomInterestRequest) returns (google.ads.googleads.v4.resources.CustomInterest) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/customer_client_link_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/customer_client_link_service.proto index 3fd6f634e..f21c7d9bb 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/customer_client_link_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/customer_client_link_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -35,6 +35,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage customer client links. service CustomerClientLinkService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested CustomerClientLink in full detail. rpc GetCustomerClientLink(GetCustomerClientLinkRequest) returns (google.ads.googleads.v4.resources.CustomerClientLink) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/customer_client_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/customer_client_service.proto index aa63b35ab..eb1fd26f7 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/customer_client_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/customer_client_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to get clients in a customer's hierarchy. service CustomerClientService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested client in full detail. rpc GetCustomerClient(GetCustomerClientRequest) returns (google.ads.googleads.v4.resources.CustomerClient) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/customer_extension_setting_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/customer_extension_setting_service.proto index d583a774d..0b7f9e2f0 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/customer_extension_setting_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/customer_extension_setting_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,6 +38,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage customer extension settings. service CustomerExtensionSettingService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested customer extension setting in full detail. rpc GetCustomerExtensionSetting(GetCustomerExtensionSettingRequest) returns (google.ads.googleads.v4.resources.CustomerExtensionSetting) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/customer_feed_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/customer_feed_service.proto index a11f2f723..9fb1b0d04 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/customer_feed_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/customer_feed_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,6 +38,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage customer feeds. service CustomerFeedService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested customer feed in full detail. rpc GetCustomerFeed(GetCustomerFeedRequest) returns (google.ads.googleads.v4.resources.CustomerFeed) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/customer_label_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/customer_label_service.proto index 6a661364d..cbe8e87d1 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/customer_label_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/customer_label_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,6 +37,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage labels on customers. service CustomerLabelService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested customer-label relationship in full detail. rpc GetCustomerLabel(GetCustomerLabelRequest) returns (google.ads.googleads.v4.resources.CustomerLabel) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/customer_manager_link_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/customer_manager_link_service.proto index 5a3cfbb64..091dfd839 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/customer_manager_link_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/customer_manager_link_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -35,6 +35,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage customer-manager links. service CustomerManagerLinkService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested CustomerManagerLink in full detail. rpc GetCustomerManagerLink(GetCustomerManagerLinkRequest) returns (google.ads.googleads.v4.resources.CustomerManagerLink) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/customer_negative_criterion_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/customer_negative_criterion_service.proto index 814ac34a8..b6f526530 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/customer_negative_criterion_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/customer_negative_criterion_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,6 +37,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage customer negative criteria. service CustomerNegativeCriterionService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested criterion in full detail. rpc GetCustomerNegativeCriterion(GetCustomerNegativeCriterionRequest) returns (google.ads.googleads.v4.resources.CustomerNegativeCriterion) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/customer_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/customer_service.proto index 46d44bf4e..7393e410e 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/customer_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/customer_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -39,6 +39,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage customers. service CustomerService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested customer in full detail. rpc GetCustomer(GetCustomerRequest) returns (google.ads.googleads.v4.resources.Customer) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/detail_placement_view_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/detail_placement_view_service.proto index 33e382d1a..9041fee91 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/detail_placement_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/detail_placement_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to fetch Detail Placement views. service DetailPlacementViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested Detail Placement view in full detail. rpc GetDetailPlacementView(GetDetailPlacementViewRequest) returns (google.ads.googleads.v4.resources.DetailPlacementView) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/display_keyword_view_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/display_keyword_view_service.proto index 555bdd17f..43b22a76c 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/display_keyword_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/display_keyword_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage display keyword views. service DisplayKeywordViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested display keyword view in full detail. rpc GetDisplayKeywordView(GetDisplayKeywordViewRequest) returns (google.ads.googleads.v4.resources.DisplayKeywordView) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/distance_view_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/distance_view_service.proto index c1d3e4f11..75a770afb 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/distance_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/distance_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to fetch distance views. service DistanceViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the attributes of the requested distance view. rpc GetDistanceView(GetDistanceViewRequest) returns (google.ads.googleads.v4.resources.DistanceView) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/domain_category_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/domain_category_service.proto index 2a75d1f24..d93f2910c 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/domain_category_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/domain_category_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to fetch domain categories. service DomainCategoryService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested domain category. rpc GetDomainCategory(GetDomainCategoryRequest) returns (google.ads.googleads.v4.resources.DomainCategory) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/dynamic_search_ads_search_term_view_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/dynamic_search_ads_search_term_view_service.proto index fc633d8f7..437378112 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/dynamic_search_ads_search_term_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/dynamic_search_ads_search_term_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to fetch dynamic search ads views. service DynamicSearchAdsSearchTermViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested dynamic search ads search term view in full detail. rpc GetDynamicSearchAdsSearchTermView(GetDynamicSearchAdsSearchTermViewRequest) returns (google.ads.googleads.v4.resources.DynamicSearchAdsSearchTermView) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/expanded_landing_page_view_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/expanded_landing_page_view_service.proto index 8f0c0aa45..6570a07d9 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/expanded_landing_page_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/expanded_landing_page_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to fetch expanded landing page views. service ExpandedLandingPageViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested expanded landing page view in full detail. rpc GetExpandedLandingPageView(GetExpandedLandingPageViewRequest) returns (google.ads.googleads.v4.resources.ExpandedLandingPageView) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/extension_feed_item_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/extension_feed_item_service.proto index a0c37cd9f..afe3002be 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/extension_feed_item_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/extension_feed_item_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,6 +38,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage extension feed items. service ExtensionFeedItemService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested extension feed item in full detail. rpc GetExtensionFeedItem(GetExtensionFeedItemRequest) returns (google.ads.googleads.v4.resources.ExtensionFeedItem) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/feed_item_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/feed_item_service.proto index c364e2424..e9d95cd5b 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/feed_item_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/feed_item_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,6 +38,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage feed items. service FeedItemService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested feed item in full detail. rpc GetFeedItem(GetFeedItemRequest) returns (google.ads.googleads.v4.resources.FeedItem) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/feed_item_target_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/feed_item_target_service.proto index 561bb356c..feb6e20bf 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/feed_item_target_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/feed_item_target_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage feed item targets. service FeedItemTargetService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested feed item targets in full detail. rpc GetFeedItemTarget(GetFeedItemTargetRequest) returns (google.ads.googleads.v4.resources.FeedItemTarget) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/feed_mapping_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/feed_mapping_service.proto index edef87e33..405b1c543 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/feed_mapping_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/feed_mapping_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,6 +37,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage feed mappings. service FeedMappingService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested feed mapping in full detail. rpc GetFeedMapping(GetFeedMappingRequest) returns (google.ads.googleads.v4.resources.FeedMapping) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/feed_placeholder_view_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/feed_placeholder_view_service.proto index 10a9b325e..3f0ef73e2 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/feed_placeholder_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/feed_placeholder_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to fetch feed placeholder views. service FeedPlaceholderViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested feed placeholder view in full detail. rpc GetFeedPlaceholderView(GetFeedPlaceholderViewRequest) returns (google.ads.googleads.v4.resources.FeedPlaceholderView) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/feed_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/feed_service.proto index 88bf4af3d..49898c977 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/feed_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/feed_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,6 +38,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage feeds. service FeedService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested feed in full detail. rpc GetFeed(GetFeedRequest) returns (google.ads.googleads.v4.resources.Feed) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/gender_view_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/gender_view_service.proto index 15f1ef890..a0ca9575c 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/gender_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/gender_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage gender views. service GenderViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested gender view in full detail. rpc GetGenderView(GetGenderViewRequest) returns (google.ads.googleads.v4.resources.GenderView) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/geo_target_constant_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/geo_target_constant_service.proto index 1c106b4f5..81032848b 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/geo_target_constant_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/geo_target_constant_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,6 +37,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to fetch geo target constants. service GeoTargetConstantService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested geo target constant in full detail. rpc GetGeoTargetConstant(GetGeoTargetConstantRequest) returns (google.ads.googleads.v4.resources.GeoTargetConstant) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/geographic_view_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/geographic_view_service.proto index 680abbfeb..474cb5e91 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/geographic_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/geographic_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage geographic views. service GeographicViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested geographic view in full detail. rpc GetGeographicView(GetGeographicViewRequest) returns (google.ads.googleads.v4.resources.GeographicView) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/google_ads_field_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/google_ads_field_service.proto index a311b6c4b..27f22e41c 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/google_ads_field_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/google_ads_field_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to fetch Google Ads API fields. service GoogleAdsFieldService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns just the requested field. rpc GetGoogleAdsField(GetGoogleAdsFieldRequest) returns (google.ads.googleads.v4.resources.GoogleAdsField) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/google_ads_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/google_ads_service.proto index 50b404535..e6174261d 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/google_ads_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/google_ads_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -185,6 +185,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to fetch data and metrics across resources. service GoogleAdsService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns all rows that match the search query. rpc Search(SearchGoogleAdsRequest) returns (SearchGoogleAdsResponse) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/group_placement_view_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/group_placement_view_service.proto index c5324872d..b233d4f97 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/group_placement_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/group_placement_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to fetch Group Placement views. service GroupPlacementViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested Group Placement view in full detail. rpc GetGroupPlacementView(GetGroupPlacementViewRequest) returns (google.ads.googleads.v4.resources.GroupPlacementView) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/hotel_group_view_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/hotel_group_view_service.proto index f53c06b6c..7da1d93ad 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/hotel_group_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/hotel_group_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage Hotel Group Views. service HotelGroupViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested Hotel Group View in full detail. rpc GetHotelGroupView(GetHotelGroupViewRequest) returns (google.ads.googleads.v4.resources.HotelGroupView) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/hotel_performance_view_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/hotel_performance_view_service.proto index ae2fafb22..ec1eb354f 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/hotel_performance_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/hotel_performance_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage Hotel Performance Views. service HotelPerformanceViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested Hotel Performance View in full detail. rpc GetHotelPerformanceView(GetHotelPerformanceViewRequest) returns (google.ads.googleads.v4.resources.HotelPerformanceView) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/income_range_view_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/income_range_view_service.proto index 4fe9e94a2..c1dd077fc 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/income_range_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/income_range_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage income range views. service IncomeRangeViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested income range view in full detail. rpc GetIncomeRangeView(GetIncomeRangeViewRequest) returns (google.ads.googleads.v4.resources.IncomeRangeView) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/invoice_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/invoice_service.proto index fe85e5f19..5b436a613 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/invoice_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/invoice_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // A service to fetch invoices issued for a billing setup during a given month. service InvoiceService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns all invoices associated with a billing setup, for a given month. rpc ListInvoices(ListInvoicesRequest) returns (ListInvoicesResponse) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/keyword_plan_ad_group_keyword_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/keyword_plan_ad_group_keyword_service.proto index a28fc337e..db4f2900b 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/keyword_plan_ad_group_keyword_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/keyword_plan_ad_group_keyword_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -42,6 +42,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // includes campaign negative keywords and ad group negative keywords. service KeywordPlanAdGroupKeywordService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested Keyword Plan ad group keyword in full detail. rpc GetKeywordPlanAdGroupKeyword(GetKeywordPlanAdGroupKeywordRequest) returns (google.ads.googleads.v4.resources.KeywordPlanAdGroupKeyword) { @@ -117,7 +118,9 @@ message KeywordPlanAdGroupKeywordOperation { // keyword is expected, in this format: // // `customers/{customer_id}/keywordPlanAdGroupKeywords/{kp_ad_group_keyword_id}` - string remove = 3; + string remove = 3 [(google.api.resource_reference) = { + type: "googleads.googleapis.com/KeywordPlanAdGroupKeyword" + }]; } } diff --git a/third_party/googleapis/google/ads/googleads/v4/services/keyword_plan_ad_group_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/keyword_plan_ad_group_service.proto index 71a62b008..e7bcd70c1 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/keyword_plan_ad_group_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/keyword_plan_ad_group_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,6 +38,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage Keyword Plan ad groups. service KeywordPlanAdGroupService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested Keyword Plan ad group in full detail. rpc GetKeywordPlanAdGroup(GetKeywordPlanAdGroupRequest) returns (google.ads.googleads.v4.resources.KeywordPlanAdGroup) { @@ -108,7 +109,9 @@ message KeywordPlanAdGroupOperation { // is expected, in this format: // // `customers/{customer_id}/keywordPlanAdGroups/{kp_ad_group_id}` - string remove = 3; + string remove = 3 [(google.api.resource_reference) = { + type: "googleads.googleapis.com/KeywordPlanAdGroup" + }]; } } diff --git a/third_party/googleapis/google/ads/googleads/v4/services/keyword_plan_campaign_keyword_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/keyword_plan_campaign_keyword_service.proto index ff57ee34c..05fd84327 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/keyword_plan_campaign_keyword_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/keyword_plan_campaign_keyword_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -41,6 +41,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // campaign negative keywords and ad group negative keywords. service KeywordPlanCampaignKeywordService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested plan in full detail. rpc GetKeywordPlanCampaignKeyword(GetKeywordPlanCampaignKeywordRequest) returns (google.ads.googleads.v4.resources.KeywordPlanCampaignKeyword) { @@ -115,7 +116,9 @@ message KeywordPlanCampaignKeywordOperation { // keywords expected in this format: // // `customers/{customer_id}/keywordPlanCampaignKeywords/{kp_campaign_keyword_id}` - string remove = 3; + string remove = 3 [(google.api.resource_reference) = { + type: "googleads.googleapis.com/KeywordPlanCampaignKeyword" + }]; } } diff --git a/third_party/googleapis/google/ads/googleads/v4/services/keyword_plan_campaign_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/keyword_plan_campaign_service.proto index 5841a7ef7..2d987f274 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/keyword_plan_campaign_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/keyword_plan_campaign_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,6 +38,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage Keyword Plan campaigns. service KeywordPlanCampaignService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested Keyword Plan campaign in full detail. rpc GetKeywordPlanCampaign(GetKeywordPlanCampaignRequest) returns (google.ads.googleads.v4.resources.KeywordPlanCampaign) { @@ -109,7 +110,9 @@ message KeywordPlanCampaignOperation { // is expected, in this format: // // `customers/{customer_id}/keywordPlanCampaigns/{keywordPlan_campaign_id}` - string remove = 3; + string remove = 3 [(google.api.resource_reference) = { + type: "googleads.googleapis.com/KeywordPlanCampaign" + }]; } } diff --git a/third_party/googleapis/google/ads/googleads/v4/services/keyword_plan_idea_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/keyword_plan_idea_service.proto index 1ec940c7f..e3ad15eed 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/keyword_plan_idea_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/keyword_plan_idea_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,6 +37,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to generate keyword ideas. service KeywordPlanIdeaService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns a list of keyword ideas. rpc GenerateKeywordIdeas(GenerateKeywordIdeasRequest) returns (GenerateKeywordIdeaResponse) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/keyword_plan_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/keyword_plan_service.proto index 499dbac4f..daee3d97c 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/keyword_plan_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/keyword_plan_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -40,6 +40,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage keyword plans. service KeywordPlanService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested plan in full detail. rpc GetKeywordPlan(GetKeywordPlanRequest) returns (google.ads.googleads.v4.resources.KeywordPlan) { @@ -141,7 +142,9 @@ message KeywordPlanOperation { // expected in this format: // // `customers/{customer_id}/keywordPlans/{keyword_plan_id}` - string remove = 3; + string remove = 3 [(google.api.resource_reference) = { + type: "googleads.googleapis.com/KeywordPlan" + }]; } } @@ -166,7 +169,12 @@ message MutateKeywordPlansResult { // Request message for [KeywordPlanService.GenerateForecastCurve][google.ads.googleads.v4.services.KeywordPlanService.GenerateForecastCurve]. message GenerateForecastCurveRequest { // Required. The resource name of the keyword plan to be forecasted. - string keyword_plan = 1 [(google.api.field_behavior) = REQUIRED]; + string keyword_plan = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/KeywordPlan" + } + ]; } // Response message for [KeywordPlanService.GenerateForecastCurve][google.ads.googleads.v4.services.KeywordPlanService.GenerateForecastCurve]. @@ -179,7 +187,12 @@ message GenerateForecastCurveResponse { // Request message for [KeywordPlanService.GenerateForecastMetrics][google.ads.googleads.v4.services.KeywordPlanService.GenerateForecastMetrics]. message GenerateForecastMetricsRequest { // Required. The resource name of the keyword plan to be forecasted. - string keyword_plan = 1 [(google.api.field_behavior) = REQUIRED]; + string keyword_plan = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/KeywordPlan" + } + ]; } // Response message for [KeywordPlanService.GenerateForecastMetrics][google.ads.googleads.v4.services.KeywordPlanService.GenerateForecastMetrics]. @@ -276,7 +289,12 @@ message ForecastMetrics { message GenerateHistoricalMetricsRequest { // Required. The resource name of the keyword plan of which historical metrics are // requested. - string keyword_plan = 1 [(google.api.field_behavior) = REQUIRED]; + string keyword_plan = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/KeywordPlan" + } + ]; } // Response message for [KeywordPlanService.GenerateHistoricalMetrics][google.ads.googleads.v4.services.KeywordPlanService.GenerateHistoricalMetrics]. diff --git a/third_party/googleapis/google/ads/googleads/v4/services/keyword_view_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/keyword_view_service.proto index 7da6359cb..dc6cdb9c2 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/keyword_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/keyword_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage keyword views. service KeywordViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested keyword view in full detail. rpc GetKeywordView(GetKeywordViewRequest) returns (google.ads.googleads.v4.resources.KeywordView) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/label_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/label_service.proto index 29c927321..510477158 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/label_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/label_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage labels. service LabelService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested label in full detail. rpc GetLabel(GetLabelRequest) returns (google.ads.googleads.v4.resources.Label) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/landing_page_view_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/landing_page_view_service.proto index 96b1ec88f..d386d4869 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/landing_page_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/landing_page_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to fetch landing page views. service LandingPageViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested landing page view in full detail. rpc GetLandingPageView(GetLandingPageViewRequest) returns (google.ads.googleads.v4.resources.LandingPageView) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/language_constant_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/language_constant_service.proto index 4f0211ac6..1b3eb9f19 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/language_constant_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/language_constant_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to fetch language constants. service LanguageConstantService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested language constant. rpc GetLanguageConstant(GetLanguageConstantRequest) returns (google.ads.googleads.v4.resources.LanguageConstant) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/location_view_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/location_view_service.proto index 016b57f2f..8610665b0 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/location_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/location_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to fetch location views. service LocationViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested location view in full detail. rpc GetLocationView(GetLocationViewRequest) returns (google.ads.googleads.v4.resources.LocationView) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/managed_placement_view_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/managed_placement_view_service.proto index 14a50cd37..0bb86ba59 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/managed_placement_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/managed_placement_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage Managed Placement views. service ManagedPlacementViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested Managed Placement view in full detail. rpc GetManagedPlacementView(GetManagedPlacementViewRequest) returns (google.ads.googleads.v4.resources.ManagedPlacementView) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/media_file_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/media_file_service.proto index a85718dbe..8fbeee3a8 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/media_file_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/media_file_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,6 +37,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage media files. service MediaFileService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested media file in full detail. rpc GetMediaFile(GetMediaFileRequest) returns (google.ads.googleads.v4.resources.MediaFile) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/merchant_center_link_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/merchant_center_link_service.proto index ada2abbcb..ba3b73d1c 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/merchant_center_link_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/merchant_center_link_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,6 +38,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Merchant Center. service MerchantCenterLinkService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns Merchant Center links available for this customer. rpc ListMerchantCenterLinks(ListMerchantCenterLinksRequest) returns (ListMerchantCenterLinksResponse) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/mobile_app_category_constant_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/mobile_app_category_constant_service.proto index 4e4ebfff9..e6a5af22a 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/mobile_app_category_constant_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/mobile_app_category_constant_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -34,6 +34,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to fetch mobile app category constants. service MobileAppCategoryConstantService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested mobile app category constant. rpc GetMobileAppCategoryConstant(GetMobileAppCategoryConstantRequest) returns (google.ads.googleads.v4.resources.MobileAppCategoryConstant) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/mobile_device_constant_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/mobile_device_constant_service.proto index 64001d8f1..9f0b8ce4c 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/mobile_device_constant_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/mobile_device_constant_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to fetch mobile device constants. service MobileDeviceConstantService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested mobile device constant in full detail. rpc GetMobileDeviceConstant(GetMobileDeviceConstantRequest) returns (google.ads.googleads.v4.resources.MobileDeviceConstant) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/offline_user_data_job_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/offline_user_data_job_service.proto index 8fb37b59d..c56345914 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/offline_user_data_job_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/offline_user_data_job_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -40,6 +40,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage offline user data jobs. service OfflineUserDataJobService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Creates an offline user data job. rpc CreateOfflineUserDataJob(CreateOfflineUserDataJobRequest) returns (CreateOfflineUserDataJobResponse) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/operating_system_version_constant_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/operating_system_version_constant_service.proto index ac3139ef4..605ddb036 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/operating_system_version_constant_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/operating_system_version_constant_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to fetch Operating System Version constants. service OperatingSystemVersionConstantService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested OS version constant in full detail. rpc GetOperatingSystemVersionConstant(GetOperatingSystemVersionConstantRequest) returns (google.ads.googleads.v4.resources.OperatingSystemVersionConstant) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/paid_organic_search_term_view_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/paid_organic_search_term_view_service.proto index f72420106..8fa088ccd 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/paid_organic_search_term_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/paid_organic_search_term_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to fetch paid organic search term views. service PaidOrganicSearchTermViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested paid organic search term view in full detail. rpc GetPaidOrganicSearchTermView(GetPaidOrganicSearchTermViewRequest) returns (google.ads.googleads.v4.resources.PaidOrganicSearchTermView) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/parental_status_view_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/parental_status_view_service.proto index e8b79c8ef..68c1a79be 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/parental_status_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/parental_status_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage parental status views. service ParentalStatusViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested parental status view in full detail. rpc GetParentalStatusView(GetParentalStatusViewRequest) returns (google.ads.googleads.v4.resources.ParentalStatusView) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/payments_account_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/payments_account_service.proto index fc095347f..1de74bd44 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/payments_account_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/payments_account_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // billing. service PaymentsAccountService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns all payments accounts associated with all managers // between the login customer ID and specified serving customer in the diff --git a/third_party/googleapis/google/ads/googleads/v4/services/product_bidding_category_constant_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/product_bidding_category_constant_service.proto index cd31d0aa7..3066da1b1 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/product_bidding_category_constant_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/product_bidding_category_constant_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to fetch Product Bidding Categories. service ProductBiddingCategoryConstantService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested Product Bidding Category in full detail. rpc GetProductBiddingCategoryConstant(GetProductBiddingCategoryConstantRequest) returns (google.ads.googleads.v4.resources.ProductBiddingCategoryConstant) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/product_group_view_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/product_group_view_service.proto index 72e8cae9f..bc990257e 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/product_group_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/product_group_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage product group views. service ProductGroupViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested product group view in full detail. rpc GetProductGroupView(GetProductGroupViewRequest) returns (google.ads.googleads.v4.resources.ProductGroupView) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/reach_plan_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/reach_plan_service.proto index 99e302b32..ea02421d2 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/reach_plan_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/reach_plan_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -44,6 +44,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // certain duration with a defined budget. service ReachPlanService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the list of plannable locations (for example, countries & DMAs). rpc ListPlannableLocations(ListPlannableLocationsRequest) returns (ListPlannableLocationsResponse) { @@ -130,7 +131,7 @@ message ListPlannableProductsResponse { // The metadata associated with an available plannable product. message ProductMetadata { - // The code associated with the ad product. E.g. Trueview, Bumper + // The code associated with the ad product. E.g. BUMPER, TRUEVIEW_IN_STREAM // To list the available plannable product codes use ListPlannableProducts. google.protobuf.StringValue plannable_product_code = 1; @@ -317,7 +318,8 @@ message CampaignDuration { // A product being planned for reach. message PlannedProduct { // Required. Selected product for planning. - // Plannable products codes can be obtained from ListPlannableProducts. + // The code associated with the ad product. E.g. Trueview, Bumper + // To list the available plannable product codes use ListPlannableProducts. google.protobuf.StringValue plannable_product_code = 1; // Required. Maximum budget allocation in micros for the selected product. diff --git a/third_party/googleapis/google/ads/googleads/v4/services/recommendation_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/recommendation_service.proto index ab849512f..4d18b49e2 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/recommendation_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/recommendation_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -41,6 +41,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage recommendations. service RecommendationService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested recommendation in full detail. rpc GetRecommendation(GetRecommendationRequest) returns (google.ads.googleads.v4.resources.Recommendation) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/remarketing_action_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/remarketing_action_service.proto index 83b742c14..7115e2820 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/remarketing_action_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/remarketing_action_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,6 +38,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage remarketing actions. service RemarketingActionService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested remarketing action in full detail. rpc GetRemarketingAction(GetRemarketingActionRequest) returns (google.ads.googleads.v4.resources.RemarketingAction) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/search_term_view_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/search_term_view_service.proto index 07e515150..c1e331e9b 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/search_term_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/search_term_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage search term views. service SearchTermViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the attributes of the requested search term view. rpc GetSearchTermView(GetSearchTermViewRequest) returns (google.ads.googleads.v4.resources.SearchTermView) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/shared_criterion_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/shared_criterion_service.proto index 2cc664fa5..a1a7b241c 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/shared_criterion_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/shared_criterion_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,6 +37,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage shared criteria. service SharedCriterionService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested shared criterion in full detail. rpc GetSharedCriterion(GetSharedCriterionRequest) returns (google.ads.googleads.v4.resources.SharedCriterion) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/shared_set_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/shared_set_service.proto index eb58c353f..b05e55593 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/shared_set_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/shared_set_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,6 +38,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage shared sets. service SharedSetService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested shared set in full detail. rpc GetSharedSet(GetSharedSetRequest) returns (google.ads.googleads.v4.resources.SharedSet) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/shopping_performance_view_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/shopping_performance_view_service.proto index 24cc71684..1d59e312e 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/shopping_performance_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/shopping_performance_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to fetch Shopping performance views. service ShoppingPerformanceViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested Shopping performance view in full detail. rpc GetShoppingPerformanceView(GetShoppingPerformanceViewRequest) returns (google.ads.googleads.v4.resources.ShoppingPerformanceView) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/third_party_app_analytics_link_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/third_party_app_analytics_link_service.proto index 0c2ac962f..62e315d1e 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/third_party_app_analytics_link_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/third_party_app_analytics_link_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -34,6 +34,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // app analytics. service ThirdPartyAppAnalyticsLinkService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the third party app analytics link in full detail. rpc GetThirdPartyAppAnalyticsLink(GetThirdPartyAppAnalyticsLinkRequest) returns (google.ads.googleads.v4.resources.ThirdPartyAppAnalyticsLink) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/topic_constant_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/topic_constant_service.proto index aebcea169..2211359b9 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/topic_constant_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/topic_constant_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to fetch topic constants. service TopicConstantService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested topic constant in full detail. rpc GetTopicConstant(GetTopicConstantRequest) returns (google.ads.googleads.v4.resources.TopicConstant) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/topic_view_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/topic_view_service.proto index d04d2069f..c3d3bbe71 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/topic_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/topic_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage topic views. service TopicViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested topic view in full detail. rpc GetTopicView(GetTopicViewRequest) returns (google.ads.googleads.v4.resources.TopicView) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/user_data_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/user_data_service.proto index 57c42b092..1127bb53d 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/user_data_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/user_data_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,6 +37,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Accessible only to customers on the allow-list. service UserDataService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Uploads the given user data. rpc UploadUserData(UploadUserDataRequest) returns (UploadUserDataResponse) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/user_interest_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/user_interest_service.proto index c83b8f3cf..f07b0f69b 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/user_interest_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/user_interest_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to fetch Google Ads User Interest. service UserInterestService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested user interest in full detail rpc GetUserInterest(GetUserInterestRequest) returns (google.ads.googleads.v4.resources.UserInterest) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/user_list_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/user_list_service.proto index e31fd0146..841e91b42 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/user_list_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/user_list_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,6 +38,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage user lists. service UserListService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested user list. rpc GetUserList(GetUserListRequest) returns (google.ads.googleads.v4.resources.UserList) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/user_location_view_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/user_location_view_service.proto index 834808cc6..9803ecc62 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/user_location_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/user_location_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage user location views. service UserLocationViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested user location view in full detail. rpc GetUserLocationView(GetUserLocationViewRequest) returns (google.ads.googleads.v4.resources.UserLocationView) { diff --git a/third_party/googleapis/google/ads/googleads/v4/services/video_service.proto b/third_party/googleapis/google/ads/googleads/v4/services/video_service.proto index 56d1fb051..f2759128b 100644 --- a/third_party/googleapis/google/ads/googleads/v4/services/video_service.proto +++ b/third_party/googleapis/google/ads/googleads/v4/services/video_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V4::Services"; // Service to manage videos. service VideoService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested video in full detail. rpc GetVideo(GetVideoRequest) returns (google.ads.googleads.v4.resources.Video) { diff --git a/third_party/googleapis/google/ads/googleads/v5/BUILD.bazel b/third_party/googleapis/google/ads/googleads/v5/BUILD.bazel new file mode 100644 index 000000000..7c2903d93 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v5/BUILD.bazel @@ -0,0 +1,306 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package(default_visibility = ["//visibility:public"]) + +exports_files(["googleads_grpc_service_config.json"] + ["*.yaml"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") +load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info") + +proto_library( + name = "googleads_proto", + srcs = [], + deps = [ + "//google/ads/googleads/v5/common:common_proto", + "//google/ads/googleads/v5/enums:enums_proto", + "//google/ads/googleads/v5/errors:errors_proto", + "//google/ads/googleads/v5/resources:resources_proto", + "//google/ads/googleads/v5/services:services_proto", + ], +) + +proto_library_with_info( + name = "googleads_proto_with_info", + deps = [ + ":googleads_proto", + ], +) + +############################################################################## +# Java (gapic-generator-java) +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_gapic_assembly_gradle_pkg", + "java_gapic_library", + "java_gapic_test", +) + +java_gapic_library( + name = "googleads_java_gapic", + srcs = [ + ":googleads_proto_with_info", + ], + gapic_yaml = "googleads_gapic.yaml", + grpc_service_config = ":googleads_grpc_service_config.json", + deps = [ + "//google/ads/googleads/v5/common:common_java_proto", + "//google/ads/googleads/v5/enums:enums_java_proto", + "//google/ads/googleads/v5/resources:resources_java_proto", + "//google/ads/googleads/v5/services:services_java_grpc", + "//google/ads/googleads/v5/services:services_java_proto", + ], +) + +# TODO(ohren): Add more test classes when java_gapic_test is able to run more +# than a single test. Having at least one verifies proper compilation at least. +java_gapic_test( + name = "googleads_java_gapic_suite", + test_classes = [ + "com.google.ads.googleads.v5.services.CampaignServiceClientTest", + ], + runtime_deps = [":googleads_java_gapic_test"], +) + +java_gapic_assembly_gradle_pkg( + name = "googleads-java", + deps = [ + ":googleads_java_gapic", + "//google/ads/googleads/v5:googleads_proto", + "//google/ads/googleads/v5/common:common_java_proto", + "//google/ads/googleads/v5/enums:enums_java_proto", + "//google/ads/googleads/v5/errors:errors_java_proto", + "//google/ads/googleads/v5/resources:resources_java_proto", + "//google/ads/googleads/v5/services:services_java_grpc", + "//google/ads/googleads/v5/services:services_java_proto", + ], +) + +############################################################################## +# PHP (gapic-generator, GAPICv2) +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "php_gapic_assembly_pkg", + "php_gapic_library", + "php_grpc_library", + "php_proto_library", +) + +php_proto_library( + name = "googleads_php_mono_proto", + plugin_args = ["aggregate_metadata=google.ads.googleads"], + deps = [":googleads_proto"], +) + +php_grpc_library( + name = "googleads_php_mono_grpc", + srcs = [":googleads_proto"], + deps = [":googleads_php_mono_proto"], +) + +php_gapic_library( + name = "googleads_php_mono_gapic", + src = ":googleads_proto_with_info", + gapic_yaml = "googleads_gapic.yaml", + grpc_service_config = "googleads_grpc_service_config.json", + package = "google.ads.googleads.v5", + service_yaml = "googleads_v5.yaml", + deps = [ + ":googleads_php_mono_grpc", + ":googleads_php_mono_proto", + ], +) + +php_gapic_assembly_pkg( + name = "googleads-php-mono", + deps = [ + ":googleads_php_mono_gapic", + ":googleads_php_mono_grpc", + ":googleads_php_mono_proto", + ], +) + +############################################################################## +# PHP (gapic-generator-php) +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "php_gapic_assembly_pkg2", + "php_gapic_library2", + "php_grpc_library2", + "php_proto_library2", +) + +php_proto_library2( + name = "googleads_php_micro_proto", + plugin_args = ["aggregate_metadata=google.ads.googleads"], + deps = [":googleads_proto"], +) + +php_grpc_library2( + name = "googleads_php_micro_grpc", + srcs = [":googleads_proto"], + deps = [":googleads_php_micro_proto"], +) + +php_gapic_library2( + name = "googleads_php_micro_gapic", + srcs = [":googleads_proto"], + gapic_yaml = "googleads_gapic.yaml", + grpc_service_config = "googleads_grpc_service_config.json", + service_yaml = "googleads_v5.yaml", + deps = [ + ":googleads_php_micro_grpc", + ":googleads_php_micro_proto", + ], +) + +php_gapic_assembly_pkg2( + name = "googleads-php-micro", + deps = [ + ":googleads_php_micro_gapic", + ":googleads_php_micro_grpc", + ":googleads_php_micro_proto", + ], +) + +############################################################################## +# C# +############################################################################## +load("@gapic_generator_csharp//rules_csharp_gapic:csharp_gapic.bzl", "csharp_gapic_library") +load("@gapic_generator_csharp//rules_csharp_gapic:csharp_gapic_pkg.bzl", "csharp_gapic_assembly_pkg") + +csharp_gapic_library( + name = "googleads_csharp_gapic", + srcs = [ + ":googleads_proto_with_info", + ], + deps = [ + "//google/ads/googleads/v5/services:services_csharp_grpc", + ], +) + +csharp_gapic_assembly_pkg( + name = "googleads-csharp", + deps = [ + ":googleads_csharp_gapic", + "//google/ads/googleads/v5/common:common_csharp_proto", + "//google/ads/googleads/v5/enums:enums_csharp_proto", + "//google/ads/googleads/v5/errors:errors_csharp_proto", + "//google/ads/googleads/v5/resources:resources_csharp_proto", + "//google/ads/googleads/v5/services:services_csharp_grpc", + "//google/ads/googleads/v5/services:services_csharp_proto", + ], +) + +############################################################################## +# Ruby +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "ruby_ads_gapic_library", + "ruby_gapic_assembly_pkg", +) + +ruby_ads_gapic_library( + name = "googleads_ruby_gapic", + srcs = ["googleads_proto_with_info"], + extra_protoc_parameters = [ + ":gem.:name=google-ads-googleads", + ":defaults.:service.:default_host=googleads.googleapis.com", + ":overrides.:namespace.Googleads=GoogleAds", + ], + grpc_service_config = "googleads_grpc_service_config.json", +) + +ruby_gapic_assembly_pkg( + name = "googleads-ruby", + deps = [ + ":googleads_ruby_gapic", + "//google/ads/googleads/v5/common:common_ruby_proto", + "//google/ads/googleads/v5/enums:enums_ruby_proto", + "//google/ads/googleads/v5/errors:errors_ruby_proto", + "//google/ads/googleads/v5/resources:resources_ruby_proto", + "//google/ads/googleads/v5/services:services_ruby_grpc", + "//google/ads/googleads/v5/services:services_ruby_proto", + ], +) + +############################################################################## +# Python (gapic-generator-python) +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "py_gapic_assembly_pkg", + "py_gapic_library", +) + +py_gapic_library( + name = "googleads_py_gapic", + srcs = [":googleads_proto_with_info"], + grpc_service_config = "googleads_grpc_service_config.json", + opt_args = [ + "old-naming", + "lazy-import", + "python-gapic-name=googleads", + "python-gapic-templates=ads-templates", + ], +) + +py_gapic_assembly_pkg( + name = "googleads-py", + deps = [ + ":googleads_py_gapic", + "//google/ads/googleads/v5/common:common_py_proto", + "//google/ads/googleads/v5/enums:enums_py_proto", + "//google/ads/googleads/v5/errors:errors_py_proto", + "//google/ads/googleads/v5/resources:resources_py_proto", + "//google/ads/googleads/v5/services:services_py_grpc", + "//google/ads/googleads/v5/services:services_py_proto", + ], +) + +############################################################################## +# Node.js +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", +) + +nodejs_gapic_library( + name = "googleads_nodejs_gapic", + package_name = "google-ads", + src = ":googleads_proto_with_info", + extra_protoc_parameters = ["metadata"], + grpc_service_config = "googleads_grpc_service_config.json", + main_service = "GoogleAdsService", + package = "google.ads.googleads.v5", + service_yaml = "googleads_v5.yaml", + deps = [], +) + +nodejs_gapic_assembly_pkg( + name = "googleads-nodejs", + deps = [ + ":googleads_nodejs_gapic", + ":googleads_proto", + ], +) diff --git a/third_party/googleapis/google/ads/googleads/v5/common/BUILD.bazel b/third_party/googleapis/google/ads/googleads/v5/common/BUILD.bazel new file mode 100644 index 000000000..ba7f9a1e8 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v5/common/BUILD.bazel @@ -0,0 +1,94 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") + +# TODO(ohren): Change srcs to use an enumeration of each individual proto +# instead of *.proto globbing once the build file generator supports +# subpackages. +proto_library( + name = "common_proto", + srcs = glob(["*.proto"]), + deps = [ + "//google/ads/googleads/v5/enums:enums_proto", + "//google/api:annotations_proto", + "//google/api:field_behavior_proto", + "//google/api:resource_proto", + "@com_google_protobuf//:wrappers_proto", + ], +) + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_proto_library", +) + +java_proto_library( + name = "common_java_proto", + deps = [":common_proto"], +) + +############################################################################## +# PHP +############################################################################## + +# PHP targets are in the parent directory's BUILD.bazel file to facilitate +# aggregating metadata using a single underlying call to protoc. + +############################################################################## +# C# +############################################################################## +load( + "@gapic_generator_csharp//rules_csharp_gapic:csharp_gapic.bzl", + "csharp_proto_library", +) + +csharp_proto_library( + name = "common_csharp_proto", + deps = [":common_proto"], +) + +############################################################################## +# Ruby +############################################################################## +load( + "@gapic_generator_ruby//rules_ruby_gapic:ruby_gapic.bzl", + "ruby_proto_library", +) + +ruby_proto_library( + name = "common_ruby_proto", + deps = [":common_proto"], +) + +############################################################################## +# Python +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "py_proto_library", +) + +py_proto_library( + name = "common_py_proto", + deps = [":common_proto"], +) diff --git a/third_party/googleapis/google/ads/googleads/v5/common/ad_asset.proto b/third_party/googleapis/google/ads/googleads/v5/common/ad_asset.proto index 41c4532b2..e8e3ce947 100644 --- a/third_party/googleapis/google/ads/googleads/v5/common/ad_asset.proto +++ b/third_party/googleapis/google/ads/googleads/v5/common/ad_asset.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/common/ad_type_infos.proto b/third_party/googleapis/google/ads/googleads/v5/common/ad_type_infos.proto index b19b99f97..f247b32f2 100644 --- a/third_party/googleapis/google/ads/googleads/v5/common/ad_type_infos.proto +++ b/third_party/googleapis/google/ads/googleads/v5/common/ad_type_infos.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -470,8 +470,7 @@ message LegacyResponsiveDisplayAdInfo { // An app ad. message AppAdInfo { - // An optional text asset that, if specified, must always be displayed when - // the ad is served. + // Mandatory ad text. AdTextAsset mandatory_ad_text = 1; // List of text assets for headlines. When the ad serves the headlines will diff --git a/third_party/googleapis/google/ads/googleads/v5/common/asset_types.proto b/third_party/googleapis/google/ads/googleads/v5/common/asset_types.proto index dec3088fa..7018e79ac 100644 --- a/third_party/googleapis/google/ads/googleads/v5/common/asset_types.proto +++ b/third_party/googleapis/google/ads/googleads/v5/common/asset_types.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/common/bidding.proto b/third_party/googleapis/google/ads/googleads/v5/common/bidding.proto index 0080e6a42..a1f964605 100644 --- a/third_party/googleapis/google/ads/googleads/v5/common/bidding.proto +++ b/third_party/googleapis/google/ads/googleads/v5/common/bidding.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -17,7 +17,6 @@ syntax = "proto3"; package google.ads.googleads.v5.common; import "google/ads/googleads/v5/enums/target_impression_share_location.proto"; -import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V5.Common"; @@ -64,14 +63,14 @@ message ManualCpv { } -// An automated bidding strategy that sets bids to help get the most conversions -// for your campaign while spending your budget. +// An automated bidding strategy to help get the most conversions for your +// campaigns while spending your budget. message MaximizeConversions { } -// An automated bidding strategy which tries to maximize conversion value -// given a daily budget. +// An automated bidding strategy to help get the most conversion value for your +// campaigns while spending your budget. message MaximizeConversionValue { // The target return on ad spend (ROAS) option. If set, the bid strategy will // maximize revenue while averaging the target return on ad spend. If the @@ -144,7 +143,10 @@ message TargetSpend { // A TargetSpend bidder will attempt to spend the smaller of this value // or the natural throttling spend amount. // If not specified, the budget is used as the spend target. - optional int64 target_spend_micros = 3; + // This field is deprecated and should no longer be used. See + // https://ads-developers.googleblog.com/2020/05/reminder-about-sunset-creation-of.html + // for details. + optional int64 target_spend_micros = 3 [deprecated = true]; // Maximum bid limit that can be set by the bid strategy. // The limit applies to all keywords managed by the strategy. diff --git a/third_party/googleapis/google/ads/googleads/v5/common/click_location.proto b/third_party/googleapis/google/ads/googleads/v5/common/click_location.proto index f8eeecf47..a76677bab 100644 --- a/third_party/googleapis/google/ads/googleads/v5/common/click_location.proto +++ b/third_party/googleapis/google/ads/googleads/v5/common/click_location.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/common/criteria.proto b/third_party/googleapis/google/ads/googleads/v5/common/criteria.proto index 40087fe03..145566d25 100644 --- a/third_party/googleapis/google/ads/googleads/v5/common/criteria.proto +++ b/third_party/googleapis/google/ads/googleads/v5/common/criteria.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -586,7 +586,8 @@ message LocationGroupInfo { // This is required and must be set in CREATE operations. optional int64 radius = 7; - // Unit of the radius, miles and meters supported currently. + // Unit of the radius. Miles and meters are supported for geo target + // constants. Milli miles and meters are supported for feed item sets. // This is required and must be set in CREATE operations. google.ads.googleads.v5.enums.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnits radius_units = 4; } diff --git a/third_party/googleapis/google/ads/googleads/v5/common/criterion_category_availability.proto b/third_party/googleapis/google/ads/googleads/v5/common/criterion_category_availability.proto index 508299b05..ec7d7f76e 100644 --- a/third_party/googleapis/google/ads/googleads/v5/common/criterion_category_availability.proto +++ b/third_party/googleapis/google/ads/googleads/v5/common/criterion_category_availability.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/common/custom_parameter.proto b/third_party/googleapis/google/ads/googleads/v5/common/custom_parameter.proto index 623b9a9a6..5a9cdf90b 100644 --- a/third_party/googleapis/google/ads/googleads/v5/common/custom_parameter.proto +++ b/third_party/googleapis/google/ads/googleads/v5/common/custom_parameter.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/common/dates.proto b/third_party/googleapis/google/ads/googleads/v5/common/dates.proto index 49350b8c5..8789c55e3 100644 --- a/third_party/googleapis/google/ads/googleads/v5/common/dates.proto +++ b/third_party/googleapis/google/ads/googleads/v5/common/dates.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/common/explorer_auto_optimizer_setting.proto b/third_party/googleapis/google/ads/googleads/v5/common/explorer_auto_optimizer_setting.proto index dfea216ee..9bdfd8721 100644 --- a/third_party/googleapis/google/ads/googleads/v5/common/explorer_auto_optimizer_setting.proto +++ b/third_party/googleapis/google/ads/googleads/v5/common/explorer_auto_optimizer_setting.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/common/extensions.proto b/third_party/googleapis/google/ads/googleads/v5/common/extensions.proto index aebef21f9..6b2b701b8 100644 --- a/third_party/googleapis/google/ads/googleads/v5/common/extensions.proto +++ b/third_party/googleapis/google/ads/googleads/v5/common/extensions.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/common/feed_common.proto b/third_party/googleapis/google/ads/googleads/v5/common/feed_common.proto index 31f574555..f0e6e8663 100644 --- a/third_party/googleapis/google/ads/googleads/v5/common/feed_common.proto +++ b/third_party/googleapis/google/ads/googleads/v5/common/feed_common.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/common/final_app_url.proto b/third_party/googleapis/google/ads/googleads/v5/common/final_app_url.proto index c8dcff5c4..2ffb24787 100644 --- a/third_party/googleapis/google/ads/googleads/v5/common/final_app_url.proto +++ b/third_party/googleapis/google/ads/googleads/v5/common/final_app_url.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/common/frequency_cap.proto b/third_party/googleapis/google/ads/googleads/v5/common/frequency_cap.proto index a89f70b67..2c7fae14e 100644 --- a/third_party/googleapis/google/ads/googleads/v5/common/frequency_cap.proto +++ b/third_party/googleapis/google/ads/googleads/v5/common/frequency_cap.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/common/keyword_plan_common.proto b/third_party/googleapis/google/ads/googleads/v5/common/keyword_plan_common.proto index 612ef2c86..7e821eb44 100644 --- a/third_party/googleapis/google/ads/googleads/v5/common/keyword_plan_common.proto +++ b/third_party/googleapis/google/ads/googleads/v5/common/keyword_plan_common.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/common/matching_function.proto b/third_party/googleapis/google/ads/googleads/v5/common/matching_function.proto index 12847bf20..18c443f6e 100644 --- a/third_party/googleapis/google/ads/googleads/v5/common/matching_function.proto +++ b/third_party/googleapis/google/ads/googleads/v5/common/matching_function.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/common/metrics.proto b/third_party/googleapis/google/ads/googleads/v5/common/metrics.proto index ab4df5a3e..4b8a00f67 100644 --- a/third_party/googleapis/google/ads/googleads/v5/common/metrics.proto +++ b/third_party/googleapis/google/ads/googleads/v5/common/metrics.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/common/offline_user_data.proto b/third_party/googleapis/google/ads/googleads/v5/common/offline_user_data.proto index 4ee001938..927bbdc7c 100644 --- a/third_party/googleapis/google/ads/googleads/v5/common/offline_user_data.proto +++ b/third_party/googleapis/google/ads/googleads/v5/common/offline_user_data.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/common/policy.proto b/third_party/googleapis/google/ads/googleads/v5/common/policy.proto index 4a10c5151..faaa6ac63 100644 --- a/third_party/googleapis/google/ads/googleads/v5/common/policy.proto +++ b/third_party/googleapis/google/ads/googleads/v5/common/policy.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/common/real_time_bidding_setting.proto b/third_party/googleapis/google/ads/googleads/v5/common/real_time_bidding_setting.proto index 97aa2c883..e6d009d4d 100644 --- a/third_party/googleapis/google/ads/googleads/v5/common/real_time_bidding_setting.proto +++ b/third_party/googleapis/google/ads/googleads/v5/common/real_time_bidding_setting.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/common/segments.proto b/third_party/googleapis/google/ads/googleads/v5/common/segments.proto index aa1c63ee1..5d38170cf 100644 --- a/third_party/googleapis/google/ads/googleads/v5/common/segments.proto +++ b/third_party/googleapis/google/ads/googleads/v5/common/segments.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,7 +38,6 @@ import "google/ads/googleads/v5/enums/product_condition.proto"; import "google/ads/googleads/v5/enums/search_engine_results_page_type.proto"; import "google/ads/googleads/v5/enums/search_term_match_type.proto"; import "google/ads/googleads/v5/enums/slot.proto"; -import "google/api/resource.proto"; import "google/api/annotations.proto"; option csharp_namespace = "Google.Ads.GoogleAds.V5.Common"; @@ -319,9 +318,7 @@ message Keyword { // A BudgetCampaignAssociationStatus segment. message BudgetCampaignAssociationStatus { // The campaign resource name. - optional string campaign = 1 [(google.api.resource_reference) = { - type: "googleads.googleapis.com/Campaign" - }]; + optional string campaign = 1; // Budget campaign association status. google.ads.googleads.v5.enums.BudgetCampaignAssociationStatusEnum.BudgetCampaignAssociationStatus status = 2; diff --git a/third_party/googleapis/google/ads/googleads/v5/common/simulation.proto b/third_party/googleapis/google/ads/googleads/v5/common/simulation.proto index 1178e278f..3a45d11e3 100644 --- a/third_party/googleapis/google/ads/googleads/v5/common/simulation.proto +++ b/third_party/googleapis/google/ads/googleads/v5/common/simulation.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/common/tag_snippet.proto b/third_party/googleapis/google/ads/googleads/v5/common/tag_snippet.proto index 2f58b2753..e333a75bc 100644 --- a/third_party/googleapis/google/ads/googleads/v5/common/tag_snippet.proto +++ b/third_party/googleapis/google/ads/googleads/v5/common/tag_snippet.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/common/targeting_setting.proto b/third_party/googleapis/google/ads/googleads/v5/common/targeting_setting.proto index 73c7b6ff7..b107d14e9 100644 --- a/third_party/googleapis/google/ads/googleads/v5/common/targeting_setting.proto +++ b/third_party/googleapis/google/ads/googleads/v5/common/targeting_setting.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/common/text_label.proto b/third_party/googleapis/google/ads/googleads/v5/common/text_label.proto index 0b6dd3630..d12b3e6b8 100644 --- a/third_party/googleapis/google/ads/googleads/v5/common/text_label.proto +++ b/third_party/googleapis/google/ads/googleads/v5/common/text_label.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/common/url_collection.proto b/third_party/googleapis/google/ads/googleads/v5/common/url_collection.proto index bad1bf273..1989322e1 100644 --- a/third_party/googleapis/google/ads/googleads/v5/common/url_collection.proto +++ b/third_party/googleapis/google/ads/googleads/v5/common/url_collection.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/common/user_lists.proto b/third_party/googleapis/google/ads/googleads/v5/common/user_lists.proto index 514c68f1b..27c39fdfc 100644 --- a/third_party/googleapis/google/ads/googleads/v5/common/user_lists.proto +++ b/third_party/googleapis/google/ads/googleads/v5/common/user_lists.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/common/value.proto b/third_party/googleapis/google/ads/googleads/v5/common/value.proto index 302e250a2..532f97779 100644 --- a/third_party/googleapis/google/ads/googleads/v5/common/value.proto +++ b/third_party/googleapis/google/ads/googleads/v5/common/value.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/BUILD.bazel b/third_party/googleapis/google/ads/googleads/v5/enums/BUILD.bazel new file mode 100644 index 000000000..422fc227c --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v5/enums/BUILD.bazel @@ -0,0 +1,89 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") + +# TODO(ohren): Change srcs to use an enumeration of each individual proto +# instead of *.proto globbing once the build file generator supports subpackages. +proto_library( + name = "enums_proto", + srcs = glob(["*.proto"]), + deps = [ + "//google/api:annotations_proto", + ], +) + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_proto_library", +) + +java_proto_library( + name = "enums_java_proto", + deps = [":enums_proto"], +) + +############################################################################## +# PHP +############################################################################## + +# PHP targets are in the parent directory's BUILD.bazel file to facilitate +# aggregating metadata using a single underlying call to protoc. + +############################################################################## +# C# +############################################################################## +load( + "@gapic_generator_csharp//rules_csharp_gapic:csharp_gapic.bzl", + "csharp_proto_library", +) + +csharp_proto_library( + name = "enums_csharp_proto", + deps = [":enums_proto"], +) + +############################################################################## +# Ruby +############################################################################## +load( + "@gapic_generator_ruby//rules_ruby_gapic:ruby_gapic.bzl", + "ruby_proto_library", +) + +ruby_proto_library( + name = "enums_ruby_proto", + deps = [":enums_proto"], +) + +############################################################################## +# Python +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "py_proto_library", +) + +py_proto_library( + name = "enums_py_proto", + deps = [":enums_proto"], +) diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/access_reason.proto b/third_party/googleapis/google/ads/googleads/v5/enums/access_reason.proto index abecef7eb..955649d2c 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/access_reason.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/access_reason.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/access_role.proto b/third_party/googleapis/google/ads/googleads/v5/enums/access_role.proto index 381bbbcee..e65abaa9f 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/access_role.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/access_role.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/account_budget_proposal_status.proto b/third_party/googleapis/google/ads/googleads/v5/enums/account_budget_proposal_status.proto index 945966ff2..3c94f2ee2 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/account_budget_proposal_status.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/account_budget_proposal_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/account_budget_proposal_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/account_budget_proposal_type.proto index 75531a8ec..3d7cd1c56 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/account_budget_proposal_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/account_budget_proposal_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/account_budget_status.proto b/third_party/googleapis/google/ads/googleads/v5/enums/account_budget_status.proto index d8715de2f..e4c84793a 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/account_budget_status.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/account_budget_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/account_link_status.proto b/third_party/googleapis/google/ads/googleads/v5/enums/account_link_status.proto index 7e92f6228..2d509bf7c 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/account_link_status.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/account_link_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -45,11 +45,11 @@ message AccountLinkStatusEnum { REMOVED = 3; // The link to the other account has been requested. A user on the other - // account may now approve the link by setting the status to ENABLED + // account may now approve the link by setting the status to ENABLED. REQUESTED = 4; // This link has been requested by a user on the other account. It may be - // approved by a user on this account by setting the status to ENABLED + // approved by a user on this account by setting the status to ENABLED. PENDING_APPROVAL = 5; } diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/ad_customizer_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v5/enums/ad_customizer_placeholder_field.proto index bc4220457..e8855000d 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/ad_customizer_placeholder_field.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/ad_customizer_placeholder_field.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/ad_group_ad_rotation_mode.proto b/third_party/googleapis/google/ads/googleads/v5/enums/ad_group_ad_rotation_mode.proto index 0e32363e4..b25dd913f 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/ad_group_ad_rotation_mode.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/ad_group_ad_rotation_mode.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/ad_group_ad_status.proto b/third_party/googleapis/google/ads/googleads/v5/enums/ad_group_ad_status.proto index 9a0ce8298..b1f62ae04 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/ad_group_ad_status.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/ad_group_ad_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/ad_group_criterion_approval_status.proto b/third_party/googleapis/google/ads/googleads/v5/enums/ad_group_criterion_approval_status.proto index a27722d46..dbfef87f4 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/ad_group_criterion_approval_status.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/ad_group_criterion_approval_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/ad_group_criterion_status.proto b/third_party/googleapis/google/ads/googleads/v5/enums/ad_group_criterion_status.proto index dd60ce4dc..81d3f735e 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/ad_group_criterion_status.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/ad_group_criterion_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/ad_group_status.proto b/third_party/googleapis/google/ads/googleads/v5/enums/ad_group_status.proto index 2e948cea8..b6e541aa9 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/ad_group_status.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/ad_group_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/ad_group_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/ad_group_type.proto index 3eaf4cb4f..502e6584d 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/ad_group_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/ad_group_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/ad_network_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/ad_network_type.proto index 3ac76ce07..c51af270a 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/ad_network_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/ad_network_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/ad_serving_optimization_status.proto b/third_party/googleapis/google/ads/googleads/v5/enums/ad_serving_optimization_status.proto index 628673757..3e411cc92 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/ad_serving_optimization_status.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/ad_serving_optimization_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/ad_strength.proto b/third_party/googleapis/google/ads/googleads/v5/enums/ad_strength.proto index c55e9073d..f867005b0 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/ad_strength.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/ad_strength.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/ad_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/ad_type.proto index ca022ed16..44e5498db 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/ad_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/ad_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/advertising_channel_sub_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/advertising_channel_sub_type.proto index f27913f25..cd8e4aa47 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/advertising_channel_sub_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/advertising_channel_sub_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/advertising_channel_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/advertising_channel_type.proto index ee6097fc7..89c70edb0 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/advertising_channel_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/advertising_channel_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/affiliate_location_feed_relationship_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/affiliate_location_feed_relationship_type.proto index e438a803b..2cc9445ce 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/affiliate_location_feed_relationship_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/affiliate_location_feed_relationship_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/affiliate_location_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v5/enums/affiliate_location_placeholder_field.proto index 4148c5680..b8e6ac227 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/affiliate_location_placeholder_field.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/affiliate_location_placeholder_field.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/age_range_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/age_range_type.proto index 382cea79d..9172833a1 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/age_range_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/age_range_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/app_campaign_app_store.proto b/third_party/googleapis/google/ads/googleads/v5/enums/app_campaign_app_store.proto index 58e83fc86..1c274d8c3 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/app_campaign_app_store.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/app_campaign_app_store.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/app_campaign_bidding_strategy_goal_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/app_campaign_bidding_strategy_goal_type.proto index 387a78ecd..303d0c84c 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/app_campaign_bidding_strategy_goal_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/app_campaign_bidding_strategy_goal_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/app_payment_model_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/app_payment_model_type.proto index 2758d76f6..cb08cf244 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/app_payment_model_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/app_payment_model_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/app_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v5/enums/app_placeholder_field.proto index b54401055..b27a963a7 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/app_placeholder_field.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/app_placeholder_field.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/app_store.proto b/third_party/googleapis/google/ads/googleads/v5/enums/app_store.proto index 3a0b3c5f1..180ac74fb 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/app_store.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/app_store.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/app_url_operating_system_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/app_url_operating_system_type.proto index 864fab1f4..adc284182 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/app_url_operating_system_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/app_url_operating_system_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/asset_field_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/asset_field_type.proto index 6fbac9016..2ba299b8a 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/asset_field_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/asset_field_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/asset_link_status.proto b/third_party/googleapis/google/ads/googleads/v5/enums/asset_link_status.proto index e4d761896..943a84fdf 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/asset_link_status.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/asset_link_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/asset_performance_label.proto b/third_party/googleapis/google/ads/googleads/v5/enums/asset_performance_label.proto index 0f2ab2cb8..f2fa1757a 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/asset_performance_label.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/asset_performance_label.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/asset_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/asset_type.proto index c82a7bddb..545132350 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/asset_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/asset_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/attribution_model.proto b/third_party/googleapis/google/ads/googleads/v5/enums/attribution_model.proto index 1390e56ba..9dffdc94d 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/attribution_model.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/attribution_model.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/batch_job_status.proto b/third_party/googleapis/google/ads/googleads/v5/enums/batch_job_status.proto index b4562a356..8e79b2cb3 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/batch_job_status.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/batch_job_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/bid_modifier_source.proto b/third_party/googleapis/google/ads/googleads/v5/enums/bid_modifier_source.proto index 5f68c1681..3358ab2b7 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/bid_modifier_source.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/bid_modifier_source.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/bidding_source.proto b/third_party/googleapis/google/ads/googleads/v5/enums/bidding_source.proto index 13ad12223..d7049164c 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/bidding_source.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/bidding_source.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/bidding_strategy_status.proto b/third_party/googleapis/google/ads/googleads/v5/enums/bidding_strategy_status.proto index 8c966c669..66d50283f 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/bidding_strategy_status.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/bidding_strategy_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/bidding_strategy_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/bidding_strategy_type.proto index c3920343a..a55ff4496 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/bidding_strategy_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/bidding_strategy_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/billing_setup_status.proto b/third_party/googleapis/google/ads/googleads/v5/enums/billing_setup_status.proto index 1e66860e6..e6d8b5f3f 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/billing_setup_status.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/billing_setup_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/brand_safety_suitability.proto b/third_party/googleapis/google/ads/googleads/v5/enums/brand_safety_suitability.proto index 1187383cb..12ecdcf2f 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/brand_safety_suitability.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/brand_safety_suitability.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/budget_campaign_association_status.proto b/third_party/googleapis/google/ads/googleads/v5/enums/budget_campaign_association_status.proto index 27e039f43..ea4f16896 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/budget_campaign_association_status.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/budget_campaign_association_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/budget_delivery_method.proto b/third_party/googleapis/google/ads/googleads/v5/enums/budget_delivery_method.proto index d483ab90e..478eba2e8 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/budget_delivery_method.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/budget_delivery_method.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/budget_period.proto b/third_party/googleapis/google/ads/googleads/v5/enums/budget_period.proto index e146061bb..65e64b44b 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/budget_period.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/budget_period.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/budget_status.proto b/third_party/googleapis/google/ads/googleads/v5/enums/budget_status.proto index 864d5b78c..6bf749d55 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/budget_status.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/budget_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/budget_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/budget_type.proto index 95e4e3c0c..fd82a0347 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/budget_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/budget_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/call_conversion_reporting_state.proto b/third_party/googleapis/google/ads/googleads/v5/enums/call_conversion_reporting_state.proto index bb70c1576..b7c154c79 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/call_conversion_reporting_state.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/call_conversion_reporting_state.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/call_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v5/enums/call_placeholder_field.proto index 3730a0248..480d8456b 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/call_placeholder_field.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/call_placeholder_field.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/callout_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v5/enums/callout_placeholder_field.proto index a54ff27a4..59258da22 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/callout_placeholder_field.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/callout_placeholder_field.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/campaign_criterion_status.proto b/third_party/googleapis/google/ads/googleads/v5/enums/campaign_criterion_status.proto index fb0c76c9a..1dd09087b 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/campaign_criterion_status.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/campaign_criterion_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/campaign_draft_status.proto b/third_party/googleapis/google/ads/googleads/v5/enums/campaign_draft_status.proto index ab88645d1..2db4d83af 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/campaign_draft_status.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/campaign_draft_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/campaign_experiment_status.proto b/third_party/googleapis/google/ads/googleads/v5/enums/campaign_experiment_status.proto index e1c3c69cc..4e4f19258 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/campaign_experiment_status.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/campaign_experiment_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/campaign_experiment_traffic_split_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/campaign_experiment_traffic_split_type.proto index 7a1266843..8bfedc523 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/campaign_experiment_traffic_split_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/campaign_experiment_traffic_split_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/campaign_experiment_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/campaign_experiment_type.proto index 7c0d498bc..a6dcf1580 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/campaign_experiment_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/campaign_experiment_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/campaign_serving_status.proto b/third_party/googleapis/google/ads/googleads/v5/enums/campaign_serving_status.proto index dca5dbf3c..83c5a35fc 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/campaign_serving_status.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/campaign_serving_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/campaign_shared_set_status.proto b/third_party/googleapis/google/ads/googleads/v5/enums/campaign_shared_set_status.proto index 571b8b961..f362341a6 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/campaign_shared_set_status.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/campaign_shared_set_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/campaign_status.proto b/third_party/googleapis/google/ads/googleads/v5/enums/campaign_status.proto index 3560d1fec..043cf2508 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/campaign_status.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/campaign_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/change_status_operation.proto b/third_party/googleapis/google/ads/googleads/v5/enums/change_status_operation.proto index 0ab01bb03..73a95df4d 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/change_status_operation.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/change_status_operation.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/change_status_resource_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/change_status_resource_type.proto index 802e610bc..b616aeb93 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/change_status_resource_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/change_status_resource_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/click_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/click_type.proto index 609f35745..b7a5fc3e4 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/click_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/click_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/content_label_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/content_label_type.proto index 17d35fe4e..d54e80e8e 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/content_label_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/content_label_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/conversion_action_category.proto b/third_party/googleapis/google/ads/googleads/v5/enums/conversion_action_category.proto index b790d94e4..46024328e 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/conversion_action_category.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/conversion_action_category.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/conversion_action_counting_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/conversion_action_counting_type.proto index 9d2918b16..f08aa19f1 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/conversion_action_counting_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/conversion_action_counting_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/conversion_action_status.proto b/third_party/googleapis/google/ads/googleads/v5/enums/conversion_action_status.proto index 1c4633f03..2636777f3 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/conversion_action_status.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/conversion_action_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/conversion_action_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/conversion_action_type.proto index d2e71bc64..e1f6228b8 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/conversion_action_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/conversion_action_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/conversion_adjustment_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/conversion_adjustment_type.proto index 7179515cd..41ea1c28e 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/conversion_adjustment_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/conversion_adjustment_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/conversion_attribution_event_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/conversion_attribution_event_type.proto index 6ca74422a..a1ca00746 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/conversion_attribution_event_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/conversion_attribution_event_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/conversion_lag_bucket.proto b/third_party/googleapis/google/ads/googleads/v5/enums/conversion_lag_bucket.proto index b6a723fb7..1ef991d43 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/conversion_lag_bucket.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/conversion_lag_bucket.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/conversion_or_adjustment_lag_bucket.proto b/third_party/googleapis/google/ads/googleads/v5/enums/conversion_or_adjustment_lag_bucket.proto index 902a02e70..f115ee74b 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/conversion_or_adjustment_lag_bucket.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/conversion_or_adjustment_lag_bucket.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/criterion_category_channel_availability_mode.proto b/third_party/googleapis/google/ads/googleads/v5/enums/criterion_category_channel_availability_mode.proto index 5b9cc7533..ff748a2a7 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/criterion_category_channel_availability_mode.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/criterion_category_channel_availability_mode.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/criterion_category_locale_availability_mode.proto b/third_party/googleapis/google/ads/googleads/v5/enums/criterion_category_locale_availability_mode.proto index 04790c346..a274dbb03 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/criterion_category_locale_availability_mode.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/criterion_category_locale_availability_mode.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/criterion_system_serving_status.proto b/third_party/googleapis/google/ads/googleads/v5/enums/criterion_system_serving_status.proto index 25b06a179..3ac21e3d6 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/criterion_system_serving_status.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/criterion_system_serving_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/criterion_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/criterion_type.proto index 8df390fe3..4296169e7 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/criterion_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/criterion_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/custom_interest_member_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/custom_interest_member_type.proto index 0032787df..bfcb8d9c4 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/custom_interest_member_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/custom_interest_member_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/custom_interest_status.proto b/third_party/googleapis/google/ads/googleads/v5/enums/custom_interest_status.proto index f9be6edc1..b1f481440 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/custom_interest_status.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/custom_interest_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/custom_interest_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/custom_interest_type.proto index 1fadc021d..505232ba0 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/custom_interest_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/custom_interest_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/custom_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v5/enums/custom_placeholder_field.proto index b5c3be908..4c3622760 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/custom_placeholder_field.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/custom_placeholder_field.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/customer_match_upload_key_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/customer_match_upload_key_type.proto index eccf48163..ac594f902 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/customer_match_upload_key_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/customer_match_upload_key_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/customer_pay_per_conversion_eligibility_failure_reason.proto b/third_party/googleapis/google/ads/googleads/v5/enums/customer_pay_per_conversion_eligibility_failure_reason.proto index ce88b58a0..a7dd29382 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/customer_pay_per_conversion_eligibility_failure_reason.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/customer_pay_per_conversion_eligibility_failure_reason.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/data_driven_model_status.proto b/third_party/googleapis/google/ads/googleads/v5/enums/data_driven_model_status.proto index ec7576b26..3fe12312d 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/data_driven_model_status.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/data_driven_model_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/day_of_week.proto b/third_party/googleapis/google/ads/googleads/v5/enums/day_of_week.proto index 48e9409fa..410b6ada2 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/day_of_week.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/day_of_week.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/device.proto b/third_party/googleapis/google/ads/googleads/v5/enums/device.proto index 303aa2091..d7d0a9280 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/device.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/device.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/display_ad_format_setting.proto b/third_party/googleapis/google/ads/googleads/v5/enums/display_ad_format_setting.proto index a0747ee6b..a623c0f8d 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/display_ad_format_setting.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/display_ad_format_setting.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/display_upload_product_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/display_upload_product_type.proto index 44269ebe9..9a5a967e9 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/display_upload_product_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/display_upload_product_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/distance_bucket.proto b/third_party/googleapis/google/ads/googleads/v5/enums/distance_bucket.proto index 991f6f0a0..00b319289 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/distance_bucket.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/distance_bucket.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/dsa_page_feed_criterion_field.proto b/third_party/googleapis/google/ads/googleads/v5/enums/dsa_page_feed_criterion_field.proto index 3fbe39ceb..a90350837 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/dsa_page_feed_criterion_field.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/dsa_page_feed_criterion_field.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/education_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v5/enums/education_placeholder_field.proto index 93ac52013..990fe6e76 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/education_placeholder_field.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/education_placeholder_field.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/extension_setting_device.proto b/third_party/googleapis/google/ads/googleads/v5/enums/extension_setting_device.proto index a96fc6688..66650b570 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/extension_setting_device.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/extension_setting_device.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/extension_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/extension_type.proto index 5f1a081e8..54ccaaa8a 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/extension_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/extension_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/external_conversion_source.proto b/third_party/googleapis/google/ads/googleads/v5/enums/external_conversion_source.proto index 8c16a4c34..2bfa2ee51 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/external_conversion_source.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/external_conversion_source.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/feed_attribute_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/feed_attribute_type.proto index c9b1f9243..a159cf982 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/feed_attribute_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/feed_attribute_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/feed_item_quality_approval_status.proto b/third_party/googleapis/google/ads/googleads/v5/enums/feed_item_quality_approval_status.proto index 972396589..a2bf290b6 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/feed_item_quality_approval_status.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/feed_item_quality_approval_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/feed_item_quality_disapproval_reason.proto b/third_party/googleapis/google/ads/googleads/v5/enums/feed_item_quality_disapproval_reason.proto index 5b6111d22..7b6bd5cb0 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/feed_item_quality_disapproval_reason.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/feed_item_quality_disapproval_reason.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/feed_item_status.proto b/third_party/googleapis/google/ads/googleads/v5/enums/feed_item_status.proto index 7434bc60b..6759958c2 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/feed_item_status.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/feed_item_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/feed_item_target_device.proto b/third_party/googleapis/google/ads/googleads/v5/enums/feed_item_target_device.proto index 0257c6a4a..732e78265 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/feed_item_target_device.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/feed_item_target_device.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/feed_item_target_status.proto b/third_party/googleapis/google/ads/googleads/v5/enums/feed_item_target_status.proto index 0895a5035..719fa8484 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/feed_item_target_status.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/feed_item_target_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/feed_item_target_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/feed_item_target_type.proto index 02ab30527..8f260ccb3 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/feed_item_target_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/feed_item_target_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/feed_item_validation_status.proto b/third_party/googleapis/google/ads/googleads/v5/enums/feed_item_validation_status.proto index 08e0f099c..5102a1cf8 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/feed_item_validation_status.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/feed_item_validation_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/feed_link_status.proto b/third_party/googleapis/google/ads/googleads/v5/enums/feed_link_status.proto index 0ec4d47ce..5bc3b89c4 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/feed_link_status.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/feed_link_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/feed_mapping_criterion_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/feed_mapping_criterion_type.proto index d17a61191..7c238be47 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/feed_mapping_criterion_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/feed_mapping_criterion_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/feed_mapping_status.proto b/third_party/googleapis/google/ads/googleads/v5/enums/feed_mapping_status.proto index 749d1f6bb..d084ca03b 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/feed_mapping_status.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/feed_mapping_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/feed_origin.proto b/third_party/googleapis/google/ads/googleads/v5/enums/feed_origin.proto index cfa5a0d39..8e30b4e00 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/feed_origin.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/feed_origin.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/feed_status.proto b/third_party/googleapis/google/ads/googleads/v5/enums/feed_status.proto index 57d5ce0f7..819ae64ba 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/feed_status.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/feed_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/flight_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v5/enums/flight_placeholder_field.proto index 53ffe031d..bd328d8e9 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/flight_placeholder_field.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/flight_placeholder_field.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/frequency_cap_event_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/frequency_cap_event_type.proto index f3e38cf4d..989e6c541 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/frequency_cap_event_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/frequency_cap_event_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/frequency_cap_level.proto b/third_party/googleapis/google/ads/googleads/v5/enums/frequency_cap_level.proto index 4d0af322e..bcd68fc41 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/frequency_cap_level.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/frequency_cap_level.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/frequency_cap_time_unit.proto b/third_party/googleapis/google/ads/googleads/v5/enums/frequency_cap_time_unit.proto index 24cc6393d..dd50faa3f 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/frequency_cap_time_unit.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/frequency_cap_time_unit.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/gender_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/gender_type.proto index cdaca5a4a..01402b4da 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/gender_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/gender_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/geo_target_constant_status.proto b/third_party/googleapis/google/ads/googleads/v5/enums/geo_target_constant_status.proto index fba44a454..ce5095118 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/geo_target_constant_status.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/geo_target_constant_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/geo_targeting_restriction.proto b/third_party/googleapis/google/ads/googleads/v5/enums/geo_targeting_restriction.proto index b5a130a48..f9492c312 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/geo_targeting_restriction.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/geo_targeting_restriction.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/geo_targeting_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/geo_targeting_type.proto index 90535dca7..7953373e7 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/geo_targeting_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/geo_targeting_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/google_ads_field_category.proto b/third_party/googleapis/google/ads/googleads/v5/enums/google_ads_field_category.proto index b3c12dcf6..adea4a30c 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/google_ads_field_category.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/google_ads_field_category.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/google_ads_field_data_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/google_ads_field_data_type.proto index b058157c5..fc176df82 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/google_ads_field_data_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/google_ads_field_data_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/hotel_date_selection_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/hotel_date_selection_type.proto index 9b2f833d3..20fa0dbb7 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/hotel_date_selection_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/hotel_date_selection_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/hotel_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v5/enums/hotel_placeholder_field.proto index 87796e499..2c805da0f 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/hotel_placeholder_field.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/hotel_placeholder_field.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/hotel_price_bucket.proto b/third_party/googleapis/google/ads/googleads/v5/enums/hotel_price_bucket.proto index 73c044d7a..4d1e3a4d5 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/hotel_price_bucket.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/hotel_price_bucket.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/hotel_rate_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/hotel_rate_type.proto index b240a149f..cc5b4f9b7 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/hotel_rate_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/hotel_rate_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/income_range_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/income_range_type.proto index f5029a6e3..b2d81fb19 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/income_range_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/income_range_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/interaction_event_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/interaction_event_type.proto index 6747db5df..ef24d8f53 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/interaction_event_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/interaction_event_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/interaction_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/interaction_type.proto index 79862a640..58dab2023 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/interaction_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/interaction_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/invoice_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/invoice_type.proto index 56cb2cfd0..ead1b391e 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/invoice_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/invoice_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/job_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v5/enums/job_placeholder_field.proto index c2532ea98..fdc6b3e02 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/job_placeholder_field.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/job_placeholder_field.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/keyword_match_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/keyword_match_type.proto index 18d0de3d6..ef7168773 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/keyword_match_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/keyword_match_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/keyword_plan_competition_level.proto b/third_party/googleapis/google/ads/googleads/v5/enums/keyword_plan_competition_level.proto index 6189aeff3..1f7bc8c72 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/keyword_plan_competition_level.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/keyword_plan_competition_level.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/keyword_plan_forecast_interval.proto b/third_party/googleapis/google/ads/googleads/v5/enums/keyword_plan_forecast_interval.proto index 9ed95e829..fb8753886 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/keyword_plan_forecast_interval.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/keyword_plan_forecast_interval.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/keyword_plan_network.proto b/third_party/googleapis/google/ads/googleads/v5/enums/keyword_plan_network.proto index 3b891252b..7f7bcf0e6 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/keyword_plan_network.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/keyword_plan_network.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/label_status.proto b/third_party/googleapis/google/ads/googleads/v5/enums/label_status.proto index 655a4d64c..66f64fa7e 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/label_status.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/label_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/legacy_app_install_ad_app_store.proto b/third_party/googleapis/google/ads/googleads/v5/enums/legacy_app_install_ad_app_store.proto index 35cd3a0c0..ba419fdb0 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/legacy_app_install_ad_app_store.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/legacy_app_install_ad_app_store.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/linked_account_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/linked_account_type.proto index cfef0f9f7..d494c8899 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/linked_account_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/linked_account_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/listing_group_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/listing_group_type.proto index 8cd049d63..98250c555 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/listing_group_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/listing_group_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/local_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v5/enums/local_placeholder_field.proto index da5ee3c1d..08d3dd420 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/local_placeholder_field.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/local_placeholder_field.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/location_extension_targeting_criterion_field.proto b/third_party/googleapis/google/ads/googleads/v5/enums/location_extension_targeting_criterion_field.proto index abe2500f8..76c7e6abd 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/location_extension_targeting_criterion_field.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/location_extension_targeting_criterion_field.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/location_group_radius_units.proto b/third_party/googleapis/google/ads/googleads/v5/enums/location_group_radius_units.proto index 6a06557d1..b36342efa 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/location_group_radius_units.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/location_group_radius_units.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/location_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v5/enums/location_placeholder_field.proto index c846497f7..0d145f040 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/location_placeholder_field.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/location_placeholder_field.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/location_source_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/location_source_type.proto index 9f2e65ec5..77ec91d55 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/location_source_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/location_source_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/manager_link_status.proto b/third_party/googleapis/google/ads/googleads/v5/enums/manager_link_status.proto index e59dd2f72..d3eda7035 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/manager_link_status.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/manager_link_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/matching_function_context_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/matching_function_context_type.proto index 73cca86d8..2eb18164d 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/matching_function_context_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/matching_function_context_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/matching_function_operator.proto b/third_party/googleapis/google/ads/googleads/v5/enums/matching_function_operator.proto index 336b3173c..f3b9497e5 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/matching_function_operator.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/matching_function_operator.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/media_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/media_type.proto index a079ff019..a6687c6e5 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/media_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/media_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/merchant_center_link_status.proto b/third_party/googleapis/google/ads/googleads/v5/enums/merchant_center_link_status.proto index 59274fabc..8243a4bdf 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/merchant_center_link_status.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/merchant_center_link_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/message_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v5/enums/message_placeholder_field.proto index 314a7bf75..b0ec67dd9 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/message_placeholder_field.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/message_placeholder_field.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/mime_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/mime_type.proto index cb24f0e97..c7eff56f8 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/mime_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/mime_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/minute_of_hour.proto b/third_party/googleapis/google/ads/googleads/v5/enums/minute_of_hour.proto index 36cf1b4ae..4f09d3488 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/minute_of_hour.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/minute_of_hour.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/mobile_app_vendor.proto b/third_party/googleapis/google/ads/googleads/v5/enums/mobile_app_vendor.proto index dada51a48..58bc8d5ce 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/mobile_app_vendor.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/mobile_app_vendor.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/mobile_device_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/mobile_device_type.proto index 6fc611178..3759a8e4a 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/mobile_device_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/mobile_device_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/month_of_year.proto b/third_party/googleapis/google/ads/googleads/v5/enums/month_of_year.proto index 4bac1e702..53da42f92 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/month_of_year.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/month_of_year.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/negative_geo_target_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/negative_geo_target_type.proto index 349ab935e..5c9768528 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/negative_geo_target_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/negative_geo_target_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/offline_user_data_job_failure_reason.proto b/third_party/googleapis/google/ads/googleads/v5/enums/offline_user_data_job_failure_reason.proto index f0d27d527..0d21faa7c 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/offline_user_data_job_failure_reason.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/offline_user_data_job_failure_reason.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/offline_user_data_job_status.proto b/third_party/googleapis/google/ads/googleads/v5/enums/offline_user_data_job_status.proto index 74465c495..5c1560565 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/offline_user_data_job_status.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/offline_user_data_job_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/offline_user_data_job_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/offline_user_data_job_type.proto index 150167d27..3a2b224ce 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/offline_user_data_job_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/offline_user_data_job_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/operating_system_version_operator_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/operating_system_version_operator_type.proto index 550855ecb..498aebd95 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/operating_system_version_operator_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/operating_system_version_operator_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/optimization_goal_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/optimization_goal_type.proto index d4f57e802..268c60f43 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/optimization_goal_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/optimization_goal_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/page_one_promoted_strategy_goal.proto b/third_party/googleapis/google/ads/googleads/v5/enums/page_one_promoted_strategy_goal.proto index d7c2d4105..d77a629d8 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/page_one_promoted_strategy_goal.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/page_one_promoted_strategy_goal.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/parental_status_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/parental_status_type.proto index 7eb8876d3..96e222d66 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/parental_status_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/parental_status_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/payment_mode.proto b/third_party/googleapis/google/ads/googleads/v5/enums/payment_mode.proto index bc04bba3a..fdd29d8e8 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/payment_mode.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/payment_mode.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/placeholder_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/placeholder_type.proto index 16fe7af9c..0cc38f73d 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/placeholder_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/placeholder_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/placement_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/placement_type.proto index 0bc0a1564..5e4933bd8 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/placement_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/placement_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/policy_approval_status.proto b/third_party/googleapis/google/ads/googleads/v5/enums/policy_approval_status.proto index 07e4b890f..69d94ec9a 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/policy_approval_status.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/policy_approval_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/policy_review_status.proto b/third_party/googleapis/google/ads/googleads/v5/enums/policy_review_status.proto index 2d517e501..46a95eb9c 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/policy_review_status.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/policy_review_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/policy_topic_entry_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/policy_topic_entry_type.proto index d786efe02..b41775b20 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/policy_topic_entry_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/policy_topic_entry_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/policy_topic_evidence_destination_mismatch_url_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/policy_topic_evidence_destination_mismatch_url_type.proto index 48b53fd88..05e27aa77 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/policy_topic_evidence_destination_mismatch_url_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/policy_topic_evidence_destination_mismatch_url_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/policy_topic_evidence_destination_not_working_device.proto b/third_party/googleapis/google/ads/googleads/v5/enums/policy_topic_evidence_destination_not_working_device.proto index 13f7185f1..25dbba8e2 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/policy_topic_evidence_destination_not_working_device.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/policy_topic_evidence_destination_not_working_device.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/policy_topic_evidence_destination_not_working_dns_error_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/policy_topic_evidence_destination_not_working_dns_error_type.proto index 7607ae65d..648b42892 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/policy_topic_evidence_destination_not_working_dns_error_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/policy_topic_evidence_destination_not_working_dns_error_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/positive_geo_target_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/positive_geo_target_type.proto index 2a03e6aa7..e8da1b144 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/positive_geo_target_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/positive_geo_target_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -45,6 +45,8 @@ message PositiveGeoTargetTypeEnum { // Specifies that an ad is triggered if the user // searches for advertiser's targeted locations. + // This can only be used with Search and standard + // Shopping campaigns. SEARCH_INTEREST = 6; // Specifies that an ad is triggered if the user is in diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/preferred_content_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/preferred_content_type.proto index 7bbca7bdb..17e81f64b 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/preferred_content_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/preferred_content_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/price_extension_price_qualifier.proto b/third_party/googleapis/google/ads/googleads/v5/enums/price_extension_price_qualifier.proto index c2d81938f..13ea0ea22 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/price_extension_price_qualifier.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/price_extension_price_qualifier.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/price_extension_price_unit.proto b/third_party/googleapis/google/ads/googleads/v5/enums/price_extension_price_unit.proto index fdd94efe1..dba463ba0 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/price_extension_price_unit.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/price_extension_price_unit.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/price_extension_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/price_extension_type.proto index 876697609..cdff3f90e 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/price_extension_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/price_extension_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/price_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v5/enums/price_placeholder_field.proto index ab543cac7..775855316 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/price_placeholder_field.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/price_placeholder_field.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/product_bidding_category_level.proto b/third_party/googleapis/google/ads/googleads/v5/enums/product_bidding_category_level.proto index 896447081..6322af74a 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/product_bidding_category_level.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/product_bidding_category_level.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/product_bidding_category_status.proto b/third_party/googleapis/google/ads/googleads/v5/enums/product_bidding_category_status.proto index 7f03d3bb9..7ab033d41 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/product_bidding_category_status.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/product_bidding_category_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/product_channel.proto b/third_party/googleapis/google/ads/googleads/v5/enums/product_channel.proto index 988201745..fc12be979 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/product_channel.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/product_channel.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/product_channel_exclusivity.proto b/third_party/googleapis/google/ads/googleads/v5/enums/product_channel_exclusivity.proto index 7a53b5d82..731f98b81 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/product_channel_exclusivity.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/product_channel_exclusivity.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/product_condition.proto b/third_party/googleapis/google/ads/googleads/v5/enums/product_condition.proto index 6d467995e..6e90b5dd2 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/product_condition.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/product_condition.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/product_custom_attribute_index.proto b/third_party/googleapis/google/ads/googleads/v5/enums/product_custom_attribute_index.proto index e4f919e36..e76f0fef8 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/product_custom_attribute_index.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/product_custom_attribute_index.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/product_type_level.proto b/third_party/googleapis/google/ads/googleads/v5/enums/product_type_level.proto index 37f090413..07ba7390f 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/product_type_level.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/product_type_level.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/promotion_extension_discount_modifier.proto b/third_party/googleapis/google/ads/googleads/v5/enums/promotion_extension_discount_modifier.proto index 7008c532e..c746fd425 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/promotion_extension_discount_modifier.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/promotion_extension_discount_modifier.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/promotion_extension_occasion.proto b/third_party/googleapis/google/ads/googleads/v5/enums/promotion_extension_occasion.proto index 2851ca8d8..75485c248 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/promotion_extension_occasion.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/promotion_extension_occasion.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/promotion_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v5/enums/promotion_placeholder_field.proto index 043885ed6..57479683b 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/promotion_placeholder_field.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/promotion_placeholder_field.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/proximity_radius_units.proto b/third_party/googleapis/google/ads/googleads/v5/enums/proximity_radius_units.proto index d04c824a3..158ae455a 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/proximity_radius_units.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/proximity_radius_units.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/quality_score_bucket.proto b/third_party/googleapis/google/ads/googleads/v5/enums/quality_score_bucket.proto index 00fd751e0..03f4978c6 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/quality_score_bucket.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/quality_score_bucket.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/reach_plan_ad_length.proto b/third_party/googleapis/google/ads/googleads/v5/enums/reach_plan_ad_length.proto index ccede0a00..3c2e443f7 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/reach_plan_ad_length.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/reach_plan_ad_length.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/reach_plan_age_range.proto b/third_party/googleapis/google/ads/googleads/v5/enums/reach_plan_age_range.proto index cb26ba543..871c2f080 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/reach_plan_age_range.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/reach_plan_age_range.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/reach_plan_network.proto b/third_party/googleapis/google/ads/googleads/v5/enums/reach_plan_network.proto index 66a84756e..37144e439 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/reach_plan_network.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/reach_plan_network.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/real_estate_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v5/enums/real_estate_placeholder_field.proto index 39e2ab97e..4d6ecd0c7 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/real_estate_placeholder_field.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/real_estate_placeholder_field.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/recommendation_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/recommendation_type.proto index 74bd1f4f8..88098b802 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/recommendation_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/recommendation_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/response_content_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/response_content_type.proto index e77c4296b..058da8c13 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/response_content_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/response_content_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/search_engine_results_page_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/search_engine_results_page_type.proto index ab596578f..204c89ac2 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/search_engine_results_page_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/search_engine_results_page_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/search_term_match_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/search_term_match_type.proto index f92e8c7e7..9dc6df807 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/search_term_match_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/search_term_match_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/search_term_targeting_status.proto b/third_party/googleapis/google/ads/googleads/v5/enums/search_term_targeting_status.proto index 909bffcec..53414d498 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/search_term_targeting_status.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/search_term_targeting_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/served_asset_field_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/served_asset_field_type.proto index a8dd89d43..f46ab4b39 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/served_asset_field_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/served_asset_field_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/shared_set_status.proto b/third_party/googleapis/google/ads/googleads/v5/enums/shared_set_status.proto index 9d41b864b..059946b89 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/shared_set_status.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/shared_set_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/shared_set_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/shared_set_type.proto index 117a8136d..99d9da119 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/shared_set_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/shared_set_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/simulation_modification_method.proto b/third_party/googleapis/google/ads/googleads/v5/enums/simulation_modification_method.proto index 082ab34a4..f5570c0e3 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/simulation_modification_method.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/simulation_modification_method.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/simulation_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/simulation_type.proto index 304c76413..ab5bc7664 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/simulation_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/simulation_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/sitelink_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v5/enums/sitelink_placeholder_field.proto index 6c8a7ad31..f098536f0 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/sitelink_placeholder_field.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/sitelink_placeholder_field.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/slot.proto b/third_party/googleapis/google/ads/googleads/v5/enums/slot.proto index 14ae9ad40..31263c91a 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/slot.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/slot.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/spending_limit_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/spending_limit_type.proto index 83c9eaca3..9094bc122 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/spending_limit_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/spending_limit_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/structured_snippet_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v5/enums/structured_snippet_placeholder_field.proto index 0df152652..50056060e 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/structured_snippet_placeholder_field.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/structured_snippet_placeholder_field.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/summary_row_setting.proto b/third_party/googleapis/google/ads/googleads/v5/enums/summary_row_setting.proto index 93b47fe8b..724b0af59 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/summary_row_setting.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/summary_row_setting.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/system_managed_entity_source.proto b/third_party/googleapis/google/ads/googleads/v5/enums/system_managed_entity_source.proto index f47f37db6..2fbea072a 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/system_managed_entity_source.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/system_managed_entity_source.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/target_cpa_opt_in_recommendation_goal.proto b/third_party/googleapis/google/ads/googleads/v5/enums/target_cpa_opt_in_recommendation_goal.proto index 69fae01a0..c0599df36 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/target_cpa_opt_in_recommendation_goal.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/target_cpa_opt_in_recommendation_goal.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/target_impression_share_location.proto b/third_party/googleapis/google/ads/googleads/v5/enums/target_impression_share_location.proto index 60fc0e475..15527b166 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/target_impression_share_location.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/target_impression_share_location.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/targeting_dimension.proto b/third_party/googleapis/google/ads/googleads/v5/enums/targeting_dimension.proto index 1a1ddff02..299c0a73c 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/targeting_dimension.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/targeting_dimension.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/time_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/time_type.proto index 77a58ccde..3c7921199 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/time_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/time_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/tracking_code_page_format.proto b/third_party/googleapis/google/ads/googleads/v5/enums/tracking_code_page_format.proto index e6808fec9..a05e7002f 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/tracking_code_page_format.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/tracking_code_page_format.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/tracking_code_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/tracking_code_type.proto index 54ebece87..dcb1cfed0 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/tracking_code_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/tracking_code_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/travel_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v5/enums/travel_placeholder_field.proto index e29a44321..cb71900bb 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/travel_placeholder_field.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/travel_placeholder_field.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/user_interest_taxonomy_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/user_interest_taxonomy_type.proto index 1fd511954..4af67a904 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/user_interest_taxonomy_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/user_interest_taxonomy_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/user_list_access_status.proto b/third_party/googleapis/google/ads/googleads/v5/enums/user_list_access_status.proto index 27411d173..de97b0d86 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/user_list_access_status.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/user_list_access_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/user_list_closing_reason.proto b/third_party/googleapis/google/ads/googleads/v5/enums/user_list_closing_reason.proto index 71edc4030..fb94998f6 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/user_list_closing_reason.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/user_list_closing_reason.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/user_list_combined_rule_operator.proto b/third_party/googleapis/google/ads/googleads/v5/enums/user_list_combined_rule_operator.proto index deff7a87a..0d6fbdbe2 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/user_list_combined_rule_operator.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/user_list_combined_rule_operator.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/user_list_crm_data_source_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/user_list_crm_data_source_type.proto index 0cb2cf896..45c33b542 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/user_list_crm_data_source_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/user_list_crm_data_source_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/user_list_date_rule_item_operator.proto b/third_party/googleapis/google/ads/googleads/v5/enums/user_list_date_rule_item_operator.proto index 385fe89ca..27266ec20 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/user_list_date_rule_item_operator.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/user_list_date_rule_item_operator.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/user_list_logical_rule_operator.proto b/third_party/googleapis/google/ads/googleads/v5/enums/user_list_logical_rule_operator.proto index 983c454f7..1375a9776 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/user_list_logical_rule_operator.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/user_list_logical_rule_operator.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/user_list_membership_status.proto b/third_party/googleapis/google/ads/googleads/v5/enums/user_list_membership_status.proto index 9f99b584b..bcd3084ec 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/user_list_membership_status.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/user_list_membership_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/user_list_number_rule_item_operator.proto b/third_party/googleapis/google/ads/googleads/v5/enums/user_list_number_rule_item_operator.proto index c46f237f4..cb0b23b7a 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/user_list_number_rule_item_operator.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/user_list_number_rule_item_operator.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/user_list_prepopulation_status.proto b/third_party/googleapis/google/ads/googleads/v5/enums/user_list_prepopulation_status.proto index 18a0876e1..6cababc5b 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/user_list_prepopulation_status.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/user_list_prepopulation_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/user_list_rule_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/user_list_rule_type.proto index 23fa91179..b344dcd2c 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/user_list_rule_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/user_list_rule_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/user_list_size_range.proto b/third_party/googleapis/google/ads/googleads/v5/enums/user_list_size_range.proto index 4ac0f077b..2c3644067 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/user_list_size_range.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/user_list_size_range.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/user_list_string_rule_item_operator.proto b/third_party/googleapis/google/ads/googleads/v5/enums/user_list_string_rule_item_operator.proto index af47327ab..530eafacd 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/user_list_string_rule_item_operator.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/user_list_string_rule_item_operator.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/user_list_type.proto b/third_party/googleapis/google/ads/googleads/v5/enums/user_list_type.proto index d39b79de4..3bf4e1668 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/user_list_type.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/user_list_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/vanity_pharma_display_url_mode.proto b/third_party/googleapis/google/ads/googleads/v5/enums/vanity_pharma_display_url_mode.proto index d71886a22..82150cf71 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/vanity_pharma_display_url_mode.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/vanity_pharma_display_url_mode.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/vanity_pharma_text.proto b/third_party/googleapis/google/ads/googleads/v5/enums/vanity_pharma_text.proto index 8f4079b82..138bc468d 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/vanity_pharma_text.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/vanity_pharma_text.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/webpage_condition_operand.proto b/third_party/googleapis/google/ads/googleads/v5/enums/webpage_condition_operand.proto index 434c5411a..5a7cfa9f4 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/webpage_condition_operand.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/webpage_condition_operand.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/enums/webpage_condition_operator.proto b/third_party/googleapis/google/ads/googleads/v5/enums/webpage_condition_operator.proto index e6d6902e4..1dc53fcc2 100644 --- a/third_party/googleapis/google/ads/googleads/v5/enums/webpage_condition_operator.proto +++ b/third_party/googleapis/google/ads/googleads/v5/enums/webpage_condition_operator.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/BUILD.bazel b/third_party/googleapis/google/ads/googleads/v5/errors/BUILD.bazel new file mode 100644 index 000000000..6e99d5ad3 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v5/errors/BUILD.bazel @@ -0,0 +1,94 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") + +# TODO(ohren): Change srcs to use an enumeration of each individual proto +# instead of *.proto globbing once the build file generator supports +# subpackages. +proto_library( + name = "errors_proto", + srcs = glob(["*.proto"]), + deps = [ + "//google/ads/googleads/v5/common:common_proto", + "//google/ads/googleads/v5/enums:enums_proto", + "//google/api:annotations_proto", + "@com_google_protobuf//:duration_proto", + "@com_google_protobuf//:wrappers_proto", + ], +) + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_proto_library", +) + +java_proto_library( + name = "errors_java_proto", + deps = [":errors_proto"], +) + +############################################################################## +# PHP +############################################################################## + +# PHP targets are in the parent directory's BUILD.bazel file to facilitate +# aggregating metadata using a single underlying call to protoc. + +############################################################################## +# C# +############################################################################## +load( + "@gapic_generator_csharp//rules_csharp_gapic:csharp_gapic.bzl", + "csharp_proto_library", +) + +csharp_proto_library( + name = "errors_csharp_proto", + deps = [":errors_proto"], +) + +############################################################################## +# Ruby +############################################################################## +load( + "@gapic_generator_ruby//rules_ruby_gapic:ruby_gapic.bzl", + "ruby_proto_library", +) + +ruby_proto_library( + name = "errors_ruby_proto", + deps = [":errors_proto"], +) + +############################################################################## +# Python +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "py_proto_library", +) + +py_proto_library( + name = "errors_py_proto", + deps = [":errors_proto"], +) diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/access_invitation_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/access_invitation_error.proto index 6bbfe2ff9..a76101311 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/access_invitation_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/access_invitation_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/account_budget_proposal_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/account_budget_proposal_error.proto index 5f877a410..e42924ef1 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/account_budget_proposal_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/account_budget_proposal_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/account_link_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/account_link_error.proto index 308bde9f1..fb11dab01 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/account_link_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/account_link_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/ad_customizer_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/ad_customizer_error.proto index 0eb1952b9..7ec281b66 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/ad_customizer_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/ad_customizer_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/ad_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/ad_error.proto index aa68200fe..361b2913c 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/ad_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/ad_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/ad_group_ad_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/ad_group_ad_error.proto index dc1670330..b9bb0ab12 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/ad_group_ad_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/ad_group_ad_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/ad_group_bid_modifier_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/ad_group_bid_modifier_error.proto index de96f7dcd..0699214c4 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/ad_group_bid_modifier_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/ad_group_bid_modifier_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/ad_group_criterion_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/ad_group_criterion_error.proto index 160416c15..b9176b341 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/ad_group_criterion_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/ad_group_criterion_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/ad_group_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/ad_group_error.proto index 836932b88..afab15b06 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/ad_group_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/ad_group_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/ad_group_feed_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/ad_group_feed_error.proto index f70552978..68d8a5895 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/ad_group_feed_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/ad_group_feed_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/ad_parameter_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/ad_parameter_error.proto index c0ba3da73..1e45b64e4 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/ad_parameter_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/ad_parameter_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/ad_sharing_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/ad_sharing_error.proto index 5535a79f8..fa8faa99c 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/ad_sharing_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/ad_sharing_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/adx_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/adx_error.proto index 1e7acd66c..3d0b641a5 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/adx_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/adx_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/asset_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/asset_error.proto index 3c0d7460d..a280e8a9e 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/asset_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/asset_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/asset_link_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/asset_link_error.proto index b47cfbece..1281923d1 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/asset_link_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/asset_link_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/authentication_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/authentication_error.proto index 66ee4dd8d..402c1ed70 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/authentication_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/authentication_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/authorization_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/authorization_error.proto index 3fb1b3a66..112cb04cc 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/authorization_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/authorization_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/batch_job_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/batch_job_error.proto index f5c90dc7e..d6c4d6abe 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/batch_job_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/batch_job_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/bidding_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/bidding_error.proto index b7a060d0b..07884d9e7 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/bidding_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/bidding_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -57,11 +57,11 @@ message BiddingErrorEnum { // Bidding strategy is not available for the account type. BIDDING_STRATEGY_NOT_AVAILABLE_FOR_ACCOUNT_TYPE = 18; - // Conversion tracking is not enabled in the campaign that has YouTube - // Video Builder transitions. + // Conversion tracking is not enabled in the campaign that has value-based + // bidding transitions. CONVERSION_TRACKING_NOT_ENABLED = 19; - // Not enough conversions tracked for YouTube Video Builder transitions. + // Not enough conversions tracked for value-based bidding transitions. NOT_ENOUGH_CONVERSIONS = 20; // Campaign can not be created with given bidding strategy. It can be diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/bidding_strategy_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/bidding_strategy_error.proto index 0bbc08ac7..4c3f223d8 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/bidding_strategy_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/bidding_strategy_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/billing_setup_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/billing_setup_error.proto index 717871d3b..129f23660 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/billing_setup_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/billing_setup_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/campaign_budget_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/campaign_budget_error.proto index 1a86057f9..c21804858 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/campaign_budget_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/campaign_budget_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/campaign_criterion_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/campaign_criterion_error.proto index 1379c5cdc..f925af74b 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/campaign_criterion_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/campaign_criterion_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/campaign_draft_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/campaign_draft_error.proto index 4d0a9ecbb..d6fae18c5 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/campaign_draft_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/campaign_draft_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/campaign_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/campaign_error.proto index 8cac2fb7e..3d597e14c 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/campaign_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/campaign_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/campaign_experiment_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/campaign_experiment_error.proto index b75efc887..5a4fd3c1f 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/campaign_experiment_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/campaign_experiment_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/campaign_feed_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/campaign_feed_error.proto index d0f1724e5..52a3f0a8e 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/campaign_feed_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/campaign_feed_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/campaign_shared_set_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/campaign_shared_set_error.proto index dd495fed4..e4c88529b 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/campaign_shared_set_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/campaign_shared_set_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/change_status_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/change_status_error.proto index 8136123c7..d580c3091 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/change_status_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/change_status_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/collection_size_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/collection_size_error.proto index 8e4f13ef1..3fe093f65 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/collection_size_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/collection_size_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/context_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/context_error.proto index 98f7abe19..fb6e8b196 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/context_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/context_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/conversion_action_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/conversion_action_error.proto index d54ba60a3..94bfedc5b 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/conversion_action_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/conversion_action_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/conversion_adjustment_upload_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/conversion_adjustment_upload_error.proto index 1141f0726..9e0bd7a80 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/conversion_adjustment_upload_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/conversion_adjustment_upload_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/conversion_upload_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/conversion_upload_error.proto index f36eef87d..ee2f81dbb 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/conversion_upload_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/conversion_upload_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -102,7 +102,7 @@ message ConversionUploadErrorEnum { // conversion action combination. DUPLICATE_ORDER_ID = 16; - // The call occurred too recently. Please try uploading again after 6 hours + // The call occurred too recently. Please try uploading again after 12 hours // have passed since the call occurred. TOO_RECENT_CALL = 17; diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/country_code_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/country_code_error.proto index 76c115d34..d8c605a73 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/country_code_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/country_code_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/criterion_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/criterion_error.proto index b16e12ad4..6c3285a5c 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/criterion_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/criterion_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/currency_code_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/currency_code_error.proto index 960265dca..c7c925cae 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/currency_code_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/currency_code_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/custom_interest_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/custom_interest_error.proto index 200a2d31a..362f35d2d 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/custom_interest_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/custom_interest_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/customer_client_link_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/customer_client_link_error.proto index 2cf903123..d80f44da1 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/customer_client_link_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/customer_client_link_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/customer_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/customer_error.proto index c98875f78..92c5b7ffb 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/customer_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/customer_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/customer_feed_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/customer_feed_error.proto index 1d8453f10..09d90c876 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/customer_feed_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/customer_feed_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/customer_manager_link_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/customer_manager_link_error.proto index 0ecbd43a1..c379b3f45 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/customer_manager_link_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/customer_manager_link_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/database_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/database_error.proto index 440257b4e..e5f4509bf 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/database_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/database_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/date_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/date_error.proto index 4daab45fe..f86866a8a 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/date_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/date_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/date_range_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/date_range_error.proto index 150000524..e188dae21 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/date_range_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/date_range_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/distinct_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/distinct_error.proto index 5abbd986b..fc7d0fafc 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/distinct_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/distinct_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/enum_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/enum_error.proto index 6bdf472a4..b210f275a 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/enum_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/enum_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/errors.proto b/third_party/googleapis/google/ads/googleads/v5/errors/errors.proto index 7eb015459..8353c6612 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/errors.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/errors.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/extension_feed_item_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/extension_feed_item_error.proto index 03b6f61fe..990128284 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/extension_feed_item_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/extension_feed_item_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/extension_setting_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/extension_setting_error.proto index 2a0d609fe..721f66df0 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/extension_setting_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/extension_setting_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/feed_attribute_reference_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/feed_attribute_reference_error.proto index 9922adf5a..6ba1398c9 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/feed_attribute_reference_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/feed_attribute_reference_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/feed_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/feed_error.proto index e4e64cc5d..0ee975c9b 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/feed_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/feed_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/feed_item_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/feed_item_error.proto index 80bc0a8c3..4352b41d6 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/feed_item_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/feed_item_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/feed_item_target_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/feed_item_target_error.proto index 497843b4d..d40b14c77 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/feed_item_target_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/feed_item_target_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/feed_item_validation_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/feed_item_validation_error.proto index 49f6c9e3f..633b9c870 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/feed_item_validation_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/feed_item_validation_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/feed_mapping_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/feed_mapping_error.proto index af83c22e1..e1f5944b8 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/feed_mapping_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/feed_mapping_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/field_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/field_error.proto index f3ed9bc94..c80d57a49 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/field_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/field_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/field_mask_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/field_mask_error.proto index 5cd69a6fb..6375067f4 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/field_mask_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/field_mask_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/function_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/function_error.proto index 1257745f6..0ad8fcf55 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/function_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/function_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/function_parsing_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/function_parsing_error.proto index c47b079c6..3009cb827 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/function_parsing_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/function_parsing_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/geo_target_constant_suggestion_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/geo_target_constant_suggestion_error.proto index 422c06288..f54aa8e5c 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/geo_target_constant_suggestion_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/geo_target_constant_suggestion_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/header_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/header_error.proto index 55fec31db..5dce5472d 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/header_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/header_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/id_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/id_error.proto index 65efc81d1..78a75b502 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/id_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/id_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/image_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/image_error.proto index c17474d3a..f0cdfcf97 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/image_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/image_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/internal_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/internal_error.proto index cdb88a650..4f9cb5d65 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/internal_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/internal_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/invoice_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/invoice_error.proto index cfdc3f4f2..7202997c3 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/invoice_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/invoice_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/keyword_plan_ad_group_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/keyword_plan_ad_group_error.proto index 04d3365ee..ca7d1d7d6 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/keyword_plan_ad_group_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/keyword_plan_ad_group_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/keyword_plan_ad_group_keyword_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/keyword_plan_ad_group_keyword_error.proto index ac1994fac..a5083917c 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/keyword_plan_ad_group_keyword_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/keyword_plan_ad_group_keyword_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/keyword_plan_campaign_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/keyword_plan_campaign_error.proto index 3105ab042..7333aa263 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/keyword_plan_campaign_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/keyword_plan_campaign_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/keyword_plan_campaign_keyword_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/keyword_plan_campaign_keyword_error.proto index 7822e7055..8f1ebc0d1 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/keyword_plan_campaign_keyword_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/keyword_plan_campaign_keyword_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/keyword_plan_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/keyword_plan_error.proto index a77eda111..94aa411e7 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/keyword_plan_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/keyword_plan_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/keyword_plan_idea_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/keyword_plan_idea_error.proto index 466f180fe..5943e8cdd 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/keyword_plan_idea_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/keyword_plan_idea_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/label_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/label_error.proto index 16addb1cb..5479762a4 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/label_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/label_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/language_code_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/language_code_error.proto index 09346acb0..7ddbaad8f 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/language_code_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/language_code_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/list_operation_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/list_operation_error.proto index 509d9abba..a5f958cf2 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/list_operation_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/list_operation_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/manager_link_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/manager_link_error.proto index 1525403bc..e657af890 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/manager_link_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/manager_link_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/media_bundle_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/media_bundle_error.proto index cd8cc901c..2e99af6d7 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/media_bundle_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/media_bundle_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/media_file_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/media_file_error.proto index d351ffc49..05b2a3c3c 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/media_file_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/media_file_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/media_upload_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/media_upload_error.proto index 719485f54..86aa1e68e 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/media_upload_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/media_upload_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/multiplier_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/multiplier_error.proto index 72ea9f5a0..0f43b2576 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/multiplier_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/multiplier_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/mutate_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/mutate_error.proto index b057571a9..35e4739c4 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/mutate_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/mutate_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/new_resource_creation_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/new_resource_creation_error.proto index 9ef845211..d20e57fb8 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/new_resource_creation_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/new_resource_creation_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/not_allowlisted_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/not_allowlisted_error.proto index 1fa37c691..1c51ce54a 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/not_allowlisted_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/not_allowlisted_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/not_empty_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/not_empty_error.proto index c08335184..5a77748de 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/not_empty_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/not_empty_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/null_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/null_error.proto index 5bf997667..e26a5ac0e 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/null_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/null_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/offline_user_data_job_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/offline_user_data_job_error.proto index 9d5f875e9..71691976b 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/offline_user_data_job_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/offline_user_data_job_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -58,7 +58,7 @@ message OfflineUserDataJobErrorEnum { // The mobile ID is malformed. INVALID_MOBILE_ID_FORMAT = 8; - // Request is exceeding the maximum number of user identifiers allowed. + // Maximum number of user identifiers allowed per request is 100,000. TOO_MANY_USER_IDENTIFIERS = 9; // Customer is not on the allow-list for store sales direct data. @@ -109,7 +109,7 @@ message OfflineUserDataJobErrorEnum { // Remove operation is not allowed for store sales direct updates. REMOVE_NOT_SUPPORTED = 23; - // Remove-all is not supported for store sales direct updates. + // Remove-all is not supported for certain offline user data job types. REMOVE_ALL_NOT_SUPPORTED = 24; // The SHA256 encoded value is malformed. @@ -125,7 +125,7 @@ message OfflineUserDataJobErrorEnum { // The custom key specified is not set in the upload. CUSTOM_KEY_NOT_SET = 29; - // The customer has not accpeted the customer data terms in the conversion + // The customer has not accepted the customer data terms in the conversion // settings page. CUSTOMER_NOT_ACCEPTED_CUSTOMER_DATA_TERMS = 30; } diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/operation_access_denied_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/operation_access_denied_error.proto index b0d049386..d5a8421fd 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/operation_access_denied_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/operation_access_denied_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/operator_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/operator_error.proto index a22af9191..b3fe82f36 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/operator_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/operator_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/partial_failure_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/partial_failure_error.proto index 2e6b826b8..48bc3530a 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/partial_failure_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/partial_failure_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/payments_account_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/payments_account_error.proto index 211573c3d..bfbaf20d2 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/payments_account_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/payments_account_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/policy_finding_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/policy_finding_error.proto index 5c76109f3..17e14df1e 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/policy_finding_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/policy_finding_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/policy_validation_parameter_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/policy_validation_parameter_error.proto index fa14145e5..c70d07b1c 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/policy_validation_parameter_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/policy_validation_parameter_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/policy_violation_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/policy_violation_error.proto index 01eb5bb3f..aaddc3d2f 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/policy_violation_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/policy_violation_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/query_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/query_error.proto index 74eeb9dd7..7cc846fea 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/query_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/query_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/quota_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/quota_error.proto index 0b6908617..de43a487d 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/quota_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/quota_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/range_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/range_error.proto index 33c41cead..bd68f0086 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/range_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/range_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/reach_plan_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/reach_plan_error.proto index 584cca6ec..b4e69077a 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/reach_plan_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/reach_plan_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/recommendation_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/recommendation_error.proto index a9f9cb62e..fce3adc3c 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/recommendation_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/recommendation_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/region_code_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/region_code_error.proto index f3c7858a6..1bb3e5c20 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/region_code_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/region_code_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/request_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/request_error.proto index b79ca4351..b6249e2c4 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/request_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/request_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/resource_access_denied_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/resource_access_denied_error.proto index 6a7182675..7c59803c1 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/resource_access_denied_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/resource_access_denied_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/resource_count_limit_exceeded_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/resource_count_limit_exceeded_error.proto index cdf0831d0..e4395e93d 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/resource_count_limit_exceeded_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/resource_count_limit_exceeded_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/setting_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/setting_error.proto index df619d5fd..f81000fdf 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/setting_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/setting_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/shared_criterion_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/shared_criterion_error.proto index 8c4537c10..42bdd9781 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/shared_criterion_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/shared_criterion_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/shared_set_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/shared_set_error.proto index 2f897daf2..cb5760a72 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/shared_set_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/shared_set_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/size_limit_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/size_limit_error.proto index 5ef4285de..0f6d10286 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/size_limit_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/size_limit_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/string_format_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/string_format_error.proto index bf6046553..466f6442a 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/string_format_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/string_format_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/string_length_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/string_length_error.proto index 8f0b81c68..ba4c2452e 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/string_length_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/string_length_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/third_party_app_analytics_link_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/third_party_app_analytics_link_error.proto index 8b1ce5716..cbff09796 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/third_party_app_analytics_link_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/third_party_app_analytics_link_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/time_zone_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/time_zone_error.proto index 0bcf56fcf..d9d565129 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/time_zone_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/time_zone_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/url_field_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/url_field_error.proto index 276675a77..e89118e81 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/url_field_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/url_field_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/user_data_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/user_data_error.proto index 7a9f4fc53..42745cd13 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/user_data_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/user_data_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/user_list_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/user_list_error.proto index 7a561a0b2..8d9d9cb65 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/user_list_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/user_list_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/errors/youtube_video_registration_error.proto b/third_party/googleapis/google/ads/googleads/v5/errors/youtube_video_registration_error.proto index 3080b218a..0d2d70781 100644 --- a/third_party/googleapis/google/ads/googleads/v5/errors/youtube_video_registration_error.proto +++ b/third_party/googleapis/google/ads/googleads/v5/errors/youtube_video_registration_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/googleads_gapic.yaml b/third_party/googleapis/google/ads/googleads/v5/googleads_gapic.yaml index 972f190e3..99b6e7d4d 100644 --- a/third_party/googleapis/google/ads/googleads/v5/googleads_gapic.yaml +++ b/third_party/googleapis/google/ads/googleads/v5/googleads_gapic.yaml @@ -10,7 +10,7 @@ language_settings: nodejs: package_name: v5.services php: - package_name: Google\Ads\Googleads\V5\Services + package_name: Google\Ads\GoogleAds\V5\Services python: package_name: google.ads.googleads_v5.gapic.services ruby: diff --git a/third_party/googleapis/google/ads/googleads/v5/googleads_grpc_service_config.json b/third_party/googleapis/google/ads/googleads/v5/googleads_grpc_service_config.json index 02f1a5ca4..973586616 100644 --- a/third_party/googleapis/google/ads/googleads/v5/googleads_grpc_service_config.json +++ b/third_party/googleapis/google/ads/googleads/v5/googleads_grpc_service_config.json @@ -352,15 +352,6 @@ "DEADLINE_EXCEEDED" ] } - }, - { - "name": [ - { - "service": "google.ads.googleads.v5.services.GoogleAdsService", - "method": "SearchStream" - } - ], - "timeout": "3600s" } ] } diff --git a/third_party/googleapis/google/ads/googleads/v5/googleads_v5.yaml b/third_party/googleapis/google/ads/googleads/v5/googleads_v5.yaml index 0b5236351..ec000d9ca 100644 --- a/third_party/googleapis/google/ads/googleads/v5/googleads_v5.yaml +++ b/third_party/googleapis/google/ads/googleads/v5/googleads_v5.yaml @@ -469,3 +469,677 @@ backend: deadline: 60.0 - selector: 'google.longrunning.Operations.*' deadline: 60.0 + +http: + rules: + - selector: google.longrunning.Operations.CancelOperation + post: '/v5/{name=customers/*/operations/*}:cancel' + body: '*' + - selector: google.longrunning.Operations.DeleteOperation + delete: '/v5/{name=customers/*/operations/*}' + - selector: google.longrunning.Operations.GetOperation + get: '/v5/{name=customers/*/operations/*}' + - selector: google.longrunning.Operations.ListOperations + get: '/v5/{name=customers/*/operations}' + - selector: google.longrunning.Operations.WaitOperation + post: '/v5/{name=customers/*/operations/*}:wait' + body: '*' + +authentication: + rules: + - selector: google.ads.googleads.v5.services.AccountBudgetProposalService.GetAccountBudgetProposal + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.AccountBudgetProposalService.MutateAccountBudgetProposal + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.AccountBudgetService.GetAccountBudget + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: 'google.ads.googleads.v5.services.AccountLinkService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.AdGroupAdAssetViewService.GetAdGroupAdAssetView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.AdGroupAdLabelService.GetAdGroupAdLabel + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.AdGroupAdLabelService.MutateAdGroupAdLabels + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.AdGroupAdService.GetAdGroupAd + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.AdGroupAdService.MutateAdGroupAds + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.AdGroupAudienceViewService.GetAdGroupAudienceView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.AdGroupBidModifierService.GetAdGroupBidModifier + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.AdGroupBidModifierService.MutateAdGroupBidModifiers + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.AdGroupCriterionLabelService.GetAdGroupCriterionLabel + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.AdGroupCriterionLabelService.MutateAdGroupCriterionLabels + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.AdGroupCriterionService.GetAdGroupCriterion + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.AdGroupCriterionService.MutateAdGroupCriteria + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.AdGroupCriterionSimulationService.GetAdGroupCriterionSimulation + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.AdGroupExtensionSettingService.GetAdGroupExtensionSetting + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.AdGroupExtensionSettingService.MutateAdGroupExtensionSettings + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.AdGroupFeedService.GetAdGroupFeed + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.AdGroupFeedService.MutateAdGroupFeeds + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.AdGroupLabelService.GetAdGroupLabel + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.AdGroupLabelService.MutateAdGroupLabels + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.AdGroupService.GetAdGroup + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.AdGroupService.MutateAdGroups + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.AdGroupSimulationService.GetAdGroupSimulation + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.AdParameterService.GetAdParameter + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.AdParameterService.MutateAdParameters + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.AdScheduleViewService.GetAdScheduleView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.AdService.GetAd + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.AdService.MutateAds + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.AgeRangeViewService.GetAgeRangeView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.AssetService.GetAsset + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.AssetService.MutateAssets + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: 'google.ads.googleads.v5.services.BatchJobService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.BiddingStrategyService.GetBiddingStrategy + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.BiddingStrategyService.MutateBiddingStrategies + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.BillingSetupService.GetBillingSetup + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.BillingSetupService.MutateBillingSetup + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.CampaignAssetService.GetCampaignAsset + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.CampaignAssetService.MutateCampaignAssets + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.CampaignAudienceViewService.GetCampaignAudienceView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.CampaignBidModifierService.GetCampaignBidModifier + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.CampaignBidModifierService.MutateCampaignBidModifiers + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.CampaignBudgetService.GetCampaignBudget + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.CampaignBudgetService.MutateCampaignBudgets + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.CampaignCriterionService.GetCampaignCriterion + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.CampaignCriterionService.MutateCampaignCriteria + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.CampaignCriterionSimulationService.GetCampaignCriterionSimulation + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: 'google.ads.googleads.v5.services.CampaignDraftService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: 'google.ads.googleads.v5.services.CampaignExperimentService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.CampaignExtensionSettingService.GetCampaignExtensionSetting + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.CampaignExtensionSettingService.MutateCampaignExtensionSettings + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.CampaignFeedService.GetCampaignFeed + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.CampaignFeedService.MutateCampaignFeeds + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.CampaignLabelService.GetCampaignLabel + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.CampaignLabelService.MutateCampaignLabels + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.CampaignService.GetCampaign + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.CampaignService.MutateCampaigns + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.CampaignSharedSetService.GetCampaignSharedSet + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.CampaignSharedSetService.MutateCampaignSharedSets + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.CarrierConstantService.GetCarrierConstant + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.ChangeStatusService.GetChangeStatus + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.ClickViewService.GetClickView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.ConversionActionService.GetConversionAction + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.ConversionActionService.MutateConversionActions + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.ConversionAdjustmentUploadService.UploadConversionAdjustments + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.ConversionUploadService.UploadCallConversions + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.ConversionUploadService.UploadClickConversions + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.CurrencyConstantService.GetCurrencyConstant + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.CustomInterestService.GetCustomInterest + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.CustomInterestService.MutateCustomInterests + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.CustomerClientLinkService.GetCustomerClientLink + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.CustomerClientLinkService.MutateCustomerClientLink + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.CustomerClientService.GetCustomerClient + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.CustomerExtensionSettingService.GetCustomerExtensionSetting + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.CustomerExtensionSettingService.MutateCustomerExtensionSettings + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.CustomerFeedService.GetCustomerFeed + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.CustomerFeedService.MutateCustomerFeeds + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.CustomerLabelService.GetCustomerLabel + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.CustomerLabelService.MutateCustomerLabels + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: 'google.ads.googleads.v5.services.CustomerManagerLinkService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.CustomerNegativeCriterionService.GetCustomerNegativeCriterion + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.CustomerNegativeCriterionService.MutateCustomerNegativeCriteria + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: 'google.ads.googleads.v5.services.CustomerService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.DetailPlacementViewService.GetDetailPlacementView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.DisplayKeywordViewService.GetDisplayKeywordView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.DistanceViewService.GetDistanceView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.DomainCategoryService.GetDomainCategory + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.DynamicSearchAdsSearchTermViewService.GetDynamicSearchAdsSearchTermView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.ExpandedLandingPageViewService.GetExpandedLandingPageView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.ExtensionFeedItemService.GetExtensionFeedItem + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.ExtensionFeedItemService.MutateExtensionFeedItems + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.FeedItemService.GetFeedItem + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.FeedItemService.MutateFeedItems + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.FeedItemTargetService.GetFeedItemTarget + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.FeedItemTargetService.MutateFeedItemTargets + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.FeedMappingService.GetFeedMapping + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.FeedMappingService.MutateFeedMappings + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.FeedPlaceholderViewService.GetFeedPlaceholderView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.FeedService.GetFeed + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.FeedService.MutateFeeds + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.GenderViewService.GetGenderView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.GeoTargetConstantService.GetGeoTargetConstant + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.GeoTargetConstantService.SuggestGeoTargetConstants + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.GeographicViewService.GetGeographicView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.GoogleAdsFieldService.GetGoogleAdsField + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.GoogleAdsFieldService.SearchGoogleAdsFields + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: 'google.ads.googleads.v5.services.GoogleAdsService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.GroupPlacementViewService.GetGroupPlacementView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.HotelGroupViewService.GetHotelGroupView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.HotelPerformanceViewService.GetHotelPerformanceView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.IncomeRangeViewService.GetIncomeRangeView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.InvoiceService.ListInvoices + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.KeywordPlanAdGroupKeywordService.GetKeywordPlanAdGroupKeyword + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.KeywordPlanAdGroupKeywordService.MutateKeywordPlanAdGroupKeywords + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.KeywordPlanAdGroupService.GetKeywordPlanAdGroup + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.KeywordPlanAdGroupService.MutateKeywordPlanAdGroups + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.KeywordPlanCampaignKeywordService.GetKeywordPlanCampaignKeyword + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.KeywordPlanCampaignKeywordService.MutateKeywordPlanCampaignKeywords + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.KeywordPlanCampaignService.GetKeywordPlanCampaign + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.KeywordPlanCampaignService.MutateKeywordPlanCampaigns + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.KeywordPlanIdeaService.GenerateKeywordIdeas + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: 'google.ads.googleads.v5.services.KeywordPlanService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.KeywordViewService.GetKeywordView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.LabelService.GetLabel + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.LabelService.MutateLabels + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.LandingPageViewService.GetLandingPageView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.LanguageConstantService.GetLanguageConstant + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.LocationViewService.GetLocationView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.ManagedPlacementViewService.GetManagedPlacementView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.MediaFileService.GetMediaFile + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.MediaFileService.MutateMediaFiles + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: 'google.ads.googleads.v5.services.MerchantCenterLinkService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.MobileAppCategoryConstantService.GetMobileAppCategoryConstant + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.MobileDeviceConstantService.GetMobileDeviceConstant + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: 'google.ads.googleads.v5.services.OfflineUserDataJobService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.OperatingSystemVersionConstantService.GetOperatingSystemVersionConstant + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.PaidOrganicSearchTermViewService.GetPaidOrganicSearchTermView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.ParentalStatusViewService.GetParentalStatusView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.PaymentsAccountService.ListPaymentsAccounts + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.ProductBiddingCategoryConstantService.GetProductBiddingCategoryConstant + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.ProductGroupViewService.GetProductGroupView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: 'google.ads.googleads.v5.services.ReachPlanService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: 'google.ads.googleads.v5.services.RecommendationService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.RemarketingActionService.GetRemarketingAction + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.RemarketingActionService.MutateRemarketingActions + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.SearchTermViewService.GetSearchTermView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.SharedCriterionService.GetSharedCriterion + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.SharedCriterionService.MutateSharedCriteria + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.SharedSetService.GetSharedSet + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.SharedSetService.MutateSharedSets + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.ShoppingPerformanceViewService.GetShoppingPerformanceView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.ThirdPartyAppAnalyticsLinkService.GetThirdPartyAppAnalyticsLink + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.ThirdPartyAppAnalyticsLinkService.RegenerateShareableLinkId + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.TopicConstantService.GetTopicConstant + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.TopicViewService.GetTopicView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.UserDataService.UploadUserData + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.UserInterestService.GetUserInterest + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.UserListService.GetUserList + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.UserListService.MutateUserLists + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.UserLocationViewService.GetUserLocationView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v5.services.VideoService.GetVideo + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: 'google.longrunning.Operations.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/BUILD.bazel b/third_party/googleapis/google/ads/googleads/v5/resources/BUILD.bazel new file mode 100644 index 000000000..4894d7940 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v5/resources/BUILD.bazel @@ -0,0 +1,97 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") + +# TODO(ohren): Change srcs to use an enumeration of each individual proto +# instead of *.proto globbing once the build file generator supports +# subpackages. +proto_library( + name = "resources_proto", + srcs = glob(["*.proto"]), + deps = [ + "//google/ads/googleads/v5/common:common_proto", + "//google/ads/googleads/v5/enums:enums_proto", + "//google/ads/googleads/v5/errors:errors_proto", + "//google/api:annotations_proto", + "//google/api:field_behavior_proto", + "//google/api:resource_proto", + "@com_google_protobuf//:field_mask_proto", + "@com_google_protobuf//:wrappers_proto", + ], +) + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_proto_library", +) + +java_proto_library( + name = "resources_java_proto", + deps = [":resources_proto"], +) + +############################################################################## +# PHP +############################################################################## + +# PHP targets are in the parent directory's BUILD.bazel file to facilitate +# aggregating metadata using a single underlying call to protoc. + +############################################################################## +# C# +############################################################################## +load( + "@gapic_generator_csharp//rules_csharp_gapic:csharp_gapic.bzl", + "csharp_proto_library", +) + +csharp_proto_library( + name = "resources_csharp_proto", + deps = [":resources_proto"], +) + +############################################################################## +# Ruby +############################################################################## +load( + "@gapic_generator_ruby//rules_ruby_gapic:ruby_gapic.bzl", + "ruby_proto_library", +) + +ruby_proto_library( + name = "resources_ruby_proto", + deps = [":resources_proto"], +) + +############################################################################## +# Python +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "py_proto_library", +) + +py_proto_library( + name = "resources_py_proto", + deps = [":resources_proto"], +) diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/account_budget.proto b/third_party/googleapis/google/ads/googleads/v5/resources/account_budget.proto index a1fad2756..41e91ff50 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/account_budget.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/account_budget.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/account_budget_proposal.proto b/third_party/googleapis/google/ads/googleads/v5/resources/account_budget_proposal.proto index 56e72d633..72d1dcfea 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/account_budget_proposal.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/account_budget_proposal.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/account_link.proto b/third_party/googleapis/google/ads/googleads/v5/resources/account_link.proto index a2026a98e..5b8ee6663 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/account_link.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/account_link.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/ad.proto b/third_party/googleapis/google/ads/googleads/v5/resources/ad.proto index de11a6e94..a2ea92300 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/ad.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/ad.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/ad_group.proto b/third_party/googleapis/google/ads/googleads/v5/resources/ad_group.proto index a2092f72e..b61e3e01c 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/ad_group.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/ad_group.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_ad.proto b/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_ad.proto index 8c93d4efa..929e705dc 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_ad.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_ad.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_ad_asset_view.proto b/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_ad_asset_view.proto index 46a7c63e8..5e6df2142 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_ad_asset_view.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_ad_asset_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,6 +38,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Resources"; // Proto file describing the ad group ad asset view resource. // A link between an AdGroupAd and an Asset. +// Currently we only support AdGroupAdAssetView for AppAds. message AdGroupAdAssetView { option (google.api.resource) = { type: "googleads.googleapis.com/AdGroupAdAssetView" diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_ad_label.proto b/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_ad_label.proto index 5dab6f655..8099a669e 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_ad_label.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_ad_label.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_audience_view.proto b/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_audience_view.proto index f3d4cf1a6..d434df464 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_audience_view.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_audience_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_bid_modifier.proto b/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_bid_modifier.proto index 7a4b299ce..e48fce29d 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_bid_modifier.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_bid_modifier.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_criterion.proto b/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_criterion.proto index dd812d0eb..f372d67bf 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_criterion.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_criterion.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_criterion_label.proto b/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_criterion_label.proto index 72b1be32d..730509fcf 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_criterion_label.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_criterion_label.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_criterion_simulation.proto b/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_criterion_simulation.proto index 191fa9f8b..5c369e041 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_criterion_simulation.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_criterion_simulation.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,11 +36,14 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Resources"; // An ad group criterion simulation. Supported combinations of advertising // channel type, criterion type, simulation type, and simulation modification -// method are detailed below respectively. +// method are detailed below respectively. Hotel AdGroupCriterion simulation +// operations starting in V5. // // 1. DISPLAY - KEYWORD - CPC_BID - UNIFORM // 2. SEARCH - KEYWORD - CPC_BID - UNIFORM // 3. SHOPPING - LISTING_GROUP - CPC_BID - UNIFORM +// 4. HOTEL - LISTING_GROUP - CPC_BID - UNIFORM +// 5. HOTEL - LISTING_GROUP - PERCENT_CPC_BID - UNIFORM message AdGroupCriterionSimulation { option (google.api.resource) = { type: "googleads.googleapis.com/AdGroupCriterionSimulation" diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_extension_setting.proto b/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_extension_setting.proto index 0a9f48ec4..8c406e005 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_extension_setting.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_extension_setting.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_feed.proto b/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_feed.proto index 62552abe0..af2b8491c 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_feed.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_feed.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_label.proto b/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_label.proto index d47fef017..19166e075 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_label.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_label.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_simulation.proto b/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_simulation.proto index ca0a43ca0..bdf9efcbb 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_simulation.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/ad_group_simulation.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/ad_parameter.proto b/third_party/googleapis/google/ads/googleads/v5/resources/ad_parameter.proto index 52ca45d3e..4f21c50ff 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/ad_parameter.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/ad_parameter.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/ad_schedule_view.proto b/third_party/googleapis/google/ads/googleads/v5/resources/ad_schedule_view.proto index f357ca779..56052e1f9 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/ad_schedule_view.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/ad_schedule_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/age_range_view.proto b/third_party/googleapis/google/ads/googleads/v5/resources/age_range_view.proto index 95a3a07f1..5035ae72e 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/age_range_view.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/age_range_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/asset.proto b/third_party/googleapis/google/ads/googleads/v5/resources/asset.proto index 3f2a5a189..fae2e776f 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/asset.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/asset.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/batch_job.proto b/third_party/googleapis/google/ads/googleads/v5/resources/batch_job.proto index eaa02592b..a9522df9a 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/batch_job.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/batch_job.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/bidding_strategy.proto b/third_party/googleapis/google/ads/googleads/v5/resources/bidding_strategy.proto index 314f098b4..e3cbdc783 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/bidding_strategy.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/bidding_strategy.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/billing_setup.proto b/third_party/googleapis/google/ads/googleads/v5/resources/billing_setup.proto index a034375b6..9773d1df9 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/billing_setup.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/billing_setup.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/campaign.proto b/third_party/googleapis/google/ads/googleads/v5/resources/campaign.proto index 6aebe7021..24658336f 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/campaign.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/campaign.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -84,14 +84,23 @@ message Campaign { optional int64 hotel_center_id = 2 [(google.api.field_behavior) = IMMUTABLE]; } + // Selective optimization setting for this campaign, which includes a set of + // conversion actions to optimize this campaign towards. + message SelectiveOptimization { + // The selected set of conversion actions for optimizing this campaign. + repeated string conversion_actions = 2 [(google.api.resource_reference) = { + type: "googleads.googleapis.com/ConversionAction" + }]; + } + // The setting for controlling Dynamic Search Ads (DSA). message DynamicSearchAdsSetting { - // The Internet domain name that this setting represents, e.g., "google.com" + // Required. The Internet domain name that this setting represents, e.g., "google.com" // or "www.google.com". - optional string domain_name = 6; + string domain_name = 6 [(google.api.field_behavior) = REQUIRED]; - // The language code specifying the language of the domain, e.g., "en". - optional string language_code = 7; + // Required. The language code specifying the language of the domain, e.g., "en". + string language_code = 7 [(google.api.field_behavior) = REQUIRED]; // Whether the campaign uses advertiser supplied URLs exclusively. optional bool use_supplied_urls_only = 8; @@ -102,28 +111,6 @@ message Campaign { }]; } - // Represents a collection of settings related to ads geotargeting. - message GeoTargetTypeSetting { - // The setting used for positive geotargeting in this particular campaign. - google.ads.googleads.v5.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType positive_geo_target_type = 1; - - // The setting used for negative geotargeting in this particular campaign. - google.ads.googleads.v5.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType negative_geo_target_type = 2; - } - - // Campaign-level settings for App Campaigns. - message AppCampaignSetting { - // Represents the goal which the bidding strategy of this app campaign - // should optimize towards. - google.ads.googleads.v5.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType bidding_strategy_goal_type = 1; - - // Immutable. A string that uniquely identifies a mobile application. - optional string app_id = 4 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. The application store that distributes this specific app. - google.ads.googleads.v5.enums.AppCampaignAppStoreEnum.AppCampaignAppStore app_store = 3 [(google.api.field_behavior) = IMMUTABLE]; - } - // The setting for Shopping campaigns. Defines the universe of products that // can be advertised by the campaign, and how this campaign interacts with // other Shopping campaigns. @@ -157,6 +144,21 @@ message Campaign { optional string tracking_url = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } + // Campaign setting for local campaigns. + message LocalCampaignSetting { + // The location source type for this local campaign. + google.ads.googleads.v5.enums.LocationSourceTypeEnum.LocationSourceType location_source_type = 1; + } + + // Represents a collection of settings related to ads geotargeting. + message GeoTargetTypeSetting { + // The setting used for positive geotargeting in this particular campaign. + google.ads.googleads.v5.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType positive_geo_target_type = 1; + + // The setting used for negative geotargeting in this particular campaign. + google.ads.googleads.v5.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType negative_geo_target_type = 2; + } + // Optimization goal setting for this campaign, which includes a set of // optimization goal types. message OptimizationGoalSetting { @@ -164,10 +166,17 @@ message Campaign { repeated google.ads.googleads.v5.enums.OptimizationGoalTypeEnum.OptimizationGoalType optimization_goal_types = 1; } - // Campaign setting for local campaigns. - message LocalCampaignSetting { - // The location source type for this local campaign. - google.ads.googleads.v5.enums.LocationSourceTypeEnum.LocationSourceType location_source_type = 1; + // Campaign-level settings for App Campaigns. + message AppCampaignSetting { + // Represents the goal which the bidding strategy of this app campaign + // should optimize towards. + google.ads.googleads.v5.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType bidding_strategy_goal_type = 1; + + // Immutable. A string that uniquely identifies a mobile application. + optional string app_id = 4 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. The application store that distributes this specific app. + google.ads.googleads.v5.enums.AppCampaignAppStoreEnum.AppCampaignAppStore app_store = 3 [(google.api.field_behavior) = IMMUTABLE]; } // Describes how unbranded pharma ads will be displayed. @@ -180,15 +189,6 @@ message Campaign { google.ads.googleads.v5.enums.VanityPharmaTextEnum.VanityPharmaText vanity_pharma_text = 2; } - // Selective optimization setting for this campaign, which includes a set of - // conversion actions to optimize this campaign towards. - message SelectiveOptimization { - // The selected set of conversion actions for optimizing this campaign. - repeated string conversion_actions = 2 [(google.api.resource_reference) = { - type: "googleads.googleapis.com/ConversionAction" - }]; - } - // Immutable. The resource name of the campaign. // Campaign resource names have the form: // @@ -314,7 +314,7 @@ message Campaign { // The date when campaign started. optional string start_date = 63; - // The date when campaign ended. + // The last day of the campaign. optional string end_date = 64; // Suffix used to append query parameters to landing pages that are served @@ -348,7 +348,8 @@ message Campaign { // // Optimization score is an estimate of how well a campaign is set to perform. // It ranges from 0% (0.0) to 100% (1.0), with 100% indicating that the - // campaign is performing at full potential. + // campaign is performing at full potential. This field is null for unscored + // campaigns. // // See "About optimization score" at // https://support.google.com/google-ads/answer/9061546. @@ -383,7 +384,7 @@ message Campaign { google.ads.googleads.v5.common.ManualCpv manual_cpv = 37 [(google.api.field_behavior) = OUTPUT_ONLY]; // Standard Maximize Conversions bidding strategy that automatically - // maximizes number of conversions given a daily budget. + // maximizes number of conversions while spending your budget. google.ads.googleads.v5.common.MaximizeConversions maximize_conversions = 30; // Standard Maximize Conversion Value bidding strategy that automatically diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/campaign_asset.proto b/third_party/googleapis/google/ads/googleads/v5/resources/campaign_asset.proto index 0eea4d77d..61edb7c73 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/campaign_asset.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/campaign_asset.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/campaign_audience_view.proto b/third_party/googleapis/google/ads/googleads/v5/resources/campaign_audience_view.proto index f1a00986c..74e0d39b8 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/campaign_audience_view.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/campaign_audience_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/campaign_bid_modifier.proto b/third_party/googleapis/google/ads/googleads/v5/resources/campaign_bid_modifier.proto index bbad8b5e4..144ca6762 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/campaign_bid_modifier.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/campaign_bid_modifier.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/campaign_budget.proto b/third_party/googleapis/google/ads/googleads/v5/resources/campaign_budget.proto index 43eef4acd..0b7b80e83 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/campaign_budget.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/campaign_budget.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -45,7 +45,7 @@ message CampaignBudget { // Immutable. The resource name of the campaign budget. // Campaign budget resource names have the form: // - // `customers/{customer_id}/campaignBudgets/{budget_id}` + // `customers/{customer_id}/campaignBudgets/{campaign_budget_id}` string resource_name = 1 [ (google.api.field_behavior) = IMMUTABLE, (google.api.resource_reference) = { diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/campaign_criterion.proto b/third_party/googleapis/google/ads/googleads/v5/resources/campaign_criterion.proto index 1acb735e5..b5daa6ea4 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/campaign_criterion.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/campaign_criterion.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/campaign_criterion_simulation.proto b/third_party/googleapis/google/ads/googleads/v5/resources/campaign_criterion_simulation.proto index 426f29459..caec4dde7 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/campaign_criterion_simulation.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/campaign_criterion_simulation.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/campaign_draft.proto b/third_party/googleapis/google/ads/googleads/v5/resources/campaign_draft.proto index 5805b446c..1152da745 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/campaign_draft.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/campaign_draft.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/campaign_experiment.proto b/third_party/googleapis/google/ads/googleads/v5/resources/campaign_experiment.proto index b51f86c8d..6a31f8898 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/campaign_experiment.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/campaign_experiment.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/campaign_extension_setting.proto b/third_party/googleapis/google/ads/googleads/v5/resources/campaign_extension_setting.proto index e117d89ab..73ce67494 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/campaign_extension_setting.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/campaign_extension_setting.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/campaign_feed.proto b/third_party/googleapis/google/ads/googleads/v5/resources/campaign_feed.proto index 6a8984533..1ef090cd4 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/campaign_feed.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/campaign_feed.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/campaign_label.proto b/third_party/googleapis/google/ads/googleads/v5/resources/campaign_label.proto index 3a5d95099..1ad9ffe29 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/campaign_label.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/campaign_label.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/campaign_shared_set.proto b/third_party/googleapis/google/ads/googleads/v5/resources/campaign_shared_set.proto index 2c1eaaf14..3495f2980 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/campaign_shared_set.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/campaign_shared_set.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/carrier_constant.proto b/third_party/googleapis/google/ads/googleads/v5/resources/carrier_constant.proto index 580564aba..4a1150909 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/carrier_constant.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/carrier_constant.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/change_status.proto b/third_party/googleapis/google/ads/googleads/v5/resources/change_status.proto index 8ac523757..aa6dd03b1 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/change_status.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/change_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -39,7 +39,8 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Resources"; // Proto file describing the Change Status resource. -// Describes the status of returned resource. +// Describes the status of returned resource. ChangeStatus could have up to 3 +// minutes delay to reflect a new change. message ChangeStatus { option (google.api.resource) = { type: "googleads.googleapis.com/ChangeStatus" diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/click_view.proto b/third_party/googleapis/google/ads/googleads/v5/resources/click_view.proto index c0b4c1b8b..b0192eef2 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/click_view.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/click_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/conversion_action.proto b/third_party/googleapis/google/ads/googleads/v5/resources/conversion_action.proto index 733f63b46..56ef0c80d 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/conversion_action.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/conversion_action.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -121,7 +121,12 @@ message ConversionAction { // Output only. The resource name of the conversion action owner customer, or null if this // is a system-defined conversion action. - optional string owner_customer = 23 [(google.api.field_behavior) = OUTPUT_ONLY]; + optional string owner_customer = 23 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Customer" + } + ]; // Whether this conversion action should be included in the "conversions" // metric. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/currency_constant.proto b/third_party/googleapis/google/ads/googleads/v5/resources/currency_constant.proto index 6bee37e18..9ed347d48 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/currency_constant.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/currency_constant.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -41,7 +41,7 @@ message CurrencyConstant { // Output only. The resource name of the currency constant. // Currency constant resource names have the form: // - // `currencyConstants/{currency_code}` + // `currencyConstants/{code}` string resource_name = 1 [ (google.api.field_behavior) = OUTPUT_ONLY, (google.api.resource_reference) = { diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/custom_interest.proto b/third_party/googleapis/google/ads/googleads/v5/resources/custom_interest.proto index 29c561ba8..21e474e6f 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/custom_interest.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/custom_interest.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/customer.proto b/third_party/googleapis/google/ads/googleads/v5/resources/customer.proto index fd537186a..a5b0124f5 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/customer.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/customer.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -100,7 +100,8 @@ message Customer { // Output only. Optimization score of the customer. // // Optimization score is an estimate of how well a customer's campaigns are - // set to perform. It ranges from 0% (0.0) to 100% (1.0). + // set to perform. It ranges from 0% (0.0) to 100% (1.0). This field is null + // for all manager customers, and for unscored non-manager customers. // // See "About optimization score" at // https://support.google.com/google-ads/answer/9061546. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/customer_client.proto b/third_party/googleapis/google/ads/googleads/v5/resources/customer_client.proto index 6054f3be2..625d82e1d 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/customer_client.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/customer_client.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -53,7 +53,12 @@ message CustomerClient { // Output only. The resource name of the client-customer which is linked to // the given customer. Read only. - google.protobuf.StringValue client_customer = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.StringValue client_customer = 3 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Customer" + } + ]; // Output only. Specifies whether this is a // [hidden account](https://support.google.com/google-ads/answer/7519830). diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/customer_client_link.proto b/third_party/googleapis/google/ads/googleads/v5/resources/customer_client_link.proto index 118cfa458..a719555e8 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/customer_client_link.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/customer_client_link.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -51,7 +51,12 @@ message CustomerClientLink { ]; // Immutable. The client customer linked to this customer. - google.protobuf.StringValue client_customer = 3 [(google.api.field_behavior) = IMMUTABLE]; + google.protobuf.StringValue client_customer = 3 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Customer" + } + ]; // Output only. This is uniquely identifies a customer client link. Read only. google.protobuf.Int64Value manager_link_id = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/customer_extension_setting.proto b/third_party/googleapis/google/ads/googleads/v5/resources/customer_extension_setting.proto index f05deb16e..4cf0eed4a 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/customer_extension_setting.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/customer_extension_setting.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/customer_feed.proto b/third_party/googleapis/google/ads/googleads/v5/resources/customer_feed.proto index 5548216ba..71f4fda0c 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/customer_feed.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/customer_feed.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/customer_label.proto b/third_party/googleapis/google/ads/googleads/v5/resources/customer_label.proto index 80b7c6a21..0eb84de3b 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/customer_label.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/customer_label.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -53,11 +53,21 @@ message CustomerLabel { // Output only. The resource name of the customer to which the label is attached. // Read only. - google.protobuf.StringValue customer = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.StringValue customer = 2 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Customer" + } + ]; // Output only. The resource name of the label assigned to the customer. // // Note: the Customer ID portion of the label resource name is not // validated when creating a new CustomerLabel. - google.protobuf.StringValue label = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.StringValue label = 3 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Label" + } + ]; } diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/customer_manager_link.proto b/third_party/googleapis/google/ads/googleads/v5/resources/customer_manager_link.proto index ac49ae201..5aa58fd38 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/customer_manager_link.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/customer_manager_link.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -51,7 +51,12 @@ message CustomerManagerLink { ]; // Output only. The manager customer linked to the customer. - google.protobuf.StringValue manager_customer = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.StringValue manager_customer = 3 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Customer" + } + ]; // Output only. ID of the customer-manager link. This field is read only. google.protobuf.Int64Value manager_link_id = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/customer_negative_criterion.proto b/third_party/googleapis/google/ads/googleads/v5/resources/customer_negative_criterion.proto index 62db9eaca..c9de79276 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/customer_negative_criterion.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/customer_negative_criterion.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/detail_placement_view.proto b/third_party/googleapis/google/ads/googleads/v5/resources/detail_placement_view.proto index c1f19ce65..3950d8fca 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/detail_placement_view.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/detail_placement_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/display_keyword_view.proto b/third_party/googleapis/google/ads/googleads/v5/resources/display_keyword_view.proto index 8cbe0177b..864774000 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/display_keyword_view.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/display_keyword_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/distance_view.proto b/third_party/googleapis/google/ads/googleads/v5/resources/distance_view.proto index 7945f551f..b54a8cdf0 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/distance_view.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/distance_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/domain_category.proto b/third_party/googleapis/google/ads/googleads/v5/resources/domain_category.proto index 14f9719af..e29ad31f0 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/domain_category.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/domain_category.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/dynamic_search_ads_search_term_view.proto b/third_party/googleapis/google/ads/googleads/v5/resources/dynamic_search_ads_search_term_view.proto index d1f4d29c7..2ee550422 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/dynamic_search_ads_search_term_view.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/dynamic_search_ads_search_term_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -41,7 +41,7 @@ message DynamicSearchAdsSearchTermView { // Output only. The resource name of the dynamic search ads search term view. // Dynamic search ads search term view resource names have the form: // - // `customers/{customer_id}/dynamicSearchAdsSearchTermViews/{ad_group_id}~{search_term_fp}~{headline_fp}~{landing_page_fp}~{page_url_fp}` + // `customers/{customer_id}/dynamicSearchAdsSearchTermViews/{ad_group_id}~{search_term_fingerprint}~{headline_fingerprint}~{landing_page_fingerprint}~{page_url_fingerprint}` string resource_name = 1 [ (google.api.field_behavior) = OUTPUT_ONLY, (google.api.resource_reference) = { diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/expanded_landing_page_view.proto b/third_party/googleapis/google/ads/googleads/v5/resources/expanded_landing_page_view.proto index 31c6ebc6e..8712ed05f 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/expanded_landing_page_view.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/expanded_landing_page_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/extension_feed_item.proto b/third_party/googleapis/google/ads/googleads/v5/resources/extension_feed_item.proto index 916ecac1a..3b02ff4a7 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/extension_feed_item.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/extension_feed_item.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/feed.proto b/third_party/googleapis/google/ads/googleads/v5/resources/feed.proto index d88a6e533..05802302e 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/feed.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/feed.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/feed_item.proto b/third_party/googleapis/google/ads/googleads/v5/resources/feed_item.proto index 758287ec8..5e0b735b9 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/feed_item.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/feed_item.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/feed_item_target.proto b/third_party/googleapis/google/ads/googleads/v5/resources/feed_item_target.proto index 77b7d3b74..02d3eabc0 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/feed_item_target.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/feed_item_target.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/feed_mapping.proto b/third_party/googleapis/google/ads/googleads/v5/resources/feed_mapping.proto index de1c8c07c..5b6c8cd03 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/feed_mapping.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/feed_mapping.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/feed_placeholder_view.proto b/third_party/googleapis/google/ads/googleads/v5/resources/feed_placeholder_view.proto index 03e257fdc..77ae3f527 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/feed_placeholder_view.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/feed_placeholder_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/gender_view.proto b/third_party/googleapis/google/ads/googleads/v5/resources/gender_view.proto index 265bcf8a5..4c9545afa 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/gender_view.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/gender_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/geo_target_constant.proto b/third_party/googleapis/google/ads/googleads/v5/resources/geo_target_constant.proto index 4485f6ff4..06b9becae 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/geo_target_constant.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/geo_target_constant.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/geographic_view.proto b/third_party/googleapis/google/ads/googleads/v5/resources/geographic_view.proto index 71eb4b49e..b2873d3b0 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/geographic_view.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/geographic_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/google_ads_field.proto b/third_party/googleapis/google/ads/googleads/v5/resources/google_ads_field.proto index 0e3408346..14581a4cd 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/google_ads_field.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/google_ads_field.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/group_placement_view.proto b/third_party/googleapis/google/ads/googleads/v5/resources/group_placement_view.proto index 5e63d0d7e..2c59c2143 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/group_placement_view.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/group_placement_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/hotel_group_view.proto b/third_party/googleapis/google/ads/googleads/v5/resources/hotel_group_view.proto index 0dc419631..9b1733406 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/hotel_group_view.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/hotel_group_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/hotel_performance_view.proto b/third_party/googleapis/google/ads/googleads/v5/resources/hotel_performance_view.proto index 33f1365f3..aff3be45c 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/hotel_performance_view.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/hotel_performance_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/income_range_view.proto b/third_party/googleapis/google/ads/googleads/v5/resources/income_range_view.proto index 38fce4fb2..4c3325d1d 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/income_range_view.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/income_range_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/invoice.proto b/third_party/googleapis/google/ads/googleads/v5/resources/invoice.proto index 8346ee365..aecf06d18 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/invoice.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/invoice.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -142,8 +142,12 @@ message Invoice { // on the invoice, not on a specific account budget. google.protobuf.Int64Value invoice_level_adjustments_micros = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The pretax subtotal amount, in micros. This equals the sum of the - // AccountBudgetSummary subtotal amounts, plus the invoice level adjustments. + // Output only. The pretax subtotal amount, in micros. This equals the + // sum of the AccountBudgetSummary subtotal amounts, + // Invoice.adjustments_subtotal_amount_micros, and + // Invoice.regulatory_costs_subtotal_amount_micros. + // Starting with v6, the Invoice.regulatory_costs_subtotal_amount_micros is no + // longer included. google.protobuf.Int64Value subtotal_amount_micros = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The sum of all taxes on the invoice, in micros. This equals the sum of the @@ -151,8 +155,11 @@ message Invoice { // account budget. google.protobuf.Int64Value tax_amount_micros = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The total amount, in micros. This equals the sum of the invoice subtotal - // amount and the invoice tax amount. + // Output only. The total amount, in micros. This equals the sum of + // Invoice.subtotal_amount_micros and Invoice.tax_amount_micros. + // Starting with v6, Invoice.regulatory_costs_subtotal_amount_micros is + // also added as it is no longer already included in + // Invoice.tax_amount_micros. google.protobuf.Int64Value total_amount_micros = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The resource name of the original invoice corrected, wrote off, or canceled diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/keyword_plan.proto b/third_party/googleapis/google/ads/googleads/v5/resources/keyword_plan.proto index 3b43809ab..122868d3b 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/keyword_plan.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/keyword_plan.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/keyword_plan_ad_group.proto b/third_party/googleapis/google/ads/googleads/v5/resources/keyword_plan_ad_group.proto index 0da07d073..6ad075714 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/keyword_plan_ad_group.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/keyword_plan_ad_group.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/keyword_plan_ad_group_keyword.proto b/third_party/googleapis/google/ads/googleads/v5/resources/keyword_plan_ad_group_keyword.proto index a331a1010..4a619c5b8 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/keyword_plan_ad_group_keyword.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/keyword_plan_ad_group_keyword.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/keyword_plan_campaign.proto b/third_party/googleapis/google/ads/googleads/v5/resources/keyword_plan_campaign.proto index 923dce52d..c1f3d900d 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/keyword_plan_campaign.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/keyword_plan_campaign.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/keyword_plan_campaign_keyword.proto b/third_party/googleapis/google/ads/googleads/v5/resources/keyword_plan_campaign_keyword.proto index da8101932..95921d2fe 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/keyword_plan_campaign_keyword.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/keyword_plan_campaign_keyword.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/keyword_view.proto b/third_party/googleapis/google/ads/googleads/v5/resources/keyword_view.proto index 429b9d165..b66441aab 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/keyword_view.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/keyword_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/label.proto b/third_party/googleapis/google/ads/googleads/v5/resources/label.proto index c9d119276..ea4193b94 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/label.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/label.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/landing_page_view.proto b/third_party/googleapis/google/ads/googleads/v5/resources/landing_page_view.proto index 17e93fa95..73f14123e 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/landing_page_view.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/landing_page_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/language_constant.proto b/third_party/googleapis/google/ads/googleads/v5/resources/language_constant.proto index 5dc97f7c7..a61289864 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/language_constant.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/language_constant.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/location_view.proto b/third_party/googleapis/google/ads/googleads/v5/resources/location_view.proto index 89ee4b50a..1778574ca 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/location_view.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/location_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/managed_placement_view.proto b/third_party/googleapis/google/ads/googleads/v5/resources/managed_placement_view.proto index 7797b9d7e..73e5a3abe 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/managed_placement_view.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/managed_placement_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/media_file.proto b/third_party/googleapis/google/ads/googleads/v5/resources/media_file.proto index af5b67990..debc14a93 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/media_file.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/media_file.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/merchant_center_link.proto b/third_party/googleapis/google/ads/googleads/v5/resources/merchant_center_link.proto index 8617df71a..14c8ea68a 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/merchant_center_link.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/merchant_center_link.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/mobile_app_category_constant.proto b/third_party/googleapis/google/ads/googleads/v5/resources/mobile_app_category_constant.proto index df30c6bbb..712751aef 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/mobile_app_category_constant.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/mobile_app_category_constant.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/mobile_device_constant.proto b/third_party/googleapis/google/ads/googleads/v5/resources/mobile_device_constant.proto index 53ad41bd3..eeff1018c 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/mobile_device_constant.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/mobile_device_constant.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/offline_user_data_job.proto b/third_party/googleapis/google/ads/googleads/v5/resources/offline_user_data_job.proto index ebd13fa16..9e8325504 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/offline_user_data_job.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/offline_user_data_job.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/operating_system_version_constant.proto b/third_party/googleapis/google/ads/googleads/v5/resources/operating_system_version_constant.proto index a41f4c13e..9f905a02a 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/operating_system_version_constant.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/operating_system_version_constant.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/paid_organic_search_term_view.proto b/third_party/googleapis/google/ads/googleads/v5/resources/paid_organic_search_term_view.proto index 9cd8472a3..30238dc56 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/paid_organic_search_term_view.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/paid_organic_search_term_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/parental_status_view.proto b/third_party/googleapis/google/ads/googleads/v5/resources/parental_status_view.proto index 347767dec..596a89549 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/parental_status_view.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/parental_status_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/payments_account.proto b/third_party/googleapis/google/ads/googleads/v5/resources/payments_account.proto index 0ea44e900..579a27520 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/payments_account.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/payments_account.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -70,5 +70,10 @@ message PaymentsAccount { google.protobuf.StringValue secondary_payments_profile_id = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Paying manager of this payment account. - google.protobuf.StringValue paying_manager_customer = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.StringValue paying_manager_customer = 7 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Customer" + } + ]; } diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/product_bidding_category_constant.proto b/third_party/googleapis/google/ads/googleads/v5/resources/product_bidding_category_constant.proto index a8e59de3d..22b4c3ee0 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/product_bidding_category_constant.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/product_bidding_category_constant.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/product_group_view.proto b/third_party/googleapis/google/ads/googleads/v5/resources/product_group_view.proto index 64c3c7567..490e47601 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/product_group_view.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/product_group_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/recommendation.proto b/third_party/googleapis/google/ads/googleads/v5/resources/recommendation.proto index f87c2a00e..dbc911a68 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/recommendation.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/recommendation.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -106,6 +106,11 @@ message Recommendation { google.protobuf.Int64Value recommended_cpc_bid_micros = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } + // The Optimize Ad Rotation recommendation. + message OptimizeAdRotationRecommendation { + + } + // The text ad recommendation. message TextAdRecommendation { // Output only. Recommended ad. @@ -121,23 +126,6 @@ message Recommendation { google.protobuf.StringValue auto_apply_date = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; } - // The Optimize Ad Rotation recommendation. - message OptimizeAdRotationRecommendation { - - } - - // The Callout extension recommendation. - message CalloutExtensionRecommendation { - // Output only. Callout extensions recommended to be added. - repeated google.ads.googleads.v5.common.CalloutFeedItem recommended_extensions = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // The Sitelink extension recommendation. - message SitelinkExtensionRecommendation { - // Output only. Sitelink extensions recommended to be added. - repeated google.ads.googleads.v5.common.SitelinkFeedItem recommended_extensions = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - // The Target CPA opt-in recommendation. message TargetCpaOptInRecommendation { // The Target CPA opt-in option with impact estimate. @@ -166,13 +154,15 @@ message Recommendation { google.protobuf.Int64Value recommended_target_cpa_micros = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } - // The move unused budget recommendation. - message MoveUnusedBudgetRecommendation { - // Output only. The excess budget's resource_name. - google.protobuf.StringValue excess_campaign_budget = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + // The Call extension recommendation. + message CallExtensionRecommendation { + // Output only. Call extensions recommended to be added. + repeated google.ads.googleads.v5.common.CallFeedItem recommended_extensions = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The Enhanced Cost-Per-Click Opt-In recommendation. + message EnhancedCpcOptInRecommendation { - // Output only. The recommendation for the constrained budget to increase. - CampaignBudgetRecommendation budget_recommendation = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } // The Maximize Conversions Opt-In recommendation. @@ -181,16 +171,17 @@ message Recommendation { google.protobuf.Int64Value recommended_budget_amount_micros = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; } - // The Enhanced Cost-Per-Click Opt-In recommendation. - message EnhancedCpcOptInRecommendation { - - } - // The Search Partners Opt-In recommendation. message SearchPartnersOptInRecommendation { } + // The Callout extension recommendation. + message CalloutExtensionRecommendation { + // Output only. Callout extensions recommended to be added. + repeated google.ads.googleads.v5.common.CalloutFeedItem recommended_extensions = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + // The Maximize Clicks opt-in recommendation. message MaximizeClicksOptInRecommendation { // Output only. The recommended new budget amount. @@ -198,12 +189,6 @@ message Recommendation { google.protobuf.Int64Value recommended_budget_amount_micros = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; } - // The Call extension recommendation. - message CallExtensionRecommendation { - // Output only. Call extensions recommended to be added. - repeated google.ads.googleads.v5.common.CallFeedItem recommended_extensions = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - // The keyword match type recommendation. message KeywordMatchTypeRecommendation { // Output only. The existing keyword where the match type should be more broad. @@ -213,6 +198,21 @@ message Recommendation { google.ads.googleads.v5.enums.KeywordMatchTypeEnum.KeywordMatchType recommended_match_type = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } + // The Sitelink extension recommendation. + message SitelinkExtensionRecommendation { + // Output only. Sitelink extensions recommended to be added. + repeated google.ads.googleads.v5.common.SitelinkFeedItem recommended_extensions = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The move unused budget recommendation. + message MoveUnusedBudgetRecommendation { + // Output only. The excess budget's resource_name. + google.protobuf.StringValue excess_campaign_budget = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The recommendation for the constrained budget to increase. + CampaignBudgetRecommendation budget_recommendation = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + // The Target ROAS opt-in recommendation. message TargetRoasOptInRecommendation { // Output only. The recommended target ROAS (revenue per unit of spend). diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/remarketing_action.proto b/third_party/googleapis/google/ads/googleads/v5/resources/remarketing_action.proto index ab462561e..1ba395495 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/remarketing_action.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/remarketing_action.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/search_term_view.proto b/third_party/googleapis/google/ads/googleads/v5/resources/search_term_view.proto index 07652a98b..2ceaa2d93 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/search_term_view.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/search_term_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/shared_criterion.proto b/third_party/googleapis/google/ads/googleads/v5/resources/shared_criterion.proto index 318c1236e..eec74d0fe 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/shared_criterion.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/shared_criterion.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/shared_set.proto b/third_party/googleapis/google/ads/googleads/v5/resources/shared_set.proto index cb9e5ba5e..de2a5a080 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/shared_set.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/shared_set.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/shopping_performance_view.proto b/third_party/googleapis/google/ads/googleads/v5/resources/shopping_performance_view.proto index 1330c5637..2acb3390f 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/shopping_performance_view.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/shopping_performance_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/third_party_app_analytics_link.proto b/third_party/googleapis/google/ads/googleads/v5/resources/third_party_app_analytics_link.proto index 64ce62fee..7f8f3912b 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/third_party_app_analytics_link.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/third_party_app_analytics_link.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/topic_constant.proto b/third_party/googleapis/google/ads/googleads/v5/resources/topic_constant.proto index 49603dd3e..9ae510d62 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/topic_constant.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/topic_constant.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/topic_view.proto b/third_party/googleapis/google/ads/googleads/v5/resources/topic_view.proto index ea44f6129..2659a85f5 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/topic_view.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/topic_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/user_interest.proto b/third_party/googleapis/google/ads/googleads/v5/resources/user_interest.proto index 0d42f6355..b53acdf41 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/user_interest.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/user_interest.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/user_list.proto b/third_party/googleapis/google/ads/googleads/v5/resources/user_list.proto index 5f917a2a7..c32537790 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/user_list.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/user_list.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/user_location_view.proto b/third_party/googleapis/google/ads/googleads/v5/resources/user_location_view.proto index 6be0436da..6a828ba3d 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/user_location_view.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/user_location_view.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/resources/video.proto b/third_party/googleapis/google/ads/googleads/v5/resources/video.proto index 400fb115f..7f4684ba7 100644 --- a/third_party/googleapis/google/ads/googleads/v5/resources/video.proto +++ b/third_party/googleapis/google/ads/googleads/v5/resources/video.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/ads/googleads/v5/services/BUILD.bazel b/third_party/googleapis/google/ads/googleads/v5/services/BUILD.bazel new file mode 100644 index 000000000..5247aa4cf --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v5/services/BUILD.bazel @@ -0,0 +1,138 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") +load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info") + +# TODO(ohren): Change srcs to use an enumeration of each individual proto +# instead of *.proto globbing once the build file generator supports +# subpackages. +proto_library( + name = "services_proto", + srcs = glob(["*.proto"]), + deps = [ + "//google/ads/googleads/v5/common:common_proto", + "//google/ads/googleads/v5/enums:enums_proto", + "//google/ads/googleads/v5/errors:errors_proto", + "//google/ads/googleads/v5/resources:resources_proto", + "//google/api:annotations_proto", + "//google/api:client_proto", + "//google/api:field_behavior_proto", + "//google/api:resource_proto", + "//google/longrunning:operations_proto", + "//google/rpc:status_proto", + "@com_google_protobuf//:empty_proto", + "@com_google_protobuf//:field_mask_proto", + "@com_google_protobuf//:wrappers_proto", + ], +) + +proto_library_with_info( + name = "services_proto_with_info", + deps = [ + ":services_proto", + ], +) + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_grpc_library", + "java_proto_library", +) + +java_proto_library( + name = "services_java_proto", + deps = [":services_proto"], +) + +java_grpc_library( + name = "services_java_grpc", + srcs = [":services_proto"], + deps = [":services_java_proto"], +) + +############################################################################## +# PHP +############################################################################## + +# PHP targets are in the parent directory's BUILD.bazel file to facilitate +# aggregating metadata using a single underlying call to protoc. + +############################################################################## +# C# +############################################################################## +load( + "@gapic_generator_csharp//rules_csharp_gapic:csharp_gapic.bzl", + "csharp_grpc_library", + "csharp_proto_library", +) + +csharp_proto_library( + name = "services_csharp_proto", + deps = [":services_proto"], +) + +csharp_grpc_library( + name = "services_csharp_grpc", + srcs = [":services_proto"], + deps = [":services_csharp_proto"], +) + +############################################################################## +# Ruby +############################################################################## +load( + "@gapic_generator_ruby//rules_ruby_gapic:ruby_gapic.bzl", + "ruby_grpc_library", + "ruby_proto_library", +) + +ruby_proto_library( + name = "services_ruby_proto", + deps = [":services_proto"], +) + +ruby_grpc_library( + name = "services_ruby_grpc", + srcs = [":services_proto"], + deps = [":services_ruby_proto"], +) + +############################################################################## +# Python +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "py_grpc_library", + "py_proto_library", +) + +py_proto_library( + name = "services_py_proto", + deps = [":services_proto"], +) + +py_grpc_library( + name = "services_py_grpc", + srcs = [":services_proto"], + deps = [":services_py_proto"], +) diff --git a/third_party/googleapis/google/ads/googleads/v5/services/account_budget_proposal_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/account_budget_proposal_service.proto index 09086d0d4..32816eaa3 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/account_budget_proposal_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/account_budget_proposal_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -50,6 +50,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // The REMOVE operation cancels a pending proposal. service AccountBudgetProposalService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns an account-level budget proposal in full detail. rpc GetAccountBudgetProposal(GetAccountBudgetProposalRequest) returns (google.ads.googleads.v5.resources.AccountBudgetProposal) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/account_budget_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/account_budget_service.proto index 92fd3e69b..d4964fc86 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/account_budget_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/account_budget_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,6 +38,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Account-level budgets are mutated by creating proposal resources. service AccountBudgetService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns an account-level budget in full detail. rpc GetAccountBudget(GetAccountBudgetRequest) returns (google.ads.googleads.v5.resources.AccountBudget) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/account_link_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/account_link_service.proto index 5cda9864e..b716c3f1f 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/account_link_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/account_link_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -35,6 +35,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // accounts. service AccountLinkService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the account link in full detail. rpc GetAccountLink(GetAccountLinkRequest) returns (google.ads.googleads.v5.resources.AccountLink) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/ad_group_ad_asset_view_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/ad_group_ad_asset_view_service.proto index 4576df3e7..4bf046f7a 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/ad_group_ad_asset_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/ad_group_ad_asset_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to fetch ad group ad asset views. service AdGroupAdAssetViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested ad group ad asset view in full detail. rpc GetAdGroupAdAssetView(GetAdGroupAdAssetViewRequest) returns (google.ads.googleads.v5.resources.AdGroupAdAssetView) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/ad_group_ad_label_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/ad_group_ad_label_service.proto index 4befa46d6..1203eaa95 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/ad_group_ad_label_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/ad_group_ad_label_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,6 +37,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage labels on ad group ads. service AdGroupAdLabelService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested ad group ad label in full detail. rpc GetAdGroupAdLabel(GetAdGroupAdLabelRequest) returns (google.ads.googleads.v5.resources.AdGroupAdLabel) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/ad_group_ad_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/ad_group_ad_service.proto index 3db608202..2266fd7b6 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/ad_group_ad_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/ad_group_ad_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -40,6 +40,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage ads in an ad group. service AdGroupAdService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested ad in full detail. rpc GetAdGroupAd(GetAdGroupAdRequest) returns (google.ads.googleads.v5.resources.AdGroupAd) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/ad_group_audience_view_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/ad_group_audience_view_service.proto index 94f021e95..be67fec05 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/ad_group_audience_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/ad_group_audience_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage ad group audience views. service AdGroupAudienceViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested ad group audience view in full detail. rpc GetAdGroupAudienceView(GetAdGroupAudienceViewRequest) returns (google.ads.googleads.v5.resources.AdGroupAudienceView) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/ad_group_bid_modifier_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/ad_group_bid_modifier_service.proto index eb2ab9669..15a49cb42 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/ad_group_bid_modifier_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/ad_group_bid_modifier_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -39,6 +39,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage ad group bid modifiers. service AdGroupBidModifierService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested ad group bid modifier in full detail. rpc GetAdGroupBidModifier(GetAdGroupBidModifierRequest) returns (google.ads.googleads.v5.resources.AdGroupBidModifier) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/ad_group_criterion_label_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/ad_group_criterion_label_service.proto index c070f3b1c..7509febb7 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/ad_group_criterion_label_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/ad_group_criterion_label_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,6 +37,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage labels on ad group criteria. service AdGroupCriterionLabelService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested ad group criterion label in full detail. rpc GetAdGroupCriterionLabel(GetAdGroupCriterionLabelRequest) returns (google.ads.googleads.v5.resources.AdGroupCriterionLabel) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/ad_group_criterion_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/ad_group_criterion_service.proto index 6992f9933..c56f0b9a6 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/ad_group_criterion_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/ad_group_criterion_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -40,6 +40,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage ad group criteria. service AdGroupCriterionService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested criterion in full detail. rpc GetAdGroupCriterion(GetAdGroupCriterionRequest) returns (google.ads.googleads.v5.resources.AdGroupCriterion) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/ad_group_criterion_simulation_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/ad_group_criterion_simulation_service.proto index 1a6f956a5..a84123aed 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/ad_group_criterion_simulation_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/ad_group_criterion_simulation_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to fetch ad group criterion simulations. service AdGroupCriterionSimulationService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested ad group criterion simulation in full detail. rpc GetAdGroupCriterionSimulation(GetAdGroupCriterionSimulationRequest) returns (google.ads.googleads.v5.resources.AdGroupCriterionSimulation) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/ad_group_extension_setting_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/ad_group_extension_setting_service.proto index 043003a82..e00c089c4 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/ad_group_extension_setting_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/ad_group_extension_setting_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,6 +38,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage ad group extension settings. service AdGroupExtensionSettingService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested ad group extension setting in full detail. rpc GetAdGroupExtensionSetting(GetAdGroupExtensionSettingRequest) returns (google.ads.googleads.v5.resources.AdGroupExtensionSetting) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/ad_group_feed_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/ad_group_feed_service.proto index 418237272..62baae99f 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/ad_group_feed_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/ad_group_feed_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -39,6 +39,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage ad group feeds. service AdGroupFeedService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested ad group feed in full detail. rpc GetAdGroupFeed(GetAdGroupFeedRequest) returns (google.ads.googleads.v5.resources.AdGroupFeed) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/ad_group_label_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/ad_group_label_service.proto index 8455840c4..bf5df6548 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/ad_group_label_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/ad_group_label_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,6 +37,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage labels on ad groups. service AdGroupLabelService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested ad group label in full detail. rpc GetAdGroupLabel(GetAdGroupLabelRequest) returns (google.ads.googleads.v5.resources.AdGroupLabel) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/ad_group_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/ad_group_service.proto index fc8ae3684..3edc87d62 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/ad_group_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/ad_group_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -39,6 +39,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage ad groups. service AdGroupService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested ad group in full detail. rpc GetAdGroup(GetAdGroupRequest) returns (google.ads.googleads.v5.resources.AdGroup) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/ad_group_simulation_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/ad_group_simulation_service.proto index 572979ad1..fe20d55f7 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/ad_group_simulation_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/ad_group_simulation_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to fetch ad group simulations. service AdGroupSimulationService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested ad group simulation in full detail. rpc GetAdGroupSimulation(GetAdGroupSimulationRequest) returns (google.ads.googleads.v5.resources.AdGroupSimulation) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/ad_parameter_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/ad_parameter_service.proto index 664453092..a42a088c8 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/ad_parameter_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/ad_parameter_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,6 +38,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage ad parameters. service AdParameterService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested ad parameter in full detail. rpc GetAdParameter(GetAdParameterRequest) returns (google.ads.googleads.v5.resources.AdParameter) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/ad_schedule_view_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/ad_schedule_view_service.proto index 03b6032ed..70cfa47eb 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/ad_schedule_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/ad_schedule_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to fetch ad schedule views. service AdScheduleViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested ad schedule view in full detail. rpc GetAdScheduleView(GetAdScheduleViewRequest) returns (google.ads.googleads.v5.resources.AdScheduleView) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/ad_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/ad_service.proto index b7d9acac0..e12295e96 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/ad_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/ad_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,6 +38,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage ads. service AdService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested ad in full detail. rpc GetAd(GetAdRequest) returns (google.ads.googleads.v5.resources.Ad) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/age_range_view_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/age_range_view_service.proto index 3691336e6..7a30ef35d 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/age_range_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/age_range_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage age range views. service AgeRangeViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested age range view in full detail. rpc GetAgeRangeView(GetAgeRangeViewRequest) returns (google.ads.googleads.v5.resources.AgeRangeView) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/asset_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/asset_service.proto index 75f941116..fc2742b6e 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/asset_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/asset_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -39,6 +39,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // created with Ad inline. service AssetService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested asset in full detail. rpc GetAsset(GetAssetRequest) returns (google.ads.googleads.v5.resources.Asset) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/batch_job_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/batch_job_service.proto index 9e74894ca..0ce9fb01a 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/batch_job_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/batch_job_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -39,6 +39,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage batch jobs. service BatchJobService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Mutates a batch job. rpc MutateBatchJob(MutateBatchJobRequest) returns (MutateBatchJobResponse) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/bidding_strategy_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/bidding_strategy_service.proto index e9238dc22..189ec294b 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/bidding_strategy_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/bidding_strategy_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,6 +38,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage bidding strategies. service BiddingStrategyService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested bidding strategy in full detail. rpc GetBiddingStrategy(GetBiddingStrategyRequest) returns (google.ads.googleads.v5.resources.BiddingStrategy) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/billing_setup_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/billing_setup_service.proto index 05c01c6d9..3ec7f9180 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/billing_setup_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/billing_setup_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -44,6 +44,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // The CREATE operation creates a new billing setup. service BillingSetupService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns a billing setup. rpc GetBillingSetup(GetBillingSetupRequest) returns (google.ads.googleads.v5.resources.BillingSetup) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/campaign_asset_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/campaign_asset_service.proto index ecce9fe72..ebfa7e62c 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/campaign_asset_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/campaign_asset_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,6 +37,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage campaign assets. service CampaignAssetService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested campaign asset in full detail. rpc GetCampaignAsset(GetCampaignAssetRequest) returns (google.ads.googleads.v5.resources.CampaignAsset) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/campaign_audience_view_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/campaign_audience_view_service.proto index 1c71242ae..8be085cd6 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/campaign_audience_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/campaign_audience_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage campaign audience views. service CampaignAudienceViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested campaign audience view in full detail. rpc GetCampaignAudienceView(GetCampaignAudienceViewRequest) returns (google.ads.googleads.v5.resources.CampaignAudienceView) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/campaign_bid_modifier_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/campaign_bid_modifier_service.proto index f00018c94..f564935d3 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/campaign_bid_modifier_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/campaign_bid_modifier_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,6 +38,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage campaign bid modifiers. service CampaignBidModifierService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested campaign bid modifier in full detail. rpc GetCampaignBidModifier(GetCampaignBidModifierRequest) returns (google.ads.googleads.v5.resources.CampaignBidModifier) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/campaign_budget_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/campaign_budget_service.proto index 0234bf3a8..d013384a6 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/campaign_budget_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/campaign_budget_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -39,6 +39,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage campaign budgets. service CampaignBudgetService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested Campaign Budget in full detail. rpc GetCampaignBudget(GetCampaignBudgetRequest) returns (google.ads.googleads.v5.resources.CampaignBudget) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/campaign_criterion_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/campaign_criterion_service.proto index b1d2714a6..7f8e1567c 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/campaign_criterion_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/campaign_criterion_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -39,6 +39,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage campaign criteria. service CampaignCriterionService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested criterion in full detail. rpc GetCampaignCriterion(GetCampaignCriterionRequest) returns (google.ads.googleads.v5.resources.CampaignCriterion) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/campaign_criterion_simulation_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/campaign_criterion_simulation_service.proto index 949f560f1..6a6ef9271 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/campaign_criterion_simulation_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/campaign_criterion_simulation_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to fetch campaign criterion simulations. service CampaignCriterionSimulationService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested campaign criterion simulation in full detail. rpc GetCampaignCriterionSimulation(GetCampaignCriterionSimulationRequest) returns (google.ads.googleads.v5.resources.CampaignCriterionSimulation) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/campaign_draft_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/campaign_draft_service.proto index 09ade94e3..c90374025 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/campaign_draft_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/campaign_draft_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -40,6 +40,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage campaign drafts. service CampaignDraftService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested campaign draft in full detail. rpc GetCampaignDraft(GetCampaignDraftRequest) returns (google.ads.googleads.v5.resources.CampaignDraft) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/campaign_experiment_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/campaign_experiment_service.proto index b7b617b05..6f8b6617f 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/campaign_experiment_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/campaign_experiment_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -50,6 +50,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // and will be a snapshot of changes in the draft at the time of creation. service CampaignExperimentService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested campaign experiment in full detail. rpc GetCampaignExperiment(GetCampaignExperimentRequest) returns (google.ads.googleads.v5.resources.CampaignExperiment) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/campaign_extension_setting_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/campaign_extension_setting_service.proto index da1420ef5..ce8d96103 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/campaign_extension_setting_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/campaign_extension_setting_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,6 +38,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage campaign extension settings. service CampaignExtensionSettingService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested campaign extension setting in full detail. rpc GetCampaignExtensionSetting(GetCampaignExtensionSettingRequest) returns (google.ads.googleads.v5.resources.CampaignExtensionSetting) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/campaign_feed_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/campaign_feed_service.proto index a3d16eefe..e3ec52b7b 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/campaign_feed_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/campaign_feed_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -39,6 +39,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage campaign feeds. service CampaignFeedService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested campaign feed in full detail. rpc GetCampaignFeed(GetCampaignFeedRequest) returns (google.ads.googleads.v5.resources.CampaignFeed) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/campaign_label_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/campaign_label_service.proto index db3827d75..3d4ace646 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/campaign_label_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/campaign_label_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,6 +37,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage labels on campaigns. service CampaignLabelService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested campaign-label relationship in full detail. rpc GetCampaignLabel(GetCampaignLabelRequest) returns (google.ads.googleads.v5.resources.CampaignLabel) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/campaign_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/campaign_service.proto index d912b22e8..2afc51b28 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/campaign_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/campaign_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -39,6 +39,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage campaigns. service CampaignService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested campaign in full detail. rpc GetCampaign(GetCampaignRequest) returns (google.ads.googleads.v5.resources.Campaign) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/campaign_shared_set_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/campaign_shared_set_service.proto index 7f3f96b72..9ed34a0a4 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/campaign_shared_set_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/campaign_shared_set_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,6 +37,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage campaign shared sets. service CampaignSharedSetService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested campaign shared set in full detail. rpc GetCampaignSharedSet(GetCampaignSharedSetRequest) returns (google.ads.googleads.v5.resources.CampaignSharedSet) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/carrier_constant_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/carrier_constant_service.proto index 6a49aa75f..7314a80d2 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/carrier_constant_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/carrier_constant_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to fetch carrier constants. service CarrierConstantService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested carrier constant in full detail. rpc GetCarrierConstant(GetCarrierConstantRequest) returns (google.ads.googleads.v5.resources.CarrierConstant) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/change_status_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/change_status_service.proto index 8c58ecc80..516b42486 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/change_status_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/change_status_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to fetch change statuses. service ChangeStatusService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested change status in full detail. rpc GetChangeStatus(GetChangeStatusRequest) returns (google.ads.googleads.v5.resources.ChangeStatus) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/click_view_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/click_view_service.proto index d2fa9bc15..b96030ba0 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/click_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/click_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to fetch click views. service ClickViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested click view in full detail. rpc GetClickView(GetClickViewRequest) returns (google.ads.googleads.v5.resources.ClickView) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/conversion_action_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/conversion_action_service.proto index 7ad4acb03..791c2aea0 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/conversion_action_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/conversion_action_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,6 +38,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage conversion actions. service ConversionActionService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested conversion action. rpc GetConversionAction(GetConversionActionRequest) returns (google.ads.googleads.v5.resources.ConversionAction) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/conversion_adjustment_upload_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/conversion_adjustment_upload_service.proto index 999f3e261..75e8e4248 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/conversion_adjustment_upload_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/conversion_adjustment_upload_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -34,6 +34,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to upload conversion adjustments. service ConversionAdjustmentUploadService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Processes the given conversion adjustments. rpc UploadConversionAdjustments(UploadConversionAdjustmentsRequest) returns (UploadConversionAdjustmentsResponse) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/conversion_upload_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/conversion_upload_service.proto index 20f2fe804..1eb6483dd 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/conversion_upload_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/conversion_upload_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -33,6 +33,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to upload conversions. service ConversionUploadService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Processes the given click conversions. rpc UploadClickConversions(UploadClickConversionsRequest) returns (UploadClickConversionsResponse) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/currency_constant_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/currency_constant_service.proto index 21bc4c9b5..ec87161ad 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/currency_constant_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/currency_constant_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -34,6 +34,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to fetch currency constants. service CurrencyConstantService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested currency constant. rpc GetCurrencyConstant(GetCurrencyConstantRequest) returns (google.ads.googleads.v5.resources.CurrencyConstant) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/custom_interest_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/custom_interest_service.proto index 55d33d67d..aa8fc5f3a 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/custom_interest_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/custom_interest_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,6 +37,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage custom interests. service CustomInterestService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested custom interest in full detail. rpc GetCustomInterest(GetCustomInterestRequest) returns (google.ads.googleads.v5.resources.CustomInterest) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/customer_client_link_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/customer_client_link_service.proto index 5edb9219a..e444fe5d7 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/customer_client_link_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/customer_client_link_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -35,6 +35,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage customer client links. service CustomerClientLinkService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested CustomerClientLink in full detail. rpc GetCustomerClientLink(GetCustomerClientLinkRequest) returns (google.ads.googleads.v5.resources.CustomerClientLink) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/customer_client_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/customer_client_service.proto index 096dcdc90..e8c5cd823 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/customer_client_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/customer_client_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to get clients in a customer's hierarchy. service CustomerClientService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested client in full detail. rpc GetCustomerClient(GetCustomerClientRequest) returns (google.ads.googleads.v5.resources.CustomerClient) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/customer_extension_setting_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/customer_extension_setting_service.proto index 8915e4100..3860d80f7 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/customer_extension_setting_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/customer_extension_setting_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,6 +38,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage customer extension settings. service CustomerExtensionSettingService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested customer extension setting in full detail. rpc GetCustomerExtensionSetting(GetCustomerExtensionSettingRequest) returns (google.ads.googleads.v5.resources.CustomerExtensionSetting) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/customer_feed_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/customer_feed_service.proto index 571c3b6a8..c06f4c97c 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/customer_feed_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/customer_feed_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -39,6 +39,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage customer feeds. service CustomerFeedService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested customer feed in full detail. rpc GetCustomerFeed(GetCustomerFeedRequest) returns (google.ads.googleads.v5.resources.CustomerFeed) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/customer_label_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/customer_label_service.proto index 4ee6d61cb..d09d0ec98 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/customer_label_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/customer_label_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,6 +37,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage labels on customers. service CustomerLabelService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested customer-label relationship in full detail. rpc GetCustomerLabel(GetCustomerLabelRequest) returns (google.ads.googleads.v5.resources.CustomerLabel) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/customer_manager_link_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/customer_manager_link_service.proto index f912cd50c..9ae77bb20 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/customer_manager_link_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/customer_manager_link_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -35,6 +35,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage customer-manager links. service CustomerManagerLinkService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested CustomerManagerLink in full detail. rpc GetCustomerManagerLink(GetCustomerManagerLinkRequest) returns (google.ads.googleads.v5.resources.CustomerManagerLink) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/customer_negative_criterion_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/customer_negative_criterion_service.proto index e30a5ddb9..7027237fd 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/customer_negative_criterion_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/customer_negative_criterion_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,6 +37,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage customer negative criteria. service CustomerNegativeCriterionService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested criterion in full detail. rpc GetCustomerNegativeCriterion(GetCustomerNegativeCriterionRequest) returns (google.ads.googleads.v5.resources.CustomerNegativeCriterion) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/customer_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/customer_service.proto index 99931a564..3849626ef 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/customer_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/customer_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -39,6 +39,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage customers. service CustomerService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested customer in full detail. rpc GetCustomer(GetCustomerRequest) returns (google.ads.googleads.v5.resources.Customer) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/detail_placement_view_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/detail_placement_view_service.proto index d6d8ca132..6767bdb17 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/detail_placement_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/detail_placement_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to fetch Detail Placement views. service DetailPlacementViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested Detail Placement view in full detail. rpc GetDetailPlacementView(GetDetailPlacementViewRequest) returns (google.ads.googleads.v5.resources.DetailPlacementView) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/display_keyword_view_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/display_keyword_view_service.proto index f358f97ac..f31db810b 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/display_keyword_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/display_keyword_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage display keyword views. service DisplayKeywordViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested display keyword view in full detail. rpc GetDisplayKeywordView(GetDisplayKeywordViewRequest) returns (google.ads.googleads.v5.resources.DisplayKeywordView) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/distance_view_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/distance_view_service.proto index eaf65fbc8..e669d919b 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/distance_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/distance_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to fetch distance views. service DistanceViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the attributes of the requested distance view. rpc GetDistanceView(GetDistanceViewRequest) returns (google.ads.googleads.v5.resources.DistanceView) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/domain_category_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/domain_category_service.proto index ac610bc1a..985b84881 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/domain_category_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/domain_category_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to fetch domain categories. service DomainCategoryService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested domain category. rpc GetDomainCategory(GetDomainCategoryRequest) returns (google.ads.googleads.v5.resources.DomainCategory) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/dynamic_search_ads_search_term_view_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/dynamic_search_ads_search_term_view_service.proto index 23eacb0c8..ad0a23411 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/dynamic_search_ads_search_term_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/dynamic_search_ads_search_term_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to fetch dynamic search ads views. service DynamicSearchAdsSearchTermViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested dynamic search ads search term view in full detail. rpc GetDynamicSearchAdsSearchTermView(GetDynamicSearchAdsSearchTermViewRequest) returns (google.ads.googleads.v5.resources.DynamicSearchAdsSearchTermView) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/expanded_landing_page_view_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/expanded_landing_page_view_service.proto index 2039f8568..0c4ed123f 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/expanded_landing_page_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/expanded_landing_page_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to fetch expanded landing page views. service ExpandedLandingPageViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested expanded landing page view in full detail. rpc GetExpandedLandingPageView(GetExpandedLandingPageViewRequest) returns (google.ads.googleads.v5.resources.ExpandedLandingPageView) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/extension_feed_item_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/extension_feed_item_service.proto index 396a684b8..0e111bbc4 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/extension_feed_item_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/extension_feed_item_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -39,6 +39,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage extension feed items. service ExtensionFeedItemService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested extension feed item in full detail. rpc GetExtensionFeedItem(GetExtensionFeedItemRequest) returns (google.ads.googleads.v5.resources.ExtensionFeedItem) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/feed_item_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/feed_item_service.proto index e78e25426..d5d97aa12 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/feed_item_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/feed_item_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -39,6 +39,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage feed items. service FeedItemService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested feed item in full detail. rpc GetFeedItem(GetFeedItemRequest) returns (google.ads.googleads.v5.resources.FeedItem) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/feed_item_target_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/feed_item_target_service.proto index b2baa8c87..44cf05f7f 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/feed_item_target_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/feed_item_target_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage feed item targets. service FeedItemTargetService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested feed item targets in full detail. rpc GetFeedItemTarget(GetFeedItemTargetRequest) returns (google.ads.googleads.v5.resources.FeedItemTarget) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/feed_mapping_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/feed_mapping_service.proto index c5e494980..38088cf93 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/feed_mapping_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/feed_mapping_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,6 +37,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage feed mappings. service FeedMappingService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested feed mapping in full detail. rpc GetFeedMapping(GetFeedMappingRequest) returns (google.ads.googleads.v5.resources.FeedMapping) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/feed_placeholder_view_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/feed_placeholder_view_service.proto index b1ada2614..d62a31f50 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/feed_placeholder_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/feed_placeholder_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to fetch feed placeholder views. service FeedPlaceholderViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested feed placeholder view in full detail. rpc GetFeedPlaceholderView(GetFeedPlaceholderViewRequest) returns (google.ads.googleads.v5.resources.FeedPlaceholderView) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/feed_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/feed_service.proto index f7248da50..ea1e4697c 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/feed_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/feed_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -39,6 +39,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage feeds. service FeedService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested feed in full detail. rpc GetFeed(GetFeedRequest) returns (google.ads.googleads.v5.resources.Feed) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/gender_view_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/gender_view_service.proto index 401c12482..376dc61e7 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/gender_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/gender_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage gender views. service GenderViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested gender view in full detail. rpc GetGenderView(GetGenderViewRequest) returns (google.ads.googleads.v5.resources.GenderView) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/geo_target_constant_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/geo_target_constant_service.proto index 787970003..806942ce6 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/geo_target_constant_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/geo_target_constant_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to fetch geo target constants. service GeoTargetConstantService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested geo target constant in full detail. rpc GetGeoTargetConstant(GetGeoTargetConstantRequest) returns (google.ads.googleads.v5.resources.GeoTargetConstant) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/geographic_view_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/geographic_view_service.proto index 9a001b17a..354d41d0a 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/geographic_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/geographic_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage geographic views. service GeographicViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested geographic view in full detail. rpc GetGeographicView(GetGeographicViewRequest) returns (google.ads.googleads.v5.resources.GeographicView) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/google_ads_field_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/google_ads_field_service.proto index 4e06894dc..c9ee7ef26 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/google_ads_field_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/google_ads_field_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to fetch Google Ads API fields. service GoogleAdsFieldService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns just the requested field. rpc GetGoogleAdsField(GetGoogleAdsFieldRequest) returns (google.ads.googleads.v5.resources.GoogleAdsField) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/google_ads_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/google_ads_service.proto index 6560f779c..31faccb09 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/google_ads_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/google_ads_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -188,6 +188,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to fetch data and metrics across resources. service GoogleAdsService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns all rows that match the search query. rpc Search(SearchGoogleAdsRequest) returns (SearchGoogleAdsResponse) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/group_placement_view_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/group_placement_view_service.proto index 9f0877837..300653944 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/group_placement_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/group_placement_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to fetch Group Placement views. service GroupPlacementViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested Group Placement view in full detail. rpc GetGroupPlacementView(GetGroupPlacementViewRequest) returns (google.ads.googleads.v5.resources.GroupPlacementView) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/hotel_group_view_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/hotel_group_view_service.proto index db8a1cb85..9246b1f95 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/hotel_group_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/hotel_group_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage Hotel Group Views. service HotelGroupViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested Hotel Group View in full detail. rpc GetHotelGroupView(GetHotelGroupViewRequest) returns (google.ads.googleads.v5.resources.HotelGroupView) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/hotel_performance_view_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/hotel_performance_view_service.proto index c4634e057..3a20d60d0 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/hotel_performance_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/hotel_performance_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage Hotel Performance Views. service HotelPerformanceViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested Hotel Performance View in full detail. rpc GetHotelPerformanceView(GetHotelPerformanceViewRequest) returns (google.ads.googleads.v5.resources.HotelPerformanceView) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/income_range_view_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/income_range_view_service.proto index ed12fd7b7..4a4a8acba 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/income_range_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/income_range_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage income range views. service IncomeRangeViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested income range view in full detail. rpc GetIncomeRangeView(GetIncomeRangeViewRequest) returns (google.ads.googleads.v5.resources.IncomeRangeView) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/invoice_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/invoice_service.proto index b9c2226b7..ebb12f15d 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/invoice_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/invoice_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // A service to fetch invoices issued for a billing setup during a given month. service InvoiceService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns all invoices associated with a billing setup, for a given month. rpc ListInvoices(ListInvoicesRequest) returns (ListInvoicesResponse) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/keyword_plan_ad_group_keyword_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/keyword_plan_ad_group_keyword_service.proto index 572b5e229..9837be206 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/keyword_plan_ad_group_keyword_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/keyword_plan_ad_group_keyword_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -42,6 +42,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // includes campaign negative keywords and ad group negative keywords. service KeywordPlanAdGroupKeywordService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested Keyword Plan ad group keyword in full detail. rpc GetKeywordPlanAdGroupKeyword(GetKeywordPlanAdGroupKeywordRequest) returns (google.ads.googleads.v5.resources.KeywordPlanAdGroupKeyword) { @@ -117,7 +118,9 @@ message KeywordPlanAdGroupKeywordOperation { // keyword is expected, in this format: // // `customers/{customer_id}/keywordPlanAdGroupKeywords/{kp_ad_group_keyword_id}` - string remove = 3; + string remove = 3 [(google.api.resource_reference) = { + type: "googleads.googleapis.com/KeywordPlanAdGroupKeyword" + }]; } } diff --git a/third_party/googleapis/google/ads/googleads/v5/services/keyword_plan_ad_group_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/keyword_plan_ad_group_service.proto index fabb54660..f8ad4a2e5 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/keyword_plan_ad_group_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/keyword_plan_ad_group_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,6 +38,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage Keyword Plan ad groups. service KeywordPlanAdGroupService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested Keyword Plan ad group in full detail. rpc GetKeywordPlanAdGroup(GetKeywordPlanAdGroupRequest) returns (google.ads.googleads.v5.resources.KeywordPlanAdGroup) { @@ -108,7 +109,9 @@ message KeywordPlanAdGroupOperation { // is expected, in this format: // // `customers/{customer_id}/keywordPlanAdGroups/{kp_ad_group_id}` - string remove = 3; + string remove = 3 [(google.api.resource_reference) = { + type: "googleads.googleapis.com/KeywordPlanAdGroup" + }]; } } diff --git a/third_party/googleapis/google/ads/googleads/v5/services/keyword_plan_campaign_keyword_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/keyword_plan_campaign_keyword_service.proto index f8fc58a2c..d33a9caaf 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/keyword_plan_campaign_keyword_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/keyword_plan_campaign_keyword_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -41,6 +41,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // campaign negative keywords and ad group negative keywords. service KeywordPlanCampaignKeywordService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested plan in full detail. rpc GetKeywordPlanCampaignKeyword(GetKeywordPlanCampaignKeywordRequest) returns (google.ads.googleads.v5.resources.KeywordPlanCampaignKeyword) { @@ -115,7 +116,9 @@ message KeywordPlanCampaignKeywordOperation { // keywords expected in this format: // // `customers/{customer_id}/keywordPlanCampaignKeywords/{kp_campaign_keyword_id}` - string remove = 3; + string remove = 3 [(google.api.resource_reference) = { + type: "googleads.googleapis.com/KeywordPlanCampaignKeyword" + }]; } } diff --git a/third_party/googleapis/google/ads/googleads/v5/services/keyword_plan_campaign_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/keyword_plan_campaign_service.proto index de47761ea..f3664f633 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/keyword_plan_campaign_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/keyword_plan_campaign_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,6 +38,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage Keyword Plan campaigns. service KeywordPlanCampaignService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested Keyword Plan campaign in full detail. rpc GetKeywordPlanCampaign(GetKeywordPlanCampaignRequest) returns (google.ads.googleads.v5.resources.KeywordPlanCampaign) { @@ -109,7 +110,9 @@ message KeywordPlanCampaignOperation { // is expected, in this format: // // `customers/{customer_id}/keywordPlanCampaigns/{keywordPlan_campaign_id}` - string remove = 3; + string remove = 3 [(google.api.resource_reference) = { + type: "googleads.googleapis.com/KeywordPlanCampaign" + }]; } } diff --git a/third_party/googleapis/google/ads/googleads/v5/services/keyword_plan_idea_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/keyword_plan_idea_service.proto index 85a301e3e..a36203905 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/keyword_plan_idea_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/keyword_plan_idea_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,6 +37,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to generate keyword ideas. service KeywordPlanIdeaService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns a list of keyword ideas. rpc GenerateKeywordIdeas(GenerateKeywordIdeasRequest) returns (GenerateKeywordIdeaResponse) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/keyword_plan_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/keyword_plan_service.proto index 4169b15fb..6b97aac2e 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/keyword_plan_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/keyword_plan_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -40,6 +40,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage keyword plans. service KeywordPlanService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested plan in full detail. rpc GetKeywordPlan(GetKeywordPlanRequest) returns (google.ads.googleads.v5.resources.KeywordPlan) { @@ -156,7 +157,9 @@ message KeywordPlanOperation { // expected in this format: // // `customers/{customer_id}/keywordPlans/{keyword_plan_id}` - string remove = 3; + string remove = 3 [(google.api.resource_reference) = { + type: "googleads.googleapis.com/KeywordPlan" + }]; } } @@ -181,7 +184,12 @@ message MutateKeywordPlansResult { // Request message for [KeywordPlanService.GenerateForecastCurve][google.ads.googleads.v5.services.KeywordPlanService.GenerateForecastCurve]. message GenerateForecastCurveRequest { // Required. The resource name of the keyword plan to be forecasted. - string keyword_plan = 1 [(google.api.field_behavior) = REQUIRED]; + string keyword_plan = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/KeywordPlan" + } + ]; } // Response message for [KeywordPlanService.GenerateForecastCurve][google.ads.googleads.v5.services.KeywordPlanService.GenerateForecastCurve]. @@ -194,7 +202,12 @@ message GenerateForecastCurveResponse { // Request message for [KeywordPlanService.GenerateForecastTimeSeries][google.ads.googleads.v5.services.KeywordPlanService.GenerateForecastTimeSeries]. message GenerateForecastTimeSeriesRequest { // Required. The resource name of the keyword plan to be forecasted. - string keyword_plan = 1 [(google.api.field_behavior) = REQUIRED]; + string keyword_plan = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/KeywordPlan" + } + ]; } // Response message for [KeywordPlanService.GenerateForecastTimeSeries][google.ads.googleads.v5.services.KeywordPlanService.GenerateForecastTimeSeries]. @@ -207,7 +220,12 @@ message GenerateForecastTimeSeriesResponse { // Request message for [KeywordPlanService.GenerateForecastMetrics][google.ads.googleads.v5.services.KeywordPlanService.GenerateForecastMetrics]. message GenerateForecastMetricsRequest { // Required. The resource name of the keyword plan to be forecasted. - string keyword_plan = 1 [(google.api.field_behavior) = REQUIRED]; + string keyword_plan = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/KeywordPlan" + } + ]; } // Response message for [KeywordPlanService.GenerateForecastMetrics][google.ads.googleads.v5.services.KeywordPlanService.GenerateForecastMetrics]. @@ -324,7 +342,12 @@ message ForecastMetrics { message GenerateHistoricalMetricsRequest { // Required. The resource name of the keyword plan of which historical metrics are // requested. - string keyword_plan = 1 [(google.api.field_behavior) = REQUIRED]; + string keyword_plan = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/KeywordPlan" + } + ]; } // Response message for [KeywordPlanService.GenerateHistoricalMetrics][google.ads.googleads.v5.services.KeywordPlanService.GenerateHistoricalMetrics]. diff --git a/third_party/googleapis/google/ads/googleads/v5/services/keyword_view_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/keyword_view_service.proto index e0f367a14..6357a5155 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/keyword_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/keyword_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage keyword views. service KeywordViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested keyword view in full detail. rpc GetKeywordView(GetKeywordViewRequest) returns (google.ads.googleads.v5.resources.KeywordView) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/label_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/label_service.proto index 5cc180b1d..9b39f33d5 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/label_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/label_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,6 +37,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage labels. service LabelService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested label in full detail. rpc GetLabel(GetLabelRequest) returns (google.ads.googleads.v5.resources.Label) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/landing_page_view_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/landing_page_view_service.proto index fd19741b0..5296b90cc 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/landing_page_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/landing_page_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to fetch landing page views. service LandingPageViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested landing page view in full detail. rpc GetLandingPageView(GetLandingPageViewRequest) returns (google.ads.googleads.v5.resources.LandingPageView) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/language_constant_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/language_constant_service.proto index 8a396c61e..5761e2cbf 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/language_constant_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/language_constant_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to fetch language constants. service LanguageConstantService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested language constant. rpc GetLanguageConstant(GetLanguageConstantRequest) returns (google.ads.googleads.v5.resources.LanguageConstant) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/location_view_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/location_view_service.proto index c6038e972..2fdd58228 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/location_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/location_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to fetch location views. service LocationViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested location view in full detail. rpc GetLocationView(GetLocationViewRequest) returns (google.ads.googleads.v5.resources.LocationView) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/managed_placement_view_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/managed_placement_view_service.proto index e35ba077c..7627c1a3e 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/managed_placement_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/managed_placement_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage Managed Placement views. service ManagedPlacementViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested Managed Placement view in full detail. rpc GetManagedPlacementView(GetManagedPlacementViewRequest) returns (google.ads.googleads.v5.resources.ManagedPlacementView) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/media_file_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/media_file_service.proto index fd9193a94..a2ddea79b 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/media_file_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/media_file_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,6 +38,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage media files. service MediaFileService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested media file in full detail. rpc GetMediaFile(GetMediaFileRequest) returns (google.ads.googleads.v5.resources.MediaFile) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/merchant_center_link_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/merchant_center_link_service.proto index bd906424e..742a1681f 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/merchant_center_link_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/merchant_center_link_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,6 +38,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Merchant Center. service MerchantCenterLinkService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns Merchant Center links available for this customer. rpc ListMerchantCenterLinks(ListMerchantCenterLinksRequest) returns (ListMerchantCenterLinksResponse) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/mobile_app_category_constant_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/mobile_app_category_constant_service.proto index 61a54443b..a0880bf08 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/mobile_app_category_constant_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/mobile_app_category_constant_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -34,6 +34,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to fetch mobile app category constants. service MobileAppCategoryConstantService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested mobile app category constant. rpc GetMobileAppCategoryConstant(GetMobileAppCategoryConstantRequest) returns (google.ads.googleads.v5.resources.MobileAppCategoryConstant) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/mobile_device_constant_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/mobile_device_constant_service.proto index e0f44a543..74dcb6560 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/mobile_device_constant_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/mobile_device_constant_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to fetch mobile device constants. service MobileDeviceConstantService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested mobile device constant in full detail. rpc GetMobileDeviceConstant(GetMobileDeviceConstantRequest) returns (google.ads.googleads.v5.resources.MobileDeviceConstant) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/offline_user_data_job_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/offline_user_data_job_service.proto index c0671bf94..9b3efa574 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/offline_user_data_job_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/offline_user_data_job_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -40,6 +40,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage offline user data jobs. service OfflineUserDataJobService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Creates an offline user data job. rpc CreateOfflineUserDataJob(CreateOfflineUserDataJobRequest) returns (CreateOfflineUserDataJobResponse) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/operating_system_version_constant_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/operating_system_version_constant_service.proto index 9d6456425..f32b9d431 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/operating_system_version_constant_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/operating_system_version_constant_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to fetch Operating System Version constants. service OperatingSystemVersionConstantService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested OS version constant in full detail. rpc GetOperatingSystemVersionConstant(GetOperatingSystemVersionConstantRequest) returns (google.ads.googleads.v5.resources.OperatingSystemVersionConstant) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/paid_organic_search_term_view_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/paid_organic_search_term_view_service.proto index 4091e5478..27b28022d 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/paid_organic_search_term_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/paid_organic_search_term_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to fetch paid organic search term views. service PaidOrganicSearchTermViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested paid organic search term view in full detail. rpc GetPaidOrganicSearchTermView(GetPaidOrganicSearchTermViewRequest) returns (google.ads.googleads.v5.resources.PaidOrganicSearchTermView) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/parental_status_view_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/parental_status_view_service.proto index 172808866..6a498e768 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/parental_status_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/parental_status_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage parental status views. service ParentalStatusViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested parental status view in full detail. rpc GetParentalStatusView(GetParentalStatusViewRequest) returns (google.ads.googleads.v5.resources.ParentalStatusView) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/payments_account_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/payments_account_service.proto index 283ebe91d..d8ea60529 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/payments_account_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/payments_account_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // billing. service PaymentsAccountService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns all payments accounts associated with all managers // between the login customer ID and specified serving customer in the diff --git a/third_party/googleapis/google/ads/googleads/v5/services/product_bidding_category_constant_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/product_bidding_category_constant_service.proto index 3959a555c..18ba697f5 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/product_bidding_category_constant_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/product_bidding_category_constant_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to fetch Product Bidding Categories. service ProductBiddingCategoryConstantService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested Product Bidding Category in full detail. rpc GetProductBiddingCategoryConstant(GetProductBiddingCategoryConstantRequest) returns (google.ads.googleads.v5.resources.ProductBiddingCategoryConstant) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/product_group_view_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/product_group_view_service.proto index 508df09f7..0e60d4505 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/product_group_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/product_group_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage product group views. service ProductGroupViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested product group view in full detail. rpc GetProductGroupView(GetProductGroupViewRequest) returns (google.ads.googleads.v5.resources.ProductGroupView) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/reach_plan_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/reach_plan_service.proto index eeeccbd51..ffd4d131c 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/reach_plan_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/reach_plan_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -44,6 +44,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // certain duration with a defined budget. service ReachPlanService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the list of plannable locations (for example, countries & DMAs). rpc ListPlannableLocations(ListPlannableLocationsRequest) returns (ListPlannableLocationsResponse) { @@ -130,7 +131,7 @@ message ListPlannableProductsResponse { // The metadata associated with an available plannable product. message ProductMetadata { - // The code associated with the ad product. E.g. Trueview, Bumper + // The code associated with the ad product. E.g. BUMPER, TRUEVIEW_IN_STREAM // To list the available plannable product codes use ListPlannableProducts. google.protobuf.StringValue plannable_product_code = 1; @@ -317,7 +318,8 @@ message CampaignDuration { // A product being planned for reach. message PlannedProduct { // Required. Selected product for planning. - // Plannable products codes can be obtained from ListPlannableProducts. + // The code associated with the ad product. E.g. Trueview, Bumper + // To list the available plannable product codes use ListPlannableProducts. google.protobuf.StringValue plannable_product_code = 1; // Required. Maximum budget allocation in micros for the selected product. diff --git a/third_party/googleapis/google/ads/googleads/v5/services/recommendation_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/recommendation_service.proto index ac17b60c1..97a3a584b 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/recommendation_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/recommendation_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -41,6 +41,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage recommendations. service RecommendationService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested recommendation in full detail. rpc GetRecommendation(GetRecommendationRequest) returns (google.ads.googleads.v5.resources.Recommendation) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/remarketing_action_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/remarketing_action_service.proto index 5592fbc73..dfb101e04 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/remarketing_action_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/remarketing_action_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,6 +38,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage remarketing actions. service RemarketingActionService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested remarketing action in full detail. rpc GetRemarketingAction(GetRemarketingActionRequest) returns (google.ads.googleads.v5.resources.RemarketingAction) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/search_term_view_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/search_term_view_service.proto index 0a04bf0a5..8e0025282 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/search_term_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/search_term_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage search term views. service SearchTermViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the attributes of the requested search term view. rpc GetSearchTermView(GetSearchTermViewRequest) returns (google.ads.googleads.v5.resources.SearchTermView) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/shared_criterion_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/shared_criterion_service.proto index f6a1ea34c..545f864d9 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/shared_criterion_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/shared_criterion_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,6 +37,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage shared criteria. service SharedCriterionService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested shared criterion in full detail. rpc GetSharedCriterion(GetSharedCriterionRequest) returns (google.ads.googleads.v5.resources.SharedCriterion) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/shared_set_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/shared_set_service.proto index 73c1811d2..0ecfdb5ad 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/shared_set_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/shared_set_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -39,6 +39,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage shared sets. service SharedSetService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested shared set in full detail. rpc GetSharedSet(GetSharedSetRequest) returns (google.ads.googleads.v5.resources.SharedSet) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/shopping_performance_view_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/shopping_performance_view_service.proto index 7a54181db..891f10abc 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/shopping_performance_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/shopping_performance_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to fetch Shopping performance views. service ShoppingPerformanceViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested Shopping performance view in full detail. rpc GetShoppingPerformanceView(GetShoppingPerformanceViewRequest) returns (google.ads.googleads.v5.resources.ShoppingPerformanceView) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/third_party_app_analytics_link_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/third_party_app_analytics_link_service.proto index 17a563821..9b0270785 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/third_party_app_analytics_link_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/third_party_app_analytics_link_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -34,6 +34,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // app analytics. service ThirdPartyAppAnalyticsLinkService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the third party app analytics link in full detail. rpc GetThirdPartyAppAnalyticsLink(GetThirdPartyAppAnalyticsLinkRequest) returns (google.ads.googleads.v5.resources.ThirdPartyAppAnalyticsLink) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/topic_constant_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/topic_constant_service.proto index d14d977e0..479edcd70 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/topic_constant_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/topic_constant_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to fetch topic constants. service TopicConstantService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested topic constant in full detail. rpc GetTopicConstant(GetTopicConstantRequest) returns (google.ads.googleads.v5.resources.TopicConstant) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/topic_view_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/topic_view_service.proto index fb2153247..2ed088e52 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/topic_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/topic_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage topic views. service TopicViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested topic view in full detail. rpc GetTopicView(GetTopicViewRequest) returns (google.ads.googleads.v5.resources.TopicView) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/user_data_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/user_data_service.proto index fde1da8a9..995dc16a5 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/user_data_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/user_data_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,6 +37,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Accessible only to customers on the allow-list. service UserDataService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Uploads the given user data. rpc UploadUserData(UploadUserDataRequest) returns (UploadUserDataResponse) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/user_interest_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/user_interest_service.proto index 521fd6675..429d8a5b6 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/user_interest_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/user_interest_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to fetch Google Ads User Interest. service UserInterestService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested user interest in full detail rpc GetUserInterest(GetUserInterestRequest) returns (google.ads.googleads.v5.resources.UserInterest) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/user_list_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/user_list_service.proto index 02801c783..a3ec10777 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/user_list_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/user_list_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,6 +38,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage user lists. service UserListService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested user list. rpc GetUserList(GetUserListRequest) returns (google.ads.googleads.v5.resources.UserList) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/user_location_view_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/user_location_view_service.proto index 9e3607288..49b900296 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/user_location_view_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/user_location_view_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage user location views. service UserLocationViewService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested user location view in full detail. rpc GetUserLocationView(GetUserLocationViewRequest) returns (google.ads.googleads.v5.resources.UserLocationView) { diff --git a/third_party/googleapis/google/ads/googleads/v5/services/video_service.proto b/third_party/googleapis/google/ads/googleads/v5/services/video_service.proto index 492f677d0..19a2ed5ed 100644 --- a/third_party/googleapis/google/ads/googleads/v5/services/video_service.proto +++ b/third_party/googleapis/google/ads/googleads/v5/services/video_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,6 +36,7 @@ option ruby_package = "Google::Ads::GoogleAds::V5::Services"; // Service to manage videos. service VideoService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Returns the requested video in full detail. rpc GetVideo(GetVideoRequest) returns (google.ads.googleads.v5.resources.Video) { diff --git a/third_party/googleapis/google/ads/googleads/v6/BUILD.bazel b/third_party/googleapis/google/ads/googleads/v6/BUILD.bazel new file mode 100644 index 000000000..3f89da238 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/BUILD.bazel @@ -0,0 +1,306 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package(default_visibility = ["//visibility:public"]) + +exports_files(["googleads_grpc_service_config.json"] + ["*.yaml"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") +load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info") + +proto_library( + name = "googleads_proto", + srcs = [], + deps = [ + "//google/ads/googleads/v6/common:common_proto", + "//google/ads/googleads/v6/enums:enums_proto", + "//google/ads/googleads/v6/errors:errors_proto", + "//google/ads/googleads/v6/resources:resources_proto", + "//google/ads/googleads/v6/services:services_proto", + ], +) + +proto_library_with_info( + name = "googleads_proto_with_info", + deps = [ + ":googleads_proto", + ], +) + +############################################################################## +# Java (gapic-generator-java) +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_gapic_assembly_gradle_pkg", + "java_gapic_library", + "java_gapic_test", +) + +java_gapic_library( + name = "googleads_java_gapic", + srcs = [ + ":googleads_proto_with_info", + ], + gapic_yaml = "googleads_gapic.yaml", + grpc_service_config = ":googleads_grpc_service_config.json", + deps = [ + "//google/ads/googleads/v6/common:common_java_proto", + "//google/ads/googleads/v6/enums:enums_java_proto", + "//google/ads/googleads/v6/resources:resources_java_proto", + "//google/ads/googleads/v6/services:services_java_grpc", + "//google/ads/googleads/v6/services:services_java_proto", + ], +) + +# TODO(ohren): Add more test classes when java_gapic_test is able to run more +# than a single test. Having at least one verifies proper compilation at least. +java_gapic_test( + name = "googleads_java_gapic_suite", + test_classes = [ + "com.google.ads.googleads.v6.services.CampaignServiceClientTest", + ], + runtime_deps = [":googleads_java_gapic_test"], +) + +java_gapic_assembly_gradle_pkg( + name = "googleads-java", + deps = [ + ":googleads_java_gapic", + "//google/ads/googleads/v6:googleads_proto", + "//google/ads/googleads/v6/common:common_java_proto", + "//google/ads/googleads/v6/enums:enums_java_proto", + "//google/ads/googleads/v6/errors:errors_java_proto", + "//google/ads/googleads/v6/resources:resources_java_proto", + "//google/ads/googleads/v6/services:services_java_grpc", + "//google/ads/googleads/v6/services:services_java_proto", + ], +) + +############################################################################## +# PHP (gapic-generator, GAPICv2) +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "php_gapic_assembly_pkg", + "php_gapic_library", + "php_grpc_library", + "php_proto_library", +) + +php_proto_library( + name = "googleads_php_mono_proto", + plugin_args = ["aggregate_metadata=google.ads.googleads"], + deps = [":googleads_proto"], +) + +php_grpc_library( + name = "googleads_php_mono_grpc", + srcs = [":googleads_proto"], + deps = [":googleads_php_mono_proto"], +) + +php_gapic_library( + name = "googleads_php_mono_gapic", + src = ":googleads_proto_with_info", + gapic_yaml = "googleads_gapic.yaml", + grpc_service_config = "googleads_grpc_service_config.json", + package = "google.ads.googleads.v6", + service_yaml = "googleads_v6.yaml", + deps = [ + ":googleads_php_mono_grpc", + ":googleads_php_mono_proto", + ], +) + +php_gapic_assembly_pkg( + name = "googleads-php-mono", + deps = [ + ":googleads_php_mono_gapic", + ":googleads_php_mono_grpc", + ":googleads_php_mono_proto", + ], +) + +############################################################################## +# PHP (gapic-generator-php) +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "php_gapic_assembly_pkg2", + "php_gapic_library2", + "php_grpc_library2", + "php_proto_library2", +) + +php_proto_library2( + name = "googleads_php_micro_proto", + plugin_args = ["aggregate_metadata=google.ads.googleads"], + deps = [":googleads_proto"], +) + +php_grpc_library2( + name = "googleads_php_micro_grpc", + srcs = [":googleads_proto"], + deps = [":googleads_php_micro_proto"], +) + +php_gapic_library2( + name = "googleads_php_micro_gapic", + srcs = [":googleads_proto"], + gapic_yaml = "googleads_gapic.yaml", + grpc_service_config = "googleads_grpc_service_config.json", + service_yaml = "googleads_v6.yaml", + deps = [ + ":googleads_php_micro_grpc", + ":googleads_php_micro_proto", + ], +) + +php_gapic_assembly_pkg2( + name = "googleads-php-micro", + deps = [ + ":googleads_php_micro_gapic", + ":googleads_php_micro_grpc", + ":googleads_php_micro_proto", + ], +) + +############################################################################## +# C# +############################################################################## +load("@gapic_generator_csharp//rules_csharp_gapic:csharp_gapic.bzl", "csharp_gapic_library") +load("@gapic_generator_csharp//rules_csharp_gapic:csharp_gapic_pkg.bzl", "csharp_gapic_assembly_pkg") + +csharp_gapic_library( + name = "googleads_csharp_gapic", + srcs = [ + ":googleads_proto_with_info", + ], + deps = [ + "//google/ads/googleads/v6/services:services_csharp_grpc", + ], +) + +csharp_gapic_assembly_pkg( + name = "googleads-csharp", + deps = [ + ":googleads_csharp_gapic", + "//google/ads/googleads/v6/common:common_csharp_proto", + "//google/ads/googleads/v6/enums:enums_csharp_proto", + "//google/ads/googleads/v6/errors:errors_csharp_proto", + "//google/ads/googleads/v6/resources:resources_csharp_proto", + "//google/ads/googleads/v6/services:services_csharp_grpc", + "//google/ads/googleads/v6/services:services_csharp_proto", + ], +) + +############################################################################## +# Ruby +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "ruby_ads_gapic_library", + "ruby_gapic_assembly_pkg", +) + +ruby_ads_gapic_library( + name = "googleads_ruby_gapic", + srcs = ["googleads_proto_with_info"], + extra_protoc_parameters = [ + ":gem.:name=google-ads-googleads", + ":defaults.:service.:default_host=googleads.googleapis.com", + ":overrides.:namespace.Googleads=GoogleAds", + ], + grpc_service_config = "googleads_grpc_service_config.json", +) + +ruby_gapic_assembly_pkg( + name = "googleads-ruby", + deps = [ + ":googleads_ruby_gapic", + "//google/ads/googleads/v6/common:common_ruby_proto", + "//google/ads/googleads/v6/enums:enums_ruby_proto", + "//google/ads/googleads/v6/errors:errors_ruby_proto", + "//google/ads/googleads/v6/resources:resources_ruby_proto", + "//google/ads/googleads/v6/services:services_ruby_grpc", + "//google/ads/googleads/v6/services:services_ruby_proto", + ], +) + +############################################################################## +# Python (gapic-generator-python) +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "py_gapic_assembly_pkg", + "py_gapic_library", +) + +py_gapic_library( + name = "googleads_py_gapic", + srcs = [":googleads_proto_with_info"], + grpc_service_config = "googleads_grpc_service_config.json", + opt_args = [ + "old-naming", + "lazy-import", + "python-gapic-name=googleads", + "python-gapic-templates=ads-templates", + ], +) + +py_gapic_assembly_pkg( + name = "googleads-py", + deps = [ + ":googleads_py_gapic", + "//google/ads/googleads/v6/common:common_py_proto", + "//google/ads/googleads/v6/enums:enums_py_proto", + "//google/ads/googleads/v6/errors:errors_py_proto", + "//google/ads/googleads/v6/resources:resources_py_proto", + "//google/ads/googleads/v6/services:services_py_grpc", + "//google/ads/googleads/v6/services:services_py_proto", + ], +) + +############################################################################## +# Node.js +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", +) + +nodejs_gapic_library( + name = "googleads_nodejs_gapic", + package_name = "google-ads", + src = ":googleads_proto_with_info", + extra_protoc_parameters = ["metadata"], + grpc_service_config = "googleads_grpc_service_config.json", + main_service = "GoogleAdsService", + package = "google.ads.googleads.v6", + service_yaml = "googleads_v6.yaml", + deps = [], +) + +nodejs_gapic_assembly_pkg( + name = "googleads-nodejs", + deps = [ + ":googleads_nodejs_gapic", + ":googleads_proto", + ], +) diff --git a/third_party/googleapis/google/ads/googleads/v6/common/BUILD.bazel b/third_party/googleapis/google/ads/googleads/v6/common/BUILD.bazel new file mode 100644 index 000000000..d0468d951 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/common/BUILD.bazel @@ -0,0 +1,94 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") + +# TODO(ohren): Change srcs to use an enumeration of each individual proto +# instead of *.proto globbing once the build file generator supports +# subpackages. +proto_library( + name = "common_proto", + srcs = glob(["*.proto"]), + deps = [ + "//google/ads/googleads/v6/enums:enums_proto", + "//google/api:annotations_proto", + "//google/api:field_behavior_proto", + "//google/api:resource_proto", + "@com_google_protobuf//:wrappers_proto", + ], +) + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_proto_library", +) + +java_proto_library( + name = "common_java_proto", + deps = [":common_proto"], +) + +############################################################################## +# PHP +############################################################################## + +# PHP targets are in the parent directory's BUILD.bazel file to facilitate +# aggregating metadata using a single underlying call to protoc. + +############################################################################## +# C# +############################################################################## +load( + "@gapic_generator_csharp//rules_csharp_gapic:csharp_gapic.bzl", + "csharp_proto_library", +) + +csharp_proto_library( + name = "common_csharp_proto", + deps = [":common_proto"], +) + +############################################################################## +# Ruby +############################################################################## +load( + "@gapic_generator_ruby//rules_ruby_gapic:ruby_gapic.bzl", + "ruby_proto_library", +) + +ruby_proto_library( + name = "common_ruby_proto", + deps = [":common_proto"], +) + +############################################################################## +# Python +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "py_proto_library", +) + +py_proto_library( + name = "common_py_proto", + deps = [":common_proto"], +) diff --git a/third_party/googleapis/google/ads/googleads/v6/common/ad_asset.proto b/third_party/googleapis/google/ads/googleads/v6/common/ad_asset.proto new file mode 100644 index 000000000..a1618cbaf --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/common/ad_asset.proto @@ -0,0 +1,69 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.common; + +import "google/ads/googleads/v6/common/asset_policy.proto"; +import "google/ads/googleads/v6/enums/asset_performance_label.proto"; +import "google/ads/googleads/v6/enums/served_asset_field_type.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Common"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/common;common"; +option java_multiple_files = true; +option java_outer_classname = "AdAssetProto"; +option java_package = "com.google.ads.googleads.v6.common"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Common"; +option ruby_package = "Google::Ads::GoogleAds::V6::Common"; + +// Proto file describing assets used inside an ad. + +// A text asset used inside an ad. +message AdTextAsset { + // Asset text. + optional string text = 4; + + // The pinned field of the asset. This restricts the asset to only serve + // 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.v6.enums.ServedAssetFieldTypeEnum.ServedAssetFieldType pinned_field = 2; + + // The performance label of this text asset. + google.ads.googleads.v6.enums.AssetPerformanceLabelEnum.AssetPerformanceLabel asset_performance_label = 5; + + // The policy summary of this text asset. + AdAssetPolicySummary policy_summary_info = 6; +} + +// An image asset used inside an ad. +message AdImageAsset { + // The Asset resource name of this image. + optional string asset = 2; +} + +// A video asset used inside an ad. +message AdVideoAsset { + // The Asset resource name of this video. + optional string asset = 2; +} + +// A media bundle asset used inside an ad. +message AdMediaBundleAsset { + // The Asset resource name of this media bundle. + optional string asset = 2; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/common/ad_type_infos.proto b/third_party/googleapis/google/ads/googleads/v6/common/ad_type_infos.proto new file mode 100644 index 000000000..01852265f --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/common/ad_type_infos.proto @@ -0,0 +1,674 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.common; + +import "google/ads/googleads/v6/common/ad_asset.proto"; +import "google/ads/googleads/v6/enums/call_conversion_reporting_state.proto"; +import "google/ads/googleads/v6/enums/display_ad_format_setting.proto"; +import "google/ads/googleads/v6/enums/display_upload_product_type.proto"; +import "google/ads/googleads/v6/enums/legacy_app_install_ad_app_store.proto"; +import "google/ads/googleads/v6/enums/mime_type.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Common"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/common;common"; +option java_multiple_files = true; +option java_outer_classname = "AdTypeInfosProto"; +option java_package = "com.google.ads.googleads.v6.common"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Common"; +option ruby_package = "Google::Ads::GoogleAds::V6::Common"; + +// Proto file containing info messages for specific ad types. + +// A text ad. +message TextAdInfo { + // The headline of the ad. + optional string headline = 4; + + // The first line of the ad's description. + optional string description1 = 5; + + // The second line of the ad's description. + optional string description2 = 6; +} + +// An expanded text ad. +message ExpandedTextAdInfo { + // The first part of the ad's headline. + optional string headline_part1 = 8; + + // The second part of the ad's headline. + optional string headline_part2 = 9; + + // The third part of the ad's headline. + optional string headline_part3 = 10; + + // The description of the ad. + optional string description = 11; + + // The second description of the ad. + optional string description2 = 12; + + // The text that can appear alongside the ad's displayed URL. + optional string path1 = 13; + + // Additional text that can appear alongside the ad's displayed URL. + optional string path2 = 14; +} + +// A call-only ad. +message CallOnlyAdInfo { + // The country code in the ad. + optional string country_code = 13; + + // The phone number in the ad. + optional string phone_number = 14; + + // The business name in the ad. + optional string business_name = 15; + + // First headline in the ad. + optional string headline1 = 16; + + // Second headline in the ad. + optional string headline2 = 17; + + // The first line of the ad's description. + optional string description1 = 18; + + // The second line of the ad's description. + optional string description2 = 19; + + // Whether to enable call tracking for the creative. Enabling call + // tracking also enables call conversions. + optional bool call_tracked = 20; + + // Whether to disable call conversion for the creative. + // If set to `true`, disables call conversions even when `call_tracked` is + // `true`. + // If `call_tracked` is `false`, this field is ignored. + optional bool disable_call_conversion = 21; + + // The URL to be used for phone number verification. + optional string phone_number_verification_url = 22; + + // The conversion action to attribute a call conversion to. If not set a + // default conversion action is used. This field only has effect if + // call_tracked is set to true. Otherwise this field is ignored. + optional string conversion_action = 23; + + // 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.v6.enums.CallConversionReportingStateEnum.CallConversionReportingState conversion_reporting_state = 10; +} + +// An expanded dynamic search ad. +message ExpandedDynamicSearchAdInfo { + // The description of the ad. + optional string description = 3; + + // The second description of the ad. + optional string description2 = 4; +} + +// A hotel ad. +message HotelAdInfo { + +} + +// A Smart Shopping ad. +message ShoppingSmartAdInfo { + +} + +// A standard Shopping ad. +message ShoppingProductAdInfo { + +} + +// A Shopping Comparison Listing ad. +message ShoppingComparisonListingAdInfo { + // Headline of the ad. This field is required. Allowed length is between 25 + // and 45 characters. + optional string headline = 2; +} + +// A Gmail ad. +message GmailAdInfo { + // The Gmail teaser. + GmailTeaser teaser = 1; + + // The MediaFile resource name of the header image. Valid image types are GIF, + // JPEG and PNG. The minimum size is 300x100 pixels and the aspect ratio must + // be between 3:1 and 5:1 (+-1%). + optional string header_image = 10; + + // The MediaFile resource name of the marketing image. Valid image types are + // GIF, JPEG and PNG. The image must either be landscape with a minimum size + // of 600x314 pixels and aspect ratio of 600:314 (+-1%) or square with a + // minimum size of 300x300 pixels and aspect ratio of 1:1 (+-1%) + optional string marketing_image = 11; + + // Headline of the marketing image. + optional string marketing_image_headline = 12; + + // Description of the marketing image. + optional string marketing_image_description = 13; + + // Display-call-to-action of the marketing image. + DisplayCallToAction marketing_image_display_call_to_action = 6; + + // Product images. Up to 15 images are supported. + repeated ProductImage product_images = 7; + + // Product videos. Up to 7 videos are supported. At least one product video + // or a marketing image must be specified. + repeated ProductVideo product_videos = 8; +} + +// Gmail teaser data. The teaser is a small header that acts as an invitation +// to view the rest of the ad (the body). +message GmailTeaser { + // Headline of the teaser. + optional string headline = 5; + + // Description of the teaser. + optional string description = 6; + + // Business name of the advertiser. + optional string business_name = 7; + + // The MediaFile resource name of the logo image. Valid image types are GIF, + // JPEG and PNG. The minimum size is 144x144 pixels and the aspect ratio must + // be 1:1 (+-1%). + optional string logo_image = 8; +} + +// Data for display call to action. The call to action is a piece of the ad +// that prompts the user to do something. Like clicking a link or making a phone +// call. +message DisplayCallToAction { + // Text for the display-call-to-action. + optional string text = 5; + + // Text color for the display-call-to-action in hexadecimal, e.g. #ffffff for + // white. + optional string text_color = 6; + + // Identifies the url collection in the ad.url_collections field. If not set + // the url defaults to final_url. + optional string url_collection_id = 7; +} + +// Product image specific data. +message ProductImage { + // The MediaFile resource name of the product image. Valid image types are + // GIF, JPEG and PNG. The minimum size is 300x300 pixels and the aspect ratio + // must be 1:1 (+-1%). + optional string product_image = 4; + + // Description of the product. + optional string description = 5; + + // Display-call-to-action of the product image. + DisplayCallToAction display_call_to_action = 3; +} + +// Product video specific data. +message ProductVideo { + // The MediaFile resource name of a video which must be hosted on YouTube. + optional string product_video = 2; +} + +// An image ad. +message ImageAdInfo { + // Width in pixels of the full size image. + optional int64 pixel_width = 15; + + // Height in pixels of the full size image. + optional int64 pixel_height = 16; + + // URL of the full size image. + optional string image_url = 17; + + // Width in pixels of the preview size image. + optional int64 preview_pixel_width = 18; + + // Height in pixels of the preview size image. + optional int64 preview_pixel_height = 19; + + // URL of the preview size image. + optional string preview_image_url = 20; + + // The mime type of the image. + google.ads.googleads.v6.enums.MimeTypeEnum.MimeType mime_type = 10; + + // The name of the image. If the image was created from a MediaFile, this is + // the MediaFile's name. If the image was created from bytes, this is empty. + optional string name = 21; + + // The image to create the ImageAd from. This can be specified in one of + // two ways. + // 1. An existing MediaFile resource. + // 2. The raw image data as bytes. + oneof image { + // The MediaFile resource to use for the image. + string media_file = 12; + + // Raw image data as bytes. + bytes data = 13; + + // An ad ID to copy the image from. + int64 ad_id_to_copy_image_from = 14; + } +} + +// Representation of video bumper in-stream ad format (very short in-stream +// non-skippable video ad). +message VideoBumperInStreamAdInfo { + // The MediaFile resource name of the companion banner used with the ad. + optional string companion_banner = 2; +} + +// Representation of video non-skippable in-stream ad format (15 second +// in-stream non-skippable video ad). +message VideoNonSkippableInStreamAdInfo { + // The MediaFile resource name of the companion banner used with the ad. + optional string companion_banner = 2; +} + +// 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 +// the video). +message VideoTrueViewInStreamAdInfo { + // Label on the CTA (call-to-action) button taking the user to the video ad's + // final URL. + // Required for TrueView for action campaigns, optional otherwise. + optional string action_button_label = 4; + + // Additional text displayed with the CTA (call-to-action) button to give + // context and encourage clicking on the button. + optional string action_headline = 5; + + // The MediaFile resource name of the companion banner used with the ad. + optional string companion_banner = 6; +} + +// Representation of video out-stream ad format (ad shown alongside a feed +// with automatic playback, without sound). +message VideoOutstreamAdInfo { + // The headline of the ad. + optional string headline = 3; + + // The description line. + optional string description = 4; +} + +// Representation of video TrueView discovery ad format. +message VideoTrueViewDiscoveryAdInfo { + // The headline of the ad. + optional string headline = 4; + + // First text line for a TrueView video discovery ad. + optional string description1 = 5; + + // Second text line for a TrueView video discovery ad. + optional string description2 = 6; +} + +// A video ad. +message VideoAdInfo { + // The MediaFile resource to use for the video. + optional string media_file = 7; + + // Format-specific schema for the different video formats. + oneof format { + // Video TrueView in-stream ad format. + VideoTrueViewInStreamAdInfo in_stream = 2; + + // Video bumper in-stream ad format. + VideoBumperInStreamAdInfo bumper = 3; + + // Video out-stream ad format. + VideoOutstreamAdInfo out_stream = 4; + + // Video non-skippable in-stream ad format. + VideoNonSkippableInStreamAdInfo non_skippable = 5; + + // Video TrueView discovery ad format. + VideoTrueViewDiscoveryAdInfo discovery = 6; + } +} + +// A video responsive ad. +message VideoResponsiveAdInfo { + // List of text assets used for the short headline, e.g. the "Call To Action" + // banner. Currently, only a single value for the short headline is supported. + repeated AdTextAsset headlines = 1; + + // List of text assets used for the long headline. + // Currently, only a single value for the long headline is supported. + repeated AdTextAsset long_headlines = 2; + + // List of text assets used for the description. + // Currently, only a single value for the description is supported. + repeated AdTextAsset descriptions = 3; + + // List of text assets used for the button, e.g. the "Call To Action" button. + // Currently, only a single value for the button is supported. + repeated AdTextAsset call_to_actions = 4; + + // List of YouTube video assets used for the ad. + // Currently, only a single value for the YouTube video asset is supported. + repeated AdVideoAsset videos = 5; + + // List of image assets used for the companion banner. + // Currently, only a single value for the companion banner asset is supported. + repeated AdImageAsset companion_banners = 6; +} + +// A responsive search ad. +// +// Responsive search ads let you create an ad that adapts to show more text, and +// more relevant messages, to your customers. Enter multiple headlines and +// descriptions when creating a responsive search ad, and over time, Google Ads +// will automatically test different combinations and learn which combinations +// perform best. By adapting your ad's content to more closely match potential +// customers' search terms, responsive search ads may improve your campaign's +// performance. +// +// More information at https://support.google.com/google-ads/answer/7684791 +message ResponsiveSearchAdInfo { + // List of text assets for headlines. When the ad serves the headlines will + // be selected from this list. + repeated AdTextAsset headlines = 1; + + // List of text assets for descriptions. When the ad serves the descriptions + // will be selected from this list. + repeated AdTextAsset descriptions = 2; + + // First part of text that may appear appended to the url displayed in the ad. + optional string path1 = 5; + + // Second part of text that may appear appended to the url displayed in the + // ad. This field can only be set when path1 is also set. + optional string path2 = 6; +} + +// A legacy responsive display ad. Ads of this type are labeled 'Responsive ads' +// in the Google Ads UI. +message LegacyResponsiveDisplayAdInfo { + // The short version of the ad's headline. + optional string short_headline = 16; + + // The long version of the ad's headline. + optional string long_headline = 17; + + // The description of the ad. + optional string description = 18; + + // The business name in the ad. + optional string business_name = 19; + + // Advertiser's consent to allow flexible color. When true, the ad may be + // served with different color if necessary. When false, the ad will be served + // with the specified colors or a neutral color. + // The default value is true. + // Must be true if main_color and accent_color are not set. + optional bool allow_flexible_color = 20; + + // The accent color of the ad in hexadecimal, e.g. #ffffff for white. + // If one of main_color and accent_color is set, the other is required as + // well. + optional string accent_color = 21; + + // The main color of the ad in hexadecimal, e.g. #ffffff for white. + // If one of main_color and accent_color is set, the other is required as + // well. + optional string main_color = 22; + + // The call-to-action text for the ad. + optional string call_to_action_text = 23; + + // The MediaFile resource name of the logo image used in the ad. + optional string logo_image = 24; + + // The MediaFile resource name of the square logo image used in the ad. + optional string square_logo_image = 25; + + // The MediaFile resource name of the marketing image used in the ad. + optional string marketing_image = 26; + + // The MediaFile resource name of the square marketing image used in the ad. + optional string square_marketing_image = 27; + + // Specifies which format the ad will be served in. Default is ALL_FORMATS. + google.ads.googleads.v6.enums.DisplayAdFormatSettingEnum.DisplayAdFormatSetting format_setting = 13; + + // Prefix before price. E.g. 'as low as'. + optional string price_prefix = 28; + + // Promotion text used for dyanmic formats of responsive ads. For example + // 'Free two-day shipping'. + optional string promo_text = 29; +} + +// An app ad. +message AppAdInfo { + // Mandatory ad text. + AdTextAsset mandatory_ad_text = 1; + + // List of text assets for headlines. When the ad serves the headlines will + // be selected from this list. + repeated AdTextAsset headlines = 2; + + // List of text assets for descriptions. When the ad serves the descriptions + // will be selected from this list. + repeated AdTextAsset descriptions = 3; + + // List of image assets that may be displayed with the ad. + repeated AdImageAsset images = 4; + + // List of YouTube video assets that may be displayed with the ad. + repeated AdVideoAsset youtube_videos = 5; + + // List of media bundle assets that may be used with the ad. + repeated AdMediaBundleAsset html5_media_bundles = 6; +} + +// App engagement ads allow you to write text encouraging a specific action in +// the app, like checking in, making a purchase, or booking a flight. +// They allow you to send users to a specific part of your app where they can +// find what they're looking for easier and faster. +message AppEngagementAdInfo { + // List of text assets for headlines. When the ad serves the headlines will + // be selected from this list. + repeated AdTextAsset headlines = 1; + + // List of text assets for descriptions. When the ad serves the descriptions + // will be selected from this list. + repeated AdTextAsset descriptions = 2; + + // List of image assets that may be displayed with the ad. + repeated AdImageAsset images = 3; + + // List of video assets that may be displayed with the ad. + repeated AdVideoAsset videos = 4; +} + +// A legacy app install ad that only can be used by a few select customers. +message LegacyAppInstallAdInfo { + // The id of the mobile app. + optional string app_id = 6; + + // The app store the mobile app is available in. + google.ads.googleads.v6.enums.LegacyAppInstallAdAppStoreEnum.LegacyAppInstallAdAppStore app_store = 2; + + // The headline of the ad. + optional string headline = 7; + + // The first description line of the ad. + optional string description1 = 8; + + // The second description line of the ad. + optional string description2 = 9; +} + +// A responsive display ad. +message ResponsiveDisplayAdInfo { + // Marketing images to be used in the ad. Valid image types are GIF, + // JPEG, and PNG. The minimum size is 600x314 and the aspect ratio must + // be 1.91:1 (+-1%). At least one marketing_image is required. Combined with + // square_marketing_images the maximum is 15. + repeated AdImageAsset marketing_images = 1; + + // Square marketing images to be used in the ad. Valid image types are GIF, + // JPEG, and PNG. The minimum size is 300x300 and the aspect ratio must + // be 1:1 (+-1%). At least one square marketing_image is required. Combined + // with marketing_images the maximum is 15. + repeated AdImageAsset square_marketing_images = 2; + + // Logo images to be used in the ad. Valid image types are GIF, + // JPEG, and PNG. The minimum size is 512x128 and the aspect ratio must + // be 4:1 (+-1%). Combined with square_logo_images the maximum is 5. + repeated AdImageAsset logo_images = 3; + + // Square logo images to be used in the ad. Valid image types are GIF, + // JPEG, and PNG. The minimum size is 128x128 and the aspect ratio must + // be 1:1 (+-1%). Combined with square_logo_images the maximum is 5. + repeated AdImageAsset square_logo_images = 4; + + // Short format headlines for the ad. The maximum length is 30 characters. + // At least 1 and max 5 headlines can be specified. + repeated AdTextAsset headlines = 5; + + // A required long format headline. The maximum length is 90 characters. + AdTextAsset long_headline = 6; + + // Descriptive texts for the ad. The maximum length is 90 characters. At + // least 1 and max 5 headlines can be specified. + repeated AdTextAsset descriptions = 7; + + // Optional YouTube videos for the ad. A maximum of 5 videos can be specified. + repeated AdVideoAsset youtube_videos = 8; + + // The advertiser/brand name. Maximum display width is 25. + optional string business_name = 17; + + // The main color of the ad in hexadecimal, e.g. #ffffff for white. + // If one of main_color and accent_color is set, the other is required as + // well. + optional string main_color = 18; + + // The accent color of the ad in hexadecimal, e.g. #ffffff for white. + // If one of main_color and accent_color is set, the other is required as + // well. + optional string accent_color = 19; + + // Advertiser's consent to allow flexible color. When true, the ad may be + // served with different color if necessary. When false, the ad will be served + // with the specified colors or a neutral color. + // The default value is true. + // Must be true if main_color and accent_color are not set. + optional bool allow_flexible_color = 20; + + // The call-to-action text for the ad. Maximum display width is 30. + optional string call_to_action_text = 21; + + // Prefix before price. E.g. 'as low as'. + optional string price_prefix = 22; + + // Promotion text used for dyanmic formats of responsive ads. For example + // 'Free two-day shipping'. + optional string promo_text = 23; + + // Specifies which format the ad will be served in. Default is ALL_FORMATS. + google.ads.googleads.v6.enums.DisplayAdFormatSettingEnum.DisplayAdFormatSetting format_setting = 16; + + // Specification for various creative controls. + ResponsiveDisplayAdControlSpec control_spec = 24; +} + +// A local ad. +message LocalAdInfo { + // List of text assets for headlines. When the ad serves the headlines will + // be selected from this list. At least 1 and at most 5 headlines must be + // specified. + repeated AdTextAsset headlines = 1; + + // List of text assets for descriptions. When the ad serves the descriptions + // will be selected from this list. At least 1 and at most 5 descriptions must + // be specified. + repeated AdTextAsset descriptions = 2; + + // List of text assets for call-to-actions. When the ad serves the + // call-to-actions will be selected from this list. Call-to-actions are + // optional and at most 5 can be specified. + repeated AdTextAsset call_to_actions = 3; + + // List of marketing image assets that may be displayed with the ad. The + // images must be 314x600 pixels or 320x320 pixels. At least 1 and at most + // 20 image assets must be specified. + repeated AdImageAsset marketing_images = 4; + + // List of logo image assets that may be displayed with the ad. The images + // must be 128x128 pixels and not larger than 120KB. At least 1 and at most 5 + // image assets must be specified. + repeated AdImageAsset logo_images = 5; + + // List of YouTube video assets that may be displayed with the ad. Videos + // are optional and at most 20 can be specified. + repeated AdVideoAsset videos = 6; + + // First part of optional text that may appear appended to the url displayed + // in the ad. + optional string path1 = 9; + + // Second part of optional text that may appear appended to the url displayed + // in the ad. This field can only be set when path1 is also set. + optional string path2 = 10; +} + +// A generic type of display ad. The exact ad format is controlled by the +// display_upload_product_type field, which determines what kinds of data +// 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.v6.enums.DisplayUploadProductTypeEnum.DisplayUploadProductType display_upload_product_type = 1; + + // The asset data that makes up the ad. + oneof media_asset { + // A media bundle asset to be used in the ad. For information about the + // media bundle for HTML5_UPLOAD_AD see + // https://support.google.com/google-ads/answer/1722096 + // Media bundles that are part of dynamic product types use a special format + // that needs to be created through the Google Web Designer. See + // https://support.google.com/webdesigner/answer/7543898 for more + // information. + AdMediaBundleAsset media_bundle = 2; + } +} + +// Specification for various creative controls for a responsive display ad. +message ResponsiveDisplayAdControlSpec { + // Whether the advertiser has opted into the asset enhancements feature. + bool enable_asset_enhancements = 1; + + // Whether the advertiser has opted into auto-gen video feature. + bool enable_autogen_video = 2; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/common/asset_policy.proto b/third_party/googleapis/google/ads/googleads/v6/common/asset_policy.proto new file mode 100644 index 000000000..9c835e060 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/common/asset_policy.proto @@ -0,0 +1,46 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.common; + +import "google/ads/googleads/v6/common/policy.proto"; +import "google/ads/googleads/v6/enums/policy_approval_status.proto"; +import "google/ads/googleads/v6/enums/policy_review_status.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Common"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/common;common"; +option java_multiple_files = true; +option java_outer_classname = "AssetPolicyProto"; +option java_package = "com.google.ads.googleads.v6.common"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Common"; +option ruby_package = "Google::Ads::GoogleAds::V6::Common"; + +// Proto file describing asset policies. + +// Contains policy information for an asset inside an ad. +message AdAssetPolicySummary { + // The list of policy findings for this asset. + repeated PolicyTopicEntry policy_topic_entries = 1; + + // Where in the review process this asset. + google.ads.googleads.v6.enums.PolicyReviewStatusEnum.PolicyReviewStatus review_status = 2; + + // The overall approval status of this asset, which is calculated based on + // the status of its individual policy topic entries. + google.ads.googleads.v6.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus approval_status = 3; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/common/asset_types.proto b/third_party/googleapis/google/ads/googleads/v6/common/asset_types.proto new file mode 100644 index 000000000..985a3ea63 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/common/asset_types.proto @@ -0,0 +1,196 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.common; + +import "google/ads/googleads/v6/enums/lead_form_call_to_action_type.proto"; +import "google/ads/googleads/v6/enums/lead_form_desired_intent.proto"; +import "google/ads/googleads/v6/enums/lead_form_field_user_input_type.proto"; +import "google/ads/googleads/v6/enums/lead_form_post_submit_call_to_action_type.proto"; +import "google/ads/googleads/v6/enums/mime_type.proto"; +import "google/api/field_behavior.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Common"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/common;common"; +option java_multiple_files = true; +option java_outer_classname = "AssetTypesProto"; +option java_package = "com.google.ads.googleads.v6.common"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Common"; +option ruby_package = "Google::Ads::GoogleAds::V6::Common"; + +// Proto file containing info messages for specific asset types. + +// A YouTube asset. +message YoutubeVideoAsset { + // YouTube video id. This is the 11 character string value used in the + // YouTube video URL. + optional string youtube_video_id = 2; + + // YouTube video title. + string youtube_video_title = 3; +} + +// A MediaBundle asset. +message MediaBundleAsset { + // Media bundle (ZIP file) asset data. The format of the uploaded ZIP file + // depends on the ad field where it will be used. For more information on the + // format, see the documentation of the ad field where you plan on using the + // MediaBundleAsset. This field is mutate only. + optional bytes data = 2; +} + +// An Image asset. +message ImageAsset { + // The raw bytes data of an image. This field is mutate only. + optional bytes data = 5; + + // File size of the image asset in bytes. + optional int64 file_size = 6; + + // MIME type of the image asset. + google.ads.googleads.v6.enums.MimeTypeEnum.MimeType mime_type = 3; + + // Metadata for this image at its original size. + ImageDimension full_size = 4; +} + +// Metadata for an image at a certain size, either original or resized. +message ImageDimension { + // Height of the image. + optional int64 height_pixels = 4; + + // Width of the image. + optional int64 width_pixels = 5; + + // A URL that returns the image with this height and width. + optional string url = 6; +} + +// A Text asset. +message TextAsset { + // Text content of the text asset. + optional string text = 2; +} + +// A Lead Form asset. +message LeadFormAsset { + // Required. The name of the business being advertised. + string business_name = 10 [(google.api.field_behavior) = REQUIRED]; + + // Required. Pre-defined display text that encourages user to expand the form. + google.ads.googleads.v6.enums.LeadFormCallToActionTypeEnum.LeadFormCallToActionType call_to_action_type = 17 [(google.api.field_behavior) = REQUIRED]; + + // Required. Text giving a clear value proposition of what users expect once they expand + // the form. + string call_to_action_description = 18 [(google.api.field_behavior) = REQUIRED]; + + // Required. Headline of the expanded form to describe what the form is asking for or + // facilitating. + string headline = 12 [(google.api.field_behavior) = REQUIRED]; + + // Required. Detailed description of the expanded form to describe what the form is + // asking for or facilitating. + string description = 13 [(google.api.field_behavior) = REQUIRED]; + + // Required. Link to a page describing the policy on how the collected data is handled + // by the advertiser/business. + string privacy_policy_url = 14 [(google.api.field_behavior) = REQUIRED]; + + // Headline of text shown after form submission that describes how the + // advertiser will follow up with the user. + optional string post_submit_headline = 15; + + // Detailed description shown after form submission that describes how the + // advertiser will follow up with the user. + optional string post_submit_description = 16; + + // Ordered list of input fields. + repeated LeadFormField fields = 8; + + // Configured methods for collected lead data to be delivered to advertiser. + repeated LeadFormDeliveryMethod delivery_methods = 9; + + // Pre-defined display text that encourages user action after the form is + // submitted. + google.ads.googleads.v6.enums.LeadFormPostSubmitCallToActionTypeEnum.LeadFormPostSubmitCallToActionType post_submit_call_to_action_type = 19; + + // Asset resource name of the background image. The minimum size is 600x314 + // and the aspect ratio must be 1.91:1 (+-1%). + optional string background_image_asset = 20; + + // Desired intent for the lead form, e.g. more volume or higher intent. + google.ads.googleads.v6.enums.LeadFormDesiredIntentEnum.LeadFormDesiredIntent desired_intent = 21; + + // Custom disclosure shown along with Google disclaimer on the lead form. + // Accessible to allowed customers only. + optional string custom_disclosure = 22; +} + +// One input field instance within a form. +message LeadFormField { + // Describes the input type, which may be a predefined type such as + // "full name" or a pre-vetted question like "Do you own a car?". + google.ads.googleads.v6.enums.LeadFormFieldUserInputTypeEnum.LeadFormFieldUserInputType input_type = 1; + + // Defines answer configuration that this form field accepts. If oneof is not + // set, this is a free-text answer. + oneof answers { + // Answer configuration for a single choice question. Can be set only for + // pre-vetted question fields. Minimum of 2 answers required and maximum of + // 12 allowed. + LeadFormSingleChoiceAnswers single_choice_answers = 2; + } +} + +// Defines possible answers for a single choice question, usually presented as +// a single-choice drop-down list. +message LeadFormSingleChoiceAnswers { + // List of choices for a single question field. The order of entries defines + // UI order. Minimum of 2 answers required and maximum of 12 allowed. + repeated string answers = 1; +} + +// A configuration of how leads are delivered to the advertiser. +message LeadFormDeliveryMethod { + // Various subtypes of delivery. + oneof delivery_details { + // Webhook method of delivery. + WebhookDelivery webhook = 1; + } +} + +// Google notifies the advertiser of leads by making HTTP calls to an +// endpoint they specify. The requests contain JSON matching a schema that +// Google publishes as part of form ads documentation. +message WebhookDelivery { + // Webhook url specified by advertiser to send the lead. + optional string advertiser_webhook_url = 4; + + // Anti-spoofing secret set by the advertiser as part of the webhook payload. + optional string google_secret = 5; + + // The schema version that this delivery instance will use. + optional int64 payload_schema_version = 6; +} + +// A Book on Google asset. Used to redirect user to book through Google. +// Book on Google will change the redirect url to book directly through +// Google. +message BookOnGoogleAsset { + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/common/bidding.proto b/third_party/googleapis/google/ads/googleads/v6/common/bidding.proto new file mode 100644 index 000000000..412c85f6d --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/common/bidding.proto @@ -0,0 +1,174 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.common; + +import "google/ads/googleads/v6/enums/target_impression_share_location.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Common"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/common;common"; +option java_multiple_files = true; +option java_outer_classname = "BiddingProto"; +option java_package = "com.google.ads.googleads.v6.common"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Common"; +option ruby_package = "Google::Ads::GoogleAds::V6::Common"; + +// Proto file describing bidding schemes. + +// Commission is an automatic bidding strategy in which the advertiser pays a +// certain portion of the conversion value. +message Commission { + // Commission rate defines the portion of the conversion value that the + // advertiser will be billed. A commission rate of x should be passed into + // this field as (x * 1,000,000). For example, 106,000 represents a commission + // rate of 0.106 (10.6%). + optional int64 commission_rate_micros = 2; +} + +// 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 { + +} + +// Manual click-based bidding where user pays per click. +message ManualCpc { + // Whether bids are to be enhanced based on conversion optimizer data. + optional bool enhanced_cpc_enabled = 2; +} + +// Manual impression-based bidding where user pays per thousand impressions. +message ManualCpm { + +} + +// View based bidding where user pays per video view. +message ManualCpv { + +} + +// An automated bidding strategy to help get the most conversions for your +// campaigns while spending your budget. +message MaximizeConversions { + // The target cost per acquisition (CPA) option. This is the average amount + // that you would like to spend per acquisition. + // + // This field is read-only. + int64 target_cpa = 1; +} + +// An automated bidding strategy to help get the most conversion value for your +// campaigns while spending your budget. +message MaximizeConversionValue { + // The target return on ad spend (ROAS) option. If set, the bid strategy will + // maximize revenue while averaging the target return on ad spend. If the + // target ROAS is high, the bid strategy may not be able to spend the full + // budget. If the target ROAS is not set, the bid strategy will aim to + // achieve the highest possible ROAS for the budget. + optional double target_roas = 2; +} + +// An automated bid strategy that sets bids to help get as many conversions as +// possible at the target cost-per-acquisition (CPA) you set. +message TargetCpa { + // Average CPA target. + // This target should be greater than or equal to minimum billable unit based + // on the currency for the account. + optional int64 target_cpa_micros = 4; + + // Maximum bid limit that can be set by the bid strategy. + // The limit applies to all keywords managed by the strategy. + optional int64 cpc_bid_ceiling_micros = 5; + + // Minimum bid limit that can be set by the bid strategy. + // The limit applies to all keywords managed by the strategy. + optional int64 cpc_bid_floor_micros = 6; +} + +// 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 { + +} + +// 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 +// location). +message TargetImpressionShare { + // The targeted location on the search results page. + google.ads.googleads.v6.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. + optional int64 location_fraction_micros = 4; + + // The highest CPC bid the automated bidding system is permitted to specify. + // This is a required field entered by the advertiser that sets the ceiling + // and specified in local micros. + optional int64 cpc_bid_ceiling_micros = 5; +} + +// An automated bidding strategy that helps you maximize revenue while +// averaging a specific target return on ad spend (ROAS). +message TargetRoas { + // Required. The desired revenue (based on conversion data) per unit of spend. + // Value must be between 0.01 and 1000.0, inclusive. + optional double target_roas = 4; + + // Maximum bid limit that can be set by the bid strategy. + // The limit applies to all keywords managed by the strategy. + optional int64 cpc_bid_ceiling_micros = 5; + + // Minimum bid limit that can be set by the bid strategy. + // The limit applies to all keywords managed by the strategy. + optional int64 cpc_bid_floor_micros = 6; +} + +// An automated bid strategy that sets your bids to help get as many clicks +// as possible within your budget. +message TargetSpend { + // The spend target under which to maximize clicks. + // A TargetSpend bidder will attempt to spend the smaller of this value + // or the natural throttling spend amount. + // If not specified, the budget is used as the spend target. + // This field is deprecated and should no longer be used. See + // https://ads-developers.googleblog.com/2020/05/reminder-about-sunset-creation-of.html + // for details. + optional int64 target_spend_micros = 3 [deprecated = true]; + + // Maximum bid limit that can be set by the bid strategy. + // The limit applies to all keywords managed by the strategy. + optional int64 cpc_bid_ceiling_micros = 4; +} + +// A bidding strategy where bids are a fraction of the advertised price for +// some good or service. +message PercentCpc { + // Maximum bid limit that can be set by the bid strategy. This is + // an optional field entered by the advertiser and specified in local micros. + // Note: A zero value is interpreted in the same way as having bid_ceiling + // undefined. + optional int64 cpc_bid_ceiling_micros = 3; + + // Adjusts the bid for each auction upward or downward, depending on the + // likelihood of a conversion. Individual bids may exceed + // cpc_bid_ceiling_micros, but the average bid amount for a campaign should + // not. + optional bool enhanced_cpc_enabled = 4; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/common/click_location.proto b/third_party/googleapis/google/ads/googleads/v6/common/click_location.proto new file mode 100644 index 000000000..8ebeb0945 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/common/click_location.proto @@ -0,0 +1,48 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.common; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Common"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/common;common"; +option java_multiple_files = true; +option java_outer_classname = "ClickLocationProto"; +option java_package = "com.google.ads.googleads.v6.common"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Common"; +option ruby_package = "Google::Ads::GoogleAds::V6::Common"; + +// Proto file describing a ClickLocation. + +// Location criteria associated with a click. +message ClickLocation { + // The city location criterion associated with the impression. + optional string city = 6; + + // The country location criterion associated with the impression. + optional string country = 7; + + // The metro location criterion associated with the impression. + optional string metro = 8; + + // The most specific location criterion associated with the impression. + optional string most_specific = 9; + + // The region location criterion associated with the impression. + optional string region = 10; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/common/criteria.proto b/third_party/googleapis/google/ads/googleads/v6/common/criteria.proto new file mode 100644 index 000000000..16aa73675 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/common/criteria.proto @@ -0,0 +1,611 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.common; + +import "google/ads/googleads/v6/enums/age_range_type.proto"; +import "google/ads/googleads/v6/enums/app_payment_model_type.proto"; +import "google/ads/googleads/v6/enums/content_label_type.proto"; +import "google/ads/googleads/v6/enums/day_of_week.proto"; +import "google/ads/googleads/v6/enums/device.proto"; +import "google/ads/googleads/v6/enums/gender_type.proto"; +import "google/ads/googleads/v6/enums/hotel_date_selection_type.proto"; +import "google/ads/googleads/v6/enums/income_range_type.proto"; +import "google/ads/googleads/v6/enums/interaction_type.proto"; +import "google/ads/googleads/v6/enums/keyword_match_type.proto"; +import "google/ads/googleads/v6/enums/listing_group_type.proto"; +import "google/ads/googleads/v6/enums/location_group_radius_units.proto"; +import "google/ads/googleads/v6/enums/minute_of_hour.proto"; +import "google/ads/googleads/v6/enums/parental_status_type.proto"; +import "google/ads/googleads/v6/enums/preferred_content_type.proto"; +import "google/ads/googleads/v6/enums/product_bidding_category_level.proto"; +import "google/ads/googleads/v6/enums/product_channel.proto"; +import "google/ads/googleads/v6/enums/product_channel_exclusivity.proto"; +import "google/ads/googleads/v6/enums/product_condition.proto"; +import "google/ads/googleads/v6/enums/product_custom_attribute_index.proto"; +import "google/ads/googleads/v6/enums/product_type_level.proto"; +import "google/ads/googleads/v6/enums/proximity_radius_units.proto"; +import "google/ads/googleads/v6/enums/webpage_condition_operand.proto"; +import "google/ads/googleads/v6/enums/webpage_condition_operator.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Common"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/common;common"; +option java_multiple_files = true; +option java_outer_classname = "CriteriaProto"; +option java_package = "com.google.ads.googleads.v6.common"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Common"; +option ruby_package = "Google::Ads::GoogleAds::V6::Common"; + +// Proto file describing criteria types. + +// A keyword criterion. +message KeywordInfo { + // The text of the keyword (at most 80 characters and 10 words). + optional string text = 3; + + // The match type of the keyword. + google.ads.googleads.v6.enums.KeywordMatchTypeEnum.KeywordMatchType match_type = 2; +} + +// A placement criterion. This can be used to modify bids for sites when +// targeting the content network. +message PlacementInfo { + // URL of the placement. + // + // For example, "http://www.domain.com". + optional string url = 2; +} + +// A mobile app category criterion. +message MobileAppCategoryInfo { + // The mobile app category constant resource name. + optional string mobile_app_category_constant = 2; +} + +// A mobile application criterion. +message MobileApplicationInfo { + // A string that uniquely identifies a mobile application to Google Ads API. + // The format of this string is "{platform}-{platform_native_id}", where + // platform is "1" for iOS apps and "2" for Android apps, and where + // platform_native_id is the mobile application identifier native to the + // corresponding platform. + // For iOS, this native identifier is the 9 digit string that appears at the + // end of an App Store URL (e.g., "476943146" for "Flood-It! 2" whose App + // Store link is "http://itunes.apple.com/us/app/flood-it!-2/id476943146"). + // For Android, this native identifier is the application's package name + // (e.g., "com.labpixies.colordrips" for "Color Drips" given Google Play link + // "https://play.google.com/store/apps/details?id=com.labpixies.colordrips"). + // A well formed app id for Google Ads API would thus be "1-476943146" for iOS + // and "2-com.labpixies.colordrips" for Android. + // This field is required and must be set in CREATE operations. + optional string app_id = 4; + + // Name of this mobile application. + optional string name = 5; +} + +// A location criterion. +message LocationInfo { + // The geo target constant resource name. + optional string geo_target_constant = 2; +} + +// A device criterion. +message DeviceInfo { + // Type of the device. + google.ads.googleads.v6.enums.DeviceEnum.Device type = 1; +} + +// A preferred content criterion. +message PreferredContentInfo { + // Type of the preferred content. + google.ads.googleads.v6.enums.PreferredContentTypeEnum.PreferredContentType type = 2; +} + +// A listing group criterion. +message ListingGroupInfo { + // Type of the listing group. + google.ads.googleads.v6.enums.ListingGroupTypeEnum.ListingGroupType type = 1; + + // Dimension value with which this listing group is refining its parent. + // Undefined for the root group. + ListingDimensionInfo case_value = 2; + + // Resource name of ad group criterion which is the parent listing group + // subdivision. Null for the root group. + optional string parent_ad_group_criterion = 4; +} + +// A listing scope criterion. +message ListingScopeInfo { + // Scope of the campaign criterion. + repeated ListingDimensionInfo dimensions = 2; +} + +// Listing dimensions for listing group criterion. +message ListingDimensionInfo { + // Dimension of one of the types below is always present. + oneof dimension { + // Advertiser-specific hotel ID. + HotelIdInfo hotel_id = 2; + + // Class of the hotel as a number of stars 1 to 5. + HotelClassInfo hotel_class = 3; + + // Country or Region the hotel is located in. + HotelCountryRegionInfo hotel_country_region = 4; + + // State the hotel is located in. + HotelStateInfo hotel_state = 5; + + // City the hotel is located in. + HotelCityInfo hotel_city = 6; + + // Bidding category of a product offer. + ProductBiddingCategoryInfo product_bidding_category = 13; + + // Brand of a product offer. + ProductBrandInfo product_brand = 15; + + // Locality of a product offer. + ProductChannelInfo product_channel = 8; + + // Availability of a product offer. + ProductChannelExclusivityInfo product_channel_exclusivity = 9; + + // Condition of a product offer. + ProductConditionInfo product_condition = 10; + + // Custom attribute of a product offer. + ProductCustomAttributeInfo product_custom_attribute = 16; + + // Item id of a product offer. + ProductItemIdInfo product_item_id = 11; + + // Type of a product offer. + ProductTypeInfo product_type = 12; + + // Unknown dimension. Set when no other listing dimension is set. + UnknownListingDimensionInfo unknown_listing_dimension = 14; + } +} + +// Advertiser-specific hotel ID. +message HotelIdInfo { + // String value of the hotel ID. + optional string value = 2; +} + +// Class of the hotel as a number of stars 1 to 5. +message HotelClassInfo { + // Long value of the hotel class. + optional int64 value = 2; +} + +// Country or Region the hotel is located in. +message HotelCountryRegionInfo { + // The Geo Target Constant resource name. + optional string country_region_criterion = 2; +} + +// State the hotel is located in. +message HotelStateInfo { + // The Geo Target Constant resource name. + optional string state_criterion = 2; +} + +// City the hotel is located in. +message HotelCityInfo { + // The Geo Target Constant resource name. + optional string city_criterion = 2; +} + +// Bidding category of a product offer. +message ProductBiddingCategoryInfo { + // ID of the product bidding category. + // + // This ID is equivalent to the google_product_category ID as described in + // this article: https://support.google.com/merchants/answer/6324436 + optional int64 id = 4; + + // Two-letter upper-case country code of the product bidding category. It must + // match the campaign.shopping_setting.sales_country field. + optional string country_code = 5; + + // Level of the product bidding category. + google.ads.googleads.v6.enums.ProductBiddingCategoryLevelEnum.ProductBiddingCategoryLevel level = 3; +} + +// Brand of the product. +message ProductBrandInfo { + // String value of the product brand. + optional string value = 2; +} + +// Locality of a product offer. +message ProductChannelInfo { + // Value of the locality. + google.ads.googleads.v6.enums.ProductChannelEnum.ProductChannel channel = 1; +} + +// Availability of a product offer. +message ProductChannelExclusivityInfo { + // Value of the availability. + google.ads.googleads.v6.enums.ProductChannelExclusivityEnum.ProductChannelExclusivity channel_exclusivity = 1; +} + +// Condition of a product offer. +message ProductConditionInfo { + // Value of the condition. + google.ads.googleads.v6.enums.ProductConditionEnum.ProductCondition condition = 1; +} + +// Custom attribute of a product offer. +message ProductCustomAttributeInfo { + // String value of the product custom attribute. + optional string value = 3; + + // Indicates the index of the custom attribute. + google.ads.googleads.v6.enums.ProductCustomAttributeIndexEnum.ProductCustomAttributeIndex index = 2; +} + +// Item id of a product offer. +message ProductItemIdInfo { + // Value of the id. + optional string value = 2; +} + +// Type of a product offer. +message ProductTypeInfo { + // Value of the type. + optional string value = 3; + + // Level of the type. + google.ads.googleads.v6.enums.ProductTypeLevelEnum.ProductTypeLevel level = 2; +} + +// Unknown listing dimension. +message UnknownListingDimensionInfo { + +} + +// Criterion for hotel date selection (default dates vs. user selected). +message HotelDateSelectionTypeInfo { + // Type of the hotel date selection + google.ads.googleads.v6.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType type = 1; +} + +// Criterion for number of days prior to the stay the booking is being made. +message HotelAdvanceBookingWindowInfo { + // Low end of the number of days prior to the stay. + optional int64 min_days = 3; + + // High end of the number of days prior to the stay. + optional int64 max_days = 4; +} + +// Criterion for length of hotel stay in nights. +message HotelLengthOfStayInfo { + // Low end of the number of nights in the stay. + optional int64 min_nights = 3; + + // High end of the number of nights in the stay. + optional int64 max_nights = 4; +} + +// Criterion for day of the week the booking is for. +message HotelCheckInDayInfo { + // The day of the week. + google.ads.googleads.v6.enums.DayOfWeekEnum.DayOfWeek day_of_week = 1; +} + +// Criterion for Interaction Type. +message InteractionTypeInfo { + // The interaction type. + google.ads.googleads.v6.enums.InteractionTypeEnum.InteractionType type = 1; +} + +// Represents an AdSchedule criterion. +// +// AdSchedule is specified as the day of the week and a time interval +// within which ads will be shown. +// +// No more than six AdSchedules can be added for the same day. +message AdScheduleInfo { + // Minutes after the start hour at which this schedule starts. + // + // This field is required for CREATE operations and is prohibited on UPDATE + // operations. + google.ads.googleads.v6.enums.MinuteOfHourEnum.MinuteOfHour start_minute = 1; + + // Minutes after the end hour at which this schedule ends. The schedule is + // exclusive of the end minute. + // + // This field is required for CREATE operations and is prohibited on UPDATE + // operations. + google.ads.googleads.v6.enums.MinuteOfHourEnum.MinuteOfHour end_minute = 2; + + // Starting hour in 24 hour time. + // This field must be between 0 and 23, inclusive. + // + // This field is required for CREATE operations and is prohibited on UPDATE + // operations. + optional int32 start_hour = 6; + + // Ending hour in 24 hour time; 24 signifies end of the day. + // This field must be between 0 and 24, inclusive. + // + // This field is required for CREATE operations and is prohibited on UPDATE + // operations. + optional int32 end_hour = 7; + + // Day of the week the schedule applies to. + // + // This field is required for CREATE operations and is prohibited on UPDATE + // operations. + google.ads.googleads.v6.enums.DayOfWeekEnum.DayOfWeek day_of_week = 5; +} + +// An age range criterion. +message AgeRangeInfo { + // Type of the age range. + google.ads.googleads.v6.enums.AgeRangeTypeEnum.AgeRangeType type = 1; +} + +// A gender criterion. +message GenderInfo { + // Type of the gender. + google.ads.googleads.v6.enums.GenderTypeEnum.GenderType type = 1; +} + +// An income range criterion. +message IncomeRangeInfo { + // Type of the income range. + google.ads.googleads.v6.enums.IncomeRangeTypeEnum.IncomeRangeType type = 1; +} + +// A parental status criterion. +message ParentalStatusInfo { + // Type of the parental status. + google.ads.googleads.v6.enums.ParentalStatusTypeEnum.ParentalStatusType type = 1; +} + +// A YouTube Video criterion. +message YouTubeVideoInfo { + // YouTube video id as it appears on the YouTube watch page. + optional string video_id = 2; +} + +// A YouTube Channel criterion. +message YouTubeChannelInfo { + // The YouTube uploader channel id or the channel code of a YouTube channel. + optional string channel_id = 2; +} + +// A User List criterion. Represents a user list that is defined by the +// advertiser to be targeted. +message UserListInfo { + // The User List resource name. + optional string user_list = 2; +} + +// A Proximity criterion. The geo point and radius determine what geographical +// area is included. The address is a description of the geo point that does +// not affect ad serving. +// +// There are two ways to create a proximity. First, by setting an address +// and radius. The geo point will be automatically computed. Second, by +// setting a geo point and radius. The address is an optional label that won't +// be validated. +message ProximityInfo { + // Latitude and longitude. + GeoPointInfo geo_point = 1; + + // The radius of the proximity. + optional double radius = 5; + + // The unit of measurement of the radius. Default is KILOMETERS. + google.ads.googleads.v6.enums.ProximityRadiusUnitsEnum.ProximityRadiusUnits radius_units = 3; + + // Full address. + AddressInfo address = 4; +} + +// Geo point for proximity criterion. +message GeoPointInfo { + // Micro degrees for the longitude. + optional int32 longitude_in_micro_degrees = 3; + + // Micro degrees for the latitude. + optional int32 latitude_in_micro_degrees = 4; +} + +// Address for proximity criterion. +message AddressInfo { + // Postal code. + optional string postal_code = 8; + + // Province or state code. + optional string province_code = 9; + + // Country code. + optional string country_code = 10; + + // Province or state name. + optional string province_name = 11; + + // Street address line 1. + optional string street_address = 12; + + // Street address line 2. This field is write-only. It is only used for + // calculating the longitude and latitude of an address when geo_point is + // empty. + optional string street_address2 = 13; + + // Name of the city. + optional string city_name = 14; +} + +// A topic criterion. Use topics to target or exclude placements in the +// Google Display Network based on the category into which the placement falls +// (for example, "Pets & Animals/Pets/Dogs"). +message TopicInfo { + // The Topic Constant resource name. + optional string topic_constant = 3; + + // The category to target or exclude. Each subsequent element in the array + // describes a more specific sub-category. For example, + // "Pets & Animals", "Pets", "Dogs" represents the "Pets & Animals/Pets/Dogs" + // category. + repeated string path = 4; +} + +// A language criterion. +message LanguageInfo { + // The language constant resource name. + optional string language_constant = 2; +} + +// An IpBlock criterion used for IP exclusions. We allow: +// - IPv4 and IPv6 addresses +// - individual addresses (192.168.0.1) +// - masks for individual addresses (192.168.0.1/32) +// - masks for Class C networks (192.168.0.1/24) +message IpBlockInfo { + // The IP address of this IP block. + optional string ip_address = 2; +} + +// Content Label for category exclusion. +message ContentLabelInfo { + // Content label type, required for CREATE operations. + google.ads.googleads.v6.enums.ContentLabelTypeEnum.ContentLabelType type = 1; +} + +// Represents a Carrier Criterion. +message CarrierInfo { + // The Carrier constant resource name. + optional string carrier_constant = 2; +} + +// Represents a particular interest-based topic to be targeted. +message UserInterestInfo { + // The UserInterest resource name. + optional string user_interest_category = 2; +} + +// Represents a criterion for targeting webpages of an advertiser's website. +message WebpageInfo { + // The name of the criterion that is defined by this parameter. The name value + // will be used for identifying, sorting and filtering criteria with this type + // of parameters. + // + // This field is required for CREATE operations and is prohibited on UPDATE + // operations. + optional string criterion_name = 3; + + // Conditions, or logical expressions, for webpage targeting. The list of + // webpage targeting conditions are and-ed together when evaluated + // for targeting. + // + // This field is required for CREATE operations and is prohibited on UPDATE + // operations. + repeated WebpageConditionInfo conditions = 2; +} + +// Logical expression for targeting webpages of an advertiser's website. +message WebpageConditionInfo { + // Operand of webpage targeting condition. + google.ads.googleads.v6.enums.WebpageConditionOperandEnum.WebpageConditionOperand operand = 1; + + // Operator of webpage targeting condition. + google.ads.googleads.v6.enums.WebpageConditionOperatorEnum.WebpageConditionOperator operator = 2; + + // Argument of webpage targeting condition. + optional string argument = 4; +} + +// Represents an operating system version to be targeted. +message OperatingSystemVersionInfo { + // The operating system version constant resource name. + optional string operating_system_version_constant = 2; +} + +// An app payment model criterion. +message AppPaymentModelInfo { + // Type of the app payment model. + google.ads.googleads.v6.enums.AppPaymentModelTypeEnum.AppPaymentModelType type = 1; +} + +// A mobile device criterion. +message MobileDeviceInfo { + // The mobile device constant resource name. + optional string mobile_device_constant = 2; +} + +// A custom affinity criterion. +// A criterion of this type is only targetable. +message CustomAffinityInfo { + // The CustomInterest resource name. + optional string custom_affinity = 2; +} + +// A custom intent criterion. +// A criterion of this type is only targetable. +message CustomIntentInfo { + // The CustomInterest resource name. + optional string custom_intent = 2; +} + +// A radius around a list of locations specified via a feed. +message LocationGroupInfo { + // Feed specifying locations for targeting. + // This is required and must be set in CREATE operations. + optional string feed = 5; + + // Geo target constant(s) restricting the scope of the geographic area within + // the feed. Currently only one geo target constant is allowed. + repeated string geo_target_constants = 6; + + // Distance in units specifying the radius around targeted locations. + // This is required and must be set in CREATE operations. + optional int64 radius = 7; + + // Unit of the radius. Miles and meters are supported for geo target + // constants. Milli miles and meters are supported for feed item sets. + // This is required and must be set in CREATE operations. + google.ads.googleads.v6.enums.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnits radius_units = 4; + + // FeedItemSets whose FeedItems are targeted. If multiple IDs are specified, + // then all items that appear in at least one set are targeted. This field + // cannot be used with geo_target_constants. This is optional and can only be + // set in CREATE operations. + repeated string feed_item_sets = 8; +} + +// A custom audience criterion. +message CustomAudienceInfo { + // The CustomAudience resource name. + string custom_audience = 1; +} + +// A combined audience criterion. +message CombinedAudienceInfo { + // The CombinedAudience resource name. + string combined_audience = 1; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/common/criterion_category_availability.proto b/third_party/googleapis/google/ads/googleads/v6/common/criterion_category_availability.proto new file mode 100644 index 000000000..d65046ce7 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/common/criterion_category_availability.proto @@ -0,0 +1,82 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.common; + +import "google/ads/googleads/v6/enums/advertising_channel_sub_type.proto"; +import "google/ads/googleads/v6/enums/advertising_channel_type.proto"; +import "google/ads/googleads/v6/enums/criterion_category_channel_availability_mode.proto"; +import "google/ads/googleads/v6/enums/criterion_category_locale_availability_mode.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Common"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/common;common"; +option java_multiple_files = true; +option java_outer_classname = "CriterionCategoryAvailabilityProto"; +option java_package = "com.google.ads.googleads.v6.common"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Common"; +option ruby_package = "Google::Ads::GoogleAds::V6::Common"; + +// Proto file describing criterion category availability information. + +// Information of category availability, per advertising channel. +message CriterionCategoryAvailability { + // Channel types and subtypes that are available to the category. + CriterionCategoryChannelAvailability channel = 1; + + // Locales that are available to the category for the channel. + repeated CriterionCategoryLocaleAvailability locale = 2; +} + +// Information of advertising channel type and subtypes a category is available +// in. +message CriterionCategoryChannelAvailability { + // Format of the channel availability. Can be ALL_CHANNELS (the rest of the + // fields will not be set), CHANNEL_TYPE (only advertising_channel_type type + // will be set, the category is available to all sub types under it) or + // CHANNEL_TYPE_AND_SUBTYPES (advertising_channel_type, + // advertising_channel_sub_type, and include_default_channel_sub_type will all + // be set). + google.ads.googleads.v6.enums.CriterionCategoryChannelAvailabilityModeEnum.CriterionCategoryChannelAvailabilityMode availability_mode = 1; + + // Channel type the category is available to. + google.ads.googleads.v6.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 2; + + // Channel subtypes under the channel type the category is available to. + repeated google.ads.googleads.v6.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 + // being false means that the default display campaign where channel sub type + // is not set is not included in this availability configuration. + optional bool include_default_channel_sub_type = 5; +} + +// Information about which locales a category is available in. +message CriterionCategoryLocaleAvailability { + // Format of the locale availability. Can be LAUNCHED_TO_ALL (both country and + // 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.v6.enums.CriterionCategoryLocaleAvailabilityModeEnum.CriterionCategoryLocaleAvailabilityMode availability_mode = 1; + + // Code of the country. + optional string country_code = 4; + + // Code of the language. + optional string language_code = 5; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/common/custom_parameter.proto b/third_party/googleapis/google/ads/googleads/v6/common/custom_parameter.proto new file mode 100644 index 000000000..d98834252 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/common/custom_parameter.proto @@ -0,0 +1,40 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.common; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Common"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/common;common"; +option java_multiple_files = true; +option java_outer_classname = "CustomParameterProto"; +option java_package = "com.google.ads.googleads.v6.common"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Common"; +option ruby_package = "Google::Ads::GoogleAds::V6::Common"; + +// Proto file describing CustomParameter and operation + +// A mapping that can be used by custom parameter tags in a +// `tracking_url_template`, `final_urls`, or `mobile_final_urls`. +message CustomParameter { + // The key matching the parameter tag name. + optional string key = 3; + + // The value to be substituted. + optional string value = 4; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/common/dates.proto b/third_party/googleapis/google/ads/googleads/v6/common/dates.proto new file mode 100644 index 000000000..d83b2e5cb --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/common/dates.proto @@ -0,0 +1,39 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.common; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Common"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/common;common"; +option java_multiple_files = true; +option java_outer_classname = "DatesProto"; +option java_package = "com.google.ads.googleads.v6.common"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Common"; +option ruby_package = "Google::Ads::GoogleAds::V6::Common"; + +// Proto file describing date range message. + +// A date range. +message DateRange { + // The start date, in yyyy-mm-dd format. This date is inclusive. + optional string start_date = 3; + + // The end date, in yyyy-mm-dd format. This date is inclusive. + optional string end_date = 4; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/common/explorer_auto_optimizer_setting.proto b/third_party/googleapis/google/ads/googleads/v6/common/explorer_auto_optimizer_setting.proto new file mode 100644 index 000000000..8810b8413 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/common/explorer_auto_optimizer_setting.proto @@ -0,0 +1,38 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.common; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Common"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/common;common"; +option java_multiple_files = true; +option java_outer_classname = "ExplorerAutoOptimizerSettingProto"; +option java_package = "com.google.ads.googleads.v6.common"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Common"; +option ruby_package = "Google::Ads::GoogleAds::V6::Common"; + +// Proto file describing ExplorerAutoOptimizerSetting + +// Settings for the Display Campaign Optimizer, initially named "Explorer". +// Learn more about +// [automatic targeting](https://support.google.com/google-ads/answer/190596). +message ExplorerAutoOptimizerSetting { + // Indicates whether the optimizer is turned on. + optional bool opt_in = 2; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/common/extensions.proto b/third_party/googleapis/google/ads/googleads/v6/common/extensions.proto new file mode 100644 index 000000000..f0374d9db --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/common/extensions.proto @@ -0,0 +1,368 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.common; + +import "google/ads/googleads/v6/common/custom_parameter.proto"; +import "google/ads/googleads/v6/common/feed_common.proto"; +import "google/ads/googleads/v6/enums/app_store.proto"; +import "google/ads/googleads/v6/enums/call_conversion_reporting_state.proto"; +import "google/ads/googleads/v6/enums/price_extension_price_qualifier.proto"; +import "google/ads/googleads/v6/enums/price_extension_price_unit.proto"; +import "google/ads/googleads/v6/enums/price_extension_type.proto"; +import "google/ads/googleads/v6/enums/promotion_extension_discount_modifier.proto"; +import "google/ads/googleads/v6/enums/promotion_extension_occasion.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Common"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/common;common"; +option java_multiple_files = true; +option java_outer_classname = "ExtensionsProto"; +option java_package = "com.google.ads.googleads.v6.common"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Common"; +option ruby_package = "Google::Ads::GoogleAds::V6::Common"; + +// Proto file describing extension types. + +// Represents an App extension. +message AppFeedItem { + // The visible text displayed when the link is rendered in an ad. + // This string must not be empty, and the length of this string should + // be between 1 and 25, inclusive. + optional string link_text = 9; + + // The store-specific ID for the target application. + // This string must not be empty. + optional string app_id = 10; + + // The application store that the target application belongs to. + // This field is required. + google.ads.googleads.v6.enums.AppStoreEnum.AppStore app_store = 3; + + // A list of possible final URLs after all cross domain redirects. + // This list must not be empty. + repeated string final_urls = 11; + + // A list of possible final mobile URLs after all cross domain redirects. + repeated string final_mobile_urls = 12; + + // URL template for constructing a tracking URL. Default value is "{lpurl}". + optional string tracking_url_template = 13; + + // A list of mappings to be used for substituting URL custom parameter tags in + // the tracking_url_template, final_urls, and/or final_mobile_urls. + repeated CustomParameter url_custom_parameters = 7; + + // URL template for appending params to landing page URLs served with parallel + // tracking. + optional string final_url_suffix = 14; +} + +// Represents a Call extension. +message CallFeedItem { + // The advertiser's phone number to append to the ad. + // This string must not be empty. + optional string phone_number = 7; + + // Uppercase two-letter country code of the advertiser's phone number. + // This string must not be empty. + optional string country_code = 8; + + // Indicates whether call tracking is enabled. By default, call tracking is + // not enabled. + optional bool call_tracking_enabled = 9; + + // The conversion action to attribute a call conversion to. If not set a + // default conversion action is used. This field only has effect if + // call_tracking_enabled is set to true. Otherwise this field is ignored. + optional string call_conversion_action = 10; + + // If true, disable call conversion tracking. call_conversion_action should + // not be set if this is true. Optional. + optional bool call_conversion_tracking_disabled = 11; + + // 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.v6.enums.CallConversionReportingStateEnum.CallConversionReportingState call_conversion_reporting_state = 6; +} + +// Represents a callout extension. +message CalloutFeedItem { + // The callout text. + // The length of this string should be between 1 and 25, inclusive. + optional string callout_text = 2; +} + +// Represents a location extension. +message LocationFeedItem { + // The name of the business. + optional string business_name = 9; + + // Line 1 of the business address. + optional string address_line_1 = 10; + + // Line 2 of the business address. + optional string address_line_2 = 11; + + // City of the business address. + optional string city = 12; + + // Province of the business address. + optional string province = 13; + + // Postal code of the business address. + optional string postal_code = 14; + + // Country code of the business address. + optional string country_code = 15; + + // Phone number of the business. + optional string phone_number = 16; +} + +// Represents an affiliate location extension. +message AffiliateLocationFeedItem { + // The name of the business. + optional string business_name = 11; + + // Line 1 of the business address. + optional string address_line_1 = 12; + + // Line 2 of the business address. + optional string address_line_2 = 13; + + // City of the business address. + optional string city = 14; + + // Province of the business address. + optional string province = 15; + + // Postal code of the business address. + optional string postal_code = 16; + + // Country code of the business address. + optional string country_code = 17; + + // Phone number of the business. + optional string phone_number = 18; + + // Id of the retail chain that is advertised as a seller of your product. + optional int64 chain_id = 19; + + // Name of chain. + optional string chain_name = 20; +} + +// An extension that users can click on to send a text message to the +// advertiser. +message TextMessageFeedItem { + // The business name to prepend to the message text. + // This field is required. + optional string business_name = 6; + + // Uppercase two-letter country code of the advertiser's phone number. + // This field is required. + optional string country_code = 7; + + // The advertiser's phone number the message will be sent to. Required. + optional string phone_number = 8; + + // The text to show in the ad. + // This field is required. + optional string text = 9; + + // The message extension_text populated in the messaging app. + optional string extension_text = 10; +} + +// Represents a Price extension. +message PriceFeedItem { + // Price extension type of this extension. + google.ads.googleads.v6.enums.PriceExtensionTypeEnum.PriceExtensionType type = 1; + + // Price qualifier for all offers of this price extension. + google.ads.googleads.v6.enums.PriceExtensionPriceQualifierEnum.PriceExtensionPriceQualifier price_qualifier = 2; + + // Tracking URL template for all offers of this price extension. + optional string tracking_url_template = 7; + + // The code of the language used for this price extension. + optional string language_code = 8; + + // The price offerings in this price extension. + repeated PriceOffer price_offerings = 5; + + // Tracking URL template for all offers of this price extension. + optional string final_url_suffix = 9; +} + +// Represents one price offer in a price extension. +message PriceOffer { + // Header text of this offer. + optional string header = 7; + + // Description text of this offer. + optional string description = 8; + + // Price value of this offer. + Money price = 3; + + // Price unit for this offer. + google.ads.googleads.v6.enums.PriceExtensionPriceUnitEnum.PriceExtensionPriceUnit unit = 4; + + // A list of possible final URLs after all cross domain redirects. + repeated string final_urls = 9; + + // A list of possible final mobile URLs after all cross domain redirects. + repeated string final_mobile_urls = 10; +} + +// Represents a Promotion extension. +message PromotionFeedItem { + // A freeform description of what the promotion is targeting. + // This field is required. + optional string promotion_target = 16; + + // Enum that modifies the qualification of the discount. + google.ads.googleads.v6.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier discount_modifier = 2; + + // Start date of when the promotion is eligible to be redeemed. + optional string promotion_start_date = 19; + + // Last date when the promotion is eligible to be redeemed. + optional string promotion_end_date = 20; + + // 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.v6.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion occasion = 9; + + // A list of possible final URLs after all cross domain redirects. + // This field is required. + repeated string final_urls = 21; + + // A list of possible final mobile URLs after all cross domain redirects. + repeated string final_mobile_urls = 22; + + // URL template for constructing a tracking URL. + optional string tracking_url_template = 23; + + // A list of mappings to be used for substituting URL custom parameter tags in + // the tracking_url_template, final_urls, and/or final_mobile_urls. + repeated CustomParameter url_custom_parameters = 13; + + // URL template for appending params to landing page URLs served with parallel + // tracking. + optional string final_url_suffix = 24; + + // The language of the promotion. + // Represented as BCP 47 language tag. + optional string language_code = 25; + + // Discount type, can be percentage off or amount off. + oneof discount_type { + // Percentage off discount in the promotion in micros. + // One million is equivalent to one percent. + // Either this or money_off_amount is required. + int64 percent_off = 17; + + // Money amount off for discount in the promotion. + // Either this or percent_off is required. + Money money_amount_off = 4; + } + + // Promotion trigger. Can be by promotion code or promo by eligible order + // amount. + oneof promotion_trigger { + // A code the user should use in order to be eligible for the promotion. + string promotion_code = 18; + + // The amount the total order needs to be for the user to be eligible for + // the promotion. + Money orders_over_amount = 6; + } +} + +// Represents a structured snippet extension. +message StructuredSnippetFeedItem { + // The header of the snippet. + // This string must not be empty. + optional string header = 3; + + // The values in the snippet. + // The maximum size of this collection is 10. + repeated string values = 4; +} + +// Represents a sitelink extension. +message SitelinkFeedItem { + // URL display text for the sitelink. + // The length of this string should be between 1 and 25, inclusive. + optional string link_text = 9; + + // First line of the description for the sitelink. + // If this value is set, line2 must also be set. + // The length of this string should be between 0 and 35, inclusive. + optional string line1 = 10; + + // Second line of the description for the sitelink. + // If this value is set, line1 must also be set. + // The length of this string should be between 0 and 35, inclusive. + optional string line2 = 11; + + // A list of possible final URLs after all cross domain redirects. + repeated string final_urls = 12; + + // A list of possible final mobile URLs after all cross domain redirects. + repeated string final_mobile_urls = 13; + + // URL template for constructing a tracking URL. + optional string tracking_url_template = 14; + + // A list of mappings to be used for substituting URL custom parameter tags in + // the tracking_url_template, final_urls, and/or final_mobile_urls. + repeated CustomParameter url_custom_parameters = 7; + + // Final URL suffix to be appended to landing page URLs served with + // parallel tracking. + optional string final_url_suffix = 15; +} + +// Represents a hotel callout extension. +message HotelCalloutFeedItem { + // The callout text. + // The length of this string should be between 1 and 25, inclusive. + optional string text = 3; + + // The language of the hotel callout text. + // IETF BCP 47 compliant language code. + optional string language_code = 4; +} + +// Represents an advertiser provided image extension. +message ImageFeedItem { + // Required. Resource name of the image asset. + string image_asset = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Asset" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/common/feed_common.proto b/third_party/googleapis/google/ads/googleads/v6/common/feed_common.proto new file mode 100644 index 000000000..7bba6e249 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/common/feed_common.proto @@ -0,0 +1,39 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.common; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Common"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/common;common"; +option java_multiple_files = true; +option java_outer_classname = "FeedCommonProto"; +option java_package = "com.google.ads.googleads.v6.common"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Common"; +option ruby_package = "Google::Ads::GoogleAds::V6::Common"; + +// Proto file describing common feed proto messages. + +// Represents a price in a particular currency. +message Money { + // Three-character ISO 4217 currency code. + optional string currency_code = 3; + + // Amount in micros. One million is equivalent to one unit. + optional int64 amount_micros = 4; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/common/feed_item_set_filter_type_infos.proto b/third_party/googleapis/google/ads/googleads/v6/common/feed_item_set_filter_type_infos.proto new file mode 100644 index 000000000..a0e5f246e --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/common/feed_item_set_filter_type_infos.proto @@ -0,0 +1,58 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.common; + +import "google/ads/googleads/v6/enums/feed_item_set_string_filter_type.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Common"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/common;common"; +option java_multiple_files = true; +option java_outer_classname = "FeedItemSetFilterTypeInfosProto"; +option java_package = "com.google.ads.googleads.v6.common"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Common"; +option ruby_package = "Google::Ads::GoogleAds::V6::Common"; + +// Represents a filter on locations in a feed item set. +// Only applicable if the parent Feed of the FeedItemSet is a LOCATION feed. +message DynamicLocationSetFilter { + // If multiple labels are set, then only feeditems marked with all the labels + // will be added to the FeedItemSet. + repeated string labels = 1; + + // Business name filter. + BusinessNameFilter business_name_filter = 2; +} + +// Represents a business name filter on locations in a FeedItemSet. +message BusinessNameFilter { + // Business name string to use for filtering. + string business_name = 1; + + // The type of string matching to use when filtering with business_name. + google.ads.googleads.v6.enums.FeedItemSetStringFilterTypeEnum.FeedItemSetStringFilterType filter_type = 2; +} + +// Represents a filter on affiliate locations in a FeedItemSet. +// Only applicable if the parent Feed of the FeedItemSet is an +// AFFILIATE_LOCATION feed. +message DynamicAffiliateLocationSetFilter { + // Used to filter affiliate locations by chain ids. Only affiliate locations + // that belong to the specified chain(s) will be added to the FeedItemSet. + repeated int64 chain_ids = 1; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/common/final_app_url.proto b/third_party/googleapis/google/ads/googleads/v6/common/final_app_url.proto new file mode 100644 index 000000000..9b3846939 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/common/final_app_url.proto @@ -0,0 +1,46 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.common; + +import "google/ads/googleads/v6/enums/app_url_operating_system_type.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Common"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/common;common"; +option java_multiple_files = true; +option java_outer_classname = "FinalAppUrlProto"; +option java_package = "com.google.ads.googleads.v6.common"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Common"; +option ruby_package = "Google::Ads::GoogleAds::V6::Common"; + +// Proto file FinalAppUrl type. + +// 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.v6.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 + // {scheme}://{host_path} + // The scheme identifies which app to open. For your app, you can use a custom + // scheme that starts with the app's name. The host and path specify the + // unique location in the app where your content exists. + // Example: "exampleapp://productid_1234". Required. + optional string url = 3; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/common/frequency_cap.proto b/third_party/googleapis/google/ads/googleads/v6/common/frequency_cap.proto new file mode 100644 index 000000000..d60fbf7f0 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/common/frequency_cap.proto @@ -0,0 +1,61 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.common; + +import "google/ads/googleads/v6/enums/frequency_cap_event_type.proto"; +import "google/ads/googleads/v6/enums/frequency_cap_level.proto"; +import "google/ads/googleads/v6/enums/frequency_cap_time_unit.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Common"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/common;common"; +option java_multiple_files = true; +option java_outer_classname = "FrequencyCapProto"; +option java_package = "com.google.ads.googleads.v6.common"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Common"; +option ruby_package = "Google::Ads::GoogleAds::V6::Common"; + +// Proto file describing frequency caps. + +// A rule specifying the maximum number of times an ad (or some set of ads) can +// be shown to a user over a particular time period. +message FrequencyCapEntry { + // The key of a particular frequency cap. There can be no more + // than one frequency cap with the same key. + FrequencyCapKey key = 1; + + // Maximum number of events allowed during the time range by this cap. + optional int32 cap = 3; +} + +// A group of fields used as keys for a frequency cap. +// There can be no more than one frequency cap with the same key. +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.v6.enums.FrequencyCapLevelEnum.FrequencyCapLevel level = 1; + + // The type of event that the cap applies to (e.g. impression). + google.ads.googleads.v6.enums.FrequencyCapEventTypeEnum.FrequencyCapEventType event_type = 3; + + // Unit of time the cap is defined at (e.g. day, week). + google.ads.googleads.v6.enums.FrequencyCapTimeUnitEnum.FrequencyCapTimeUnit time_unit = 2; + + // Number of time units the cap lasts. + optional int32 time_length = 5; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/common/keyword_plan_common.proto b/third_party/googleapis/google/ads/googleads/v6/common/keyword_plan_common.proto new file mode 100644 index 000000000..cc89d0283 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/common/keyword_plan_common.proto @@ -0,0 +1,75 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.common; + +import "google/ads/googleads/v6/enums/keyword_plan_competition_level.proto"; +import "google/ads/googleads/v6/enums/month_of_year.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Common"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/common;common"; +option java_multiple_files = true; +option java_outer_classname = "KeywordPlanCommonProto"; +option java_package = "com.google.ads.googleads.v6.common"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Common"; +option ruby_package = "Google::Ads::GoogleAds::V6::Common"; + +// Proto file describing Keyword Planner messages. + +// Historical metrics specific to the targeting options selected. +// Targeting options include geographies, network, etc. +// Refer to https://support.google.com/google-ads/answer/3022575 for more +// details. +message KeywordPlanHistoricalMetrics { + // Approximate number of monthly searches on this query averaged + // for the past 12 months. + optional int64 avg_monthly_searches = 7; + + // Approximate number of searches on this query for the past twelve months. + repeated MonthlySearchVolume monthly_search_volumes = 6; + + // The competition level for the query. + google.ads.googleads.v6.enums.KeywordPlanCompetitionLevelEnum.KeywordPlanCompetitionLevel competition = 2; + + // The competition index for the query in the range [0, 100]. + // Shows how competitive ad placement is for a keyword. + // The level of competition from 0-100 is determined by the number of ad slots + // filled divided by the total number of ad slots available. If not enough + // data is available, null is returned. + optional int64 competition_index = 8; + + // Top of page bid low range (20th percentile) in micros for the keyword. + optional int64 low_top_of_page_bid_micros = 9; + + // Top of page bid high range (80th percentile) in micros for the keyword. + optional int64 high_top_of_page_bid_micros = 10; +} + +// Monthly search volume. +message MonthlySearchVolume { + // The year of the search volume (e.g. 2020). + optional int64 year = 4; + + // The month of the search volume. + google.ads.googleads.v6.enums.MonthOfYearEnum.MonthOfYear month = 2; + + // Approximate number of searches for the month. + // A null value indicates the search volume is unavailable for + // that month. + optional int64 monthly_searches = 5; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/common/matching_function.proto b/third_party/googleapis/google/ads/googleads/v6/common/matching_function.proto new file mode 100644 index 000000000..765cd0def --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/common/matching_function.proto @@ -0,0 +1,126 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.common; + +import "google/ads/googleads/v6/enums/matching_function_context_type.proto"; +import "google/ads/googleads/v6/enums/matching_function_operator.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Common"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/common;common"; +option java_multiple_files = true; +option java_outer_classname = "MatchingFunctionProto"; +option java_package = "com.google.ads.googleads.v6.common"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Common"; +option ruby_package = "Google::Ads::GoogleAds::V6::Common"; + +// Proto file describing a matching function. + +// Matching function associated with a +// CustomerFeed, CampaignFeed, or AdGroupFeed. The matching function is used +// to filter the set of feed items selected. +message MatchingFunction { + // String representation of the Function. + // + // Examples: + // + // 1. IDENTITY(true) or IDENTITY(false). All or no feed items served. + // 2. EQUALS(CONTEXT.DEVICE,"Mobile") + // 3. IN(FEED_ITEM_ID,{1000001,1000002,1000003}) + // 4. CONTAINS_ANY(FeedAttribute[12345678,0],{"Mars cruise","Venus cruise"}) + // 5. AND(IN(FEED_ITEM_ID,{10001,10002}),EQUALS(CONTEXT.DEVICE,"Mobile")) + // + // For more details, visit + // https://developers.google.com/adwords/api/docs/guides/feed-matching-functions + // + // Note that because multiple strings may represent the same underlying + // function (whitespace and single versus double quotation marks, for + // example), the value returned may not be identical to the string sent in a + // mutate request. + optional string function_string = 5; + + // Operator for a function. + google.ads.googleads.v6.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. + repeated Operand left_operands = 2; + + // The operands on the right hand side of the equation. + repeated Operand right_operands = 3; +} + +// An operand in a matching function. +message Operand { + // A constant operand in a matching function. + message ConstantOperand { + // Constant operand values. Required. + oneof constant_operand_value { + // String value of the operand if it is a string type. + string string_value = 5; + + // Int64 value of the operand if it is a int64 type. + int64 long_value = 6; + + // Boolean value of the operand if it is a boolean type. + bool boolean_value = 7; + + // Double value of the operand if it is a double type. + double double_value = 8; + } + } + + // A feed attribute operand in a matching function. + // Used to represent a feed attribute in feed. + message FeedAttributeOperand { + // The associated feed. Required. + optional int64 feed_id = 3; + + // Id of the referenced feed attribute. Required. + optional int64 feed_attribute_id = 4; + } + + // A function operand in a matching function. + // Used to represent nested functions. + message FunctionOperand { + // The matching function held in this operand. + MatchingFunction matching_function = 1; + } + + // 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.v6.enums.MatchingFunctionContextTypeEnum.MatchingFunctionContextType context_type = 1; + } + + // Different operands that can be used in a matching function. Required. + oneof function_argument_operand { + // A constant operand in a matching function. + ConstantOperand constant_operand = 1; + + // This operand specifies a feed attribute in feed. + FeedAttributeOperand feed_attribute_operand = 2; + + // A function operand in a matching function. + // Used to represent nested functions. + FunctionOperand function_operand = 3; + + // An operand in a function referring to a value in the request context. + RequestContextOperand request_context_operand = 4; + } +} diff --git a/third_party/googleapis/google/ads/googleads/v6/common/metrics.proto b/third_party/googleapis/google/ads/googleads/v6/common/metrics.proto new file mode 100644 index 000000000..8bc0f4ae7 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/common/metrics.proto @@ -0,0 +1,605 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.common; + +import "google/ads/googleads/v6/enums/interaction_event_type.proto"; +import "google/ads/googleads/v6/enums/quality_score_bucket.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Common"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/common;common"; +option java_multiple_files = true; +option java_outer_classname = "MetricsProto"; +option java_package = "com.google.ads.googleads.v6.common"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Common"; +option ruby_package = "Google::Ads::GoogleAds::V6::Common"; + +// Proto file describing metrics. + +// Metrics data. +message Metrics { + // The percent of your ad impressions that are shown as the very first ad + // above the organic search results. + optional double absolute_top_impression_percentage = 183; + + // Average cost of viewable impressions (`active_view_impressions`). + optional double active_view_cpm = 184; + + // Active view measurable clicks divided by active view viewable impressions. + // This metric is reported only for display network. + optional double active_view_ctr = 185; + + // A measurement of how often your ad has become viewable on a Display + // Network site. + optional int64 active_view_impressions = 186; + + // The ratio of impressions that could be measured by Active View over the + // number of served impressions. + optional double active_view_measurability = 187; + + // The cost of the impressions you received that were measurable by Active + // View. + optional int64 active_view_measurable_cost_micros = 188; + + // The number of times your ads are appearing on placements in positions + // where they can be seen. + optional int64 active_view_measurable_impressions = 189; + + // The percentage of time when your ad appeared on an Active View enabled site + // (measurable impressions) and was viewable (viewable impressions). + optional double active_view_viewability = 190; + + // All conversions from interactions (as oppose to view through conversions) + // divided by the number of ad interactions. + optional double all_conversions_from_interactions_rate = 191; + + // The value of all conversions. + optional double all_conversions_value = 192; + + // The value of all conversions. When this column is selected with date, the + // values in date column means the conversion date. Details for the + // by_conversion_date columns are available at + // https://support.google.com/google-ads/answer/9549009. + double all_conversions_value_by_conversion_date = 240; + + // The total number of conversions. This includes all conversions regardless + // of the value of include_in_conversions_metric. + optional double all_conversions = 193; + + // The total number of conversions. This includes all conversions regardless + // of the value of include_in_conversions_metric. When this column is selected + // with date, the values in date column means the conversion date. Details for + // the by_conversion_date columns are available at + // https://support.google.com/google-ads/answer/9549009. + double all_conversions_by_conversion_date = 241; + + // The value of all conversions divided by the total cost of ad interactions + // (such as clicks for text ads or views for video ads). + optional double all_conversions_value_per_cost = 194; + + // The number of times people clicked the "Call" button to call a store during + // or after clicking an ad. This number doesn't include whether or not calls + // were connected, or the duration of any calls. + // This metric applies to feed items only. + optional double all_conversions_from_click_to_call = 195; + + // The number of times people clicked a "Get directions" button to navigate to + // a store after clicking an ad. + // This metric applies to feed items only. + optional double all_conversions_from_directions = 196; + + // The value of all conversions from interactions divided by the total number + // of interactions. + optional double all_conversions_from_interactions_value_per_interaction = 197; + + // The number of times people clicked a link to view a store's menu after + // clicking an ad. + // This metric applies to feed items only. + optional double all_conversions_from_menu = 198; + + // The number of times people placed an order at a store after clicking an ad. + // This metric applies to feed items only. + optional double all_conversions_from_order = 199; + + // The number of other conversions (for example, posting a review or saving a + // location for a store) that occurred after people clicked an ad. + // This metric applies to feed items only. + optional double all_conversions_from_other_engagement = 200; + + // Estimated number of times people visited a store after clicking an ad. + // This metric applies to feed items only. + optional double all_conversions_from_store_visit = 201; + + // The number of times that people were taken to a store's URL after clicking + // an ad. + // This metric applies to feed items only. + optional double all_conversions_from_store_website = 202; + + // The average amount you pay per interaction. This amount is the total cost + // of your ads divided by the total number of interactions. + optional double average_cost = 203; + + // The total cost of all clicks divided by the total number of clicks + // received. + optional double average_cpc = 204; + + // The average amount that you've been charged for an ad engagement. This + // amount is the total cost of all ad engagements divided by the total number + // of ad engagements. + optional double average_cpe = 205; + + // Average cost-per-thousand impressions (CPM). + optional double average_cpm = 206; + + // The average amount you pay each time someone views your ad. + // The average CPV is defined by the total cost of all ad views divided by + // the number of views. + optional double average_cpv = 207; + + // Average number of pages viewed per session. + optional double average_page_views = 208; + + // Total duration of all sessions (in seconds) / number of sessions. Imported + // from Google Analytics. + optional double average_time_on_site = 209; + + // An indication of how other advertisers are bidding on similar products. + optional double benchmark_average_max_cpc = 210; + + // An indication on how other advertisers' Shopping ads for similar products + // are performing based on how often people who see their ad click on it. + optional double benchmark_ctr = 211; + + // Percentage of clicks where the user only visited a single page on your + // site. Imported from Google Analytics. + optional double bounce_rate = 212; + + // The number of clicks. + optional int64 clicks = 131; + + // The number of times your ad or your site's listing in the unpaid + // results was clicked. See the help page at + // https://support.google.com/google-ads/answer/3097241 for details. + optional int64 combined_clicks = 156; + + // The number of times your ad or your site's listing in the unpaid + // results was clicked (combined_clicks) divided by combined_queries. See the + // help page at https://support.google.com/google-ads/answer/3097241 for + // details. + optional double combined_clicks_per_query = 157; + + // The number of searches that returned pages from your site in the unpaid + // results or showed one of your text ads. See the help page at + // https://support.google.com/google-ads/answer/3097241 for details. + optional int64 combined_queries = 158; + + // The estimated percent of times that your ad was eligible to show + // on the Display Network but didn't because your budget was too low. + // Note: Content budget lost impression share is reported in the range of 0 + // to 0.9. Any value above 0.9 is reported as 0.9001. + optional double content_budget_lost_impression_share = 159; + + // The impressions you've received on the Display Network divided + // by the estimated number of impressions you were eligible to receive. + // Note: Content impression share is reported in the range of 0.1 to 1. Any + // value below 0.1 is reported as 0.0999. + optional double content_impression_share = 160; + + // The last date/time a conversion tag for this conversion action successfully + // fired and was seen by Google Ads. This firing event may not have been the + // result of an attributable conversion (e.g. because the tag was fired from a + // browser that did not previously click an ad from an appropriate + // advertiser). The date/time is in the customer's time zone. + optional string conversion_last_received_request_date_time = 161; + + // The date of the most recent conversion for this conversion action. The date + // is in the customer's time zone. + optional string conversion_last_conversion_date = 162; + + // The estimated percentage of impressions on the Display Network + // that your ads didn't receive due to poor Ad Rank. + // Note: Content rank lost impression share is reported in the range of 0 + // to 0.9. Any value above 0.9 is reported as 0.9001. + optional double content_rank_lost_impression_share = 163; + + // Conversions from interactions divided by the 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. If you use conversion-based bidding, your bid strategies will + // optimize for these conversions. + optional double conversions_from_interactions_rate = 164; + + // The value of conversions. This only includes conversion actions which + // include_in_conversions_metric attribute is set to true. If you use + // conversion-based bidding, your bid strategies will optimize for these + // conversions. + optional double conversions_value = 165; + + // The value of conversions. This only includes conversion actions which + // include_in_conversions_metric attribute is set to true. If you use + // conversion-based bidding, your bid strategies will optimize for these + // conversions. When this column is selected with date, the values in date + // column means the conversion date. Details for the by_conversion_date + // columns are available at + // https://support.google.com/google-ads/answer/9549009. + double conversions_value_by_conversion_date = 242; + + // The value of conversions divided by the cost of ad interactions. This only + // includes conversion actions which include_in_conversions_metric attribute + // is set to true. If you use conversion-based bidding, your bid strategies + // will optimize for these conversions. + optional double conversions_value_per_cost = 166; + + // 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. If you use + // conversion-based bidding, your bid strategies will optimize for these + // conversions. + optional double conversions_from_interactions_value_per_interaction = 167; + + // The number of conversions. This only includes conversion actions which + // include_in_conversions_metric attribute is set to true. If you use + // conversion-based bidding, your bid strategies will optimize for these + // conversions. + optional double conversions = 168; + + // The number of conversions. This only includes conversion actions which + // include_in_conversions_metric attribute is set to true. If you use + // conversion-based bidding, your bid strategies will optimize for these + // conversions. When this column is selected with date, the values in date + // column means the conversion date. Details for the by_conversion_date + // columns are available at + // https://support.google.com/google-ads/answer/9549009. + double conversions_by_conversion_date = 243; + + // The sum of your cost-per-click (CPC) and cost-per-thousand impressions + // (CPM) costs during this period. + optional int64 cost_micros = 169; + + // The cost of ad interactions divided by all conversions. + optional double cost_per_all_conversions = 170; + + // The cost of ad interactions divided by conversions. This only includes + // conversion actions which include_in_conversions_metric attribute is set to + // true. If you use conversion-based bidding, your bid strategies will + // optimize for these conversions. + optional double cost_per_conversion = 171; + + // 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. If you use + // conversion-based bidding, your bid strategies will optimize for these + // conversions. + optional double cost_per_current_model_attributed_conversion = 172; + + // Conversions from when a customer clicks on a Google Ads ad on one device, + // then converts on a different device or browser. + // Cross-device conversions are already included in all_conversions. + optional double cross_device_conversions = 173; + + // The number of clicks your ad receives (Clicks) divided by the number + // of times your ad is shown (Impressions). + optional double ctr = 174; + + // Shows how your historic conversions data would look under the attribution + // model you've currently selected. This only includes conversion actions + // which include_in_conversions_metric attribute is set to true. If you use + // conversion-based bidding, your bid strategies will optimize for these + // conversions. + optional double current_model_attributed_conversions = 175; + + // Current model attributed conversions from interactions divided by the + // 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. If you use + // conversion-based bidding, your bid strategies will optimize for these + // conversions. + optional double current_model_attributed_conversions_from_interactions_rate = 176; + + // 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. If you use + // conversion-based bidding, your bid strategies will optimize for these + // conversions. + optional double current_model_attributed_conversions_from_interactions_value_per_interaction = 177; + + // The value of current model attributed conversions. This only includes + // conversion actions which include_in_conversions_metric attribute is set to + // true. If you use conversion-based bidding, your bid strategies will + // optimize for these conversions. + optional double current_model_attributed_conversions_value = 178; + + // 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. If you use + // conversion-based bidding, your bid strategies will optimize for these + // conversions. + optional double current_model_attributed_conversions_value_per_cost = 179; + + // 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. + optional double engagement_rate = 180; + + // The number of engagements. + // An engagement occurs when a viewer expands your Lightbox ad. Also, in the + // future, other ad types may support engagement metrics. + optional int64 engagements = 181; + + // Average lead value based on clicks. + optional double hotel_average_lead_value_micros = 213; + + // The average price difference between the price offered by reporting hotel + // advertiser and the cheapest price offered by the competing advertiser. + optional double hotel_price_difference_percentage = 214; + + // The number of impressions that hotel partners could have had given their + // feed performance. + optional int64 hotel_eligible_impressions = 215; + + // The creative historical quality score. + google.ads.googleads.v6.enums.QualityScoreBucketEnum.QualityScoreBucket historical_creative_quality_score = 80; + + // The quality of historical landing page experience. + google.ads.googleads.v6.enums.QualityScoreBucketEnum.QualityScoreBucket historical_landing_page_quality_score = 81; + + // The historical quality score. + optional int64 historical_quality_score = 216; + + // The historical search predicted click through rate (CTR). + google.ads.googleads.v6.enums.QualityScoreBucketEnum.QualityScoreBucket historical_search_predicted_ctr = 83; + + // The number of times the ad was forwarded to someone else as a message. + optional int64 gmail_forwards = 217; + + // The number of times someone has saved your Gmail ad to their inbox as a + // message. + optional int64 gmail_saves = 218; + + // The number of clicks to the landing page on the expanded state of Gmail + // ads. + optional int64 gmail_secondary_clicks = 219; + + // The number of times a store's location-based ad was shown. + // This metric applies to feed items only. + optional int64 impressions_from_store_reach = 220; + + // Count of how often your ad has appeared on a search results page or + // website on the Google Network. + optional int64 impressions = 221; + + // How often people interact with your ad after it is shown to them. + // This is the number of interactions divided by the number of times your ad + // is shown. + optional double interaction_rate = 222; + + // The number of interactions. + // An interaction is the main user action associated with an ad format-clicks + // for text and shopping ads, views for video ads, and so on. + optional int64 interactions = 223; + + // The types of payable and free interactions. + repeated google.ads.googleads.v6.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. + optional double invalid_click_rate = 224; + + // Number of clicks Google considers illegitimate and doesn't charge you for. + optional int64 invalid_clicks = 225; + + // Number of message chats initiated for Click To Message impressions that + // were message tracking eligible. + optional int64 message_chats = 226; + + // Number of Click To Message impressions that were message tracking eligible. + optional int64 message_impressions = 227; + + // Number of message chats initiated (message_chats) divided by the number + // of message impressions (message_impressions). + // Rate at which a user initiates a message chat from an ad impression with + // a messaging option and message tracking enabled. + // Note that this rate can be more than 1.0 for a given message impression. + optional double message_chat_rate = 228; + + // The percentage of mobile clicks that go to a mobile-friendly page. + optional double mobile_friendly_clicks_percentage = 229; + + // The number of times someone clicked your site's listing in the unpaid + // results for a particular query. See the help page at + // https://support.google.com/google-ads/answer/3097241 for details. + optional int64 organic_clicks = 230; + + // The number of times someone clicked your site's listing in the unpaid + // results (organic_clicks) divided by the total number of searches that + // returned pages from your site (organic_queries). See the help page at + // https://support.google.com/google-ads/answer/3097241 for details. + optional double organic_clicks_per_query = 231; + + // The number of listings for your site in the unpaid search results. See the + // help page at https://support.google.com/google-ads/answer/3097241 for + // details. + optional int64 organic_impressions = 232; + + // The number of times a page from your site was listed in the unpaid search + // results (organic_impressions) divided by the number of searches returning + // your site's listing in the unpaid results (organic_queries). See the help + // page at https://support.google.com/google-ads/answer/3097241 for details. + optional double organic_impressions_per_query = 233; + + // The total number of searches that returned your site's listing in the + // unpaid results. See the help page at + // https://support.google.com/google-ads/answer/3097241 for details. + optional int64 organic_queries = 234; + + // Percentage of first-time sessions (from people who had never visited your + // site before). Imported from Google Analytics. + optional double percent_new_visitors = 235; + + // Number of offline phone calls. + optional int64 phone_calls = 236; + + // Number of offline phone impressions. + optional int64 phone_impressions = 237; + + // Number of phone calls received (phone_calls) divided by the number of + // times your phone number is shown (phone_impressions). + optional double phone_through_rate = 238; + + // Your clickthrough rate (Ctr) divided by the average clickthrough rate of + // all advertisers on the websites that show your ads. Measures how your ads + // perform on Display Network sites compared to other ads on the same sites. + optional double relative_ctr = 239; + + // The percentage of the customer's Shopping or Search ad impressions that are + // shown in the most prominent Shopping position. See + // https://support.google.com/google-ads/answer/7501826 + // for details. Any value below 0.1 is reported as 0.0999. + optional double search_absolute_top_impression_share = 136; + + // The number estimating how often your ad wasn't the very first ad above the + // 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. + optional double search_budget_lost_absolute_top_impression_share = 137; + + // 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 + // budget lost impression share is reported in the range of 0 to 0.9. Any + // value above 0.9 is reported as 0.9001. + optional double search_budget_lost_impression_share = 138; + + // The number estimating how often your ad didn't show anywhere above the + // organic search results due to a low budget. Note: Search + // budget lost top impression share is reported in the range of 0 to 0.9. Any + // value above 0.9 is reported as 0.9001. + optional double search_budget_lost_top_impression_share = 139; + + // The number of clicks you've received on the Search Network + // divided by the estimated number of clicks you were eligible to receive. + // Note: Search click share is reported in the range of 0.1 to 1. Any value + // below 0.1 is reported as 0.0999. + optional double search_click_share = 140; + + // The impressions you've received divided by the estimated number of + // impressions you were eligible to receive on the Search Network for search + // terms that matched your keywords exactly (or were close variants of your + // keyword), regardless of your keyword match types. Note: Search exact match + // impression share is reported in the range of 0.1 to 1. Any value below 0.1 + // is reported as 0.0999. + optional double search_exact_match_impression_share = 141; + + // The impressions you've received on the Search Network divided + // by the estimated number of impressions you were eligible to receive. + // Note: Search impression share is reported in the range of 0.1 to 1. Any + // value below 0.1 is reported as 0.0999. + optional double search_impression_share = 142; + + // The number estimating how often your ad wasn't the very first ad above the + // 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. + optional double search_rank_lost_absolute_top_impression_share = 143; + + // The estimated percentage of impressions on the Search Network + // that your ads didn't receive due to poor Ad Rank. + // Note: Search rank lost impression share is reported in the range of 0 to + // 0.9. Any value above 0.9 is reported as 0.9001. + optional double search_rank_lost_impression_share = 144; + + // The number estimating how often your ad didn't show anywhere above the + // organic search results due to poor Ad Rank. + // Note: Search rank lost top impression share is reported in the range of 0 + // to 0.9. Any value above 0.9 is reported as 0.9001. + optional double search_rank_lost_top_impression_share = 145; + + // The impressions you've received in the top location (anywhere above the + // organic search results) compared to the estimated number of impressions you + // were eligible to receive in the top location. + // Note: Search top impression share is reported in the range of 0.1 to 1. Any + // value below 0.1 is reported as 0.0999. + optional double search_top_impression_share = 146; + + // A measure of how quickly your page loads after clicks on your mobile ads. + // The score is a range from 1 to 10, 10 being the fastest. + optional int64 speed_score = 147; + + // The percent of your ad impressions that are shown anywhere above the + // organic search results. + optional double top_impression_percentage = 148; + + // The percentage of ad clicks to Accelerated Mobile Pages (AMP) landing pages + // that reach a valid AMP page. + optional double valid_accelerated_mobile_pages_clicks_percentage = 149; + + // The value of all conversions divided by the number of all conversions. + optional double value_per_all_conversions = 150; + + // The value of all conversions divided by the number of all conversions. When + // this column is selected with date, the values in date column means the + // conversion date. Details for the by_conversion_date columns are available + // at https://support.google.com/google-ads/answer/9549009. + optional double value_per_all_conversions_by_conversion_date = 244; + + // The value of conversions divided by the number of conversions. This only + // includes conversion actions which include_in_conversions_metric attribute + // is set to true. If you use conversion-based bidding, your bid strategies + // will optimize for these conversions. + optional double value_per_conversion = 151; + + // The value of conversions divided by the number of conversions. This only + // includes conversion actions which include_in_conversions_metric attribute + // is set to true. If you use conversion-based bidding, your bid strategies + // will optimize for these conversions. When this column is selected with + // date, the values in date column means the conversion date. Details for the + // by_conversion_date columns are available at + // https://support.google.com/google-ads/answer/9549009. + optional double value_per_conversions_by_conversion_date = 245; + + // 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. If you use + // conversion-based bidding, your bid strategies will optimize for these + // conversions. + optional double value_per_current_model_attributed_conversion = 152; + + // Percentage of impressions where the viewer watched all of your video. + optional double video_quartile_p100_rate = 132; + + // Percentage of impressions where the viewer watched 25% of your video. + optional double video_quartile_p25_rate = 133; + + // Percentage of impressions where the viewer watched 50% of your video. + optional double video_quartile_p50_rate = 134; + + // Percentage of impressions where the viewer watched 75% of your video. + optional double video_quartile_p75_rate = 135; + + // The number of views your TrueView video ad receives divided by its number + // of impressions, including thumbnail impressions for TrueView in-display + // ads. + optional double video_view_rate = 153; + + // The number of times your video ads were viewed. + optional int64 video_views = 154; + + // The total number of view-through conversions. + // These happen when a customer sees an image or rich media ad, then later + // completes a conversion on your site without interacting with (e.g., + // clicking on) another ad. + optional int64 view_through_conversions = 155; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/common/offline_user_data.proto b/third_party/googleapis/google/ads/googleads/v6/common/offline_user_data.proto new file mode 100644 index 000000000..115b05479 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/common/offline_user_data.proto @@ -0,0 +1,214 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.common; + +import "google/ads/googleads/v6/enums/user_identifier_source.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Common"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/common;common"; +option java_multiple_files = true; +option java_outer_classname = "OfflineUserDataProto"; +option java_package = "com.google.ads.googleads.v6.common"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Common"; +option ruby_package = "Google::Ads::GoogleAds::V6::Common"; + +// Proto file describing offline user data. + +// Address identifier of offline data. +message OfflineUserAddressInfo { + // First name of the user, which is hashed as SHA-256 after normalized + // (Lowercase all characters; Remove any extra spaces before, after, and in + // between). + optional string hashed_first_name = 7; + + // Last name of the user, which is hashed as SHA-256 after normalized (lower + // case only and no punctuation). + optional string hashed_last_name = 8; + + // City of the address. Only accepted for Store Sales Direct data. + optional string city = 9; + + // State code of the address. Only accepted for Store Sales Direct data. + optional string state = 10; + + // 2-letter country code in ISO-3166-1 alpha-2 of the user's address. + optional string country_code = 11; + + // Postal code of the user's address. + optional string postal_code = 12; +} + +// Hashed user identifying information. +message UserIdentifier { + // Source of the user identifier when the upload is from Store Sales third + // party partners. + google.ads.googleads.v6.enums.UserIdentifierSourceEnum.UserIdentifierSource user_identifier_source = 6; + + // Exactly one must be specified. + oneof identifier { + // Hashed email address using SHA-256 hash function after normalization. + string hashed_email = 7; + + // Hashed phone number using SHA-256 hash function after normalization + // (E164 standard). + string hashed_phone_number = 8; + + // Mobile device ID (advertising ID/IDFA). + string mobile_id = 9; + + // Advertiser-assigned user ID for Customer Match upload, or + // third-party-assigned user ID for SSD. + string third_party_user_id = 10; + + // Address information. + OfflineUserAddressInfo address_info = 5; + } +} + +// Attribute of the store sales transaction. +message TransactionAttribute { + // Timestamp when transaction occurred. Required. + // The format is "YYYY-MM-DD HH:MM:SS[+/-HH:MM]", where [+/-HH:MM] is an + // optional timezone offset from UTC. If the offset is absent, the API will + // use the account's timezone as default. + // Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30+03:00" + optional string transaction_date_time = 8; + + // Transaction amount in micros. Required. + optional double transaction_amount_micros = 9; + + // Transaction currency code. ISO 4217 three-letter code is used. Required. + optional string currency_code = 10; + + // The resource name of conversion action to report conversions to. + // Required. + optional string conversion_action = 11; + + // Transaction order id. + // Accessible only to customers on the allow-list. + optional string order_id = 12; + + // Store attributes of the transaction. + // Accessible only to customers on the allow-list. + StoreAttribute store_attribute = 6; + + // Value of the custom variable for each transaction. + // Accessible only to customers on the allow-list. + optional string custom_value = 13; +} + +// Store attributes of the transaction. +message StoreAttribute { + // Store code from + // https://support.google.com/business/answer/3370250#storecode + optional string store_code = 2; +} + +// User data holding user identifiers and attributes. +message UserData { + // User identification info. Required. + repeated UserIdentifier user_identifiers = 1; + + // Additional transactions/attributes associated with the user. + // Required when updating store sales data. + TransactionAttribute transaction_attribute = 2; + + // Additional attributes associated with the user. Required when updating + // customer match attributes. These have an expiration of 540 days. + UserAttribute user_attribute = 3; +} + +// User attribute, can only be used with CUSTOMER_MATCH_WITH_ATTRIBUTES job +// type. +message UserAttribute { + // Advertiser defined lifetime value for the user. + optional int64 lifetime_value_micros = 1; + + // Advertiser defined lifetime value bucket for the user. The valid range for + // a lifetime value bucket is from 1 (low) to 10 (high), except for remove + // operation where 0 will also be accepted. + optional int32 lifetime_value_bucket = 2; +} + +// Metadata for customer match user list. +message CustomerMatchUserListMetadata { + // The resource name of remarketing list to update data. + // Required for job of CUSTOMER_MATCH_USER_LIST type. + optional string user_list = 2; +} + +// Metadata for Store Sales Direct. +message StoreSalesMetadata { + // This is the fraction of all transactions that are identifiable (i.e., + // associated with any form of customer information). + // Required. + // The fraction needs to be between 0 and 1 (excluding 0). + optional double loyalty_fraction = 5; + + // This is the ratio of sales being uploaded compared to the overall sales + // that can be associated with a customer. Required. + // The fraction needs to be between 0 and 1 (excluding 0). For example, if you + // upload half the sales that you are able to associate with a customer, this + // would be 0.5. + optional double transaction_upload_fraction = 6; + + // Name of the store sales custom variable key. A predefined key that + // can be applied to the transaction and then later used for custom + // segmentation in reporting. + // Accessible only to customers on the allow-list. + optional string custom_key = 7; + + // Metadata for a third party Store Sales upload. + StoreSalesThirdPartyMetadata third_party_metadata = 3; +} + +// Metadata for a third party Store Sales. +// This product is only for customers on the allow-list. Please contact your +// Google business development representative for details on the upload +// configuration. +message StoreSalesThirdPartyMetadata { + // Time the advertiser uploaded the data to the partner. Required. + // The format is "YYYY-MM-DD HH:MM:SS". + // Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30" + optional string advertiser_upload_date_time = 7; + + // The fraction of transactions that are valid. Invalid transactions may + // include invalid formats or values. + // Required. + // The fraction needs to be between 0 and 1 (excluding 0). + optional double valid_transaction_fraction = 8; + + // The fraction of valid transactions that are matched to a third party + // assigned user ID on the partner side. + // Required. + // The fraction needs to be between 0 and 1 (excluding 0). + optional double partner_match_fraction = 9; + + // The fraction of valid transactions that are uploaded by the partner to + // Google. + // Required. + // The fraction needs to be between 0 and 1 (excluding 0). + optional double partner_upload_fraction = 10; + + // Version of partner IDs to be used for uploads. Required. + optional string bridge_map_version_id = 11; + + // ID of the third party partner updating the transaction feed. + optional int64 partner_id = 12; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/common/policy.proto b/third_party/googleapis/google/ads/googleads/v6/common/policy.proto new file mode 100644 index 000000000..3a5719e1d --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/common/policy.proto @@ -0,0 +1,222 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.common; + +import "google/ads/googleads/v6/enums/policy_topic_entry_type.proto"; +import "google/ads/googleads/v6/enums/policy_topic_evidence_destination_mismatch_url_type.proto"; +import "google/ads/googleads/v6/enums/policy_topic_evidence_destination_not_working_device.proto"; +import "google/ads/googleads/v6/enums/policy_topic_evidence_destination_not_working_dns_error_type.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Common"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/common;common"; +option java_multiple_files = true; +option java_outer_classname = "PolicyProto"; +option java_package = "com.google.ads.googleads.v6.common"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Common"; +option ruby_package = "Google::Ads::GoogleAds::V6::Common"; + +// Proto file describing policy information. + +// Key of the violation. The key is used for referring to a violation +// when filing an exemption request. +message PolicyViolationKey { + // Unique ID of the violated policy. + optional string policy_name = 3; + + // The text that violates the policy if specified. + // Otherwise, refers to the policy in general + // (e.g., when requesting to be exempt from the whole policy). + // If not specified for criterion exemptions, the whole policy is implied. + // Must be specified for ad exemptions. + optional string violating_text = 4; +} + +// Parameter for controlling how policy exemption is done. Ignorable policy +// topics are only usable with expanded text ads and responsive search ads. All +// other ad types must use policy violation keys. +message PolicyValidationParameter { + // The list of policy topics that should not cause a PolicyFindingError to + // be reported. This field is currently only compatible with Enhanced Text Ad. + // It corresponds to the PolicyTopicEntry.topic field. + // + // Resources violating these policies will be saved, but will not be eligible + // to serve. They may begin serving at a later time due to a change in + // policies, re-review of the resource, or a change in advertiser + // certificates. + repeated string ignorable_policy_topics = 3; + + // The list of policy violation keys that should not cause a + // PolicyViolationError to be reported. Not all policy violations are + // exemptable, please refer to the is_exemptible field in the returned + // PolicyViolationError. + // + // Resources violating these polices will be saved, but will not be eligible + // to serve. They may begin serving at a later time due to a change in + // policies, re-review of the resource, or a change in advertiser + // certificates. + repeated PolicyViolationKey exempt_policy_violation_keys = 2; +} + +// Policy finding attached to a resource (e.g. alcohol policy associated with +// a site that sells alcohol). +// +// Each PolicyTopicEntry has a topic that indicates the specific ads policy +// the entry is about and a type to indicate the effect that the entry will have +// on serving. It may optionally have one or more evidences that indicate the +// reason for the finding. It may also optionally have one or more constraints +// that provide details about how serving may be restricted. +message PolicyTopicEntry { + // Policy topic this finding refers to. For example, "ALCOHOL", + // "TRADEMARKS_IN_AD_TEXT", or "DESTINATION_NOT_WORKING". The set of possible + // policy topics is not fixed for a particular API version and may change + // at any time. + optional string topic = 5; + + // Describes the negative or positive effect this policy will have on serving. + google.ads.googleads.v6.enums.PolicyTopicEntryTypeEnum.PolicyTopicEntryType type = 2; + + // Additional information that explains policy finding + // (e.g. the brand name for a trademark finding). + repeated PolicyTopicEvidence evidences = 3; + + // Indicates how serving of this resource may be affected (e.g. not serving + // in a country). + repeated PolicyTopicConstraint constraints = 4; +} + +// Additional information that explains a policy finding. +message PolicyTopicEvidence { + // A list of fragments of text that violated a policy. + message TextList { + // The fragments of text from the resource that caused the policy finding. + repeated string texts = 2; + } + + // A list of websites that caused a policy finding. Used for + // ONE_WEBSITE_PER_AD_GROUP policy topic, for example. In case there are more + // than five websites, only the top five (those that appear in resources the + // most) will be listed here. + message WebsiteList { + // Websites that caused the policy finding. + repeated string websites = 2; + } + + // A list of strings found in a destination page that caused a policy + // finding. + message DestinationTextList { + // List of text found in the resource's destination page. + repeated string destination_texts = 2; + } + + // 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.v6.enums.PolicyTopicEvidenceDestinationMismatchUrlTypeEnum.PolicyTopicEvidenceDestinationMismatchUrlType url_types = 1; + } + + // Evidence details when the destination is returning an HTTP error + // code or isn't functional in all locations for commonly used devices. + message DestinationNotWorking { + // The full URL that didn't work. + optional string expanded_url = 7; + + // The type of device that failed to load the URL. + google.ads.googleads.v6.enums.PolicyTopicEvidenceDestinationNotWorkingDeviceEnum.PolicyTopicEvidenceDestinationNotWorkingDevice device = 4; + + // The time the URL was last checked. + // The format is "YYYY-MM-DD HH:MM:SS". + // Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30" + optional string last_checked_date_time = 8; + + // Indicates the reason of the DESTINATION_NOT_WORKING policy finding. + oneof reason { + // The type of DNS error. + google.ads.googleads.v6.enums.PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum.PolicyTopicEvidenceDestinationNotWorkingDnsErrorType dns_error_type = 1; + + // The HTTP error code. + int64 http_error_code = 6; + } + } + + // Specific evidence information depending on the evidence type. + oneof value { + // List of websites linked with this resource. + WebsiteList website_list = 3; + + // List of evidence found in the text of a resource. + TextList text_list = 4; + + // The language the resource was detected to be written in. + // This is an IETF language tag such as "en-US". + string language_code = 9; + + // The text in the destination of the resource that is causing a policy + // finding. + DestinationTextList destination_text_list = 6; + + // Mismatch between the destinations of a resource's URLs. + DestinationMismatch destination_mismatch = 7; + + // Details when the destination is returning an HTTP error code or isn't + // functional in all locations for commonly used devices. + DestinationNotWorking destination_not_working = 8; + } +} + +// Describes the effect on serving that a policy topic entry will have. +message PolicyTopicConstraint { + // A list of countries where a resource's serving is constrained. + message CountryConstraintList { + // Total number of countries targeted by the resource. + optional int32 total_targeted_countries = 3; + + // Countries in which serving is restricted. + repeated CountryConstraint countries = 2; + } + + // Indicates that a policy topic was constrained due to disapproval of the + // website for reseller purposes. + message ResellerConstraint { + + } + + // Indicates that a resource's ability to serve in a particular country is + // constrained. + message CountryConstraint { + // Geo target constant resource name of the country in which serving is + // constrained. + optional string country_criterion = 2; + } + + // Specific information about the constraint. + oneof value { + // Countries where the resource cannot serve. + CountryConstraintList country_constraint_list = 1; + + // Reseller constraint. + ResellerConstraint reseller_constraint = 2; + + // Countries where a certificate is required for serving. + CountryConstraintList certificate_missing_in_country_list = 3; + + // Countries where the resource's domain is not covered by the + // certificates associated with it. + CountryConstraintList certificate_domain_mismatch_in_country_list = 4; + } +} diff --git a/third_party/googleapis/google/ads/googleads/v6/common/real_time_bidding_setting.proto b/third_party/googleapis/google/ads/googleads/v6/common/real_time_bidding_setting.proto new file mode 100644 index 000000000..72aade423 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/common/real_time_bidding_setting.proto @@ -0,0 +1,37 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.common; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Common"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/common;common"; +option java_multiple_files = true; +option java_outer_classname = "RealTimeBiddingSettingProto"; +option java_package = "com.google.ads.googleads.v6.common"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Common"; +option ruby_package = "Google::Ads::GoogleAds::V6::Common"; + +// Proto file describing RealTimeBiddingSetting + +// Settings for Real-Time Bidding, a feature only available for campaigns +// targeting the Ad Exchange network. +message RealTimeBiddingSetting { + // Whether the campaign is opted in to real-time bidding. + optional bool opt_in = 2; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/common/segments.proto b/third_party/googleapis/google/ads/googleads/v6/common/segments.proto new file mode 100644 index 000000000..3111b77bb --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/common/segments.proto @@ -0,0 +1,329 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.common; + +import "google/ads/googleads/v6/common/criteria.proto"; +import "google/ads/googleads/v6/enums/ad_destination_type.proto"; +import "google/ads/googleads/v6/enums/ad_network_type.proto"; +import "google/ads/googleads/v6/enums/budget_campaign_association_status.proto"; +import "google/ads/googleads/v6/enums/click_type.proto"; +import "google/ads/googleads/v6/enums/conversion_action_category.proto"; +import "google/ads/googleads/v6/enums/conversion_attribution_event_type.proto"; +import "google/ads/googleads/v6/enums/conversion_lag_bucket.proto"; +import "google/ads/googleads/v6/enums/conversion_or_adjustment_lag_bucket.proto"; +import "google/ads/googleads/v6/enums/day_of_week.proto"; +import "google/ads/googleads/v6/enums/device.proto"; +import "google/ads/googleads/v6/enums/external_conversion_source.proto"; +import "google/ads/googleads/v6/enums/hotel_date_selection_type.proto"; +import "google/ads/googleads/v6/enums/hotel_price_bucket.proto"; +import "google/ads/googleads/v6/enums/hotel_rate_type.proto"; +import "google/ads/googleads/v6/enums/month_of_year.proto"; +import "google/ads/googleads/v6/enums/placeholder_type.proto"; +import "google/ads/googleads/v6/enums/product_channel.proto"; +import "google/ads/googleads/v6/enums/product_channel_exclusivity.proto"; +import "google/ads/googleads/v6/enums/product_condition.proto"; +import "google/ads/googleads/v6/enums/search_engine_results_page_type.proto"; +import "google/ads/googleads/v6/enums/search_term_match_type.proto"; +import "google/ads/googleads/v6/enums/slot.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Common"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/common;common"; +option java_multiple_files = true; +option java_outer_classname = "SegmentsProto"; +option java_package = "com.google.ads.googleads.v6.common"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Common"; +option ruby_package = "Google::Ads::GoogleAds::V6::Common"; + +// Proto file describing segment only fields. + +// Segment only fields. +message Segments { + // Ad Destination type. + google.ads.googleads.v6.enums.AdDestinationTypeEnum.AdDestinationType ad_destination_type = 136; + + // Ad network type. + google.ads.googleads.v6.enums.AdNetworkTypeEnum.AdNetworkType ad_network_type = 3; + + // Budget campaign association status. + BudgetCampaignAssociationStatus budget_campaign_association_status = 134; + + // Click type. + google.ads.googleads.v6.enums.ClickTypeEnum.ClickType click_type = 26; + + // Resource name of the conversion action. + optional string conversion_action = 113; + + // Conversion action category. + google.ads.googleads.v6.enums.ConversionActionCategoryEnum.ConversionActionCategory conversion_action_category = 53; + + // Conversion action name. + optional string conversion_action_name = 114; + + // This segments your conversion columns by the original conversion and + // conversion value vs. the delta if conversions were adjusted. False row has + // the data as originally stated; While true row has the delta between data + // now and the data as originally stated. Summing the two together results + // post-adjustment data. + optional bool conversion_adjustment = 115; + + // Conversion attribution event type. + google.ads.googleads.v6.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.v6.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.v6.enums.ConversionOrAdjustmentLagBucketEnum.ConversionOrAdjustmentLagBucket conversion_or_adjustment_lag_bucket = 51; + + // Date to which metrics apply. + // yyyy-MM-dd format, e.g., 2018-04-17. + optional string date = 79; + + // Day of the week, e.g., MONDAY. + google.ads.googleads.v6.enums.DayOfWeekEnum.DayOfWeek day_of_week = 5; + + // Device to which metrics apply. + google.ads.googleads.v6.enums.DeviceEnum.Device device = 1; + + // External conversion source. + google.ads.googleads.v6.enums.ExternalConversionSourceEnum.ExternalConversionSource external_conversion_source = 55; + + // Resource name of the geo target constant that represents an airport. + optional string geo_target_airport = 116; + + // Resource name of the geo target constant that represents a canton. + optional string geo_target_canton = 117; + + // Resource name of the geo target constant that represents a city. + optional string geo_target_city = 118; + + // Resource name of the geo target constant that represents a country. + optional string geo_target_country = 119; + + // Resource name of the geo target constant that represents a county. + optional string geo_target_county = 120; + + // Resource name of the geo target constant that represents a district. + optional string geo_target_district = 121; + + // Resource name of the geo target constant that represents a metro. + optional string geo_target_metro = 122; + + // Resource name of the geo target constant that represents the most + // specific location. + optional string geo_target_most_specific_location = 123; + + // Resource name of the geo target constant that represents a postal code. + optional string geo_target_postal_code = 124; + + // Resource name of the geo target constant that represents a province. + optional string geo_target_province = 125; + + // Resource name of the geo target constant that represents a region. + optional string geo_target_region = 126; + + // Resource name of the geo target constant that represents a state. + optional string geo_target_state = 127; + + // Hotel booking window in days. + optional int64 hotel_booking_window_days = 135; + + // Hotel center ID. + optional int64 hotel_center_id = 80; + + // Hotel check-in date. Formatted as yyyy-MM-dd. + optional string hotel_check_in_date = 81; + + // Hotel check-in day of week. + google.ads.googleads.v6.enums.DayOfWeekEnum.DayOfWeek hotel_check_in_day_of_week = 9; + + // Hotel city. + optional string hotel_city = 82; + + // Hotel class. + optional int32 hotel_class = 83; + + // Hotel country. + optional string hotel_country = 84; + + // Hotel date selection type. + google.ads.googleads.v6.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType hotel_date_selection_type = 13; + + // Hotel length of stay. + optional int32 hotel_length_of_stay = 85; + + // Hotel rate rule ID. + optional string hotel_rate_rule_id = 86; + + // Hotel rate type. + google.ads.googleads.v6.enums.HotelRateTypeEnum.HotelRateType hotel_rate_type = 74; + + // Hotel price bucket. + google.ads.googleads.v6.enums.HotelPriceBucketEnum.HotelPriceBucket hotel_price_bucket = 78; + + // Hotel state. + optional string hotel_state = 87; + + // Hour of day as a number between 0 and 23, inclusive. + optional int32 hour = 88; + + // Only used with feed item metrics. + // Indicates whether the interaction metrics occurred on the feed item itself + // or a different extension or ad unit. + optional bool interaction_on_this_extension = 89; + + // Keyword criterion. + Keyword keyword = 61; + + // Month as represented by the date of the first day of a month. Formatted as + // yyyy-MM-dd. + optional string month = 90; + + // Month of the year, e.g., January. + google.ads.googleads.v6.enums.MonthOfYearEnum.MonthOfYear month_of_year = 18; + + // Partner hotel ID. + optional string partner_hotel_id = 91; + + // Placeholder type. This is only used with feed item metrics. + google.ads.googleads.v6.enums.PlaceholderTypeEnum.PlaceholderType placeholder_type = 20; + + // Aggregator ID of the product. + optional int64 product_aggregator_id = 132; + + // Bidding category (level 1) of the product. + optional string product_bidding_category_level1 = 92; + + // Bidding category (level 2) of the product. + optional string product_bidding_category_level2 = 93; + + // Bidding category (level 3) of the product. + optional string product_bidding_category_level3 = 94; + + // Bidding category (level 4) of the product. + optional string product_bidding_category_level4 = 95; + + // Bidding category (level 5) of the product. + optional string product_bidding_category_level5 = 96; + + // Brand of the product. + optional string product_brand = 97; + + // Channel of the product. + google.ads.googleads.v6.enums.ProductChannelEnum.ProductChannel product_channel = 30; + + // Channel exclusivity of the product. + google.ads.googleads.v6.enums.ProductChannelExclusivityEnum.ProductChannelExclusivity product_channel_exclusivity = 31; + + // Condition of the product. + google.ads.googleads.v6.enums.ProductConditionEnum.ProductCondition product_condition = 32; + + // Resource name of the geo target constant for the country of sale of the + // product. + optional string product_country = 98; + + // Custom attribute 0 of the product. + optional string product_custom_attribute0 = 99; + + // Custom attribute 1 of the product. + optional string product_custom_attribute1 = 100; + + // Custom attribute 2 of the product. + optional string product_custom_attribute2 = 101; + + // Custom attribute 3 of the product. + optional string product_custom_attribute3 = 102; + + // Custom attribute 4 of the product. + optional string product_custom_attribute4 = 103; + + // Item ID of the product. + optional string product_item_id = 104; + + // Resource name of the language constant for the language of the product. + optional string product_language = 105; + + // Merchant ID of the product. + optional int64 product_merchant_id = 133; + + // Store ID of the product. + optional string product_store_id = 106; + + // Title of the product. + optional string product_title = 107; + + // Type (level 1) of the product. + optional string product_type_l1 = 108; + + // Type (level 2) of the product. + optional string product_type_l2 = 109; + + // Type (level 3) of the product. + optional string product_type_l3 = 110; + + // Type (level 4) of the product. + optional string product_type_l4 = 111; + + // Type (level 5) of the product. + optional string product_type_l5 = 112; + + // Quarter as represented by the date of the first day of a quarter. + // Uses the calendar year for quarters, e.g., the second quarter of 2018 + // starts on 2018-04-01. Formatted as yyyy-MM-dd. + optional string quarter = 128; + + // Type of the search engine results page. + google.ads.googleads.v6.enums.SearchEngineResultsPageTypeEnum.SearchEngineResultsPageType search_engine_results_page_type = 70; + + // Match type of the keyword that triggered the ad, including variants. + google.ads.googleads.v6.enums.SearchTermMatchTypeEnum.SearchTermMatchType search_term_match_type = 22; + + // Position of the ad. + google.ads.googleads.v6.enums.SlotEnum.Slot slot = 23; + + // Resource name of the ad group criterion that represents webpage criterion. + optional string webpage = 129; + + // Week as defined as Monday through Sunday, and represented by the date of + // Monday. Formatted as yyyy-MM-dd. + optional string week = 130; + + // Year, formatted as yyyy. + optional int32 year = 131; +} + +// A Keyword criterion segment. +message Keyword { + // The AdGroupCriterion resource name. + optional string ad_group_criterion = 3; + + // Keyword info. + KeywordInfo info = 2; +} + +// A BudgetCampaignAssociationStatus segment. +message BudgetCampaignAssociationStatus { + // The campaign resource name. + optional string campaign = 1; + + // Budget campaign association status. + google.ads.googleads.v6.enums.BudgetCampaignAssociationStatusEnum.BudgetCampaignAssociationStatus status = 2; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/common/simulation.proto b/third_party/googleapis/google/ads/googleads/v6/common/simulation.proto new file mode 100644 index 000000000..e6cb22076 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/common/simulation.proto @@ -0,0 +1,235 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.common; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Common"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/common;common"; +option java_multiple_files = true; +option java_outer_classname = "SimulationProto"; +option java_package = "com.google.ads.googleads.v6.common"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Common"; +option ruby_package = "Google::Ads::GoogleAds::V6::Common"; + +// Proto file describing simulation points. + +// A container for simulation points for simulations of type BID_MODIFIER. +message BidModifierSimulationPointList { + // Projected metrics for a series of bid modifier amounts. + repeated BidModifierSimulationPoint points = 1; +} + +// A container for simulation points for simulations of type CPC_BID. +message CpcBidSimulationPointList { + // Projected metrics for a series of CPC bid amounts. + repeated CpcBidSimulationPoint points = 1; +} + +// A container for simulation points for simulations of type CPV_BID. +message CpvBidSimulationPointList { + // Projected metrics for a series of CPV bid amounts. + repeated CpvBidSimulationPoint points = 1; +} + +// A container for simulation points for simulations of type TARGET_CPA. +message TargetCpaSimulationPointList { + // Projected metrics for a series of target CPA amounts. + repeated TargetCpaSimulationPoint points = 1; +} + +// A container for simulation points for simulations of type TARGET_ROAS. +message TargetRoasSimulationPointList { + // Projected metrics for a series of target ROAS amounts. + repeated TargetRoasSimulationPoint points = 1; +} + +// A container for simulation points for simulations of type PERCENT_CPC_BID. +message PercentCpcBidSimulationPointList { + // Projected metrics for a series of percent CPC bid amounts. + repeated PercentCpcBidSimulationPoint points = 1; +} + +// Projected metrics for a specific bid modifier amount. +message BidModifierSimulationPoint { + // The simulated bid modifier upon which projected metrics are based. + optional double bid_modifier = 15; + + // Projected number of biddable conversions. + // Only search advertising channel type supports this field. + optional double biddable_conversions = 16; + + // Projected total value of biddable conversions. + // Only search advertising channel type supports this field. + optional double biddable_conversions_value = 17; + + // Projected number of clicks. + optional int64 clicks = 18; + + // Projected cost in micros. + optional int64 cost_micros = 19; + + // Projected number of impressions. + optional int64 impressions = 20; + + // Projected number of top slot impressions. + // Only search advertising channel type supports this field. + optional int64 top_slot_impressions = 21; + + // Projected number of biddable conversions for the parent resource. + // Only search advertising channel type supports this field. + optional double parent_biddable_conversions = 22; + + // Projected total value of biddable conversions for the parent resource. + // Only search advertising channel type supports this field. + optional double parent_biddable_conversions_value = 23; + + // Projected number of clicks for the parent resource. + optional int64 parent_clicks = 24; + + // Projected cost in micros for the parent resource. + optional int64 parent_cost_micros = 25; + + // Projected number of impressions for the parent resource. + optional int64 parent_impressions = 26; + + // Projected number of top slot impressions for the parent resource. + // Only search advertising channel type supports this field. + optional int64 parent_top_slot_impressions = 27; + + // Projected minimum daily budget that must be available to the parent + // resource to realize this simulation. + optional int64 parent_required_budget_micros = 28; +} + +// Projected metrics for a specific CPC bid amount. +message CpcBidSimulationPoint { + // The simulated CPC bid upon which projected metrics are based. + optional int64 cpc_bid_micros = 8; + + // Projected number of biddable conversions. + optional double biddable_conversions = 9; + + // Projected total value of biddable conversions. + optional double biddable_conversions_value = 10; + + // Projected number of clicks. + optional int64 clicks = 11; + + // Projected cost in micros. + optional int64 cost_micros = 12; + + // Projected number of impressions. + optional int64 impressions = 13; + + // Projected number of top slot impressions. + // Only search advertising channel type supports this field. + optional int64 top_slot_impressions = 14; +} + +// Projected metrics for a specific CPV bid amount. +message CpvBidSimulationPoint { + // The simulated CPV bid upon which projected metrics are based. + optional int64 cpv_bid_micros = 5; + + // Projected cost in micros. + optional int64 cost_micros = 6; + + // Projected number of impressions. + optional int64 impressions = 7; + + // Projected number of views. + optional int64 views = 8; +} + +// Projected metrics for a specific target CPA amount. +message TargetCpaSimulationPoint { + // The simulated target CPA upon which projected metrics are based. + optional int64 target_cpa_micros = 8; + + // Projected number of biddable conversions. + optional double biddable_conversions = 9; + + // Projected total value of biddable conversions. + optional double biddable_conversions_value = 10; + + // Projected number of clicks. + optional int64 clicks = 11; + + // Projected cost in micros. + optional int64 cost_micros = 12; + + // Projected number of impressions. + optional int64 impressions = 13; + + // Projected number of top slot impressions. + // Only search advertising channel type supports this field. + optional int64 top_slot_impressions = 14; +} + +// Projected metrics for a specific target ROAS amount. +message TargetRoasSimulationPoint { + // The simulated target ROAS upon which projected metrics are based. + optional double target_roas = 8; + + // Projected number of biddable conversions. + optional double biddable_conversions = 9; + + // Projected total value of biddable conversions. + optional double biddable_conversions_value = 10; + + // Projected number of clicks. + optional int64 clicks = 11; + + // Projected cost in micros. + optional int64 cost_micros = 12; + + // Projected number of impressions. + optional int64 impressions = 13; + + // Projected number of top slot impressions. + // Only Search advertising channel type supports this field. + optional int64 top_slot_impressions = 14; +} + +// Projected metrics for a specific percent CPC amount. Only Hotel advertising +// channel type supports this field. +message PercentCpcBidSimulationPoint { + // The simulated percent CPC upon which projected metrics are based. Percent + // CPC expressed as fraction of the advertised price for some good or service. + // The value stored here is 1,000,000 * [fraction]. + optional int64 percent_cpc_bid_micros = 1; + + // Projected number of biddable conversions. + optional double biddable_conversions = 2; + + // Projected total value of biddable conversions in local currency. + optional double biddable_conversions_value = 3; + + // Projected number of clicks. + optional int64 clicks = 4; + + // Projected cost in micros. + optional int64 cost_micros = 5; + + // Projected number of impressions. + optional int64 impressions = 6; + + // Projected number of top slot impressions. + optional int64 top_slot_impressions = 7; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/common/tag_snippet.proto b/third_party/googleapis/google/ads/googleads/v6/common/tag_snippet.proto new file mode 100644 index 000000000..2050d8bee --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/common/tag_snippet.proto @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.common; + +import "google/ads/googleads/v6/enums/tracking_code_page_format.proto"; +import "google/ads/googleads/v6/enums/tracking_code_type.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Common"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/common;common"; +option java_multiple_files = true; +option java_outer_classname = "TagSnippetProto"; +option java_package = "com.google.ads.googleads.v6.common"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Common"; +option ruby_package = "Google::Ads::GoogleAds::V6::Common"; + +// Proto file describing TagSnippet + +// The site tag and event snippet pair for a TrackingCodeType. +message TagSnippet { + // The type of the generated tag snippets for tracking conversions. + google.ads.googleads.v6.enums.TrackingCodeTypeEnum.TrackingCodeType type = 1; + + // The format of the web page where the tracking tag and snippet will be + // installed, e.g. HTML. + google.ads.googleads.v6.enums.TrackingCodePageFormatEnum.TrackingCodePageFormat page_format = 2; + + // The site tag that adds visitors to your basic remarketing lists and sets + // new cookies on your domain. + optional string global_site_tag = 5; + + // The event snippet that works with the site tag to track actions that + // should be counted as conversions. + optional string event_snippet = 6; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/common/targeting_setting.proto b/third_party/googleapis/google/ads/googleads/v6/common/targeting_setting.proto new file mode 100644 index 000000000..f3bf96cf9 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/common/targeting_setting.proto @@ -0,0 +1,85 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.common; + +import "google/ads/googleads/v6/enums/targeting_dimension.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Common"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/common;common"; +option java_multiple_files = true; +option java_outer_classname = "TargetingSettingProto"; +option java_package = "com.google.ads.googleads.v6.common"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Common"; +option ruby_package = "Google::Ads::GoogleAds::V6::Common"; + +// Proto file describing TargetingSetting + +// Settings for the targeting-related features, at the campaign and ad group +// levels. For more details about the targeting setting, visit +// https://support.google.com/google-ads/answer/7365594 +message TargetingSetting { + // The per-targeting-dimension setting to restrict the reach of your campaign + // or ad group. + repeated TargetRestriction target_restrictions = 1; + + // The list of operations changing the target restrictions. + // + // Adding a target restriction with a targeting dimension that already exists + // causes the existing target restriction to be replaced with the new value. + repeated TargetRestrictionOperation target_restriction_operations = 2; +} + +// The list of per-targeting-dimension targeting settings. +message TargetRestriction { + // The targeting dimension that these settings apply to. + google.ads.googleads.v6.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 + // this targeting_dimension and show ads based on your targeting in other + // TargetingDimensions. A value of `true` means that these criteria will only + // apply bid modifiers, and not affect targeting. A value of `false` means + // that these criteria will restrict targeting as well as applying bid + // modifiers. + optional bool bid_only = 3; +} + +// Operation to be performed on a target restriction list in a mutate. +message TargetRestrictionOperation { + // The operator. + enum Operator { + // Unspecified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Add the restriction to the existing restrictions. + ADD = 2; + + // Remove the restriction from the existing restrictions. + REMOVE = 3; + } + + // Type of list operation to perform. + Operator operator = 1; + + // The target restriction being added to or removed from the list. + TargetRestriction value = 2; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/common/text_label.proto b/third_party/googleapis/google/ads/googleads/v6/common/text_label.proto new file mode 100644 index 000000000..91f52abed --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/common/text_label.proto @@ -0,0 +1,40 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.common; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Common"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/common;common"; +option java_multiple_files = true; +option java_outer_classname = "TextLabelProto"; +option java_package = "com.google.ads.googleads.v6.common"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Common"; +option ruby_package = "Google::Ads::GoogleAds::V6::Common"; + +// A type of label displaying text on a colored background. +message TextLabel { + // Background color of the label in RGB format. This string must match the + // regular expression '^\#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$'. + // Note: The background color may not be visible for manager accounts. + optional string background_color = 3; + + // A short description of the label. The length must be no more than 200 + // characters. + optional string description = 4; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/common/url_collection.proto b/third_party/googleapis/google/ads/googleads/v6/common/url_collection.proto new file mode 100644 index 000000000..71ec74e0c --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/common/url_collection.proto @@ -0,0 +1,45 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.common; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Common"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/common;common"; +option java_multiple_files = true; +option java_outer_classname = "UrlCollectionProto"; +option java_package = "com.google.ads.googleads.v6.common"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Common"; +option ruby_package = "Google::Ads::GoogleAds::V6::Common"; + +// Proto file UrlCollection type. + +// Collection of urls that is tagged with a unique identifier. +message UrlCollection { + // Unique identifier for this UrlCollection instance. + optional string url_collection_id = 5; + + // A list of possible final URLs. + repeated string final_urls = 6; + + // A list of possible final mobile URLs. + repeated string final_mobile_urls = 7; + + // URL template for constructing a tracking URL. + optional string tracking_url_template = 8; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/common/user_lists.proto b/third_party/googleapis/google/ads/googleads/v6/common/user_lists.proto new file mode 100644 index 000000000..82fcfffc2 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/common/user_lists.proto @@ -0,0 +1,291 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.common; + +import "google/ads/googleads/v6/enums/customer_match_upload_key_type.proto"; +import "google/ads/googleads/v6/enums/user_list_combined_rule_operator.proto"; +import "google/ads/googleads/v6/enums/user_list_crm_data_source_type.proto"; +import "google/ads/googleads/v6/enums/user_list_date_rule_item_operator.proto"; +import "google/ads/googleads/v6/enums/user_list_logical_rule_operator.proto"; +import "google/ads/googleads/v6/enums/user_list_number_rule_item_operator.proto"; +import "google/ads/googleads/v6/enums/user_list_prepopulation_status.proto"; +import "google/ads/googleads/v6/enums/user_list_rule_type.proto"; +import "google/ads/googleads/v6/enums/user_list_string_rule_item_operator.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Common"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/common;common"; +option java_multiple_files = true; +option java_outer_classname = "UserListsProto"; +option java_package = "com.google.ads.googleads.v6.common"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Common"; +option ruby_package = "Google::Ads::GoogleAds::V6::Common"; + +// Proto file describing user list types. + +// SimilarUserList is a list of users which are similar to users from another +// UserList. These lists are read-only and automatically created by Google. +message SimilarUserListInfo { + // Seed UserList from which this list is derived. + optional string seed_user_list = 2; +} + +// UserList of CRM users provided by the advertiser. +message CrmBasedUserListInfo { + // A string that uniquely identifies a mobile application from which the data + // was collected to the Google Ads API. + // For iOS, the ID string is the 9 digit string that appears at the end of an + // App Store URL (e.g., "476943146" for "Flood-It! 2" whose App Store link is + // http://itunes.apple.com/us/app/flood-it!-2/id476943146). + // For Android, the ID string is the application's package name + // (e.g., "com.labpixies.colordrips" for "Color Drips" given Google Play link + // https://play.google.com/store/apps/details?id=com.labpixies.colordrips). + // Required when creating CrmBasedUserList for uploading mobile advertising + // IDs. + optional string app_id = 4; + + // 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.v6.enums.CustomerMatchUploadKeyTypeEnum.CustomerMatchUploadKeyType upload_key_type = 2; + + // Data source of the list. Default value is FIRST_PARTY. + // Only customers on the allow-list can create third-party sourced CRM lists. + google.ads.googleads.v6.enums.UserListCrmDataSourceTypeEnum.UserListCrmDataSourceType data_source_type = 3; +} + +// A client defined rule based on custom parameters sent by web sites or +// uploaded by the advertiser. +message UserListRuleInfo { + // Rule type is used to determine how to group rule items. + // + // The default is OR of ANDs (disjunctive normal form). + // That is, rule items will be ANDed together within rule item groups and the + // groups themselves will be ORed together. + // + // Currently AND of ORs (conjunctive normal form) is only supported for + // ExpressionRuleUserList. + google.ads.googleads.v6.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. + repeated UserListRuleItemGroupInfo rule_item_groups = 2; +} + +// A group of rule items. +message UserListRuleItemGroupInfo { + // Rule items that will be grouped together based on rule_type. + repeated UserListRuleItemInfo rule_items = 1; +} + +// An atomic rule item. +message UserListRuleItemInfo { + // Rule variable name. It should match the corresponding key name fired + // by the pixel. + // A name must begin with US-ascii letters or underscore or UTF8 code that is + // greater than 127 and consist of US-ascii letters or digits or underscore or + // UTF8 code that is greater than 127. + // For websites, there are two built-in variable URL (name = 'url__') and + // referrer URL (name = 'ref_url__'). + // This field must be populated when creating a new rule item. + optional string name = 5; + + // An atomic rule item. + oneof rule_item { + // An atomic rule item composed of a number operation. + UserListNumberRuleItemInfo number_rule_item = 2; + + // An atomic rule item composed of a string operation. + UserListStringRuleItemInfo string_rule_item = 3; + + // An atomic rule item composed of a date operation. + UserListDateRuleItemInfo date_rule_item = 4; + } +} + +// A rule item composed of a date operation. +message UserListDateRuleItemInfo { + // Date comparison operator. + // This field is required and must be populated when creating new date + // rule item. + google.ads.googleads.v6.enums.UserListDateRuleItemOperatorEnum.UserListDateRuleItemOperator operator = 1; + + // String representing date value to be compared with the rule variable. + // Supported date format is YYYY-MM-DD. + // Times are reported in the customer's time zone. + optional string value = 4; + + // The relative date value of the right hand side denoted by number of days + // offset from now. The value field will override this field when both are + // present. + optional int64 offset_in_days = 5; +} + +// A rule item composed of a number operation. +message UserListNumberRuleItemInfo { + // Number comparison operator. + // This field is required and must be populated when creating a new number + // rule item. + google.ads.googleads.v6.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 + // rule item. + optional double value = 3; +} + +// A rule item composed of a string operation. +message UserListStringRuleItemInfo { + // String comparison operator. + // This field is required and must be populated when creating a new string + // rule item. + google.ads.googleads.v6.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, + // tabs, or parentheses. This field is required and must be populated when + // creating a new string rule item. + optional string value = 3; +} + +// User lists defined by combining two rules, left operand and right operand. +// There are two operators: AND where left operand and right operand have to be +// true; AND_NOT where left operand is true but right operand is false. +message CombinedRuleUserListInfo { + // Left operand of the combined rule. + // This field is required and must be populated when creating new combined + // rule based user list. + UserListRuleInfo left_operand = 1; + + // Right operand of the combined rule. + // This field is required and must be populated when creating new combined + // rule based user list. + UserListRuleInfo right_operand = 2; + + // Operator to connect the two operands. + // + // Required for creating a combined rule user list. + google.ads.googleads.v6.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator rule_operator = 3; +} + +// Visitors of a page during specific dates. +message DateSpecificRuleUserListInfo { + // Boolean rule that defines visitor of a page. + // + // Required for creating a date specific rule user list. + UserListRuleInfo rule = 1; + + // Start date of users visit. If set to 2000-01-01, then the list includes all + // users before end_date. The date's format should be YYYY-MM-DD. + // + // Required for creating a data specific rule user list. + optional string start_date = 4; + + // Last date of users visit. If set to 2037-12-30, then the list includes all + // users after start_date. The date's format should be YYYY-MM-DD. + // + // Required for creating a data specific rule user list. + optional string end_date = 5; +} + +// Visitors of a page. The page visit is defined by one boolean rule expression. +message ExpressionRuleUserListInfo { + // Boolean rule that defines this user list. The rule consists of a list of + // rule item groups and each rule item group consists of a list of rule items. + // All the rule item groups are ORed or ANDed together for evaluation based on + // rule.rule_type. + // + // Required for creating an expression rule user list. + UserListRuleInfo rule = 1; +} + +// Representation of a userlist that is generated by a rule. +message RuleBasedUserListInfo { + // The status of pre-population. The field is default to NONE if not set which + // means the previous users will not be considered. If set to REQUESTED, past + // site visitors or app users who match the list definition will be included + // in the list (works on the Display Network only). This will only + // add past users from within the last 30 days, depending on the + // 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.v6.enums.UserListPrepopulationStatusEnum.UserListPrepopulationStatus prepopulation_status = 1; + + // Subtypes of rule based user lists. + oneof rule_based_user_list { + // User lists defined by combining two rules. + // There are two operators: AND, where the left and right operands have to + // be true; AND_NOT where left operand is true but right operand is false. + CombinedRuleUserListInfo combined_rule_user_list = 2; + + // Visitors of a page during specific dates. The visiting periods are + // defined as follows: + // Between start_date (inclusive) and end_date (inclusive); + // Before end_date (exclusive) with start_date = 2000-01-01; + // After start_date (exclusive) with end_date = 2037-12-30. + DateSpecificRuleUserListInfo date_specific_rule_user_list = 3; + + // Visitors of a page. The page visit is defined by one boolean rule + // expression. + ExpressionRuleUserListInfo expression_rule_user_list = 4; + } +} + +// Represents a user list that is a custom combination of user lists. +message LogicalUserListInfo { + // Logical list rules that define this user list. The rules are defined as a + // logical operator (ALL/ANY/NONE) and a list of user lists. All the rules are + // ANDed when they are evaluated. + // + // Required for creating a logical user list. + repeated UserListLogicalRuleInfo rules = 1; +} + +// A user list logical rule. A rule has a logical operator (and/or/not) and a +// list of user lists as operands. +message UserListLogicalRuleInfo { + // The logical operator of the rule. + google.ads.googleads.v6.enums.UserListLogicalRuleOperatorEnum.UserListLogicalRuleOperator operator = 1; + + // The list of operands of the rule. + repeated LogicalUserListOperandInfo rule_operands = 2; +} + +// Operand of logical user list that consists of a user list. +message LogicalUserListOperandInfo { + // Resource name of a user list as an operand. + optional string user_list = 2; +} + +// User list targeting as a collection of conversions or remarketing actions. +message BasicUserListInfo { + // Actions associated with this user list. + repeated UserListActionInfo actions = 1; +} + +// Represents an action type used for building remarketing user lists. +message UserListActionInfo { + // Subtypes of user list action. + oneof user_list_action { + // A conversion action that's not generated from remarketing. + string conversion_action = 3; + + // A remarketing action. + string remarketing_action = 4; + } +} diff --git a/third_party/googleapis/google/ads/googleads/v6/common/value.proto b/third_party/googleapis/google/ads/googleads/v6/common/value.proto new file mode 100644 index 000000000..b6bb0f46f --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/common/value.proto @@ -0,0 +1,51 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.common; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Common"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/common;common"; +option java_multiple_files = true; +option java_outer_classname = "ValueProto"; +option java_package = "com.google.ads.googleads.v6.common"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Common"; +option ruby_package = "Google::Ads::GoogleAds::V6::Common"; + +// Proto file describing value types + +// A generic data container. +message Value { + // A value. + oneof value { + // A boolean. + bool boolean_value = 1; + + // An int64. + int64 int64_value = 2; + + // A float. + float float_value = 3; + + // A double. + double double_value = 4; + + // A string. + string string_value = 5; + } +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/BUILD.bazel b/third_party/googleapis/google/ads/googleads/v6/enums/BUILD.bazel new file mode 100644 index 000000000..422fc227c --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/BUILD.bazel @@ -0,0 +1,89 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") + +# TODO(ohren): Change srcs to use an enumeration of each individual proto +# instead of *.proto globbing once the build file generator supports subpackages. +proto_library( + name = "enums_proto", + srcs = glob(["*.proto"]), + deps = [ + "//google/api:annotations_proto", + ], +) + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_proto_library", +) + +java_proto_library( + name = "enums_java_proto", + deps = [":enums_proto"], +) + +############################################################################## +# PHP +############################################################################## + +# PHP targets are in the parent directory's BUILD.bazel file to facilitate +# aggregating metadata using a single underlying call to protoc. + +############################################################################## +# C# +############################################################################## +load( + "@gapic_generator_csharp//rules_csharp_gapic:csharp_gapic.bzl", + "csharp_proto_library", +) + +csharp_proto_library( + name = "enums_csharp_proto", + deps = [":enums_proto"], +) + +############################################################################## +# Ruby +############################################################################## +load( + "@gapic_generator_ruby//rules_ruby_gapic:ruby_gapic.bzl", + "ruby_proto_library", +) + +ruby_proto_library( + name = "enums_ruby_proto", + deps = [":enums_proto"], +) + +############################################################################## +# Python +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "py_proto_library", +) + +py_proto_library( + name = "enums_py_proto", + deps = [":enums_proto"], +) diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/access_invitation_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/access_invitation_status.proto new file mode 100644 index 000000000..c0e471014 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/access_invitation_status.proto @@ -0,0 +1,55 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "AccessInvitationStatusProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing AccessInvitationStatus enum. + +// Container for enum for identifying the status of access invitation +message AccessInvitationStatusEnum { + // Possible access invitation status of a user + enum AccessInvitationStatus { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // The initial state of an invitation, before being acted upon by anyone. + PENDING = 2; + + // Invitation process was terminated by the email recipient. No new user was + // created. + DECLINED = 3; + + // Invitation URLs expired without being acted upon. No new user can be + // created. Invitations expire 20 days after creation. + EXPIRED = 4; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/access_reason.proto b/third_party/googleapis/google/ads/googleads/v6/enums/access_reason.proto new file mode 100644 index 000000000..56b71e892 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/access_reason.proto @@ -0,0 +1,57 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "AccessReasonProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Indicates the way the resource such as user list is related to a user. +message AccessReasonEnum { + // Enum describing possible access reasons. + enum AccessReason { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // The resource is owned by the user. + OWNED = 2; + + // The resource is shared to the user. + SHARED = 3; + + // The resource is licensed to the user. + LICENSED = 4; + + // The user subscribed to the resource. + SUBSCRIBED = 5; + + // The resource is accessible to the user. + AFFILIATED = 6; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/access_role.proto b/third_party/googleapis/google/ads/googleads/v6/enums/access_role.proto new file mode 100644 index 000000000..f89734f68 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/access_role.proto @@ -0,0 +1,55 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "AccessRoleProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Container for enum describing possible access role for user. +message AccessRoleEnum { + // Possible access role of a user. + enum AccessRole { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Owns its account and can control the addition of other users. + ADMIN = 2; + + // Can modify campaigns, but can't affect other users. + STANDARD = 3; + + // Can view campaigns and account changes, but cannot make edits. + READ_ONLY = 4; + + // Role for \"email only\" access. Represents an email recipient rather than + // a true User entity. + EMAIL_ONLY = 5; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/account_budget_proposal_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/account_budget_proposal_status.proto new file mode 100644 index 000000000..6d5f82360 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/account_budget_proposal_status.proto @@ -0,0 +1,63 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "AccountBudgetProposalStatusProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing AccountBudgetProposal statuses. + +// Message describing AccountBudgetProposal statuses. +message AccountBudgetProposalStatusEnum { + // The possible statuses of an AccountBudgetProposal. + enum AccountBudgetProposalStatus { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // The proposal is pending approval. + PENDING = 2; + + // The proposal has been approved but the corresponding billing setup + // has not. This can occur for proposals that set up the first budget + // when signing up for billing or when performing a change of bill-to + // operation. + APPROVED_HELD = 3; + + // The proposal has been approved. + APPROVED = 4; + + // The proposal has been cancelled by the user. + CANCELLED = 5; + + // The proposal has been rejected by the user, e.g. by rejecting an + // acceptance email. + REJECTED = 6; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/account_budget_proposal_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/account_budget_proposal_type.proto new file mode 100644 index 000000000..99d2b1908 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/account_budget_proposal_type.proto @@ -0,0 +1,56 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "AccountBudgetProposalTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing AccountBudgetProposal types. + +// Message describing AccountBudgetProposal types. +message AccountBudgetProposalTypeEnum { + // The possible types of an AccountBudgetProposal. + enum AccountBudgetProposalType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Identifies a request to create a new budget. + CREATE = 2; + + // Identifies a request to edit an existing budget. + UPDATE = 3; + + // Identifies a request to end a budget that has already started. + END = 4; + + // Identifies a request to remove a budget that hasn't started yet. + REMOVE = 5; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/account_budget_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/account_budget_status.proto new file mode 100644 index 000000000..53c1a34cf --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/account_budget_status.proto @@ -0,0 +1,53 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "AccountBudgetStatusProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing AccountBudget statuses. + +// Message describing AccountBudget statuses. +message AccountBudgetStatusEnum { + // The possible statuses of an AccountBudget. + enum AccountBudgetStatus { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // The account budget is pending approval. + PENDING = 2; + + // The account budget has been approved. + APPROVED = 3; + + // The account budget has been cancelled by the user. + CANCELLED = 4; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/account_link_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/account_link_status.proto new file mode 100644 index 000000000..39a307ced --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/account_link_status.proto @@ -0,0 +1,63 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "AccountLinkStatusProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Container for enum describing possible statuses of an account link. +message AccountLinkStatusEnum { + // Describes the possible statuses for a link between a Google Ads customer + // and another account. + enum AccountLinkStatus { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // The link is enabled. + ENABLED = 2; + + // The link is removed/disabled. + REMOVED = 3; + + // The link to the other account has been requested. A user on the other + // account may now approve the link by setting the status to ENABLED. + REQUESTED = 4; + + // This link has been requested by a user on the other account. It may be + // approved by a user on this account by setting the status to ENABLED. + PENDING_APPROVAL = 5; + + // The link is rejected by the approver. + REJECTED = 6; + + // The link is revoked by the user who requested the link. + REVOKED = 7; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/ad_customizer_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v6/enums/ad_customizer_placeholder_field.proto new file mode 100644 index 000000000..285f9ce8b --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/ad_customizer_placeholder_field.proto @@ -0,0 +1,56 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "AdCustomizerPlaceholderFieldProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing Ad Customizer placeholder fields. + +// Values for Ad Customizer placeholder fields. +message AdCustomizerPlaceholderFieldEnum { + // Possible values for Ad Customizers placeholder fields. + enum AdCustomizerPlaceholderField { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Data Type: INT64. Integer value to be inserted. + INTEGER = 2; + + // Data Type: STRING. Price value to be inserted. + PRICE = 3; + + // Data Type: DATE_TIME. Date value to be inserted. + DATE = 4; + + // Data Type: STRING. String value to be inserted. + STRING = 5; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/ad_destination_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/ad_destination_type.proto new file mode 100644 index 000000000..8d66d12b5 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/ad_destination_type.proto @@ -0,0 +1,77 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "AdDestinationTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing ad destination types. + +// Container for enumeration of Google Ads destination types. +message AdDestinationTypeEnum { + // Enumerates Google Ads destination types + enum AdDestinationType { + // Not specified. + UNSPECIFIED = 0; + + // The value is unknown in this version. + UNKNOWN = 1; + + // Ads that don't intend to drive users off from ads to other destinations + NOT_APPLICABLE = 2; + + // Website + WEBSITE = 3; + + // App Deep Link + APP_DEEP_LINK = 4; + + // iOS App Store or Play Store + APP_STORE = 5; + + // Call Dialer + PHONE_CALL = 6; + + // Map App + MAP_DIRECTIONS = 7; + + // Location Dedicated Page + LOCATION_LISTING = 8; + + // Text Message + MESSAGE = 9; + + // Lead Generation Form + LEAD_FORM = 10; + + // YouTube + YOUTUBE = 11; + + // Ad Destination for Conversions with keys unknown + UNMODELED_FOR_CONVERSIONS = 12; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/ad_group_ad_rotation_mode.proto b/third_party/googleapis/google/ads/googleads/v6/enums/ad_group_ad_rotation_mode.proto new file mode 100644 index 000000000..e0f223c54 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/ad_group_ad_rotation_mode.proto @@ -0,0 +1,53 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "AdGroupAdRotationModeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing ad group ad rotation mode. + +// Container for enum describing possible ad rotation modes of ads within an +// ad group. +message AdGroupAdRotationModeEnum { + // The possible ad rotation modes of an ad group. + enum AdGroupAdRotationMode { + // The ad rotation mode has not been specified. + UNSPECIFIED = 0; + + // The received value is not known in this version. + // + // This is a response-only value. + UNKNOWN = 1; + + // Optimize ad group ads based on clicks or conversions. + OPTIMIZE = 2; + + // Rotate evenly forever. + ROTATE_FOREVER = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/ad_group_ad_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/ad_group_ad_status.proto new file mode 100644 index 000000000..e646002fb --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/ad_group_ad_status.proto @@ -0,0 +1,55 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "AdGroupAdStatusProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing ad group status. + +// Container for enum describing possible statuses of an AdGroupAd. +message AdGroupAdStatusEnum { + // The possible statuses of an AdGroupAd. + enum AdGroupAdStatus { + // No value has been specified. + UNSPECIFIED = 0; + + // The received value is not known in this version. + // + // This is a response-only value. + UNKNOWN = 1; + + // The ad group ad is enabled. + ENABLED = 2; + + // The ad group ad is paused. + PAUSED = 3; + + // The ad group ad is removed. + REMOVED = 4; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/ad_group_criterion_approval_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/ad_group_criterion_approval_status.proto new file mode 100644 index 000000000..ca9dc1fa3 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/ad_group_criterion_approval_status.proto @@ -0,0 +1,56 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "AdGroupCriterionApprovalStatusProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing approval status for the criterion. + +// Container for enum describing possible AdGroupCriterion approval statuses. +message AdGroupCriterionApprovalStatusEnum { + // Enumerates AdGroupCriterion approval statuses. + enum AdGroupCriterionApprovalStatus { + // Not specified. + UNSPECIFIED = 0; + + // The value is unknown in this version. + UNKNOWN = 1; + + // Approved. + APPROVED = 2; + + // Disapproved. + DISAPPROVED = 3; + + // Pending Review. + PENDING_REVIEW = 4; + + // Under review. + UNDER_REVIEW = 5; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/ad_group_criterion_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/ad_group_criterion_status.proto new file mode 100644 index 000000000..9808d1f6a --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/ad_group_criterion_status.proto @@ -0,0 +1,55 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "AdGroupCriterionStatusProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing AdGroupCriterion statuses. + +// Message describing AdGroupCriterion statuses. +message AdGroupCriterionStatusEnum { + // The possible statuses of an AdGroupCriterion. + enum AdGroupCriterionStatus { + // No value has been specified. + UNSPECIFIED = 0; + + // The received value is not known in this version. + // + // This is a response-only value. + UNKNOWN = 1; + + // The ad group criterion is enabled. + ENABLED = 2; + + // The ad group criterion is paused. + PAUSED = 3; + + // The ad group criterion is removed. + REMOVED = 4; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/ad_group_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/ad_group_status.proto new file mode 100644 index 000000000..109ce5aaa --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/ad_group_status.proto @@ -0,0 +1,55 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "AdGroupStatusProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing ad group status. + +// Container for enum describing possible statuses of an ad group. +message AdGroupStatusEnum { + // The possible statuses of an ad group. + enum AdGroupStatus { + // The status has not been specified. + UNSPECIFIED = 0; + + // The received value is not known in this version. + // + // This is a response-only value. + UNKNOWN = 1; + + // The ad group is enabled. + ENABLED = 2; + + // The ad group is paused. + PAUSED = 3; + + // The ad group is removed. + REMOVED = 4; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/ad_group_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/ad_group_type.proto new file mode 100644 index 000000000..aed3b1269 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/ad_group_type.proto @@ -0,0 +1,90 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "AdGroupTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing ad group types. + +// Defines types of an ad group, specific to a particular campaign channel +// type. This type drives validations that restrict which entities can be +// added to the ad group. +message AdGroupTypeEnum { + // Enum listing the possible types of an ad group. + enum AdGroupType { + // The type has not been specified. + UNSPECIFIED = 0; + + // The received value is not known in this version. + // + // This is a response-only value. + UNKNOWN = 1; + + // The default ad group type for Search campaigns. + SEARCH_STANDARD = 2; + + // The default ad group type for Display campaigns. + DISPLAY_STANDARD = 3; + + // The ad group type for Shopping campaigns serving standard product ads. + SHOPPING_PRODUCT_ADS = 4; + + // The default ad group type for Hotel campaigns. + HOTEL_ADS = 6; + + // The type for ad groups in Smart Shopping campaigns. + SHOPPING_SMART_ADS = 7; + + // Short unskippable in-stream video ads. + VIDEO_BUMPER = 8; + + // TrueView (skippable) in-stream video ads. + VIDEO_TRUE_VIEW_IN_STREAM = 9; + + // TrueView in-display video ads. + VIDEO_TRUE_VIEW_IN_DISPLAY = 10; + + // Unskippable in-stream video ads. + VIDEO_NON_SKIPPABLE_IN_STREAM = 11; + + // Outstream video ads. + VIDEO_OUTSTREAM = 12; + + // Ad group type for Dynamic Search Ads ad groups. + SEARCH_DYNAMIC_ADS = 13; + + // The type for ad groups in Shopping Comparison Listing campaigns. + SHOPPING_COMPARISON_LISTING_ADS = 14; + + // The ad group type for Promoted Hotel ad groups. + PROMOTED_HOTEL_ADS = 15; + + // Video responsive ad groups. + VIDEO_RESPONSIVE = 16; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/ad_network_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/ad_network_type.proto new file mode 100644 index 000000000..0a6a7b84f --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/ad_network_type.proto @@ -0,0 +1,62 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "AdNetworkTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing ad network types. + +// Container for enumeration of Google Ads network types. +message AdNetworkTypeEnum { + // Enumerates Google Ads network types. + enum AdNetworkType { + // Not specified. + UNSPECIFIED = 0; + + // The value is unknown in this version. + UNKNOWN = 1; + + // Google search. + SEARCH = 2; + + // Search partners. + SEARCH_PARTNERS = 3; + + // Display Network. + CONTENT = 4; + + // YouTube Search. + YOUTUBE_SEARCH = 5; + + // YouTube Videos + YOUTUBE_WATCH = 6; + + // Cross-network. + MIXED = 7; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/ad_serving_optimization_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/ad_serving_optimization_status.proto new file mode 100644 index 000000000..1566dc018 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/ad_serving_optimization_status.proto @@ -0,0 +1,64 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "AdServingOptimizationStatusProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing ad serving statuses. + +// Possible ad serving statuses of a campaign. +message AdServingOptimizationStatusEnum { + // Enum describing possible serving statuses. + enum AdServingOptimizationStatus { + // No value has been specified. + UNSPECIFIED = 0; + + // The received value is not known in this version. + // + // This is a response-only value. + UNKNOWN = 1; + + // Ad serving is optimized based on CTR for the campaign. + OPTIMIZE = 2; + + // Ad serving is optimized based on CTR * Conversion for the campaign. If + // the campaign is not in the conversion optimizer bidding strategy, it will + // default to OPTIMIZED. + CONVERSION_OPTIMIZE = 3; + + // Ads are rotated evenly for 90 days, then optimized for clicks. + ROTATE = 4; + + // Show lower performing ads more evenly with higher performing ads, and do + // not optimize. + ROTATE_INDEFINITELY = 5; + + // Ad serving optimization status is not available. + UNAVAILABLE = 6; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/ad_strength.proto b/third_party/googleapis/google/ads/googleads/v6/enums/ad_strength.proto new file mode 100644 index 000000000..9774856a6 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/ad_strength.proto @@ -0,0 +1,62 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "AdStrengthProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing ad strengths. + +// Container for enum describing possible ad strengths. +message AdStrengthEnum { + // Enum listing the possible ad strengths. + enum AdStrength { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // The ad strength is currently pending. + PENDING = 2; + + // No ads could be generated. + NO_ADS = 3; + + // Poor strength. + POOR = 4; + + // Average strength. + AVERAGE = 5; + + // Good strength. + GOOD = 6; + + // Excellent strength. + EXCELLENT = 7; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/ad_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/ad_type.proto new file mode 100644 index 000000000..84b845575 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/ad_type.proto @@ -0,0 +1,125 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "AdTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing the ad type. + +// Container for enum describing possible types of an ad. +message AdTypeEnum { + // The possible types of an ad. + enum AdType { + // No value has been specified. + UNSPECIFIED = 0; + + // The received value is not known in this version. + // + // This is a response-only value. + UNKNOWN = 1; + + // The ad is a text ad. + TEXT_AD = 2; + + // The ad is an expanded text ad. + EXPANDED_TEXT_AD = 3; + + // The ad is a call only ad. + CALL_ONLY_AD = 6; + + // The ad is an expanded dynamic search ad. + EXPANDED_DYNAMIC_SEARCH_AD = 7; + + // The ad is a hotel ad. + HOTEL_AD = 8; + + // The ad is a Smart Shopping ad. + SHOPPING_SMART_AD = 9; + + // The ad is a standard Shopping ad. + SHOPPING_PRODUCT_AD = 10; + + // The ad is a video ad. + VIDEO_AD = 12; + + // This ad is a Gmail ad. + GMAIL_AD = 13; + + // This ad is an Image ad. + IMAGE_AD = 14; + + // The ad is a responsive search ad. + RESPONSIVE_SEARCH_AD = 15; + + // The ad is a legacy responsive display ad. + LEGACY_RESPONSIVE_DISPLAY_AD = 16; + + // The ad is an app ad. + APP_AD = 17; + + // The ad is a legacy app install ad. + LEGACY_APP_INSTALL_AD = 18; + + // The ad is a responsive display ad. + RESPONSIVE_DISPLAY_AD = 19; + + // The ad is a local ad. + LOCAL_AD = 20; + + // The ad is a display upload ad with the HTML5_UPLOAD_AD product type. + HTML5_UPLOAD_AD = 21; + + // The ad is a display upload ad with one of the DYNAMIC_HTML5_* product + // types. + DYNAMIC_HTML5_AD = 22; + + // The ad is an app engagement ad. + APP_ENGAGEMENT_AD = 23; + + // The ad is a Shopping Comparison Listing ad. + SHOPPING_COMPARISON_LISTING_AD = 24; + + // Video bumper ad. + VIDEO_BUMPER_AD = 25; + + // Video non-skippable in-stream ad. + VIDEO_NON_SKIPPABLE_IN_STREAM_AD = 26; + + // Video outstream ad. + VIDEO_OUTSTREAM_AD = 27; + + // Video TrueView in-display ad. + VIDEO_TRUEVIEW_DISCOVERY_AD = 28; + + // Video TrueView in-stream ad. + VIDEO_TRUEVIEW_IN_STREAM_AD = 29; + + // Video responsive ad. + VIDEO_RESPONSIVE_AD = 30; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/advertising_channel_sub_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/advertising_channel_sub_type.proto new file mode 100644 index 000000000..c4579f78f --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/advertising_channel_sub_type.proto @@ -0,0 +1,96 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "AdvertisingChannelSubTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing advertising channel subtypes. + +// An immutable specialization of an Advertising Channel. +message AdvertisingChannelSubTypeEnum { + // Enum describing the different channel subtypes. + enum AdvertisingChannelSubType { + // Not specified. + UNSPECIFIED = 0; + + // Used as a return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Mobile app campaigns for Search. + SEARCH_MOBILE_APP = 2; + + // Mobile app campaigns for Display. + DISPLAY_MOBILE_APP = 3; + + // AdWords express campaigns for search. + SEARCH_EXPRESS = 4; + + // AdWords Express campaigns for display. + DISPLAY_EXPRESS = 5; + + // Smart Shopping campaigns. + SHOPPING_SMART_ADS = 6; + + // Gmail Ad campaigns. + DISPLAY_GMAIL_AD = 7; + + // Smart display campaigns. + DISPLAY_SMART_CAMPAIGN = 8; + + // Video Outstream campaigns. + VIDEO_OUTSTREAM = 9; + + // Video TrueView for Action campaigns. + VIDEO_ACTION = 10; + + // Video campaigns with non-skippable video ads. + VIDEO_NON_SKIPPABLE = 11; + + // App Campaign that allows you to easily promote your Android or iOS app + // across Google's top properties including Search, Play, YouTube, and the + // Google Display Network. + APP_CAMPAIGN = 12; + + // App Campaign for engagement, focused on driving re-engagement with the + // app across several of Google’s top properties including Search, YouTube, + // and the Google Display Network. + APP_CAMPAIGN_FOR_ENGAGEMENT = 13; + + // Campaigns specialized for local advertising. + LOCAL_CAMPAIGN = 14; + + // Shopping Comparison Listing campaigns. + SHOPPING_COMPARISON_LISTING_ADS = 15; + + // Standard Smart campaigns. + SMART_CAMPAIGN = 16; + + // Video campaigns with sequence video ads. + VIDEO_SEQUENCE = 17; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/advertising_channel_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/advertising_channel_type.proto new file mode 100644 index 000000000..7491d0030 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/advertising_channel_type.proto @@ -0,0 +1,70 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "AdvertisingChannelTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing advertising channel types + +// The channel type a campaign may target to serve on. +message AdvertisingChannelTypeEnum { + // Enum describing the various advertising channel types. + enum AdvertisingChannelType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Search Network. Includes display bundled, and Search+ campaigns. + SEARCH = 2; + + // Google Display Network only. + DISPLAY = 3; + + // Shopping campaigns serve on the shopping property + // and on google.com search results. + SHOPPING = 4; + + // Hotel Ads campaigns. + HOTEL = 5; + + // Video campaigns. + VIDEO = 6; + + // App Campaigns, and App Campaigns for Engagement, that run + // across multiple channels. + MULTI_CHANNEL = 7; + + // Local ads campaigns. + LOCAL = 8; + + // Smart campaigns. + SMART = 9; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/affiliate_location_feed_relationship_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/affiliate_location_feed_relationship_type.proto new file mode 100644 index 000000000..ce14e79ca --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/affiliate_location_feed_relationship_type.proto @@ -0,0 +1,48 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "AffiliateLocationFeedRelationshipTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing relation type for affiliate location feeds. + +// Container for enum describing possible values for a relationship type for +// an affiliate location feed. +message AffiliateLocationFeedRelationshipTypeEnum { + // Possible values for a relationship type for an affiliate location feed. + enum AffiliateLocationFeedRelationshipType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // General retailer relationship. + GENERAL_RETAILER = 2; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/affiliate_location_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v6/enums/affiliate_location_placeholder_field.proto new file mode 100644 index 000000000..b8737d89b --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/affiliate_location_placeholder_field.proto @@ -0,0 +1,77 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "AffiliateLocationPlaceholderFieldProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing Affiliate Location placeholder fields. + +// Values for Affiliate Location placeholder fields. +message AffiliateLocationPlaceholderFieldEnum { + // Possible values for Affiliate Location placeholder fields. + enum AffiliateLocationPlaceholderField { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Data Type: STRING. The name of the business. + BUSINESS_NAME = 2; + + // Data Type: STRING. Line 1 of the business address. + ADDRESS_LINE_1 = 3; + + // Data Type: STRING. Line 2 of the business address. + ADDRESS_LINE_2 = 4; + + // Data Type: STRING. City of the business address. + CITY = 5; + + // Data Type: STRING. Province of the business address. + PROVINCE = 6; + + // Data Type: STRING. Postal code of the business address. + POSTAL_CODE = 7; + + // Data Type: STRING. Country code of the business address. + COUNTRY_CODE = 8; + + // Data Type: STRING. Phone number of the business. + PHONE_NUMBER = 9; + + // Data Type: STRING. Language code of the business. + LANGUAGE_CODE = 10; + + // Data Type: INT64. ID of the chain. + CHAIN_ID = 11; + + // Data Type: STRING. Name of the chain. + CHAIN_NAME = 12; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/age_range_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/age_range_type.proto new file mode 100644 index 000000000..19e373762 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/age_range_type.proto @@ -0,0 +1,65 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "AgeRangeTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing age range types. + +// Container for enum describing the type of demographic age ranges. +message AgeRangeTypeEnum { + // The type of demographic age ranges (e.g. between 18 and 24 years old). + enum AgeRangeType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Between 18 and 24 years old. + AGE_RANGE_18_24 = 503001; + + // Between 25 and 34 years old. + AGE_RANGE_25_34 = 503002; + + // Between 35 and 44 years old. + AGE_RANGE_35_44 = 503003; + + // Between 45 and 54 years old. + AGE_RANGE_45_54 = 503004; + + // Between 55 and 64 years old. + AGE_RANGE_55_64 = 503005; + + // 65 years old and beyond. + AGE_RANGE_65_UP = 503006; + + // Undetermined age range. + AGE_RANGE_UNDETERMINED = 503999; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/app_campaign_app_store.proto b/third_party/googleapis/google/ads/googleads/v6/enums/app_campaign_app_store.proto new file mode 100644 index 000000000..3b471b0e8 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/app_campaign_app_store.proto @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "AppCampaignAppStoreProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing App Campaign app store. + +// The application store that distributes mobile applications. +message AppCampaignAppStoreEnum { + // Enum describing app campaign app store. + enum AppCampaignAppStore { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Apple app store. + APPLE_APP_STORE = 2; + + // Google play. + GOOGLE_APP_STORE = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/app_campaign_bidding_strategy_goal_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/app_campaign_bidding_strategy_goal_type.proto new file mode 100644 index 000000000..3e2d76898 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/app_campaign_bidding_strategy_goal_type.proto @@ -0,0 +1,64 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "AppCampaignBiddingStrategyGoalTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing App Campaign bidding strategy goal types. + +// Container for enum describing goal towards which the bidding strategy of an +// app campaign should optimize for. +message AppCampaignBiddingStrategyGoalTypeEnum { + // Goal type of App campaign BiddingStrategy. + enum AppCampaignBiddingStrategyGoalType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Aim to maximize the number of app installs. The cpa bid is the + // target cost per install. + OPTIMIZE_INSTALLS_TARGET_INSTALL_COST = 2; + + // Aim to maximize the long term number of selected in-app conversions from + // app installs. The cpa bid is the target cost per install. + OPTIMIZE_IN_APP_CONVERSIONS_TARGET_INSTALL_COST = 3; + + // Aim to maximize the long term number of selected in-app conversions from + // app installs. The cpa bid is the target cost per in-app conversion. Note + // that the actual cpa may seem higher than the target cpa at first, since + // the long term conversions haven’t happened yet. + OPTIMIZE_IN_APP_CONVERSIONS_TARGET_CONVERSION_COST = 4; + + // Aim to maximize all conversions' value, i.e. install + selected in-app + // conversions while achieving or exceeding target return on advertising + // spend. + OPTIMIZE_RETURN_ON_ADVERTISING_SPEND = 5; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/app_payment_model_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/app_payment_model_type.proto new file mode 100644 index 000000000..afcb2bc69 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/app_payment_model_type.proto @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "AppPaymentModelTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing criteria types. + +// Represents a criterion for targeting paid apps. +message AppPaymentModelTypeEnum { + // Enum describing possible app payment models. + enum AppPaymentModelType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Represents paid-for apps. + PAID = 30; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/app_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v6/enums/app_placeholder_field.proto new file mode 100644 index 000000000..239af41ba --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/app_placeholder_field.proto @@ -0,0 +1,75 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "AppPlaceholderFieldProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing App placeholder fields. + +// Values for App placeholder fields. +message AppPlaceholderFieldEnum { + // Possible values for App placeholder fields. + enum AppPlaceholderField { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Data Type: INT64. The application store that the target application + // belongs to. Valid values are: 1 = Apple iTunes Store; 2 = Google Play + // Store. + STORE = 2; + + // Data Type: STRING. The store-specific ID for the target application. + ID = 3; + + // Data Type: STRING. The visible text displayed when the link is rendered + // in an ad. + LINK_TEXT = 4; + + // Data Type: STRING. The destination URL of the in-app link. + URL = 5; + + // Data Type: URL_LIST. Final URLs for the in-app link when using Upgraded + // URLs. + FINAL_URLS = 6; + + // Data Type: URL_LIST. Final Mobile URLs for the in-app link when using + // Upgraded URLs. + FINAL_MOBILE_URLS = 7; + + // Data Type: URL. Tracking template for the in-app link when using Upgraded + // URLs. + TRACKING_URL = 8; + + // Data Type: STRING. Final URL suffix for the in-app link when using + // parallel tracking. + FINAL_URL_SUFFIX = 9; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/app_store.proto b/third_party/googleapis/google/ads/googleads/v6/enums/app_store.proto new file mode 100644 index 000000000..2d171c061 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/app_store.proto @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "AppStoreProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing app store types for an app extension. + +// Container for enum describing app store type in an app extension. +message AppStoreEnum { + // App store type in an app extension. + enum AppStore { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Apple iTunes. + APPLE_ITUNES = 2; + + // Google Play. + GOOGLE_PLAY = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/app_url_operating_system_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/app_url_operating_system_type.proto new file mode 100644 index 000000000..de5a55939 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/app_url_operating_system_type.proto @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "AppUrlOperatingSystemTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing operating system for a deeplink app URL. + +// The possible OS types for a deeplink AppUrl. +message AppUrlOperatingSystemTypeEnum { + // Operating System + enum AppUrlOperatingSystemType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // The Apple IOS operating system. + IOS = 2; + + // The Android operating system. + ANDROID = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/asset_field_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/asset_field_type.proto new file mode 100644 index 000000000..72c92f19b --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/asset_field_type.proto @@ -0,0 +1,69 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "AssetFieldTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing asset type. + +// Container for enum describing the possible placements of an asset. +message AssetFieldTypeEnum { + // Enum describing the possible placements of an asset. + enum AssetFieldType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // The asset is linked for use as a headline. + HEADLINE = 2; + + // The asset is linked for use as a description. + DESCRIPTION = 3; + + // The asset is linked for use as mandatory ad text. + MANDATORY_AD_TEXT = 4; + + // The asset is linked for use as a marketing image. + MARKETING_IMAGE = 5; + + // The asset is linked for use as a media bundle. + MEDIA_BUNDLE = 6; + + // The asset is linked for use as a YouTube video. + YOUTUBE_VIDEO = 7; + + // The asset is linked to indicate that a hotels campaign is "Book on + // Google" enabled. + BOOK_ON_GOOGLE = 8; + + // The asset is linked for use as a Lead Form extension. + LEAD_FORM = 9; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/asset_link_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/asset_link_status.proto new file mode 100644 index 000000000..3e44b41a2 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/asset_link_status.proto @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "AssetLinkStatusProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing status of an asset link. + +// Container for enum describing possible statuses of an asset link. +message AssetLinkStatusEnum { + // Enum describing statuses of an asset link. + enum AssetLinkStatus { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Asset link is enabled. + ENABLED = 2; + + // Asset link has been removed. + REMOVED = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/asset_performance_label.proto b/third_party/googleapis/google/ads/googleads/v6/enums/asset_performance_label.proto new file mode 100644 index 000000000..166dc0530 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/asset_performance_label.proto @@ -0,0 +1,62 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "AssetPerformanceLabelProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing the performance label of an asset. + +// Container for enum describing the performance label of an asset. +message AssetPerformanceLabelEnum { + // Enum describing the possible performance labels of an asset, usually + // computed in the context of a linkage. + enum AssetPerformanceLabel { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // This asset does not yet have any performance informantion. This may be + // because it is still under review. + PENDING = 2; + + // The asset has started getting impressions but the stats are not + // statistically significant enough to get an asset performance label. + LEARNING = 3; + + // Worst performing assets. + LOW = 4; + + // Good performing assets. + GOOD = 5; + + // Best performing assets. + BEST = 6; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/asset_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/asset_type.proto new file mode 100644 index 000000000..70e9aacbc --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/asset_type.proto @@ -0,0 +1,62 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "AssetTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing asset type. + +// Container for enum describing the types of asset. +message AssetTypeEnum { + // Enum describing possible types of asset. + enum AssetType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // YouTube video asset. + YOUTUBE_VIDEO = 2; + + // Media bundle asset. + MEDIA_BUNDLE = 3; + + // Image asset. + IMAGE = 4; + + // Text asset. + TEXT = 5; + + // Lead form asset. + LEAD_FORM = 6; + + // Book on Google asset. + BOOK_ON_GOOGLE = 7; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/attribution_model.proto b/third_party/googleapis/google/ads/googleads/v6/enums/attribution_model.proto new file mode 100644 index 000000000..eeb9e793d --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/attribution_model.proto @@ -0,0 +1,72 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "AttributionModelProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Container for enum representing the attribution model that describes how to +// distribute credit for a particular conversion across potentially many prior +// interactions. +message AttributionModelEnum { + // The attribution model that describes how to distribute credit for a + // particular conversion across potentially many prior interactions. + enum AttributionModel { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Uses external attribution. + EXTERNAL = 100; + + // Attributes all credit for a conversion to its last click. + GOOGLE_ADS_LAST_CLICK = 101; + + // Attributes all credit for a conversion to its first click using Google + // Search attribution. + GOOGLE_SEARCH_ATTRIBUTION_FIRST_CLICK = 102; + + // Attributes credit for a conversion equally across all of its clicks using + // Google Search attribution. + GOOGLE_SEARCH_ATTRIBUTION_LINEAR = 103; + + // Attributes exponentially more credit for a conversion to its more recent + // clicks using Google Search attribution (half-life is 1 week). + GOOGLE_SEARCH_ATTRIBUTION_TIME_DECAY = 104; + + // Attributes 40% of the credit for a conversion to its first and last + // clicks. Remaining 20% is evenly distributed across all other clicks. This + // uses Google Search attribution. + GOOGLE_SEARCH_ATTRIBUTION_POSITION_BASED = 105; + + // Flexible model that uses machine learning to determine the appropriate + // distribution of credit among clicks using Google Search attribution. + GOOGLE_SEARCH_ATTRIBUTION_DATA_DRIVEN = 106; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/batch_job_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/batch_job_status.proto new file mode 100644 index 000000000..a104b0f50 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/batch_job_status.proto @@ -0,0 +1,53 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "BatchJobStatusProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing batch job statuses. + +// Container for enum describing possible batch job statuses. +message BatchJobStatusEnum { + // The batch job statuses. + enum BatchJobStatus { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // The job is not currently running. + PENDING = 2; + + // The job is running. + RUNNING = 3; + + // The job is done. + DONE = 4; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/bid_modifier_source.proto b/third_party/googleapis/google/ads/googleads/v6/enums/bid_modifier_source.proto new file mode 100644 index 000000000..494422bac --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/bid_modifier_source.proto @@ -0,0 +1,51 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "BidModifierSourceProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing bid modifier source. + +// Container for enum describing possible bid modifier sources. +message BidModifierSourceEnum { + // Enum describing possible bid modifier sources. + enum BidModifierSource { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // The bid modifier is specified at the campaign level, on the campaign + // level criterion. + CAMPAIGN = 2; + + // The bid modifier is specified (overridden) at the ad group level. + AD_GROUP = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/bidding_source.proto b/third_party/googleapis/google/ads/googleads/v6/enums/bidding_source.proto new file mode 100644 index 000000000..bc9c3833c --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/bidding_source.proto @@ -0,0 +1,55 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "BiddingSourceProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing bidding sources. + +// Container for enum describing possible bidding sources. +message BiddingSourceEnum { + // Indicates where a bid or target is defined. For example, an ad group + // criterion may define a cpc bid directly, or it can inherit its cpc bid from + // the ad group. + enum BiddingSource { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Effective bid or target is inherited from campaign bidding strategy. + CAMPAIGN_BIDDING_STRATEGY = 5; + + // The bid or target is defined on the ad group. + AD_GROUP = 6; + + // The bid or target is defined on the ad group criterion. + AD_GROUP_CRITERION = 7; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/bidding_strategy_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/bidding_strategy_status.proto new file mode 100644 index 000000000..3d2ea021c --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/bidding_strategy_status.proto @@ -0,0 +1,52 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "BiddingStrategyStatusProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing BiddingStrategy statuses. + +// Message describing BiddingStrategy statuses. +message BiddingStrategyStatusEnum { + // The possible statuses of a BiddingStrategy. + enum BiddingStrategyStatus { + // No value has been specified. + UNSPECIFIED = 0; + + // The received value is not known in this version. + // + // This is a response-only value. + UNKNOWN = 1; + + // The bidding strategy is enabled. + ENABLED = 2; + + // The bidding strategy is removed. + REMOVED = 4; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/bidding_strategy_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/bidding_strategy_type.proto new file mode 100644 index 000000000..e458a30ab --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/bidding_strategy_type.proto @@ -0,0 +1,110 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "BiddingStrategyTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing bidding schemes. + +// Container for enum describing possible bidding strategy types. +message BiddingStrategyTypeEnum { + // Enum describing possible bidding strategy types. + enum BiddingStrategyType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Commission is an automatic bidding strategy in which the advertiser pays + // a certain portion of the conversion value. + COMMISSION = 16; + + // Enhanced CPC is a 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. + ENHANCED_CPC = 2; + + // Manual click based bidding where user pays per click. + MANUAL_CPC = 3; + + // Manual impression based bidding + // where user pays per thousand impressions. + MANUAL_CPM = 4; + + // A bidding strategy that pays a configurable amount per video view. + MANUAL_CPV = 13; + + // A bidding strategy that automatically maximizes number of conversions + // given a daily budget. + MAXIMIZE_CONVERSIONS = 10; + + // An automated bidding strategy that automatically sets bids to maximize + // revenue while spending your budget. + MAXIMIZE_CONVERSION_VALUE = 11; + + // Page-One Promoted bidding scheme, which sets max cpc bids to + // target impressions on page one or page one promoted slots on google.com. + // This enum value is deprecated. + PAGE_ONE_PROMOTED = 5; + + // Percent Cpc is bidding strategy where bids are a fraction of the + // advertised price for some good or service. + PERCENT_CPC = 12; + + // Target CPA is an automated bid strategy that sets bids + // to help get as many conversions as possible + // at the target cost-per-acquisition (CPA) you set. + TARGET_CPA = 6; + + // Target CPM is an automated bid strategy that sets bids to help get + // as many impressions as possible at the target cost per one thousand + // impressions (CPM) you set. + TARGET_CPM = 14; + + // 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 + // location). + TARGET_IMPRESSION_SHARE = 15; + + // Target Outrank Share is an automated bidding strategy that sets bids + // based on the target fraction of auctions where the advertiser + // should outrank a specific competitor. + // This enum value is deprecated. + TARGET_OUTRANK_SHARE = 7; + + // Target ROAS is an automated bidding strategy + // that helps you maximize revenue while averaging + // a specific target Return On Average Spend (ROAS). + TARGET_ROAS = 8; + + // Target Spend is an automated bid strategy that sets your bids + // to help get as many clicks as possible within your budget. + TARGET_SPEND = 9; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/billing_setup_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/billing_setup_status.proto new file mode 100644 index 000000000..9dc972f1d --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/billing_setup_status.proto @@ -0,0 +1,58 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "BillingSetupStatusProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing BillingSetup statuses. + +// Message describing BillingSetup statuses. +message BillingSetupStatusEnum { + // The possible statuses of a BillingSetup. + enum BillingSetupStatus { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // The billing setup is pending approval. + PENDING = 2; + + // The billing setup has been approved but the corresponding first budget + // has not. This can only occur for billing setups configured for monthly + // invoicing. + APPROVED_HELD = 3; + + // The billing setup has been approved. + APPROVED = 4; + + // The billing setup was cancelled by the user prior to approval. + CANCELLED = 5; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/brand_safety_suitability.proto b/third_party/googleapis/google/ads/googleads/v6/enums/brand_safety_suitability.proto new file mode 100644 index 000000000..e916bf90b --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/brand_safety_suitability.proto @@ -0,0 +1,73 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "BrandSafetySuitabilityProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing brand safety suitability settings. + +// Container for enum with 3-Tier brand safety suitability control. +message BrandSafetySuitabilityEnum { + // 3-Tier brand safety suitability control. + enum BrandSafetySuitability { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // This option lets you show ads across all inventory on YouTube and video + // partners that meet our standards for monetization. This option may be an + // appropriate choice for brands that want maximum access to the full + // breadth of videos eligible for ads, including, for example, videos that + // have strong profanity in the context of comedy or a documentary, or + // excessive violence as featured in video games. + EXPANDED_INVENTORY = 2; + + // This option lets you show ads across a wide range of content that's + // appropriate for most brands, such as popular music videos, documentaries, + // and movie trailers. The content you can show ads on is based on YouTube's + // advertiser-friendly content guidelines that take into account, for + // example, the strength or frequency of profanity, or the appropriateness + // of subject matter like sensitive events. Ads won't show, for example, on + // content with repeated strong profanity, strong sexual content, or graphic + // violence. + STANDARD_INVENTORY = 3; + + // This option lets you show ads on a reduced range of content that's + // appropriate for brands with particularly strict guidelines around + // inappropriate language and sexual suggestiveness; above and beyond what + // YouTube's advertiser-friendly content guidelines address. The videos + // accessible in this sensitive category meet heightened requirements, + // especially for inappropriate language and sexual suggestiveness. For + // example, your ads will be excluded from showing on some of YouTube's most + // popular music videos and other pop culture content across YouTube and + // Google video partners. + LIMITED_INVENTORY = 4; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/budget_campaign_association_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/budget_campaign_association_status.proto new file mode 100644 index 000000000..93d9f3f9f --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/budget_campaign_association_status.proto @@ -0,0 +1,51 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "BudgetCampaignAssociationStatusProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing Budget and Campaign association status. + +// Message describing the status of the association between the Budget and the +// Campaign. +message BudgetCampaignAssociationStatusEnum { + // Possible statuses of the association between the Budget and the Campaign. + enum BudgetCampaignAssociationStatus { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // The campaign is currently using the budget. + ENABLED = 2; + + // The campaign is no longer using the budget. + REMOVED = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/budget_delivery_method.proto b/third_party/googleapis/google/ads/googleads/v6/enums/budget_delivery_method.proto new file mode 100644 index 000000000..75c12d4f0 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/budget_delivery_method.proto @@ -0,0 +1,53 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "BudgetDeliveryMethodProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing Budget delivery methods. + +// Message describing Budget delivery methods. A delivery method determines the +// rate at which the Budget is spent. +message BudgetDeliveryMethodEnum { + // Possible delivery methods of a Budget. + enum BudgetDeliveryMethod { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // The budget server will throttle serving evenly across + // the entire time period. + STANDARD = 2; + + // The budget server will not throttle serving, + // and ads will serve as fast as possible. + ACCELERATED = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/budget_period.proto b/third_party/googleapis/google/ads/googleads/v6/enums/budget_period.proto new file mode 100644 index 000000000..6b4f68662 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/budget_period.proto @@ -0,0 +1,53 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "BudgetPeriodProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing Budget delivery methods. + +// Message describing Budget period. +message BudgetPeriodEnum { + // Possible period of a Budget. + enum BudgetPeriod { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Daily budget. + DAILY = 2; + + // Custom budget, added back in V5. + // Custom bugdet can be used with total_amount to specify lifetime budget + // limit. See: https://support.google.com/google-ads/answer/6385083 for more + // info. + CUSTOM_PERIOD = 5; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/budget_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/budget_status.proto new file mode 100644 index 000000000..cf50a77ec --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/budget_status.proto @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "BudgetStatusProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing Budget statuses + +// Message describing a Budget status +message BudgetStatusEnum { + // Possible statuses of a Budget. + enum BudgetStatus { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Budget is enabled. + ENABLED = 2; + + // Budget is removed. + REMOVED = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/budget_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/budget_type.proto new file mode 100644 index 000000000..b86d67acf --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/budget_type.proto @@ -0,0 +1,66 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "BudgetTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing Budget types. + +// Describes Budget types. +message BudgetTypeEnum { + // Possible Budget types. + enum BudgetType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Budget type for standard Google Ads usage. + // Caps daily spend at two times the specified budget amount. + // Full details: https://support.google.com/google-ads/answer/6385083 + STANDARD = 2; + + // Budget type for Hotels Ads commission program. + // Full details: https://support.google.com/google-ads/answer/9243945 + // + // This type is only supported by campaigns with + // AdvertisingChannelType.HOTEL, BiddingStrategyType.COMMISSION and + // PaymentMode.CONVERSION_VALUE. + HOTEL_ADS_COMMISSION = 3; + + // Budget type with a fixed cost-per-acquisition (conversion). + // Full details: https://support.google.com/google-ads/answer/7528254 + // + // This type is only supported by campaigns with + // AdvertisingChannelType.DISPLAY (excluding + // AdvertisingChannelSubType.DISPLAY_GMAIL), + // BiddingStrategyType.TARGET_CPA and PaymentMode.CONVERSIONS. + FIXED_CPA = 4; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/call_conversion_reporting_state.proto b/third_party/googleapis/google/ads/googleads/v6/enums/call_conversion_reporting_state.proto new file mode 100644 index 000000000..8c68360e4 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/call_conversion_reporting_state.proto @@ -0,0 +1,56 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "CallConversionReportingStateProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing call conversion reporting state. + +// Container for enum describing possible data types for call conversion +// reporting state. +message CallConversionReportingStateEnum { + // Possible data types for a call conversion action state. + enum CallConversionReportingState { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Call conversion action is disabled. + DISABLED = 2; + + // Call conversion action will use call conversion type set at the + // account level. + USE_ACCOUNT_LEVEL_CALL_CONVERSION_ACTION = 3; + + // Call conversion action will use call conversion type set at the resource + // (call only ads/call extensions) level. + USE_RESOURCE_LEVEL_CALL_CONVERSION_ACTION = 4; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/call_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v6/enums/call_placeholder_field.proto new file mode 100644 index 000000000..bdd762cb0 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/call_placeholder_field.proto @@ -0,0 +1,66 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "CallPlaceholderFieldProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing Call placeholder fields. + +// Values for Call placeholder fields. +message CallPlaceholderFieldEnum { + // Possible values for Call placeholder fields. + enum CallPlaceholderField { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Data Type: STRING. The advertiser's phone number to append to the ad. + PHONE_NUMBER = 2; + + // Data Type: STRING. Uppercase two-letter country code of the advertiser's + // phone number. + COUNTRY_CODE = 3; + + // Data Type: BOOLEAN. Indicates whether call tracking is enabled. Default: + // true. + TRACKED = 4; + + // Data Type: INT64. The ID of an AdCallMetricsConversion object. This + // object contains the phoneCallDurationfield which is the minimum duration + // (in seconds) of a call to be considered a conversion. + CONVERSION_TYPE_ID = 5; + + // Data Type: STRING. Indicates whether this call extension uses its own + // call conversion setting or follows the account level setting. + // Valid values are: USE_ACCOUNT_LEVEL_CALL_CONVERSION_ACTION and + // USE_RESOURCE_LEVEL_CALL_CONVERSION_ACTION. + CONVERSION_REPORTING_STATE = 6; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/call_tracking_display_location.proto b/third_party/googleapis/google/ads/googleads/v6/enums/call_tracking_display_location.proto new file mode 100644 index 000000000..e566330d0 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/call_tracking_display_location.proto @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "CallTrackingDisplayLocationProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing call tracking display location. + +// Container for enum describing possible call tracking display locations. +message CallTrackingDisplayLocationEnum { + // Possible call tracking display locations. + enum CallTrackingDisplayLocation { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // The phone call placed from the ad. + AD = 2; + + // The phone call placed from the landing page ad points to. + LANDING_PAGE = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/call_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/call_type.proto new file mode 100644 index 000000000..de736c0ba --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/call_type.proto @@ -0,0 +1,51 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "CallTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing call types. + +// Container for enum describing possible types of property from where the call +// was made. +message CallTypeEnum { + // Possible types of property from where the call was made. + enum CallType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // The phone call was manually dialed. + MANUALLY_DIALED = 2; + + // The phone call was a mobile click-to-call. + HIGH_END_MOBILE_SEARCH = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/callout_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v6/enums/callout_placeholder_field.proto new file mode 100644 index 000000000..573f069f4 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/callout_placeholder_field.proto @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "CalloutPlaceholderFieldProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing Callout placeholder fields. + +// Values for Callout placeholder fields. +message CalloutPlaceholderFieldEnum { + // Possible values for Callout placeholder fields. + enum CalloutPlaceholderField { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Data Type: STRING. Callout text. + CALLOUT_TEXT = 2; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/campaign_criterion_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/campaign_criterion_status.proto new file mode 100644 index 000000000..7ba9dbb9d --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/campaign_criterion_status.proto @@ -0,0 +1,55 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "CampaignCriterionStatusProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing CampaignCriterion statuses. + +// Message describing CampaignCriterion statuses. +message CampaignCriterionStatusEnum { + // The possible statuses of a CampaignCriterion. + enum CampaignCriterionStatus { + // No value has been specified. + UNSPECIFIED = 0; + + // The received value is not known in this version. + // + // This is a response-only value. + UNKNOWN = 1; + + // The campaign criterion is enabled. + ENABLED = 2; + + // The campaign criterion is paused. + PAUSED = 3; + + // The campaign criterion is removed. + REMOVED = 4; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/campaign_draft_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/campaign_draft_status.proto new file mode 100644 index 000000000..8cd2db911 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/campaign_draft_status.proto @@ -0,0 +1,65 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "CampaignDraftStatusProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing campaign draft status. + +// Container for enum describing possible statuses of a campaign draft. +message CampaignDraftStatusEnum { + // Possible statuses of a campaign draft. + enum CampaignDraftStatus { + // The status has not been specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Initial state of the draft, the advertiser can start adding changes with + // no effect on serving. + PROPOSED = 2; + + // The campaign draft is removed. + REMOVED = 3; + + // Advertiser requested to promote draft's changes back into the original + // campaign. Advertiser can poll the long running operation returned by + // the promote action to see the status of the promotion. + PROMOTING = 5; + + // The process to merge changes in the draft back to the original campaign + // has completed successfully. + PROMOTED = 4; + + // The promotion failed after it was partially applied. Promote cannot be + // attempted again safely, so the issue must be corrected in the original + // campaign. + PROMOTE_FAILED = 6; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/campaign_experiment_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/campaign_experiment_status.proto new file mode 100644 index 000000000..c7075333a --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/campaign_experiment_status.proto @@ -0,0 +1,77 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "CampaignExperimentStatusProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing campaign experiment status. + +// Container for enum describing possible statuses of a campaign experiment. +message CampaignExperimentStatusEnum { + // Possible statuses of a campaign experiment. + enum CampaignExperimentStatus { + // The status has not been specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // The experiment campaign is being initialized. + INITIALIZING = 2; + + // Initialization of the experiment campaign failed. + INITIALIZATION_FAILED = 8; + + // The experiment campaign is fully initialized. The experiment is currently + // running, scheduled to run in the future or has ended based on its + // end date. An experiment with the status INITIALIZING will be updated to + // ENABLED when it is fully created. + ENABLED = 3; + + // The experiment campaign was graduated to a stand-alone + // campaign, existing independently of the experiment. + GRADUATED = 4; + + // The experiment is removed. + REMOVED = 5; + + // The experiment's changes are being applied to the original campaign. + // The long running operation returned by the promote method can be polled + // to see the status of the promotion. + PROMOTING = 6; + + // Promote of the experiment campaign failed. + PROMOTION_FAILED = 9; + + // The changes of the experiment are promoted to their original campaign. + PROMOTED = 7; + + // The experiment was ended manually. It did not end based on its end date. + ENDED_MANUALLY = 10; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/campaign_experiment_traffic_split_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/campaign_experiment_traffic_split_type.proto new file mode 100644 index 000000000..01ca3ef42 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/campaign_experiment_traffic_split_type.proto @@ -0,0 +1,53 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "CampaignExperimentTrafficSplitTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing campaign experiment traffic split type. + +// Container for enum describing campaign experiment traffic split type. +message CampaignExperimentTrafficSplitTypeEnum { + // Enum of strategies for splitting traffic between base and experiment + // campaigns in campaign experiment. + enum CampaignExperimentTrafficSplitType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Traffic is randomly assigned to the base or experiment arm for each + // query, independent of previous assignments for the same user. + RANDOM_QUERY = 2; + + // Traffic is split using cookies to keep users in the same arm (base or + // experiment) of the experiment. + COOKIE = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/campaign_experiment_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/campaign_experiment_type.proto new file mode 100644 index 000000000..1ea8f2d2e --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/campaign_experiment_type.proto @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "CampaignExperimentTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing campaign experiment type. + +// Container for enum describing campaign experiment type. +message CampaignExperimentTypeEnum { + // Indicates if this campaign is a normal campaign, + // a draft campaign, or an experiment campaign. + enum CampaignExperimentType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // This is a regular campaign. + BASE = 2; + + // This is a draft version of a campaign. + // It has some modifications from a base campaign, + // but it does not serve or accrue metrics. + DRAFT = 3; + + // This is an experiment version of a campaign. + // It has some modifications from a base campaign, + // and a percentage of traffic is being diverted + // from the BASE campaign to this experiment campaign. + EXPERIMENT = 4; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/campaign_serving_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/campaign_serving_status.proto new file mode 100644 index 000000000..12e206a2d --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/campaign_serving_status.proto @@ -0,0 +1,61 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "CampaignServingStatusProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing Campaign serving statuses. + +// Message describing Campaign serving statuses. +message CampaignServingStatusEnum { + // Possible serving statuses of a campaign. + enum CampaignServingStatus { + // No value has been specified. + UNSPECIFIED = 0; + + // The received value is not known in this version. + // + // This is a response-only value. + UNKNOWN = 1; + + // Serving. + SERVING = 2; + + // None. + NONE = 3; + + // Ended. + ENDED = 4; + + // Pending. + PENDING = 5; + + // Suspended. + SUSPENDED = 6; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/campaign_shared_set_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/campaign_shared_set_status.proto new file mode 100644 index 000000000..8f7de3dc4 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/campaign_shared_set_status.proto @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "CampaignSharedSetStatusProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing campaign shared set statuses. + +// Container for enum describing types of campaign shared set statuses. +message CampaignSharedSetStatusEnum { + // Enum listing the possible campaign shared set statuses. + enum CampaignSharedSetStatus { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // The campaign shared set is enabled. + ENABLED = 2; + + // The campaign shared set is removed and can no longer be used. + REMOVED = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/campaign_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/campaign_status.proto new file mode 100644 index 000000000..85a527ecd --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/campaign_status.proto @@ -0,0 +1,53 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "CampaignStatusProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing campaign status. + +// Container for enum describing possible statuses of a campaign. +message CampaignStatusEnum { + // Possible statuses of a campaign. + enum CampaignStatus { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Campaign is currently serving ads depending on budget information. + ENABLED = 2; + + // Campaign has been paused by the user. + PAUSED = 3; + + // Campaign has been removed. + REMOVED = 4; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/change_client_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/change_client_type.proto new file mode 100644 index 000000000..40b9a94a3 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/change_client_type.proto @@ -0,0 +1,87 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "ChangeClientTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing the sources that the change event resource was +// made through. + +// Container for enum describing the sources that the change event resource +// was made through. +message ChangeClientTypeEnum { + // The source that the change_event resource was made through. + enum ChangeClientType { + // No value has been specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents an unclassified client type + // unknown in this version. + UNKNOWN = 1; + + // Changes made through the "ads.google.com". + // For example, changes made through campaign management. + GOOGLE_ADS_WEB_CLIENT = 2; + + // Changes made through Google Ads automated rules. + GOOGLE_ADS_AUTOMATED_RULE = 3; + + // Changes made through Google Ads scripts. + GOOGLE_ADS_SCRIPTS = 4; + + // Changes made by Google Ads bulk upload. + GOOGLE_ADS_BULK_UPLOAD = 5; + + // Changes made by Google Ads API. + GOOGLE_ADS_API = 6; + + // Changes made by Google Ads Editor. + GOOGLE_ADS_EDITOR = 7; + + // Changes made by Google Ads mobile app. + GOOGLE_ADS_MOBILE_APP = 8; + + // Changes made through Google Ads recommendations. + GOOGLE_ADS_RECOMMENDATIONS = 9; + + // Changes made through Search Ads 360 Sync. + SEARCH_ADS_360_SYNC = 10; + + // Changes made through Search Ads 360 Post. + SEARCH_ADS_360_POST = 11; + + // Changes made through internal tools. + // For example, when a user sets a URL template on an entity like a + // Campaign, it's automatically wrapped with the SA360 Clickserver URL. + INTERNAL_TOOL = 12; + + // Types of changes that are not categorized, for example, + // changes made by coupon redemption through Google Ads. + OTHER = 13; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/change_event_resource_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/change_event_resource_type.proto new file mode 100644 index 000000000..8547fa3ee --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/change_event_resource_type.proto @@ -0,0 +1,82 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "ChangeEventResourceTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing the resource types the ChangeEvent resource supports. + +// Container for enum describing supported resource types for the ChangeEvent +// resource. +message ChangeEventResourceTypeEnum { + // Enum listing the resource types support by the ChangeEvent resource. + enum ChangeEventResourceType { + // No value has been specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents an unclassified resource unknown + // in this version. + UNKNOWN = 1; + + // An Ad resource change. + AD = 2; + + // An AdGroup resource change. + AD_GROUP = 3; + + // An AdGroupCriterion resource change. + AD_GROUP_CRITERION = 4; + + // A Campaign resource change. + CAMPAIGN = 5; + + // A CampaignBudget resource change. + CAMPAIGN_BUDGET = 6; + + // An AdGroupBidModifier resource change. + AD_GROUP_BID_MODIFIER = 7; + + // A CampaignCriterion resource change. + CAMPAIGN_CRITERION = 8; + + // A Feed resource change. + FEED = 9; + + // A FeedItem resource change. + FEED_ITEM = 10; + + // A CampaignFeed resource change. + CAMPAIGN_FEED = 11; + + // An AdGroupFeed resource change. + AD_GROUP_FEED = 12; + + // An AdGroupAd resource change. + AD_GROUP_AD = 13; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/change_status_operation.proto b/third_party/googleapis/google/ads/googleads/v6/enums/change_status_operation.proto new file mode 100644 index 000000000..1c669499d --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/change_status_operation.proto @@ -0,0 +1,54 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "ChangeStatusOperationProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing the change status operations. + +// Container for enum describing operations for the ChangeStatus resource. +message ChangeStatusOperationEnum { + // Status of the changed resource + enum ChangeStatusOperation { + // No value has been specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents an unclassified resource unknown + // in this version. + UNKNOWN = 1; + + // The resource was created. + ADDED = 2; + + // The resource was modified. + CHANGED = 3; + + // The resource was removed. + REMOVED = 4; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/change_status_resource_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/change_status_resource_type.proto new file mode 100644 index 000000000..03251e029 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/change_status_resource_type.proto @@ -0,0 +1,76 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "ChangeStatusResourceTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing the resource types the ChangeStatus resource supports. + +// Container for enum describing supported resource types for the ChangeStatus +// resource. +message ChangeStatusResourceTypeEnum { + // Enum listing the resource types support by the ChangeStatus resource. + enum ChangeStatusResourceType { + // No value has been specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents an unclassified resource unknown + // in this version. + UNKNOWN = 1; + + // An AdGroup resource change. + AD_GROUP = 3; + + // An AdGroupAd resource change. + AD_GROUP_AD = 4; + + // An AdGroupCriterion resource change. + AD_GROUP_CRITERION = 5; + + // A Campaign resource change. + CAMPAIGN = 6; + + // A CampaignCriterion resource change. + CAMPAIGN_CRITERION = 7; + + // A Feed resource change. + FEED = 9; + + // A FeedItem resource change. + FEED_ITEM = 10; + + // An AdGroupFeed resource change. + AD_GROUP_FEED = 11; + + // A CampaignFeed resource change. + CAMPAIGN_FEED = 12; + + // An AdGroupBidModifier resource change. + AD_GROUP_BID_MODIFIER = 13; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/click_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/click_type.proto new file mode 100644 index 000000000..e942ad264 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/click_type.proto @@ -0,0 +1,203 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "ClickTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing click types. + +// Container for enumeration of Google Ads click types. +message ClickTypeEnum { + // Enumerates Google Ads click types. + enum ClickType { + // Not specified. + UNSPECIFIED = 0; + + // The value is unknown in this version. + UNKNOWN = 1; + + // App engagement ad deep link. + APP_DEEPLINK = 2; + + // Breadcrumbs. + BREADCRUMBS = 3; + + // Broadband Plan. + BROADBAND_PLAN = 4; + + // Manually dialed phone calls. + CALL_TRACKING = 5; + + // Phone calls. + CALLS = 6; + + // Click on engagement ad. + CLICK_ON_ENGAGEMENT_AD = 7; + + // Driving direction. + GET_DIRECTIONS = 8; + + // Get location details. + LOCATION_EXPANSION = 9; + + // Call. + LOCATION_FORMAT_CALL = 10; + + // Directions. + LOCATION_FORMAT_DIRECTIONS = 11; + + // Image(s). + LOCATION_FORMAT_IMAGE = 12; + + // Go to landing page. + LOCATION_FORMAT_LANDING_PAGE = 13; + + // Map. + LOCATION_FORMAT_MAP = 14; + + // Go to store info. + LOCATION_FORMAT_STORE_INFO = 15; + + // Text. + LOCATION_FORMAT_TEXT = 16; + + // Mobile phone calls. + MOBILE_CALL_TRACKING = 17; + + // Print offer. + OFFER_PRINTS = 18; + + // Other. + OTHER = 19; + + // Product plusbox offer. + PRODUCT_EXTENSION_CLICKS = 20; + + // Shopping - Product - Online. + PRODUCT_LISTING_AD_CLICKS = 21; + + // Sitelink. + SITELINKS = 22; + + // Show nearby locations. + STORE_LOCATOR = 23; + + // Headline. + URL_CLICKS = 25; + + // App store. + VIDEO_APP_STORE_CLICKS = 26; + + // Call-to-Action overlay. + VIDEO_CALL_TO_ACTION_CLICKS = 27; + + // Cards. + VIDEO_CARD_ACTION_HEADLINE_CLICKS = 28; + + // End cap. + VIDEO_END_CAP_CLICKS = 29; + + // Website. + VIDEO_WEBSITE_CLICKS = 30; + + // Visual Sitelinks. + VISUAL_SITELINKS = 31; + + // Wireless Plan. + WIRELESS_PLAN = 32; + + // Shopping - Product - Local. + PRODUCT_LISTING_AD_LOCAL = 33; + + // Shopping - Product - MultiChannel Local. + PRODUCT_LISTING_AD_MULTICHANNEL_LOCAL = 34; + + // Shopping - Product - MultiChannel Online. + PRODUCT_LISTING_AD_MULTICHANNEL_ONLINE = 35; + + // Shopping - Product - Coupon. + PRODUCT_LISTING_ADS_COUPON = 36; + + // Shopping - Product - Sell on Google. + PRODUCT_LISTING_AD_TRANSACTABLE = 37; + + // Shopping - Product - App engagement ad deep link. + PRODUCT_AD_APP_DEEPLINK = 38; + + // Shopping - Showcase - Category. + SHOWCASE_AD_CATEGORY_LINK = 39; + + // Shopping - Showcase - Local storefront. + SHOWCASE_AD_LOCAL_STOREFRONT_LINK = 40; + + // Shopping - Showcase - Online product. + SHOWCASE_AD_ONLINE_PRODUCT_LINK = 42; + + // Shopping - Showcase - Local product. + SHOWCASE_AD_LOCAL_PRODUCT_LINK = 43; + + // Promotion Extension. + PROMOTION_EXTENSION = 44; + + // Ad Headline. + SWIPEABLE_GALLERY_AD_HEADLINE = 45; + + // Swipes. + SWIPEABLE_GALLERY_AD_SWIPES = 46; + + // See More. + SWIPEABLE_GALLERY_AD_SEE_MORE = 47; + + // Sitelink 1. + SWIPEABLE_GALLERY_AD_SITELINK_ONE = 48; + + // Sitelink 2. + SWIPEABLE_GALLERY_AD_SITELINK_TWO = 49; + + // Sitelink 3. + SWIPEABLE_GALLERY_AD_SITELINK_THREE = 50; + + // Sitelink 4. + SWIPEABLE_GALLERY_AD_SITELINK_FOUR = 51; + + // Sitelink 5. + SWIPEABLE_GALLERY_AD_SITELINK_FIVE = 52; + + // Hotel price. + HOTEL_PRICE = 53; + + // Price Extension. + PRICE_EXTENSION = 54; + + // Book on Google hotel room selection. + HOTEL_BOOK_ON_GOOGLE_ROOM_SELECTION = 55; + + // Shopping - Comparison Listing. + SHOPPING_COMPARISON_LISTING = 56; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/combined_audience_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/combined_audience_status.proto new file mode 100644 index 000000000..093e85aad --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/combined_audience_status.proto @@ -0,0 +1,51 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "CombinedAudienceStatusProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing combined audience status. + +// The status of combined audience. +message CombinedAudienceStatusEnum { + // Enum containing possible combined audience status types. + enum CombinedAudienceStatus { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Enabled status - combined audience is enabled and can be targeted. + ENABLED = 2; + + // Removed status - combined audience is removed and cannot be used for + // targeting. + REMOVED = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/content_label_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/content_label_type.proto new file mode 100644 index 000000000..e53b359eb --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/content_label_type.proto @@ -0,0 +1,89 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "ContentLabelTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing content label types. + +// Container for enum describing content label types in ContentLabel. +message ContentLabelTypeEnum { + // Enum listing the content label types supported by ContentLabel criterion. + enum ContentLabelType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Sexually suggestive content. + SEXUALLY_SUGGESTIVE = 2; + + // Below the fold placement. + BELOW_THE_FOLD = 3; + + // Parked domain. + PARKED_DOMAIN = 4; + + // Juvenile, gross & bizarre content. + JUVENILE = 6; + + // Profanity & rough language. + PROFANITY = 7; + + // Death & tragedy. + TRAGEDY = 8; + + // Video. + VIDEO = 9; + + // Content rating: G. + VIDEO_RATING_DV_G = 10; + + // Content rating: PG. + VIDEO_RATING_DV_PG = 11; + + // Content rating: T. + VIDEO_RATING_DV_T = 12; + + // Content rating: MA. + VIDEO_RATING_DV_MA = 13; + + // Content rating: not yet rated. + VIDEO_NOT_YET_RATED = 14; + + // Embedded video. + EMBEDDED_VIDEO = 15; + + // Live streaming video. + LIVE_STREAMING_VIDEO = 16; + + // Sensitive social issues. + SOCIAL_ISSUES = 17; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/conversion_action_category.proto b/third_party/googleapis/google/ads/googleads/v6/enums/conversion_action_category.proto new file mode 100644 index 000000000..03958a39c --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/conversion_action_category.proto @@ -0,0 +1,106 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "ConversionActionCategoryProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Container for enum describing the category of conversions that are associated +// with a ConversionAction. +message ConversionActionCategoryEnum { + // The category of conversions that are associated with a ConversionAction. + enum ConversionActionCategory { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Default category. + DEFAULT = 2; + + // User visiting a page. + PAGE_VIEW = 3; + + // Purchase, sales, or "order placed" event. + PURCHASE = 4; + + // Signup user action. + SIGNUP = 5; + + // Lead-generating action. + LEAD = 6; + + // Software download action (as for an app). + DOWNLOAD = 7; + + // The addition of items to a shopping cart or bag on an advertiser site. + ADD_TO_CART = 8; + + // When someone enters the checkout flow on an advertiser site. + BEGIN_CHECKOUT = 9; + + // The start of a paid subscription for a product or service. + SUBSCRIBE_PAID = 10; + + // A call to indicate interest in an advertiser's offering. + PHONE_CALL_LEAD = 11; + + // A lead conversion imported from an external source into Google Ads. + IMPORTED_LEAD = 12; + + // A submission of a form on an advertiser site indicating business + // interest. + SUBMIT_LEAD_FORM = 13; + + // A booking of an appointment with an advertiser's business. + BOOK_APPOINTMENT = 14; + + // A quote or price estimate request. + REQUEST_QUOTE = 15; + + // A search for an advertiser's business location with intention to visit. + GET_DIRECTIONS = 16; + + // A click to an advertiser's partner's site. + OUTBOUND_CLICK = 17; + + // A call, SMS, email, chat or other type of contact to an advertiser. + CONTACT = 18; + + // A website engagement event such as long site time or a Google Analytics + // (GA) Smart Goal. Intended to be used for GA, Firebase, GA Gold goal + // imports. + ENGAGEMENT = 19; + + // A visit to a physical store location. + STORE_VISIT = 20; + + // A sale occurring in a physical store. + STORE_SALE = 21; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/conversion_action_counting_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/conversion_action_counting_type.proto new file mode 100644 index 000000000..0ada17e9f --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/conversion_action_counting_type.proto @@ -0,0 +1,52 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "ConversionActionCountingTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing conversion action counting type. + +// Container for enum describing the conversion deduplication mode for +// conversion optimizer. +message ConversionActionCountingTypeEnum { + // Indicates how conversions for this action will be counted. For more + // information, see https://support.google.com/google-ads/answer/3438531. + enum ConversionActionCountingType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Count only one conversion per click. + ONE_PER_CLICK = 2; + + // Count all conversions per click. + MANY_PER_CLICK = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/conversion_action_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/conversion_action_status.proto new file mode 100644 index 000000000..7ec83c9a5 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/conversion_action_status.proto @@ -0,0 +1,54 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "ConversionActionStatusProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing conversion action status. + +// Container for enum describing possible statuses of a conversion action. +message ConversionActionStatusEnum { + // Possible statuses of a conversion action. + enum ConversionActionStatus { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Conversions will be recorded. + ENABLED = 2; + + // Conversions will not be recorded. + REMOVED = 3; + + // Conversions will not be recorded and the conversion action will not + // appear in the UI. + HIDDEN = 4; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/conversion_action_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/conversion_action_type.proto new file mode 100644 index 000000000..ac731f93c --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/conversion_action_type.proto @@ -0,0 +1,173 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "ConversionActionTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing conversion action type. + +// Container for enum describing possible types of a conversion action. +message ConversionActionTypeEnum { + // Possible types of a conversion action. + enum ConversionActionType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Conversions that occur when a user clicks on an ad's call extension. + AD_CALL = 2; + + // Conversions that occur when a user on a mobile device clicks a phone + // number. + CLICK_TO_CALL = 3; + + // Conversions that occur when a user downloads a mobile app from the Google + // Play Store. + GOOGLE_PLAY_DOWNLOAD = 4; + + // Conversions that occur when a user makes a purchase in an app through + // Android billing. + GOOGLE_PLAY_IN_APP_PURCHASE = 5; + + // Call conversions that are tracked by the advertiser and uploaded. + UPLOAD_CALLS = 6; + + // Conversions that are tracked by the advertiser and uploaded with + // attributed clicks. + UPLOAD_CLICKS = 7; + + // Conversions that occur on a webpage. + WEBPAGE = 8; + + // Conversions that occur when a user calls a dynamically-generated phone + // number from an advertiser's website. + WEBSITE_CALL = 9; + + // Store Sales conversion based on first-party or third-party merchant + // data uploads. + // Only customers on the allowlist can use store sales direct upload types. + STORE_SALES_DIRECT_UPLOAD = 10; + + // Store Sales conversion based on first-party or third-party merchant + // data uploads and/or from in-store purchases using cards from payment + // networks. + // Only customers on the allowlist can use store sales types. + STORE_SALES = 11; + + // Android app first open conversions tracked via Firebase. + FIREBASE_ANDROID_FIRST_OPEN = 12; + + // Android app in app purchase conversions tracked via Firebase. + FIREBASE_ANDROID_IN_APP_PURCHASE = 13; + + // Android app custom conversions tracked via Firebase. + FIREBASE_ANDROID_CUSTOM = 14; + + // iOS app first open conversions tracked via Firebase. + FIREBASE_IOS_FIRST_OPEN = 15; + + // iOS app in app purchase conversions tracked via Firebase. + FIREBASE_IOS_IN_APP_PURCHASE = 16; + + // iOS app custom conversions tracked via Firebase. + FIREBASE_IOS_CUSTOM = 17; + + // Android app first open conversions tracked via Third Party App Analytics. + THIRD_PARTY_APP_ANALYTICS_ANDROID_FIRST_OPEN = 18; + + // Android app in app purchase conversions tracked via Third Party App + // Analytics. + THIRD_PARTY_APP_ANALYTICS_ANDROID_IN_APP_PURCHASE = 19; + + // Android app custom conversions tracked via Third Party App Analytics. + THIRD_PARTY_APP_ANALYTICS_ANDROID_CUSTOM = 20; + + // iOS app first open conversions tracked via Third Party App Analytics. + THIRD_PARTY_APP_ANALYTICS_IOS_FIRST_OPEN = 21; + + // iOS app in app purchase conversions tracked via Third Party App + // Analytics. + THIRD_PARTY_APP_ANALYTICS_IOS_IN_APP_PURCHASE = 22; + + // iOS app custom conversions tracked via Third Party App Analytics. + THIRD_PARTY_APP_ANALYTICS_IOS_CUSTOM = 23; + + // Conversions that occur when a user pre-registers a mobile app from the + // Google Play Store. Read only. + ANDROID_APP_PRE_REGISTRATION = 24; + + // Conversions that track all Google Play downloads which aren't tracked + // by an app-specific type. Read only. + ANDROID_INSTALLS_ALL_OTHER_APPS = 25; + + // Floodlight activity that counts the number of times that users have + // visited a particular webpage after seeing or clicking on one of + // an advertiser's ads. Read only. + FLOODLIGHT_ACTION = 26; + + // Floodlight activity that tracks the number of sales made or the number + // of items purchased. Can also capture the total value of each sale. + // Read only. + FLOODLIGHT_TRANSACTION = 27; + + // Conversions that track local actions from Google's products and + // services after interacting with an ad. Read only. + GOOGLE_HOSTED = 28; + + // Conversions reported when a user submits a lead form. Read only. + LEAD_FORM_SUBMIT = 29; + + // Conversions that come from Salesforce. Read only. + SALESFORCE = 30; + + // Conversions imported from Search Ads 360 Floodlight data. Read only. + SEARCH_ADS_360 = 31; + + // Call conversions that occur on Smart campaign Ads without call tracking + // setup, using Smart campaign custom criteria. Read only. + SMART_CAMPAIGN_AD_CLICKS_TO_CALL = 32; + + // The user clicks on a call element within Google Maps. Smart campaign + // only. Read only. + SMART_CAMPAIGN_MAP_CLICKS_TO_CALL = 33; + + // The user requests directions to a business location within Google Maps. + // Smart campaign only. Read only. + SMART_CAMPAIGN_MAP_DIRECTIONS = 34; + + // Call conversions that occur on Smart campaign Ads with call tracking + // setup, using Smart campaign custom criteria. Read only. + SMART_CAMPAIGN_TRACKED_CALLS = 35; + + // Conversions that occur when a user visits an advertiser's retail store. + // Read only. + STORE_VISITS = 36; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/conversion_adjustment_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/conversion_adjustment_type.proto new file mode 100644 index 000000000..0db126915 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/conversion_adjustment_type.proto @@ -0,0 +1,52 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "ConversionAdjustmentTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing conversion adjustment type. + +// Container for enum describing conversion adjustment types. +message ConversionAdjustmentTypeEnum { + // The different actions advertisers can take to adjust the conversions that + // they already reported. Retractions negate a conversion. Restatements change + // the value of a conversion. + enum ConversionAdjustmentType { + // Not specified. + UNSPECIFIED = 0; + + // Represents value unknown in this version. + UNKNOWN = 1; + + // Negates a conversion so that its total value and count are both zero. + RETRACTION = 2; + + // Changes the value of a conversion. + RESTATEMENT = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/conversion_attribution_event_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/conversion_attribution_event_type.proto new file mode 100644 index 000000000..25654c903 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/conversion_attribution_event_type.proto @@ -0,0 +1,48 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "ConversionAttributionEventTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Container for enum indicating the event type the conversion is attributed to. +message ConversionAttributionEventTypeEnum { + // The event type of conversions that are attributed to. + enum ConversionAttributionEventType { + // Not specified. + UNSPECIFIED = 0; + + // Represents value unknown in this version. + UNKNOWN = 1; + + // The conversion is attributed to an impression. + IMPRESSION = 2; + + // The conversion is attributed to an interaction. + INTERACTION = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/conversion_lag_bucket.proto b/third_party/googleapis/google/ads/googleads/v6/enums/conversion_lag_bucket.proto new file mode 100644 index 000000000..90a5c4f2c --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/conversion_lag_bucket.proto @@ -0,0 +1,117 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "ConversionLagBucketProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Container for enum representing the number of days between impression and +// conversion. +message ConversionLagBucketEnum { + // Enum representing the number of days between impression and conversion. + enum ConversionLagBucket { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Conversion lag bucket from 0 to 1 day. 0 day is included, 1 day is not. + LESS_THAN_ONE_DAY = 2; + + // Conversion lag bucket from 1 to 2 days. 1 day is included, 2 days is not. + ONE_TO_TWO_DAYS = 3; + + // Conversion lag bucket from 2 to 3 days. 2 days is included, + // 3 days is not. + TWO_TO_THREE_DAYS = 4; + + // Conversion lag bucket from 3 to 4 days. 3 days is included, + // 4 days is not. + THREE_TO_FOUR_DAYS = 5; + + // Conversion lag bucket from 4 to 5 days. 4 days is included, + // 5 days is not. + FOUR_TO_FIVE_DAYS = 6; + + // Conversion lag bucket from 5 to 6 days. 5 days is included, + // 6 days is not. + FIVE_TO_SIX_DAYS = 7; + + // Conversion lag bucket from 6 to 7 days. 6 days is included, + // 7 days is not. + SIX_TO_SEVEN_DAYS = 8; + + // Conversion lag bucket from 7 to 8 days. 7 days is included, + // 8 days is not. + SEVEN_TO_EIGHT_DAYS = 9; + + // Conversion lag bucket from 8 to 9 days. 8 days is included, + // 9 days is not. + EIGHT_TO_NINE_DAYS = 10; + + // Conversion lag bucket from 9 to 10 days. 9 days is included, + // 10 days is not. + NINE_TO_TEN_DAYS = 11; + + // Conversion lag bucket from 10 to 11 days. 10 days is included, + // 11 days is not. + TEN_TO_ELEVEN_DAYS = 12; + + // Conversion lag bucket from 11 to 12 days. 11 days is included, + // 12 days is not. + ELEVEN_TO_TWELVE_DAYS = 13; + + // Conversion lag bucket from 12 to 13 days. 12 days is included, + // 13 days is not. + TWELVE_TO_THIRTEEN_DAYS = 14; + + // Conversion lag bucket from 13 to 14 days. 13 days is included, + // 14 days is not. + THIRTEEN_TO_FOURTEEN_DAYS = 15; + + // Conversion lag bucket from 14 to 21 days. 14 days is included, + // 21 days is not. + FOURTEEN_TO_TWENTY_ONE_DAYS = 16; + + // Conversion lag bucket from 21 to 30 days. 21 days is included, + // 30 days is not. + TWENTY_ONE_TO_THIRTY_DAYS = 17; + + // Conversion lag bucket from 30 to 45 days. 30 days is included, + // 45 days is not. + THIRTY_TO_FORTY_FIVE_DAYS = 18; + + // Conversion lag bucket from 45 to 60 days. 45 days is included, + // 60 days is not. + FORTY_FIVE_TO_SIXTY_DAYS = 19; + + // Conversion lag bucket from 60 to 90 days. 60 days is included, + // 90 days is not. + SIXTY_TO_NINETY_DAYS = 20; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/conversion_or_adjustment_lag_bucket.proto b/third_party/googleapis/google/ads/googleads/v6/enums/conversion_or_adjustment_lag_bucket.proto new file mode 100644 index 000000000..254552784 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/conversion_or_adjustment_lag_bucket.proto @@ -0,0 +1,206 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "ConversionOrAdjustmentLagBucketProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Container for enum representing the number of days between the impression and +// the conversion or between the impression and adjustments to the conversion. +message ConversionOrAdjustmentLagBucketEnum { + // Enum representing the number of days between the impression and the + // conversion or between the impression and adjustments to the conversion. + enum ConversionOrAdjustmentLagBucket { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Conversion lag bucket from 0 to 1 day. 0 day is included, 1 day is not. + CONVERSION_LESS_THAN_ONE_DAY = 2; + + // Conversion lag bucket from 1 to 2 days. 1 day is included, 2 days is not. + CONVERSION_ONE_TO_TWO_DAYS = 3; + + // Conversion lag bucket from 2 to 3 days. 2 days is included, + // 3 days is not. + CONVERSION_TWO_TO_THREE_DAYS = 4; + + // Conversion lag bucket from 3 to 4 days. 3 days is included, + // 4 days is not. + CONVERSION_THREE_TO_FOUR_DAYS = 5; + + // Conversion lag bucket from 4 to 5 days. 4 days is included, + // 5 days is not. + CONVERSION_FOUR_TO_FIVE_DAYS = 6; + + // Conversion lag bucket from 5 to 6 days. 5 days is included, + // 6 days is not. + CONVERSION_FIVE_TO_SIX_DAYS = 7; + + // Conversion lag bucket from 6 to 7 days. 6 days is included, + // 7 days is not. + CONVERSION_SIX_TO_SEVEN_DAYS = 8; + + // Conversion lag bucket from 7 to 8 days. 7 days is included, + // 8 days is not. + CONVERSION_SEVEN_TO_EIGHT_DAYS = 9; + + // Conversion lag bucket from 8 to 9 days. 8 days is included, + // 9 days is not. + CONVERSION_EIGHT_TO_NINE_DAYS = 10; + + // Conversion lag bucket from 9 to 10 days. 9 days is included, + // 10 days is not. + CONVERSION_NINE_TO_TEN_DAYS = 11; + + // Conversion lag bucket from 10 to 11 days. 10 days is included, + // 11 days is not. + CONVERSION_TEN_TO_ELEVEN_DAYS = 12; + + // Conversion lag bucket from 11 to 12 days. 11 days is included, + // 12 days is not. + CONVERSION_ELEVEN_TO_TWELVE_DAYS = 13; + + // Conversion lag bucket from 12 to 13 days. 12 days is included, + // 13 days is not. + CONVERSION_TWELVE_TO_THIRTEEN_DAYS = 14; + + // Conversion lag bucket from 13 to 14 days. 13 days is included, + // 14 days is not. + CONVERSION_THIRTEEN_TO_FOURTEEN_DAYS = 15; + + // Conversion lag bucket from 14 to 21 days. 14 days is included, + // 21 days is not. + CONVERSION_FOURTEEN_TO_TWENTY_ONE_DAYS = 16; + + // Conversion lag bucket from 21 to 30 days. 21 days is included, + // 30 days is not. + CONVERSION_TWENTY_ONE_TO_THIRTY_DAYS = 17; + + // Conversion lag bucket from 30 to 45 days. 30 days is included, + // 45 days is not. + CONVERSION_THIRTY_TO_FORTY_FIVE_DAYS = 18; + + // Conversion lag bucket from 45 to 60 days. 45 days is included, + // 60 days is not. + CONVERSION_FORTY_FIVE_TO_SIXTY_DAYS = 19; + + // Conversion lag bucket from 60 to 90 days. 60 days is included, + // 90 days is not. + CONVERSION_SIXTY_TO_NINETY_DAYS = 20; + + // Conversion adjustment lag bucket from 0 to 1 day. 0 day is included, + // 1 day is not. + ADJUSTMENT_LESS_THAN_ONE_DAY = 21; + + // Conversion adjustment lag bucket from 1 to 2 days. 1 day is included, + // 2 days is not. + ADJUSTMENT_ONE_TO_TWO_DAYS = 22; + + // Conversion adjustment lag bucket from 2 to 3 days. 2 days is included, + // 3 days is not. + ADJUSTMENT_TWO_TO_THREE_DAYS = 23; + + // Conversion adjustment lag bucket from 3 to 4 days. 3 days is included, + // 4 days is not. + ADJUSTMENT_THREE_TO_FOUR_DAYS = 24; + + // Conversion adjustment lag bucket from 4 to 5 days. 4 days is included, + // 5 days is not. + ADJUSTMENT_FOUR_TO_FIVE_DAYS = 25; + + // Conversion adjustment lag bucket from 5 to 6 days. 5 days is included, + // 6 days is not. + ADJUSTMENT_FIVE_TO_SIX_DAYS = 26; + + // Conversion adjustment lag bucket from 6 to 7 days. 6 days is included, + // 7 days is not. + ADJUSTMENT_SIX_TO_SEVEN_DAYS = 27; + + // Conversion adjustment lag bucket from 7 to 8 days. 7 days is included, + // 8 days is not. + ADJUSTMENT_SEVEN_TO_EIGHT_DAYS = 28; + + // Conversion adjustment lag bucket from 8 to 9 days. 8 days is included, + // 9 days is not. + ADJUSTMENT_EIGHT_TO_NINE_DAYS = 29; + + // Conversion adjustment lag bucket from 9 to 10 days. 9 days is included, + // 10 days is not. + ADJUSTMENT_NINE_TO_TEN_DAYS = 30; + + // Conversion adjustment lag bucket from 10 to 11 days. 10 days is included, + // 11 days is not. + ADJUSTMENT_TEN_TO_ELEVEN_DAYS = 31; + + // Conversion adjustment lag bucket from 11 to 12 days. 11 days is included, + // 12 days is not. + ADJUSTMENT_ELEVEN_TO_TWELVE_DAYS = 32; + + // Conversion adjustment lag bucket from 12 to 13 days. 12 days is included, + // 13 days is not. + ADJUSTMENT_TWELVE_TO_THIRTEEN_DAYS = 33; + + // Conversion adjustment lag bucket from 13 to 14 days. 13 days is included, + // 14 days is not. + ADJUSTMENT_THIRTEEN_TO_FOURTEEN_DAYS = 34; + + // Conversion adjustment lag bucket from 14 to 21 days. 14 days is included, + // 21 days is not. + ADJUSTMENT_FOURTEEN_TO_TWENTY_ONE_DAYS = 35; + + // Conversion adjustment lag bucket from 21 to 30 days. 21 days is included, + // 30 days is not. + ADJUSTMENT_TWENTY_ONE_TO_THIRTY_DAYS = 36; + + // Conversion adjustment lag bucket from 30 to 45 days. 30 days is included, + // 45 days is not. + ADJUSTMENT_THIRTY_TO_FORTY_FIVE_DAYS = 37; + + // Conversion adjustment lag bucket from 45 to 60 days. 45 days is included, + // 60 days is not. + ADJUSTMENT_FORTY_FIVE_TO_SIXTY_DAYS = 38; + + // Conversion adjustment lag bucket from 60 to 90 days. 60 days is included, + // 90 days is not. + ADJUSTMENT_SIXTY_TO_NINETY_DAYS = 39; + + // Conversion adjustment lag bucket from 90 to 145 days. 90 days is + // included, 145 days is not. + ADJUSTMENT_NINETY_TO_ONE_HUNDRED_AND_FORTY_FIVE_DAYS = 40; + + // Conversion lag bucket UNKNOWN. This is for dates before conversion lag + // bucket was available in Google Ads. + CONVERSION_UNKNOWN = 41; + + // Conversion adjustment lag bucket UNKNOWN. This is for dates before + // conversion adjustment lag bucket was available in Google Ads. + ADJUSTMENT_UNKNOWN = 42; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/criterion_category_channel_availability_mode.proto b/third_party/googleapis/google/ads/googleads/v6/enums/criterion_category_channel_availability_mode.proto new file mode 100644 index 000000000..15d71417c --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/criterion_category_channel_availability_mode.proto @@ -0,0 +1,58 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "CriterionCategoryChannelAvailabilityModeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing the criterion category channel availability mode. + +// Describes channel availability mode for a criterion availability - whether +// the availability is meant to include all advertising channels, or a +// particular channel with all its channel subtypes, or a channel with a certain +// subset of channel subtypes. +message CriterionCategoryChannelAvailabilityModeEnum { + // Enum containing the possible CriterionCategoryChannelAvailabilityMode. + enum CriterionCategoryChannelAvailabilityMode { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // The category is available to campaigns of all channel types and subtypes. + ALL_CHANNELS = 2; + + // The category is available to campaigns of a specific channel type, + // including all subtypes under it. + CHANNEL_TYPE_AND_ALL_SUBTYPES = 3; + + // The category is available to campaigns of a specific channel type and + // subtype(s). + CHANNEL_TYPE_AND_SUBSET_SUBTYPES = 4; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/criterion_category_locale_availability_mode.proto b/third_party/googleapis/google/ads/googleads/v6/enums/criterion_category_locale_availability_mode.proto new file mode 100644 index 000000000..3e50af621 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/criterion_category_locale_availability_mode.proto @@ -0,0 +1,61 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "CriterionCategoryLocaleAvailabilityModeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing the criterion category locale availability mode. + +// Describes locale availability mode for a criterion availability - whether +// it's available globally, or a particular country with all languages, or a +// particular language with all countries, or a country-language pair. +message CriterionCategoryLocaleAvailabilityModeEnum { + // Enum containing the possible CriterionCategoryLocaleAvailabilityMode. + enum CriterionCategoryLocaleAvailabilityMode { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // The category is available to campaigns of all locales. + ALL_LOCALES = 2; + + // The category is available to campaigns within a list of countries, + // regardless of language. + COUNTRY_AND_ALL_LANGUAGES = 3; + + // The category is available to campaigns within a list of languages, + // regardless of country. + LANGUAGE_AND_ALL_COUNTRIES = 4; + + // The category is available to campaigns within a list of country, language + // pairs. + COUNTRY_AND_LANGUAGE = 5; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/criterion_system_serving_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/criterion_system_serving_status.proto new file mode 100644 index 000000000..4133b6350 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/criterion_system_serving_status.proto @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "CriterionSystemServingStatusProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing approval status for the criterion. + +// Container for enum describing possible criterion system serving statuses. +message CriterionSystemServingStatusEnum { + // Enumerates criterion system serving statuses. + enum CriterionSystemServingStatus { + // Not specified. + UNSPECIFIED = 0; + + // The value is unknown in this version. + UNKNOWN = 1; + + // Eligible. + ELIGIBLE = 2; + + // Low search volume. + RARELY_SERVED = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/criterion_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/criterion_type.proto new file mode 100644 index 000000000..e426d2b54 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/criterion_type.proto @@ -0,0 +1,140 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "CriterionTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing criteria types. + +// The possible types of a criterion. +message CriterionTypeEnum { + // Enum describing possible criterion types. + enum CriterionType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Keyword. e.g. 'mars cruise'. + KEYWORD = 2; + + // Placement, aka Website. e.g. 'www.flowers4sale.com' + PLACEMENT = 3; + + // Mobile application categories to target. + MOBILE_APP_CATEGORY = 4; + + // Mobile applications to target. + MOBILE_APPLICATION = 5; + + // Devices to target. + DEVICE = 6; + + // Locations to target. + LOCATION = 7; + + // Listing groups to target. + LISTING_GROUP = 8; + + // Ad Schedule. + AD_SCHEDULE = 9; + + // Age range. + AGE_RANGE = 10; + + // Gender. + GENDER = 11; + + // Income Range. + INCOME_RANGE = 12; + + // Parental status. + PARENTAL_STATUS = 13; + + // YouTube Video. + YOUTUBE_VIDEO = 14; + + // YouTube Channel. + YOUTUBE_CHANNEL = 15; + + // User list. + USER_LIST = 16; + + // Proximity. + PROXIMITY = 17; + + // A topic target on the display network (e.g. "Pets & Animals"). + TOPIC = 18; + + // Listing scope to target. + LISTING_SCOPE = 19; + + // Language. + LANGUAGE = 20; + + // IpBlock. + IP_BLOCK = 21; + + // Content Label for category exclusion. + CONTENT_LABEL = 22; + + // Carrier. + CARRIER = 23; + + // A category the user is interested in. + USER_INTEREST = 24; + + // Webpage criterion for dynamic search ads. + WEBPAGE = 25; + + // Operating system version. + OPERATING_SYSTEM_VERSION = 26; + + // App payment model. + APP_PAYMENT_MODEL = 27; + + // Mobile device. + MOBILE_DEVICE = 28; + + // Custom affinity. + CUSTOM_AFFINITY = 29; + + // Custom intent. + CUSTOM_INTENT = 30; + + // Location group. + LOCATION_GROUP = 31; + + // Custom audience + CUSTOM_AUDIENCE = 32; + + // Combined audience + COMBINED_AUDIENCE = 33; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/custom_audience_member_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/custom_audience_member_type.proto new file mode 100644 index 000000000..9caa4da5c --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/custom_audience_member_type.proto @@ -0,0 +1,56 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "CustomAudienceMemberTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing custom audience member type. + +// The type of custom audience member. +message CustomAudienceMemberTypeEnum { + // Enum containing possible custom audience member types. + enum CustomAudienceMemberType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Users whose interests or actions are described by a keyword. + KEYWORD = 2; + + // Users who have interests related to the website's content. + URL = 3; + + // Users who visit place types described by a place category. + PLACE_CATEGORY = 4; + + // Users who have installed a mobile app. + APP = 5; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/custom_audience_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/custom_audience_status.proto new file mode 100644 index 000000000..059bf3021 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/custom_audience_status.proto @@ -0,0 +1,51 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "CustomAudienceStatusProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing custom audience status. + +// The status of custom audience. +message CustomAudienceStatusEnum { + // Enum containing possible custom audience statuses. + enum CustomAudienceStatus { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Enabled status - custom audience is enabled and can be targeted. + ENABLED = 2; + + // Removed status - custom audience is removed and cannot be used for + // targeting. + REMOVED = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/custom_audience_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/custom_audience_type.proto new file mode 100644 index 000000000..444ee3943 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/custom_audience_type.proto @@ -0,0 +1,58 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "CustomAudienceTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing custom audience type. + +// The types of custom audience. +message CustomAudienceTypeEnum { + // Enum containing possible custom audience types. + enum CustomAudienceType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Google Ads will auto-select the best interpretation at serving + // time. + AUTO = 2; + + // Matches users by their interests. + INTEREST = 3; + + // Matches users by topics they are researching or products they are + // considering for purchase. + PURCHASE_INTENT = 4; + + // Matches users by what they searched on Google Search. + SEARCH = 5; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/custom_interest_member_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/custom_interest_member_type.proto new file mode 100644 index 000000000..7eb15cb8c --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/custom_interest_member_type.proto @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "CustomInterestMemberTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing custom interest member type. + +// The types of custom interest member, either KEYWORD or URL. +message CustomInterestMemberTypeEnum { + // Enum containing possible custom interest member types. + enum CustomInterestMemberType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Custom interest member type KEYWORD. + KEYWORD = 2; + + // Custom interest member type URL. + URL = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/custom_interest_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/custom_interest_status.proto new file mode 100644 index 000000000..a8dddcbc9 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/custom_interest_status.proto @@ -0,0 +1,51 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "CustomInterestStatusProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing custom interest status. + +// The status of custom interest. +message CustomInterestStatusEnum { + // Enum containing possible custom interest types. + enum CustomInterestStatus { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Enabled status - custom interest is enabled and can be targeted to. + ENABLED = 2; + + // Removed status - custom interest is removed and cannot be used for + // targeting. + REMOVED = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/custom_interest_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/custom_interest_type.proto new file mode 100644 index 000000000..2ee3e0dcd --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/custom_interest_type.proto @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "CustomInterestTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing custom interest type. + +// The types of custom interest. +message CustomInterestTypeEnum { + // Enum containing possible custom interest types. + enum CustomInterestType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Allows brand advertisers to define custom affinity audience lists. + CUSTOM_AFFINITY = 2; + + // Allows advertisers to define custom intent audience lists. + CUSTOM_INTENT = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/custom_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v6/enums/custom_placeholder_field.proto new file mode 100644 index 000000000..7455128e3 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/custom_placeholder_field.proto @@ -0,0 +1,129 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "CustomPlaceholderFieldProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing Custom placeholder fields. + +// Values for Custom placeholder fields. +// For more information about dynamic remarketing feeds, see +// https://support.google.com/google-ads/answer/6053288. +message CustomPlaceholderFieldEnum { + // Possible values for Custom placeholder fields. + enum CustomPlaceholderField { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Data Type: STRING. Required. Combination ID and ID2 must be unique per + // offer. + ID = 2; + + // Data Type: STRING. Combination ID and ID2 must be unique per offer. + ID2 = 3; + + // Data Type: STRING. Required. Main headline with product name to be shown + // in dynamic ad. + ITEM_TITLE = 4; + + // Data Type: STRING. Optional text to be shown in the image ad. + ITEM_SUBTITLE = 5; + + // Data Type: STRING. Optional description of the product to be shown in the + // ad. + ITEM_DESCRIPTION = 6; + + // Data Type: STRING. Full address of your offer or service, including + // postal code. This will be used to identify the closest product to the + // user when there are multiple offers in the feed that are relevant to the + // user. + ITEM_ADDRESS = 7; + + // Data Type: STRING. Price to be shown in the ad. + // Example: "100.00 USD" + PRICE = 8; + + // Data Type: STRING. Formatted price to be shown in the ad. + // Example: "Starting at $100.00 USD", "$80 - $100" + FORMATTED_PRICE = 9; + + // Data Type: STRING. Sale price to be shown in the ad. + // Example: "80.00 USD" + SALE_PRICE = 10; + + // Data Type: STRING. Formatted sale price to be shown in the ad. + // Example: "On sale for $80.00", "$60 - $80" + FORMATTED_SALE_PRICE = 11; + + // Data Type: URL. Image to be displayed in the ad. Highly recommended for + // image ads. + IMAGE_URL = 12; + + // Data Type: STRING. Used as a recommendation engine signal to serve items + // in the same category. + ITEM_CATEGORY = 13; + + // Data Type: URL_LIST. Final URLs for the ad when using Upgraded + // URLs. User will be redirected to these URLs when they click on an ad, or + // when they click on a specific product for ads that have multiple + // products. + FINAL_URLS = 14; + + // Data Type: URL_LIST. Final mobile URLs for the ad when using Upgraded + // URLs. + FINAL_MOBILE_URLS = 15; + + // Data Type: URL. Tracking template for the ad when using Upgraded URLs. + TRACKING_URL = 16; + + // Data Type: STRING_LIST. Keywords used for product retrieval. + CONTEXTUAL_KEYWORDS = 17; + + // Data Type: STRING. Android app link. Must be formatted as: + // android-app://{package_id}/{scheme}/{host_path}. + // The components are defined as follows: + // package_id: app ID as specified in Google Play. + // scheme: the scheme to pass to the application. Can be HTTP, or a custom + // scheme. + // host_path: identifies the specific content within your application. + ANDROID_APP_LINK = 18; + + // Data Type: STRING_LIST. List of recommended IDs to show together with + // this item. + SIMILAR_IDS = 19; + + // Data Type: STRING. iOS app link. + IOS_APP_LINK = 20; + + // Data Type: INT64. iOS app store ID. + IOS_APP_STORE_ID = 21; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/customer_match_upload_key_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/customer_match_upload_key_type.proto new file mode 100644 index 000000000..ee31a84a7 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/customer_match_upload_key_type.proto @@ -0,0 +1,53 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "CustomerMatchUploadKeyTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Indicates what type of data are the user list's members matched from. +message CustomerMatchUploadKeyTypeEnum { + // Enum describing possible customer match upload key types. + enum CustomerMatchUploadKeyType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Members are matched from customer info such as email address, phone + // number or physical address. + CONTACT_INFO = 2; + + // Members are matched from a user id generated and assigned by the + // advertiser. + CRM_ID = 3; + + // Members are matched from mobile advertising ids. + MOBILE_ADVERTISING_ID = 4; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/customer_pay_per_conversion_eligibility_failure_reason.proto b/third_party/googleapis/google/ads/googleads/v6/enums/customer_pay_per_conversion_eligibility_failure_reason.proto new file mode 100644 index 000000000..32f3d5f0e --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/customer_pay_per_conversion_eligibility_failure_reason.proto @@ -0,0 +1,68 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "CustomerPayPerConversionEligibilityFailureReasonProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing pay per conversion eligibility failure reasons. + +// Container for enum describing reasons why a customer is not eligible to use +// PaymentMode.CONVERSIONS. +message CustomerPayPerConversionEligibilityFailureReasonEnum { + // Enum describing possible reasons a customer is not eligible to use + // PaymentMode.CONVERSIONS. + enum CustomerPayPerConversionEligibilityFailureReason { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Customer does not have enough conversions. + NOT_ENOUGH_CONVERSIONS = 2; + + // Customer's conversion lag is too high. + CONVERSION_LAG_TOO_HIGH = 3; + + // Customer uses shared budgets. + HAS_CAMPAIGN_WITH_SHARED_BUDGET = 4; + + // Customer has conversions with ConversionActionType.UPLOAD_CLICKS. + HAS_UPLOAD_CLICKS_CONVERSION = 5; + + // Customer's average daily spend is too high. + AVERAGE_DAILY_SPEND_TOO_HIGH = 6; + + // Customer's eligibility has not yet been calculated by the Google Ads + // backend. Check back soon. + ANALYSIS_NOT_COMPLETE = 7; + + // Customer is not eligible due to other reasons. + OTHER = 8; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/data_driven_model_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/data_driven_model_status.proto new file mode 100644 index 000000000..63cd23762 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/data_driven_model_status.proto @@ -0,0 +1,62 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "DataDrivenModelStatusProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing data-driven model status. + +// Container for enum indicating data driven model status. +message DataDrivenModelStatusEnum { + // Enumerates data driven model statuses. + enum DataDrivenModelStatus { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // The data driven model is available. + AVAILABLE = 2; + + // The data driven model is stale. It hasn't been updated for at least 7 + // days. It is still being used, but will become expired if it does not get + // updated for 30 days. + STALE = 3; + + // The data driven model expired. It hasn't been updated for at least 30 + // days and cannot be used. Most commonly this is because there hasn't been + // the required number of events in a recent 30-day period. + EXPIRED = 4; + + // The data driven model has never been generated. Most commonly this is + // because there has never been the required number of events in any 30-day + // period. + NEVER_GENERATED = 5; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/day_of_week.proto b/third_party/googleapis/google/ads/googleads/v6/enums/day_of_week.proto new file mode 100644 index 000000000..64486c603 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/day_of_week.proto @@ -0,0 +1,65 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "DayOfWeekProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing days of week. + +// Container for enumeration of days of the week, e.g., "Monday". +message DayOfWeekEnum { + // Enumerates days of the week, e.g., "Monday". + enum DayOfWeek { + // Not specified. + UNSPECIFIED = 0; + + // The value is unknown in this version. + UNKNOWN = 1; + + // Monday. + MONDAY = 2; + + // Tuesday. + TUESDAY = 3; + + // Wednesday. + WEDNESDAY = 4; + + // Thursday. + THURSDAY = 5; + + // Friday. + FRIDAY = 6; + + // Saturday. + SATURDAY = 7; + + // Sunday. + SUNDAY = 8; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/device.proto b/third_party/googleapis/google/ads/googleads/v6/enums/device.proto new file mode 100644 index 000000000..19e1a51c9 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/device.proto @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "DeviceProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing devices. + +// Container for enumeration of Google Ads devices available for targeting. +message DeviceEnum { + // Enumerates Google Ads devices available for targeting. + enum Device { + // Not specified. + UNSPECIFIED = 0; + + // The value is unknown in this version. + UNKNOWN = 1; + + // Mobile devices with full browsers. + MOBILE = 2; + + // Tablets with full browsers. + TABLET = 3; + + // Computers. + DESKTOP = 4; + + // Smart TVs and game consoles. + CONNECTED_TV = 6; + + // Other device types. + OTHER = 5; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/display_ad_format_setting.proto b/third_party/googleapis/google/ads/googleads/v6/enums/display_ad_format_setting.proto new file mode 100644 index 000000000..8d1958d57 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/display_ad_format_setting.proto @@ -0,0 +1,54 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "DisplayAdFormatSettingProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing display ad format settings. + +// Container for display ad format settings. +message DisplayAdFormatSettingEnum { + // Enumerates display ad format settings. + enum DisplayAdFormatSetting { + // Not specified. + UNSPECIFIED = 0; + + // The value is unknown in this version. + UNKNOWN = 1; + + // Text, image and native formats. + ALL_FORMATS = 2; + + // Text and image formats. + NON_NATIVE = 3; + + // Native format, i.e. the format rendering is controlled by the publisher + // and not by Google. + NATIVE = 4; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/display_upload_product_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/display_upload_product_type.proto new file mode 100644 index 000000000..f6024f88b --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/display_upload_product_type.proto @@ -0,0 +1,97 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "DisplayUploadProductTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing display upload product types. + +// Container for display upload product types. Product types that have the word +// "DYNAMIC" in them must be associated with a campaign that has a dynamic +// remarketing feed. See https://support.google.com/google-ads/answer/6053288 +// for more info about dynamic remarketing. Other product types are regarded +// as "static" and do not have this requirement. +message DisplayUploadProductTypeEnum { + // Enumerates display upload product types. + enum DisplayUploadProductType { + // Not specified. + UNSPECIFIED = 0; + + // The value is unknown in this version. + UNKNOWN = 1; + + // HTML5 upload ad. This product type requires the upload_media_bundle + // field in DisplayUploadAdInfo to be set. + HTML5_UPLOAD_AD = 2; + + // Dynamic HTML5 education ad. This product type requires the + // upload_media_bundle field in DisplayUploadAdInfo to be set. Can only be + // used in an education campaign. + DYNAMIC_HTML5_EDUCATION_AD = 3; + + // Dynamic HTML5 flight ad. This product type requires the + // upload_media_bundle field in DisplayUploadAdInfo to be set. Can only be + // used in a flight campaign. + DYNAMIC_HTML5_FLIGHT_AD = 4; + + // Dynamic HTML5 hotel and rental ad. This product type requires the + // upload_media_bundle field in DisplayUploadAdInfo to be set. Can only be + // used in a hotel campaign. + DYNAMIC_HTML5_HOTEL_RENTAL_AD = 5; + + // Dynamic HTML5 job ad. This product type requires the + // upload_media_bundle field in DisplayUploadAdInfo to be set. Can only be + // used in a job campaign. + DYNAMIC_HTML5_JOB_AD = 6; + + // Dynamic HTML5 local ad. This product type requires the + // upload_media_bundle field in DisplayUploadAdInfo to be set. Can only be + // used in a local campaign. + DYNAMIC_HTML5_LOCAL_AD = 7; + + // Dynamic HTML5 real estate ad. This product type requires the + // upload_media_bundle field in DisplayUploadAdInfo to be set. Can only be + // used in a real estate campaign. + DYNAMIC_HTML5_REAL_ESTATE_AD = 8; + + // Dynamic HTML5 custom ad. This product type requires the + // upload_media_bundle field in DisplayUploadAdInfo to be set. Can only be + // used in a custom campaign. + DYNAMIC_HTML5_CUSTOM_AD = 9; + + // Dynamic HTML5 travel ad. This product type requires the + // upload_media_bundle field in DisplayUploadAdInfo to be set. Can only be + // used in a travel campaign. + DYNAMIC_HTML5_TRAVEL_AD = 10; + + // Dynamic HTML5 hotel ad. This product type requires the + // upload_media_bundle field in DisplayUploadAdInfo to be set. Can only be + // used in a hotel campaign. + DYNAMIC_HTML5_HOTEL_AD = 11; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/distance_bucket.proto b/third_party/googleapis/google/ads/googleads/v6/enums/distance_bucket.proto new file mode 100644 index 000000000..277d02d55 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/distance_bucket.proto @@ -0,0 +1,127 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "DistanceBucketProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing distance buckets. + +// Container for distance buckets of a user’s distance from an advertiser’s +// location extension. +message DistanceBucketEnum { + // The distance bucket for a user’s distance from an advertiser’s location + // extension. + enum DistanceBucket { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // User was within 700m of the location. + WITHIN_700M = 2; + + // User was within 1KM of the location. + WITHIN_1KM = 3; + + // User was within 5KM of the location. + WITHIN_5KM = 4; + + // User was within 10KM of the location. + WITHIN_10KM = 5; + + // User was within 15KM of the location. + WITHIN_15KM = 6; + + // User was within 20KM of the location. + WITHIN_20KM = 7; + + // User was within 25KM of the location. + WITHIN_25KM = 8; + + // User was within 30KM of the location. + WITHIN_30KM = 9; + + // User was within 35KM of the location. + WITHIN_35KM = 10; + + // User was within 40KM of the location. + WITHIN_40KM = 11; + + // User was within 45KM of the location. + WITHIN_45KM = 12; + + // User was within 50KM of the location. + WITHIN_50KM = 13; + + // User was within 55KM of the location. + WITHIN_55KM = 14; + + // User was within 60KM of the location. + WITHIN_60KM = 15; + + // User was within 65KM of the location. + WITHIN_65KM = 16; + + // User was beyond 65KM of the location. + BEYOND_65KM = 17; + + // User was within 0.7 miles of the location. + WITHIN_0_7MILES = 18; + + // User was within 1 mile of the location. + WITHIN_1MILE = 19; + + // User was within 5 miles of the location. + WITHIN_5MILES = 20; + + // User was within 10 miles of the location. + WITHIN_10MILES = 21; + + // User was within 15 miles of the location. + WITHIN_15MILES = 22; + + // User was within 20 miles of the location. + WITHIN_20MILES = 23; + + // User was within 25 miles of the location. + WITHIN_25MILES = 24; + + // User was within 30 miles of the location. + WITHIN_30MILES = 25; + + // User was within 35 miles of the location. + WITHIN_35MILES = 26; + + // User was within 40 miles of the location. + WITHIN_40MILES = 27; + + // User was beyond 40 miles of the location. + BEYOND_40MILES = 28; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/dsa_page_feed_criterion_field.proto b/third_party/googleapis/google/ads/googleads/v6/enums/dsa_page_feed_criterion_field.proto new file mode 100644 index 000000000..601a150c0 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/dsa_page_feed_criterion_field.proto @@ -0,0 +1,51 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "DsaPageFeedCriterionFieldProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing Dynamic Search Ad Page Feed criterion fields. + +// Values for Dynamic Search Ad Page Feed criterion fields. +message DsaPageFeedCriterionFieldEnum { + // Possible values for Dynamic Search Ad Page Feed criterion fields. + enum DsaPageFeedCriterionField { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Data Type: URL or URL_LIST. URL of the web page you want to target. + PAGE_URL = 2; + + // Data Type: STRING_LIST. The labels that will help you target ads within + // your page feed. + LABEL = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/education_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v6/enums/education_placeholder_field.proto new file mode 100644 index 000000000..13d9cf8cc --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/education_placeholder_field.proto @@ -0,0 +1,111 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "EducationPlaceholderFieldProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing Education placeholder fields. + +// Values for Education placeholder fields. +// For more information about dynamic remarketing feeds, see +// https://support.google.com/google-ads/answer/6053288. +message EducationPlaceholderFieldEnum { + // Possible values for Education placeholder fields. + enum EducationPlaceholderField { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Data Type: STRING. Required. Combination of PROGRAM ID and LOCATION ID + // must be unique per offer. + PROGRAM_ID = 2; + + // Data Type: STRING. Combination of PROGRAM ID and LOCATION ID must be + // unique per offer. + LOCATION_ID = 3; + + // Data Type: STRING. Required. Main headline with program name to be shown + // in dynamic ad. + PROGRAM_NAME = 4; + + // Data Type: STRING. Area of study that can be shown in dynamic ad. + AREA_OF_STUDY = 5; + + // Data Type: STRING. Description of program that can be shown in dynamic + // ad. + PROGRAM_DESCRIPTION = 6; + + // Data Type: STRING. Name of school that can be shown in dynamic ad. + SCHOOL_NAME = 7; + + // Data Type: STRING. Complete school address, including postal code. + ADDRESS = 8; + + // Data Type: URL. Image to be displayed in ads. + THUMBNAIL_IMAGE_URL = 9; + + // Data Type: URL. Alternative hosted file of image to be used in the ad. + ALTERNATIVE_THUMBNAIL_IMAGE_URL = 10; + + // Data Type: URL_LIST. Required. Final URLs to be used in ad when using + // Upgraded URLs; the more specific the better (e.g. the individual URL of a + // specific program and its location). + FINAL_URLS = 11; + + // Data Type: URL_LIST. Final mobile URLs for the ad when using Upgraded + // URLs. + FINAL_MOBILE_URLS = 12; + + // Data Type: URL. Tracking template for the ad when using Upgraded URLs. + TRACKING_URL = 13; + + // Data Type: STRING_LIST. Keywords used for product retrieval. + CONTEXTUAL_KEYWORDS = 14; + + // Data Type: STRING. Android app link. Must be formatted as: + // android-app://{package_id}/{scheme}/{host_path}. + // The components are defined as follows: + // package_id: app ID as specified in Google Play. + // scheme: the scheme to pass to the application. Can be HTTP, or a custom + // scheme. + // host_path: identifies the specific content within your application. + ANDROID_APP_LINK = 15; + + // Data Type: STRING_LIST. List of recommended program IDs to show together + // with this item. + SIMILAR_PROGRAM_IDS = 16; + + // Data Type: STRING. iOS app link. + IOS_APP_LINK = 17; + + // Data Type: INT64. iOS app store ID. + IOS_APP_STORE_ID = 18; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/extension_setting_device.proto b/third_party/googleapis/google/ads/googleads/v6/enums/extension_setting_device.proto new file mode 100644 index 000000000..d33de73e6 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/extension_setting_device.proto @@ -0,0 +1,52 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "ExtensionSettingDeviceProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing extension setting device type. + +// Container for enum describing extension setting device types. +message ExtensionSettingDeviceEnum { + // Possible device types for an extension setting. + enum ExtensionSettingDevice { + // Not specified. + UNSPECIFIED = 0; + + // The value is unknown in this version. + UNKNOWN = 1; + + // Mobile. The extensions in the extension setting will only serve on + // mobile devices. + MOBILE = 2; + + // Desktop. The extensions in the extension setting will only serve on + // desktop devices. + DESKTOP = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/extension_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/extension_type.proto new file mode 100644 index 000000000..6c1f8dcf7 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/extension_type.proto @@ -0,0 +1,84 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "ExtensionTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing extension type. + +// Container for enum describing possible data types for an extension in an +// extension setting. +message ExtensionTypeEnum { + // Possible data types for an extension in an extension setting. + enum ExtensionType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // None. + NONE = 2; + + // App. + APP = 3; + + // Call. + CALL = 4; + + // Callout. + CALLOUT = 5; + + // Message. + MESSAGE = 6; + + // Price. + PRICE = 7; + + // Promotion. + PROMOTION = 8; + + // Sitelink. + SITELINK = 10; + + // Structured snippet. + STRUCTURED_SNIPPET = 11; + + // Location. + LOCATION = 12; + + // Affiliate location. + AFFILIATE_LOCATION = 13; + + // Hotel callout + HOTEL_CALLOUT = 15; + + // Image. + IMAGE = 16; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/external_conversion_source.proto b/third_party/googleapis/google/ads/googleads/v6/enums/external_conversion_source.proto new file mode 100644 index 000000000..76bbfa622 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/external_conversion_source.proto @@ -0,0 +1,149 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "ExternalConversionSourceProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Container for enum describing the external conversion source that is +// associated with a ConversionAction. +message ExternalConversionSourceEnum { + // The external conversion source that is associated with a ConversionAction. + enum ExternalConversionSource { + // Not specified. + UNSPECIFIED = 0; + + // Represents value unknown in this version. + UNKNOWN = 1; + + // Conversion that occurs when a user navigates to a particular webpage + // after viewing an ad; Displayed in Google Ads UI as 'Website'. + WEBPAGE = 2; + + // Conversion that comes from linked Google Analytics goal or transaction; + // Displayed in Google Ads UI as 'Analytics'. + ANALYTICS = 3; + + // Website conversion that is uploaded through ConversionUploadService; + // Displayed in Google Ads UI as 'Import from clicks'. + UPLOAD = 4; + + // Conversion that occurs when a user clicks on a call extension directly on + // an ad; Displayed in Google Ads UI as 'Calls from ads'. + AD_CALL_METRICS = 5; + + // Conversion that occurs when a user calls a dynamically-generated phone + // number (by installed javascript) from an advertiser's website after + // clicking on an ad; Displayed in Google Ads UI as 'Calls from website'. + WEBSITE_CALL_METRICS = 6; + + // Conversion that occurs when a user visits an advertiser's retail store + // after clicking on a Google ad; + // Displayed in Google Ads UI as 'Store visits'. + STORE_VISITS = 7; + + // Conversion that occurs when a user takes an in-app action such as a + // purchase in an Android app; + // Displayed in Google Ads UI as 'Android in-app action'. + ANDROID_IN_APP = 8; + + // Conversion that occurs when a user takes an in-app action such as a + // purchase in an iOS app; + // Displayed in Google Ads UI as 'iOS in-app action'. + IOS_IN_APP = 9; + + // Conversion that occurs when a user opens an iOS app for the first time; + // Displayed in Google Ads UI as 'iOS app install (first open)'. + IOS_FIRST_OPEN = 10; + + // Legacy app conversions that do not have an AppPlatform provided; + // Displayed in Google Ads UI as 'Mobile app'. + APP_UNSPECIFIED = 11; + + // Conversion that occurs when a user opens an Android app for the first + // time; Displayed in Google Ads UI as 'Android app install (first open)'. + ANDROID_FIRST_OPEN = 12; + + // Call conversion that is uploaded through ConversionUploadService; + // Displayed in Google Ads UI as 'Import from calls'. + UPLOAD_CALLS = 13; + + // Conversion that comes from a linked Firebase event; + // Displayed in Google Ads UI as 'Firebase'. + FIREBASE = 14; + + // Conversion that occurs when a user clicks on a mobile phone number; + // Displayed in Google Ads UI as 'Phone number clicks'. + CLICK_TO_CALL = 15; + + // Conversion that comes from Salesforce; + // Displayed in Google Ads UI as 'Salesforce.com'. + SALESFORCE = 16; + + // Conversion that comes from in-store purchases recorded by CRM; + // Displayed in Google Ads UI as 'Store sales (data partner)'. + STORE_SALES_CRM = 17; + + // Conversion that comes from in-store purchases from payment network; + // Displayed in Google Ads UI as 'Store sales (payment network)'. + STORE_SALES_PAYMENT_NETWORK = 18; + + // Codeless Google Play conversion; + // Displayed in Google Ads UI as 'Google Play'. + GOOGLE_PLAY = 19; + + // Conversion that comes from a linked third-party app analytics event; + // Displayed in Google Ads UI as 'Third-party app analytics'. + THIRD_PARTY_APP_ANALYTICS = 20; + + // Conversion that is controlled by Google Attribution. + GOOGLE_ATTRIBUTION = 21; + + // Store Sales conversion based on first-party or third-party merchant data + // uploads. Displayed in Google Ads UI as 'Store sales (direct upload)'. + STORE_SALES_DIRECT_UPLOAD = 23; + + // Store Sales conversion based on first-party or third-party merchant + // data uploads and/or from in-store purchases using cards from payment + // networks. Displayed in Google Ads UI as 'Store sales'. + STORE_SALES = 24; + + // Conversions imported from Search Ads 360 Floodlight data. + SEARCH_ADS_360 = 25; + + // Conversions that track local actions from Google's products and services + // after interacting with an ad. + GOOGLE_HOSTED = 27; + + // Conversions reported by Floodlight tags. + FLOODLIGHT = 29; + + // Conversions that come from Google Analytics specifically for Search Ads + // 360. Displayed in Google Ads UI as Analytics (SA360). + ANALYTICS_SEARCH_ADS_360 = 31; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/feed_attribute_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/feed_attribute_type.proto new file mode 100644 index 000000000..6caa11a84 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/feed_attribute_type.proto @@ -0,0 +1,83 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "FeedAttributeTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing feed attribute type. + +// Container for enum describing possible data types for a feed attribute. +message FeedAttributeTypeEnum { + // Possible data types for a feed attribute. + enum FeedAttributeType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Int64. + INT64 = 2; + + // Double. + DOUBLE = 3; + + // String. + STRING = 4; + + // Boolean. + BOOLEAN = 5; + + // Url. + URL = 6; + + // Datetime. + DATE_TIME = 7; + + // Int64 list. + INT64_LIST = 8; + + // Double (8 bytes) list. + DOUBLE_LIST = 9; + + // String list. + STRING_LIST = 10; + + // Boolean list. + BOOLEAN_LIST = 11; + + // Url list. + URL_LIST = 12; + + // Datetime list. + DATE_TIME_LIST = 13; + + // Price. + PRICE = 14; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/feed_item_quality_approval_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/feed_item_quality_approval_status.proto new file mode 100644 index 000000000..71b767860 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/feed_item_quality_approval_status.proto @@ -0,0 +1,52 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "FeedItemQualityApprovalStatusProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing feed item quality evaluation approval statuses. + +// Container for enum describing possible quality evaluation approval statuses +// of a feed item. +message FeedItemQualityApprovalStatusEnum { + // The possible quality evaluation approval statuses of a feed item. + enum FeedItemQualityApprovalStatus { + // No value has been specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Meets all quality expectations. + APPROVED = 2; + + // Does not meet some quality expectations. The specific reason is found in + // the quality_disapproval_reasons field. + DISAPPROVED = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/feed_item_quality_disapproval_reason.proto b/third_party/googleapis/google/ads/googleads/v6/enums/feed_item_quality_disapproval_reason.proto new file mode 100644 index 000000000..b4a34cba1 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/feed_item_quality_disapproval_reason.proto @@ -0,0 +1,99 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "FeedItemQualityDisapprovalReasonProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing feed item quality disapproval reasons. + +// Container for enum describing possible quality evaluation disapproval reasons +// of a feed item. +message FeedItemQualityDisapprovalReasonEnum { + // The possible quality evaluation disapproval reasons of a feed item. + enum FeedItemQualityDisapprovalReason { + // No value has been specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Price contains repetitive headers. + PRICE_TABLE_REPETITIVE_HEADERS = 2; + + // Price contains repetitive description. + PRICE_TABLE_REPETITIVE_DESCRIPTION = 3; + + // Price contains inconsistent items. + PRICE_TABLE_INCONSISTENT_ROWS = 4; + + // Price contains qualifiers in description. + PRICE_DESCRIPTION_HAS_PRICE_QUALIFIERS = 5; + + // Price contains an unsupported language. + PRICE_UNSUPPORTED_LANGUAGE = 6; + + // Price item header is not relevant to the price type. + PRICE_TABLE_ROW_HEADER_TABLE_TYPE_MISMATCH = 7; + + // Price item header has promotional text. + PRICE_TABLE_ROW_HEADER_HAS_PROMOTIONAL_TEXT = 8; + + // Price item description is not relevant to the item header. + PRICE_TABLE_ROW_DESCRIPTION_NOT_RELEVANT = 9; + + // Price item description contains promotional text. + PRICE_TABLE_ROW_DESCRIPTION_HAS_PROMOTIONAL_TEXT = 10; + + // Price item header and description are repetitive. + PRICE_TABLE_ROW_HEADER_DESCRIPTION_REPETITIVE = 11; + + // Price item is in a foreign language, nonsense, or can't be rated. + PRICE_TABLE_ROW_UNRATEABLE = 12; + + // Price item price is invalid or inaccurate. + PRICE_TABLE_ROW_PRICE_INVALID = 13; + + // Price item URL is invalid or irrelevant. + PRICE_TABLE_ROW_URL_INVALID = 14; + + // Price item header or description has price. + PRICE_HEADER_OR_DESCRIPTION_HAS_PRICE = 15; + + // Structured snippet values do not match the header. + STRUCTURED_SNIPPETS_HEADER_POLICY_VIOLATED = 16; + + // Structured snippet values are repeated. + STRUCTURED_SNIPPETS_REPEATED_VALUES = 17; + + // Structured snippet values violate editorial guidelines like punctuation. + STRUCTURED_SNIPPETS_EDITORIAL_GUIDELINES = 18; + + // Structured snippet contain promotional text. + STRUCTURED_SNIPPETS_HAS_PROMOTIONAL_TEXT = 19; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/feed_item_set_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/feed_item_set_status.proto new file mode 100644 index 000000000..7209b4ec8 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/feed_item_set_status.proto @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "FeedItemSetStatusProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing feed item set status. + +// Container for enum describing possible statuses of a feed item set. +message FeedItemSetStatusEnum { + // Possible statuses of a feed item set. + enum FeedItemSetStatus { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Feed item set is enabled. + ENABLED = 2; + + // Feed item set has been removed. + REMOVED = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/feed_item_set_string_filter_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/feed_item_set_string_filter_type.proto new file mode 100644 index 000000000..98c1986f0 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/feed_item_set_string_filter_type.proto @@ -0,0 +1,45 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "FeedItemSetStringFilterTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// The type of string matching to be used for a dynamic FeedItemSet filter. +message FeedItemSetStringFilterTypeEnum { + // describe the possible types for a FeedItemSetStringFilter. + enum FeedItemSetStringFilterType { + // Not specified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // The dynamic set filter will use exact string matching. + EXACT = 2; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/feed_item_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/feed_item_status.proto new file mode 100644 index 000000000..1c9b5ef80 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/feed_item_status.proto @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "FeedItemStatusProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing feed item status. + +// Container for enum describing possible statuses of a feed item. +message FeedItemStatusEnum { + // Possible statuses of a feed item. + enum FeedItemStatus { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Feed item is enabled. + ENABLED = 2; + + // Feed item has been removed. + REMOVED = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/feed_item_target_device.proto b/third_party/googleapis/google/ads/googleads/v6/enums/feed_item_target_device.proto new file mode 100644 index 000000000..43500b566 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/feed_item_target_device.proto @@ -0,0 +1,48 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "FeedItemTargetDeviceProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing feed item target device type. + +// Container for enum describing possible data types for a feed item target +// device. +message FeedItemTargetDeviceEnum { + // Possible data types for a feed item target device. + enum FeedItemTargetDevice { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Mobile. + MOBILE = 2; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/feed_item_target_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/feed_item_target_status.proto similarity index 79% rename from third_party/googleapis/google/ads/googleads/v3/enums/feed_item_target_status.proto rename to third_party/googleapis/google/ads/googleads/v6/enums/feed_item_target_status.proto index 45cc85fc2..25ed69de2 100644 --- a/third_party/googleapis/google/ads/googleads/v3/enums/feed_item_target_status.proto +++ b/third_party/googleapis/google/ads/googleads/v6/enums/feed_item_target_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -14,18 +14,18 @@ syntax = "proto3"; -package google.ads.googleads.v3.enums; +package google.ads.googleads.v6.enums; import "google/api/annotations.proto"; -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; option java_multiple_files = true; option java_outer_classname = "FeedItemTargetStatusProto"; -option java_package = "com.google.ads.googleads.v3.enums"; +option java_package = "com.google.ads.googleads.v6.enums"; option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; // Proto file describing feed item target status. diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/feed_item_target_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/feed_item_target_type.proto new file mode 100644 index 000000000..4e6184364 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/feed_item_target_type.proto @@ -0,0 +1,53 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "FeedItemTargetTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing feed item target type status. + +// Container for enum describing possible types of a feed item target. +message FeedItemTargetTypeEnum { + // Possible type of a feed item target. + enum FeedItemTargetType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Feed item targets a campaign. + CAMPAIGN = 2; + + // Feed item targets an ad group. + AD_GROUP = 3; + + // Feed item targets a criterion. + CRITERION = 4; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/feed_item_validation_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/feed_item_validation_status.proto new file mode 100644 index 000000000..fb3782d8b --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/feed_item_validation_status.proto @@ -0,0 +1,53 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "FeedItemValidationStatusProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing feed item validation statuses. + +// Container for enum describing possible validation statuses of a feed item. +message FeedItemValidationStatusEnum { + // The possible validation statuses of a feed item. + enum FeedItemValidationStatus { + // No value has been specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Validation pending. + PENDING = 2; + + // An error was found. + INVALID = 3; + + // Feed item is semantically well-formed. + VALID = 4; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/feed_link_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/feed_link_status.proto new file mode 100644 index 000000000..90dee420c --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/feed_link_status.proto @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "FeedLinkStatusProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing status of a feed link. + +// Container for an enum describing possible statuses of a feed link. +message FeedLinkStatusEnum { + // Possible statuses of a feed link. + enum FeedLinkStatus { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Feed link is enabled. + ENABLED = 2; + + // Feed link has been removed. + REMOVED = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/feed_mapping_criterion_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/feed_mapping_criterion_type.proto new file mode 100644 index 000000000..34874ac4a --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/feed_mapping_criterion_type.proto @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "FeedMappingCriterionTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing criterion types for feed mappings. + +// Container for enum describing possible criterion types for a feed mapping. +message FeedMappingCriterionTypeEnum { + // Possible placeholder types for a feed mapping. + enum FeedMappingCriterionType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Allows campaign targeting at locations within a location feed. + LOCATION_EXTENSION_TARGETING = 4; + + // Allows url targeting for your dynamic search ads within a page feed. + DSA_PAGE_FEED = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/feed_mapping_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/feed_mapping_status.proto new file mode 100644 index 000000000..8126d2f99 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/feed_mapping_status.proto @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "FeedMappingStatusProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing feed mapping status. + +// Container for enum describing possible statuses of a feed mapping. +message FeedMappingStatusEnum { + // Possible statuses of a feed mapping. + enum FeedMappingStatus { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Feed mapping is enabled. + ENABLED = 2; + + // Feed mapping has been removed. + REMOVED = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/feed_origin.proto b/third_party/googleapis/google/ads/googleads/v6/enums/feed_origin.proto new file mode 100644 index 000000000..0606bf8d9 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/feed_origin.proto @@ -0,0 +1,53 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "FeedOriginProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing feed origin. + +// Container for enum describing possible values for a feed origin. +message FeedOriginEnum { + // Possible values for a feed origin. + enum FeedOrigin { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // The FeedAttributes for this Feed are managed by the + // user. Users can add FeedAttributes to this Feed. + USER = 2; + + // The FeedAttributes for an GOOGLE Feed are created by Google. A feed of + // this type is maintained by Google and will have the correct attributes + // for the placeholder type of the feed. + GOOGLE = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/feed_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/feed_status.proto new file mode 100644 index 000000000..19c56b3a8 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/feed_status.proto @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "FeedStatusProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing feed status. + +// Container for enum describing possible statuses of a feed. +message FeedStatusEnum { + // Possible statuses of a feed. + enum FeedStatus { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Feed is enabled. + ENABLED = 2; + + // Feed has been removed. + REMOVED = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/flight_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v6/enums/flight_placeholder_field.proto new file mode 100644 index 000000000..1316280ca --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/flight_placeholder_field.proto @@ -0,0 +1,118 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "FlightsPlaceholderFieldProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing Flight placeholder fields. + +// Values for Flight placeholder fields. +// For more information about dynamic remarketing feeds, see +// https://support.google.com/google-ads/answer/6053288. +message FlightPlaceholderFieldEnum { + // Possible values for Flight placeholder fields. + enum FlightPlaceholderField { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Data Type: STRING. Required. Destination id. Example: PAR, LON. + // For feed items that only have destination id, destination id must be a + // unique key. For feed items that have both destination id and origin id, + // then the combination must be a unique key. + DESTINATION_ID = 2; + + // Data Type: STRING. Origin id. Example: PAR, LON. + // Optional. Combination of destination id and origin id must be unique per + // offer. + ORIGIN_ID = 3; + + // Data Type: STRING. Required. Main headline with product name to be shown + // in dynamic ad. + FLIGHT_DESCRIPTION = 4; + + // Data Type: STRING. Shorter names are recommended. + ORIGIN_NAME = 5; + + // Data Type: STRING. Shorter names are recommended. + DESTINATION_NAME = 6; + + // Data Type: STRING. Price to be shown in the ad. + // Example: "100.00 USD" + FLIGHT_PRICE = 7; + + // Data Type: STRING. Formatted price to be shown in the ad. + // Example: "Starting at $100.00 USD", "$80 - $100" + FORMATTED_PRICE = 8; + + // Data Type: STRING. Sale price to be shown in the ad. + // Example: "80.00 USD" + FLIGHT_SALE_PRICE = 9; + + // Data Type: STRING. Formatted sale price to be shown in the ad. + // Example: "On sale for $80.00", "$60 - $80" + FORMATTED_SALE_PRICE = 10; + + // Data Type: URL. Image to be displayed in the ad. + IMAGE_URL = 11; + + // Data Type: URL_LIST. Required. Final URLs for the ad when using Upgraded + // URLs. User will be redirected to these URLs when they click on an ad, or + // when they click on a specific flight for ads that show multiple + // flights. + FINAL_URLS = 12; + + // Data Type: URL_LIST. Final mobile URLs for the ad when using Upgraded + // URLs. + FINAL_MOBILE_URLS = 13; + + // Data Type: URL. Tracking template for the ad when using Upgraded URLs. + TRACKING_URL = 14; + + // Data Type: STRING. Android app link. Must be formatted as: + // android-app://{package_id}/{scheme}/{host_path}. + // The components are defined as follows: + // package_id: app ID as specified in Google Play. + // scheme: the scheme to pass to the application. Can be HTTP, or a custom + // scheme. + // host_path: identifies the specific content within your application. + ANDROID_APP_LINK = 15; + + // Data Type: STRING_LIST. List of recommended destination IDs to show + // together with this item. + SIMILAR_DESTINATION_IDS = 16; + + // Data Type: STRING. iOS app link. + IOS_APP_LINK = 17; + + // Data Type: INT64. iOS app store ID. + IOS_APP_STORE_ID = 18; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/frequency_cap_event_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/frequency_cap_event_type.proto new file mode 100644 index 000000000..a74538b46 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/frequency_cap_event_type.proto @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "FrequencyCapEventTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing frequency caps. + +// Container for enum describing the type of event that the cap applies to. +message FrequencyCapEventTypeEnum { + // The type of event that the cap applies to (e.g. impression). + enum FrequencyCapEventType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // The cap applies on ad impressions. + IMPRESSION = 2; + + // The cap applies on video ad views. + VIDEO_VIEW = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/frequency_cap_level.proto b/third_party/googleapis/google/ads/googleads/v6/enums/frequency_cap_level.proto new file mode 100644 index 000000000..1926d0f99 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/frequency_cap_level.proto @@ -0,0 +1,54 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "FrequencyCapLevelProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing frequency caps. + +// Container for enum describing the level on which the cap is to be applied. +message FrequencyCapLevelEnum { + // The level on which the cap is to be applied (e.g ad group ad, ad group). + // Cap is applied to all the resources of this level. + enum FrequencyCapLevel { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // The cap is applied at the ad group ad level. + AD_GROUP_AD = 2; + + // The cap is applied at the ad group level. + AD_GROUP = 3; + + // The cap is applied at the campaign level. + CAMPAIGN = 4; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/frequency_cap_time_unit.proto b/third_party/googleapis/google/ads/googleads/v6/enums/frequency_cap_time_unit.proto new file mode 100644 index 000000000..61a66fa8d --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/frequency_cap_time_unit.proto @@ -0,0 +1,53 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "FrequencyCapTimeUnitProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing frequency caps. + +// Container for enum describing the unit of time the cap is defined at. +message FrequencyCapTimeUnitEnum { + // Unit of time the cap is defined at (e.g. day, week). + enum FrequencyCapTimeUnit { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // The cap would define limit per one day. + DAY = 2; + + // The cap would define limit per one week. + WEEK = 3; + + // The cap would define limit per one month. + MONTH = 4; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/gender_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/gender_type.proto new file mode 100644 index 000000000..0750992d7 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/gender_type.proto @@ -0,0 +1,53 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "GenderTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing gender types. + +// Container for enum describing the type of demographic genders. +message GenderTypeEnum { + // The type of demographic genders (e.g. female). + enum GenderType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Male. + MALE = 10; + + // Female. + FEMALE = 11; + + // Undetermined gender. + UNDETERMINED = 20; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/geo_target_constant_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/geo_target_constant_status.proto new file mode 100644 index 000000000..60f928661 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/geo_target_constant_status.proto @@ -0,0 +1,52 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "GeoTargetConstantStatusProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing geo target constant statuses. + +// Container for describing the status of a geo target constant. +message GeoTargetConstantStatusEnum { + // The possible statuses of a geo target constant. + enum GeoTargetConstantStatus { + // No value has been specified. + UNSPECIFIED = 0; + + // The received value is not known in this version. + // + // This is a response-only value. + UNKNOWN = 1; + + // The geo target constant is valid. + ENABLED = 2; + + // The geo target constant is obsolete and will be removed. + REMOVAL_PLANNED = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/geo_targeting_restriction.proto b/third_party/googleapis/google/ads/googleads/v6/enums/geo_targeting_restriction.proto new file mode 100644 index 000000000..4a6ac69f0 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/geo_targeting_restriction.proto @@ -0,0 +1,49 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "GeoTargetingRestrictionProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing GeoTargetingRestriction. + +// Message describing feed item geo targeting restriction. +message GeoTargetingRestrictionEnum { + // A restriction used to determine if the request context's + // geo should be matched. + enum GeoTargetingRestriction { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Indicates that request context should match the physical location of + // the user. + LOCATION_OF_PRESENCE = 2; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/geo_targeting_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/geo_targeting_type.proto new file mode 100644 index 000000000..9c20aeed8 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/geo_targeting_type.proto @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "GeoTargetingTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing geo targeting types. + +// Container for enum describing possible geo targeting types. +message GeoTargetingTypeEnum { + // The possible geo targeting types. + enum GeoTargetingType { + // Not specified. + UNSPECIFIED = 0; + + // The value is unknown in this version. + UNKNOWN = 1; + + // Location the user is interested in while making the query. + AREA_OF_INTEREST = 2; + + // Location of the user issuing the query. + LOCATION_OF_PRESENCE = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/google_ads_field_category.proto b/third_party/googleapis/google/ads/googleads/v6/enums/google_ads_field_category.proto new file mode 100644 index 000000000..5affb8db9 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/google_ads_field_category.proto @@ -0,0 +1,61 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "GoogleAdsFieldCategoryProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing GoogleAdsField categories + +// Container for enum that determines if the described artifact is a resource +// or a field, and if it is a field, when it segments search queries. +message GoogleAdsFieldCategoryEnum { + // The category of the artifact. + enum GoogleAdsFieldCategory { + // Unspecified + UNSPECIFIED = 0; + + // Unknown + UNKNOWN = 1; + + // The described artifact is a resource. + RESOURCE = 2; + + // The described artifact is a field and is an attribute of a resource. + // Including a resource attribute field in a query may segment the query if + // the resource to which it is attributed segments the resource found in + // the FROM clause. + ATTRIBUTE = 3; + + // The described artifact is a field and always segments search queries. + SEGMENT = 5; + + // The described artifact is a field and is a metric. It never segments + // search queries. + METRIC = 6; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/google_ads_field_data_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/google_ads_field_data_type.proto new file mode 100644 index 000000000..f59c6ca60 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/google_ads_field_data_type.proto @@ -0,0 +1,102 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "GoogleAdsFieldDataTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing GoogleAdsField data types + +// Container holding the various data types. +message GoogleAdsFieldDataTypeEnum { + // These are the various types a GoogleAdsService artifact may take on. + enum GoogleAdsFieldDataType { + // Unspecified + UNSPECIFIED = 0; + + // Unknown + UNKNOWN = 1; + + // Maps to google.protobuf.BoolValue + // + // Applicable operators: =, != + BOOLEAN = 2; + + // Maps to google.protobuf.StringValue. It can be compared using the set of + // operators specific to dates however. + // + // Applicable operators: =, <, >, <=, >=, BETWEEN, DURING, and IN + DATE = 3; + + // Maps to google.protobuf.DoubleValue + // + // Applicable operators: =, !=, <, >, IN, NOT IN + DOUBLE = 4; + + // Maps to an enum. It's specific definition can be found at type_url. + // + // Applicable operators: =, !=, IN, NOT IN + ENUM = 5; + + // Maps to google.protobuf.FloatValue + // + // Applicable operators: =, !=, <, >, IN, NOT IN + FLOAT = 6; + + // Maps to google.protobuf.Int32Value + // + // Applicable operators: =, !=, <, >, <=, >=, BETWEEN, IN, NOT IN + INT32 = 7; + + // Maps to google.protobuf.Int64Value + // + // Applicable operators: =, !=, <, >, <=, >=, BETWEEN, IN, NOT IN + INT64 = 8; + + // Maps to a protocol buffer message type. The data type's details can be + // found in type_url. + // + // No operators work with MESSAGE fields. + MESSAGE = 9; + + // Maps to google.protobuf.StringValue. Represents the resource name + // (unique id) of a resource or one of its foreign keys. + // + // No operators work with RESOURCE_NAME fields. + RESOURCE_NAME = 10; + + // Maps to google.protobuf.StringValue. + // + // Applicable operators: =, !=, LIKE, NOT LIKE, IN, NOT IN + STRING = 11; + + // Maps to google.protobuf.UInt64Value + // + // Applicable operators: =, !=, <, >, <=, >=, BETWEEN, IN, NOT IN + UINT64 = 12; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/google_voice_call_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/google_voice_call_status.proto new file mode 100644 index 000000000..c686add15 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/google_voice_call_status.proto @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "GoogleVoiceCallStatusProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing google voice call status. + +// Container for enum describing possible statuses of a google voice call. +message GoogleVoiceCallStatusEnum { + // Possible statuses of a google voice call. + enum GoogleVoiceCallStatus { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // The call was missed. + MISSED = 2; + + // The call was received. + RECEIVED = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/hotel_date_selection_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/hotel_date_selection_type.proto new file mode 100644 index 000000000..7f54c9544 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/hotel_date_selection_type.proto @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "HotelDateSelectionTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing hotel date selection types. + +// Container for enum describing possible hotel date selection types +message HotelDateSelectionTypeEnum { + // Enum describing possible hotel date selection types. + enum HotelDateSelectionType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Dates selected by default. + DEFAULT_SELECTION = 50; + + // Dates selected by the user. + USER_SELECTED = 51; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/hotel_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v6/enums/hotel_placeholder_field.proto new file mode 100644 index 000000000..f3f99ea57 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/hotel_placeholder_field.proto @@ -0,0 +1,124 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "HotelsPlaceholderFieldProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing Hotel placeholder fields. + +// Values for Hotel placeholder fields. +// For more information about dynamic remarketing feeds, see +// https://support.google.com/google-ads/answer/6053288. +message HotelPlaceholderFieldEnum { + // Possible values for Hotel placeholder fields. + enum HotelPlaceholderField { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Data Type: STRING. Required. Unique ID. + PROPERTY_ID = 2; + + // Data Type: STRING. Required. Main headline with property name to be shown + // in dynamic ad. + PROPERTY_NAME = 3; + + // Data Type: STRING. Name of destination to be shown in dynamic ad. + DESTINATION_NAME = 4; + + // Data Type: STRING. Description of destination to be shown in dynamic ad. + DESCRIPTION = 5; + + // Data Type: STRING. Complete property address, including postal code. + ADDRESS = 6; + + // Data Type: STRING. Price to be shown in the ad. + // Example: "100.00 USD" + PRICE = 7; + + // Data Type: STRING. Formatted price to be shown in the ad. + // Example: "Starting at $100.00 USD", "$80 - $100" + FORMATTED_PRICE = 8; + + // Data Type: STRING. Sale price to be shown in the ad. + // Example: "80.00 USD" + SALE_PRICE = 9; + + // Data Type: STRING. Formatted sale price to be shown in the ad. + // Example: "On sale for $80.00", "$60 - $80" + FORMATTED_SALE_PRICE = 10; + + // Data Type: URL. Image to be displayed in the ad. + IMAGE_URL = 11; + + // Data Type: STRING. Category of property used to group like items together + // for recommendation engine. + CATEGORY = 12; + + // Data Type: INT64. Star rating (1 to 5) used to group like items + // together for recommendation engine. + STAR_RATING = 13; + + // Data Type: STRING_LIST. Keywords used for product retrieval. + CONTEXTUAL_KEYWORDS = 14; + + // Data Type: URL_LIST. Required. Final URLs for the ad when using Upgraded + // URLs. User will be redirected to these URLs when they click on an ad, or + // when they click on a specific flight for ads that show multiple + // flights. + FINAL_URLS = 15; + + // Data Type: URL_LIST. Final mobile URLs for the ad when using Upgraded + // URLs. + FINAL_MOBILE_URLS = 16; + + // Data Type: URL. Tracking template for the ad when using Upgraded URLs. + TRACKING_URL = 17; + + // Data Type: STRING. Android app link. Must be formatted as: + // android-app://{package_id}/{scheme}/{host_path}. + // The components are defined as follows: + // package_id: app ID as specified in Google Play. + // scheme: the scheme to pass to the application. Can be HTTP, or a custom + // scheme. + // host_path: identifies the specific content within your application. + ANDROID_APP_LINK = 18; + + // Data Type: STRING_LIST. List of recommended property IDs to show together + // with this item. + SIMILAR_PROPERTY_IDS = 19; + + // Data Type: STRING. iOS app link. + IOS_APP_LINK = 20; + + // Data Type: INT64. iOS app store ID. + IOS_APP_STORE_ID = 21; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/hotel_price_bucket.proto b/third_party/googleapis/google/ads/googleads/v6/enums/hotel_price_bucket.proto new file mode 100644 index 000000000..085d29d0a --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/hotel_price_bucket.proto @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "HotelPriceBucketProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing hotel price buckets. + +// Container for enum describing hotel price bucket for a hotel itinerary. +message HotelPriceBucketEnum { + // Enum describing possible hotel price buckets. + enum HotelPriceBucket { + // Not specified. + UNSPECIFIED = 0; + + // The value is unknown in this version. + UNKNOWN = 1; + + // Uniquely lowest price. Partner has the lowest price, and no other + // partners are within a small variance of that price. + LOWEST_UNIQUE = 2; + + // Tied for lowest price. Partner is within a small variance of the lowest + // price. + LOWEST_TIED = 3; + + // Not lowest price. Partner is not within a small variance of the lowest + // price. + NOT_LOWEST = 4; + + // Partner was the only one shown. + ONLY_PARTNER_SHOWN = 5; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/hotel_rate_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/hotel_rate_type.proto new file mode 100644 index 000000000..d9ca241a4 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/hotel_rate_type.proto @@ -0,0 +1,62 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "HotelRateTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing hotel rate types. + +// Container for enum describing possible hotel rate types. +message HotelRateTypeEnum { + // Enum describing possible hotel rate types. + enum HotelRateType { + // Not specified. + UNSPECIFIED = 0; + + // The value is unknown in this version. + UNKNOWN = 1; + + // Rate type information is unavailable. + UNAVAILABLE = 2; + + // Rates available to everyone. + PUBLIC_RATE = 3; + + // A membership program rate is available and satisfies basic requirements + // like having a public rate available. UI treatment will strikethrough the + // public rate and indicate that a discount is available to the user. For + // more on Qualified Rates, visit + // https://developers.google.com/hotels/hotel-ads/dev-guide/qualified-rates + QUALIFIED_RATE = 4; + + // Rates available to users that satisfy some eligibility criteria. e.g. + // all signed-in users, 20% of mobile users, all mobile users in Canada, + // etc. + PRIVATE_RATE = 5; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/image_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v6/enums/image_placeholder_field.proto new file mode 100644 index 000000000..7a6d4c76a --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/image_placeholder_field.proto @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "ImagePlaceholderFieldProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing Advertiser Provided Image placeholder fields. + +// Values for Advertiser Provided Image placeholder fields. +message ImagePlaceholderFieldEnum { + // Possible values for Advertiser Provided Image placeholder fields. + enum ImagePlaceholderField { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Data Type: INT64. The asset ID of the image. + ASSET_ID = 2; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/income_range_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/income_range_type.proto new file mode 100644 index 000000000..0ee86724d --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/income_range_type.proto @@ -0,0 +1,65 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "IncomeRangeTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing income range types. + +// Container for enum describing the type of demographic income ranges. +message IncomeRangeTypeEnum { + // The type of demographic income ranges (e.g. between 0% to 50%). + enum IncomeRangeType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // 0%-50%. + INCOME_RANGE_0_50 = 510001; + + // 50% to 60%. + INCOME_RANGE_50_60 = 510002; + + // 60% to 70%. + INCOME_RANGE_60_70 = 510003; + + // 70% to 80%. + INCOME_RANGE_70_80 = 510004; + + // 80% to 90%. + INCOME_RANGE_80_90 = 510005; + + // Greater than 90%. + INCOME_RANGE_90_UP = 510006; + + // Undetermined income range. + INCOME_RANGE_UNDETERMINED = 510000; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/interaction_event_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/interaction_event_type.proto new file mode 100644 index 000000000..fc5cd5b8c --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/interaction_event_type.proto @@ -0,0 +1,62 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "InteractionEventTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing types of payable and free interactions. + +// Container for enum describing types of payable and free interactions. +message InteractionEventTypeEnum { + // Enum describing possible types of payable and free interactions. + enum InteractionEventType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Click to site. In most cases, this interaction navigates to an external + // location, usually the advertiser's landing page. This is also the default + // InteractionEventType for click events. + CLICK = 2; + + // The user's expressed intent to engage with the ad in-place. + ENGAGEMENT = 3; + + // User viewed a video ad. + VIDEO_VIEW = 4; + + // The default InteractionEventType for ad conversion events. + // This is used when an ad conversion row does NOT indicate + // that the free interactions (i.e., the ad conversions) + // should be 'promoted' and reported as part of the core metrics. + // These are simply other (ad) conversions. + NONE = 5; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/interaction_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/interaction_type.proto new file mode 100644 index 000000000..30eb3640b --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/interaction_type.proto @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "InteractionTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing interaction types. + +// Container for enum describing possible interaction types. +message InteractionTypeEnum { + // Enum describing possible interaction types. + enum InteractionType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Calls. + CALLS = 8000; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/invoice_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/invoice_type.proto new file mode 100644 index 000000000..66d8df996 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/invoice_type.proto @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "InvoiceTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing invoice types. + +// Container for enum describing the type of invoices. +message InvoiceTypeEnum { + // The possible type of invoices. + enum InvoiceType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // An invoice with a negative amount. The account receives a credit. + CREDIT_MEMO = 2; + + // An invoice with a positive amount. The account owes a balance. + INVOICE = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/job_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v6/enums/job_placeholder_field.proto new file mode 100644 index 000000000..a64a491fa --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/job_placeholder_field.proto @@ -0,0 +1,115 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "JobsPlaceholderFieldProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing Job placeholder fields. + +// Values for Job placeholder fields. +// For more information about dynamic remarketing feeds, see +// https://support.google.com/google-ads/answer/6053288. +message JobPlaceholderFieldEnum { + // Possible values for Job placeholder fields. + enum JobPlaceholderField { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Data Type: STRING. Required. If only JOB_ID is specified, then it must be + // unique. If both JOB_ID and LOCATION_ID are specified, then the + // pair must be unique. + // ID) pair must be unique. + JOB_ID = 2; + + // Data Type: STRING. Combination of JOB_ID and LOCATION_ID must be unique + // per offer. + LOCATION_ID = 3; + + // Data Type: STRING. Required. Main headline with job title to be shown in + // dynamic ad. + TITLE = 4; + + // Data Type: STRING. Job subtitle to be shown in dynamic ad. + SUBTITLE = 5; + + // Data Type: STRING. Description of job to be shown in dynamic ad. + DESCRIPTION = 6; + + // Data Type: URL. Image to be displayed in the ad. Highly recommended for + // image ads. + IMAGE_URL = 7; + + // Data Type: STRING. Category of property used to group like items together + // for recommendation engine. + CATEGORY = 8; + + // Data Type: STRING_LIST. Keywords used for product retrieval. + CONTEXTUAL_KEYWORDS = 9; + + // Data Type: STRING. Complete property address, including postal code. + ADDRESS = 10; + + // Data Type: STRING. Salary or salary range of job to be shown in dynamic + // ad. + SALARY = 11; + + // Data Type: URL_LIST. Required. Final URLs to be used in ad when using + // Upgraded URLs; the more specific the better (e.g. the individual URL of a + // specific job and its location). + FINAL_URLS = 12; + + // Data Type: URL_LIST. Final mobile URLs for the ad when using Upgraded + // URLs. + FINAL_MOBILE_URLS = 14; + + // Data Type: URL. Tracking template for the ad when using Upgraded URLs. + TRACKING_URL = 15; + + // Data Type: STRING. Android app link. Must be formatted as: + // android-app://{package_id}/{scheme}/{host_path}. + // The components are defined as follows: + // package_id: app ID as specified in Google Play. + // scheme: the scheme to pass to the application. Can be HTTP, or a custom + // scheme. + // host_path: identifies the specific content within your application. + ANDROID_APP_LINK = 16; + + // Data Type: STRING_LIST. List of recommended job IDs to show together with + // this item. + SIMILAR_JOB_IDS = 17; + + // Data Type: STRING. iOS app link. + IOS_APP_LINK = 18; + + // Data Type: INT64. iOS app store ID. + IOS_APP_STORE_ID = 19; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/keyword_match_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/keyword_match_type.proto new file mode 100644 index 000000000..28926a512 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/keyword_match_type.proto @@ -0,0 +1,53 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "KeywordMatchTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing Keyword match types. + +// Message describing Keyword match types. +message KeywordMatchTypeEnum { + // Possible Keyword match types. + enum KeywordMatchType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Exact match. + EXACT = 2; + + // Phrase match. + PHRASE = 3; + + // Broad match. + BROAD = 4; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/keyword_plan_competition_level.proto b/third_party/googleapis/google/ads/googleads/v6/enums/keyword_plan_competition_level.proto new file mode 100644 index 000000000..57a324b74 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/keyword_plan_competition_level.proto @@ -0,0 +1,57 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "KeywordPlanCompetitionLevelProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing Keyword Planner competition levels. + +// Container for enumeration of keyword competition levels. The competition +// level indicates how competitive ad placement is for a keyword and +// is determined by the number of advertisers bidding on that keyword relative +// to all keywords across Google. The competition level can depend on the +// location and Search Network targeting options you've selected. +message KeywordPlanCompetitionLevelEnum { + // Competition level of a keyword. + enum KeywordPlanCompetitionLevel { + // Not specified. + UNSPECIFIED = 0; + + // The value is unknown in this version. + UNKNOWN = 1; + + // Low competition. The Competition Index range for this is [0, 33]. + LOW = 2; + + // Medium competition. The Competition Index range for this is [34, 66]. + MEDIUM = 3; + + // High competition. The Competition Index range for this is [67, 100]. + HIGH = 4; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/keyword_plan_forecast_interval.proto b/third_party/googleapis/google/ads/googleads/v6/enums/keyword_plan_forecast_interval.proto new file mode 100644 index 000000000..d76744d0b --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/keyword_plan_forecast_interval.proto @@ -0,0 +1,56 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "KeywordPlanForecastIntervalProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing keyword plan forecast intervals. + +// Container for enumeration of forecast intervals. +message KeywordPlanForecastIntervalEnum { + // Forecast intervals. + enum KeywordPlanForecastInterval { + // Not specified. + UNSPECIFIED = 0; + + // The value is unknown in this version. + UNKNOWN = 1; + + // The next week date range for keyword plan. The next week is based + // on the default locale of the user's account and is mostly SUN-SAT or + // MON-SUN. + // This can be different from next-7 days. + NEXT_WEEK = 3; + + // The next month date range for keyword plan. + NEXT_MONTH = 4; + + // The next quarter date range for keyword plan. + NEXT_QUARTER = 5; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/keyword_plan_network.proto b/third_party/googleapis/google/ads/googleads/v6/enums/keyword_plan_network.proto new file mode 100644 index 000000000..d4c61a2bf --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/keyword_plan_network.proto @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "KeywordPlanNetworkProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing Keyword Planner forecastable network types. + +// Container for enumeration of keyword plan forecastable network types. +message KeywordPlanNetworkEnum { + // Enumerates keyword plan forecastable network types. + enum KeywordPlanNetwork { + // Not specified. + UNSPECIFIED = 0; + + // The value is unknown in this version. + UNKNOWN = 1; + + // Google Search. + GOOGLE_SEARCH = 2; + + // Google Search + Search partners. + GOOGLE_SEARCH_AND_PARTNERS = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/label_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/label_status.proto new file mode 100644 index 000000000..840877ba0 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/label_status.proto @@ -0,0 +1,48 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "LabelStatusProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Container for enum describing possible status of a label. +message LabelStatusEnum { + // Possible statuses of a label. + enum LabelStatus { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Label is enabled. + ENABLED = 2; + + // Label is removed. + REMOVED = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/lead_form_call_to_action_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/lead_form_call_to_action_type.proto new file mode 100644 index 000000000..1454d266a --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/lead_form_call_to_action_type.proto @@ -0,0 +1,84 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "LeadFormCallToActionTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Describes the type of call-to-action phrases in a lead form. +message LeadFormCallToActionTypeEnum { + // Enum describing the type of call-to-action phrases in a lead form. + enum LeadFormCallToActionType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Learn more. + LEARN_MORE = 2; + + // Get quote. + GET_QUOTE = 3; + + // Apply now. + APPLY_NOW = 4; + + // Sign Up. + SIGN_UP = 5; + + // Contact us. + CONTACT_US = 6; + + // Subscribe. + SUBSCRIBE = 7; + + // Download. + DOWNLOAD = 8; + + // Book now. + BOOK_NOW = 9; + + // Get offer. + GET_OFFER = 10; + + // Register. + REGISTER = 11; + + // Get info. + GET_INFO = 12; + + // Request a demo. + REQUEST_DEMO = 13; + + // Join now. + JOIN_NOW = 14; + + // Get started. + GET_STARTED = 15; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/lead_form_desired_intent.proto b/third_party/googleapis/google/ads/googleads/v6/enums/lead_form_desired_intent.proto new file mode 100644 index 000000000..42347dfe1 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/lead_form_desired_intent.proto @@ -0,0 +1,48 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "LeadFormDesiredIntentProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Describes the desired level of intent of generated leads. +message LeadFormDesiredIntentEnum { + // Enum describing the desired level of intent of generated leads. + enum LeadFormDesiredIntent { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Deliver more leads at a potentially lower quality. + LOW_INTENT = 2; + + // Only leads with a high level of intent are desired. + HIGH_INTENT = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/lead_form_field_user_input_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/lead_form_field_user_input_type.proto new file mode 100644 index 000000000..4db28b5be --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/lead_form_field_user_input_type.proto @@ -0,0 +1,273 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "LeadFormFieldUserInputTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Describes the input type of a lead form field. +message LeadFormFieldUserInputTypeEnum { + // Enum describing the input type of a lead form field. + enum LeadFormFieldUserInputType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // The user will be asked to fill in their given and family name. This field + // cannot be set at the same time as GIVEN_NAME or FAMILY_NAME. + FULL_NAME = 2; + + // The user will be asked to fill in their given name (first name). This + // field can not be set at the same time as FULL_NAME. + GIVEN_NAME = 6; + + // The user will be asked to fill in their family name (last name). This + // field can not be set at the same time as FULL_NAME. + FAMILY_NAME = 7; + + // The user will be asked to fill in their email address. + EMAIL = 3; + + // The user will be asked to fill in their phone number. + PHONE_NUMBER = 4; + + // The user will be asked to fill in their zip code. + POSTAL_CODE = 5; + + // The user will be asked to fill in their city. + CITY = 9; + + // The user will be asked to fill in their region part of the address (e.g. + // state for US, province for Canada). + REGION = 10; + + // The user will be asked to fill in their country. + COUNTRY = 11; + + // The user will be asked to fill in their work email address. + WORK_EMAIL = 12; + + // The user will be asked to fill in their company name. + COMPANY_NAME = 13; + + // The user will be asked to fill in their work phone. + WORK_PHONE = 14; + + // The user will be asked to fill in their job title. + JOB_TITLE = 15; + + // Question: "Which model are you interested in?" + // Category: "Auto" + VEHICLE_MODEL = 1001; + + // Question: "Which type of vehicle are you interested in?" + // Category: "Auto" + VEHICLE_TYPE = 1002; + + // Question: "What is your preferred dealership?" + // Category: "Auto" + PREFERRED_DEALERSHIP = 1003; + + // Question: "When do you plan on purchasing a vehicle?" + // Category: "Auto" + VEHICLE_PURCHASE_TIMELINE = 1004; + + // Question: "Do you own a vehicle?" + // Category: "Auto" + VEHICLE_OWNERSHIP = 1005; + + // Question: "What vehicle ownership option are you interested in?" + // Category: "Auto" + VEHICLE_PAYMENT_TYPE = 1009; + + // Question: "What type of vehicle condition are you interested in?" + // Category: "Auto" + VEHICLE_CONDITION = 1010; + + // Question: "What size is your company?" + // Category: "Business" + COMPANY_SIZE = 1006; + + // Question: "What is your annual sales volume?" + // Category: "Business" + ANNUAL_SALES = 1007; + + // Question: "How many years have you been in business?" + // Category: "Business" + YEARS_IN_BUSINESS = 1008; + + // Question: "What is your job department?" + // Category: "Business" + JOB_DEPARTMENT = 1011; + + // Question: "What is your job role?" + // Category: "Business" + JOB_ROLE = 1012; + + // Question: "Which program are you interested in?" + // Category: "Education" + EDUCATION_PROGRAM = 1013; + + // Question: "Which course are you interested in?" + // Category: "Education" + EDUCATION_COURSE = 1014; + + // Question: "Which product are you interested in?" + // Category: "General" + PRODUCT = 1016; + + // Question: "Which service are you interested in?" + // Category: "General" + SERVICE = 1017; + + // Question: "Which offer are you interested in?" + // Category: "General" + OFFER = 1018; + + // Question: "Which category are you interested in?" + // Category: "General" + CATEGORY = 1019; + + // Question: "What is your preferred method of contact?" + // Category: "General" + PREFERRED_CONTACT_METHOD = 1020; + + // Question: "What is your preferred location?" + // Category: "General" + PREFERRED_LOCATION = 1021; + + // Question: "What is the best time to contact you?" + // Category: "General" + PREFERRED_CONTACT_TIME = 1022; + + // Question: "When are you looking to make a purchase?" + // Category: "General" + PURCHASE_TIMELINE = 1023; + + // Question: "How many years of work experience do you have?" + // Category: "Jobs" + YEARS_OF_EXPERIENCE = 1048; + + // Question: "What industry do you work in?" + // Category: "Jobs" + JOB_INDUSTRY = 1049; + + // Question: "What is your highest level of education?" + // Category: "Jobs" + LEVEL_OF_EDUCATION = 1050; + + // Question: "What type of property are you looking for?" + // Category: "Real Estate" + PROPERTY_TYPE = 1024; + + // Question: "What do you need a realtor's help with?" + // Category: "Real Estate" + REALTOR_HELP_GOAL = 1025; + + // Question: "What neighborhood are you interested in?" + // Category: "Real Estate" + PROPERTY_COMMUNITY = 1026; + + // Question: "What price range are you looking for?" + // Category: "Real Estate" + PRICE_RANGE = 1027; + + // Question: "How many bedrooms are you looking for?" + // Category: "Real Estate" + NUMBER_OF_BEDROOMS = 1028; + + // Question: "Are you looking for a fully furnished property?" + // Category: "Real Estate" + FURNISHED_PROPERTY = 1029; + + // Question: "Are you looking for properties that allow pets?" + // Category: "Real Estate" + PETS_ALLOWED_PROPERTY = 1030; + + // Question: "What is the next product you plan to purchase?" + // Category: "Retail" + NEXT_PLANNED_PURCHASE = 1031; + + // Question: "Would you like to sign up for an event?" + // Category: "Retail" + EVENT_SIGNUP_INTEREST = 1033; + + // Question: "Where are you interested in shopping?" + // Category: "Retail" + PREFERRED_SHOPPING_PLACES = 1034; + + // Question: "What is your favorite brand?" + // Category: "Retail" + FAVORITE_BRAND = 1035; + + // Question: "Which type of valid commercial license do you have?" + // Category: "Transportation" + TRANSPORTATION_COMMERCIAL_LICENSE_TYPE = 1036; + + // Question: "Interested in booking an event?" + // Category: "Travel" + EVENT_BOOKING_INTEREST = 1038; + + // Question: "What is your destination country?" + // Category: "Travel" + DESTINATION_COUNTRY = 1039; + + // Question: "What is your destination city?" + // Category: "Travel" + DESTINATION_CITY = 1040; + + // Question: "What is your departure country?" + // Category: "Travel" + DEPARTURE_COUNTRY = 1041; + + // Question: "What is your departure city?" + // Category: "Travel" + DEPARTURE_CITY = 1042; + + // Question: "What is your departure date?" + // Category: "Travel" + DEPARTURE_DATE = 1043; + + // Question: "What is your return date?" + // Category: "Travel" + RETURN_DATE = 1044; + + // Question: "How many people are you traveling with?" + // Category: "Travel" + NUMBER_OF_TRAVELERS = 1045; + + // Question: "What is your travel budget?" + // Category: "Travel" + TRAVEL_BUDGET = 1046; + + // Question: "Where do you want to stay during your travel?" + // Category: "Travel" + TRAVEL_ACCOMMODATION = 1047; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/lead_form_post_submit_call_to_action_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/lead_form_post_submit_call_to_action_type.proto new file mode 100644 index 000000000..57696df42 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/lead_form_post_submit_call_to_action_type.proto @@ -0,0 +1,55 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "LeadFormPostSubmitCallToActionTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Describes the type of post-submit call-to-action phrases for a lead form. +message LeadFormPostSubmitCallToActionTypeEnum { + // Enum describing the type of post-submit call-to-action phrases for a lead + // form. + enum LeadFormPostSubmitCallToActionType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Visit site. + VISIT_SITE = 2; + + // Download. + DOWNLOAD = 3; + + // Learn more. + LEARN_MORE = 4; + + // Shop now. + SHOP_NOW = 5; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/legacy_app_install_ad_app_store.proto b/third_party/googleapis/google/ads/googleads/v6/enums/legacy_app_install_ad_app_store.proto new file mode 100644 index 000000000..f1d043074 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/legacy_app_install_ad_app_store.proto @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "LegacyAppInstallAdAppStoreProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing app store types for a legacy app install ad. + +// Container for enum describing app store type in a legacy app install ad. +message LegacyAppInstallAdAppStoreEnum { + // App store type in a legacy app install ad. + enum LegacyAppInstallAdAppStore { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Apple iTunes. + APPLE_APP_STORE = 2; + + // Google Play. + GOOGLE_PLAY = 3; + + // Windows Store. + WINDOWS_STORE = 4; + + // Windows Phone Store. + WINDOWS_PHONE_STORE = 5; + + // The app is hosted in a Chinese app store. + CN_APP_STORE = 6; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/linked_account_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/linked_account_type.proto new file mode 100644 index 000000000..cdcf3ee91 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/linked_account_type.proto @@ -0,0 +1,52 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "LinkedAccountTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Container for enum describing different types of Linked accounts. +message LinkedAccountTypeEnum { + // Describes the possible link types between a Google Ads customer + // and another account. + enum LinkedAccountType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // A link to provide third party app analytics data. + THIRD_PARTY_APP_ANALYTICS = 2; + + // A link to Data partner. + DATA_PARTNER = 3; + + // A link to Google Ads. + GOOGLE_ADS = 4; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/listing_group_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/listing_group_type.proto new file mode 100644 index 000000000..ff2bf0c49 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/listing_group_type.proto @@ -0,0 +1,52 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "ListingGroupTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing listing groups. + +// Container for enum describing the type of the listing group. +message ListingGroupTypeEnum { + // The type of the listing group. + enum ListingGroupType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Subdivision of products along some listing dimension. These nodes + // are not used by serving to target listing entries, but is purely + // to define the structure of the tree. + SUBDIVISION = 2; + + // Listing group unit that defines a bid. + UNIT = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/local_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v6/enums/local_placeholder_field.proto new file mode 100644 index 000000000..c0e7f0f45 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/local_placeholder_field.proto @@ -0,0 +1,119 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "LocalPlaceholderFieldProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing Local placeholder fields. + +// Values for Local placeholder fields. +// For more information about dynamic remarketing feeds, see +// https://support.google.com/google-ads/answer/6053288. +message LocalPlaceholderFieldEnum { + // Possible values for Local placeholder fields. + enum LocalPlaceholderField { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Data Type: STRING. Required. Unique ID. + DEAL_ID = 2; + + // Data Type: STRING. Required. Main headline with local deal title to be + // shown in dynamic ad. + DEAL_NAME = 3; + + // Data Type: STRING. Local deal subtitle to be shown in dynamic ad. + SUBTITLE = 4; + + // Data Type: STRING. Description of local deal to be shown in dynamic ad. + DESCRIPTION = 5; + + // Data Type: STRING. Price to be shown in the ad. Highly recommended for + // dynamic ads. Example: "100.00 USD" + PRICE = 6; + + // Data Type: STRING. Formatted price to be shown in the ad. + // Example: "Starting at $100.00 USD", "$80 - $100" + FORMATTED_PRICE = 7; + + // Data Type: STRING. Sale price to be shown in the ad. + // Example: "80.00 USD" + SALE_PRICE = 8; + + // Data Type: STRING. Formatted sale price to be shown in the ad. + // Example: "On sale for $80.00", "$60 - $80" + FORMATTED_SALE_PRICE = 9; + + // Data Type: URL. Image to be displayed in the ad. + IMAGE_URL = 10; + + // Data Type: STRING. Complete property address, including postal code. + ADDRESS = 11; + + // Data Type: STRING. Category of local deal used to group like items + // together for recommendation engine. + CATEGORY = 12; + + // Data Type: STRING_LIST. Keywords used for product retrieval. + CONTEXTUAL_KEYWORDS = 13; + + // Data Type: URL_LIST. Required. Final URLs to be used in ad when using + // Upgraded URLs; the more specific the better (e.g. the individual URL of a + // specific local deal and its location). + FINAL_URLS = 14; + + // Data Type: URL_LIST. Final mobile URLs for the ad when using Upgraded + // URLs. + FINAL_MOBILE_URLS = 15; + + // Data Type: URL. Tracking template for the ad when using Upgraded URLs. + TRACKING_URL = 16; + + // Data Type: STRING. Android app link. Must be formatted as: + // android-app://{package_id}/{scheme}/{host_path}. + // The components are defined as follows: + // package_id: app ID as specified in Google Play. + // scheme: the scheme to pass to the application. Can be HTTP, or a custom + // scheme. + // host_path: identifies the specific content within your application. + ANDROID_APP_LINK = 17; + + // Data Type: STRING_LIST. List of recommended local deal IDs to show + // together with this item. + SIMILAR_DEAL_IDS = 18; + + // Data Type: STRING. iOS app link. + IOS_APP_LINK = 19; + + // Data Type: INT64. iOS app store ID. + IOS_APP_STORE_ID = 20; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/location_extension_targeting_criterion_field.proto b/third_party/googleapis/google/ads/googleads/v6/enums/location_extension_targeting_criterion_field.proto new file mode 100644 index 000000000..4a252b144 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/location_extension_targeting_criterion_field.proto @@ -0,0 +1,62 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "LocationExtensionTargetingCriterionFieldProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing Location Extension Targeting criterion fields. + +// Values for Location Extension Targeting criterion fields. +message LocationExtensionTargetingCriterionFieldEnum { + // Possible values for Location Extension Targeting criterion fields. + enum LocationExtensionTargetingCriterionField { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Data Type: STRING. Line 1 of the business address. + ADDRESS_LINE_1 = 2; + + // Data Type: STRING. Line 2 of the business address. + ADDRESS_LINE_2 = 3; + + // Data Type: STRING. City of the business address. + CITY = 4; + + // Data Type: STRING. Province of the business address. + PROVINCE = 5; + + // Data Type: STRING. Postal code of the business address. + POSTAL_CODE = 6; + + // Data Type: STRING. Country code of the business address. + COUNTRY_CODE = 7; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/location_group_radius_units.proto b/third_party/googleapis/google/ads/googleads/v6/enums/location_group_radius_units.proto new file mode 100644 index 000000000..0feb60843 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/location_group_radius_units.proto @@ -0,0 +1,53 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "LocationGroupRadiusUnitsProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing location group radius units. + +// Container for enum describing unit of radius in location group. +message LocationGroupRadiusUnitsEnum { + // The unit of radius distance in location group (e.g. MILES) + enum LocationGroupRadiusUnits { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Meters + METERS = 2; + + // Miles + MILES = 3; + + // Milli Miles + MILLI_MILES = 4; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/location_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v6/enums/location_placeholder_field.proto new file mode 100644 index 000000000..a997205e9 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/location_placeholder_field.proto @@ -0,0 +1,68 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "LocationPlaceholderFieldProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing Location placeholder fields. + +// Values for Location placeholder fields. +message LocationPlaceholderFieldEnum { + // Possible values for Location placeholder fields. + enum LocationPlaceholderField { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Data Type: STRING. The name of the business. + BUSINESS_NAME = 2; + + // Data Type: STRING. Line 1 of the business address. + ADDRESS_LINE_1 = 3; + + // Data Type: STRING. Line 2 of the business address. + ADDRESS_LINE_2 = 4; + + // Data Type: STRING. City of the business address. + CITY = 5; + + // Data Type: STRING. Province of the business address. + PROVINCE = 6; + + // Data Type: STRING. Postal code of the business address. + POSTAL_CODE = 7; + + // Data Type: STRING. Country code of the business address. + COUNTRY_CODE = 8; + + // Data Type: STRING. Phone number of the business. + PHONE_NUMBER = 9; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/location_source_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/location_source_type.proto new file mode 100644 index 000000000..44c64280c --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/location_source_type.proto @@ -0,0 +1,51 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "LocationSourceTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing location source types. + +// Used to distinguish the location source type. +message LocationSourceTypeEnum { + // The possible types of a location source. + enum LocationSourceType { + // No value has been specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Locations associated with the customer's linked Google My Business + // account. + GOOGLE_MY_BUSINESS = 2; + + // Affiliate (chain) store locations. For example, Best Buy store locations. + AFFILIATE = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/manager_link_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/manager_link_status.proto new file mode 100644 index 000000000..fe2565e0d --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/manager_link_status.proto @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "ManagerLinkStatusProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Container for enum describing possible status of a manager and client link. +message ManagerLinkStatusEnum { + // Possible statuses of a link. + enum ManagerLinkStatus { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Indicates current in-effect relationship + ACTIVE = 2; + + // Indicates terminated relationship + INACTIVE = 3; + + // Indicates relationship has been requested by manager, but the client + // hasn't accepted yet. + PENDING = 4; + + // Relationship was requested by the manager, but the client has refused. + REFUSED = 5; + + // Indicates relationship has been requested by manager, but manager + // canceled it. + CANCELED = 6; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/matching_function_context_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/matching_function_context_type.proto new file mode 100644 index 000000000..7e104ecec --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/matching_function_context_type.proto @@ -0,0 +1,53 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "MatchingFunctionContextTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing matching function context types. + +// Container for context types for an operand in a matching function. +message MatchingFunctionContextTypeEnum { + // Possible context types for an operand in a matching function. + enum MatchingFunctionContextType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Feed item id in the request context. + FEED_ITEM_ID = 2; + + // The device being used (possible values are 'Desktop' or 'Mobile'). + DEVICE_NAME = 3; + + // Feed item set id in the request context. + FEED_ITEM_SET_ID = 4; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/matching_function_operator.proto b/third_party/googleapis/google/ads/googleads/v6/enums/matching_function_operator.proto new file mode 100644 index 000000000..ef207bf8c --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/matching_function_operator.proto @@ -0,0 +1,65 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "MatchingFunctionOperatorProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing matching function operators. + +// Container for enum describing matching function operator. +message MatchingFunctionOperatorEnum { + // Possible operators in a matching function. + enum MatchingFunctionOperator { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // The IN operator. + IN = 2; + + // The IDENTITY operator. + IDENTITY = 3; + + // The EQUALS operator + EQUALS = 4; + + // Operator that takes two or more operands that are of type + // FunctionOperand and checks that all the operands evaluate to true. + // For functions related to ad formats, all the operands must be in + // left_operands. + AND = 5; + + // Operator that returns true if the elements in left_operands contain any + // of the elements in right_operands. Otherwise, return false. The + // right_operands must contain at least 1 and no more than 3 + // ConstantOperands. + CONTAINS_ANY = 6; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/media_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/media_type.proto new file mode 100644 index 000000000..243570221 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/media_type.proto @@ -0,0 +1,64 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "MediaTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing media types. + +// Container for enum describing the types of media. +message MediaTypeEnum { + // The type of media. + enum MediaType { + // The media type has not been specified. + UNSPECIFIED = 0; + + // The received value is not known in this version. + // + // This is a response-only value. + UNKNOWN = 1; + + // Static image, used for image ad. + IMAGE = 2; + + // Small image, used for map ad. + ICON = 3; + + // ZIP file, used in fields of template ads. + MEDIA_BUNDLE = 4; + + // Audio file. + AUDIO = 5; + + // Video file. + VIDEO = 6; + + // Animated image, such as animated GIF. + DYNAMIC_IMAGE = 7; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/merchant_center_link_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/merchant_center_link_status.proto new file mode 100644 index 000000000..f33c2422c --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/merchant_center_link_status.proto @@ -0,0 +1,53 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "MerchantCenterLinkStatusProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing Merchant Center link statuses. + +// Container for enum describing possible statuses of a Google Merchant Center +// link. +message MerchantCenterLinkStatusEnum { + // Describes the possible statuses for a link between a Google Ads customer + // and a Google Merchant Center account. + enum MerchantCenterLinkStatus { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // The link is enabled. + ENABLED = 2; + + // The link has no effect. It was proposed by the Merchant Center Account + // owner and hasn't been confirmed by the customer. + PENDING = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/message_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v6/enums/message_placeholder_field.proto new file mode 100644 index 000000000..8a2faa489 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/message_placeholder_field.proto @@ -0,0 +1,61 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "MessagePlaceholderFieldProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing Message placeholder fields. + +// Values for Message placeholder fields. +message MessagePlaceholderFieldEnum { + // Possible values for Message placeholder fields. + enum MessagePlaceholderField { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Data Type: STRING. The name of your business. + BUSINESS_NAME = 2; + + // Data Type: STRING. Country code of phone number. + COUNTRY_CODE = 3; + + // Data Type: STRING. A phone number that's capable of sending and receiving + // text messages. + PHONE_NUMBER = 4; + + // Data Type: STRING. The text that will go in your click-to-message ad. + MESSAGE_EXTENSION_TEXT = 5; + + // Data Type: STRING. The message text automatically shows in people's + // messaging apps when they tap to send you a message. + MESSAGE_TEXT = 6; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/mime_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/mime_type.proto new file mode 100644 index 000000000..1f31f8559 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/mime_type.proto @@ -0,0 +1,82 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "MimeTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing mime types. + +// Container for enum describing the mime types. +message MimeTypeEnum { + // The mime type + enum MimeType { + // The mime type has not been specified. + UNSPECIFIED = 0; + + // The received value is not known in this version. + // + // This is a response-only value. + UNKNOWN = 1; + + // MIME type of image/jpeg. + IMAGE_JPEG = 2; + + // MIME type of image/gif. + IMAGE_GIF = 3; + + // MIME type of image/png. + IMAGE_PNG = 4; + + // MIME type of application/x-shockwave-flash. + FLASH = 5; + + // MIME type of text/html. + TEXT_HTML = 6; + + // MIME type of application/pdf. + PDF = 7; + + // MIME type of application/msword. + MSWORD = 8; + + // MIME type of application/vnd.ms-excel. + MSEXCEL = 9; + + // MIME type of application/rtf. + RTF = 10; + + // MIME type of audio/wav. + AUDIO_WAV = 11; + + // MIME type of audio/mp3. + AUDIO_MP3 = 12; + + // MIME type of application/x-html5-ad-zip. + HTML5_AD_ZIP = 13; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/minute_of_hour.proto b/third_party/googleapis/google/ads/googleads/v6/enums/minute_of_hour.proto new file mode 100644 index 000000000..98a6dd10e --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/minute_of_hour.proto @@ -0,0 +1,56 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "MinuteOfHourProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing days of week. + +// Container for enumeration of quarter-hours. +message MinuteOfHourEnum { + // Enumerates of quarter-hours. E.g. "FIFTEEN" + enum MinuteOfHour { + // Not specified. + UNSPECIFIED = 0; + + // The value is unknown in this version. + UNKNOWN = 1; + + // Zero minutes past the hour. + ZERO = 2; + + // Fifteen minutes past the hour. + FIFTEEN = 3; + + // Thirty minutes past the hour. + THIRTY = 4; + + // Forty-five minutes past the hour. + FORTY_FIVE = 5; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/mobile_app_vendor.proto b/third_party/googleapis/google/ads/googleads/v6/enums/mobile_app_vendor.proto new file mode 100644 index 000000000..bf3b1f95a --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/mobile_app_vendor.proto @@ -0,0 +1,48 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "MobileAppVendorProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Container for enum describing different types of mobile app vendors. +message MobileAppVendorEnum { + // The type of mobile app vendor + enum MobileAppVendor { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Mobile app vendor for Apple app store. + APPLE_APP_STORE = 2; + + // Mobile app vendor for Google app store. + GOOGLE_APP_STORE = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/mobile_device_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/mobile_device_type.proto new file mode 100644 index 000000000..7da848a46 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/mobile_device_type.proto @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "MobileDeviceTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing mobile device types. + +// Container for enum describing the types of mobile device. +message MobileDeviceTypeEnum { + // The type of mobile device. + enum MobileDeviceType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Mobile phones. + MOBILE = 2; + + // Tablets. + TABLET = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/month_of_year.proto b/third_party/googleapis/google/ads/googleads/v6/enums/month_of_year.proto new file mode 100644 index 000000000..5783e6b35 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/month_of_year.proto @@ -0,0 +1,80 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "MonthOfYearProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing days of week. + +// Container for enumeration of months of the year, e.g., "January". +message MonthOfYearEnum { + // Enumerates months of the year, e.g., "January". + enum MonthOfYear { + // Not specified. + UNSPECIFIED = 0; + + // The value is unknown in this version. + UNKNOWN = 1; + + // January. + JANUARY = 2; + + // February. + FEBRUARY = 3; + + // March. + MARCH = 4; + + // April. + APRIL = 5; + + // May. + MAY = 6; + + // June. + JUNE = 7; + + // July. + JULY = 8; + + // August. + AUGUST = 9; + + // September. + SEPTEMBER = 10; + + // October. + OCTOBER = 11; + + // November. + NOVEMBER = 12; + + // December. + DECEMBER = 13; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/negative_geo_target_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/negative_geo_target_type.proto new file mode 100644 index 000000000..8893d4dfe --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/negative_geo_target_type.proto @@ -0,0 +1,52 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "NegativeGeoTargetTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing negative geo target types. + +// Container for enum describing possible negative geo target types. +message NegativeGeoTargetTypeEnum { + // The possible negative geo target types. + enum NegativeGeoTargetType { + // Not specified. + UNSPECIFIED = 0; + + // The value is unknown in this version. + UNKNOWN = 1; + + // Specifies that a user is excluded from seeing the ad if they + // are in, or show interest in, advertiser's excluded locations. + PRESENCE_OR_INTEREST = 4; + + // Specifies that a user is excluded from seeing the ad if they + // are in advertiser's excluded locations. + PRESENCE = 5; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/offline_user_data_job_failure_reason.proto b/third_party/googleapis/google/ads/googleads/v6/enums/offline_user_data_job_failure_reason.proto similarity index 81% rename from third_party/googleapis/google/ads/googleads/v3/enums/offline_user_data_job_failure_reason.proto rename to third_party/googleapis/google/ads/googleads/v6/enums/offline_user_data_job_failure_reason.proto index c0dfad32d..d765489d1 100644 --- a/third_party/googleapis/google/ads/googleads/v3/enums/offline_user_data_job_failure_reason.proto +++ b/third_party/googleapis/google/ads/googleads/v6/enums/offline_user_data_job_failure_reason.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -14,18 +14,18 @@ syntax = "proto3"; -package google.ads.googleads.v3.enums; +package google.ads.googleads.v6.enums; import "google/api/annotations.proto"; -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; option java_multiple_files = true; option java_outer_classname = "OfflineUserDataJobFailureReasonProto"; -option java_package = "com.google.ads.googleads.v3.enums"; +option java_package = "com.google.ads.googleads.v6.enums"; option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; // Proto file describing offline user data job failure reasons. diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/offline_user_data_job_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/offline_user_data_job_status.proto similarity index 82% rename from third_party/googleapis/google/ads/googleads/v3/enums/offline_user_data_job_status.proto rename to third_party/googleapis/google/ads/googleads/v6/enums/offline_user_data_job_status.proto index b13b6eaed..0465354d7 100644 --- a/third_party/googleapis/google/ads/googleads/v3/enums/offline_user_data_job_status.proto +++ b/third_party/googleapis/google/ads/googleads/v6/enums/offline_user_data_job_status.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -14,18 +14,18 @@ syntax = "proto3"; -package google.ads.googleads.v3.enums; +package google.ads.googleads.v6.enums; import "google/api/annotations.proto"; -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; option java_multiple_files = true; option java_outer_classname = "OfflineUserDataJobStatusProto"; -option java_package = "com.google.ads.googleads.v3.enums"; +option java_package = "com.google.ads.googleads.v6.enums"; option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; // Proto file describing offline user data job status. diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/offline_user_data_job_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/offline_user_data_job_type.proto similarity index 77% rename from third_party/googleapis/google/ads/googleads/v3/enums/offline_user_data_job_type.proto rename to third_party/googleapis/google/ads/googleads/v6/enums/offline_user_data_job_type.proto index c1983eb70..144ae47bb 100644 --- a/third_party/googleapis/google/ads/googleads/v3/enums/offline_user_data_job_type.proto +++ b/third_party/googleapis/google/ads/googleads/v6/enums/offline_user_data_job_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -14,18 +14,18 @@ syntax = "proto3"; -package google.ads.googleads.v3.enums; +package google.ads.googleads.v6.enums; import "google/api/annotations.proto"; -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; option java_multiple_files = true; option java_outer_classname = "OfflineUserDataJobTypeProto"; -option java_package = "com.google.ads.googleads.v3.enums"; +option java_package = "com.google.ads.googleads.v6.enums"; option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; // Proto file describing offline user data job types. @@ -47,6 +47,9 @@ message OfflineUserDataJobTypeEnum { // Customer Match user list data. CUSTOMER_MATCH_USER_LIST = 4; + + // Customer Match with attribute data. + CUSTOMER_MATCH_WITH_ATTRIBUTES = 5; } diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/operating_system_version_operator_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/operating_system_version_operator_type.proto new file mode 100644 index 000000000..3328c1174 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/operating_system_version_operator_type.proto @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "OperatingSystemVersionOperatorTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing operating system version operator types. + +// Container for enum describing the type of OS operators. +message OperatingSystemVersionOperatorTypeEnum { + // The type of operating system version. + enum OperatingSystemVersionOperatorType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Equals to the specified version. + EQUALS_TO = 2; + + // Greater than or equals to the specified version. + GREATER_THAN_EQUALS_TO = 4; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/optimization_goal_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/optimization_goal_type.proto new file mode 100644 index 000000000..078e1157d --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/optimization_goal_type.proto @@ -0,0 +1,53 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "OptimizationGoalTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing optimization goal type. + +// Container for enum describing the type of optimization goal. +message OptimizationGoalTypeEnum { + // The type of optimization goal + enum OptimizationGoalType { + // Not specified. + UNSPECIFIED = 0; + + // Used as a return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Optimize for call clicks. Call click conversions are times people + // selected 'Call' to contact a store after viewing an ad. + CALL_CLICKS = 2; + + // Optimize for driving directions. Driving directions conversions are + // times people selected 'Get directions' to navigate to a store after + // viewing an ad. + DRIVING_DIRECTIONS = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/page_one_promoted_strategy_goal.proto b/third_party/googleapis/google/ads/googleads/v6/enums/page_one_promoted_strategy_goal.proto new file mode 100644 index 000000000..09efcc652 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/page_one_promoted_strategy_goal.proto @@ -0,0 +1,30 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "PageOnePromotedStrategyGoalProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing bidding schemes. diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/parental_status_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/parental_status_type.proto new file mode 100644 index 000000000..43eae35bd --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/parental_status_type.proto @@ -0,0 +1,53 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "ParentalStatusTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing parenal status types. + +// Container for enum describing the type of demographic parental statuses. +message ParentalStatusTypeEnum { + // The type of parental statuses (e.g. not a parent). + enum ParentalStatusType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Parent. + PARENT = 300; + + // Not a parent. + NOT_A_PARENT = 301; + + // Undetermined parental status. + UNDETERMINED = 302; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/payment_mode.proto b/third_party/googleapis/google/ads/googleads/v6/enums/payment_mode.proto new file mode 100644 index 000000000..b145a3b44 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/payment_mode.proto @@ -0,0 +1,64 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "PaymentModeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing payment modes. + +// Container for enum describing possible payment modes. +message PaymentModeEnum { + // Enum describing possible payment modes. + enum PaymentMode { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Pay per click. + CLICKS = 4; + + // Pay per conversion value. This mode is only supported by campaigns with + // AdvertisingChannelType.HOTEL, BiddingStrategyType.COMMISSION, and + // BudgetType.HOTEL_ADS_COMMISSION. + CONVERSION_VALUE = 5; + + // Pay per conversion. This mode is only supported by campaigns with + // AdvertisingChannelType.DISPLAY (excluding + // AdvertisingChannelSubType.DISPLAY_GMAIL), BiddingStrategyType.TARGET_CPA, + // and BudgetType.FIXED_CPA. The customer must also be eligible for this + // mode. See Customer.eligibility_failure_reasons for details. + CONVERSIONS = 6; + + // Pay per guest stay value. This mode is only supported by campaigns with + // AdvertisingChannelType.HOTEL, BiddingStrategyType.COMMISSION, and + // BudgetType.STANDARD. + GUEST_STAY = 7; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/placeholder_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/placeholder_type.proto new file mode 100644 index 000000000..acfaed272 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/placeholder_type.proto @@ -0,0 +1,124 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "PlaceholderTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing feed placeholder types. + +// Container for enum describing possible placeholder types for a feed mapping. +message PlaceholderTypeEnum { + // Possible placeholder types for a feed mapping. + enum PlaceholderType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Lets you show links in your ad to pages from your website, including the + // main landing page. + SITELINK = 2; + + // Lets you attach a phone number to an ad, allowing customers to call + // directly from the ad. + CALL = 3; + + // Lets you provide users with a link that points to a mobile app in + // addition to a website. + APP = 4; + + // Lets you show locations of businesses from your Google My Business + // account in your ad. This helps people find your locations by showing your + // ads with your address, a map to your location, or the distance to your + // business. This extension type is useful to draw customers to your + // brick-and-mortar location. + LOCATION = 5; + + // If you sell your product through retail chains, affiliate location + // extensions let you show nearby stores that carry your products. + AFFILIATE_LOCATION = 6; + + // Lets you include additional text with your search ads that provide + // detailed information about your business, including products and services + // you offer. Callouts appear in ads at the top and bottom of Google search + // results. + CALLOUT = 7; + + // Lets you add more info to your ad, specific to some predefined categories + // such as types, brands, styles, etc. A minimum of 3 text (SNIPPETS) values + // are required. + STRUCTURED_SNIPPET = 8; + + // Allows users to see your ad, click an icon, and contact you directly by + // text message. With one tap on your ad, people can contact you to book an + // appointment, get a quote, ask for information, or request a service. + MESSAGE = 9; + + // Lets you display prices for a list of items along with your ads. A price + // feed is composed of three to eight price table rows. + PRICE = 10; + + // Allows you to highlight sales and other promotions that let users see how + // they can save by buying now. + PROMOTION = 11; + + // Lets you dynamically inject custom data into the title and description + // of your ads. + AD_CUSTOMIZER = 12; + + // Indicates that this feed is for education dynamic remarketing. + DYNAMIC_EDUCATION = 13; + + // Indicates that this feed is for flight dynamic remarketing. + DYNAMIC_FLIGHT = 14; + + // Indicates that this feed is for a custom dynamic remarketing type. Use + // this only if the other business types don't apply to your products or + // services. + DYNAMIC_CUSTOM = 15; + + // Indicates that this feed is for hotels and rentals dynamic remarketing. + DYNAMIC_HOTEL = 16; + + // Indicates that this feed is for real estate dynamic remarketing. + DYNAMIC_REAL_ESTATE = 17; + + // Indicates that this feed is for travel dynamic remarketing. + DYNAMIC_TRAVEL = 18; + + // Indicates that this feed is for local deals dynamic remarketing. + DYNAMIC_LOCAL = 19; + + // Indicates that this feed is for job dynamic remarketing. + DYNAMIC_JOB = 20; + + // Lets you attach an image to an ad. + IMAGE = 21; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/placement_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/placement_type.proto new file mode 100644 index 000000000..62b33009c --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/placement_type.proto @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "PlacementTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing placement types. + +// Container for enum describing possible placement types. +message PlacementTypeEnum { + // Possible placement types for a feed mapping. + enum PlacementType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Websites(e.g. 'www.flowers4sale.com'). + WEBSITE = 2; + + // Mobile application categories(e.g. 'Games'). + MOBILE_APP_CATEGORY = 3; + + // mobile applications(e.g. 'mobileapp::2-com.whatsthewordanswers'). + MOBILE_APPLICATION = 4; + + // YouTube videos(e.g. 'youtube.com/video/wtLJPvx7-ys'). + YOUTUBE_VIDEO = 5; + + // YouTube channels(e.g. 'youtube.com::L8ZULXASCc1I_oaOT0NaOQ'). + YOUTUBE_CHANNEL = 6; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/policy_approval_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/policy_approval_status.proto new file mode 100644 index 000000000..b1fa4863e --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/policy_approval_status.proto @@ -0,0 +1,61 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "PolicyApprovalStatusProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing policy approval statuses. + +// Container for enum describing possible policy approval statuses. +message PolicyApprovalStatusEnum { + // The possible policy approval statuses. When there are several approval + // statuses available the most severe one will be used. The order of severity + // is DISAPPROVED, AREA_OF_INTEREST_ONLY, APPROVED_LIMITED and APPROVED. + enum PolicyApprovalStatus { + // No value has been specified. + UNSPECIFIED = 0; + + // The received value is not known in this version. + // + // This is a response-only value. + UNKNOWN = 1; + + // Will not serve. + DISAPPROVED = 2; + + // Serves with restrictions. + APPROVED_LIMITED = 3; + + // Serves without restrictions. + APPROVED = 4; + + // Will not serve in targeted countries, but may serve for users who are + // searching for information about the targeted countries. + AREA_OF_INTEREST_ONLY = 5; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/policy_review_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/policy_review_status.proto new file mode 100644 index 000000000..8b4cd0f61 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/policy_review_status.proto @@ -0,0 +1,60 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "PolicyReviewStatusProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing policy review statuses. + +// Container for enum describing possible policy review statuses. +message PolicyReviewStatusEnum { + // The possible policy review statuses. + enum PolicyReviewStatus { + // No value has been specified. + UNSPECIFIED = 0; + + // The received value is not known in this version. + // + // This is a response-only value. + UNKNOWN = 1; + + // Currently under review. + REVIEW_IN_PROGRESS = 2; + + // Primary review complete. Other reviews may be continuing. + REVIEWED = 3; + + // The resource has been resubmitted for approval or its policy decision has + // been appealed. + UNDER_APPEAL = 4; + + // The resource is eligible and may be serving but could still undergo + // further review. + ELIGIBLE_MAY_SERVE = 5; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/policy_topic_entry_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/policy_topic_entry_type.proto new file mode 100644 index 000000000..a056f814d --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/policy_topic_entry_type.proto @@ -0,0 +1,66 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "PolicyTopicEntryTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing policy topic entry types. + +// Container for enum describing possible policy topic entry types. +message PolicyTopicEntryTypeEnum { + // The possible policy topic entry types. + enum PolicyTopicEntryType { + // No value has been specified. + UNSPECIFIED = 0; + + // The received value is not known in this version. + // + // This is a response-only value. + UNKNOWN = 1; + + // The resource will not be served. + PROHIBITED = 2; + + // The resource will not be served under some circumstances. + LIMITED = 4; + + // The resource cannot serve at all because of the current targeting + // criteria. + FULLY_LIMITED = 8; + + // May be of interest, but does not limit how the resource is served. + DESCRIPTIVE = 5; + + // Could increase coverage beyond normal. + BROADENING = 6; + + // Constrained for all targeted countries, but may serve in other countries + // through area of interest. + AREA_OF_INTEREST_ONLY = 7; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/policy_topic_evidence_destination_mismatch_url_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/policy_topic_evidence_destination_mismatch_url_type.proto new file mode 100644 index 000000000..cf22141c2 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/policy_topic_evidence_destination_mismatch_url_type.proto @@ -0,0 +1,62 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "PolicyTopicEvidenceDestinationMismatchUrlTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing policy topic evidence destination mismatch url types. + +// Container for enum describing possible policy topic evidence destination +// mismatch url types. +message PolicyTopicEvidenceDestinationMismatchUrlTypeEnum { + // The possible policy topic evidence destination mismatch url types. + enum PolicyTopicEvidenceDestinationMismatchUrlType { + // No value has been specified. + UNSPECIFIED = 0; + + // The received value is not known in this version. + // + // This is a response-only value. + UNKNOWN = 1; + + // The display url. + DISPLAY_URL = 2; + + // The final url. + FINAL_URL = 3; + + // The final mobile url. + FINAL_MOBILE_URL = 4; + + // The tracking url template, with substituted desktop url. + TRACKING_URL = 5; + + // The tracking url template, with substituted mobile url. + MOBILE_TRACKING_URL = 6; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/policy_topic_evidence_destination_not_working_device.proto b/third_party/googleapis/google/ads/googleads/v6/enums/policy_topic_evidence_destination_not_working_device.proto new file mode 100644 index 000000000..c0cda9080 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/policy_topic_evidence_destination_not_working_device.proto @@ -0,0 +1,57 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "PolicyTopicEvidenceDestinationNotWorkingDeviceProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing device of destination not working policy topic +// evidence. + +// Container for enum describing possible policy topic evidence destination not +// working devices. +message PolicyTopicEvidenceDestinationNotWorkingDeviceEnum { + // The possible policy topic evidence destination not working devices. + enum PolicyTopicEvidenceDestinationNotWorkingDevice { + // No value has been specified. + UNSPECIFIED = 0; + + // The received value is not known in this version. + // + // This is a response-only value. + UNKNOWN = 1; + + // Landing page doesn't work on desktop device. + DESKTOP = 2; + + // Landing page doesn't work on Android device. + ANDROID = 3; + + // Landing page doesn't work on iOS device. + IOS = 4; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/policy_topic_evidence_destination_not_working_dns_error_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/policy_topic_evidence_destination_not_working_dns_error_type.proto new file mode 100644 index 000000000..e3c5ac414 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/policy_topic_evidence_destination_not_working_dns_error_type.proto @@ -0,0 +1,56 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing DNS error types of destination not working policy topic +// evidence. + +// Container for enum describing possible policy topic evidence destination not +// working DNS error types. +message PolicyTopicEvidenceDestinationNotWorkingDnsErrorTypeEnum { + // The possible policy topic evidence destination not working DNS error types. + enum PolicyTopicEvidenceDestinationNotWorkingDnsErrorType { + // No value has been specified. + UNSPECIFIED = 0; + + // The received value is not known in this version. + // + // This is a response-only value. + UNKNOWN = 1; + + // Host name not found in DNS when fetching landing page. + HOSTNAME_NOT_FOUND = 2; + + // Google internal crawler issue when communicating with DNS. This error + // doesn't mean the landing page doesn't work. Google will recrawl the + // landing page. + GOOGLE_CRAWLER_DNS_ISSUE = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/positive_geo_target_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/positive_geo_target_type.proto new file mode 100644 index 000000000..6caa7b54a --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/positive_geo_target_type.proto @@ -0,0 +1,58 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "PositiveGeoTargetTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing positive geo target types. + +// Container for enum describing possible positive geo target types. +message PositiveGeoTargetTypeEnum { + // The possible positive geo target types. + enum PositiveGeoTargetType { + // Not specified. + UNSPECIFIED = 0; + + // The value is unknown in this version. + UNKNOWN = 1; + + // Specifies that an ad is triggered if the user is in, + // or shows interest in, advertiser's targeted locations. + PRESENCE_OR_INTEREST = 5; + + // Specifies that an ad is triggered if the user + // searches for advertiser's targeted locations. + // This can only be used with Search and standard + // Shopping campaigns. + SEARCH_INTEREST = 6; + + // Specifies that an ad is triggered if the user is in + // or regularly in advertiser's targeted locations. + PRESENCE = 7; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/preferred_content_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/preferred_content_type.proto new file mode 100644 index 000000000..945fb15a1 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/preferred_content_type.proto @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "PreferredContentTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing preferred content criterion type. + +// Container for enumeration of preferred content criterion type. +message PreferredContentTypeEnum { + // Enumerates preferred content criterion type. + enum PreferredContentType { + // Not specified. + UNSPECIFIED = 0; + + // The value is unknown in this version. + UNKNOWN = 1; + + // Represents top content on YouTube. + YOUTUBE_TOP_CONTENT = 400; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/price_extension_price_qualifier.proto b/third_party/googleapis/google/ads/googleads/v6/enums/price_extension_price_qualifier.proto new file mode 100644 index 000000000..21a25a6ad --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/price_extension_price_qualifier.proto @@ -0,0 +1,53 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "PriceExtensionPriceQualifierProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing price extension price qualifier type. + +// Container for enum describing a price extension price qualifier. +message PriceExtensionPriceQualifierEnum { + // Enums of price extension price qualifier. + enum PriceExtensionPriceQualifier { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // 'From' qualifier for the price. + FROM = 2; + + // 'Up to' qualifier for the price. + UP_TO = 3; + + // 'Average' qualifier for the price. + AVERAGE = 4; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/price_extension_price_unit.proto b/third_party/googleapis/google/ads/googleads/v6/enums/price_extension_price_unit.proto new file mode 100644 index 000000000..8c8caa2cb --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/price_extension_price_unit.proto @@ -0,0 +1,62 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "PriceExtensionPriceUnitProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing price extension price unit. + +// Container for enum describing price extension price unit. +message PriceExtensionPriceUnitEnum { + // Price extension price unit. + enum PriceExtensionPriceUnit { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Per hour. + PER_HOUR = 2; + + // Per day. + PER_DAY = 3; + + // Per week. + PER_WEEK = 4; + + // Per month. + PER_MONTH = 5; + + // Per year. + PER_YEAR = 6; + + // Per night. + PER_NIGHT = 7; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/price_extension_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/price_extension_type.proto new file mode 100644 index 000000000..5b2978695 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/price_extension_type.proto @@ -0,0 +1,71 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "PriceExtensionTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing price extension type. + +// Container for enum describing types for a price extension. +message PriceExtensionTypeEnum { + // Price extension type. + enum PriceExtensionType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // The type for showing a list of brands. + BRANDS = 2; + + // The type for showing a list of events. + EVENTS = 3; + + // The type for showing locations relevant to your business. + LOCATIONS = 4; + + // The type for showing sub-regions or districts within a city or region. + NEIGHBORHOODS = 5; + + // The type for showing a collection of product categories. + PRODUCT_CATEGORIES = 6; + + // The type for showing a collection of related product tiers. + PRODUCT_TIERS = 7; + + // The type for showing a collection of services offered by your business. + SERVICES = 8; + + // The type for showing a collection of service categories. + SERVICE_CATEGORIES = 9; + + // The type for showing a collection of related service tiers. + SERVICE_TIERS = 10; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/price_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v6/enums/price_placeholder_field.proto new file mode 100644 index 000000000..44396ae55 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/price_placeholder_field.proto @@ -0,0 +1,240 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "PricePlaceholderFieldProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing Price placeholder fields. + +// Values for Price placeholder fields. +message PricePlaceholderFieldEnum { + // Possible values for Price placeholder fields. + enum PricePlaceholderField { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Data Type: STRING. The type of your price feed. Must match one of the + // predefined price feed type exactly. + TYPE = 2; + + // Data Type: STRING. The qualifier of each price. Must match one of the + // predefined price qualifiers exactly. + PRICE_QUALIFIER = 3; + + // Data Type: URL. Tracking template for the price feed when using Upgraded + // URLs. + TRACKING_TEMPLATE = 4; + + // Data Type: STRING. Language of the price feed. Must match one of the + // available available locale codes exactly. + LANGUAGE = 5; + + // Data Type: STRING. Final URL suffix for the price feed when using + // parallel tracking. + FINAL_URL_SUFFIX = 6; + + // Data Type: STRING. The header of item 1 of the table. + ITEM_1_HEADER = 100; + + // Data Type: STRING. The description of item 1 of the table. + ITEM_1_DESCRIPTION = 101; + + // Data Type: MONEY. The price (money with currency) of item 1 of the table, + // e.g., 30 USD. The currency must match one of the available currencies. + ITEM_1_PRICE = 102; + + // Data Type: STRING. The price unit of item 1 of the table. Must match one + // of the predefined price units. + ITEM_1_UNIT = 103; + + // Data Type: URL_LIST. The final URLs of item 1 of the table when using + // Upgraded URLs. + ITEM_1_FINAL_URLS = 104; + + // Data Type: URL_LIST. The final mobile URLs of item 1 of the table when + // using Upgraded URLs. + ITEM_1_FINAL_MOBILE_URLS = 105; + + // Data Type: STRING. The header of item 2 of the table. + ITEM_2_HEADER = 200; + + // Data Type: STRING. The description of item 2 of the table. + ITEM_2_DESCRIPTION = 201; + + // Data Type: MONEY. The price (money with currency) of item 2 of the table, + // e.g., 30 USD. The currency must match one of the available currencies. + ITEM_2_PRICE = 202; + + // Data Type: STRING. The price unit of item 2 of the table. Must match one + // of the predefined price units. + ITEM_2_UNIT = 203; + + // Data Type: URL_LIST. The final URLs of item 2 of the table when using + // Upgraded URLs. + ITEM_2_FINAL_URLS = 204; + + // Data Type: URL_LIST. The final mobile URLs of item 2 of the table when + // using Upgraded URLs. + ITEM_2_FINAL_MOBILE_URLS = 205; + + // Data Type: STRING. The header of item 3 of the table. + ITEM_3_HEADER = 300; + + // Data Type: STRING. The description of item 3 of the table. + ITEM_3_DESCRIPTION = 301; + + // Data Type: MONEY. The price (money with currency) of item 3 of the table, + // e.g., 30 USD. The currency must match one of the available currencies. + ITEM_3_PRICE = 302; + + // Data Type: STRING. The price unit of item 3 of the table. Must match one + // of the predefined price units. + ITEM_3_UNIT = 303; + + // Data Type: URL_LIST. The final URLs of item 3 of the table when using + // Upgraded URLs. + ITEM_3_FINAL_URLS = 304; + + // Data Type: URL_LIST. The final mobile URLs of item 3 of the table when + // using Upgraded URLs. + ITEM_3_FINAL_MOBILE_URLS = 305; + + // Data Type: STRING. The header of item 4 of the table. + ITEM_4_HEADER = 400; + + // Data Type: STRING. The description of item 4 of the table. + ITEM_4_DESCRIPTION = 401; + + // Data Type: MONEY. The price (money with currency) of item 4 of the table, + // e.g., 30 USD. The currency must match one of the available currencies. + ITEM_4_PRICE = 402; + + // Data Type: STRING. The price unit of item 4 of the table. Must match one + // of the predefined price units. + ITEM_4_UNIT = 403; + + // Data Type: URL_LIST. The final URLs of item 4 of the table when using + // Upgraded URLs. + ITEM_4_FINAL_URLS = 404; + + // Data Type: URL_LIST. The final mobile URLs of item 4 of the table when + // using Upgraded URLs. + ITEM_4_FINAL_MOBILE_URLS = 405; + + // Data Type: STRING. The header of item 5 of the table. + ITEM_5_HEADER = 500; + + // Data Type: STRING. The description of item 5 of the table. + ITEM_5_DESCRIPTION = 501; + + // Data Type: MONEY. The price (money with currency) of item 5 of the table, + // e.g., 30 USD. The currency must match one of the available currencies. + ITEM_5_PRICE = 502; + + // Data Type: STRING. The price unit of item 5 of the table. Must match one + // of the predefined price units. + ITEM_5_UNIT = 503; + + // Data Type: URL_LIST. The final URLs of item 5 of the table when using + // Upgraded URLs. + ITEM_5_FINAL_URLS = 504; + + // Data Type: URL_LIST. The final mobile URLs of item 5 of the table when + // using Upgraded URLs. + ITEM_5_FINAL_MOBILE_URLS = 505; + + // Data Type: STRING. The header of item 6 of the table. + ITEM_6_HEADER = 600; + + // Data Type: STRING. The description of item 6 of the table. + ITEM_6_DESCRIPTION = 601; + + // Data Type: MONEY. The price (money with currency) of item 6 of the table, + // e.g., 30 USD. The currency must match one of the available currencies. + ITEM_6_PRICE = 602; + + // Data Type: STRING. The price unit of item 6 of the table. Must match one + // of the predefined price units. + ITEM_6_UNIT = 603; + + // Data Type: URL_LIST. The final URLs of item 6 of the table when using + // Upgraded URLs. + ITEM_6_FINAL_URLS = 604; + + // Data Type: URL_LIST. The final mobile URLs of item 6 of the table when + // using Upgraded URLs. + ITEM_6_FINAL_MOBILE_URLS = 605; + + // Data Type: STRING. The header of item 7 of the table. + ITEM_7_HEADER = 700; + + // Data Type: STRING. The description of item 7 of the table. + ITEM_7_DESCRIPTION = 701; + + // Data Type: MONEY. The price (money with currency) of item 7 of the table, + // e.g., 30 USD. The currency must match one of the available currencies. + ITEM_7_PRICE = 702; + + // Data Type: STRING. The price unit of item 7 of the table. Must match one + // of the predefined price units. + ITEM_7_UNIT = 703; + + // Data Type: URL_LIST. The final URLs of item 7 of the table when using + // Upgraded URLs. + ITEM_7_FINAL_URLS = 704; + + // Data Type: URL_LIST. The final mobile URLs of item 7 of the table when + // using Upgraded URLs. + ITEM_7_FINAL_MOBILE_URLS = 705; + + // Data Type: STRING. The header of item 8 of the table. + ITEM_8_HEADER = 800; + + // Data Type: STRING. The description of item 8 of the table. + ITEM_8_DESCRIPTION = 801; + + // Data Type: MONEY. The price (money with currency) of item 8 of the table, + // e.g., 30 USD. The currency must match one of the available currencies. + ITEM_8_PRICE = 802; + + // Data Type: STRING. The price unit of item 8 of the table. Must match one + // of the predefined price units. + ITEM_8_UNIT = 803; + + // Data Type: URL_LIST. The final URLs of item 8 of the table when using + // Upgraded URLs. + ITEM_8_FINAL_URLS = 804; + + // Data Type: URL_LIST. The final mobile URLs of item 8 of the table when + // using Upgraded URLs. + ITEM_8_FINAL_MOBILE_URLS = 805; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/product_bidding_category_level.proto b/third_party/googleapis/google/ads/googleads/v6/enums/product_bidding_category_level.proto new file mode 100644 index 000000000..a008456fe --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/product_bidding_category_level.proto @@ -0,0 +1,57 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "ProductBiddingCategoryLevelProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Level of a product bidding category. +message ProductBiddingCategoryLevelEnum { + // Enum describing the level of the product bidding category. + enum ProductBiddingCategoryLevel { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Level 1. + LEVEL1 = 2; + + // Level 2. + LEVEL2 = 3; + + // Level 3. + LEVEL3 = 4; + + // Level 4. + LEVEL4 = 5; + + // Level 5. + LEVEL5 = 6; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/product_bidding_category_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/product_bidding_category_status.proto new file mode 100644 index 000000000..c1c662f31 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/product_bidding_category_status.proto @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "ProductBiddingCategoryStatusProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing bidding schemes. + +// Status of the product bidding category. +message ProductBiddingCategoryStatusEnum { + // Enum describing the status of the product bidding category. + enum ProductBiddingCategoryStatus { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // The category is active and can be used for bidding. + ACTIVE = 2; + + // The category is obsolete. Used only for reporting purposes. + OBSOLETE = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/product_channel.proto b/third_party/googleapis/google/ads/googleads/v6/enums/product_channel.proto new file mode 100644 index 000000000..8e1cabcec --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/product_channel.proto @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "ProductChannelProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing bidding schemes. + +// Locality of a product offer. +message ProductChannelEnum { + // Enum describing the locality of a product offer. + enum ProductChannel { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // The item is sold online. + ONLINE = 2; + + // The item is sold in local stores. + LOCAL = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/product_channel_exclusivity.proto b/third_party/googleapis/google/ads/googleads/v6/enums/product_channel_exclusivity.proto new file mode 100644 index 000000000..22398ae91 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/product_channel_exclusivity.proto @@ -0,0 +1,52 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "ProductChannelExclusivityProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing bidding schemes. + +// Availability of a product offer. +message ProductChannelExclusivityEnum { + // Enum describing the availability of a product offer. + enum ProductChannelExclusivity { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // The item is sold through one channel only, either local stores or online + // as indicated by its ProductChannel. + SINGLE_CHANNEL = 2; + + // The item is matched to its online or local stores counterpart, indicating + // it is available for purchase in both ShoppingProductChannels. + MULTI_CHANNEL = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/product_condition.proto b/third_party/googleapis/google/ads/googleads/v6/enums/product_condition.proto new file mode 100644 index 000000000..eefa0e829 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/product_condition.proto @@ -0,0 +1,53 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "ProductConditionProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing bidding schemes. + +// Condition of a product offer. +message ProductConditionEnum { + // Enum describing the condition of a product offer. + enum ProductCondition { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // The product condition is new. + NEW = 3; + + // The product condition is refurbished. + REFURBISHED = 4; + + // The product condition is used. + USED = 5; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/product_custom_attribute_index.proto b/third_party/googleapis/google/ads/googleads/v6/enums/product_custom_attribute_index.proto similarity index 81% rename from third_party/googleapis/google/ads/googleads/v3/enums/product_custom_attribute_index.proto rename to third_party/googleapis/google/ads/googleads/v6/enums/product_custom_attribute_index.proto index f4c5981db..cbcc4b128 100644 --- a/third_party/googleapis/google/ads/googleads/v3/enums/product_custom_attribute_index.proto +++ b/third_party/googleapis/google/ads/googleads/v6/enums/product_custom_attribute_index.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -14,18 +14,18 @@ syntax = "proto3"; -package google.ads.googleads.v3.enums; +package google.ads.googleads.v6.enums; import "google/api/annotations.proto"; -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; option java_multiple_files = true; option java_outer_classname = "ProductCustomAttributeIndexProto"; -option java_package = "com.google.ads.googleads.v3.enums"; +option java_package = "com.google.ads.googleads.v6.enums"; option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; // Proto file describing product custom attributes. diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/product_type_level.proto b/third_party/googleapis/google/ads/googleads/v6/enums/product_type_level.proto new file mode 100644 index 000000000..668eeba82 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/product_type_level.proto @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "ProductTypeLevelProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing bidding schemes. + +// Level of the type of a product offer. +message ProductTypeLevelEnum { + // Enum describing the level of the type of a product offer. + enum ProductTypeLevel { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Level 1. + LEVEL1 = 7; + + // Level 2. + LEVEL2 = 8; + + // Level 3. + LEVEL3 = 9; + + // Level 4. + LEVEL4 = 10; + + // Level 5. + LEVEL5 = 11; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/promotion_extension_discount_modifier.proto b/third_party/googleapis/google/ads/googleads/v6/enums/promotion_extension_discount_modifier.proto new file mode 100644 index 000000000..e178d25c0 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/promotion_extension_discount_modifier.proto @@ -0,0 +1,48 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "PromotionExtensionDiscountModifierProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing promotion extension discount modifier. + +// Container for enum describing possible a promotion extension +// discount modifier. +message PromotionExtensionDiscountModifierEnum { + // A promotion extension discount modifier. + enum PromotionExtensionDiscountModifier { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // 'Up to'. + UP_TO = 2; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/promotion_extension_occasion.proto b/third_party/googleapis/google/ads/googleads/v6/enums/promotion_extension_occasion.proto new file mode 100644 index 000000000..407ac534d --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/promotion_extension_occasion.proto @@ -0,0 +1,157 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "PromotionExtensionOccasionProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing promotion extension occasion. + +// Container for enum describing a promotion extension occasion. +// For more information about the occasions please check: +// https://support.google.com/google-ads/answer/7367521 +message PromotionExtensionOccasionEnum { + // A promotion extension occasion. + enum PromotionExtensionOccasion { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // New Year's. + NEW_YEARS = 2; + + // Chinese New Year. + CHINESE_NEW_YEAR = 3; + + // Valentine's Day. + VALENTINES_DAY = 4; + + // Easter. + EASTER = 5; + + // Mother's Day. + MOTHERS_DAY = 6; + + // Father's Day. + FATHERS_DAY = 7; + + // Labor Day. + LABOR_DAY = 8; + + // Back To School. + BACK_TO_SCHOOL = 9; + + // Halloween. + HALLOWEEN = 10; + + // Black Friday. + BLACK_FRIDAY = 11; + + // Cyber Monday. + CYBER_MONDAY = 12; + + // Christmas. + CHRISTMAS = 13; + + // Boxing Day. + BOXING_DAY = 14; + + // Independence Day in any country. + INDEPENDENCE_DAY = 15; + + // National Day in any country. + NATIONAL_DAY = 16; + + // End of any season. + END_OF_SEASON = 17; + + // Winter Sale. + WINTER_SALE = 18; + + // Summer sale. + SUMMER_SALE = 19; + + // Fall Sale. + FALL_SALE = 20; + + // Spring Sale. + SPRING_SALE = 21; + + // Ramadan. + RAMADAN = 22; + + // Eid al-Fitr. + EID_AL_FITR = 23; + + // Eid al-Adha. + EID_AL_ADHA = 24; + + // Singles Day. + SINGLES_DAY = 25; + + // Women's Day. + WOMENS_DAY = 26; + + // Holi. + HOLI = 27; + + // Parent's Day. + PARENTS_DAY = 28; + + // St. Nicholas Day. + ST_NICHOLAS_DAY = 29; + + // Carnival. + CARNIVAL = 30; + + // Epiphany, also known as Three Kings' Day. + EPIPHANY = 31; + + // Rosh Hashanah. + ROSH_HASHANAH = 32; + + // Passover. + PASSOVER = 33; + + // Hanukkah. + HANUKKAH = 34; + + // Diwali. + DIWALI = 35; + + // Navratri. + NAVRATRI = 36; + + // Available in Thai: Songkran. + SONGKRAN = 37; + + // Available in Japanese: Year-end Gift. + YEAR_END_GIFT = 38; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/promotion_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v6/enums/promotion_placeholder_field.proto new file mode 100644 index 000000000..49b3deb8e --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/promotion_placeholder_field.proto @@ -0,0 +1,95 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "PromotionPlaceholderFieldProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing Promotion placeholder fields. + +// Values for Promotion placeholder fields. +message PromotionPlaceholderFieldEnum { + // Possible values for Promotion placeholder fields. + enum PromotionPlaceholderField { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Data Type: STRING. The text that appears on the ad when the extension is + // shown. + PROMOTION_TARGET = 2; + + // Data Type: STRING. Allows you to add "up to" phrase to the promotion, + // in case you have variable promotion rates. + DISCOUNT_MODIFIER = 3; + + // Data Type: INT64. Takes a value in micros, where 1 million micros + // represents 1%, and is shown as a percentage when rendered. + PERCENT_OFF = 4; + + // Data Type: MONEY. Requires a currency and an amount of money. + MONEY_AMOUNT_OFF = 5; + + // Data Type: STRING. A string that the user enters to get the discount. + PROMOTION_CODE = 6; + + // Data Type: MONEY. A minimum spend before the user qualifies for the + // promotion. + ORDERS_OVER_AMOUNT = 7; + + // Data Type: DATE. The start date of the promotion. + PROMOTION_START = 8; + + // Data Type: DATE. The end date of the promotion. + PROMOTION_END = 9; + + // Data Type: STRING. Describes the associated event for the promotion using + // one of the PromotionExtensionOccasion enum values, for example NEW_YEARS. + OCCASION = 10; + + // Data Type: URL_LIST. Final URLs to be used in the ad when using Upgraded + // URLs. + FINAL_URLS = 11; + + // Data Type: URL_LIST. Final mobile URLs for the ad when using Upgraded + // URLs. + FINAL_MOBILE_URLS = 12; + + // Data Type: URL. Tracking template for the ad when using Upgraded URLs. + TRACKING_URL = 13; + + // Data Type: STRING. A string represented by a language code for the + // promotion. + LANGUAGE = 14; + + // Data Type: STRING. Final URL suffix for the ad when using parallel + // tracking. + FINAL_URL_SUFFIX = 15; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/proximity_radius_units.proto b/third_party/googleapis/google/ads/googleads/v6/enums/proximity_radius_units.proto new file mode 100644 index 000000000..acee64dff --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/proximity_radius_units.proto @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "ProximityRadiusUnitsProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing proximity radius units. + +// Container for enum describing unit of radius in proximity. +message ProximityRadiusUnitsEnum { + // The unit of radius distance in proximity (e.g. MILES) + enum ProximityRadiusUnits { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Miles + MILES = 2; + + // Kilometers + KILOMETERS = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/quality_score_bucket.proto b/third_party/googleapis/google/ads/googleads/v6/enums/quality_score_bucket.proto new file mode 100644 index 000000000..6ffcec2d9 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/quality_score_bucket.proto @@ -0,0 +1,53 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "QualityScoreBucketProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing quality score buckets. + +// The relative performance compared to other advertisers. +message QualityScoreBucketEnum { + // Enum listing the possible quality score buckets. + enum QualityScoreBucket { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Quality of the creative is below average. + BELOW_AVERAGE = 2; + + // Quality of the creative is average. + AVERAGE = 3; + + // Quality of the creative is above average. + ABOVE_AVERAGE = 4; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/reach_plan_ad_length.proto b/third_party/googleapis/google/ads/googleads/v6/enums/reach_plan_ad_length.proto new file mode 100644 index 000000000..c4303214e --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/reach_plan_ad_length.proto @@ -0,0 +1,53 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "ReachPlanAdLengthProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing ad lengths of a plannable video ad. + +// Message describing length of a plannable video ad. +message ReachPlanAdLengthEnum { + // Possible ad length values. + enum ReachPlanAdLength { + // Not specified. + UNSPECIFIED = 0; + + // The value is unknown in this version. + UNKNOWN = 1; + + // 6 seconds long ad. + SIX_SECONDS = 2; + + // 15 or 20 seconds long ad. + FIFTEEN_OR_TWENTY_SECONDS = 3; + + // More than 20 seconds long ad. + TWENTY_SECONDS_OR_MORE = 4; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/reach_plan_age_range.proto b/third_party/googleapis/google/ads/googleads/v6/enums/reach_plan_age_range.proto new file mode 100644 index 000000000..b4322ab8c --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/reach_plan_age_range.proto @@ -0,0 +1,122 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "ReachPlanAgeRangeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing a plannable age range. + +// Message describing plannable age ranges. +message ReachPlanAgeRangeEnum { + // Possible plannable age range values. + enum ReachPlanAgeRange { + // Not specified. + UNSPECIFIED = 0; + + // The value is unknown in this version. + UNKNOWN = 1; + + // Between 18 and 24 years old. + AGE_RANGE_18_24 = 503001; + + // Between 18 and 34 years old. + AGE_RANGE_18_34 = 2; + + // Between 18 and 44 years old. + AGE_RANGE_18_44 = 3; + + // Between 18 and 49 years old. + AGE_RANGE_18_49 = 4; + + // Between 18 and 54 years old. + AGE_RANGE_18_54 = 5; + + // Between 18 and 64 years old. + AGE_RANGE_18_64 = 6; + + // Between 18 and 65+ years old. + AGE_RANGE_18_65_UP = 7; + + // Between 21 and 34 years old. + AGE_RANGE_21_34 = 8; + + // Between 25 and 34 years old. + AGE_RANGE_25_34 = 503002; + + // Between 25 and 44 years old. + AGE_RANGE_25_44 = 9; + + // Between 25 and 49 years old. + AGE_RANGE_25_49 = 10; + + // Between 25 and 54 years old. + AGE_RANGE_25_54 = 11; + + // Between 25 and 64 years old. + AGE_RANGE_25_64 = 12; + + // Between 25 and 65+ years old. + AGE_RANGE_25_65_UP = 13; + + // Between 35 and 44 years old. + AGE_RANGE_35_44 = 503003; + + // Between 35 and 49 years old. + AGE_RANGE_35_49 = 14; + + // Between 35 and 54 years old. + AGE_RANGE_35_54 = 15; + + // Between 35 and 64 years old. + AGE_RANGE_35_64 = 16; + + // Between 35 and 65+ years old. + AGE_RANGE_35_65_UP = 17; + + // Between 45 and 54 years old. + AGE_RANGE_45_54 = 503004; + + // Between 45 and 64 years old. + AGE_RANGE_45_64 = 18; + + // Between 45 and 65+ years old. + AGE_RANGE_45_65_UP = 19; + + // Between 50 and 65+ years old. + AGE_RANGE_50_65_UP = 20; + + // Between 55 and 64 years old. + AGE_RANGE_55_64 = 503005; + + // Between 55 and 65+ years old. + AGE_RANGE_55_65_UP = 21; + + // 65 years old and beyond. + AGE_RANGE_65_UP = 503006; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/reach_plan_network.proto b/third_party/googleapis/google/ads/googleads/v6/enums/reach_plan_network.proto similarity index 80% rename from third_party/googleapis/google/ads/googleads/v3/enums/reach_plan_network.proto rename to third_party/googleapis/google/ads/googleads/v6/enums/reach_plan_network.proto index 5c3029e6c..096e96a4b 100644 --- a/third_party/googleapis/google/ads/googleads/v3/enums/reach_plan_network.proto +++ b/third_party/googleapis/google/ads/googleads/v6/enums/reach_plan_network.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -14,18 +14,18 @@ syntax = "proto3"; -package google.ads.googleads.v3.enums; +package google.ads.googleads.v6.enums; import "google/api/annotations.proto"; -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; option java_multiple_files = true; option java_outer_classname = "ReachPlanNetworkProto"; -option java_package = "com.google.ads.googleads.v3.enums"; +option java_package = "com.google.ads.googleads.v6.enums"; option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; // Proto file describing a plannable network. diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/real_estate_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v6/enums/real_estate_placeholder_field.proto new file mode 100644 index 000000000..81d37b91c --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/real_estate_placeholder_field.proto @@ -0,0 +1,115 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "RealEstatePlaceholderFieldProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing Real Estate placeholder fields. + +// Values for Real Estate placeholder fields. +// For more information about dynamic remarketing feeds, see +// https://support.google.com/google-ads/answer/6053288. +message RealEstatePlaceholderFieldEnum { + // Possible values for Real Estate placeholder fields. + enum RealEstatePlaceholderField { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Data Type: STRING. Unique ID. + LISTING_ID = 2; + + // Data Type: STRING. Main headline with listing name to be shown in dynamic + // ad. + LISTING_NAME = 3; + + // Data Type: STRING. City name to be shown in dynamic ad. + CITY_NAME = 4; + + // Data Type: STRING. Description of listing to be shown in dynamic ad. + DESCRIPTION = 5; + + // Data Type: STRING. Complete listing address, including postal code. + ADDRESS = 6; + + // Data Type: STRING. Price to be shown in the ad. + // Example: "100.00 USD" + PRICE = 7; + + // Data Type: STRING. Formatted price to be shown in the ad. + // Example: "Starting at $100.00 USD", "$80 - $100" + FORMATTED_PRICE = 8; + + // Data Type: URL. Image to be displayed in the ad. + IMAGE_URL = 9; + + // Data Type: STRING. Type of property (house, condo, apartment, etc.) used + // to group like items together for recommendation engine. + PROPERTY_TYPE = 10; + + // Data Type: STRING. Type of listing (resale, rental, foreclosure, etc.) + // used to group like items together for recommendation engine. + LISTING_TYPE = 11; + + // Data Type: STRING_LIST. Keywords used for product retrieval. + CONTEXTUAL_KEYWORDS = 12; + + // Data Type: URL_LIST. Final URLs to be used in ad when using Upgraded + // URLs; the more specific the better (e.g. the individual URL of a specific + // listing and its location). + FINAL_URLS = 13; + + // Data Type: URL_LIST. Final mobile URLs for the ad when using Upgraded + // URLs. + FINAL_MOBILE_URLS = 14; + + // Data Type: URL. Tracking template for the ad when using Upgraded URLs. + TRACKING_URL = 15; + + // Data Type: STRING. Android app link. Must be formatted as: + // android-app://{package_id}/{scheme}/{host_path}. + // The components are defined as follows: + // package_id: app ID as specified in Google Play. + // scheme: the scheme to pass to the application. Can be HTTP, or a custom + // scheme. + // host_path: identifies the specific content within your application. + ANDROID_APP_LINK = 16; + + // Data Type: STRING_LIST. List of recommended listing IDs to show together + // with this item. + SIMILAR_LISTING_IDS = 17; + + // Data Type: STRING. iOS app link. + IOS_APP_LINK = 18; + + // Data Type: INT64. iOS app store ID. + IOS_APP_STORE_ID = 19; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/recommendation_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/recommendation_type.proto new file mode 100644 index 000000000..9dda05bce --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/recommendation_type.proto @@ -0,0 +1,108 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "RecommendationTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing Recommendation types. + +// Container for enum describing types of recommendations. +message RecommendationTypeEnum { + // Types of recommendations. + enum RecommendationType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Budget recommendation for campaigns that are currently budget-constrained + // (as opposed to the FORECASTING_CAMPAIGN_BUDGET recommendation, which + // applies to campaigns that are expected to become budget-constrained in + // the future). + CAMPAIGN_BUDGET = 2; + + // Keyword recommendation. + KEYWORD = 3; + + // Recommendation to add a new text ad. + TEXT_AD = 4; + + // Recommendation to update a campaign to use a Target CPA bidding strategy. + TARGET_CPA_OPT_IN = 5; + + // Recommendation to update a campaign to use the Maximize Conversions + // bidding strategy. + MAXIMIZE_CONVERSIONS_OPT_IN = 6; + + // Recommendation to enable Enhanced Cost Per Click for a campaign. + ENHANCED_CPC_OPT_IN = 7; + + // Recommendation to start showing your campaign's ads on Google Search + // Partners Websites. + SEARCH_PARTNERS_OPT_IN = 8; + + // Recommendation to update a campaign to use a Maximize Clicks bidding + // strategy. + MAXIMIZE_CLICKS_OPT_IN = 9; + + // Recommendation to start using the "Optimize" ad rotation setting for the + // given ad group. + OPTIMIZE_AD_ROTATION = 10; + + // Recommendation to add callout extensions to a campaign. + CALLOUT_EXTENSION = 11; + + // Recommendation to add sitelink extensions to a campaign. + SITELINK_EXTENSION = 12; + + // Recommendation to add call extensions to a campaign. + CALL_EXTENSION = 13; + + // Recommendation to change an existing keyword from one match type to a + // broader match type. + KEYWORD_MATCH_TYPE = 14; + + // Recommendation to move unused budget from one budget to a constrained + // budget. + MOVE_UNUSED_BUDGET = 15; + + // Budget recommendation for campaigns that are expected to become + // budget-constrained in the future (as opposed to the CAMPAIGN_BUDGET + // recommendation, which applies to campaigns that are currently + // budget-constrained). + FORECASTING_CAMPAIGN_BUDGET = 16; + + // Recommendation to update a campaign to use a Target ROAS bidding + // strategy. + TARGET_ROAS_OPT_IN = 17; + + // Recommendation to add a new responsive search ad. + RESPONSIVE_SEARCH_AD = 18; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/resource_change_operation.proto b/third_party/googleapis/google/ads/googleads/v6/enums/resource_change_operation.proto new file mode 100644 index 000000000..5d4dc799d --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/resource_change_operation.proto @@ -0,0 +1,55 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "ResourceChangeOperationProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing the resource change operations in change event. + +// Container for enum describing resource change operations +// in the ChangeEvent resource. +message ResourceChangeOperationEnum { + // The operation on the changed resource in change_event resource. + enum ResourceChangeOperation { + // No value has been specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents an unclassified operation unknown + // in this version. + UNKNOWN = 1; + + // The resource was created. + CREATE = 2; + + // The resource was modified. + UPDATE = 3; + + // The resource was removed. + REMOVE = 4; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/response_content_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/response_content_type.proto new file mode 100644 index 000000000..a37829035 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/response_content_type.proto @@ -0,0 +1,48 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "ResponseContentTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing the response content types used in mutate operations. + +// Container for possible response content types. +message ResponseContentTypeEnum { + // Possible response content types. + enum ResponseContentType { + // Not specified. Will return the resource name only in the response. + UNSPECIFIED = 0; + + // The mutate response will be the resource name. + RESOURCE_NAME_ONLY = 1; + + // The mutate response will be the resource name and the resource with + // all mutable fields. + MUTABLE_RESOURCE = 2; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/search_engine_results_page_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/search_engine_results_page_type.proto new file mode 100644 index 000000000..a4a6c9c1e --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/search_engine_results_page_type.proto @@ -0,0 +1,54 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "SearchEngineResultsPageTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing search engine results page types. + +// The type of the search engine results page. +message SearchEngineResultsPageTypeEnum { + // The type of the search engine results page. + enum SearchEngineResultsPageType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Only ads were contained in the search engine results page. + ADS_ONLY = 2; + + // Only organic results were contained in the search engine results page. + ORGANIC_ONLY = 3; + + // Both ads and organic results were contained in the search engine results + // page. + ADS_AND_ORGANIC = 4; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/search_term_match_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/search_term_match_type.proto new file mode 100644 index 000000000..e370f2be8 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/search_term_match_type.proto @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "SearchTermMatchTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing search term match types. + +// Container for enum describing match types for a keyword triggering an ad. +message SearchTermMatchTypeEnum { + // Possible match types for a keyword triggering an ad, including variants. + enum SearchTermMatchType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Broad match. + BROAD = 2; + + // Exact match. + EXACT = 3; + + // Phrase match. + PHRASE = 4; + + // Exact match (close variant). + NEAR_EXACT = 5; + + // Phrase match (close variant). + NEAR_PHRASE = 6; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/search_term_targeting_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/search_term_targeting_status.proto new file mode 100644 index 000000000..f20d1bcdb --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/search_term_targeting_status.proto @@ -0,0 +1,58 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "SearchTermTargetingStatusProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing search term targeting statuses. + +// Container for enum indicating whether a search term is one of your targeted +// or excluded keywords. +message SearchTermTargetingStatusEnum { + // Indicates whether the search term is one of your targeted or excluded + // keywords. + enum SearchTermTargetingStatus { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Search term is added to targeted keywords. + ADDED = 2; + + // Search term matches a negative keyword. + EXCLUDED = 3; + + // Search term has been both added and excluded. + ADDED_EXCLUDED = 4; + + // Search term is neither targeted nor excluded. + NONE = 5; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/served_asset_field_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/served_asset_field_type.proto new file mode 100644 index 000000000..9d9970cea --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/served_asset_field_type.proto @@ -0,0 +1,61 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "ServedAssetFieldTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing policy review statuses. + +// Container for enum describing possible asset field types. +message ServedAssetFieldTypeEnum { + // The possible asset field types. + enum ServedAssetFieldType { + // No value has been specified. + UNSPECIFIED = 0; + + // The received value is not known in this version. + // + // This is a response-only value. + UNKNOWN = 1; + + // The asset is used in headline 1. + HEADLINE_1 = 2; + + // The asset is used in headline 2. + HEADLINE_2 = 3; + + // The asset is used in headline 3. + HEADLINE_3 = 4; + + // The asset is used in description 1. + DESCRIPTION_1 = 5; + + // The asset is used in description 2. + DESCRIPTION_2 = 6; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/shared_set_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/shared_set_status.proto new file mode 100644 index 000000000..d8297ddc8 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/shared_set_status.proto @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "SharedSetStatusProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing shared set statuses. + +// Container for enum describing types of shared set statuses. +message SharedSetStatusEnum { + // Enum listing the possible shared set statuses. + enum SharedSetStatus { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // The shared set is enabled. + ENABLED = 2; + + // The shared set is removed and can no longer be used. + REMOVED = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/shared_set_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/shared_set_type.proto new file mode 100644 index 000000000..1bfcd81fb --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/shared_set_type.proto @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "SharedSetTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing shared set types. + +// Container for enum describing types of shared sets. +message SharedSetTypeEnum { + // Enum listing the possible shared set types. + enum SharedSetType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // A set of keywords that can be excluded from targeting. + NEGATIVE_KEYWORDS = 2; + + // A set of placements that can be excluded from targeting. + NEGATIVE_PLACEMENTS = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/simulation_modification_method.proto b/third_party/googleapis/google/ads/googleads/v6/enums/simulation_modification_method.proto new file mode 100644 index 000000000..9952a5062 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/simulation_modification_method.proto @@ -0,0 +1,54 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "SimulationModificationMethodProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing simulation modification methods. + +// Container for enum describing the method by which a simulation modifies +// a field. +message SimulationModificationMethodEnum { + // Enum describing the method by which a simulation modifies a field. + enum SimulationModificationMethod { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // The values in a simulation were applied to all children of a given + // resource uniformly. Overrides on child resources were not respected. + UNIFORM = 2; + + // The values in a simulation were applied to the given resource. + // Overrides on child resources were respected, and traffic estimates + // do not include these resources. + DEFAULT = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/simulation_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/simulation_type.proto new file mode 100644 index 000000000..cdfee0b49 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/simulation_type.proto @@ -0,0 +1,62 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "SimulationTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing simulation types. + +// Container for enum describing the field a simulation modifies. +message SimulationTypeEnum { + // Enum describing the field a simulation modifies. + enum SimulationType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // The simulation is for a CPC bid. + CPC_BID = 2; + + // The simulation is for a CPV bid. + CPV_BID = 3; + + // The simulation is for a CPA target. + TARGET_CPA = 4; + + // The simulation is for a bid modifier. + BID_MODIFIER = 5; + + // The simulation is for a ROAS target. + TARGET_ROAS = 6; + + // The simulation is for a percent CPC bid. + PERCENT_CPC_BID = 7; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/sitelink_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v6/enums/sitelink_placeholder_field.proto new file mode 100644 index 000000000..541d1b70e --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/sitelink_placeholder_field.proto @@ -0,0 +1,69 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "SitelinkPlaceholderFieldProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing Sitelink placeholder fields. + +// Values for Sitelink placeholder fields. +message SitelinkPlaceholderFieldEnum { + // Possible values for Sitelink placeholder fields. + enum SitelinkPlaceholderField { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Data Type: STRING. The link text for your sitelink. + TEXT = 2; + + // Data Type: STRING. First line of the sitelink description. + LINE_1 = 3; + + // Data Type: STRING. Second line of the sitelink description. + LINE_2 = 4; + + // Data Type: URL_LIST. Final URLs for the sitelink when using Upgraded + // URLs. + FINAL_URLS = 5; + + // Data Type: URL_LIST. Final Mobile URLs for the sitelink when using + // Upgraded URLs. + FINAL_MOBILE_URLS = 6; + + // Data Type: URL. Tracking template for the sitelink when using Upgraded + // URLs. + TRACKING_URL = 7; + + // Data Type: STRING. Final URL suffix for sitelink when using parallel + // tracking. + FINAL_URL_SUFFIX = 8; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/slot.proto b/third_party/googleapis/google/ads/googleads/v6/enums/slot.proto new file mode 100644 index 000000000..34eb8474d --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/slot.proto @@ -0,0 +1,65 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "SlotProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing slots. + +// Container for enumeration of possible positions of the Ad. +message SlotEnum { + // Enumerates possible positions of the Ad. + enum Slot { + // Not specified. + UNSPECIFIED = 0; + + // The value is unknown in this version. + UNKNOWN = 1; + + // Google search: Side. + SEARCH_SIDE = 2; + + // Google search: Top. + SEARCH_TOP = 3; + + // Google search: Other. + SEARCH_OTHER = 4; + + // Google Display Network. + CONTENT = 5; + + // Search partners: Top. + SEARCH_PARTNER_TOP = 6; + + // Search partners: Other. + SEARCH_PARTNER_OTHER = 7; + + // Cross-network. + MIXED = 8; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/spending_limit_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/spending_limit_type.proto new file mode 100644 index 000000000..501c17dc3 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/spending_limit_type.proto @@ -0,0 +1,48 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "SpendingLimitTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing SpendingLimit types. + +// Message describing spending limit types. +message SpendingLimitTypeEnum { + // The possible spending limit types used by certain resources as an + // alternative to absolute money values in micros. + enum SpendingLimitType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Infinite, indicates unlimited spending power. + INFINITE = 2; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/structured_snippet_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v6/enums/structured_snippet_placeholder_field.proto new file mode 100644 index 000000000..9b4a9b528 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/structured_snippet_placeholder_field.proto @@ -0,0 +1,55 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "StructuredSnippetPlaceholderFieldProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing Structured Snippet placeholder fields. + +// Values for Structured Snippet placeholder fields. +message StructuredSnippetPlaceholderFieldEnum { + // Possible values for Structured Snippet placeholder fields. + enum StructuredSnippetPlaceholderField { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Data Type: STRING. The category of snippet of your products/services. + // Must match exactly one of the predefined structured snippets headers. + // For a list, visit + // https://developers.google.com/adwords/api/docs/appendix/structured-snippet-headers + HEADER = 2; + + // Data Type: STRING_LIST. Text values that describe your products/services. + // All text must be family safe. Special or non-ASCII characters are not + // permitted. A snippet can be at most 25 characters. + SNIPPETS = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v3/enums/summary_row_setting.proto b/third_party/googleapis/google/ads/googleads/v6/enums/summary_row_setting.proto similarity index 81% rename from third_party/googleapis/google/ads/googleads/v3/enums/summary_row_setting.proto rename to third_party/googleapis/google/ads/googleads/v6/enums/summary_row_setting.proto index 010df227c..25d18c36a 100644 --- a/third_party/googleapis/google/ads/googleads/v3/enums/summary_row_setting.proto +++ b/third_party/googleapis/google/ads/googleads/v6/enums/summary_row_setting.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -14,18 +14,18 @@ syntax = "proto3"; -package google.ads.googleads.v3.enums; +package google.ads.googleads.v6.enums; import "google/api/annotations.proto"; -option csharp_namespace = "Google.Ads.GoogleAds.V3.Enums"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/enums;enums"; +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; option java_multiple_files = true; option java_outer_classname = "SummaryRowSettingProto"; -option java_package = "com.google.ads.googleads.v3.enums"; +option java_package = "com.google.ads.googleads.v6.enums"; option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Enums"; -option ruby_package = "Google::Ads::GoogleAds::V3::Enums"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; // Proto file describing summary row setting. diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/system_managed_entity_source.proto b/third_party/googleapis/google/ads/googleads/v6/enums/system_managed_entity_source.proto new file mode 100644 index 000000000..607d91cf0 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/system_managed_entity_source.proto @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "SystemManagedEntitySourceProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing system managed entity sources. + +// Container for enum describing possible system managed entity sources. +message SystemManagedResourceSourceEnum { + // Enum listing the possible system managed entity sources. + enum SystemManagedResourceSource { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Generated ad variations experiment ad. + AD_VARIATIONS = 2; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/target_cpa_opt_in_recommendation_goal.proto b/third_party/googleapis/google/ads/googleads/v6/enums/target_cpa_opt_in_recommendation_goal.proto new file mode 100644 index 000000000..9fb880db2 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/target_cpa_opt_in_recommendation_goal.proto @@ -0,0 +1,57 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "TargetCpaOptInRecommendationGoalProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing TargetCpaOptIn recommendation goals. + +// Container for enum describing goals for TargetCpaOptIn recommendation. +message TargetCpaOptInRecommendationGoalEnum { + // Goal of TargetCpaOptIn recommendation. + enum TargetCpaOptInRecommendationGoal { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Recommendation to set Target CPA to maintain the same cost. + SAME_COST = 2; + + // Recommendation to set Target CPA to maintain the same conversions. + SAME_CONVERSIONS = 3; + + // Recommendation to set Target CPA to maintain the same CPA. + SAME_CPA = 4; + + // Recommendation to set Target CPA to a value that is as close as possible + // to, yet lower than, the actual CPA (computed for past 28 days). + CLOSEST_CPA = 5; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/target_impression_share_location.proto b/third_party/googleapis/google/ads/googleads/v6/enums/target_impression_share_location.proto new file mode 100644 index 000000000..73fa2251a --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/target_impression_share_location.proto @@ -0,0 +1,55 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "TargetImpressionShareLocationProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing target impression share goal. + +// Container for enum describing where on the first search results page the +// automated bidding system should target impressions for the +// TargetImpressionShare bidding strategy. +message TargetImpressionShareLocationEnum { + // Enum describing possible goals. + enum TargetImpressionShareLocation { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Any location on the web page. + ANYWHERE_ON_PAGE = 2; + + // Top box of ads. + TOP_OF_PAGE = 3; + + // Top slot in the top box of ads. + ABSOLUTE_TOP_OF_PAGE = 4; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/targeting_dimension.proto b/third_party/googleapis/google/ads/googleads/v6/enums/targeting_dimension.proto new file mode 100644 index 000000000..8834f50b3 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/targeting_dimension.proto @@ -0,0 +1,74 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "TargetingDimensionProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing criteria types. + +// The dimensions that can be targeted. +message TargetingDimensionEnum { + // Enum describing possible targeting dimensions. + enum TargetingDimension { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Keyword criteria, e.g. 'mars cruise'. KEYWORD may be used as a custom bid + // dimension. Keywords are always a targeting dimension, so may not be set + // as a target "ALL" dimension with TargetRestriction. + KEYWORD = 2; + + // Audience criteria, which include user list, user interest, custom + // affinity, and custom in market. + AUDIENCE = 3; + + // Topic criteria for targeting categories of content, e.g. + // 'category::Animals>Pets' Used for Display and Video targeting. + TOPIC = 4; + + // Criteria for targeting gender. + GENDER = 5; + + // Criteria for targeting age ranges. + AGE_RANGE = 6; + + // Placement criteria, which include websites like 'www.flowers4sale.com', + // as well as mobile applications, mobile app categories, YouTube videos, + // and YouTube channels. + PLACEMENT = 7; + + // Criteria for parental status targeting. + PARENTAL_STATUS = 8; + + // Criteria for income range targeting. + INCOME_RANGE = 9; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/time_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/time_type.proto new file mode 100644 index 000000000..0bc249f3e --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/time_type.proto @@ -0,0 +1,51 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "TimeTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing TimeType types. + +// Message describing time types. +message TimeTypeEnum { + // The possible time types used by certain resources as an alternative to + // absolute timestamps. + enum TimeType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // As soon as possible. + NOW = 2; + + // An infinite point in the future. + FOREVER = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/tracking_code_page_format.proto b/third_party/googleapis/google/ads/googleads/v6/enums/tracking_code_page_format.proto new file mode 100644 index 000000000..5d7694719 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/tracking_code_page_format.proto @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "TrackingCodePageFormatProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Container for enum describing the format of the web page where the tracking +// tag and snippet will be installed. +message TrackingCodePageFormatEnum { + // The format of the web page where the tracking tag and snippet will be + // installed. + enum TrackingCodePageFormat { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Standard HTML page format. + HTML = 2; + + // Google AMP page format. + AMP = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/tracking_code_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/tracking_code_type.proto new file mode 100644 index 000000000..a4276ca8d --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/tracking_code_type.proto @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "TrackingCodeTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Container for enum describing the type of the generated tag snippets for +// tracking conversions. +message TrackingCodeTypeEnum { + // The type of the generated tag snippets for tracking conversions. + enum TrackingCodeType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // The snippet that is fired as a result of a website page loading. + WEBPAGE = 2; + + // The snippet contains a JavaScript function which fires the tag. This + // function is typically called from an onClick handler added to a link or + // button element on the page. + WEBPAGE_ONCLICK = 3; + + // For embedding on a mobile webpage. The snippet contains a JavaScript + // function which fires the tag. + CLICK_TO_CALL = 4; + + // The snippet that is used to replace the phone number on your website with + // a Google forwarding number for call tracking purposes. + WEBSITE_CALL = 5; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/travel_placeholder_field.proto b/third_party/googleapis/google/ads/googleads/v6/enums/travel_placeholder_field.proto new file mode 100644 index 000000000..f585f6882 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/travel_placeholder_field.proto @@ -0,0 +1,128 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "TravelPlaceholderFieldProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing Travel placeholder fields. + +// Values for Travel placeholder fields. +// For more information about dynamic remarketing feeds, see +// https://support.google.com/google-ads/answer/6053288. +message TravelPlaceholderFieldEnum { + // Possible values for Travel placeholder fields. + enum TravelPlaceholderField { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Data Type: STRING. Required. Destination id. Example: PAR, LON. + // For feed items that only have destination id, destination id must be a + // unique key. For feed items that have both destination id and origin id, + // then the combination must be a unique key. + DESTINATION_ID = 2; + + // Data Type: STRING. Origin id. Example: PAR, LON. + // Combination of DESTINATION_ID and ORIGIN_ID must be + // unique per offer. + ORIGIN_ID = 3; + + // Data Type: STRING. Required. Main headline with name to be shown in + // dynamic ad. + TITLE = 4; + + // Data Type: STRING. The destination name. Shorter names are recommended. + DESTINATION_NAME = 5; + + // Data Type: STRING. Origin name. Shorter names are recommended. + ORIGIN_NAME = 6; + + // Data Type: STRING. Price to be shown in the ad. Highly recommended for + // dynamic ads. + // Example: "100.00 USD" + PRICE = 7; + + // Data Type: STRING. Formatted price to be shown in the ad. + // Example: "Starting at $100.00 USD", "$80 - $100" + FORMATTED_PRICE = 8; + + // Data Type: STRING. Sale price to be shown in the ad. + // Example: "80.00 USD" + SALE_PRICE = 9; + + // Data Type: STRING. Formatted sale price to be shown in the ad. + // Example: "On sale for $80.00", "$60 - $80" + FORMATTED_SALE_PRICE = 10; + + // Data Type: URL. Image to be displayed in the ad. + IMAGE_URL = 11; + + // Data Type: STRING. Category of travel offer used to group like items + // together for recommendation engine. + CATEGORY = 12; + + // Data Type: STRING_LIST. Keywords used for product retrieval. + CONTEXTUAL_KEYWORDS = 13; + + // Data Type: STRING. Address of travel offer, including postal code. + DESTINATION_ADDRESS = 14; + + // Data Type: URL_LIST. Required. Final URLs to be used in ad, when using + // Upgraded URLs; the more specific the better (e.g. the individual URL of a + // specific travel offer and its location). + FINAL_URL = 15; + + // Data Type: URL_LIST. Final mobile URLs for the ad when using Upgraded + // URLs. + FINAL_MOBILE_URLS = 16; + + // Data Type: URL. Tracking template for the ad when using Upgraded URLs. + TRACKING_URL = 17; + + // Data Type: STRING. Android app link. Must be formatted as: + // android-app://{package_id}/{scheme}/{host_path}. + // The components are defined as follows: + // package_id: app ID as specified in Google Play. + // scheme: the scheme to pass to the application. Can be HTTP, or a custom + // scheme. + // host_path: identifies the specific content within your application. + ANDROID_APP_LINK = 18; + + // Data Type: STRING_LIST. List of recommended destination IDs to show + // together with this item. + SIMILAR_DESTINATION_IDS = 19; + + // Data Type: STRING. iOS app link. + IOS_APP_LINK = 20; + + // Data Type: INT64. iOS app store ID. + IOS_APP_STORE_ID = 21; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/user_identifier_source.proto b/third_party/googleapis/google/ads/googleads/v6/enums/user_identifier_source.proto new file mode 100644 index 000000000..950b0c942 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/user_identifier_source.proto @@ -0,0 +1,54 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "UserIdentifierSourceProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing user identifier source + +// Container for enum describing the source of the user identifier for offline +// Store Sales third party uploads. +message UserIdentifierSourceEnum { + // The type of user identifier source for offline Store Sales third party + // uploads. + enum UserIdentifierSource { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version + UNKNOWN = 1; + + // Indicates that the user identifier was provided by the first party + // (advertiser). + FIRST_PARTY = 2; + + // Indicates that the user identifier was provided by the third party + // (partner). + THIRD_PARTY = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/user_interest_taxonomy_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/user_interest_taxonomy_type.proto new file mode 100644 index 000000000..f2cadb6a2 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/user_interest_taxonomy_type.proto @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "UserInterestTaxonomyTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing the UserInterest taxonomy type + +// Message describing a UserInterestTaxonomyType. +message UserInterestTaxonomyTypeEnum { + // Enum containing the possible UserInterestTaxonomyTypes. + enum UserInterestTaxonomyType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // The affinity for this user interest. + AFFINITY = 2; + + // The market for this user interest. + IN_MARKET = 3; + + // Users known to have installed applications in the specified categories. + MOBILE_APP_INSTALL_USER = 4; + + // The geographical location of the interest-based vertical. + VERTICAL_GEO = 5; + + // User interest criteria for new smart phone users. + NEW_SMART_PHONE_USER = 6; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/user_list_access_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/user_list_access_status.proto new file mode 100644 index 000000000..9860644e9 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/user_list_access_status.proto @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "UserListAccessStatusProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing user list access status. + +// Indicates if this client still has access to the list. +message UserListAccessStatusEnum { + // Enum containing possible user list access statuses. + enum UserListAccessStatus { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // The access is enabled. + ENABLED = 2; + + // The access is disabled. + DISABLED = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/user_list_closing_reason.proto b/third_party/googleapis/google/ads/googleads/v6/enums/user_list_closing_reason.proto new file mode 100644 index 000000000..60a636691 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/user_list_closing_reason.proto @@ -0,0 +1,48 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "UserListClosingReasonProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing user list closing reason. + +// Indicates the reason why the userlist was closed. +// This enum is only used when a list is auto-closed by the system. +message UserListClosingReasonEnum { + // Enum describing possible user list closing reasons. + enum UserListClosingReason { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // The userlist was closed because of not being used for over one year. + UNUSED = 2; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/user_list_combined_rule_operator.proto b/third_party/googleapis/google/ads/googleads/v6/enums/user_list_combined_rule_operator.proto new file mode 100644 index 000000000..ef76ce080 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/user_list_combined_rule_operator.proto @@ -0,0 +1,48 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "UserListCombinedRuleOperatorProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Logical operator connecting two rules. +message UserListCombinedRuleOperatorEnum { + // Enum describing possible user list combined rule operators. + enum UserListCombinedRuleOperator { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // A AND B. + AND = 2; + + // A AND NOT B. + AND_NOT = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/user_list_crm_data_source_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/user_list_crm_data_source_type.proto new file mode 100644 index 000000000..fbb957ec2 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/user_list_crm_data_source_type.proto @@ -0,0 +1,51 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "UserListCrmDataSourceTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Indicates source of Crm upload data. +message UserListCrmDataSourceTypeEnum { + // Enum describing possible user list crm data source type. + enum UserListCrmDataSourceType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // The uploaded data is first-party data. + FIRST_PARTY = 2; + + // The uploaded data is from a third-party credit bureau. + THIRD_PARTY_CREDIT_BUREAU = 3; + + // The uploaded data is from a third-party voter file. + THIRD_PARTY_VOTER_FILE = 4; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/user_list_date_rule_item_operator.proto b/third_party/googleapis/google/ads/googleads/v6/enums/user_list_date_rule_item_operator.proto new file mode 100644 index 000000000..89bde9516 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/user_list_date_rule_item_operator.proto @@ -0,0 +1,54 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "UserListDateRuleItemOperatorProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Supported rule operator for date type. +message UserListDateRuleItemOperatorEnum { + // Enum describing possible user list date rule item operators. + enum UserListDateRuleItemOperator { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Equals. + EQUALS = 2; + + // Not Equals. + NOT_EQUALS = 3; + + // Before. + BEFORE = 4; + + // After. + AFTER = 5; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/user_list_logical_rule_operator.proto b/third_party/googleapis/google/ads/googleads/v6/enums/user_list_logical_rule_operator.proto new file mode 100644 index 000000000..67e5f32fe --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/user_list_logical_rule_operator.proto @@ -0,0 +1,51 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "UserListLogicalRuleOperatorProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// The logical operator of the rule. +message UserListLogicalRuleOperatorEnum { + // Enum describing possible user list logical rule operators. + enum UserListLogicalRuleOperator { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // And - all of the operands. + ALL = 2; + + // Or - at least one of the operands. + ANY = 3; + + // Not - none of the operands. + NONE = 4; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/user_list_membership_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/user_list_membership_status.proto new file mode 100644 index 000000000..a642b95b8 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/user_list_membership_status.proto @@ -0,0 +1,52 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "UserListMembershipStatusProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing user list membership status. + +// 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 used for +// targeting. +message UserListMembershipStatusEnum { + // Enum containing possible user list membership statuses. + enum UserListMembershipStatus { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Open status - List is accruing members and can be targeted to. + OPEN = 2; + + // Closed status - No new members being added. Cannot be used for targeting. + CLOSED = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/user_list_number_rule_item_operator.proto b/third_party/googleapis/google/ads/googleads/v6/enums/user_list_number_rule_item_operator.proto new file mode 100644 index 000000000..4ff880c79 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/user_list_number_rule_item_operator.proto @@ -0,0 +1,60 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "UserListNumberRuleItemOperatorProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Supported rule operator for number type. +message UserListNumberRuleItemOperatorEnum { + // Enum describing possible user list number rule item operators. + enum UserListNumberRuleItemOperator { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Greater than. + GREATER_THAN = 2; + + // Greater than or equal. + GREATER_THAN_OR_EQUAL = 3; + + // Equals. + EQUALS = 4; + + // Not equals. + NOT_EQUALS = 5; + + // Less than. + LESS_THAN = 6; + + // Less than or equal. + LESS_THAN_OR_EQUAL = 7; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/user_list_prepopulation_status.proto b/third_party/googleapis/google/ads/googleads/v6/enums/user_list_prepopulation_status.proto new file mode 100644 index 000000000..00e88a1e7 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/user_list_prepopulation_status.proto @@ -0,0 +1,51 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "UserListPrepopulationStatusProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Indicates status of prepopulation based on the rule. +message UserListPrepopulationStatusEnum { + // Enum describing possible user list prepopulation status. + enum UserListPrepopulationStatus { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Prepopoulation is being requested. + REQUESTED = 2; + + // Prepopulation is finished. + FINISHED = 3; + + // Prepopulation failed. + FAILED = 4; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/user_list_rule_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/user_list_rule_type.proto new file mode 100644 index 000000000..1a94cea7a --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/user_list_rule_type.proto @@ -0,0 +1,48 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "UserListRuleTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Rule based user list rule type. +message UserListRuleTypeEnum { + // Enum describing possible user list rule types. + enum UserListRuleType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Conjunctive normal form. + AND_OF_ORS = 2; + + // Disjunctive normal form. + OR_OF_ANDS = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/user_list_size_range.proto b/third_party/googleapis/google/ads/googleads/v6/enums/user_list_size_range.proto new file mode 100644 index 000000000..6db1e52e6 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/user_list_size_range.proto @@ -0,0 +1,92 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "UserListSizeRangeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing user list size range. + +// Size range in terms of number of users of a UserList. +message UserListSizeRangeEnum { + // Enum containing possible user list size ranges. + enum UserListSizeRange { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // User list has less than 500 users. + LESS_THAN_FIVE_HUNDRED = 2; + + // User list has number of users in range of 500 to 1000. + LESS_THAN_ONE_THOUSAND = 3; + + // User list has number of users in range of 1000 to 10000. + ONE_THOUSAND_TO_TEN_THOUSAND = 4; + + // User list has number of users in range of 10000 to 50000. + TEN_THOUSAND_TO_FIFTY_THOUSAND = 5; + + // User list has number of users in range of 50000 to 100000. + FIFTY_THOUSAND_TO_ONE_HUNDRED_THOUSAND = 6; + + // User list has number of users in range of 100000 to 300000. + ONE_HUNDRED_THOUSAND_TO_THREE_HUNDRED_THOUSAND = 7; + + // User list has number of users in range of 300000 to 500000. + THREE_HUNDRED_THOUSAND_TO_FIVE_HUNDRED_THOUSAND = 8; + + // User list has number of users in range of 500000 to 1 million. + FIVE_HUNDRED_THOUSAND_TO_ONE_MILLION = 9; + + // User list has number of users in range of 1 to 2 millions. + ONE_MILLION_TO_TWO_MILLION = 10; + + // User list has number of users in range of 2 to 3 millions. + TWO_MILLION_TO_THREE_MILLION = 11; + + // User list has number of users in range of 3 to 5 millions. + THREE_MILLION_TO_FIVE_MILLION = 12; + + // User list has number of users in range of 5 to 10 millions. + FIVE_MILLION_TO_TEN_MILLION = 13; + + // User list has number of users in range of 10 to 20 millions. + TEN_MILLION_TO_TWENTY_MILLION = 14; + + // User list has number of users in range of 20 to 30 millions. + TWENTY_MILLION_TO_THIRTY_MILLION = 15; + + // User list has number of users in range of 30 to 50 millions. + THIRTY_MILLION_TO_FIFTY_MILLION = 16; + + // User list has over 50 million users. + OVER_FIFTY_MILLION = 17; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/user_list_string_rule_item_operator.proto b/third_party/googleapis/google/ads/googleads/v6/enums/user_list_string_rule_item_operator.proto new file mode 100644 index 000000000..75373b202 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/user_list_string_rule_item_operator.proto @@ -0,0 +1,66 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "UserListStringRuleItemOperatorProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Supported rule operator for string type. +message UserListStringRuleItemOperatorEnum { + // Enum describing possible user list string rule item operators. + enum UserListStringRuleItemOperator { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Contains. + CONTAINS = 2; + + // Equals. + EQUALS = 3; + + // Starts with. + STARTS_WITH = 4; + + // Ends with. + ENDS_WITH = 5; + + // Not equals. + NOT_EQUALS = 6; + + // Not contains. + NOT_CONTAINS = 7; + + // Not starts with. + NOT_STARTS_WITH = 8; + + // Not ends with. + NOT_ENDS_WITH = 9; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/user_list_type.proto b/third_party/googleapis/google/ads/googleads/v6/enums/user_list_type.proto new file mode 100644 index 000000000..d2b2e3a03 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/user_list_type.proto @@ -0,0 +1,63 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "UserListTypeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing user list type. + +// The user list types. +message UserListTypeEnum { + // Enum containing possible user list types. + enum UserListType { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // UserList represented as a collection of conversion types. + REMARKETING = 2; + + // UserList represented as a combination of other user lists/interests. + LOGICAL = 3; + + // UserList created in the Google Ad Manager platform. + EXTERNAL_REMARKETING = 4; + + // UserList associated with a rule. + RULE_BASED = 5; + + // UserList with users similar to users of another UserList. + SIMILAR = 6; + + // UserList of first-party CRM data provided by advertiser in the form of + // emails or other formats. + CRM_BASED = 7; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/vanity_pharma_display_url_mode.proto b/third_party/googleapis/google/ads/googleads/v6/enums/vanity_pharma_display_url_mode.proto new file mode 100644 index 000000000..4d6aef3af --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/vanity_pharma_display_url_mode.proto @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "VanityPharmaDisplayUrlModeProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing vanity pharma display url modes. + +// The display mode for vanity pharma URLs. +message VanityPharmaDisplayUrlModeEnum { + // Enum describing possible display modes for vanity pharma URLs. + enum VanityPharmaDisplayUrlMode { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Replace vanity pharma URL with manufacturer website url. + MANUFACTURER_WEBSITE_URL = 2; + + // Replace vanity pharma URL with description of the website. + WEBSITE_DESCRIPTION = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/vanity_pharma_text.proto b/third_party/googleapis/google/ads/googleads/v6/enums/vanity_pharma_text.proto new file mode 100644 index 000000000..3b58d82aa --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/vanity_pharma_text.proto @@ -0,0 +1,87 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "VanityPharmaTextProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing vanity pharma texts. + +// The text that will be displayed in display URL of the text ad when website +// description is the selected display mode for vanity pharma URLs. +message VanityPharmaTextEnum { + // Enum describing possible text. + enum VanityPharmaText { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Prescription treatment website with website content in English. + PRESCRIPTION_TREATMENT_WEBSITE_EN = 2; + + // Prescription treatment website with website content in Spanish + // (Sitio de tratamientos con receta). + PRESCRIPTION_TREATMENT_WEBSITE_ES = 3; + + // Prescription device website with website content in English. + PRESCRIPTION_DEVICE_WEBSITE_EN = 4; + + // Prescription device website with website content in Spanish (Sitio de + // dispositivos con receta). + PRESCRIPTION_DEVICE_WEBSITE_ES = 5; + + // Medical device website with website content in English. + MEDICAL_DEVICE_WEBSITE_EN = 6; + + // Medical device website with website content in Spanish (Sitio de + // dispositivos médicos). + MEDICAL_DEVICE_WEBSITE_ES = 7; + + // Preventative treatment website with website content in English. + PREVENTATIVE_TREATMENT_WEBSITE_EN = 8; + + // Preventative treatment website with website content in Spanish (Sitio de + // tratamientos preventivos). + PREVENTATIVE_TREATMENT_WEBSITE_ES = 9; + + // Prescription contraception website with website content in English. + PRESCRIPTION_CONTRACEPTION_WEBSITE_EN = 10; + + // Prescription contraception website with website content in Spanish (Sitio + // de anticonceptivos con receta). + PRESCRIPTION_CONTRACEPTION_WEBSITE_ES = 11; + + // Prescription vaccine website with website content in English. + PRESCRIPTION_VACCINE_WEBSITE_EN = 12; + + // Prescription vaccine website with website content in Spanish (Sitio de + // vacunas con receta). + PRESCRIPTION_VACCINE_WEBSITE_ES = 13; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/webpage_condition_operand.proto b/third_party/googleapis/google/ads/googleads/v6/enums/webpage_condition_operand.proto new file mode 100644 index 000000000..ee3bcbd8b --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/webpage_condition_operand.proto @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "WebpageConditionOperandProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing webpage condition operand. + +// Container for enum describing webpage condition operand in webpage criterion. +message WebpageConditionOperandEnum { + // The webpage condition operand in webpage criterion. + enum WebpageConditionOperand { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Operand denoting a webpage URL targeting condition. + URL = 2; + + // Operand denoting a webpage category targeting condition. + CATEGORY = 3; + + // Operand denoting a webpage title targeting condition. + PAGE_TITLE = 4; + + // Operand denoting a webpage content targeting condition. + PAGE_CONTENT = 5; + + // Operand denoting a webpage custom label targeting condition. + CUSTOM_LABEL = 6; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/enums/webpage_condition_operator.proto b/third_party/googleapis/google/ads/googleads/v6/enums/webpage_condition_operator.proto new file mode 100644 index 000000000..cee2f5c15 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/enums/webpage_condition_operator.proto @@ -0,0 +1,51 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.enums; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Enums"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/enums;enums"; +option java_multiple_files = true; +option java_outer_classname = "WebpageConditionOperatorProto"; +option java_package = "com.google.ads.googleads.v6.enums"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Enums"; +option ruby_package = "Google::Ads::GoogleAds::V6::Enums"; + +// Proto file describing webpage condition operator. + +// Container for enum describing webpage condition operator in webpage +// criterion. +message WebpageConditionOperatorEnum { + // The webpage condition operator in webpage criterion. + enum WebpageConditionOperator { + // Not specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // The argument web condition is equal to the compared web condition. + EQUALS = 2; + + // The argument web condition is part of the compared web condition. + CONTAINS = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/BUILD.bazel b/third_party/googleapis/google/ads/googleads/v6/errors/BUILD.bazel new file mode 100644 index 000000000..9485ae565 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/BUILD.bazel @@ -0,0 +1,94 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") + +# TODO(ohren): Change srcs to use an enumeration of each individual proto +# instead of *.proto globbing once the build file generator supports +# subpackages. +proto_library( + name = "errors_proto", + srcs = glob(["*.proto"]), + deps = [ + "//google/ads/googleads/v6/common:common_proto", + "//google/ads/googleads/v6/enums:enums_proto", + "//google/api:annotations_proto", + "@com_google_protobuf//:duration_proto", + "@com_google_protobuf//:wrappers_proto", + ], +) + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_proto_library", +) + +java_proto_library( + name = "errors_java_proto", + deps = [":errors_proto"], +) + +############################################################################## +# PHP +############################################################################## + +# PHP targets are in the parent directory's BUILD.bazel file to facilitate +# aggregating metadata using a single underlying call to protoc. + +############################################################################## +# C# +############################################################################## +load( + "@gapic_generator_csharp//rules_csharp_gapic:csharp_gapic.bzl", + "csharp_proto_library", +) + +csharp_proto_library( + name = "errors_csharp_proto", + deps = [":errors_proto"], +) + +############################################################################## +# Ruby +############################################################################## +load( + "@gapic_generator_ruby//rules_ruby_gapic:ruby_gapic.bzl", + "ruby_proto_library", +) + +ruby_proto_library( + name = "errors_ruby_proto", + deps = [":errors_proto"], +) + +############################################################################## +# Python +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "py_proto_library", +) + +py_proto_library( + name = "errors_py_proto", + deps = [":errors_proto"], +) diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/access_invitation_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/access_invitation_error.proto new file mode 100644 index 000000000..788bd0063 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/access_invitation_error.proto @@ -0,0 +1,65 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "AccessInvitationErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing AccessInvitation errors. + +// Container for enum describing possible AccessInvitation errors. +message AccessInvitationErrorEnum { + // Enum describing possible AccessInvitation errors. + enum AccessInvitationError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // The email address is invalid for sending an invitation. + INVALID_EMAIL_ADDRESS = 2; + + // Email address already has access to this customer. + EMAIL_ADDRESS_ALREADY_HAS_ACCESS = 3; + + // Invalid invitation status for the operation. + INVALID_INVITATION_STATUS = 4; + + // Email address cannot be like abc+foo@google.com. + GOOGLE_CONSUMER_ACCOUNT_NOT_ALLOWED = 5; + + // Invalid invitation id. + INVALID_INVITATION_ID = 6; + + // Email address already has a pending invitation. + EMAIL_ADDRESS_ALREADY_HAS_PENDING_INVITATION = 7; + + // Pending invitation limit exceeded for the customer. + PENDING_INVITATIONS_LIMIT_EXCEEDED = 8; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/account_budget_proposal_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/account_budget_proposal_error.proto new file mode 100644 index 000000000..436f8839b --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/account_budget_proposal_error.proto @@ -0,0 +1,122 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "AccountBudgetProposalErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing account budget proposal errors. + +// Container for enum describing possible account budget proposal errors. +message AccountBudgetProposalErrorEnum { + // Enum describing possible account budget proposal errors. + enum AccountBudgetProposalError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // The field mask must be empty for create/end/remove proposals. + FIELD_MASK_NOT_ALLOWED = 2; + + // The field cannot be set because of the proposal type. + IMMUTABLE_FIELD = 3; + + // The field is required because of the proposal type. + REQUIRED_FIELD_MISSING = 4; + + // Proposals that have been approved cannot be cancelled. + CANNOT_CANCEL_APPROVED_PROPOSAL = 5; + + // Budgets that haven't been approved cannot be removed. + CANNOT_REMOVE_UNAPPROVED_BUDGET = 6; + + // Budgets that are currently running cannot be removed. + CANNOT_REMOVE_RUNNING_BUDGET = 7; + + // Budgets that haven't been approved cannot be truncated. + CANNOT_END_UNAPPROVED_BUDGET = 8; + + // Only budgets that are currently running can be truncated. + CANNOT_END_INACTIVE_BUDGET = 9; + + // All budgets must have names. + BUDGET_NAME_REQUIRED = 10; + + // Expired budgets cannot be edited after a sufficient amount of time has + // passed. + CANNOT_UPDATE_OLD_BUDGET = 11; + + // It is not permissible a propose a new budget that ends in the past. + CANNOT_END_IN_PAST = 12; + + // An expired budget cannot be extended to overlap with the running budget. + CANNOT_EXTEND_END_TIME = 13; + + // A purchase order number is required. + PURCHASE_ORDER_NUMBER_REQUIRED = 14; + + // Budgets that have a pending update cannot be updated. + PENDING_UPDATE_PROPOSAL_EXISTS = 15; + + // Cannot propose more than one budget when the corresponding billing setup + // hasn't been approved. + MULTIPLE_BUDGETS_NOT_ALLOWED_FOR_UNAPPROVED_BILLING_SETUP = 16; + + // Cannot update the start time of a budget that has already started. + CANNOT_UPDATE_START_TIME_FOR_STARTED_BUDGET = 17; + + // Cannot update the spending limit of a budget with an amount lower than + // what has already been spent. + SPENDING_LIMIT_LOWER_THAN_ACCRUED_COST_NOT_ALLOWED = 18; + + // Cannot propose a budget update without actually changing any fields. + UPDATE_IS_NO_OP = 19; + + // The end time must come after the start time. + END_TIME_MUST_FOLLOW_START_TIME = 20; + + // The budget's date range must fall within the date range of its billing + // setup. + BUDGET_DATE_RANGE_INCOMPATIBLE_WITH_BILLING_SETUP = 21; + + // The user is not authorized to mutate budgets for the given billing setup. + NOT_AUTHORIZED = 22; + + // Mutates are not allowed for the given billing setup. + INVALID_BILLING_SETUP = 23; + + // Budget creation failed as it overlaps with an pending budget proposal + // or an approved budget. + OVERLAPS_EXISTING_BUDGET = 24; + + // The control setting in user's payments profile doesn't allow budget + // creation through API. Log in to Google Ads to create budget. + CANNOT_CREATE_BUDGET_THROUGH_API = 25; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/account_link_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/account_link_error.proto new file mode 100644 index 000000000..8f0d5bdcf --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/account_link_error.proto @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "AccountLinkErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing AccountLink errors. + +// Container for enum describing possible account link errors. +message AccountLinkErrorEnum { + // Enum describing possible account link errors. + enum AccountLinkError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // The new link status is invalid. + INVALID_STATUS = 2; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/ad_customizer_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/ad_customizer_error.proto new file mode 100644 index 000000000..8c05dd650 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/ad_customizer_error.proto @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "AdCustomizerErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing ad customizer errors. + +// Container for enum describing possible ad customizer errors. +message AdCustomizerErrorEnum { + // Enum describing possible ad customizer errors. + enum AdCustomizerError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Invalid date argument in countdown function. + COUNTDOWN_INVALID_DATE_FORMAT = 2; + + // Countdown end date is in the past. + COUNTDOWN_DATE_IN_PAST = 3; + + // Invalid locale string in countdown function. + COUNTDOWN_INVALID_LOCALE = 4; + + // Days-before argument to countdown function is not positive. + COUNTDOWN_INVALID_START_DAYS_BEFORE = 5; + + // A user list referenced in an IF function does not exist. + UNKNOWN_USER_LIST = 6; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/ad_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/ad_error.proto new file mode 100644 index 000000000..edef59838 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/ad_error.proto @@ -0,0 +1,505 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "AdErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing ad errors. + +// Container for enum describing possible ad errors. +message AdErrorEnum { + // Enum describing possible ad errors. + enum AdError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Ad customizers are not supported for ad type. + AD_CUSTOMIZERS_NOT_SUPPORTED_FOR_AD_TYPE = 2; + + // Estimating character sizes the string is too long. + APPROXIMATELY_TOO_LONG = 3; + + // Estimating character sizes the string is too short. + APPROXIMATELY_TOO_SHORT = 4; + + // There is a problem with the snippet. + BAD_SNIPPET = 5; + + // Cannot modify an ad. + CANNOT_MODIFY_AD = 6; + + // business name and url cannot be set at the same time + CANNOT_SET_BUSINESS_NAME_IF_URL_SET = 7; + + // The specified field is incompatible with this ad's type or settings. + CANNOT_SET_FIELD = 8; + + // Cannot set field when originAdId is set. + CANNOT_SET_FIELD_WITH_ORIGIN_AD_ID_SET = 9; + + // Cannot set field when an existing ad id is set for sharing. + CANNOT_SET_FIELD_WITH_AD_ID_SET_FOR_SHARING = 10; + + // Cannot set allowFlexibleColor false if no color is provided by user. + CANNOT_SET_ALLOW_FLEXIBLE_COLOR_FALSE = 11; + + // When user select native, no color control is allowed because we will + // always respect publisher color for native format serving. + CANNOT_SET_COLOR_CONTROL_WHEN_NATIVE_FORMAT_SETTING = 12; + + // Cannot specify a url for the ad type + CANNOT_SET_URL = 13; + + // Cannot specify a tracking or mobile url without also setting final urls + CANNOT_SET_WITHOUT_FINAL_URLS = 14; + + // Cannot specify a legacy url and a final url simultaneously + CANNOT_SET_WITH_FINAL_URLS = 15; + + // Cannot specify a urls in UrlData and in template fields simultaneously. + CANNOT_SET_WITH_URL_DATA = 17; + + // This operator cannot be used with a subclass of Ad. + CANNOT_USE_AD_SUBCLASS_FOR_OPERATOR = 18; + + // Customer is not approved for mobile ads. + CUSTOMER_NOT_APPROVED_MOBILEADS = 19; + + // Customer is not approved for 3PAS richmedia ads. + CUSTOMER_NOT_APPROVED_THIRDPARTY_ADS = 20; + + // Customer is not approved for 3PAS redirect richmedia (Ad Exchange) ads. + CUSTOMER_NOT_APPROVED_THIRDPARTY_REDIRECT_ADS = 21; + + // Not an eligible customer + CUSTOMER_NOT_ELIGIBLE = 22; + + // Customer is not eligible for updating beacon url + CUSTOMER_NOT_ELIGIBLE_FOR_UPDATING_BEACON_URL = 23; + + // There already exists an ad with the same dimensions in the union. + DIMENSION_ALREADY_IN_UNION = 24; + + // Ad's dimension must be set before setting union dimension. + DIMENSION_MUST_BE_SET = 25; + + // Ad's dimension must be included in the union dimensions. + DIMENSION_NOT_IN_UNION = 26; + + // Display Url cannot be specified (applies to Ad Exchange Ads) + DISPLAY_URL_CANNOT_BE_SPECIFIED = 27; + + // Telephone number contains invalid characters or invalid format. Please + // re-enter your number using digits (0-9), dashes (-), and parentheses + // only. + DOMESTIC_PHONE_NUMBER_FORMAT = 28; + + // Emergency telephone numbers are not allowed. Please enter a valid + // domestic phone number to connect customers to your business. + EMERGENCY_PHONE_NUMBER = 29; + + // A required field was not specified or is an empty string. + EMPTY_FIELD = 30; + + // A feed attribute referenced in an ad customizer tag is not in the ad + // customizer mapping for the feed. + FEED_ATTRIBUTE_MUST_HAVE_MAPPING_FOR_TYPE_ID = 31; + + // The ad customizer field mapping for the feed attribute does not match the + // expected field type. + FEED_ATTRIBUTE_MAPPING_TYPE_MISMATCH = 32; + + // The use of ad customizer tags in the ad text is disallowed. Details in + // trigger. + ILLEGAL_AD_CUSTOMIZER_TAG_USE = 33; + + // Tags of the form {PH_x}, where x is a number, are disallowed in ad text. + ILLEGAL_TAG_USE = 34; + + // The dimensions of the ad are specified or derived in multiple ways and + // are not consistent. + INCONSISTENT_DIMENSIONS = 35; + + // The status cannot differ among template ads of the same union. + INCONSISTENT_STATUS_IN_TEMPLATE_UNION = 36; + + // The length of the string is not valid. + INCORRECT_LENGTH = 37; + + // The ad is ineligible for upgrade. + INELIGIBLE_FOR_UPGRADE = 38; + + // User cannot create mobile ad for countries targeted in specified + // campaign. + INVALID_AD_ADDRESS_CAMPAIGN_TARGET = 39; + + // Invalid Ad type. A specific type of Ad is required. + INVALID_AD_TYPE = 40; + + // Headline, description or phone cannot be present when creating mobile + // image ad. + INVALID_ATTRIBUTES_FOR_MOBILE_IMAGE = 41; + + // Image cannot be present when creating mobile text ad. + INVALID_ATTRIBUTES_FOR_MOBILE_TEXT = 42; + + // Invalid call to action text. + INVALID_CALL_TO_ACTION_TEXT = 43; + + // Invalid character in URL. + INVALID_CHARACTER_FOR_URL = 44; + + // Creative's country code is not valid. + INVALID_COUNTRY_CODE = 45; + + // Invalid use of Expanded Dynamic Search Ads tags ({lpurl} etc.) + INVALID_EXPANDED_DYNAMIC_SEARCH_AD_TAG = 47; + + // An input error whose real reason was not properly mapped (should not + // happen). + INVALID_INPUT = 48; + + // An invalid markup language was entered. + INVALID_MARKUP_LANGUAGE = 49; + + // An invalid mobile carrier was entered. + INVALID_MOBILE_CARRIER = 50; + + // Specified mobile carriers target a country not targeted by the campaign. + INVALID_MOBILE_CARRIER_TARGET = 51; + + // Wrong number of elements for given element type + INVALID_NUMBER_OF_ELEMENTS = 52; + + // The format of the telephone number is incorrect. Please re-enter the + // number using the correct format. + INVALID_PHONE_NUMBER_FORMAT = 53; + + // The certified vendor format id is incorrect. + INVALID_RICH_MEDIA_CERTIFIED_VENDOR_FORMAT_ID = 54; + + // The template ad data contains validation errors. + INVALID_TEMPLATE_DATA = 55; + + // The template field doesn't have have the correct type. + INVALID_TEMPLATE_ELEMENT_FIELD_TYPE = 56; + + // Invalid template id. + INVALID_TEMPLATE_ID = 57; + + // After substituting replacement strings, the line is too wide. + LINE_TOO_WIDE = 58; + + // The feed referenced must have ad customizer mapping to be used in a + // customizer tag. + MISSING_AD_CUSTOMIZER_MAPPING = 59; + + // Missing address component in template element address field. + MISSING_ADDRESS_COMPONENT = 60; + + // An ad name must be entered. + MISSING_ADVERTISEMENT_NAME = 61; + + // Business name must be entered. + MISSING_BUSINESS_NAME = 62; + + // Description (line 2) must be entered. + MISSING_DESCRIPTION1 = 63; + + // Description (line 3) must be entered. + MISSING_DESCRIPTION2 = 64; + + // The destination url must contain at least one tag (e.g. {lpurl}) + MISSING_DESTINATION_URL_TAG = 65; + + // The tracking url template of ExpandedDynamicSearchAd must contain at + // least one tag. (e.g. {lpurl}) + MISSING_LANDING_PAGE_URL_TAG = 66; + + // A valid dimension must be specified for this ad. + MISSING_DIMENSION = 67; + + // A display URL must be entered. + MISSING_DISPLAY_URL = 68; + + // Headline must be entered. + MISSING_HEADLINE = 69; + + // A height must be entered. + MISSING_HEIGHT = 70; + + // An image must be entered. + MISSING_IMAGE = 71; + + // Marketing image or product videos are required. + MISSING_MARKETING_IMAGE_OR_PRODUCT_VIDEOS = 72; + + // The markup language in which your site is written must be entered. + MISSING_MARKUP_LANGUAGES = 73; + + // A mobile carrier must be entered. + MISSING_MOBILE_CARRIER = 74; + + // Phone number must be entered. + MISSING_PHONE = 75; + + // Missing required template fields + MISSING_REQUIRED_TEMPLATE_FIELDS = 76; + + // Missing a required field value + MISSING_TEMPLATE_FIELD_VALUE = 77; + + // The ad must have text. + MISSING_TEXT = 78; + + // A visible URL must be entered. + MISSING_VISIBLE_URL = 79; + + // A width must be entered. + MISSING_WIDTH = 80; + + // Only 1 feed can be used as the source of ad customizer substitutions in a + // single ad. + MULTIPLE_DISTINCT_FEEDS_UNSUPPORTED = 81; + + // TempAdUnionId must be use when adding template ads. + MUST_USE_TEMP_AD_UNION_ID_ON_ADD = 82; + + // The string has too many characters. + TOO_LONG = 83; + + // The string has too few characters. + TOO_SHORT = 84; + + // Ad union dimensions cannot change for saved ads. + UNION_DIMENSIONS_CANNOT_CHANGE = 85; + + // Address component is not {country, lat, lng}. + UNKNOWN_ADDRESS_COMPONENT = 86; + + // Unknown unique field name + UNKNOWN_FIELD_NAME = 87; + + // Unknown unique name (template element type specifier) + UNKNOWN_UNIQUE_NAME = 88; + + // Unsupported ad dimension + UNSUPPORTED_DIMENSIONS = 89; + + // URL starts with an invalid scheme. + URL_INVALID_SCHEME = 90; + + // URL ends with an invalid top-level domain name. + URL_INVALID_TOP_LEVEL_DOMAIN = 91; + + // URL contains illegal characters. + URL_MALFORMED = 92; + + // URL must contain a host name. + URL_NO_HOST = 93; + + // URL not equivalent during upgrade. + URL_NOT_EQUIVALENT = 94; + + // URL host name too long to be stored as visible URL (applies to Ad + // Exchange ads) + URL_HOST_NAME_TOO_LONG = 95; + + // URL must start with a scheme. + URL_NO_SCHEME = 96; + + // URL should end in a valid domain extension, such as .com or .net. + URL_NO_TOP_LEVEL_DOMAIN = 97; + + // URL must not end with a path. + URL_PATH_NOT_ALLOWED = 98; + + // URL must not specify a port. + URL_PORT_NOT_ALLOWED = 99; + + // URL must not contain a query. + URL_QUERY_NOT_ALLOWED = 100; + + // A url scheme is not allowed in front of tag in tracking url template + // (e.g. http://{lpurl}) + URL_SCHEME_BEFORE_EXPANDED_DYNAMIC_SEARCH_AD_TAG = 102; + + // The user does not have permissions to create a template ad for the given + // template. + USER_DOES_NOT_HAVE_ACCESS_TO_TEMPLATE = 103; + + // Expandable setting is inconsistent/wrong. For example, an AdX ad is + // invalid if it has a expandable vendor format but no expanding directions + // specified, or expanding directions is specified, but the vendor format is + // not expandable. + INCONSISTENT_EXPANDABLE_SETTINGS = 104; + + // Format is invalid + INVALID_FORMAT = 105; + + // The text of this field did not match a pattern of allowed values. + INVALID_FIELD_TEXT = 106; + + // Template element is mising + ELEMENT_NOT_PRESENT = 107; + + // Error occurred during image processing + IMAGE_ERROR = 108; + + // The value is not within the valid range + VALUE_NOT_IN_RANGE = 109; + + // Template element field is not present + FIELD_NOT_PRESENT = 110; + + // Address is incomplete + ADDRESS_NOT_COMPLETE = 111; + + // Invalid address + ADDRESS_INVALID = 112; + + // Error retrieving specified video + VIDEO_RETRIEVAL_ERROR = 113; + + // Error processing audio + AUDIO_ERROR = 114; + + // Display URL is incorrect for YouTube PYV ads + INVALID_YOUTUBE_DISPLAY_URL = 115; + + // Too many product Images in GmailAd + TOO_MANY_PRODUCT_IMAGES = 116; + + // Too many product Videos in GmailAd + TOO_MANY_PRODUCT_VIDEOS = 117; + + // The device preference is not compatible with the ad type + INCOMPATIBLE_AD_TYPE_AND_DEVICE_PREFERENCE = 118; + + // Call tracking is not supported for specified country. + CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY = 119; + + // Carrier specific short number is not allowed. + CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED = 120; + + // Specified phone number type is disallowed. + DISALLOWED_NUMBER_TYPE = 121; + + // Phone number not supported for country. + PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY = 122; + + // Phone number not supported with call tracking enabled for country. + PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY = 123; + + // Premium rate phone number is not allowed. + PREMIUM_RATE_NUMBER_NOT_ALLOWED = 124; + + // Vanity phone number is not allowed. + VANITY_PHONE_NUMBER_NOT_ALLOWED = 125; + + // Invalid call conversion type id. + INVALID_CALL_CONVERSION_TYPE_ID = 126; + + // Cannot disable call conversion and set conversion type id. + CANNOT_DISABLE_CALL_CONVERSION_AND_SET_CONVERSION_TYPE_ID = 127; + + // Cannot set path2 without path1. + CANNOT_SET_PATH2_WITHOUT_PATH1 = 128; + + // Missing domain name in campaign setting when adding expanded dynamic + // search ad. + MISSING_DYNAMIC_SEARCH_ADS_SETTING_DOMAIN_NAME = 129; + + // The associated ad is not compatible with restriction type. + INCOMPATIBLE_WITH_RESTRICTION_TYPE = 130; + + // Consent for call recording is required for creating/updating call only + // ads. Please see https://support.google.com/google-ads/answer/7412639. + CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED = 131; + + // Either an image or a media bundle is required in a display upload ad. + MISSING_IMAGE_OR_MEDIA_BUNDLE = 132; + + // The display upload product type is not supported in this campaign. + PRODUCT_TYPE_NOT_SUPPORTED_IN_THIS_CAMPAIGN = 133; + + // The default value of an ad placeholder can not be the empty string. + PLACEHOLDER_CANNOT_HAVE_EMPTY_DEFAULT_VALUE = 134; + + // Ad placeholders with countdown functions must not have a default value. + PLACEHOLDER_COUNTDOWN_FUNCTION_CANNOT_HAVE_DEFAULT_VALUE = 135; + + // A previous ad placeholder that had a default value was found which means + // that all (non-countdown) placeholders must have a default value. This + // ad placeholder does not have a default value. + PLACEHOLDER_DEFAULT_VALUE_MISSING = 136; + + // A previous ad placeholder that did not have a default value was found + // which means that no placeholders may have a default value. This + // ad placeholder does have a default value. + UNEXPECTED_PLACEHOLDER_DEFAULT_VALUE = 137; + + // Two ad customizers may not be directly adjacent in an ad text. They must + // be separated by at least one character. + AD_CUSTOMIZERS_MAY_NOT_BE_ADJACENT = 138; + + // The ad is not associated with any enabled AdGroupAd, and cannot be + // updated. + UPDATING_AD_WITH_NO_ENABLED_ASSOCIATION = 139; + + // Too many ad customizers in one asset. + TOO_MANY_AD_CUSTOMIZERS = 141; + + // The ad customizer tag is recognized, but the format is invalid. + INVALID_AD_CUSTOMIZER_FORMAT = 142; + + // Customizer tags cannot be nested. + NESTED_AD_CUSTOMIZER_SYNTAX = 143; + + // The ad customizer syntax used in the ad is not supported. + UNSUPPORTED_AD_CUSTOMIZER_SYNTAX = 144; + + // There exists unpaired brace in the ad customizer tag. + UNPAIRED_BRACE_IN_AD_CUSTOMIZER_TAG = 145; + + // More than one type of countdown tag exists among all text lines. + MORE_THAN_ONE_COUNTDOWN_TAG_TYPE_EXISTS = 146; + + // Date time in the countdown tag is invalid. + DATE_TIME_IN_COUNTDOWN_TAG_IS_INVALID = 147; + + // Date time in the countdown tag is in the past. + DATE_TIME_IN_COUNTDOWN_TAG_IS_PAST = 148; + + // Cannot recognize the ad customizer tag. + UNRECOGNIZED_AD_CUSTOMIZER_TAG_FOUND = 149; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/ad_group_ad_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/ad_group_ad_error.proto new file mode 100644 index 000000000..2e4ea8000 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/ad_group_ad_error.proto @@ -0,0 +1,76 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "AdGroupAdErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing ad group ad errors. + +// Container for enum describing possible ad group ad errors. +message AdGroupAdErrorEnum { + // Enum describing possible ad group ad errors. + enum AdGroupAdError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // No link found between the adgroup ad and the label. + AD_GROUP_AD_LABEL_DOES_NOT_EXIST = 2; + + // The label has already been attached to the adgroup ad. + AD_GROUP_AD_LABEL_ALREADY_EXISTS = 3; + + // The specified ad was not found in the adgroup + AD_NOT_UNDER_ADGROUP = 4; + + // Removed ads may not be modified + CANNOT_OPERATE_ON_REMOVED_ADGROUPAD = 5; + + // An ad of this type is deprecated and cannot be created. Only deletions + // are permitted. + CANNOT_CREATE_DEPRECATED_ADS = 6; + + // Text ads are deprecated and cannot be created. Use expanded text ads + // instead. + CANNOT_CREATE_TEXT_ADS = 7; + + // A required field was not specified or is an empty string. + EMPTY_FIELD = 8; + + // An ad may only be modified once per call + RESOURCE_REFERENCED_IN_MULTIPLE_OPS = 9; + + // AdGroupAds with the given ad type cannot be paused. + AD_TYPE_CANNOT_BE_PAUSED = 10; + + // AdGroupAds with the given ad type cannot be removed. + AD_TYPE_CANNOT_BE_REMOVED = 11; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/ad_group_bid_modifier_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/ad_group_bid_modifier_error.proto new file mode 100644 index 000000000..dd23ab9d6 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/ad_group_bid_modifier_error.proto @@ -0,0 +1,51 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "AdGroupBidModifierErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing ad group bid modifier errors. + +// Container for enum describing possible ad group bid modifier errors. +message AdGroupBidModifierErrorEnum { + // Enum describing possible ad group bid modifier errors. + enum AdGroupBidModifierError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // The criterion ID does not support bid modification. + CRITERION_ID_NOT_SUPPORTED = 2; + + // Cannot override the bid modifier for the given criterion ID if the parent + // campaign is opted out of the same criterion. + CANNOT_OVERRIDE_OPTED_OUT_CAMPAIGN_CRITERION_BID_MODIFIER = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/ad_group_criterion_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/ad_group_criterion_error.proto new file mode 100644 index 000000000..b29dd497e --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/ad_group_criterion_error.proto @@ -0,0 +1,137 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "AdGroupCriterionErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing ad group criterion errors. + +// Container for enum describing possible ad group criterion errors. +message AdGroupCriterionErrorEnum { + // Enum describing possible ad group criterion errors. + enum AdGroupCriterionError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // No link found between the AdGroupCriterion and the label. + AD_GROUP_CRITERION_LABEL_DOES_NOT_EXIST = 2; + + // The label has already been attached to the AdGroupCriterion. + AD_GROUP_CRITERION_LABEL_ALREADY_EXISTS = 3; + + // Negative AdGroupCriterion cannot have labels. + CANNOT_ADD_LABEL_TO_NEGATIVE_CRITERION = 4; + + // Too many operations for a single call. + TOO_MANY_OPERATIONS = 5; + + // Negative ad group criteria are not updateable. + CANT_UPDATE_NEGATIVE = 6; + + // Concrete type of criterion (keyword v.s. placement) is required for ADD + // and SET operations. + CONCRETE_TYPE_REQUIRED = 7; + + // Bid is incompatible with ad group's bidding settings. + BID_INCOMPATIBLE_WITH_ADGROUP = 8; + + // Cannot target and exclude the same criterion at once. + CANNOT_TARGET_AND_EXCLUDE = 9; + + // The URL of a placement is invalid. + ILLEGAL_URL = 10; + + // Keyword text was invalid. + INVALID_KEYWORD_TEXT = 11; + + // Destination URL was invalid. + INVALID_DESTINATION_URL = 12; + + // The destination url must contain at least one tag (e.g. {lpurl}) + MISSING_DESTINATION_URL_TAG = 13; + + // Keyword-level cpm bid is not supported + KEYWORD_LEVEL_BID_NOT_SUPPORTED_FOR_MANUALCPM = 14; + + // For example, cannot add a biddable ad group criterion that had been + // removed. + INVALID_USER_STATUS = 15; + + // Criteria type cannot be targeted for the ad group. Either the account is + // restricted to keywords only, the criteria type is incompatible with the + // campaign's bidding strategy, or the criteria type can only be applied to + // campaigns. + CANNOT_ADD_CRITERIA_TYPE = 16; + + // Criteria type cannot be excluded for the ad group. Refer to the + // documentation for a specific criterion to check if it is excludable. + CANNOT_EXCLUDE_CRITERIA_TYPE = 17; + + // Partial failure is not supported for shopping campaign mutate operations. + CAMPAIGN_TYPE_NOT_COMPATIBLE_WITH_PARTIAL_FAILURE = 27; + + // Operations in the mutate request changes too many shopping ad groups. + // Please split requests for multiple shopping ad groups across multiple + // requests. + OPERATIONS_FOR_TOO_MANY_SHOPPING_ADGROUPS = 28; + + // Not allowed to modify url fields of an ad group criterion if there are + // duplicate elements for that ad group criterion in the request. + CANNOT_MODIFY_URL_FIELDS_WITH_DUPLICATE_ELEMENTS = 29; + + // Cannot set url fields without also setting final urls. + CANNOT_SET_WITHOUT_FINAL_URLS = 30; + + // Cannot clear final urls if final mobile urls exist. + CANNOT_CLEAR_FINAL_URLS_IF_FINAL_MOBILE_URLS_EXIST = 31; + + // Cannot clear final urls if final app urls exist. + CANNOT_CLEAR_FINAL_URLS_IF_FINAL_APP_URLS_EXIST = 32; + + // Cannot clear final urls if tracking url template exists. + CANNOT_CLEAR_FINAL_URLS_IF_TRACKING_URL_TEMPLATE_EXISTS = 33; + + // Cannot clear final urls if url custom parameters exist. + CANNOT_CLEAR_FINAL_URLS_IF_URL_CUSTOM_PARAMETERS_EXIST = 34; + + // Cannot set both destination url and final urls. + CANNOT_SET_BOTH_DESTINATION_URL_AND_FINAL_URLS = 35; + + // Cannot set both destination url and tracking url template. + CANNOT_SET_BOTH_DESTINATION_URL_AND_TRACKING_URL_TEMPLATE = 36; + + // Final urls are not supported for this criterion type. + FINAL_URLS_NOT_SUPPORTED_FOR_CRITERION_TYPE = 37; + + // Final mobile urls are not supported for this criterion type. + FINAL_MOBILE_URLS_NOT_SUPPORTED_FOR_CRITERION_TYPE = 38; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/ad_group_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/ad_group_error.proto new file mode 100644 index 000000000..f53c42710 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/ad_group_error.proto @@ -0,0 +1,87 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "AdGroupErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing ad group errors. + +// Container for enum describing possible ad group errors. +message AdGroupErrorEnum { + // Enum describing possible ad group errors. + enum AdGroupError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // AdGroup with the same name already exists for the campaign. + DUPLICATE_ADGROUP_NAME = 2; + + // AdGroup name is not valid. + INVALID_ADGROUP_NAME = 3; + + // Advertiser is not allowed to target sites or set site bids that are not + // on the Google Search Network. + ADVERTISER_NOT_ON_CONTENT_NETWORK = 5; + + // Bid amount is too big. + BID_TOO_BIG = 6; + + // AdGroup bid does not match the campaign's bidding strategy. + BID_TYPE_AND_BIDDING_STRATEGY_MISMATCH = 7; + + // AdGroup name is required for Add. + MISSING_ADGROUP_NAME = 8; + + // No link found between the ad group and the label. + ADGROUP_LABEL_DOES_NOT_EXIST = 9; + + // The label has already been attached to the ad group. + ADGROUP_LABEL_ALREADY_EXISTS = 10; + + // The CriterionTypeGroup is not supported for the content bid dimension. + INVALID_CONTENT_BID_CRITERION_TYPE_GROUP = 11; + + // The ad group type is not compatible with the campaign channel type. + AD_GROUP_TYPE_NOT_VALID_FOR_ADVERTISING_CHANNEL_TYPE = 12; + + // The ad group type is not supported in the country of sale of the + // campaign. + ADGROUP_TYPE_NOT_SUPPORTED_FOR_CAMPAIGN_SALES_COUNTRY = 13; + + // Ad groups of AdGroupType.SEARCH_DYNAMIC_ADS can only be added to + // campaigns that have DynamicSearchAdsSetting attached. + CANNOT_ADD_ADGROUP_OF_TYPE_DSA_TO_CAMPAIGN_WITHOUT_DSA_SETTING = 14; + + // Promoted hotels ad groups are only available to customers on the + // allow-list. + PROMOTED_HOTEL_AD_GROUPS_NOT_AVAILABLE_FOR_CUSTOMER = 15; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/ad_group_feed_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/ad_group_feed_error.proto new file mode 100644 index 000000000..85132a720 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/ad_group_feed_error.proto @@ -0,0 +1,67 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "AdGroupFeedErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing ad group feed errors. + +// Container for enum describing possible ad group feed errors. +message AdGroupFeedErrorEnum { + // Enum describing possible ad group feed errors. + enum AdGroupFeedError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // An active feed already exists for this ad group and place holder type. + FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE = 2; + + // The specified feed is removed. + CANNOT_CREATE_FOR_REMOVED_FEED = 3; + + // The AdGroupFeed already exists. UPDATE operation should be used to modify + // the existing AdGroupFeed. + ADGROUP_FEED_ALREADY_EXISTS = 4; + + // Cannot operate on removed AdGroupFeed. + CANNOT_OPERATE_ON_REMOVED_ADGROUP_FEED = 5; + + // Invalid placeholder type. + INVALID_PLACEHOLDER_TYPE = 6; + + // Feed mapping for this placeholder type does not exist. + MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE = 7; + + // Location AdGroupFeeds cannot be created unless there is a location + // CustomerFeed for the specified feed. + NO_EXISTING_LOCATION_CUSTOMER_FEED = 8; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/ad_parameter_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/ad_parameter_error.proto new file mode 100644 index 000000000..810aa8bdc --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/ad_parameter_error.proto @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "AdParameterErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing ad parameter errors. + +// Container for enum describing possible ad parameter errors. +message AdParameterErrorEnum { + // Enum describing possible ad parameter errors. + enum AdParameterError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // The ad group criterion must be a keyword criterion. + AD_GROUP_CRITERION_MUST_BE_KEYWORD = 2; + + // The insertion text is invalid. + INVALID_INSERTION_TEXT_FORMAT = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/ad_sharing_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/ad_sharing_error.proto new file mode 100644 index 000000000..a1308f559 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/ad_sharing_error.proto @@ -0,0 +1,54 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "AdSharingErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing ad sharing errors. + +// Container for enum describing possible ad sharing errors. +message AdSharingErrorEnum { + // Enum describing possible ad sharing errors. + enum AdSharingError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Error resulting in attempting to add an Ad to an AdGroup that already + // contains the Ad. + AD_GROUP_ALREADY_CONTAINS_AD = 2; + + // Ad is not compatible with the AdGroup it is being shared with. + INCOMPATIBLE_AD_UNDER_AD_GROUP = 3; + + // Cannot add AdGroupAd on inactive Ad. + CANNOT_SHARE_INACTIVE_AD = 4; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/adx_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/adx_error.proto new file mode 100644 index 000000000..7f3db6220 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/adx_error.proto @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "AdxErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing adx errors. + +// Container for enum describing possible adx errors. +message AdxErrorEnum { + // Enum describing possible adx errors. + enum AdxError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Attempt to use non-AdX feature by AdX customer. + UNSUPPORTED_FEATURE = 2; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/asset_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/asset_error.proto new file mode 100644 index 000000000..a45da9b95 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/asset_error.proto @@ -0,0 +1,80 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "AssetErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing asset errors. + +// Container for enum describing possible asset errors. +message AssetErrorEnum { + // Enum describing possible asset errors. + enum AssetError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // The customer is not is not on the allow-list for this asset type. + CUSTOMER_NOT_ON_ALLOWLIST_FOR_ASSET_TYPE = 13; + + // Assets are duplicated across operations. + DUPLICATE_ASSET = 3; + + // The asset name is duplicated, either across operations or with an + // existing asset. + DUPLICATE_ASSET_NAME = 4; + + // The Asset.asset_data oneof is empty. + ASSET_DATA_IS_MISSING = 5; + + // The asset has a name which is different from an existing duplicate that + // represents the same content. + CANNOT_MODIFY_ASSET_NAME = 6; + + // The field cannot be set for this asset type. + FIELD_INCOMPATIBLE_WITH_ASSET_TYPE = 7; + + // Call to action must come from the list of supported values. + INVALID_CALL_TO_ACTION_TEXT = 8; + + // A lead form asset is created with an invalid combination of input fields. + LEAD_FORM_INVALID_FIELDS_COMBINATION = 9; + + // Lead forms require that the Terms of Service have been agreed to before + // mutates can be executed. + LEAD_FORM_MISSING_AGREEMENT = 10; + + // Asset status is invalid in this operation. + INVALID_ASSET_STATUS = 11; + + // The field cannot be modified by this asset type. + FIELD_CANNOT_BE_MODIFIED_FOR_ASSET_TYPE = 12; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/asset_link_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/asset_link_error.proto new file mode 100644 index 000000000..361e60041 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/asset_link_error.proto @@ -0,0 +1,99 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "AssetLinkErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing asset link errors. + +// Container for enum describing possible asset link errors. +message AssetLinkErrorEnum { + // Enum describing possible asset link errors. + enum AssetLinkError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Pinning is not supported for the given asset link field. + PINNING_UNSUPPORTED = 2; + + // The given field type is not supported to be added directly via asset + // links. + UNSUPPORTED_FIELD_TYPE = 3; + + // The given asset's type and the specified field type are incompatible. + FIELD_TYPE_INCOMPATIBLE_WITH_ASSET_TYPE = 4; + + // The specified field type is incompatible with the given campaign type. + FIELD_TYPE_INCOMPATIBLE_WITH_CAMPAIGN_TYPE = 5; + + // The campaign advertising channel type cannot be associated with the given + // asset due to channel-based restrictions on the asset's fields. + INCOMPATIBLE_ADVERTISING_CHANNEL_TYPE = 6; + + // The image asset provided is not within the dimension constraints + // specified for the submitted asset field. + IMAGE_NOT_WITHIN_SPECIFIED_DIMENSION_RANGE = 7; + + // The pinned field is not valid for the submitted asset field. + INVALID_PINNED_FIELD = 8; + + // The media bundle asset provided is too large for the submitted asset + // field. + MEDIA_BUNDLE_ASSET_FILE_SIZE_TOO_LARGE = 9; + + // Not enough assets are available for use with other fields since other + // assets are pinned to specific fields. + NOT_ENOUGH_AVAILABLE_ASSET_LINKS_FOR_VALID_COMBINATION = 10; + + // Not enough assets with fallback are available. When validating the + // minimum number of assets, assets without fallback (e.g. assets that + // contain location tag without default value "{LOCATION(City)}") will not + // be counted. + NOT_ENOUGH_AVAILABLE_ASSET_LINKS_WITH_FALLBACK = 11; + + // This is a combination of the + // NOT_ENOUGH_AVAILABLE_ASSET_LINKS_FOR_VALID_COMBINATION and + // NOT_ENOUGH_AVAILABLE_ASSET_LINKS_WITH_FALLBACK errors. Not enough assets + // with fallback are available since some assets are pinned. + NOT_ENOUGH_AVAILABLE_ASSET_LINKS_WITH_FALLBACK_FOR_VALID_COMBINATION = 12; + + // The YouTube video referenced in the provided asset has been removed. + YOUTUBE_VIDEO_REMOVED = 13; + + // The YouTube video referenced in the provided asset is too long for the + // field submitted. + YOUTUBE_VIDEO_TOO_LONG = 14; + + // The YouTube video referenced in the provided asset is too short for the + // field submitted. + YOUTUBE_VIDEO_TOO_SHORT = 15; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/authentication_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/authentication_error.proto new file mode 100644 index 000000000..828cd193e --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/authentication_error.proto @@ -0,0 +1,103 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "AuthenticationErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing authentication errors. + +// Container for enum describing possible authentication errors. +message AuthenticationErrorEnum { + // Enum describing possible authentication errors. + enum AuthenticationError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Authentication of the request failed. + AUTHENTICATION_ERROR = 2; + + // Client Customer Id is not a number. + CLIENT_CUSTOMER_ID_INVALID = 5; + + // No customer found for the provided customer id. + CUSTOMER_NOT_FOUND = 8; + + // Client's Google Account is deleted. + GOOGLE_ACCOUNT_DELETED = 9; + + // Google account login token in the cookie is invalid. + GOOGLE_ACCOUNT_COOKIE_INVALID = 10; + + // A problem occurred during Google account authentication. + GOOGLE_ACCOUNT_AUTHENTICATION_FAILED = 25; + + // The user in the google account login token does not match the UserId in + // the cookie. + GOOGLE_ACCOUNT_USER_AND_ADS_USER_MISMATCH = 12; + + // Login cookie is required for authentication. + LOGIN_COOKIE_REQUIRED = 13; + + // User in the cookie is not a valid Ads user. + NOT_ADS_USER = 14; + + // Oauth token in the header is not valid. + OAUTH_TOKEN_INVALID = 15; + + // Oauth token in the header has expired. + OAUTH_TOKEN_EXPIRED = 16; + + // Oauth token in the header has been disabled. + OAUTH_TOKEN_DISABLED = 17; + + // Oauth token in the header has been revoked. + OAUTH_TOKEN_REVOKED = 18; + + // Oauth token HTTP header is malformed. + OAUTH_TOKEN_HEADER_INVALID = 19; + + // Login cookie is not valid. + LOGIN_COOKIE_INVALID = 20; + + // User Id in the header is not a valid id. + USER_ID_INVALID = 22; + + // An account administrator changed this account's authentication settings. + // To access this Google Ads account, enable 2-Step Verification in your + // Google account at https://www.google.com/landing/2step. + TWO_STEP_VERIFICATION_NOT_ENROLLED = 23; + + // An account administrator changed this account's authentication settings. + // To access this Google Ads account, enable Advanced Protection in your + // Google account at https://landing.google.com/advancedprotection. + ADVANCED_PROTECTION_NOT_ENROLLED = 24; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/authorization_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/authorization_error.proto new file mode 100644 index 000000000..300babeaf --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/authorization_error.proto @@ -0,0 +1,92 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "AuthorizationErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing authorization errors. + +// Container for enum describing possible authorization errors. +message AuthorizationErrorEnum { + // Enum describing possible authorization errors. + enum AuthorizationError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // User doesn't have permission to access customer. Note: If you're + // accessing a client customer, the manager's customer ID must be set in the + // `login-customer-id` header. Learn more at + // https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid + USER_PERMISSION_DENIED = 2; + + // The developer token is not on the allow-list. + DEVELOPER_TOKEN_NOT_ON_ALLOWLIST = 13; + + // The developer token is not allowed with the project sent in the request. + DEVELOPER_TOKEN_PROHIBITED = 4; + + // The Google Cloud project sent in the request does not have permission to + // access the api. + PROJECT_DISABLED = 5; + + // Authorization of the client failed. + AUTHORIZATION_ERROR = 6; + + // The user does not have permission to perform this action + // (e.g., ADD, UPDATE, REMOVE) on the resource or call a method. + ACTION_NOT_PERMITTED = 7; + + // Signup not complete. + INCOMPLETE_SIGNUP = 8; + + // The customer can't be used because it isn't enabled. + CUSTOMER_NOT_ENABLED = 24; + + // The developer must sign the terms of service. They can be found here: + // ads.google.com/aw/apicenter + MISSING_TOS = 9; + + // The developer token is not approved. Non-approved developer tokens can + // only be used with test accounts. + DEVELOPER_TOKEN_NOT_APPROVED = 10; + + // The login customer specified does not have access to the account + // specified, so the request is invalid. + INVALID_LOGIN_CUSTOMER_ID_SERVING_CUSTOMER_ID_COMBINATION = 11; + + // The developer specified does not have access to the service. + SERVICE_ACCESS_DENIED = 12; + + // The customer (or login customer) isn't in Google Ads. It belongs to + // another ads system. + ACCESS_DENIED_FOR_ACCOUNT_TYPE = 25; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/batch_job_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/batch_job_error.proto new file mode 100644 index 000000000..617bc5b26 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/batch_job_error.proto @@ -0,0 +1,63 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "BatchJobErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing batch job errors. + +// Container for enum describing possible batch job errors. +message BatchJobErrorEnum { + // Enum describing possible request errors. + enum BatchJobError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // The batch job cannot add more operations or run after it has started + // running. + CANNOT_MODIFY_JOB_AFTER_JOB_STARTS_RUNNING = 2; + + // The operations for an AddBatchJobOperations request were empty. + EMPTY_OPERATIONS = 3; + + // The sequence token for an AddBatchJobOperations request was invalid. + INVALID_SEQUENCE_TOKEN = 4; + + // Batch job results can only be retrieved once the job is finished. + RESULTS_NOT_READY = 5; + + // The page size for ListBatchJobResults was invalid. + INVALID_PAGE_SIZE = 6; + + // The batch job cannot be removed because it has started running. + CAN_ONLY_REMOVE_PENDING_JOB = 7; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/bidding_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/bidding_error.proto new file mode 100644 index 000000000..8f732d367 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/bidding_error.proto @@ -0,0 +1,122 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "BiddingErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing bidding errors. + +// Container for enum describing possible bidding errors. +message BiddingErrorEnum { + // Enum describing possible bidding errors. + enum BiddingError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Cannot transition to new bidding strategy. + BIDDING_STRATEGY_TRANSITION_NOT_ALLOWED = 2; + + // Cannot attach bidding strategy to campaign. + CANNOT_ATTACH_BIDDING_STRATEGY_TO_CAMPAIGN = 7; + + // Bidding strategy is not supported or cannot be used as anonymous. + INVALID_ANONYMOUS_BIDDING_STRATEGY_TYPE = 10; + + // The type does not match the named strategy's type. + INVALID_BIDDING_STRATEGY_TYPE = 14; + + // The bid is invalid. + INVALID_BID = 17; + + // Bidding strategy is not available for the account type. + BIDDING_STRATEGY_NOT_AVAILABLE_FOR_ACCOUNT_TYPE = 18; + + // Conversion tracking is not enabled in the campaign that has value-based + // bidding transitions. + CONVERSION_TRACKING_NOT_ENABLED = 19; + + // Not enough conversions tracked for value-based bidding transitions. + NOT_ENOUGH_CONVERSIONS = 20; + + // Campaign can not be created with given bidding strategy. It can be + // transitioned to the strategy, once eligible. + CANNOT_CREATE_CAMPAIGN_WITH_BIDDING_STRATEGY = 21; + + // Cannot target content network only as campaign uses Page One Promoted + // bidding strategy. + CANNOT_TARGET_CONTENT_NETWORK_ONLY_WITH_CAMPAIGN_LEVEL_POP_BIDDING_STRATEGY = 23; + + // Budget Optimizer and Target Spend bidding strategies are not supported + // for campaigns with AdSchedule targeting. + BIDDING_STRATEGY_NOT_SUPPORTED_WITH_AD_SCHEDULE = 24; + + // Pay per conversion is not available to all the customer, only few + // customers on the allow-list can use this. + PAY_PER_CONVERSION_NOT_AVAILABLE_FOR_CUSTOMER = 25; + + // Pay per conversion is not allowed with Target CPA. + PAY_PER_CONVERSION_NOT_ALLOWED_WITH_TARGET_CPA = 26; + + // Cannot set bidding strategy to Manual CPM for search network only + // campaigns. + BIDDING_STRATEGY_NOT_ALLOWED_FOR_SEARCH_ONLY_CAMPAIGNS = 27; + + // The bidding strategy is not supported for use in drafts or experiments. + BIDDING_STRATEGY_NOT_SUPPORTED_IN_DRAFTS_OR_EXPERIMENTS = 28; + + // Bidding strategy type does not support product type ad group criterion. + BIDDING_STRATEGY_TYPE_DOES_NOT_SUPPORT_PRODUCT_TYPE_ADGROUP_CRITERION = 29; + + // Bid amount is too small. + BID_TOO_SMALL = 30; + + // Bid amount is too big. + BID_TOO_BIG = 31; + + // Bid has too many fractional digit precision. + BID_TOO_MANY_FRACTIONAL_DIGITS = 32; + + // Invalid domain name specified. + INVALID_DOMAIN_NAME = 33; + + // The field is not compatible with the payment mode. + NOT_COMPATIBLE_WITH_PAYMENT_MODE = 34; + + // The field is not compatible with the budget type. + NOT_COMPATIBLE_WITH_BUDGET_TYPE = 35; + + // The field is not compatible with the bidding strategy type. + NOT_COMPATIBLE_WITH_BIDDING_STRATEGY_TYPE = 36; + + // Bidding strategy type is incompatible with shared budget. + BIDDING_STRATEGY_TYPE_INCOMPATIBLE_WITH_SHARED_BUDGET = 37; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/bidding_strategy_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/bidding_strategy_error.proto new file mode 100644 index 000000000..77a1fee02 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/bidding_strategy_error.proto @@ -0,0 +1,61 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "BiddingStrategyErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing bidding strategy errors. + +// Container for enum describing possible bidding strategy errors. +message BiddingStrategyErrorEnum { + // Enum describing possible bidding strategy errors. + enum BiddingStrategyError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Each bidding strategy must have a unique name. + DUPLICATE_NAME = 2; + + // Bidding strategy type is immutable. + CANNOT_CHANGE_BIDDING_STRATEGY_TYPE = 3; + + // Only bidding strategies not linked to campaigns, adgroups or adgroup + // criteria can be removed. + CANNOT_REMOVE_ASSOCIATED_STRATEGY = 4; + + // The specified bidding strategy is not supported. + BIDDING_STRATEGY_NOT_SUPPORTED = 5; + + // The bidding strategy is incompatible with the campaign's bidding + // strategy goal type. + INCOMPATIBLE_BIDDING_STRATEGY_AND_BIDDING_STRATEGY_GOAL_TYPE = 6; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/billing_setup_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/billing_setup_error.proto new file mode 100644 index 000000000..33f0b8f47 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/billing_setup_error.proto @@ -0,0 +1,105 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "BillingSetupErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing billing setup errors. + +// Container for enum describing possible billing setup errors. +message BillingSetupErrorEnum { + // Enum describing possible billing setup errors. + enum BillingSetupError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Cannot specify both an existing payments account and a new payments + // account when setting up billing. + CANNOT_USE_EXISTING_AND_NEW_ACCOUNT = 2; + + // Cannot cancel an approved billing setup whose start time has passed. + CANNOT_REMOVE_STARTED_BILLING_SETUP = 3; + + // Cannot perform a Change of Bill-To (CBT) to the same payments account. + CANNOT_CHANGE_BILLING_TO_SAME_PAYMENTS_ACCOUNT = 4; + + // Billing setups can only be used by customers with ENABLED or DRAFT + // status. + BILLING_SETUP_NOT_PERMITTED_FOR_CUSTOMER_STATUS = 5; + + // Billing setups must either include a correctly formatted existing + // payments account id, or a non-empty new payments account name. + INVALID_PAYMENTS_ACCOUNT = 6; + + // Only billable and third-party customers can create billing setups. + BILLING_SETUP_NOT_PERMITTED_FOR_CUSTOMER_CATEGORY = 7; + + // Billing setup creations can only use NOW for start time type. + INVALID_START_TIME_TYPE = 8; + + // Billing setups can only be created for a third-party customer if they do + // not already have a setup. + THIRD_PARTY_ALREADY_HAS_BILLING = 9; + + // Billing setups cannot be created if there is already a pending billing in + // progress. + BILLING_SETUP_IN_PROGRESS = 10; + + // Billing setups can only be created by customers who have permission to + // setup billings. Users can contact a representative for help setting up + // permissions. + NO_SIGNUP_PERMISSION = 11; + + // Billing setups cannot be created if there is already a future-approved + // billing. + CHANGE_OF_BILL_TO_IN_PROGRESS = 12; + + // Requested payments profile not found. + PAYMENTS_PROFILE_NOT_FOUND = 13; + + // Requested payments account not found. + PAYMENTS_ACCOUNT_NOT_FOUND = 14; + + // Billing setup creation failed because the payments profile is ineligible. + PAYMENTS_PROFILE_INELIGIBLE = 15; + + // Billing setup creation failed because the payments account is ineligible. + PAYMENTS_ACCOUNT_INELIGIBLE = 16; + + // Billing setup creation failed because the payments profile needs internal + // approval. + CUSTOMER_NEEDS_INTERNAL_APPROVAL = 17; + + // Payments account has different currency code than the current customer + // and hence cannot be used to setup billing. + PAYMENTS_ACCOUNT_INELIGIBLE_CURRENCY_CODE_MISMATCH = 19; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/campaign_budget_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/campaign_budget_error.proto new file mode 100644 index 000000000..5cd2265db --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/campaign_budget_error.proto @@ -0,0 +1,97 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "CampaignBudgetErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing campaign budget errors. + +// Container for enum describing possible campaign budget errors. +message CampaignBudgetErrorEnum { + // Enum describing possible campaign budget errors. + enum CampaignBudgetError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // The campaign budget cannot be shared. + CAMPAIGN_BUDGET_CANNOT_BE_SHARED = 17; + + // The requested campaign budget no longer exists. + CAMPAIGN_BUDGET_REMOVED = 2; + + // The campaign budget is associated with at least one campaign, and so the + // campaign budget cannot be removed. + CAMPAIGN_BUDGET_IN_USE = 3; + + // Customer is not on the allow-list for this campaign budget period. + CAMPAIGN_BUDGET_PERIOD_NOT_AVAILABLE = 4; + + // This field is not mutable on implicitly shared campaign budgets + CANNOT_MODIFY_FIELD_OF_IMPLICITLY_SHARED_CAMPAIGN_BUDGET = 6; + + // Cannot change explicitly shared campaign budgets back to implicitly + // shared ones. + CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_IMPLICITLY_SHARED = 7; + + // An implicit campaign budget without a name cannot be changed to + // explicitly shared campaign budget. + CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED_WITHOUT_NAME = 8; + + // Cannot change an implicitly shared campaign budget to an explicitly + // shared one. + CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED = 9; + + // Only explicitly shared campaign budgets can be used with multiple + // campaigns. + CANNOT_USE_IMPLICITLY_SHARED_CAMPAIGN_BUDGET_WITH_MULTIPLE_CAMPAIGNS = 10; + + // A campaign budget with this name already exists. + DUPLICATE_NAME = 11; + + // A money amount was not in the expected currency. + MONEY_AMOUNT_IN_WRONG_CURRENCY = 12; + + // A money amount was less than the minimum CPC for currency. + MONEY_AMOUNT_LESS_THAN_CURRENCY_MINIMUM_CPC = 13; + + // A money amount was greater than the maximum allowed. + MONEY_AMOUNT_TOO_LARGE = 14; + + // A money amount was negative. + NEGATIVE_MONEY_AMOUNT = 15; + + // A money amount was not a multiple of a minimum unit. + NON_MULTIPLE_OF_MINIMUM_CURRENCY_UNIT = 16; + + // Total budget amount must be unset when BudgetPeriod is DAILY. + TOTAL_BUDGET_AMOUNT_MUST_BE_UNSET_FOR_BUDGET_PERIOD_DAILY = 18; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/campaign_criterion_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/campaign_criterion_error.proto new file mode 100644 index 000000000..a14ffa71c --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/campaign_criterion_error.proto @@ -0,0 +1,81 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "CampaignCriterionErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing campaign criterion errors. + +// Container for enum describing possible campaign criterion errors. +message CampaignCriterionErrorEnum { + // Enum describing possible campaign criterion errors. + enum CampaignCriterionError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Concrete type of criterion (keyword v.s. placement) is required for + // CREATE and UPDATE operations. + CONCRETE_TYPE_REQUIRED = 2; + + // Invalid placement URL. + INVALID_PLACEMENT_URL = 3; + + // Criteria type can not be excluded for the campaign by the customer. like + // AOL account type cannot target site type criteria + CANNOT_EXCLUDE_CRITERIA_TYPE = 4; + + // Cannot set the campaign criterion status for this criteria type. + CANNOT_SET_STATUS_FOR_CRITERIA_TYPE = 5; + + // Cannot set the campaign criterion status for an excluded criteria. + CANNOT_SET_STATUS_FOR_EXCLUDED_CRITERIA = 6; + + // Cannot target and exclude the same criterion. + CANNOT_TARGET_AND_EXCLUDE = 7; + + // The mutate contained too many operations. + TOO_MANY_OPERATIONS = 8; + + // This operator cannot be applied to a criterion of this type. + OPERATOR_NOT_SUPPORTED_FOR_CRITERION_TYPE = 9; + + // The Shopping campaign sales country is not supported for + // ProductSalesChannel targeting. + SHOPPING_CAMPAIGN_SALES_COUNTRY_NOT_SUPPORTED_FOR_SALES_CHANNEL = 10; + + // The existing field can't be updated with CREATE operation. It can be + // updated with UPDATE operation only. + CANNOT_ADD_EXISTING_FIELD = 11; + + // Negative criteria are immutable, so updates are not allowed. + CANNOT_UPDATE_NEGATIVE_CRITERION = 12; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/campaign_draft_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/campaign_draft_error.proto new file mode 100644 index 000000000..7bcbf5bf7 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/campaign_draft_error.proto @@ -0,0 +1,79 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "CampaignDraftErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing campaign draft errors. + +// Container for enum describing possible campaign draft errors. +message CampaignDraftErrorEnum { + // Enum describing possible campaign draft errors. + enum CampaignDraftError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // A draft with this name already exists for this campaign. + DUPLICATE_DRAFT_NAME = 2; + + // The draft is removed and cannot be transitioned to another status. + INVALID_STATUS_TRANSITION_FROM_REMOVED = 3; + + // The draft has been promoted and cannot be transitioned to the specified + // status. + INVALID_STATUS_TRANSITION_FROM_PROMOTED = 4; + + // The draft has failed to be promoted and cannot be transitioned to the + // specified status. + INVALID_STATUS_TRANSITION_FROM_PROMOTE_FAILED = 5; + + // This customer is not allowed to create drafts. + CUSTOMER_CANNOT_CREATE_DRAFT = 6; + + // This campaign is not allowed to create drafts. + CAMPAIGN_CANNOT_CREATE_DRAFT = 7; + + // This modification cannot be made on a draft. + INVALID_DRAFT_CHANGE = 8; + + // The draft cannot be transitioned to the specified status from its + // current status. + INVALID_STATUS_TRANSITION = 9; + + // The campaign has reached the maximum number of drafts that can be created + // for a campaign throughout its lifetime. No additional drafts can be + // created for this campaign. Removed drafts also count towards this limit. + MAX_NUMBER_OF_DRAFTS_PER_CAMPAIGN_REACHED = 10; + + // ListAsyncErrors was called without first promoting the draft. + LIST_ERRORS_FOR_PROMOTED_DRAFT_ONLY = 11; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/campaign_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/campaign_error.proto new file mode 100644 index 000000000..d746b18b7 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/campaign_error.proto @@ -0,0 +1,183 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "CampaignErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing campaign errors. + +// Container for enum describing possible campaign errors. +message CampaignErrorEnum { + // Enum describing possible campaign errors. + enum CampaignError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Cannot target content network. + CANNOT_TARGET_CONTENT_NETWORK = 3; + + // Cannot target search network. + CANNOT_TARGET_SEARCH_NETWORK = 4; + + // Cannot cover search network without google search network. + CANNOT_TARGET_SEARCH_NETWORK_WITHOUT_GOOGLE_SEARCH = 5; + + // Cannot target Google Search network for a CPM campaign. + CANNOT_TARGET_GOOGLE_SEARCH_FOR_CPM_CAMPAIGN = 6; + + // Must target at least one network. + CAMPAIGN_MUST_TARGET_AT_LEAST_ONE_NETWORK = 7; + + // Only some Google partners are allowed to target partner search network. + CANNOT_TARGET_PARTNER_SEARCH_NETWORK = 8; + + // Cannot target content network only as campaign has criteria-level bidding + // strategy. + CANNOT_TARGET_CONTENT_NETWORK_ONLY_WITH_CRITERIA_LEVEL_BIDDING_STRATEGY = 9; + + // Cannot modify the start or end date such that the campaign duration would + // not contain the durations of all runnable trials. + CAMPAIGN_DURATION_MUST_CONTAIN_ALL_RUNNABLE_TRIALS = 10; + + // Cannot modify dates, budget or campaign name of a trial campaign. + CANNOT_MODIFY_FOR_TRIAL_CAMPAIGN = 11; + + // Trying to modify the name of an active or paused campaign, where the name + // is already assigned to another active or paused campaign. + DUPLICATE_CAMPAIGN_NAME = 12; + + // Two fields are in conflicting modes. + INCOMPATIBLE_CAMPAIGN_FIELD = 13; + + // Campaign name cannot be used. + INVALID_CAMPAIGN_NAME = 14; + + // Given status is invalid. + INVALID_AD_SERVING_OPTIMIZATION_STATUS = 15; + + // Error in the campaign level tracking URL. + INVALID_TRACKING_URL = 16; + + // Cannot set both tracking URL template and tracking setting. A user has + // to clear legacy tracking setting in order to add tracking URL template. + CANNOT_SET_BOTH_TRACKING_URL_TEMPLATE_AND_TRACKING_SETTING = 17; + + // The maximum number of impressions for Frequency Cap should be an integer + // greater than 0. + MAX_IMPRESSIONS_NOT_IN_RANGE = 18; + + // Only the Day, Week and Month time units are supported. + TIME_UNIT_NOT_SUPPORTED = 19; + + // Operation not allowed on a campaign whose serving status has ended + INVALID_OPERATION_IF_SERVING_STATUS_HAS_ENDED = 20; + + // This budget is exclusively linked to a Campaign that is using experiments + // so it cannot be shared. + BUDGET_CANNOT_BE_SHARED = 21; + + // Campaigns using experiments cannot use a shared budget. + CAMPAIGN_CANNOT_USE_SHARED_BUDGET = 22; + + // A different budget cannot be assigned to a campaign when there are + // running or scheduled trials. + CANNOT_CHANGE_BUDGET_ON_CAMPAIGN_WITH_TRIALS = 23; + + // No link found between the campaign and the label. + CAMPAIGN_LABEL_DOES_NOT_EXIST = 24; + + // The label has already been attached to the campaign. + CAMPAIGN_LABEL_ALREADY_EXISTS = 25; + + // A ShoppingSetting was not found when creating a shopping campaign. + MISSING_SHOPPING_SETTING = 26; + + // The country in shopping setting is not an allowed country. + INVALID_SHOPPING_SALES_COUNTRY = 27; + + // The requested channel type is not available according to the customer's + // account setting. + ADVERTISING_CHANNEL_TYPE_NOT_AVAILABLE_FOR_ACCOUNT_TYPE = 31; + + // The AdvertisingChannelSubType is not a valid subtype of the primary + // channel type. + INVALID_ADVERTISING_CHANNEL_SUB_TYPE = 32; + + // At least one conversion must be selected. + AT_LEAST_ONE_CONVERSION_MUST_BE_SELECTED = 33; + + // Setting ad rotation mode for a campaign is not allowed. Ad rotation mode + // at campaign is deprecated. + CANNOT_SET_AD_ROTATION_MODE = 34; + + // Trying to change start date on a campaign that has started. + CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED = 35; + + // Trying to modify a date into the past. + CANNOT_SET_DATE_TO_PAST = 36; + + // Hotel center id in the hotel setting does not match any customer links. + MISSING_HOTEL_CUSTOMER_LINK = 37; + + // Hotel center id in the hotel setting must match an active customer link. + INVALID_HOTEL_CUSTOMER_LINK = 38; + + // Hotel setting was not found when creating a hotel ads campaign. + MISSING_HOTEL_SETTING = 39; + + // A Campaign cannot use shared campaign budgets and be part of a campaign + // group. + CANNOT_USE_SHARED_CAMPAIGN_BUDGET_WHILE_PART_OF_CAMPAIGN_GROUP = 40; + + // The app ID was not found. + APP_NOT_FOUND = 41; + + // Campaign.shopping_setting.enable_local is not supported for the specified + // campaign type. + SHOPPING_ENABLE_LOCAL_NOT_SUPPORTED_FOR_CAMPAIGN_TYPE = 42; + + // The merchant does not support the creation of campaigns for Shopping + // Comparison Listing Ads. + MERCHANT_NOT_ALLOWED_FOR_COMPARISON_LISTING_ADS = 43; + + // The App campaign for engagement cannot be created because there aren't + // enough installs. + INSUFFICIENT_APP_INSTALLS_COUNT = 44; + + // The App campaign for engagement cannot be created because the app is + // sensitive. + SENSITIVE_CATEGORY_APP = 45; + + // Customers with Housing, Employment, or Credit ads must accept updated + // personalized ads policy to continue creating campaigns. + HEC_AGREEMENT_REQUIRED = 46; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/campaign_experiment_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/campaign_experiment_error.proto new file mode 100644 index 000000000..af75c23e3 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/campaign_experiment_error.proto @@ -0,0 +1,81 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "CampaignExperimentErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing campaign experiment errors. + +// Container for enum describing possible campaign experiment errors. +message CampaignExperimentErrorEnum { + // Enum describing possible campaign experiment errors. + enum CampaignExperimentError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // An active campaign or experiment with this name already exists. + DUPLICATE_NAME = 2; + + // Experiment cannot be updated from the current state to the + // requested target state. For example, an experiment can only graduate + // if its status is ENABLED. + INVALID_TRANSITION = 3; + + // Cannot create an experiment from a campaign using an explicitly shared + // budget. + CANNOT_CREATE_EXPERIMENT_WITH_SHARED_BUDGET = 4; + + // Cannot create an experiment for a removed base campaign. + CANNOT_CREATE_EXPERIMENT_FOR_REMOVED_BASE_CAMPAIGN = 5; + + // Cannot create an experiment from a draft, which has a status other than + // proposed. + CANNOT_CREATE_EXPERIMENT_FOR_NON_PROPOSED_DRAFT = 6; + + // This customer is not allowed to create an experiment. + CUSTOMER_CANNOT_CREATE_EXPERIMENT = 7; + + // This campaign is not allowed to create an experiment. + CAMPAIGN_CANNOT_CREATE_EXPERIMENT = 8; + + // Trying to set an experiment duration which overlaps with another + // experiment. + EXPERIMENT_DURATIONS_MUST_NOT_OVERLAP = 9; + + // All non-removed experiments must start and end within their campaign's + // duration. + EXPERIMENT_DURATION_MUST_BE_WITHIN_CAMPAIGN_DURATION = 10; + + // The experiment cannot be modified because its status is in a terminal + // state, such as REMOVED. + CANNOT_MUTATE_EXPERIMENT_DUE_TO_STATUS = 11; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/campaign_feed_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/campaign_feed_error.proto new file mode 100644 index 000000000..9d92b1835 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/campaign_feed_error.proto @@ -0,0 +1,67 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "CampaignFeedErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing campaign feed errors. + +// Container for enum describing possible campaign feed errors. +message CampaignFeedErrorEnum { + // Enum describing possible campaign feed errors. + enum CampaignFeedError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // An active feed already exists for this campaign and placeholder type. + FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE = 2; + + // The specified feed is removed. + CANNOT_CREATE_FOR_REMOVED_FEED = 4; + + // The CampaignFeed already exists. UPDATE should be used to modify the + // existing CampaignFeed. + CANNOT_CREATE_ALREADY_EXISTING_CAMPAIGN_FEED = 5; + + // Cannot update removed campaign feed. + CANNOT_MODIFY_REMOVED_CAMPAIGN_FEED = 6; + + // Invalid placeholder type. + INVALID_PLACEHOLDER_TYPE = 7; + + // Feed mapping for this placeholder type does not exist. + MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE = 8; + + // Location CampaignFeeds cannot be created unless there is a location + // CustomerFeed for the specified feed. + NO_EXISTING_LOCATION_CUSTOMER_FEED = 9; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/campaign_shared_set_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/campaign_shared_set_error.proto new file mode 100644 index 000000000..5eca938c9 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/campaign_shared_set_error.proto @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "CampaignSharedSetErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing campaign shared set errors. + +// Container for enum describing possible campaign shared set errors. +message CampaignSharedSetErrorEnum { + // Enum describing possible campaign shared set errors. + enum CampaignSharedSetError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // The shared set belongs to another customer and permission isn't granted. + SHARED_SET_ACCESS_DENIED = 2; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/change_event_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/change_event_error.proto new file mode 100644 index 000000000..cbfd195f1 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/change_event_error.proto @@ -0,0 +1,63 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "ChangeEventErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing change event errors. + +// Container for enum describing possible change event errors. +message ChangeEventErrorEnum { + // Enum describing possible change event errors. + enum ChangeEventError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // The requested start date is too old. It cannot be older than 30 days. + START_DATE_TOO_OLD = 2; + + // The change_event search request must specify a finite range filter + // on change_date_time. + CHANGE_DATE_RANGE_INFINITE = 3; + + // The change event search request has specified invalid date time filters + // that can never logically produce any valid results (for example, start + // time after end time). + CHANGE_DATE_RANGE_NEGATIVE = 4; + + // The change_event search request must specify a LIMIT. + LIMIT_NOT_SPECIFIED = 5; + + // The LIMIT specified by change_event request should be less than or equal + // to 10K. + INVALID_LIMIT_CLAUSE = 6; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/change_status_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/change_status_error.proto new file mode 100644 index 000000000..d10470974 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/change_status_error.proto @@ -0,0 +1,63 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "ChangeStatusErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing change status errors. + +// Container for enum describing possible change status errors. +message ChangeStatusErrorEnum { + // Enum describing possible change status errors. + enum ChangeStatusError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // The requested start date is too old. + START_DATE_TOO_OLD = 3; + + // The change_status search request must specify a finite range filter + // on last_change_date_time. + CHANGE_DATE_RANGE_INFINITE = 4; + + // The change status search request has specified invalid date time filters + // that can never logically produce any valid results (for example, start + // time after end time). + CHANGE_DATE_RANGE_NEGATIVE = 5; + + // The change_status search request must specify a LIMIT. + LIMIT_NOT_SPECIFIED = 6; + + // The LIMIT specified by change_status request should be less than or equal + // to 10K. + INVALID_LIMIT_CLAUSE = 7; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/collection_size_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/collection_size_error.proto new file mode 100644 index 000000000..1776157f7 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/collection_size_error.proto @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "CollectionSizeErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing collection size errors. + +// Container for enum describing possible collection size errors. +message CollectionSizeErrorEnum { + // Enum describing possible collection size errors. + enum CollectionSizeError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Too few. + TOO_FEW = 2; + + // Too many. + TOO_MANY = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/context_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/context_error.proto new file mode 100644 index 000000000..be2970736 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/context_error.proto @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "ContextErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing context errors. + +// Container for enum describing possible context errors. +message ContextErrorEnum { + // Enum describing possible context errors. + enum ContextError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // The operation is not allowed for the given context. + OPERATION_NOT_PERMITTED_FOR_CONTEXT = 2; + + // The operation is not allowed for removed resources. + OPERATION_NOT_PERMITTED_FOR_REMOVED_RESOURCE = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/conversion_action_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/conversion_action_error.proto new file mode 100644 index 000000000..7deee7095 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/conversion_action_error.proto @@ -0,0 +1,82 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "ConversionActionErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing conversion action errors. + +// Container for enum describing possible conversion action errors. +message ConversionActionErrorEnum { + // Enum describing possible conversion action errors. + enum ConversionActionError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // The specified conversion action name already exists. + DUPLICATE_NAME = 2; + + // Another conversion action with the specified app id already exists. + DUPLICATE_APP_ID = 3; + + // Android first open action conflicts with Google play codeless download + // action tracking the same app. + TWO_CONVERSION_ACTIONS_BIDDING_ON_SAME_APP_DOWNLOAD = 4; + + // Android first open action conflicts with Google play codeless download + // action tracking the same app. + BIDDING_ON_SAME_APP_DOWNLOAD_AS_GLOBAL_ACTION = 5; + + // The attribution model cannot be set to DATA_DRIVEN because a data-driven + // model has never been generated. + DATA_DRIVEN_MODEL_WAS_NEVER_GENERATED = 6; + + // The attribution model cannot be set to DATA_DRIVEN because the + // data-driven model is expired. + DATA_DRIVEN_MODEL_EXPIRED = 7; + + // The attribution model cannot be set to DATA_DRIVEN because the + // data-driven model is stale. + DATA_DRIVEN_MODEL_STALE = 8; + + // The attribution model cannot be set to DATA_DRIVEN because the + // data-driven model is unavailable or the conversion action was newly + // added. + DATA_DRIVEN_MODEL_UNKNOWN = 9; + + // Creation of this conversion action type isn't supported by Google + // Ads API. + CREATION_NOT_SUPPORTED = 10; + + // Update of this conversion action isn't supported by Google Ads API. + UPDATE_NOT_SUPPORTED = 11; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/conversion_adjustment_upload_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/conversion_adjustment_upload_error.proto new file mode 100644 index 000000000..7a00dabfc --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/conversion_adjustment_upload_error.proto @@ -0,0 +1,85 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "ConversionAdjustmentUploadErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing conversion adjustment upload errors. + +// Container for enum describing possible conversion adjustment upload errors. +message ConversionAdjustmentUploadErrorEnum { + // Enum describing possible conversion adjustment upload errors. + enum ConversionAdjustmentUploadError { + // Not specified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // The specified conversion action was created too recently. + // Please try the upload again after 4-6 hours have passed since the + // conversion action was created. + TOO_RECENT_CONVERSION_ACTION = 2; + + // No conversion action of a supported ConversionActionType that matches the + // provided information can be found for the customer. + INVALID_CONVERSION_ACTION = 3; + + // A retraction was already reported for this conversion. + CONVERSION_ALREADY_RETRACTED = 4; + + // A conversion for the supplied combination of conversion + // action and conversion identifier could not be found. + CONVERSION_NOT_FOUND = 5; + + // The specified conversion has already expired. Conversions expire after 55 + // days, after which adjustments cannot be reported against them. + CONVERSION_EXPIRED = 6; + + // The supplied adjustment date time precedes that of the original + // conversion. + ADJUSTMENT_PRECEDES_CONVERSION = 7; + + // A restatement with a more recent adjustment date time was already + // reported for this conversion. + MORE_RECENT_RESTATEMENT_FOUND = 8; + + // The conversion was created too recently. + TOO_RECENT_CONVERSION = 9; + + // Restatements cannot be reported for a conversion action that always uses + // the default value. + CANNOT_RESTATE_CONVERSION_ACTION_THAT_ALWAYS_USES_DEFAULT_CONVERSION_VALUE = 10; + + // The request contained more than 2000 adjustments. + TOO_MANY_ADJUSTMENTS_IN_REQUEST = 11; + + // The conversion has been adjusted too many times. + TOO_MANY_ADJUSTMENTS = 12; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/conversion_upload_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/conversion_upload_error.proto new file mode 100644 index 000000000..0395de843 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/conversion_upload_error.proto @@ -0,0 +1,130 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "ConversionUploadErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing conversion upload errors. + +// Container for enum describing possible conversion upload errors. +message ConversionUploadErrorEnum { + // Enum describing possible conversion upload errors. + enum ConversionUploadError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // The request contained more than 2000 conversions. + TOO_MANY_CONVERSIONS_IN_REQUEST = 2; + + // The specified gclid could not be decoded. + UNPARSEABLE_GCLID = 3; + + // The specified conversion_date_time is before the event time + // associated with the given gclid. + CONVERSION_PRECEDES_GCLID = 4; + + // The click associated with the given gclid is either too old to be + // imported or occurred outside of the click through lookback window for the + // specified conversion action. + EXPIRED_GCLID = 5; + + // The click associated with the given gclid occurred too recently. Please + // try uploading again after 6 hours have passed since the click occurred. + TOO_RECENT_GCLID = 6; + + // The click associated with the given gclid could not be found in the + // system. This can happen if Google Click IDs are collected for non Google + // Ads clicks. + GCLID_NOT_FOUND = 7; + + // The click associated with the given gclid is owned by a customer + // account that the uploading customer does not manage. + UNAUTHORIZED_CUSTOMER = 8; + + // No upload eligible conversion action that matches the provided + // information can be found for the customer. + INVALID_CONVERSION_ACTION = 9; + + // The specified conversion action was created too recently. + // Please try the upload again after 4-6 hours have passed since the + // conversion action was created. + TOO_RECENT_CONVERSION_ACTION = 10; + + // The click associated with the given gclid does not contain conversion + // tracking information. + CONVERSION_TRACKING_NOT_ENABLED_AT_IMPRESSION_TIME = 11; + + // The specified conversion action does not use an external attribution + // model, but external_attribution_data was set. + EXTERNAL_ATTRIBUTION_DATA_SET_FOR_NON_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION = 12; + + // The specified conversion action uses an external attribution model, but + // external_attribution_data or one of its contained fields was not set. + // Both external_attribution_credit and external_attribution_model must be + // set for externally attributed conversion actions. + EXTERNAL_ATTRIBUTION_DATA_NOT_SET_FOR_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION = 13; + + // Order IDs are not supported for conversion actions which use an external + // attribution model. + ORDER_ID_NOT_PERMITTED_FOR_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION = 14; + + // A conversion with the same order id and conversion action combination + // already exists in our system. + ORDER_ID_ALREADY_IN_USE = 15; + + // The request contained two or more conversions with the same order id and + // conversion action combination. + DUPLICATE_ORDER_ID = 16; + + // The call occurred too recently. Please try uploading again after 12 hours + // have passed since the call occurred. + TOO_RECENT_CALL = 17; + + // The click that initiated the call is too old for this conversion to be + // imported. + EXPIRED_CALL = 18; + + // The call or the click leading to the call was not found. + CALL_NOT_FOUND = 19; + + // The specified conversion_date_time is before the call_start_date_time. + CONVERSION_PRECEDES_CALL = 20; + + // The click associated with the call does not contain conversion tracking + // information. + CONVERSION_TRACKING_NOT_ENABLED_AT_CALL_TIME = 21; + + // The caller’s phone number cannot be parsed. It should be formatted either + // as E.164 "+16502531234", International "+64 3-331 6005" or US national + // number "6502531234". + UNPARSEABLE_CALLERS_PHONE_NUMBER = 22; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/country_code_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/country_code_error.proto new file mode 100644 index 000000000..243f1d9ab --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/country_code_error.proto @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "CountryCodeErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing country code errors. + +// Container for enum describing country code errors. +message CountryCodeErrorEnum { + // Enum describing country code errors. + enum CountryCodeError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // The country code is invalid. + INVALID_COUNTRY_CODE = 2; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/criterion_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/criterion_error.proto new file mode 100644 index 000000000..b118aedc5 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/criterion_error.proto @@ -0,0 +1,439 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "CriterionErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing criterion errors. + +// Container for enum describing possible criterion errors. +message CriterionErrorEnum { + // Enum describing possible criterion errors. + enum CriterionError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Concrete type of criterion is required for CREATE and UPDATE operations. + CONCRETE_TYPE_REQUIRED = 2; + + // The category requested for exclusion is invalid. + INVALID_EXCLUDED_CATEGORY = 3; + + // Invalid keyword criteria text. + INVALID_KEYWORD_TEXT = 4; + + // Keyword text should be less than 80 chars. + KEYWORD_TEXT_TOO_LONG = 5; + + // Keyword text has too many words. + KEYWORD_HAS_TOO_MANY_WORDS = 6; + + // Keyword text has invalid characters or symbols. + KEYWORD_HAS_INVALID_CHARS = 7; + + // Invalid placement URL. + INVALID_PLACEMENT_URL = 8; + + // Invalid user list criterion. + INVALID_USER_LIST = 9; + + // Invalid user interest criterion. + INVALID_USER_INTEREST = 10; + + // Placement URL has wrong format. + INVALID_FORMAT_FOR_PLACEMENT_URL = 11; + + // Placement URL is too long. + PLACEMENT_URL_IS_TOO_LONG = 12; + + // Indicates the URL contains an illegal character. + PLACEMENT_URL_HAS_ILLEGAL_CHAR = 13; + + // Indicates the URL contains multiple comma separated URLs. + PLACEMENT_URL_HAS_MULTIPLE_SITES_IN_LINE = 14; + + // Indicates the domain is blocked. + PLACEMENT_IS_NOT_AVAILABLE_FOR_TARGETING_OR_EXCLUSION = 15; + + // Invalid topic path. + INVALID_TOPIC_PATH = 16; + + // The YouTube Channel Id is invalid. + INVALID_YOUTUBE_CHANNEL_ID = 17; + + // The YouTube Video Id is invalid. + INVALID_YOUTUBE_VIDEO_ID = 18; + + // Indicates the placement is a YouTube vertical channel, which is no longer + // supported. + YOUTUBE_VERTICAL_CHANNEL_DEPRECATED = 19; + + // Indicates the placement is a YouTube demographic channel, which is no + // longer supported. + YOUTUBE_DEMOGRAPHIC_CHANNEL_DEPRECATED = 20; + + // YouTube urls are not supported in Placement criterion. Use YouTubeChannel + // and YouTubeVideo criterion instead. + YOUTUBE_URL_UNSUPPORTED = 21; + + // Criteria type can not be excluded by the customer, like AOL account type + // cannot target site type criteria. + CANNOT_EXCLUDE_CRITERIA_TYPE = 22; + + // Criteria type can not be targeted. + CANNOT_ADD_CRITERIA_TYPE = 23; + + // Not allowed to exclude similar user list. + CANNOT_EXCLUDE_SIMILAR_USER_LIST = 26; + + // Not allowed to target a closed user list. + CANNOT_ADD_CLOSED_USER_LIST = 27; + + // Not allowed to add display only UserLists to search only campaigns. + CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SEARCH_ONLY_CAMPAIGNS = 28; + + // Not allowed to add display only UserLists to search plus campaigns. + CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SEARCH_CAMPAIGNS = 29; + + // Not allowed to add display only UserLists to shopping campaigns. + CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SHOPPING_CAMPAIGNS = 30; + + // Not allowed to add User interests to search only campaigns. + CANNOT_ADD_USER_INTERESTS_TO_SEARCH_CAMPAIGNS = 31; + + // Not allowed to set bids for this criterion type in search campaigns + CANNOT_SET_BIDS_ON_CRITERION_TYPE_IN_SEARCH_CAMPAIGNS = 32; + + // Final URLs, URL Templates and CustomParameters cannot be set for the + // criterion types of Gender, AgeRange, UserList, Placement, MobileApp, and + // MobileAppCategory in search campaigns and shopping campaigns. + CANNOT_ADD_URLS_TO_CRITERION_TYPE_FOR_CAMPAIGN_TYPE = 33; + + // Invalid combined audience criterion. + INVALID_COMBINED_AUDIENCE = 122; + + // Invalid custom affinity criterion. + INVALID_CUSTOM_AFFINITY = 96; + + // Invalid custom intent criterion. + INVALID_CUSTOM_INTENT = 97; + + // Invalid custom audience criterion. + INVALID_CUSTOM_AUDIENCE = 121; + + // IP address is not valid. + INVALID_IP_ADDRESS = 34; + + // IP format is not valid. + INVALID_IP_FORMAT = 35; + + // Mobile application is not valid. + INVALID_MOBILE_APP = 36; + + // Mobile application category is not valid. + INVALID_MOBILE_APP_CATEGORY = 37; + + // The CriterionId does not exist or is of the incorrect type. + INVALID_CRITERION_ID = 38; + + // The Criterion is not allowed to be targeted. + CANNOT_TARGET_CRITERION = 39; + + // The criterion is not allowed to be targeted as it is deprecated. + CANNOT_TARGET_OBSOLETE_CRITERION = 40; + + // The CriterionId is not valid for the type. + CRITERION_ID_AND_TYPE_MISMATCH = 41; + + // Distance for the radius for the proximity criterion is invalid. + INVALID_PROXIMITY_RADIUS = 42; + + // Units for the distance for the radius for the proximity criterion is + // invalid. + INVALID_PROXIMITY_RADIUS_UNITS = 43; + + // Street address in the address is not valid. + INVALID_STREETADDRESS_LENGTH = 44; + + // City name in the address is not valid. + INVALID_CITYNAME_LENGTH = 45; + + // Region code in the address is not valid. + INVALID_REGIONCODE_LENGTH = 46; + + // Region name in the address is not valid. + INVALID_REGIONNAME_LENGTH = 47; + + // Postal code in the address is not valid. + INVALID_POSTALCODE_LENGTH = 48; + + // Country code in the address is not valid. + INVALID_COUNTRY_CODE = 49; + + // Latitude for the GeoPoint is not valid. + INVALID_LATITUDE = 50; + + // Longitude for the GeoPoint is not valid. + INVALID_LONGITUDE = 51; + + // The Proximity input is not valid. Both address and geoPoint cannot be + // null. + PROXIMITY_GEOPOINT_AND_ADDRESS_BOTH_CANNOT_BE_NULL = 52; + + // The Proximity address cannot be geocoded to a valid lat/long. + INVALID_PROXIMITY_ADDRESS = 53; + + // User domain name is not valid. + INVALID_USER_DOMAIN_NAME = 54; + + // Length of serialized criterion parameter exceeded size limit. + CRITERION_PARAMETER_TOO_LONG = 55; + + // Time interval in the AdSchedule overlaps with another AdSchedule. + AD_SCHEDULE_TIME_INTERVALS_OVERLAP = 56; + + // AdSchedule time interval cannot span multiple days. + AD_SCHEDULE_INTERVAL_CANNOT_SPAN_MULTIPLE_DAYS = 57; + + // AdSchedule time interval specified is invalid, endTime cannot be earlier + // than startTime. + AD_SCHEDULE_INVALID_TIME_INTERVAL = 58; + + // The number of AdSchedule entries in a day exceeds the limit. + AD_SCHEDULE_EXCEEDED_INTERVALS_PER_DAY_LIMIT = 59; + + // CriteriaId does not match the interval of the AdSchedule specified. + AD_SCHEDULE_CRITERION_ID_MISMATCHING_FIELDS = 60; + + // Cannot set bid modifier for this criterion type. + CANNOT_BID_MODIFY_CRITERION_TYPE = 61; + + // Cannot bid modify criterion, since it is opted out of the campaign. + CANNOT_BID_MODIFY_CRITERION_CAMPAIGN_OPTED_OUT = 62; + + // Cannot set bid modifier for a negative criterion. + CANNOT_BID_MODIFY_NEGATIVE_CRITERION = 63; + + // Bid Modifier already exists. Use SET operation to update. + BID_MODIFIER_ALREADY_EXISTS = 64; + + // Feed Id is not allowed in these Location Groups. + FEED_ID_NOT_ALLOWED = 65; + + // The account may not use the requested criteria type. For example, some + // accounts are restricted to keywords only. + ACCOUNT_INELIGIBLE_FOR_CRITERIA_TYPE = 66; + + // The requested criteria type cannot be used with campaign or ad group + // bidding strategy. + CRITERIA_TYPE_INVALID_FOR_BIDDING_STRATEGY = 67; + + // The Criterion is not allowed to be excluded. + CANNOT_EXCLUDE_CRITERION = 68; + + // The criterion is not allowed to be removed. For example, we cannot remove + // any of the device criterion. + CANNOT_REMOVE_CRITERION = 69; + + // Bidding categories do not form a valid path in the Shopping bidding + // category taxonomy. + INVALID_PRODUCT_BIDDING_CATEGORY = 76; + + // ShoppingSetting must be added to the campaign before ProductScope + // criteria can be added. + MISSING_SHOPPING_SETTING = 77; + + // Matching function is invalid. + INVALID_MATCHING_FUNCTION = 78; + + // Filter parameters not allowed for location groups targeting. + LOCATION_FILTER_NOT_ALLOWED = 79; + + // Feed not found, or the feed is not an enabled location feed. + INVALID_FEED_FOR_LOCATION_FILTER = 98; + + // Given location filter parameter is invalid for location groups targeting. + LOCATION_FILTER_INVALID = 80; + + // Cannot set geo target constants and feed item sets at the same time. + CANNOT_SET_GEO_TARGET_CONSTANTS_WITH_FEED_ITEM_SETS = 123; + + // The location group radius is in the range but not at the valid increment. + INVALID_LOCATION_GROUP_RADIUS = 124; + + // The location group radius unit is invalid. + INVALID_LOCATION_GROUP_RADIUS_UNIT = 125; + + // Criteria type cannot be associated with a campaign and its ad group(s) + // simultaneously. + CANNOT_ATTACH_CRITERIA_AT_CAMPAIGN_AND_ADGROUP = 81; + + // Range represented by hotel length of stay's min nights and max nights + // overlaps with an existing criterion. + HOTEL_LENGTH_OF_STAY_OVERLAPS_WITH_EXISTING_CRITERION = 82; + + // Range represented by hotel advance booking window's min days and max days + // overlaps with an existing criterion. + HOTEL_ADVANCE_BOOKING_WINDOW_OVERLAPS_WITH_EXISTING_CRITERION = 83; + + // The field is not allowed to be set when the negative field is set to + // true, e.g. we don't allow bids in negative ad group or campaign criteria. + FIELD_INCOMPATIBLE_WITH_NEGATIVE_TARGETING = 84; + + // The combination of operand and operator in webpage condition is invalid. + INVALID_WEBPAGE_CONDITION = 85; + + // The URL of webpage condition is invalid. + INVALID_WEBPAGE_CONDITION_URL = 86; + + // The URL of webpage condition cannot be empty or contain white space. + WEBPAGE_CONDITION_URL_CANNOT_BE_EMPTY = 87; + + // The URL of webpage condition contains an unsupported protocol. + WEBPAGE_CONDITION_URL_UNSUPPORTED_PROTOCOL = 88; + + // The URL of webpage condition cannot be an IP address. + WEBPAGE_CONDITION_URL_CANNOT_BE_IP_ADDRESS = 89; + + // The domain of the URL is not consistent with the domain in campaign + // setting. + WEBPAGE_CONDITION_URL_DOMAIN_NOT_CONSISTENT_WITH_CAMPAIGN_SETTING = 90; + + // The URL of webpage condition cannot be a public suffix itself. + WEBPAGE_CONDITION_URL_CANNOT_BE_PUBLIC_SUFFIX = 91; + + // The URL of webpage condition has an invalid public suffix. + WEBPAGE_CONDITION_URL_INVALID_PUBLIC_SUFFIX = 92; + + // Value track parameter is not supported in webpage condition URL. + WEBPAGE_CONDITION_URL_VALUE_TRACK_VALUE_NOT_SUPPORTED = 93; + + // Only one URL-EQUALS webpage condition is allowed in a webpage + // criterion and it cannot be combined with other conditions. + WEBPAGE_CRITERION_URL_EQUALS_CAN_HAVE_ONLY_ONE_CONDITION = 94; + + // A webpage criterion cannot be added to a non-DSA ad group. + WEBPAGE_CRITERION_NOT_SUPPORTED_ON_NON_DSA_AD_GROUP = 95; + + // Cannot add positive user list criteria in Smart Display campaigns. + CANNOT_TARGET_USER_LIST_FOR_SMART_DISPLAY_CAMPAIGNS = 99; + + // Cannot add positive placement criterion types in search campaigns. + CANNOT_TARGET_PLACEMENTS_FOR_SEARCH_CAMPAIGNS = 126; + + // Listing scope contains too many dimension types. + LISTING_SCOPE_TOO_MANY_DIMENSION_TYPES = 100; + + // Listing scope has too many IN operators. + LISTING_SCOPE_TOO_MANY_IN_OPERATORS = 101; + + // Listing scope contains IN operator on an unsupported dimension type. + LISTING_SCOPE_IN_OPERATOR_NOT_SUPPORTED = 102; + + // There are dimensions with duplicate dimension type. + DUPLICATE_LISTING_DIMENSION_TYPE = 103; + + // There are dimensions with duplicate dimension value. + DUPLICATE_LISTING_DIMENSION_VALUE = 104; + + // Listing group SUBDIVISION nodes cannot have bids. + CANNOT_SET_BIDS_ON_LISTING_GROUP_SUBDIVISION = 105; + + // Ad group is invalid due to the listing groups it contains. + INVALID_LISTING_GROUP_HIERARCHY = 106; + + // Listing group unit cannot have children. + LISTING_GROUP_UNIT_CANNOT_HAVE_CHILDREN = 107; + + // Subdivided listing groups must have an "others" case. + LISTING_GROUP_SUBDIVISION_REQUIRES_OTHERS_CASE = 108; + + // Dimension type of listing group must be the same as that of its siblings. + LISTING_GROUP_REQUIRES_SAME_DIMENSION_TYPE_AS_SIBLINGS = 109; + + // Listing group cannot be added to the ad group because it already exists. + LISTING_GROUP_ALREADY_EXISTS = 110; + + // Listing group referenced in the operation was not found in the ad group. + LISTING_GROUP_DOES_NOT_EXIST = 111; + + // Recursive removal failed because listing group subdivision is being + // created or modified in this request. + LISTING_GROUP_CANNOT_BE_REMOVED = 112; + + // Listing group type is not allowed for specified ad group criterion type. + INVALID_LISTING_GROUP_TYPE = 113; + + // Listing group in an ADD operation specifies a non temporary criterion id. + LISTING_GROUP_ADD_MAY_ONLY_USE_TEMP_ID = 114; + + // The combined length of dimension values of the Listing scope criterion + // is too long. + LISTING_SCOPE_TOO_LONG = 115; + + // Listing scope contains too many dimensions. + LISTING_SCOPE_TOO_MANY_DIMENSIONS = 116; + + // The combined length of dimension values of the Listing group criterion is + // too long. + LISTING_GROUP_TOO_LONG = 117; + + // Listing group tree is too deep. + LISTING_GROUP_TREE_TOO_DEEP = 118; + + // Listing dimension is invalid (e.g. dimension contains illegal value, + // dimension type is represented with wrong class, etc). Listing dimension + // value can not contain "==" or "&+". + INVALID_LISTING_DIMENSION = 119; + + // Listing dimension type is either invalid for campaigns of this type or + // cannot be used in the current context. BIDDING_CATEGORY_Lx and + // PRODUCT_TYPE_Lx dimensions must be used in ascending order of their + // levels: L1, L2, L3, L4, L5... The levels must be specified sequentially + // and start from L1. Furthermore, an "others" Listing group cannot be + // subdivided with a dimension of the same type but of a higher level + // ("others" BIDDING_CATEGORY_L3 can be subdivided with BRAND but not with + // BIDDING_CATEGORY_L4). + INVALID_LISTING_DIMENSION_TYPE = 120; + + // Customer is not on allowlist for composite audience in display campaigns. + ADVERTISER_NOT_ON_ALLOWLIST_FOR_COMBINED_AUDIENCE_ON_DISPLAY = 127; + + // Cannot target on a removed combined audience. + CANNOT_TARGET_REMOVED_COMBINED_AUDIENCE = 128; + + // Combined audience ID is invalid. + INVALID_COMBINED_AUDIENCE_ID = 129; + + // Can not target removed combined audience. + CANNOT_TARGET_REMOVED_CUSTOM_AUDIENCE = 130; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/currency_code_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/currency_code_error.proto new file mode 100644 index 000000000..8acdd12ca --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/currency_code_error.proto @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "CurrencyCodeErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing currency code errors. + +// Container for enum describing possible currency code errors. +message CurrencyCodeErrorEnum { + // Enum describing possible currency code errors. + enum CurrencyCodeError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // The currency code is not supported. + UNSUPPORTED = 2; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/custom_audience_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/custom_audience_error.proto new file mode 100644 index 000000000..4155d693e --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/custom_audience_error.proto @@ -0,0 +1,68 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "CustomAudienceErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing custom audience errors. + +// Container for enum describing possible custom audience errors. +message CustomAudienceErrorEnum { + // Enum describing possible custom audience errors. + enum CustomAudienceError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // New name in the custom audience is duplicated ignoring cases. + NAME_ALREADY_USED = 2; + + // Cannot remove a custom audience while it's still being used as targeting. + CANNOT_REMOVE_WHILE_IN_USE = 3; + + // Cannot update or remove a custom audience that is already removed. + RESOURCE_ALREADY_REMOVED = 4; + + // The pair of [type, value] already exists in members. + MEMBER_TYPE_AND_PARAMETER_ALREADY_EXISTED = 5; + + // Member type is invalid. + INVALID_MEMBER_TYPE = 6; + + // Member type does not have associated value. + MEMBER_TYPE_AND_VALUE_DOES_NOT_MATCH = 7; + + // Custom audience contains a member that violates policy. + POLICY_VIOLATION = 8; + + // Change in custom audience type is not allowed. + INVALID_TYPE_CHANGE = 9; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/custom_interest_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/custom_interest_error.proto new file mode 100644 index 000000000..ce6038b5a --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/custom_interest_error.proto @@ -0,0 +1,66 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "CustomInterestErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing custom interest errors. + +// Container for enum describing possible custom interest errors. +message CustomInterestErrorEnum { + // Enum describing possible custom interest errors. + enum CustomInterestError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Duplicate custom interest name ignoring case. + NAME_ALREADY_USED = 2; + + // In the remove custom interest member operation, both member ID and + // pair [type, parameter] are not present. + CUSTOM_INTEREST_MEMBER_ID_AND_TYPE_PARAMETER_NOT_PRESENT_IN_REMOVE = 3; + + // The pair of [type, parameter] does not exist. + TYPE_AND_PARAMETER_NOT_FOUND = 4; + + // The pair of [type, parameter] already exists. + TYPE_AND_PARAMETER_ALREADY_EXISTED = 5; + + // Unsupported custom interest member type. + INVALID_CUSTOM_INTEREST_MEMBER_TYPE = 6; + + // Cannot remove a custom interest while it's still being targeted. + CANNOT_REMOVE_WHILE_IN_USE = 7; + + // Cannot mutate custom interest type. + CANNOT_CHANGE_TYPE = 8; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/customer_client_link_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/customer_client_link_error.proto new file mode 100644 index 000000000..0cbf504a6 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/customer_client_link_error.proto @@ -0,0 +1,68 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "CustomerClientLinkErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing CustomerClientLink errors. + +// Container for enum describing possible CustomeClientLink errors. +message CustomerClientLinkErrorEnum { + // Enum describing possible CustomerClientLink errors. + enum CustomerClientLinkError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Trying to manage a client that already in being managed by customer. + CLIENT_ALREADY_INVITED_BY_THIS_MANAGER = 2; + + // Already managed by some other manager in the hierarchy. + CLIENT_ALREADY_MANAGED_IN_HIERARCHY = 3; + + // Attempt to create a cycle in the hierarchy. + CYCLIC_LINK_NOT_ALLOWED = 4; + + // Managed accounts has the maximum number of linked accounts. + CUSTOMER_HAS_TOO_MANY_ACCOUNTS = 5; + + // Invitor has the maximum pending invitations. + CLIENT_HAS_TOO_MANY_INVITATIONS = 6; + + // Attempt to change hidden status of a link that is not active. + CANNOT_HIDE_OR_UNHIDE_MANAGER_ACCOUNTS = 7; + + // Parent manager account has the maximum number of linked accounts. + CUSTOMER_HAS_TOO_MANY_ACCOUNTS_AT_MANAGER = 8; + + // Client has too many managers. + CLIENT_HAS_TOO_MANY_MANAGERS = 9; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/customer_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/customer_error.proto new file mode 100644 index 000000000..b738d1d4f --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/customer_error.proto @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "CustomerErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Container for enum describing possible customer errors. +message CustomerErrorEnum { + // Set of errors that are related to requests dealing with Customer. + enum CustomerError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Customer status is not allowed to be changed from DRAFT and CLOSED. + // Currency code and at least one of country code and time zone needs to be + // set when status is changed to ENABLED. + STATUS_CHANGE_DISALLOWED = 2; + + // CustomerService cannot get a customer that has not been fully set up. + ACCOUNT_NOT_SET_UP = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/customer_feed_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/customer_feed_error.proto new file mode 100644 index 000000000..280a9b8b4 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/customer_feed_error.proto @@ -0,0 +1,66 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "CustomerFeedErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing customer feed errors. + +// Container for enum describing possible customer feed errors. +message CustomerFeedErrorEnum { + // Enum describing possible customer feed errors. + enum CustomerFeedError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // An active feed already exists for this customer and place holder type. + FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE = 2; + + // The specified feed is removed. + CANNOT_CREATE_FOR_REMOVED_FEED = 3; + + // The CustomerFeed already exists. Update should be used to modify the + // existing CustomerFeed. + CANNOT_CREATE_ALREADY_EXISTING_CUSTOMER_FEED = 4; + + // Cannot update removed customer feed. + CANNOT_MODIFY_REMOVED_CUSTOMER_FEED = 5; + + // Invalid placeholder type. + INVALID_PLACEHOLDER_TYPE = 6; + + // Feed mapping for this placeholder type does not exist. + MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE = 7; + + // Placeholder not allowed at the account level. + PLACEHOLDER_TYPE_NOT_ALLOWED_ON_CUSTOMER_FEED = 8; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/customer_manager_link_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/customer_manager_link_error.proto new file mode 100644 index 000000000..cfa3c85d3 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/customer_manager_link_error.proto @@ -0,0 +1,75 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "CustomerManagerLinkErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing CustomerManagerLink errors. + +// Container for enum describing possible CustomerManagerLink errors. +message CustomerManagerLinkErrorEnum { + // Enum describing possible CustomerManagerLink errors. + enum CustomerManagerLinkError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // No pending invitation. + NO_PENDING_INVITE = 2; + + // Attempt to operate on the same client more than once in the same call. + SAME_CLIENT_MORE_THAN_ONCE_PER_CALL = 3; + + // Manager account has the maximum number of linked accounts. + MANAGER_HAS_MAX_NUMBER_OF_LINKED_ACCOUNTS = 4; + + // If no active user on account it cannot be unlinked from its manager. + CANNOT_UNLINK_ACCOUNT_WITHOUT_ACTIVE_USER = 5; + + // Account should have at least one active owner on it before being + // unlinked. + CANNOT_REMOVE_LAST_CLIENT_ACCOUNT_OWNER = 6; + + // Only account owners may change their permission role. + CANNOT_CHANGE_ROLE_BY_NON_ACCOUNT_OWNER = 7; + + // When a client's link to its manager is not active, the link role cannot + // be changed. + CANNOT_CHANGE_ROLE_FOR_NON_ACTIVE_LINK_ACCOUNT = 8; + + // Attempt to link a child to a parent that contains or will contain + // duplicate children. + DUPLICATE_CHILD_FOUND = 9; + + // The authorized customer is a test account. It can add no more than the + // allowed number of accounts + TEST_ACCOUNT_LINKS_TOO_MANY_CHILD_ACCOUNTS = 10; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/customer_user_access_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/customer_user_access_error.proto new file mode 100644 index 000000000..a62486b6e --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/customer_user_access_error.proto @@ -0,0 +1,60 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "CustomerUserAccessErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing CustomerUserAccess errors. + +// Container for enum describing possible CustomerUserAccess errors. +message CustomerUserAccessErrorEnum { + // Enum describing possible customer user access errors. + enum CustomerUserAccessError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // There is no user associated with the user id specified. + INVALID_USER_ID = 2; + + // Unable to remove the access between the user and customer. + REMOVAL_DISALLOWED = 3; + + // Unable to add or update the access role as specified. + DISALLOWED_ACCESS_ROLE = 4; + + // The user can't remove itself from an active serving customer if it's the + // last admin user and the customer doesn't have any owner manager + LAST_ADMIN_USER_OF_SERVING_CUSTOMER = 5; + + // Last admin user cannot be removed from a manager. + LAST_ADMIN_USER_OF_MANAGER = 6; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/database_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/database_error.proto new file mode 100644 index 000000000..9f0f59d33 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/database_error.proto @@ -0,0 +1,56 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "DatabaseErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing database errors. + +// Container for enum describing possible database errors. +message DatabaseErrorEnum { + // Enum describing possible database errors. + enum DatabaseError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Multiple requests were attempting to modify the same resource at once. + // Please retry the request. + CONCURRENT_MODIFICATION = 2; + + // The request conflicted with existing data. This error will usually be + // replaced with a more specific error if the request is retried. + DATA_CONSTRAINT_VIOLATION = 3; + + // The data written is too large. Please split the request into smaller + // requests. + REQUEST_TOO_LARGE = 4; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/date_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/date_error.proto new file mode 100644 index 000000000..6e8b9c78d --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/date_error.proto @@ -0,0 +1,74 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "DateErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing date errors. + +// Container for enum describing possible date errors. +message DateErrorEnum { + // Enum describing possible date errors. + enum DateError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Given field values do not correspond to a valid date. + INVALID_FIELD_VALUES_IN_DATE = 2; + + // Given field values do not correspond to a valid date time. + INVALID_FIELD_VALUES_IN_DATE_TIME = 3; + + // The string date's format should be yyyy-mm-dd. + INVALID_STRING_DATE = 4; + + // The string date time's format should be yyyy-mm-dd hh:mm:ss.ssssss. + INVALID_STRING_DATE_TIME_MICROS = 6; + + // The string date time's format should be yyyy-mm-dd hh:mm:ss. + INVALID_STRING_DATE_TIME_SECONDS = 11; + + // The string date time's format should be yyyy-mm-dd hh:mm:ss+|-hh:mm. + INVALID_STRING_DATE_TIME_SECONDS_WITH_OFFSET = 12; + + // Date is before allowed minimum. + EARLIER_THAN_MINIMUM_DATE = 7; + + // Date is after allowed maximum. + LATER_THAN_MAXIMUM_DATE = 8; + + // Date range bounds are not in order. + DATE_RANGE_MINIMUM_DATE_LATER_THAN_MAXIMUM_DATE = 9; + + // Both dates in range are null. + DATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL = 10; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/date_range_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/date_range_error.proto new file mode 100644 index 000000000..935956225 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/date_range_error.proto @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "DateRangeErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing date range errors. + +// Container for enum describing possible date range errors. +message DateRangeErrorEnum { + // Enum describing possible date range errors. + enum DateRangeError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Invalid date. + INVALID_DATE = 2; + + // The start date was after the end date. + START_DATE_AFTER_END_DATE = 3; + + // Cannot set date to past time + CANNOT_SET_DATE_TO_PAST = 4; + + // A date was used that is past the system "last" date. + AFTER_MAXIMUM_ALLOWABLE_DATE = 5; + + // Trying to change start date on a resource that has started. + CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED = 6; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/distinct_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/distinct_error.proto new file mode 100644 index 000000000..89f0f0719 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/distinct_error.proto @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "DistinctErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing distinct errors. + +// Container for enum describing possible distinct errors. +message DistinctErrorEnum { + // Enum describing possible distinct errors. + enum DistinctError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Duplicate element. + DUPLICATE_ELEMENT = 2; + + // Duplicate type. + DUPLICATE_TYPE = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/enum_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/enum_error.proto new file mode 100644 index 000000000..02edcaa9b --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/enum_error.proto @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "EnumErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing enum errors. + +// Container for enum describing possible enum errors. +message EnumErrorEnum { + // Enum describing possible enum errors. + enum EnumError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // The enum value is not permitted. + ENUM_VALUE_NOT_PERMITTED = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/errors.proto b/third_party/googleapis/google/ads/googleads/v6/errors/errors.proto new file mode 100644 index 000000000..5021b34f4 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/errors.proto @@ -0,0 +1,625 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/ads/googleads/v6/common/policy.proto"; +import "google/ads/googleads/v6/common/value.proto"; +import "google/ads/googleads/v6/errors/access_invitation_error.proto"; +import "google/ads/googleads/v6/errors/account_budget_proposal_error.proto"; +import "google/ads/googleads/v6/errors/account_link_error.proto"; +import "google/ads/googleads/v6/errors/ad_customizer_error.proto"; +import "google/ads/googleads/v6/errors/ad_error.proto"; +import "google/ads/googleads/v6/errors/ad_group_ad_error.proto"; +import "google/ads/googleads/v6/errors/ad_group_bid_modifier_error.proto"; +import "google/ads/googleads/v6/errors/ad_group_criterion_error.proto"; +import "google/ads/googleads/v6/errors/ad_group_error.proto"; +import "google/ads/googleads/v6/errors/ad_group_feed_error.proto"; +import "google/ads/googleads/v6/errors/ad_parameter_error.proto"; +import "google/ads/googleads/v6/errors/ad_sharing_error.proto"; +import "google/ads/googleads/v6/errors/adx_error.proto"; +import "google/ads/googleads/v6/errors/asset_error.proto"; +import "google/ads/googleads/v6/errors/asset_link_error.proto"; +import "google/ads/googleads/v6/errors/authentication_error.proto"; +import "google/ads/googleads/v6/errors/authorization_error.proto"; +import "google/ads/googleads/v6/errors/batch_job_error.proto"; +import "google/ads/googleads/v6/errors/bidding_error.proto"; +import "google/ads/googleads/v6/errors/bidding_strategy_error.proto"; +import "google/ads/googleads/v6/errors/billing_setup_error.proto"; +import "google/ads/googleads/v6/errors/campaign_budget_error.proto"; +import "google/ads/googleads/v6/errors/campaign_criterion_error.proto"; +import "google/ads/googleads/v6/errors/campaign_draft_error.proto"; +import "google/ads/googleads/v6/errors/campaign_error.proto"; +import "google/ads/googleads/v6/errors/campaign_experiment_error.proto"; +import "google/ads/googleads/v6/errors/campaign_feed_error.proto"; +import "google/ads/googleads/v6/errors/campaign_shared_set_error.proto"; +import "google/ads/googleads/v6/errors/change_event_error.proto"; +import "google/ads/googleads/v6/errors/change_status_error.proto"; +import "google/ads/googleads/v6/errors/collection_size_error.proto"; +import "google/ads/googleads/v6/errors/context_error.proto"; +import "google/ads/googleads/v6/errors/conversion_action_error.proto"; +import "google/ads/googleads/v6/errors/conversion_adjustment_upload_error.proto"; +import "google/ads/googleads/v6/errors/conversion_upload_error.proto"; +import "google/ads/googleads/v6/errors/country_code_error.proto"; +import "google/ads/googleads/v6/errors/criterion_error.proto"; +import "google/ads/googleads/v6/errors/currency_code_error.proto"; +import "google/ads/googleads/v6/errors/custom_audience_error.proto"; +import "google/ads/googleads/v6/errors/custom_interest_error.proto"; +import "google/ads/googleads/v6/errors/customer_client_link_error.proto"; +import "google/ads/googleads/v6/errors/customer_error.proto"; +import "google/ads/googleads/v6/errors/customer_feed_error.proto"; +import "google/ads/googleads/v6/errors/customer_manager_link_error.proto"; +import "google/ads/googleads/v6/errors/customer_user_access_error.proto"; +import "google/ads/googleads/v6/errors/database_error.proto"; +import "google/ads/googleads/v6/errors/date_error.proto"; +import "google/ads/googleads/v6/errors/date_range_error.proto"; +import "google/ads/googleads/v6/errors/distinct_error.proto"; +import "google/ads/googleads/v6/errors/enum_error.proto"; +import "google/ads/googleads/v6/errors/extension_feed_item_error.proto"; +import "google/ads/googleads/v6/errors/extension_setting_error.proto"; +import "google/ads/googleads/v6/errors/feed_attribute_reference_error.proto"; +import "google/ads/googleads/v6/errors/feed_error.proto"; +import "google/ads/googleads/v6/errors/feed_item_error.proto"; +import "google/ads/googleads/v6/errors/feed_item_set_error.proto"; +import "google/ads/googleads/v6/errors/feed_item_set_link_error.proto"; +import "google/ads/googleads/v6/errors/feed_item_target_error.proto"; +import "google/ads/googleads/v6/errors/feed_item_validation_error.proto"; +import "google/ads/googleads/v6/errors/feed_mapping_error.proto"; +import "google/ads/googleads/v6/errors/field_error.proto"; +import "google/ads/googleads/v6/errors/field_mask_error.proto"; +import "google/ads/googleads/v6/errors/function_error.proto"; +import "google/ads/googleads/v6/errors/function_parsing_error.proto"; +import "google/ads/googleads/v6/errors/geo_target_constant_suggestion_error.proto"; +import "google/ads/googleads/v6/errors/header_error.proto"; +import "google/ads/googleads/v6/errors/id_error.proto"; +import "google/ads/googleads/v6/errors/image_error.proto"; +import "google/ads/googleads/v6/errors/internal_error.proto"; +import "google/ads/googleads/v6/errors/invoice_error.proto"; +import "google/ads/googleads/v6/errors/keyword_plan_ad_group_error.proto"; +import "google/ads/googleads/v6/errors/keyword_plan_ad_group_keyword_error.proto"; +import "google/ads/googleads/v6/errors/keyword_plan_campaign_error.proto"; +import "google/ads/googleads/v6/errors/keyword_plan_campaign_keyword_error.proto"; +import "google/ads/googleads/v6/errors/keyword_plan_error.proto"; +import "google/ads/googleads/v6/errors/keyword_plan_idea_error.proto"; +import "google/ads/googleads/v6/errors/label_error.proto"; +import "google/ads/googleads/v6/errors/language_code_error.proto"; +import "google/ads/googleads/v6/errors/list_operation_error.proto"; +import "google/ads/googleads/v6/errors/manager_link_error.proto"; +import "google/ads/googleads/v6/errors/media_bundle_error.proto"; +import "google/ads/googleads/v6/errors/media_file_error.proto"; +import "google/ads/googleads/v6/errors/media_upload_error.proto"; +import "google/ads/googleads/v6/errors/multiplier_error.proto"; +import "google/ads/googleads/v6/errors/mutate_error.proto"; +import "google/ads/googleads/v6/errors/new_resource_creation_error.proto"; +import "google/ads/googleads/v6/errors/not_allowlisted_error.proto"; +import "google/ads/googleads/v6/errors/not_empty_error.proto"; +import "google/ads/googleads/v6/errors/null_error.proto"; +import "google/ads/googleads/v6/errors/offline_user_data_job_error.proto"; +import "google/ads/googleads/v6/errors/operation_access_denied_error.proto"; +import "google/ads/googleads/v6/errors/operator_error.proto"; +import "google/ads/googleads/v6/errors/partial_failure_error.proto"; +import "google/ads/googleads/v6/errors/payments_account_error.proto"; +import "google/ads/googleads/v6/errors/policy_finding_error.proto"; +import "google/ads/googleads/v6/errors/policy_validation_parameter_error.proto"; +import "google/ads/googleads/v6/errors/policy_violation_error.proto"; +import "google/ads/googleads/v6/errors/query_error.proto"; +import "google/ads/googleads/v6/errors/quota_error.proto"; +import "google/ads/googleads/v6/errors/range_error.proto"; +import "google/ads/googleads/v6/errors/reach_plan_error.proto"; +import "google/ads/googleads/v6/errors/recommendation_error.proto"; +import "google/ads/googleads/v6/errors/region_code_error.proto"; +import "google/ads/googleads/v6/errors/request_error.proto"; +import "google/ads/googleads/v6/errors/resource_access_denied_error.proto"; +import "google/ads/googleads/v6/errors/resource_count_limit_exceeded_error.proto"; +import "google/ads/googleads/v6/errors/setting_error.proto"; +import "google/ads/googleads/v6/errors/shared_criterion_error.proto"; +import "google/ads/googleads/v6/errors/shared_set_error.proto"; +import "google/ads/googleads/v6/errors/size_limit_error.proto"; +import "google/ads/googleads/v6/errors/string_format_error.proto"; +import "google/ads/googleads/v6/errors/string_length_error.proto"; +import "google/ads/googleads/v6/errors/third_party_app_analytics_link_error.proto"; +import "google/ads/googleads/v6/errors/time_zone_error.proto"; +import "google/ads/googleads/v6/errors/url_field_error.proto"; +import "google/ads/googleads/v6/errors/user_data_error.proto"; +import "google/ads/googleads/v6/errors/user_list_error.proto"; +import "google/ads/googleads/v6/errors/youtube_video_registration_error.proto"; +import "google/protobuf/duration.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "ErrorsProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing the common error protos + +// Describes how a GoogleAds API call failed. It's returned inside +// google.rpc.Status.details when a call fails. +message GoogleAdsFailure { + // The list of errors that occurred. + repeated GoogleAdsError errors = 1; +} + +// GoogleAds-specific error. +message GoogleAdsError { + // An enum value that indicates which error occurred. + ErrorCode error_code = 1; + + // A human-readable description of the error. + string message = 2; + + // The value that triggered the error. + google.ads.googleads.v6.common.Value trigger = 3; + + // Describes the part of the request proto that caused the error. + ErrorLocation location = 4; + + // Additional error details, which are returned by certain error codes. Most + // error codes do not include details. + ErrorDetails details = 5; +} + +// The error reason represented by type and enum. +message ErrorCode { + // The list of error enums + oneof error_code { + // An error caused by the request + RequestErrorEnum.RequestError request_error = 1; + + // An error with a Bidding Strategy mutate. + BiddingStrategyErrorEnum.BiddingStrategyError bidding_strategy_error = 2; + + // An error with a URL field mutate. + UrlFieldErrorEnum.UrlFieldError url_field_error = 3; + + // An error with a list operation. + ListOperationErrorEnum.ListOperationError list_operation_error = 4; + + // An error with an AWQL query + QueryErrorEnum.QueryError query_error = 5; + + // An error with a mutate + MutateErrorEnum.MutateError mutate_error = 7; + + // An error with a field mask + FieldMaskErrorEnum.FieldMaskError field_mask_error = 8; + + // An error encountered when trying to authorize a user. + AuthorizationErrorEnum.AuthorizationError authorization_error = 9; + + // An unexpected server-side error. + InternalErrorEnum.InternalError internal_error = 10; + + // An error with the amonut of quota remaining. + QuotaErrorEnum.QuotaError quota_error = 11; + + // An error with an Ad Group Ad mutate. + AdErrorEnum.AdError ad_error = 12; + + // An error with an Ad Group mutate. + AdGroupErrorEnum.AdGroupError ad_group_error = 13; + + // An error with a Campaign Budget mutate. + CampaignBudgetErrorEnum.CampaignBudgetError campaign_budget_error = 14; + + // An error with a Campaign mutate. + CampaignErrorEnum.CampaignError campaign_error = 15; + + // Indicates failure to properly authenticate user. + AuthenticationErrorEnum.AuthenticationError authentication_error = 17; + + // Indicates failure to properly authenticate user. + AdGroupCriterionErrorEnum.AdGroupCriterionError ad_group_criterion_error = 18; + + // The reasons for the ad customizer error + AdCustomizerErrorEnum.AdCustomizerError ad_customizer_error = 19; + + // The reasons for the ad group ad error + AdGroupAdErrorEnum.AdGroupAdError ad_group_ad_error = 21; + + // The reasons for the ad sharing error + AdSharingErrorEnum.AdSharingError ad_sharing_error = 24; + + // The reasons for the adx error + AdxErrorEnum.AdxError adx_error = 25; + + // The reasons for the asset error + AssetErrorEnum.AssetError asset_error = 107; + + // The reasons for the bidding errors + BiddingErrorEnum.BiddingError bidding_error = 26; + + // The reasons for the campaign criterion error + CampaignCriterionErrorEnum.CampaignCriterionError campaign_criterion_error = 29; + + // The reasons for the collection size error + CollectionSizeErrorEnum.CollectionSizeError collection_size_error = 31; + + // The reasons for the country code error + CountryCodeErrorEnum.CountryCodeError country_code_error = 109; + + // The reasons for the criterion error + CriterionErrorEnum.CriterionError criterion_error = 32; + + // The reasons for the customer error + CustomerErrorEnum.CustomerError customer_error = 90; + + // The reasons for the date error + DateErrorEnum.DateError date_error = 33; + + // The reasons for the date range error + DateRangeErrorEnum.DateRangeError date_range_error = 34; + + // The reasons for the distinct error + DistinctErrorEnum.DistinctError distinct_error = 35; + + // The reasons for the feed attribute reference error + FeedAttributeReferenceErrorEnum.FeedAttributeReferenceError feed_attribute_reference_error = 36; + + // The reasons for the function error + FunctionErrorEnum.FunctionError function_error = 37; + + // The reasons for the function parsing error + FunctionParsingErrorEnum.FunctionParsingError function_parsing_error = 38; + + // The reasons for the id error + IdErrorEnum.IdError id_error = 39; + + // The reasons for the image error + ImageErrorEnum.ImageError image_error = 40; + + // The reasons for the language code error + LanguageCodeErrorEnum.LanguageCodeError language_code_error = 110; + + // The reasons for the media bundle error + MediaBundleErrorEnum.MediaBundleError media_bundle_error = 42; + + // The reasons for media uploading errors. + MediaUploadErrorEnum.MediaUploadError media_upload_error = 116; + + // The reasons for the media file error + MediaFileErrorEnum.MediaFileError media_file_error = 86; + + // The reasons for the multiplier error + MultiplierErrorEnum.MultiplierError multiplier_error = 44; + + // The reasons for the new resource creation error + NewResourceCreationErrorEnum.NewResourceCreationError new_resource_creation_error = 45; + + // The reasons for the not empty error + NotEmptyErrorEnum.NotEmptyError not_empty_error = 46; + + // The reasons for the null error + NullErrorEnum.NullError null_error = 47; + + // The reasons for the operator error + OperatorErrorEnum.OperatorError operator_error = 48; + + // The reasons for the range error + RangeErrorEnum.RangeError range_error = 49; + + // The reasons for error in applying a recommendation + RecommendationErrorEnum.RecommendationError recommendation_error = 58; + + // The reasons for the region code error + RegionCodeErrorEnum.RegionCodeError region_code_error = 51; + + // The reasons for the setting error + SettingErrorEnum.SettingError setting_error = 52; + + // The reasons for the string format error + StringFormatErrorEnum.StringFormatError string_format_error = 53; + + // The reasons for the string length error + StringLengthErrorEnum.StringLengthError string_length_error = 54; + + // The reasons for the operation access denied error + OperationAccessDeniedErrorEnum.OperationAccessDeniedError operation_access_denied_error = 55; + + // The reasons for the resource access denied error + ResourceAccessDeniedErrorEnum.ResourceAccessDeniedError resource_access_denied_error = 56; + + // The reasons for the resource count limit exceeded error + ResourceCountLimitExceededErrorEnum.ResourceCountLimitExceededError resource_count_limit_exceeded_error = 57; + + // The reasons for YouTube video registration errors. + YoutubeVideoRegistrationErrorEnum.YoutubeVideoRegistrationError youtube_video_registration_error = 117; + + // The reasons for the ad group bid modifier error + AdGroupBidModifierErrorEnum.AdGroupBidModifierError ad_group_bid_modifier_error = 59; + + // The reasons for the context error + ContextErrorEnum.ContextError context_error = 60; + + // The reasons for the field error + FieldErrorEnum.FieldError field_error = 61; + + // The reasons for the shared set error + SharedSetErrorEnum.SharedSetError shared_set_error = 62; + + // The reasons for the shared criterion error + SharedCriterionErrorEnum.SharedCriterionError shared_criterion_error = 63; + + // The reasons for the campaign shared set error + CampaignSharedSetErrorEnum.CampaignSharedSetError campaign_shared_set_error = 64; + + // The reasons for the conversion action error + ConversionActionErrorEnum.ConversionActionError conversion_action_error = 65; + + // The reasons for the conversion adjustment upload error + ConversionAdjustmentUploadErrorEnum.ConversionAdjustmentUploadError conversion_adjustment_upload_error = 115; + + // The reasons for the conversion upload error + ConversionUploadErrorEnum.ConversionUploadError conversion_upload_error = 111; + + // The reasons for the header error. + HeaderErrorEnum.HeaderError header_error = 66; + + // The reasons for the database error. + DatabaseErrorEnum.DatabaseError database_error = 67; + + // The reasons for the policy finding error. + PolicyFindingErrorEnum.PolicyFindingError policy_finding_error = 68; + + // The reason for enum error. + EnumErrorEnum.EnumError enum_error = 70; + + // The reason for keyword plan error. + KeywordPlanErrorEnum.KeywordPlanError keyword_plan_error = 71; + + // The reason for keyword plan campaign error. + KeywordPlanCampaignErrorEnum.KeywordPlanCampaignError keyword_plan_campaign_error = 72; + + // The reason for keyword plan campaign keyword error. + KeywordPlanCampaignKeywordErrorEnum.KeywordPlanCampaignKeywordError keyword_plan_campaign_keyword_error = 132; + + // The reason for keyword plan ad group error. + KeywordPlanAdGroupErrorEnum.KeywordPlanAdGroupError keyword_plan_ad_group_error = 74; + + // The reason for keyword plan ad group keyword error. + KeywordPlanAdGroupKeywordErrorEnum.KeywordPlanAdGroupKeywordError keyword_plan_ad_group_keyword_error = 133; + + // The reason for keyword idea error. + KeywordPlanIdeaErrorEnum.KeywordPlanIdeaError keyword_plan_idea_error = 76; + + // The reasons for account budget proposal errors. + AccountBudgetProposalErrorEnum.AccountBudgetProposalError account_budget_proposal_error = 77; + + // The reasons for the user list error + UserListErrorEnum.UserListError user_list_error = 78; + + // The reasons for the change event error + ChangeEventErrorEnum.ChangeEventError change_event_error = 136; + + // The reasons for the change status error + ChangeStatusErrorEnum.ChangeStatusError change_status_error = 79; + + // The reasons for the feed error + FeedErrorEnum.FeedError feed_error = 80; + + // The reasons for the geo target constant suggestion error. + GeoTargetConstantSuggestionErrorEnum.GeoTargetConstantSuggestionError geo_target_constant_suggestion_error = 81; + + // The reasons for the campaign draft error + CampaignDraftErrorEnum.CampaignDraftError campaign_draft_error = 82; + + // The reasons for the feed item error + FeedItemErrorEnum.FeedItemError feed_item_error = 83; + + // The reason for the label error. + LabelErrorEnum.LabelError label_error = 84; + + // The reasons for the billing setup error + BillingSetupErrorEnum.BillingSetupError billing_setup_error = 87; + + // The reasons for the customer client link error + CustomerClientLinkErrorEnum.CustomerClientLinkError customer_client_link_error = 88; + + // The reasons for the customer manager link error + CustomerManagerLinkErrorEnum.CustomerManagerLinkError customer_manager_link_error = 91; + + // The reasons for the feed mapping error + FeedMappingErrorEnum.FeedMappingError feed_mapping_error = 92; + + // The reasons for the customer feed error + CustomerFeedErrorEnum.CustomerFeedError customer_feed_error = 93; + + // The reasons for the ad group feed error + AdGroupFeedErrorEnum.AdGroupFeedError ad_group_feed_error = 94; + + // The reasons for the campaign feed error + CampaignFeedErrorEnum.CampaignFeedError campaign_feed_error = 96; + + // The reasons for the custom interest error + CustomInterestErrorEnum.CustomInterestError custom_interest_error = 97; + + // The reasons for the campaign experiment error + CampaignExperimentErrorEnum.CampaignExperimentError campaign_experiment_error = 98; + + // The reasons for the extension feed item error + ExtensionFeedItemErrorEnum.ExtensionFeedItemError extension_feed_item_error = 100; + + // The reasons for the ad parameter error + AdParameterErrorEnum.AdParameterError ad_parameter_error = 101; + + // The reasons for the feed item validation error + FeedItemValidationErrorEnum.FeedItemValidationError feed_item_validation_error = 102; + + // The reasons for the extension setting error + ExtensionSettingErrorEnum.ExtensionSettingError extension_setting_error = 103; + + // The reasons for the feed item set error + FeedItemSetErrorEnum.FeedItemSetError feed_item_set_error = 140; + + // The reasons for the feed item set link error + FeedItemSetLinkErrorEnum.FeedItemSetLinkError feed_item_set_link_error = 141; + + // The reasons for the feed item target error + FeedItemTargetErrorEnum.FeedItemTargetError feed_item_target_error = 104; + + // The reasons for the policy violation error + PolicyViolationErrorEnum.PolicyViolationError policy_violation_error = 105; + + // The reasons for the mutate job error + PartialFailureErrorEnum.PartialFailureError partial_failure_error = 112; + + // The reasons for the policy validation parameter error + PolicyValidationParameterErrorEnum.PolicyValidationParameterError policy_validation_parameter_error = 114; + + // The reasons for the size limit error + SizeLimitErrorEnum.SizeLimitError size_limit_error = 118; + + // The reasons for the offline user data job error. + OfflineUserDataJobErrorEnum.OfflineUserDataJobError offline_user_data_job_error = 119; + + // The reasons for the not allowlisted error + NotAllowlistedErrorEnum.NotAllowlistedError not_allowlisted_error = 137; + + // The reasons for the manager link error + ManagerLinkErrorEnum.ManagerLinkError manager_link_error = 121; + + // The reasons for the currency code error + CurrencyCodeErrorEnum.CurrencyCodeError currency_code_error = 122; + + // The reasons for the access invitation error + AccessInvitationErrorEnum.AccessInvitationError access_invitation_error = 124; + + // The reasons for the reach plan error + ReachPlanErrorEnum.ReachPlanError reach_plan_error = 125; + + // The reasons for the invoice error + InvoiceErrorEnum.InvoiceError invoice_error = 126; + + // The reasons for errors in payments accounts service + PaymentsAccountErrorEnum.PaymentsAccountError payments_account_error = 127; + + // The reasons for the time zone error + TimeZoneErrorEnum.TimeZoneError time_zone_error = 128; + + // The reasons for the asset link error + AssetLinkErrorEnum.AssetLinkError asset_link_error = 129; + + // The reasons for the user data error. + UserDataErrorEnum.UserDataError user_data_error = 130; + + // The reasons for the batch job error + BatchJobErrorEnum.BatchJobError batch_job_error = 131; + + // The reasons for the account link status change error + AccountLinkErrorEnum.AccountLinkError account_link_error = 134; + + // The reasons for the third party app analytics link mutate error + ThirdPartyAppAnalyticsLinkErrorEnum.ThirdPartyAppAnalyticsLinkError third_party_app_analytics_link_error = 135; + + // The reasons for the customer user access mutate error + CustomerUserAccessErrorEnum.CustomerUserAccessError customer_user_access_error = 138; + + // The reasons for the custom audience error + CustomAudienceErrorEnum.CustomAudienceError custom_audience_error = 139; + } +} + +// Describes the part of the request proto that caused the error. +message ErrorLocation { + // A part of a field path. + message FieldPathElement { + // The name of a field or a oneof + string field_name = 1; + + // If field_name is a repeated field, this is the element that failed + optional int32 index = 3; + } + + // A field path that indicates which field was invalid in the request. + repeated FieldPathElement field_path_elements = 2; +} + +// Additional error details. +message ErrorDetails { + // The error code that should have been returned, but wasn't. This is used + // when the error code is not published in the client specified version. + string unpublished_error_code = 1; + + // Describes an ad policy violation. + PolicyViolationDetails policy_violation_details = 2; + + // Describes policy violation findings. + PolicyFindingDetails policy_finding_details = 3; + + // Details on the quota error, including the scope (account or developer), the + // rate bucket name and the retry delay. + QuotaErrorDetails quota_error_details = 4; +} + +// Error returned as part of a mutate response. +// This error indicates single policy violation by some text +// in one of the fields. +message PolicyViolationDetails { + // Human readable description of policy violation. + string external_policy_description = 2; + + // Unique identifier for this violation. + // If policy is exemptible, this key may be used to request exemption. + google.ads.googleads.v6.common.PolicyViolationKey key = 4; + + // Human readable name of the policy. + string external_policy_name = 5; + + // Whether user can file an exemption request for this violation. + bool is_exemptible = 6; +} + +// Error returned as part of a mutate response. +// This error indicates one or more policy findings in the fields of a +// resource. +message PolicyFindingDetails { + // The list of policy topics for the resource. Contains the PROHIBITED or + // FULLY_LIMITED policy topic entries that prevented the resource from being + // saved (among any other entries the resource may also have). + repeated google.ads.googleads.v6.common.PolicyTopicEntry policy_topic_entries = 1; +} + +// Additional quota error details when there is QuotaError. +message QuotaErrorDetails { + // Enum of possible scopes that quota buckets belong to. + enum QuotaRateScope { + // Unspecified enum + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Per customer account quota + ACCOUNT = 2; + + // Per project or DevToken quota + DEVELOPER = 3; + } + + // The rate scope of the quota limit. + QuotaRateScope rate_scope = 1; + + // The high level description of the quota bucket. + // Examples are "Get requests for standard access" or "Requests per account". + string rate_name = 2; + + // Backoff period that customers should wait before sending next request. + google.protobuf.Duration retry_delay = 3; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/extension_feed_item_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/extension_feed_item_error.proto new file mode 100644 index 000000000..d7733c09b --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/extension_feed_item_error.proto @@ -0,0 +1,195 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "ExtensionFeedItemErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing extension feed item errors. + +// Container for enum describing possible extension feed item error. +message ExtensionFeedItemErrorEnum { + // Enum describing possible extension feed item errors. + enum ExtensionFeedItemError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Value is not within the accepted range. + VALUE_OUT_OF_RANGE = 2; + + // Url list is too long. + URL_LIST_TOO_LONG = 3; + + // Cannot have a geo targeting restriction without having geo targeting. + CANNOT_HAVE_RESTRICTION_ON_EMPTY_GEO_TARGETING = 4; + + // Cannot simultaneously set sitelink field with final urls. + CANNOT_SET_WITH_FINAL_URLS = 5; + + // Must set field with final urls. + CANNOT_SET_WITHOUT_FINAL_URLS = 6; + + // Phone number for a call extension is invalid. + INVALID_PHONE_NUMBER = 7; + + // Phone number for a call extension is not supported for the given country + // code. + PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY = 8; + + // A carrier specific number in short format is not allowed for call + // extensions. + CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED = 9; + + // Premium rate numbers are not allowed for call extensions. + PREMIUM_RATE_NUMBER_NOT_ALLOWED = 10; + + // Phone number type for a call extension is not allowed. + // For example, personal number is not allowed for a call extension in + // most regions. + DISALLOWED_NUMBER_TYPE = 11; + + // Phone number for a call extension does not meet domestic format + // requirements. + INVALID_DOMESTIC_PHONE_NUMBER_FORMAT = 12; + + // Vanity phone numbers (i.e. those including letters) are not allowed for + // call extensions. + VANITY_PHONE_NUMBER_NOT_ALLOWED = 13; + + // Call conversion action provided for a call extension is invalid. + INVALID_CALL_CONVERSION_ACTION = 14; + + // For a call extension, the customer is not on the allow-list for call + // tracking. + CUSTOMER_NOT_ON_ALLOWLIST_FOR_CALLTRACKING = 47; + + // Call tracking is not supported for the given country for a call + // extension. + CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY = 16; + + // Customer hasn't consented for call recording, which is required for + // creating/updating call feed items. Please see + // https://support.google.com/google-ads/answer/7412639. + CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED = 17; + + // App id provided for an app extension is invalid. + INVALID_APP_ID = 18; + + // Quotation marks present in the review text for a review extension. + QUOTES_IN_REVIEW_EXTENSION_SNIPPET = 19; + + // Hyphen character present in the review text for a review extension. + HYPHENS_IN_REVIEW_EXTENSION_SNIPPET = 20; + + // A denylisted review source name or url was provided for a review + // extension. + REVIEW_EXTENSION_SOURCE_INELIGIBLE = 21; + + // Review source name should not be found in the review text. + SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT = 22; + + // Inconsistent currency codes. + INCONSISTENT_CURRENCY_CODES = 23; + + // Price extension cannot have duplicated headers. + PRICE_EXTENSION_HAS_DUPLICATED_HEADERS = 24; + + // Price item cannot have duplicated header and description. + PRICE_ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION = 25; + + // Price extension has too few items. + PRICE_EXTENSION_HAS_TOO_FEW_ITEMS = 26; + + // Price extension has too many items. + PRICE_EXTENSION_HAS_TOO_MANY_ITEMS = 27; + + // The input value is not currently supported. + UNSUPPORTED_VALUE = 28; + + // The input value is not currently supported in the selected language of an + // extension. + UNSUPPORTED_VALUE_IN_SELECTED_LANGUAGE = 29; + + // Unknown or unsupported device preference. + INVALID_DEVICE_PREFERENCE = 30; + + // Invalid feed item schedule end time (i.e., endHour = 24 and endMinute != + // 0). + INVALID_SCHEDULE_END = 31; + + // Date time zone does not match the account's time zone. + DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE = 32; + + // Invalid structured snippet header. + INVALID_SNIPPETS_HEADER = 33; + + // Cannot operate on removed feed item. + CANNOT_OPERATE_ON_REMOVED_FEED_ITEM = 34; + + // Phone number not supported when call tracking enabled for country. + PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY = 35; + + // Cannot set call_conversion_action while call_conversion_tracking_enabled + // is set to true. + CONFLICTING_CALL_CONVERSION_SETTINGS = 36; + + // The type of the input extension feed item doesn't match the existing + // extension feed item. + EXTENSION_TYPE_MISMATCH = 37; + + // The oneof field extension i.e. subtype of extension feed item is + // required. + EXTENSION_SUBTYPE_REQUIRED = 38; + + // The referenced feed item is not mapped to a supported extension type. + EXTENSION_TYPE_UNSUPPORTED = 39; + + // Cannot operate on a Feed with more than one active FeedMapping. + CANNOT_OPERATE_ON_FEED_WITH_MULTIPLE_MAPPINGS = 40; + + // Cannot operate on a Feed that has key attributes. + CANNOT_OPERATE_ON_FEED_WITH_KEY_ATTRIBUTES = 41; + + // Input price is not in a valid format. + INVALID_PRICE_FORMAT = 42; + + // The promotion time is invalid. + PROMOTION_INVALID_TIME = 43; + + // This field has too many decimal places specified. + TOO_MANY_DECIMAL_PLACES_SPECIFIED = 44; + + // Concrete sub type of ExtensionFeedItem is required for this operation. + CONCRETE_EXTENSION_TYPE_REQUIRED = 45; + + // Feed item schedule end time must be after start time. + SCHEDULE_END_NOT_AFTER_START = 46; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/extension_setting_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/extension_setting_error.proto new file mode 100644 index 000000000..84981abc8 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/extension_setting_error.proto @@ -0,0 +1,261 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "ExtensionSettingErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing extension setting validation errors. + +// Container for enum describing validation errors of extension settings. +message ExtensionSettingErrorEnum { + // Enum describing possible extension setting errors. + enum ExtensionSettingError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // A platform restriction was provided without input extensions or existing + // extensions. + EXTENSIONS_REQUIRED = 2; + + // The provided feed type does not correspond to the provided extensions. + FEED_TYPE_EXTENSION_TYPE_MISMATCH = 3; + + // The provided feed type cannot be used. + INVALID_FEED_TYPE = 4; + + // The provided feed type cannot be used at the customer level. + INVALID_FEED_TYPE_FOR_CUSTOMER_EXTENSION_SETTING = 5; + + // Cannot change a feed item field on a CREATE operation. + CANNOT_CHANGE_FEED_ITEM_ON_CREATE = 6; + + // Cannot update an extension that is not already in this setting. + CANNOT_UPDATE_NEWLY_CREATED_EXTENSION = 7; + + // There is no existing AdGroupExtensionSetting for this type. + NO_EXISTING_AD_GROUP_EXTENSION_SETTING_FOR_TYPE = 8; + + // There is no existing CampaignExtensionSetting for this type. + NO_EXISTING_CAMPAIGN_EXTENSION_SETTING_FOR_TYPE = 9; + + // There is no existing CustomerExtensionSetting for this type. + NO_EXISTING_CUSTOMER_EXTENSION_SETTING_FOR_TYPE = 10; + + // The AdGroupExtensionSetting already exists. UPDATE should be used to + // modify the existing AdGroupExtensionSetting. + AD_GROUP_EXTENSION_SETTING_ALREADY_EXISTS = 11; + + // The CampaignExtensionSetting already exists. UPDATE should be used to + // modify the existing CampaignExtensionSetting. + CAMPAIGN_EXTENSION_SETTING_ALREADY_EXISTS = 12; + + // The CustomerExtensionSetting already exists. UPDATE should be used to + // modify the existing CustomerExtensionSetting. + CUSTOMER_EXTENSION_SETTING_ALREADY_EXISTS = 13; + + // An active ad group feed already exists for this place holder type. + AD_GROUP_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE = 14; + + // An active campaign feed already exists for this place holder type. + CAMPAIGN_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE = 15; + + // An active customer feed already exists for this place holder type. + CUSTOMER_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE = 16; + + // Value is not within the accepted range. + VALUE_OUT_OF_RANGE = 17; + + // Cannot simultaneously set specified field with final urls. + CANNOT_SET_FIELD_WITH_FINAL_URLS = 18; + + // Must set field with final urls. + FINAL_URLS_NOT_SET = 19; + + // Phone number for a call extension is invalid. + INVALID_PHONE_NUMBER = 20; + + // Phone number for a call extension is not supported for the given country + // code. + PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY = 21; + + // A carrier specific number in short format is not allowed for call + // extensions. + CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED = 22; + + // Premium rate numbers are not allowed for call extensions. + PREMIUM_RATE_NUMBER_NOT_ALLOWED = 23; + + // Phone number type for a call extension is not allowed. + DISALLOWED_NUMBER_TYPE = 24; + + // Phone number for a call extension does not meet domestic format + // requirements. + INVALID_DOMESTIC_PHONE_NUMBER_FORMAT = 25; + + // Vanity phone numbers (i.e. those including letters) are not allowed for + // call extensions. + VANITY_PHONE_NUMBER_NOT_ALLOWED = 26; + + // Country code provided for a call extension is invalid. + INVALID_COUNTRY_CODE = 27; + + // Call conversion type id provided for a call extension is invalid. + INVALID_CALL_CONVERSION_TYPE_ID = 28; + + // For a call extension, the customer is not on the allow-list for call + // tracking. + CUSTOMER_NOT_IN_ALLOWLIST_FOR_CALLTRACKING = 69; + + // Call tracking is not supported for the given country for a call + // extension. + CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY = 30; + + // App id provided for an app extension is invalid. + INVALID_APP_ID = 31; + + // Quotation marks present in the review text for a review extension. + QUOTES_IN_REVIEW_EXTENSION_SNIPPET = 32; + + // Hyphen character present in the review text for a review extension. + HYPHENS_IN_REVIEW_EXTENSION_SNIPPET = 33; + + // A blocked review source name or url was provided for a review + // extension. + REVIEW_EXTENSION_SOURCE_NOT_ELIGIBLE = 34; + + // Review source name should not be found in the review text. + SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT = 35; + + // Field must be set. + MISSING_FIELD = 36; + + // Inconsistent currency codes. + INCONSISTENT_CURRENCY_CODES = 37; + + // Price extension cannot have duplicated headers. + PRICE_EXTENSION_HAS_DUPLICATED_HEADERS = 38; + + // Price item cannot have duplicated header and description. + PRICE_ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION = 39; + + // Price extension has too few items + PRICE_EXTENSION_HAS_TOO_FEW_ITEMS = 40; + + // Price extension has too many items + PRICE_EXTENSION_HAS_TOO_MANY_ITEMS = 41; + + // The input value is not currently supported. + UNSUPPORTED_VALUE = 42; + + // Unknown or unsupported device preference. + INVALID_DEVICE_PREFERENCE = 43; + + // Invalid feed item schedule end time (i.e., endHour = 24 and + // endMinute != 0). + INVALID_SCHEDULE_END = 45; + + // Date time zone does not match the account's time zone. + DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE = 47; + + // Overlapping feed item schedule times (e.g., 7-10AM and 8-11AM) are not + // allowed. + OVERLAPPING_SCHEDULES_NOT_ALLOWED = 48; + + // Feed item schedule end time must be after start time. + SCHEDULE_END_NOT_AFTER_START = 49; + + // There are too many feed item schedules per day. + TOO_MANY_SCHEDULES_PER_DAY = 50; + + // Cannot edit the same extension feed item more than once in the same + // request. + DUPLICATE_EXTENSION_FEED_ITEM_EDIT = 51; + + // Invalid structured snippet header. + INVALID_SNIPPETS_HEADER = 52; + + // Phone number with call tracking enabled is not supported for the + // specified country. + PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY = 53; + + // The targeted adgroup must belong to the targeted campaign. + CAMPAIGN_TARGETING_MISMATCH = 54; + + // The feed used by the ExtensionSetting is removed and cannot be operated + // on. Remove the ExtensionSetting to allow a new one to be created using + // an active feed. + CANNOT_OPERATE_ON_REMOVED_FEED = 55; + + // The ExtensionFeedItem type is required for this operation. + EXTENSION_TYPE_REQUIRED = 56; + + // The matching function that links the extension feed to the customer, + // campaign, or ad group is not compatible with the ExtensionSetting + // services. + INCOMPATIBLE_UNDERLYING_MATCHING_FUNCTION = 57; + + // Start date must be before end date. + START_DATE_AFTER_END_DATE = 58; + + // Input price is not in a valid format. + INVALID_PRICE_FORMAT = 59; + + // The promotion time is invalid. + PROMOTION_INVALID_TIME = 60; + + // Cannot set both percent discount and money discount fields. + PROMOTION_CANNOT_SET_PERCENT_DISCOUNT_AND_MONEY_DISCOUNT = 61; + + // Cannot set both promotion code and orders over amount fields. + PROMOTION_CANNOT_SET_PROMOTION_CODE_AND_ORDERS_OVER_AMOUNT = 62; + + // This field has too many decimal places specified. + TOO_MANY_DECIMAL_PLACES_SPECIFIED = 63; + + // The language code is not valid. + INVALID_LANGUAGE_CODE = 64; + + // The language is not supported. + UNSUPPORTED_LANGUAGE = 65; + + // Customer hasn't consented for call recording, which is required for + // adding/updating call extensions. Please see + // https://support.google.com/google-ads/answer/7412639. + CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED = 66; + + // The UPDATE operation does not specify any fields other than the resource + // name in the update mask. + EXTENSION_SETTING_UPDATE_IS_A_NOOP = 67; + + // The extension contains text which has been prohibited on policy grounds. + DISALLOWED_TEXT = 68; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/feed_attribute_reference_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/feed_attribute_reference_error.proto new file mode 100644 index 000000000..e19aa8982 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/feed_attribute_reference_error.proto @@ -0,0 +1,53 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "FeedAttributeReferenceErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing feed attribute reference errors. + +// Container for enum describing possible feed attribute reference errors. +message FeedAttributeReferenceErrorEnum { + // Enum describing possible feed attribute reference errors. + enum FeedAttributeReferenceError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // A feed referenced by ID has been removed. + CANNOT_REFERENCE_REMOVED_FEED = 2; + + // There is no enabled feed with the given name. + INVALID_FEED_NAME = 3; + + // There is no feed attribute in an enabled feed with the given name. + INVALID_FEED_ATTRIBUTE_NAME = 4; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/feed_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/feed_error.proto new file mode 100644 index 000000000..b0b8041ef --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/feed_error.proto @@ -0,0 +1,111 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "FeedErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing feed errors. + +// Container for enum describing possible feed errors. +message FeedErrorEnum { + // Enum describing possible feed errors. + enum FeedError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // The names of the FeedAttributes must be unique. + ATTRIBUTE_NAMES_NOT_UNIQUE = 2; + + // The attribute list must be an exact copy of the existing list if the + // attribute ID's are present. + ATTRIBUTES_DO_NOT_MATCH_EXISTING_ATTRIBUTES = 3; + + // Cannot specify USER origin for a system generated feed. + CANNOT_SPECIFY_USER_ORIGIN_FOR_SYSTEM_FEED = 4; + + // Cannot specify GOOGLE origin for a non-system generated feed. + CANNOT_SPECIFY_GOOGLE_ORIGIN_FOR_NON_SYSTEM_FEED = 5; + + // Cannot specify feed attributes for system feed. + CANNOT_SPECIFY_FEED_ATTRIBUTES_FOR_SYSTEM_FEED = 6; + + // Cannot update FeedAttributes on feed with origin GOOGLE. + CANNOT_UPDATE_FEED_ATTRIBUTES_WITH_ORIGIN_GOOGLE = 7; + + // The given ID refers to a removed Feed. Removed Feeds are immutable. + FEED_REMOVED = 8; + + // The origin of the feed is not valid for the client. + INVALID_ORIGIN_VALUE = 9; + + // A user can only create and modify feeds with USER origin. + FEED_ORIGIN_IS_NOT_USER = 10; + + // Invalid auth token for the given email. + INVALID_AUTH_TOKEN_FOR_EMAIL = 11; + + // Invalid email specified. + INVALID_EMAIL = 12; + + // Feed name matches that of another active Feed. + DUPLICATE_FEED_NAME = 13; + + // Name of feed is not allowed. + INVALID_FEED_NAME = 14; + + // Missing OAuthInfo. + MISSING_OAUTH_INFO = 15; + + // New FeedAttributes must not affect the unique key. + NEW_ATTRIBUTE_CANNOT_BE_PART_OF_UNIQUE_KEY = 16; + + // Too many FeedAttributes for a Feed. + TOO_MANY_ATTRIBUTES = 17; + + // The business account is not valid. + INVALID_BUSINESS_ACCOUNT = 18; + + // Business account cannot access Google My Business account. + BUSINESS_ACCOUNT_CANNOT_ACCESS_LOCATION_ACCOUNT = 19; + + // Invalid chain ID provided for affiliate location feed. + INVALID_AFFILIATE_CHAIN_ID = 20; + + // There is already a feed with the given system feed generation data. + DUPLICATE_SYSTEM_FEED = 21; + + // An error occurred accessing GMB account. + GMB_ACCESS_ERROR = 22; + + // A customer cannot have both LOCATION and AFFILIATE_LOCATION feeds. + CANNOT_HAVE_LOCATION_AND_AFFILIATE_LOCATION_FEEDS = 23; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/feed_item_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/feed_item_error.proto new file mode 100644 index 000000000..f5cfdb992 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/feed_item_error.proto @@ -0,0 +1,71 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "FeedItemErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing feed item errors. + +// Container for enum describing possible feed item errors. +message FeedItemErrorEnum { + // Enum describing possible feed item errors. + enum FeedItemError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Cannot convert the feed attribute value from string to its real type. + CANNOT_CONVERT_ATTRIBUTE_VALUE_FROM_STRING = 2; + + // Cannot operate on removed feed item. + CANNOT_OPERATE_ON_REMOVED_FEED_ITEM = 3; + + // Date time zone does not match the account's time zone. + DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE = 4; + + // Feed item with the key attributes could not be found. + KEY_ATTRIBUTES_NOT_FOUND = 5; + + // Url feed attribute value is not valid. + INVALID_URL = 6; + + // Some key attributes are missing. + MISSING_KEY_ATTRIBUTES = 7; + + // Feed item has same key attributes as another feed item. + KEY_ATTRIBUTES_NOT_UNIQUE = 8; + + // Cannot modify key attributes on an existing feed item. + CANNOT_MODIFY_KEY_ATTRIBUTE_VALUE = 9; + + // The feed attribute value is too large. + SIZE_TOO_LARGE_FOR_MULTI_VALUE_ATTRIBUTE = 10; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/feed_item_set_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/feed_item_set_error.proto new file mode 100644 index 000000000..238f69c55 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/feed_item_set_error.proto @@ -0,0 +1,68 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "FeedItemSetErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing feed item set errors. + +// Container for enum describing possible feed item set errors. +message FeedItemSetErrorEnum { + // Enum describing possible feed item set errors. + enum FeedItemSetError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // The given ID refers to a removed FeedItemSet. + FEED_ITEM_SET_REMOVED = 2; + + // The dynamic filter of a feed item set cannot be cleared on UPDATE if it + // exists. A set is either static or dynamic once added, and that cannot + // change. + CANNOT_CLEAR_DYNAMIC_FILTER = 3; + + // The dynamic filter of a feed item set cannot be created on UPDATE if it + // does not exist. A set is either static or dynamic once added, and that + // cannot change. + CANNOT_CREATE_DYNAMIC_FILTER = 4; + + // FeedItemSets can only be made for location or affiliate location feeds. + INVALID_FEED_TYPE = 5; + + // FeedItemSets duplicate name. Name should be unique within an account. + DUPLICATE_NAME = 6; + + // The feed type of the parent Feed is not compatible with the type of + // dynamic filter being set. For example, you can only set + // dynamic_location_set_filter for LOCATION feed item sets. + WRONG_DYNAMIC_FILTER_FOR_FEED_TYPE = 7; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/feed_item_set_link_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/feed_item_set_link_error.proto new file mode 100644 index 000000000..0b835f14b --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/feed_item_set_link_error.proto @@ -0,0 +1,51 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "FeedItemSetLinkErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing feed item set link errors. + +// Container for enum describing possible feed item set link errors. +message FeedItemSetLinkErrorEnum { + // Enum describing possible feed item set link errors. + enum FeedItemSetLinkError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // The feed IDs of the FeedItemSet and FeedItem do not match. Only FeedItems + // in a given Feed can be linked to a FeedItemSet in that Feed. + FEED_ID_MISMATCH = 2; + + // Cannot add or remove links to a dynamic set. + NO_MUTATE_ALLOWED_FOR_DYNAMIC_SET = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/feed_item_target_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/feed_item_target_error.proto new file mode 100644 index 000000000..16f37d8b7 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/feed_item_target_error.proto @@ -0,0 +1,70 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "FeedItemTargetErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing feed item target errors. + +// Container for enum describing possible feed item target errors. +message FeedItemTargetErrorEnum { + // Enum describing possible feed item target errors. + enum FeedItemTargetError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // On CREATE, the FeedItemTarget must have a populated field in the oneof + // target. + MUST_SET_TARGET_ONEOF_ON_CREATE = 2; + + // The specified feed item target already exists, so it cannot be added. + FEED_ITEM_TARGET_ALREADY_EXISTS = 3; + + // The schedules for a given feed item cannot overlap. + FEED_ITEM_SCHEDULES_CANNOT_OVERLAP = 4; + + // Too many targets of a given type were added for a single feed item. + TARGET_LIMIT_EXCEEDED_FOR_GIVEN_TYPE = 5; + + // Too many AdSchedules are enabled for the feed item for the given day. + TOO_MANY_SCHEDULES_PER_DAY = 6; + + // A feed item may either have an enabled campaign target or an enabled ad + // group target. + CANNOT_HAVE_ENABLED_CAMPAIGN_AND_ENABLED_AD_GROUP_TARGETS = 7; + + // Duplicate ad schedules aren't allowed. + DUPLICATE_AD_SCHEDULE = 8; + + // Duplicate keywords aren't allowed. + DUPLICATE_KEYWORD = 9; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/feed_item_validation_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/feed_item_validation_error.proto new file mode 100644 index 000000000..75751caee --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/feed_item_validation_error.proto @@ -0,0 +1,377 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "FeedItemValidationErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing feed item validation errors. + +// Container for enum describing possible validation errors of a feed item. +message FeedItemValidationErrorEnum { + // The possible validation errors of a feed item. + enum FeedItemValidationError { + // No value has been specified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // String is too short. + STRING_TOO_SHORT = 2; + + // String is too long. + STRING_TOO_LONG = 3; + + // Value is not provided. + VALUE_NOT_SPECIFIED = 4; + + // Phone number format is invalid for region. + INVALID_DOMESTIC_PHONE_NUMBER_FORMAT = 5; + + // String does not represent a phone number. + INVALID_PHONE_NUMBER = 6; + + // Phone number format is not compatible with country code. + PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY = 7; + + // Premium rate number is not allowed. + PREMIUM_RATE_NUMBER_NOT_ALLOWED = 8; + + // Phone number type is not allowed. + DISALLOWED_NUMBER_TYPE = 9; + + // Specified value is outside of the valid range. + VALUE_OUT_OF_RANGE = 10; + + // Call tracking is not supported in the selected country. + CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY = 11; + + // Customer is not on the allow-list for call tracking. + CUSTOMER_NOT_IN_ALLOWLIST_FOR_CALLTRACKING = 99; + + // Country code is invalid. + INVALID_COUNTRY_CODE = 13; + + // The specified mobile app id is invalid. + INVALID_APP_ID = 14; + + // Some required field attributes are missing. + MISSING_ATTRIBUTES_FOR_FIELDS = 15; + + // Invalid email button type for email extension. + INVALID_TYPE_ID = 16; + + // Email address is invalid. + INVALID_EMAIL_ADDRESS = 17; + + // The HTTPS URL in email extension is invalid. + INVALID_HTTPS_URL = 18; + + // Delivery address is missing from email extension. + MISSING_DELIVERY_ADDRESS = 19; + + // FeedItem scheduling start date comes after end date. + START_DATE_AFTER_END_DATE = 20; + + // FeedItem scheduling start time is missing. + MISSING_FEED_ITEM_START_TIME = 21; + + // FeedItem scheduling end time is missing. + MISSING_FEED_ITEM_END_TIME = 22; + + // Cannot compute system attributes on a FeedItem that has no FeedItemId. + MISSING_FEED_ITEM_ID = 23; + + // Call extension vanity phone numbers are not supported. + VANITY_PHONE_NUMBER_NOT_ALLOWED = 24; + + // Invalid review text. + INVALID_REVIEW_EXTENSION_SNIPPET = 25; + + // Invalid format for numeric value in ad parameter. + INVALID_NUMBER_FORMAT = 26; + + // Invalid format for date value in ad parameter. + INVALID_DATE_FORMAT = 27; + + // Invalid format for price value in ad parameter. + INVALID_PRICE_FORMAT = 28; + + // Unrecognized type given for value in ad parameter. + UNKNOWN_PLACEHOLDER_FIELD = 29; + + // Enhanced sitelinks must have both description lines specified. + MISSING_ENHANCED_SITELINK_DESCRIPTION_LINE = 30; + + // Review source is ineligible. + REVIEW_EXTENSION_SOURCE_INELIGIBLE = 31; + + // Review text cannot contain hyphens or dashes. + HYPHENS_IN_REVIEW_EXTENSION_SNIPPET = 32; + + // Review text cannot contain double quote characters. + DOUBLE_QUOTES_IN_REVIEW_EXTENSION_SNIPPET = 33; + + // Review text cannot contain quote characters. + QUOTES_IN_REVIEW_EXTENSION_SNIPPET = 34; + + // Parameters are encoded in the wrong format. + INVALID_FORM_ENCODED_PARAMS = 35; + + // URL parameter name must contain only letters, numbers, underscores, and + // dashes. + INVALID_URL_PARAMETER_NAME = 36; + + // Cannot find address location. + NO_GEOCODING_RESULT = 37; + + // Review extension text has source name. + SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT = 38; + + // Some phone numbers can be shorter than usual. Some of these short numbers + // are carrier-specific, and we disallow those in ad extensions because they + // will not be available to all users. + CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED = 39; + + // Triggered when a request references a placeholder field id that does not + // exist. + INVALID_PLACEHOLDER_FIELD_ID = 40; + + // URL contains invalid ValueTrack tags or format. + INVALID_URL_TAG = 41; + + // Provided list exceeds acceptable size. + LIST_TOO_LONG = 42; + + // Certain combinations of attributes aren't allowed to be specified in the + // same feed item. + INVALID_ATTRIBUTES_COMBINATION = 43; + + // An attribute has the same value repeatedly. + DUPLICATE_VALUES = 44; + + // Advertisers can link a conversion action with a phone number to indicate + // that sufficiently long calls forwarded to that phone number should be + // counted as conversions of the specified type. This is an error message + // indicating that the conversion action specified is invalid (e.g., the + // conversion action does not exist within the appropriate Google Ads + // account, or it is a type of conversion not appropriate to phone call + // conversions). + INVALID_CALL_CONVERSION_ACTION_ID = 45; + + // Tracking template requires final url to be set. + CANNOT_SET_WITHOUT_FINAL_URLS = 46; + + // An app id was provided that doesn't exist in the given app store. + APP_ID_DOESNT_EXIST_IN_APP_STORE = 47; + + // Invalid U2 final url. + INVALID_FINAL_URL = 48; + + // Invalid U2 tracking url. + INVALID_TRACKING_URL = 49; + + // Final URL should start from App download URL. + INVALID_FINAL_URL_FOR_APP_DOWNLOAD_URL = 50; + + // List provided is too short. + LIST_TOO_SHORT = 51; + + // User Action field has invalid value. + INVALID_USER_ACTION = 52; + + // Type field has invalid value. + INVALID_TYPE_NAME = 53; + + // Change status for event is invalid. + INVALID_EVENT_CHANGE_STATUS = 54; + + // The header of a structured snippets extension is not one of the valid + // headers. + INVALID_SNIPPETS_HEADER = 55; + + // Android app link is not formatted correctly + INVALID_ANDROID_APP_LINK = 56; + + // Phone number incompatible with call tracking for country. + NUMBER_TYPE_WITH_CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY = 57; + + // The input is identical to a reserved keyword + RESERVED_KEYWORD_OTHER = 58; + + // Each option label in the message extension must be unique. + DUPLICATE_OPTION_LABELS = 59; + + // Each option prefill in the message extension must be unique. + DUPLICATE_OPTION_PREFILLS = 60; + + // In message extensions, the number of optional labels and optional + // prefills must be the same. + UNEQUAL_LIST_LENGTHS = 61; + + // All currency codes in an ad extension must be the same. + INCONSISTENT_CURRENCY_CODES = 62; + + // Headers in price extension are not unique. + PRICE_EXTENSION_HAS_DUPLICATED_HEADERS = 63; + + // Header and description in an item are the same. + ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION = 64; + + // Price extension has too few items. + PRICE_EXTENSION_HAS_TOO_FEW_ITEMS = 65; + + // The given value is not supported. + UNSUPPORTED_VALUE = 66; + + // Invalid final mobile url. + INVALID_FINAL_MOBILE_URL = 67; + + // The given string value of Label contains invalid characters + INVALID_KEYWORDLESS_AD_RULE_LABEL = 68; + + // The given URL contains value track parameters. + VALUE_TRACK_PARAMETER_NOT_SUPPORTED = 69; + + // The given value is not supported in the selected language of an + // extension. + UNSUPPORTED_VALUE_IN_SELECTED_LANGUAGE = 70; + + // The iOS app link is not formatted correctly. + INVALID_IOS_APP_LINK = 71; + + // iOS app link or iOS app store id is missing. + MISSING_IOS_APP_LINK_OR_IOS_APP_STORE_ID = 72; + + // Promotion time is invalid. + PROMOTION_INVALID_TIME = 73; + + // Both the percent off and money amount off fields are set. + PROMOTION_CANNOT_SET_PERCENT_OFF_AND_MONEY_AMOUNT_OFF = 74; + + // Both the promotion code and orders over amount fields are set. + PROMOTION_CANNOT_SET_PROMOTION_CODE_AND_ORDERS_OVER_AMOUNT = 75; + + // Too many decimal places are specified. + TOO_MANY_DECIMAL_PLACES_SPECIFIED = 76; + + // Ad Customizers are present and not allowed. + AD_CUSTOMIZERS_NOT_ALLOWED = 77; + + // Language code is not valid. + INVALID_LANGUAGE_CODE = 78; + + // Language is not supported. + UNSUPPORTED_LANGUAGE = 79; + + // IF Function is present and not allowed. + IF_FUNCTION_NOT_ALLOWED = 80; + + // Final url suffix is not valid. + INVALID_FINAL_URL_SUFFIX = 81; + + // Final url suffix contains an invalid tag. + INVALID_TAG_IN_FINAL_URL_SUFFIX = 82; + + // Final url suffix is formatted incorrectly. + INVALID_FINAL_URL_SUFFIX_FORMAT = 83; + + // Consent for call recording, which is required for the use of call + // extensions, was not provided by the advertiser. Please see + // https://support.google.com/google-ads/answer/7412639. + CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED = 84; + + // Multiple message delivery options are set. + ONLY_ONE_DELIVERY_OPTION_IS_ALLOWED = 85; + + // No message delivery option is set. + NO_DELIVERY_OPTION_IS_SET = 86; + + // String value of conversion reporting state field is not valid. + INVALID_CONVERSION_REPORTING_STATE = 87; + + // Image size is not right. + IMAGE_SIZE_WRONG = 88; + + // Email delivery is not supported in the country specified in the country + // code field. + EMAIL_DELIVERY_NOT_AVAILABLE_IN_COUNTRY = 89; + + // Auto reply is not supported in the country specified in the country code + // field. + AUTO_REPLY_NOT_AVAILABLE_IN_COUNTRY = 90; + + // Invalid value specified for latitude. + INVALID_LATITUDE_VALUE = 91; + + // Invalid value specified for longitude. + INVALID_LONGITUDE_VALUE = 92; + + // Too many label fields provided. + TOO_MANY_LABELS = 93; + + // Invalid image url. + INVALID_IMAGE_URL = 94; + + // Latitude value is missing. + MISSING_LATITUDE_VALUE = 95; + + // Longitude value is missing. + MISSING_LONGITUDE_VALUE = 96; + + // Unable to find address. + ADDRESS_NOT_FOUND = 97; + + // Cannot target provided address. + ADDRESS_NOT_TARGETABLE = 98; + + // The specified asset ID does not exist. + INVALID_ASSET_ID = 100; + + // The asset type cannot be set for the field. + INCOMPATIBLE_ASSET_TYPE = 101; + + // The image has unexpected size. + IMAGE_ERROR_UNEXPECTED_SIZE = 102; + + // The image aspect ratio is not allowed. + IMAGE_ERROR_ASPECT_RATIO_NOT_ALLOWED = 103; + + // The image file is too large. + IMAGE_ERROR_FILE_TOO_LARGE = 104; + + // The image format is unsupported. + IMAGE_ERROR_FORMAT_NOT_ALLOWED = 105; + + // Image violates constraints without more details. + IMAGE_ERROR_CONSTRAINTS_VIOLATED = 106; + + // An error occurred when validating image. + IMAGE_ERROR_SERVER_ERROR = 107; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/feed_mapping_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/feed_mapping_error.proto new file mode 100644 index 000000000..b4b353bac --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/feed_mapping_error.proto @@ -0,0 +1,100 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "FeedMappingErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing feed item errors. + +// Container for enum describing possible feed item errors. +message FeedMappingErrorEnum { + // Enum describing possible feed item errors. + enum FeedMappingError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // The given placeholder field does not exist. + INVALID_PLACEHOLDER_FIELD = 2; + + // The given criterion field does not exist. + INVALID_CRITERION_FIELD = 3; + + // The given placeholder type does not exist. + INVALID_PLACEHOLDER_TYPE = 4; + + // The given criterion type does not exist. + INVALID_CRITERION_TYPE = 5; + + // A feed mapping must contain at least one attribute field mapping. + NO_ATTRIBUTE_FIELD_MAPPINGS = 7; + + // The type of the feed attribute referenced in the attribute field mapping + // must match the type of the placeholder field. + FEED_ATTRIBUTE_TYPE_MISMATCH = 8; + + // A feed mapping for a system generated feed cannot be operated on. + CANNOT_OPERATE_ON_MAPPINGS_FOR_SYSTEM_GENERATED_FEED = 9; + + // Only one feed mapping for a placeholder type is allowed per feed or + // customer (depending on the placeholder type). + MULTIPLE_MAPPINGS_FOR_PLACEHOLDER_TYPE = 10; + + // Only one feed mapping for a criterion type is allowed per customer. + MULTIPLE_MAPPINGS_FOR_CRITERION_TYPE = 11; + + // Only one feed attribute mapping for a placeholder field is allowed + // (depending on the placeholder type). + MULTIPLE_MAPPINGS_FOR_PLACEHOLDER_FIELD = 12; + + // Only one feed attribute mapping for a criterion field is allowed + // (depending on the criterion type). + MULTIPLE_MAPPINGS_FOR_CRITERION_FIELD = 13; + + // This feed mapping may not contain any explicit attribute field mappings. + UNEXPECTED_ATTRIBUTE_FIELD_MAPPINGS = 14; + + // Location placeholder feed mappings can only be created for Places feeds. + LOCATION_PLACEHOLDER_ONLY_FOR_PLACES_FEEDS = 15; + + // Mappings for typed feeds cannot be modified. + CANNOT_MODIFY_MAPPINGS_FOR_TYPED_FEED = 16; + + // The given placeholder type can only be mapped to system generated feeds. + INVALID_PLACEHOLDER_TYPE_FOR_NON_SYSTEM_GENERATED_FEED = 17; + + // The given placeholder type cannot be mapped to a system generated feed + // with the given type. + INVALID_PLACEHOLDER_TYPE_FOR_SYSTEM_GENERATED_FEED_TYPE = 18; + + // The "field" oneof was not set in an AttributeFieldMapping. + ATTRIBUTE_FIELD_MAPPING_MISSING_FIELD = 19; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/field_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/field_error.proto new file mode 100644 index 000000000..b554571d2 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/field_error.proto @@ -0,0 +1,65 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "FieldErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing field errors. + +// Container for enum describing possible field errors. +message FieldErrorEnum { + // Enum describing possible field errors. + enum FieldError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // The required field was not present. + REQUIRED = 2; + + // The field attempted to be mutated is immutable. + IMMUTABLE_FIELD = 3; + + // The field's value is invalid. + INVALID_VALUE = 4; + + // The field cannot be set. + VALUE_MUST_BE_UNSET = 5; + + // The required repeated field was empty. + REQUIRED_NONEMPTY_LIST = 6; + + // The field cannot be cleared. + FIELD_CANNOT_BE_CLEARED = 7; + + // The field's value is on a deny-list for this field. + BLOCKED_VALUE = 9; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/field_mask_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/field_mask_error.proto new file mode 100644 index 000000000..de3adf66c --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/field_mask_error.proto @@ -0,0 +1,58 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "FieldMaskErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing field mask errors. + +// Container for enum describing possible field mask errors. +message FieldMaskErrorEnum { + // Enum describing possible field mask errors. + enum FieldMaskError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // The field mask must be provided for update operations. + FIELD_MASK_MISSING = 5; + + // The field mask must be empty for create and remove operations. + FIELD_MASK_NOT_ALLOWED = 4; + + // The field mask contained an invalid field. + FIELD_NOT_FOUND = 2; + + // The field mask updated a field with subfields. Fields with subfields may + // be cleared, but not updated. To fix this, the field mask should select + // all the subfields of the invalid field. + FIELD_HAS_SUBFIELDS = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/function_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/function_error.proto new file mode 100644 index 000000000..9af76ae7b --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/function_error.proto @@ -0,0 +1,93 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "FunctionErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing function errors. + +// Container for enum describing possible function errors. +message FunctionErrorEnum { + // Enum describing possible function errors. + enum FunctionError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // The format of the function is not recognized as a supported function + // format. + INVALID_FUNCTION_FORMAT = 2; + + // Operand data types do not match. + DATA_TYPE_MISMATCH = 3; + + // The operands cannot be used together in a conjunction. + INVALID_CONJUNCTION_OPERANDS = 4; + + // Invalid numer of Operands. + INVALID_NUMBER_OF_OPERANDS = 5; + + // Operand Type not supported. + INVALID_OPERAND_TYPE = 6; + + // Operator not supported. + INVALID_OPERATOR = 7; + + // Request context type not supported. + INVALID_REQUEST_CONTEXT_TYPE = 8; + + // The matching function is not allowed for call placeholders + INVALID_FUNCTION_FOR_CALL_PLACEHOLDER = 9; + + // The matching function is not allowed for the specified placeholder + INVALID_FUNCTION_FOR_PLACEHOLDER = 10; + + // Invalid operand. + INVALID_OPERAND = 11; + + // Missing value for the constant operand. + MISSING_CONSTANT_OPERAND_VALUE = 12; + + // The value of the constant operand is invalid. + INVALID_CONSTANT_OPERAND_VALUE = 13; + + // Invalid function nesting. + INVALID_NESTING = 14; + + // The Feed ID was different from another Feed ID in the same function. + MULTIPLE_FEED_IDS_NOT_SUPPORTED = 15; + + // The matching function is invalid for use with a feed with a fixed schema. + INVALID_FUNCTION_FOR_FEED_WITH_FIXED_SCHEMA = 16; + + // Invalid attribute name. + INVALID_ATTRIBUTE_NAME = 17; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/function_parsing_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/function_parsing_error.proto new file mode 100644 index 000000000..3269d1cbe --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/function_parsing_error.proto @@ -0,0 +1,77 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "FunctionParsingErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing function parsing errors. + +// Container for enum describing possible function parsing errors. +message FunctionParsingErrorEnum { + // Enum describing possible function parsing errors. + enum FunctionParsingError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Unexpected end of function string. + NO_MORE_INPUT = 2; + + // Could not find an expected character. + EXPECTED_CHARACTER = 3; + + // Unexpected separator character. + UNEXPECTED_SEPARATOR = 4; + + // Unmatched left bracket or parenthesis. + UNMATCHED_LEFT_BRACKET = 5; + + // Unmatched right bracket or parenthesis. + UNMATCHED_RIGHT_BRACKET = 6; + + // Functions are nested too deeply. + TOO_MANY_NESTED_FUNCTIONS = 7; + + // Missing right-hand-side operand. + MISSING_RIGHT_HAND_OPERAND = 8; + + // Invalid operator/function name. + INVALID_OPERATOR_NAME = 9; + + // Feed attribute operand's argument is not an integer. + FEED_ATTRIBUTE_OPERAND_ARGUMENT_NOT_INTEGER = 10; + + // Missing function operands. + NO_OPERANDS = 11; + + // Function had too many operands. + TOO_MANY_OPERANDS = 12; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/geo_target_constant_suggestion_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/geo_target_constant_suggestion_error.proto new file mode 100644 index 000000000..d336856bb --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/geo_target_constant_suggestion_error.proto @@ -0,0 +1,56 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "GeoTargetConstantSuggestionErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Container for enum describing possible geo target constant suggestion errors. +message GeoTargetConstantSuggestionErrorEnum { + // Enum describing possible geo target constant suggestion errors. + enum GeoTargetConstantSuggestionError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // A location name cannot be greater than 300 characters. + LOCATION_NAME_SIZE_LIMIT = 2; + + // At most 25 location names can be specified in a SuggestGeoTargetConstants + // method. + LOCATION_NAME_LIMIT = 3; + + // The country code is invalid. + INVALID_COUNTRY_CODE = 4; + + // Geo target constant resource names or location names must be provided in + // the request. + REQUEST_PARAMETERS_UNSET = 5; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/header_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/header_error.proto new file mode 100644 index 000000000..b70e7511c --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/header_error.proto @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "HeaderErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing header errors. + +// Container for enum describing possible header errors. +message HeaderErrorEnum { + // Enum describing possible header errors. + enum HeaderError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // The login customer id could not be validated. + INVALID_LOGIN_CUSTOMER_ID = 3; + + // The linked customer id could not be validated. + INVALID_LINKED_CUSTOMER_ID = 7; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/id_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/id_error.proto new file mode 100644 index 000000000..002c137c7 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/id_error.proto @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "IdErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing id errors. + +// Container for enum describing possible id errors. +message IdErrorEnum { + // Enum describing possible id errors. + enum IdError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Id not found + NOT_FOUND = 2; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/image_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/image_error.proto new file mode 100644 index 000000000..8ce7f361e --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/image_error.proto @@ -0,0 +1,164 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "ImageErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing image errors. + +// Container for enum describing possible image errors. +message ImageErrorEnum { + // Enum describing possible image errors. + enum ImageError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // The image is not valid. + INVALID_IMAGE = 2; + + // The image could not be stored. + STORAGE_ERROR = 3; + + // There was a problem with the request. + BAD_REQUEST = 4; + + // The image is not of legal dimensions. + UNEXPECTED_SIZE = 5; + + // Animated image are not permitted. + ANIMATED_NOT_ALLOWED = 6; + + // Animation is too long. + ANIMATION_TOO_LONG = 7; + + // There was an error on the server. + SERVER_ERROR = 8; + + // Image cannot be in CMYK color format. + CMYK_JPEG_NOT_ALLOWED = 9; + + // Flash images are not permitted. + FLASH_NOT_ALLOWED = 10; + + // Flash images must support clickTag. + FLASH_WITHOUT_CLICKTAG = 11; + + // A flash error has occurred after fixing the click tag. + FLASH_ERROR_AFTER_FIXING_CLICK_TAG = 12; + + // Unacceptable visual effects. + ANIMATED_VISUAL_EFFECT = 13; + + // There was a problem with the flash image. + FLASH_ERROR = 14; + + // Incorrect image layout. + LAYOUT_PROBLEM = 15; + + // There was a problem reading the image file. + PROBLEM_READING_IMAGE_FILE = 16; + + // There was an error storing the image. + ERROR_STORING_IMAGE = 17; + + // The aspect ratio of the image is not allowed. + ASPECT_RATIO_NOT_ALLOWED = 18; + + // Flash cannot have network objects. + FLASH_HAS_NETWORK_OBJECTS = 19; + + // Flash cannot have network methods. + FLASH_HAS_NETWORK_METHODS = 20; + + // Flash cannot have a Url. + FLASH_HAS_URL = 21; + + // Flash cannot use mouse tracking. + FLASH_HAS_MOUSE_TRACKING = 22; + + // Flash cannot have a random number. + FLASH_HAS_RANDOM_NUM = 23; + + // Ad click target cannot be '_self'. + FLASH_SELF_TARGETS = 24; + + // GetUrl method should only use '_blank'. + FLASH_BAD_GETURL_TARGET = 25; + + // Flash version is not supported. + FLASH_VERSION_NOT_SUPPORTED = 26; + + // Flash movies need to have hard coded click URL or clickTAG + FLASH_WITHOUT_HARD_CODED_CLICK_URL = 27; + + // Uploaded flash file is corrupted. + INVALID_FLASH_FILE = 28; + + // Uploaded flash file can be parsed, but the click tag can not be fixed + // properly. + FAILED_TO_FIX_CLICK_TAG_IN_FLASH = 29; + + // Flash movie accesses network resources + FLASH_ACCESSES_NETWORK_RESOURCES = 30; + + // Flash movie attempts to call external javascript code + FLASH_EXTERNAL_JS_CALL = 31; + + // Flash movie attempts to call flash system commands + FLASH_EXTERNAL_FS_CALL = 32; + + // Image file is too large. + FILE_TOO_LARGE = 33; + + // Image data is too large. + IMAGE_DATA_TOO_LARGE = 34; + + // Error while processing the image. + IMAGE_PROCESSING_ERROR = 35; + + // Image is too small. + IMAGE_TOO_SMALL = 36; + + // Input was invalid. + INVALID_INPUT = 37; + + // There was a problem reading the image file. + PROBLEM_READING_FILE = 38; + + // Image constraints are violated, but details like ASPECT_RATIO_NOT_ALLOWED + // can't be provided. This happens when asset spec contains more than one + // constraint and different criteria of different constraints are violated. + IMAGE_CONSTRAINTS_VIOLATED = 39; + + // Image format is not allowed. + FORMAT_NOT_ALLOWED = 40; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/internal_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/internal_error.proto new file mode 100644 index 000000000..e1608ea04 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/internal_error.proto @@ -0,0 +1,58 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "InternalErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing internal errors. + +// Container for enum describing possible internal errors. +message InternalErrorEnum { + // Enum describing possible internal errors. + enum InternalError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Google Ads API encountered unexpected internal error. + INTERNAL_ERROR = 2; + + // The intended error code doesn't exist in specified API version. It will + // be released in a future API version. + ERROR_CODE_NOT_PUBLISHED = 3; + + // Google Ads API encountered an unexpected transient error. The user + // should retry their request in these cases. + TRANSIENT_ERROR = 4; + + // The request took longer than a deadline. + DEADLINE_EXCEEDED = 5; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/invoice_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/invoice_error.proto new file mode 100644 index 000000000..ada7b141a --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/invoice_error.proto @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "InvoiceErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing invoice errors. + +// Container for enum describing possible invoice errors. +message InvoiceErrorEnum { + // Enum describing possible invoice errors. + enum InvoiceError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Cannot request invoices issued before 2019-01-01. + YEAR_MONTH_TOO_OLD = 2; + + // Cannot request invoices for customer who doesn't receive invoices. + NOT_INVOICED_CUSTOMER = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/keyword_plan_ad_group_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/keyword_plan_ad_group_error.proto new file mode 100644 index 000000000..e7fe99ac0 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/keyword_plan_ad_group_error.proto @@ -0,0 +1,53 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "KeywordPlanAdGroupErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing errors from applying a keyword plan ad group. + +// Container for enum describing possible errors from applying a keyword plan +// ad group. +message KeywordPlanAdGroupErrorEnum { + // Enum describing possible errors from applying a keyword plan ad group. + enum KeywordPlanAdGroupError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // The keyword plan ad group name is missing, empty, longer than allowed + // limit or contains invalid chars. + INVALID_NAME = 2; + + // The keyword plan ad group name is duplicate to an existing keyword plan + // AdGroup name or other keyword plan AdGroup name in the request. + DUPLICATE_NAME = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/keyword_plan_ad_group_keyword_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/keyword_plan_ad_group_keyword_error.proto new file mode 100644 index 000000000..76b2acb1b --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/keyword_plan_ad_group_keyword_error.proto @@ -0,0 +1,69 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "KeywordPlanAdGroupKeywordErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing errors from applying a keyword plan ad group keyword or +// keyword plan campaign keyword. + +// Container for enum describing possible errors from applying an ad group +// keyword or a campaign keyword from a keyword plan. +message KeywordPlanAdGroupKeywordErrorEnum { + // Enum describing possible errors from applying a keyword plan ad group + // keyword or keyword plan campaign keyword. + enum KeywordPlanAdGroupKeywordError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // A keyword or negative keyword has invalid match type. + INVALID_KEYWORD_MATCH_TYPE = 2; + + // A keyword or negative keyword with same text and match type already + // exists. + DUPLICATE_KEYWORD = 3; + + // Keyword or negative keyword text exceeds the allowed limit. + KEYWORD_TEXT_TOO_LONG = 4; + + // Keyword or negative keyword text has invalid characters or symbols. + KEYWORD_HAS_INVALID_CHARS = 5; + + // Keyword or negative keyword text has too many words. + KEYWORD_HAS_TOO_MANY_WORDS = 6; + + // Keyword or negative keyword has invalid text. + INVALID_KEYWORD_TEXT = 7; + + // Cpc Bid set for negative keyword. + NEGATIVE_KEYWORD_HAS_CPC_BID = 8; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/keyword_plan_campaign_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/keyword_plan_campaign_error.proto new file mode 100644 index 000000000..5c0601440 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/keyword_plan_campaign_error.proto @@ -0,0 +1,65 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "KeywordPlanCampaignErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing errors from applying a keyword plan campaign. + +// Container for enum describing possible errors from applying a keyword plan +// campaign. +message KeywordPlanCampaignErrorEnum { + // Enum describing possible errors from applying a keyword plan campaign. + enum KeywordPlanCampaignError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // A keyword plan campaign name is missing, empty, longer than allowed limit + // or contains invalid chars. + INVALID_NAME = 2; + + // A keyword plan campaign contains one or more untargetable languages. + INVALID_LANGUAGES = 3; + + // A keyword plan campaign contains one or more invalid geo targets. + INVALID_GEOS = 4; + + // The keyword plan campaign name is duplicate to an existing keyword plan + // campaign name or other keyword plan campaign name in the request. + DUPLICATE_NAME = 5; + + // The number of geo targets in the keyword plan campaign exceeds limits. + MAX_GEOS_EXCEEDED = 6; + + // The number of languages in the keyword plan campaign exceeds limits. + MAX_LANGUAGES_EXCEEDED = 7; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/keyword_plan_campaign_keyword_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/keyword_plan_campaign_keyword_error.proto new file mode 100644 index 000000000..19932da09 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/keyword_plan_campaign_keyword_error.proto @@ -0,0 +1,49 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "KeywordPlanCampaignKeywordErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing errors from applying a keyword plan campaign keyword. + +// Container for enum describing possible errors from applying a keyword plan +// campaign keyword. +message KeywordPlanCampaignKeywordErrorEnum { + // Enum describing possible errors from applying a keyword plan campaign + // keyword. + enum KeywordPlanCampaignKeywordError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Keyword plan campaign keyword is positive. + CAMPAIGN_KEYWORD_IS_POSITIVE = 8; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/keyword_plan_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/keyword_plan_error.proto new file mode 100644 index 000000000..5cf9507c7 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/keyword_plan_error.proto @@ -0,0 +1,91 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "KeywordPlanErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing errors from applying keyword plan resources (keyword +// plan, keyword plan campaign, keyword plan ad group or keyword plan keyword) +// or KeywordPlanService RPC. + +// Container for enum describing possible errors from applying a keyword plan +// resource (keyword plan, keyword plan campaign, keyword plan ad group or +// keyword plan keyword) or KeywordPlanService RPC. +message KeywordPlanErrorEnum { + // Enum describing possible errors from applying a keyword plan. + enum KeywordPlanError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // The plan's bid multiplier value is outside the valid range. + BID_MULTIPLIER_OUT_OF_RANGE = 2; + + // The plan's bid value is too high. + BID_TOO_HIGH = 3; + + // The plan's bid value is too low. + BID_TOO_LOW = 4; + + // The plan's cpc bid is not a multiple of the minimum billable unit. + BID_TOO_MANY_FRACTIONAL_DIGITS = 5; + + // The plan's daily budget value is too low. + DAILY_BUDGET_TOO_LOW = 6; + + // The plan's daily budget is not a multiple of the minimum billable unit. + DAILY_BUDGET_TOO_MANY_FRACTIONAL_DIGITS = 7; + + // The input has an invalid value. + INVALID_VALUE = 8; + + // The plan has no keyword. + KEYWORD_PLAN_HAS_NO_KEYWORDS = 9; + + // The plan is not enabled and API cannot provide mutation, forecast or + // stats. + KEYWORD_PLAN_NOT_ENABLED = 10; + + // The requested plan cannot be found for providing forecast or stats. + KEYWORD_PLAN_NOT_FOUND = 11; + + // The plan is missing a cpc bid. + MISSING_BID = 13; + + // The plan is missing required forecast_period field. + MISSING_FORECAST_PERIOD = 14; + + // The plan's forecast_period has invalid forecast date range. + INVALID_FORECAST_DATE_RANGE = 15; + + // The plan's name is invalid. + INVALID_NAME = 16; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/keyword_plan_idea_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/keyword_plan_idea_error.proto new file mode 100644 index 000000000..f2eb87790 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/keyword_plan_idea_error.proto @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "KeywordPlanIdeaErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing errors from KeywordPlanIdeaService. + +// Container for enum describing possible errors from KeywordPlanIdeaService. +message KeywordPlanIdeaErrorEnum { + // Enum describing possible errors from KeywordPlanIdeaService. + enum KeywordPlanIdeaError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Error when crawling the input URL. + URL_CRAWL_ERROR = 2; + + // The input has an invalid value. + INVALID_VALUE = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/label_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/label_error.proto new file mode 100644 index 000000000..c43dbfbc2 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/label_error.proto @@ -0,0 +1,73 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "LabelErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing label errors. + +// Container for enum describing possible label errors. +message LabelErrorEnum { + // Enum describing possible label errors. + enum LabelError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // An inactive label cannot be applied. + CANNOT_APPLY_INACTIVE_LABEL = 2; + + // A label cannot be applied to a disabled ad group criterion. + CANNOT_APPLY_LABEL_TO_DISABLED_AD_GROUP_CRITERION = 3; + + // A label cannot be applied to a negative ad group criterion. + CANNOT_APPLY_LABEL_TO_NEGATIVE_AD_GROUP_CRITERION = 4; + + // Cannot apply more than 50 labels per resource. + EXCEEDED_LABEL_LIMIT_PER_TYPE = 5; + + // Labels from a manager account cannot be applied to campaign, ad group, + // ad group ad, or ad group criterion resources. + INVALID_RESOURCE_FOR_MANAGER_LABEL = 6; + + // Label names must be unique. + DUPLICATE_NAME = 7; + + // Label names cannot be empty. + INVALID_LABEL_NAME = 8; + + // Labels cannot be applied to a draft. + CANNOT_ATTACH_LABEL_TO_DRAFT = 9; + + // Labels not from a manager account cannot be applied to the customer + // resource. + CANNOT_ATTACH_NON_MANAGER_LABEL_TO_CUSTOMER = 10; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/language_code_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/language_code_error.proto new file mode 100644 index 000000000..943b6887b --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/language_code_error.proto @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "LanguageCodeErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing language code errors. + +// Container for enum describing language code errors. +message LanguageCodeErrorEnum { + // Enum describing language code errors. + enum LanguageCodeError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // The input language code is not recognized. + LANGUAGE_CODE_NOT_FOUND = 2; + + // The language is not allowed to use. + INVALID_LANGUAGE_CODE = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/list_operation_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/list_operation_error.proto new file mode 100644 index 000000000..2e7b21c00 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/list_operation_error.proto @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "ListOperationErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing list operation errors. + +// Container for enum describing possible list operation errors. +message ListOperationErrorEnum { + // Enum describing possible list operation errors. + enum ListOperationError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Field required in value is missing. + REQUIRED_FIELD_MISSING = 7; + + // Duplicate or identical value is sent in multiple list operations. + DUPLICATE_VALUES = 8; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/manager_link_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/manager_link_error.proto new file mode 100644 index 000000000..52ac50812 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/manager_link_error.proto @@ -0,0 +1,97 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "ManagerLinkErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing ManagerLink errors. + +// Container for enum describing possible ManagerLink errors. +message ManagerLinkErrorEnum { + // Enum describing possible ManagerLink errors. + enum ManagerLinkError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // The manager and client have incompatible account types. + ACCOUNTS_NOT_COMPATIBLE_FOR_LINKING = 2; + + // Client is already linked to too many managers. + TOO_MANY_MANAGERS = 3; + + // Manager has too many pending invitations. + TOO_MANY_INVITES = 4; + + // Client is already invited by this manager. + ALREADY_INVITED_BY_THIS_MANAGER = 5; + + // The client is already managed by this manager. + ALREADY_MANAGED_BY_THIS_MANAGER = 6; + + // Client is already managed in hierarchy. + ALREADY_MANAGED_IN_HIERARCHY = 7; + + // Manger and sub-manager to be linked have duplicate client. + DUPLICATE_CHILD_FOUND = 8; + + // Client has no active user that can access the client account. + CLIENT_HAS_NO_ADMIN_USER = 9; + + // Adding this link would exceed the maximum hierarchy depth. + MAX_DEPTH_EXCEEDED = 10; + + // Adding this link will create a cycle. + CYCLE_NOT_ALLOWED = 11; + + // Manager account has the maximum number of linked clients. + TOO_MANY_ACCOUNTS = 12; + + // Parent manager account has the maximum number of linked clients. + TOO_MANY_ACCOUNTS_AT_MANAGER = 13; + + // The account is not authorized owner. + NON_OWNER_USER_CANNOT_MODIFY_LINK = 14; + + // Your manager account is suspended, and you are no longer allowed to link + // to clients. + SUSPENDED_ACCOUNT_CANNOT_ADD_CLIENTS = 15; + + // You are not allowed to move a client to a manager that is not under your + // current hierarchy. + CLIENT_OUTSIDE_TREE = 16; + + // The changed status for mutate link is invalid. + INVALID_STATUS_CHANGE = 17; + + // The change for mutate link is invalid. + INVALID_CHANGE = 18; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/media_bundle_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/media_bundle_error.proto new file mode 100644 index 000000000..5e075b5b3 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/media_bundle_error.proto @@ -0,0 +1,110 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "MediaBundleErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing media bundle errors. + +// Container for enum describing possible media bundle errors. +message MediaBundleErrorEnum { + // Enum describing possible media bundle errors. + enum MediaBundleError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // There was a problem with the request. + BAD_REQUEST = 3; + + // HTML5 ads using DoubleClick Studio created ZIP files are not supported. + DOUBLECLICK_BUNDLE_NOT_ALLOWED = 4; + + // Cannot reference URL external to the media bundle. + EXTERNAL_URL_NOT_ALLOWED = 5; + + // Media bundle file is too large. + FILE_TOO_LARGE = 6; + + // ZIP file from Google Web Designer is not published. + GOOGLE_WEB_DESIGNER_ZIP_FILE_NOT_PUBLISHED = 7; + + // Input was invalid. + INVALID_INPUT = 8; + + // There was a problem with the media bundle. + INVALID_MEDIA_BUNDLE = 9; + + // There was a problem with one or more of the media bundle entries. + INVALID_MEDIA_BUNDLE_ENTRY = 10; + + // The media bundle contains a file with an unknown mime type + INVALID_MIME_TYPE = 11; + + // The media bundle contain an invalid asset path. + INVALID_PATH = 12; + + // HTML5 ad is trying to reference an asset not in .ZIP file + INVALID_URL_REFERENCE = 13; + + // Media data is too large. + MEDIA_DATA_TOO_LARGE = 14; + + // The media bundle contains no primary entry. + MISSING_PRIMARY_MEDIA_BUNDLE_ENTRY = 15; + + // There was an error on the server. + SERVER_ERROR = 16; + + // The image could not be stored. + STORAGE_ERROR = 17; + + // Media bundle created with the Swiffy tool is not allowed. + SWIFFY_BUNDLE_NOT_ALLOWED = 18; + + // The media bundle contains too many files. + TOO_MANY_FILES = 19; + + // The media bundle is not of legal dimensions. + UNEXPECTED_SIZE = 20; + + // Google Web Designer not created for "Google Ads" environment. + UNSUPPORTED_GOOGLE_WEB_DESIGNER_ENVIRONMENT = 21; + + // Unsupported HTML5 feature in HTML5 asset. + UNSUPPORTED_HTML5_FEATURE = 22; + + // URL in HTML5 entry is not ssl compliant. + URL_IN_MEDIA_BUNDLE_NOT_SSL_COMPLIANT = 23; + + // Custom exits not allowed in HTML5 entry. + CUSTOM_EXIT_NOT_ALLOWED = 24; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/media_file_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/media_file_error.proto new file mode 100644 index 000000000..da2952701 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/media_file_error.proto @@ -0,0 +1,113 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "MediaFileErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing media file errors. + +// Container for enum describing possible media file errors. +message MediaFileErrorEnum { + // Enum describing possible media file errors. + enum MediaFileError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Cannot create a standard icon type. + CANNOT_CREATE_STANDARD_ICON = 2; + + // May only select Standard Icons alone. + CANNOT_SELECT_STANDARD_ICON_WITH_OTHER_TYPES = 3; + + // Image contains both a media file ID and data. + CANNOT_SPECIFY_MEDIA_FILE_ID_AND_DATA = 4; + + // A media file with given type and reference ID already exists. + DUPLICATE_MEDIA = 5; + + // A required field was not specified or is an empty string. + EMPTY_FIELD = 6; + + // A media file may only be modified once per call. + RESOURCE_REFERENCED_IN_MULTIPLE_OPS = 7; + + // Field is not supported for the media sub type. + FIELD_NOT_SUPPORTED_FOR_MEDIA_SUB_TYPE = 8; + + // The media file ID is invalid. + INVALID_MEDIA_FILE_ID = 9; + + // The media subtype is invalid. + INVALID_MEDIA_SUB_TYPE = 10; + + // The media file type is invalid. + INVALID_MEDIA_FILE_TYPE = 11; + + // The mimetype is invalid. + INVALID_MIME_TYPE = 12; + + // The media reference ID is invalid. + INVALID_REFERENCE_ID = 13; + + // The YouTube video ID is invalid. + INVALID_YOU_TUBE_ID = 14; + + // Media file has failed transcoding + MEDIA_FILE_FAILED_TRANSCODING = 15; + + // Media file has not been transcoded. + MEDIA_NOT_TRANSCODED = 16; + + // The media type does not match the actual media file's type. + MEDIA_TYPE_DOES_NOT_MATCH_MEDIA_FILE_TYPE = 17; + + // None of the fields have been specified. + NO_FIELDS_SPECIFIED = 18; + + // One of reference ID or media file ID must be specified. + NULL_REFERENCE_ID_AND_MEDIA_ID = 19; + + // The string has too many characters. + TOO_LONG = 20; + + // The specified type is not supported. + UNSUPPORTED_TYPE = 21; + + // YouTube is unavailable for requesting video data. + YOU_TUBE_SERVICE_UNAVAILABLE = 22; + + // The YouTube video has a non positive duration. + YOU_TUBE_VIDEO_HAS_NON_POSITIVE_DURATION = 23; + + // The YouTube video ID is syntactically valid but the video was not found. + YOU_TUBE_VIDEO_NOT_FOUND = 24; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/media_upload_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/media_upload_error.proto new file mode 100644 index 000000000..0c7ecec78 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/media_upload_error.proto @@ -0,0 +1,149 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "MediaUploadErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing media uploading errors. + +// Container for enum describing possible media uploading errors. +message MediaUploadErrorEnum { + // Enum describing possible media uploading errors. + enum MediaUploadError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // The uploaded file is too big. + FILE_TOO_BIG = 2; + + // Image data is unparseable. + UNPARSEABLE_IMAGE = 3; + + // Animated images are not allowed. + ANIMATED_IMAGE_NOT_ALLOWED = 4; + + // The image or media bundle format is not allowed. + FORMAT_NOT_ALLOWED = 5; + + // Cannot reference URL external to the media bundle. + EXTERNAL_URL_NOT_ALLOWED = 6; + + // HTML5 ad is trying to reference an asset not in .ZIP file. + INVALID_URL_REFERENCE = 7; + + // The media bundle contains no primary entry. + MISSING_PRIMARY_MEDIA_BUNDLE_ENTRY = 8; + + // Animation has disallowed visual effects. + ANIMATED_VISUAL_EFFECT = 9; + + // Animation longer than the allowed 30 second limit. + ANIMATION_TOO_LONG = 10; + + // The aspect ratio of the image does not match the expected aspect ratios + // provided in the asset spec. + ASPECT_RATIO_NOT_ALLOWED = 11; + + // Audio files are not allowed in bundle. + AUDIO_NOT_ALLOWED_IN_MEDIA_BUNDLE = 12; + + // CMYK jpegs are not supported. + CMYK_JPEG_NOT_ALLOWED = 13; + + // Flash movies are not allowed. + FLASH_NOT_ALLOWED = 14; + + // The frame rate of the video is higher than the allowed 5fps. + FRAME_RATE_TOO_HIGH = 15; + + // ZIP file from Google Web Designer is not published. + GOOGLE_WEB_DESIGNER_ZIP_FILE_NOT_PUBLISHED = 16; + + // Image constraints are violated, but more details (like + // DIMENSIONS_NOT_ALLOWED or ASPECT_RATIO_NOT_ALLOWED) can not be provided. + // This happens when asset spec contains more than one constraint and + // criteria of different constraints are violated. + IMAGE_CONSTRAINTS_VIOLATED = 17; + + // Media bundle data is unrecognizable. + INVALID_MEDIA_BUNDLE = 18; + + // There was a problem with one or more of the media bundle entries. + INVALID_MEDIA_BUNDLE_ENTRY = 19; + + // The asset has an invalid mime type. + INVALID_MIME_TYPE = 20; + + // The media bundle contains an invalid asset path. + INVALID_PATH = 21; + + // Image has layout problem. + LAYOUT_PROBLEM = 22; + + // An asset had a URL reference that is malformed per RFC 1738 convention. + MALFORMED_URL = 23; + + // The uploaded media bundle format is not allowed. + MEDIA_BUNDLE_NOT_ALLOWED = 24; + + // The media bundle is not compatible with the asset spec product type. + // (E.g. Gmail, dynamic remarketing, etc.) + MEDIA_BUNDLE_NOT_COMPATIBLE_TO_PRODUCT_TYPE = 25; + + // A bundle being uploaded that is incompatible with multiple assets for + // different reasons. + MEDIA_BUNDLE_REJECTED_BY_MULTIPLE_ASSET_SPECS = 26; + + // The media bundle contains too many files. + TOO_MANY_FILES_IN_MEDIA_BUNDLE = 27; + + // Google Web Designer not created for "Google Ads" environment. + UNSUPPORTED_GOOGLE_WEB_DESIGNER_ENVIRONMENT = 28; + + // Unsupported HTML5 feature in HTML5 asset. + UNSUPPORTED_HTML5_FEATURE = 29; + + // URL in HTML5 entry is not SSL compliant. + URL_IN_MEDIA_BUNDLE_NOT_SSL_COMPLIANT = 30; + + // Video file name is longer than the 50 allowed characters. + VIDEO_FILE_NAME_TOO_LONG = 31; + + // Multiple videos with same name in a bundle. + VIDEO_MULTIPLE_FILES_WITH_SAME_NAME = 32; + + // Videos are not allowed in media bundle. + VIDEO_NOT_ALLOWED_IN_MEDIA_BUNDLE = 33; + + // This type of media cannot be uploaded through the Google Ads API. + CANNOT_UPLOAD_MEDIA_TYPE_THROUGH_API = 34; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/multiplier_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/multiplier_error.proto new file mode 100644 index 000000000..57cff6e9c --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/multiplier_error.proto @@ -0,0 +1,81 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "MultiplierErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing multiplier errors. + +// Container for enum describing possible multiplier errors. +message MultiplierErrorEnum { + // Enum describing possible multiplier errors. + enum MultiplierError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Multiplier value is too high + MULTIPLIER_TOO_HIGH = 2; + + // Multiplier value is too low + MULTIPLIER_TOO_LOW = 3; + + // Too many fractional digits + TOO_MANY_FRACTIONAL_DIGITS = 4; + + // A multiplier cannot be set for this bidding strategy + MULTIPLIER_NOT_ALLOWED_FOR_BIDDING_STRATEGY = 5; + + // A multiplier cannot be set when there is no base bid (e.g., content max + // cpc) + MULTIPLIER_NOT_ALLOWED_WHEN_BASE_BID_IS_MISSING = 6; + + // A bid multiplier must be specified + NO_MULTIPLIER_SPECIFIED = 7; + + // Multiplier causes bid to exceed daily budget + MULTIPLIER_CAUSES_BID_TO_EXCEED_DAILY_BUDGET = 8; + + // Multiplier causes bid to exceed monthly budget + MULTIPLIER_CAUSES_BID_TO_EXCEED_MONTHLY_BUDGET = 9; + + // Multiplier causes bid to exceed custom budget + MULTIPLIER_CAUSES_BID_TO_EXCEED_CUSTOM_BUDGET = 10; + + // Multiplier causes bid to exceed maximum allowed bid + MULTIPLIER_CAUSES_BID_TO_EXCEED_MAX_ALLOWED_BID = 11; + + // Multiplier causes bid to become less than the minimum bid allowed + BID_LESS_THAN_MIN_ALLOWED_BID_WITH_MULTIPLIER = 12; + + // Multiplier type (cpc vs. cpm) needs to match campaign's bidding strategy + MULTIPLIER_AND_BIDDING_STRATEGY_TYPE_MISMATCH = 13; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/mutate_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/mutate_error.proto new file mode 100644 index 000000000..710fb5a4e --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/mutate_error.proto @@ -0,0 +1,69 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "MutateErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing mutate errors. + +// Container for enum describing possible mutate errors. +message MutateErrorEnum { + // Enum describing possible mutate errors. + enum MutateError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Requested resource was not found. + RESOURCE_NOT_FOUND = 3; + + // Cannot mutate the same resource twice in one request. + ID_EXISTS_IN_MULTIPLE_MUTATES = 7; + + // The field's contents don't match another field that represents the same + // data. + INCONSISTENT_FIELD_VALUES = 8; + + // Mutates are not allowed for the requested resource. + MUTATE_NOT_ALLOWED = 9; + + // The resource isn't in Google Ads. It belongs to another ads system. + RESOURCE_NOT_IN_GOOGLE_ADS = 10; + + // The resource being created already exists. + RESOURCE_ALREADY_EXISTS = 11; + + // This resource cannot be used with "validate_only". + RESOURCE_DOES_NOT_SUPPORT_VALIDATE_ONLY = 12; + + // Attempt to write to read-only fields. + RESOURCE_READ_ONLY = 13; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/new_resource_creation_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/new_resource_creation_error.proto new file mode 100644 index 000000000..ae8b2dbe3 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/new_resource_creation_error.proto @@ -0,0 +1,54 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "NewResourceCreationErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing new resource creation errors. + +// Container for enum describing possible new resource creation errors. +message NewResourceCreationErrorEnum { + // Enum describing possible new resource creation errors. + enum NewResourceCreationError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Do not set the id field while creating new resources. + CANNOT_SET_ID_FOR_CREATE = 2; + + // Creating more than one resource with the same temp ID is not allowed. + DUPLICATE_TEMP_IDS = 3; + + // Parent resource with specified temp ID failed validation, so no + // validation will be done for this child resource. + TEMP_ID_RESOURCE_HAD_ERRORS = 4; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/not_allowlisted_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/not_allowlisted_error.proto new file mode 100644 index 000000000..21b85e482 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/not_allowlisted_error.proto @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "NotAllowlistedErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing not allowlisted errors. + +// Container for enum describing possible not allowlisted errors. +message NotAllowlistedErrorEnum { + // Enum describing possible not allowlisted errors. + enum NotAllowlistedError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Customer is not allowlisted for accessing this feature. + CUSTOMER_NOT_ALLOWLISTED_FOR_THIS_FEATURE = 2; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/not_empty_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/not_empty_error.proto new file mode 100644 index 000000000..db8fb58ff --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/not_empty_error.proto @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "NotEmptyErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing not empty errors. + +// Container for enum describing possible not empty errors. +message NotEmptyErrorEnum { + // Enum describing possible not empty errors. + enum NotEmptyError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Empty list. + EMPTY_LIST = 2; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/null_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/null_error.proto new file mode 100644 index 000000000..38fac307e --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/null_error.proto @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "NullErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing null errors. + +// Container for enum describing possible null errors. +message NullErrorEnum { + // Enum describing possible null errors. + enum NullError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Specified list/container must not contain any null elements + NULL_CONTENT = 2; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/offline_user_data_job_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/offline_user_data_job_error.proto new file mode 100644 index 000000000..60fe56be9 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/offline_user_data_job_error.proto @@ -0,0 +1,146 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "OfflineUserDataJobErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing offline user data job errors. + +// Container for enum describing possible offline user data job errors. +message OfflineUserDataJobErrorEnum { + // Enum describing possible request errors. + enum OfflineUserDataJobError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // The user list ID provided for the job is invalid. + INVALID_USER_LIST_ID = 3; + + // Type of the user list is not applicable for the job. + INVALID_USER_LIST_TYPE = 4; + + // Customer is not allowisted for using user ID in upload data. + NOT_ON_ALLOWLIST_FOR_USER_ID = 33; + + // Upload data is not compatible with the upload key type of the associated + // user list. + INCOMPATIBLE_UPLOAD_KEY_TYPE = 6; + + // The user identifier is missing valid data. + MISSING_USER_IDENTIFIER = 7; + + // The mobile ID is malformed. + INVALID_MOBILE_ID_FORMAT = 8; + + // Maximum number of user identifiers allowed per request is 100,000. + TOO_MANY_USER_IDENTIFIERS = 9; + + // Customer is not on the allow-list for store sales direct data. + NOT_ON_ALLOWLIST_FOR_STORE_SALES_DIRECT = 31; + + // Customer is not on the allow-list for unified store sales data. + NOT_ON_ALLOWLIST_FOR_UNIFIED_STORE_SALES = 32; + + // The partner ID in store sales direct metadata is invalid. + INVALID_PARTNER_ID = 11; + + // The data in user identifier should not be encoded. + INVALID_ENCODING = 12; + + // The country code is invalid. + INVALID_COUNTRY_CODE = 13; + + // Incompatible user identifier when using third_party_user_id for store + // sales direct first party data or not using third_party_user_id for store + // sales third party data. + INCOMPATIBLE_USER_IDENTIFIER = 14; + + // A transaction time in the future is not allowed. + FUTURE_TRANSACTION_TIME = 15; + + // The conversion_action specified in transaction_attributes is used to + // report conversions to a conversion action configured in Google Ads. This + // error indicates there is no such conversion action in the account. + INVALID_CONVERSION_ACTION = 16; + + // Mobile ID is not supported for store sales direct data. + MOBILE_ID_NOT_SUPPORTED = 17; + + // When a remove-all operation is provided, it has to be the first operation + // of the operation list. + INVALID_OPERATION_ORDER = 18; + + // Mixing creation and removal of offline data in the same job is not + // allowed. + CONFLICTING_OPERATION = 19; + + // The external update ID already exists. + EXTERNAL_UPDATE_ID_ALREADY_EXISTS = 21; + + // Once the upload job is started, new operations cannot be added. + JOB_ALREADY_STARTED = 22; + + // Remove operation is not allowed for store sales direct updates. + REMOVE_NOT_SUPPORTED = 23; + + // Remove-all is not supported for certain offline user data job types. + REMOVE_ALL_NOT_SUPPORTED = 24; + + // The SHA256 encoded value is malformed. + INVALID_SHA256_FORMAT = 25; + + // The custom key specified is not enabled for the unified store sales + // upload. + CUSTOM_KEY_DISABLED = 26; + + // The custom key specified is not predefined through the Google Ads UI. + CUSTOM_KEY_NOT_PREDEFINED = 27; + + // The custom key specified is not set in the upload. + CUSTOM_KEY_NOT_SET = 29; + + // The customer has not accepted the customer data terms in the conversion + // settings page. + CUSTOMER_NOT_ACCEPTED_CUSTOMER_DATA_TERMS = 30; + + // User attributes cannot be uploaded into a user list. + ATTRIBUTES_NOT_APPLICABLE_FOR_CUSTOMER_MATCH_USER_LIST = 34; + + // Lifetime value bucket must be a number from 1-10, except for remove + // operation where 0 will be accepted. + LIFETIME_VALUE_BUCKET_NOT_IN_RANGE = 35; + + // Identifiers not supported for Customer Match attributes. User attributes + // can only be provided with contact info (email, phone, address) user + // identifiers. + INCOMPATIBLE_USER_IDENTIFIER_FOR_ATTRIBUTES = 36; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/operation_access_denied_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/operation_access_denied_error.proto new file mode 100644 index 000000000..0d1169569 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/operation_access_denied_error.proto @@ -0,0 +1,74 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "OperationAccessDeniedErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing operation access denied errors. + +// Container for enum describing possible operation access denied errors. +message OperationAccessDeniedErrorEnum { + // Enum describing possible operation access denied errors. + enum OperationAccessDeniedError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Unauthorized invocation of a service's method (get, mutate, etc.) + ACTION_NOT_PERMITTED = 2; + + // Unauthorized CREATE operation in invoking a service's mutate method. + CREATE_OPERATION_NOT_PERMITTED = 3; + + // Unauthorized REMOVE operation in invoking a service's mutate method. + REMOVE_OPERATION_NOT_PERMITTED = 4; + + // Unauthorized UPDATE operation in invoking a service's mutate method. + UPDATE_OPERATION_NOT_PERMITTED = 5; + + // A mutate action is not allowed on this campaign, from this client. + MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT = 6; + + // This operation is not permitted on this campaign type + OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE = 7; + + // A CREATE operation may not set status to REMOVED. + CREATE_AS_REMOVED_NOT_PERMITTED = 8; + + // This operation is not allowed because the campaign or adgroup is removed. + OPERATION_NOT_PERMITTED_FOR_REMOVED_RESOURCE = 9; + + // This operation is not permitted on this ad group type. + OPERATION_NOT_PERMITTED_FOR_AD_GROUP_TYPE = 10; + + // The mutate is not allowed for this customer. + MUTATE_NOT_PERMITTED_FOR_CUSTOMER = 11; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/operator_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/operator_error.proto new file mode 100644 index 000000000..6e05ffeaf --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/operator_error.proto @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "OperatorErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing operator errors. + +// Container for enum describing possible operator errors. +message OperatorErrorEnum { + // Enum describing possible operator errors. + enum OperatorError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Operator not supported. + OPERATOR_NOT_SUPPORTED = 2; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/partial_failure_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/partial_failure_error.proto new file mode 100644 index 000000000..7d19c63bf --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/partial_failure_error.proto @@ -0,0 +1,48 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "PartialFailureErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing partial failure errors. + +// Container for enum describing possible partial failure errors. +message PartialFailureErrorEnum { + // Enum describing possible partial failure errors. + enum PartialFailureError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // The partial failure field was false in the request. + // This method requires this field be set to true. + PARTIAL_FAILURE_MODE_REQUIRED = 2; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/payments_account_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/payments_account_error.proto similarity index 79% rename from third_party/googleapis/google/ads/googleads/v3/errors/payments_account_error.proto rename to third_party/googleapis/google/ads/googleads/v6/errors/payments_account_error.proto index 9f8dc527b..29edec8b9 100644 --- a/third_party/googleapis/google/ads/googleads/v3/errors/payments_account_error.proto +++ b/third_party/googleapis/google/ads/googleads/v6/errors/payments_account_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -14,18 +14,18 @@ syntax = "proto3"; -package google.ads.googleads.v3.errors; +package google.ads.googleads.v6.errors; import "google/api/annotations.proto"; -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; option java_multiple_files = true; option java_outer_classname = "PaymentsAccountErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; +option java_package = "com.google.ads.googleads.v6.errors"; option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; // Proto file describing payments account service errors. diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/policy_finding_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/policy_finding_error.proto new file mode 100644 index 000000000..4b679d58b --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/policy_finding_error.proto @@ -0,0 +1,51 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "PolicyFindingErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing policy finding errors. + +// Container for enum describing possible policy finding errors. +message PolicyFindingErrorEnum { + // Enum describing possible policy finding errors. + enum PolicyFindingError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // The resource has been disapproved since the policy summary includes + // policy topics of type PROHIBITED. + POLICY_FINDING = 2; + + // The given policy topic does not exist. + POLICY_TOPIC_NOT_FOUND = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/policy_validation_parameter_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/policy_validation_parameter_error.proto new file mode 100644 index 000000000..6d0a28ae7 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/policy_validation_parameter_error.proto @@ -0,0 +1,54 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "PolicyValidationParameterErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing policy validation parameter errors. + +// Container for enum describing possible policy validation parameter errors. +message PolicyValidationParameterErrorEnum { + // Enum describing possible policy validation parameter errors. + enum PolicyValidationParameterError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Ignorable policy topics are not supported for the ad type. + UNSUPPORTED_AD_TYPE_FOR_IGNORABLE_POLICY_TOPICS = 2; + + // Exempt policy violation keys are not supported for the ad type. + UNSUPPORTED_AD_TYPE_FOR_EXEMPT_POLICY_VIOLATION_KEYS = 3; + + // Cannot set ignorable policy topics and exempt policy violation keys in + // the same policy violation parameter. + CANNOT_SET_BOTH_IGNORABLE_POLICY_TOPICS_AND_EXEMPT_POLICY_VIOLATION_KEYS = 4; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/policy_violation_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/policy_violation_error.proto new file mode 100644 index 000000000..372ce7b01 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/policy_violation_error.proto @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "PolicyViolationErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing policy violation errors. + +// Container for enum describing possible policy violation errors. +message PolicyViolationErrorEnum { + // Enum describing possible policy violation errors. + enum PolicyViolationError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // A policy was violated. See PolicyViolationDetails for more detail. + POLICY_ERROR = 2; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/query_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/query_error.proto new file mode 100644 index 000000000..6618c1ee8 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/query_error.proto @@ -0,0 +1,222 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "QueryErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing query errors. + +// Container for enum describing possible query errors. +message QueryErrorEnum { + // Enum describing possible query errors. + enum QueryError { + // Name unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Returned if all other query error reasons are not applicable. + QUERY_ERROR = 50; + + // A condition used in the query references an invalid enum constant. + BAD_ENUM_CONSTANT = 18; + + // Query contains an invalid escape sequence. + BAD_ESCAPE_SEQUENCE = 7; + + // Field name is invalid. + BAD_FIELD_NAME = 12; + + // Limit value is invalid (i.e. not a number) + BAD_LIMIT_VALUE = 15; + + // Encountered number can not be parsed. + BAD_NUMBER = 5; + + // Invalid operator encountered. + BAD_OPERATOR = 3; + + // Parameter unknown or not supported. + BAD_PARAMETER_NAME = 61; + + // Parameter have invalid value. + BAD_PARAMETER_VALUE = 62; + + // Invalid resource type was specified in the FROM clause. + BAD_RESOURCE_TYPE_IN_FROM_CLAUSE = 45; + + // Non-ASCII symbol encountered outside of strings. + BAD_SYMBOL = 2; + + // Value is invalid. + BAD_VALUE = 4; + + // Date filters fail to restrict date to a range smaller than 31 days. + // Applicable if the query is segmented by date. + DATE_RANGE_TOO_WIDE = 36; + + // Filters on date/week/month/quarter have a start date after + // end date. + DATE_RANGE_TOO_NARROW = 60; + + // Expected AND between values with BETWEEN operator. + EXPECTED_AND = 30; + + // Expecting ORDER BY to have BY. + EXPECTED_BY = 14; + + // There was no dimension field selected. + EXPECTED_DIMENSION_FIELD_IN_SELECT_CLAUSE = 37; + + // Missing filters on date related fields. + EXPECTED_FILTERS_ON_DATE_RANGE = 55; + + // Missing FROM clause. + EXPECTED_FROM = 44; + + // The operator used in the conditions requires the value to be a list. + EXPECTED_LIST = 41; + + // Fields used in WHERE or ORDER BY clauses are missing from the SELECT + // clause. + EXPECTED_REFERENCED_FIELD_IN_SELECT_CLAUSE = 16; + + // SELECT is missing at the beginning of query. + EXPECTED_SELECT = 13; + + // A list was passed as a value to a condition whose operator expects a + // single value. + EXPECTED_SINGLE_VALUE = 42; + + // Missing one or both values with BETWEEN operator. + EXPECTED_VALUE_WITH_BETWEEN_OPERATOR = 29; + + // Invalid date format. Expected 'YYYY-MM-DD'. + INVALID_DATE_FORMAT = 38; + + // Value passed was not a string when it should have been. I.e., it was a + // number or unquoted literal. + INVALID_STRING_VALUE = 57; + + // A String value passed to the BETWEEN operator does not parse as a date. + INVALID_VALUE_WITH_BETWEEN_OPERATOR = 26; + + // The value passed to the DURING operator is not a Date range literal + INVALID_VALUE_WITH_DURING_OPERATOR = 22; + + // A non-string value was passed to the LIKE operator. + INVALID_VALUE_WITH_LIKE_OPERATOR = 56; + + // An operator was provided that is inapplicable to the field being + // filtered. + OPERATOR_FIELD_MISMATCH = 35; + + // A Condition was found with an empty list. + PROHIBITED_EMPTY_LIST_IN_CONDITION = 28; + + // A condition used in the query references an unsupported enum constant. + PROHIBITED_ENUM_CONSTANT = 54; + + // Fields that are not allowed to be selected together were included in + // the SELECT clause. + PROHIBITED_FIELD_COMBINATION_IN_SELECT_CLAUSE = 31; + + // A field that is not orderable was included in the ORDER BY clause. + PROHIBITED_FIELD_IN_ORDER_BY_CLAUSE = 40; + + // A field that is not selectable was included in the SELECT clause. + PROHIBITED_FIELD_IN_SELECT_CLAUSE = 23; + + // A field that is not filterable was included in the WHERE clause. + PROHIBITED_FIELD_IN_WHERE_CLAUSE = 24; + + // Resource type specified in the FROM clause is not supported by this + // service. + PROHIBITED_RESOURCE_TYPE_IN_FROM_CLAUSE = 43; + + // A field that comes from an incompatible resource was included in the + // SELECT clause. + PROHIBITED_RESOURCE_TYPE_IN_SELECT_CLAUSE = 48; + + // A field that comes from an incompatible resource was included in the + // WHERE clause. + PROHIBITED_RESOURCE_TYPE_IN_WHERE_CLAUSE = 58; + + // A metric incompatible with the main resource or other selected + // segmenting resources was included in the SELECT or WHERE clause. + PROHIBITED_METRIC_IN_SELECT_OR_WHERE_CLAUSE = 49; + + // A segment incompatible with the main resource or other selected + // segmenting resources was included in the SELECT or WHERE clause. + PROHIBITED_SEGMENT_IN_SELECT_OR_WHERE_CLAUSE = 51; + + // A segment in the SELECT clause is incompatible with a metric in the + // SELECT or WHERE clause. + PROHIBITED_SEGMENT_WITH_METRIC_IN_SELECT_OR_WHERE_CLAUSE = 53; + + // The value passed to the limit clause is too low. + LIMIT_VALUE_TOO_LOW = 25; + + // Query has a string containing a newline character. + PROHIBITED_NEWLINE_IN_STRING = 8; + + // List contains values of different types. + PROHIBITED_VALUE_COMBINATION_IN_LIST = 10; + + // The values passed to the BETWEEN operator are not of the same type. + PROHIBITED_VALUE_COMBINATION_WITH_BETWEEN_OPERATOR = 21; + + // Query contains unterminated string. + STRING_NOT_TERMINATED = 6; + + // Too many segments are specified in SELECT clause. + TOO_MANY_SEGMENTS = 34; + + // Query is incomplete and cannot be parsed. + UNEXPECTED_END_OF_QUERY = 9; + + // FROM clause cannot be specified in this query. + UNEXPECTED_FROM_CLAUSE = 47; + + // Query contains one or more unrecognized fields. + UNRECOGNIZED_FIELD = 32; + + // Query has an unexpected extra part. + UNEXPECTED_INPUT = 11; + + // Metrics cannot be requested for a manager account. To retrieve metrics, + // issue separate requests against each client account under the manager + // account. + REQUESTED_METRICS_FOR_MANAGER = 59; + + // The number of values (right-hand-side operands) in a filter exceeds the + // limit. + FILTER_HAS_TOO_MANY_VALUES = 63; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/quota_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/quota_error.proto new file mode 100644 index 000000000..baeb486df --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/quota_error.proto @@ -0,0 +1,53 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "QuotaErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing quota errors. + +// Container for enum describing possible quota errors. +message QuotaErrorEnum { + // Enum describing possible quota errors. + enum QuotaError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Too many requests. + RESOURCE_EXHAUSTED = 2; + + // Access is prohibited. + ACCESS_PROHIBITED = 3; + + // Too many requests in a short amount of time. + RESOURCE_TEMPORARILY_EXHAUSTED = 4; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/range_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/range_error.proto new file mode 100644 index 000000000..7df5ddd03 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/range_error.proto @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "RangeErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing range errors. + +// Container for enum describing possible range errors. +message RangeErrorEnum { + // Enum describing possible range errors. + enum RangeError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Too low. + TOO_LOW = 2; + + // Too high. + TOO_HIGH = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/reach_plan_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/reach_plan_error.proto new file mode 100644 index 000000000..28827d83c --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/reach_plan_error.proto @@ -0,0 +1,48 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "ReachPlanErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing errors generated from ReachPlanService. + +// Container for enum describing possible errors returned from +// the ReachPlanService. +message ReachPlanErrorEnum { + // Enum describing possible errors from ReachPlanService. + enum ReachPlanError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Not forecastable due to missing rate card data. + NOT_FORECASTABLE_MISSING_RATE = 2; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/recommendation_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/recommendation_error.proto new file mode 100644 index 000000000..928a3e711 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/recommendation_error.proto @@ -0,0 +1,90 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "RecommendationErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing errors from applying a recommendation. + +// Container for enum describing possible errors from applying a recommendation. +message RecommendationErrorEnum { + // Enum describing possible errors from applying a recommendation. + enum RecommendationError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // The specified budget amount is too low e.g. lower than minimum currency + // unit or lower than ad group minimum cost-per-click. + BUDGET_AMOUNT_TOO_SMALL = 2; + + // The specified budget amount is too large. + BUDGET_AMOUNT_TOO_LARGE = 3; + + // The specified budget amount is not a valid amount. e.g. not a multiple + // of minimum currency unit. + INVALID_BUDGET_AMOUNT = 4; + + // The specified keyword or ad violates ad policy. + POLICY_ERROR = 5; + + // The specified bid amount is not valid. e.g. too many fractional digits, + // or negative amount. + INVALID_BID_AMOUNT = 6; + + // The number of keywords in ad group have reached the maximum allowed. + ADGROUP_KEYWORD_LIMIT = 7; + + // The recommendation requested to apply has already been applied. + RECOMMENDATION_ALREADY_APPLIED = 8; + + // The recommendation requested to apply has been invalidated. + RECOMMENDATION_INVALIDATED = 9; + + // The number of operations in a single request exceeds the maximum allowed. + TOO_MANY_OPERATIONS = 10; + + // There are no operations in the request. + NO_OPERATIONS = 11; + + // Operations with multiple recommendation types are not supported when + // partial failure mode is not enabled. + DIFFERENT_TYPES_NOT_SUPPORTED = 12; + + // Request contains multiple operations with the same resource_name. + DUPLICATE_RESOURCE_NAME = 13; + + // The recommendation requested to dismiss has already been dismissed. + RECOMMENDATION_ALREADY_DISMISSED = 14; + + // The recommendation apply request was malformed and invalid. + INVALID_APPLY_REQUEST = 15; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/region_code_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/region_code_error.proto new file mode 100644 index 000000000..e441e9411 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/region_code_error.proto @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "RegionCodeErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing region code errors. + +// Container for enum describing possible region code errors. +message RegionCodeErrorEnum { + // Enum describing possible region code errors. + enum RegionCodeError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Invalid region code. + INVALID_REGION_CODE = 2; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/request_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/request_error.proto new file mode 100644 index 000000000..af0ca6666 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/request_error.proto @@ -0,0 +1,119 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "RequestErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing request errors. + +// Container for enum describing possible request errors. +message RequestErrorEnum { + // Enum describing possible request errors. + enum RequestError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Resource name is required for this request. + RESOURCE_NAME_MISSING = 3; + + // Resource name provided is malformed. + RESOURCE_NAME_MALFORMED = 4; + + // Resource name provided is malformed. + BAD_RESOURCE_ID = 17; + + // Customer ID is invalid. + INVALID_CUSTOMER_ID = 16; + + // Mutate operation should have either create, update, or remove specified. + OPERATION_REQUIRED = 5; + + // Requested resource not found. + RESOURCE_NOT_FOUND = 6; + + // Next page token specified in user request is invalid. + INVALID_PAGE_TOKEN = 7; + + // Next page token specified in user request has expired. + EXPIRED_PAGE_TOKEN = 8; + + // Page size specified in user request is invalid. + INVALID_PAGE_SIZE = 22; + + // Required field is missing. + REQUIRED_FIELD_MISSING = 9; + + // The field cannot be modified because it's immutable. It's also possible + // that the field can be modified using 'create' operation but not 'update'. + IMMUTABLE_FIELD = 11; + + // Received too many entries in request. + TOO_MANY_MUTATE_OPERATIONS = 13; + + // Request cannot be executed by a manager account. + CANNOT_BE_EXECUTED_BY_MANAGER_ACCOUNT = 14; + + // Mutate request was attempting to modify a readonly field. + // For instance, Budget fields can be requested for Ad Group, + // but are read-only for adGroups:mutate. + CANNOT_MODIFY_FOREIGN_FIELD = 15; + + // Enum value is not permitted. + INVALID_ENUM_VALUE = 18; + + // The developer-token parameter is required for all requests. + DEVELOPER_TOKEN_PARAMETER_MISSING = 19; + + // The login-customer-id parameter is required for this request. + LOGIN_CUSTOMER_ID_PARAMETER_MISSING = 20; + + // page_token is set in the validate only request + VALIDATE_ONLY_REQUEST_HAS_PAGE_TOKEN = 21; + + // return_summary_row cannot be enabled if request did not select any + // metrics field. + CANNOT_RETURN_SUMMARY_ROW_FOR_REQUEST_WITHOUT_METRICS = 29; + + // return_summary_row should not be enabled for validate only requests. + CANNOT_RETURN_SUMMARY_ROW_FOR_VALIDATE_ONLY_REQUESTS = 30; + + // return_summary_row parameter value should be the same between requests + // with page_token field set and their original request. + INCONSISTENT_RETURN_SUMMARY_ROW_VALUE = 31; + + // The total results count cannot be returned if it was not requested in the + // original request. + TOTAL_RESULTS_COUNT_NOT_ORIGINALLY_REQUESTED = 32; + + // Deadline specified by the client was too short. + RPC_DEADLINE_TOO_SHORT = 33; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/resource_access_denied_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/resource_access_denied_error.proto new file mode 100644 index 000000000..edf0ce748 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/resource_access_denied_error.proto @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "ResourceAccessDeniedErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing resource access denied errors. + +// Container for enum describing possible resource access denied errors. +message ResourceAccessDeniedErrorEnum { + // Enum describing possible resource access denied errors. + enum ResourceAccessDeniedError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // User did not have write access. + WRITE_ACCESS_DENIED = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/resource_count_limit_exceeded_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/resource_count_limit_exceeded_error.proto new file mode 100644 index 000000000..f8e61dfe8 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/resource_count_limit_exceeded_error.proto @@ -0,0 +1,93 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "ResourceCountLimitExceededErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing resource count limit exceeded errors. + +// Container for enum describing possible resource count limit exceeded errors. +message ResourceCountLimitExceededErrorEnum { + // Enum describing possible resource count limit exceeded errors. + enum ResourceCountLimitExceededError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Indicates that this request would exceed the number of allowed resources + // for the Google Ads account. The exact resource type and limit being + // checked can be inferred from accountLimitType. + ACCOUNT_LIMIT = 2; + + // Indicates that this request would exceed the number of allowed resources + // in a Campaign. The exact resource type and limit being checked can be + // inferred from accountLimitType, and the numeric id of the + // Campaign involved is given by enclosingId. + CAMPAIGN_LIMIT = 3; + + // Indicates that this request would exceed the number of allowed resources + // in an ad group. The exact resource type and limit being checked can be + // inferred from accountLimitType, and the numeric id of the + // ad group involved is given by enclosingId. + ADGROUP_LIMIT = 4; + + // Indicates that this request would exceed the number of allowed resources + // in an ad group ad. The exact resource type and limit being checked can + // be inferred from accountLimitType, and the enclosingId + // contains the ad group id followed by the ad id, separated by a single + // comma (,). + AD_GROUP_AD_LIMIT = 5; + + // Indicates that this request would exceed the number of allowed resources + // in an ad group criterion. The exact resource type and limit being checked + // can be inferred from accountLimitType, and the + // enclosingId contains the ad group id followed by the + // criterion id, separated by a single comma (,). + AD_GROUP_CRITERION_LIMIT = 6; + + // Indicates that this request would exceed the number of allowed resources + // in this shared set. The exact resource type and limit being checked can + // be inferred from accountLimitType, and the numeric id of the + // shared set involved is given by enclosingId. + SHARED_SET_LIMIT = 7; + + // Exceeds a limit related to a matching function. + MATCHING_FUNCTION_LIMIT = 8; + + // The response for this request would exceed the maximum number of rows + // that can be returned. + RESPONSE_ROW_LIMIT_EXCEEDED = 9; + + // This request would exceed a limit on the number of allowed resources. + // The details of which type of limit was exceeded will eventually be + // returned in ErrorDetails. + RESOURCE_LIMIT = 10; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/setting_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/setting_error.proto new file mode 100644 index 000000000..47105d741 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/setting_error.proto @@ -0,0 +1,85 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "SettingErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing setting errors. + +// Container for enum describing possible setting errors. +message SettingErrorEnum { + // Enum describing possible setting errors. + enum SettingError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // The campaign setting is not available for this Google Ads account. + SETTING_TYPE_IS_NOT_AVAILABLE = 3; + + // The setting is not compatible with the campaign. + SETTING_TYPE_IS_NOT_COMPATIBLE_WITH_CAMPAIGN = 4; + + // The supplied TargetingSetting contains an invalid CriterionTypeGroup. See + // CriterionTypeGroup documentation for CriterionTypeGroups allowed + // in Campaign or AdGroup TargetingSettings. + TARGETING_SETTING_CONTAINS_INVALID_CRITERION_TYPE_GROUP = 5; + + // TargetingSetting must not explicitly + // set any of the Demographic CriterionTypeGroups (AGE_RANGE, GENDER, + // PARENT, INCOME_RANGE) to false (it's okay to not set them at all, in + // which case the system will set them to true automatically). + TARGETING_SETTING_DEMOGRAPHIC_CRITERION_TYPE_GROUPS_MUST_BE_SET_TO_TARGET_ALL = 6; + + // TargetingSetting cannot change any of + // the Demographic CriterionTypeGroups (AGE_RANGE, GENDER, PARENT, + // INCOME_RANGE) from true to false. + TARGETING_SETTING_CANNOT_CHANGE_TARGET_ALL_TO_FALSE_FOR_DEMOGRAPHIC_CRITERION_TYPE_GROUP = 7; + + // At least one feed id should be present. + DYNAMIC_SEARCH_ADS_SETTING_AT_LEAST_ONE_FEED_ID_MUST_BE_PRESENT = 8; + + // The supplied DynamicSearchAdsSetting contains an invalid domain name. + DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_INVALID_DOMAIN_NAME = 9; + + // The supplied DynamicSearchAdsSetting contains a subdomain name. + DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_SUBDOMAIN_NAME = 10; + + // The supplied DynamicSearchAdsSetting contains an invalid language code. + DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_INVALID_LANGUAGE_CODE = 11; + + // TargetingSettings in search campaigns should not have + // CriterionTypeGroup.PLACEMENT set to targetAll. + TARGET_ALL_IS_NOT_ALLOWED_FOR_PLACEMENT_IN_SEARCH_CAMPAIGN = 12; + + // The setting value is not compatible with the campaign type. + SETTING_VALUE_NOT_COMPATIBLE_WITH_CAMPAIGN = 20; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/shared_criterion_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/shared_criterion_error.proto new file mode 100644 index 000000000..29cca9a55 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/shared_criterion_error.proto @@ -0,0 +1,47 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "SharedCriterionErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing shared criterion errors. + +// Container for enum describing possible shared criterion errors. +message SharedCriterionErrorEnum { + // Enum describing possible shared criterion errors. + enum SharedCriterionError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // The criterion is not appropriate for the shared set type. + CRITERION_TYPE_NOT_ALLOWED_FOR_SHARED_SET_TYPE = 2; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/shared_set_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/shared_set_error.proto new file mode 100644 index 000000000..5a2f42d8a --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/shared_set_error.proto @@ -0,0 +1,56 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "SharedSetErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing shared set errors. + +// Container for enum describing possible shared set errors. +message SharedSetErrorEnum { + // Enum describing possible shared set errors. + enum SharedSetError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // The customer cannot create this type of shared set. + CUSTOMER_CANNOT_CREATE_SHARED_SET_OF_THIS_TYPE = 2; + + // A shared set with this name already exists. + DUPLICATE_NAME = 3; + + // Removed shared sets cannot be mutated. + SHARED_SET_REMOVED = 4; + + // The shared set cannot be removed because it is in use. + SHARED_SET_IN_USE = 5; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/size_limit_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/size_limit_error.proto new file mode 100644 index 000000000..c4a9de093 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/size_limit_error.proto @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "SizeLimitErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing size limit errors. + +// Container for enum describing possible size limit errors. +message SizeLimitErrorEnum { + // Enum describing possible size limit errors. + enum SizeLimitError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // The number of entries in the request exceeds the system limit. + REQUEST_SIZE_LIMIT_EXCEEDED = 2; + + // The number of entries in the response exceeds the system limit. + RESPONSE_SIZE_LIMIT_EXCEEDED = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/string_format_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/string_format_error.proto new file mode 100644 index 000000000..554750082 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/string_format_error.proto @@ -0,0 +1,50 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "StringFormatErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing string format errors. + +// Container for enum describing possible string format errors. +message StringFormatErrorEnum { + // Enum describing possible string format errors. + enum StringFormatError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // The input string value contains disallowed characters. + ILLEGAL_CHARS = 2; + + // The input string value is invalid for the associated field. + INVALID_FORMAT = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/string_length_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/string_length_error.proto new file mode 100644 index 000000000..20b4aa764 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/string_length_error.proto @@ -0,0 +1,54 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "StringLengthErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing string length errors. + +// Container for enum describing possible string length errors. +message StringLengthErrorEnum { + // Enum describing possible string length errors. + enum StringLengthError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // The specified field should have a least one non-whitespace character in + // it. + EMPTY = 4; + + // Too short. + TOO_SHORT = 2; + + // Too long. + TOO_LONG = 3; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/third_party_app_analytics_link_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/third_party_app_analytics_link_error.proto new file mode 100644 index 000000000..e7e302687 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/third_party_app_analytics_link_error.proto @@ -0,0 +1,57 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "ThirdPartyAppAnalyticsLinkErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing ThirdPartyAppAnalyticsLink errors. + +// Container for enum describing possible third party app analytics link errors. +message ThirdPartyAppAnalyticsLinkErrorEnum { + // Enum describing possible third party app analytics link errors. + enum ThirdPartyAppAnalyticsLinkError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // The provided analytics provider ID is invalid. + INVALID_ANALYTICS_PROVIDER_ID = 2; + + // The provided mobile app ID is invalid. + INVALID_MOBILE_APP_ID = 3; + + // The mobile app corresponding to the provided app ID is not + // active/enabled. + MOBILE_APP_IS_NOT_ENABLED = 4; + + // Regenerating shareable link ID is only allowed on active links + CANNOT_REGENERATE_SHAREABLE_LINK_ID_FOR_REMOVED_LINK = 5; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/time_zone_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/time_zone_error.proto similarity index 78% rename from third_party/googleapis/google/ads/googleads/v3/errors/time_zone_error.proto rename to third_party/googleapis/google/ads/googleads/v6/errors/time_zone_error.proto index ea82b4c6b..3ded1767f 100644 --- a/third_party/googleapis/google/ads/googleads/v3/errors/time_zone_error.proto +++ b/third_party/googleapis/google/ads/googleads/v6/errors/time_zone_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -14,18 +14,18 @@ syntax = "proto3"; -package google.ads.googleads.v3.errors; +package google.ads.googleads.v6.errors; import "google/api/annotations.proto"; -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; option java_multiple_files = true; option java_outer_classname = "TimeZoneErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; +option java_package = "com.google.ads.googleads.v6.errors"; option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; // Proto file describing time zone errors. diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/url_field_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/url_field_error.proto new file mode 100644 index 000000000..940db82b0 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/url_field_error.proto @@ -0,0 +1,215 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "UrlFieldErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing url field errors. + +// Container for enum describing possible url field errors. +message UrlFieldErrorEnum { + // Enum describing possible url field errors. + enum UrlFieldError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // The tracking url template is invalid. + INVALID_TRACKING_URL_TEMPLATE = 2; + + // The tracking url template contains invalid tag. + INVALID_TAG_IN_TRACKING_URL_TEMPLATE = 3; + + // The tracking url template must contain at least one tag (e.g. {lpurl}), + // This applies only to tracking url template associated with website ads or + // product ads. + MISSING_TRACKING_URL_TEMPLATE_TAG = 4; + + // The tracking url template must start with a valid protocol (or lpurl + // tag). + MISSING_PROTOCOL_IN_TRACKING_URL_TEMPLATE = 5; + + // The tracking url template starts with an invalid protocol. + INVALID_PROTOCOL_IN_TRACKING_URL_TEMPLATE = 6; + + // The tracking url template contains illegal characters. + MALFORMED_TRACKING_URL_TEMPLATE = 7; + + // The tracking url template must contain a host name (or lpurl tag). + MISSING_HOST_IN_TRACKING_URL_TEMPLATE = 8; + + // The tracking url template has an invalid or missing top level domain + // extension. + INVALID_TLD_IN_TRACKING_URL_TEMPLATE = 9; + + // The tracking url template contains nested occurrences of the same + // conditional tag (i.e. {ifmobile:{ifmobile:x}}). + REDUNDANT_NESTED_TRACKING_URL_TEMPLATE_TAG = 10; + + // The final url is invalid. + INVALID_FINAL_URL = 11; + + // The final url contains invalid tag. + INVALID_TAG_IN_FINAL_URL = 12; + + // The final url contains nested occurrences of the same conditional tag + // (i.e. {ifmobile:{ifmobile:x}}). + REDUNDANT_NESTED_FINAL_URL_TAG = 13; + + // The final url must start with a valid protocol. + MISSING_PROTOCOL_IN_FINAL_URL = 14; + + // The final url starts with an invalid protocol. + INVALID_PROTOCOL_IN_FINAL_URL = 15; + + // The final url contains illegal characters. + MALFORMED_FINAL_URL = 16; + + // The final url must contain a host name. + MISSING_HOST_IN_FINAL_URL = 17; + + // The tracking url template has an invalid or missing top level domain + // extension. + INVALID_TLD_IN_FINAL_URL = 18; + + // The final mobile url is invalid. + INVALID_FINAL_MOBILE_URL = 19; + + // The final mobile url contains invalid tag. + INVALID_TAG_IN_FINAL_MOBILE_URL = 20; + + // The final mobile url contains nested occurrences of the same conditional + // tag (i.e. {ifmobile:{ifmobile:x}}). + REDUNDANT_NESTED_FINAL_MOBILE_URL_TAG = 21; + + // The final mobile url must start with a valid protocol. + MISSING_PROTOCOL_IN_FINAL_MOBILE_URL = 22; + + // The final mobile url starts with an invalid protocol. + INVALID_PROTOCOL_IN_FINAL_MOBILE_URL = 23; + + // The final mobile url contains illegal characters. + MALFORMED_FINAL_MOBILE_URL = 24; + + // The final mobile url must contain a host name. + MISSING_HOST_IN_FINAL_MOBILE_URL = 25; + + // The tracking url template has an invalid or missing top level domain + // extension. + INVALID_TLD_IN_FINAL_MOBILE_URL = 26; + + // The final app url is invalid. + INVALID_FINAL_APP_URL = 27; + + // The final app url contains invalid tag. + INVALID_TAG_IN_FINAL_APP_URL = 28; + + // The final app url contains nested occurrences of the same conditional tag + // (i.e. {ifmobile:{ifmobile:x}}). + REDUNDANT_NESTED_FINAL_APP_URL_TAG = 29; + + // More than one app url found for the same OS type. + MULTIPLE_APP_URLS_FOR_OSTYPE = 30; + + // The OS type given for an app url is not valid. + INVALID_OSTYPE = 31; + + // The protocol given for an app url is not valid. (E.g. "android-app://") + INVALID_PROTOCOL_FOR_APP_URL = 32; + + // The package id (app id) given for an app url is not valid. + INVALID_PACKAGE_ID_FOR_APP_URL = 33; + + // The number of url custom parameters for an resource exceeds the maximum + // limit allowed. + URL_CUSTOM_PARAMETERS_COUNT_EXCEEDS_LIMIT = 34; + + // An invalid character appears in the parameter key. + INVALID_CHARACTERS_IN_URL_CUSTOM_PARAMETER_KEY = 39; + + // An invalid character appears in the parameter value. + INVALID_CHARACTERS_IN_URL_CUSTOM_PARAMETER_VALUE = 40; + + // The url custom parameter value fails url tag validation. + INVALID_TAG_IN_URL_CUSTOM_PARAMETER_VALUE = 41; + + // The custom parameter contains nested occurrences of the same conditional + // tag (i.e. {ifmobile:{ifmobile:x}}). + REDUNDANT_NESTED_URL_CUSTOM_PARAMETER_TAG = 42; + + // The protocol (http:// or https://) is missing. + MISSING_PROTOCOL = 43; + + // Unsupported protocol in URL. Only http and https are supported. + INVALID_PROTOCOL = 52; + + // The url is invalid. + INVALID_URL = 44; + + // Destination Url is deprecated. + DESTINATION_URL_DEPRECATED = 45; + + // The url contains invalid tag. + INVALID_TAG_IN_URL = 46; + + // The url must contain at least one tag (e.g. {lpurl}), This applies only + // to urls associated with website ads or product ads. + MISSING_URL_TAG = 47; + + // Duplicate url id. + DUPLICATE_URL_ID = 48; + + // Invalid url id. + INVALID_URL_ID = 49; + + // The final url suffix cannot begin with '?' or '&' characters and must be + // a valid query string. + FINAL_URL_SUFFIX_MALFORMED = 50; + + // The final url suffix cannot contain {lpurl} related or {ignore} tags. + INVALID_TAG_IN_FINAL_URL_SUFFIX = 51; + + // The top level domain is invalid, e.g, not a public top level domain + // listed in publicsuffix.org. + INVALID_TOP_LEVEL_DOMAIN = 53; + + // Malformed top level domain in URL. + MALFORMED_TOP_LEVEL_DOMAIN = 54; + + // Malformed URL. + MALFORMED_URL = 55; + + // No host found in URL. + MISSING_HOST = 56; + + // Custom parameter value cannot be null. + NULL_CUSTOM_PARAMETER_VALUE = 57; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v3/errors/user_data_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/user_data_error.proto similarity index 81% rename from third_party/googleapis/google/ads/googleads/v3/errors/user_data_error.proto rename to third_party/googleapis/google/ads/googleads/v6/errors/user_data_error.proto index 2cb91ea94..c88a93451 100644 --- a/third_party/googleapis/google/ads/googleads/v3/errors/user_data_error.proto +++ b/third_party/googleapis/google/ads/googleads/v6/errors/user_data_error.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -14,18 +14,18 @@ syntax = "proto3"; -package google.ads.googleads.v3.errors; +package google.ads.googleads.v6.errors; import "google/api/annotations.proto"; -option csharp_namespace = "Google.Ads.GoogleAds.V3.Errors"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/errors;errors"; +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; option java_multiple_files = true; option java_outer_classname = "UserDataErrorProto"; -option java_package = "com.google.ads.googleads.v3.errors"; +option java_package = "com.google.ads.googleads.v6.errors"; option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Errors"; -option ruby_package = "Google::Ads::GoogleAds::V3::Errors"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; // Proto file describing user data errors. diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/user_list_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/user_list_error.proto new file mode 100644 index 000000000..3d3399b8b --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/user_list_error.proto @@ -0,0 +1,129 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "UserListErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing user list errors. + +// Container for enum describing possible user list errors. +message UserListErrorEnum { + // Enum describing possible user list errors. + enum UserListError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Creating and updating external remarketing user lists is not supported. + EXTERNAL_REMARKETING_USER_LIST_MUTATE_NOT_SUPPORTED = 2; + + // Concrete type of user list is required. + CONCRETE_TYPE_REQUIRED = 3; + + // Creating/updating user list conversion types requires specifying the + // conversion type Id. + CONVERSION_TYPE_ID_REQUIRED = 4; + + // Remarketing user list cannot have duplicate conversion types. + DUPLICATE_CONVERSION_TYPES = 5; + + // Conversion type is invalid/unknown. + INVALID_CONVERSION_TYPE = 6; + + // User list description is empty or invalid. + INVALID_DESCRIPTION = 7; + + // User list name is empty or invalid. + INVALID_NAME = 8; + + // Type of the UserList does not match. + INVALID_TYPE = 9; + + // Embedded logical user lists are not allowed. + CAN_NOT_ADD_LOGICAL_LIST_AS_LOGICAL_LIST_OPERAND = 10; + + // User list rule operand is invalid. + INVALID_USER_LIST_LOGICAL_RULE_OPERAND = 11; + + // Name is already being used for another user list for the account. + NAME_ALREADY_USED = 12; + + // Name is required when creating a new conversion type. + NEW_CONVERSION_TYPE_NAME_REQUIRED = 13; + + // The given conversion type name has been used. + CONVERSION_TYPE_NAME_ALREADY_USED = 14; + + // Only an owner account may edit a user list. + OWNERSHIP_REQUIRED_FOR_SET = 15; + + // Creating user list without setting type in oneof user_list field, or + // creating/updating read-only user list types is not allowed. + USER_LIST_MUTATE_NOT_SUPPORTED = 16; + + // Rule is invalid. + INVALID_RULE = 17; + + // The specified date range is empty. + INVALID_DATE_RANGE = 27; + + // A UserList which is privacy sensitive or legal rejected cannot be mutated + // by external users. + CAN_NOT_MUTATE_SENSITIVE_USERLIST = 28; + + // Maximum number of rulebased user lists a customer can have. + MAX_NUM_RULEBASED_USERLISTS = 29; + + // BasicUserList's billable record field cannot be modified once it is set. + CANNOT_MODIFY_BILLABLE_RECORD_COUNT = 30; + + // crm_based_user_list.app_id field must be set when upload_key_type is + // MOBILE_ADVERTISING_ID. + APP_ID_NOT_SET = 31; + + // Name of the user list is reserved for system generated lists and cannot + // be used. + USERLIST_NAME_IS_RESERVED_FOR_SYSTEM_LIST = 32; + + // Advertiser needs to be on the allow-list to use remarketing lists created + // from advertiser uploaded data (e.g., Customer Match lists). + ADVERTISER_NOT_ON_ALLOWLIST_FOR_USING_UPLOADED_DATA = 37; + + // The provided rule_type is not supported for the user list. + RULE_TYPE_IS_NOT_SUPPORTED = 34; + + // Similar user list cannot be used as a logical user list operand. + CAN_NOT_ADD_A_SIMILAR_USERLIST_AS_LOGICAL_LIST_OPERAND = 35; + + // Logical user list should not have a mix of CRM based user list and other + // types of lists in its rules. + CAN_NOT_MIX_CRM_BASED_IN_LOGICAL_LIST_WITH_OTHER_LISTS = 36; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/errors/youtube_video_registration_error.proto b/third_party/googleapis/google/ads/googleads/v6/errors/youtube_video_registration_error.proto new file mode 100644 index 000000000..0177538f4 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/errors/youtube_video_registration_error.proto @@ -0,0 +1,53 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.errors; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Errors"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/errors;errors"; +option java_multiple_files = true; +option java_outer_classname = "YoutubeVideoRegistrationErrorProto"; +option java_package = "com.google.ads.googleads.v6.errors"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Errors"; +option ruby_package = "Google::Ads::GoogleAds::V6::Errors"; + +// Proto file describing YouTube video registration errors. + +// Container for enum describing YouTube video registration errors. +message YoutubeVideoRegistrationErrorEnum { + // Enum describing YouTube video registration errors. + enum YoutubeVideoRegistrationError { + // Enum unspecified. + UNSPECIFIED = 0; + + // The received error code is not known in this version. + UNKNOWN = 1; + + // Video to be registered wasn't found. + VIDEO_NOT_FOUND = 2; + + // Video to be registered is not accessible (e.g. private). + VIDEO_NOT_ACCESSIBLE = 3; + + // Video to be registered is not eligible (e.g. mature content). + VIDEO_NOT_ELIGIBLE = 4; + } + + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/googleads_gapic.yaml b/third_party/googleapis/google/ads/googleads/v6/googleads_gapic.yaml new file mode 100644 index 000000000..1b86d5ad3 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/googleads_gapic.yaml @@ -0,0 +1,26 @@ +type: com.google.api.codegen.ConfigProto +config_schema_version: 2.0.0 +language_settings: + csharp: + package_name: Google.Ads.GoogleAds.V6.Services + go: + package_name: google.golang.org/google/ads/googleads/v6/services + java: + package_name: com.google.ads.googleads.v6.services + nodejs: + package_name: v6.services + php: + package_name: Google\Ads\GoogleAds\V6\Services + python: + package_name: google.ads.googleads_v6.gapic.services + ruby: + package_name: Google::Ads::Googleads::V6::Services +interfaces: +- name: google.ads.googleads.v6.services.OfflineUserDataJobService + methods: + - name: RunOfflineUserDataJob + long_running: + initial_poll_delay_millis: 300000 + max_poll_delay_millis: 3600000 + poll_delay_multiplier: 1.25 + total_poll_timeout_millis: 43200000 diff --git a/third_party/googleapis/google/ads/googleads/v6/googleads_grpc_service_config.json b/third_party/googleapis/google/ads/googleads/v6/googleads_grpc_service_config.json new file mode 100644 index 000000000..9d950585c --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/googleads_grpc_service_config.json @@ -0,0 +1,375 @@ +{ + "methodConfig": [ + { + "name": [ + { + "service": "google.ads.googleads.v6.services.AccountBudgetProposalService" + }, + { + "service": "google.ads.googleads.v6.services.AccountBudgetService" + }, + { + "service": "google.ads.googleads.v6.services.AccountLinkService" + }, + { + "service": "google.ads.googleads.v6.services.AdGroupAdAssetViewService" + }, + { + "service": "google.ads.googleads.v6.services.AdGroupAdLabelService" + }, + { + "service": "google.ads.googleads.v6.services.AdGroupAdService" + }, + { + "service": "google.ads.googleads.v6.services.AdGroupAudienceViewService" + }, + { + "service": "google.ads.googleads.v6.services.AdGroupBidModifierService" + }, + { + "service": "google.ads.googleads.v6.services.AdGroupCriterionLabelService" + }, + { + "service": "google.ads.googleads.v6.services.AdGroupCriterionService" + }, + { + "service": "google.ads.googleads.v6.services.AdGroupCriterionSimulationService" + }, + { + "service": "google.ads.googleads.v6.services.AdGroupExtensionSettingService" + }, + { + "service": "google.ads.googleads.v6.services.AdGroupFeedService" + }, + { + "service": "google.ads.googleads.v6.services.AdGroupLabelService" + }, + { + "service": "google.ads.googleads.v6.services.AdGroupService" + }, + { + "service": "google.ads.googleads.v6.services.AdGroupSimulationService" + }, + { + "service": "google.ads.googleads.v6.services.AdParameterService" + }, + { + "service": "google.ads.googleads.v6.services.AdScheduleViewService" + }, + { + "service": "google.ads.googleads.v6.services.AdService" + }, + { + "service": "google.ads.googleads.v6.services.AgeRangeViewService" + }, + { + "service": "google.ads.googleads.v6.services.AssetService" + }, + { + "service": "google.ads.googleads.v6.services.BatchJobService" + }, + { + "service": "google.ads.googleads.v6.services.BiddingStrategyService" + }, + { + "service": "google.ads.googleads.v6.services.BillingSetupService" + }, + { + "service": "google.ads.googleads.v6.services.CampaignAssetService" + }, + { + "service": "google.ads.googleads.v6.services.CampaignAudienceViewService" + }, + { + "service": "google.ads.googleads.v6.services.CampaignBidModifierService" + }, + { + "service": "google.ads.googleads.v6.services.CampaignBudgetService" + }, + { + "service": "google.ads.googleads.v6.services.CampaignCriterionService" + }, + { + "service": "google.ads.googleads.v6.services.CampaignCriterionSimulationService" + }, + { + "service": "google.ads.googleads.v6.services.CampaignDraftService" + }, + { + "service": "google.ads.googleads.v6.services.CampaignExperimentService" + }, + { + "service": "google.ads.googleads.v6.services.CampaignExtensionSettingService" + }, + { + "service": "google.ads.googleads.v6.services.CampaignFeedService" + }, + { + "service": "google.ads.googleads.v6.services.CampaignLabelService" + }, + { + "service": "google.ads.googleads.v6.services.CampaignService" + }, + { + "service": "google.ads.googleads.v6.services.CampaignSharedSetService" + }, + { + "service": "google.ads.googleads.v6.services.CarrierConstantService" + }, + { + "service": "google.ads.googleads.v6.services.ChangeStatusService" + }, + { + "service": "google.ads.googleads.v6.services.ClickViewService" + }, + { + "service": "google.ads.googleads.v6.services.CombinedAudienceService" + }, + { + "service": "google.ads.googleads.v6.services.ConversionActionService" + }, + { + "service": "google.ads.googleads.v6.services.ConversionAdjustmentUploadService" + }, + { + "service": "google.ads.googleads.v6.services.ConversionUploadService" + }, + { + "service": "google.ads.googleads.v6.services.CurrencyConstantService" + }, + { + "service": "google.ads.googleads.v6.services.CustomAudienceService" + }, + { + "service": "google.ads.googleads.v6.services.CustomInterestService" + }, + { + "service": "google.ads.googleads.v6.services.CustomerClientLinkService" + }, + { + "service": "google.ads.googleads.v6.services.CustomerClientService" + }, + { + "service": "google.ads.googleads.v6.services.CustomerExtensionSettingService" + }, + { + "service": "google.ads.googleads.v6.services.CustomerFeedService" + }, + { + "service": "google.ads.googleads.v6.services.CustomerLabelService" + }, + { + "service": "google.ads.googleads.v6.services.CustomerManagerLinkService" + }, + { + "service": "google.ads.googleads.v6.services.CustomerNegativeCriterionService" + }, + { + "service": "google.ads.googleads.v6.services.CustomerService" + }, + { + "service": "google.ads.googleads.v6.services.CustomerUserAccessInvitationService" + }, + { + "service": "google.ads.googleads.v6.services.CustomerUserAccessService" + }, + { + "service": "google.ads.googleads.v6.services.DetailPlacementViewService" + }, + { + "service": "google.ads.googleads.v6.services.DisplayKeywordViewService" + }, + { + "service": "google.ads.googleads.v6.services.DistanceViewService" + }, + { + "service": "google.ads.googleads.v6.services.DomainCategoryService" + }, + { + "service": "google.ads.googleads.v6.services.DynamicSearchAdsSearchTermViewService" + }, + { + "service": "google.ads.googleads.v6.services.ExpandedLandingPageViewService" + }, + { + "service": "google.ads.googleads.v6.services.ExtensionFeedItemService" + }, + { + "service": "google.ads.googleads.v6.services.FeedItemService" + }, + { + "service": "google.ads.googleads.v6.services.FeedItemSetLinkService" + }, + { + "service": "google.ads.googleads.v6.services.FeedItemSetService" + }, + { + "service": "google.ads.googleads.v6.services.FeedItemTargetService" + }, + { + "service": "google.ads.googleads.v6.services.FeedMappingService" + }, + { + "service": "google.ads.googleads.v6.services.FeedPlaceholderViewService" + }, + { + "service": "google.ads.googleads.v6.services.FeedService" + }, + { + "service": "google.ads.googleads.v6.services.GenderViewService" + }, + { + "service": "google.ads.googleads.v6.services.GeoTargetConstantService" + }, + { + "service": "google.ads.googleads.v6.services.GeographicViewService" + }, + { + "service": "google.ads.googleads.v6.services.GoogleAdsFieldService" + }, + { + "service": "google.ads.googleads.v6.services.GoogleAdsService" + }, + { + "service": "google.ads.googleads.v6.services.GroupPlacementViewService" + }, + { + "service": "google.ads.googleads.v6.services.HotelGroupViewService" + }, + { + "service": "google.ads.googleads.v6.services.HotelPerformanceViewService" + }, + { + "service": "google.ads.googleads.v6.services.IncomeRangeViewService" + }, + { + "service": "google.ads.googleads.v6.services.InvoiceService" + }, + { + "service": "google.ads.googleads.v6.services.KeywordPlanAdGroupKeywordService" + }, + { + "service": "google.ads.googleads.v6.services.KeywordPlanAdGroupService" + }, + { + "service": "google.ads.googleads.v6.services.KeywordPlanCampaignKeywordService" + }, + { + "service": "google.ads.googleads.v6.services.KeywordPlanCampaignService" + }, + { + "service": "google.ads.googleads.v6.services.KeywordPlanIdeaService" + }, + { + "service": "google.ads.googleads.v6.services.KeywordPlanService" + }, + { + "service": "google.ads.googleads.v6.services.KeywordViewService" + }, + { + "service": "google.ads.googleads.v6.services.LabelService" + }, + { + "service": "google.ads.googleads.v6.services.LandingPageViewService" + }, + { + "service": "google.ads.googleads.v6.services.LanguageConstantService" + }, + { + "service": "google.ads.googleads.v6.services.LocationViewService" + }, + { + "service": "google.ads.googleads.v6.services.ManagedPlacementViewService" + }, + { + "service": "google.ads.googleads.v6.services.MediaFileService" + }, + { + "service": "google.ads.googleads.v6.services.MerchantCenterLinkService" + }, + { + "service": "google.ads.googleads.v6.services.MobileAppCategoryConstantService" + }, + { + "service": "google.ads.googleads.v6.services.MobileDeviceConstantService" + }, + { + "service": "google.ads.googleads.v6.services.OfflineUserDataJobService" + }, + { + "service": "google.ads.googleads.v6.services.OperatingSystemVersionConstantService" + }, + { + "service": "google.ads.googleads.v6.services.PaidOrganicSearchTermViewService" + }, + { + "service": "google.ads.googleads.v6.services.ParentalStatusViewService" + }, + { + "service": "google.ads.googleads.v6.services.PaymentsAccountService" + }, + { + "service": "google.ads.googleads.v6.services.ProductBiddingCategoryConstantService" + }, + { + "service": "google.ads.googleads.v6.services.ProductGroupViewService" + }, + { + "service": "google.ads.googleads.v6.services.ReachPlanService" + }, + { + "service": "google.ads.googleads.v6.services.RecommendationService" + }, + { + "service": "google.ads.googleads.v6.services.RemarketingActionService" + }, + { + "service": "google.ads.googleads.v6.services.SearchTermViewService" + }, + { + "service": "google.ads.googleads.v6.services.SharedCriterionService" + }, + { + "service": "google.ads.googleads.v6.services.SharedSetService" + }, + { + "service": "google.ads.googleads.v6.services.ShoppingPerformanceViewService" + }, + { + "service": "google.ads.googleads.v6.services.ThirdPartyAppAnalyticsLinkService" + }, + { + "service": "google.ads.googleads.v6.services.TopicConstantService" + }, + { + "service": "google.ads.googleads.v6.services.TopicViewService" + }, + { + "service": "google.ads.googleads.v6.services.UserDataService" + }, + { + "service": "google.ads.googleads.v6.services.UserInterestService" + }, + { + "service": "google.ads.googleads.v6.services.UserListService" + }, + { + "service": "google.ads.googleads.v6.services.UserLocationViewService" + }, + { + "service": "google.ads.googleads.v6.services.VideoService" + } + ], + "timeout": "3600s", + "retryPolicy": { + "initialBackoff": "5s", + "maxBackoff": "60s", + "backoffMultiplier": 1.3, + "retryableStatusCodes": [ + "UNAVAILABLE", + "DEADLINE_EXCEEDED" + ] + } + } + ] +} diff --git a/third_party/googleapis/google/ads/googleads/v6/googleads_v6.yaml b/third_party/googleapis/google/ads/googleads/v6/googleads_v6.yaml new file mode 100644 index 000000000..0ee75c06a --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/googleads_v6.yaml @@ -0,0 +1,1217 @@ +type: google.api.Service +config_version: 3 +name: googleads.googleapis.com +title: Google Ads API + +apis: +- name: google.ads.googleads.v6.services.AccountBudgetProposalService +- name: google.ads.googleads.v6.services.AccountBudgetService +- name: google.ads.googleads.v6.services.AccountLinkService +- name: google.ads.googleads.v6.services.AdGroupAdAssetViewService +- name: google.ads.googleads.v6.services.AdGroupAdLabelService +- name: google.ads.googleads.v6.services.AdGroupAdService +- name: google.ads.googleads.v6.services.AdGroupAudienceViewService +- name: google.ads.googleads.v6.services.AdGroupBidModifierService +- name: google.ads.googleads.v6.services.AdGroupCriterionLabelService +- name: google.ads.googleads.v6.services.AdGroupCriterionService +- name: google.ads.googleads.v6.services.AdGroupCriterionSimulationService +- name: google.ads.googleads.v6.services.AdGroupExtensionSettingService +- name: google.ads.googleads.v6.services.AdGroupFeedService +- name: google.ads.googleads.v6.services.AdGroupLabelService +- name: google.ads.googleads.v6.services.AdGroupService +- name: google.ads.googleads.v6.services.AdGroupSimulationService +- name: google.ads.googleads.v6.services.AdParameterService +- name: google.ads.googleads.v6.services.AdScheduleViewService +- name: google.ads.googleads.v6.services.AdService +- name: google.ads.googleads.v6.services.AgeRangeViewService +- name: google.ads.googleads.v6.services.AssetService +- name: google.ads.googleads.v6.services.BatchJobService +- name: google.ads.googleads.v6.services.BiddingStrategyService +- name: google.ads.googleads.v6.services.BillingSetupService +- name: google.ads.googleads.v6.services.CampaignAssetService +- name: google.ads.googleads.v6.services.CampaignAudienceViewService +- name: google.ads.googleads.v6.services.CampaignBidModifierService +- name: google.ads.googleads.v6.services.CampaignBudgetService +- name: google.ads.googleads.v6.services.CampaignCriterionService +- name: google.ads.googleads.v6.services.CampaignCriterionSimulationService +- name: google.ads.googleads.v6.services.CampaignDraftService +- name: google.ads.googleads.v6.services.CampaignExperimentService +- name: google.ads.googleads.v6.services.CampaignExtensionSettingService +- name: google.ads.googleads.v6.services.CampaignFeedService +- name: google.ads.googleads.v6.services.CampaignLabelService +- name: google.ads.googleads.v6.services.CampaignService +- name: google.ads.googleads.v6.services.CampaignSharedSetService +- name: google.ads.googleads.v6.services.CarrierConstantService +- name: google.ads.googleads.v6.services.ChangeStatusService +- name: google.ads.googleads.v6.services.ClickViewService +- name: google.ads.googleads.v6.services.CombinedAudienceService +- name: google.ads.googleads.v6.services.ConversionActionService +- name: google.ads.googleads.v6.services.ConversionAdjustmentUploadService +- name: google.ads.googleads.v6.services.ConversionUploadService +- name: google.ads.googleads.v6.services.CurrencyConstantService +- name: google.ads.googleads.v6.services.CustomAudienceService +- name: google.ads.googleads.v6.services.CustomInterestService +- name: google.ads.googleads.v6.services.CustomerClientLinkService +- name: google.ads.googleads.v6.services.CustomerClientService +- name: google.ads.googleads.v6.services.CustomerExtensionSettingService +- name: google.ads.googleads.v6.services.CustomerFeedService +- name: google.ads.googleads.v6.services.CustomerLabelService +- name: google.ads.googleads.v6.services.CustomerManagerLinkService +- name: google.ads.googleads.v6.services.CustomerNegativeCriterionService +- name: google.ads.googleads.v6.services.CustomerService +- name: google.ads.googleads.v6.services.CustomerUserAccessInvitationService +- name: google.ads.googleads.v6.services.CustomerUserAccessService +- name: google.ads.googleads.v6.services.DetailPlacementViewService +- name: google.ads.googleads.v6.services.DisplayKeywordViewService +- name: google.ads.googleads.v6.services.DistanceViewService +- name: google.ads.googleads.v6.services.DomainCategoryService +- name: google.ads.googleads.v6.services.DynamicSearchAdsSearchTermViewService +- name: google.ads.googleads.v6.services.ExpandedLandingPageViewService +- name: google.ads.googleads.v6.services.ExtensionFeedItemService +- name: google.ads.googleads.v6.services.FeedItemService +- name: google.ads.googleads.v6.services.FeedItemSetLinkService +- name: google.ads.googleads.v6.services.FeedItemSetService +- name: google.ads.googleads.v6.services.FeedItemTargetService +- name: google.ads.googleads.v6.services.FeedMappingService +- name: google.ads.googleads.v6.services.FeedPlaceholderViewService +- name: google.ads.googleads.v6.services.FeedService +- name: google.ads.googleads.v6.services.GenderViewService +- name: google.ads.googleads.v6.services.GeoTargetConstantService +- name: google.ads.googleads.v6.services.GeographicViewService +- name: google.ads.googleads.v6.services.GoogleAdsFieldService +- name: google.ads.googleads.v6.services.GoogleAdsService +- name: google.ads.googleads.v6.services.GroupPlacementViewService +- name: google.ads.googleads.v6.services.HotelGroupViewService +- name: google.ads.googleads.v6.services.HotelPerformanceViewService +- name: google.ads.googleads.v6.services.IncomeRangeViewService +- name: google.ads.googleads.v6.services.InvoiceService +- name: google.ads.googleads.v6.services.KeywordPlanAdGroupKeywordService +- name: google.ads.googleads.v6.services.KeywordPlanAdGroupService +- name: google.ads.googleads.v6.services.KeywordPlanCampaignKeywordService +- name: google.ads.googleads.v6.services.KeywordPlanCampaignService +- name: google.ads.googleads.v6.services.KeywordPlanIdeaService +- name: google.ads.googleads.v6.services.KeywordPlanService +- name: google.ads.googleads.v6.services.KeywordViewService +- name: google.ads.googleads.v6.services.LabelService +- name: google.ads.googleads.v6.services.LandingPageViewService +- name: google.ads.googleads.v6.services.LanguageConstantService +- name: google.ads.googleads.v6.services.LocationViewService +- name: google.ads.googleads.v6.services.ManagedPlacementViewService +- name: google.ads.googleads.v6.services.MediaFileService +- name: google.ads.googleads.v6.services.MerchantCenterLinkService +- name: google.ads.googleads.v6.services.MobileAppCategoryConstantService +- name: google.ads.googleads.v6.services.MobileDeviceConstantService +- name: google.ads.googleads.v6.services.OfflineUserDataJobService +- name: google.ads.googleads.v6.services.OperatingSystemVersionConstantService +- name: google.ads.googleads.v6.services.PaidOrganicSearchTermViewService +- name: google.ads.googleads.v6.services.ParentalStatusViewService +- name: google.ads.googleads.v6.services.PaymentsAccountService +- name: google.ads.googleads.v6.services.ProductBiddingCategoryConstantService +- name: google.ads.googleads.v6.services.ProductGroupViewService +- name: google.ads.googleads.v6.services.ReachPlanService +- name: google.ads.googleads.v6.services.RecommendationService +- name: google.ads.googleads.v6.services.RemarketingActionService +- name: google.ads.googleads.v6.services.SearchTermViewService +- name: google.ads.googleads.v6.services.SharedCriterionService +- name: google.ads.googleads.v6.services.SharedSetService +- name: google.ads.googleads.v6.services.ShoppingPerformanceViewService +- name: google.ads.googleads.v6.services.ThirdPartyAppAnalyticsLinkService +- name: google.ads.googleads.v6.services.TopicConstantService +- name: google.ads.googleads.v6.services.TopicViewService +- name: google.ads.googleads.v6.services.UserDataService +- name: google.ads.googleads.v6.services.UserInterestService +- name: google.ads.googleads.v6.services.UserListService +- name: google.ads.googleads.v6.services.UserLocationViewService +- name: google.ads.googleads.v6.services.VideoService + +types: +- name: google.ads.googleads.v6.errors.GoogleAdsFailure +- name: google.ads.googleads.v6.resources.BatchJob.BatchJobMetadata +- name: google.ads.googleads.v6.services.CreateCampaignExperimentMetadata + +documentation: + summary: 'Manage your Google Ads accounts, campaigns, and reports with this API.' + overview: |- + The Google Ads API enables an app to integrate with the Google Ads + platform. You can efficiently retrieve and change your Google Ads data + using the API, making it ideal for managing large or complex accounts and + campaigns. + +backend: + rules: + - selector: google.ads.googleads.v6.services.AccountBudgetProposalService.GetAccountBudgetProposal + deadline: 60.0 + - selector: google.ads.googleads.v6.services.AccountBudgetProposalService.MutateAccountBudgetProposal + deadline: 60.0 + - selector: google.ads.googleads.v6.services.AccountBudgetService.GetAccountBudget + deadline: 60.0 + - selector: 'google.ads.googleads.v6.services.AccountLinkService.*' + deadline: 600.0 + - selector: google.ads.googleads.v6.services.AdGroupAdAssetViewService.GetAdGroupAdAssetView + deadline: 60.0 + - selector: google.ads.googleads.v6.services.AdGroupAdLabelService.GetAdGroupAdLabel + deadline: 60.0 + - selector: google.ads.googleads.v6.services.AdGroupAdLabelService.MutateAdGroupAdLabels + deadline: 60.0 + - selector: google.ads.googleads.v6.services.AdGroupAdService.GetAdGroupAd + deadline: 60.0 + - selector: google.ads.googleads.v6.services.AdGroupAdService.MutateAdGroupAds + deadline: 60.0 + - selector: google.ads.googleads.v6.services.AdGroupAudienceViewService.GetAdGroupAudienceView + deadline: 60.0 + - selector: google.ads.googleads.v6.services.AdGroupBidModifierService.GetAdGroupBidModifier + deadline: 60.0 + - selector: google.ads.googleads.v6.services.AdGroupBidModifierService.MutateAdGroupBidModifiers + deadline: 60.0 + - selector: google.ads.googleads.v6.services.AdGroupCriterionLabelService.GetAdGroupCriterionLabel + deadline: 60.0 + - selector: google.ads.googleads.v6.services.AdGroupCriterionLabelService.MutateAdGroupCriterionLabels + deadline: 60.0 + - selector: google.ads.googleads.v6.services.AdGroupCriterionService.GetAdGroupCriterion + deadline: 60.0 + - selector: google.ads.googleads.v6.services.AdGroupCriterionService.MutateAdGroupCriteria + deadline: 60.0 + - selector: google.ads.googleads.v6.services.AdGroupCriterionSimulationService.GetAdGroupCriterionSimulation + deadline: 60.0 + - selector: google.ads.googleads.v6.services.AdGroupExtensionSettingService.GetAdGroupExtensionSetting + deadline: 60.0 + - selector: google.ads.googleads.v6.services.AdGroupExtensionSettingService.MutateAdGroupExtensionSettings + deadline: 60.0 + - selector: google.ads.googleads.v6.services.AdGroupFeedService.GetAdGroupFeed + deadline: 60.0 + - selector: google.ads.googleads.v6.services.AdGroupFeedService.MutateAdGroupFeeds + deadline: 60.0 + - selector: google.ads.googleads.v6.services.AdGroupLabelService.GetAdGroupLabel + deadline: 60.0 + - selector: google.ads.googleads.v6.services.AdGroupLabelService.MutateAdGroupLabels + deadline: 60.0 + - selector: google.ads.googleads.v6.services.AdGroupService.GetAdGroup + deadline: 60.0 + - selector: google.ads.googleads.v6.services.AdGroupService.MutateAdGroups + deadline: 60.0 + - selector: google.ads.googleads.v6.services.AdGroupSimulationService.GetAdGroupSimulation + deadline: 60.0 + - selector: google.ads.googleads.v6.services.AdParameterService.GetAdParameter + deadline: 60.0 + - selector: google.ads.googleads.v6.services.AdParameterService.MutateAdParameters + deadline: 60.0 + - selector: google.ads.googleads.v6.services.AdScheduleViewService.GetAdScheduleView + deadline: 60.0 + - selector: google.ads.googleads.v6.services.AdService.GetAd + deadline: 60.0 + - selector: google.ads.googleads.v6.services.AdService.MutateAds + deadline: 60.0 + - selector: google.ads.googleads.v6.services.AgeRangeViewService.GetAgeRangeView + deadline: 60.0 + - selector: google.ads.googleads.v6.services.AssetService.GetAsset + deadline: 60.0 + - selector: google.ads.googleads.v6.services.AssetService.MutateAssets + deadline: 60.0 + - selector: 'google.ads.googleads.v6.services.BatchJobService.*' + deadline: 60.0 + - selector: google.ads.googleads.v6.services.BiddingStrategyService.GetBiddingStrategy + deadline: 60.0 + - selector: google.ads.googleads.v6.services.BiddingStrategyService.MutateBiddingStrategies + deadline: 60.0 + - selector: google.ads.googleads.v6.services.BillingSetupService.GetBillingSetup + deadline: 60.0 + - selector: google.ads.googleads.v6.services.BillingSetupService.MutateBillingSetup + deadline: 60.0 + - selector: google.ads.googleads.v6.services.CampaignAssetService.GetCampaignAsset + deadline: 60.0 + - selector: google.ads.googleads.v6.services.CampaignAssetService.MutateCampaignAssets + deadline: 60.0 + - selector: google.ads.googleads.v6.services.CampaignAudienceViewService.GetCampaignAudienceView + deadline: 60.0 + - selector: google.ads.googleads.v6.services.CampaignBidModifierService.GetCampaignBidModifier + deadline: 60.0 + - selector: google.ads.googleads.v6.services.CampaignBidModifierService.MutateCampaignBidModifiers + deadline: 60.0 + - selector: google.ads.googleads.v6.services.CampaignBudgetService.GetCampaignBudget + deadline: 60.0 + - selector: google.ads.googleads.v6.services.CampaignBudgetService.MutateCampaignBudgets + deadline: 60.0 + - selector: google.ads.googleads.v6.services.CampaignCriterionService.GetCampaignCriterion + deadline: 60.0 + - selector: google.ads.googleads.v6.services.CampaignCriterionService.MutateCampaignCriteria + deadline: 60.0 + - selector: google.ads.googleads.v6.services.CampaignCriterionSimulationService.GetCampaignCriterionSimulation + deadline: 60.0 + - selector: 'google.ads.googleads.v6.services.CampaignDraftService.*' + deadline: 60.0 + - selector: 'google.ads.googleads.v6.services.CampaignExperimentService.*' + deadline: 60.0 + - selector: google.ads.googleads.v6.services.CampaignExtensionSettingService.GetCampaignExtensionSetting + deadline: 60.0 + - selector: google.ads.googleads.v6.services.CampaignExtensionSettingService.MutateCampaignExtensionSettings + deadline: 60.0 + - selector: google.ads.googleads.v6.services.CampaignFeedService.GetCampaignFeed + deadline: 60.0 + - selector: google.ads.googleads.v6.services.CampaignFeedService.MutateCampaignFeeds + deadline: 60.0 + - selector: google.ads.googleads.v6.services.CampaignLabelService.GetCampaignLabel + deadline: 60.0 + - selector: google.ads.googleads.v6.services.CampaignLabelService.MutateCampaignLabels + deadline: 60.0 + - selector: google.ads.googleads.v6.services.CampaignService.GetCampaign + deadline: 60.0 + - selector: google.ads.googleads.v6.services.CampaignService.MutateCampaigns + deadline: 60.0 + - selector: google.ads.googleads.v6.services.CampaignSharedSetService.GetCampaignSharedSet + deadline: 60.0 + - selector: google.ads.googleads.v6.services.CampaignSharedSetService.MutateCampaignSharedSets + deadline: 60.0 + - selector: google.ads.googleads.v6.services.CarrierConstantService.GetCarrierConstant + deadline: 60.0 + - selector: google.ads.googleads.v6.services.ChangeStatusService.GetChangeStatus + deadline: 60.0 + - selector: google.ads.googleads.v6.services.ClickViewService.GetClickView + deadline: 60.0 + - selector: google.ads.googleads.v6.services.CombinedAudienceService.GetCombinedAudience + deadline: 600.0 + - selector: google.ads.googleads.v6.services.ConversionActionService.GetConversionAction + deadline: 60.0 + - selector: google.ads.googleads.v6.services.ConversionActionService.MutateConversionActions + deadline: 60.0 + - selector: google.ads.googleads.v6.services.ConversionAdjustmentUploadService.UploadConversionAdjustments + deadline: 60.0 + - selector: google.ads.googleads.v6.services.ConversionUploadService.UploadCallConversions + deadline: 60.0 + - selector: google.ads.googleads.v6.services.ConversionUploadService.UploadClickConversions + deadline: 60.0 + - selector: google.ads.googleads.v6.services.CurrencyConstantService.GetCurrencyConstant + deadline: 60.0 + - selector: google.ads.googleads.v6.services.CustomAudienceService.GetCustomAudience + deadline: 600.0 + - selector: google.ads.googleads.v6.services.CustomAudienceService.MutateCustomAudiences + deadline: 600.0 + - selector: google.ads.googleads.v6.services.CustomInterestService.GetCustomInterest + deadline: 60.0 + - selector: google.ads.googleads.v6.services.CustomInterestService.MutateCustomInterests + deadline: 60.0 + - selector: google.ads.googleads.v6.services.CustomerClientLinkService.GetCustomerClientLink + deadline: 60.0 + - selector: google.ads.googleads.v6.services.CustomerClientLinkService.MutateCustomerClientLink + deadline: 60.0 + - selector: google.ads.googleads.v6.services.CustomerClientService.GetCustomerClient + deadline: 60.0 + - selector: google.ads.googleads.v6.services.CustomerExtensionSettingService.GetCustomerExtensionSetting + deadline: 60.0 + - selector: google.ads.googleads.v6.services.CustomerExtensionSettingService.MutateCustomerExtensionSettings + deadline: 60.0 + - selector: google.ads.googleads.v6.services.CustomerFeedService.GetCustomerFeed + deadline: 60.0 + - selector: google.ads.googleads.v6.services.CustomerFeedService.MutateCustomerFeeds + deadline: 60.0 + - selector: google.ads.googleads.v6.services.CustomerLabelService.GetCustomerLabel + deadline: 60.0 + - selector: google.ads.googleads.v6.services.CustomerLabelService.MutateCustomerLabels + deadline: 60.0 + - selector: 'google.ads.googleads.v6.services.CustomerManagerLinkService.*' + deadline: 60.0 + - selector: google.ads.googleads.v6.services.CustomerNegativeCriterionService.GetCustomerNegativeCriterion + deadline: 60.0 + - selector: google.ads.googleads.v6.services.CustomerNegativeCriterionService.MutateCustomerNegativeCriteria + deadline: 60.0 + - selector: 'google.ads.googleads.v6.services.CustomerService.*' + deadline: 60.0 + - selector: google.ads.googleads.v6.services.CustomerUserAccessInvitationService.GetCustomerUserAccessInvitation + deadline: 600.0 + - selector: google.ads.googleads.v6.services.CustomerUserAccessInvitationService.MutateCustomerUserAccessInvitation + deadline: 600.0 + - selector: google.ads.googleads.v6.services.CustomerUserAccessService.GetCustomerUserAccess + deadline: 600.0 + - selector: google.ads.googleads.v6.services.CustomerUserAccessService.MutateCustomerUserAccess + deadline: 600.0 + - selector: google.ads.googleads.v6.services.DetailPlacementViewService.GetDetailPlacementView + deadline: 60.0 + - selector: google.ads.googleads.v6.services.DisplayKeywordViewService.GetDisplayKeywordView + deadline: 60.0 + - selector: google.ads.googleads.v6.services.DistanceViewService.GetDistanceView + deadline: 60.0 + - selector: google.ads.googleads.v6.services.DomainCategoryService.GetDomainCategory + deadline: 60.0 + - selector: google.ads.googleads.v6.services.DynamicSearchAdsSearchTermViewService.GetDynamicSearchAdsSearchTermView + deadline: 60.0 + - selector: google.ads.googleads.v6.services.ExpandedLandingPageViewService.GetExpandedLandingPageView + deadline: 60.0 + - selector: google.ads.googleads.v6.services.ExtensionFeedItemService.GetExtensionFeedItem + deadline: 60.0 + - selector: google.ads.googleads.v6.services.ExtensionFeedItemService.MutateExtensionFeedItems + deadline: 60.0 + - selector: google.ads.googleads.v6.services.FeedItemService.GetFeedItem + deadline: 60.0 + - selector: google.ads.googleads.v6.services.FeedItemService.MutateFeedItems + deadline: 60.0 + - selector: google.ads.googleads.v6.services.FeedItemSetLinkService.GetFeedItemSetLink + deadline: 60.0 + - selector: google.ads.googleads.v6.services.FeedItemSetLinkService.MutateFeedItemSetLinks + deadline: 60.0 + - selector: google.ads.googleads.v6.services.FeedItemSetService.GetFeedItemSet + deadline: 60.0 + - selector: google.ads.googleads.v6.services.FeedItemSetService.MutateFeedItemSets + deadline: 60.0 + - selector: google.ads.googleads.v6.services.FeedItemTargetService.GetFeedItemTarget + deadline: 60.0 + - selector: google.ads.googleads.v6.services.FeedItemTargetService.MutateFeedItemTargets + deadline: 60.0 + - selector: google.ads.googleads.v6.services.FeedMappingService.GetFeedMapping + deadline: 60.0 + - selector: google.ads.googleads.v6.services.FeedMappingService.MutateFeedMappings + deadline: 60.0 + - selector: google.ads.googleads.v6.services.FeedPlaceholderViewService.GetFeedPlaceholderView + deadline: 60.0 + - selector: google.ads.googleads.v6.services.FeedService.GetFeed + deadline: 60.0 + - selector: google.ads.googleads.v6.services.FeedService.MutateFeeds + deadline: 60.0 + - selector: google.ads.googleads.v6.services.GenderViewService.GetGenderView + deadline: 60.0 + - selector: google.ads.googleads.v6.services.GeoTargetConstantService.GetGeoTargetConstant + deadline: 60.0 + - selector: google.ads.googleads.v6.services.GeoTargetConstantService.SuggestGeoTargetConstants + deadline: 60.0 + - selector: google.ads.googleads.v6.services.GeographicViewService.GetGeographicView + deadline: 60.0 + - selector: google.ads.googleads.v6.services.GoogleAdsFieldService.GetGoogleAdsField + deadline: 600.0 + - selector: google.ads.googleads.v6.services.GoogleAdsFieldService.SearchGoogleAdsFields + deadline: 600.0 + - selector: google.ads.googleads.v6.services.GoogleAdsService.Mutate + deadline: 600.0 + - selector: google.ads.googleads.v6.services.GoogleAdsService.Search + deadline: 3600.0 + - selector: google.ads.googleads.v6.services.GoogleAdsService.SearchStream + deadline: 3600.0 + - selector: google.ads.googleads.v6.services.GroupPlacementViewService.GetGroupPlacementView + deadline: 60.0 + - selector: google.ads.googleads.v6.services.HotelGroupViewService.GetHotelGroupView + deadline: 60.0 + - selector: google.ads.googleads.v6.services.HotelPerformanceViewService.GetHotelPerformanceView + deadline: 60.0 + - selector: google.ads.googleads.v6.services.IncomeRangeViewService.GetIncomeRangeView + deadline: 60.0 + - selector: google.ads.googleads.v6.services.InvoiceService.ListInvoices + deadline: 60.0 + - selector: google.ads.googleads.v6.services.KeywordPlanAdGroupKeywordService.GetKeywordPlanAdGroupKeyword + deadline: 60.0 + - selector: google.ads.googleads.v6.services.KeywordPlanAdGroupKeywordService.MutateKeywordPlanAdGroupKeywords + deadline: 60.0 + - selector: google.ads.googleads.v6.services.KeywordPlanAdGroupService.GetKeywordPlanAdGroup + deadline: 60.0 + - selector: google.ads.googleads.v6.services.KeywordPlanAdGroupService.MutateKeywordPlanAdGroups + deadline: 60.0 + - selector: google.ads.googleads.v6.services.KeywordPlanCampaignKeywordService.GetKeywordPlanCampaignKeyword + deadline: 60.0 + - selector: google.ads.googleads.v6.services.KeywordPlanCampaignKeywordService.MutateKeywordPlanCampaignKeywords + deadline: 60.0 + - selector: google.ads.googleads.v6.services.KeywordPlanCampaignService.GetKeywordPlanCampaign + deadline: 60.0 + - selector: google.ads.googleads.v6.services.KeywordPlanCampaignService.MutateKeywordPlanCampaigns + deadline: 60.0 + - selector: google.ads.googleads.v6.services.KeywordPlanIdeaService.GenerateKeywordIdeas + deadline: 600.0 + - selector: 'google.ads.googleads.v6.services.KeywordPlanService.*' + deadline: 600.0 + - selector: google.ads.googleads.v6.services.KeywordPlanService.GetKeywordPlan + deadline: 60.0 + - selector: google.ads.googleads.v6.services.KeywordPlanService.MutateKeywordPlans + deadline: 60.0 + - selector: google.ads.googleads.v6.services.KeywordViewService.GetKeywordView + deadline: 60.0 + - selector: google.ads.googleads.v6.services.LabelService.GetLabel + deadline: 60.0 + - selector: google.ads.googleads.v6.services.LabelService.MutateLabels + deadline: 60.0 + - selector: google.ads.googleads.v6.services.LandingPageViewService.GetLandingPageView + deadline: 60.0 + - selector: google.ads.googleads.v6.services.LanguageConstantService.GetLanguageConstant + deadline: 60.0 + - selector: google.ads.googleads.v6.services.LocationViewService.GetLocationView + deadline: 60.0 + - selector: google.ads.googleads.v6.services.ManagedPlacementViewService.GetManagedPlacementView + deadline: 60.0 + - selector: google.ads.googleads.v6.services.MediaFileService.GetMediaFile + deadline: 60.0 + - selector: google.ads.googleads.v6.services.MediaFileService.MutateMediaFiles + deadline: 60.0 + - selector: 'google.ads.googleads.v6.services.MerchantCenterLinkService.*' + deadline: 60.0 + - selector: google.ads.googleads.v6.services.MobileAppCategoryConstantService.GetMobileAppCategoryConstant + deadline: 60.0 + - selector: google.ads.googleads.v6.services.MobileDeviceConstantService.GetMobileDeviceConstant + deadline: 60.0 + - selector: 'google.ads.googleads.v6.services.OfflineUserDataJobService.*' + deadline: 600.0 + - selector: google.ads.googleads.v6.services.OperatingSystemVersionConstantService.GetOperatingSystemVersionConstant + deadline: 60.0 + - selector: google.ads.googleads.v6.services.PaidOrganicSearchTermViewService.GetPaidOrganicSearchTermView + deadline: 60.0 + - selector: google.ads.googleads.v6.services.ParentalStatusViewService.GetParentalStatusView + deadline: 60.0 + - selector: google.ads.googleads.v6.services.PaymentsAccountService.ListPaymentsAccounts + deadline: 60.0 + - selector: google.ads.googleads.v6.services.ProductBiddingCategoryConstantService.GetProductBiddingCategoryConstant + deadline: 60.0 + - selector: google.ads.googleads.v6.services.ProductGroupViewService.GetProductGroupView + deadline: 60.0 + - selector: 'google.ads.googleads.v6.services.ReachPlanService.*' + deadline: 600.0 + - selector: 'google.ads.googleads.v6.services.RecommendationService.*' + deadline: 600.0 + - selector: google.ads.googleads.v6.services.RemarketingActionService.GetRemarketingAction + deadline: 60.0 + - selector: google.ads.googleads.v6.services.RemarketingActionService.MutateRemarketingActions + deadline: 60.0 + - selector: google.ads.googleads.v6.services.SearchTermViewService.GetSearchTermView + deadline: 60.0 + - selector: google.ads.googleads.v6.services.SharedCriterionService.GetSharedCriterion + deadline: 60.0 + - selector: google.ads.googleads.v6.services.SharedCriterionService.MutateSharedCriteria + deadline: 60.0 + - selector: google.ads.googleads.v6.services.SharedSetService.GetSharedSet + deadline: 60.0 + - selector: google.ads.googleads.v6.services.SharedSetService.MutateSharedSets + deadline: 60.0 + - selector: google.ads.googleads.v6.services.ShoppingPerformanceViewService.GetShoppingPerformanceView + deadline: 60.0 + - selector: google.ads.googleads.v6.services.ThirdPartyAppAnalyticsLinkService.GetThirdPartyAppAnalyticsLink + deadline: 600.0 + - selector: google.ads.googleads.v6.services.ThirdPartyAppAnalyticsLinkService.RegenerateShareableLinkId + deadline: 600.0 + - selector: google.ads.googleads.v6.services.TopicConstantService.GetTopicConstant + deadline: 60.0 + - selector: google.ads.googleads.v6.services.TopicViewService.GetTopicView + deadline: 60.0 + - selector: google.ads.googleads.v6.services.UserDataService.UploadUserData + deadline: 600.0 + - selector: google.ads.googleads.v6.services.UserInterestService.GetUserInterest + deadline: 60.0 + - selector: google.ads.googleads.v6.services.UserListService.GetUserList + deadline: 60.0 + - selector: google.ads.googleads.v6.services.UserListService.MutateUserLists + deadline: 60.0 + - selector: google.ads.googleads.v6.services.UserLocationViewService.GetUserLocationView + deadline: 60.0 + - selector: google.ads.googleads.v6.services.VideoService.GetVideo + deadline: 60.0 + - selector: 'google.longrunning.Operations.*' + deadline: 60.0 + +http: + rules: + - selector: google.longrunning.Operations.CancelOperation + post: '/v6/{name=customers/*/operations/*}:cancel' + body: '*' + - selector: google.longrunning.Operations.DeleteOperation + delete: '/v6/{name=customers/*/operations/*}' + - selector: google.longrunning.Operations.GetOperation + get: '/v6/{name=customers/*/operations/*}' + - selector: google.longrunning.Operations.ListOperations + get: '/v6/{name=customers/*/operations}' + - selector: google.longrunning.Operations.WaitOperation + post: '/v6/{name=customers/*/operations/*}:wait' + body: '*' + +authentication: + rules: + - selector: google.ads.googleads.v6.services.AccountBudgetProposalService.GetAccountBudgetProposal + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.AccountBudgetProposalService.MutateAccountBudgetProposal + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.AccountBudgetService.GetAccountBudget + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: 'google.ads.googleads.v6.services.AccountLinkService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.AdGroupAdAssetViewService.GetAdGroupAdAssetView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.AdGroupAdLabelService.GetAdGroupAdLabel + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.AdGroupAdLabelService.MutateAdGroupAdLabels + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.AdGroupAdService.GetAdGroupAd + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.AdGroupAdService.MutateAdGroupAds + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.AdGroupAudienceViewService.GetAdGroupAudienceView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.AdGroupBidModifierService.GetAdGroupBidModifier + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.AdGroupBidModifierService.MutateAdGroupBidModifiers + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.AdGroupCriterionLabelService.GetAdGroupCriterionLabel + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.AdGroupCriterionLabelService.MutateAdGroupCriterionLabels + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.AdGroupCriterionService.GetAdGroupCriterion + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.AdGroupCriterionService.MutateAdGroupCriteria + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.AdGroupCriterionSimulationService.GetAdGroupCriterionSimulation + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.AdGroupExtensionSettingService.GetAdGroupExtensionSetting + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.AdGroupExtensionSettingService.MutateAdGroupExtensionSettings + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.AdGroupFeedService.GetAdGroupFeed + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.AdGroupFeedService.MutateAdGroupFeeds + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.AdGroupLabelService.GetAdGroupLabel + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.AdGroupLabelService.MutateAdGroupLabels + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.AdGroupService.GetAdGroup + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.AdGroupService.MutateAdGroups + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.AdGroupSimulationService.GetAdGroupSimulation + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.AdParameterService.GetAdParameter + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.AdParameterService.MutateAdParameters + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.AdScheduleViewService.GetAdScheduleView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.AdService.GetAd + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.AdService.MutateAds + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.AgeRangeViewService.GetAgeRangeView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.AssetService.GetAsset + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.AssetService.MutateAssets + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: 'google.ads.googleads.v6.services.BatchJobService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.BiddingStrategyService.GetBiddingStrategy + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.BiddingStrategyService.MutateBiddingStrategies + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.BillingSetupService.GetBillingSetup + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.BillingSetupService.MutateBillingSetup + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.CampaignAssetService.GetCampaignAsset + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.CampaignAssetService.MutateCampaignAssets + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.CampaignAudienceViewService.GetCampaignAudienceView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.CampaignBidModifierService.GetCampaignBidModifier + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.CampaignBidModifierService.MutateCampaignBidModifiers + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.CampaignBudgetService.GetCampaignBudget + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.CampaignBudgetService.MutateCampaignBudgets + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.CampaignCriterionService.GetCampaignCriterion + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.CampaignCriterionService.MutateCampaignCriteria + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.CampaignCriterionSimulationService.GetCampaignCriterionSimulation + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: 'google.ads.googleads.v6.services.CampaignDraftService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: 'google.ads.googleads.v6.services.CampaignExperimentService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.CampaignExtensionSettingService.GetCampaignExtensionSetting + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.CampaignExtensionSettingService.MutateCampaignExtensionSettings + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.CampaignFeedService.GetCampaignFeed + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.CampaignFeedService.MutateCampaignFeeds + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.CampaignLabelService.GetCampaignLabel + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.CampaignLabelService.MutateCampaignLabels + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.CampaignService.GetCampaign + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.CampaignService.MutateCampaigns + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.CampaignSharedSetService.GetCampaignSharedSet + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.CampaignSharedSetService.MutateCampaignSharedSets + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.CarrierConstantService.GetCarrierConstant + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.ChangeStatusService.GetChangeStatus + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.ClickViewService.GetClickView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.CombinedAudienceService.GetCombinedAudience + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.ConversionActionService.GetConversionAction + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.ConversionActionService.MutateConversionActions + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.ConversionAdjustmentUploadService.UploadConversionAdjustments + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.ConversionUploadService.UploadCallConversions + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.ConversionUploadService.UploadClickConversions + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.CurrencyConstantService.GetCurrencyConstant + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.CustomAudienceService.GetCustomAudience + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.CustomAudienceService.MutateCustomAudiences + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.CustomInterestService.GetCustomInterest + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.CustomInterestService.MutateCustomInterests + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.CustomerClientLinkService.GetCustomerClientLink + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.CustomerClientLinkService.MutateCustomerClientLink + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.CustomerClientService.GetCustomerClient + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.CustomerExtensionSettingService.GetCustomerExtensionSetting + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.CustomerExtensionSettingService.MutateCustomerExtensionSettings + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.CustomerFeedService.GetCustomerFeed + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.CustomerFeedService.MutateCustomerFeeds + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.CustomerLabelService.GetCustomerLabel + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.CustomerLabelService.MutateCustomerLabels + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: 'google.ads.googleads.v6.services.CustomerManagerLinkService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.CustomerNegativeCriterionService.GetCustomerNegativeCriterion + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.CustomerNegativeCriterionService.MutateCustomerNegativeCriteria + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: 'google.ads.googleads.v6.services.CustomerService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.CustomerUserAccessInvitationService.GetCustomerUserAccessInvitation + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.CustomerUserAccessInvitationService.MutateCustomerUserAccessInvitation + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.CustomerUserAccessService.GetCustomerUserAccess + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.CustomerUserAccessService.MutateCustomerUserAccess + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.DetailPlacementViewService.GetDetailPlacementView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.DisplayKeywordViewService.GetDisplayKeywordView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.DistanceViewService.GetDistanceView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.DomainCategoryService.GetDomainCategory + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.DynamicSearchAdsSearchTermViewService.GetDynamicSearchAdsSearchTermView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.ExpandedLandingPageViewService.GetExpandedLandingPageView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.ExtensionFeedItemService.GetExtensionFeedItem + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.ExtensionFeedItemService.MutateExtensionFeedItems + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.FeedItemService.GetFeedItem + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.FeedItemService.MutateFeedItems + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.FeedItemSetLinkService.GetFeedItemSetLink + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.FeedItemSetLinkService.MutateFeedItemSetLinks + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.FeedItemSetService.GetFeedItemSet + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.FeedItemSetService.MutateFeedItemSets + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.FeedItemTargetService.GetFeedItemTarget + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.FeedItemTargetService.MutateFeedItemTargets + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.FeedMappingService.GetFeedMapping + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.FeedMappingService.MutateFeedMappings + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.FeedPlaceholderViewService.GetFeedPlaceholderView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.FeedService.GetFeed + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.FeedService.MutateFeeds + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.GenderViewService.GetGenderView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.GeoTargetConstantService.GetGeoTargetConstant + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.GeoTargetConstantService.SuggestGeoTargetConstants + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.GeographicViewService.GetGeographicView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.GoogleAdsFieldService.GetGoogleAdsField + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.GoogleAdsFieldService.SearchGoogleAdsFields + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: 'google.ads.googleads.v6.services.GoogleAdsService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.GroupPlacementViewService.GetGroupPlacementView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.HotelGroupViewService.GetHotelGroupView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.HotelPerformanceViewService.GetHotelPerformanceView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.IncomeRangeViewService.GetIncomeRangeView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.InvoiceService.ListInvoices + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.KeywordPlanAdGroupKeywordService.GetKeywordPlanAdGroupKeyword + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.KeywordPlanAdGroupKeywordService.MutateKeywordPlanAdGroupKeywords + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.KeywordPlanAdGroupService.GetKeywordPlanAdGroup + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.KeywordPlanAdGroupService.MutateKeywordPlanAdGroups + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.KeywordPlanCampaignKeywordService.GetKeywordPlanCampaignKeyword + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.KeywordPlanCampaignKeywordService.MutateKeywordPlanCampaignKeywords + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.KeywordPlanCampaignService.GetKeywordPlanCampaign + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.KeywordPlanCampaignService.MutateKeywordPlanCampaigns + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.KeywordPlanIdeaService.GenerateKeywordIdeas + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: 'google.ads.googleads.v6.services.KeywordPlanService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.KeywordViewService.GetKeywordView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.LabelService.GetLabel + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.LabelService.MutateLabels + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.LandingPageViewService.GetLandingPageView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.LanguageConstantService.GetLanguageConstant + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.LocationViewService.GetLocationView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.ManagedPlacementViewService.GetManagedPlacementView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.MediaFileService.GetMediaFile + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.MediaFileService.MutateMediaFiles + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: 'google.ads.googleads.v6.services.MerchantCenterLinkService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.MobileAppCategoryConstantService.GetMobileAppCategoryConstant + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.MobileDeviceConstantService.GetMobileDeviceConstant + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: 'google.ads.googleads.v6.services.OfflineUserDataJobService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.OperatingSystemVersionConstantService.GetOperatingSystemVersionConstant + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.PaidOrganicSearchTermViewService.GetPaidOrganicSearchTermView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.ParentalStatusViewService.GetParentalStatusView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.PaymentsAccountService.ListPaymentsAccounts + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.ProductBiddingCategoryConstantService.GetProductBiddingCategoryConstant + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.ProductGroupViewService.GetProductGroupView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: 'google.ads.googleads.v6.services.ReachPlanService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: 'google.ads.googleads.v6.services.RecommendationService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.RemarketingActionService.GetRemarketingAction + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.RemarketingActionService.MutateRemarketingActions + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.SearchTermViewService.GetSearchTermView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.SharedCriterionService.GetSharedCriterion + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.SharedCriterionService.MutateSharedCriteria + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.SharedSetService.GetSharedSet + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.SharedSetService.MutateSharedSets + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.ShoppingPerformanceViewService.GetShoppingPerformanceView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.ThirdPartyAppAnalyticsLinkService.GetThirdPartyAppAnalyticsLink + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.ThirdPartyAppAnalyticsLinkService.RegenerateShareableLinkId + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.TopicConstantService.GetTopicConstant + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.TopicViewService.GetTopicView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.UserDataService.UploadUserData + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.UserInterestService.GetUserInterest + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.UserListService.GetUserList + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.UserListService.MutateUserLists + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.UserLocationViewService.GetUserLocationView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: google.ads.googleads.v6.services.VideoService.GetVideo + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords + - selector: 'google.longrunning.Operations.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/adwords diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/BUILD.bazel b/third_party/googleapis/google/ads/googleads/v6/resources/BUILD.bazel new file mode 100644 index 000000000..d79eef3ca --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/BUILD.bazel @@ -0,0 +1,97 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") + +# TODO(ohren): Change srcs to use an enumeration of each individual proto +# instead of *.proto globbing once the build file generator supports +# subpackages. +proto_library( + name = "resources_proto", + srcs = glob(["*.proto"]), + deps = [ + "//google/ads/googleads/v6/common:common_proto", + "//google/ads/googleads/v6/enums:enums_proto", + "//google/ads/googleads/v6/errors:errors_proto", + "//google/api:annotations_proto", + "//google/api:field_behavior_proto", + "//google/api:resource_proto", + "@com_google_protobuf//:field_mask_proto", + "@com_google_protobuf//:wrappers_proto", + ], +) + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_proto_library", +) + +java_proto_library( + name = "resources_java_proto", + deps = [":resources_proto"], +) + +############################################################################## +# PHP +############################################################################## + +# PHP targets are in the parent directory's BUILD.bazel file to facilitate +# aggregating metadata using a single underlying call to protoc. + +############################################################################## +# C# +############################################################################## +load( + "@gapic_generator_csharp//rules_csharp_gapic:csharp_gapic.bzl", + "csharp_proto_library", +) + +csharp_proto_library( + name = "resources_csharp_proto", + deps = [":resources_proto"], +) + +############################################################################## +# Ruby +############################################################################## +load( + "@gapic_generator_ruby//rules_ruby_gapic:ruby_gapic.bzl", + "ruby_proto_library", +) + +ruby_proto_library( + name = "resources_ruby_proto", + deps = [":resources_proto"], +) + +############################################################################## +# Python +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "py_proto_library", +) + +py_proto_library( + name = "resources_py_proto", + deps = [":resources_proto"], +) diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/account_budget.proto b/third_party/googleapis/google/ads/googleads/v6/resources/account_budget.proto new file mode 100644 index 000000000..0cd6c671b --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/account_budget.proto @@ -0,0 +1,252 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/enums/account_budget_proposal_type.proto"; +import "google/ads/googleads/v6/enums/account_budget_status.proto"; +import "google/ads/googleads/v6/enums/spending_limit_type.proto"; +import "google/ads/googleads/v6/enums/time_type.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "AccountBudgetProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the AccountBudget resource. + +// An account-level budget. It contains information about the budget itself, +// as well as the most recently approved changes to the budget and proposed +// changes that are pending approval. The proposed changes that are pending +// approval, if any, are found in 'pending_proposal'. Effective details about +// the budget are found in fields prefixed 'approved_', 'adjusted_' and those +// without a prefix. Since some effective details may differ from what the user +// had originally requested (e.g. spending limit), these differences are +// juxtaposed via 'proposed_', 'approved_', and possibly 'adjusted_' fields. +// +// This resource is mutated using AccountBudgetProposal and cannot be mutated +// directly. A budget may have at most one pending proposal at any given time. +// It is read through pending_proposal. +// +// Once approved, a budget may be subject to adjustments, such as credit +// adjustments. Adjustments create differences between the 'approved' and +// 'adjusted' fields, which would otherwise be identical. +message AccountBudget { + option (google.api.resource) = { + type: "googleads.googleapis.com/AccountBudget" + pattern: "customers/{customer_id}/accountBudgets/{account_budget_id}" + }; + + // A pending proposal associated with the enclosing account-level budget, + // if applicable. + message PendingAccountBudgetProposal { + // Output only. The resource name of the proposal. + // AccountBudgetProposal resource names have the form: + // + // `customers/{customer_id}/accountBudgetProposals/{account_budget_proposal_id}` + optional string account_budget_proposal = 12 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AccountBudgetProposal" + } + ]; + + // Output only. The type of this proposal, e.g. END to end the budget associated + // with this proposal. + google.ads.googleads.v6.enums.AccountBudgetProposalTypeEnum.AccountBudgetProposalType proposal_type = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The name to assign to the account-level budget. + optional string name = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The start time in yyyy-MM-dd HH:mm:ss format. + optional string start_date_time = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A purchase order number is a value that helps users reference this budget + // in their monthly invoices. + optional string purchase_order_number = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Notes associated with this budget. + optional string notes = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time when this account-level budget proposal was created. + // Formatted as yyyy-MM-dd HH:mm:ss. + optional string creation_date_time = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The end time of the account-level budget. + oneof end_time { + // Output only. The end time in yyyy-MM-dd HH:mm:ss format. + string end_date_time = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The end time as a well-defined type, e.g. FOREVER. + google.ads.googleads.v6.enums.TimeTypeEnum.TimeType end_time_type = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The spending limit. + oneof spending_limit { + // Output only. The spending limit in micros. One million is equivalent to + // one unit. + int64 spending_limit_micros = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The spending limit as a well-defined type, e.g. INFINITE. + google.ads.googleads.v6.enums.SpendingLimitTypeEnum.SpendingLimitType spending_limit_type = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + } + + // Output only. The resource name of the account-level budget. + // AccountBudget resource names have the form: + // + // `customers/{customer_id}/accountBudgets/{account_budget_id}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AccountBudget" + } + ]; + + // Output only. The ID of the account-level budget. + optional int64 id = 23 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The resource name of the billing setup associated with this account-level + // budget. BillingSetup resource names have the form: + // + // `customers/{customer_id}/billingSetups/{billing_setup_id}` + optional string billing_setup = 24 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/BillingSetup" + } + ]; + + // Output only. The status of this account-level budget. + google.ads.googleads.v6.enums.AccountBudgetStatusEnum.AccountBudgetStatus status = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The name of the account-level budget. + optional string name = 25 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The proposed start time of the account-level budget in + // yyyy-MM-dd HH:mm:ss format. If a start time type of NOW was proposed, + // this is the time of request. + optional string proposed_start_date_time = 26 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The approved start time of the account-level budget in yyyy-MM-dd HH:mm:ss + // format. + // + // For example, if a new budget is approved after the proposed start time, + // the approved start time is the time of approval. + optional string approved_start_date_time = 27 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The total adjustments amount. + // + // An example of an adjustment is courtesy credits. + int64 total_adjustments_micros = 33 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The value of Ads that have been served, in micros. + // + // This includes overdelivery costs, in which case a credit might be + // automatically applied to the budget (see total_adjustments_micros). + int64 amount_served_micros = 34 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A purchase order number is a value that helps users reference this budget + // in their monthly invoices. + optional string purchase_order_number = 35 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Notes associated with the budget. + optional string notes = 36 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The pending proposal to modify this budget, if applicable. + PendingAccountBudgetProposal pending_proposal = 22 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The proposed end time of the account-level budget. + oneof proposed_end_time { + // Output only. The proposed end time in yyyy-MM-dd HH:mm:ss format. + string proposed_end_date_time = 28 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The proposed end time as a well-defined type, e.g. FOREVER. + google.ads.googleads.v6.enums.TimeTypeEnum.TimeType proposed_end_time_type = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The approved end time of the account-level budget. + // + // For example, if a budget's end time is updated and the proposal is approved + // after the proposed end time, the approved end time is the time of approval. + oneof approved_end_time { + // Output only. The approved end time in yyyy-MM-dd HH:mm:ss format. + string approved_end_date_time = 29 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The approved end time as a well-defined type, e.g. FOREVER. + google.ads.googleads.v6.enums.TimeTypeEnum.TimeType approved_end_time_type = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The proposed spending limit. + oneof proposed_spending_limit { + // Output only. The proposed spending limit in micros. One million is equivalent to + // one unit. + int64 proposed_spending_limit_micros = 30 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The proposed spending limit as a well-defined type, e.g. INFINITE. + google.ads.googleads.v6.enums.SpendingLimitTypeEnum.SpendingLimitType proposed_spending_limit_type = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The approved spending limit. + // + // For example, if the amount already spent by the account exceeds the + // proposed spending limit at the time the proposal is approved, the approved + // spending limit is set to the amount already spent. + oneof approved_spending_limit { + // Output only. The approved spending limit in micros. One million is equivalent to + // one unit. This will only be populated if the proposed spending limit + // is finite, and will always be greater than or equal to the + // proposed spending limit. + int64 approved_spending_limit_micros = 31 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. 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.v6.enums.SpendingLimitTypeEnum.SpendingLimitType approved_spending_limit_type = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The spending limit after adjustments have been applied. Adjustments are + // stored in total_adjustments_micros. + // + // This value has the final say on how much the account is allowed to spend. + oneof adjusted_spending_limit { + // Output only. The adjusted spending limit in micros. One million is equivalent to + // one unit. + // + // If the approved spending limit is finite, the adjusted + // spending limit may vary depending on the types of adjustments applied + // to this budget, if applicable. + // + // The different kinds of adjustments are described here: + // https://support.google.com/google-ads/answer/1704323 + // + // For example, a debit adjustment reduces how much the account is + // allowed to spend. + int64 adjusted_spending_limit_micros = 32 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The adjusted spending limit as a well-defined type, e.g. INFINITE. + // 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.v6.enums.SpendingLimitTypeEnum.SpendingLimitType adjusted_spending_limit_type = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; + } +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/account_budget_proposal.proto b/third_party/googleapis/google/ads/googleads/v6/resources/account_budget_proposal.proto new file mode 100644 index 000000000..540dc56cf --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/account_budget_proposal.proto @@ -0,0 +1,160 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/enums/account_budget_proposal_status.proto"; +import "google/ads/googleads/v6/enums/account_budget_proposal_type.proto"; +import "google/ads/googleads/v6/enums/spending_limit_type.proto"; +import "google/ads/googleads/v6/enums/time_type.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "AccountBudgetProposalProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the AccountBudgetProposal resource. + +// An account-level budget proposal. +// +// All fields prefixed with 'proposed' may not necessarily be applied directly. +// For example, proposed spending limits may be adjusted before their +// application. This is true if the 'proposed' field has an 'approved' +// counterpart, e.g. spending limits. +// +// Please note that the proposal type (proposal_type) changes which fields are +// required and which must remain empty. +message AccountBudgetProposal { + option (google.api.resource) = { + type: "googleads.googleapis.com/AccountBudgetProposal" + pattern: "customers/{customer_id}/accountBudgetProposals/{account_budget_proposal_id}" + }; + + // Immutable. The resource name of the proposal. + // AccountBudgetProposal resource names have the form: + // + // `customers/{customer_id}/accountBudgetProposals/{account_budget_proposal_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AccountBudgetProposal" + } + ]; + + // Output only. The ID of the proposal. + optional int64 id = 25 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. The resource name of the billing setup associated with this proposal. + optional string billing_setup = 26 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/BillingSetup" + } + ]; + + // Immutable. The resource name of the account-level budget associated with this + // proposal. + optional string account_budget = 27 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AccountBudget" + } + ]; + + // Immutable. The type of this proposal, e.g. END to end the budget associated with this + // proposal. + google.ads.googleads.v6.enums.AccountBudgetProposalTypeEnum.AccountBudgetProposalType proposal_type = 4 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. The status of this proposal. + // When a new proposal is created, the status defaults to PENDING. + google.ads.googleads.v6.enums.AccountBudgetProposalStatusEnum.AccountBudgetProposalStatus status = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. The name to assign to the account-level budget. + optional string proposed_name = 28 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. The approved start date time in yyyy-mm-dd hh:mm:ss format. + optional string approved_start_date_time = 30 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. A purchase order number is a value that enables the user to help them + // reference this budget in their monthly invoices. + optional string proposed_purchase_order_number = 35 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Notes associated with this budget. + optional string proposed_notes = 36 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. The date time when this account-level budget proposal was created, which is + // not the same as its approval date time, if applicable. + optional string creation_date_time = 37 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The date time when this account-level budget was approved, if applicable. + optional string approval_date_time = 38 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The proposed start date time of the account-level budget, which cannot be + // in the past. + oneof proposed_start_time { + // Immutable. The proposed start date time in yyyy-mm-dd hh:mm:ss format. + string proposed_start_date_time = 29 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. The proposed start date time as a well-defined type, e.g. NOW. + google.ads.googleads.v6.enums.TimeTypeEnum.TimeType proposed_start_time_type = 7 [(google.api.field_behavior) = IMMUTABLE]; + } + + // The proposed end date time of the account-level budget, which cannot be in + // the past. + oneof proposed_end_time { + // Immutable. The proposed end date time in yyyy-mm-dd hh:mm:ss format. + string proposed_end_date_time = 31 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. The proposed end date time as a well-defined type, e.g. FOREVER. + google.ads.googleads.v6.enums.TimeTypeEnum.TimeType proposed_end_time_type = 9 [(google.api.field_behavior) = IMMUTABLE]; + } + + // The approved end date time of the account-level budget. + oneof approved_end_time { + // Output only. The approved end date time in yyyy-mm-dd hh:mm:ss format. + string approved_end_date_time = 32 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The approved end date time as a well-defined type, e.g. FOREVER. + google.ads.googleads.v6.enums.TimeTypeEnum.TimeType approved_end_time_type = 22 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The proposed spending limit. + oneof proposed_spending_limit { + // Immutable. The proposed spending limit in micros. One million is equivalent to + // one unit. + int64 proposed_spending_limit_micros = 33 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. The proposed spending limit as a well-defined type, e.g. INFINITE. + google.ads.googleads.v6.enums.SpendingLimitTypeEnum.SpendingLimitType proposed_spending_limit_type = 11 [(google.api.field_behavior) = IMMUTABLE]; + } + + // The approved spending limit. + oneof approved_spending_limit { + // Output only. The approved spending limit in micros. One million is equivalent to + // one unit. + int64 approved_spending_limit_micros = 34 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The approved spending limit as a well-defined type, e.g. INFINITE. + google.ads.googleads.v6.enums.SpendingLimitTypeEnum.SpendingLimitType approved_spending_limit_type = 24 [(google.api.field_behavior) = OUTPUT_ONLY]; + } +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/account_link.proto b/third_party/googleapis/google/ads/googleads/v6/resources/account_link.proto new file mode 100644 index 000000000..535dbb7a3 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/account_link.proto @@ -0,0 +1,125 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/enums/account_link_status.proto"; +import "google/ads/googleads/v6/enums/linked_account_type.proto"; +import "google/ads/googleads/v6/enums/mobile_app_vendor.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "AccountLinkProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Represents the data sharing connection between a Google Ads account and +// another account +message AccountLink { + option (google.api.resource) = { + type: "googleads.googleapis.com/AccountLink" + pattern: "customers/{customer_id}/accountLinks/{account_link_id}" + }; + + // Immutable. Resource name of the account link. + // AccountLink resource names have the form: + // `customers/{customer_id}/accountLinks/{account_link_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AccountLink" + } + ]; + + // Output only. The ID of the link. + // This field is read only. + optional int64 account_link_id = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The status of the link. + google.ads.googleads.v6.enums.AccountLinkStatusEnum.AccountLinkStatus status = 3; + + // Output only. The type of the linked account. + google.ads.googleads.v6.enums.LinkedAccountTypeEnum.LinkedAccountType type = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // An account linked to this Google Ads account. + oneof linked_account { + // Immutable. A third party app analytics link. + ThirdPartyAppAnalyticsLinkIdentifier third_party_app_analytics = 5 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. Data partner link. + DataPartnerLinkIdentifier data_partner = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Google Ads link. + GoogleAdsLinkIdentifier google_ads = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + } +} + +// The identifiers of a Third Party App Analytics Link. +message ThirdPartyAppAnalyticsLinkIdentifier { + // Immutable. The ID of the app analytics provider. + // This field should not be empty when creating a new third + // party app analytics link. It is unable to be modified after the creation of + // the link. + optional int64 app_analytics_provider_id = 4 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. A string that uniquely identifies a mobile application from which the data + // was collected to the Google Ads API. For iOS, the ID string is the 9 digit + // string that appears at the end of an App Store URL (e.g., "422689480" for + // "Gmail" whose App Store link is + // https://apps.apple.com/us/app/gmail-email-by-google/id422689480). For + // Android, the ID string is the application's package name (e.g., + // "com.google.android.gm" for "Gmail" given Google Play link + // https://play.google.com/store/apps/details?id=com.google.android.gm) + // This field should not be empty when creating a new third + // party app analytics link. It is unable to be modified after the creation of + // the link. + optional string app_id = 5 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. The vendor of the app. + // This field should not be empty when creating a new third + // party app analytics link. It is unable to be modified after the creation of + // the link. + google.ads.googleads.v6.enums.MobileAppVendorEnum.MobileAppVendor app_vendor = 3 [(google.api.field_behavior) = IMMUTABLE]; +} + +// The identifier for Data Partner account. +message DataPartnerLinkIdentifier { + // Immutable. The customer ID of the Data partner account. + // This field is required and should not be empty when creating a new + // data partner link. It is unable to be modified after the creation of + // the link. + optional int64 data_partner_id = 1 [(google.api.field_behavior) = IMMUTABLE]; +} + +// The identifier for Google Ads account. +message GoogleAdsLinkIdentifier { + // Immutable. The resource name of the Google Ads account. + // This field is required and should not be empty when creating a new + // Google Ads link. It is unable to be modified after the creation of + // the link. + optional string customer = 3 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Customer" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/ad.proto b/third_party/googleapis/google/ads/googleads/v6/resources/ad.proto new file mode 100644 index 000000000..b61310fc3 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/ad.proto @@ -0,0 +1,185 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/common/ad_type_infos.proto"; +import "google/ads/googleads/v6/common/custom_parameter.proto"; +import "google/ads/googleads/v6/common/final_app_url.proto"; +import "google/ads/googleads/v6/common/url_collection.proto"; +import "google/ads/googleads/v6/enums/ad_type.proto"; +import "google/ads/googleads/v6/enums/device.proto"; +import "google/ads/googleads/v6/enums/system_managed_entity_source.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "AdProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the ad type. + +// An ad. +message Ad { + option (google.api.resource) = { + type: "googleads.googleapis.com/Ad" + pattern: "customers/{customer_id}/ads/{ad_id}" + }; + + // Immutable. The resource name of the ad. + // Ad resource names have the form: + // + // `customers/{customer_id}/ads/{ad_id}` + string resource_name = 37 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Ad" + } + ]; + + // Output only. The ID of the ad. + optional int64 id = 40 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The list of possible final URLs after all cross-domain redirects for the + // ad. + repeated string final_urls = 41; + + // A list of final app URLs that will be used on mobile if the user has the + // specific app installed. + repeated google.ads.googleads.v6.common.FinalAppUrl final_app_urls = 35; + + // The list of possible final mobile URLs after all cross-domain redirects + // for the ad. + repeated string final_mobile_urls = 42; + + // The URL template for constructing a tracking URL. + optional string tracking_url_template = 43; + + // The suffix to use when constructing a final URL. + optional string final_url_suffix = 44; + + // The list of mappings that can be used to substitute custom parameter tags + // in a `tracking_url_template`, `final_urls`, or `mobile_final_urls`. + // For mutates, please use url custom parameter operations. + repeated google.ads.googleads.v6.common.CustomParameter url_custom_parameters = 10; + + // The URL that appears in the ad description for some ad formats. + optional string display_url = 45; + + // Output only. The type of ad. + google.ads.googleads.v6.enums.AdTypeEnum.AdType type = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Indicates if this ad was automatically added by Google Ads and not by a + // user. For example, this could happen when ads are automatically created as + // suggestions for new ads based on knowledge of how existing ads are + // performing. + optional bool added_by_google_ads = 46 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The device preference for the ad. You can only specify a preference for + // mobile devices. When this preference is set the ad will be preferred over + // other ads when being displayed on a mobile device. The ad can still be + // displayed on other device types, e.g. if no other ads are available. + // If unspecified (no device preference), all devices are targeted. + // This is only supported by some ad types. + google.ads.googleads.v6.enums.DeviceEnum.Device device_preference = 20; + + // Additional URLs for the ad that are tagged with a unique identifier that + // can be referenced from other fields in the ad. + repeated google.ads.googleads.v6.common.UrlCollection url_collections = 26; + + // Immutable. The name of the ad. This is only used to be able to identify the ad. It + // does not need to be unique and does not affect the served ad. The name + // field is currently only supported for DisplayUploadAd, ImageAd, + // ShoppingComparisonListingAd and VideoAd. + optional string name = 47 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. If this ad is system managed, then this field will indicate the source. + // This field is read-only. + google.ads.googleads.v6.enums.SystemManagedResourceSourceEnum.SystemManagedResourceSource system_managed_resource_source = 27 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Details pertinent to the ad type. Exactly one value must be set. + oneof ad_data { + // Immutable. Details pertaining to a text ad. + google.ads.googleads.v6.common.TextAdInfo text_ad = 6 [(google.api.field_behavior) = IMMUTABLE]; + + // Details pertaining to an expanded text ad. + google.ads.googleads.v6.common.ExpandedTextAdInfo expanded_text_ad = 7; + + // Details pertaining to a call-only ad. + google.ads.googleads.v6.common.CallOnlyAdInfo call_only_ad = 13; + + // Immutable. Details pertaining to an Expanded Dynamic Search Ad. + // This type of ad has its headline, final URLs, and display URL + // 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.v6.common.ExpandedDynamicSearchAdInfo expanded_dynamic_search_ad = 14 [(google.api.field_behavior) = IMMUTABLE]; + + // Details pertaining to a hotel ad. + google.ads.googleads.v6.common.HotelAdInfo hotel_ad = 15; + + // Details pertaining to a Smart Shopping ad. + google.ads.googleads.v6.common.ShoppingSmartAdInfo shopping_smart_ad = 17; + + // Details pertaining to a Shopping product ad. + google.ads.googleads.v6.common.ShoppingProductAdInfo shopping_product_ad = 18; + + // Immutable. Details pertaining to a Gmail ad. + google.ads.googleads.v6.common.GmailAdInfo gmail_ad = 21 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Details pertaining to an Image ad. + google.ads.googleads.v6.common.ImageAdInfo image_ad = 22 [(google.api.field_behavior) = IMMUTABLE]; + + // Details pertaining to a Video ad. + google.ads.googleads.v6.common.VideoAdInfo video_ad = 24; + + // Details pertaining to a Video responsive ad. + google.ads.googleads.v6.common.VideoResponsiveAdInfo video_responsive_ad = 39; + + // Details pertaining to a responsive search ad. + google.ads.googleads.v6.common.ResponsiveSearchAdInfo responsive_search_ad = 25; + + // Details pertaining to a legacy responsive display ad. + google.ads.googleads.v6.common.LegacyResponsiveDisplayAdInfo legacy_responsive_display_ad = 28; + + // Details pertaining to an app ad. + google.ads.googleads.v6.common.AppAdInfo app_ad = 29; + + // Immutable. Details pertaining to a legacy app install ad. + google.ads.googleads.v6.common.LegacyAppInstallAdInfo legacy_app_install_ad = 30 [(google.api.field_behavior) = IMMUTABLE]; + + // Details pertaining to a responsive display ad. + google.ads.googleads.v6.common.ResponsiveDisplayAdInfo responsive_display_ad = 31; + + // Details pertaining to a local ad. + google.ads.googleads.v6.common.LocalAdInfo local_ad = 32; + + // Details pertaining to a display upload ad. + google.ads.googleads.v6.common.DisplayUploadAdInfo display_upload_ad = 33; + + // Details pertaining to an app engagement ad. + google.ads.googleads.v6.common.AppEngagementAdInfo app_engagement_ad = 34; + + // Details pertaining to a Shopping Comparison Listing ad. + google.ads.googleads.v6.common.ShoppingComparisonListingAdInfo shopping_comparison_listing_ad = 36; + } +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/ad_group.proto b/third_party/googleapis/google/ads/googleads/v6/resources/ad_group.proto new file mode 100644 index 000000000..cad917d50 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/ad_group.proto @@ -0,0 +1,176 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/common/custom_parameter.proto"; +import "google/ads/googleads/v6/common/explorer_auto_optimizer_setting.proto"; +import "google/ads/googleads/v6/common/targeting_setting.proto"; +import "google/ads/googleads/v6/enums/ad_group_ad_rotation_mode.proto"; +import "google/ads/googleads/v6/enums/ad_group_status.proto"; +import "google/ads/googleads/v6/enums/ad_group_type.proto"; +import "google/ads/googleads/v6/enums/bidding_source.proto"; +import "google/ads/googleads/v6/enums/targeting_dimension.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "AdGroupProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the ad group resource. + +// An ad group. +message AdGroup { + option (google.api.resource) = { + type: "googleads.googleapis.com/AdGroup" + pattern: "customers/{customer_id}/adGroups/{ad_group_id}" + }; + + // Immutable. The resource name of the ad group. + // Ad group resource names have the form: + // + // `customers/{customer_id}/adGroups/{ad_group_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroup" + } + ]; + + // Output only. The ID of the ad group. + optional int64 id = 34 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The name of the ad group. + // + // This field is required and should not be empty when creating new ad + // groups. + // + // It must contain fewer than 255 UTF-8 full-width characters. + // + // It must not contain any null (code point 0x0), NL line feed + // (code point 0xA) or carriage return (code point 0xD) characters. + optional string name = 35; + + // The status of the ad group. + google.ads.googleads.v6.enums.AdGroupStatusEnum.AdGroupStatus status = 5; + + // Immutable. The type of the ad group. + google.ads.googleads.v6.enums.AdGroupTypeEnum.AdGroupType type = 12 [(google.api.field_behavior) = IMMUTABLE]; + + // The ad rotation mode of the ad group. + google.ads.googleads.v6.enums.AdGroupAdRotationModeEnum.AdGroupAdRotationMode ad_rotation_mode = 22; + + // Output only. 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 + // experiment ad group does not have a base ad group, then this field is null. + // + // For base ad groups, this field equals the ad group resource name. + // + // This field is read-only. + optional string base_ad_group = 36 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroup" + } + ]; + + // The URL template for constructing a tracking URL. + optional string tracking_url_template = 37; + + // 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.v6.common.CustomParameter url_custom_parameters = 6; + + // Immutable. The campaign to which the ad group belongs. + optional string campaign = 38 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Campaign" + } + ]; + + // The maximum CPC (cost-per-click) bid. + optional int64 cpc_bid_micros = 39; + + // The maximum CPM (cost-per-thousand viewable impressions) bid. + optional int64 cpm_bid_micros = 40; + + // The target CPA (cost-per-acquisition). + optional int64 target_cpa_micros = 41; + + // Output only. The CPV (cost-per-view) bid. + optional int64 cpv_bid_micros = 42 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Average amount in micros that the advertiser is willing to pay for every + // thousand times the ad is shown. + optional int64 target_cpm_micros = 43; + + // The target ROAS (return-on-ad-spend) override. If the ad group's campaign + // bidding strategy is a standard Target ROAS strategy, then this field + // overrides the target ROAS specified in the campaign's bidding strategy. + // Otherwise, this value is ignored. + optional double target_roas = 44; + + // The percent cpc bid amount, expressed as a fraction of the advertised price + // for some good or service. The valid range for the fraction is [0,1) and the + // value stored here is 1,000,000 * [fraction]. + optional int64 percent_cpc_bid_micros = 45; + + // Settings for the Display Campaign Optimizer, initially termed "Explorer". + google.ads.googleads.v6.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.v6.enums.TargetingDimensionEnum.TargetingDimension display_custom_bid_dimension = 23; + + // URL template for appending params to Final URL. + optional string final_url_suffix = 46; + + // Setting for targeting related features. + google.ads.googleads.v6.common.TargetingSetting targeting_setting = 25; + + // Output only. The effective target CPA (cost-per-acquisition). + // This field is read-only. + optional int64 effective_target_cpa_micros = 47 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Source of the effective target CPA. + // This field is read-only. + google.ads.googleads.v6.enums.BiddingSourceEnum.BiddingSource effective_target_cpa_source = 29 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The effective target ROAS (return-on-ad-spend). + // This field is read-only. + optional double effective_target_roas = 48 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Source of the effective target ROAS. + // This field is read-only. + google.ads.googleads.v6.enums.BiddingSourceEnum.BiddingSource effective_target_roas_source = 32 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The resource names of labels attached to this ad group. + repeated string labels = 49 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroupLabel" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/ad_group_ad.proto b/third_party/googleapis/google/ads/googleads/v6/resources/ad_group_ad.proto new file mode 100644 index 000000000..25da78904 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/ad_group_ad.proto @@ -0,0 +1,90 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/common/policy.proto"; +import "google/ads/googleads/v6/enums/ad_group_ad_status.proto"; +import "google/ads/googleads/v6/enums/ad_strength.proto"; +import "google/ads/googleads/v6/enums/policy_approval_status.proto"; +import "google/ads/googleads/v6/enums/policy_review_status.proto"; +import "google/ads/googleads/v6/resources/ad.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "AdGroupAdProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the ad group ad resource. + +// An ad group ad. +message AdGroupAd { + option (google.api.resource) = { + type: "googleads.googleapis.com/AdGroupAd" + pattern: "customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}" + }; + + // Immutable. The resource name of the ad. + // Ad group ad resource names have the form: + // + // `customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroupAd" + } + ]; + + // The status of the ad. + google.ads.googleads.v6.enums.AdGroupAdStatusEnum.AdGroupAdStatus status = 3; + + // Immutable. The ad group to which the ad belongs. + optional string ad_group = 9 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroup" + } + ]; + + // Immutable. The ad. + Ad ad = 5 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. Policy information for the ad. + AdGroupAdPolicySummary policy_summary = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Overall ad strength for this ad group ad. + google.ads.googleads.v6.enums.AdStrengthEnum.AdStrength ad_strength = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Contains policy information for an ad. +message AdGroupAdPolicySummary { + // Output only. The list of policy findings for this ad. + repeated google.ads.googleads.v6.common.PolicyTopicEntry policy_topic_entries = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Where in the review process this ad is. + google.ads.googleads.v6.enums.PolicyReviewStatusEnum.PolicyReviewStatus review_status = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The overall approval status of this ad, calculated based on the status of + // its individual policy topic entries. + google.ads.googleads.v6.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus approval_status = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/ad_group_ad_asset_view.proto b/third_party/googleapis/google/ads/googleads/v6/resources/ad_group_ad_asset_view.proto new file mode 100644 index 000000000..88cfbf658 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/ad_group_ad_asset_view.proto @@ -0,0 +1,105 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/common/policy.proto"; +import "google/ads/googleads/v6/enums/asset_field_type.proto"; +import "google/ads/googleads/v6/enums/asset_performance_label.proto"; +import "google/ads/googleads/v6/enums/policy_approval_status.proto"; +import "google/ads/googleads/v6/enums/policy_review_status.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "AdGroupAdAssetViewProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the ad group ad asset view resource. + +// A link between an AdGroupAd and an Asset. +// Currently we only support AdGroupAdAssetView for AppAds. +message AdGroupAdAssetView { + option (google.api.resource) = { + type: "googleads.googleapis.com/AdGroupAdAssetView" + pattern: "customers/{customer_id}/adGroupAdAssetViews/{ad_group_id}~{ad_id}~{asset_id}~{field_type}" + }; + + // Output only. The resource name of the ad group ad asset view. + // Ad group ad asset view resource names have the form (Before V4): + // + // `customers/{customer_id}/adGroupAdAssets/{AdGroupAdAsset.ad_group_id}~{AdGroupAdAsset.ad.ad_id}~{AdGroupAdAsset.asset_id}~{AdGroupAdAsset.field_type}` + // + // Ad group ad asset view resource names have the form (Beginning from V4): + // + // `customers/{customer_id}/adGroupAdAssetViews/{AdGroupAdAsset.ad_group_id}~{AdGroupAdAsset.ad_id}~{AdGroupAdAsset.asset_id}~{AdGroupAdAsset.field_type}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroupAdAssetView" + } + ]; + + // Output only. The ad group ad to which the asset is linked. + optional string ad_group_ad = 9 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroupAd" + } + ]; + + // Output only. The asset which is linked to the ad group ad. + optional string asset = 10 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Asset" + } + ]; + + // Output only. Role that the asset takes in the ad. + google.ads.googleads.v6.enums.AssetFieldTypeEnum.AssetFieldType field_type = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The status between the asset and the latest version of the ad. If true, the + // asset is linked to the latest version of the ad. If false, it means the + // link once existed but has been removed and is no longer present in the + // latest version of the ad. + optional bool enabled = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Policy information for the ad group ad asset. + AdGroupAdAssetPolicySummary policy_summary = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Performance of an asset linkage. + google.ads.googleads.v6.enums.AssetPerformanceLabelEnum.AssetPerformanceLabel performance_label = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Contains policy information for an ad group ad asset. +message AdGroupAdAssetPolicySummary { + // Output only. The list of policy findings for the ad group ad asset. + repeated google.ads.googleads.v6.common.PolicyTopicEntry policy_topic_entries = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Where in the review process this ad group ad asset is. + google.ads.googleads.v6.enums.PolicyReviewStatusEnum.PolicyReviewStatus review_status = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The overall approval status of this ad group ad asset, calculated based on + // the status of its individual policy topic entries. + google.ads.googleads.v6.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus approval_status = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/ad_group_ad_label.proto b/third_party/googleapis/google/ads/googleads/v6/resources/ad_group_ad_label.proto new file mode 100644 index 000000000..e90a5e979 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/ad_group_ad_label.proto @@ -0,0 +1,66 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "AdGroupAdLabelProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the ad group ad label resource. + +// A relationship between an ad group ad and a label. +message AdGroupAdLabel { + option (google.api.resource) = { + type: "googleads.googleapis.com/AdGroupAdLabel" + pattern: "customers/{customer_id}/adGroupAdLabels/{ad_group_id}~{ad_id}~{label_id}" + }; + + // Immutable. The resource name of the ad group ad label. + // Ad group ad label resource names have the form: + // `customers/{customer_id}/adGroupAdLabels/{ad_group_id}~{ad_id}~{label_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroupAdLabel" + } + ]; + + // Immutable. The ad group ad to which the label is attached. + optional string ad_group_ad = 4 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroupAd" + } + ]; + + // Immutable. The label assigned to the ad group ad. + optional string label = 5 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Label" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/ad_group_audience_view.proto b/third_party/googleapis/google/ads/googleads/v6/resources/ad_group_audience_view.proto new file mode 100644 index 000000000..20456f0cb --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/ad_group_audience_view.proto @@ -0,0 +1,54 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "AdGroupAudienceViewProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the ad group audience view resource. + +// An ad group audience view. +// Includes performance data from interests and remarketing lists for Display +// Network and YouTube Network ads, and remarketing lists for search ads (RLSA), +// aggregated at the audience level. +message AdGroupAudienceView { + option (google.api.resource) = { + type: "googleads.googleapis.com/AdGroupAudienceView" + pattern: "customers/{customer_id}/adGroupAudienceViews/{ad_group_id}~{criterion_id}" + }; + + // Output only. The resource name of the ad group audience view. + // Ad group audience view resource names have the form: + // + // `customers/{customer_id}/adGroupAudienceViews/{ad_group_id}~{criterion_id}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroupAudienceView" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/ad_group_bid_modifier.proto b/third_party/googleapis/google/ads/googleads/v6/resources/ad_group_bid_modifier.proto new file mode 100644 index 000000000..071ec56cb --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/ad_group_bid_modifier.proto @@ -0,0 +1,109 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/common/criteria.proto"; +import "google/ads/googleads/v6/enums/bid_modifier_source.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "AdGroupBidModifierProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the ad group bid modifier resource. + +// Represents an ad group bid modifier. +message AdGroupBidModifier { + option (google.api.resource) = { + type: "googleads.googleapis.com/AdGroupBidModifier" + pattern: "customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}" + }; + + // Immutable. The resource name of the ad group bid modifier. + // Ad group bid modifier resource names have the form: + // + // `customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroupBidModifier" + } + ]; + + // Immutable. The ad group to which this criterion belongs. + optional string ad_group = 13 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroup" + } + ]; + + // Output only. The ID of the criterion to bid modify. + // + // This field is ignored for mutates. + optional int64 criterion_id = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The modifier for the bid when the criterion matches. The modifier must be + // in the range: 0.1 - 10.0. The range is 1.0 - 6.0 for PreferredContent. + // Use 0 to opt out of a Device type. + optional double bid_modifier = 15; + + // Output only. The base ad group from which this draft/trial adgroup bid modifier was + // created. If ad_group is a base ad group then this field will be equal to + // ad_group. If the ad group was created in the draft or trial and has no + // corresponding base ad group, then this field will be null. + // This field is readonly. + optional string base_ad_group = 16 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroup" + } + ]; + + // Output only. Bid modifier source. + google.ads.googleads.v6.enums.BidModifierSourceEnum.BidModifierSource bid_modifier_source = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The criterion of this ad group bid modifier. + // + // Required in create operations starting in V5. + oneof criterion { + // Immutable. Criterion for hotel date selection (default dates vs. user selected). + google.ads.googleads.v6.common.HotelDateSelectionTypeInfo hotel_date_selection_type = 5 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Criterion for number of days prior to the stay the booking is being made. + google.ads.googleads.v6.common.HotelAdvanceBookingWindowInfo hotel_advance_booking_window = 6 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Criterion for length of hotel stay in nights. + google.ads.googleads.v6.common.HotelLengthOfStayInfo hotel_length_of_stay = 7 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Criterion for day of the week the booking is for. + google.ads.googleads.v6.common.HotelCheckInDayInfo hotel_check_in_day = 8 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. A device criterion. + google.ads.googleads.v6.common.DeviceInfo device = 11 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. A preferred content criterion. + google.ads.googleads.v6.common.PreferredContentInfo preferred_content = 12 [(google.api.field_behavior) = IMMUTABLE]; + } +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/ad_group_criterion.proto b/third_party/googleapis/google/ads/googleads/v6/resources/ad_group_criterion.proto new file mode 100644 index 000000000..1c947806f --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/ad_group_criterion.proto @@ -0,0 +1,278 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/common/criteria.proto"; +import "google/ads/googleads/v6/common/custom_parameter.proto"; +import "google/ads/googleads/v6/enums/ad_group_criterion_approval_status.proto"; +import "google/ads/googleads/v6/enums/ad_group_criterion_status.proto"; +import "google/ads/googleads/v6/enums/bidding_source.proto"; +import "google/ads/googleads/v6/enums/criterion_system_serving_status.proto"; +import "google/ads/googleads/v6/enums/criterion_type.proto"; +import "google/ads/googleads/v6/enums/quality_score_bucket.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "AdGroupCriterionProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the ad group criterion resource. + +// An ad group criterion. +message AdGroupCriterion { + option (google.api.resource) = { + type: "googleads.googleapis.com/AdGroupCriterion" + pattern: "customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}" + }; + + // A container for ad group criterion quality information. + message QualityInfo { + // Output only. The quality score. + // + // This field may not be populated if Google does not have enough + // information to determine a value. + optional int32 quality_score = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The performance of the ad compared to other advertisers. + google.ads.googleads.v6.enums.QualityScoreBucketEnum.QualityScoreBucket creative_quality_score = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The quality score of the landing page. + google.ads.googleads.v6.enums.QualityScoreBucketEnum.QualityScoreBucket post_click_quality_score = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The click-through rate compared to that of other advertisers. + google.ads.googleads.v6.enums.QualityScoreBucketEnum.QualityScoreBucket search_predicted_ctr = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Estimates for criterion bids at various positions. + message PositionEstimates { + // Output only. The estimate of the CPC bid required for ad to be shown on first + // page of search results. + optional int64 first_page_cpc_micros = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The estimate of the CPC bid required for ad to be displayed in first + // position, at the top of the first page of search results. + optional int64 first_position_cpc_micros = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The estimate of the CPC bid required for ad to be displayed at the top + // of the first page of search results. + optional int64 top_of_page_cpc_micros = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Estimate of how many clicks per week you might get by changing your + // keyword bid to the value in first_position_cpc_micros. + optional int64 estimated_add_clicks_at_first_position_cpc = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Estimate of how your cost per week might change when changing your + // keyword bid to the value in first_position_cpc_micros. + optional int64 estimated_add_cost_at_first_position_cpc = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Immutable. The resource name of the ad group criterion. + // Ad group criterion resource names have the form: + // + // `customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroupCriterion" + } + ]; + + // Output only. The ID of the criterion. + // + // This field is ignored for mutates. + optional int64 criterion_id = 56 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The status of the criterion. + // + // This is the status of the ad group criterion entity, set by the client. + // Note: UI reports may incorporate additional information that affects + // whether a criterion is eligible to run. In some cases a criterion that's + // REMOVED in the API can still show as enabled in the UI. + // For example, campaigns by default show to users of all age ranges unless + // excluded. The UI will show each age range as "enabled", since they're + // eligible to see the ads; but AdGroupCriterion.status will show "removed", + // since no positive criterion was added. + google.ads.googleads.v6.enums.AdGroupCriterionStatusEnum.AdGroupCriterionStatus status = 3; + + // Output only. Information regarding the quality of the criterion. + QualityInfo quality_info = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. The ad group to which the criterion belongs. + optional string ad_group = 57 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroup" + } + ]; + + // Output only. The type of the criterion. + google.ads.googleads.v6.enums.CriterionTypeEnum.CriterionType type = 25 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. Whether to target (`false`) or exclude (`true`) the criterion. + // + // This field is immutable. To switch a criterion from positive to negative, + // remove then re-add it. + optional bool negative = 58 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. Serving status of the criterion. + google.ads.googleads.v6.enums.CriterionSystemServingStatusEnum.CriterionSystemServingStatus system_serving_status = 52 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Approval status of the criterion. + google.ads.googleads.v6.enums.AdGroupCriterionApprovalStatusEnum.AdGroupCriterionApprovalStatus approval_status = 53 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. List of disapproval reasons of the criterion. + // + // The different reasons for disapproving a criterion can be found here: + // https://support.google.com/adspolicy/answer/6008942 + // + // This field is read-only. + repeated string disapproval_reasons = 59 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // 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. + optional double bid_modifier = 61; + + // The CPC (cost-per-click) bid. + optional int64 cpc_bid_micros = 62; + + // The CPM (cost-per-thousand viewable impressions) bid. + optional int64 cpm_bid_micros = 63; + + // The CPV (cost-per-view) bid. + optional int64 cpv_bid_micros = 64; + + // The CPC bid amount, expressed as a fraction of the advertised price + // for some good or service. The valid range for the fraction is [0,1) and the + // value stored here is 1,000,000 * [fraction]. + optional int64 percent_cpc_bid_micros = 65; + + // Output only. The effective CPC (cost-per-click) bid. + optional int64 effective_cpc_bid_micros = 66 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The effective CPM (cost-per-thousand viewable impressions) bid. + optional int64 effective_cpm_bid_micros = 67 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The effective CPV (cost-per-view) bid. + optional int64 effective_cpv_bid_micros = 68 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The effective Percent CPC bid amount. + optional int64 effective_percent_cpc_bid_micros = 69 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Source of the effective CPC bid. + google.ads.googleads.v6.enums.BiddingSourceEnum.BiddingSource effective_cpc_bid_source = 21 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Source of the effective CPM bid. + google.ads.googleads.v6.enums.BiddingSourceEnum.BiddingSource effective_cpm_bid_source = 22 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Source of the effective CPV bid. + google.ads.googleads.v6.enums.BiddingSourceEnum.BiddingSource effective_cpv_bid_source = 23 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Source of the effective Percent CPC bid. + google.ads.googleads.v6.enums.BiddingSourceEnum.BiddingSource effective_percent_cpc_bid_source = 35 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Estimates for criterion bids at various positions. + PositionEstimates position_estimates = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The list of possible final URLs after all cross-domain redirects for the + // ad. + repeated string final_urls = 70; + + // The list of possible final mobile URLs after all cross-domain redirects. + repeated string final_mobile_urls = 71; + + // URL template for appending params to final URL. + optional string final_url_suffix = 72; + + // The URL template for constructing a tracking URL. + optional string tracking_url_template = 73; + + // 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.v6.common.CustomParameter url_custom_parameters = 14; + + // The ad group criterion. + // + // Exactly one must be set. + oneof criterion { + // Immutable. Keyword. + google.ads.googleads.v6.common.KeywordInfo keyword = 27 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Placement. + google.ads.googleads.v6.common.PlacementInfo placement = 28 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Mobile app category. + google.ads.googleads.v6.common.MobileAppCategoryInfo mobile_app_category = 29 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Mobile application. + google.ads.googleads.v6.common.MobileApplicationInfo mobile_application = 30 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Listing group. + google.ads.googleads.v6.common.ListingGroupInfo listing_group = 32 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Age range. + google.ads.googleads.v6.common.AgeRangeInfo age_range = 36 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Gender. + google.ads.googleads.v6.common.GenderInfo gender = 37 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Income range. + google.ads.googleads.v6.common.IncomeRangeInfo income_range = 38 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Parental status. + google.ads.googleads.v6.common.ParentalStatusInfo parental_status = 39 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. User List. + google.ads.googleads.v6.common.UserListInfo user_list = 42 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. YouTube Video. + google.ads.googleads.v6.common.YouTubeVideoInfo youtube_video = 40 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. YouTube Channel. + google.ads.googleads.v6.common.YouTubeChannelInfo youtube_channel = 41 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Topic. + google.ads.googleads.v6.common.TopicInfo topic = 43 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. User Interest. + google.ads.googleads.v6.common.UserInterestInfo user_interest = 45 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Webpage + google.ads.googleads.v6.common.WebpageInfo webpage = 46 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. App Payment Model. + google.ads.googleads.v6.common.AppPaymentModelInfo app_payment_model = 47 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Custom Affinity. + google.ads.googleads.v6.common.CustomAffinityInfo custom_affinity = 48 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Custom Intent. + google.ads.googleads.v6.common.CustomIntentInfo custom_intent = 49 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Custom Audience. + google.ads.googleads.v6.common.CustomAudienceInfo custom_audience = 74 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Combined Audience. + google.ads.googleads.v6.common.CombinedAudienceInfo combined_audience = 75 [(google.api.field_behavior) = IMMUTABLE]; + } +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/ad_group_criterion_label.proto b/third_party/googleapis/google/ads/googleads/v6/resources/ad_group_criterion_label.proto new file mode 100644 index 000000000..92c1d3a17 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/ad_group_criterion_label.proto @@ -0,0 +1,66 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "AdGroupCriterionLabelProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the ad group criterion label resource. + +// A relationship between an ad group criterion and a label. +message AdGroupCriterionLabel { + option (google.api.resource) = { + type: "googleads.googleapis.com/AdGroupCriterionLabel" + pattern: "customers/{customer_id}/adGroupCriterionLabels/{ad_group_id}~{criterion_id}~{label_id}" + }; + + // Immutable. The resource name of the ad group criterion label. + // Ad group criterion label resource names have the form: + // `customers/{customer_id}/adGroupCriterionLabels/{ad_group_id}~{criterion_id}~{label_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroupCriterionLabel" + } + ]; + + // Immutable. The ad group criterion to which the label is attached. + optional string ad_group_criterion = 4 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroupCriterion" + } + ]; + + // Immutable. The label assigned to the ad group criterion. + optional string label = 5 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Label" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/ad_group_criterion_simulation.proto b/third_party/googleapis/google/ads/googleads/v6/resources/ad_group_criterion_simulation.proto new file mode 100644 index 000000000..2bea3b5b9 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/ad_group_criterion_simulation.proto @@ -0,0 +1,90 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/common/simulation.proto"; +import "google/ads/googleads/v6/enums/simulation_modification_method.proto"; +import "google/ads/googleads/v6/enums/simulation_type.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "AdGroupCriterionSimulationProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the ad group criterion simulation resource. + +// An ad group criterion simulation. Supported combinations of advertising +// channel type, criterion type, simulation type, and simulation modification +// method are detailed below respectively. Hotel AdGroupCriterion simulation +// operations starting in V5. +// +// 1. DISPLAY - KEYWORD - CPC_BID - UNIFORM +// 2. SEARCH - KEYWORD - CPC_BID - UNIFORM +// 3. SHOPPING - LISTING_GROUP - CPC_BID - UNIFORM +// 4. HOTEL - LISTING_GROUP - CPC_BID - UNIFORM +// 5. HOTEL - LISTING_GROUP - PERCENT_CPC_BID - UNIFORM +message AdGroupCriterionSimulation { + option (google.api.resource) = { + type: "googleads.googleapis.com/AdGroupCriterionSimulation" + pattern: "customers/{customer_id}/adGroupCriterionSimulations/{ad_group_id}~{criterion_id}~{type}~{modification_method}~{start_date}~{end_date}" + }; + + // Output only. The resource name of the ad group criterion simulation. + // Ad group criterion simulation resource names have the form: + // + // `customers/{customer_id}/adGroupCriterionSimulations/{ad_group_id}~{criterion_id}~{type}~{modification_method}~{start_date}~{end_date}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroupCriterionSimulation" + } + ]; + + // Output only. AdGroup ID of the simulation. + optional int64 ad_group_id = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Criterion ID of the simulation. + optional int64 criterion_id = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The field that the simulation modifies. + google.ads.googleads.v6.enums.SimulationTypeEnum.SimulationType type = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. How the simulation modifies the field. + google.ads.googleads.v6.enums.SimulationModificationMethodEnum.SimulationModificationMethod modification_method = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. First day on which the simulation is based, in YYYY-MM-DD format. + optional string start_date = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Last day on which the simulation is based, in YYYY-MM-DD format. + optional string end_date = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // List of simulation points. + oneof point_list { + // Output only. Simulation points if the simulation type is CPC_BID. + google.ads.googleads.v6.common.CpcBidSimulationPointList cpc_bid_point_list = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Simulation points if the simulation type is PERCENT_CPC_BID. + google.ads.googleads.v6.common.PercentCpcBidSimulationPointList percent_cpc_bid_point_list = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + } +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/ad_group_extension_setting.proto b/third_party/googleapis/google/ads/googleads/v6/resources/ad_group_extension_setting.proto new file mode 100644 index 000000000..3771e3b81 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/ad_group_extension_setting.proto @@ -0,0 +1,79 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/enums/extension_setting_device.proto"; +import "google/ads/googleads/v6/enums/extension_type.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "AdGroupExtensionSettingProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the AdGroupExtensionSetting resource. + +// An ad group extension setting. +message AdGroupExtensionSetting { + option (google.api.resource) = { + type: "googleads.googleapis.com/AdGroupExtensionSetting" + pattern: "customers/{customer_id}/adGroupExtensionSettings/{ad_group_id}~{extension_type}" + }; + + // Immutable. The resource name of the ad group extension setting. + // AdGroupExtensionSetting resource names have the form: + // + // `customers/{customer_id}/adGroupExtensionSettings/{ad_group_id}~{extension_type}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroupExtensionSetting" + } + ]; + + // Immutable. The extension type of the ad group extension setting. + google.ads.googleads.v6.enums.ExtensionTypeEnum.ExtensionType extension_type = 2 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. The resource name of the ad group. The linked extension feed items will + // serve under this ad group. + // AdGroup resource names have the form: + // + // `customers/{customer_id}/adGroups/{ad_group_id}` + optional string ad_group = 6 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroup" + } + ]; + + // The resource names of the extension feed items to serve under the ad group. + // ExtensionFeedItem resource names have the form: + // + // `customers/{customer_id}/extensionFeedItems/{feed_item_id}` + repeated string extension_feed_items = 7 [(google.api.resource_reference) = { + type: "googleads.googleapis.com/ExtensionFeedItem" + }]; + + // The device for which the extensions will serve. Optional. + google.ads.googleads.v6.enums.ExtensionSettingDeviceEnum.ExtensionSettingDevice device = 5; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/ad_group_feed.proto b/third_party/googleapis/google/ads/googleads/v6/resources/ad_group_feed.proto new file mode 100644 index 000000000..fdfd88d66 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/ad_group_feed.proto @@ -0,0 +1,83 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/common/matching_function.proto"; +import "google/ads/googleads/v6/enums/feed_link_status.proto"; +import "google/ads/googleads/v6/enums/placeholder_type.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "AdGroupFeedProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the AdGroupFeed resource. + +// An ad group feed. +message AdGroupFeed { + option (google.api.resource) = { + type: "googleads.googleapis.com/AdGroupFeed" + pattern: "customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_id}" + }; + + // Immutable. The resource name of the ad group feed. + // Ad group feed resource names have the form: + // + // `customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_id} + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroupFeed" + } + ]; + + // Immutable. The feed being linked to the ad group. + optional string feed = 7 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Feed" + } + ]; + + // Immutable. The ad group being linked to the feed. + optional string ad_group = 8 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroup" + } + ]; + + // Indicates which placeholder types the feed may populate under the connected + // ad group. Required. + repeated google.ads.googleads.v6.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. + // Required. + google.ads.googleads.v6.common.MatchingFunction matching_function = 5; + + // Output only. Status of the ad group feed. + // This field is read-only. + google.ads.googleads.v6.enums.FeedLinkStatusEnum.FeedLinkStatus status = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/ad_group_label.proto b/third_party/googleapis/google/ads/googleads/v6/resources/ad_group_label.proto new file mode 100644 index 000000000..a601d877f --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/ad_group_label.proto @@ -0,0 +1,66 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "AdGroupLabelProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the ad group label resource. + +// A relationship between an ad group and a label. +message AdGroupLabel { + option (google.api.resource) = { + type: "googleads.googleapis.com/AdGroupLabel" + pattern: "customers/{customer_id}/adGroupLabels/{ad_group_id}~{label_id}" + }; + + // Immutable. The resource name of the ad group label. + // Ad group label resource names have the form: + // `customers/{customer_id}/adGroupLabels/{ad_group_id}~{label_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroupLabel" + } + ]; + + // Immutable. The ad group to which the label is attached. + optional string ad_group = 4 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroup" + } + ]; + + // Immutable. The label assigned to the ad group. + optional string label = 5 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Label" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/ad_group_simulation.proto b/third_party/googleapis/google/ads/googleads/v6/resources/ad_group_simulation.proto new file mode 100644 index 000000000..b151fad0c --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/ad_group_simulation.proto @@ -0,0 +1,96 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/common/simulation.proto"; +import "google/ads/googleads/v6/enums/simulation_modification_method.proto"; +import "google/ads/googleads/v6/enums/simulation_type.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "AdGroupSimulationProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the ad group simulation resource. + +// An ad group simulation. Supported combinations of advertising +// channel type, simulation type and simulation modification method is +// detailed below respectively. +// +// 1. SEARCH - CPC_BID - DEFAULT +// 2. SEARCH - CPC_BID - UNIFORM +// 3. SEARCH - TARGET_CPA - UNIFORM +// 4. SEARCH - TARGET_ROAS - UNIFORM +// 5. DISPLAY - CPC_BID - DEFAULT +// 6. DISPLAY - CPC_BID - UNIFORM +// 7. DISPLAY - TARGET_CPA - UNIFORM +// 8. VIDEO - CPV_BID - DEFAULT +// 9. VIDEO - CPV_BID - UNIFORM +message AdGroupSimulation { + option (google.api.resource) = { + type: "googleads.googleapis.com/AdGroupSimulation" + pattern: "customers/{customer_id}/adGroupSimulations/{ad_group_id}~{type}~{modification_method}~{start_date}~{end_date}" + }; + + // Output only. The resource name of the ad group simulation. + // Ad group simulation resource names have the form: + // + // `customers/{customer_id}/adGroupSimulations/{ad_group_id}~{type}~{modification_method}~{start_date}~{end_date}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroupSimulation" + } + ]; + + // Output only. Ad group id of the simulation. + optional int64 ad_group_id = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The field that the simulation modifies. + google.ads.googleads.v6.enums.SimulationTypeEnum.SimulationType type = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. How the simulation modifies the field. + google.ads.googleads.v6.enums.SimulationModificationMethodEnum.SimulationModificationMethod modification_method = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. First day on which the simulation is based, in YYYY-MM-DD format. + optional string start_date = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Last day on which the simulation is based, in YYYY-MM-DD format + optional string end_date = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // List of simulation points. + oneof point_list { + // Output only. Simulation points if the simulation type is CPC_BID. + google.ads.googleads.v6.common.CpcBidSimulationPointList cpc_bid_point_list = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Simulation points if the simulation type is CPV_BID. + google.ads.googleads.v6.common.CpvBidSimulationPointList cpv_bid_point_list = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Simulation points if the simulation type is TARGET_CPA. + google.ads.googleads.v6.common.TargetCpaSimulationPointList target_cpa_point_list = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Simulation points if the simulation type is TARGET_ROAS. + google.ads.googleads.v6.common.TargetRoasSimulationPointList target_roas_point_list = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + } +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/ad_parameter.proto b/third_party/googleapis/google/ads/googleads/v6/resources/ad_parameter.proto new file mode 100644 index 000000000..24b710f5e --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/ad_parameter.proto @@ -0,0 +1,82 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "AdParameterProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the ad parameter resource. + +// An ad parameter that is used to update numeric values (such as prices or +// inventory levels) in any text line of an ad (including URLs). There can +// be a maximum of two AdParameters per ad group criterion. (One with +// parameter_index = 1 and one with parameter_index = 2.) +// In the ad the parameters are referenced by a placeholder of the form +// "{param#:value}". E.g. "{param1:$17}" +message AdParameter { + option (google.api.resource) = { + type: "googleads.googleapis.com/AdParameter" + pattern: "customers/{customer_id}/adParameters/{ad_group_id}~{criterion_id}~{parameter_index}" + }; + + // Immutable. The resource name of the ad parameter. + // Ad parameter resource names have the form: + // + // `customers/{customer_id}/adParameters/{ad_group_id}~{criterion_id}~{parameter_index}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdParameter" + } + ]; + + // Immutable. The ad group criterion that this ad parameter belongs to. + optional string ad_group_criterion = 5 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroupCriterion" + } + ]; + + // Immutable. The unique index of this ad parameter. Must be either 1 or 2. + optional int64 parameter_index = 6 [(google.api.field_behavior) = IMMUTABLE]; + + // Numeric value to insert into the ad text. The following restrictions + // apply: + // - Can use comma or period as a separator, with an optional period or + // comma (respectively) for fractional values. For example, 1,000,000.00 + // and 2.000.000,10 are valid. + // - Can be prepended or appended with a currency symbol. For example, + // $99.99 is valid. + // - Can be prepended or appended with a currency code. For example, 99.99USD + // and EUR200 are valid. + // - Can use '%'. For example, 1.0% and 1,0% are valid. + // - Can use plus or minus. For example, -10.99 and 25+ are valid. + // - Can use '/' between two numbers. For example 4/1 and 0.95/0.45 are + // valid. + optional string insertion_text = 7; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/ad_schedule_view.proto b/third_party/googleapis/google/ads/googleads/v6/resources/ad_schedule_view.proto new file mode 100644 index 000000000..586c23eee --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/ad_schedule_view.proto @@ -0,0 +1,52 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "AdScheduleViewProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the ad schedule view resource. + +// An ad schedule view summarizes the performance of campaigns by +// AdSchedule criteria. +message AdScheduleView { + option (google.api.resource) = { + type: "googleads.googleapis.com/AdScheduleView" + pattern: "customers/{customer_id}/adScheduleViews/{campaign_id}~{criterion_id}" + }; + + // Output only. The resource name of the ad schedule view. + // AdSchedule view resource names have the form: + // + // `customers/{customer_id}/adScheduleViews/{campaign_id}~{criterion_id}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdScheduleView" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/age_range_view.proto b/third_party/googleapis/google/ads/googleads/v6/resources/age_range_view.proto new file mode 100644 index 000000000..5a16a488b --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/age_range_view.proto @@ -0,0 +1,51 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "AgeRangeViewProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the age range view resource. + +// An age range view. +message AgeRangeView { + option (google.api.resource) = { + type: "googleads.googleapis.com/AgeRangeView" + pattern: "customers/{customer_id}/ageRangeViews/{ad_group_id}~{criterion_id}" + }; + + // Output only. The resource name of the age range view. + // Age range view resource names have the form: + // + // `customers/{customer_id}/ageRangeViews/{ad_group_id}~{criterion_id}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AgeRangeView" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/asset.proto b/third_party/googleapis/google/ads/googleads/v6/resources/asset.proto new file mode 100644 index 000000000..fca54daee --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/asset.proto @@ -0,0 +1,106 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/common/asset_types.proto"; +import "google/ads/googleads/v6/common/policy.proto"; +import "google/ads/googleads/v6/enums/asset_type.proto"; +import "google/ads/googleads/v6/enums/policy_approval_status.proto"; +import "google/ads/googleads/v6/enums/policy_review_status.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "AssetProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the asset resource. + +// Asset is a part of an ad which can be shared across multiple ads. +// It can be an image (ImageAsset), a video (YoutubeVideoAsset), etc. +message Asset { + option (google.api.resource) = { + type: "googleads.googleapis.com/Asset" + pattern: "customers/{customer_id}/assets/{asset_id}" + }; + + // Immutable. The resource name of the asset. + // Asset resource names have the form: + // + // `customers/{customer_id}/assets/{asset_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Asset" + } + ]; + + // Output only. The ID of the asset. + optional int64 id = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional name of the asset. + optional string name = 12; + + // Output only. Type of the asset. + google.ads.googleads.v6.enums.AssetTypeEnum.AssetType type = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // A list of possible final URLs after all cross domain redirects. + repeated string final_urls = 14; + + // Output only. Policy information for the asset. + AssetPolicySummary policy_summary = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The specific type of the asset. + oneof asset_data { + // Immutable. A YouTube video asset. + google.ads.googleads.v6.common.YoutubeVideoAsset youtube_video_asset = 5 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. A media bundle asset. + google.ads.googleads.v6.common.MediaBundleAsset media_bundle_asset = 6 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. An image asset. + google.ads.googleads.v6.common.ImageAsset image_asset = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A text asset. + google.ads.googleads.v6.common.TextAsset text_asset = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // A lead form asset. + google.ads.googleads.v6.common.LeadFormAsset lead_form_asset = 9; + + // A book on google asset. + google.ads.googleads.v6.common.BookOnGoogleAsset book_on_google_asset = 10; + } +} + +// Contains policy information for an asset. +message AssetPolicySummary { + // Output only. The list of policy findings for this asset. + repeated google.ads.googleads.v6.common.PolicyTopicEntry policy_topic_entries = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Where in the review process this asset is. + google.ads.googleads.v6.enums.PolicyReviewStatusEnum.PolicyReviewStatus review_status = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The overall approval status of this asset, calculated based on the status + // of its individual policy topic entries. + google.ads.googleads.v6.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus approval_status = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/batch_job.proto b/third_party/googleapis/google/ads/googleads/v6/resources/batch_job.proto new file mode 100644 index 000000000..26d0b53ca --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/batch_job.proto @@ -0,0 +1,98 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/enums/batch_job_status.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "BatchJobProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the batch job resource. + +// A list of mutates being processed asynchronously. The mutates are uploaded +// by the user. The mutates themselves aren't readable and the results of the +// job can only be read using BatchJobService.ListBatchJobResults. +message BatchJob { + option (google.api.resource) = { + type: "googleads.googleapis.com/BatchJob" + pattern: "customers/{customer_id}/batchJobs/{batch_job_id}" + }; + + // Additional information about the batch job. This message is also used as + // metadata returned in batch job Long Running Operations. + message BatchJobMetadata { + // Output only. The time when this batch job was created. + // Formatted as yyyy-mm-dd hh:mm:ss. Example: "2018-03-05 09:15:00" + optional string creation_date_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time when this batch job started running. + // Formatted as yyyy-mm-dd hh:mm:ss. Example: "2018-03-05 09:15:30" + optional string start_date_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time when this batch job was completed. + // Formatted as yyyy-MM-dd HH:mm:ss. Example: "2018-03-05 09:16:00" + optional string completion_date_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The fraction (between 0.0 and 1.0) of mutates that have been processed. + // This is empty if the job hasn't started running yet. + optional double estimated_completion_ratio = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of mutate operations in the batch job. + optional int64 operation_count = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of mutate operations executed by the batch job. + // Present only if the job has started running. + optional int64 executed_operation_count = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Immutable. The resource name of the batch job. + // Batch job resource names have the form: + // + // `customers/{customer_id}/batchJobs/{batch_job_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/BatchJob" + } + ]; + + // Output only. ID of this batch job. + optional int64 id = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The next sequence token to use when adding operations. Only set when the + // batch job status is PENDING. + optional string next_add_sequence_token = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Contains additional information about this batch job. + BatchJobMetadata metadata = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Status of this batch job. + google.ads.googleads.v6.enums.BatchJobStatusEnum.BatchJobStatus status = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The resource name of the long-running operation that can be used to poll + // for completion. Only set when the batch job status is RUNNING or DONE. + optional string long_running_operation = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/bidding_strategy.proto b/third_party/googleapis/google/ads/googleads/v6/resources/bidding_strategy.proto new file mode 100644 index 000000000..bb78f3fde --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/bidding_strategy.proto @@ -0,0 +1,130 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/common/bidding.proto"; +import "google/ads/googleads/v6/enums/bidding_strategy_status.proto"; +import "google/ads/googleads/v6/enums/bidding_strategy_type.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "BiddingStrategyProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the BiddingStrategy resource + +// A bidding strategy. +message BiddingStrategy { + option (google.api.resource) = { + type: "googleads.googleapis.com/BiddingStrategy" + pattern: "customers/{customer_id}/biddingStrategies/{bidding_strategy_id}" + }; + + // Immutable. The resource name of the bidding strategy. + // Bidding strategy resource names have the form: + // + // `customers/{customer_id}/biddingStrategies/{bidding_strategy_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/BiddingStrategy" + } + ]; + + // Output only. The ID of the bidding strategy. + optional int64 id = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The name of the bidding strategy. + // All bidding strategies within an account must be named distinctly. + // + // The length of this string should be between 1 and 255, inclusive, + // in UTF-8 bytes, (trimmed). + optional string name = 17; + + // Output only. The status of the bidding strategy. + // + // This field is read-only. + google.ads.googleads.v6.enums.BiddingStrategyStatusEnum.BiddingStrategyStatus status = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The type of the bidding strategy. + // Create a bidding strategy by setting the bidding scheme. + // + // This field is read-only. + google.ads.googleads.v6.enums.BiddingStrategyTypeEnum.BiddingStrategyType type = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The currency used by the bidding strategy (ISO 4217 three-letter code). + // + // For bidding strategies in manager customers, this is the currency set by + // the advertiser when creating the strategy. For serving customers, this is + // the customer's currency_code. + // + // Bidding strategy metrics are reported in this currency. + // + // This field is read-only. + optional string effective_currency_code = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of campaigns attached to this bidding strategy. + // + // This field is read-only. + optional int64 campaign_count = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of non-removed campaigns attached to this bidding strategy. + // + // This field is read-only. + optional int64 non_removed_campaign_count = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The bidding scheme. + // + // Only one can be set. + oneof scheme { + // A 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. + google.ads.googleads.v6.common.EnhancedCpc enhanced_cpc = 7; + + // An automated bidding strategy to help get the most conversion value for + // your campaigns while spending your budget. + google.ads.googleads.v6.common.MaximizeConversionValue maximize_conversion_value = 21; + + // An automated bidding strategy to help get the most conversions for your + // campaigns while spending your budget. + google.ads.googleads.v6.common.MaximizeConversions maximize_conversions = 22; + + // A bidding strategy that sets bids to help get as many conversions as + // possible at the target cost-per-acquisition (CPA) you set. + google.ads.googleads.v6.common.TargetCpa target_cpa = 9; + + // A bidding strategy that automatically optimizes towards a desired + // percentage of impressions. + google.ads.googleads.v6.common.TargetImpressionShare target_impression_share = 48; + + // A bidding strategy that helps you maximize revenue while averaging a + // specific target Return On Ad Spend (ROAS). + google.ads.googleads.v6.common.TargetRoas target_roas = 11; + + // A bid strategy that sets your bids to help get as many clicks as + // possible within your budget. + google.ads.googleads.v6.common.TargetSpend target_spend = 12; + } +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/billing_setup.proto b/third_party/googleapis/google/ads/googleads/v6/resources/billing_setup.proto new file mode 100644 index 000000000..53c5a3946 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/billing_setup.proto @@ -0,0 +1,138 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/enums/billing_setup_status.proto"; +import "google/ads/googleads/v6/enums/time_type.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "BillingSetupProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the BillingSetup resource. + +// A billing setup, which associates a payments account and an advertiser. A +// billing setup is specific to one advertiser. +message BillingSetup { + option (google.api.resource) = { + type: "googleads.googleapis.com/BillingSetup" + pattern: "customers/{customer_id}/billingSetups/{billing_setup_id}" + }; + + // Container of payments account information for this billing. + message PaymentsAccountInfo { + // Output only. A 16 digit id used to identify the payments account associated with the + // billing setup. + // + // This must be passed as a string with dashes, e.g. "1234-5678-9012-3456". + optional string payments_account_id = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. The name of the payments account associated with the billing setup. + // + // This enables the user to specify a meaningful name for a payments account + // to aid in reconciling monthly invoices. + // + // This name will be printed in the monthly invoices. + optional string payments_account_name = 7 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. A 12 digit id used to identify the payments profile associated with the + // billing setup. + // + // This must be passed in as a string with dashes, e.g. "1234-5678-9012". + optional string payments_profile_id = 8 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. The name of the payments profile associated with the billing setup. + optional string payments_profile_name = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A secondary payments profile id present in uncommon situations, e.g. + // when a sequential liability agreement has been arranged. + optional string secondary_payments_profile_id = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Immutable. The resource name of the billing setup. + // BillingSetup resource names have the form: + // + // `customers/{customer_id}/billingSetups/{billing_setup_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/BillingSetup" + } + ]; + + // Output only. The ID of the billing setup. + optional int64 id = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The status of the billing setup. + google.ads.googleads.v6.enums.BillingSetupStatusEnum.BillingSetupStatus status = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. The resource name of the payments account associated with this billing + // setup. Payments resource names have the form: + // + // `customers/{customer_id}/paymentsAccounts/{payments_account_id}` + // When setting up billing, this is used to signup with an existing payments + // account (and then payments_account_info should not be set). + // When getting a billing setup, this and payments_account_info will be + // populated. + optional string payments_account = 18 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/PaymentsAccount" + } + ]; + + // Immutable. The payments account information associated with this billing setup. + // When setting up billing, this is used to signup with a new payments account + // (and then payments_account should not be set). + // When getting a billing setup, this and payments_account will be + // populated. + PaymentsAccountInfo payments_account_info = 12 [(google.api.field_behavior) = IMMUTABLE]; + + // When creating a new billing setup, this is when the setup should take + // effect. NOW is the only acceptable start time if the customer doesn't have + // any approved setups. + // + // When fetching an existing billing setup, this is the requested start time. + // However, if the setup was approved (see status) after the requested start + // time, then this is the approval time. + oneof start_time { + // Immutable. The start date time in yyyy-MM-dd or yyyy-MM-dd HH:mm:ss format. Only a + // future time is allowed. + string start_date_time = 16 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. The start time as a type. Only NOW is allowed. + google.ads.googleads.v6.enums.TimeTypeEnum.TimeType start_time_type = 10 [(google.api.field_behavior) = IMMUTABLE]; + } + + // When the billing setup ends / ended. This is either FOREVER or the start + // time of the next scheduled billing setup. + oneof end_time { + // Output only. The end date time in yyyy-MM-dd or yyyy-MM-dd HH:mm:ss format. + string end_date_time = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The end time as a type. The only possible value is FOREVER. + google.ads.googleads.v6.enums.TimeTypeEnum.TimeType end_time_type = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + } +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/call_view.proto b/third_party/googleapis/google/ads/googleads/v6/resources/call_view.proto new file mode 100644 index 000000000..840f08c8f --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/call_view.proto @@ -0,0 +1,80 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/enums/call_tracking_display_location.proto"; +import "google/ads/googleads/v6/enums/call_type.proto"; +import "google/ads/googleads/v6/enums/google_voice_call_status.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "CallViewProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the call view resource. + +// A call view that includes data for call tracking of call-only ads or call +// extensions. +message CallView { + option (google.api.resource) = { + type: "googleads.googleapis.com/CallView" + pattern: "customers/{customer_id}/callViews/{call_detail_id}" + }; + + // Output only. The resource name of the call view. + // Call view resource names have the form: + // + // `customers/{customer_id}/callViews/{call_detail_id}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CallView" + } + ]; + + // Output only. Region code of the caller. + string caller_region_code = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Area code of the caller. Null if the call duration is shorter than 15 + // seconds. + string caller_area_code = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The advertiser-provided call duration in seconds. + int64 call_duration_seconds = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The advertiser-provided call start date time. + string start_call_date_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The advertiser-provided call end date time. + string end_call_date_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The call tracking display location. + google.ads.googleads.v6.enums.CallTrackingDisplayLocationEnum.CallTrackingDisplayLocation call_tracking_display_location = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The type of the call. + google.ads.googleads.v6.enums.CallTypeEnum.CallType type = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The status of the call. + google.ads.googleads.v6.enums.GoogleVoiceCallStatusEnum.GoogleVoiceCallStatus call_status = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/campaign.proto b/third_party/googleapis/google/ads/googleads/v6/resources/campaign.proto new file mode 100644 index 000000000..f56ac1ef3 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/campaign.proto @@ -0,0 +1,419 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/common/bidding.proto"; +import "google/ads/googleads/v6/common/custom_parameter.proto"; +import "google/ads/googleads/v6/common/frequency_cap.proto"; +import "google/ads/googleads/v6/common/real_time_bidding_setting.proto"; +import "google/ads/googleads/v6/common/targeting_setting.proto"; +import "google/ads/googleads/v6/enums/ad_serving_optimization_status.proto"; +import "google/ads/googleads/v6/enums/advertising_channel_sub_type.proto"; +import "google/ads/googleads/v6/enums/advertising_channel_type.proto"; +import "google/ads/googleads/v6/enums/app_campaign_app_store.proto"; +import "google/ads/googleads/v6/enums/app_campaign_bidding_strategy_goal_type.proto"; +import "google/ads/googleads/v6/enums/bidding_strategy_type.proto"; +import "google/ads/googleads/v6/enums/brand_safety_suitability.proto"; +import "google/ads/googleads/v6/enums/campaign_experiment_type.proto"; +import "google/ads/googleads/v6/enums/campaign_serving_status.proto"; +import "google/ads/googleads/v6/enums/campaign_status.proto"; +import "google/ads/googleads/v6/enums/location_source_type.proto"; +import "google/ads/googleads/v6/enums/negative_geo_target_type.proto"; +import "google/ads/googleads/v6/enums/optimization_goal_type.proto"; +import "google/ads/googleads/v6/enums/payment_mode.proto"; +import "google/ads/googleads/v6/enums/positive_geo_target_type.proto"; +import "google/ads/googleads/v6/enums/vanity_pharma_display_url_mode.proto"; +import "google/ads/googleads/v6/enums/vanity_pharma_text.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "CampaignProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the Campaign resource. + +// A campaign. +message Campaign { + option (google.api.resource) = { + type: "googleads.googleapis.com/Campaign" + pattern: "customers/{customer_id}/campaigns/{campaign_id}" + }; + + // The network settings for the campaign. + message NetworkSettings { + // Whether ads will be served with google.com search results. + optional bool target_google_search = 5; + + // Whether ads will be served on partner sites in the Google Search Network + // (requires `target_google_search` to also be `true`). + optional bool target_search_network = 6; + + // Whether ads will be served on specified placements in the Google Display + // Network. Placements are specified using the Placement criterion. + optional bool target_content_network = 7; + + // Whether ads will be served on the Google Partner Network. + // This is available only to some select Google partner accounts. + optional bool target_partner_search_network = 8; + } + + // Campaign-level settings for hotel ads. + message HotelSettingInfo { + // Immutable. The linked Hotel Center account. + optional int64 hotel_center_id = 2 [(google.api.field_behavior) = IMMUTABLE]; + } + + // The setting for controlling Dynamic Search Ads (DSA). + message DynamicSearchAdsSetting { + // Required. The Internet domain name that this setting represents, e.g., "google.com" + // or "www.google.com". + string domain_name = 6 [(google.api.field_behavior) = REQUIRED]; + + // Required. The language code specifying the language of the domain, e.g., "en". + string language_code = 7 [(google.api.field_behavior) = REQUIRED]; + + // Whether the campaign uses advertiser supplied URLs exclusively. + optional bool use_supplied_urls_only = 8; + + // The list of page feeds associated with the campaign. + repeated string feeds = 9 [(google.api.resource_reference) = { + type: "googleads.googleapis.com/Feed" + }]; + } + + // Campaign setting for local campaigns. + message LocalCampaignSetting { + // The location source type for this local campaign. + google.ads.googleads.v6.enums.LocationSourceTypeEnum.LocationSourceType location_source_type = 1; + } + + // Selective optimization setting for this campaign, which includes a set of + // conversion actions to optimize this campaign towards. + message SelectiveOptimization { + // The selected set of conversion actions for optimizing this campaign. + repeated string conversion_actions = 2 [(google.api.resource_reference) = { + type: "googleads.googleapis.com/ConversionAction" + }]; + } + + // The setting for Shopping campaigns. Defines the universe of products that + // can be advertised by the campaign, and how this campaign interacts with + // other Shopping campaigns. + message ShoppingSetting { + // Immutable. ID of the Merchant Center account. + // This field is required for create operations. This field is immutable for + // Shopping campaigns. + optional int64 merchant_id = 5 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Sales country of products to include in the campaign. + // This field is required for Shopping campaigns. This field is immutable. + // This field is optional for non-Shopping campaigns, but it must be equal + // to 'ZZ' if set. + optional string sales_country = 6 [(google.api.field_behavior) = IMMUTABLE]; + + // Priority of the campaign. Campaigns with numerically higher priorities + // take precedence over those with lower priorities. + // This field is required for Shopping campaigns, with values between 0 and + // 2, inclusive. + // This field is optional for Smart Shopping campaigns, but must be equal to + // 3 if set. + optional int32 campaign_priority = 7; + + // Whether to include local products. + optional bool enable_local = 8; + } + + // Campaign-level settings for App Campaigns. + message AppCampaignSetting { + // Represents the goal which the bidding strategy of this app campaign + // should optimize towards. + google.ads.googleads.v6.enums.AppCampaignBiddingStrategyGoalTypeEnum.AppCampaignBiddingStrategyGoalType bidding_strategy_goal_type = 1; + + // Immutable. A string that uniquely identifies a mobile application. + optional string app_id = 4 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. The application store that distributes this specific app. + google.ads.googleads.v6.enums.AppCampaignAppStoreEnum.AppCampaignAppStore app_store = 3 [(google.api.field_behavior) = IMMUTABLE]; + } + + // Campaign-level settings for tracking information. + message TrackingSetting { + // Output only. The url used for dynamic tracking. + optional string tracking_url = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Optimization goal setting for this campaign, which includes a set of + // optimization goal types. + message OptimizationGoalSetting { + // The list of optimization goal types. + repeated google.ads.googleads.v6.enums.OptimizationGoalTypeEnum.OptimizationGoalType optimization_goal_types = 1; + } + + // Represents a collection of settings related to ads geotargeting. + message GeoTargetTypeSetting { + // The setting used for positive geotargeting in this particular campaign. + google.ads.googleads.v6.enums.PositiveGeoTargetTypeEnum.PositiveGeoTargetType positive_geo_target_type = 1; + + // The setting used for negative geotargeting in this particular campaign. + google.ads.googleads.v6.enums.NegativeGeoTargetTypeEnum.NegativeGeoTargetType negative_geo_target_type = 2; + } + + // Describes how unbranded pharma ads will be displayed. + message VanityPharma { + // The display mode for vanity pharma URLs. + google.ads.googleads.v6.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode vanity_pharma_display_url_mode = 1; + + // The text that will be displayed in display URL of the text ad when + // website description is the selected display mode for vanity pharma URLs. + google.ads.googleads.v6.enums.VanityPharmaTextEnum.VanityPharmaText vanity_pharma_text = 2; + } + + // Immutable. The resource name of the campaign. + // Campaign resource names have the form: + // + // `customers/{customer_id}/campaigns/{campaign_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Campaign" + } + ]; + + // Output only. The ID of the campaign. + optional int64 id = 59 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The name of the campaign. + // + // This field is required and should not be empty when creating new + // campaigns. + // + // It must not contain any null (code point 0x0), NL line feed + // (code point 0xA) or carriage return (code point 0xD) characters. + optional string name = 58; + + // The status of the campaign. + // + // When a new campaign is added, the status defaults to ENABLED. + google.ads.googleads.v6.enums.CampaignStatusEnum.CampaignStatus status = 5; + + // Output only. The ad serving status of the campaign. + google.ads.googleads.v6.enums.CampaignServingStatusEnum.CampaignServingStatus serving_status = 21 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The ad serving optimization status of the campaign. + google.ads.googleads.v6.enums.AdServingOptimizationStatusEnum.AdServingOptimizationStatus ad_serving_optimization_status = 8; + + // Immutable. The primary serving target for ads within the campaign. + // The targeting options can be refined in `network_settings`. + // + // This field is required and should not be empty when creating new + // campaigns. + // + // Can be set only when creating campaigns. + // After the campaign is created, the field can not be changed. + google.ads.googleads.v6.enums.AdvertisingChannelTypeEnum.AdvertisingChannelType advertising_channel_type = 9 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Optional refinement to `advertising_channel_type`. + // Must be a valid sub-type of the parent channel type. + // + // Can be set only when creating campaigns. + // After campaign is created, the field can not be changed. + google.ads.googleads.v6.enums.AdvertisingChannelSubTypeEnum.AdvertisingChannelSubType advertising_channel_sub_type = 10 [(google.api.field_behavior) = IMMUTABLE]; + + // The URL template for constructing a tracking URL. + optional string tracking_url_template = 60; + + // 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.v6.common.CustomParameter url_custom_parameters = 12; + + // Settings for Real-Time Bidding, a feature only available for campaigns + // targeting the Ad Exchange network. + google.ads.googleads.v6.common.RealTimeBiddingSetting real_time_bidding_setting = 39; + + // The network settings for the campaign. + NetworkSettings network_settings = 14; + + // Immutable. The hotel setting for the campaign. + HotelSettingInfo hotel_setting = 32 [(google.api.field_behavior) = IMMUTABLE]; + + // The setting for controlling Dynamic Search Ads (DSA). + DynamicSearchAdsSetting dynamic_search_ads_setting = 33; + + // The setting for controlling Shopping campaigns. + ShoppingSetting shopping_setting = 36; + + // Setting for targeting related features. + google.ads.googleads.v6.common.TargetingSetting targeting_setting = 43; + + // The setting for ads geotargeting. + GeoTargetTypeSetting geo_target_type_setting = 47; + + // The setting for local campaign. + LocalCampaignSetting local_campaign_setting = 50; + + // The setting related to App Campaign. + AppCampaignSetting app_campaign_setting = 51; + + // Output only. The resource names of labels attached to this campaign. + repeated string labels = 61 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CampaignLabel" + } + ]; + + // Output only. The type of campaign: normal, draft, or experiment. + google.ads.googleads.v6.enums.CampaignExperimentTypeEnum.CampaignExperimentType experiment_type = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The resource name of the base campaign of a draft or experiment campaign. + // For base campaigns, this is equal to `resource_name`. + // + // This field is read-only. + optional string base_campaign = 56 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Campaign" + } + ]; + + // The budget of the campaign. + optional string campaign_budget = 62 [(google.api.resource_reference) = { + type: "googleads.googleapis.com/CampaignBudget" + }]; + + // Output only. The type of bidding strategy. + // + // A bidding strategy can be created by setting either the bidding scheme to + // create a standard bidding strategy or the `bidding_strategy` field to + // create a portfolio bidding strategy. + // + // This field is read-only. + google.ads.googleads.v6.enums.BiddingStrategyTypeEnum.BiddingStrategyType bidding_strategy_type = 22 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The date when campaign started. + optional string start_date = 63; + + // The last day of the campaign. + optional string end_date = 64; + + // Suffix used to append query parameters to landing pages that are served + // with parallel tracking. + optional string final_url_suffix = 65; + + // A list that limits how often each user will see this campaign's ads. + repeated google.ads.googleads.v6.common.FrequencyCapEntry frequency_caps = 40; + + // Output only. 3-Tier Brand Safety setting for the campaign. + google.ads.googleads.v6.enums.BrandSafetySuitabilityEnum.BrandSafetySuitability video_brand_safety_suitability = 42 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Describes how unbranded pharma ads will be displayed. + VanityPharma vanity_pharma = 44; + + // Selective optimization setting for this campaign, which includes a set of + // conversion actions to optimize this campaign towards. + SelectiveOptimization selective_optimization = 45; + + // Optimization goal setting for this campaign, which includes a set of + // optimization goal types. + OptimizationGoalSetting optimization_goal_setting = 54; + + // Output only. Campaign-level settings for tracking information. + TrackingSetting tracking_setting = 46 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Payment mode for the campaign. + google.ads.googleads.v6.enums.PaymentModeEnum.PaymentMode payment_mode = 52; + + // Output only. Optimization score of the campaign. + // + // Optimization score is an estimate of how well a campaign is set to perform. + // It ranges from 0% (0.0) to 100% (1.0), with 100% indicating that the + // campaign is performing at full potential. This field is null for unscored + // campaigns. + // + // See "About optimization score" at + // https://support.google.com/google-ads/answer/9061546. + // + // This field is read-only. + optional double optimization_score = 66 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The bidding strategy for the campaign. + // + // Must be either portfolio (created via BiddingStrategy service) or + // standard, that is embedded into the campaign. + oneof campaign_bidding_strategy { + // Portfolio bidding strategy used by campaign. + string bidding_strategy = 67 [(google.api.resource_reference) = { + type: "googleads.googleapis.com/BiddingStrategy" + }]; + + // Commission is an automatic bidding strategy in which the advertiser pays + // a certain portion of the conversion value. + google.ads.googleads.v6.common.Commission commission = 49; + + // Standard Manual CPC bidding strategy. + // Manual click-based bidding where user pays per click. + google.ads.googleads.v6.common.ManualCpc manual_cpc = 24; + + // Standard Manual CPM bidding strategy. + // Manual impression-based bidding where user pays per thousand + // impressions. + google.ads.googleads.v6.common.ManualCpm manual_cpm = 25; + + // Output only. A bidding strategy that pays a configurable amount per video view. + google.ads.googleads.v6.common.ManualCpv manual_cpv = 37 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Standard Maximize Conversions bidding strategy that automatically + // maximizes number of conversions while spending your budget. + google.ads.googleads.v6.common.MaximizeConversions maximize_conversions = 30; + + // Standard Maximize Conversion Value bidding strategy that automatically + // sets bids to maximize revenue while spending your budget. + google.ads.googleads.v6.common.MaximizeConversionValue maximize_conversion_value = 31; + + // Standard Target CPA bidding strategy that automatically sets bids to + // help get as many conversions as possible at the target + // cost-per-acquisition (CPA) you set. + google.ads.googleads.v6.common.TargetCpa target_cpa = 26; + + // Target Impression Share bidding strategy. An automated bidding strategy + // that sets bids to achieve a desired percentage of impressions. + google.ads.googleads.v6.common.TargetImpressionShare target_impression_share = 48; + + // Standard Target ROAS bidding strategy that automatically maximizes + // revenue while averaging a specific target return on ad spend (ROAS). + google.ads.googleads.v6.common.TargetRoas target_roas = 29; + + // Standard Target Spend bidding strategy that automatically sets your bids + // to help get as many clicks as possible within your budget. + google.ads.googleads.v6.common.TargetSpend target_spend = 27; + + // Standard Percent Cpc bidding strategy where bids are a fraction of the + // advertised price for some good or service. + google.ads.googleads.v6.common.PercentCpc percent_cpc = 34; + + // A bidding strategy that automatically optimizes cost per thousand + // impressions. + google.ads.googleads.v6.common.TargetCpm target_cpm = 41; + } +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/campaign_asset.proto b/third_party/googleapis/google/ads/googleads/v6/resources/campaign_asset.proto new file mode 100644 index 000000000..5e6f777bb --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/campaign_asset.proto @@ -0,0 +1,77 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/enums/asset_field_type.proto"; +import "google/ads/googleads/v6/enums/asset_link_status.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "CampaignAssetProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the CampaignAsset resource. + +// A link between a Campaign and an Asset. +message CampaignAsset { + option (google.api.resource) = { + type: "googleads.googleapis.com/CampaignAsset" + pattern: "customers/{customer_id}/campaignAssets/{campaign_id}~{asset_id}~{field_type}" + }; + + // Immutable. The resource name of the campaign asset. + // CampaignAsset resource names have the form: + // + // `customers/{customer_id}/campaignAssets/{campaign_id}~{asset_id}~{field_type}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CampaignAsset" + } + ]; + + // Immutable. The campaign to which the asset is linked. + optional string campaign = 6 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Campaign" + } + ]; + + // Immutable. The asset which is linked to the campaign. + optional string asset = 7 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Asset" + } + ]; + + // Immutable. Role that the asset takes under the linked campaign. + // Required. + google.ads.googleads.v6.enums.AssetFieldTypeEnum.AssetFieldType field_type = 4 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. Status of the campaign asset. + // This field is read-only. + google.ads.googleads.v6.enums.AssetLinkStatusEnum.AssetLinkStatus status = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/campaign_audience_view.proto b/third_party/googleapis/google/ads/googleads/v6/resources/campaign_audience_view.proto new file mode 100644 index 000000000..f4d99e692 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/campaign_audience_view.proto @@ -0,0 +1,55 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "CampaignAudienceViewProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the campaign audience view resource. + +// A campaign audience view. +// Includes performance data from interests and remarketing lists for Display +// Network and YouTube Network ads, and remarketing lists for search ads (RLSA), +// aggregated by campaign and audience criterion. This view only includes +// audiences attached at the campaign level. +message CampaignAudienceView { + option (google.api.resource) = { + type: "googleads.googleapis.com/CampaignAudienceView" + pattern: "customers/{customer_id}/campaignAudienceViews/{campaign_id}~{criterion_id}" + }; + + // Output only. The resource name of the campaign audience view. + // Campaign audience view resource names have the form: + // + // `customers/{customer_id}/campaignAudienceViews/{campaign_id}~{criterion_id}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CampaignAudienceView" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/campaign_bid_modifier.proto b/third_party/googleapis/google/ads/googleads/v6/resources/campaign_bid_modifier.proto new file mode 100644 index 000000000..b6e6d824d --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/campaign_bid_modifier.proto @@ -0,0 +1,76 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/common/criteria.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "CampaignBidModifierProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the Campaign Bid Modifier resource. + +// Represents a bid-modifiable only criterion at the campaign level. +message CampaignBidModifier { + option (google.api.resource) = { + type: "googleads.googleapis.com/CampaignBidModifier" + pattern: "customers/{customer_id}/campaignBidModifiers/{campaign_id}~{criterion_id}" + }; + + // Immutable. The resource name of the campaign bid modifier. + // Campaign bid modifier resource names have the form: + // + // `customers/{customer_id}/campaignBidModifiers/{campaign_id}~{criterion_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CampaignBidModifier" + } + ]; + + // Output only. The campaign to which this criterion belongs. + optional string campaign = 6 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Campaign" + } + ]; + + // Output only. The ID of the criterion to bid modify. + // + // This field is ignored for mutates. + optional int64 criterion_id = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The modifier for the bid when the criterion matches. + optional double bid_modifier = 8; + + // The criterion of this campaign bid modifier. + // + // Required in create operations starting in V5. + oneof criterion { + // Immutable. Criterion for interaction type. Only supported for search campaigns. + google.ads.googleads.v6.common.InteractionTypeInfo interaction_type = 5 [(google.api.field_behavior) = IMMUTABLE]; + } +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/campaign_budget.proto b/third_party/googleapis/google/ads/googleads/v6/resources/campaign_budget.proto new file mode 100644 index 000000000..260611862 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/campaign_budget.proto @@ -0,0 +1,156 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/enums/budget_delivery_method.proto"; +import "google/ads/googleads/v6/enums/budget_period.proto"; +import "google/ads/googleads/v6/enums/budget_status.proto"; +import "google/ads/googleads/v6/enums/budget_type.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "CampaignBudgetProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the Budget resource. + +// A campaign budget. +message CampaignBudget { + option (google.api.resource) = { + type: "googleads.googleapis.com/CampaignBudget" + pattern: "customers/{customer_id}/campaignBudgets/{campaign_budget_id}" + }; + + // Immutable. The resource name of the campaign budget. + // Campaign budget resource names have the form: + // + // `customers/{customer_id}/campaignBudgets/{campaign_budget_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CampaignBudget" + } + ]; + + // Output only. The ID of the campaign budget. + // + // A campaign budget is created using the CampaignBudgetService create + // operation and is assigned a budget ID. A budget ID can be shared across + // different campaigns; the system will then allocate the campaign budget + // among different campaigns to get optimum results. + optional int64 id = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The name of the campaign budget. + // + // When creating a campaign budget through CampaignBudgetService, every + // explicitly shared campaign budget must have a non-null, non-empty name. + // Campaign budgets that are not explicitly shared derive their name from the + // attached campaign's name. + // + // The length of this string must be between 1 and 255, inclusive, + // in UTF-8 bytes, (trimmed). + optional string name = 20; + + // The amount of the budget, in the local currency for the account. + // Amount is specified in micros, where one million is equivalent to one + // currency unit. Monthly spend is capped at 30.4 times this amount. + optional int64 amount_micros = 21; + + // The lifetime amount of the budget, in the local currency for the account. + // Amount is specified in micros, where one million is equivalent to one + // currency unit. + optional int64 total_amount_micros = 22; + + // Output only. The status of this campaign budget. This field is read-only. + google.ads.googleads.v6.enums.BudgetStatusEnum.BudgetStatus status = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The delivery method that determines the rate at which the campaign budget + // is spent. + // + // Defaults to STANDARD if unspecified in a create operation. + google.ads.googleads.v6.enums.BudgetDeliveryMethodEnum.BudgetDeliveryMethod delivery_method = 7; + + // Specifies whether the budget is explicitly shared. Defaults to true if + // unspecified in a create operation. + // + // If true, the budget was created with the purpose of sharing + // across one or more campaigns. + // + // If false, the budget was created with the intention of only being used + // with a single campaign. The budget's name and status will stay in sync + // with the campaign's name and status. Attempting to share the budget with a + // second campaign will result in an error. + // + // A non-shared budget can become an explicitly shared. The same operation + // must also assign the budget a name. + // + // A shared campaign budget can never become non-shared. + optional bool explicitly_shared = 23; + + // Output only. The number of campaigns actively using the budget. + // + // This field is read-only. + optional int64 reference_count = 24 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Indicates whether there is a recommended budget for this campaign budget. + // + // This field is read-only. + optional bool has_recommended_budget = 25 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The recommended budget amount. If no recommendation is available, this will + // be set to the budget amount. + // Amount is specified in micros, where one million is equivalent to one + // currency unit. + // + // This field is read-only. + optional int64 recommended_budget_amount_micros = 26 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. Period over which to spend the budget. Defaults to DAILY if not specified. + google.ads.googleads.v6.enums.BudgetPeriodEnum.BudgetPeriod period = 13 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. The estimated change in weekly clicks if the recommended budget is applied. + // + // This field is read-only. + optional int64 recommended_budget_estimated_change_weekly_clicks = 27 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. 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. + optional int64 recommended_budget_estimated_change_weekly_cost_micros = 28 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The estimated change in weekly interactions if the recommended budget is + // applied. + // + // This field is read-only. + optional int64 recommended_budget_estimated_change_weekly_interactions = 29 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The estimated change in weekly views if the recommended budget is applied. + // + // This field is read-only. + optional int64 recommended_budget_estimated_change_weekly_views = 30 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. The type of the campaign budget. + google.ads.googleads.v6.enums.BudgetTypeEnum.BudgetType type = 18 [(google.api.field_behavior) = IMMUTABLE]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/campaign_criterion.proto b/third_party/googleapis/google/ads/googleads/v6/resources/campaign_criterion.proto new file mode 100644 index 000000000..e2ad422dd --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/campaign_criterion.proto @@ -0,0 +1,173 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/common/criteria.proto"; +import "google/ads/googleads/v6/enums/campaign_criterion_status.proto"; +import "google/ads/googleads/v6/enums/criterion_type.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "CampaignCriterionProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the Campaign Criterion resource. + +// A campaign criterion. +message CampaignCriterion { + option (google.api.resource) = { + type: "googleads.googleapis.com/CampaignCriterion" + pattern: "customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id}" + }; + + // Immutable. The resource name of the campaign criterion. + // Campaign criterion resource names have the form: + // + // `customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CampaignCriterion" + } + ]; + + // Immutable. The campaign to which the criterion belongs. + optional string campaign = 37 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Campaign" + } + ]; + + // Output only. The ID of the criterion. + // + // This field is ignored during mutate. + optional int64 criterion_id = 38 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The modifier for the bids when the criterion matches. The modifier must be + // in the range: 0.1 - 10.0. Most targetable criteria types support modifiers. + // Use 0 to opt out of a Device type. + optional float bid_modifier = 39; + + // Immutable. Whether to target (`false`) or exclude (`true`) the criterion. + optional bool negative = 40 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. The type of the criterion. + google.ads.googleads.v6.enums.CriterionTypeEnum.CriterionType type = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The status of the criterion. + google.ads.googleads.v6.enums.CampaignCriterionStatusEnum.CampaignCriterionStatus status = 35; + + // The campaign criterion. + // + // Exactly one must be set. + oneof criterion { + // Immutable. Keyword. + google.ads.googleads.v6.common.KeywordInfo keyword = 8 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Placement. + google.ads.googleads.v6.common.PlacementInfo placement = 9 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Mobile app category. + google.ads.googleads.v6.common.MobileAppCategoryInfo mobile_app_category = 10 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Mobile application. + google.ads.googleads.v6.common.MobileApplicationInfo mobile_application = 11 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Location. + google.ads.googleads.v6.common.LocationInfo location = 12 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Device. + google.ads.googleads.v6.common.DeviceInfo device = 13 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Ad Schedule. + google.ads.googleads.v6.common.AdScheduleInfo ad_schedule = 15 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Age range. + google.ads.googleads.v6.common.AgeRangeInfo age_range = 16 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Gender. + google.ads.googleads.v6.common.GenderInfo gender = 17 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Income range. + google.ads.googleads.v6.common.IncomeRangeInfo income_range = 18 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Parental status. + google.ads.googleads.v6.common.ParentalStatusInfo parental_status = 19 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. User List. + google.ads.googleads.v6.common.UserListInfo user_list = 22 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. YouTube Video. + google.ads.googleads.v6.common.YouTubeVideoInfo youtube_video = 20 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. YouTube Channel. + google.ads.googleads.v6.common.YouTubeChannelInfo youtube_channel = 21 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Proximity. + google.ads.googleads.v6.common.ProximityInfo proximity = 23 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Topic. + google.ads.googleads.v6.common.TopicInfo topic = 24 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Listing scope. + google.ads.googleads.v6.common.ListingScopeInfo listing_scope = 25 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Language. + google.ads.googleads.v6.common.LanguageInfo language = 26 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. IpBlock. + google.ads.googleads.v6.common.IpBlockInfo ip_block = 27 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. ContentLabel. + google.ads.googleads.v6.common.ContentLabelInfo content_label = 28 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Carrier. + google.ads.googleads.v6.common.CarrierInfo carrier = 29 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. User Interest. + google.ads.googleads.v6.common.UserInterestInfo user_interest = 30 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Webpage. + google.ads.googleads.v6.common.WebpageInfo webpage = 31 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Operating system version. + google.ads.googleads.v6.common.OperatingSystemVersionInfo operating_system_version = 32 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Mobile Device. + google.ads.googleads.v6.common.MobileDeviceInfo mobile_device = 33 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Location Group + google.ads.googleads.v6.common.LocationGroupInfo location_group = 34 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Custom Affinity. + google.ads.googleads.v6.common.CustomAffinityInfo custom_affinity = 36 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Custom Audience + google.ads.googleads.v6.common.CustomAudienceInfo custom_audience = 41 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Combined Audience. + google.ads.googleads.v6.common.CombinedAudienceInfo combined_audience = 42 [(google.api.field_behavior) = IMMUTABLE]; + } +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/campaign_criterion_simulation.proto b/third_party/googleapis/google/ads/googleads/v6/resources/campaign_criterion_simulation.proto new file mode 100644 index 000000000..5677f57db --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/campaign_criterion_simulation.proto @@ -0,0 +1,84 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/common/simulation.proto"; +import "google/ads/googleads/v6/enums/simulation_modification_method.proto"; +import "google/ads/googleads/v6/enums/simulation_type.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "CampaignCriterionSimulationProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the campaign criterion simulation resource. + +// A campaign criterion simulation. Supported combinations of advertising +// channel type, criterion ids, simulation type and simulation modification +// method is detailed below respectively. +// +// 1. SEARCH - 30000,30001,30002 - BID_MODIFIER - UNIFORM +// 2. SHOPPING - 30000,30001,30002 - BID_MODIFIER - UNIFORM +// 3. DISPLAY - 30001 - BID_MODIFIER - UNIFORM +message CampaignCriterionSimulation { + option (google.api.resource) = { + type: "googleads.googleapis.com/CampaignCriterionSimulation" + pattern: "customers/{customer_id}/campaignCriterionSimulations/{campaign_id}~{criterion_id}~{type}~{modification_method}~{start_date}~{end_date}" + }; + + // Output only. The resource name of the campaign criterion simulation. + // Campaign criterion simulation resource names have the form: + // + // `customers/{customer_id}/campaignCriterionSimulations/{campaign_id}~{criterion_id}~{type}~{modification_method}~{start_date}~{end_date}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CampaignCriterionSimulation" + } + ]; + + // Output only. Campaign ID of the simulation. + optional int64 campaign_id = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Criterion ID of the simulation. + optional int64 criterion_id = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The field that the simulation modifies. + google.ads.googleads.v6.enums.SimulationTypeEnum.SimulationType type = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. How the simulation modifies the field. + google.ads.googleads.v6.enums.SimulationModificationMethodEnum.SimulationModificationMethod modification_method = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. First day on which the simulation is based, in YYYY-MM-DD format. + optional string start_date = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Last day on which the simulation is based, in YYYY-MM-DD format. + optional string end_date = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // List of simulation points. + oneof point_list { + // Output only. Simulation points if the simulation type is BID_MODIFIER. + google.ads.googleads.v6.common.BidModifierSimulationPointList bid_modifier_point_list = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + } +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/campaign_draft.proto b/third_party/googleapis/google/ads/googleads/v6/resources/campaign_draft.proto new file mode 100644 index 000000000..39e424f71 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/campaign_draft.proto @@ -0,0 +1,98 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/enums/campaign_draft_status.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "CampaignDraftProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the Campaign Draft resource. + +// A campaign draft. +message CampaignDraft { + option (google.api.resource) = { + type: "googleads.googleapis.com/CampaignDraft" + pattern: "customers/{customer_id}/campaignDrafts/{base_campaign_id}~{draft_id}" + }; + + // Immutable. The resource name of the campaign draft. + // Campaign draft resource names have the form: + // + // `customers/{customer_id}/campaignDrafts/{base_campaign_id}~{draft_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CampaignDraft" + } + ]; + + // Output only. The ID of the draft. + // + // This field is read-only. + optional int64 draft_id = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. The base campaign to which the draft belongs. + optional string base_campaign = 10 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Campaign" + } + ]; + + // The name of the campaign draft. + // + // This field is required and should not be empty when creating new + // campaign drafts. + // + // It must not contain any null (code point 0x0), NL line feed + // (code point 0xA) or carriage return (code point 0xD) characters. + optional string name = 11; + + // Output only. Resource name of the Campaign that results from overlaying the draft + // changes onto the base campaign. + // + // This field is read-only. + optional string draft_campaign = 12 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Campaign" + } + ]; + + // Output only. The status of the campaign draft. This field is read-only. + // + // When a new campaign draft is added, the status defaults to PROPOSED. + google.ads.googleads.v6.enums.CampaignDraftStatusEnum.CampaignDraftStatus status = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Whether there is an experiment based on this draft currently serving. + optional bool has_experiment_running = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The resource name of the long-running operation that can be used to poll + // for completion of draft promotion. This is only set if the draft promotion + // is in progress or finished. + optional string long_running_operation = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/campaign_experiment.proto b/third_party/googleapis/google/ads/googleads/v6/resources/campaign_experiment.proto new file mode 100644 index 000000000..b85adfdae --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/campaign_experiment.proto @@ -0,0 +1,121 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/enums/campaign_experiment_status.proto"; +import "google/ads/googleads/v6/enums/campaign_experiment_traffic_split_type.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "CampaignExperimentProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the Campaign Experiment resource. + +// An A/B experiment that compares the performance of the base campaign +// (the control) and a variation of that campaign (the experiment). +message CampaignExperiment { + option (google.api.resource) = { + type: "googleads.googleapis.com/CampaignExperiment" + pattern: "customers/{customer_id}/campaignExperiments/{campaign_experiment_id}" + }; + + // Immutable. The resource name of the campaign experiment. + // Campaign experiment resource names have the form: + // + // `customers/{customer_id}/campaignExperiments/{campaign_experiment_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CampaignExperiment" + } + ]; + + // Output only. The ID of the campaign experiment. + // + // This field is read-only. + optional int64 id = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. The campaign draft with staged changes to the base campaign. + optional string campaign_draft = 14 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CampaignDraft" + } + ]; + + // The name of the campaign experiment. + // + // This field is required when creating new campaign experiments + // and must not conflict with the name of another non-removed + // campaign experiment or campaign. + // + // It must not contain any null (code point 0x0), NL line feed + // (code point 0xA) or carriage return (code point 0xD) characters. + optional string name = 15; + + // The description of the experiment. + optional string description = 16; + + // Immutable. Share of traffic directed to experiment as a percent (must be between 1 and + // 99 inclusive. Base campaign receives the remainder of the traffic + // (100 - traffic_split_percent). Required for create. + optional int64 traffic_split_percent = 17 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Determines the behavior of the traffic split. + google.ads.googleads.v6.enums.CampaignExperimentTrafficSplitTypeEnum.CampaignExperimentTrafficSplitType traffic_split_type = 7 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. The experiment campaign, as opposed to the base campaign. + optional string experiment_campaign = 18 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Campaign" + } + ]; + + // Output only. The status of the campaign experiment. This field is read-only. + google.ads.googleads.v6.enums.CampaignExperimentStatusEnum.CampaignExperimentStatus status = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The resource name of the long-running operation that can be used to poll + // for completion of experiment create or promote. The most recent long + // running operation is returned. + optional string long_running_operation = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Date when the campaign experiment starts. By default, the experiment starts + // now or on the campaign's start date, whichever is later. If this field is + // set, then the experiment starts at the beginning of the specified date in + // the customer's time zone. Cannot be changed once the experiment starts. + // + // Format: YYYY-MM-DD + // Example: 2019-03-14 + optional string start_date = 20; + + // The last day of the campaign experiment. By default, the experiment ends on + // the campaign's end date. If this field is set, then the experiment ends at + // the end of the specified date in the customer's time zone. + // + // Format: YYYY-MM-DD + // Example: 2019-04-18 + optional string end_date = 21; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/campaign_extension_setting.proto b/third_party/googleapis/google/ads/googleads/v6/resources/campaign_extension_setting.proto new file mode 100644 index 000000000..19a676d4c --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/campaign_extension_setting.proto @@ -0,0 +1,79 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/enums/extension_setting_device.proto"; +import "google/ads/googleads/v6/enums/extension_type.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "CampaignExtensionSettingProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the CampaignExtensionSetting resource. + +// A campaign extension setting. +message CampaignExtensionSetting { + option (google.api.resource) = { + type: "googleads.googleapis.com/CampaignExtensionSetting" + pattern: "customers/{customer_id}/campaignExtensionSettings/{campaign_id}~{extension_type}" + }; + + // Immutable. The resource name of the campaign extension setting. + // CampaignExtensionSetting resource names have the form: + // + // `customers/{customer_id}/campaignExtensionSettings/{campaign_id}~{extension_type}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CampaignExtensionSetting" + } + ]; + + // Immutable. The extension type of the customer extension setting. + google.ads.googleads.v6.enums.ExtensionTypeEnum.ExtensionType extension_type = 2 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. The resource name of the campaign. The linked extension feed items will + // serve under this campaign. + // Campaign resource names have the form: + // + // `customers/{customer_id}/campaigns/{campaign_id}` + optional string campaign = 6 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Campaign" + } + ]; + + // The resource names of the extension feed items to serve under the campaign. + // ExtensionFeedItem resource names have the form: + // + // `customers/{customer_id}/extensionFeedItems/{feed_item_id}` + repeated string extension_feed_items = 7 [(google.api.resource_reference) = { + type: "googleads.googleapis.com/ExtensionFeedItem" + }]; + + // The device for which the extensions will serve. Optional. + google.ads.googleads.v6.enums.ExtensionSettingDeviceEnum.ExtensionSettingDevice device = 5; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/campaign_feed.proto b/third_party/googleapis/google/ads/googleads/v6/resources/campaign_feed.proto new file mode 100644 index 000000000..8ed8ac360 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/campaign_feed.proto @@ -0,0 +1,83 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/common/matching_function.proto"; +import "google/ads/googleads/v6/enums/feed_link_status.proto"; +import "google/ads/googleads/v6/enums/placeholder_type.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "CampaignFeedProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the CampaignFeed resource. + +// A campaign feed. +message CampaignFeed { + option (google.api.resource) = { + type: "googleads.googleapis.com/CampaignFeed" + pattern: "customers/{customer_id}/campaignFeeds/{campaign_id}~{feed_id}" + }; + + // Immutable. The resource name of the campaign feed. + // Campaign feed resource names have the form: + // + // `customers/{customer_id}/campaignFeeds/{campaign_id}~{feed_id} + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CampaignFeed" + } + ]; + + // Immutable. The feed to which the CampaignFeed belongs. + optional string feed = 7 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Feed" + } + ]; + + // Immutable. The campaign to which the CampaignFeed belongs. + optional string campaign = 8 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Campaign" + } + ]; + + // Indicates which placeholder types the feed may populate under the connected + // campaign. Required. + repeated google.ads.googleads.v6.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. + // Required. + google.ads.googleads.v6.common.MatchingFunction matching_function = 5; + + // Output only. Status of the campaign feed. + // This field is read-only. + google.ads.googleads.v6.enums.FeedLinkStatusEnum.FeedLinkStatus status = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/campaign_label.proto b/third_party/googleapis/google/ads/googleads/v6/resources/campaign_label.proto new file mode 100644 index 000000000..4bfc4e194 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/campaign_label.proto @@ -0,0 +1,66 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "CampaignLabelProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the campaign label resource. + +// Represents a relationship between a campaign and a label. +message CampaignLabel { + option (google.api.resource) = { + type: "googleads.googleapis.com/CampaignLabel" + pattern: "customers/{customer_id}/campaignLabels/{campaign_id}~{label_id}" + }; + + // Immutable. Name of the resource. + // Campaign label resource names have the form: + // `customers/{customer_id}/campaignLabels/{campaign_id}~{label_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CampaignLabel" + } + ]; + + // Immutable. The campaign to which the label is attached. + optional string campaign = 4 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Campaign" + } + ]; + + // Immutable. The label assigned to the campaign. + optional string label = 5 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Label" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/campaign_shared_set.proto b/third_party/googleapis/google/ads/googleads/v6/resources/campaign_shared_set.proto new file mode 100644 index 000000000..650c9ab50 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/campaign_shared_set.proto @@ -0,0 +1,77 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/enums/campaign_shared_set_status.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "CampaignSharedSetProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the CampaignSharedSet resource. + +// CampaignSharedSets are used for managing the shared sets associated with a +// campaign. +message CampaignSharedSet { + option (google.api.resource) = { + type: "googleads.googleapis.com/CampaignSharedSet" + pattern: "customers/{customer_id}/campaignSharedSets/{campaign_id}~{shared_set_id}" + }; + + // Immutable. The resource name of the campaign shared set. + // Campaign shared set resource names have the form: + // + // `customers/{customer_id}/campaignSharedSets/{campaign_id}~{shared_set_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CampaignSharedSet" + } + ]; + + // Immutable. The campaign to which the campaign shared set belongs. + optional string campaign = 5 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Campaign" + } + ]; + + // Immutable. The shared set associated with the campaign. This may be a negative keyword + // shared set of another customer. This customer should be a manager of the + // other customer, otherwise the campaign shared set will exist but have no + // serving effect. Only negative keyword shared sets can be associated with + // Shopping campaigns. Only negative placement shared sets can be associated + // with Display mobile app campaigns. + optional string shared_set = 6 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/SharedSet" + } + ]; + + // Output only. The status of this campaign shared set. Read only. + google.ads.googleads.v6.enums.CampaignSharedSetStatusEnum.CampaignSharedSetStatus status = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/carrier_constant.proto b/third_party/googleapis/google/ads/googleads/v6/resources/carrier_constant.proto new file mode 100644 index 000000000..aad54ef3c --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/carrier_constant.proto @@ -0,0 +1,61 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "CarrierConstantProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the Carrier constant resource. + +// A carrier criterion that can be used in campaign targeting. +message CarrierConstant { + option (google.api.resource) = { + type: "googleads.googleapis.com/CarrierConstant" + pattern: "carrierConstants/{criterion_id}" + }; + + // Output only. The resource name of the carrier criterion. + // Carrier criterion resource names have the form: + // + // `carrierConstants/{criterion_id}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CarrierConstant" + } + ]; + + // Output only. The ID of the carrier criterion. + optional int64 id = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The full name of the carrier in English. + optional string name = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The country code of the country where the carrier is located, e.g., "AR", + // "FR", etc. + optional string country_code = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/change_event.proto b/third_party/googleapis/google/ads/googleads/v6/resources/change_event.proto new file mode 100644 index 000000000..771e9fd7d --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/change_event.proto @@ -0,0 +1,178 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/enums/ad_type.proto"; +import "google/ads/googleads/v6/enums/advertising_channel_sub_type.proto"; +import "google/ads/googleads/v6/enums/advertising_channel_type.proto"; +import "google/ads/googleads/v6/enums/change_client_type.proto"; +import "google/ads/googleads/v6/enums/change_event_resource_type.proto"; +import "google/ads/googleads/v6/enums/criterion_type.proto"; +import "google/ads/googleads/v6/enums/feed_origin.proto"; +import "google/ads/googleads/v6/enums/resource_change_operation.proto"; +import "google/ads/googleads/v6/resources/ad.proto"; +import "google/ads/googleads/v6/resources/ad_group.proto"; +import "google/ads/googleads/v6/resources/ad_group_ad.proto"; +import "google/ads/googleads/v6/resources/ad_group_bid_modifier.proto"; +import "google/ads/googleads/v6/resources/ad_group_criterion.proto"; +import "google/ads/googleads/v6/resources/ad_group_feed.proto"; +import "google/ads/googleads/v6/resources/campaign.proto"; +import "google/ads/googleads/v6/resources/campaign_budget.proto"; +import "google/ads/googleads/v6/resources/campaign_criterion.proto"; +import "google/ads/googleads/v6/resources/campaign_feed.proto"; +import "google/ads/googleads/v6/resources/feed.proto"; +import "google/ads/googleads/v6/resources/feed_item.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "ChangeEventProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the Change Event resource. + +// Describes the granular change of returned resource of certain resource types. +// Changes made through UI, API and new versions of Editor +// by external users (including external users, and internal users that can be +// shown externally) in the past 30 days will be shown. The change shows the old +// values of the changed fields before the change and the new values right after +// the change. ChangeEvent could have up to 3 minutes delay to reflect a new +// change. +message ChangeEvent { + option (google.api.resource) = { + type: "googleads.googleapis.com/ChangeEvent" + pattern: "customers/{customer_id}/changeEvents/{timestamp_micros}~{command_index}~{mutate_index}" + }; + + // A wrapper proto presenting all supported resources. + // Only the resource of the change_resource_type will be set. + message ChangedResource { + // Output only. Set if change_resource_type == AD. + Ad ad = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Set if change_resource_type == AD_GROUP. + AdGroup ad_group = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Set if change_resource_type == AD_GROUP_CRITERION. + AdGroupCriterion ad_group_criterion = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Set if change_resource_type == CAMPAIGN. + Campaign campaign = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Set if change_resource_type == CAMPAIGN_BUDGET. + CampaignBudget campaign_budget = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Set if change_resource_type == AD_GROUP_BID_MODIFIER. + AdGroupBidModifier ad_group_bid_modifier = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Set if change_resource_type == CAMPAIGN_CRITERION. + CampaignCriterion campaign_criterion = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Set if change_resource_type == FEED. + Feed feed = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Set if change_resource_type == FEED_ITEM. + FeedItem feed_item = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Set if change_resource_type == CAMPAIGN_FEED. + CampaignFeed campaign_feed = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Set if change_resource_type == AD_GROUP_FEED. + AdGroupFeed ad_group_feed = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Set if change_resource_type == AD_GROUP_AD. + AdGroupAd ad_group_ad = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Output only. The resource name of the change event. + // Change event resource names have the form: + // + // `customers/{customer_id}/changeEvent/{timestamp_micros}~{command_index}~{mutate_index}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/ChangeEvent" + } + ]; + + // Output only. Time at which the change was committed on this resource. + string change_date_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The type of the changed resource. This dictates what resource + // will be set in old_resource and new_resource. + google.ads.googleads.v6.enums.ChangeEventResourceTypeEnum.ChangeEventResourceType change_resource_type = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Simply resource this change occurred on. + string change_resource_name = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Where the change was made through. + google.ads.googleads.v6.enums.ChangeClientTypeEnum.ChangeClientType client_type = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The email of the user who made this change. + string user_email = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The old resource before the change. Only changed fields will be populated. + ChangedResource old_resource = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The new resource after the change. Only changed fields will be populated. + ChangedResource new_resource = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The operation on the changed resource. + google.ads.googleads.v6.enums.ResourceChangeOperationEnum.ResourceChangeOperation resource_change_operation = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A list of fields that are changed in the returned resource. + google.protobuf.FieldMask changed_fields = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Campaign affected by this change. + string campaign = 11 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Campaign" + } + ]; + + // Output only. The AdGroup affected by this change. + string ad_group = 12 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroup" + } + ]; + + // Output only. The Feed affected by this change. + string feed = 13 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Feed" + } + ]; + + // Output only. The FeedItem affected by this change. + string feed_item = 14 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/FeedItem" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/change_status.proto b/third_party/googleapis/google/ads/googleads/v6/resources/change_status.proto new file mode 100644 index 000000000..1287f44d9 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/change_status.proto @@ -0,0 +1,150 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/enums/ad_type.proto"; +import "google/ads/googleads/v6/enums/advertising_channel_sub_type.proto"; +import "google/ads/googleads/v6/enums/advertising_channel_type.proto"; +import "google/ads/googleads/v6/enums/change_status_operation.proto"; +import "google/ads/googleads/v6/enums/change_status_resource_type.proto"; +import "google/ads/googleads/v6/enums/criterion_type.proto"; +import "google/ads/googleads/v6/enums/feed_origin.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "ChangeStatusProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the Change Status resource. + +// Describes the status of returned resource. ChangeStatus could have up to 3 +// minutes delay to reflect a new change. +message ChangeStatus { + option (google.api.resource) = { + type: "googleads.googleapis.com/ChangeStatus" + pattern: "customers/{customer_id}/changeStatus/{change_status_id}" + }; + + // Output only. The resource name of the change status. + // Change status resource names have the form: + // + // `customers/{customer_id}/changeStatus/{change_status_id}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/ChangeStatus" + } + ]; + + // Output only. Time at which the most recent change has occurred on this resource. + optional string last_change_date_time = 24 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. 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.v6.enums.ChangeStatusResourceTypeEnum.ChangeStatusResourceType resource_type = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Campaign affected by this change. + optional string campaign = 17 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Campaign" + } + ]; + + // Output only. The AdGroup affected by this change. + optional string ad_group = 18 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroup" + } + ]; + + // Output only. Represents the status of the changed resource. + google.ads.googleads.v6.enums.ChangeStatusOperationEnum.ChangeStatusOperation resource_status = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The AdGroupAd affected by this change. + optional string ad_group_ad = 25 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroupAd" + } + ]; + + // Output only. The AdGroupCriterion affected by this change. + optional string ad_group_criterion = 26 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroupCriterion" + } + ]; + + // Output only. The CampaignCriterion affected by this change. + optional string campaign_criterion = 27 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CampaignCriterion" + } + ]; + + // Output only. The Feed affected by this change. + optional string feed = 28 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Feed" + } + ]; + + // Output only. The FeedItem affected by this change. + optional string feed_item = 29 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/FeedItem" + } + ]; + + // Output only. The AdGroupFeed affected by this change. + optional string ad_group_feed = 30 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroupFeed" + } + ]; + + // Output only. The CampaignFeed affected by this change. + optional string campaign_feed = 31 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CampaignFeed" + } + ]; + + // Output only. The AdGroupBidModifier affected by this change. + optional string ad_group_bid_modifier = 32 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroupBidModifier" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/click_view.proto b/third_party/googleapis/google/ads/googleads/v6/resources/click_view.proto new file mode 100644 index 000000000..d49c12f75 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/click_view.proto @@ -0,0 +1,95 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/common/click_location.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "ClickViewProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the ClickView resource. + +// A click view with metrics aggregated at each click level, including both +// valid and invalid clicks. For non-Search campaigns, metrics.clicks +// represents the number of valid and invalid interactions. +// Queries including ClickView must have a filter limiting the results to one +// day and can be requested for dates back to 90 days before the time of the +// request. +message ClickView { + option (google.api.resource) = { + type: "googleads.googleapis.com/ClickView" + pattern: "customers/{customer_id}/clickViews/{date}~{gclid}" + }; + + // Output only. The resource name of the click view. + // Click view resource names have the form: + // + // `customers/{customer_id}/clickViews/{date (yyyy-MM-dd)}~{gclid}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/ClickView" + } + ]; + + // Output only. The Google Click ID. + optional string gclid = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The location criteria matching the area of interest associated with the + // impression. + google.ads.googleads.v6.common.ClickLocation area_of_interest = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The location criteria matching the location of presence associated with the + // impression. + google.ads.googleads.v6.common.ClickLocation location_of_presence = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Page number in search results where the ad was shown. + optional int64 page_number = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The associated ad. + optional string ad_group_ad = 10 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroupAd" + } + ]; + + // Output only. The associated campaign location target, if one exists. + optional string campaign_location_target = 11 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/GeoTargetConstant" + } + ]; + + // Output only. The associated user list, if one exists. + optional string user_list = 12 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/UserList" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/combined_audience.proto b/third_party/googleapis/google/ads/googleads/v6/resources/combined_audience.proto new file mode 100644 index 000000000..e1c26ae5a --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/combined_audience.proto @@ -0,0 +1,67 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/enums/combined_audience_status.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "CombinedAudienceProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the Combined Audience resource. + +// Describe a resource for combined audiences which includes different +// audiences. +message CombinedAudience { + option (google.api.resource) = { + type: "googleads.googleapis.com/CombinedAudience" + pattern: "customers/{customer_id}/combinedAudiences/{combined_audience_id}" + }; + + // Immutable. The resource name of the combined audience. + // Combined audience names have the form: + // + // `customers/{customer_id}/combinedAudience/{combined_audience_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CombinedAudience" + } + ]; + + // Output only. ID of the combined audience. + int64 id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Status of this combined audience. Indicates whether the combined audience + // is enabled or removed. + google.ads.googleads.v6.enums.CombinedAudienceStatusEnum.CombinedAudienceStatus status = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Name of the combined audience. It should be unique across all combined + // audiences. + string name = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Description of this combined audience. + string description = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/conversion_action.proto b/third_party/googleapis/google/ads/googleads/v6/resources/conversion_action.proto new file mode 100644 index 000000000..bcc65adab --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/conversion_action.proto @@ -0,0 +1,176 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/common/tag_snippet.proto"; +import "google/ads/googleads/v6/enums/attribution_model.proto"; +import "google/ads/googleads/v6/enums/conversion_action_category.proto"; +import "google/ads/googleads/v6/enums/conversion_action_counting_type.proto"; +import "google/ads/googleads/v6/enums/conversion_action_status.proto"; +import "google/ads/googleads/v6/enums/conversion_action_type.proto"; +import "google/ads/googleads/v6/enums/data_driven_model_status.proto"; +import "google/ads/googleads/v6/enums/mobile_app_vendor.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "ConversionActionProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the Conversion Action resource. + +// A conversion action. +message ConversionAction { + option (google.api.resource) = { + type: "googleads.googleapis.com/ConversionAction" + pattern: "customers/{customer_id}/conversionActions/{conversion_action_id}" + }; + + // Settings related to this conversion action's attribution model. + message AttributionModelSettings { + // The attribution model type of this conversion action. + google.ads.googleads.v6.enums.AttributionModelEnum.AttributionModel attribution_model = 1; + + // Output only. The status of the data-driven attribution model for the conversion + // action. + google.ads.googleads.v6.enums.DataDrivenModelStatusEnum.DataDrivenModelStatus data_driven_model_status = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Settings related to the value for conversion events associated with this + // conversion action. + message ValueSettings { + // The value to use when conversion events for this conversion action are + // sent with an invalid, disallowed or missing value, or when + // this conversion action is configured to always use the default value. + optional double default_value = 4; + + // The currency code to use when conversion events for this conversion + // action are sent with an invalid or missing currency code, or when this + // conversion action is configured to always use the default value. + optional string default_currency_code = 5; + + // Controls whether the default value and default currency code are used in + // place of the value and currency code specified in conversion events for + // this conversion action. + optional bool always_use_default_value = 6; + } + + // Settings related to a third party app analytics conversion action. + message ThirdPartyAppAnalyticsSettings { + // Output only. The event name of a third-party app analytics conversion. + optional string event_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Name of the third-party app analytics provider. + string provider_name = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Settings related to a Firebase conversion action. + message FirebaseSettings { + // Output only. The event name of a Firebase conversion. + optional string event_name = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Firebase project ID of the conversion. + optional string project_id = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Immutable. The resource name of the conversion action. + // Conversion action resource names have the form: + // + // `customers/{customer_id}/conversionActions/{conversion_action_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/ConversionAction" + } + ]; + + // Output only. The ID of the conversion action. + optional int64 id = 21 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The name of the conversion action. + // + // This field is required and should not be empty when creating new + // conversion actions. + optional string name = 22; + + // The status of this conversion action for conversion event accrual. + google.ads.googleads.v6.enums.ConversionActionStatusEnum.ConversionActionStatus status = 4; + + // Immutable. The type of this conversion action. + google.ads.googleads.v6.enums.ConversionActionTypeEnum.ConversionActionType type = 5 [(google.api.field_behavior) = IMMUTABLE]; + + // The category of conversions reported for this conversion action. + google.ads.googleads.v6.enums.ConversionActionCategoryEnum.ConversionActionCategory category = 6; + + // Output only. The resource name of the conversion action owner customer, or null if this + // is a system-defined conversion action. + optional string owner_customer = 23 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Customer" + } + ]; + + // Whether this conversion action should be included in the "conversions" + // metric. + optional bool include_in_conversions_metric = 24; + + // The maximum number of days that may elapse between an interaction + // (e.g., a click) and a conversion event. + optional int64 click_through_lookback_window_days = 25; + + // The maximum number of days which may elapse between an impression and a + // conversion without an interaction. + optional int64 view_through_lookback_window_days = 26; + + // Settings related to the value for conversion events associated with this + // conversion action. + ValueSettings value_settings = 11; + + // How to count conversion events for the conversion action. + google.ads.googleads.v6.enums.ConversionActionCountingTypeEnum.ConversionActionCountingType counting_type = 12; + + // Settings related to this conversion action's attribution model. + AttributionModelSettings attribution_model_settings = 13; + + // Output only. The snippets used for tracking conversions. + repeated google.ads.googleads.v6.common.TagSnippet tag_snippets = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The phone call duration in seconds after which a conversion should be + // reported for this conversion action. + // + // The value must be between 0 and 10000, inclusive. + optional int64 phone_call_duration_seconds = 27; + + // App ID for an app conversion action. + optional string app_id = 28; + + // Output only. Mobile app vendor for an app conversion action. + google.ads.googleads.v6.enums.MobileAppVendorEnum.MobileAppVendor mobile_app_vendor = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Firebase settings for Firebase conversion types. + FirebaseSettings firebase_settings = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Third Party App Analytics settings for third party conversion types. + ThirdPartyAppAnalyticsSettings third_party_app_analytics_settings = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/currency_constant.proto b/third_party/googleapis/google/ads/googleads/v6/resources/currency_constant.proto new file mode 100644 index 000000000..6958bd22e --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/currency_constant.proto @@ -0,0 +1,64 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "CurrencyConstantProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the Currency Constant resource. + +// A currency constant. +message CurrencyConstant { + option (google.api.resource) = { + type: "googleads.googleapis.com/CurrencyConstant" + pattern: "currencyConstants/{code}" + }; + + // Output only. The resource name of the currency constant. + // Currency constant resource names have the form: + // + // `currencyConstants/{code}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CurrencyConstant" + } + ]; + + // Output only. ISO 4217 three-letter currency code, e.g. "USD" + optional string code = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Full English name of the currency. + optional string name = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Standard symbol for describing this currency, e.g. '$' for US Dollars. + optional string symbol = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The billable unit for this currency. Billed amounts should be multiples of + // this value. + optional int64 billable_unit_micros = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/custom_audience.proto b/third_party/googleapis/google/ads/googleads/v6/resources/custom_audience.proto new file mode 100644 index 000000000..3b661b419 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/custom_audience.proto @@ -0,0 +1,107 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/enums/custom_audience_member_type.proto"; +import "google/ads/googleads/v6/enums/custom_audience_status.proto"; +import "google/ads/googleads/v6/enums/custom_audience_type.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "CustomAudienceProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the Custom Audience resource. + +// A custom audience. This is a list of users by interest. +message CustomAudience { + option (google.api.resource) = { + type: "googleads.googleapis.com/CustomAudience" + pattern: "customers/{customer_id}/customAudiences/{custom_audience_id}" + }; + + // Immutable. The resource name of the custom audience. + // Custom audience resource names have the form: + // + // `customers/{customer_id}/customAudiences/{custom_audience_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CustomAudience" + } + ]; + + // Output only. ID of the custom audience. + int64 id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Status of this custom audience. Indicates whether the custom audience is + // enabled or removed. + google.ads.googleads.v6.enums.CustomAudienceStatusEnum.CustomAudienceStatus status = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Name of the custom audience. It should be unique for all custom audiences + // created by a customer. + // This field is required for creating operations. + string name = 4; + + // Type of the custom audience. + // ("INTEREST" OR "PURCHASE_INTENT" is not allowed for newly created custom + // audience but kept for existing audiences) + google.ads.googleads.v6.enums.CustomAudienceTypeEnum.CustomAudienceType type = 5; + + // Description of this custom audience. + string description = 6; + + // List of custom audience members that this custom audience is composed of. + // Members can be added during CustomAudience creation. If members are + // presented in UPDATE operation, existing members will be overridden. + repeated CustomAudienceMember members = 7; +} + +// A member of custom audience. A member can be a KEYWORD, URL, +// PLACE_CATEGORY or APP. It can only be created or removed but not changed. +message CustomAudienceMember { + // The type of custom audience member, KEYWORD, URL, PLACE_CATEGORY or APP. + google.ads.googleads.v6.enums.CustomAudienceMemberTypeEnum.CustomAudienceMemberType member_type = 1; + + // The CustomAudienceMember value. One field is populated depending on the + // member type. + oneof value { + // A keyword or keyword phrase — at most 10 words and 80 characters. + // Languages with double-width characters such as Chinese, Japanese, + // or Korean, are allowed 40 characters, which describes the user's + // interests or actions. + string keyword = 2; + + // An HTTP URL, protocol-included — at most 2048 characters, which includes + // contents users have interests in. + string url = 3; + + // A place type described by a place category users visit. + int64 place_category = 4; + + // A package name of Android apps which users installed such as + // com.google.example. + string app = 5; + } +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/custom_interest.proto b/third_party/googleapis/google/ads/googleads/v6/resources/custom_interest.proto new file mode 100644 index 000000000..25c7499e2 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/custom_interest.proto @@ -0,0 +1,89 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/enums/custom_interest_member_type.proto"; +import "google/ads/googleads/v6/enums/custom_interest_status.proto"; +import "google/ads/googleads/v6/enums/custom_interest_type.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "CustomInterestProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the Custom Interest resource. + +// A custom interest. This is a list of users by interest. +message CustomInterest { + option (google.api.resource) = { + type: "googleads.googleapis.com/CustomInterest" + pattern: "customers/{customer_id}/customInterests/{custom_interest_id}" + }; + + // Immutable. The resource name of the custom interest. + // Custom interest resource names have the form: + // + // `customers/{customer_id}/customInterests/{custom_interest_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CustomInterest" + } + ]; + + // Output only. Id of the custom interest. + optional int64 id = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Status of this custom interest. Indicates whether the custom interest is + // enabled or removed. + google.ads.googleads.v6.enums.CustomInterestStatusEnum.CustomInterestStatus status = 3; + + // Name of the custom interest. It should be unique across the same custom + // affinity audience. + // This field is required for create operations. + optional string name = 9; + + // Type of the custom interest, CUSTOM_AFFINITY or CUSTOM_INTENT. + // By default the type is set to CUSTOM_AFFINITY. + google.ads.googleads.v6.enums.CustomInterestTypeEnum.CustomInterestType type = 5; + + // Description of this custom interest audience. + optional string description = 10; + + // List of custom interest members that this custom interest is composed of. + // Members can be added during CustomInterest creation. If members are + // presented in UPDATE operation, existing members will be overridden. + repeated CustomInterestMember members = 7; +} + +// A member of custom interest audience. A member can be a keyword or url. +// 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.v6.enums.CustomInterestMemberTypeEnum.CustomInterestMemberType member_type = 1; + + // Keyword text when member_type is KEYWORD or URL string when + // member_type is URL. + optional string parameter = 3; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/customer.proto b/third_party/googleapis/google/ads/googleads/v6/resources/customer.proto new file mode 100644 index 000000000..167eafcbc --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/customer.proto @@ -0,0 +1,161 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/enums/customer_pay_per_conversion_eligibility_failure_reason.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "CustomerProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the Customer resource. + +// A customer. +message Customer { + option (google.api.resource) = { + type: "googleads.googleapis.com/Customer" + pattern: "customers/{customer_id}" + }; + + // Immutable. The resource name of the customer. + // Customer resource names have the form: + // + // `customers/{customer_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Customer" + } + ]; + + // Output only. The ID of the customer. + optional int64 id = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional, non-unique descriptive name of the customer. + optional string descriptive_name = 20; + + // Immutable. The currency in which the account operates. + // A subset of the currency codes from the ISO 4217 standard is + // supported. + optional string currency_code = 21 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. The local timezone ID of the customer. + optional string time_zone = 22 [(google.api.field_behavior) = IMMUTABLE]; + + // The URL template for constructing a tracking URL out of parameters. + optional string tracking_url_template = 23; + + // The URL template for appending params to the final URL + optional string final_url_suffix = 24; + + // Whether auto-tagging is enabled for the customer. + optional bool auto_tagging_enabled = 25; + + // Output only. Whether the Customer has a Partners program badge. If the Customer is not + // associated with the Partners program, this will be false. For more + // information, see https://support.google.com/partners/answer/3125774. + optional bool has_partners_badge = 26 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Whether the customer is a manager. + optional bool manager = 27 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Whether the customer is a test account. + optional bool test_account = 28 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Call reporting setting for a customer. + CallReportingSetting call_reporting_setting = 10; + + // Output only. Conversion tracking setting for a customer. + ConversionTrackingSetting conversion_tracking_setting = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Remarketing setting for a customer. + RemarketingSetting remarketing_setting = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. 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.v6.enums.CustomerPayPerConversionEligibilityFailureReasonEnum.CustomerPayPerConversionEligibilityFailureReason pay_per_conversion_eligibility_failure_reasons = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Optimization score of the customer. + // + // Optimization score is an estimate of how well a customer's campaigns are + // set to perform. It ranges from 0% (0.0) to 100% (1.0). This field is null + // for all manager customers, and for unscored non-manager customers. + // + // See "About optimization score" at + // https://support.google.com/google-ads/answer/9061546. + // + // This field is read-only. + optional double optimization_score = 29 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Optimization score weight of the customer. + // + // Optimization score weight can be used to compare/aggregate optimization + // scores across multiple non-manager customers. The aggregate optimization + // score of a manager is computed as the sum over all of their customers of + // `Customer.optimization_score * Customer.optimization_score_weight`. This + // field is 0 for all manager customers, and for unscored non-manager + // customers. + // + // This field is read-only. + double optimization_score_weight = 30 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Call reporting setting for a customer. +message CallReportingSetting { + // Enable reporting of phone call events by redirecting them via Google + // System. + optional bool call_reporting_enabled = 10; + + // Whether to enable call conversion reporting. + optional bool call_conversion_reporting_enabled = 11; + + // Customer-level call conversion action to attribute a call conversion to. + // If not set a default conversion action is used. Only in effect when + // call_conversion_reporting_enabled is set to true. + optional string call_conversion_action = 12 [(google.api.resource_reference) = { + type: "googleads.googleapis.com/ConversionAction" + }]; +} + +// A collection of customer-wide settings related to Google Ads Conversion +// Tracking. +message ConversionTrackingSetting { + // Output only. The conversion tracking id used for this account. This id is automatically + // assigned after any conversion tracking feature is used. If the customer + // doesn't use conversion tracking, this is 0. This field is read-only. + optional int64 conversion_tracking_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The conversion tracking id of the customer's manager. This is set when the + // customer is opted into cross account conversion tracking, and it overrides + // conversion_tracking_id. This field can only be managed through the Google + // Ads UI. This field is read-only. + optional int64 cross_account_conversion_tracking_id = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Remarketing setting for a customer. +message RemarketingSetting { + // Output only. The Google global site tag. + optional string google_global_site_tag = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/customer_client.proto b/third_party/googleapis/google/ads/googleads/v6/resources/customer_client.proto new file mode 100644 index 000000000..b0cdc8def --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/customer_client.proto @@ -0,0 +1,89 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "CustomerClientProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the CustomerClient resource. + +// A link between the given customer and a client customer. CustomerClients only +// exist for manager customers. All direct and indirect client customers are +// included, as well as the manager itself. +message CustomerClient { + option (google.api.resource) = { + type: "googleads.googleapis.com/CustomerClient" + pattern: "customers/{customer_id}/customerClients/{client_customer_id}" + }; + + // Output only. The resource name of the customer client. + // CustomerClient resource names have the form: + // `customers/{customer_id}/customerClients/{client_customer_id}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CustomerClient" + } + ]; + + // Output only. The resource name of the client-customer which is linked to + // the given customer. Read only. + optional string client_customer = 12 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Customer" + } + ]; + + // Output only. Specifies whether this is a + // [hidden account](https://support.google.com/google-ads/answer/7519830). + // Read only. + optional bool hidden = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Distance between given customer and client. For self link, the level value + // will be 0. Read only. + optional int64 level = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Common Locale Data Repository (CLDR) string representation of the + // time zone of the client, e.g. America/Los_Angeles. Read only. + optional string time_zone = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Identifies if the client is a test account. Read only. + optional bool test_account = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Identifies if the client is a manager. Read only. + optional bool manager = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Descriptive name for the client. Read only. + optional string descriptive_name = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Currency code (e.g. 'USD', 'EUR') for the client. Read only. + optional string currency_code = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The ID of the client customer. Read only. + optional int64 id = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/customer_client_link.proto b/third_party/googleapis/google/ads/googleads/v6/resources/customer_client_link.proto new file mode 100644 index 000000000..8fe9af285 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/customer_client_link.proto @@ -0,0 +1,70 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/enums/manager_link_status.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "CustomerClientLinkProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the CustomerClientLink resource. + +// Represents customer client link relationship. +message CustomerClientLink { + option (google.api.resource) = { + type: "googleads.googleapis.com/CustomerClientLink" + pattern: "customers/{customer_id}/customerClientLinks/{client_customer_id}~{manager_link_id}" + }; + + // Immutable. Name of the resource. + // CustomerClientLink resource names have the form: + // `customers/{customer_id}/customerClientLinks/{client_customer_id}~{manager_link_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CustomerClientLink" + } + ]; + + // Immutable. The client customer linked to this customer. + optional string client_customer = 7 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Customer" + } + ]; + + // Output only. This is uniquely identifies a customer client link. Read only. + optional int64 manager_link_id = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // This is the status of the link between client and manager. + google.ads.googleads.v6.enums.ManagerLinkStatusEnum.ManagerLinkStatus status = 5; + + // The visibility of the link. Users can choose whether or not to see hidden + // links in the Google Ads UI. + // Default value is false + optional bool hidden = 9; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/customer_extension_setting.proto b/third_party/googleapis/google/ads/googleads/v6/resources/customer_extension_setting.proto new file mode 100644 index 000000000..fcd96e19a --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/customer_extension_setting.proto @@ -0,0 +1,67 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/enums/extension_setting_device.proto"; +import "google/ads/googleads/v6/enums/extension_type.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "CustomerExtensionSettingProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the CustomerExtensionSetting resource. + +// A customer extension setting. +message CustomerExtensionSetting { + option (google.api.resource) = { + type: "googleads.googleapis.com/CustomerExtensionSetting" + pattern: "customers/{customer_id}/customerExtensionSettings/{extension_type}" + }; + + // Immutable. The resource name of the customer extension setting. + // CustomerExtensionSetting resource names have the form: + // + // `customers/{customer_id}/customerExtensionSettings/{extension_type}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CustomerExtensionSetting" + } + ]; + + // Immutable. The extension type of the customer extension setting. + google.ads.googleads.v6.enums.ExtensionTypeEnum.ExtensionType extension_type = 2 [(google.api.field_behavior) = IMMUTABLE]; + + // The resource names of the extension feed items to serve under the customer. + // ExtensionFeedItem resource names have the form: + // + // `customers/{customer_id}/extensionFeedItems/{feed_item_id}` + repeated string extension_feed_items = 5 [(google.api.resource_reference) = { + type: "googleads.googleapis.com/ExtensionFeedItem" + }]; + + // The device for which the extensions will serve. Optional. + google.ads.googleads.v6.enums.ExtensionSettingDeviceEnum.ExtensionSettingDevice device = 4; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/customer_feed.proto b/third_party/googleapis/google/ads/googleads/v6/resources/customer_feed.proto new file mode 100644 index 000000000..4d051c246 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/customer_feed.proto @@ -0,0 +1,75 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/common/matching_function.proto"; +import "google/ads/googleads/v6/enums/feed_link_status.proto"; +import "google/ads/googleads/v6/enums/placeholder_type.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "CustomerFeedProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the CustomerFeed resource. + +// A customer feed. +message CustomerFeed { + option (google.api.resource) = { + type: "googleads.googleapis.com/CustomerFeed" + pattern: "customers/{customer_id}/customerFeeds/{feed_id}" + }; + + // Immutable. The resource name of the customer feed. + // Customer feed resource names have the form: + // + // `customers/{customer_id}/customerFeeds/{feed_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CustomerFeed" + } + ]; + + // Immutable. The feed being linked to the customer. + optional string feed = 6 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Feed" + } + ]; + + // Indicates which placeholder types the feed may populate under the connected + // customer. Required. + repeated google.ads.googleads.v6.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. + // Required. + google.ads.googleads.v6.common.MatchingFunction matching_function = 4; + + // Output only. Status of the customer feed. + // This field is read-only. + google.ads.googleads.v6.enums.FeedLinkStatusEnum.FeedLinkStatus status = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/customer_label.proto b/third_party/googleapis/google/ads/googleads/v6/resources/customer_label.proto new file mode 100644 index 000000000..2fad652d2 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/customer_label.proto @@ -0,0 +1,72 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "CustomerLabelProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the customer label resource. + +// Represents a relationship between a customer and a label. This customer may +// not have access to all the labels attached to it. Additional CustomerLabels +// may be returned by increasing permissions with login-customer-id. +message CustomerLabel { + option (google.api.resource) = { + type: "googleads.googleapis.com/CustomerLabel" + pattern: "customers/{customer_id}/customerLabels/{label_id}" + }; + + // Immutable. Name of the resource. + // Customer label resource names have the form: + // `customers/{customer_id}/customerLabels/{label_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CustomerLabel" + } + ]; + + // Output only. The resource name of the customer to which the label is attached. + // Read only. + optional string customer = 4 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Customer" + } + ]; + + // Output only. The resource name of the label assigned to the customer. + // + // Note: the Customer ID portion of the label resource name is not + // validated when creating a new CustomerLabel. + optional string label = 5 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Label" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/customer_manager_link.proto b/third_party/googleapis/google/ads/googleads/v6/resources/customer_manager_link.proto new file mode 100644 index 000000000..0c60e13ab --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/customer_manager_link.proto @@ -0,0 +1,65 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/enums/manager_link_status.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "CustomerManagerLinkProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the CustomerManagerLink resource. + +// Represents customer-manager link relationship. +message CustomerManagerLink { + option (google.api.resource) = { + type: "googleads.googleapis.com/CustomerManagerLink" + pattern: "customers/{customer_id}/customerManagerLinks/{manager_customer_id}~{manager_link_id}" + }; + + // Immutable. Name of the resource. + // CustomerManagerLink resource names have the form: + // `customers/{customer_id}/customerManagerLinks/{manager_customer_id}~{manager_link_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CustomerManagerLink" + } + ]; + + // Output only. The manager customer linked to the customer. + optional string manager_customer = 6 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Customer" + } + ]; + + // Output only. ID of the customer-manager link. This field is read only. + optional int64 manager_link_id = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Status of the link between the customer and the manager. + google.ads.googleads.v6.enums.ManagerLinkStatusEnum.ManagerLinkStatus status = 5; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/customer_negative_criterion.proto b/third_party/googleapis/google/ads/googleads/v6/resources/customer_negative_criterion.proto new file mode 100644 index 000000000..22d185bec --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/customer_negative_criterion.proto @@ -0,0 +1,82 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/common/criteria.proto"; +import "google/ads/googleads/v6/enums/criterion_type.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "CustomerNegativeCriterionProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the Customer Negative Criterion resource. + +// A negative criterion for exclusions at the customer level. +message CustomerNegativeCriterion { + option (google.api.resource) = { + type: "googleads.googleapis.com/CustomerNegativeCriterion" + pattern: "customers/{customer_id}/customerNegativeCriteria/{criterion_id}" + }; + + // Immutable. The resource name of the customer negative criterion. + // Customer negative criterion resource names have the form: + // + // `customers/{customer_id}/customerNegativeCriteria/{criterion_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CustomerNegativeCriterion" + } + ]; + + // Output only. The ID of the criterion. + optional int64 id = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The type of the criterion. + google.ads.googleads.v6.enums.CriterionTypeEnum.CriterionType type = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The customer negative criterion. + // + // Exactly one must be set. + oneof criterion { + // Immutable. ContentLabel. + google.ads.googleads.v6.common.ContentLabelInfo content_label = 4 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. MobileApplication. + google.ads.googleads.v6.common.MobileApplicationInfo mobile_application = 5 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. MobileAppCategory. + google.ads.googleads.v6.common.MobileAppCategoryInfo mobile_app_category = 6 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Placement. + google.ads.googleads.v6.common.PlacementInfo placement = 7 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. YouTube Video. + google.ads.googleads.v6.common.YouTubeVideoInfo youtube_video = 8 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. YouTube Channel. + google.ads.googleads.v6.common.YouTubeChannelInfo youtube_channel = 9 [(google.api.field_behavior) = IMMUTABLE]; + } +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/customer_user_access.proto b/third_party/googleapis/google/ads/googleads/v6/resources/customer_user_access.proto new file mode 100644 index 000000000..3d05f0440 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/customer_user_access.proto @@ -0,0 +1,72 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/enums/access_role.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "CustomerUserAccessProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the CustomerUserAccess resource. + +// Represents the permission of a single user onto a single customer. +message CustomerUserAccess { + option (google.api.resource) = { + type: "googleads.googleapis.com/CustomerUserAccess" + pattern: "customers/{customer_id}/customerUserAccesses/{user_id}" + }; + + // Immutable. Name of the resource. + // Resource names have the form: + // `customers/{customer_id}/customerUserAccesses/{user_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CustomerUserAccess" + } + ]; + + // Output only. User id of the user with the customer access. + // Read only field + int64 user_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Email address of the user. + // Read only field + optional string email_address = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Access role of the user. + google.ads.googleads.v6.enums.AccessRoleEnum.AccessRole access_role = 4; + + // Output only. The customer user access creation time. + // Read only field + // The format is "YYYY-MM-DD HH:MM:SS". + // Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30" + optional string access_creation_date_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The email address of the inviter user. + // Read only field + optional string inviter_user_email_address = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/customer_user_access_invitation.proto b/third_party/googleapis/google/ads/googleads/v6/resources/customer_user_access_invitation.proto new file mode 100644 index 000000000..8ad405a1b --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/customer_user_access_invitation.proto @@ -0,0 +1,73 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/enums/access_invitation_status.proto"; +import "google/ads/googleads/v6/enums/access_role.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "CustomerUserAccessInvitationProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the CustomerUserAccessInvitation resource. + +// Represent an invitation to a new user on this customer account. +message CustomerUserAccessInvitation { + option (google.api.resource) = { + type: "googleads.googleapis.com/CustomerUserAccessInvitation" + pattern: "customers/{customer_id}/customerUserAccessInvitations/{invitation_id}" + }; + + // Immutable. Name of the resource. + // Resource names have the form: + // `customers/{customer_id}/customerUserAccessInvitations/{invitation_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CustomerUserAccessInvitation" + } + ]; + + // Output only. The ID of the invitation. + // This field is read-only. + int64 invitation_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. Access role of the user. + google.ads.googleads.v6.enums.AccessRoleEnum.AccessRole access_role = 3 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Email address the invitation was sent to. + // This can differ from the email address of the account + // that accepts the invite. + string email_address = 4 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. Time invitation was created. + // This field is read-only. + // The format is "YYYY-MM-DD HH:MM:SS". + // Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30" + string creation_date_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Invitation status of the user. + google.ads.googleads.v6.enums.AccessInvitationStatusEnum.AccessInvitationStatus invitation_status = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/detail_placement_view.proto b/third_party/googleapis/google/ads/googleads/v6/resources/detail_placement_view.proto new file mode 100644 index 000000000..2afe842fb --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/detail_placement_view.proto @@ -0,0 +1,71 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/enums/placement_type.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "DetailPlacementViewProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the detail placement view resource. + +// A view with metrics aggregated by ad group and URL or YouTube video. +message DetailPlacementView { + option (google.api.resource) = { + type: "googleads.googleapis.com/DetailPlacementView" + pattern: "customers/{customer_id}/detailPlacementViews/{ad_group_id}~{base64_placement}" + }; + + // Output only. The resource name of the detail placement view. + // Detail placement view resource names have the form: + // + // `customers/{customer_id}/detailPlacementViews/{ad_group_id}~{base64_placement}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/DetailPlacementView" + } + ]; + + // Output only. The automatic placement string at detail level, e. g. website URL, mobile + // application ID, or a YouTube video ID. + optional string placement = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The display name is URL name for websites, YouTube video name for YouTube + // videos, and translated mobile app name for mobile apps. + optional string display_name = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. URL of the group placement, e.g. domain, link to the mobile application in + // app store, or a YouTube channel URL. + optional string group_placement_target_url = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. URL of the placement, e.g. website, link to the mobile application in app + // store, or a YouTube video URL. + optional string target_url = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Type of the placement, e.g. Website, YouTube Video, and Mobile Application. + google.ads.googleads.v6.enums.PlacementTypeEnum.PlacementType placement_type = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/display_keyword_view.proto b/third_party/googleapis/google/ads/googleads/v6/resources/display_keyword_view.proto new file mode 100644 index 000000000..e5aa221bc --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/display_keyword_view.proto @@ -0,0 +1,51 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "DisplayKeywordViewProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the display keyword view resource. + +// A display keyword view. +message DisplayKeywordView { + option (google.api.resource) = { + type: "googleads.googleapis.com/DisplayKeywordView" + pattern: "customers/{customer_id}/displayKeywordViews/{ad_group_id}~{criterion_id}" + }; + + // Output only. The resource name of the display keyword view. + // Display Keyword view resource names have the form: + // + // `customers/{customer_id}/displayKeywordViews/{ad_group_id}~{criterion_id}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/DisplayKeywordView" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/distance_view.proto b/third_party/googleapis/google/ads/googleads/v6/resources/distance_view.proto new file mode 100644 index 000000000..480ac4a14 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/distance_view.proto @@ -0,0 +1,62 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/enums/distance_bucket.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "DistanceViewProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the DistanceView resource. + +// A distance view with metrics aggregated by the user's distance from an +// advertiser's location extensions. Each DistanceBucket includes all +// impressions that fall within its distance and a single impression will +// contribute to the metrics for all DistanceBuckets that include the user's +// distance. +message DistanceView { + option (google.api.resource) = { + type: "googleads.googleapis.com/DistanceView" + pattern: "customers/{customer_id}/distanceViews/{placeholder_chain_id}~{distance_bucket}" + }; + + // Output only. The resource name of the distance view. + // Distance view resource names have the form: + // + // `customers/{customer_id}/distanceViews/1~{distance_bucket}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/DistanceView" + } + ]; + + // Output only. Grouping of user distance from location extensions. + google.ads.googleads.v6.enums.DistanceBucketEnum.DistanceBucket distance_bucket = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. True if the DistanceBucket is using the metric system, false otherwise. + optional bool metric_system = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/domain_category.proto b/third_party/googleapis/google/ads/googleads/v6/resources/domain_category.proto new file mode 100644 index 000000000..389a4973f --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/domain_category.proto @@ -0,0 +1,90 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "DomainCategoryProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the Domain Category resource. + +// A category generated automatically by crawling a domain. If a campaign uses +// the DynamicSearchAdsSetting, then domain categories will be generated for +// the domain. The categories can be targeted using WebpageConditionInfo. +// See: https://support.google.com/google-ads/answer/2471185 +message DomainCategory { + option (google.api.resource) = { + type: "googleads.googleapis.com/DomainCategory" + pattern: "customers/{customer_id}/domainCategories/{campaign_id}~{base64_category}~{language_code}" + }; + + // Output only. The resource name of the domain category. + // Domain category resource names have the form: + // + // `customers/{customer_id}/domainCategories/{campaign_id}~{category_base64}~{language_code}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/DomainCategory" + } + ]; + + // Output only. The campaign this category is recommended for. + optional string campaign = 10 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Campaign" + } + ]; + + // Output only. Recommended category for the website domain. e.g. if you have a website + // about electronics, the categories could be "cameras", "televisions", etc. + optional string category = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The language code specifying the language of the website. e.g. "en" for + // English. The language can be specified in the DynamicSearchAdsSetting + // required for dynamic search ads. This is the language of the pages from + // your website that you want Google Ads to find, create ads for, + // and match searches with. + optional string language_code = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The domain for the website. The domain can be specified in the + // DynamicSearchAdsSetting required for dynamic search ads. + optional string domain = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Fraction of pages on your site that this category matches. + optional double coverage_fraction = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The position of this category in the set of categories. Lower numbers + // indicate a better match for the domain. null indicates not recommended. + optional int64 category_rank = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Indicates whether this category has sub-categories. + optional bool has_children = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The recommended cost per click for the category. + optional int64 recommended_cpc_bid_micros = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/dynamic_search_ads_search_term_view.proto b/third_party/googleapis/google/ads/googleads/v6/resources/dynamic_search_ads_search_term_view.proto new file mode 100644 index 000000000..531679ff5 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/dynamic_search_ads_search_term_view.proto @@ -0,0 +1,86 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "DynamicSearchAdsSearchTermViewProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the Dynamic Search Ads Search Term View resource. + +// A dynamic search ads search term view. +message DynamicSearchAdsSearchTermView { + option (google.api.resource) = { + type: "googleads.googleapis.com/DynamicSearchAdsSearchTermView" + pattern: "customers/{customer_id}/dynamicSearchAdsSearchTermViews/{ad_group_id}~{search_term_fingerprint}~{headline_fingerprint}~{landing_page_fingerprint}~{page_url_fingerprint}" + }; + + // Output only. The resource name of the dynamic search ads search term view. + // Dynamic search ads search term view resource names have the form: + // + // `customers/{customer_id}/dynamicSearchAdsSearchTermViews/{ad_group_id}~{search_term_fingerprint}~{headline_fingerprint}~{landing_page_fingerprint}~{page_url_fingerprint}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/DynamicSearchAdsSearchTermView" + } + ]; + + // Output only. Search term + // + // This field is read-only. + optional string search_term = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The dynamically generated headline of the Dynamic Search Ad. + // + // This field is read-only. + optional string headline = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The dynamically selected landing page URL of the impression. + // + // This field is read-only. + optional string landing_page = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The URL of page feed item served for the impression. + // + // This field is read-only. + optional string page_url = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. True if query matches a negative keyword. + // + // This field is read-only. + optional bool has_negative_keyword = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. True if query is added to targeted keywords. + // + // This field is read-only. + optional bool has_matching_keyword = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. True if query matches a negative url. + // + // This field is read-only. + optional bool has_negative_url = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/expanded_landing_page_view.proto b/third_party/googleapis/google/ads/googleads/v6/resources/expanded_landing_page_view.proto new file mode 100644 index 000000000..f0dd19c3a --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/expanded_landing_page_view.proto @@ -0,0 +1,55 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "ExpandedLandingPageViewProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the expanded landing page view resource. + +// A landing page view with metrics aggregated at the expanded final URL +// level. +message ExpandedLandingPageView { + option (google.api.resource) = { + type: "googleads.googleapis.com/ExpandedLandingPageView" + pattern: "customers/{customer_id}/expandedLandingPageViews/{expanded_final_url_fingerprint}" + }; + + // Output only. The resource name of the expanded landing page view. + // Expanded landing page view resource names have the form: + // + // `customers/{customer_id}/expandedLandingPageViews/{expanded_final_url_fingerprint}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/ExpandedLandingPageView" + } + ]; + + // Output only. The final URL that clicks are directed to. + optional string expanded_final_url = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/extension_feed_item.proto b/third_party/googleapis/google/ads/googleads/v6/resources/extension_feed_item.proto new file mode 100644 index 000000000..d7af72a03 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/extension_feed_item.proto @@ -0,0 +1,151 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/common/criteria.proto"; +import "google/ads/googleads/v6/common/extensions.proto"; +import "google/ads/googleads/v6/enums/extension_type.proto"; +import "google/ads/googleads/v6/enums/feed_item_status.proto"; +import "google/ads/googleads/v6/enums/feed_item_target_device.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "ExtensionFeedItemProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the ExtensionFeedItem resource. + +// An extension feed item. +message ExtensionFeedItem { + option (google.api.resource) = { + type: "googleads.googleapis.com/ExtensionFeedItem" + pattern: "customers/{customer_id}/extensionFeedItems/{feed_item_id}" + }; + + // Immutable. The resource name of the extension feed item. + // Extension feed item resource names have the form: + // + // `customers/{customer_id}/extensionFeedItems/{feed_item_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/ExtensionFeedItem" + } + ]; + + // Output only. The ID of this feed item. Read-only. + optional int64 id = 25 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The extension type of the extension feed item. + // This field is read-only. + google.ads.googleads.v6.enums.ExtensionTypeEnum.ExtensionType extension_type = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Start time in which this feed item is effective and can begin serving. The + // time is in the customer's time zone. + // The format is "YYYY-MM-DD HH:MM:SS". + // Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30" + optional string start_date_time = 26; + + // End time in which this feed item is no longer effective and will stop + // serving. The time is in the customer's time zone. + // The format is "YYYY-MM-DD HH:MM:SS". + // Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30" + optional string end_date_time = 27; + + // List of non-overlapping schedules specifying all time intervals + // for which the feed item may serve. There can be a maximum of 6 schedules + // per day. + repeated google.ads.googleads.v6.common.AdScheduleInfo ad_schedules = 16; + + // The targeted device. + google.ads.googleads.v6.enums.FeedItemTargetDeviceEnum.FeedItemTargetDevice device = 17; + + // The targeted geo target constant. + optional string targeted_geo_target_constant = 30 [(google.api.resource_reference) = { + type: "googleads.googleapis.com/GeoTargetConstant" + }]; + + // The targeted keyword. + google.ads.googleads.v6.common.KeywordInfo targeted_keyword = 22; + + // Output only. Status of the feed item. + // This field is read-only. + google.ads.googleads.v6.enums.FeedItemStatusEnum.FeedItemStatus status = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Extension type. + oneof extension { + // Sitelink extension. + google.ads.googleads.v6.common.SitelinkFeedItem sitelink_feed_item = 2; + + // Structured snippet extension. + google.ads.googleads.v6.common.StructuredSnippetFeedItem structured_snippet_feed_item = 3; + + // App extension. + google.ads.googleads.v6.common.AppFeedItem app_feed_item = 7; + + // Call extension. + google.ads.googleads.v6.common.CallFeedItem call_feed_item = 8; + + // Callout extension. + google.ads.googleads.v6.common.CalloutFeedItem callout_feed_item = 9; + + // Text message extension. + google.ads.googleads.v6.common.TextMessageFeedItem text_message_feed_item = 10; + + // Price extension. + google.ads.googleads.v6.common.PriceFeedItem price_feed_item = 11; + + // Promotion extension. + google.ads.googleads.v6.common.PromotionFeedItem promotion_feed_item = 12; + + // Output only. Location extension. Locations are synced from a GMB account into a feed. + // This field is read-only. + google.ads.googleads.v6.common.LocationFeedItem location_feed_item = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Affiliate location extension. Feed locations are populated by Google Ads + // based on a chain ID. + // This field is read-only. + google.ads.googleads.v6.common.AffiliateLocationFeedItem affiliate_location_feed_item = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Hotel Callout extension. + google.ads.googleads.v6.common.HotelCalloutFeedItem hotel_callout_feed_item = 23; + + // Immutable. Advertiser provided image extension. + google.ads.googleads.v6.common.ImageFeedItem image_feed_item = 31 [(google.api.field_behavior) = IMMUTABLE]; + } + + // Targeting at either the campaign or ad group level. Feed items that target + // a campaign or ad group will only serve with that resource. + oneof serving_resource_targeting { + // The targeted campaign. + string targeted_campaign = 28 [(google.api.resource_reference) = { + type: "googleads.googleapis.com/Campaign" + }]; + + // The targeted ad group. + string targeted_ad_group = 29 [(google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroup" + }]; + } +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/feed.proto b/third_party/googleapis/google/ads/googleads/v6/resources/feed.proto new file mode 100644 index 000000000..a0e09a586 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/feed.proto @@ -0,0 +1,192 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/enums/affiliate_location_feed_relationship_type.proto"; +import "google/ads/googleads/v6/enums/feed_attribute_type.proto"; +import "google/ads/googleads/v6/enums/feed_origin.proto"; +import "google/ads/googleads/v6/enums/feed_status.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "FeedProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the Feed resource. + +// A feed. +message Feed { + option (google.api.resource) = { + type: "googleads.googleapis.com/Feed" + pattern: "customers/{customer_id}/feeds/{feed_id}" + }; + + // Data used to configure a location feed populated from Google My Business + // Locations. + message PlacesLocationFeedData { + // Data used for authorization using OAuth. + message OAuthInfo { + // The HTTP method used to obtain authorization. + optional string http_method = 4; + + // The HTTP request URL used to obtain authorization. + optional string http_request_url = 5; + + // The HTTP authorization header used to obtain authorization. + optional string http_authorization_header = 6; + } + + // Immutable. Required authentication token (from OAuth API) for the email. + // This field can only be specified in a create request. All its subfields + // are not selectable. + OAuthInfo oauth_info = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // Email address of a Google My Business account or email address of a + // manager of the Google My Business account. Required. + optional string email_address = 7; + + // Plus page ID of the managed business whose locations should be used. If + // this field is not set, then all businesses accessible by the user + // (specified by email_address) are used. + // This field is mutate-only and is not selectable. + string business_account_id = 8; + + // Used to filter Google My Business listings by business name. If + // business_name_filter is set, only listings with a matching business name + // are candidates to be sync'd into FeedItems. + optional string business_name_filter = 9; + + // Used to filter Google My Business listings by categories. If entries + // exist in category_filters, only listings that belong to any of the + // categories are candidates to be sync'd into FeedItems. If no entries + // exist in category_filters, then all listings are candidates for syncing. + repeated string category_filters = 11; + + // Used to filter Google My Business listings by labels. If entries exist in + // label_filters, only listings that has any of the labels set are + // candidates to be synchronized into FeedItems. If no entries exist in + // label_filters, then all listings are candidates for syncing. + repeated string label_filters = 12; + } + + // Data used to configure an affiliate location feed populated with the + // specified chains. + message AffiliateLocationFeedData { + // The list of chains that the affiliate location feed will sync the + // locations from. + repeated int64 chain_ids = 3; + + // The relationship the chains have with the advertiser. + google.ads.googleads.v6.enums.AffiliateLocationFeedRelationshipTypeEnum.AffiliateLocationFeedRelationshipType relationship_type = 2; + } + + // Immutable. The resource name of the feed. + // Feed resource names have the form: + // + // `customers/{customer_id}/feeds/{feed_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Feed" + } + ]; + + // Output only. The ID of the feed. + // This field is read-only. + optional int64 id = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. Name of the feed. Required. + optional string name = 12 [(google.api.field_behavior) = IMMUTABLE]; + + // The Feed's attributes. Required on CREATE, unless + // system_feed_generation_data is provided, in which case Google Ads will + // update the feed with the correct attributes. + // Disallowed on UPDATE. Use attribute_operations to add new attributes. + repeated FeedAttribute attributes = 4; + + // The list of operations changing the feed attributes. Attributes can only + // be added, not removed. + repeated FeedAttributeOperation attribute_operations = 9; + + // Immutable. Specifies who manages the FeedAttributes for the Feed. + google.ads.googleads.v6.enums.FeedOriginEnum.FeedOrigin origin = 5 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. Status of the feed. + // This field is read-only. + google.ads.googleads.v6.enums.FeedStatusEnum.FeedStatus status = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The system data for the Feed. This data specifies information for + // generating the feed items of the system generated feed. + oneof system_feed_generation_data { + // Data used to configure a location feed populated from Google My Business + // Locations. + PlacesLocationFeedData places_location_feed_data = 6; + + // Data used to configure an affiliate location feed populated with + // the specified chains. + AffiliateLocationFeedData affiliate_location_feed_data = 7; + } +} + +// FeedAttributes define the types of data expected to be present in a Feed. A +// single FeedAttribute specifies the expected type of the FeedItemAttributes +// with the same FeedAttributeId. Optionally, a FeedAttribute can be marked as +// being part of a FeedItem's unique key. +message FeedAttribute { + // ID of the attribute. + optional int64 id = 5; + + // The name of the attribute. Required. + optional string name = 6; + + // Data type for feed attribute. Required. + google.ads.googleads.v6.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 + // that a unique key is not required in a Feed's schema, in which case the + // FeedItems must be referenced by their feed_item_id. + optional bool is_part_of_key = 7; +} + +// Operation to be performed on a feed attribute list in a mutate. +message FeedAttributeOperation { + // The operator. + enum Operator { + // Unspecified. + UNSPECIFIED = 0; + + // Used for return value only. Represents value unknown in this version. + UNKNOWN = 1; + + // Add the attribute to the existing attributes. + ADD = 2; + } + + // Output only. Type of list operation to perform. + Operator operator = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The feed attribute being added to the list. + FeedAttribute value = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/feed_item.proto b/third_party/googleapis/google/ads/googleads/v6/resources/feed_item.proto new file mode 100644 index 000000000..42a41a107 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/feed_item.proto @@ -0,0 +1,214 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/common/custom_parameter.proto"; +import "google/ads/googleads/v6/common/feed_common.proto"; +import "google/ads/googleads/v6/common/policy.proto"; +import "google/ads/googleads/v6/enums/feed_item_quality_approval_status.proto"; +import "google/ads/googleads/v6/enums/feed_item_quality_disapproval_reason.proto"; +import "google/ads/googleads/v6/enums/feed_item_status.proto"; +import "google/ads/googleads/v6/enums/feed_item_validation_status.proto"; +import "google/ads/googleads/v6/enums/geo_targeting_restriction.proto"; +import "google/ads/googleads/v6/enums/placeholder_type.proto"; +import "google/ads/googleads/v6/enums/policy_approval_status.proto"; +import "google/ads/googleads/v6/enums/policy_review_status.proto"; +import "google/ads/googleads/v6/errors/feed_item_validation_error.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "FeedItemProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the FeedItem resource. + +// A feed item. +message FeedItem { + option (google.api.resource) = { + type: "googleads.googleapis.com/FeedItem" + pattern: "customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}" + }; + + // Immutable. The resource name of the feed item. + // Feed item resource names have the form: + // + // `customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/FeedItem" + } + ]; + + // Immutable. The feed to which this feed item belongs. + optional string feed = 11 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Feed" + } + ]; + + // Output only. The ID of this feed item. + optional int64 id = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Start time in which this feed item is effective and can begin serving. The + // time is in the customer's time zone. + // The format is "YYYY-MM-DD HH:MM:SS". + // Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30" + optional string start_date_time = 13; + + // End time in which this feed item is no longer effective and will stop + // serving. The time is in the customer's time zone. + // The format is "YYYY-MM-DD HH:MM:SS". + // Examples: "2018-03-05 09:15:00" or "2018-02-01 14:34:30" + optional string end_date_time = 14; + + // The feed item's attribute values. + repeated FeedItemAttributeValue attribute_values = 6; + + // Geo targeting restriction specifies the type of location that can be used + // for targeting. + google.ads.googleads.v6.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.v6.common.CustomParameter url_custom_parameters = 8; + + // Output only. Status of the feed item. + // This field is read-only. + google.ads.googleads.v6.enums.FeedItemStatusEnum.FeedItemStatus status = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. List of info about a feed item's validation and approval state for active + // feed mappings. There will be an entry in the list for each type of feed + // mapping associated with the feed, e.g. a feed with a sitelink and a call + // feed mapping would cause every feed item associated with that feed to have + // an entry in this list for both sitelink and call. + // This field is read-only. + repeated FeedItemPlaceholderPolicyInfo policy_infos = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A feed item attribute value. +message FeedItemAttributeValue { + // Id of the feed attribute for which the value is associated with. + optional int64 feed_attribute_id = 11; + + // Int64 value. Should be set if feed_attribute_id refers to a feed attribute + // of type INT64. + optional int64 integer_value = 12; + + // Bool value. Should be set if feed_attribute_id refers to a feed attribute + // of type BOOLEAN. + optional bool boolean_value = 13; + + // String value. Should be set if feed_attribute_id refers to a feed attribute + // of type STRING, URL or DATE_TIME. + // For STRING the maximum length is 1500 characters. For URL the maximum + // length is 2076 characters. For DATE_TIME the string must be in the format + // "YYYYMMDD HHMMSS". + optional string string_value = 14; + + // Double value. Should be set if feed_attribute_id refers to a feed attribute + // of type DOUBLE. + optional double double_value = 15; + + // Price value. Should be set if feed_attribute_id refers to a feed attribute + // of type PRICE. + google.ads.googleads.v6.common.Money price_value = 6; + + // Repeated int64 value. Should be set if feed_attribute_id refers to a feed + // attribute of type INT64_LIST. + repeated int64 integer_values = 16; + + // Repeated bool value. Should be set if feed_attribute_id refers to a feed + // attribute of type BOOLEAN_LIST. + repeated bool boolean_values = 17; + + // Repeated string value. Should be set if feed_attribute_id refers to a feed + // attribute of type STRING_LIST, URL_LIST or DATE_TIME_LIST. + // For STRING_LIST and URL_LIST the total size of the list in bytes may not + // exceed 3000. For DATE_TIME_LIST the number of elements may not exceed 200. + // + // For STRING_LIST the maximum length of each string element is 1500 + // characters. For URL_LIST the maximum length is 2076 characters. For + // DATE_TIME the format of the string must be the same as start and end time + // for the feed item. + repeated string string_values = 18; + + // Repeated double value. Should be set if feed_attribute_id refers to a feed + // attribute of type DOUBLE_LIST. + repeated double double_values = 19; +} + +// Policy, validation, and quality approval info for a feed item for the +// specified placeholder type. +message FeedItemPlaceholderPolicyInfo { + // Output only. The placeholder type. + google.ads.googleads.v6.enums.PlaceholderTypeEnum.PlaceholderType placeholder_type_enum = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The FeedMapping that contains the placeholder type. + optional string feed_mapping_resource_name = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Where the placeholder type is in the review process. + google.ads.googleads.v6.enums.PolicyReviewStatusEnum.PolicyReviewStatus review_status = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The overall approval status of the placeholder type, calculated based on + // the status of its individual policy topic entries. + google.ads.googleads.v6.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus approval_status = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The list of policy findings for the placeholder type. + repeated google.ads.googleads.v6.common.PolicyTopicEntry policy_topic_entries = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The validation status of the palceholder type. + google.ads.googleads.v6.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus validation_status = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. List of placeholder type validation errors. + repeated FeedItemValidationError validation_errors = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Placeholder type quality evaluation approval status. + google.ads.googleads.v6.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus quality_approval_status = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. List of placeholder type quality evaluation disapproval reasons. + repeated google.ads.googleads.v6.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason quality_disapproval_reasons = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Stores a validation error and the set of offending feed attributes which +// together are responsible for causing a feed item validation error. +message FeedItemValidationError { + // Output only. Error code indicating what validation error was triggered. The description + // of the error can be found in the 'description' field. + google.ads.googleads.v6.errors.FeedItemValidationErrorEnum.FeedItemValidationError validation_error = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The description of the validation error. + optional string description = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Set of feed attributes in the feed item flagged during validation. If + // empty, no specific feed attributes can be associated with the error + // (e.g. error across the entire feed item). + repeated int64 feed_attribute_ids = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Any extra information related to this error which is not captured by + // validation_error and feed_attribute_id (e.g. placeholder field IDs when + // feed_attribute_id is not mapped). Note that extra_info is not localized. + optional string extra_info = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/feed_item_set.proto b/third_party/googleapis/google/ads/googleads/v6/resources/feed_item_set.proto new file mode 100644 index 000000000..33232cce2 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/feed_item_set.proto @@ -0,0 +1,84 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/common/feed_item_set_filter_type_infos.proto"; +import "google/ads/googleads/v6/enums/feed_item_set_status.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "FeedItemSetProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Represents a set of feed items. The set can be used and shared among certain +// feed item features. For instance, the set can be referenced within the +// matching functions of CustomerFeed, CampaignFeed, and AdGroupFeed. +message FeedItemSet { + option (google.api.resource) = { + type: "googleads.googleapis.com/FeedItemSet" + pattern: "customers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_id}" + }; + + // Immutable. The resource name of the feed item set. + // Feed item set resource names have the form: + // `customers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/FeedItemSet" + } + ]; + + // Immutable. The resource name of the feed containing the feed items in the set. + // Immutable. Required. + string feed = 2 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Feed" + } + ]; + + // Output only. ID of the set. + int64 feed_item_set_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Name of the set. Must be unique within the account. + string display_name = 4; + + // Output only. Status of the feed item set. + // This field is read-only. + google.ads.googleads.v6.enums.FeedItemSetStatusEnum.FeedItemSetStatus status = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Represents a filter on locations in a feed item set. + // Only applicable if the parent Feed of the FeedItemSet is a LOCATION feed. + oneof dynamic_set_filter { + // Filter for dynamic location set. + // It is only used for sets of locations. + google.ads.googleads.v6.common.DynamicLocationSetFilter dynamic_location_set_filter = 5; + + // Filter for dynamic affiliate location set. + // This field doesn't apply generally to feed item sets. It is only used for + // sets of affiliate locations. + google.ads.googleads.v6.common.DynamicAffiliateLocationSetFilter dynamic_affiliate_location_set_filter = 6; + } +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/feed_item_set_link.proto b/third_party/googleapis/google/ads/googleads/v6/resources/feed_item_set_link.proto new file mode 100644 index 000000000..c6009f974 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/feed_item_set_link.proto @@ -0,0 +1,66 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "FeedItemSetLinkProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the FeedItemSetLink resource. + +// Represents a link between a FeedItem and a FeedItemSet. +message FeedItemSetLink { + option (google.api.resource) = { + type: "googleads.googleapis.com/FeedItemSetLink" + pattern: "customers/{customer_id}/feedItemSetLinks/{feed_id}~{feed_item_set_id}~{feed_item_id}" + }; + + // Immutable. The resource name of the feed item set link. + // Feed item set link resource names have the form: + // `customers/{customer_id}/feedItemSetLinks/{feed_id}~{feed_item_set_id}~{feed_item_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/FeedItemSetLink" + } + ]; + + // Immutable. The linked FeedItem. + string feed_item = 2 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/FeedItem" + } + ]; + + // Immutable. The linked FeedItemSet. + string feed_item_set = 3 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/FeedItemSet" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/feed_item_target.proto b/third_party/googleapis/google/ads/googleads/v6/resources/feed_item_target.proto new file mode 100644 index 000000000..5c4704502 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/feed_item_target.proto @@ -0,0 +1,108 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/common/criteria.proto"; +import "google/ads/googleads/v6/enums/feed_item_target_device.proto"; +import "google/ads/googleads/v6/enums/feed_item_target_status.proto"; +import "google/ads/googleads/v6/enums/feed_item_target_type.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "FeedItemTargetProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the FeedItemTarget resource. + +// A feed item target. +message FeedItemTarget { + option (google.api.resource) = { + type: "googleads.googleapis.com/FeedItemTarget" + pattern: "customers/{customer_id}/feedItemTargets/{feed_id}~{feed_item_id}~{feed_item_target_type}~{feed_item_target_id}" + }; + + // Immutable. The resource name of the feed item target. + // Feed item target resource names have the form: + // `customers/{customer_id}/feedItemTargets/{feed_id}~{feed_item_id}~{feed_item_target_type}~{feed_item_target_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/FeedItemTarget" + } + ]; + + // Immutable. The feed item to which this feed item target belongs. + optional string feed_item = 12 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/FeedItem" + } + ]; + + // Output only. The target type of this feed item target. This field is read-only. + google.ads.googleads.v6.enums.FeedItemTargetTypeEnum.FeedItemTargetType feed_item_target_type = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The ID of the targeted resource. This field is read-only. + optional int64 feed_item_target_id = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Status of the feed item target. + // This field is read-only. + google.ads.googleads.v6.enums.FeedItemTargetStatusEnum.FeedItemTargetStatus status = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The targeted resource. + oneof target { + // Immutable. The targeted campaign. + string campaign = 14 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Campaign" + } + ]; + + // Immutable. The targeted ad group. + string ad_group = 15 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroup" + } + ]; + + // Immutable. The targeted keyword. + google.ads.googleads.v6.common.KeywordInfo keyword = 7 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. The targeted geo target constant resource name. + string geo_target_constant = 16 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/GeoTargetConstant" + } + ]; + + // Immutable. The targeted device. + google.ads.googleads.v6.enums.FeedItemTargetDeviceEnum.FeedItemTargetDevice device = 9 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. The targeted schedule. + google.ads.googleads.v6.common.AdScheduleInfo ad_schedule = 10 [(google.api.field_behavior) = IMMUTABLE]; + } +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/feed_mapping.proto b/third_party/googleapis/google/ads/googleads/v6/resources/feed_mapping.proto new file mode 100644 index 000000000..bc72fcdb3 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/feed_mapping.proto @@ -0,0 +1,189 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/enums/ad_customizer_placeholder_field.proto"; +import "google/ads/googleads/v6/enums/affiliate_location_placeholder_field.proto"; +import "google/ads/googleads/v6/enums/app_placeholder_field.proto"; +import "google/ads/googleads/v6/enums/call_placeholder_field.proto"; +import "google/ads/googleads/v6/enums/callout_placeholder_field.proto"; +import "google/ads/googleads/v6/enums/custom_placeholder_field.proto"; +import "google/ads/googleads/v6/enums/dsa_page_feed_criterion_field.proto"; +import "google/ads/googleads/v6/enums/education_placeholder_field.proto"; +import "google/ads/googleads/v6/enums/feed_mapping_criterion_type.proto"; +import "google/ads/googleads/v6/enums/feed_mapping_status.proto"; +import "google/ads/googleads/v6/enums/flight_placeholder_field.proto"; +import "google/ads/googleads/v6/enums/hotel_placeholder_field.proto"; +import "google/ads/googleads/v6/enums/image_placeholder_field.proto"; +import "google/ads/googleads/v6/enums/job_placeholder_field.proto"; +import "google/ads/googleads/v6/enums/local_placeholder_field.proto"; +import "google/ads/googleads/v6/enums/location_extension_targeting_criterion_field.proto"; +import "google/ads/googleads/v6/enums/location_placeholder_field.proto"; +import "google/ads/googleads/v6/enums/message_placeholder_field.proto"; +import "google/ads/googleads/v6/enums/placeholder_type.proto"; +import "google/ads/googleads/v6/enums/price_placeholder_field.proto"; +import "google/ads/googleads/v6/enums/promotion_placeholder_field.proto"; +import "google/ads/googleads/v6/enums/real_estate_placeholder_field.proto"; +import "google/ads/googleads/v6/enums/sitelink_placeholder_field.proto"; +import "google/ads/googleads/v6/enums/structured_snippet_placeholder_field.proto"; +import "google/ads/googleads/v6/enums/travel_placeholder_field.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "FeedMappingProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the FeedMapping resource. + +// A feed mapping. +message FeedMapping { + option (google.api.resource) = { + type: "googleads.googleapis.com/FeedMapping" + pattern: "customers/{customer_id}/feedMappings/{feed_id}~{feed_mapping_id}" + }; + + // Immutable. The resource name of the feed mapping. + // Feed mapping resource names have the form: + // + // `customers/{customer_id}/feedMappings/{feed_id}~{feed_mapping_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/FeedMapping" + } + ]; + + // Immutable. The feed of this feed mapping. + optional string feed = 7 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Feed" + } + ]; + + // Immutable. Feed attributes to field mappings. These mappings are a one-to-many + // relationship meaning that 1 feed attribute can be used to populate + // multiple placeholder fields, but 1 placeholder field can only draw + // data from 1 feed attribute. Ad Customizer is an exception, 1 placeholder + // field can be mapped to multiple feed attributes. Required. + repeated AttributeFieldMapping attribute_field_mappings = 5 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. Status of the feed mapping. + // This field is read-only. + google.ads.googleads.v6.enums.FeedMappingStatusEnum.FeedMappingStatus status = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // 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 { + // Immutable. The placeholder type of this mapping (i.e., if the mapping maps feed + // attributes to placeholder fields). + google.ads.googleads.v6.enums.PlaceholderTypeEnum.PlaceholderType placeholder_type = 3 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. The criterion type of this mapping (i.e., if the mapping maps feed + // attributes to criterion fields). + google.ads.googleads.v6.enums.FeedMappingCriterionTypeEnum.FeedMappingCriterionType criterion_type = 4 [(google.api.field_behavior) = IMMUTABLE]; + } +} + +// Maps from feed attribute id to a placeholder or criterion field id. +message AttributeFieldMapping { + // Immutable. Feed attribute from which to map. + optional int64 feed_attribute_id = 24 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. The placeholder field ID. If a placeholder field enum is not published in + // the current API version, then this field will be populated and the field + // oneof will be empty. + // This field is read-only. + optional int64 field_id = 25 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Placeholder or criterion field to be populated using data from + // the above feed attribute. Required. + oneof field { + // Immutable. Sitelink Placeholder Fields. + google.ads.googleads.v6.enums.SitelinkPlaceholderFieldEnum.SitelinkPlaceholderField sitelink_field = 3 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Call Placeholder Fields. + google.ads.googleads.v6.enums.CallPlaceholderFieldEnum.CallPlaceholderField call_field = 4 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. App Placeholder Fields. + google.ads.googleads.v6.enums.AppPlaceholderFieldEnum.AppPlaceholderField app_field = 5 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. Location Placeholder Fields. This field is read-only. + google.ads.googleads.v6.enums.LocationPlaceholderFieldEnum.LocationPlaceholderField location_field = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Affiliate Location Placeholder Fields. This field is read-only. + google.ads.googleads.v6.enums.AffiliateLocationPlaceholderFieldEnum.AffiliateLocationPlaceholderField affiliate_location_field = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. Callout Placeholder Fields. + google.ads.googleads.v6.enums.CalloutPlaceholderFieldEnum.CalloutPlaceholderField callout_field = 8 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Structured Snippet Placeholder Fields. + google.ads.googleads.v6.enums.StructuredSnippetPlaceholderFieldEnum.StructuredSnippetPlaceholderField structured_snippet_field = 9 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Message Placeholder Fields. + google.ads.googleads.v6.enums.MessagePlaceholderFieldEnum.MessagePlaceholderField message_field = 10 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Price Placeholder Fields. + google.ads.googleads.v6.enums.PricePlaceholderFieldEnum.PricePlaceholderField price_field = 11 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Promotion Placeholder Fields. + google.ads.googleads.v6.enums.PromotionPlaceholderFieldEnum.PromotionPlaceholderField promotion_field = 12 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Ad Customizer Placeholder Fields + google.ads.googleads.v6.enums.AdCustomizerPlaceholderFieldEnum.AdCustomizerPlaceholderField ad_customizer_field = 13 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Dynamic Search Ad Page Feed Fields. + google.ads.googleads.v6.enums.DsaPageFeedCriterionFieldEnum.DsaPageFeedCriterionField dsa_page_feed_field = 14 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Location Target Fields. + google.ads.googleads.v6.enums.LocationExtensionTargetingCriterionFieldEnum.LocationExtensionTargetingCriterionField location_extension_targeting_field = 15 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Education Placeholder Fields + google.ads.googleads.v6.enums.EducationPlaceholderFieldEnum.EducationPlaceholderField education_field = 16 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Flight Placeholder Fields + google.ads.googleads.v6.enums.FlightPlaceholderFieldEnum.FlightPlaceholderField flight_field = 17 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Custom Placeholder Fields + google.ads.googleads.v6.enums.CustomPlaceholderFieldEnum.CustomPlaceholderField custom_field = 18 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Hotel Placeholder Fields + google.ads.googleads.v6.enums.HotelPlaceholderFieldEnum.HotelPlaceholderField hotel_field = 19 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Real Estate Placeholder Fields + google.ads.googleads.v6.enums.RealEstatePlaceholderFieldEnum.RealEstatePlaceholderField real_estate_field = 20 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Travel Placeholder Fields + google.ads.googleads.v6.enums.TravelPlaceholderFieldEnum.TravelPlaceholderField travel_field = 21 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Local Placeholder Fields + google.ads.googleads.v6.enums.LocalPlaceholderFieldEnum.LocalPlaceholderField local_field = 22 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Job Placeholder Fields + google.ads.googleads.v6.enums.JobPlaceholderFieldEnum.JobPlaceholderField job_field = 23 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Image Placeholder Fields + google.ads.googleads.v6.enums.ImagePlaceholderFieldEnum.ImagePlaceholderField image_field = 26 [(google.api.field_behavior) = IMMUTABLE]; + } +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/feed_placeholder_view.proto b/third_party/googleapis/google/ads/googleads/v6/resources/feed_placeholder_view.proto new file mode 100644 index 000000000..71e6b5337 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/feed_placeholder_view.proto @@ -0,0 +1,55 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/enums/placeholder_type.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "FeedPlaceholderViewProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the FeedPlaceholderView resource. + +// A feed placeholder view. +message FeedPlaceholderView { + option (google.api.resource) = { + type: "googleads.googleapis.com/FeedPlaceholderView" + pattern: "customers/{customer_id}/feedPlaceholderViews/{placeholder_type}" + }; + + // Output only. The resource name of the feed placeholder view. + // Feed placeholder view resource names have the form: + // + // `customers/{customer_id}/feedPlaceholderViews/{placeholder_type}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/FeedPlaceholderView" + } + ]; + + // Output only. The placeholder type of the feed placeholder view. + google.ads.googleads.v6.enums.PlaceholderTypeEnum.PlaceholderType placeholder_type = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/gender_view.proto b/third_party/googleapis/google/ads/googleads/v6/resources/gender_view.proto new file mode 100644 index 000000000..e018658b5 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/gender_view.proto @@ -0,0 +1,51 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "GenderViewProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the gender view resource. + +// A gender view. +message GenderView { + option (google.api.resource) = { + type: "googleads.googleapis.com/GenderView" + pattern: "customers/{customer_id}/genderViews/{ad_group_id}~{criterion_id}" + }; + + // Output only. The resource name of the gender view. + // Gender view resource names have the form: + // + // `customers/{customer_id}/genderViews/{ad_group_id}~{criterion_id}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/GenderView" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/geo_target_constant.proto b/third_party/googleapis/google/ads/googleads/v6/resources/geo_target_constant.proto new file mode 100644 index 000000000..4ab0a602e --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/geo_target_constant.proto @@ -0,0 +1,82 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/enums/geo_target_constant_status.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "GeoTargetConstantProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the geo target constant resource. + +// A geo target constant. +message GeoTargetConstant { + option (google.api.resource) = { + type: "googleads.googleapis.com/GeoTargetConstant" + pattern: "geoTargetConstants/{criterion_id}" + }; + + // Output only. The resource name of the geo target constant. + // Geo target constant resource names have the form: + // + // `geoTargetConstants/{geo_target_constant_id}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/GeoTargetConstant" + } + ]; + + // Output only. The ID of the geo target constant. + optional int64 id = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Geo target constant English name. + optional string name = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The ISO-3166-1 alpha-2 country code that is associated with the target. + optional string country_code = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Geo target constant target type. + optional string target_type = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Geo target constant status. + google.ads.googleads.v6.enums.GeoTargetConstantStatusEnum.GeoTargetConstantStatus status = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The fully qualified English name, consisting of the target's name and that + // of its parent and country. + optional string canonical_name = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The resource name of the parent geo target constant. + // Geo target constant resource names have the form: + // + // `geoTargetConstants/{parent_geo_target_constant_id}` + optional string parent_geo_target = 9 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/GeoTargetConstant" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/geographic_view.proto b/third_party/googleapis/google/ads/googleads/v6/resources/geographic_view.proto new file mode 100644 index 000000000..602990d1d --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/geographic_view.proto @@ -0,0 +1,63 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/enums/geo_targeting_type.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "GeographicViewProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the geographic view resource. + +// A geographic view. +// +// Geographic View includes all metrics aggregated at the country level, +// one row per country. It reports metrics at either actual physical location of +// the user or an area of interest. If other segment fields are used, you may +// get more than one row per country. +message GeographicView { + option (google.api.resource) = { + type: "googleads.googleapis.com/GeographicView" + pattern: "customers/{customer_id}/geographicViews/{country_criterion_id}~{location_type}" + }; + + // Output only. The resource name of the geographic view. + // Geographic view resource names have the form: + // + // `customers/{customer_id}/geographicViews/{country_criterion_id}~{location_type}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/GeographicView" + } + ]; + + // Output only. Type of the geo targeting of the campaign. + google.ads.googleads.v6.enums.GeoTargetingTypeEnum.GeoTargetingType location_type = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Criterion Id for the country. + optional int64 country_criterion_id = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/google_ads_field.proto b/third_party/googleapis/google/ads/googleads/v6/resources/google_ads_field.proto new file mode 100644 index 000000000..6cb8f7fb0 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/google_ads_field.proto @@ -0,0 +1,117 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/enums/google_ads_field_category.proto"; +import "google/ads/googleads/v6/enums/google_ads_field_data_type.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "GoogleAdsFieldProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the Google Ads Field resource. + +// A field or resource (artifact) used by GoogleAdsService. +message GoogleAdsField { + option (google.api.resource) = { + type: "googleads.googleapis.com/GoogleAdsField" + pattern: "googleAdsFields/{google_ads_field}" + }; + + // Output only. The resource name of the artifact. + // Artifact resource names have the form: + // + // `googleAdsFields/{name}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/GoogleAdsField" + } + ]; + + // Output only. The name of the artifact. + optional string name = 21 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The category of the artifact. + google.ads.googleads.v6.enums.GoogleAdsFieldCategoryEnum.GoogleAdsFieldCategory category = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Whether the artifact can be used in a SELECT clause in search + // queries. + optional bool selectable = 22 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Whether the artifact can be used in a WHERE clause in search + // queries. + optional bool filterable = 23 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Whether the artifact can be used in a ORDER BY clause in search + // queries. + optional bool sortable = 24 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The names of all resources, segments, and metrics that are selectable with + // the described artifact. + repeated string selectable_with = 25 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The names of all resources that are selectable with the described + // artifact. Fields from these resources do not segment metrics when included + // in search queries. + // + // This field is only set for artifacts whose category is RESOURCE. + repeated string attribute_resources = 26 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. At and beyond version V1 this field lists the names of all metrics that are + // selectable with the described artifact when it is used in the FROM clause. + // It is only set for artifacts whose category is RESOURCE. + // + // Before version V1 this field lists the names of all metrics that are + // selectable with the described artifact. It is only set for artifacts whose + // category is either RESOURCE or SEGMENT + repeated string metrics = 27 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. At and beyond version V1 this field lists the names of all artifacts, + // whether a segment or another resource, that segment metrics when included + // in search queries and when the described artifact is used in the FROM + // clause. It is only set for artifacts whose category is RESOURCE. + // + // Before version V1 this field lists the names of all artifacts, whether a + // segment or another resource, that segment metrics when included in search + // queries. It is only set for artifacts of category RESOURCE, SEGMENT or + // METRIC. + repeated string segments = 28 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Values the artifact can assume if it is a field of type ENUM. + // + // This field is only set for artifacts of category SEGMENT or ATTRIBUTE. + repeated string enum_values = 29 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. This field determines the operators that can be used with the artifact + // in WHERE clauses. + google.ads.googleads.v6.enums.GoogleAdsFieldDataTypeEnum.GoogleAdsFieldDataType data_type = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The URL of proto describing the artifact's data type. + optional string type_url = 30 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Whether the field artifact is repeated. + optional bool is_repeated = 31 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/group_placement_view.proto b/third_party/googleapis/google/ads/googleads/v6/resources/group_placement_view.proto new file mode 100644 index 000000000..2a90b1af0 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/group_placement_view.proto @@ -0,0 +1,66 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/enums/placement_type.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "GroupPlacementViewProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the group placement view resource. + +// A group placement view. +message GroupPlacementView { + option (google.api.resource) = { + type: "googleads.googleapis.com/GroupPlacementView" + pattern: "customers/{customer_id}/groupPlacementViews/{ad_group_id}~{base64_placement}" + }; + + // Output only. The resource name of the group placement view. + // Group placement view resource names have the form: + // + // `customers/{customer_id}/groupPlacementViews/{ad_group_id}~{base64_placement}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/GroupPlacementView" + } + ]; + + // Output only. The automatic placement string at group level, e. g. web domain, mobile + // app ID, or a YouTube channel ID. + optional string placement = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Domain name for websites and YouTube channel name for YouTube channels. + optional string display_name = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. URL of the group placement, e.g. domain, link to the mobile application in + // app store, or a YouTube channel URL. + optional string target_url = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Type of the placement, e.g. Website, YouTube Channel, Mobile Application. + google.ads.googleads.v6.enums.PlacementTypeEnum.PlacementType placement_type = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/hotel_group_view.proto b/third_party/googleapis/google/ads/googleads/v6/resources/hotel_group_view.proto new file mode 100644 index 000000000..3950ee408 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/hotel_group_view.proto @@ -0,0 +1,51 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "HotelGroupViewProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the hotel group view resource. + +// A hotel group view. +message HotelGroupView { + option (google.api.resource) = { + type: "googleads.googleapis.com/HotelGroupView" + pattern: "customers/{customer_id}/hotelGroupViews/{ad_group_id}~{criterion_id}" + }; + + // Output only. The resource name of the hotel group view. + // Hotel Group view resource names have the form: + // + // `customers/{customer_id}/hotelGroupViews/{ad_group_id}~{criterion_id}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/HotelGroupView" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/hotel_performance_view.proto b/third_party/googleapis/google/ads/googleads/v6/resources/hotel_performance_view.proto new file mode 100644 index 000000000..3f29fc75b --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/hotel_performance_view.proto @@ -0,0 +1,51 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "HotelPerformanceViewProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the hotel performance view resource. + +// A hotel performance view. +message HotelPerformanceView { + option (google.api.resource) = { + type: "googleads.googleapis.com/HotelPerformanceView" + pattern: "customers/{customer_id}/hotelPerformanceView" + }; + + // Output only. The resource name of the hotel performance view. + // Hotel performance view resource names have the form: + // + // `customers/{customer_id}/hotelPerformanceView` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/HotelPerformanceView" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/income_range_view.proto b/third_party/googleapis/google/ads/googleads/v6/resources/income_range_view.proto new file mode 100644 index 000000000..0b000fc6b --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/income_range_view.proto @@ -0,0 +1,51 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "IncomeRangeViewProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the income range view resource. + +// An income range view. +message IncomeRangeView { + option (google.api.resource) = { + type: "googleads.googleapis.com/IncomeRangeView" + pattern: "customers/{customer_id}/incomeRangeViews/{ad_group_id}~{criterion_id}" + }; + + // Output only. The resource name of the income range view. + // Income range view resource names have the form: + // + // `customers/{customer_id}/incomeRangeViews/{ad_group_id}~{criterion_id}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/IncomeRangeView" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/invoice.proto b/third_party/googleapis/google/ads/googleads/v6/resources/invoice.proto new file mode 100644 index 000000000..5dd36dc33 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/invoice.proto @@ -0,0 +1,203 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/common/dates.proto"; +import "google/ads/googleads/v6/enums/invoice_type.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "InvoiceProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the Invoice resource. + +// An invoice. All invoice information is snapshotted to match the PDF invoice. +// For invoices older than the launch of InvoiceService, the snapshotted +// information may not match the PDF invoice. +message Invoice { + option (google.api.resource) = { + type: "googleads.googleapis.com/Invoice" + pattern: "customers/{customer_id}/invoices/{invoice_id}" + }; + + // Represents a summarized account budget billable cost. + message AccountBudgetSummary { + // Output only. The resource name of the customer associated with this account budget. + // This contains the customer ID, which appears on the invoice PDF as + // "Account ID". + // Customer resource names have the form: + // + // `customers/{customer_id}` + optional string customer = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The descriptive name of the account budget’s customer. It appears on the + // invoice PDF as "Account". + optional string customer_descriptive_name = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The resource name of the account budget associated with this summarized + // billable cost. + // AccountBudget resource names have the form: + // + // `customers/{customer_id}/accountBudgets/{account_budget_id}` + optional string account_budget = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The name of the account budget. It appears on the invoice PDF as "Account + // budget". + optional string account_budget_name = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The purchase order number of the account budget. It appears on the + // invoice PDF as "Purchase order". + optional string purchase_order_number = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The pretax subtotal amount attributable to this budget during the service + // period, in micros. + optional int64 subtotal_amount_micros = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The tax amount attributable to this budget during the service period, in + // micros. + optional int64 tax_amount_micros = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The total amount attributable to this budget during the service period, + // in micros. This equals the sum of the account budget subtotal amount and + // the account budget tax amount. + optional int64 total_amount_micros = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The billable activity date range of the account budget, within the + // service date range of this invoice. The end date is inclusive. This can + // be different from the account budget's start and end time. + google.ads.googleads.v6.common.DateRange billable_activity_date_range = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Output only. The resource name of the invoice. Multiple customers can share a given + // invoice, so multiple resource names may point to the same invoice. + // Invoice resource names have the form: + // + // `customers/{customer_id}/invoices/{invoice_id}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Invoice" + } + ]; + + // Output only. The ID of the invoice. It appears on the invoice PDF as "Invoice number". + optional string id = 25 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The type of invoice. + google.ads.googleads.v6.enums.InvoiceTypeEnum.InvoiceType type = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The resource name of this invoice’s billing setup. + // + // `customers/{customer_id}/billingSetups/{billing_setup_id}` + optional string billing_setup = 26 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A 16 digit ID used to identify the payments account associated with the + // billing setup, e.g. "1234-5678-9012-3456". It appears on the invoice PDF as + // "Billing Account Number". + optional string payments_account_id = 27 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A 12 digit ID used to identify the payments profile associated with the + // billing setup, e.g. "1234-5678-9012". It appears on the invoice PDF as + // "Billing ID". + optional string payments_profile_id = 28 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The issue date in yyyy-mm-dd format. It appears on the invoice PDF as + // either "Issue date" or "Invoice date". + optional string issue_date = 29 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The due date in yyyy-mm-dd format. + optional string due_date = 30 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The service period date range of this invoice. The end date is inclusive. + google.ads.googleads.v6.common.DateRange service_date_range = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The currency code. All costs are returned in this currency. A subset of the + // currency codes derived from the ISO 4217 standard is supported. + optional string currency_code = 31 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The pretax subtotal amount of invoice level adjustments, in micros. + int64 adjustments_subtotal_amount_micros = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The sum of taxes on the invoice level adjustments, in micros. + int64 adjustments_tax_amount_micros = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The total amount of invoice level adjustments, in micros. + int64 adjustments_total_amount_micros = 21 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The pretax subtotal amount of invoice level regulatory costs, in micros. + int64 regulatory_costs_subtotal_amount_micros = 22 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The sum of taxes on the invoice level regulatory costs, in micros. + int64 regulatory_costs_tax_amount_micros = 23 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The total amount of invoice level regulatory costs, in micros. + int64 regulatory_costs_total_amount_micros = 24 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The pretax subtotal amount, in micros. This equals the + // sum of the AccountBudgetSummary subtotal amounts, + // Invoice.adjustments_subtotal_amount_micros, and + // Invoice.regulatory_costs_subtotal_amount_micros. + // Starting with v6, the Invoice.regulatory_costs_subtotal_amount_micros is no + // longer included. + optional int64 subtotal_amount_micros = 33 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The sum of all taxes on the invoice, in micros. This equals the sum of the + // AccountBudgetSummary tax amounts, plus taxes not associated with a specific + // account budget. + optional int64 tax_amount_micros = 34 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The total amount, in micros. This equals the sum of + // Invoice.subtotal_amount_micros and Invoice.tax_amount_micros. + // Starting with v6, Invoice.regulatory_costs_subtotal_amount_micros is + // also added as it is no longer already included in + // Invoice.tax_amount_micros. + optional int64 total_amount_micros = 35 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The resource name of the original invoice corrected, wrote off, or canceled + // by this invoice, if applicable. If `corrected_invoice` is set, + // `replaced_invoices` will not be set. + // Invoice resource names have the form: + // + // `customers/{customer_id}/invoices/{invoice_id}` + optional string corrected_invoice = 36 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The resource name of the original invoice(s) being rebilled or replaced by + // this invoice, if applicable. There might be multiple replaced invoices due + // to invoice consolidation. The replaced invoices may not belong to the same + // payments account. If `replaced_invoices` is set, `corrected_invoice` will + // not be set. + // Invoice resource names have the form: + // + // `customers/{customer_id}/invoices/{invoice_id}` + repeated string replaced_invoices = 37 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The URL to a PDF copy of the invoice. Users need to pass in their OAuth + // token to request the PDF with this URL. + optional string pdf_url = 38 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The list of summarized account budget information associated with this + // invoice. + repeated AccountBudgetSummary account_budget_summaries = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/keyword_plan.proto b/third_party/googleapis/google/ads/googleads/v6/resources/keyword_plan.proto new file mode 100644 index 000000000..02631f606 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/keyword_plan.proto @@ -0,0 +1,82 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/common/dates.proto"; +import "google/ads/googleads/v6/enums/keyword_plan_forecast_interval.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "KeywordPlanProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the keyword plan resource. + +// A Keyword Planner plan. +// Max number of saved keyword plans: 10000. +// It's possible to remove plans if limit is reached. +message KeywordPlan { + option (google.api.resource) = { + type: "googleads.googleapis.com/KeywordPlan" + pattern: "customers/{customer_id}/keywordPlans/{keyword_plan_id}" + }; + + // Immutable. The resource name of the Keyword Planner plan. + // KeywordPlan resource names have the form: + // + // `customers/{customer_id}/keywordPlans/{kp_plan_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/KeywordPlan" + } + ]; + + // Output only. The ID of the keyword plan. + optional int64 id = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The name of the keyword plan. + // + // This field is required and should not be empty when creating new keyword + // plans. + optional string name = 6; + + // The date period used for forecasting the plan. + KeywordPlanForecastPeriod forecast_period = 4; +} + +// The forecasting period associated with the keyword plan. +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.v6.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 + // be returned when the forecasting action is performed. + // The start and end dates are inclusive. + google.ads.googleads.v6.common.DateRange date_range = 2; + } +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/keyword_plan_ad_group.proto b/third_party/googleapis/google/ads/googleads/v6/resources/keyword_plan_ad_group.proto new file mode 100644 index 000000000..5326dd23e --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/keyword_plan_ad_group.proto @@ -0,0 +1,71 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "KeywordPlanAdGroupProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the keyword plan ad group resource. + +// A Keyword Planner ad group. +// Max number of keyword plan ad groups per plan: 200. +message KeywordPlanAdGroup { + option (google.api.resource) = { + type: "googleads.googleapis.com/KeywordPlanAdGroup" + pattern: "customers/{customer_id}/keywordPlanAdGroups/{keyword_plan_ad_group_id}" + }; + + // Immutable. The resource name of the Keyword Planner ad group. + // KeywordPlanAdGroup resource names have the form: + // + // `customers/{customer_id}/keywordPlanAdGroups/{kp_ad_group_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/KeywordPlanAdGroup" + } + ]; + + // The keyword plan campaign to which this ad group belongs. + optional string keyword_plan_campaign = 6 [(google.api.resource_reference) = { + type: "googleads.googleapis.com/KeywordPlanCampaign" + }]; + + // Output only. The ID of the keyword plan ad group. + optional int64 id = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The name of the keyword plan ad group. + // + // This field is required and should not be empty when creating keyword plan + // ad group. + optional string name = 8; + + // A default ad group max cpc bid in micros in account currency for all + // biddable keywords under the keyword plan ad group. + // If not set, will inherit from parent campaign. + optional int64 cpc_bid_micros = 9; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/keyword_plan_ad_group_keyword.proto b/third_party/googleapis/google/ads/googleads/v6/resources/keyword_plan_ad_group_keyword.proto new file mode 100644 index 000000000..ee6be1190 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/keyword_plan_ad_group_keyword.proto @@ -0,0 +1,77 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/enums/keyword_match_type.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "KeywordPlanAdGroupKeywordProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the keyword plan ad group keyword resource. + +// A Keyword Plan ad group keyword. +// Max number of keyword plan keywords per plan: 10000. +message KeywordPlanAdGroupKeyword { + option (google.api.resource) = { + type: "googleads.googleapis.com/KeywordPlanAdGroupKeyword" + pattern: "customers/{customer_id}/keywordPlanAdGroupKeywords/{keyword_plan_ad_group_keyword_id}" + }; + + // Immutable. The resource name of the Keyword Plan ad group keyword. + // KeywordPlanAdGroupKeyword resource names have the form: + // + // `customers/{customer_id}/keywordPlanAdGroupKeywords/{kp_ad_group_keyword_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/KeywordPlanAdGroupKeyword" + } + ]; + + // The Keyword Plan ad group to which this keyword belongs. + optional string keyword_plan_ad_group = 8 [(google.api.resource_reference) = { + type: "googleads.googleapis.com/KeywordPlanAdGroup" + }]; + + // Output only. The ID of the Keyword Plan keyword. + optional int64 id = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The keyword text. + optional string text = 10; + + // The keyword match type. + google.ads.googleads.v6.enums.KeywordMatchTypeEnum.KeywordMatchType match_type = 5; + + // A keyword level max cpc bid in micros (e.g. $1 = 1mm). The currency is the + // same as the account currency code. This will override any CPC bid set at + // the keyword plan ad group level. + // Not applicable for negative keywords. (negative = true) + // This field is Optional. + optional int64 cpc_bid_micros = 11; + + // Immutable. If true, the keyword is negative. + optional bool negative = 12 [(google.api.field_behavior) = IMMUTABLE]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/keyword_plan_campaign.proto b/third_party/googleapis/google/ads/googleads/v6/resources/keyword_plan_campaign.proto new file mode 100644 index 000000000..c2df86b5b --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/keyword_plan_campaign.proto @@ -0,0 +1,98 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/enums/keyword_plan_network.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "KeywordPlanCampaignProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the keyword plan campaign resource. + +// A Keyword Plan campaign. +// Max number of keyword plan campaigns per plan allowed: 1. +message KeywordPlanCampaign { + option (google.api.resource) = { + type: "googleads.googleapis.com/KeywordPlanCampaign" + pattern: "customers/{customer_id}/keywordPlanCampaigns/{keyword_plan_campaign_id}" + }; + + // Immutable. The resource name of the Keyword Plan campaign. + // KeywordPlanCampaign resource names have the form: + // + // `customers/{customer_id}/keywordPlanCampaigns/{kp_campaign_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/KeywordPlanCampaign" + } + ]; + + // The keyword plan this campaign belongs to. + optional string keyword_plan = 9 [(google.api.resource_reference) = { + type: "googleads.googleapis.com/KeywordPlan" + }]; + + // Output only. The ID of the Keyword Plan campaign. + optional int64 id = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The name of the Keyword Plan campaign. + // + // This field is required and should not be empty when creating Keyword Plan + // campaigns. + optional string name = 11; + + // The languages targeted for the Keyword Plan campaign. + // Max allowed: 1. + repeated string language_constants = 12 [(google.api.resource_reference) = { + type: "googleads.googleapis.com/LanguageConstant" + }]; + + // Targeting network. + // + // This field is required and should not be empty when creating Keyword Plan + // campaigns. + google.ads.googleads.v6.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. + // + // This field is required and should not be empty when creating Keyword Plan + // campaigns. + optional int64 cpc_bid_micros = 13; + + // The geo targets. + // Max number allowed: 20. + repeated KeywordPlanGeoTarget geo_targets = 8; +} + +// A geo target. +message KeywordPlanGeoTarget { + // Required. The resource name of the geo target. + optional string geo_target_constant = 2 [(google.api.resource_reference) = { + type: "googleads.googleapis.com/GeoTargetConstant" + }]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/keyword_plan_campaign_keyword.proto b/third_party/googleapis/google/ads/googleads/v6/resources/keyword_plan_campaign_keyword.proto new file mode 100644 index 000000000..b3178fd4c --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/keyword_plan_campaign_keyword.proto @@ -0,0 +1,71 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/enums/keyword_match_type.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "KeywordPlanCampaignKeywordProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the keyword plan negative keyword resource. + +// A Keyword Plan Campaign keyword. +// Only negative keywords are supported for Campaign Keyword. +message KeywordPlanCampaignKeyword { + option (google.api.resource) = { + type: "googleads.googleapis.com/KeywordPlanCampaignKeyword" + pattern: "customers/{customer_id}/keywordPlanCampaignKeywords/{keyword_plan_campaign_keyword_id}" + }; + + // Immutable. The resource name of the Keyword Plan Campaign keyword. + // KeywordPlanCampaignKeyword resource names have the form: + // + // `customers/{customer_id}/keywordPlanCampaignKeywords/{kp_campaign_keyword_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/KeywordPlanCampaignKeyword" + } + ]; + + // The Keyword Plan campaign to which this negative keyword belongs. + optional string keyword_plan_campaign = 8 [(google.api.resource_reference) = { + type: "googleads.googleapis.com/KeywordPlanCampaign" + }]; + + // Output only. The ID of the Keyword Plan negative keyword. + optional int64 id = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The keyword text. + optional string text = 10; + + // The keyword match type. + google.ads.googleads.v6.enums.KeywordMatchTypeEnum.KeywordMatchType match_type = 5; + + // Immutable. If true, the keyword is negative. + // Must be set to true. Only negative campaign keywords are supported. + optional bool negative = 11 [(google.api.field_behavior) = IMMUTABLE]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/keyword_view.proto b/third_party/googleapis/google/ads/googleads/v6/resources/keyword_view.proto new file mode 100644 index 000000000..64918c2ba --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/keyword_view.proto @@ -0,0 +1,51 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "KeywordViewProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the keyword view resource. + +// A keyword view. +message KeywordView { + option (google.api.resource) = { + type: "googleads.googleapis.com/KeywordView" + pattern: "customers/{customer_id}/keywordViews/{ad_group_id}~{criterion_id}" + }; + + // Output only. The resource name of the keyword view. + // Keyword view resource names have the form: + // + // `customers/{customer_id}/keywordViews/{ad_group_id}~{criterion_id}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/KeywordView" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/label.proto b/third_party/googleapis/google/ads/googleads/v6/resources/label.proto new file mode 100644 index 000000000..ff161643c --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/label.proto @@ -0,0 +1,66 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/common/text_label.proto"; +import "google/ads/googleads/v6/enums/label_status.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "LabelProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// A label. +message Label { + option (google.api.resource) = { + type: "googleads.googleapis.com/Label" + pattern: "customers/{customer_id}/labels/{label_id}" + }; + + // Immutable. Name of the resource. + // Label resource names have the form: + // `customers/{customer_id}/labels/{label_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Label" + } + ]; + + // Output only. Id of the label. Read only. + optional int64 id = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The name of the label. + // + // This field is required and should not be empty when creating a new label. + // + // The length of this string should be between 1 and 80, inclusive. + optional string name = 7; + + // Output only. Status of the label. Read only. + google.ads.googleads.v6.enums.LabelStatusEnum.LabelStatus status = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // A type of label displaying text on a colored background. + google.ads.googleads.v6.common.TextLabel text_label = 5; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/landing_page_view.proto b/third_party/googleapis/google/ads/googleads/v6/resources/landing_page_view.proto new file mode 100644 index 000000000..1295821d1 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/landing_page_view.proto @@ -0,0 +1,55 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "LandingPageViewProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the landing page view resource. + +// A landing page view with metrics aggregated at the unexpanded final URL +// level. +message LandingPageView { + option (google.api.resource) = { + type: "googleads.googleapis.com/LandingPageView" + pattern: "customers/{customer_id}/landingPageViews/{unexpanded_final_url_fingerprint}" + }; + + // Output only. The resource name of the landing page view. + // Landing page view resource names have the form: + // + // `customers/{customer_id}/landingPageViews/{unexpanded_final_url_fingerprint}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/LandingPageView" + } + ]; + + // Output only. The advertiser-specified final URL. + optional string unexpanded_final_url = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/language_constant.proto b/third_party/googleapis/google/ads/googleads/v6/resources/language_constant.proto new file mode 100644 index 000000000..cb5a0e5f6 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/language_constant.proto @@ -0,0 +1,64 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "LanguageConstantProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the language constant resource. + +// A language. +message LanguageConstant { + option (google.api.resource) = { + type: "googleads.googleapis.com/LanguageConstant" + pattern: "languageConstants/{criterion_id}" + }; + + // Output only. The resource name of the language constant. + // Language constant resource names have the form: + // + // `languageConstants/{criterion_id}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/LanguageConstant" + } + ]; + + // Output only. The ID of the language constant. + optional int64 id = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The language code, e.g. "en_US", "en_AU", "es", "fr", etc. + optional string code = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The full name of the language in English, e.g., "English (US)", "Spanish", + // etc. + optional string name = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Whether the language is targetable. + optional bool targetable = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/location_view.proto b/third_party/googleapis/google/ads/googleads/v6/resources/location_view.proto new file mode 100644 index 000000000..1cc5694cd --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/location_view.proto @@ -0,0 +1,52 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "LocationViewProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the location view resource. + +// A location view summarizes the performance of campaigns by +// Location criteria. +message LocationView { + option (google.api.resource) = { + type: "googleads.googleapis.com/LocationView" + pattern: "customers/{customer_id}/locationViews/{campaign_id}~{criterion_id}" + }; + + // Output only. The resource name of the location view. + // Location view resource names have the form: + // + // `customers/{customer_id}/locationViews/{campaign_id}~{criterion_id}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/LocationView" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/managed_placement_view.proto b/third_party/googleapis/google/ads/googleads/v6/resources/managed_placement_view.proto new file mode 100644 index 000000000..72154f2a4 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/managed_placement_view.proto @@ -0,0 +1,51 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "ManagedPlacementViewProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the Managed Placement view resource. + +// A managed placement view. +message ManagedPlacementView { + option (google.api.resource) = { + type: "googleads.googleapis.com/ManagedPlacementView" + pattern: "customers/{customer_id}/managedPlacementViews/{ad_group_id}~{criterion_id}" + }; + + // Output only. The resource name of the Managed Placement view. + // Managed placement view resource names have the form: + // + // `customers/{customer_id}/managedPlacementViews/{ad_group_id}~{criterion_id}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/ManagedPlacementView" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/media_file.proto b/third_party/googleapis/google/ads/googleads/v6/resources/media_file.proto new file mode 100644 index 000000000..c36f28cdf --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/media_file.proto @@ -0,0 +1,135 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/enums/media_type.proto"; +import "google/ads/googleads/v6/enums/mime_type.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "MediaFileProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the media file resource. + +// A media file. +message MediaFile { + option (google.api.resource) = { + type: "googleads.googleapis.com/MediaFile" + pattern: "customers/{customer_id}/mediaFiles/{media_file_id}" + }; + + // Immutable. The resource name of the media file. + // Media file resource names have the form: + // + // `customers/{customer_id}/mediaFiles/{media_file_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/MediaFile" + } + ]; + + // Output only. The ID of the media file. + optional int64 id = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. Type of the media file. + google.ads.googleads.v6.enums.MediaTypeEnum.MediaType type = 5 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. The mime type of the media file. + google.ads.googleads.v6.enums.MimeTypeEnum.MimeType mime_type = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. The URL of where the original media file was downloaded from (or a file + // name). Only used for media of type AUDIO and IMAGE. + optional string source_url = 13 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. The name of the media file. The name can be used by clients to help + // identify previously uploaded media. + optional string name = 14 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. The size of the media file in bytes. + optional int64 file_size = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The specific type of the media file. + oneof mediatype { + // Immutable. Encapsulates an Image. + MediaImage image = 3 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. A ZIP archive media the content of which contains HTML5 assets. + MediaBundle media_bundle = 4 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. Encapsulates an Audio. + MediaAudio audio = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. Encapsulates a Video. + MediaVideo video = 11 [(google.api.field_behavior) = IMMUTABLE]; + } +} + +// Encapsulates an Image. +message MediaImage { + // Immutable. Raw image data. + optional bytes data = 4 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. The url to the full size version of the image. + optional string full_size_image_url = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The url to the preview size version of the image. + optional string preview_size_image_url = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Represents a ZIP archive media the content of which contains HTML5 assets. +message MediaBundle { + // Immutable. Raw zipped data. + optional bytes data = 3 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. The url to access the uploaded zipped data. + // E.g. https://tpc.googlesyndication.com/simgad/123 + // This field is read-only. + optional string url = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Encapsulates an Audio. +message MediaAudio { + // Output only. The duration of the Audio in milliseconds. + optional int64 ad_duration_millis = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Encapsulates a Video. +message MediaVideo { + // Output only. The duration of the Video in milliseconds. + optional int64 ad_duration_millis = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. The YouTube video ID (as seen in YouTube URLs). + optional string youtube_video_id = 6 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. The Advertising Digital Identification code for this video, as defined by + // the American Association of Advertising Agencies, used mainly for + // television commercials. + optional string advertising_id_code = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Industry Standard Commercial Identifier code for this video, used + // mainly for television commercials. + optional string isci_code = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/merchant_center_link.proto b/third_party/googleapis/google/ads/googleads/v6/resources/merchant_center_link.proto new file mode 100644 index 000000000..b0bef76b6 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/merchant_center_link.proto @@ -0,0 +1,64 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/enums/merchant_center_link_status.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "MerchantCenterLinkProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the Merchant Center link resource. + +// A data sharing connection, proposed or in use, +// between a Google Ads Customer and a Merchant Center account. +message MerchantCenterLink { + option (google.api.resource) = { + type: "googleads.googleapis.com/MerchantCenterLink" + pattern: "customers/{customer_id}/merchantCenterLinks/{merchant_center_id}" + }; + + // Immutable. The resource name of the merchant center link. + // Merchant center link resource names have the form: + // + // `customers/{customer_id}/merchantCenterLinks/{merchant_center_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/MerchantCenterLink" + } + ]; + + // Output only. The ID of the Merchant Center account. + // This field is readonly. + optional int64 id = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The name of the Merchant Center account. + // This field is readonly. + optional string merchant_center_account_name = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The status of the link. + google.ads.googleads.v6.enums.MerchantCenterLinkStatusEnum.MerchantCenterLinkStatus status = 5; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/mobile_app_category_constant.proto b/third_party/googleapis/google/ads/googleads/v6/resources/mobile_app_category_constant.proto new file mode 100644 index 000000000..e5a9dbf41 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/mobile_app_category_constant.proto @@ -0,0 +1,57 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "MobileAppCategoryConstantProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the Mobile App Category Constant resource. + +// A mobile application category constant. +message MobileAppCategoryConstant { + option (google.api.resource) = { + type: "googleads.googleapis.com/MobileAppCategoryConstant" + pattern: "mobileAppCategoryConstants/{mobile_app_category_id}" + }; + + // Output only. The resource name of the mobile app category constant. + // Mobile app category constant resource names have the form: + // + // `mobileAppCategoryConstants/{mobile_app_category_id}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/MobileAppCategoryConstant" + } + ]; + + // Output only. The ID of the mobile app category constant. + optional int32 id = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Mobile app category name. + optional string name = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/mobile_device_constant.proto b/third_party/googleapis/google/ads/googleads/v6/resources/mobile_device_constant.proto new file mode 100644 index 000000000..0b3329eee --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/mobile_device_constant.proto @@ -0,0 +1,67 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/enums/mobile_device_type.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "MobileDeviceConstantProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the mobile device constant resource. + +// A mobile device constant. +message MobileDeviceConstant { + option (google.api.resource) = { + type: "googleads.googleapis.com/MobileDeviceConstant" + pattern: "mobileDeviceConstants/{criterion_id}" + }; + + // Output only. The resource name of the mobile device constant. + // Mobile device constant resource names have the form: + // + // `mobileDeviceConstants/{criterion_id}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/MobileDeviceConstant" + } + ]; + + // Output only. The ID of the mobile device constant. + optional int64 id = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The name of the mobile device. + optional string name = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The manufacturer of the mobile device. + optional string manufacturer_name = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The operating system of the mobile device. + optional string operating_system_name = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The type of mobile device. + google.ads.googleads.v6.enums.MobileDeviceTypeEnum.MobileDeviceType type = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/offline_user_data_job.proto b/third_party/googleapis/google/ads/googleads/v6/resources/offline_user_data_job.proto new file mode 100644 index 000000000..f000000c9 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/offline_user_data_job.proto @@ -0,0 +1,82 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/common/offline_user_data.proto"; +import "google/ads/googleads/v6/enums/offline_user_data_job_failure_reason.proto"; +import "google/ads/googleads/v6/enums/offline_user_data_job_status.proto"; +import "google/ads/googleads/v6/enums/offline_user_data_job_type.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "OfflineUserDataJobProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the offline user data job resource. + +// A job containing offline user data of store visitors, or user list members +// that will be processed asynchronously. The uploaded data isn't readable and +// the processing results of the job can only be read using +// OfflineUserDataJobService.GetOfflineUserDataJob. +message OfflineUserDataJob { + option (google.api.resource) = { + type: "googleads.googleapis.com/OfflineUserDataJob" + pattern: "customers/{customer_id}/offlineUserDataJobs/{offline_user_data_update_id}" + }; + + // Immutable. The resource name of the offline user data job. + // Offline user data job resource names have the form: + // + // `customers/{customer_id}/offlineUserDataJobs/{offline_user_data_job_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/OfflineUserDataJob" + } + ]; + + // Output only. ID of this offline user data job. + optional int64 id = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. User specified job ID. + optional int64 external_id = 10 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Type of the job. + google.ads.googleads.v6.enums.OfflineUserDataJobTypeEnum.OfflineUserDataJobType type = 4 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. Status of the job. + google.ads.googleads.v6.enums.OfflineUserDataJobStatusEnum.OfflineUserDataJobStatus status = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reason for the processing failure, if status is FAILED. + google.ads.googleads.v6.enums.OfflineUserDataJobFailureReasonEnum.OfflineUserDataJobFailureReason failure_reason = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Metadata of the job. + oneof metadata { + // Immutable. Metadata for data updates to a CRM-based user list. + google.ads.googleads.v6.common.CustomerMatchUserListMetadata customer_match_user_list_metadata = 7 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Metadata for store sales data update. + google.ads.googleads.v6.common.StoreSalesMetadata store_sales_metadata = 8 [(google.api.field_behavior) = IMMUTABLE]; + } +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/operating_system_version_constant.proto b/third_party/googleapis/google/ads/googleads/v6/resources/operating_system_version_constant.proto new file mode 100644 index 000000000..7c7e6822e --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/operating_system_version_constant.proto @@ -0,0 +1,70 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/enums/operating_system_version_operator_type.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "OperatingSystemVersionConstantProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the operating system version constant resource. + +// A mobile operating system version or a range of versions, depending on +// `operator_type`. List of available mobile platforms at +// https://developers.google.com/adwords/api/docs/appendix/codes-formats#mobile-platforms +message OperatingSystemVersionConstant { + option (google.api.resource) = { + type: "googleads.googleapis.com/OperatingSystemVersionConstant" + pattern: "operatingSystemVersionConstants/{criterion_id}" + }; + + // Output only. The resource name of the operating system version constant. + // Operating system version constant resource names have the form: + // + // `operatingSystemVersionConstants/{criterion_id}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/OperatingSystemVersionConstant" + } + ]; + + // Output only. The ID of the operating system version. + optional int64 id = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Name of the operating system. + optional string name = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The OS Major Version number. + optional int32 os_major_version = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The OS Minor Version number. + optional int32 os_minor_version = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Determines whether this constant represents a single version or a range of + // versions. + google.ads.googleads.v6.enums.OperatingSystemVersionOperatorTypeEnum.OperatingSystemVersionOperatorType operator_type = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/paid_organic_search_term_view.proto b/third_party/googleapis/google/ads/googleads/v6/resources/paid_organic_search_term_view.proto new file mode 100644 index 000000000..5f6f188e9 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/paid_organic_search_term_view.proto @@ -0,0 +1,56 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "PaidOrganicSearchTermViewProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the PaidOrganicSearchTermView resource. + +// A paid organic search term view providing a view of search stats across +// ads and organic listings aggregated by search term at the ad group level. +message PaidOrganicSearchTermView { + option (google.api.resource) = { + type: "googleads.googleapis.com/PaidOrganicSearchTermView" + pattern: "customers/{customer_id}/paidOrganicSearchTermViews/{campaign_id}~{ad_group_id}~{base64_search_term}" + }; + + // Output only. The resource name of the search term view. + // Search term view resource names have the form: + // + // `customers/{customer_id}/paidOrganicSearchTermViews/{campaign_id}~ + // {ad_group_id}~{URL-base64 search term}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/PaidOrganicSearchTermView" + } + ]; + + // Output only. The search term. + optional string search_term = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/parental_status_view.proto b/third_party/googleapis/google/ads/googleads/v6/resources/parental_status_view.proto new file mode 100644 index 000000000..6c9d93500 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/parental_status_view.proto @@ -0,0 +1,51 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "ParentalStatusViewProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the parental status view resource. + +// A parental status view. +message ParentalStatusView { + option (google.api.resource) = { + type: "googleads.googleapis.com/ParentalStatusView" + pattern: "customers/{customer_id}/parentalStatusViews/{ad_group_id}~{criterion_id}" + }; + + // Output only. The resource name of the parental status view. + // Parental Status view resource names have the form: + // + // `customers/{customer_id}/parentalStatusViews/{ad_group_id}~{criterion_id}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/ParentalStatusView" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/payments_account.proto b/third_party/googleapis/google/ads/googleads/v6/resources/payments_account.proto new file mode 100644 index 000000000..4cbdefbd3 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/payments_account.proto @@ -0,0 +1,78 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "PaymentsAccountProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the PaymentsAccount resource. + +// A payments account, which can be used to set up billing for an Ads customer. +message PaymentsAccount { + option (google.api.resource) = { + type: "googleads.googleapis.com/PaymentsAccount" + pattern: "customers/{customer_id}/paymentsAccounts/{payments_account_id}" + }; + + // Output only. The resource name of the payments account. + // PaymentsAccount resource names have the form: + // + // `customers/{customer_id}/paymentsAccounts/{payments_account_id}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/PaymentsAccount" + } + ]; + + // Output only. A 16 digit ID used to identify a payments account. + optional string payments_account_id = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The name of the payments account. + optional string name = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The currency code of the payments account. + // A subset of the currency codes derived from the ISO 4217 standard is + // supported. + optional string currency_code = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A 12 digit ID used to identify the payments profile associated with the + // payments account. + optional string payments_profile_id = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A secondary payments profile ID present in uncommon situations, e.g. + // when a sequential liability agreement has been arranged. + optional string secondary_payments_profile_id = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Paying manager of this payment account. + optional string paying_manager_customer = 13 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Customer" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/product_bidding_category_constant.proto b/third_party/googleapis/google/ads/googleads/v6/resources/product_bidding_category_constant.proto new file mode 100644 index 000000000..758cee28b --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/product_bidding_category_constant.proto @@ -0,0 +1,83 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/enums/product_bidding_category_level.proto"; +import "google/ads/googleads/v6/enums/product_bidding_category_status.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "ProductBiddingCategoryConstantProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the ProductBiddingCategoryConstant resource. + +// A Product Bidding Category. +message ProductBiddingCategoryConstant { + option (google.api.resource) = { + type: "googleads.googleapis.com/ProductBiddingCategoryConstant" + pattern: "productBiddingCategoryConstants/{country_code}~{level}~{id}" + }; + + // Output only. The resource name of the product bidding category. + // Product bidding category resource names have the form: + // + // `productBiddingCategoryConstants/{country_code}~{level}~{id}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/ProductBiddingCategoryConstant" + } + ]; + + // Output only. ID of the product bidding category. + // + // This ID is equivalent to the google_product_category ID as described in + // this article: https://support.google.com/merchants/answer/6324436. + optional int64 id = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Two-letter upper-case country code of the product bidding category. + optional string country_code = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Resource name of the parent product bidding category. + optional string product_bidding_category_constant_parent = 12 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/ProductBiddingCategoryConstant" + } + ]; + + // Output only. Level of the product bidding category. + google.ads.googleads.v6.enums.ProductBiddingCategoryLevelEnum.ProductBiddingCategoryLevel level = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Status of the product bidding category. + google.ads.googleads.v6.enums.ProductBiddingCategoryStatusEnum.ProductBiddingCategoryStatus status = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Language code of the product bidding category. + optional string language_code = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Display value of the product bidding category localized according to + // language_code. + optional string localized_name = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/product_group_view.proto b/third_party/googleapis/google/ads/googleads/v6/resources/product_group_view.proto new file mode 100644 index 000000000..a43f5c857 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/product_group_view.proto @@ -0,0 +1,51 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "ProductGroupViewProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the ProductGroup View resource. + +// A product group view. +message ProductGroupView { + option (google.api.resource) = { + type: "googleads.googleapis.com/ProductGroupView" + pattern: "customers/{customer_id}/productGroupViews/{adgroup_id}~{criterion_id}" + }; + + // Output only. The resource name of the product group view. + // Product group view resource names have the form: + // + // `customers/{customer_id}/productGroupViews/{ad_group_id}~{criterion_id}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/ProductGroupView" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/recommendation.proto b/third_party/googleapis/google/ads/googleads/v6/resources/recommendation.proto new file mode 100644 index 000000000..a4d2be0fd --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/recommendation.proto @@ -0,0 +1,346 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/common/criteria.proto"; +import "google/ads/googleads/v6/common/extensions.proto"; +import "google/ads/googleads/v6/enums/keyword_match_type.proto"; +import "google/ads/googleads/v6/enums/recommendation_type.proto"; +import "google/ads/googleads/v6/enums/target_cpa_opt_in_recommendation_goal.proto"; +import "google/ads/googleads/v6/resources/ad.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "RecommendationProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the Recommendation resource. + +// A recommendation. +message Recommendation { + option (google.api.resource) = { + type: "googleads.googleapis.com/Recommendation" + pattern: "customers/{customer_id}/recommendations/{recommendation_id}" + }; + + // The impact of making the change as described in the recommendation. + // Some types of recommendations may not have impact information. + message RecommendationImpact { + // Output only. Base metrics at the time the recommendation was generated. + RecommendationMetrics base_metrics = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Estimated metrics if the recommendation is applied. + RecommendationMetrics potential_metrics = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Weekly account performance metrics. For some recommendation types, these + // are averaged over the past 90-day period and hence can be fractional. + message RecommendationMetrics { + // Output only. Number of ad impressions. + optional double impressions = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Number of ad clicks. + optional double clicks = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Cost (in micros) for advertising, in the local currency for the account. + optional int64 cost_micros = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Number of conversions. + optional double conversions = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Number of video views for a video ad campaign. + optional double video_views = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The budget recommendation for budget constrained campaigns. + message CampaignBudgetRecommendation { + // The impact estimates for a given budget amount. + message CampaignBudgetRecommendationOption { + // Output only. The budget amount for this option. + optional int64 budget_amount_micros = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The impact estimate if budget is changed to amount specified in this + // option. + RecommendationImpact impact = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Output only. The current budget amount in micros. + optional int64 current_budget_amount_micros = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The recommended budget amount in micros. + optional int64 recommended_budget_amount_micros = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The budget amounts and associated impact estimates for some values of + // possible budget amounts. + repeated CampaignBudgetRecommendationOption budget_options = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The keyword recommendation. + message KeywordRecommendation { + // Output only. The recommended keyword. + google.ads.googleads.v6.common.KeywordInfo keyword = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The recommended CPC (cost-per-click) bid. + optional int64 recommended_cpc_bid_micros = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The text ad recommendation. + message TextAdRecommendation { + // Output only. Recommended ad. + Ad ad = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Creation date of the recommended ad. + // YYYY-MM-DD format, e.g., 2018-04-17. + optional string creation_date = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Date, if present, is the earliest when the recommendation will be auto + // applied. + // YYYY-MM-DD format, e.g., 2018-04-17. + optional string auto_apply_date = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The add responsive search ad recommendation. + message ResponsiveSearchAdRecommendation { + // Output only. Recommended ad. + Ad ad = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The Target CPA opt-in recommendation. + message TargetCpaOptInRecommendation { + // The Target CPA opt-in option with impact estimate. + message TargetCpaOptInRecommendationOption { + // Output only. The goal achieved by this option. + google.ads.googleads.v6.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal goal = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Average CPA target. + optional int64 target_cpa_micros = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The minimum campaign budget, in local currency for the account, + // required to achieve the target CPA. + // Amount is specified in micros, where one million is equivalent to one + // currency unit. + optional int64 required_campaign_budget_amount_micros = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The impact estimate if this option is selected. + RecommendationImpact impact = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Output only. The available goals and corresponding options for Target CPA strategy. + repeated TargetCpaOptInRecommendationOption options = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The recommended average CPA target. See required budget amount and impact + // of using this recommendation in options list. + optional int64 recommended_target_cpa_micros = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The Maximize Conversions Opt-In recommendation. + message MaximizeConversionsOptInRecommendation { + // Output only. The recommended new budget amount. + optional int64 recommended_budget_amount_micros = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The Callout extension recommendation. + message CalloutExtensionRecommendation { + // Output only. Callout extensions recommended to be added. + repeated google.ads.googleads.v6.common.CalloutFeedItem recommended_extensions = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The Enhanced Cost-Per-Click Opt-In recommendation. + message EnhancedCpcOptInRecommendation { + + } + + // The Search Partners Opt-In recommendation. + message SearchPartnersOptInRecommendation { + + } + + // The Maximize Clicks opt-in recommendation. + message MaximizeClicksOptInRecommendation { + // Output only. The recommended new budget amount. + // Only set if the current budget is too high. + optional int64 recommended_budget_amount_micros = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The move unused budget recommendation. + message MoveUnusedBudgetRecommendation { + // Output only. The excess budget's resource_name. + optional string excess_campaign_budget = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The recommendation for the constrained budget to increase. + CampaignBudgetRecommendation budget_recommendation = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The Optimize Ad Rotation recommendation. + message OptimizeAdRotationRecommendation { + + } + + // The Sitelink extension recommendation. + message SitelinkExtensionRecommendation { + // Output only. Sitelink extensions recommended to be added. + repeated google.ads.googleads.v6.common.SitelinkFeedItem recommended_extensions = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The keyword match type recommendation. + message KeywordMatchTypeRecommendation { + // Output only. The existing keyword where the match type should be more broad. + google.ads.googleads.v6.common.KeywordInfo keyword = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The recommended new match type. + google.ads.googleads.v6.enums.KeywordMatchTypeEnum.KeywordMatchType recommended_match_type = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The Call extension recommendation. + message CallExtensionRecommendation { + // Output only. Call extensions recommended to be added. + repeated google.ads.googleads.v6.common.CallFeedItem recommended_extensions = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The Target ROAS opt-in recommendation. + message TargetRoasOptInRecommendation { + // Output only. The recommended target ROAS (revenue per unit of spend). + // The value is between 0.01 and 1000.0, inclusive. + optional double recommended_target_roas = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The minimum campaign budget, in local currency for the account, + // required to achieve the target ROAS. + // Amount is specified in micros, where one million is equivalent to one + // currency unit. + optional int64 required_campaign_budget_amount_micros = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Immutable. The resource name of the recommendation. + // + // `customers/{customer_id}/recommendations/{recommendation_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Recommendation" + } + ]; + + // Output only. The type of recommendation. + google.ads.googleads.v6.enums.RecommendationTypeEnum.RecommendationType type = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The impact on account performance as a result of applying the + // recommendation. + RecommendationImpact impact = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The budget targeted by this recommendation. This will be set only when + // the recommendation affects a single campaign budget. + // + // This field will be set for the following recommendation types: + // CAMPAIGN_BUDGET, FORECASTING_CAMPAIGN_BUDGET, MOVE_UNUSED_BUDGET + optional string campaign_budget = 24 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CampaignBudget" + } + ]; + + // Output only. The campaign targeted by this recommendation. This will be set only when + // the recommendation affects a single campaign. + // + // This field will be set for the following recommendation types: + // CALL_EXTENSION, CALLOUT_EXTENSION, ENHANCED_CPC_OPT_IN, KEYWORD, + // KEYWORD_MATCH_TYPE, MAXIMIZE_CLICKS_OPT_IN, MAXIMIZE_CONVERSIONS_OPT_IN, + // OPTIMIZE_AD_ROTATION, RESPONSIVE_SEARCH_AD, SEARCH_PARTNERS_OPT_IN, + // SITELINK_EXTENSION, TARGET_CPA_OPT_IN, TARGET_ROAS_OPT_IN, TEXT_AD + optional string campaign = 25 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Campaign" + } + ]; + + // Output only. The ad group targeted by this recommendation. This will be set only when + // the recommendation affects a single ad group. + // + // This field will be set for the following recommendation types: + // KEYWORD, OPTIMIZE_AD_ROTATION, RESPONSIVE_SEARCH_AD, TEXT_AD + optional string ad_group = 26 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroup" + } + ]; + + // Output only. Whether the recommendation is dismissed or not. + optional bool dismissed = 27 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The details of recommendation. + oneof recommendation { + // Output only. The campaign budget recommendation. + CampaignBudgetRecommendation campaign_budget_recommendation = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The forecasting campaign budget recommendation. + CampaignBudgetRecommendation forecasting_campaign_budget_recommendation = 22 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The keyword recommendation. + KeywordRecommendation keyword_recommendation = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Add expanded text ad recommendation. + TextAdRecommendation text_ad_recommendation = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The TargetCPA opt-in recommendation. + TargetCpaOptInRecommendation target_cpa_opt_in_recommendation = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The MaximizeConversions Opt-In recommendation. + MaximizeConversionsOptInRecommendation maximize_conversions_opt_in_recommendation = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Enhanced Cost-Per-Click Opt-In recommendation. + EnhancedCpcOptInRecommendation enhanced_cpc_opt_in_recommendation = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Search Partners Opt-In recommendation. + SearchPartnersOptInRecommendation search_partners_opt_in_recommendation = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The MaximizeClicks Opt-In recommendation. + MaximizeClicksOptInRecommendation maximize_clicks_opt_in_recommendation = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Optimize Ad Rotation recommendation. + OptimizeAdRotationRecommendation optimize_ad_rotation_recommendation = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Callout extension recommendation. + CalloutExtensionRecommendation callout_extension_recommendation = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Sitelink extension recommendation. + SitelinkExtensionRecommendation sitelink_extension_recommendation = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Call extension recommendation. + CallExtensionRecommendation call_extension_recommendation = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The keyword match type recommendation. + KeywordMatchTypeRecommendation keyword_match_type_recommendation = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The move unused budget recommendation. + MoveUnusedBudgetRecommendation move_unused_budget_recommendation = 21 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Target ROAS opt-in recommendation. + TargetRoasOptInRecommendation target_roas_opt_in_recommendation = 23 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The add responsive search ad recommendation. + ResponsiveSearchAdRecommendation responsive_search_ad_recommendation = 28 [(google.api.field_behavior) = OUTPUT_ONLY]; + } +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/remarketing_action.proto b/third_party/googleapis/google/ads/googleads/v6/resources/remarketing_action.proto new file mode 100644 index 000000000..37ea52927 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/remarketing_action.proto @@ -0,0 +1,66 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/common/tag_snippet.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "RemarketingActionProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the Remarketing Action resource. + +// A remarketing action. A snippet of JavaScript code that will collect the +// product id and the type of page people visited (product page, shopping cart +// page, purchase page, general site visit) on an advertiser's website. +message RemarketingAction { + option (google.api.resource) = { + type: "googleads.googleapis.com/RemarketingAction" + pattern: "customers/{customer_id}/remarketingActions/{remarketing_action_id}" + }; + + // Immutable. The resource name of the remarketing action. + // Remarketing action resource names have the form: + // + // `customers/{customer_id}/remarketingActions/{remarketing_action_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/RemarketingAction" + } + ]; + + // Output only. Id of the remarketing action. + optional int64 id = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The name of the remarketing action. + // + // This field is required and should not be empty when creating new + // remarketing actions. + optional string name = 6; + + // Output only. The snippets used for tracking remarketing actions. + repeated google.ads.googleads.v6.common.TagSnippet tag_snippets = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/search_term_view.proto b/third_party/googleapis/google/ads/googleads/v6/resources/search_term_view.proto new file mode 100644 index 000000000..023e89dfc --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/search_term_view.proto @@ -0,0 +1,68 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/enums/search_term_targeting_status.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "SearchTermViewProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the SearchTermView resource. + +// A search term view with metrics aggregated by search term at the ad group +// level. +message SearchTermView { + option (google.api.resource) = { + type: "googleads.googleapis.com/SearchTermView" + pattern: "customers/{customer_id}/searchTermViews/{campaign_id}~{ad_group_id}~{query}" + }; + + // Output only. The resource name of the search term view. + // Search term view resource names have the form: + // + // `customers/{customer_id}/searchTermViews/{campaign_id}~{ad_group_id}~{URL-base64_search_term}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/SearchTermView" + } + ]; + + // Output only. The search term. + optional string search_term = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The ad group the search term served in. + optional string ad_group = 6 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroup" + } + ]; + + // Output only. Indicates whether the search term is currently one of your + // targeted or excluded keywords. + google.ads.googleads.v6.enums.SearchTermTargetingStatusEnum.SearchTermTargetingStatus status = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/shared_criterion.proto b/third_party/googleapis/google/ads/googleads/v6/resources/shared_criterion.proto new file mode 100644 index 000000000..1139c1153 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/shared_criterion.proto @@ -0,0 +1,92 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/common/criteria.proto"; +import "google/ads/googleads/v6/enums/criterion_type.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "SharedCriterionProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the SharedCriterion resource. + +// A criterion belonging to a shared set. +message SharedCriterion { + option (google.api.resource) = { + type: "googleads.googleapis.com/SharedCriterion" + pattern: "customers/{customer_id}/sharedCriteria/{shared_set_id}~{criterion_id}" + }; + + // Immutable. The resource name of the shared criterion. + // Shared set resource names have the form: + // + // `customers/{customer_id}/sharedCriteria/{shared_set_id}~{criterion_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/SharedCriterion" + } + ]; + + // Immutable. The shared set to which the shared criterion belongs. + optional string shared_set = 10 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/SharedSet" + } + ]; + + // Output only. The ID of the criterion. + // + // This field is ignored for mutates. + optional int64 criterion_id = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The type of the criterion. + google.ads.googleads.v6.enums.CriterionTypeEnum.CriterionType type = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The criterion. + // + // Exactly one must be set. + oneof criterion { + // Immutable. Keyword. + google.ads.googleads.v6.common.KeywordInfo keyword = 3 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. YouTube Video. + google.ads.googleads.v6.common.YouTubeVideoInfo youtube_video = 5 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. YouTube Channel. + google.ads.googleads.v6.common.YouTubeChannelInfo youtube_channel = 6 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Placement. + google.ads.googleads.v6.common.PlacementInfo placement = 7 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Mobile App Category. + google.ads.googleads.v6.common.MobileAppCategoryInfo mobile_app_category = 8 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Mobile application. + google.ads.googleads.v6.common.MobileApplicationInfo mobile_application = 9 [(google.api.field_behavior) = IMMUTABLE]; + } +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/shared_set.proto b/third_party/googleapis/google/ads/googleads/v6/resources/shared_set.proto new file mode 100644 index 000000000..42846f461 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/shared_set.proto @@ -0,0 +1,77 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/enums/shared_set_status.proto"; +import "google/ads/googleads/v6/enums/shared_set_type.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "SharedSetProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the SharedSet resource. + +// SharedSets are used for sharing criterion exclusions across multiple +// campaigns. +message SharedSet { + option (google.api.resource) = { + type: "googleads.googleapis.com/SharedSet" + pattern: "customers/{customer_id}/sharedSets/{shared_set_id}" + }; + + // Immutable. The resource name of the shared set. + // Shared set resource names have the form: + // + // `customers/{customer_id}/sharedSets/{shared_set_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/SharedSet" + } + ]; + + // Output only. The ID of this shared set. Read only. + optional int64 id = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. The type of this shared set: each shared set holds only a single kind + // of resource. Required. Immutable. + google.ads.googleads.v6.enums.SharedSetTypeEnum.SharedSetType type = 3 [(google.api.field_behavior) = IMMUTABLE]; + + // The name of this shared set. Required. + // Shared Sets must have names that are unique among active shared sets of + // the same type. + // The length of this string should be between 1 and 255 UTF-8 bytes, + // inclusive. + optional string name = 9; + + // Output only. The status of this shared set. Read only. + google.ads.googleads.v6.enums.SharedSetStatusEnum.SharedSetStatus status = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of shared criteria within this shared set. Read only. + optional int64 member_count = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of campaigns associated with this shared set. Read only. + optional int64 reference_count = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/shopping_performance_view.proto b/third_party/googleapis/google/ads/googleads/v6/resources/shopping_performance_view.proto new file mode 100644 index 000000000..695e2c67a --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/shopping_performance_view.proto @@ -0,0 +1,55 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "ShoppingPerformanceViewProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the ShoppingPerformanceView resource. + +// Shopping performance view. +// Provides Shopping campaign statistics aggregated at several product dimension +// levels. Product dimension values from Merchant Center such as brand, +// category, custom attributes, product condition and product type will reflect +// the state of each dimension as of the date and time when the corresponding +// event was recorded. +message ShoppingPerformanceView { + option (google.api.resource) = { + type: "googleads.googleapis.com/ShoppingPerformanceView" + pattern: "customers/{customer_id}/shoppingPerformanceView" + }; + + // Output only. The resource name of the Shopping performance view. + // Shopping performance view resource names have the form: + // `customers/{customer_id}/shoppingPerformanceView` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/ShoppingPerformanceView" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/third_party_app_analytics_link.proto b/third_party/googleapis/google/ads/googleads/v6/resources/third_party_app_analytics_link.proto new file mode 100644 index 000000000..b3d0dbfd9 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/third_party_app_analytics_link.proto @@ -0,0 +1,55 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "ThirdPartyAppAnalyticsLinkProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// A data sharing connection, allowing the import of third party app analytics +// into a Google Ads Customer. +message ThirdPartyAppAnalyticsLink { + option (google.api.resource) = { + type: "googleads.googleapis.com/ThirdPartyAppAnalyticsLink" + pattern: "customers/{customer_id}/thirdPartyAppAnalyticsLinks/{customer_link_id}" + }; + + // Immutable. The resource name of the third party app analytics link. + // Third party app analytics link resource names have the form: + // + // `customers/{customer_id}/thirdPartyAppAnalyticsLinks/{account_link_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/ThirdPartyAppAnalyticsLink" + } + ]; + + // Output only. The shareable link ID that should be provided to the third party when + // setting up app analytics. This is able to be regenerated using regenerate + // method in the ThirdPartyAppAnalyticsLinkService. + optional string shareable_link_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/topic_constant.proto b/third_party/googleapis/google/ads/googleads/v6/resources/topic_constant.proto new file mode 100644 index 000000000..ace7dbceb --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/topic_constant.proto @@ -0,0 +1,71 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "TopicConstantProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the Topic Constant resource. + +// Use topics to target or exclude placements in the Google Display Network +// based on the category into which the placement falls (for example, +// "Pets & Animals/Pets/Dogs"). +message TopicConstant { + option (google.api.resource) = { + type: "googleads.googleapis.com/TopicConstant" + pattern: "topicConstants/{topic_id}" + }; + + // Output only. The resource name of the topic constant. + // topic constant resource names have the form: + // + // `topicConstants/{topic_id}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/TopicConstant" + } + ]; + + // Output only. The ID of the topic. + optional int64 id = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Resource name of parent of the topic constant. + optional string topic_constant_parent = 6 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/TopicConstant" + } + ]; + + // Output only. The category to target or exclude. Each subsequent element in the array + // describes a more specific sub-category. For example, + // {"Pets & Animals", "Pets", "Dogs"} represents the + // "Pets & Animals/Pets/Dogs" category. List of available topic categories at + // https://developers.google.com/adwords/api/docs/appendix/verticals + repeated string path = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/topic_view.proto b/third_party/googleapis/google/ads/googleads/v6/resources/topic_view.proto new file mode 100644 index 000000000..470757bdd --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/topic_view.proto @@ -0,0 +1,51 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "TopicViewProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the topic view resource. + +// A topic view. +message TopicView { + option (google.api.resource) = { + type: "googleads.googleapis.com/TopicView" + pattern: "customers/{customer_id}/topicViews/{ad_group_id}~{criterion_id}" + }; + + // Output only. The resource name of the topic view. + // Topic view resource names have the form: + // + // `customers/{customer_id}/topicViews/{ad_group_id}~{criterion_id}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/TopicView" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/user_interest.proto b/third_party/googleapis/google/ads/googleads/v6/resources/user_interest.proto new file mode 100644 index 000000000..c980111cf --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/user_interest.proto @@ -0,0 +1,76 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/common/criterion_category_availability.proto"; +import "google/ads/googleads/v6/enums/user_interest_taxonomy_type.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "UserInterestProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the User Interest resource. + +// A user interest: a particular interest-based vertical to be targeted. +message UserInterest { + option (google.api.resource) = { + type: "googleads.googleapis.com/UserInterest" + pattern: "customers/{customer_id}/userInterests/{user_interest_id}" + }; + + // Output only. The resource name of the user interest. + // User interest resource names have the form: + // + // `customers/{customer_id}/userInterests/{user_interest_id}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/UserInterest" + } + ]; + + // Output only. Taxonomy type of the user interest. + google.ads.googleads.v6.enums.UserInterestTaxonomyTypeEnum.UserInterestTaxonomyType taxonomy_type = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The ID of the user interest. + optional int64 user_interest_id = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The name of the user interest. + optional string name = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The parent of the user interest. + optional string user_interest_parent = 10 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/UserInterest" + } + ]; + + // Output only. True if the user interest is launched to all channels and locales. + optional bool launched_to_all = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Availability information of the user interest. + repeated google.ads.googleads.v6.common.CriterionCategoryAvailability availabilities = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/user_list.proto b/third_party/googleapis/google/ads/googleads/v6/resources/user_list.proto new file mode 100644 index 000000000..305619295 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/user_list.proto @@ -0,0 +1,174 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/ads/googleads/v6/common/user_lists.proto"; +import "google/ads/googleads/v6/enums/access_reason.proto"; +import "google/ads/googleads/v6/enums/user_list_access_status.proto"; +import "google/ads/googleads/v6/enums/user_list_closing_reason.proto"; +import "google/ads/googleads/v6/enums/user_list_membership_status.proto"; +import "google/ads/googleads/v6/enums/user_list_size_range.proto"; +import "google/ads/googleads/v6/enums/user_list_type.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "UserListProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the User List resource. + +// A user list. This is a list of users a customer may target. +message UserList { + option (google.api.resource) = { + type: "googleads.googleapis.com/UserList" + pattern: "customers/{customer_id}/userLists/{user_list_id}" + }; + + // Immutable. The resource name of the user list. + // User list resource names have the form: + // + // `customers/{customer_id}/userLists/{user_list_id}` + string resource_name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/UserList" + } + ]; + + // Output only. Id of the user list. + optional int64 id = 25 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A flag that indicates if a user may edit a list. Depends on the list + // ownership and list type. For example, external remarketing user lists are + // not editable. + // + // This field is read-only. + optional bool read_only = 26 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Name of this user list. Depending on its access_reason, the user list name + // may not be unique (e.g. if access_reason=SHARED) + optional string name = 27; + + // Description of this user list. + optional string description = 28; + + // 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.v6.enums.UserListMembershipStatusEnum.UserListMembershipStatus membership_status = 6; + + // An ID from external system. It is used by user list sellers to correlate + // IDs on their systems. + optional string integration_code = 29; + + // Number of days a user's cookie stays on your list since its most recent + // addition to the list. This field must be between 0 and 540 inclusive. + // However, for CRM based userlists, this field can be set to 10000 which + // means no expiration. + // + // It'll be ignored for logical_user_list. + optional int64 membership_life_span = 30; + + // Output only. Estimated number of users in this user list, on the Google Display Network. + // This value is null if the number of users has not yet been determined. + // + // This field is read-only. + optional int64 size_for_display = 31 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Size range in terms of number of users of the UserList, on the Google + // Display Network. + // + // This field is read-only. + google.ads.googleads.v6.enums.UserListSizeRangeEnum.UserListSizeRange size_range_for_display = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Estimated number of users in this user list in the google.com domain. + // These are the users available for targeting in Search campaigns. + // This value is null if the number of users has not yet been determined. + // + // This field is read-only. + optional int64 size_for_search = 32 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Size range in terms of number of users of the UserList, for Search ads. + // + // This field is read-only. + google.ads.googleads.v6.enums.UserListSizeRangeEnum.UserListSizeRange size_range_for_search = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Type of this list. + // + // This field is read-only. + google.ads.googleads.v6.enums.UserListTypeEnum.UserListType type = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // 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.v6.enums.UserListClosingReasonEnum.UserListClosingReason closing_reason = 14; + + // Output only. 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.v6.enums.AccessReasonEnum.AccessReason access_reason = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // 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.v6.enums.UserListAccessStatusEnum.UserListAccessStatus account_user_list_status = 16; + + // Indicates if this user list is eligible for Google Search Network. + optional bool eligible_for_search = 33; + + // Output only. Indicates this user list is eligible for Google Display Network. + // + // This field is read-only. + optional bool eligible_for_display = 34 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Indicates match rate for Customer Match lists. The range of this field is + // [0-100]. This will be null for other list types or when it's not possible + // to calculate the match rate. + // + // This field is read-only. + optional int32 match_rate_percentage = 24 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The user list. + // + // Exactly one must be set. + oneof user_list { + // User list of CRM users provided by the advertiser. + google.ads.googleads.v6.common.CrmBasedUserListInfo crm_based_user_list = 19; + + // Output only. User list which are similar to users from another UserList. + // These lists are readonly and automatically created by google. + google.ads.googleads.v6.common.SimilarUserListInfo similar_user_list = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // User list generated by a rule. + google.ads.googleads.v6.common.RuleBasedUserListInfo rule_based_user_list = 21; + + // User list that is a custom combination of user lists and user interests. + google.ads.googleads.v6.common.LogicalUserListInfo logical_user_list = 22; + + // User list targeting as a collection of conversion or remarketing actions. + google.ads.googleads.v6.common.BasicUserListInfo basic_user_list = 23; + } +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/user_location_view.proto b/third_party/googleapis/google/ads/googleads/v6/resources/user_location_view.proto new file mode 100644 index 000000000..f5546a09e --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/user_location_view.proto @@ -0,0 +1,62 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "UserLocationViewProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the user location view resource. + +// A user location view. +// +// User Location View includes all metrics aggregated at the country level, +// one row per country. It reports metrics at the actual physical location of +// the user by targeted or not targeted location. If other segment fields are +// used, you may get more than one row per country. +message UserLocationView { + option (google.api.resource) = { + type: "googleads.googleapis.com/UserLocationView" + pattern: "customers/{customer_id}/userLocationViews/{country_criterion_id}~{is_targeting_location}" + }; + + // Output only. The resource name of the user location view. + // UserLocation view resource names have the form: + // + // `customers/{customer_id}/userLocationViews/{country_criterion_id}~{targeting_location}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/UserLocationView" + } + ]; + + // Output only. Criterion Id for the country. + optional int64 country_criterion_id = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Indicates whether location was targeted or not. + optional bool targeting_location = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/resources/video.proto b/third_party/googleapis/google/ads/googleads/v6/resources/video.proto new file mode 100644 index 000000000..252e9faaf --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/resources/video.proto @@ -0,0 +1,63 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.resources; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Resources"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/resources;resources"; +option java_multiple_files = true; +option java_outer_classname = "VideoProto"; +option java_package = "com.google.ads.googleads.v6.resources"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Resources"; +option ruby_package = "Google::Ads::GoogleAds::V6::Resources"; + +// Proto file describing the video resource. + +// A video. +message Video { + option (google.api.resource) = { + type: "googleads.googleapis.com/Video" + pattern: "customers/{customer_id}/videos/{video_id}" + }; + + // Output only. The resource name of the video. + // Video resource names have the form: + // + // `customers/{customer_id}/videos/{video_id}` + string resource_name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Video" + } + ]; + + // Output only. The ID of the video. + optional string id = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The owner channel id of the video. + optional string channel_id = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The duration of the video in milliseconds. + optional int64 duration_millis = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The title of the video. + optional string title = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/BUILD.bazel b/third_party/googleapis/google/ads/googleads/v6/services/BUILD.bazel new file mode 100644 index 000000000..88cc5c966 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/BUILD.bazel @@ -0,0 +1,138 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") +load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info") + +# TODO(ohren): Change srcs to use an enumeration of each individual proto +# instead of *.proto globbing once the build file generator supports +# subpackages. +proto_library( + name = "services_proto", + srcs = glob(["*.proto"]), + deps = [ + "//google/ads/googleads/v6/common:common_proto", + "//google/ads/googleads/v6/enums:enums_proto", + "//google/ads/googleads/v6/errors:errors_proto", + "//google/ads/googleads/v6/resources:resources_proto", + "//google/api:annotations_proto", + "//google/api:client_proto", + "//google/api:field_behavior_proto", + "//google/api:resource_proto", + "//google/longrunning:operations_proto", + "//google/rpc:status_proto", + "@com_google_protobuf//:empty_proto", + "@com_google_protobuf//:field_mask_proto", + "@com_google_protobuf//:wrappers_proto", + ], +) + +proto_library_with_info( + name = "services_proto_with_info", + deps = [ + ":services_proto", + ], +) + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_grpc_library", + "java_proto_library", +) + +java_proto_library( + name = "services_java_proto", + deps = [":services_proto"], +) + +java_grpc_library( + name = "services_java_grpc", + srcs = [":services_proto"], + deps = [":services_java_proto"], +) + +############################################################################## +# PHP +############################################################################## + +# PHP targets are in the parent directory's BUILD.bazel file to facilitate +# aggregating metadata using a single underlying call to protoc. + +############################################################################## +# C# +############################################################################## +load( + "@gapic_generator_csharp//rules_csharp_gapic:csharp_gapic.bzl", + "csharp_grpc_library", + "csharp_proto_library", +) + +csharp_proto_library( + name = "services_csharp_proto", + deps = [":services_proto"], +) + +csharp_grpc_library( + name = "services_csharp_grpc", + srcs = [":services_proto"], + deps = [":services_csharp_proto"], +) + +############################################################################## +# Ruby +############################################################################## +load( + "@gapic_generator_ruby//rules_ruby_gapic:ruby_gapic.bzl", + "ruby_grpc_library", + "ruby_proto_library", +) + +ruby_proto_library( + name = "services_ruby_proto", + deps = [":services_proto"], +) + +ruby_grpc_library( + name = "services_ruby_grpc", + srcs = [":services_proto"], + deps = [":services_ruby_proto"], +) + +############################################################################## +# Python +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "py_grpc_library", + "py_proto_library", +) + +py_proto_library( + name = "services_py_proto", + deps = [":services_proto"], +) + +py_grpc_library( + name = "services_py_grpc", + srcs = [":services_proto"], + deps = [":services_py_proto"], +) diff --git a/third_party/googleapis/google/ads/googleads/v6/services/account_budget_proposal_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/account_budget_proposal_service.proto new file mode 100644 index 000000000..ec59753e7 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/account_budget_proposal_service.proto @@ -0,0 +1,138 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/account_budget_proposal.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "AccountBudgetProposalServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the AccountBudgetProposal service. + +// A service for managing account-level budgets via proposals. +// +// A proposal is a request to create a new budget or make changes to an +// existing one. +// +// Reads for account-level budgets managed by these proposals will be +// supported in a future version. Until then, please use the +// BudgetOrderService from the AdWords API. Learn more at +// https://developers.google.com/adwords/api/docs/guides/budget-order +// +// Mutates: +// The CREATE operation creates a new proposal. +// UPDATE operations aren't supported. +// The REMOVE operation cancels a pending proposal. +service AccountBudgetProposalService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns an account-level budget proposal in full detail. + rpc GetAccountBudgetProposal(GetAccountBudgetProposalRequest) returns (google.ads.googleads.v6.resources.AccountBudgetProposal) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/accountBudgetProposals/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates, updates, or removes account budget proposals. Operation statuses + // are returned. + rpc MutateAccountBudgetProposal(MutateAccountBudgetProposalRequest) returns (MutateAccountBudgetProposalResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/accountBudgetProposals:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operation"; + } +} + +// Request message for +// [AccountBudgetProposalService.GetAccountBudgetProposal][google.ads.googleads.v6.services.AccountBudgetProposalService.GetAccountBudgetProposal]. +message GetAccountBudgetProposalRequest { + // Required. The resource name of the account-level budget proposal to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AccountBudgetProposal" + } + ]; +} + +// Request message for +// [AccountBudgetProposalService.MutateAccountBudgetProposal][google.ads.googleads.v6.services.AccountBudgetProposalService.MutateAccountBudgetProposal]. +message MutateAccountBudgetProposalRequest { + // Required. The ID of the customer. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The operation to perform on an individual account-level budget proposal. + AccountBudgetProposalOperation operation = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 3; +} + +// A single operation to propose the creation of a new account-level budget or +// edit/end/remove an existing one. +message AccountBudgetProposalOperation { + // FieldMask that determines which budget fields are modified. While budgets + // may be modified, proposals that propose such modifications are final. + // Therefore, update operations are not supported for proposals. + // + // Proposals that modify budgets have the 'update' proposal type. Specifying + // a mask for any other proposal type is considered an error. + google.protobuf.FieldMask update_mask = 3; + + // The mutate operation. + oneof operation { + // Create operation: A new proposal to create a new budget, edit an + // existing budget, end an actively running budget, or remove an approved + // budget scheduled to start in the future. + // No resource name is expected for the new proposal. + google.ads.googleads.v6.resources.AccountBudgetProposal create = 2; + + // Remove operation: A resource name for the removed proposal is expected, + // in this format: + // + // `customers/{customer_id}/accountBudgetProposals/{account_budget_proposal_id}` + // A request may be cancelled iff it is pending. + string remove = 1; + } +} + +// Response message for account-level budget mutate operations. +message MutateAccountBudgetProposalResponse { + // The result of the mutate. + MutateAccountBudgetProposalResult result = 2; +} + +// The result for the account budget proposal mutate. +message MutateAccountBudgetProposalResult { + // Returned for successful operations. + string resource_name = 1; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/account_budget_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/account_budget_service.proto new file mode 100644 index 000000000..e4138c469 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/account_budget_service.proto @@ -0,0 +1,62 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/account_budget.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "AccountBudgetServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the AccountBudget service. + +// A service for fetching an account-level budget. +// +// Account-level budgets are mutated by creating proposal resources. +service AccountBudgetService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns an account-level budget in full detail. + rpc GetAccountBudget(GetAccountBudgetRequest) returns (google.ads.googleads.v6.resources.AccountBudget) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/accountBudgets/*}" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for +// [AccountBudgetService.GetAccountBudget][google.ads.googleads.v6.services.AccountBudgetService.GetAccountBudget]. +message GetAccountBudgetRequest { + // Required. The resource name of the account-level budget to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AccountBudget" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/account_link_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/account_link_service.proto new file mode 100644 index 000000000..2b9d8fe87 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/account_link_service.proto @@ -0,0 +1,147 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/account_link.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "AccountLinkServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// This service allows management of links between Google Ads accounts and other +// accounts. +service AccountLinkService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the account link in full detail. + rpc GetAccountLink(GetAccountLinkRequest) returns (google.ads.googleads.v6.resources.AccountLink) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/accountLinks/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates an account link. + rpc CreateAccountLink(CreateAccountLinkRequest) returns (CreateAccountLinkResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/accountLinks:create" + body: "*" + }; + option (google.api.method_signature) = "customer_id,account_link"; + } + + // Creates or removes an account link. + // From V5, create is not supported through + // AccountLinkService.MutateAccountLink. Please use + // AccountLinkService.CreateAccountLink instead. + rpc MutateAccountLink(MutateAccountLinkRequest) returns (MutateAccountLinkResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/accountLinks:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operation"; + } +} + +// Request message for [AccountLinkService.GetAccountLink][google.ads.googleads.v6.services.AccountLinkService.GetAccountLink]. +message GetAccountLinkRequest { + // Required. Resource name of the account link. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AccountLink" + } + ]; +} + +// Request message for +// [AccountLinkService.CreateAccountLink][google.ads.googleads.v6.services.AccountLinkService.CreateAccountLink]. +message CreateAccountLinkRequest { + // Required. The ID of the customer for which the account link is created. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The account link to be created. + google.ads.googleads.v6.resources.AccountLink account_link = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for +// [AccountLinkService.CreateAccountLink][google.ads.googleads.v6.services.AccountLinkService.CreateAccountLink]. +message CreateAccountLinkResponse { + // Returned for successful operations. Resource name of the account link. + string resource_name = 1; +} + +// Request message for [AccountLinkService.MutateAccountLink][google.ads.googleads.v6.services.AccountLinkService.MutateAccountLink]. +message MutateAccountLinkRequest { + // Required. The ID of the customer being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The operation to perform on the link. + AccountLinkOperation operation = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 3; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; +} + +// A single update on an account link. +message AccountLinkOperation { + // FieldMask that determines which resource fields are modified in an update. + google.protobuf.FieldMask update_mask = 4; + + // The operation to perform. + oneof operation { + // Update operation: The account link is expected to have + // a valid resource name. + google.ads.googleads.v6.resources.AccountLink update = 2; + + // Remove operation: A resource name for the account link to remove is + // expected, in this format: + // + // `customers/{customer_id}/accountLinks/{account_link_id}` + string remove = 3; + } +} + +// Response message for account link mutate. +message MutateAccountLinkResponse { + // Result for the mutate. + MutateAccountLinkResult result = 1; +} + +// The result for the account link mutate. +message MutateAccountLinkResult { + // Returned for successful operations. + string resource_name = 1; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/ad_group_ad_asset_view_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/ad_group_ad_asset_view_service.proto new file mode 100644 index 000000000..49102541c --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/ad_group_ad_asset_view_service.proto @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/ad_group_ad_asset_view.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "AdGroupAdAssetViewServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the ad group ad asset view service. + +// Service to fetch ad group ad asset views. +service AdGroupAdAssetViewService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested ad group ad asset view in full detail. + rpc GetAdGroupAdAssetView(GetAdGroupAdAssetViewRequest) returns (google.ads.googleads.v6.resources.AdGroupAdAssetView) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/adGroupAdAssetViews/*}" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for [AdGroupAdAssetViewService.GetAdGroupAdAssetView][google.ads.googleads.v6.services.AdGroupAdAssetViewService.GetAdGroupAdAssetView]. +message GetAdGroupAdAssetViewRequest { + // Required. The resource name of the ad group ad asset view to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroupAdAssetView" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/ad_group_ad_label_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/ad_group_ad_label_service.proto new file mode 100644 index 000000000..6931a94ce --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/ad_group_ad_label_service.proto @@ -0,0 +1,124 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/ad_group_ad_label.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "AdGroupAdLabelServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Ad Group Ad Label service. + +// Service to manage labels on ad group ads. +service AdGroupAdLabelService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested ad group ad label in full detail. + rpc GetAdGroupAdLabel(GetAdGroupAdLabelRequest) returns (google.ads.googleads.v6.resources.AdGroupAdLabel) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/adGroupAdLabels/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates and removes ad group ad labels. + // Operation statuses are returned. + rpc MutateAdGroupAdLabels(MutateAdGroupAdLabelsRequest) returns (MutateAdGroupAdLabelsResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/adGroupAdLabels:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } +} + +// Request message for [AdGroupAdLabelService.GetAdGroupAdLabel][google.ads.googleads.v6.services.AdGroupAdLabelService.GetAdGroupAdLabel]. +message GetAdGroupAdLabelRequest { + // Required. The resource name of the ad group ad label to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroupAdLabel" + } + ]; +} + +// Request message for [AdGroupAdLabelService.MutateAdGroupAdLabels][google.ads.googleads.v6.services.AdGroupAdLabelService.MutateAdGroupAdLabels]. +message MutateAdGroupAdLabelsRequest { + // Required. ID of the customer whose ad group ad labels are being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on ad group ad labels. + repeated AdGroupAdLabelOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 3; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; +} + +// A single operation (create, remove) on an ad group ad label. +message AdGroupAdLabelOperation { + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new ad group ad + // label. + google.ads.googleads.v6.resources.AdGroupAdLabel create = 1; + + // Remove operation: A resource name for the ad group ad label + // being removed, in this format: + // + // `customers/{customer_id}/adGroupAdLabels/{ad_group_id}~{ad_id} + // _{label_id}` + string remove = 2; + } +} + +// Response message for an ad group ad labels mutate. +message MutateAdGroupAdLabelsResponse { + // Errors that pertain to operation failures in the partial failure mode. + // Returned only when partial_failure = true and all errors occur inside the + // operations. If any errors occur outside the operations (e.g. auth errors), + // we return an RPC level error. + google.rpc.Status partial_failure_error = 3; + + // All results for the mutate. + repeated MutateAdGroupAdLabelResult results = 2; +} + +// The result for an ad group ad label mutate. +message MutateAdGroupAdLabelResult { + // Returned for successful operations. + string resource_name = 1; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/ad_group_ad_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/ad_group_ad_service.proto new file mode 100644 index 000000000..7e137c3fe --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/ad_group_ad_service.proto @@ -0,0 +1,142 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/common/policy.proto"; +import "google/ads/googleads/v6/enums/response_content_type.proto"; +import "google/ads/googleads/v6/resources/ad_group_ad.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "AdGroupAdServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Ad Group Ad service. + +// Service to manage ads in an ad group. +service AdGroupAdService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested ad in full detail. + rpc GetAdGroupAd(GetAdGroupAdRequest) returns (google.ads.googleads.v6.resources.AdGroupAd) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/adGroupAds/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates, updates, or removes ads. Operation statuses are returned. + rpc MutateAdGroupAds(MutateAdGroupAdsRequest) returns (MutateAdGroupAdsResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/adGroupAds:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } +} + +// Request message for [AdGroupAdService.GetAdGroupAd][google.ads.googleads.v6.services.AdGroupAdService.GetAdGroupAd]. +message GetAdGroupAdRequest { + // Required. The resource name of the ad to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroupAd" + } + ]; +} + +// Request message for [AdGroupAdService.MutateAdGroupAds][google.ads.googleads.v6.services.AdGroupAdService.MutateAdGroupAds]. +message MutateAdGroupAdsRequest { + // Required. The ID of the customer whose ads are being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on individual ads. + repeated AdGroupAdOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 3; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; + + // The response content type setting. Determines whether the mutable resource + // or just the resource name should be returned post mutation. + google.ads.googleads.v6.enums.ResponseContentTypeEnum.ResponseContentType response_content_type = 5; +} + +// A single operation (create, update, remove) on an ad group ad. +message AdGroupAdOperation { + // FieldMask that determines which resource fields are modified in an update. + google.protobuf.FieldMask update_mask = 4; + + // Configuration for how policies are validated. + google.ads.googleads.v6.common.PolicyValidationParameter policy_validation_parameter = 5; + + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new ad. + google.ads.googleads.v6.resources.AdGroupAd create = 1; + + // Update operation: The ad is expected to have a valid resource name. + google.ads.googleads.v6.resources.AdGroupAd update = 2; + + // Remove operation: A resource name for the removed ad is expected, + // in this format: + // + // `customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}` + string remove = 3; + } +} + +// Response message for an ad group ad mutate. +message MutateAdGroupAdsResponse { + // Errors that pertain to operation failures in the partial failure mode. + // Returned only when partial_failure = true and all errors occur inside the + // operations. If any errors occur outside the operations (e.g. auth errors), + // we return an RPC level error. + google.rpc.Status partial_failure_error = 3; + + // All results for the mutate. + repeated MutateAdGroupAdResult results = 2; +} + +// The result for the ad mutate. +message MutateAdGroupAdResult { + // The resource name returned for successful operations. + string resource_name = 1; + + // The mutated ad group ad with only mutable fields after mutate. The field + // will only be returned when response_content_type is set to + // "MUTABLE_RESOURCE". + google.ads.googleads.v6.resources.AdGroupAd ad_group_ad = 2; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/ad_group_audience_view_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/ad_group_audience_view_service.proto new file mode 100644 index 000000000..59961b8ae --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/ad_group_audience_view_service.proto @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/ad_group_audience_view.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "AdGroupAudienceViewServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the AdGroup Audience View service. + +// Service to manage ad group audience views. +service AdGroupAudienceViewService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested ad group audience view in full detail. + rpc GetAdGroupAudienceView(GetAdGroupAudienceViewRequest) returns (google.ads.googleads.v6.resources.AdGroupAudienceView) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/adGroupAudienceViews/*}" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for [AdGroupAudienceViewService.GetAdGroupAudienceView][google.ads.googleads.v6.services.AdGroupAudienceViewService.GetAdGroupAudienceView]. +message GetAdGroupAudienceViewRequest { + // Required. The resource name of the ad group audience view to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroupAudienceView" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/ad_group_bid_modifier_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/ad_group_bid_modifier_service.proto new file mode 100644 index 000000000..9d2439ff9 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/ad_group_bid_modifier_service.proto @@ -0,0 +1,141 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/enums/response_content_type.proto"; +import "google/ads/googleads/v6/resources/ad_group_bid_modifier.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "AdGroupBidModifierServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Ad Group Bid Modifier service. + +// Service to manage ad group bid modifiers. +service AdGroupBidModifierService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested ad group bid modifier in full detail. + rpc GetAdGroupBidModifier(GetAdGroupBidModifierRequest) returns (google.ads.googleads.v6.resources.AdGroupBidModifier) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/adGroupBidModifiers/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates, updates, or removes ad group bid modifiers. + // Operation statuses are returned. + rpc MutateAdGroupBidModifiers(MutateAdGroupBidModifiersRequest) returns (MutateAdGroupBidModifiersResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/adGroupBidModifiers:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } +} + +// Request message for [AdGroupBidModifierService.GetAdGroupBidModifier][google.ads.googleads.v6.services.AdGroupBidModifierService.GetAdGroupBidModifier]. +message GetAdGroupBidModifierRequest { + // Required. The resource name of the ad group bid modifier to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroupBidModifier" + } + ]; +} + +// Request message for [AdGroupBidModifierService.MutateAdGroupBidModifiers][google.ads.googleads.v6.services.AdGroupBidModifierService.MutateAdGroupBidModifiers]. +message MutateAdGroupBidModifiersRequest { + // Required. ID of the customer whose ad group bid modifiers are being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on individual ad group bid modifiers. + repeated AdGroupBidModifierOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 3; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; + + // The response content type setting. Determines whether the mutable resource + // or just the resource name should be returned post mutation. + google.ads.googleads.v6.enums.ResponseContentTypeEnum.ResponseContentType response_content_type = 5; +} + +// A single operation (create, remove, update) on an ad group bid modifier. +message AdGroupBidModifierOperation { + // FieldMask that determines which resource fields are modified in an update. + google.protobuf.FieldMask update_mask = 4; + + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new ad group bid + // modifier. + google.ads.googleads.v6.resources.AdGroupBidModifier create = 1; + + // Update operation: The ad group bid modifier is expected to have a valid + // resource name. + google.ads.googleads.v6.resources.AdGroupBidModifier update = 2; + + // Remove operation: A resource name for the removed ad group bid modifier + // is expected, in this format: + // + // `customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}` + string remove = 3; + } +} + +// Response message for ad group bid modifiers mutate. +message MutateAdGroupBidModifiersResponse { + // Errors that pertain to operation failures in the partial failure mode. + // Returned only when partial_failure = true and all errors occur inside the + // operations. If any errors occur outside the operations (e.g. auth errors), + // we return an RPC level error. + google.rpc.Status partial_failure_error = 3; + + // All results for the mutate. + repeated MutateAdGroupBidModifierResult results = 2; +} + +// The result for the criterion mutate. +message MutateAdGroupBidModifierResult { + // Returned for successful operations. + string resource_name = 1; + + // The mutated ad group bid modifier with only mutable fields after mutate. + // The field will only be returned when response_content_type is set to + // "MUTABLE_RESOURCE". + google.ads.googleads.v6.resources.AdGroupBidModifier ad_group_bid_modifier = 2; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/ad_group_criterion_label_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/ad_group_criterion_label_service.proto new file mode 100644 index 000000000..c9faa4543 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/ad_group_criterion_label_service.proto @@ -0,0 +1,125 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/ad_group_criterion_label.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "AdGroupCriterionLabelServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Ad Group Criterion Label service. + +// Service to manage labels on ad group criteria. +service AdGroupCriterionLabelService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested ad group criterion label in full detail. + rpc GetAdGroupCriterionLabel(GetAdGroupCriterionLabelRequest) returns (google.ads.googleads.v6.resources.AdGroupCriterionLabel) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/adGroupCriterionLabels/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates and removes ad group criterion labels. + // Operation statuses are returned. + rpc MutateAdGroupCriterionLabels(MutateAdGroupCriterionLabelsRequest) returns (MutateAdGroupCriterionLabelsResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/adGroupCriterionLabels:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } +} + +// Request message for +// [AdGroupCriterionLabelService.GetAdGroupCriterionLabel][google.ads.googleads.v6.services.AdGroupCriterionLabelService.GetAdGroupCriterionLabel]. +message GetAdGroupCriterionLabelRequest { + // Required. The resource name of the ad group criterion label to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroupCriterionLabel" + } + ]; +} + +// Request message for +// [AdGroupCriterionLabelService.MutateAdGroupCriterionLabels][google.ads.googleads.v6.services.AdGroupCriterionLabelService.MutateAdGroupCriterionLabels]. +message MutateAdGroupCriterionLabelsRequest { + // Required. ID of the customer whose ad group criterion labels are being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on ad group criterion labels. + repeated AdGroupCriterionLabelOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 3; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; +} + +// A single operation (create, remove) on an ad group criterion label. +message AdGroupCriterionLabelOperation { + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new ad group + // label. + google.ads.googleads.v6.resources.AdGroupCriterionLabel create = 1; + + // Remove operation: A resource name for the ad group criterion label + // being removed, in this format: + // + // `customers/{customer_id}/adGroupCriterionLabels/{ad_group_id}~{criterion_id}~{label_id}` + string remove = 2; + } +} + +// Response message for an ad group criterion labels mutate. +message MutateAdGroupCriterionLabelsResponse { + // Errors that pertain to operation failures in the partial failure mode. + // Returned only when partial_failure = true and all errors occur inside the + // operations. If any errors occur outside the operations (e.g. auth errors), + // we return an RPC level error. + google.rpc.Status partial_failure_error = 3; + + // All results for the mutate. + repeated MutateAdGroupCriterionLabelResult results = 2; +} + +// The result for an ad group criterion label mutate. +message MutateAdGroupCriterionLabelResult { + // Returned for successful operations. + string resource_name = 1; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/ad_group_criterion_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/ad_group_criterion_service.proto new file mode 100644 index 000000000..ad990adef --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/ad_group_criterion_service.proto @@ -0,0 +1,151 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/common/policy.proto"; +import "google/ads/googleads/v6/enums/response_content_type.proto"; +import "google/ads/googleads/v6/resources/ad_group_criterion.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "AdGroupCriterionServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Ad Group Criterion service. + +// Service to manage ad group criteria. +service AdGroupCriterionService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested criterion in full detail. + rpc GetAdGroupCriterion(GetAdGroupCriterionRequest) returns (google.ads.googleads.v6.resources.AdGroupCriterion) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/adGroupCriteria/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates, updates, or removes criteria. Operation statuses are returned. + rpc MutateAdGroupCriteria(MutateAdGroupCriteriaRequest) returns (MutateAdGroupCriteriaResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/adGroupCriteria:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } +} + +// Request message for [AdGroupCriterionService.GetAdGroupCriterion][google.ads.googleads.v6.services.AdGroupCriterionService.GetAdGroupCriterion]. +message GetAdGroupCriterionRequest { + // Required. The resource name of the criterion to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroupCriterion" + } + ]; +} + +// Request message for [AdGroupCriterionService.MutateAdGroupCriteria][google.ads.googleads.v6.services.AdGroupCriterionService.MutateAdGroupCriteria]. +message MutateAdGroupCriteriaRequest { + // Required. ID of the customer whose criteria are being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on individual criteria. + repeated AdGroupCriterionOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 3; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; + + // The response content type setting. Determines whether the mutable resource + // or just the resource name should be returned post mutation. + google.ads.googleads.v6.enums.ResponseContentTypeEnum.ResponseContentType response_content_type = 5; +} + +// A single operation (create, remove, update) on an ad group criterion. +message AdGroupCriterionOperation { + // FieldMask that determines which resource fields are modified in an update. + google.protobuf.FieldMask update_mask = 4; + + // The list of policy violation keys that should not cause a + // PolicyViolationError to be reported. Not all policy violations are + // exemptable, please refer to the is_exemptible field in the returned + // PolicyViolationError. + // + // Resources violating these polices will be saved, but will not be eligible + // to serve. They may begin serving at a later time due to a change in + // policies, re-review of the resource, or a change in advertiser + // certificates. + repeated google.ads.googleads.v6.common.PolicyViolationKey exempt_policy_violation_keys = 5; + + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new criterion. + google.ads.googleads.v6.resources.AdGroupCriterion create = 1; + + // Update operation: The criterion is expected to have a valid resource + // name. + google.ads.googleads.v6.resources.AdGroupCriterion update = 2; + + // Remove operation: A resource name for the removed criterion is expected, + // in this format: + // + // `customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}` + string remove = 3; + } +} + +// Response message for an ad group criterion mutate. +message MutateAdGroupCriteriaResponse { + // Errors that pertain to operation failures in the partial failure mode. + // Returned only when partial_failure = true and all errors occur inside the + // operations. If any errors occur outside the operations (e.g. auth errors), + // we return an RPC level error. + google.rpc.Status partial_failure_error = 3; + + // All results for the mutate. + repeated MutateAdGroupCriterionResult results = 2; +} + +// The result for the criterion mutate. +message MutateAdGroupCriterionResult { + // Returned for successful operations. + string resource_name = 1; + + // The mutated ad group criterion with only mutable fields after mutate. The + // field will only be returned when response_content_type is set to + // "MUTABLE_RESOURCE". + google.ads.googleads.v6.resources.AdGroupCriterion ad_group_criterion = 2; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/ad_group_criterion_simulation_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/ad_group_criterion_simulation_service.proto new file mode 100644 index 000000000..c107f1ec0 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/ad_group_criterion_simulation_service.proto @@ -0,0 +1,60 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/ad_group_criterion_simulation.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "AdGroupCriterionSimulationServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the AdGroupCriterionSimulation service. + +// Service to fetch ad group criterion simulations. +service AdGroupCriterionSimulationService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested ad group criterion simulation in full detail. + rpc GetAdGroupCriterionSimulation(GetAdGroupCriterionSimulationRequest) returns (google.ads.googleads.v6.resources.AdGroupCriterionSimulation) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/adGroupCriterionSimulations/*}" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for +// [AdGroupCriterionSimulationService.GetAdGroupCriterionSimulation][google.ads.googleads.v6.services.AdGroupCriterionSimulationService.GetAdGroupCriterionSimulation]. +message GetAdGroupCriterionSimulationRequest { + // Required. The resource name of the ad group criterion simulation to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroupCriterionSimulation" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/ad_group_extension_setting_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/ad_group_extension_setting_service.proto new file mode 100644 index 000000000..9296a792b --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/ad_group_extension_setting_service.proto @@ -0,0 +1,145 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/enums/response_content_type.proto"; +import "google/ads/googleads/v6/resources/ad_group_extension_setting.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "AdGroupExtensionSettingServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the AdGroupExtensionSetting service. + +// Service to manage ad group extension settings. +service AdGroupExtensionSettingService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested ad group extension setting in full detail. + rpc GetAdGroupExtensionSetting(GetAdGroupExtensionSettingRequest) returns (google.ads.googleads.v6.resources.AdGroupExtensionSetting) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/adGroupExtensionSettings/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates, updates, or removes ad group extension settings. Operation + // statuses are returned. + rpc MutateAdGroupExtensionSettings(MutateAdGroupExtensionSettingsRequest) returns (MutateAdGroupExtensionSettingsResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/adGroupExtensionSettings:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } +} + +// Request message for +// [AdGroupExtensionSettingService.GetAdGroupExtensionSetting][google.ads.googleads.v6.services.AdGroupExtensionSettingService.GetAdGroupExtensionSetting]. +message GetAdGroupExtensionSettingRequest { + // Required. The resource name of the ad group extension setting to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroupExtensionSetting" + } + ]; +} + +// Request message for +// [AdGroupExtensionSettingService.MutateAdGroupExtensionSettings][google.ads.googleads.v6.services.AdGroupExtensionSettingService.MutateAdGroupExtensionSettings]. +message MutateAdGroupExtensionSettingsRequest { + // Required. The ID of the customer whose ad group extension settings are being + // modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on individual ad group extension + // settings. + repeated AdGroupExtensionSettingOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 3; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; +} + +// A single operation (create, update, remove) on an ad group extension setting. +message AdGroupExtensionSettingOperation { + // FieldMask that determines which resource fields are modified in an update. + google.protobuf.FieldMask update_mask = 4; + + // The response content type setting. Determines whether the mutable resource + // or just the resource name should be returned post mutation. + google.ads.googleads.v6.enums.ResponseContentTypeEnum.ResponseContentType response_content_type = 5; + + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new ad group + // extension setting. + google.ads.googleads.v6.resources.AdGroupExtensionSetting create = 1; + + // Update operation: The ad group extension setting is expected to have a + // valid resource name. + google.ads.googleads.v6.resources.AdGroupExtensionSetting update = 2; + + // Remove operation: A resource name for the removed ad group extension + // setting is expected, in this format: + // + // `customers/{customer_id}/adGroupExtensionSettings/{ad_group_id}~{extension_type}` + string remove = 3; + } +} + +// Response message for an ad group extension setting mutate. +message MutateAdGroupExtensionSettingsResponse { + // Errors that pertain to operation failures in the partial failure mode. + // Returned only when partial_failure = true and all errors occur inside the + // operations. If any errors occur outside the operations (e.g. auth errors), + // we return an RPC level error. + google.rpc.Status partial_failure_error = 3; + + // All results for the mutate. + repeated MutateAdGroupExtensionSettingResult results = 2; +} + +// The result for the ad group extension setting mutate. +message MutateAdGroupExtensionSettingResult { + // Returned for successful operations. + string resource_name = 1; + + // The mutated AdGroupExtensionSetting with only mutable fields after mutate. + // The field will only be returned when response_content_type is set to + // "MUTABLE_RESOURCE". + google.ads.googleads.v6.resources.AdGroupExtensionSetting ad_group_extension_setting = 2; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/ad_group_feed_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/ad_group_feed_service.proto new file mode 100644 index 000000000..e4f22317c --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/ad_group_feed_service.proto @@ -0,0 +1,140 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/enums/response_content_type.proto"; +import "google/ads/googleads/v6/resources/ad_group_feed.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "AdGroupFeedServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the AdGroupFeed service. + +// Service to manage ad group feeds. +service AdGroupFeedService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested ad group feed in full detail. + rpc GetAdGroupFeed(GetAdGroupFeedRequest) returns (google.ads.googleads.v6.resources.AdGroupFeed) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/adGroupFeeds/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates, updates, or removes ad group feeds. Operation statuses are + // returned. + rpc MutateAdGroupFeeds(MutateAdGroupFeedsRequest) returns (MutateAdGroupFeedsResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/adGroupFeeds:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } +} + +// Request message for [AdGroupFeedService.GetAdGroupFeed][google.ads.googleads.v6.services.AdGroupFeedService.GetAdGroupFeed]. +message GetAdGroupFeedRequest { + // Required. The resource name of the ad group feed to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroupFeed" + } + ]; +} + +// Request message for [AdGroupFeedService.MutateAdGroupFeeds][google.ads.googleads.v6.services.AdGroupFeedService.MutateAdGroupFeeds]. +message MutateAdGroupFeedsRequest { + // Required. The ID of the customer whose ad group feeds are being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on individual ad group feeds. + repeated AdGroupFeedOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 3; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; + + // The response content type setting. Determines whether the mutable resource + // or just the resource name should be returned post mutation. + google.ads.googleads.v6.enums.ResponseContentTypeEnum.ResponseContentType response_content_type = 5; +} + +// A single operation (create, update, remove) on an ad group feed. +message AdGroupFeedOperation { + // FieldMask that determines which resource fields are modified in an update. + google.protobuf.FieldMask update_mask = 4; + + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new ad group feed. + google.ads.googleads.v6.resources.AdGroupFeed create = 1; + + // Update operation: The ad group feed is expected to have a valid resource + // name. + google.ads.googleads.v6.resources.AdGroupFeed update = 2; + + // Remove operation: A resource name for the removed ad group feed is + // expected, in this format: + // + // `customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_id}` + string remove = 3; + } +} + +// Response message for an ad group feed mutate. +message MutateAdGroupFeedsResponse { + // Errors that pertain to operation failures in the partial failure mode. + // Returned only when partial_failure = true and all errors occur inside the + // operations. If any errors occur outside the operations (e.g. auth errors), + // we return an RPC level error. + google.rpc.Status partial_failure_error = 3; + + // All results for the mutate. + repeated MutateAdGroupFeedResult results = 2; +} + +// The result for the ad group feed mutate. +message MutateAdGroupFeedResult { + // Returned for successful operations. + string resource_name = 1; + + // The mutated ad group feed with only mutable fields after mutate. The field + // will only be returned when response_content_type is set to + // "MUTABLE_RESOURCE". + google.ads.googleads.v6.resources.AdGroupFeed ad_group_feed = 2; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/ad_group_label_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/ad_group_label_service.proto new file mode 100644 index 000000000..f18ba8c81 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/ad_group_label_service.proto @@ -0,0 +1,123 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/ad_group_label.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "AdGroupLabelServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Ad Group Label service. + +// Service to manage labels on ad groups. +service AdGroupLabelService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested ad group label in full detail. + rpc GetAdGroupLabel(GetAdGroupLabelRequest) returns (google.ads.googleads.v6.resources.AdGroupLabel) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/adGroupLabels/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates and removes ad group labels. + // Operation statuses are returned. + rpc MutateAdGroupLabels(MutateAdGroupLabelsRequest) returns (MutateAdGroupLabelsResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/adGroupLabels:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } +} + +// Request message for [AdGroupLabelService.GetAdGroupLabel][google.ads.googleads.v6.services.AdGroupLabelService.GetAdGroupLabel]. +message GetAdGroupLabelRequest { + // Required. The resource name of the ad group label to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroupLabel" + } + ]; +} + +// Request message for [AdGroupLabelService.MutateAdGroupLabels][google.ads.googleads.v6.services.AdGroupLabelService.MutateAdGroupLabels]. +message MutateAdGroupLabelsRequest { + // Required. ID of the customer whose ad group labels are being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on ad group labels. + repeated AdGroupLabelOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 3; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; +} + +// A single operation (create, remove) on an ad group label. +message AdGroupLabelOperation { + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new ad group + // label. + google.ads.googleads.v6.resources.AdGroupLabel create = 1; + + // Remove operation: A resource name for the ad group label + // being removed, in this format: + // + // `customers/{customer_id}/adGroupLabels/{ad_group_id}~{label_id}` + string remove = 2; + } +} + +// Response message for an ad group labels mutate. +message MutateAdGroupLabelsResponse { + // Errors that pertain to operation failures in the partial failure mode. + // Returned only when partial_failure = true and all errors occur inside the + // operations. If any errors occur outside the operations (e.g. auth errors), + // we return an RPC level error. + google.rpc.Status partial_failure_error = 3; + + // All results for the mutate. + repeated MutateAdGroupLabelResult results = 2; +} + +// The result for an ad group label mutate. +message MutateAdGroupLabelResult { + // Returned for successful operations. + string resource_name = 1; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/ad_group_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/ad_group_service.proto new file mode 100644 index 000000000..5dabb90ac --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/ad_group_service.proto @@ -0,0 +1,137 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/enums/response_content_type.proto"; +import "google/ads/googleads/v6/resources/ad_group.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "AdGroupServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Ad Group service. + +// Service to manage ad groups. +service AdGroupService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested ad group in full detail. + rpc GetAdGroup(GetAdGroupRequest) returns (google.ads.googleads.v6.resources.AdGroup) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/adGroups/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates, updates, or removes ad groups. Operation statuses are returned. + rpc MutateAdGroups(MutateAdGroupsRequest) returns (MutateAdGroupsResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/adGroups:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } +} + +// Request message for [AdGroupService.GetAdGroup][google.ads.googleads.v6.services.AdGroupService.GetAdGroup]. +message GetAdGroupRequest { + // Required. The resource name of the ad group to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroup" + } + ]; +} + +// Request message for [AdGroupService.MutateAdGroups][google.ads.googleads.v6.services.AdGroupService.MutateAdGroups]. +message MutateAdGroupsRequest { + // Required. The ID of the customer whose ad groups are being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on individual ad groups. + repeated AdGroupOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 3; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; + + // The response content type setting. Determines whether the mutable resource + // or just the resource name should be returned post mutation. + google.ads.googleads.v6.enums.ResponseContentTypeEnum.ResponseContentType response_content_type = 5; +} + +// A single operation (create, update, remove) on an ad group. +message AdGroupOperation { + // FieldMask that determines which resource fields are modified in an update. + google.protobuf.FieldMask update_mask = 4; + + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new ad group. + google.ads.googleads.v6.resources.AdGroup create = 1; + + // Update operation: The ad group is expected to have a valid resource name. + google.ads.googleads.v6.resources.AdGroup update = 2; + + // Remove operation: A resource name for the removed ad group is expected, + // in this format: + // + // `customers/{customer_id}/adGroups/{ad_group_id}` + string remove = 3; + } +} + +// Response message for an ad group mutate. +message MutateAdGroupsResponse { + // Errors that pertain to operation failures in the partial failure mode. + // Returned only when partial_failure = true and all errors occur inside the + // operations. If any errors occur outside the operations (e.g. auth errors), + // we return an RPC level error. + google.rpc.Status partial_failure_error = 3; + + // All results for the mutate. + repeated MutateAdGroupResult results = 2; +} + +// The result for the ad group mutate. +message MutateAdGroupResult { + // Returned for successful operations. + string resource_name = 1; + + // The mutated ad group with only mutable fields after mutate. The field will + // only be returned when response_content_type is set to "MUTABLE_RESOURCE". + google.ads.googleads.v6.resources.AdGroup ad_group = 2; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/ad_group_simulation_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/ad_group_simulation_service.proto new file mode 100644 index 000000000..80dbeb171 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/ad_group_simulation_service.proto @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/ad_group_simulation.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "AdGroupSimulationServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the AdGroupSimulation service. + +// Service to fetch ad group simulations. +service AdGroupSimulationService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested ad group simulation in full detail. + rpc GetAdGroupSimulation(GetAdGroupSimulationRequest) returns (google.ads.googleads.v6.resources.AdGroupSimulation) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/adGroupSimulations/*}" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for [AdGroupSimulationService.GetAdGroupSimulation][google.ads.googleads.v6.services.AdGroupSimulationService.GetAdGroupSimulation]. +message GetAdGroupSimulationRequest { + // Required. The resource name of the ad group simulation to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdGroupSimulation" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/ad_parameter_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/ad_parameter_service.proto new file mode 100644 index 000000000..37b0fb211 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/ad_parameter_service.proto @@ -0,0 +1,140 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/enums/response_content_type.proto"; +import "google/ads/googleads/v6/resources/ad_parameter.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "AdParameterServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Ad Parameter service. + +// Service to manage ad parameters. +service AdParameterService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested ad parameter in full detail. + rpc GetAdParameter(GetAdParameterRequest) returns (google.ads.googleads.v6.resources.AdParameter) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/adParameters/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates, updates, or removes ad parameters. Operation statuses are + // returned. + rpc MutateAdParameters(MutateAdParametersRequest) returns (MutateAdParametersResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/adParameters:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } +} + +// Request message for [AdParameterService.GetAdParameter][google.ads.googleads.v6.services.AdParameterService.GetAdParameter] +message GetAdParameterRequest { + // Required. The resource name of the ad parameter to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdParameter" + } + ]; +} + +// Request message for [AdParameterService.MutateAdParameters][google.ads.googleads.v6.services.AdParameterService.MutateAdParameters] +message MutateAdParametersRequest { + // Required. The ID of the customer whose ad parameters are being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on individual ad parameters. + repeated AdParameterOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 3; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; + + // The response content type setting. Determines whether the mutable resource + // or just the resource name should be returned post mutation. + google.ads.googleads.v6.enums.ResponseContentTypeEnum.ResponseContentType response_content_type = 5; +} + +// A single operation (create, update, remove) on ad parameter. +message AdParameterOperation { + // FieldMask that determines which resource fields are modified in an update. + google.protobuf.FieldMask update_mask = 4; + + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new ad parameter. + google.ads.googleads.v6.resources.AdParameter create = 1; + + // Update operation: The ad parameter is expected to have a valid resource + // name. + google.ads.googleads.v6.resources.AdParameter update = 2; + + // Remove operation: A resource name for the ad parameter to remove is + // expected in this format: + // + // `customers/{customer_id}/adParameters/{ad_group_id}~{criterion_id}~{parameter_index}` + string remove = 3; + } +} + +// Response message for an ad parameter mutate. +message MutateAdParametersResponse { + // Errors that pertain to operation failures in the partial failure mode. + // Returned only when partial_failure = true and all errors occur inside the + // operations. If any errors occur outside the operations (e.g. auth errors), + // we return an RPC level error. + google.rpc.Status partial_failure_error = 3; + + // All results for the mutate. + repeated MutateAdParameterResult results = 2; +} + +// The result for the ad parameter mutate. +message MutateAdParameterResult { + // The resource name returned for successful operations. + string resource_name = 1; + + // The mutated AdParameter with only mutable fields after mutate. The field + // will only be returned when response_content_type is set to + // "MUTABLE_RESOURCE". + google.ads.googleads.v6.resources.AdParameter ad_parameter = 2; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/ad_schedule_view_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/ad_schedule_view_service.proto new file mode 100644 index 000000000..f35de254b --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/ad_schedule_view_service.proto @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/ad_schedule_view.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "AdScheduleViewServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the AdSchedule View service. + +// Service to fetch ad schedule views. +service AdScheduleViewService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested ad schedule view in full detail. + rpc GetAdScheduleView(GetAdScheduleViewRequest) returns (google.ads.googleads.v6.resources.AdScheduleView) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/adScheduleViews/*}" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for [AdScheduleViewService.GetAdScheduleView][google.ads.googleads.v6.services.AdScheduleViewService.GetAdScheduleView]. +message GetAdScheduleViewRequest { + // Required. The resource name of the ad schedule view to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AdScheduleView" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/ad_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/ad_service.proto new file mode 100644 index 000000000..3212cb5aa --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/ad_service.proto @@ -0,0 +1,119 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/common/policy.proto"; +import "google/ads/googleads/v6/enums/response_content_type.proto"; +import "google/ads/googleads/v6/resources/ad.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "AdServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Ad service. + +// Service to manage ads. +service AdService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested ad in full detail. + rpc GetAd(GetAdRequest) returns (google.ads.googleads.v6.resources.Ad) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/ads/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Updates ads. Operation statuses are returned. Updating ads is not supported + // for TextAd, ExpandedDynamicSearchAd, GmailAd and ImageAd. + rpc MutateAds(MutateAdsRequest) returns (MutateAdsResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/ads:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } +} + +// Request message for [AdService.GetAd][google.ads.googleads.v6.services.AdService.GetAd]. +message GetAdRequest { + // Required. The resource name of the ad to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Ad" + } + ]; +} + +// Request message for [AdService.MutateAds][google.ads.googleads.v6.services.AdService.MutateAds]. +message MutateAdsRequest { + // Required. The ID of the customer whose ads are being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on individual ads. + repeated AdOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // The response content type setting. Determines whether the mutable resource + // or just the resource name should be returned post mutation. + google.ads.googleads.v6.enums.ResponseContentTypeEnum.ResponseContentType response_content_type = 5; +} + +// A single update operation on an ad. +message AdOperation { + // FieldMask that determines which resource fields are modified in an update. + google.protobuf.FieldMask update_mask = 2; + + // Configuration for how policies are validated. + google.ads.googleads.v6.common.PolicyValidationParameter policy_validation_parameter = 3; + + // The mutate operation. + oneof operation { + // Update operation: The ad is expected to have a valid resource name + // in this format: + // + // `customers/{customer_id}/ads/{ad_id}` + google.ads.googleads.v6.resources.Ad update = 1; + } +} + +// Response message for an ad mutate. +message MutateAdsResponse { + // All results for the mutate. + repeated MutateAdResult results = 2; +} + +// The result for the ad mutate. +message MutateAdResult { + // The resource name returned for successful operations. + string resource_name = 1; + + // The mutated ad with only mutable fields after mutate. The field will only + // be returned when response_content_type is set to "MUTABLE_RESOURCE". + google.ads.googleads.v6.resources.Ad ad = 2; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/age_range_view_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/age_range_view_service.proto new file mode 100644 index 000000000..3fbe7a46a --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/age_range_view_service.proto @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/age_range_view.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "AgeRangeViewServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Age Range View service. + +// Service to manage age range views. +service AgeRangeViewService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested age range view in full detail. + rpc GetAgeRangeView(GetAgeRangeViewRequest) returns (google.ads.googleads.v6.resources.AgeRangeView) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/ageRangeViews/*}" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for [AgeRangeViewService.GetAgeRangeView][google.ads.googleads.v6.services.AgeRangeViewService.GetAgeRangeView]. +message GetAgeRangeViewRequest { + // Required. The resource name of the age range view to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/AgeRangeView" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/asset_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/asset_service.proto new file mode 100644 index 000000000..51538e729 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/asset_service.proto @@ -0,0 +1,121 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/enums/response_content_type.proto"; +import "google/ads/googleads/v6/resources/asset.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "AssetServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Asset service. + +// Service to manage assets. Asset types can be created with AssetService are +// YoutubeVideoAsset, MediaBundleAsset and ImageAsset. TextAsset should be +// created with Ad inline. +service AssetService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested asset in full detail. + rpc GetAsset(GetAssetRequest) returns (google.ads.googleads.v6.resources.Asset) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/assets/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates assets. Operation statuses are returned. + rpc MutateAssets(MutateAssetsRequest) returns (MutateAssetsResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/assets:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } +} + +// Request message for [AssetService.GetAsset][google.ads.googleads.v6.services.AssetService.GetAsset] +message GetAssetRequest { + // Required. The resource name of the asset to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Asset" + } + ]; +} + +// Request message for [AssetService.MutateAssets][google.ads.googleads.v6.services.AssetService.MutateAssets] +message MutateAssetsRequest { + // Required. The ID of the customer whose assets are being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on individual assets. + repeated AssetOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // The response content type setting. Determines whether the mutable resource + // or just the resource name should be returned post mutation. + google.ads.googleads.v6.enums.ResponseContentTypeEnum.ResponseContentType response_content_type = 3; +} + +// A single operation to create an asset. Supported asset types are +// YoutubeVideoAsset, MediaBundleAsset, ImageAsset, and LeadFormAsset. TextAsset +// should be created with Ad inline. +message AssetOperation { + // FieldMask that determines which resource fields are modified in an update. + google.protobuf.FieldMask update_mask = 3; + + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new asset. + google.ads.googleads.v6.resources.Asset create = 1; + + // Update operation: The asset is expected to have a valid resource name in + // this format: + // + // `customers/{customer_id}/assets/{asset_id}` + google.ads.googleads.v6.resources.Asset update = 2; + } +} + +// Response message for an asset mutate. +message MutateAssetsResponse { + // All results for the mutate. + repeated MutateAssetResult results = 2; +} + +// The result for the asset mutate. +message MutateAssetResult { + // The resource name returned for successful operations. + string resource_name = 1; + + // The mutated asset with only mutable fields after mutate. The field will + // only be returned when response_content_type is set to "MUTABLE_RESOURCE". + google.ads.googleads.v6.resources.Asset asset = 2; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/batch_job_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/batch_job_service.proto new file mode 100644 index 000000000..1182b5893 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/batch_job_service.proto @@ -0,0 +1,236 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/batch_job.proto"; +import "google/ads/googleads/v6/services/google_ads_service.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/longrunning/operations.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "BatchJobServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the BatchJobService. + +// Service to manage batch jobs. +service BatchJobService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Mutates a batch job. + rpc MutateBatchJob(MutateBatchJobRequest) returns (MutateBatchJobResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/batchJobs:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operation"; + } + + // Returns the batch job. + rpc GetBatchJob(GetBatchJobRequest) returns (google.ads.googleads.v6.resources.BatchJob) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/batchJobs/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Returns the results of the batch job. The job must be done. + // Supports standard list paging. + rpc ListBatchJobResults(ListBatchJobResultsRequest) returns (ListBatchJobResultsResponse) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/batchJobs/*}:listResults" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Runs the batch job. + // + // The Operation.metadata field type is BatchJobMetadata. When finished, the + // long running operation will not contain errors or a response. Instead, use + // ListBatchJobResults to get the results of the job. + rpc RunBatchJob(RunBatchJobRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v6/{resource_name=customers/*/batchJobs/*}:run" + body: "*" + }; + option (google.api.method_signature) = "resource_name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.ads.googleads.v6.resources.BatchJob.BatchJobMetadata" + }; + } + + // Add operations to the batch job. + rpc AddBatchJobOperations(AddBatchJobOperationsRequest) returns (AddBatchJobOperationsResponse) { + option (google.api.http) = { + post: "/v6/{resource_name=customers/*/batchJobs/*}:addOperations" + body: "*" + }; + option (google.api.method_signature) = "resource_name,sequence_token,mutate_operations"; + option (google.api.method_signature) = "resource_name,mutate_operations"; + } +} + +// Request message for [BatchJobService.MutateBatchJob][google.ads.googleads.v6.services.BatchJobService.MutateBatchJob]. +message MutateBatchJobRequest { + // Required. The ID of the customer for which to create a batch job. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The operation to perform on an individual batch job. + BatchJobOperation operation = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// A single operation on a batch job. +message BatchJobOperation { + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new batch job. + google.ads.googleads.v6.resources.BatchJob create = 1; + } +} + +// Response message for [BatchJobService.MutateBatchJob][google.ads.googleads.v6.services.BatchJobService.MutateBatchJob]. +message MutateBatchJobResponse { + // The result for the mutate. + MutateBatchJobResult result = 1; +} + +// The result for the batch job mutate. +message MutateBatchJobResult { + // The resource name of the batch job. + string resource_name = 1; +} + +// Request message for [BatchJobService.GetBatchJob][google.ads.googleads.v6.services.BatchJobService.GetBatchJob]. +message GetBatchJobRequest { + // Required. The resource name of the batch job to get. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/BatchJob" + } + ]; +} + +// Request message for [BatchJobService.RunBatchJob][google.ads.googleads.v6.services.BatchJobService.RunBatchJob]. +message RunBatchJobRequest { + // Required. The resource name of the BatchJob to run. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/BatchJob" + } + ]; +} + +// Request message for [BatchJobService.AddBatchJobOperations][google.ads.googleads.v6.services.BatchJobService.AddBatchJobOperations]. +message AddBatchJobOperationsRequest { + // Required. The resource name of the batch job. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/BatchJob" + } + ]; + + // A token used to enforce sequencing. + // + // The first AddBatchJobOperations request for a batch job should not set + // sequence_token. Subsequent requests must set sequence_token to the value of + // next_sequence_token received in the previous AddBatchJobOperations + // response. + string sequence_token = 2; + + // Required. The list of mutates being added. + // + // Operations can use negative integers as temp ids to signify dependencies + // between entities created in this batch job. For example, a customer with + // id = 1234 can create a campaign and an ad group in that same campaign by + // creating a campaign in the first operation with the resource name + // explicitly set to "customers/1234/campaigns/-1", and creating an ad group + // in the second operation with the campaign field also set to + // "customers/1234/campaigns/-1". + repeated MutateOperation mutate_operations = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for [BatchJobService.AddBatchJobOperations][google.ads.googleads.v6.services.BatchJobService.AddBatchJobOperations]. +message AddBatchJobOperationsResponse { + // The total number of operations added so far for this batch job. + int64 total_operations = 1; + + // The sequence token to be used when calling AddBatchJobOperations again if + // more operations need to be added. The next AddBatchJobOperations request + // must set the sequence_token field to the value of this field. + string next_sequence_token = 2; +} + +// Request message for [BatchJobService.ListBatchJobResults][google.ads.googleads.v6.services.BatchJobService.ListBatchJobResults]. +message ListBatchJobResultsRequest { + // Required. The resource name of the batch job whose results are being listed. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/BatchJob" + } + ]; + + // Token of the page to retrieve. If not specified, the first + // page of results will be returned. Use the value obtained from + // `next_page_token` in the previous response in order to request + // the next page of results. + string page_token = 2; + + // Number of elements to retrieve in a single page. + // When a page request is too large, the server may decide to + // further limit the number of returned resources. + int32 page_size = 3; +} + +// Response message for [BatchJobService.ListBatchJobResults][google.ads.googleads.v6.services.BatchJobService.ListBatchJobResults]. +message ListBatchJobResultsResponse { + // The list of rows that matched the query. + repeated BatchJobResult results = 1; + + // Pagination token used to retrieve the next page of results. + // Pass the content of this string as the `page_token` attribute of + // the next request. `next_page_token` is not returned for the last + // page. + string next_page_token = 2; +} + +// An individual batch job result. +message BatchJobResult { + // Index of the mutate operation. + int64 operation_index = 1; + + // Response for the mutate. + // May be empty if errors occurred. + MutateOperationResponse mutate_operation_response = 2; + + // Details of the errors when processing the operation. + google.rpc.Status status = 3; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/bidding_strategy_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/bidding_strategy_service.proto new file mode 100644 index 000000000..841b9c794 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/bidding_strategy_service.proto @@ -0,0 +1,131 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/bidding_strategy.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "BiddingStrategyServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Bidding Strategy service. + +// Service to manage bidding strategies. +service BiddingStrategyService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested bidding strategy in full detail. + rpc GetBiddingStrategy(GetBiddingStrategyRequest) returns (google.ads.googleads.v6.resources.BiddingStrategy) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/biddingStrategies/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates, updates, or removes bidding strategies. Operation statuses are + // returned. + rpc MutateBiddingStrategies(MutateBiddingStrategiesRequest) returns (MutateBiddingStrategiesResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/biddingStrategies:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } +} + +// Request message for [BiddingStrategyService.GetBiddingStrategy][google.ads.googleads.v6.services.BiddingStrategyService.GetBiddingStrategy]. +message GetBiddingStrategyRequest { + // Required. The resource name of the bidding strategy to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/BiddingStrategy" + } + ]; +} + +// Request message for [BiddingStrategyService.MutateBiddingStrategies][google.ads.googleads.v6.services.BiddingStrategyService.MutateBiddingStrategies]. +message MutateBiddingStrategiesRequest { + // Required. The ID of the customer whose bidding strategies are being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on individual bidding strategies. + repeated BiddingStrategyOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 3; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; +} + +// A single operation (create, update, remove) on a bidding strategy. +message BiddingStrategyOperation { + // FieldMask that determines which resource fields are modified in an update. + google.protobuf.FieldMask update_mask = 4; + + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new bidding + // strategy. + google.ads.googleads.v6.resources.BiddingStrategy create = 1; + + // Update operation: The bidding strategy is expected to have a valid + // resource name. + google.ads.googleads.v6.resources.BiddingStrategy update = 2; + + // Remove operation: A resource name for the removed bidding strategy is + // expected, in this format: + // + // `customers/{customer_id}/biddingStrategies/{bidding_strategy_id}` + string remove = 3; + } +} + +// Response message for bidding strategy mutate. +message MutateBiddingStrategiesResponse { + // Errors that pertain to operation failures in the partial failure mode. + // Returned only when partial_failure = true and all errors occur inside the + // operations. If any errors occur outside the operations (e.g. auth errors), + // we return an RPC level error. + google.rpc.Status partial_failure_error = 3; + + // All results for the mutate. + repeated MutateBiddingStrategyResult results = 2; +} + +// The result for the bidding strategy mutate. +message MutateBiddingStrategyResult { + // Returned for successful operations. + string resource_name = 1; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/billing_setup_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/billing_setup_service.proto new file mode 100644 index 000000000..452b2a607 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/billing_setup_service.proto @@ -0,0 +1,116 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/billing_setup.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "BillingSetupServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the BillingSetup service. + +// A service for designating the business entity responsible for accrued costs. +// +// A billing setup is associated with a payments account. Billing-related +// activity for all billing setups associated with a particular payments account +// will appear on a single invoice generated monthly. +// +// Mutates: +// The REMOVE operation cancels a pending billing setup. +// The CREATE operation creates a new billing setup. +service BillingSetupService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns a billing setup. + rpc GetBillingSetup(GetBillingSetupRequest) returns (google.ads.googleads.v6.resources.BillingSetup) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/billingSetups/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates a billing setup, or cancels an existing billing setup. + rpc MutateBillingSetup(MutateBillingSetupRequest) returns (MutateBillingSetupResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/billingSetups:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operation"; + } +} + +// Request message for +// [BillingSetupService.GetBillingSetup][google.ads.googleads.v6.services.BillingSetupService.GetBillingSetup]. +message GetBillingSetupRequest { + // Required. The resource name of the billing setup to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/BillingSetup" + } + ]; +} + +// Request message for billing setup mutate operations. +message MutateBillingSetupRequest { + // Required. Id of the customer to apply the billing setup mutate operation to. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The operation to perform. + BillingSetupOperation operation = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// A single operation on a billing setup, which describes the cancellation of an +// existing billing setup. +message BillingSetupOperation { + // Only one of these operations can be set. "Update" operations are not + // supported. + oneof operation { + // Creates a billing setup. No resource name is expected for the new billing + // setup. + google.ads.googleads.v6.resources.BillingSetup create = 2; + + // Resource name of the billing setup to remove. A setup cannot be + // removed unless it is in a pending state or its scheduled start time is in + // the future. The resource name looks like + // `customers/{customer_id}/billingSetups/{billing_id}`. + string remove = 1; + } +} + +// Response message for a billing setup operation. +message MutateBillingSetupResponse { + // A result that identifies the resource affected by the mutate request. + MutateBillingSetupResult result = 1; +} + +// Result for a single billing setup mutate. +message MutateBillingSetupResult { + // Returned for successful operations. + string resource_name = 1; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/campaign_asset_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/campaign_asset_service.proto new file mode 100644 index 000000000..d68133937 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/campaign_asset_service.proto @@ -0,0 +1,122 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/campaign_asset.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "CampaignAssetServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the CampaignAsset service. + +// Service to manage campaign assets. +service CampaignAssetService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested campaign asset in full detail. + rpc GetCampaignAsset(GetCampaignAssetRequest) returns (google.ads.googleads.v6.resources.CampaignAsset) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/campaignAssets/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates or removes campaign assets. Operation statuses are returned. + rpc MutateCampaignAssets(MutateCampaignAssetsRequest) returns (MutateCampaignAssetsResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/campaignAssets:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } +} + +// Request message for [CampaignAssetService.GetCampaignAsset][google.ads.googleads.v6.services.CampaignAssetService.GetCampaignAsset]. +message GetCampaignAssetRequest { + // Required. The resource name of the campaign asset to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CampaignAsset" + } + ]; +} + +// Request message for [CampaignAssetService.MutateCampaignAssets][google.ads.googleads.v6.services.CampaignAssetService.MutateCampaignAssets]. +message MutateCampaignAssetsRequest { + // Required. The ID of the customer whose campaign assets are being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on individual campaign assets. + repeated CampaignAssetOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 3; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; +} + +// A single operation (create, remove) on a campaign asset. +message CampaignAssetOperation { + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new campaign + // asset. + google.ads.googleads.v6.resources.CampaignAsset create = 1; + + // Remove operation: A resource name for the removed campaign asset is + // expected, in this format: + // + // `customers/{customer_id}/campaignAssets/{campaign_id}~{asset_id}~{field_type}` + string remove = 2; + } +} + +// Response message for a campaign asset mutate. +message MutateCampaignAssetsResponse { + // Errors that pertain to operation failures in the partial failure mode. + // Returned only when partial_failure = true and all errors occur inside the + // operations. If any errors occur outside the operations (e.g. auth errors), + // we return an RPC level error. + google.rpc.Status partial_failure_error = 1; + + // All results for the mutate. + repeated MutateCampaignAssetResult results = 2; +} + +// The result for the campaign asset mutate. +message MutateCampaignAssetResult { + // Returned for successful operations. + string resource_name = 1; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/campaign_audience_view_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/campaign_audience_view_service.proto new file mode 100644 index 000000000..332bf89f6 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/campaign_audience_view_service.proto @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/campaign_audience_view.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "CampaignAudienceViewServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Campaign Audience View service. + +// Service to manage campaign audience views. +service CampaignAudienceViewService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested campaign audience view in full detail. + rpc GetCampaignAudienceView(GetCampaignAudienceViewRequest) returns (google.ads.googleads.v6.resources.CampaignAudienceView) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/campaignAudienceViews/*}" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for [CampaignAudienceViewService.GetCampaignAudienceView][google.ads.googleads.v6.services.CampaignAudienceViewService.GetCampaignAudienceView]. +message GetCampaignAudienceViewRequest { + // Required. The resource name of the campaign audience view to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CampaignAudienceView" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/campaign_bid_modifier_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/campaign_bid_modifier_service.proto new file mode 100644 index 000000000..71061f6d0 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/campaign_bid_modifier_service.proto @@ -0,0 +1,142 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/enums/response_content_type.proto"; +import "google/ads/googleads/v6/resources/campaign_bid_modifier.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "CampaignBidModifierServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Campaign Bid Modifier service. + +// Service to manage campaign bid modifiers. +service CampaignBidModifierService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested campaign bid modifier in full detail. + rpc GetCampaignBidModifier(GetCampaignBidModifierRequest) returns (google.ads.googleads.v6.resources.CampaignBidModifier) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/campaignBidModifiers/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates, updates, or removes campaign bid modifiers. + // Operation statuses are returned. + rpc MutateCampaignBidModifiers(MutateCampaignBidModifiersRequest) returns (MutateCampaignBidModifiersResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/campaignBidModifiers:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } +} + +// Request message for [CampaignBidModifierService.GetCampaignBidModifier][google.ads.googleads.v6.services.CampaignBidModifierService.GetCampaignBidModifier]. +message GetCampaignBidModifierRequest { + // Required. The resource name of the campaign bid modifier to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CampaignBidModifier" + } + ]; +} + +// Request message for +// [CampaignBidModifierService.MutateCampaignBidModifiers][google.ads.googleads.v6.services.CampaignBidModifierService.MutateCampaignBidModifiers]. +message MutateCampaignBidModifiersRequest { + // Required. ID of the customer whose campaign bid modifiers are being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on individual campaign bid modifiers. + repeated CampaignBidModifierOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 3; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; + + // The response content type setting. Determines whether the mutable resource + // or just the resource name should be returned post mutation. + google.ads.googleads.v6.enums.ResponseContentTypeEnum.ResponseContentType response_content_type = 5; +} + +// A single operation (create, remove, update) on a campaign bid modifier. +message CampaignBidModifierOperation { + // FieldMask that determines which resource fields are modified in an update. + google.protobuf.FieldMask update_mask = 4; + + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new campaign bid + // modifier. + google.ads.googleads.v6.resources.CampaignBidModifier create = 1; + + // Update operation: The campaign bid modifier is expected to have a valid + // resource name. + google.ads.googleads.v6.resources.CampaignBidModifier update = 2; + + // Remove operation: A resource name for the removed campaign bid modifier + // is expected, in this format: + // + // `customers/{customer_id}/CampaignBidModifiers/{campaign_id}~{criterion_id}` + string remove = 3; + } +} + +// Response message for campaign bid modifiers mutate. +message MutateCampaignBidModifiersResponse { + // Errors that pertain to operation failures in the partial failure mode. + // Returned only when partial_failure = true and all errors occur inside the + // operations. If any errors occur outside the operations (e.g. auth errors), + // we return an RPC level error. + google.rpc.Status partial_failure_error = 3; + + // All results for the mutate. + repeated MutateCampaignBidModifierResult results = 2; +} + +// The result for the criterion mutate. +message MutateCampaignBidModifierResult { + // Returned for successful operations. + string resource_name = 1; + + // The mutated campaign bid modifier with only mutable fields after mutate. + // The field will only be returned when response_content_type is set to + // "MUTABLE_RESOURCE". + google.ads.googleads.v6.resources.CampaignBidModifier campaign_bid_modifier = 2; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/campaign_budget_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/campaign_budget_service.proto new file mode 100644 index 000000000..ebaca41d4 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/campaign_budget_service.proto @@ -0,0 +1,140 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/enums/response_content_type.proto"; +import "google/ads/googleads/v6/resources/campaign_budget.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "CampaignBudgetServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Campaign Budget service. + +// Service to manage campaign budgets. +service CampaignBudgetService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested Campaign Budget in full detail. + rpc GetCampaignBudget(GetCampaignBudgetRequest) returns (google.ads.googleads.v6.resources.CampaignBudget) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/campaignBudgets/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates, updates, or removes campaign budgets. Operation statuses are + // returned. + rpc MutateCampaignBudgets(MutateCampaignBudgetsRequest) returns (MutateCampaignBudgetsResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/campaignBudgets:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } +} + +// Request message for [CampaignBudgetService.GetCampaignBudget][google.ads.googleads.v6.services.CampaignBudgetService.GetCampaignBudget]. +message GetCampaignBudgetRequest { + // Required. The resource name of the campaign budget to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CampaignBudget" + } + ]; +} + +// Request message for [CampaignBudgetService.MutateCampaignBudgets][google.ads.googleads.v6.services.CampaignBudgetService.MutateCampaignBudgets]. +message MutateCampaignBudgetsRequest { + // Required. The ID of the customer whose campaign budgets are being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on individual campaign budgets. + repeated CampaignBudgetOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 3; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; + + // The response content type setting. Determines whether the mutable resource + // or just the resource name should be returned post mutation. + google.ads.googleads.v6.enums.ResponseContentTypeEnum.ResponseContentType response_content_type = 5; +} + +// A single operation (create, update, remove) on a campaign budget. +message CampaignBudgetOperation { + // FieldMask that determines which resource fields are modified in an update. + google.protobuf.FieldMask update_mask = 4; + + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new budget. + google.ads.googleads.v6.resources.CampaignBudget create = 1; + + // Update operation: The campaign budget is expected to have a valid + // resource name. + google.ads.googleads.v6.resources.CampaignBudget update = 2; + + // Remove operation: A resource name for the removed budget is expected, in + // this format: + // + // `customers/{customer_id}/campaignBudgets/{budget_id}` + string remove = 3; + } +} + +// Response message for campaign budget mutate. +message MutateCampaignBudgetsResponse { + // Errors that pertain to operation failures in the partial failure mode. + // Returned only when partial_failure = true and all errors occur inside the + // operations. If any errors occur outside the operations (e.g. auth errors), + // we return an RPC level error. + google.rpc.Status partial_failure_error = 3; + + // All results for the mutate. + repeated MutateCampaignBudgetResult results = 2; +} + +// The result for the campaign budget mutate. +message MutateCampaignBudgetResult { + // Returned for successful operations. + string resource_name = 1; + + // The mutated campaign budget with only mutable fields after mutate. The + // field will only be returned when response_content_type is set to + // "MUTABLE_RESOURCE". + google.ads.googleads.v6.resources.CampaignBudget campaign_budget = 2; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/campaign_criterion_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/campaign_criterion_service.proto new file mode 100644 index 000000000..91a2257f7 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/campaign_criterion_service.proto @@ -0,0 +1,139 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/enums/response_content_type.proto"; +import "google/ads/googleads/v6/resources/campaign_criterion.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "CampaignCriterionServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Campaign Criterion service. + +// Service to manage campaign criteria. +service CampaignCriterionService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested criterion in full detail. + rpc GetCampaignCriterion(GetCampaignCriterionRequest) returns (google.ads.googleads.v6.resources.CampaignCriterion) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/campaignCriteria/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates, updates, or removes criteria. Operation statuses are returned. + rpc MutateCampaignCriteria(MutateCampaignCriteriaRequest) returns (MutateCampaignCriteriaResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/campaignCriteria:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } +} + +// Request message for [CampaignCriterionService.GetCampaignCriterion][google.ads.googleads.v6.services.CampaignCriterionService.GetCampaignCriterion]. +message GetCampaignCriterionRequest { + // Required. The resource name of the criterion to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CampaignCriterion" + } + ]; +} + +// Request message for [CampaignCriterionService.MutateCampaignCriteria][google.ads.googleads.v6.services.CampaignCriterionService.MutateCampaignCriteria]. +message MutateCampaignCriteriaRequest { + // Required. The ID of the customer whose criteria are being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on individual criteria. + repeated CampaignCriterionOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 3; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; + + // The response content type setting. Determines whether the mutable resource + // or just the resource name should be returned post mutation. + google.ads.googleads.v6.enums.ResponseContentTypeEnum.ResponseContentType response_content_type = 5; +} + +// A single operation (create, update, remove) on a campaign criterion. +message CampaignCriterionOperation { + // FieldMask that determines which resource fields are modified in an update. + google.protobuf.FieldMask update_mask = 4; + + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new criterion. + google.ads.googleads.v6.resources.CampaignCriterion create = 1; + + // Update operation: The criterion is expected to have a valid resource + // name. + google.ads.googleads.v6.resources.CampaignCriterion update = 2; + + // Remove operation: A resource name for the removed criterion is expected, + // in this format: + // + // `customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id}` + string remove = 3; + } +} + +// Response message for campaign criterion mutate. +message MutateCampaignCriteriaResponse { + // Errors that pertain to operation failures in the partial failure mode. + // Returned only when partial_failure = true and all errors occur inside the + // operations. If any errors occur outside the operations (e.g. auth errors), + // we return an RPC level error. + google.rpc.Status partial_failure_error = 3; + + // All results for the mutate. + repeated MutateCampaignCriterionResult results = 2; +} + +// The result for the criterion mutate. +message MutateCampaignCriterionResult { + // Returned for successful operations. + string resource_name = 1; + + // The mutated campaign criterion with only mutable fields after mutate. The + // field will only be returned when response_content_type is set to + // "MUTABLE_RESOURCE". + google.ads.googleads.v6.resources.CampaignCriterion campaign_criterion = 2; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/campaign_criterion_simulation_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/campaign_criterion_simulation_service.proto new file mode 100644 index 000000000..da6d21c4e --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/campaign_criterion_simulation_service.proto @@ -0,0 +1,60 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/campaign_criterion_simulation.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "CampaignCriterionSimulationServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the CampaignCriterionSimulation service. + +// Service to fetch campaign criterion simulations. +service CampaignCriterionSimulationService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested campaign criterion simulation in full detail. + rpc GetCampaignCriterionSimulation(GetCampaignCriterionSimulationRequest) returns (google.ads.googleads.v6.resources.CampaignCriterionSimulation) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/campaignCriterionSimulations/*}" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for +// [CampaignCriterionSimulationService.GetCampaignCriterionSimulation][google.ads.googleads.v6.services.CampaignCriterionSimulationService.GetCampaignCriterionSimulation]. +message GetCampaignCriterionSimulationRequest { + // Required. The resource name of the campaign criterion simulation to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CampaignCriterionSimulation" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/campaign_draft_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/campaign_draft_service.proto new file mode 100644 index 000000000..8fc33e43e --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/campaign_draft_service.proto @@ -0,0 +1,213 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/enums/response_content_type.proto"; +import "google/ads/googleads/v6/resources/campaign_draft.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/field_mask.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "CampaignDraftServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Campaign Draft service. + +// Service to manage campaign drafts. +service CampaignDraftService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested campaign draft in full detail. + rpc GetCampaignDraft(GetCampaignDraftRequest) returns (google.ads.googleads.v6.resources.CampaignDraft) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/campaignDrafts/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates, updates, or removes campaign drafts. Operation statuses are + // returned. + rpc MutateCampaignDrafts(MutateCampaignDraftsRequest) returns (MutateCampaignDraftsResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/campaignDrafts:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } + + // Promotes the changes in a draft back to the base campaign. + // + // This method returns a Long Running Operation (LRO) indicating if the + // Promote is done. Use [Operations.GetOperation] to poll the LRO until it + // is done. Only a done status is returned in the response. See the status + // in the Campaign Draft resource to determine if the promotion was + // successful. If the LRO failed, use + // [CampaignDraftService.ListCampaignDraftAsyncErrors][google.ads.googleads.v6.services.CampaignDraftService.ListCampaignDraftAsyncErrors] to view the list of + // error reasons. + rpc PromoteCampaignDraft(PromoteCampaignDraftRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v6/{campaign_draft=customers/*/campaignDrafts/*}:promote" + body: "*" + }; + option (google.api.method_signature) = "campaign_draft"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.protobuf.Empty" + }; + } + + // Returns all errors that occurred during CampaignDraft promote. Throws an + // error if called before campaign draft is promoted. + // Supports standard list paging. + rpc ListCampaignDraftAsyncErrors(ListCampaignDraftAsyncErrorsRequest) returns (ListCampaignDraftAsyncErrorsResponse) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/campaignDrafts/*}:listAsyncErrors" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for [CampaignDraftService.GetCampaignDraft][google.ads.googleads.v6.services.CampaignDraftService.GetCampaignDraft]. +message GetCampaignDraftRequest { + // Required. The resource name of the campaign draft to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CampaignDraft" + } + ]; +} + +// Request message for [CampaignDraftService.MutateCampaignDrafts][google.ads.googleads.v6.services.CampaignDraftService.MutateCampaignDrafts]. +message MutateCampaignDraftsRequest { + // Required. The ID of the customer whose campaign drafts are being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on individual campaign drafts. + repeated CampaignDraftOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 3; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; + + // The response content type setting. Determines whether the mutable resource + // or just the resource name should be returned post mutation. + google.ads.googleads.v6.enums.ResponseContentTypeEnum.ResponseContentType response_content_type = 5; +} + +// Request message for [CampaignDraftService.PromoteCampaignDraft][google.ads.googleads.v6.services.CampaignDraftService.PromoteCampaignDraft]. +message PromoteCampaignDraftRequest { + // Required. The resource name of the campaign draft to promote. + string campaign_draft = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// A single operation (create, update, remove) on a campaign draft. +message CampaignDraftOperation { + // FieldMask that determines which resource fields are modified in an update. + google.protobuf.FieldMask update_mask = 4; + + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new campaign + // draft. + google.ads.googleads.v6.resources.CampaignDraft create = 1; + + // Update operation: The campaign draft is expected to have a valid + // resource name. + google.ads.googleads.v6.resources.CampaignDraft update = 2; + + // Remove operation: The campaign draft is expected to have a valid + // resource name, in this format: + // + // `customers/{customer_id}/campaignDrafts/{base_campaign_id}~{draft_id}` + string remove = 3; + } +} + +// Response message for campaign draft mutate. +message MutateCampaignDraftsResponse { + // Errors that pertain to operation failures in the partial failure mode. + // Returned only when partial_failure = true and all errors occur inside the + // operations. If any errors occur outside the operations (e.g. auth errors), + // we return an RPC level error. + google.rpc.Status partial_failure_error = 3; + + // All results for the mutate. + repeated MutateCampaignDraftResult results = 2; +} + +// The result for the campaign draft mutate. +message MutateCampaignDraftResult { + // Returned for successful operations. + string resource_name = 1; + + // The mutated campaign draft with only mutable fields after mutate. The field + // will only be returned when response_content_type is set to + // "MUTABLE_RESOURCE". + google.ads.googleads.v6.resources.CampaignDraft campaign_draft = 2; +} + +// Request message for [CampaignDraftService.ListCampaignDraftAsyncErrors][google.ads.googleads.v6.services.CampaignDraftService.ListCampaignDraftAsyncErrors]. +message ListCampaignDraftAsyncErrorsRequest { + // Required. The name of the campaign draft from which to retrieve the async errors. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CampaignDraft" + } + ]; + + // Token of the page to retrieve. If not specified, the first + // page of results will be returned. Use the value obtained from + // `next_page_token` in the previous response in order to request + // the next page of results. + string page_token = 2; + + // Number of elements to retrieve in a single page. + // When a page request is too large, the server may decide to + // further limit the number of returned resources. + int32 page_size = 3; +} + +// Response message for [CampaignDraftService.ListCampaignDraftAsyncErrors][google.ads.googleads.v6.services.CampaignDraftService.ListCampaignDraftAsyncErrors]. +message ListCampaignDraftAsyncErrorsResponse { + // Details of the errors when performing the asynchronous operation. + repeated google.rpc.Status errors = 1; + + // Pagination token used to retrieve the next page of results. + // Pass the content of this string as the `page_token` attribute of + // the next request. `next_page_token` is not returned for the last + // page. + string next_page_token = 2; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/campaign_experiment_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/campaign_experiment_service.proto new file mode 100644 index 000000000..23a6a86de --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/campaign_experiment_service.proto @@ -0,0 +1,304 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/enums/response_content_type.proto"; +import "google/ads/googleads/v6/resources/campaign_experiment.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "CampaignExperimentServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Campaign Experiment service. + +// CampaignExperimentService manages the life cycle of campaign experiments. +// It is used to create new experiments from drafts, modify experiment +// properties, promote changes in an experiment back to its base campaign, +// graduate experiments into new stand-alone campaigns, and to remove an +// experiment. +// +// An experiment consists of two variants or arms - the base campaign and the +// experiment campaign, directing a fixed share of traffic to each arm. +// A campaign experiment is created from a draft of changes to the base campaign +// and will be a snapshot of changes in the draft at the time of creation. +service CampaignExperimentService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested campaign experiment in full detail. + rpc GetCampaignExperiment(GetCampaignExperimentRequest) returns (google.ads.googleads.v6.resources.CampaignExperiment) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/campaignExperiments/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates a campaign experiment based on a campaign draft. The draft campaign + // will be forked into a real campaign (called the experiment campaign) that + // will begin serving ads if successfully created. + // + // The campaign experiment is created immediately with status INITIALIZING. + // This method return a long running operation that tracks the forking of the + // draft campaign. If the forking fails, a list of errors can be retrieved + // using the ListCampaignExperimentAsyncErrors method. The operation's + // metadata will be a StringValue containing the resource name of the created + // campaign experiment. + rpc CreateCampaignExperiment(CreateCampaignExperimentRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/campaignExperiments:create" + body: "*" + }; + option (google.api.method_signature) = "customer_id,campaign_experiment"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.ads.googleads.v6.services.CreateCampaignExperimentMetadata" + }; + } + + // Updates campaign experiments. Operation statuses are returned. + rpc MutateCampaignExperiments(MutateCampaignExperimentsRequest) returns (MutateCampaignExperimentsResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/campaignExperiments:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } + + // Graduates a campaign experiment to a full campaign. The base and experiment + // campaigns will start running independently with their own budgets. + rpc GraduateCampaignExperiment(GraduateCampaignExperimentRequest) returns (GraduateCampaignExperimentResponse) { + option (google.api.http) = { + post: "/v6/{campaign_experiment=customers/*/campaignExperiments/*}:graduate" + body: "*" + }; + option (google.api.method_signature) = "campaign_experiment,campaign_budget"; + } + + // Promotes the changes in a experiment campaign back to the base campaign. + // + // The campaign experiment is updated immediately with status PROMOTING. + // This method return a long running operation that tracks the promoting of + // the experiment campaign. If the promoting fails, a list of errors can be + // retrieved using the ListCampaignExperimentAsyncErrors method. + rpc PromoteCampaignExperiment(PromoteCampaignExperimentRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v6/{campaign_experiment=customers/*/campaignExperiments/*}:promote" + body: "*" + }; + option (google.api.method_signature) = "campaign_experiment"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.protobuf.Empty" + }; + } + + // Immediately ends a campaign experiment, changing the experiment's scheduled + // end date and without waiting for end of day. End date is updated to be the + // time of the request. + rpc EndCampaignExperiment(EndCampaignExperimentRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v6/{campaign_experiment=customers/*/campaignExperiments/*}:end" + body: "*" + }; + option (google.api.method_signature) = "campaign_experiment"; + } + + // Returns all errors that occurred during CampaignExperiment create or + // promote (whichever occurred last). + // Supports standard list paging. + rpc ListCampaignExperimentAsyncErrors(ListCampaignExperimentAsyncErrorsRequest) returns (ListCampaignExperimentAsyncErrorsResponse) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/campaignExperiments/*}:listAsyncErrors" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for [CampaignExperimentService.GetCampaignExperiment][google.ads.googleads.v6.services.CampaignExperimentService.GetCampaignExperiment]. +message GetCampaignExperimentRequest { + // Required. The resource name of the campaign experiment to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CampaignExperiment" + } + ]; +} + +// Request message for [CampaignExperimentService.MutateCampaignExperiments][google.ads.googleads.v6.services.CampaignExperimentService.MutateCampaignExperiments]. +message MutateCampaignExperimentsRequest { + // Required. The ID of the customer whose campaign experiments are being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on individual campaign experiments. + repeated CampaignExperimentOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 3; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; + + // The response content type setting. Determines whether the mutable resource + // or just the resource name should be returned post mutation. + google.ads.googleads.v6.enums.ResponseContentTypeEnum.ResponseContentType response_content_type = 5; +} + +// A single update operation on a campaign experiment. +message CampaignExperimentOperation { + // FieldMask that determines which resource fields are modified in an update. + google.protobuf.FieldMask update_mask = 3; + + // The mutate operation. + oneof operation { + // Update operation: The campaign experiment is expected to have a valid + // resource name. + google.ads.googleads.v6.resources.CampaignExperiment update = 1; + + // Remove operation: The campaign experiment is expected to have a valid + // resource name, in this format: + // + // `customers/{customer_id}/campaignExperiments/{campaign_experiment_id}` + string remove = 2; + } +} + +// Response message for campaign experiment mutate. +message MutateCampaignExperimentsResponse { + // Errors that pertain to operation failures in the partial failure mode. + // Returned only when partial_failure = true and all errors occur inside the + // operations. If any errors occur outside the operations (e.g. auth errors), + // we return an RPC level error. + google.rpc.Status partial_failure_error = 3; + + // All results for the mutate. + repeated MutateCampaignExperimentResult results = 2; +} + +// The result for the campaign experiment mutate. +message MutateCampaignExperimentResult { + // Returned for successful operations. + string resource_name = 1; + + // The mutated campaign experiment with only mutable fields after mutate. The + // field will only be returned when response_content_type is set to + // "MUTABLE_RESOURCE". + google.ads.googleads.v6.resources.CampaignExperiment campaign_experiment = 2; +} + +// Request message for [CampaignExperimentService.CreateCampaignExperiment][google.ads.googleads.v6.services.CampaignExperimentService.CreateCampaignExperiment]. +message CreateCampaignExperimentRequest { + // Required. The ID of the customer whose campaign experiment is being created. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The campaign experiment to be created. + google.ads.googleads.v6.resources.CampaignExperiment campaign_experiment = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 3; +} + +// Message used as metadata returned in Long Running Operations for +// CreateCampaignExperimentRequest +message CreateCampaignExperimentMetadata { + // Resource name of campaign experiment created. + string campaign_experiment = 1; +} + +// Request message for [CampaignExperimentService.GraduateCampaignExperiment][google.ads.googleads.v6.services.CampaignExperimentService.GraduateCampaignExperiment]. +message GraduateCampaignExperimentRequest { + // Required. The resource name of the campaign experiment to graduate. + string campaign_experiment = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Resource name of the budget to attach to the campaign graduated from the + // experiment. + string campaign_budget = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for campaign experiment graduate. +message GraduateCampaignExperimentResponse { + // The resource name of the campaign from the graduated experiment. + // This campaign is the same one as CampaignExperiment.experiment_campaign. + string graduated_campaign = 1; +} + +// Request message for [CampaignExperimentService.PromoteCampaignExperiment][google.ads.googleads.v6.services.CampaignExperimentService.PromoteCampaignExperiment]. +message PromoteCampaignExperimentRequest { + // Required. The resource name of the campaign experiment to promote. + string campaign_experiment = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for [CampaignExperimentService.EndCampaignExperiment][google.ads.googleads.v6.services.CampaignExperimentService.EndCampaignExperiment]. +message EndCampaignExperimentRequest { + // Required. The resource name of the campaign experiment to end. + string campaign_experiment = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for +// [CampaignExperimentService.ListCampaignExperimentAsyncErrors][google.ads.googleads.v6.services.CampaignExperimentService.ListCampaignExperimentAsyncErrors]. +message ListCampaignExperimentAsyncErrorsRequest { + // Required. The name of the campaign experiment from which to retrieve the async + // errors. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CampaignExperiment" + } + ]; + + // Token of the page to retrieve. If not specified, the first + // page of results will be returned. Use the value obtained from + // `next_page_token` in the previous response in order to request + // the next page of results. + string page_token = 2; + + // Number of elements to retrieve in a single page. + // When a page request is too large, the server may decide to + // further limit the number of returned resources. + int32 page_size = 3; +} + +// Response message for +// [CampaignExperimentService.ListCampaignExperimentAsyncErrors][google.ads.googleads.v6.services.CampaignExperimentService.ListCampaignExperimentAsyncErrors]. +message ListCampaignExperimentAsyncErrorsResponse { + // Details of the errors when performing the asynchronous operation. + repeated google.rpc.Status errors = 1; + + // Pagination token used to retrieve the next page of results. + // Pass the content of this string as the `page_token` attribute of + // the next request. `next_page_token` is not returned for the last + // page. + string next_page_token = 2; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/campaign_extension_setting_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/campaign_extension_setting_service.proto new file mode 100644 index 000000000..18ea8d727 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/campaign_extension_setting_service.proto @@ -0,0 +1,135 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/campaign_extension_setting.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "CampaignExtensionSettingServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the CampaignExtensionSetting service. + +// Service to manage campaign extension settings. +service CampaignExtensionSettingService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested campaign extension setting in full detail. + rpc GetCampaignExtensionSetting(GetCampaignExtensionSettingRequest) returns (google.ads.googleads.v6.resources.CampaignExtensionSetting) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/campaignExtensionSettings/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates, updates, or removes campaign extension settings. Operation + // statuses are returned. + rpc MutateCampaignExtensionSettings(MutateCampaignExtensionSettingsRequest) returns (MutateCampaignExtensionSettingsResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/campaignExtensionSettings:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } +} + +// Request message for +// [CampaignExtensionSettingService.GetCampaignExtensionSetting][google.ads.googleads.v6.services.CampaignExtensionSettingService.GetCampaignExtensionSetting]. +message GetCampaignExtensionSettingRequest { + // Required. The resource name of the campaign extension setting to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CampaignExtensionSetting" + } + ]; +} + +// Request message for +// [CampaignExtensionSettingService.MutateCampaignExtensionSettings][google.ads.googleads.v6.services.CampaignExtensionSettingService.MutateCampaignExtensionSettings]. +message MutateCampaignExtensionSettingsRequest { + // Required. The ID of the customer whose campaign extension settings are being + // modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on individual campaign extension + // settings. + repeated CampaignExtensionSettingOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 3; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; +} + +// A single operation (create, update, remove) on a campaign extension setting. +message CampaignExtensionSettingOperation { + // FieldMask that determines which resource fields are modified in an update. + google.protobuf.FieldMask update_mask = 4; + + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new campaign + // extension setting. + google.ads.googleads.v6.resources.CampaignExtensionSetting create = 1; + + // Update operation: The campaign extension setting is expected to have a + // valid resource name. + google.ads.googleads.v6.resources.CampaignExtensionSetting update = 2; + + // Remove operation: A resource name for the removed campaign extension + // setting is expected, in this format: + // + // `customers/{customer_id}/campaignExtensionSettings/{campaign_id}~{extension_type}` + string remove = 3; + } +} + +// Response message for a campaign extension setting mutate. +message MutateCampaignExtensionSettingsResponse { + // Errors that pertain to operation failures in the partial failure mode. + // Returned only when partial_failure = true and all errors occur inside the + // operations. If any errors occur outside the operations (e.g. auth errors), + // we return an RPC level error. + google.rpc.Status partial_failure_error = 3; + + // All results for the mutate. + repeated MutateCampaignExtensionSettingResult results = 2; +} + +// The result for the campaign extension setting mutate. +message MutateCampaignExtensionSettingResult { + // Returned for successful operations. + string resource_name = 1; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/campaign_feed_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/campaign_feed_service.proto new file mode 100644 index 000000000..f4d2721e6 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/campaign_feed_service.proto @@ -0,0 +1,140 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/enums/response_content_type.proto"; +import "google/ads/googleads/v6/resources/campaign_feed.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "CampaignFeedServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the CampaignFeed service. + +// Service to manage campaign feeds. +service CampaignFeedService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested campaign feed in full detail. + rpc GetCampaignFeed(GetCampaignFeedRequest) returns (google.ads.googleads.v6.resources.CampaignFeed) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/campaignFeeds/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates, updates, or removes campaign feeds. Operation statuses are + // returned. + rpc MutateCampaignFeeds(MutateCampaignFeedsRequest) returns (MutateCampaignFeedsResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/campaignFeeds:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } +} + +// Request message for [CampaignFeedService.GetCampaignFeed][google.ads.googleads.v6.services.CampaignFeedService.GetCampaignFeed]. +message GetCampaignFeedRequest { + // Required. The resource name of the campaign feed to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CampaignFeed" + } + ]; +} + +// Request message for [CampaignFeedService.MutateCampaignFeeds][google.ads.googleads.v6.services.CampaignFeedService.MutateCampaignFeeds]. +message MutateCampaignFeedsRequest { + // Required. The ID of the customer whose campaign feeds are being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on individual campaign feeds. + repeated CampaignFeedOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 3; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; + + // The response content type setting. Determines whether the mutable resource + // or just the resource name should be returned post mutation. + google.ads.googleads.v6.enums.ResponseContentTypeEnum.ResponseContentType response_content_type = 5; +} + +// A single operation (create, update, remove) on a campaign feed. +message CampaignFeedOperation { + // FieldMask that determines which resource fields are modified in an update. + google.protobuf.FieldMask update_mask = 4; + + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new campaign feed. + google.ads.googleads.v6.resources.CampaignFeed create = 1; + + // Update operation: The campaign feed is expected to have a valid resource + // name. + google.ads.googleads.v6.resources.CampaignFeed update = 2; + + // Remove operation: A resource name for the removed campaign feed is + // expected, in this format: + // + // `customers/{customer_id}/campaignFeeds/{campaign_id}~{feed_id}` + string remove = 3; + } +} + +// Response message for a campaign feed mutate. +message MutateCampaignFeedsResponse { + // Errors that pertain to operation failures in the partial failure mode. + // Returned only when partial_failure = true and all errors occur inside the + // operations. If any errors occur outside the operations (e.g. auth errors), + // we return an RPC level error. + google.rpc.Status partial_failure_error = 3; + + // All results for the mutate. + repeated MutateCampaignFeedResult results = 2; +} + +// The result for the campaign feed mutate. +message MutateCampaignFeedResult { + // Returned for successful operations. + string resource_name = 1; + + // The mutated campaign feed with only mutable fields after mutate. The field + // will only be returned when response_content_type is set to + // "MUTABLE_RESOURCE". + google.ads.googleads.v6.resources.CampaignFeed campaign_feed = 2; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/campaign_label_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/campaign_label_service.proto new file mode 100644 index 000000000..5b37fd392 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/campaign_label_service.proto @@ -0,0 +1,123 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/campaign_label.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "CampaignLabelServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Campaign Label service. + +// Service to manage labels on campaigns. +service CampaignLabelService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested campaign-label relationship in full detail. + rpc GetCampaignLabel(GetCampaignLabelRequest) returns (google.ads.googleads.v6.resources.CampaignLabel) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/campaignLabels/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates and removes campaign-label relationships. + // Operation statuses are returned. + rpc MutateCampaignLabels(MutateCampaignLabelsRequest) returns (MutateCampaignLabelsResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/campaignLabels:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } +} + +// Request message for [CampaignLabelService.GetCampaignLabel][google.ads.googleads.v6.services.CampaignLabelService.GetCampaignLabel]. +message GetCampaignLabelRequest { + // Required. The resource name of the campaign-label relationship to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CampaignLabel" + } + ]; +} + +// Request message for [CampaignLabelService.MutateCampaignLabels][google.ads.googleads.v6.services.CampaignLabelService.MutateCampaignLabels]. +message MutateCampaignLabelsRequest { + // Required. ID of the customer whose campaign-label relationships are being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on campaign-label relationships. + repeated CampaignLabelOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 3; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; +} + +// A single operation (create, remove) on a campaign-label relationship. +message CampaignLabelOperation { + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new campaign-label + // relationship. + google.ads.googleads.v6.resources.CampaignLabel create = 1; + + // Remove operation: A resource name for the campaign-label relationship + // being removed, in this format: + // + // `customers/{customer_id}/campaignLabels/{campaign_id}~{label_id}` + string remove = 2; + } +} + +// Response message for a campaign labels mutate. +message MutateCampaignLabelsResponse { + // Errors that pertain to operation failures in the partial failure mode. + // Returned only when partial_failure = true and all errors occur inside the + // operations. If any errors occur outside the operations (e.g. auth errors), + // we return an RPC level error. + google.rpc.Status partial_failure_error = 3; + + // All results for the mutate. + repeated MutateCampaignLabelResult results = 2; +} + +// The result for a campaign label mutate. +message MutateCampaignLabelResult { + // Returned for successful operations. + string resource_name = 1; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/campaign_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/campaign_service.proto new file mode 100644 index 000000000..55de593bc --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/campaign_service.proto @@ -0,0 +1,138 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/enums/response_content_type.proto"; +import "google/ads/googleads/v6/resources/campaign.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "CampaignServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Campaign service. + +// Service to manage campaigns. +service CampaignService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested campaign in full detail. + rpc GetCampaign(GetCampaignRequest) returns (google.ads.googleads.v6.resources.Campaign) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/campaigns/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates, updates, or removes campaigns. Operation statuses are returned. + rpc MutateCampaigns(MutateCampaignsRequest) returns (MutateCampaignsResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/campaigns:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } +} + +// Request message for [CampaignService.GetCampaign][google.ads.googleads.v6.services.CampaignService.GetCampaign]. +message GetCampaignRequest { + // Required. The resource name of the campaign to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Campaign" + } + ]; +} + +// Request message for [CampaignService.MutateCampaigns][google.ads.googleads.v6.services.CampaignService.MutateCampaigns]. +message MutateCampaignsRequest { + // Required. The ID of the customer whose campaigns are being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on individual campaigns. + repeated CampaignOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 3; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; + + // The response content type setting. Determines whether the mutable resource + // or just the resource name should be returned post mutation. + google.ads.googleads.v6.enums.ResponseContentTypeEnum.ResponseContentType response_content_type = 5; +} + +// A single operation (create, update, remove) on a campaign. +message CampaignOperation { + // FieldMask that determines which resource fields are modified in an update. + google.protobuf.FieldMask update_mask = 4; + + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new campaign. + google.ads.googleads.v6.resources.Campaign create = 1; + + // Update operation: The campaign is expected to have a valid + // resource name. + google.ads.googleads.v6.resources.Campaign update = 2; + + // Remove operation: A resource name for the removed campaign is + // expected, in this format: + // + // `customers/{customer_id}/campaigns/{campaign_id}` + string remove = 3; + } +} + +// Response message for campaign mutate. +message MutateCampaignsResponse { + // Errors that pertain to operation failures in the partial failure mode. + // Returned only when partial_failure = true and all errors occur inside the + // operations. If any errors occur outside the operations (e.g. auth errors), + // we return an RPC level error. + google.rpc.Status partial_failure_error = 3; + + // All results for the mutate. + repeated MutateCampaignResult results = 2; +} + +// The result for the campaign mutate. +message MutateCampaignResult { + // Returned for successful operations. + string resource_name = 1; + + // The mutated campaign with only mutable fields after mutate. The field will + // only be returned when response_content_type is set to "MUTABLE_RESOURCE". + google.ads.googleads.v6.resources.Campaign campaign = 2; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/campaign_shared_set_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/campaign_shared_set_service.proto new file mode 100644 index 000000000..852775eda --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/campaign_shared_set_service.proto @@ -0,0 +1,132 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/enums/response_content_type.proto"; +import "google/ads/googleads/v6/resources/campaign_shared_set.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "CampaignSharedSetServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Campaign Shared Set service. + +// Service to manage campaign shared sets. +service CampaignSharedSetService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested campaign shared set in full detail. + rpc GetCampaignSharedSet(GetCampaignSharedSetRequest) returns (google.ads.googleads.v6.resources.CampaignSharedSet) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/campaignSharedSets/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates or removes campaign shared sets. Operation statuses are returned. + rpc MutateCampaignSharedSets(MutateCampaignSharedSetsRequest) returns (MutateCampaignSharedSetsResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/campaignSharedSets:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } +} + +// Request message for [CampaignSharedSetService.GetCampaignSharedSet][google.ads.googleads.v6.services.CampaignSharedSetService.GetCampaignSharedSet]. +message GetCampaignSharedSetRequest { + // Required. The resource name of the campaign shared set to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CampaignSharedSet" + } + ]; +} + +// Request message for [CampaignSharedSetService.MutateCampaignSharedSets][google.ads.googleads.v6.services.CampaignSharedSetService.MutateCampaignSharedSets]. +message MutateCampaignSharedSetsRequest { + // Required. The ID of the customer whose campaign shared sets are being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on individual campaign shared sets. + repeated CampaignSharedSetOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 3; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; + + // The response content type setting. Determines whether the mutable resource + // or just the resource name should be returned post mutation. + google.ads.googleads.v6.enums.ResponseContentTypeEnum.ResponseContentType response_content_type = 5; +} + +// A single operation (create, remove) on an campaign shared set. +message CampaignSharedSetOperation { + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new campaign + // shared set. + google.ads.googleads.v6.resources.CampaignSharedSet create = 1; + + // Remove operation: A resource name for the removed campaign shared set is + // expected, in this format: + // + // `customers/{customer_id}/campaignSharedSets/{campaign_id}~{shared_set_id}` + string remove = 3; + } +} + +// Response message for a campaign shared set mutate. +message MutateCampaignSharedSetsResponse { + // Errors that pertain to operation failures in the partial failure mode. + // Returned only when partial_failure = true and all errors occur inside the + // operations. If any errors occur outside the operations (e.g. auth errors), + // we return an RPC level error. + google.rpc.Status partial_failure_error = 3; + + // All results for the mutate. + repeated MutateCampaignSharedSetResult results = 2; +} + +// The result for the campaign shared set mutate. +message MutateCampaignSharedSetResult { + // Returned for successful operations. + string resource_name = 1; + + // The mutated campaign shared set with only mutable fields after mutate. The + // field will only be returned when response_content_type is set to + // "MUTABLE_RESOURCE". + google.ads.googleads.v6.resources.CampaignSharedSet campaign_shared_set = 2; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/carrier_constant_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/carrier_constant_service.proto new file mode 100644 index 000000000..1eb327ff9 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/carrier_constant_service.proto @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/carrier_constant.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "CarrierConstantServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the carrier constant service. + +// Service to fetch carrier constants. +service CarrierConstantService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested carrier constant in full detail. + rpc GetCarrierConstant(GetCarrierConstantRequest) returns (google.ads.googleads.v6.resources.CarrierConstant) { + option (google.api.http) = { + get: "/v6/{resource_name=carrierConstants/*}" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for [CarrierConstantService.GetCarrierConstant][google.ads.googleads.v6.services.CarrierConstantService.GetCarrierConstant]. +message GetCarrierConstantRequest { + // Required. Resource name of the carrier constant to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CarrierConstant" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/change_status_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/change_status_service.proto new file mode 100644 index 000000000..c822a43c5 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/change_status_service.proto @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/change_status.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "ChangeStatusServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Change Status service. + +// Service to fetch change statuses. +service ChangeStatusService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested change status in full detail. + rpc GetChangeStatus(GetChangeStatusRequest) returns (google.ads.googleads.v6.resources.ChangeStatus) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/changeStatus/*}" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for '[ChangeStatusService.GetChangeStatus][google.ads.googleads.v6.services.ChangeStatusService.GetChangeStatus]'. +message GetChangeStatusRequest { + // Required. The resource name of the change status to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/ChangeStatus" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/click_view_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/click_view_service.proto new file mode 100644 index 000000000..89ec0e5c7 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/click_view_service.proto @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/click_view.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "ClickViewServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the ClickView service. + +// Service to fetch click views. +service ClickViewService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested click view in full detail. + rpc GetClickView(GetClickViewRequest) returns (google.ads.googleads.v6.resources.ClickView) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/clickViews/*}" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for [ClickViewService.GetClickView][google.ads.googleads.v6.services.ClickViewService.GetClickView]. +message GetClickViewRequest { + // Required. The resource name of the click view to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/ClickView" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/combined_audience_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/combined_audience_service.proto new file mode 100644 index 000000000..79a2287db --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/combined_audience_service.proto @@ -0,0 +1,61 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/combined_audience.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "CombinedAudienceServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Combined Audience service. + +// Service to manage combined audiences. This service can be used to list all +// your combined audiences with metadata, but won't show the structure and +// components of the combined audience. +service CombinedAudienceService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested combined audience in full detail. + rpc GetCombinedAudience(GetCombinedAudienceRequest) returns (google.ads.googleads.v6.resources.CombinedAudience) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/combinedAudiences/*}" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for [CombinedAudienceService.GetCombinedAudience][google.ads.googleads.v6.services.CombinedAudienceService.GetCombinedAudience]. +message GetCombinedAudienceRequest { + // Required. The resource name of the combined audience to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CombinedAudience" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/conversion_action_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/conversion_action_service.proto new file mode 100644 index 000000000..341e6ab2b --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/conversion_action_service.proto @@ -0,0 +1,131 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/conversion_action.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "ConversionActionServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Conversion Action service. + +// Service to manage conversion actions. +service ConversionActionService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested conversion action. + rpc GetConversionAction(GetConversionActionRequest) returns (google.ads.googleads.v6.resources.ConversionAction) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/conversionActions/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates, updates or removes conversion actions. Operation statuses are + // returned. + rpc MutateConversionActions(MutateConversionActionsRequest) returns (MutateConversionActionsResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/conversionActions:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } +} + +// Request message for [ConversionActionService.GetConversionAction][google.ads.googleads.v6.services.ConversionActionService.GetConversionAction]. +message GetConversionActionRequest { + // Required. The resource name of the conversion action to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/ConversionAction" + } + ]; +} + +// Request message for [ConversionActionService.MutateConversionActions][google.ads.googleads.v6.services.ConversionActionService.MutateConversionActions]. +message MutateConversionActionsRequest { + // Required. The ID of the customer whose conversion actions are being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on individual conversion actions. + repeated ConversionActionOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 3; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; +} + +// A single operation (create, update, remove) on a conversion action. +message ConversionActionOperation { + // FieldMask that determines which resource fields are modified in an update. + google.protobuf.FieldMask update_mask = 4; + + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new conversion + // action. + google.ads.googleads.v6.resources.ConversionAction create = 1; + + // Update operation: The conversion action is expected to have a valid + // resource name. + google.ads.googleads.v6.resources.ConversionAction update = 2; + + // Remove operation: A resource name for the removed conversion action is + // expected, in this format: + // + // `customers/{customer_id}/conversionActions/{conversion_action_id}` + string remove = 3; + } +} + +// Response message for [ConversionActionService.MutateConversionActions][google.ads.googleads.v6.services.ConversionActionService.MutateConversionActions]. +message MutateConversionActionsResponse { + // Errors that pertain to operation failures in the partial failure mode. + // Returned only when partial_failure = true and all errors occur inside the + // operations. If any errors occur outside the operations (e.g. auth errors), + // we return an RPC level error. + google.rpc.Status partial_failure_error = 3; + + // All results for the mutate. + repeated MutateConversionActionResult results = 2; +} + +// The result for the conversion action mutate. +message MutateConversionActionResult { + // Returned for successful operations. + string resource_name = 1; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/conversion_adjustment_upload_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/conversion_adjustment_upload_service.proto new file mode 100644 index 000000000..f33cfdb9d --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/conversion_adjustment_upload_service.proto @@ -0,0 +1,181 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/enums/conversion_adjustment_type.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "ConversionAdjustmentUploadServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Service to upload conversion adjustments. +service ConversionAdjustmentUploadService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Processes the given conversion adjustments. + rpc UploadConversionAdjustments(UploadConversionAdjustmentsRequest) returns (UploadConversionAdjustmentsResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}:uploadConversionAdjustments" + body: "*" + }; + option (google.api.method_signature) = "customer_id,conversion_adjustments,partial_failure"; + } +} + +// Request message for +// [ConversionAdjustmentUploadService.UploadConversionAdjustments][google.ads.googleads.v6.services.ConversionAdjustmentUploadService.UploadConversionAdjustments]. +message UploadConversionAdjustmentsRequest { + // Required. The ID of the customer performing the upload. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The conversion adjustments that are being uploaded. + repeated ConversionAdjustment conversion_adjustments = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried out + // in one transaction if and only if they are all valid. This should always be + // set to true. + // See + // https://developers.google.com/google-ads/api/docs/best-practices/partial-failures + // for more information about partial failure. + bool partial_failure = 3 [(google.api.field_behavior) = REQUIRED]; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; +} + +// Response message for +// [ConversionAdjustmentUploadService.UploadConversionAdjustments][google.ads.googleads.v6.services.ConversionAdjustmentUploadService.UploadConversionAdjustments]. +message UploadConversionAdjustmentsResponse { + // Errors that pertain to conversion adjustment failures in the partial + // failure mode. Returned when all errors occur inside the adjustments. If any + // errors occur outside the adjustments (e.g. auth errors), we return an RPC + // level error. + // See + // https://developers.google.com/google-ads/api/docs/best-practices/partial-failures + // for more information about partial failure. + google.rpc.Status partial_failure_error = 1; + + // Returned for successfully processed conversion adjustments. Proto will be + // empty for rows that received an error. Results are not returned when + // validate_only is true. + repeated ConversionAdjustmentResult results = 2; +} + +// A conversion adjustment. +message ConversionAdjustment { + // Resource name of the conversion action associated with this conversion + // adjustment. Note: Although this resource name consists of a customer id and + // a conversion action id, validation will ignore the customer id and use the + // conversion action id as the sole identifier of the conversion action. + optional string conversion_action = 8; + + // The date time at which the adjustment occurred. Must be after the + // conversion_date_time. The timezone must be specified. The format is + // "yyyy-mm-dd hh:mm:ss+|-hh:mm", e.g. "2019-01-01 12:32:45-08:00". + optional string adjustment_date_time = 9; + + // The adjustment type. + google.ads.googleads.v6.enums.ConversionAdjustmentTypeEnum.ConversionAdjustmentType adjustment_type = 5; + + // Information needed to restate the conversion's value. + // Required for restatements. Should not be supplied for retractions. An error + // will be returned if provided for a retraction. + // NOTE: If you want to upload a second restatement with a different adjusted + // value, it must have a new, more recent, adjustment occurrence time. + // Otherwise, it will be treated as a duplicate of the previous restatement + // and ignored. + RestatementValue restatement_value = 6; + + // Identifies the conversion to be adjusted. + oneof conversion_identifier { + // Uniquely identifies a conversion that was reported without an order ID + // specified. + GclidDateTimePair gclid_date_time_pair = 1; + + // The order ID of the conversion to be adjusted. If the conversion was + // reported with an order ID specified, that order ID must be used as the + // identifier here. + string order_id = 7; + } +} + +// Contains information needed to restate a conversion's value. +message RestatementValue { + // The restated conversion value. This is the value of the conversion after + // restatement. For example, to change the value of a conversion from 100 to + // 70, an adjusted value of 70 should be reported. + // NOTE: If you want to upload a second restatement with a different adjusted + // value, it must have a new, more recent, adjustment occurrence time. + // Otherwise, it will be treated as a duplicate of the previous restatement + // and ignored. + optional double adjusted_value = 3; + + // The currency of the restated value. If not provided, then the default + // currency from the conversion action is used, and if that is not set then + // the account currency is used. This is the ISO 4217 3-character currency + // code e.g. USD or EUR. + optional string currency_code = 4; +} + +// Uniquely identifies a conversion that was reported without an order ID +// specified. +message GclidDateTimePair { + // Google click ID (gclid) associated with the original conversion for this + // adjustment. + optional string gclid = 3; + + // The date time at which the original conversion for this adjustment + // occurred. The timezone must be specified. The format is "yyyy-mm-dd + // hh:mm:ss+|-hh:mm", e.g. "2019-01-01 12:32:45-08:00". + optional string conversion_date_time = 4; +} + +// Information identifying a successfully processed ConversionAdjustment. +message ConversionAdjustmentResult { + // Resource name of the conversion action associated with this conversion + // adjustment. + optional string conversion_action = 7; + + // The date time at which the adjustment occurred. The format is + // "yyyy-mm-dd hh:mm:ss+|-hh:mm", e.g. "2019-01-01 12:32:45-08:00". + optional string adjustment_date_time = 8; + + // The adjustment type. + google.ads.googleads.v6.enums.ConversionAdjustmentTypeEnum.ConversionAdjustmentType adjustment_type = 5; + + // Identifies the conversion that was adjusted. + oneof conversion_identifier { + // Uniquely identifies a conversion that was reported without an order ID + // specified. + GclidDateTimePair gclid_date_time_pair = 1; + + // The order ID of the conversion that was adjusted. + string order_id = 6; + } +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/conversion_upload_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/conversion_upload_service.proto new file mode 100644 index 000000000..801365109 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/conversion_upload_service.proto @@ -0,0 +1,235 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "ConversionUploadServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Service to upload conversions. +service ConversionUploadService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Processes the given click conversions. + rpc UploadClickConversions(UploadClickConversionsRequest) returns (UploadClickConversionsResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}:uploadClickConversions" + body: "*" + }; + option (google.api.method_signature) = "customer_id,conversions,partial_failure"; + } + + // Processes the given call conversions. + rpc UploadCallConversions(UploadCallConversionsRequest) returns (UploadCallConversionsResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}:uploadCallConversions" + body: "*" + }; + option (google.api.method_signature) = "customer_id,conversions,partial_failure"; + } +} + +// Request message for [ConversionUploadService.UploadClickConversions][google.ads.googleads.v6.services.ConversionUploadService.UploadClickConversions]. +message UploadClickConversionsRequest { + // Required. The ID of the customer performing the upload. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The conversions that are being uploaded. + repeated ClickConversion conversions = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // This should always be set to true. + // See + // https://developers.google.com/google-ads/api/docs/best-practices/partial-failures + // for more information about partial failure. + bool partial_failure = 3 [(google.api.field_behavior) = REQUIRED]; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; +} + +// Response message for [ConversionUploadService.UploadClickConversions][google.ads.googleads.v6.services.ConversionUploadService.UploadClickConversions]. +message UploadClickConversionsResponse { + // Errors that pertain to conversion failures in the partial failure mode. + // Returned when all errors occur inside the conversions. If any errors occur + // outside the conversions (e.g. auth errors), we return an RPC level error. + // See + // https://developers.google.com/google-ads/api/docs/best-practices/partial-failures + // for more information about partial failure. + google.rpc.Status partial_failure_error = 1; + + // Returned for successfully processed conversions. Proto will be empty for + // rows that received an error. Results are not returned when validate_only is + // true. + repeated ClickConversionResult results = 2; +} + +// Request message for [ConversionUploadService.UploadCallConversions][google.ads.googleads.v6.services.ConversionUploadService.UploadCallConversions]. +message UploadCallConversionsRequest { + // Required. The ID of the customer performing the upload. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The conversions that are being uploaded. + repeated CallConversion conversions = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // This should always be set to true. + // See + // https://developers.google.com/google-ads/api/docs/best-practices/partial-failures + // for more information about partial failure. + bool partial_failure = 3 [(google.api.field_behavior) = REQUIRED]; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; +} + +// Response message for [ConversionUploadService.UploadCallConversions][google.ads.googleads.v6.services.ConversionUploadService.UploadCallConversions]. +message UploadCallConversionsResponse { + // Errors that pertain to conversion failures in the partial failure mode. + // Returned when all errors occur inside the conversions. If any errors occur + // outside the conversions (e.g. auth errors), we return an RPC level error. + // See + // https://developers.google.com/google-ads/api/docs/best-practices/partial-failures + // for more information about partial failure. + google.rpc.Status partial_failure_error = 1; + + // Returned for successfully processed conversions. Proto will be empty for + // rows that received an error. Results are not returned when validate_only is + // true. + repeated CallConversionResult results = 2; +} + +// A click conversion. +message ClickConversion { + // The Google click ID (gclid) associated with this conversion. + optional string gclid = 9; + + // Resource name of the conversion action associated with this conversion. + // Note: Although this resource name consists of a customer id and a + // conversion action id, validation will ignore the customer id and use the + // conversion action id as the sole identifier of the conversion action. + optional string conversion_action = 10; + + // The date time at which the conversion occurred. Must be after + // the click time. The timezone must be specified. The format is + // "yyyy-mm-dd hh:mm:ss+|-hh:mm", e.g. “2019-01-01 12:32:45-08:00”. + optional string conversion_date_time = 11; + + // The value of the conversion for the advertiser. + optional double conversion_value = 12; + + // Currency associated with the conversion value. This is the ISO 4217 + // 3-character currency code. For example: USD, EUR. + optional string currency_code = 13; + + // The order ID associated with the conversion. An order id can only be used + // for one conversion per conversion action. + optional string order_id = 14; + + // Additional data about externally attributed conversions. This field + // is required for conversions with an externally attributed conversion + // action, but should not be set otherwise. + ExternalAttributionData external_attribution_data = 7; +} + +// A call conversion. +message CallConversion { + // The caller id from which this call was placed. Caller id is expected to be + // in E.164 format with preceding '+' sign. e.g. "+16502531234". + optional string caller_id = 7; + + // The date time at which the call occurred. The timezone must be specified. + // The format is "yyyy-mm-dd hh:mm:ss+|-hh:mm", + // e.g. "2019-01-01 12:32:45-08:00". + optional string call_start_date_time = 8; + + // Resource name of the conversion action associated with this conversion. + // Note: Although this resource name consists of a customer id and a + // conversion action id, validation will ignore the customer id and use the + // conversion action id as the sole identifier of the conversion action. + optional string conversion_action = 9; + + // The date time at which the conversion occurred. Must be after the call + // time. The timezone must be specified. The format is + // "yyyy-mm-dd hh:mm:ss+|-hh:mm", e.g. "2019-01-01 12:32:45-08:00". + optional string conversion_date_time = 10; + + // The value of the conversion for the advertiser. + optional double conversion_value = 11; + + // Currency associated with the conversion value. This is the ISO 4217 + // 3-character currency code. For example: USD, EUR. + optional string currency_code = 12; +} + +// Contains additional information about externally attributed conversions. +message ExternalAttributionData { + // Represents the fraction of the conversion that is attributed to the + // Google Ads click. + optional double external_attribution_credit = 3; + + // Specifies the attribution model name. + optional string external_attribution_model = 4; +} + +// Identifying information for a successfully processed ClickConversion. +message ClickConversionResult { + // The Google Click ID (gclid) associated with this conversion. + optional string gclid = 4; + + // Resource name of the conversion action associated with this conversion. + optional string conversion_action = 5; + + // The date time at which the conversion occurred. The format is + // "yyyy-mm-dd hh:mm:ss+|-hh:mm", e.g. “2019-01-01 12:32:45-08:00”. + optional string conversion_date_time = 6; +} + +// Identifying information for a successfully processed CallConversionUpload. +message CallConversionResult { + // The caller id from which this call was placed. Caller id is expected to be + // in E.164 format with preceding '+' sign. + optional string caller_id = 5; + + // The date time at which the call occurred. The format is + // "yyyy-mm-dd hh:mm:ss+|-hh:mm", e.g. "2019-01-01 12:32:45-08:00". + optional string call_start_date_time = 6; + + // Resource name of the conversion action associated with this conversion. + optional string conversion_action = 7; + + // The date time at which the conversion occurred. The format is + // "yyyy-mm-dd hh:mm:ss+|-hh:mm", e.g. "2019-01-01 12:32:45-08:00". + optional string conversion_date_time = 8; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/currency_constant_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/currency_constant_service.proto new file mode 100644 index 000000000..731658d69 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/currency_constant_service.proto @@ -0,0 +1,57 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/currency_constant.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "CurrencyConstantServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Service to fetch currency constants. +service CurrencyConstantService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested currency constant. + rpc GetCurrencyConstant(GetCurrencyConstantRequest) returns (google.ads.googleads.v6.resources.CurrencyConstant) { + option (google.api.http) = { + get: "/v6/{resource_name=currencyConstants/*}" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for [CurrencyConstantService.GetCurrencyConstant][google.ads.googleads.v6.services.CurrencyConstantService.GetCurrencyConstant]. +message GetCurrencyConstantRequest { + // Required. Resource name of the currency constant to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CurrencyConstant" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/custom_audience_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/custom_audience_service.proto new file mode 100644 index 000000000..84cef88ce --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/custom_audience_service.proto @@ -0,0 +1,117 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/custom_audience.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "CustomAudienceServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Custom Audience service. + +// Service to manage custom audiences. +service CustomAudienceService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested custom audience in full detail. + rpc GetCustomAudience(GetCustomAudienceRequest) returns (google.ads.googleads.v6.resources.CustomAudience) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/customAudiences/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates or updates custom audiences. Operation statuses are returned. + rpc MutateCustomAudiences(MutateCustomAudiencesRequest) returns (MutateCustomAudiencesResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/customAudiences:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } +} + +// Request message for [CustomAudienceService.GetCustomAudience][google.ads.googleads.v6.services.CustomAudienceService.GetCustomAudience]. +message GetCustomAudienceRequest { + // Required. The resource name of the custom audience to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CustomAudience" + } + ]; +} + +// Request message for [CustomAudienceService.MutateCustomAudiences][google.ads.googleads.v6.services.CustomAudienceService.MutateCustomAudiences]. +message MutateCustomAudiencesRequest { + // Required. The ID of the customer whose custom audiences are being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on individual custom audiences. + repeated CustomAudienceOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 3; +} + +// A single operation (create, update) on a custom audience. +message CustomAudienceOperation { + // FieldMask that determines which resource fields are modified in an update. + google.protobuf.FieldMask update_mask = 4; + + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new custom + // audience. + google.ads.googleads.v6.resources.CustomAudience create = 1; + + // Update operation: The custom audience is expected to have a valid + // resource name. + google.ads.googleads.v6.resources.CustomAudience update = 2; + + // Remove operation: A resource name for the removed custom audience is + // expected, in this format: + // + // `customers/{customer_id}/customAudiences/{custom_audience_id}` + string remove = 3; + } +} + +// Response message for custom audience mutate. +message MutateCustomAudiencesResponse { + // All results for the mutate. + repeated MutateCustomAudienceResult results = 1; +} + +// The result for the custom audience mutate. +message MutateCustomAudienceResult { + // Returned for successful operations. + string resource_name = 1; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/custom_interest_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/custom_interest_service.proto new file mode 100644 index 000000000..bc152d0c0 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/custom_interest_service.proto @@ -0,0 +1,111 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/custom_interest.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "CustomInterestServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Custom Interest service. + +// Service to manage custom interests. +service CustomInterestService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested custom interest in full detail. + rpc GetCustomInterest(GetCustomInterestRequest) returns (google.ads.googleads.v6.resources.CustomInterest) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/customInterests/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates or updates custom interests. Operation statuses are returned. + rpc MutateCustomInterests(MutateCustomInterestsRequest) returns (MutateCustomInterestsResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/customInterests:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } +} + +// Request message for [CustomInterestService.GetCustomInterest][google.ads.googleads.v6.services.CustomInterestService.GetCustomInterest]. +message GetCustomInterestRequest { + // Required. The resource name of the custom interest to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CustomInterest" + } + ]; +} + +// Request message for [CustomInterestService.MutateCustomInterests][google.ads.googleads.v6.services.CustomInterestService.MutateCustomInterests]. +message MutateCustomInterestsRequest { + // Required. The ID of the customer whose custom interests are being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on individual custom interests. + repeated CustomInterestOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; +} + +// A single operation (create, update) on a custom interest. +message CustomInterestOperation { + // FieldMask that determines which resource fields are modified in an update. + google.protobuf.FieldMask update_mask = 4; + + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new custom + // interest. + google.ads.googleads.v6.resources.CustomInterest create = 1; + + // Update operation: The custom interest is expected to have a valid + // resource name. + google.ads.googleads.v6.resources.CustomInterest update = 2; + } +} + +// Response message for custom interest mutate. +message MutateCustomInterestsResponse { + // All results for the mutate. + repeated MutateCustomInterestResult results = 2; +} + +// The result for the custom interest mutate. +message MutateCustomInterestResult { + // Returned for successful operations. + string resource_name = 1; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/customer_client_link_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/customer_client_link_service.proto new file mode 100644 index 000000000..700eaa268 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/customer_client_link_service.proto @@ -0,0 +1,103 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/customer_client_link.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "CustomerClientLinkServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Service to manage customer client links. +service CustomerClientLinkService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested CustomerClientLink in full detail. + rpc GetCustomerClientLink(GetCustomerClientLinkRequest) returns (google.ads.googleads.v6.resources.CustomerClientLink) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/customerClientLinks/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates or updates a customer client link. Operation statuses are returned. + rpc MutateCustomerClientLink(MutateCustomerClientLinkRequest) returns (MutateCustomerClientLinkResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/customerClientLinks:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operation"; + } +} + +// Request message for [CustomerClientLinkService.GetCustomerClientLink][google.ads.googleads.v6.services.CustomerClientLinkService.GetCustomerClientLink]. +message GetCustomerClientLinkRequest { + // Required. The resource name of the customer client link to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CustomerClientLink" + } + ]; +} + +// Request message for [CustomerClientLinkService.MutateCustomerClientLink][google.ads.googleads.v6.services.CustomerClientLinkService.MutateCustomerClientLink]. +message MutateCustomerClientLinkRequest { + // Required. The ID of the customer whose customer link are being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The operation to perform on the individual CustomerClientLink. + CustomerClientLinkOperation operation = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// A single operation (create, update) on a CustomerClientLink. +message CustomerClientLinkOperation { + // FieldMask that determines which resource fields are modified in an update. + google.protobuf.FieldMask update_mask = 4; + + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new link. + google.ads.googleads.v6.resources.CustomerClientLink create = 1; + + // Update operation: The link is expected to have a valid resource name. + google.ads.googleads.v6.resources.CustomerClientLink update = 2; + } +} + +// Response message for a CustomerClientLink mutate. +message MutateCustomerClientLinkResponse { + // A result that identifies the resource affected by the mutate request. + MutateCustomerClientLinkResult result = 1; +} + +// The result for a single customer client link mutate. +message MutateCustomerClientLinkResult { + // Returned for successful operations. + string resource_name = 1; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/customer_client_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/customer_client_service.proto new file mode 100644 index 000000000..017c8a900 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/customer_client_service.proto @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/customer_client.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "CustomerClientServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Customer Client service. + +// Service to get clients in a customer's hierarchy. +service CustomerClientService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested client in full detail. + rpc GetCustomerClient(GetCustomerClientRequest) returns (google.ads.googleads.v6.resources.CustomerClient) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/customerClients/*}" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for [CustomerClientService.GetCustomerClient][google.ads.googleads.v6.services.CustomerClientService.GetCustomerClient]. +message GetCustomerClientRequest { + // Required. The resource name of the client to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CustomerClient" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/customer_extension_setting_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/customer_extension_setting_service.proto new file mode 100644 index 000000000..12d24dc71 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/customer_extension_setting_service.proto @@ -0,0 +1,135 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/customer_extension_setting.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "CustomerExtensionSettingServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the CustomerExtensionSetting service. + +// Service to manage customer extension settings. +service CustomerExtensionSettingService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested customer extension setting in full detail. + rpc GetCustomerExtensionSetting(GetCustomerExtensionSettingRequest) returns (google.ads.googleads.v6.resources.CustomerExtensionSetting) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/customerExtensionSettings/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates, updates, or removes customer extension settings. Operation + // statuses are returned. + rpc MutateCustomerExtensionSettings(MutateCustomerExtensionSettingsRequest) returns (MutateCustomerExtensionSettingsResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/customerExtensionSettings:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } +} + +// Request message for +// [CustomerExtensionSettingService.GetCustomerExtensionSetting][google.ads.googleads.v6.services.CustomerExtensionSettingService.GetCustomerExtensionSetting]. +message GetCustomerExtensionSettingRequest { + // Required. The resource name of the customer extension setting to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CustomerExtensionSetting" + } + ]; +} + +// Request message for +// [CustomerExtensionSettingService.MutateCustomerExtensionSettings][google.ads.googleads.v6.services.CustomerExtensionSettingService.MutateCustomerExtensionSettings]. +message MutateCustomerExtensionSettingsRequest { + // Required. The ID of the customer whose customer extension settings are being + // modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on individual customer extension + // settings. + repeated CustomerExtensionSettingOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 3; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; +} + +// A single operation (create, update, remove) on a customer extension setting. +message CustomerExtensionSettingOperation { + // FieldMask that determines which resource fields are modified in an update. + google.protobuf.FieldMask update_mask = 4; + + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new customer + // extension setting. + google.ads.googleads.v6.resources.CustomerExtensionSetting create = 1; + + // Update operation: The customer extension setting is expected to have a + // valid resource name. + google.ads.googleads.v6.resources.CustomerExtensionSetting update = 2; + + // Remove operation: A resource name for the removed customer extension + // setting is expected, in this format: + // + // `customers/{customer_id}/customerExtensionSettings/{extension_type}` + string remove = 3; + } +} + +// Response message for a customer extension setting mutate. +message MutateCustomerExtensionSettingsResponse { + // Errors that pertain to operation failures in the partial failure mode. + // Returned only when partial_failure = true and all errors occur inside the + // operations. If any errors occur outside the operations (e.g. auth errors), + // we return an RPC level error. + google.rpc.Status partial_failure_error = 3; + + // All results for the mutate. + repeated MutateCustomerExtensionSettingResult results = 2; +} + +// The result for the customer extension setting mutate. +message MutateCustomerExtensionSettingResult { + // Returned for successful operations. + string resource_name = 1; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/customer_feed_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/customer_feed_service.proto new file mode 100644 index 000000000..66c2002db --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/customer_feed_service.proto @@ -0,0 +1,140 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/enums/response_content_type.proto"; +import "google/ads/googleads/v6/resources/customer_feed.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "CustomerFeedServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the CustomerFeed service. + +// Service to manage customer feeds. +service CustomerFeedService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested customer feed in full detail. + rpc GetCustomerFeed(GetCustomerFeedRequest) returns (google.ads.googleads.v6.resources.CustomerFeed) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/customerFeeds/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates, updates, or removes customer feeds. Operation statuses are + // returned. + rpc MutateCustomerFeeds(MutateCustomerFeedsRequest) returns (MutateCustomerFeedsResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/customerFeeds:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } +} + +// Request message for [CustomerFeedService.GetCustomerFeed][google.ads.googleads.v6.services.CustomerFeedService.GetCustomerFeed]. +message GetCustomerFeedRequest { + // Required. The resource name of the customer feed to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CustomerFeed" + } + ]; +} + +// Request message for [CustomerFeedService.MutateCustomerFeeds][google.ads.googleads.v6.services.CustomerFeedService.MutateCustomerFeeds]. +message MutateCustomerFeedsRequest { + // Required. The ID of the customer whose customer feeds are being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on individual customer feeds. + repeated CustomerFeedOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 3; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; + + // The response content type setting. Determines whether the mutable resource + // or just the resource name should be returned post mutation. + google.ads.googleads.v6.enums.ResponseContentTypeEnum.ResponseContentType response_content_type = 5; +} + +// A single operation (create, update, remove) on a customer feed. +message CustomerFeedOperation { + // FieldMask that determines which resource fields are modified in an update. + google.protobuf.FieldMask update_mask = 4; + + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new customer feed. + google.ads.googleads.v6.resources.CustomerFeed create = 1; + + // Update operation: The customer feed is expected to have a valid resource + // name. + google.ads.googleads.v6.resources.CustomerFeed update = 2; + + // Remove operation: A resource name for the removed customer feed is + // expected, in this format: + // + // `customers/{customer_id}/customerFeeds/{feed_id}` + string remove = 3; + } +} + +// Response message for a customer feed mutate. +message MutateCustomerFeedsResponse { + // Errors that pertain to operation failures in the partial failure mode. + // Returned only when partial_failure = true and all errors occur inside the + // operations. If any errors occur outside the operations (e.g. auth errors), + // we return an RPC level error. + google.rpc.Status partial_failure_error = 3; + + // All results for the mutate. + repeated MutateCustomerFeedResult results = 2; +} + +// The result for the customer feed mutate. +message MutateCustomerFeedResult { + // Returned for successful operations. + string resource_name = 1; + + // The mutated customer feed with only mutable fields after mutate. The field + // will only be returned when response_content_type is set to + // "MUTABLE_RESOURCE". + google.ads.googleads.v6.resources.CustomerFeed customer_feed = 2; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/customer_label_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/customer_label_service.proto new file mode 100644 index 000000000..4b0b354d0 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/customer_label_service.proto @@ -0,0 +1,123 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/customer_label.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "CustomerLabelServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Customer Label service. + +// Service to manage labels on customers. +service CustomerLabelService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested customer-label relationship in full detail. + rpc GetCustomerLabel(GetCustomerLabelRequest) returns (google.ads.googleads.v6.resources.CustomerLabel) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/customerLabels/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates and removes customer-label relationships. + // Operation statuses are returned. + rpc MutateCustomerLabels(MutateCustomerLabelsRequest) returns (MutateCustomerLabelsResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/customerLabels:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } +} + +// Request message for [CustomerLabelService.GetCustomerLabel][google.ads.googleads.v6.services.CustomerLabelService.GetCustomerLabel]. +message GetCustomerLabelRequest { + // Required. The resource name of the customer-label relationship to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CustomerLabel" + } + ]; +} + +// Request message for [CustomerLabelService.MutateCustomerLabels][google.ads.googleads.v6.services.CustomerLabelService.MutateCustomerLabels]. +message MutateCustomerLabelsRequest { + // Required. ID of the customer whose customer-label relationships are being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on customer-label relationships. + repeated CustomerLabelOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 3; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; +} + +// A single operation (create, remove) on a customer-label relationship. +message CustomerLabelOperation { + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new customer-label + // relationship. + google.ads.googleads.v6.resources.CustomerLabel create = 1; + + // Remove operation: A resource name for the customer-label relationship + // being removed, in this format: + // + // `customers/{customer_id}/customerLabels/{label_id}` + string remove = 2; + } +} + +// Response message for a customer labels mutate. +message MutateCustomerLabelsResponse { + // Errors that pertain to operation failures in the partial failure mode. + // Returned only when partial_failure = true and all errors occur inside the + // operations. If any errors occur outside the operations (e.g. auth errors), + // we return an RPC level error. + google.rpc.Status partial_failure_error = 3; + + // All results for the mutate. + repeated MutateCustomerLabelResult results = 2; +} + +// The result for a customer label mutate. +message MutateCustomerLabelResult { + // Returned for successful operations. + string resource_name = 1; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/customer_manager_link_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/customer_manager_link_service.proto new file mode 100644 index 000000000..44e38945c --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/customer_manager_link_service.proto @@ -0,0 +1,140 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/customer_manager_link.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "CustomerManagerLinkServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Service to manage customer-manager links. +service CustomerManagerLinkService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested CustomerManagerLink in full detail. + rpc GetCustomerManagerLink(GetCustomerManagerLinkRequest) returns (google.ads.googleads.v6.resources.CustomerManagerLink) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/customerManagerLinks/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates or updates customer manager links. Operation statuses are returned. + rpc MutateCustomerManagerLink(MutateCustomerManagerLinkRequest) returns (MutateCustomerManagerLinkResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/customerManagerLinks:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } + + // Moves a client customer to a new manager customer. + // This simplifies the complex request that requires two operations to move + // a client customer to a new manager. i.e: + // 1. Update operation with Status INACTIVE (previous manager) and, + // 2. Update operation with Status ACTIVE (new manager). + rpc MoveManagerLink(MoveManagerLinkRequest) returns (MoveManagerLinkResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/customerManagerLinks:moveManagerLink" + body: "*" + }; + option (google.api.method_signature) = "customer_id,previous_customer_manager_link,new_manager"; + } +} + +// Request message for [CustomerManagerLinkService.GetCustomerManagerLink][google.ads.googleads.v6.services.CustomerManagerLinkService.GetCustomerManagerLink]. +message GetCustomerManagerLinkRequest { + // Required. The resource name of the CustomerManagerLink to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CustomerManagerLink" + } + ]; +} + +// Request message for [CustomerManagerLinkService.MutateCustomerManagerLink][google.ads.googleads.v6.services.CustomerManagerLinkService.MutateCustomerManagerLink]. +message MutateCustomerManagerLinkRequest { + // Required. The ID of the customer whose customer manager links are being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on individual customer manager links. + repeated CustomerManagerLinkOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for [CustomerManagerLinkService.MoveManagerLink][google.ads.googleads.v6.services.CustomerManagerLinkService.MoveManagerLink]. +message MoveManagerLinkRequest { + // Required. The ID of the client customer that is being moved. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The resource name of the previous CustomerManagerLink. + // The resource name has the form: + // `customers/{customer_id}/customerManagerLinks/{manager_customer_id}~{manager_link_id}` + string previous_customer_manager_link = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The resource name of the new manager customer that the client wants to move + // to. Customer resource names have the format: "customers/{customer_id}" + string new_manager = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Updates the status of a CustomerManagerLink. +// The following actions are possible: +// 1. Update operation with status ACTIVE accepts a pending invitation. +// 2. Update operation with status REFUSED declines a pending invitation. +// 3. Update operation with status INACTIVE terminates link to manager. +message CustomerManagerLinkOperation { + // FieldMask that determines which resource fields are modified in an update. + google.protobuf.FieldMask update_mask = 4; + + // The mutate operation. + oneof operation { + // Update operation: The link is expected to have a valid resource name. + google.ads.googleads.v6.resources.CustomerManagerLink update = 2; + } +} + +// Response message for a CustomerManagerLink mutate. +message MutateCustomerManagerLinkResponse { + // A result that identifies the resource affected by the mutate request. + repeated MutateCustomerManagerLinkResult results = 1; +} + +// Response message for a CustomerManagerLink moveManagerLink. +message MoveManagerLinkResponse { + // Returned for successful operations. Represents a CustomerManagerLink + // resource of the newly created link between client customer and new manager + // customer. + string resource_name = 1; +} + +// The result for the customer manager link mutate. +message MutateCustomerManagerLinkResult { + // Returned for successful operations. + string resource_name = 1; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/customer_negative_criterion_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/customer_negative_criterion_service.proto new file mode 100644 index 000000000..d912074ce --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/customer_negative_criterion_service.proto @@ -0,0 +1,132 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/enums/response_content_type.proto"; +import "google/ads/googleads/v6/resources/customer_negative_criterion.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "CustomerNegativeCriterionServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Customer Negative Criterion service. + +// Service to manage customer negative criteria. +service CustomerNegativeCriterionService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested criterion in full detail. + rpc GetCustomerNegativeCriterion(GetCustomerNegativeCriterionRequest) returns (google.ads.googleads.v6.resources.CustomerNegativeCriterion) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/customerNegativeCriteria/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates or removes criteria. Operation statuses are returned. + rpc MutateCustomerNegativeCriteria(MutateCustomerNegativeCriteriaRequest) returns (MutateCustomerNegativeCriteriaResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/customerNegativeCriteria:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } +} + +// Request message for +// [CustomerNegativeCriterionService.GetCustomerNegativeCriterion][google.ads.googleads.v6.services.CustomerNegativeCriterionService.GetCustomerNegativeCriterion]. +message GetCustomerNegativeCriterionRequest { + // Required. The resource name of the criterion to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CustomerNegativeCriterion" + } + ]; +} + +// Request message for +// [CustomerNegativeCriterionService.MutateCustomerNegativeCriteria][google.ads.googleads.v6.services.CustomerNegativeCriterionService.MutateCustomerNegativeCriteria]. +message MutateCustomerNegativeCriteriaRequest { + // Required. The ID of the customer whose criteria are being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on individual criteria. + repeated CustomerNegativeCriterionOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 3; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; + + // The response content type setting. Determines whether the mutable resource + // or just the resource name should be returned post mutation. + google.ads.googleads.v6.enums.ResponseContentTypeEnum.ResponseContentType response_content_type = 5; +} + +// A single operation (create or remove) on a customer level negative criterion. +message CustomerNegativeCriterionOperation { + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new criterion. + google.ads.googleads.v6.resources.CustomerNegativeCriterion create = 1; + + // Remove operation: A resource name for the removed criterion is expected, + // in this format: + // + // `customers/{customer_id}/customerNegativeCriteria/{criterion_id}` + string remove = 2; + } +} + +// Response message for customer negative criterion mutate. +message MutateCustomerNegativeCriteriaResponse { + // Errors that pertain to operation failures in the partial failure mode. + // Returned only when partial_failure = true and all errors occur inside the + // operations. If any errors occur outside the operations (e.g. auth errors), + // we return an RPC level error. + google.rpc.Status partial_failure_error = 3; + + // All results for the mutate. + repeated MutateCustomerNegativeCriteriaResult results = 2; +} + +// The result for the criterion mutate. +message MutateCustomerNegativeCriteriaResult { + // Returned for successful operations. + string resource_name = 1; + + // The mutated criterion with only mutable fields after mutate. The field will + // only be returned when response_content_type is set to "MUTABLE_RESOURCE". + google.ads.googleads.v6.resources.CustomerNegativeCriterion customer_negative_criterion = 2; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/customer_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/customer_service.proto new file mode 100644 index 000000000..056e4c4bb --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/customer_service.proto @@ -0,0 +1,170 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/enums/access_role.proto"; +import "google/ads/googleads/v6/enums/response_content_type.proto"; +import "google/ads/googleads/v6/resources/customer.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "CustomerServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Customer service. + +// Service to manage customers. +service CustomerService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested customer in full detail. + rpc GetCustomer(GetCustomerRequest) returns (google.ads.googleads.v6.resources.Customer) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Updates a customer. Operation statuses are returned. + rpc MutateCustomer(MutateCustomerRequest) returns (MutateCustomerResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operation"; + } + + // Returns resource names of customers directly accessible by the + // user authenticating the call. + rpc ListAccessibleCustomers(ListAccessibleCustomersRequest) returns (ListAccessibleCustomersResponse) { + option (google.api.http) = { + get: "/v6/customers:listAccessibleCustomers" + }; + } + + // Creates a new client under manager. The new client customer is returned. + rpc CreateCustomerClient(CreateCustomerClientRequest) returns (CreateCustomerClientResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}:createCustomerClient" + body: "*" + }; + option (google.api.method_signature) = "customer_id,customer_client"; + } +} + +// Request message for [CustomerService.GetCustomer][google.ads.googleads.v6.services.CustomerService.GetCustomer]. +message GetCustomerRequest { + // Required. The resource name of the customer to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Customer" + } + ]; +} + +// Request message for [CustomerService.MutateCustomer][google.ads.googleads.v6.services.CustomerService.MutateCustomer]. +message MutateCustomerRequest { + // Required. The ID of the customer being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The operation to perform on the customer + CustomerOperation operation = 4 [(google.api.field_behavior) = REQUIRED]; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 5; + + // The response content type setting. Determines whether the mutable resource + // or just the resource name should be returned post mutation. + google.ads.googleads.v6.enums.ResponseContentTypeEnum.ResponseContentType response_content_type = 6; +} + +// Request message for [CustomerService.CreateCustomerClient][google.ads.googleads.v6.services.CustomerService.CreateCustomerClient]. +message CreateCustomerClientRequest { + // Required. The ID of the Manager under whom client customer is being created. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The new client customer to create. The resource name on this customer + // will be ignored. + google.ads.googleads.v6.resources.Customer customer_client = 2 [(google.api.field_behavior) = REQUIRED]; + + // Email address of the user who should be invited on the created client + // customer. Accessible only to customers on the allow-list. + optional string email_address = 5; + + // The proposed role of user on the created client customer. + // Accessible only to customers on the allow-list. + google.ads.googleads.v6.enums.AccessRoleEnum.AccessRole access_role = 4; +} + +// A single update on a customer. +message CustomerOperation { + // Mutate operation. Only updates are supported for customer. + google.ads.googleads.v6.resources.Customer update = 1; + + // FieldMask that determines which resource fields are modified in an update. + google.protobuf.FieldMask update_mask = 2; +} + +// Response message for CreateCustomerClient mutate. +message CreateCustomerClientResponse { + // The resource name of the newly created customer client. + string resource_name = 2; + + // Link for inviting user to access the created customer. Accessible to + // allowlisted customers only. + string invitation_link = 3; +} + +// Response message for customer mutate. +message MutateCustomerResponse { + // Result for the mutate. + MutateCustomerResult result = 2; +} + +// The result for the customer mutate. +message MutateCustomerResult { + // Returned for successful operations. + string resource_name = 1; + + // The mutated customer with only mutable fields after mutate. The fields will + // only be returned when response_content_type is set to "MUTABLE_RESOURCE". + google.ads.googleads.v6.resources.Customer customer = 2; +} + +// Request message for [CustomerService.ListAccessibleCustomers][google.ads.googleads.v6.services.CustomerService.ListAccessibleCustomers]. +message ListAccessibleCustomersRequest { + +} + +// Response message for [CustomerService.ListAccessibleCustomers][google.ads.googleads.v6.services.CustomerService.ListAccessibleCustomers]. +message ListAccessibleCustomersResponse { + // Resource name of customers directly accessible by the + // user authenticating the call. + repeated string resource_names = 1; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/customer_user_access_invitation_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/customer_user_access_invitation_service.proto new file mode 100644 index 000000000..a454ca7d7 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/customer_user_access_invitation_service.proto @@ -0,0 +1,108 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/customer_user_access_invitation.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "CustomerUserAccessInvitationServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the CustomerUserAccessInvitation service. + +// This service manages the access invitation extended to users for a given +// customer. +service CustomerUserAccessInvitationService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested access invitation in full detail. + rpc GetCustomerUserAccessInvitation(GetCustomerUserAccessInvitationRequest) returns (google.ads.googleads.v6.resources.CustomerUserAccessInvitation) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/customerUserAccessInvitations/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates or removes an access invitation. + rpc MutateCustomerUserAccessInvitation(MutateCustomerUserAccessInvitationRequest) returns (MutateCustomerUserAccessInvitationResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/customerUserAccessInvitations:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operation"; + } +} + +// Request message for +// [CustomerUserAccessInvitation.GetCustomerUserAccessInvitation][] +message GetCustomerUserAccessInvitationRequest { + // Required. Resource name of the access invitation. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CustomerUserAccessInvitation" + } + ]; +} + +// Request message for +// [CustomerUserAccessInvitation.MutateCustomerUserAccessInvitation][] +message MutateCustomerUserAccessInvitationRequest { + // Required. The ID of the customer whose access invitation is being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The operation to perform on the access invitation + CustomerUserAccessInvitationOperation operation = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// A single operation (create or remove) on customer user access invitation. +message CustomerUserAccessInvitationOperation { + // The mutate operation + oneof operation { + // Create operation: No resource name is expected for the new access + // invitation. + google.ads.googleads.v6.resources.CustomerUserAccessInvitation create = 1; + + // Remove operation: A resource name for the revoke invitation is + // expected, in this format: + // + // `customers/{customer_id}/customerUserAccessInvitations/{invitation_id}` + string remove = 2; + } +} + +// Response message for access invitation mutate. +message MutateCustomerUserAccessInvitationResponse { + // Result for the mutate. + MutateCustomerUserAccessInvitationResult result = 1; +} + +// The result for the access invitation mutate. +message MutateCustomerUserAccessInvitationResult { + // Returned for successful operations. + string resource_name = 1; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/customer_user_access_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/customer_user_access_service.proto new file mode 100644 index 000000000..17f2c7494 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/customer_user_access_service.proto @@ -0,0 +1,110 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/customer_user_access.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "CustomerUserAccessServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// This service manages the permissions of a user on a given customer. +service CustomerUserAccessService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the CustomerUserAccess in full detail. + rpc GetCustomerUserAccess(GetCustomerUserAccessRequest) returns (google.ads.googleads.v6.resources.CustomerUserAccess) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/customerUserAccesses/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Updates, removes permission of a user on a given customer. Operation + // statuses are returned. + rpc MutateCustomerUserAccess(MutateCustomerUserAccessRequest) returns (MutateCustomerUserAccessResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/customerUserAccesses:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operation"; + } +} + +// Request message for +// [CustomerUserAccessService.GetCustomerUserAccess][google.ads.googleads.v6.services.CustomerUserAccessService.GetCustomerUserAccess]. +message GetCustomerUserAccessRequest { + // Required. Resource name of the customer user access. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/CustomerUserAccess" + } + ]; +} + +// Mutate Request for +// [CustomerUserAccessService.MutateCustomerUserAccess][google.ads.googleads.v6.services.CustomerUserAccessService.MutateCustomerUserAccess]. +message MutateCustomerUserAccessRequest { + // Required. The ID of the customer being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The operation to perform on the customer + CustomerUserAccessOperation operation = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// A single operation (update, remove) on customer user access. +message CustomerUserAccessOperation { + // FieldMask that determines which resource fields are modified in an update. + google.protobuf.FieldMask update_mask = 3; + + // The mutate operation. + oneof operation { + // Update operation: The customer user access is expected to have a valid + // resource name. + google.ads.googleads.v6.resources.CustomerUserAccess update = 1; + + // Remove operation: A resource name for the removed access is + // expected, in this format: + // + // `customers/{customer_id}/customerUserAccesses/{CustomerUserAccess.user_id}` + string remove = 2; + } +} + +// Response message for customer user access mutate. +message MutateCustomerUserAccessResponse { + // Result for the mutate. + MutateCustomerUserAccessResult result = 1; +} + +// The result for the customer user access mutate. +message MutateCustomerUserAccessResult { + // Returned for successful operations. + string resource_name = 1; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/detail_placement_view_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/detail_placement_view_service.proto new file mode 100644 index 000000000..f5e50c3e0 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/detail_placement_view_service.proto @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/detail_placement_view.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "DetailPlacementViewServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Detail Placement View service. + +// Service to fetch Detail Placement views. +service DetailPlacementViewService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested Detail Placement view in full detail. + rpc GetDetailPlacementView(GetDetailPlacementViewRequest) returns (google.ads.googleads.v6.resources.DetailPlacementView) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/detailPlacementViews/*}" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for [DetailPlacementViewService.GetDetailPlacementView][google.ads.googleads.v6.services.DetailPlacementViewService.GetDetailPlacementView]. +message GetDetailPlacementViewRequest { + // Required. The resource name of the Detail Placement view to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/DetailPlacementView" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/display_keyword_view_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/display_keyword_view_service.proto new file mode 100644 index 000000000..b6d197a62 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/display_keyword_view_service.proto @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/display_keyword_view.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "DisplayKeywordViewServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Display Keyword View service. + +// Service to manage display keyword views. +service DisplayKeywordViewService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested display keyword view in full detail. + rpc GetDisplayKeywordView(GetDisplayKeywordViewRequest) returns (google.ads.googleads.v6.resources.DisplayKeywordView) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/displayKeywordViews/*}" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for [DisplayKeywordViewService.GetDisplayKeywordView][google.ads.googleads.v6.services.DisplayKeywordViewService.GetDisplayKeywordView]. +message GetDisplayKeywordViewRequest { + // Required. The resource name of the display keyword view to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/DisplayKeywordView" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/distance_view_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/distance_view_service.proto new file mode 100644 index 000000000..b511874a9 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/distance_view_service.proto @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/distance_view.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "DistanceViewServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Distance View service. + +// Service to fetch distance views. +service DistanceViewService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the attributes of the requested distance view. + rpc GetDistanceView(GetDistanceViewRequest) returns (google.ads.googleads.v6.resources.DistanceView) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/distanceViews/*}" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for [DistanceViewService.GetDistanceView][google.ads.googleads.v6.services.DistanceViewService.GetDistanceView]. +message GetDistanceViewRequest { + // Required. The resource name of the distance view to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/DistanceView" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/domain_category_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/domain_category_service.proto new file mode 100644 index 000000000..eda3075bd --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/domain_category_service.proto @@ -0,0 +1,60 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/domain_category.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "DomainCategoryServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the DomainCategory Service. + +// Service to fetch domain categories. +service DomainCategoryService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested domain category. + rpc GetDomainCategory(GetDomainCategoryRequest) returns (google.ads.googleads.v6.resources.DomainCategory) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/domainCategories/*}" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for +// [DomainCategoryService.GetDomainCategory][google.ads.googleads.v6.services.DomainCategoryService.GetDomainCategory]. +message GetDomainCategoryRequest { + // Required. Resource name of the domain category to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/DomainCategory" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/dynamic_search_ads_search_term_view_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/dynamic_search_ads_search_term_view_service.proto new file mode 100644 index 000000000..9de256e0f --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/dynamic_search_ads_search_term_view_service.proto @@ -0,0 +1,60 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/dynamic_search_ads_search_term_view.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "DynamicSearchAdsSearchTermViewServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Dynamic Search Ads Search Term View service. + +// Service to fetch dynamic search ads views. +service DynamicSearchAdsSearchTermViewService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested dynamic search ads search term view in full detail. + rpc GetDynamicSearchAdsSearchTermView(GetDynamicSearchAdsSearchTermViewRequest) returns (google.ads.googleads.v6.resources.DynamicSearchAdsSearchTermView) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/dynamicSearchAdsSearchTermViews/*}" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for +// [DynamicSearchAdsSearchTermViewService.GetDynamicSearchAdsSearchTermView][google.ads.googleads.v6.services.DynamicSearchAdsSearchTermViewService.GetDynamicSearchAdsSearchTermView]. +message GetDynamicSearchAdsSearchTermViewRequest { + // Required. The resource name of the dynamic search ads search term view to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/DynamicSearchAdsSearchTermView" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/expanded_landing_page_view_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/expanded_landing_page_view_service.proto new file mode 100644 index 000000000..c45a7cb70 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/expanded_landing_page_view_service.proto @@ -0,0 +1,60 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/expanded_landing_page_view.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "ExpandedLandingPageViewServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the expanded landing page view service. + +// Service to fetch expanded landing page views. +service ExpandedLandingPageViewService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested expanded landing page view in full detail. + rpc GetExpandedLandingPageView(GetExpandedLandingPageViewRequest) returns (google.ads.googleads.v6.resources.ExpandedLandingPageView) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/expandedLandingPageViews/*}" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for +// [ExpandedLandingPageViewService.GetExpandedLandingPageView][google.ads.googleads.v6.services.ExpandedLandingPageViewService.GetExpandedLandingPageView]. +message GetExpandedLandingPageViewRequest { + // Required. The resource name of the expanded landing page view to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/ExpandedLandingPageView" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/extension_feed_item_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/extension_feed_item_service.proto new file mode 100644 index 000000000..9147708d1 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/extension_feed_item_service.proto @@ -0,0 +1,142 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/enums/response_content_type.proto"; +import "google/ads/googleads/v6/resources/extension_feed_item.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "ExtensionFeedItemServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the ExtensionFeedItem service. + +// Service to manage extension feed items. +service ExtensionFeedItemService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested extension feed item in full detail. + rpc GetExtensionFeedItem(GetExtensionFeedItemRequest) returns (google.ads.googleads.v6.resources.ExtensionFeedItem) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/extensionFeedItems/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates, updates, or removes extension feed items. Operation + // statuses are returned. + rpc MutateExtensionFeedItems(MutateExtensionFeedItemsRequest) returns (MutateExtensionFeedItemsResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/extensionFeedItems:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } +} + +// Request message for [ExtensionFeedItemService.GetExtensionFeedItem][google.ads.googleads.v6.services.ExtensionFeedItemService.GetExtensionFeedItem]. +message GetExtensionFeedItemRequest { + // Required. The resource name of the extension feed item to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/ExtensionFeedItem" + } + ]; +} + +// Request message for [ExtensionFeedItemService.MutateExtensionFeedItems][google.ads.googleads.v6.services.ExtensionFeedItemService.MutateExtensionFeedItems]. +message MutateExtensionFeedItemsRequest { + // Required. The ID of the customer whose extension feed items are being + // modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on individual extension feed items. + repeated ExtensionFeedItemOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 3; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; + + // The response content type setting. Determines whether the mutable resource + // or just the resource name should be returned post mutation. + google.ads.googleads.v6.enums.ResponseContentTypeEnum.ResponseContentType response_content_type = 5; +} + +// A single operation (create, update, remove) on an extension feed item. +message ExtensionFeedItemOperation { + // FieldMask that determines which resource fields are modified in an update. + google.protobuf.FieldMask update_mask = 4; + + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new extension + // feed item. + google.ads.googleads.v6.resources.ExtensionFeedItem create = 1; + + // Update operation: The extension feed item is expected to have a + // valid resource name. + google.ads.googleads.v6.resources.ExtensionFeedItem update = 2; + + // Remove operation: A resource name for the removed extension feed item + // is expected, in this format: + // + // `customers/{customer_id}/extensionFeedItems/{feed_item_id}` + string remove = 3; + } +} + +// Response message for an extension feed item mutate. +message MutateExtensionFeedItemsResponse { + // Errors that pertain to operation failures in the partial failure mode. + // Returned only when partial_failure = true and all errors occur inside the + // operations. If any errors occur outside the operations (e.g. auth errors), + // we return an RPC level error. + google.rpc.Status partial_failure_error = 3; + + // All results for the mutate. + repeated MutateExtensionFeedItemResult results = 2; +} + +// The result for the extension feed item mutate. +message MutateExtensionFeedItemResult { + // Returned for successful operations. + string resource_name = 1; + + // The mutated extension feed item with only mutable fields after mutate. The + // field will only be returned when response_content_type is set to + // "MUTABLE_RESOURCE". + google.ads.googleads.v6.resources.ExtensionFeedItem extension_feed_item = 2; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/feed_item_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/feed_item_service.proto new file mode 100644 index 000000000..1054fdb6f --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/feed_item_service.proto @@ -0,0 +1,139 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/enums/response_content_type.proto"; +import "google/ads/googleads/v6/resources/feed_item.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "FeedItemServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the FeedItem service. + +// Service to manage feed items. +service FeedItemService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested feed item in full detail. + rpc GetFeedItem(GetFeedItemRequest) returns (google.ads.googleads.v6.resources.FeedItem) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/feedItems/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates, updates, or removes feed items. Operation statuses are + // returned. + rpc MutateFeedItems(MutateFeedItemsRequest) returns (MutateFeedItemsResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/feedItems:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } +} + +// Request message for [FeedItemService.GetFeedItem][google.ads.googleads.v6.services.FeedItemService.GetFeedItem]. +message GetFeedItemRequest { + // Required. The resource name of the feed item to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/FeedItem" + } + ]; +} + +// Request message for [FeedItemService.MutateFeedItems][google.ads.googleads.v6.services.FeedItemService.MutateFeedItems]. +message MutateFeedItemsRequest { + // Required. The ID of the customer whose feed items are being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on individual feed items. + repeated FeedItemOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 3; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; + + // The response content type setting. Determines whether the mutable resource + // or just the resource name should be returned post mutation. + google.ads.googleads.v6.enums.ResponseContentTypeEnum.ResponseContentType response_content_type = 5; +} + +// A single operation (create, update, remove) on an feed item. +message FeedItemOperation { + // FieldMask that determines which resource fields are modified in an update. + google.protobuf.FieldMask update_mask = 4; + + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new feed item. + google.ads.googleads.v6.resources.FeedItem create = 1; + + // Update operation: The feed item is expected to have a valid resource + // name. + google.ads.googleads.v6.resources.FeedItem update = 2; + + // Remove operation: A resource name for the removed feed item is + // expected, in this format: + // + // `customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}` + string remove = 3; + } +} + +// Response message for an feed item mutate. +message MutateFeedItemsResponse { + // Errors that pertain to operation failures in the partial failure mode. + // Returned only when partial_failure = true and all errors occur inside the + // operations. If any errors occur outside the operations (e.g. auth errors), + // we return an RPC level error. + google.rpc.Status partial_failure_error = 3; + + // All results for the mutate. + repeated MutateFeedItemResult results = 2; +} + +// The result for the feed item mutate. +message MutateFeedItemResult { + // Returned for successful operations. + string resource_name = 1; + + // The mutated feed item with only mutable fields after mutate. The field will + // only be returned when response_content_type is set to "MUTABLE_RESOURCE". + google.ads.googleads.v6.resources.FeedItem feed_item = 2; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/feed_item_set_link_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/feed_item_set_link_service.proto new file mode 100644 index 000000000..f87c7e29c --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/feed_item_set_link_service.proto @@ -0,0 +1,115 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/feed_item_set_link.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "FeedItemSetLinkServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the FeedItemSetLink service. + +// Service to manage feed item set links. +service FeedItemSetLinkService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested feed item set link in full detail. + rpc GetFeedItemSetLink(GetFeedItemSetLinkRequest) returns (google.ads.googleads.v6.resources.FeedItemSetLink) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/feedItemSetLinks/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates, updates, or removes feed item set links. + rpc MutateFeedItemSetLinks(MutateFeedItemSetLinksRequest) returns (MutateFeedItemSetLinksResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/feedItemSetLinks:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } +} + +// Request message for [FeedItemSetLinkService.GetFeedItemSetLinks][]. +message GetFeedItemSetLinkRequest { + // Required. The resource name of the feed item set link to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/FeedItemSetLink" + } + ]; +} + +// Request message for [FeedItemSetLinkService.MutateFeedItemSetLinks][google.ads.googleads.v6.services.FeedItemSetLinkService.MutateFeedItemSetLinks]. +message MutateFeedItemSetLinksRequest { + // Required. The ID of the customer whose feed item set links are being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on individual feed item set links. + repeated FeedItemSetLinkOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 3; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; +} + +// A single operation (create, update, remove) on a feed item set link. +message FeedItemSetLinkOperation { + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the + // new feed item set link. + google.ads.googleads.v6.resources.FeedItemSetLink create = 1; + + // Remove operation: A resource name for the removed feed item set link is + // expected, in this format: + // + // `customers/{customer_id}/feedItemSetLinks/{feed_id}_{feed_item_set_id}_{feed_item_id}` + string remove = 2; + } +} + +// Response message for a feed item set link mutate. +message MutateFeedItemSetLinksResponse { + // All results for the mutate. + repeated MutateFeedItemSetLinkResult results = 1; +} + +// The result for the feed item set link mutate. +message MutateFeedItemSetLinkResult { + // Returned for successful operations. + string resource_name = 1; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/feed_item_set_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/feed_item_set_service.proto new file mode 100644 index 000000000..09cb4950e --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/feed_item_set_service.proto @@ -0,0 +1,122 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/feed_item_set.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "FeedItemSetServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the FeedItemSet service. + +// Service to manage feed Item Set +service FeedItemSetService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested feed item set in full detail. + rpc GetFeedItemSet(GetFeedItemSetRequest) returns (google.ads.googleads.v6.resources.FeedItemSet) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/feedItemSets/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates, updates or removes feed item sets. Operation statuses are + // returned. + rpc MutateFeedItemSets(MutateFeedItemSetsRequest) returns (MutateFeedItemSetsResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/feedItemSets:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } +} + +// Request message for [FeedItemSetService.GetFeedItemSet][google.ads.googleads.v6.services.FeedItemSetService.GetFeedItemSet]. +message GetFeedItemSetRequest { + // Required. The resource name of the feed item set to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/FeedItemSet" + } + ]; +} + +// Request message for [FeedItemSetService.MutateFeedItemSets][google.ads.googleads.v6.services.FeedItemSetService.MutateFeedItemSets]. +message MutateFeedItemSetsRequest { + // Required. The ID of the customer whose feed item sets are being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on individual feed item sets. + repeated FeedItemSetOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 3; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; +} + +// A single operation (create, remove) on an feed item set. +message FeedItemSetOperation { + // FieldMask that determines which resource fields are modified in an update. + google.protobuf.FieldMask update_mask = 4; + + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new feed item set + google.ads.googleads.v6.resources.FeedItemSet create = 1; + + // Update operation: The feed item set is expected to have a valid resource + // name. + google.ads.googleads.v6.resources.FeedItemSet update = 2; + + // Remove operation: A resource name for the removed feed item is + // expected, in this format: + // `customers/{customer_id}/feedItems/{feed_id}~{feed_item_set_id}` + string remove = 3; + } +} + +// Response message for an feed item set mutate. +message MutateFeedItemSetsResponse { + // All results for the mutate. + repeated MutateFeedItemSetResult results = 1; +} + +// The result for the feed item set mutate. +message MutateFeedItemSetResult { + // Returned for successful operations. + string resource_name = 1; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/feed_item_target_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/feed_item_target_service.proto new file mode 100644 index 000000000..8ce19327c --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/feed_item_target_service.proto @@ -0,0 +1,115 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/enums/response_content_type.proto"; +import "google/ads/googleads/v6/resources/feed_item_target.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "FeedItemTargetServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the FeedItemTarget service. + +// Service to manage feed item targets. +service FeedItemTargetService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested feed item targets in full detail. + rpc GetFeedItemTarget(GetFeedItemTargetRequest) returns (google.ads.googleads.v6.resources.FeedItemTarget) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/feedItemTargets/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates or removes feed item targets. Operation statuses are returned. + rpc MutateFeedItemTargets(MutateFeedItemTargetsRequest) returns (MutateFeedItemTargetsResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/feedItemTargets:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } +} + +// Request message for [FeedItemTargetService.GetFeedItemTarget][google.ads.googleads.v6.services.FeedItemTargetService.GetFeedItemTarget]. +message GetFeedItemTargetRequest { + // Required. The resource name of the feed item targets to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/FeedItemTarget" + } + ]; +} + +// Request message for [FeedItemTargetService.MutateFeedItemTargets][google.ads.googleads.v6.services.FeedItemTargetService.MutateFeedItemTargets]. +message MutateFeedItemTargetsRequest { + // Required. The ID of the customer whose feed item targets are being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on individual feed item targets. + repeated FeedItemTargetOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // The response content type setting. Determines whether the mutable resource + // or just the resource name should be returned post mutation. + google.ads.googleads.v6.enums.ResponseContentTypeEnum.ResponseContentType response_content_type = 5; +} + +// A single operation (create, remove) on an feed item target. +message FeedItemTargetOperation { + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new feed item + // target. + google.ads.googleads.v6.resources.FeedItemTarget create = 1; + + // Remove operation: A resource name for the removed feed item target is + // expected, in this format: + // + // `customers/{customer_id}/feedItemTargets/{feed_id}~{feed_item_id}~{feed_item_target_type}~{feed_item_target_id}` + string remove = 2; + } +} + +// Response message for an feed item target mutate. +message MutateFeedItemTargetsResponse { + // All results for the mutate. + repeated MutateFeedItemTargetResult results = 2; +} + +// The result for the feed item target mutate. +message MutateFeedItemTargetResult { + // Returned for successful operations. + string resource_name = 1; + + // The mutated feed item target with only mutable fields after mutate. The + // field will only be returned when response_content_type is set to + // "MUTABLE_RESOURCE". + google.ads.googleads.v6.resources.FeedItemTarget feed_item_target = 2; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/feed_mapping_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/feed_mapping_service.proto new file mode 100644 index 000000000..c1d363958 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/feed_mapping_service.proto @@ -0,0 +1,132 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/enums/response_content_type.proto"; +import "google/ads/googleads/v6/resources/feed_mapping.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "FeedMappingServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the FeedMapping service. + +// Service to manage feed mappings. +service FeedMappingService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested feed mapping in full detail. + rpc GetFeedMapping(GetFeedMappingRequest) returns (google.ads.googleads.v6.resources.FeedMapping) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/feedMappings/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates or removes feed mappings. Operation statuses are + // returned. + rpc MutateFeedMappings(MutateFeedMappingsRequest) returns (MutateFeedMappingsResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/feedMappings:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } +} + +// Request message for [FeedMappingService.GetFeedMapping][google.ads.googleads.v6.services.FeedMappingService.GetFeedMapping]. +message GetFeedMappingRequest { + // Required. The resource name of the feed mapping to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/FeedMapping" + } + ]; +} + +// Request message for [FeedMappingService.MutateFeedMappings][google.ads.googleads.v6.services.FeedMappingService.MutateFeedMappings]. +message MutateFeedMappingsRequest { + // Required. The ID of the customer whose feed mappings are being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on individual feed mappings. + repeated FeedMappingOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 3; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; + + // The response content type setting. Determines whether the mutable resource + // or just the resource name should be returned post mutation. + google.ads.googleads.v6.enums.ResponseContentTypeEnum.ResponseContentType response_content_type = 5; +} + +// A single operation (create, remove) on a feed mapping. +message FeedMappingOperation { + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new feed mapping. + google.ads.googleads.v6.resources.FeedMapping create = 1; + + // Remove operation: A resource name for the removed feed mapping is + // expected, in this format: + // + // `customers/{customer_id}/feedMappings/{feed_id}~{feed_mapping_id}` + string remove = 3; + } +} + +// Response message for a feed mapping mutate. +message MutateFeedMappingsResponse { + // Errors that pertain to operation failures in the partial failure mode. + // Returned only when partial_failure = true and all errors occur inside the + // operations. If any errors occur outside the operations (e.g. auth errors), + // we return an RPC level error. + google.rpc.Status partial_failure_error = 3; + + // All results for the mutate. + repeated MutateFeedMappingResult results = 2; +} + +// The result for the feed mapping mutate. +message MutateFeedMappingResult { + // Returned for successful operations. + string resource_name = 1; + + // The mutated feed mapping with only mutable fields after mutate. The field + // will only be returned when response_content_type is set to + // "MUTABLE_RESOURCE". + google.ads.googleads.v6.resources.FeedMapping feed_mapping = 2; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/feed_placeholder_view_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/feed_placeholder_view_service.proto new file mode 100644 index 000000000..772fa855e --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/feed_placeholder_view_service.proto @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/feed_placeholder_view.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "FeedPlaceholderViewServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the FeedPlaceholderView service. + +// Service to fetch feed placeholder views. +service FeedPlaceholderViewService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested feed placeholder view in full detail. + rpc GetFeedPlaceholderView(GetFeedPlaceholderViewRequest) returns (google.ads.googleads.v6.resources.FeedPlaceholderView) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/feedPlaceholderViews/*}" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for [FeedPlaceholderViewService.GetFeedPlaceholderView][google.ads.googleads.v6.services.FeedPlaceholderViewService.GetFeedPlaceholderView]. +message GetFeedPlaceholderViewRequest { + // Required. The resource name of the feed placeholder view to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/FeedPlaceholderView" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/feed_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/feed_service.proto new file mode 100644 index 000000000..222515e66 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/feed_service.proto @@ -0,0 +1,139 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/enums/response_content_type.proto"; +import "google/ads/googleads/v6/resources/feed.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "FeedServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Feed service. + +// Service to manage feeds. +service FeedService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested feed in full detail. + rpc GetFeed(GetFeedRequest) returns (google.ads.googleads.v6.resources.Feed) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/feeds/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates, updates, or removes feeds. Operation statuses are + // returned. + rpc MutateFeeds(MutateFeedsRequest) returns (MutateFeedsResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/feeds:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } +} + +// Request message for [FeedService.GetFeed][google.ads.googleads.v6.services.FeedService.GetFeed]. +message GetFeedRequest { + // Required. The resource name of the feed to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Feed" + } + ]; +} + +// Request message for [FeedService.MutateFeeds][google.ads.googleads.v6.services.FeedService.MutateFeeds]. +message MutateFeedsRequest { + // Required. The ID of the customer whose feeds are being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on individual feeds. + repeated FeedOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 3; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; + + // The response content type setting. Determines whether the mutable resource + // or just the resource name should be returned post mutation. + google.ads.googleads.v6.enums.ResponseContentTypeEnum.ResponseContentType response_content_type = 5; +} + +// A single operation (create, update, remove) on an feed. +message FeedOperation { + // FieldMask that determines which resource fields are modified in an update. + google.protobuf.FieldMask update_mask = 4; + + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new feed. + google.ads.googleads.v6.resources.Feed create = 1; + + // Update operation: The feed is expected to have a valid resource + // name. + google.ads.googleads.v6.resources.Feed update = 2; + + // Remove operation: A resource name for the removed feed is + // expected, in this format: + // + // `customers/{customer_id}/feeds/{feed_id}` + string remove = 3; + } +} + +// Response message for an feed mutate. +message MutateFeedsResponse { + // Errors that pertain to operation failures in the partial failure mode. + // Returned only when partial_failure = true and all errors occur inside the + // operations. If any errors occur outside the operations (e.g. auth errors), + // we return an RPC level error. + google.rpc.Status partial_failure_error = 3; + + // All results for the mutate. + repeated MutateFeedResult results = 2; +} + +// The result for the feed mutate. +message MutateFeedResult { + // Returned for successful operations. + string resource_name = 1; + + // The mutated feed with only mutable fields after mutate. The field will only + // be returned when response_content_type is set to "MUTABLE_RESOURCE". + google.ads.googleads.v6.resources.Feed feed = 2; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/gender_view_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/gender_view_service.proto new file mode 100644 index 000000000..774b115fd --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/gender_view_service.proto @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/gender_view.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "GenderViewServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Gender View service. + +// Service to manage gender views. +service GenderViewService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested gender view in full detail. + rpc GetGenderView(GetGenderViewRequest) returns (google.ads.googleads.v6.resources.GenderView) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/genderViews/*}" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for [GenderViewService.GetGenderView][google.ads.googleads.v6.services.GenderViewService.GetGenderView]. +message GetGenderViewRequest { + // Required. The resource name of the gender view to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/GenderView" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/geo_target_constant_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/geo_target_constant_service.proto new file mode 100644 index 000000000..22c62b9cb --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/geo_target_constant_service.proto @@ -0,0 +1,129 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/geo_target_constant.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "GeoTargetConstantServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Geo target constant service. + +// Service to fetch geo target constants. +service GeoTargetConstantService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested geo target constant in full detail. + rpc GetGeoTargetConstant(GetGeoTargetConstantRequest) returns (google.ads.googleads.v6.resources.GeoTargetConstant) { + option (google.api.http) = { + get: "/v6/{resource_name=geoTargetConstants/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Returns GeoTargetConstant suggestions by location name or by resource name. + rpc SuggestGeoTargetConstants(SuggestGeoTargetConstantsRequest) returns (SuggestGeoTargetConstantsResponse) { + option (google.api.http) = { + post: "/v6/geoTargetConstants:suggest" + body: "*" + }; + } +} + +// Request message for [GeoTargetConstantService.GetGeoTargetConstant][google.ads.googleads.v6.services.GeoTargetConstantService.GetGeoTargetConstant]. +message GetGeoTargetConstantRequest { + // Required. The resource name of the geo target constant to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/GeoTargetConstant" + } + ]; +} + +// Request message for +// [GeoTargetConstantService.SuggestGeoTargetConstants][google.ads.googleads.v6.services.GeoTargetConstantService.SuggestGeoTargetConstants]. +message SuggestGeoTargetConstantsRequest { + // A list of location names. + message LocationNames { + // A list of location names. + repeated string names = 2; + } + + // A list of geo target constant resource names. + message GeoTargets { + // A list of geo target constant resource names. + repeated string geo_target_constants = 2; + } + + // If possible, returned geo targets are translated using this locale. If not, + // en is used by default. This is also used as a hint for returned geo + // targets. + optional string locale = 6; + + // Returned geo targets are restricted to this country code. + optional string country_code = 7; + + // Required. A selector of geo target constants. + oneof query { + // The location names to search by. At most 25 names can be set. + LocationNames location_names = 1; + + // The geo target constant resource names to filter by. + GeoTargets geo_targets = 2; + } +} + +// Response message for [GeoTargetConstantService.SuggestGeoTargetConstants][google.ads.googleads.v6.services.GeoTargetConstantService.SuggestGeoTargetConstants]. +message SuggestGeoTargetConstantsResponse { + // Geo target constant suggestions. + repeated GeoTargetConstantSuggestion geo_target_constant_suggestions = 1; +} + +// A geo target constant suggestion. +message GeoTargetConstantSuggestion { + // The language this GeoTargetConstantSuggestion is currently translated to. + // It affects the name of geo target fields. For example, if locale=en, then + // name=Spain. If locale=es, then name=España. The default locale will be + // returned if no translation exists for the locale in the request. + optional string locale = 6; + + // Approximate user population that will be targeted, rounded to the + // nearest 100. + optional int64 reach = 7; + + // If the request searched by location name, this is the location name that + // matched the geo target. + optional string search_term = 8; + + // The GeoTargetConstant result. + google.ads.googleads.v6.resources.GeoTargetConstant geo_target_constant = 4; + + // The list of parents of the geo target constant. + repeated google.ads.googleads.v6.resources.GeoTargetConstant geo_target_constant_parents = 5; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/geographic_view_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/geographic_view_service.proto new file mode 100644 index 000000000..fd8c09a92 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/geographic_view_service.proto @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/geographic_view.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "GeographicViewServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the GeographicViewService. + +// Service to manage geographic views. +service GeographicViewService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested geographic view in full detail. + rpc GetGeographicView(GetGeographicViewRequest) returns (google.ads.googleads.v6.resources.GeographicView) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/geographicViews/*}" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for [GeographicViewService.GetGeographicView][google.ads.googleads.v6.services.GeographicViewService.GetGeographicView]. +message GetGeographicViewRequest { + // Required. The resource name of the geographic view to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/GeographicView" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/google_ads_field_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/google_ads_field_service.proto new file mode 100644 index 000000000..710bd3840 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/google_ads_field_service.proto @@ -0,0 +1,98 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/google_ads_field.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "GoogleAdsFieldServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the GoogleAdsFieldService + +// Service to fetch Google Ads API fields. +service GoogleAdsFieldService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns just the requested field. + rpc GetGoogleAdsField(GetGoogleAdsFieldRequest) returns (google.ads.googleads.v6.resources.GoogleAdsField) { + option (google.api.http) = { + get: "/v6/{resource_name=googleAdsFields/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Returns all fields that match the search query. + rpc SearchGoogleAdsFields(SearchGoogleAdsFieldsRequest) returns (SearchGoogleAdsFieldsResponse) { + option (google.api.http) = { + post: "/v6/googleAdsFields:search" + body: "*" + }; + option (google.api.method_signature) = "query"; + } +} + +// Request message for [GoogleAdsFieldService.GetGoogleAdsField][google.ads.googleads.v6.services.GoogleAdsFieldService.GetGoogleAdsField]. +message GetGoogleAdsFieldRequest { + // Required. The resource name of the field to get. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/GoogleAdsField" + } + ]; +} + +// Request message for [GoogleAdsFieldService.SearchGoogleAdsFields][google.ads.googleads.v6.services.GoogleAdsFieldService.SearchGoogleAdsFields]. +message SearchGoogleAdsFieldsRequest { + // Required. The query string. + string query = 1 [(google.api.field_behavior) = REQUIRED]; + + // Token of the page to retrieve. If not specified, the first page of + // results will be returned. Use the value obtained from `next_page_token` + // in the previous response in order to request the next page of results. + string page_token = 2; + + // Number of elements to retrieve in a single page. + // When too large a page is requested, the server may decide to further + // limit the number of returned resources. + int32 page_size = 3; +} + +// Response message for [GoogleAdsFieldService.SearchGoogleAdsFields][google.ads.googleads.v6.services.GoogleAdsFieldService.SearchGoogleAdsFields]. +message SearchGoogleAdsFieldsResponse { + // The list of fields that matched the query. + repeated google.ads.googleads.v6.resources.GoogleAdsField results = 1; + + // Pagination token used to retrieve the next page of results. Pass the + // content of this string as the `page_token` attribute of the next request. + // `next_page_token` is not returned for the last page. + string next_page_token = 2; + + // Total number of results that match the query ignoring the LIMIT clause. + int64 total_results_count = 3; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/google_ads_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/google_ads_service.proto new file mode 100644 index 000000000..4472797ec --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/google_ads_service.proto @@ -0,0 +1,1040 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/common/metrics.proto"; +import "google/ads/googleads/v6/common/segments.proto"; +import "google/ads/googleads/v6/enums/response_content_type.proto"; +import "google/ads/googleads/v6/enums/summary_row_setting.proto"; +import "google/ads/googleads/v6/resources/account_budget.proto"; +import "google/ads/googleads/v6/resources/account_budget_proposal.proto"; +import "google/ads/googleads/v6/resources/account_link.proto"; +import "google/ads/googleads/v6/resources/ad_group.proto"; +import "google/ads/googleads/v6/resources/ad_group_ad.proto"; +import "google/ads/googleads/v6/resources/ad_group_ad_asset_view.proto"; +import "google/ads/googleads/v6/resources/ad_group_ad_label.proto"; +import "google/ads/googleads/v6/resources/ad_group_audience_view.proto"; +import "google/ads/googleads/v6/resources/ad_group_bid_modifier.proto"; +import "google/ads/googleads/v6/resources/ad_group_criterion.proto"; +import "google/ads/googleads/v6/resources/ad_group_criterion_label.proto"; +import "google/ads/googleads/v6/resources/ad_group_criterion_simulation.proto"; +import "google/ads/googleads/v6/resources/ad_group_extension_setting.proto"; +import "google/ads/googleads/v6/resources/ad_group_feed.proto"; +import "google/ads/googleads/v6/resources/ad_group_label.proto"; +import "google/ads/googleads/v6/resources/ad_group_simulation.proto"; +import "google/ads/googleads/v6/resources/ad_parameter.proto"; +import "google/ads/googleads/v6/resources/ad_schedule_view.proto"; +import "google/ads/googleads/v6/resources/age_range_view.proto"; +import "google/ads/googleads/v6/resources/asset.proto"; +import "google/ads/googleads/v6/resources/batch_job.proto"; +import "google/ads/googleads/v6/resources/bidding_strategy.proto"; +import "google/ads/googleads/v6/resources/billing_setup.proto"; +import "google/ads/googleads/v6/resources/call_view.proto"; +import "google/ads/googleads/v6/resources/campaign.proto"; +import "google/ads/googleads/v6/resources/campaign_asset.proto"; +import "google/ads/googleads/v6/resources/campaign_audience_view.proto"; +import "google/ads/googleads/v6/resources/campaign_bid_modifier.proto"; +import "google/ads/googleads/v6/resources/campaign_budget.proto"; +import "google/ads/googleads/v6/resources/campaign_criterion.proto"; +import "google/ads/googleads/v6/resources/campaign_criterion_simulation.proto"; +import "google/ads/googleads/v6/resources/campaign_draft.proto"; +import "google/ads/googleads/v6/resources/campaign_experiment.proto"; +import "google/ads/googleads/v6/resources/campaign_extension_setting.proto"; +import "google/ads/googleads/v6/resources/campaign_feed.proto"; +import "google/ads/googleads/v6/resources/campaign_label.proto"; +import "google/ads/googleads/v6/resources/campaign_shared_set.proto"; +import "google/ads/googleads/v6/resources/carrier_constant.proto"; +import "google/ads/googleads/v6/resources/change_event.proto"; +import "google/ads/googleads/v6/resources/change_status.proto"; +import "google/ads/googleads/v6/resources/click_view.proto"; +import "google/ads/googleads/v6/resources/combined_audience.proto"; +import "google/ads/googleads/v6/resources/conversion_action.proto"; +import "google/ads/googleads/v6/resources/currency_constant.proto"; +import "google/ads/googleads/v6/resources/custom_audience.proto"; +import "google/ads/googleads/v6/resources/custom_interest.proto"; +import "google/ads/googleads/v6/resources/customer.proto"; +import "google/ads/googleads/v6/resources/customer_client.proto"; +import "google/ads/googleads/v6/resources/customer_client_link.proto"; +import "google/ads/googleads/v6/resources/customer_extension_setting.proto"; +import "google/ads/googleads/v6/resources/customer_feed.proto"; +import "google/ads/googleads/v6/resources/customer_label.proto"; +import "google/ads/googleads/v6/resources/customer_manager_link.proto"; +import "google/ads/googleads/v6/resources/customer_negative_criterion.proto"; +import "google/ads/googleads/v6/resources/customer_user_access.proto"; +import "google/ads/googleads/v6/resources/customer_user_access_invitation.proto"; +import "google/ads/googleads/v6/resources/detail_placement_view.proto"; +import "google/ads/googleads/v6/resources/display_keyword_view.proto"; +import "google/ads/googleads/v6/resources/distance_view.proto"; +import "google/ads/googleads/v6/resources/domain_category.proto"; +import "google/ads/googleads/v6/resources/dynamic_search_ads_search_term_view.proto"; +import "google/ads/googleads/v6/resources/expanded_landing_page_view.proto"; +import "google/ads/googleads/v6/resources/extension_feed_item.proto"; +import "google/ads/googleads/v6/resources/feed.proto"; +import "google/ads/googleads/v6/resources/feed_item.proto"; +import "google/ads/googleads/v6/resources/feed_item_set.proto"; +import "google/ads/googleads/v6/resources/feed_item_set_link.proto"; +import "google/ads/googleads/v6/resources/feed_item_target.proto"; +import "google/ads/googleads/v6/resources/feed_mapping.proto"; +import "google/ads/googleads/v6/resources/feed_placeholder_view.proto"; +import "google/ads/googleads/v6/resources/gender_view.proto"; +import "google/ads/googleads/v6/resources/geo_target_constant.proto"; +import "google/ads/googleads/v6/resources/geographic_view.proto"; +import "google/ads/googleads/v6/resources/group_placement_view.proto"; +import "google/ads/googleads/v6/resources/hotel_group_view.proto"; +import "google/ads/googleads/v6/resources/hotel_performance_view.proto"; +import "google/ads/googleads/v6/resources/income_range_view.proto"; +import "google/ads/googleads/v6/resources/keyword_plan.proto"; +import "google/ads/googleads/v6/resources/keyword_plan_ad_group.proto"; +import "google/ads/googleads/v6/resources/keyword_plan_ad_group_keyword.proto"; +import "google/ads/googleads/v6/resources/keyword_plan_campaign.proto"; +import "google/ads/googleads/v6/resources/keyword_plan_campaign_keyword.proto"; +import "google/ads/googleads/v6/resources/keyword_view.proto"; +import "google/ads/googleads/v6/resources/label.proto"; +import "google/ads/googleads/v6/resources/landing_page_view.proto"; +import "google/ads/googleads/v6/resources/language_constant.proto"; +import "google/ads/googleads/v6/resources/location_view.proto"; +import "google/ads/googleads/v6/resources/managed_placement_view.proto"; +import "google/ads/googleads/v6/resources/media_file.proto"; +import "google/ads/googleads/v6/resources/mobile_app_category_constant.proto"; +import "google/ads/googleads/v6/resources/mobile_device_constant.proto"; +import "google/ads/googleads/v6/resources/offline_user_data_job.proto"; +import "google/ads/googleads/v6/resources/operating_system_version_constant.proto"; +import "google/ads/googleads/v6/resources/paid_organic_search_term_view.proto"; +import "google/ads/googleads/v6/resources/parental_status_view.proto"; +import "google/ads/googleads/v6/resources/product_bidding_category_constant.proto"; +import "google/ads/googleads/v6/resources/product_group_view.proto"; +import "google/ads/googleads/v6/resources/recommendation.proto"; +import "google/ads/googleads/v6/resources/remarketing_action.proto"; +import "google/ads/googleads/v6/resources/search_term_view.proto"; +import "google/ads/googleads/v6/resources/shared_criterion.proto"; +import "google/ads/googleads/v6/resources/shared_set.proto"; +import "google/ads/googleads/v6/resources/shopping_performance_view.proto"; +import "google/ads/googleads/v6/resources/third_party_app_analytics_link.proto"; +import "google/ads/googleads/v6/resources/topic_constant.proto"; +import "google/ads/googleads/v6/resources/topic_view.proto"; +import "google/ads/googleads/v6/resources/user_interest.proto"; +import "google/ads/googleads/v6/resources/user_list.proto"; +import "google/ads/googleads/v6/resources/user_location_view.proto"; +import "google/ads/googleads/v6/resources/video.proto"; +import "google/ads/googleads/v6/services/ad_group_ad_label_service.proto"; +import "google/ads/googleads/v6/services/ad_group_ad_service.proto"; +import "google/ads/googleads/v6/services/ad_group_bid_modifier_service.proto"; +import "google/ads/googleads/v6/services/ad_group_criterion_label_service.proto"; +import "google/ads/googleads/v6/services/ad_group_criterion_service.proto"; +import "google/ads/googleads/v6/services/ad_group_extension_setting_service.proto"; +import "google/ads/googleads/v6/services/ad_group_feed_service.proto"; +import "google/ads/googleads/v6/services/ad_group_label_service.proto"; +import "google/ads/googleads/v6/services/ad_group_service.proto"; +import "google/ads/googleads/v6/services/ad_parameter_service.proto"; +import "google/ads/googleads/v6/services/ad_service.proto"; +import "google/ads/googleads/v6/services/asset_service.proto"; +import "google/ads/googleads/v6/services/bidding_strategy_service.proto"; +import "google/ads/googleads/v6/services/campaign_asset_service.proto"; +import "google/ads/googleads/v6/services/campaign_bid_modifier_service.proto"; +import "google/ads/googleads/v6/services/campaign_budget_service.proto"; +import "google/ads/googleads/v6/services/campaign_criterion_service.proto"; +import "google/ads/googleads/v6/services/campaign_draft_service.proto"; +import "google/ads/googleads/v6/services/campaign_experiment_service.proto"; +import "google/ads/googleads/v6/services/campaign_extension_setting_service.proto"; +import "google/ads/googleads/v6/services/campaign_feed_service.proto"; +import "google/ads/googleads/v6/services/campaign_label_service.proto"; +import "google/ads/googleads/v6/services/campaign_service.proto"; +import "google/ads/googleads/v6/services/campaign_shared_set_service.proto"; +import "google/ads/googleads/v6/services/conversion_action_service.proto"; +import "google/ads/googleads/v6/services/customer_extension_setting_service.proto"; +import "google/ads/googleads/v6/services/customer_feed_service.proto"; +import "google/ads/googleads/v6/services/customer_label_service.proto"; +import "google/ads/googleads/v6/services/customer_negative_criterion_service.proto"; +import "google/ads/googleads/v6/services/customer_service.proto"; +import "google/ads/googleads/v6/services/extension_feed_item_service.proto"; +import "google/ads/googleads/v6/services/feed_item_service.proto"; +import "google/ads/googleads/v6/services/feed_item_set_link_service.proto"; +import "google/ads/googleads/v6/services/feed_item_set_service.proto"; +import "google/ads/googleads/v6/services/feed_item_target_service.proto"; +import "google/ads/googleads/v6/services/feed_mapping_service.proto"; +import "google/ads/googleads/v6/services/feed_service.proto"; +import "google/ads/googleads/v6/services/keyword_plan_ad_group_keyword_service.proto"; +import "google/ads/googleads/v6/services/keyword_plan_ad_group_service.proto"; +import "google/ads/googleads/v6/services/keyword_plan_campaign_keyword_service.proto"; +import "google/ads/googleads/v6/services/keyword_plan_campaign_service.proto"; +import "google/ads/googleads/v6/services/keyword_plan_service.proto"; +import "google/ads/googleads/v6/services/label_service.proto"; +import "google/ads/googleads/v6/services/media_file_service.proto"; +import "google/ads/googleads/v6/services/remarketing_action_service.proto"; +import "google/ads/googleads/v6/services/shared_criterion_service.proto"; +import "google/ads/googleads/v6/services/shared_set_service.proto"; +import "google/ads/googleads/v6/services/user_list_service.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/protobuf/field_mask.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "GoogleAdsServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the GoogleAdsService. + +// Service to fetch data and metrics across resources. +service GoogleAdsService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns all rows that match the search query. + rpc Search(SearchGoogleAdsRequest) returns (SearchGoogleAdsResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/googleAds:search" + body: "*" + }; + option (google.api.method_signature) = "customer_id,query"; + } + + // Returns all rows that match the search stream query. + rpc SearchStream(SearchGoogleAdsStreamRequest) returns (stream SearchGoogleAdsStreamResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/googleAds:searchStream" + body: "*" + }; + option (google.api.method_signature) = "customer_id,query"; + } + + // Creates, updates, or removes resources. This method supports atomic + // transactions with multiple types of resources. For example, you can + // atomically create a campaign and a campaign budget, or perform up to + // thousands of mutates atomically. + // + // This method is essentially a wrapper around a series of mutate methods. The + // only features it offers over calling those methods directly are: + // + // - Atomic transactions + // - Temp resource names (described below) + // - Somewhat reduced latency over making a series of mutate calls + // + // Note: Only resources that support atomic transactions are included, so this + // method can't replace all calls to individual services. + // + // ## Atomic Transaction Benefits + // + // Atomicity makes error handling much easier. If you're making a series of + // changes and one fails, it can leave your account in an inconsistent state. + // With atomicity, you either reach the desired state directly, or the request + // fails and you can retry. + // + // ## Temp Resource Names + // + // Temp resource names are a special type of resource name used to create a + // resource and reference that resource in the same request. For example, if a + // campaign budget is created with `resource_name` equal to + // `customers/123/campaignBudgets/-1`, that resource name can be reused in + // the `Campaign.budget` field in the same request. That way, the two + // resources are created and linked atomically. + // + // To create a temp resource name, put a negative number in the part of the + // name that the server would normally allocate. + // + // Note: + // + // - Resources must be created with a temp name before the name can be reused. + // For example, the previous CampaignBudget+Campaign example would fail if + // the mutate order was reversed. + // - Temp names are not remembered across requests. + // - There's no limit to the number of temp names in a request. + // - Each temp name must use a unique negative number, even if the resource + // types differ. + // + // ## Latency + // + // It's important to group mutates by resource type or the request may time + // out and fail. Latency is roughly equal to a series of calls to individual + // mutate methods, where each change in resource type is a new call. For + // example, mutating 10 campaigns then 10 ad groups is like 2 calls, while + // mutating 1 campaign, 1 ad group, 1 campaign, 1 ad group is like 4 calls. + rpc Mutate(MutateGoogleAdsRequest) returns (MutateGoogleAdsResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/googleAds:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,mutate_operations"; + } +} + +// Request message for [GoogleAdsService.Search][google.ads.googleads.v6.services.GoogleAdsService.Search]. +message SearchGoogleAdsRequest { + // Required. The ID of the customer being queried. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The query string. + string query = 2 [(google.api.field_behavior) = REQUIRED]; + + // Token of the page to retrieve. If not specified, the first + // page of results will be returned. Use the value obtained from + // `next_page_token` in the previous response in order to request + // the next page of results. + string page_token = 3; + + // Number of elements to retrieve in a single page. + // When too large a page is requested, the server may decide to + // further limit the number of returned resources. + int32 page_size = 4; + + // If true, the request is validated but not executed. + bool validate_only = 5; + + // If true, the total number of results that match the query ignoring the + // LIMIT clause will be included in the response. + // Default is false. + bool return_total_results_count = 7; + + // Determines whether a summary row will be returned. By default, summary row + // is not returned. If requested, the summary row will be sent in a response + // by itself after all other query results are returned. + google.ads.googleads.v6.enums.SummaryRowSettingEnum.SummaryRowSetting summary_row_setting = 8; +} + +// Response message for [GoogleAdsService.Search][google.ads.googleads.v6.services.GoogleAdsService.Search]. +message SearchGoogleAdsResponse { + // The list of rows that matched the query. + repeated GoogleAdsRow results = 1; + + // Pagination token used to retrieve the next page of results. + // Pass the content of this string as the `page_token` attribute of + // the next request. `next_page_token` is not returned for the last + // page. + string next_page_token = 2; + + // Total number of results that match the query ignoring the LIMIT + // clause. + int64 total_results_count = 3; + + // FieldMask that represents what fields were requested by the user. + google.protobuf.FieldMask field_mask = 5; + + // Summary row that contains summary of metrics in results. + // Summary of metrics means aggregation of metrics across all results, + // here aggregation could be sum, average, rate, etc. + GoogleAdsRow summary_row = 6; +} + +// Request message for [GoogleAdsService.SearchStream][google.ads.googleads.v6.services.GoogleAdsService.SearchStream]. +message SearchGoogleAdsStreamRequest { + // Required. The ID of the customer being queried. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The query string. + string query = 2 [(google.api.field_behavior) = REQUIRED]; + + // Determines whether a summary row will be returned. By default, summary row + // is not returned. If requested, the summary row will be sent in a response + // by itself after all other query results are returned. + google.ads.googleads.v6.enums.SummaryRowSettingEnum.SummaryRowSetting summary_row_setting = 3; +} + +// Response message for [GoogleAdsService.SearchStream][google.ads.googleads.v6.services.GoogleAdsService.SearchStream]. +message SearchGoogleAdsStreamResponse { + // The list of rows that matched the query. + repeated GoogleAdsRow results = 1; + + // FieldMask that represents what fields were requested by the user. + google.protobuf.FieldMask field_mask = 2; + + // Summary row that contains summary of metrics in results. + // Summary of metrics means aggregation of metrics across all results, + // here aggregation could be sum, average, rate, etc. + GoogleAdsRow summary_row = 3; +} + +// A returned row from the query. +message GoogleAdsRow { + // The account budget in the query. + google.ads.googleads.v6.resources.AccountBudget account_budget = 42; + + // The account budget proposal referenced in the query. + google.ads.googleads.v6.resources.AccountBudgetProposal account_budget_proposal = 43; + + // The AccountLink referenced in the query. + google.ads.googleads.v6.resources.AccountLink account_link = 143; + + // The ad group referenced in the query. + google.ads.googleads.v6.resources.AdGroup ad_group = 3; + + // The ad referenced in the query. + google.ads.googleads.v6.resources.AdGroupAd ad_group_ad = 16; + + // The ad group ad asset view in the query. + google.ads.googleads.v6.resources.AdGroupAdAssetView ad_group_ad_asset_view = 131; + + // The ad group ad label referenced in the query. + google.ads.googleads.v6.resources.AdGroupAdLabel ad_group_ad_label = 120; + + // The ad group audience view referenced in the query. + google.ads.googleads.v6.resources.AdGroupAudienceView ad_group_audience_view = 57; + + // The bid modifier referenced in the query. + google.ads.googleads.v6.resources.AdGroupBidModifier ad_group_bid_modifier = 24; + + // The criterion referenced in the query. + google.ads.googleads.v6.resources.AdGroupCriterion ad_group_criterion = 17; + + // The ad group criterion label referenced in the query. + google.ads.googleads.v6.resources.AdGroupCriterionLabel ad_group_criterion_label = 121; + + // The ad group criterion simulation referenced in the query. + google.ads.googleads.v6.resources.AdGroupCriterionSimulation ad_group_criterion_simulation = 110; + + // The ad group extension setting referenced in the query. + google.ads.googleads.v6.resources.AdGroupExtensionSetting ad_group_extension_setting = 112; + + // The ad group feed referenced in the query. + google.ads.googleads.v6.resources.AdGroupFeed ad_group_feed = 67; + + // The ad group label referenced in the query. + google.ads.googleads.v6.resources.AdGroupLabel ad_group_label = 115; + + // The ad group simulation referenced in the query. + google.ads.googleads.v6.resources.AdGroupSimulation ad_group_simulation = 107; + + // The ad parameter referenced in the query. + google.ads.googleads.v6.resources.AdParameter ad_parameter = 130; + + // The age range view referenced in the query. + google.ads.googleads.v6.resources.AgeRangeView age_range_view = 48; + + // The ad schedule view referenced in the query. + google.ads.googleads.v6.resources.AdScheduleView ad_schedule_view = 89; + + // The domain category referenced in the query. + google.ads.googleads.v6.resources.DomainCategory domain_category = 91; + + // The asset referenced in the query. + google.ads.googleads.v6.resources.Asset asset = 105; + + // The batch job referenced in the query. + google.ads.googleads.v6.resources.BatchJob batch_job = 139; + + // The bidding strategy referenced in the query. + google.ads.googleads.v6.resources.BiddingStrategy bidding_strategy = 18; + + // The billing setup referenced in the query. + google.ads.googleads.v6.resources.BillingSetup billing_setup = 41; + + // The call view referenced in the query. + google.ads.googleads.v6.resources.CallView call_view = 152; + + // The campaign budget referenced in the query. + google.ads.googleads.v6.resources.CampaignBudget campaign_budget = 19; + + // The campaign referenced in the query. + google.ads.googleads.v6.resources.Campaign campaign = 2; + + // The campaign asset referenced in the query. + google.ads.googleads.v6.resources.CampaignAsset campaign_asset = 142; + + // The campaign audience view referenced in the query. + google.ads.googleads.v6.resources.CampaignAudienceView campaign_audience_view = 69; + + // The campaign bid modifier referenced in the query. + google.ads.googleads.v6.resources.CampaignBidModifier campaign_bid_modifier = 26; + + // The campaign criterion referenced in the query. + google.ads.googleads.v6.resources.CampaignCriterion campaign_criterion = 20; + + // The campaign criterion simulation referenced in the query. + google.ads.googleads.v6.resources.CampaignCriterionSimulation campaign_criterion_simulation = 111; + + // The campaign draft referenced in the query. + google.ads.googleads.v6.resources.CampaignDraft campaign_draft = 49; + + // The campaign experiment referenced in the query. + google.ads.googleads.v6.resources.CampaignExperiment campaign_experiment = 84; + + // The campaign extension setting referenced in the query. + google.ads.googleads.v6.resources.CampaignExtensionSetting campaign_extension_setting = 113; + + // The campaign feed referenced in the query. + google.ads.googleads.v6.resources.CampaignFeed campaign_feed = 63; + + // The campaign label referenced in the query. + google.ads.googleads.v6.resources.CampaignLabel campaign_label = 108; + + // Campaign Shared Set referenced in AWQL query. + google.ads.googleads.v6.resources.CampaignSharedSet campaign_shared_set = 30; + + // The carrier constant referenced in the query. + google.ads.googleads.v6.resources.CarrierConstant carrier_constant = 66; + + // The ChangeEvent referenced in the query. + google.ads.googleads.v6.resources.ChangeEvent change_event = 145; + + // The ChangeStatus referenced in the query. + google.ads.googleads.v6.resources.ChangeStatus change_status = 37; + + // The CombinedAudience referenced in the query. + google.ads.googleads.v6.resources.CombinedAudience combined_audience = 148; + + // The conversion action referenced in the query. + google.ads.googleads.v6.resources.ConversionAction conversion_action = 103; + + // The ClickView referenced in the query. + google.ads.googleads.v6.resources.ClickView click_view = 122; + + // The currency constant referenced in the query. + google.ads.googleads.v6.resources.CurrencyConstant currency_constant = 134; + + // The CustomAudience referenced in the query. + google.ads.googleads.v6.resources.CustomAudience custom_audience = 147; + + // The CustomInterest referenced in the query. + google.ads.googleads.v6.resources.CustomInterest custom_interest = 104; + + // The customer referenced in the query. + google.ads.googleads.v6.resources.Customer customer = 1; + + // The CustomerManagerLink referenced in the query. + google.ads.googleads.v6.resources.CustomerManagerLink customer_manager_link = 61; + + // The CustomerClientLink referenced in the query. + google.ads.googleads.v6.resources.CustomerClientLink customer_client_link = 62; + + // The CustomerClient referenced in the query. + google.ads.googleads.v6.resources.CustomerClient customer_client = 70; + + // The customer extension setting referenced in the query. + google.ads.googleads.v6.resources.CustomerExtensionSetting customer_extension_setting = 114; + + // The customer feed referenced in the query. + google.ads.googleads.v6.resources.CustomerFeed customer_feed = 64; + + // The customer label referenced in the query. + google.ads.googleads.v6.resources.CustomerLabel customer_label = 124; + + // The customer negative criterion referenced in the query. + google.ads.googleads.v6.resources.CustomerNegativeCriterion customer_negative_criterion = 88; + + // The CustomerUserAccess referenced in the query. + google.ads.googleads.v6.resources.CustomerUserAccess customer_user_access = 146; + + // The CustomerUserAccessInvitation referenced in the query. + google.ads.googleads.v6.resources.CustomerUserAccessInvitation customer_user_access_invitation = 150; + + // The detail placement view referenced in the query. + google.ads.googleads.v6.resources.DetailPlacementView detail_placement_view = 118; + + // The display keyword view referenced in the query. + google.ads.googleads.v6.resources.DisplayKeywordView display_keyword_view = 47; + + // The distance view referenced in the query. + google.ads.googleads.v6.resources.DistanceView distance_view = 132; + + // The dynamic search ads search term view referenced in the query. + google.ads.googleads.v6.resources.DynamicSearchAdsSearchTermView dynamic_search_ads_search_term_view = 106; + + // The expanded landing page view referenced in the query. + google.ads.googleads.v6.resources.ExpandedLandingPageView expanded_landing_page_view = 128; + + // The extension feed item referenced in the query. + google.ads.googleads.v6.resources.ExtensionFeedItem extension_feed_item = 85; + + // The feed referenced in the query. + google.ads.googleads.v6.resources.Feed feed = 46; + + // The feed item referenced in the query. + google.ads.googleads.v6.resources.FeedItem feed_item = 50; + + // The feed item set referenced in the query. + google.ads.googleads.v6.resources.FeedItemSet feed_item_set = 149; + + // The feed item set link referenced in the query. + google.ads.googleads.v6.resources.FeedItemSetLink feed_item_set_link = 151; + + // The feed item target referenced in the query. + google.ads.googleads.v6.resources.FeedItemTarget feed_item_target = 116; + + // The feed mapping referenced in the query. + google.ads.googleads.v6.resources.FeedMapping feed_mapping = 58; + + // The feed placeholder view referenced in the query. + google.ads.googleads.v6.resources.FeedPlaceholderView feed_placeholder_view = 97; + + // The gender view referenced in the query. + google.ads.googleads.v6.resources.GenderView gender_view = 40; + + // The geo target constant referenced in the query. + google.ads.googleads.v6.resources.GeoTargetConstant geo_target_constant = 23; + + // The geographic view referenced in the query. + google.ads.googleads.v6.resources.GeographicView geographic_view = 125; + + // The group placement view referenced in the query. + google.ads.googleads.v6.resources.GroupPlacementView group_placement_view = 119; + + // The hotel group view referenced in the query. + google.ads.googleads.v6.resources.HotelGroupView hotel_group_view = 51; + + // The hotel performance view referenced in the query. + google.ads.googleads.v6.resources.HotelPerformanceView hotel_performance_view = 71; + + // The income range view referenced in the query. + google.ads.googleads.v6.resources.IncomeRangeView income_range_view = 138; + + // The keyword view referenced in the query. + google.ads.googleads.v6.resources.KeywordView keyword_view = 21; + + // The keyword plan referenced in the query. + google.ads.googleads.v6.resources.KeywordPlan keyword_plan = 32; + + // The keyword plan campaign referenced in the query. + google.ads.googleads.v6.resources.KeywordPlanCampaign keyword_plan_campaign = 33; + + // The keyword plan campaign keyword referenced in the query. + google.ads.googleads.v6.resources.KeywordPlanCampaignKeyword keyword_plan_campaign_keyword = 140; + + // The keyword plan ad group referenced in the query. + google.ads.googleads.v6.resources.KeywordPlanAdGroup keyword_plan_ad_group = 35; + + // The keyword plan ad group referenced in the query. + google.ads.googleads.v6.resources.KeywordPlanAdGroupKeyword keyword_plan_ad_group_keyword = 141; + + // The label referenced in the query. + google.ads.googleads.v6.resources.Label label = 52; + + // The landing page view referenced in the query. + google.ads.googleads.v6.resources.LandingPageView landing_page_view = 126; + + // The language constant referenced in the query. + google.ads.googleads.v6.resources.LanguageConstant language_constant = 55; + + // The location view referenced in the query. + google.ads.googleads.v6.resources.LocationView location_view = 123; + + // The managed placement view referenced in the query. + google.ads.googleads.v6.resources.ManagedPlacementView managed_placement_view = 53; + + // The media file referenced in the query. + google.ads.googleads.v6.resources.MediaFile media_file = 90; + + // The mobile app category constant referenced in the query. + google.ads.googleads.v6.resources.MobileAppCategoryConstant mobile_app_category_constant = 87; + + // The mobile device constant referenced in the query. + google.ads.googleads.v6.resources.MobileDeviceConstant mobile_device_constant = 98; + + // The offline user data job referenced in the query. + google.ads.googleads.v6.resources.OfflineUserDataJob offline_user_data_job = 137; + + // The operating system version constant referenced in the query. + google.ads.googleads.v6.resources.OperatingSystemVersionConstant operating_system_version_constant = 86; + + // The paid organic search term view referenced in the query. + google.ads.googleads.v6.resources.PaidOrganicSearchTermView paid_organic_search_term_view = 129; + + // The parental status view referenced in the query. + google.ads.googleads.v6.resources.ParentalStatusView parental_status_view = 45; + + // The Product Bidding Category referenced in the query. + google.ads.googleads.v6.resources.ProductBiddingCategoryConstant product_bidding_category_constant = 109; + + // The product group view referenced in the query. + google.ads.googleads.v6.resources.ProductGroupView product_group_view = 54; + + // The recommendation referenced in the query. + google.ads.googleads.v6.resources.Recommendation recommendation = 22; + + // The search term view referenced in the query. + google.ads.googleads.v6.resources.SearchTermView search_term_view = 68; + + // The shared set referenced in the query. + google.ads.googleads.v6.resources.SharedCriterion shared_criterion = 29; + + // The shared set referenced in the query. + google.ads.googleads.v6.resources.SharedSet shared_set = 27; + + // The shopping performance view referenced in the query. + google.ads.googleads.v6.resources.ShoppingPerformanceView shopping_performance_view = 117; + + // The AccountLink referenced in the query. + google.ads.googleads.v6.resources.ThirdPartyAppAnalyticsLink third_party_app_analytics_link = 144; + + // The topic view referenced in the query. + google.ads.googleads.v6.resources.TopicView topic_view = 44; + + // The user interest referenced in the query. + google.ads.googleads.v6.resources.UserInterest user_interest = 59; + + // The user list referenced in the query. + google.ads.googleads.v6.resources.UserList user_list = 38; + + // The user location view referenced in the query. + google.ads.googleads.v6.resources.UserLocationView user_location_view = 135; + + // The remarketing action referenced in the query. + google.ads.googleads.v6.resources.RemarketingAction remarketing_action = 60; + + // The topic constant referenced in the query. + google.ads.googleads.v6.resources.TopicConstant topic_constant = 31; + + // The video referenced in the query. + google.ads.googleads.v6.resources.Video video = 39; + + // The metrics. + google.ads.googleads.v6.common.Metrics metrics = 4; + + // The segments. + google.ads.googleads.v6.common.Segments segments = 102; +} + +// Request message for [GoogleAdsService.Mutate][google.ads.googleads.v6.services.GoogleAdsService.Mutate]. +message MutateGoogleAdsRequest { + // Required. The ID of the customer whose resources are being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on individual resources. + repeated MutateOperation mutate_operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 3; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; + + // The response content type setting. Determines whether the mutable resource + // or just the resource name should be returned post mutation. The mutable + // resource will only be returned if the resource has the appropriate response + // field. E.g. MutateCampaignResult.campaign. + google.ads.googleads.v6.enums.ResponseContentTypeEnum.ResponseContentType response_content_type = 5; +} + +// Response message for [GoogleAdsService.Mutate][google.ads.googleads.v6.services.GoogleAdsService.Mutate]. +message MutateGoogleAdsResponse { + // Errors that pertain to operation failures in the partial failure mode. + // Returned only when partial_failure = true and all errors occur inside the + // operations. If any errors occur outside the operations (e.g., auth errors), + // we return an RPC level error. + google.rpc.Status partial_failure_error = 3; + + // All responses for the mutate. + repeated MutateOperationResponse mutate_operation_responses = 1; +} + +// A single operation (create, update, remove) on a resource. +message MutateOperation { + // The mutate operation. + oneof operation { + // An ad group ad label mutate operation. + AdGroupAdLabelOperation ad_group_ad_label_operation = 17; + + // An ad group ad mutate operation. + AdGroupAdOperation ad_group_ad_operation = 1; + + // An ad group bid modifier mutate operation. + AdGroupBidModifierOperation ad_group_bid_modifier_operation = 2; + + // An ad group criterion label mutate operation. + AdGroupCriterionLabelOperation ad_group_criterion_label_operation = 18; + + // An ad group criterion mutate operation. + AdGroupCriterionOperation ad_group_criterion_operation = 3; + + // An ad group extension setting mutate operation. + AdGroupExtensionSettingOperation ad_group_extension_setting_operation = 19; + + // An ad group feed mutate operation. + AdGroupFeedOperation ad_group_feed_operation = 20; + + // An ad group label mutate operation. + AdGroupLabelOperation ad_group_label_operation = 21; + + // An ad group mutate operation. + AdGroupOperation ad_group_operation = 5; + + // An ad mutate operation. + AdOperation ad_operation = 49; + + // An ad parameter mutate operation. + AdParameterOperation ad_parameter_operation = 22; + + // An asset mutate operation. + AssetOperation asset_operation = 23; + + // A bidding strategy mutate operation. + BiddingStrategyOperation bidding_strategy_operation = 6; + + // A campaign asset mutate operation. + CampaignAssetOperation campaign_asset_operation = 52; + + // A campaign bid modifier mutate operation. + CampaignBidModifierOperation campaign_bid_modifier_operation = 7; + + // A campaign budget mutate operation. + CampaignBudgetOperation campaign_budget_operation = 8; + + // A campaign criterion mutate operation. + CampaignCriterionOperation campaign_criterion_operation = 13; + + // A campaign draft mutate operation. + CampaignDraftOperation campaign_draft_operation = 24; + + // A campaign experiment mutate operation. + CampaignExperimentOperation campaign_experiment_operation = 25; + + // A campaign extension setting mutate operation. + CampaignExtensionSettingOperation campaign_extension_setting_operation = 26; + + // A campaign feed mutate operation. + CampaignFeedOperation campaign_feed_operation = 27; + + // A campaign label mutate operation. + CampaignLabelOperation campaign_label_operation = 28; + + // A campaign mutate operation. + CampaignOperation campaign_operation = 10; + + // A campaign shared set mutate operation. + CampaignSharedSetOperation campaign_shared_set_operation = 11; + + // A conversion action mutate operation. + ConversionActionOperation conversion_action_operation = 12; + + // A customer extension setting mutate operation. + CustomerExtensionSettingOperation customer_extension_setting_operation = 30; + + // A customer feed mutate operation. + CustomerFeedOperation customer_feed_operation = 31; + + // A customer label mutate operation. + CustomerLabelOperation customer_label_operation = 32; + + // A customer negative criterion mutate operation. + CustomerNegativeCriterionOperation customer_negative_criterion_operation = 34; + + // A customer mutate operation. + CustomerOperation customer_operation = 35; + + // An extension feed item mutate operation. + ExtensionFeedItemOperation extension_feed_item_operation = 36; + + // A feed item mutate operation. + FeedItemOperation feed_item_operation = 37; + + // A feed item set mutate operation. + FeedItemSetOperation feed_item_set_operation = 53; + + // A feed item set link mutate operation. + FeedItemSetLinkOperation feed_item_set_link_operation = 54; + + // A feed item target mutate operation. + FeedItemTargetOperation feed_item_target_operation = 38; + + // A feed mapping mutate operation. + FeedMappingOperation feed_mapping_operation = 39; + + // A feed mutate operation. + FeedOperation feed_operation = 40; + + // A keyword plan ad group operation. + KeywordPlanAdGroupOperation keyword_plan_ad_group_operation = 44; + + // A keyword plan ad group keyword operation. + KeywordPlanAdGroupKeywordOperation keyword_plan_ad_group_keyword_operation = 50; + + // A keyword plan campaign keyword operation. + KeywordPlanCampaignKeywordOperation keyword_plan_campaign_keyword_operation = 51; + + // A keyword plan campaign operation. + KeywordPlanCampaignOperation keyword_plan_campaign_operation = 45; + + // A keyword plan operation. + KeywordPlanOperation keyword_plan_operation = 48; + + // A label mutate operation. + LabelOperation label_operation = 41; + + // A media file mutate operation. + MediaFileOperation media_file_operation = 42; + + // A remarketing action mutate operation. + RemarketingActionOperation remarketing_action_operation = 43; + + // A shared criterion mutate operation. + SharedCriterionOperation shared_criterion_operation = 14; + + // A shared set mutate operation. + SharedSetOperation shared_set_operation = 15; + + // A user list mutate operation. + UserListOperation user_list_operation = 16; + } +} + +// Response message for the resource mutate. +message MutateOperationResponse { + // The mutate response. + oneof response { + // The result for the ad group ad label mutate. + MutateAdGroupAdLabelResult ad_group_ad_label_result = 17; + + // The result for the ad group ad mutate. + MutateAdGroupAdResult ad_group_ad_result = 1; + + // The result for the ad group bid modifier mutate. + MutateAdGroupBidModifierResult ad_group_bid_modifier_result = 2; + + // The result for the ad group criterion label mutate. + MutateAdGroupCriterionLabelResult ad_group_criterion_label_result = 18; + + // The result for the ad group criterion mutate. + MutateAdGroupCriterionResult ad_group_criterion_result = 3; + + // The result for the ad group extension setting mutate. + MutateAdGroupExtensionSettingResult ad_group_extension_setting_result = 19; + + // The result for the ad group feed mutate. + MutateAdGroupFeedResult ad_group_feed_result = 20; + + // The result for the ad group label mutate. + MutateAdGroupLabelResult ad_group_label_result = 21; + + // The result for the ad group mutate. + MutateAdGroupResult ad_group_result = 5; + + // The result for the ad parameter mutate. + MutateAdParameterResult ad_parameter_result = 22; + + // The result for the ad mutate. + MutateAdResult ad_result = 49; + + // The result for the asset mutate. + MutateAssetResult asset_result = 23; + + // The result for the bidding strategy mutate. + MutateBiddingStrategyResult bidding_strategy_result = 6; + + // The result for the campaign asset mutate. + MutateCampaignAssetResult campaign_asset_result = 52; + + // The result for the campaign bid modifier mutate. + MutateCampaignBidModifierResult campaign_bid_modifier_result = 7; + + // The result for the campaign budget mutate. + MutateCampaignBudgetResult campaign_budget_result = 8; + + // The result for the campaign criterion mutate. + MutateCampaignCriterionResult campaign_criterion_result = 13; + + // The result for the campaign draft mutate. + MutateCampaignDraftResult campaign_draft_result = 24; + + // The result for the campaign experiment mutate. + MutateCampaignExperimentResult campaign_experiment_result = 25; + + // The result for the campaign extension setting mutate. + MutateCampaignExtensionSettingResult campaign_extension_setting_result = 26; + + // The result for the campaign feed mutate. + MutateCampaignFeedResult campaign_feed_result = 27; + + // The result for the campaign label mutate. + MutateCampaignLabelResult campaign_label_result = 28; + + // The result for the campaign mutate. + MutateCampaignResult campaign_result = 10; + + // The result for the campaign shared set mutate. + MutateCampaignSharedSetResult campaign_shared_set_result = 11; + + // The result for the conversion action mutate. + MutateConversionActionResult conversion_action_result = 12; + + // The result for the customer extension setting mutate. + MutateCustomerExtensionSettingResult customer_extension_setting_result = 30; + + // The result for the customer feed mutate. + MutateCustomerFeedResult customer_feed_result = 31; + + // The result for the customer label mutate. + MutateCustomerLabelResult customer_label_result = 32; + + // The result for the customer negative criterion mutate. + MutateCustomerNegativeCriteriaResult customer_negative_criterion_result = 34; + + // The result for the customer mutate. + MutateCustomerResult customer_result = 35; + + // The result for the extension feed item mutate. + MutateExtensionFeedItemResult extension_feed_item_result = 36; + + // The result for the feed item mutate. + MutateFeedItemResult feed_item_result = 37; + + // The result for the feed item set mutate. + MutateFeedItemSetResult feed_item_set_result = 53; + + // The result for the feed item set link mutate. + MutateFeedItemSetLinkResult feed_item_set_link_result = 54; + + // The result for the feed item target mutate. + MutateFeedItemTargetResult feed_item_target_result = 38; + + // The result for the feed mapping mutate. + MutateFeedMappingResult feed_mapping_result = 39; + + // The result for the feed mutate. + MutateFeedResult feed_result = 40; + + // The result for the keyword plan ad group mutate. + MutateKeywordPlanAdGroupResult keyword_plan_ad_group_result = 44; + + // The result for the keyword plan campaign mutate. + MutateKeywordPlanCampaignResult keyword_plan_campaign_result = 45; + + // The result for the keyword plan ad group keyword mutate. + MutateKeywordPlanAdGroupKeywordResult keyword_plan_ad_group_keyword_result = 50; + + // The result for the keyword plan campaign keyword mutate. + MutateKeywordPlanCampaignKeywordResult keyword_plan_campaign_keyword_result = 51; + + // The result for the keyword plan mutate. + MutateKeywordPlansResult keyword_plan_result = 48; + + // The result for the label mutate. + MutateLabelResult label_result = 41; + + // The result for the media file mutate. + MutateMediaFileResult media_file_result = 42; + + // The result for the remarketing action mutate. + MutateRemarketingActionResult remarketing_action_result = 43; + + // The result for the shared criterion mutate. + MutateSharedCriterionResult shared_criterion_result = 14; + + // The result for the shared set mutate. + MutateSharedSetResult shared_set_result = 15; + + // The result for the user list mutate. + MutateUserListResult user_list_result = 16; + } +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/group_placement_view_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/group_placement_view_service.proto new file mode 100644 index 000000000..db7fc3686 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/group_placement_view_service.proto @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/group_placement_view.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "GroupPlacementViewServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Group Placement View service. + +// Service to fetch Group Placement views. +service GroupPlacementViewService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested Group Placement view in full detail. + rpc GetGroupPlacementView(GetGroupPlacementViewRequest) returns (google.ads.googleads.v6.resources.GroupPlacementView) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/groupPlacementViews/*}" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for [GroupPlacementViewService.GetGroupPlacementView][google.ads.googleads.v6.services.GroupPlacementViewService.GetGroupPlacementView]. +message GetGroupPlacementViewRequest { + // Required. The resource name of the Group Placement view to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/GroupPlacementView" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/hotel_group_view_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/hotel_group_view_service.proto new file mode 100644 index 000000000..fd85d9885 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/hotel_group_view_service.proto @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/hotel_group_view.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "HotelGroupViewServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Hotel Group View Service. + +// Service to manage Hotel Group Views. +service HotelGroupViewService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested Hotel Group View in full detail. + rpc GetHotelGroupView(GetHotelGroupViewRequest) returns (google.ads.googleads.v6.resources.HotelGroupView) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/hotelGroupViews/*}" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for [HotelGroupViewService.GetHotelGroupView][google.ads.googleads.v6.services.HotelGroupViewService.GetHotelGroupView]. +message GetHotelGroupViewRequest { + // Required. Resource name of the Hotel Group View to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/HotelGroupView" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/hotel_performance_view_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/hotel_performance_view_service.proto new file mode 100644 index 000000000..05ee08691 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/hotel_performance_view_service.proto @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/hotel_performance_view.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "HotelPerformanceViewServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Hotel Performance View Service. + +// Service to manage Hotel Performance Views. +service HotelPerformanceViewService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested Hotel Performance View in full detail. + rpc GetHotelPerformanceView(GetHotelPerformanceViewRequest) returns (google.ads.googleads.v6.resources.HotelPerformanceView) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/hotelPerformanceView}" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for [HotelPerformanceViewService.GetHotelPerformanceView][google.ads.googleads.v6.services.HotelPerformanceViewService.GetHotelPerformanceView]. +message GetHotelPerformanceViewRequest { + // Required. Resource name of the Hotel Performance View to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/HotelPerformanceView" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/income_range_view_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/income_range_view_service.proto new file mode 100644 index 000000000..054675ec2 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/income_range_view_service.proto @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/income_range_view.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "IncomeRangeViewServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Income Range View service. + +// Service to manage income range views. +service IncomeRangeViewService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested income range view in full detail. + rpc GetIncomeRangeView(GetIncomeRangeViewRequest) returns (google.ads.googleads.v6.resources.IncomeRangeView) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/incomeRangeViews/*}" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for [IncomeRangeViewService.GetIncomeRangeView][google.ads.googleads.v6.services.IncomeRangeViewService.GetIncomeRangeView]. +message GetIncomeRangeViewRequest { + // Required. The resource name of the income range view to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/IncomeRangeView" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/invoice_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/invoice_service.proto new file mode 100644 index 000000000..5ffc39eda --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/invoice_service.proto @@ -0,0 +1,73 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/enums/month_of_year.proto"; +import "google/ads/googleads/v6/resources/invoice.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "InvoiceServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Invoice service. + +// A service to fetch invoices issued for a billing setup during a given month. +service InvoiceService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns all invoices associated with a billing setup, for a given month. + rpc ListInvoices(ListInvoicesRequest) returns (ListInvoicesResponse) { + option (google.api.http) = { + get: "/v6/customers/{customer_id=*}/invoices" + }; + option (google.api.method_signature) = "customer_id,billing_setup,issue_year,issue_month"; + } +} + +// Request message for fetching the invoices of a given billing setup that were +// issued during a given month. +message ListInvoicesRequest { + // Required. The ID of the customer to fetch invoices for. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The billing setup resource name of the requested invoices. + // + // `customers/{customer_id}/billingSetups/{billing_setup_id}` + string billing_setup = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The issue year to retrieve invoices, in yyyy format. Only + // invoices issued in 2019 or later can be retrieved. + string issue_year = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. The issue month to retrieve invoices. + google.ads.googleads.v6.enums.MonthOfYearEnum.MonthOfYear issue_month = 4 [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for [InvoiceService.ListInvoices][google.ads.googleads.v6.services.InvoiceService.ListInvoices]. +message ListInvoicesResponse { + // The list of invoices that match the billing setup and time period. + repeated google.ads.googleads.v6.resources.Invoice invoices = 1; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/keyword_plan_ad_group_keyword_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/keyword_plan_ad_group_keyword_service.proto new file mode 100644 index 000000000..cc9c6f119 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/keyword_plan_ad_group_keyword_service.proto @@ -0,0 +1,143 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/keyword_plan_ad_group_keyword.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "KeywordPlanAdGroupKeywordServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the keyword plan ad group keyword service. + +// Service to manage Keyword Plan ad group keywords. KeywordPlanAdGroup is +// required to add ad group keywords. Positive and negative keywords are +// supported. A maximum of 10,000 positive keywords are allowed per keyword +// plan. A maximum of 1,000 negative keywords are allower per keyword plan. This +// includes campaign negative keywords and ad group negative keywords. +service KeywordPlanAdGroupKeywordService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested Keyword Plan ad group keyword in full detail. + rpc GetKeywordPlanAdGroupKeyword(GetKeywordPlanAdGroupKeywordRequest) returns (google.ads.googleads.v6.resources.KeywordPlanAdGroupKeyword) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/keywordPlanAdGroupKeywords/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates, updates, or removes Keyword Plan ad group keywords. Operation + // statuses are returned. + rpc MutateKeywordPlanAdGroupKeywords(MutateKeywordPlanAdGroupKeywordsRequest) returns (MutateKeywordPlanAdGroupKeywordsResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/keywordPlanAdGroupKeywords:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } +} + +// Request message for +// [KeywordPlanAdGroupKeywordService.GetKeywordPlanAdGroupKeyword][google.ads.googleads.v6.services.KeywordPlanAdGroupKeywordService.GetKeywordPlanAdGroupKeyword]. +message GetKeywordPlanAdGroupKeywordRequest { + // Required. The resource name of the ad group keyword to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/KeywordPlanAdGroupKeyword" + } + ]; +} + +// Request message for +// [KeywordPlanAdGroupKeywordService.MutateKeywordPlanAdGroupKeywords][google.ads.googleads.v6.services.KeywordPlanAdGroupKeywordService.MutateKeywordPlanAdGroupKeywords]. +message MutateKeywordPlanAdGroupKeywordsRequest { + // Required. The ID of the customer whose Keyword Plan ad group keywords are being + // modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on individual Keyword Plan ad group + // keywords. + repeated KeywordPlanAdGroupKeywordOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 3; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; +} + +// A single operation (create, update, remove) on a Keyword Plan ad group +// keyword. +message KeywordPlanAdGroupKeywordOperation { + // The FieldMask that determines which resource fields are modified in an + // update. + google.protobuf.FieldMask update_mask = 4; + + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new Keyword Plan + // ad group keyword. + google.ads.googleads.v6.resources.KeywordPlanAdGroupKeyword create = 1; + + // Update operation: The Keyword Plan ad group keyword is expected to have a + // valid resource name. + google.ads.googleads.v6.resources.KeywordPlanAdGroupKeyword update = 2; + + // Remove operation: A resource name for the removed Keyword Plan ad group + // keyword is expected, in this format: + // + // `customers/{customer_id}/keywordPlanAdGroupKeywords/{kp_ad_group_keyword_id}` + string remove = 3 [(google.api.resource_reference) = { + type: "googleads.googleapis.com/KeywordPlanAdGroupKeyword" + }]; + } +} + +// Response message for a Keyword Plan ad group keyword mutate. +message MutateKeywordPlanAdGroupKeywordsResponse { + // Errors that pertain to operation failures in the partial failure mode. + // Returned only when partial_failure = true and all errors occur inside the + // operations. If any errors occur outside the operations (e.g. auth errors), + // we return an RPC level error. + google.rpc.Status partial_failure_error = 3; + + // All results for the mutate. + repeated MutateKeywordPlanAdGroupKeywordResult results = 2; +} + +// The result for the Keyword Plan ad group keyword mutate. +message MutateKeywordPlanAdGroupKeywordResult { + // Returned for successful operations. + string resource_name = 1; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/keyword_plan_ad_group_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/keyword_plan_ad_group_service.proto new file mode 100644 index 000000000..0a1c33b0d --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/keyword_plan_ad_group_service.proto @@ -0,0 +1,135 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/keyword_plan_ad_group.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "KeywordPlanAdGroupServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the keyword plan ad group service. + +// Service to manage Keyword Plan ad groups. +service KeywordPlanAdGroupService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested Keyword Plan ad group in full detail. + rpc GetKeywordPlanAdGroup(GetKeywordPlanAdGroupRequest) returns (google.ads.googleads.v6.resources.KeywordPlanAdGroup) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/keywordPlanAdGroups/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates, updates, or removes Keyword Plan ad groups. Operation statuses are + // returned. + rpc MutateKeywordPlanAdGroups(MutateKeywordPlanAdGroupsRequest) returns (MutateKeywordPlanAdGroupsResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/keywordPlanAdGroups:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } +} + +// Request message for [KeywordPlanAdGroupService.GetKeywordPlanAdGroup][google.ads.googleads.v6.services.KeywordPlanAdGroupService.GetKeywordPlanAdGroup]. +message GetKeywordPlanAdGroupRequest { + // Required. The resource name of the Keyword Plan ad group to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/KeywordPlanAdGroup" + } + ]; +} + +// Request message for [KeywordPlanAdGroupService.MutateKeywordPlanAdGroups][google.ads.googleads.v6.services.KeywordPlanAdGroupService.MutateKeywordPlanAdGroups]. +message MutateKeywordPlanAdGroupsRequest { + // Required. The ID of the customer whose Keyword Plan ad groups are being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on individual Keyword Plan ad groups. + repeated KeywordPlanAdGroupOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 3; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; +} + +// A single operation (create, update, remove) on a Keyword Plan ad group. +message KeywordPlanAdGroupOperation { + // The FieldMask that determines which resource fields are modified in an + // update. + google.protobuf.FieldMask update_mask = 4; + + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new Keyword Plan + // ad group. + google.ads.googleads.v6.resources.KeywordPlanAdGroup create = 1; + + // Update operation: The Keyword Plan ad group is expected to have a valid + // resource name. + google.ads.googleads.v6.resources.KeywordPlanAdGroup update = 2; + + // Remove operation: A resource name for the removed Keyword Plan ad group + // is expected, in this format: + // + // `customers/{customer_id}/keywordPlanAdGroups/{kp_ad_group_id}` + string remove = 3 [(google.api.resource_reference) = { + type: "googleads.googleapis.com/KeywordPlanAdGroup" + }]; + } +} + +// Response message for a Keyword Plan ad group mutate. +message MutateKeywordPlanAdGroupsResponse { + // Errors that pertain to operation failures in the partial failure mode. + // Returned only when partial_failure = true and all errors occur inside the + // operations. If any errors occur outside the operations (e.g. auth errors), + // we return an RPC level error. + google.rpc.Status partial_failure_error = 3; + + // All results for the mutate. The order of the results is determined by the + // order of the keywords in the original request. + repeated MutateKeywordPlanAdGroupResult results = 2; +} + +// The result for the Keyword Plan ad group mutate. +message MutateKeywordPlanAdGroupResult { + // Returned for successful operations. + string resource_name = 1; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/keyword_plan_campaign_keyword_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/keyword_plan_campaign_keyword_service.proto new file mode 100644 index 000000000..b8cfe9bce --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/keyword_plan_campaign_keyword_service.proto @@ -0,0 +1,141 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/keyword_plan_campaign_keyword.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "KeywordPlanCampaignKeywordServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the keyword plan campaign keyword service. + +// Service to manage Keyword Plan campaign keywords. KeywordPlanCampaign is +// required to add the campaign keywords. Only negative keywords are supported. +// A maximum of 1000 negative keywords are allowed per plan. This includes both +// campaign negative keywords and ad group negative keywords. +service KeywordPlanCampaignKeywordService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested plan in full detail. + rpc GetKeywordPlanCampaignKeyword(GetKeywordPlanCampaignKeywordRequest) returns (google.ads.googleads.v6.resources.KeywordPlanCampaignKeyword) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/keywordPlanCampaignKeywords/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates, updates, or removes Keyword Plan campaign keywords. Operation + // statuses are returned. + rpc MutateKeywordPlanCampaignKeywords(MutateKeywordPlanCampaignKeywordsRequest) returns (MutateKeywordPlanCampaignKeywordsResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/keywordPlanCampaignKeywords:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } +} + +// Request message for +// [KeywordPlanCampaignKeywordService.GetKeywordPlanCampaignKeyword][google.ads.googleads.v6.services.KeywordPlanCampaignKeywordService.GetKeywordPlanCampaignKeyword]. +message GetKeywordPlanCampaignKeywordRequest { + // Required. The resource name of the plan to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/KeywordPlanCampaignKeyword" + } + ]; +} + +// Request message for +// [KeywordPlanCampaignKeywordService.MutateKeywordPlanCampaignKeywords][google.ads.googleads.v6.services.KeywordPlanCampaignKeywordService.MutateKeywordPlanCampaignKeywords]. +message MutateKeywordPlanCampaignKeywordsRequest { + // Required. The ID of the customer whose campaign keywords are being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on individual Keyword Plan campaign + // keywords. + repeated KeywordPlanCampaignKeywordOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 3; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; +} + +// A single operation (create, update, remove) on a Keyword Plan campaign +// keyword. +message KeywordPlanCampaignKeywordOperation { + // The FieldMask that determines which resource fields are modified in an + // update. + google.protobuf.FieldMask update_mask = 4; + + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new Keyword Plan + // campaign keyword. + google.ads.googleads.v6.resources.KeywordPlanCampaignKeyword create = 1; + + // Update operation: The Keyword Plan campaign keyword expected to have a + // valid resource name. + google.ads.googleads.v6.resources.KeywordPlanCampaignKeyword update = 2; + + // Remove operation: A resource name for the removed Keyword Plan campaign + // keywords expected in this format: + // + // `customers/{customer_id}/keywordPlanCampaignKeywords/{kp_campaign_keyword_id}` + string remove = 3 [(google.api.resource_reference) = { + type: "googleads.googleapis.com/KeywordPlanCampaignKeyword" + }]; + } +} + +// Response message for a Keyword Plan campaign keyword mutate. +message MutateKeywordPlanCampaignKeywordsResponse { + // Errors that pertain to operation failures in the partial failure mode. + // Returned only when partial_failure = true and all errors occur inside the + // operations. If any errors occur outside the operations (e.g. auth errors), + // we return an RPC level error. + google.rpc.Status partial_failure_error = 3; + + // All results for the mutate. + repeated MutateKeywordPlanCampaignKeywordResult results = 2; +} + +// The result for the Keyword Plan campaign keyword mutate. +message MutateKeywordPlanCampaignKeywordResult { + // Returned for successful operations. + string resource_name = 1; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/keyword_plan_campaign_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/keyword_plan_campaign_service.proto new file mode 100644 index 000000000..c875a3d61 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/keyword_plan_campaign_service.proto @@ -0,0 +1,135 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/keyword_plan_campaign.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "KeywordPlanCampaignServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the keyword plan campaign service. + +// Service to manage Keyword Plan campaigns. +service KeywordPlanCampaignService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested Keyword Plan campaign in full detail. + rpc GetKeywordPlanCampaign(GetKeywordPlanCampaignRequest) returns (google.ads.googleads.v6.resources.KeywordPlanCampaign) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/keywordPlanCampaigns/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates, updates, or removes Keyword Plan campaigns. Operation statuses are + // returned. + rpc MutateKeywordPlanCampaigns(MutateKeywordPlanCampaignsRequest) returns (MutateKeywordPlanCampaignsResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/keywordPlanCampaigns:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } +} + +// Request message for [KeywordPlanCampaignService.GetKeywordPlanCampaign][google.ads.googleads.v6.services.KeywordPlanCampaignService.GetKeywordPlanCampaign]. +message GetKeywordPlanCampaignRequest { + // Required. The resource name of the Keyword Plan campaign to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/KeywordPlanCampaign" + } + ]; +} + +// Request message for +// [KeywordPlanCampaignService.MutateKeywordPlanCampaigns][google.ads.googleads.v6.services.KeywordPlanCampaignService.MutateKeywordPlanCampaigns]. +message MutateKeywordPlanCampaignsRequest { + // Required. The ID of the customer whose Keyword Plan campaigns are being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on individual Keyword Plan campaigns. + repeated KeywordPlanCampaignOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 3; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; +} + +// A single operation (create, update, remove) on a Keyword Plan campaign. +message KeywordPlanCampaignOperation { + // The FieldMask that determines which resource fields are modified in an + // update. + google.protobuf.FieldMask update_mask = 4; + + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new Keyword Plan + // campaign. + google.ads.googleads.v6.resources.KeywordPlanCampaign create = 1; + + // Update operation: The Keyword Plan campaign is expected to have a valid + // resource name. + google.ads.googleads.v6.resources.KeywordPlanCampaign update = 2; + + // Remove operation: A resource name for the removed Keyword Plan campaign + // is expected, in this format: + // + // `customers/{customer_id}/keywordPlanCampaigns/{keywordPlan_campaign_id}` + string remove = 3 [(google.api.resource_reference) = { + type: "googleads.googleapis.com/KeywordPlanCampaign" + }]; + } +} + +// Response message for a Keyword Plan campaign mutate. +message MutateKeywordPlanCampaignsResponse { + // Errors that pertain to operation failures in the partial failure mode. + // Returned only when partial_failure = true and all errors occur inside the + // operations. If any errors occur outside the operations (e.g. auth errors), + // we return an RPC level error. + google.rpc.Status partial_failure_error = 3; + + // All results for the mutate. + repeated MutateKeywordPlanCampaignResult results = 2; +} + +// The result for the Keyword Plan campaign mutate. +message MutateKeywordPlanCampaignResult { + // Returned for successful operations. + string resource_name = 1; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/keyword_plan_idea_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/keyword_plan_idea_service.proto new file mode 100644 index 000000000..00e254be8 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/keyword_plan_idea_service.proto @@ -0,0 +1,154 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/common/keyword_plan_common.proto"; +import "google/ads/googleads/v6/enums/keyword_plan_network.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "KeywordPlanIdeaServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the keyword plan idea service. + +// Service to generate keyword ideas. +service KeywordPlanIdeaService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns a list of keyword ideas. + rpc GenerateKeywordIdeas(GenerateKeywordIdeasRequest) returns (GenerateKeywordIdeaResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}:generateKeywordIdeas" + body: "*" + }; + } +} + +// Request message for [KeywordPlanIdeaService.GenerateKeywordIdeas][google.ads.googleads.v6.services.KeywordPlanIdeaService.GenerateKeywordIdeas]. +message GenerateKeywordIdeasRequest { + // The ID of the customer with the recommendation. + string customer_id = 1; + + // The resource name of the language to target. + // Required + optional string language = 14; + + // The resource names of the location to target. + // Max 10 + repeated string geo_target_constants = 15; + + // If true, adult keywords will be included in response. + // The default value is false. + bool include_adult_keywords = 10; + + // Token of the page to retrieve. If not specified, the first + // page of results will be returned. To request next page of results use the + // value obtained from `next_page_token` in the previous response. + // The request fields must match across pages. + string page_token = 12; + + // Number of results to retrieve in a single page. + // A maximum of 10,000 results may be returned, if the page_size + // exceeds this, it is ignored. + // If unspecified, at most 10,000 results will be returned. + // The server may decide to further limit the number of returned resources. + // If the response contains fewer than 10,000 results it may not be assumed + // as last page of results. + int32 page_size = 13; + + // Targeting network. + google.ads.googleads.v6.enums.KeywordPlanNetworkEnum.KeywordPlanNetwork keyword_plan_network = 9; + + // The type of seed to generate keyword ideas. + oneof seed { + // A Keyword and a specific Url to generate ideas from + // e.g. cars, www.example.com/cars. + KeywordAndUrlSeed keyword_and_url_seed = 2; + + // A Keyword or phrase to generate ideas from, e.g. cars. + KeywordSeed keyword_seed = 3; + + // A specific url to generate ideas from, e.g. www.example.com/cars. + UrlSeed url_seed = 5; + + // The site to generate ideas from, e.g. www.example.com. + SiteSeed site_seed = 11; + } +} + +// Keyword And Url Seed +message KeywordAndUrlSeed { + // The URL to crawl in order to generate keyword ideas. + optional string url = 3; + + // Requires at least one keyword. + repeated string keywords = 4; +} + +// Keyword Seed +message KeywordSeed { + // Requires at least one keyword. + repeated string keywords = 2; +} + +// Site Seed +message SiteSeed { + // The domain name of the site. If the customer requesting the ideas doesn't + // own the site provided only public information is returned. + optional string site = 2; +} + +// Url Seed +message UrlSeed { + // The URL to crawl in order to generate keyword ideas. + optional string url = 2; +} + +// Response message for [KeywordPlanIdeaService.GenerateKeywordIdeas][google.ads.googleads.v6.services.KeywordPlanIdeaService.GenerateKeywordIdeas]. +message GenerateKeywordIdeaResponse { + // Results of generating keyword ideas. + repeated GenerateKeywordIdeaResult results = 1; + + // Pagination token used to retrieve the next page of results. + // Pass the content of this string as the `page_token` attribute of + // the next request. + // `next_page_token` is not returned for the last page. + string next_page_token = 2; + + // Total number of results available. + int64 total_size = 3; +} + +// The result of generating keyword ideas. +message GenerateKeywordIdeaResult { + // Text of the keyword idea. + // As in Keyword Plan historical metrics, this text may not be an actual + // keyword, but the canonical form of multiple keywords. + // See KeywordPlanKeywordHistoricalMetrics message in KeywordPlanService. + optional string text = 5; + + // The historical metrics for the keyword + google.ads.googleads.v6.common.KeywordPlanHistoricalMetrics keyword_idea_metrics = 3; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/keyword_plan_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/keyword_plan_service.proto new file mode 100644 index 000000000..28aba3b62 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/keyword_plan_service.proto @@ -0,0 +1,378 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/common/keyword_plan_common.proto"; +import "google/ads/googleads/v6/resources/keyword_plan.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "KeywordPlanServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the keyword plan service. + +// Service to manage keyword plans. +service KeywordPlanService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested plan in full detail. + rpc GetKeywordPlan(GetKeywordPlanRequest) returns (google.ads.googleads.v6.resources.KeywordPlan) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/keywordPlans/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates, updates, or removes keyword plans. Operation statuses are + // returned. + rpc MutateKeywordPlans(MutateKeywordPlansRequest) returns (MutateKeywordPlansResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/keywordPlans:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } + + // Returns the requested Keyword Plan forecast curve. + // Only the bidding strategy is considered for generating forecast curve. + // The bidding strategy value specified in the plan is ignored. + // + // To generate a forecast at a value specified in the plan, use + // KeywordPlanService.GenerateForecastMetrics. + rpc GenerateForecastCurve(GenerateForecastCurveRequest) returns (GenerateForecastCurveResponse) { + option (google.api.http) = { + post: "/v6/{keyword_plan=customers/*/keywordPlans/*}:generateForecastCurve" + body: "*" + }; + option (google.api.method_signature) = "keyword_plan"; + } + + // Returns a forecast in the form of a time series for the Keyword Plan over + // the next 52 weeks. + // (1) Forecasts closer to the current date are generally more accurate than + // further out. + // + // (2) The forecast reflects seasonal trends using current and + // prior traffic patterns. The forecast period of the plan is ignored. + rpc GenerateForecastTimeSeries(GenerateForecastTimeSeriesRequest) returns (GenerateForecastTimeSeriesResponse) { + option (google.api.http) = { + post: "/v6/{keyword_plan=customers/*/keywordPlans/*}:generateForecastTimeSeries" + body: "*" + }; + option (google.api.method_signature) = "keyword_plan"; + } + + // Returns the requested Keyword Plan forecasts. + rpc GenerateForecastMetrics(GenerateForecastMetricsRequest) returns (GenerateForecastMetricsResponse) { + option (google.api.http) = { + post: "/v6/{keyword_plan=customers/*/keywordPlans/*}:generateForecastMetrics" + body: "*" + }; + option (google.api.method_signature) = "keyword_plan"; + } + + // Returns the requested Keyword Plan historical metrics. + rpc GenerateHistoricalMetrics(GenerateHistoricalMetricsRequest) returns (GenerateHistoricalMetricsResponse) { + option (google.api.http) = { + post: "/v6/{keyword_plan=customers/*/keywordPlans/*}:generateHistoricalMetrics" + body: "*" + }; + option (google.api.method_signature) = "keyword_plan"; + } +} + +// Request message for [KeywordPlanService.GetKeywordPlan][google.ads.googleads.v6.services.KeywordPlanService.GetKeywordPlan]. +message GetKeywordPlanRequest { + // Required. The resource name of the plan to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/KeywordPlan" + } + ]; +} + +// Request message for [KeywordPlanService.MutateKeywordPlans][google.ads.googleads.v6.services.KeywordPlanService.MutateKeywordPlans]. +message MutateKeywordPlansRequest { + // Required. The ID of the customer whose keyword plans are being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on individual keyword plans. + repeated KeywordPlanOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 3; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; +} + +// A single operation (create, update, remove) on a keyword plan. +message KeywordPlanOperation { + // The FieldMask that determines which resource fields are modified in an + // update. + google.protobuf.FieldMask update_mask = 4; + + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new keyword plan. + google.ads.googleads.v6.resources.KeywordPlan create = 1; + + // Update operation: The keyword plan is expected to have a valid resource + // name. + google.ads.googleads.v6.resources.KeywordPlan update = 2; + + // Remove operation: A resource name for the removed keyword plan is + // expected in this format: + // + // `customers/{customer_id}/keywordPlans/{keyword_plan_id}` + string remove = 3 [(google.api.resource_reference) = { + type: "googleads.googleapis.com/KeywordPlan" + }]; + } +} + +// Response message for a keyword plan mutate. +message MutateKeywordPlansResponse { + // Errors that pertain to operation failures in the partial failure mode. + // Returned only when partial_failure = true and all errors occur inside the + // operations. If any errors occur outside the operations (e.g. auth errors), + // we return an RPC level error. + google.rpc.Status partial_failure_error = 3; + + // All results for the mutate. + repeated MutateKeywordPlansResult results = 2; +} + +// The result for the keyword plan mutate. +message MutateKeywordPlansResult { + // Returned for successful operations. + string resource_name = 1; +} + +// Request message for [KeywordPlanService.GenerateForecastCurve][google.ads.googleads.v6.services.KeywordPlanService.GenerateForecastCurve]. +message GenerateForecastCurveRequest { + // Required. The resource name of the keyword plan to be forecasted. + string keyword_plan = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/KeywordPlan" + } + ]; +} + +// Response message for [KeywordPlanService.GenerateForecastCurve][google.ads.googleads.v6.services.KeywordPlanService.GenerateForecastCurve]. +message GenerateForecastCurveResponse { + // List of forecast curves for the keyword plan campaign. + // One maximum. + repeated KeywordPlanCampaignForecastCurve campaign_forecast_curves = 1; +} + +// Request message for [KeywordPlanService.GenerateForecastTimeSeries][google.ads.googleads.v6.services.KeywordPlanService.GenerateForecastTimeSeries]. +message GenerateForecastTimeSeriesRequest { + // Required. The resource name of the keyword plan to be forecasted. + string keyword_plan = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/KeywordPlan" + } + ]; +} + +// Response message for [KeywordPlanService.GenerateForecastTimeSeries][google.ads.googleads.v6.services.KeywordPlanService.GenerateForecastTimeSeries]. +message GenerateForecastTimeSeriesResponse { + // List of weekly time series forecasts for the keyword plan campaign. + // One maximum. + repeated KeywordPlanWeeklyTimeSeriesForecast weekly_time_series_forecasts = 1; +} + +// Request message for [KeywordPlanService.GenerateForecastMetrics][google.ads.googleads.v6.services.KeywordPlanService.GenerateForecastMetrics]. +message GenerateForecastMetricsRequest { + // Required. The resource name of the keyword plan to be forecasted. + string keyword_plan = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/KeywordPlan" + } + ]; +} + +// Response message for [KeywordPlanService.GenerateForecastMetrics][google.ads.googleads.v6.services.KeywordPlanService.GenerateForecastMetrics]. +message GenerateForecastMetricsResponse { + // List of campaign forecasts. + // One maximum. + repeated KeywordPlanCampaignForecast campaign_forecasts = 1; + + // List of ad group forecasts. + repeated KeywordPlanAdGroupForecast ad_group_forecasts = 2; + + // List of keyword forecasts. + repeated KeywordPlanKeywordForecast keyword_forecasts = 3; +} + +// A campaign forecast. +message KeywordPlanCampaignForecast { + // The resource name of the Keyword Plan campaign related to the forecast. + // + // `customers/{customer_id}/keywordPlanCampaigns/{keyword_plan_campaign_id}` + optional string keyword_plan_campaign = 3; + + // The forecast for the Keyword Plan campaign. + ForecastMetrics campaign_forecast = 2; +} + +// An ad group forecast. +message KeywordPlanAdGroupForecast { + // The resource name of the Keyword Plan ad group related to the forecast. + // + // `customers/{customer_id}/keywordPlanAdGroups/{keyword_plan_ad_group_id}` + optional string keyword_plan_ad_group = 3; + + // The forecast for the Keyword Plan ad group. + ForecastMetrics ad_group_forecast = 2; +} + +// A keyword forecast. +message KeywordPlanKeywordForecast { + // The resource name of the Keyword Plan keyword related to the forecast. + // + // `customers/{customer_id}/keywordPlanAdGroupKeywords/{keyword_plan_ad_group_keyword_id}` + optional string keyword_plan_ad_group_keyword = 3; + + // The forecast for the Keyword Plan keyword. + ForecastMetrics keyword_forecast = 2; +} + +// The forecast curve for the campaign. +message KeywordPlanCampaignForecastCurve { + // The resource name of the Keyword Plan campaign related to the forecast. + // + // `customers/{customer_id}/keywordPlanCampaigns/{keyword_plan_campaign_id}` + optional string keyword_plan_campaign = 3; + + // The max cpc bid forecast curve for the campaign. + KeywordPlanMaxCpcBidForecastCurve max_cpc_bid_forecast_curve = 2; +} + +// The max cpc bid forecast curve. +message KeywordPlanMaxCpcBidForecastCurve { + // The forecasts for the Keyword Plan campaign at different max CPC bids. + repeated KeywordPlanMaxCpcBidForecast max_cpc_bid_forecasts = 1; +} + +// The forecast of the campaign at a specific bid. +message KeywordPlanMaxCpcBidForecast { + // The max cpc bid in micros. + optional int64 max_cpc_bid_micros = 3; + + // The forecast for the Keyword Plan campaign at the specific bid. + ForecastMetrics max_cpc_bid_forecast = 2; +} + +// The weekly time series forecast for the keyword plan campaign. +message KeywordPlanWeeklyTimeSeriesForecast { + // The resource name of the Keyword Plan campaign related to the forecast. + // + // `customers/{customer_id}/keywordPlanCampaigns/{keyword_plan_campaign_id}` + optional string keyword_plan_campaign = 1; + + // The forecasts for the Keyword Plan campaign at different max CPC bids. + repeated KeywordPlanWeeklyForecast weekly_forecasts = 2; +} + +// The forecast of the campaign for the week starting start_date. +message KeywordPlanWeeklyForecast { + // The start date, in yyyy-mm-dd format. This date is inclusive. + optional string start_date = 1; + + // The forecast for the Keyword Plan campaign for the week. + ForecastMetrics forecast = 2; +} + +// Forecast metrics. +message ForecastMetrics { + // Impressions + optional double impressions = 7; + + // Ctr + optional double ctr = 8; + + // AVG cpc + optional int64 average_cpc = 9; + + // Clicks + optional double clicks = 10; + + // Cost + optional int64 cost_micros = 11; +} + +// Request message for [KeywordPlanService.GenerateHistoricalMetrics][google.ads.googleads.v6.services.KeywordPlanService.GenerateHistoricalMetrics]. +message GenerateHistoricalMetricsRequest { + // Required. The resource name of the keyword plan of which historical metrics are + // requested. + string keyword_plan = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/KeywordPlan" + } + ]; +} + +// Response message for [KeywordPlanService.GenerateHistoricalMetrics][google.ads.googleads.v6.services.KeywordPlanService.GenerateHistoricalMetrics]. +message GenerateHistoricalMetricsResponse { + // List of keyword historical metrics. + repeated KeywordPlanKeywordHistoricalMetrics metrics = 1; +} + +// A keyword historical metrics. +message KeywordPlanKeywordHistoricalMetrics { + // The text of the query associated with one or more ad_group_keywords in the + // plan. + // + // Note that we de-dupe your keywords list, eliminating close variants before + // returning the plan's keywords as text. For example, if your plan originally + // contained the keywords 'car' and 'cars', the returned search query will + // only contain 'cars'. + // Starting V5, the list of de-duped queries will be included in + // close_variants field. + optional string search_query = 4; + + // The list of close variant queries for search_query whose search results + // are combined into the search_query. + repeated string close_variants = 3; + + // The historical metrics for the query associated with one or more + // ad_group_keywords in the plan. + google.ads.googleads.v6.common.KeywordPlanHistoricalMetrics keyword_metrics = 2; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/keyword_view_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/keyword_view_service.proto new file mode 100644 index 000000000..ad2c7402e --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/keyword_view_service.proto @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/keyword_view.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "KeywordViewServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Keyword View service. + +// Service to manage keyword views. +service KeywordViewService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested keyword view in full detail. + rpc GetKeywordView(GetKeywordViewRequest) returns (google.ads.googleads.v6.resources.KeywordView) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/keywordViews/*}" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for [KeywordViewService.GetKeywordView][google.ads.googleads.v6.services.KeywordViewService.GetKeywordView]. +message GetKeywordViewRequest { + // Required. The resource name of the keyword view to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/KeywordView" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/label_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/label_service.proto new file mode 100644 index 000000000..4a7239487 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/label_service.proto @@ -0,0 +1,135 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/enums/response_content_type.proto"; +import "google/ads/googleads/v6/resources/label.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "LabelServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Service to manage labels. +service LabelService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested label in full detail. + rpc GetLabel(GetLabelRequest) returns (google.ads.googleads.v6.resources.Label) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/labels/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates, updates, or removes labels. Operation statuses are returned. + rpc MutateLabels(MutateLabelsRequest) returns (MutateLabelsResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/labels:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } +} + +// Request message for [LabelService.GetLabel][google.ads.googleads.v6.services.LabelService.GetLabel]. +message GetLabelRequest { + // Required. The resource name of the label to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Label" + } + ]; +} + +// Request message for [LabelService.MutateLabels][google.ads.googleads.v6.services.LabelService.MutateLabels]. +message MutateLabelsRequest { + // Required. ID of the customer whose labels are being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on labels. + repeated LabelOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 3; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; + + // The response content type setting. Determines whether the mutable resource + // or just the resource name should be returned post mutation. + google.ads.googleads.v6.enums.ResponseContentTypeEnum.ResponseContentType response_content_type = 5; +} + +// A single operation (create, remove, update) on a label. +message LabelOperation { + // FieldMask that determines which resource fields are modified in an update. + google.protobuf.FieldMask update_mask = 4; + + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new label. + google.ads.googleads.v6.resources.Label create = 1; + + // Update operation: The label is expected to have a valid resource name. + google.ads.googleads.v6.resources.Label update = 2; + + // Remove operation: A resource name for the label being removed, in + // this format: + // + // `customers/{customer_id}/labels/{label_id}` + string remove = 3; + } +} + +// Response message for a labels mutate. +message MutateLabelsResponse { + // Errors that pertain to operation failures in the partial failure mode. + // Returned only when partial_failure = true and all errors occur inside the + // operations. If any errors occur outside the operations (e.g. auth errors), + // we return an RPC level error. + google.rpc.Status partial_failure_error = 3; + + // All results for the mutate. + repeated MutateLabelResult results = 2; +} + +// The result for a label mutate. +message MutateLabelResult { + // Returned for successful operations. + string resource_name = 1; + + // The mutated label with only mutable fields after mutate. The field will + // only be returned when response_content_type is set to "MUTABLE_RESOURCE". + google.ads.googleads.v6.resources.Label label = 2; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/landing_page_view_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/landing_page_view_service.proto new file mode 100644 index 000000000..b7e601128 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/landing_page_view_service.proto @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/landing_page_view.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "LandingPageViewServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the landing page view service. + +// Service to fetch landing page views. +service LandingPageViewService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested landing page view in full detail. + rpc GetLandingPageView(GetLandingPageViewRequest) returns (google.ads.googleads.v6.resources.LandingPageView) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/landingPageViews/*}" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for [LandingPageViewService.GetLandingPageView][google.ads.googleads.v6.services.LandingPageViewService.GetLandingPageView]. +message GetLandingPageViewRequest { + // Required. The resource name of the landing page view to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/LandingPageView" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/language_constant_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/language_constant_service.proto new file mode 100644 index 000000000..9d9bc3b2a --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/language_constant_service.proto @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/language_constant.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "LanguageConstantServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the language constant service. + +// Service to fetch language constants. +service LanguageConstantService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested language constant. + rpc GetLanguageConstant(GetLanguageConstantRequest) returns (google.ads.googleads.v6.resources.LanguageConstant) { + option (google.api.http) = { + get: "/v6/{resource_name=languageConstants/*}" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for [LanguageConstantService.GetLanguageConstant][google.ads.googleads.v6.services.LanguageConstantService.GetLanguageConstant]. +message GetLanguageConstantRequest { + // Required. Resource name of the language constant to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/LanguageConstant" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/location_view_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/location_view_service.proto new file mode 100644 index 000000000..8a9e8f502 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/location_view_service.proto @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/location_view.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "LocationViewServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Location View service. + +// Service to fetch location views. +service LocationViewService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested location view in full detail. + rpc GetLocationView(GetLocationViewRequest) returns (google.ads.googleads.v6.resources.LocationView) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/locationViews/*}" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for [LocationViewService.GetLocationView][google.ads.googleads.v6.services.LocationViewService.GetLocationView]. +message GetLocationViewRequest { + // Required. The resource name of the location view to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/LocationView" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/managed_placement_view_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/managed_placement_view_service.proto new file mode 100644 index 000000000..dfdc53ebb --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/managed_placement_view_service.proto @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/managed_placement_view.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "ManagedPlacementViewServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Managed Placement View service. + +// Service to manage Managed Placement views. +service ManagedPlacementViewService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested Managed Placement view in full detail. + rpc GetManagedPlacementView(GetManagedPlacementViewRequest) returns (google.ads.googleads.v6.resources.ManagedPlacementView) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/managedPlacementViews/*}" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for [ManagedPlacementViewService.GetManagedPlacementView][google.ads.googleads.v6.services.ManagedPlacementViewService.GetManagedPlacementView]. +message GetManagedPlacementViewRequest { + // Required. The resource name of the Managed Placement View to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/ManagedPlacementView" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/media_file_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/media_file_service.proto new file mode 100644 index 000000000..d0aef0f71 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/media_file_service.proto @@ -0,0 +1,125 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/enums/response_content_type.proto"; +import "google/ads/googleads/v6/resources/media_file.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "MediaFileServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Media File service. + +// Service to manage media files. +service MediaFileService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested media file in full detail. + rpc GetMediaFile(GetMediaFileRequest) returns (google.ads.googleads.v6.resources.MediaFile) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/mediaFiles/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates media files. Operation statuses are returned. + rpc MutateMediaFiles(MutateMediaFilesRequest) returns (MutateMediaFilesResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/mediaFiles:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } +} + +// Request message for [MediaFileService.GetMediaFile][google.ads.googleads.v6.services.MediaFileService.GetMediaFile] +message GetMediaFileRequest { + // Required. The resource name of the media file to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/MediaFile" + } + ]; +} + +// Request message for [MediaFileService.MutateMediaFiles][google.ads.googleads.v6.services.MediaFileService.MutateMediaFiles] +message MutateMediaFilesRequest { + // Required. The ID of the customer whose media files are being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on individual media file. + repeated MediaFileOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 3; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; + + // The response content type setting. Determines whether the mutable resource + // or just the resource name should be returned post mutation. + google.ads.googleads.v6.enums.ResponseContentTypeEnum.ResponseContentType response_content_type = 5; +} + +// A single operation to create media file. +message MediaFileOperation { + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new media file. + google.ads.googleads.v6.resources.MediaFile create = 1; + } +} + +// Response message for a media file mutate. +message MutateMediaFilesResponse { + // Errors that pertain to operation failures in the partial failure mode. + // Returned only when partial_failure = true and all errors occur inside the + // operations. If any errors occur outside the operations (e.g. auth errors), + // we return an RPC level error. + google.rpc.Status partial_failure_error = 3; + + // All results for the mutate. + repeated MutateMediaFileResult results = 2; +} + +// The result for the media file mutate. +message MutateMediaFileResult { + // The resource name returned for successful operations. + string resource_name = 1; + + // The mutated media file with only mutable fields after mutate. The field + // will only be returned when response_content_type is set to + // "MUTABLE_RESOURCE". + google.ads.googleads.v6.resources.MediaFile media_file = 2; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/merchant_center_link_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/merchant_center_link_service.proto new file mode 100644 index 000000000..bf0fedd3e --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/merchant_center_link_service.proto @@ -0,0 +1,131 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/merchant_center_link.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "MerchantCenterLinkServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the MerchantCenterLink service. + +// This service allows management of links between Google Ads and Google +// Merchant Center. +service MerchantCenterLinkService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns Merchant Center links available for this customer. + rpc ListMerchantCenterLinks(ListMerchantCenterLinksRequest) returns (ListMerchantCenterLinksResponse) { + option (google.api.http) = { + get: "/v6/customers/{customer_id=*}/merchantCenterLinks" + }; + option (google.api.method_signature) = "customer_id"; + } + + // Returns the Merchant Center link in full detail. + rpc GetMerchantCenterLink(GetMerchantCenterLinkRequest) returns (google.ads.googleads.v6.resources.MerchantCenterLink) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/merchantCenterLinks/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Updates status or removes a Merchant Center link. + rpc MutateMerchantCenterLink(MutateMerchantCenterLinkRequest) returns (MutateMerchantCenterLinkResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/merchantCenterLinks:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operation"; + } +} + +// Request message for [MerchantCenterLinkService.ListMerchantCenterLinks][google.ads.googleads.v6.services.MerchantCenterLinkService.ListMerchantCenterLinks]. +message ListMerchantCenterLinksRequest { + // Required. The ID of the customer onto which to apply the Merchant Center link list + // operation. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for [MerchantCenterLinkService.ListMerchantCenterLinks][google.ads.googleads.v6.services.MerchantCenterLinkService.ListMerchantCenterLinks]. +message ListMerchantCenterLinksResponse { + // Merchant Center links available for the requested customer + repeated google.ads.googleads.v6.resources.MerchantCenterLink merchant_center_links = 1; +} + +// Request message for [MerchantCenterLinkService.GetMerchantCenterLink][google.ads.googleads.v6.services.MerchantCenterLinkService.GetMerchantCenterLink]. +message GetMerchantCenterLinkRequest { + // Required. Resource name of the Merchant Center link. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/MerchantCenterLink" + } + ]; +} + +// Request message for [MerchantCenterLinkService.MutateMerchantCenterLink][google.ads.googleads.v6.services.MerchantCenterLinkService.MutateMerchantCenterLink]. +message MutateMerchantCenterLinkRequest { + // Required. The ID of the customer being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The operation to perform on the link + MerchantCenterLinkOperation operation = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// A single update on a Merchant Center link. +message MerchantCenterLinkOperation { + // FieldMask that determines which resource fields are modified in an update. + google.protobuf.FieldMask update_mask = 3; + + // The operation to perform + oneof operation { + // Update operation: The merchant center link is expected to have a valid + // resource name. + google.ads.googleads.v6.resources.MerchantCenterLink update = 1; + + // Remove operation: A resource name for the removed merchant center link is + // expected, in this format: + // + // `customers/{customer_id}/merchantCenterLinks/{merchant_center_id}` + string remove = 2; + } +} + +// Response message for Merchant Center link mutate. +message MutateMerchantCenterLinkResponse { + // Result for the mutate. + MutateMerchantCenterLinkResult result = 2; +} + +// The result for the Merchant Center link mutate. +message MutateMerchantCenterLinkResult { + // Returned for successful operations. + string resource_name = 1; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/mobile_app_category_constant_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/mobile_app_category_constant_service.proto new file mode 100644 index 000000000..30b368c6f --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/mobile_app_category_constant_service.proto @@ -0,0 +1,58 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/mobile_app_category_constant.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "MobileAppCategoryConstantServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Service to fetch mobile app category constants. +service MobileAppCategoryConstantService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested mobile app category constant. + rpc GetMobileAppCategoryConstant(GetMobileAppCategoryConstantRequest) returns (google.ads.googleads.v6.resources.MobileAppCategoryConstant) { + option (google.api.http) = { + get: "/v6/{resource_name=mobileAppCategoryConstants/*}" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for +// [MobileAppCategoryConstantService.GetMobileAppCategoryConstant][google.ads.googleads.v6.services.MobileAppCategoryConstantService.GetMobileAppCategoryConstant]. +message GetMobileAppCategoryConstantRequest { + // Required. Resource name of the mobile app category constant to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/MobileAppCategoryConstant" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/mobile_device_constant_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/mobile_device_constant_service.proto new file mode 100644 index 000000000..6c1780a58 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/mobile_device_constant_service.proto @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/mobile_device_constant.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "MobileDeviceConstantServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the mobile device constant service. + +// Service to fetch mobile device constants. +service MobileDeviceConstantService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested mobile device constant in full detail. + rpc GetMobileDeviceConstant(GetMobileDeviceConstantRequest) returns (google.ads.googleads.v6.resources.MobileDeviceConstant) { + option (google.api.http) = { + get: "/v6/{resource_name=mobileDeviceConstants/*}" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for [MobileDeviceConstantService.GetMobileDeviceConstant][google.ads.googleads.v6.services.MobileDeviceConstantService.GetMobileDeviceConstant]. +message GetMobileDeviceConstantRequest { + // Required. Resource name of the mobile device to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/MobileDeviceConstant" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v3/services/offline_user_data_job_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/offline_user_data_job_service.proto similarity index 79% rename from third_party/googleapis/google/ads/googleads/v3/services/offline_user_data_job_service.proto rename to third_party/googleapis/google/ads/googleads/v6/services/offline_user_data_job_service.proto index 205068313..0d7d6c0ca 100644 --- a/third_party/googleapis/google/ads/googleads/v3/services/offline_user_data_job_service.proto +++ b/third_party/googleapis/google/ads/googleads/v6/services/offline_user_data_job_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -14,46 +14,46 @@ syntax = "proto3"; -package google.ads.googleads.v3.services; +package google.ads.googleads.v6.services; -import "google/ads/googleads/v3/common/offline_user_data.proto"; -import "google/ads/googleads/v3/resources/offline_user_data_job.proto"; +import "google/ads/googleads/v6/common/offline_user_data.proto"; +import "google/ads/googleads/v6/resources/offline_user_data_job.proto"; import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/longrunning/operations.proto"; -import "google/protobuf/wrappers.proto"; import "google/rpc/status.proto"; -option csharp_namespace = "Google.Ads.GoogleAds.V3.Services"; -option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v3/services;services"; +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; option java_multiple_files = true; option java_outer_classname = "OfflineUserDataJobServiceProto"; -option java_package = "com.google.ads.googleads.v3.services"; +option java_package = "com.google.ads.googleads.v6.services"; option objc_class_prefix = "GAA"; -option php_namespace = "Google\\Ads\\GoogleAds\\V3\\Services"; -option ruby_package = "Google::Ads::GoogleAds::V3::Services"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; // Proto file describing the OfflineUserDataJobService. // Service to manage offline user data jobs. service OfflineUserDataJobService { option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; // Creates an offline user data job. rpc CreateOfflineUserDataJob(CreateOfflineUserDataJobRequest) returns (CreateOfflineUserDataJobResponse) { option (google.api.http) = { - post: "/v3/customers/{customer_id=*}/offlineUserDataJobs:create" + post: "/v6/customers/{customer_id=*}/offlineUserDataJobs:create" body: "*" }; option (google.api.method_signature) = "customer_id,job"; } // Returns the offline user data job. - rpc GetOfflineUserDataJob(GetOfflineUserDataJobRequest) returns (google.ads.googleads.v3.resources.OfflineUserDataJob) { + rpc GetOfflineUserDataJob(GetOfflineUserDataJobRequest) returns (google.ads.googleads.v6.resources.OfflineUserDataJob) { option (google.api.http) = { - get: "/v3/{resource_name=customers/*/offlineUserDataJobs/*}" + get: "/v6/{resource_name=customers/*/offlineUserDataJobs/*}" }; option (google.api.method_signature) = "resource_name"; } @@ -61,7 +61,7 @@ service OfflineUserDataJobService { // Adds operations to the offline user data job. rpc AddOfflineUserDataJobOperations(AddOfflineUserDataJobOperationsRequest) returns (AddOfflineUserDataJobOperationsResponse) { option (google.api.http) = { - post: "/v3/{resource_name=customers/*/offlineUserDataJobs/*}:addOperations" + post: "/v6/{resource_name=customers/*/offlineUserDataJobs/*}:addOperations" body: "*" }; option (google.api.method_signature) = "resource_name,operations"; @@ -73,7 +73,7 @@ service OfflineUserDataJobService { // result or failure information, if any. rpc RunOfflineUserDataJob(RunOfflineUserDataJobRequest) returns (google.longrunning.Operation) { option (google.api.http) = { - post: "/v3/{resource_name=customers/*/offlineUserDataJobs/*}:run" + post: "/v6/{resource_name=customers/*/offlineUserDataJobs/*}:run" body: "*" }; option (google.api.method_signature) = "resource_name"; @@ -85,23 +85,23 @@ service OfflineUserDataJobService { } // Request message for -// [OfflineUserDataJobService.CreateOfflineUserDataJob][google.ads.googleads.v3.services.OfflineUserDataJobService.CreateOfflineUserDataJob]. +// [OfflineUserDataJobService.CreateOfflineUserDataJob][google.ads.googleads.v6.services.OfflineUserDataJobService.CreateOfflineUserDataJob]. message CreateOfflineUserDataJobRequest { // Required. The ID of the customer for which to create an offline user data job. string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The offline user data job to be created. - google.ads.googleads.v3.resources.OfflineUserDataJob job = 2 [(google.api.field_behavior) = REQUIRED]; + google.ads.googleads.v6.resources.OfflineUserDataJob job = 2 [(google.api.field_behavior) = REQUIRED]; } // Response message for -// [OfflineUserDataJobService.CreateOfflineUserDataJob][google.ads.googleads.v3.services.OfflineUserDataJobService.CreateOfflineUserDataJob]. +// [OfflineUserDataJobService.CreateOfflineUserDataJob][google.ads.googleads.v6.services.OfflineUserDataJobService.CreateOfflineUserDataJob]. message CreateOfflineUserDataJobResponse { // The resource name of the OfflineUserDataJob. string resource_name = 1; } -// Request message for [OfflineUserDataJobService.GetOfflineUserDataJob][google.ads.googleads.v3.services.OfflineUserDataJobService.GetOfflineUserDataJob]. +// Request message for [OfflineUserDataJobService.GetOfflineUserDataJob][google.ads.googleads.v6.services.OfflineUserDataJobService.GetOfflineUserDataJob]. message GetOfflineUserDataJobRequest { // Required. The resource name of the OfflineUserDataJob to get. string resource_name = 1 [ @@ -112,7 +112,7 @@ message GetOfflineUserDataJobRequest { ]; } -// Request message for [OfflineUserDataJobService.RunOfflineUserDataJob][google.ads.googleads.v3.services.OfflineUserDataJobService.RunOfflineUserDataJob]. +// Request message for [OfflineUserDataJobService.RunOfflineUserDataJob][google.ads.googleads.v6.services.OfflineUserDataJobService.RunOfflineUserDataJob]. message RunOfflineUserDataJobRequest { // Required. The resource name of the OfflineUserDataJob to run. string resource_name = 1 [ @@ -124,7 +124,7 @@ message RunOfflineUserDataJobRequest { } // Request message for -// [OfflineUserDataJobService.AddOfflineUserDataJobOperations][google.ads.googleads.v3.services.OfflineUserDataJobService.AddOfflineUserDataJobOperations]. +// [OfflineUserDataJobService.AddOfflineUserDataJobOperations][google.ads.googleads.v6.services.OfflineUserDataJobService.AddOfflineUserDataJobOperations]. message AddOfflineUserDataJobOperationsRequest { // Required. The resource name of the OfflineUserDataJob. string resource_name = 1 [ @@ -135,7 +135,7 @@ message AddOfflineUserDataJobOperationsRequest { ]; // True to enable partial failure for the offline user data job. - google.protobuf.BoolValue enable_partial_failure = 2; + optional bool enable_partial_failure = 4; // Required. The list of operations to be done. repeated OfflineUserDataJobOperation operations = 3 [(google.api.field_behavior) = REQUIRED]; @@ -147,11 +147,11 @@ message OfflineUserDataJobOperation { oneof operation { // Add the provided data to the transaction. Data cannot be retrieved after // being uploaded. - google.ads.googleads.v3.common.UserData create = 1; + google.ads.googleads.v6.common.UserData create = 1; // Remove the provided data from the transaction. Data cannot be retrieved // after being uploaded. - google.ads.googleads.v3.common.UserData remove = 2; + google.ads.googleads.v6.common.UserData remove = 2; // Remove all previously provided data. This is only supported for Customer // Match. @@ -160,7 +160,7 @@ message OfflineUserDataJobOperation { } // Response message for -// [OfflineUserDataJobService.AddOfflineUserDataJobOperations][google.ads.googleads.v3.services.OfflineUserDataJobService.AddOfflineUserDataJobOperations]. +// [OfflineUserDataJobService.AddOfflineUserDataJobOperations][google.ads.googleads.v6.services.OfflineUserDataJobService.AddOfflineUserDataJobOperations]. message AddOfflineUserDataJobOperationsResponse { // Errors that pertain to operation failures in the partial failure mode. // Returned only when partial_failure = true and all errors occur inside the diff --git a/third_party/googleapis/google/ads/googleads/v6/services/operating_system_version_constant_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/operating_system_version_constant_service.proto new file mode 100644 index 000000000..baec1f4a4 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/operating_system_version_constant_service.proto @@ -0,0 +1,60 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/operating_system_version_constant.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "OperatingSystemVersionConstantServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the OS version constant service + +// Service to fetch Operating System Version constants. +service OperatingSystemVersionConstantService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested OS version constant in full detail. + rpc GetOperatingSystemVersionConstant(GetOperatingSystemVersionConstantRequest) returns (google.ads.googleads.v6.resources.OperatingSystemVersionConstant) { + option (google.api.http) = { + get: "/v6/{resource_name=operatingSystemVersionConstants/*}" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for +// [OperatingSystemVersionConstantService.GetOperatingSystemVersionConstant][google.ads.googleads.v6.services.OperatingSystemVersionConstantService.GetOperatingSystemVersionConstant]. +message GetOperatingSystemVersionConstantRequest { + // Required. Resource name of the OS version to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/OperatingSystemVersionConstant" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/paid_organic_search_term_view_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/paid_organic_search_term_view_service.proto new file mode 100644 index 000000000..2784bfa55 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/paid_organic_search_term_view_service.proto @@ -0,0 +1,60 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/paid_organic_search_term_view.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "PaidOrganicSearchTermViewServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Paid Organic Search Term View service. + +// Service to fetch paid organic search term views. +service PaidOrganicSearchTermViewService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested paid organic search term view in full detail. + rpc GetPaidOrganicSearchTermView(GetPaidOrganicSearchTermViewRequest) returns (google.ads.googleads.v6.resources.PaidOrganicSearchTermView) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/paidOrganicSearchTermViews/*}" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for +// [PaidOrganicSearchTermViewService.GetPaidOrganicSearchTermView][google.ads.googleads.v6.services.PaidOrganicSearchTermViewService.GetPaidOrganicSearchTermView]. +message GetPaidOrganicSearchTermViewRequest { + // Required. The resource name of the paid organic search term view to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/PaidOrganicSearchTermView" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/parental_status_view_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/parental_status_view_service.proto new file mode 100644 index 000000000..b5309cd75 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/parental_status_view_service.proto @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/parental_status_view.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "ParentalStatusViewServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Parental Status View service. + +// Service to manage parental status views. +service ParentalStatusViewService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested parental status view in full detail. + rpc GetParentalStatusView(GetParentalStatusViewRequest) returns (google.ads.googleads.v6.resources.ParentalStatusView) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/parentalStatusViews/*}" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for [ParentalStatusViewService.GetParentalStatusView][google.ads.googleads.v6.services.ParentalStatusViewService.GetParentalStatusView]. +message GetParentalStatusViewRequest { + // Required. The resource name of the parental status view to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/ParentalStatusView" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/payments_account_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/payments_account_service.proto new file mode 100644 index 000000000..c4fa613ef --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/payments_account_service.proto @@ -0,0 +1,62 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/payments_account.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "PaymentsAccountServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the payments account service. + +// Service to provide payments accounts that can be used to set up consolidated +// billing. +service PaymentsAccountService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns all payments accounts associated with all managers + // between the login customer ID and specified serving customer in the + // hierarchy, inclusive. + rpc ListPaymentsAccounts(ListPaymentsAccountsRequest) returns (ListPaymentsAccountsResponse) { + option (google.api.http) = { + get: "/v6/customers/{customer_id=*}/paymentsAccounts" + }; + option (google.api.method_signature) = "customer_id"; + } +} + +// Request message for fetching all accessible payments accounts. +message ListPaymentsAccountsRequest { + // Required. The ID of the customer to apply the PaymentsAccount list operation to. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for [PaymentsAccountService.ListPaymentsAccounts][google.ads.googleads.v6.services.PaymentsAccountService.ListPaymentsAccounts]. +message ListPaymentsAccountsResponse { + // The list of accessible payments accounts. + repeated google.ads.googleads.v6.resources.PaymentsAccount payments_accounts = 1; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/product_bidding_category_constant_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/product_bidding_category_constant_service.proto new file mode 100644 index 000000000..0c9b5af54 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/product_bidding_category_constant_service.proto @@ -0,0 +1,60 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/product_bidding_category_constant.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "ProductBiddingCategoryConstantServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Product Bidding Category constant service + +// Service to fetch Product Bidding Categories. +service ProductBiddingCategoryConstantService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested Product Bidding Category in full detail. + rpc GetProductBiddingCategoryConstant(GetProductBiddingCategoryConstantRequest) returns (google.ads.googleads.v6.resources.ProductBiddingCategoryConstant) { + option (google.api.http) = { + get: "/v6/{resource_name=productBiddingCategoryConstants/*}" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for +// [ProductBiddingCategoryConstantService.GetProductBiddingCategoryConstant][google.ads.googleads.v6.services.ProductBiddingCategoryConstantService.GetProductBiddingCategoryConstant]. +message GetProductBiddingCategoryConstantRequest { + // Required. Resource name of the Product Bidding Category to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/ProductBiddingCategoryConstant" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/product_group_view_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/product_group_view_service.proto new file mode 100644 index 000000000..a0ac8737b --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/product_group_view_service.proto @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/product_group_view.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "ProductGroupViewServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the ProductGroup View service. + +// Service to manage product group views. +service ProductGroupViewService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested product group view in full detail. + rpc GetProductGroupView(GetProductGroupViewRequest) returns (google.ads.googleads.v6.resources.ProductGroupView) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/productGroupViews/*}" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for [ProductGroupViewService.GetProductGroupView][google.ads.googleads.v6.services.ProductGroupViewService.GetProductGroupView]. +message GetProductGroupViewRequest { + // Required. The resource name of the product group view to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/ProductGroupView" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/reach_plan_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/reach_plan_service.proto new file mode 100644 index 000000000..51f2f3edc --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/reach_plan_service.proto @@ -0,0 +1,429 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/common/criteria.proto"; +import "google/ads/googleads/v6/enums/frequency_cap_time_unit.proto"; +import "google/ads/googleads/v6/enums/reach_plan_ad_length.proto"; +import "google/ads/googleads/v6/enums/reach_plan_age_range.proto"; +import "google/ads/googleads/v6/enums/reach_plan_network.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "ReachPlanServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the reach plan service. + +// Reach Plan Service gives users information about audience size that can +// be reached through advertisement on YouTube. In particular, +// GenerateReachForecast provides estimated number of people of specified +// demographics that can be reached by an ad in a given market by a campaign of +// certain duration with a defined budget. +service ReachPlanService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the list of plannable locations (for example, countries & DMAs). + rpc ListPlannableLocations(ListPlannableLocationsRequest) returns (ListPlannableLocationsResponse) { + option (google.api.http) = { + post: "/v6:listPlannableLocations" + body: "*" + }; + } + + // Returns the list of per-location plannable YouTube ad formats with allowed + // targeting. + rpc ListPlannableProducts(ListPlannableProductsRequest) returns (ListPlannableProductsResponse) { + option (google.api.http) = { + post: "/v6:listPlannableProducts" + body: "*" + }; + option (google.api.method_signature) = "plannable_location_id"; + } + + // Generates a product mix ideas given a set of preferences. This method + // helps the advertiser to obtain a good mix of ad formats and budget + // allocations based on its preferences. + rpc GenerateProductMixIdeas(GenerateProductMixIdeasRequest) returns (GenerateProductMixIdeasResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}:generateProductMixIdeas" + body: "*" + }; + option (google.api.method_signature) = "customer_id,plannable_location_id,currency_code,budget_micros"; + } + + // Generates a reach forecast for a given targeting / product mix. + rpc GenerateReachForecast(GenerateReachForecastRequest) returns (GenerateReachForecastResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}:generateReachForecast" + body: "*" + }; + option (google.api.method_signature) = "customer_id,campaign_duration,planned_products"; + } +} + +// Request message for [ReachPlanService.ListPlannableLocations][google.ads.googleads.v6.services.ReachPlanService.ListPlannableLocations]. +message ListPlannableLocationsRequest { + +} + +// The list of plannable locations. +message ListPlannableLocationsResponse { + // The list of locations available for planning (Countries, DMAs, + // sub-countries). + // For locations like Countries, DMAs see + // https://developers.google.com/adwords/api/docs/appendix/geotargeting for + // more information. + repeated PlannableLocation plannable_locations = 1; +} + +// A plannable location: a country, a DMA, a metro region, a tv region, +// a province. +message PlannableLocation { + // The location identifier. + optional string id = 4; + + // The unique location name in english. + optional string name = 5; + + // The parent country code, not present if location is a country. + // If present will always be a criterion id: additional information, such as + // country name are returned both via ListPlannableLocations or directly by + // accessing GeoTargetConstantService with the criterion id. + optional int64 parent_country_id = 6; +} + +// Request to list available products in a given location. +message ListPlannableProductsRequest { + // Required. The ID of the selected location for planning. To list the available + // plannable location ids use ListPlannableLocations. + string plannable_location_id = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// A response with all available products. +message ListPlannableProductsResponse { + // The list of products available for planning and related targeting metadata. + repeated ProductMetadata product_metadata = 1; +} + +// The metadata associated with an available plannable product. +message ProductMetadata { + // The code associated with the ad product. E.g. BUMPER, TRUEVIEW_IN_STREAM + // To list the available plannable product codes use ListPlannableProducts. + optional string plannable_product_code = 4; + + // The name associated with the ad product. + string plannable_product_name = 3; + + // The allowed plannable targeting for this product. + PlannableTargeting plannable_targeting = 2; +} + +// The targeting for which traffic metrics will be reported. +message PlannableTargeting { + // Allowed plannable age ranges for the product for which metrics will be + // reported. Actual targeting is computed by mapping this age range onto + // standard Google common.AgeRangeInfo values. + repeated google.ads.googleads.v6.enums.ReachPlanAgeRangeEnum.ReachPlanAgeRange age_ranges = 1; + + // Targetable genders for the ad product. + repeated google.ads.googleads.v6.common.GenderInfo genders = 2; + + // Targetable devices for the ad product. + repeated google.ads.googleads.v6.common.DeviceInfo devices = 3; + + // Targetable networks for the ad product. + repeated google.ads.googleads.v6.enums.ReachPlanNetworkEnum.ReachPlanNetwork networks = 4; +} + +// Request message for [ReachPlanService.GenerateProductMixIdeas][google.ads.googleads.v6.services.ReachPlanService.GenerateProductMixIdeas]. +message GenerateProductMixIdeasRequest { + // Required. The ID of the customer. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The ID of the location, this is one of the ids returned by + // ListPlannableLocations. + string plannable_location_id = 6 [(google.api.field_behavior) = REQUIRED]; + + // Required. Currency code. + // Three-character ISO 4217 currency code. + string currency_code = 7 [(google.api.field_behavior) = REQUIRED]; + + // Required. Total budget. + // Amount in micros. One million is equivalent to one unit. + int64 budget_micros = 8 [(google.api.field_behavior) = REQUIRED]; + + // The preferences of the suggested product mix. + // An unset preference is interpreted as all possible values are allowed, + // unless explicitly specified. + Preferences preferences = 5; +} + +// Set of preferences about the planned mix. +message Preferences { + // True if ad skippable. + // If not set, default is any value. + optional bool is_skippable = 6; + + // True if ad start with sound. + // If not set, default is any value. + optional bool starts_with_sound = 7; + + // The length of the ad. + // If not set, default is any value. + google.ads.googleads.v6.enums.ReachPlanAdLengthEnum.ReachPlanAdLength ad_length = 3; + + // True if ad will only show on the top content. + // If not set, default is false. + optional bool top_content_only = 8; + + // True if the price guaranteed. The cost of serving the ad is agreed upfront + // and not subject to an auction. + // If not set, default is any value. + optional bool has_guaranteed_price = 9; +} + +// The suggested product mix. +message GenerateProductMixIdeasResponse { + // A list of products (ad formats) and the associated budget allocation idea. + repeated ProductAllocation product_allocation = 1; +} + +// An allocation of a part of the budget on a given product. +message ProductAllocation { + // Selected product for planning. The product codes returned are within the + // set of the ones returned by ListPlannableProducts when using the same + // location id. + optional string plannable_product_code = 3; + + // The value to be allocated for the suggested product in requested currency. + // Amount in micros. One million is equivalent to one unit. + optional int64 budget_micros = 4; +} + +// Request message for [ReachPlanService.GenerateReachForecast][google.ads.googleads.v6.services.ReachPlanService.GenerateReachForecast]. +message GenerateReachForecastRequest { + // Required. The ID of the customer. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // The currency code. + // Three-character ISO 4217 currency code. + optional string currency_code = 9; + + // Required. Campaign duration. + CampaignDuration campaign_duration = 3 [(google.api.field_behavior) = REQUIRED]; + + // Desired cookie frequency cap that will be applied to each planned product. + // This is equivalent to the frequency cap exposed in Google Ads when creating + // a campaign, it represents the maximum number of times an ad can be shown to + // the same user. + // If not specified no cap is applied. + // + // This field is deprecated in v4 and will eventually be removed. + // Please use cookie_frequency_cap_setting instead. + optional int32 cookie_frequency_cap = 10; + + // Desired cookie frequency cap that will be applied to each planned product. + // This is equivalent to the frequency cap exposed in Google Ads when creating + // a campaign, it represents the maximum number of times an ad can be shown to + // the same user during a specified time interval. + // If not specified, no cap is applied. + // + // This field replaces the deprecated cookie_frequency_cap field. + FrequencyCap cookie_frequency_cap_setting = 8; + + // Desired minimum effective frequency (the number of times a person was + // exposed to the ad) for the reported reach metrics [1-10]. + // This won't affect the targeting, but just the reporting. + // If not specified, a default of 1 is applied. + optional int32 min_effective_frequency = 11; + + // The targeting to be applied to all products selected in the product mix. + // + // This is planned targeting: execution details might vary based on the + // advertising product, please consult an implementation specialist. + // + // See specific metrics for details on how targeting affects them. + // + // In some cases, targeting may be overridden using the + // PlannedProduct.advanced_product_targeting field. + Targeting targeting = 6; + + // Required. The products to be forecast. + // The max number of allowed planned products is 15. + repeated PlannedProduct planned_products = 7 [(google.api.field_behavior) = REQUIRED]; +} + +// A rule specifying the maximum number of times an ad can be shown to a user +// over a particular time period. +message FrequencyCap { + // Required. The number of impressions, inclusive. + int32 impressions = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. The type of time unit. + google.ads.googleads.v6.enums.FrequencyCapTimeUnitEnum.FrequencyCapTimeUnit time_unit = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// The targeting for which traffic metrics will be reported. +message Targeting { + // Required. The ID of the selected location. + // Plannable locations ID can be obtained from ListPlannableLocations. + optional string plannable_location_id = 6; + + // Targeted age range. + // If not specified, targets all age ranges. + google.ads.googleads.v6.enums.ReachPlanAgeRangeEnum.ReachPlanAgeRange age_range = 2; + + // Targeted genders. + // If not specified, targets all genders. + repeated google.ads.googleads.v6.common.GenderInfo genders = 3; + + // Targeted devices. + // If not specified, targets all applicable devices. Applicable devices vary + // by product and region and can be obtained from ListPlannableProducts. + repeated google.ads.googleads.v6.common.DeviceInfo devices = 4; + + // Targetable network for the ad product. + // If not specified, targets all applicable networks. Applicable networks vary + // by product and region and can be obtained from ListPlannableProducts. + google.ads.googleads.v6.enums.ReachPlanNetworkEnum.ReachPlanNetwork network = 5; +} + +// The duration of a planned campaign. +message CampaignDuration { + // The duration value in days. + optional int32 duration_in_days = 2; +} + +// A product being planned for reach. +message PlannedProduct { + // Required. Selected product for planning. + // The code associated with the ad product. E.g. Trueview, Bumper + // To list the available plannable product codes use ListPlannableProducts. + optional string plannable_product_code = 3; + + // Required. Maximum budget allocation in micros for the selected product. + // The value is specified in the selected planning currency_code. + // E.g. 1 000 000$ = 1 000 000 000 000 micros. + optional int64 budget_micros = 4; +} + +// Response message containing the generated reach curve. +message GenerateReachForecastResponse { + // Reference on target audiences for this curve. + OnTargetAudienceMetrics on_target_audience_metrics = 1; + + // The generated reach curve for the planned product mix. + ReachCurve reach_curve = 2; +} + +// The reach curve for the planned products. +message ReachCurve { + // All points on the reach curve. + repeated ReachForecast reach_forecasts = 1; +} + +// A point on reach curve. +message ReachForecast { + // The cost in micros. + int64 cost_micros = 5; + + // Forecasted traffic metrics for this point. + Forecast forecast = 2; + + // The forecasted allocation and traffic metrics for each planned product + // at this point on the reach curve. + repeated PlannedProductReachForecast planned_product_reach_forecasts = 4; +} + +// Forecasted traffic metrics for the planned products and targeting. +message Forecast { + // Number of unique people reached at least + // GenerateReachForecastRequest.min_effective_frequency times that exactly + // matches the Targeting. + optional int64 on_target_reach = 5; + + // Total number of unique people reached at least + // GenerateReachForecastRequest.min_effective_frequency times. This includes + // people that may fall outside the specified Targeting. + optional int64 total_reach = 6; + + // Number of ad impressions that exactly matches the Targeting. + optional int64 on_target_impressions = 7; + + // Total number of ad impressions. This includes impressions that may fall + // outside the specified Targeting, due to insufficient information on + // signed-in users. + optional int64 total_impressions = 8; +} + +// The forecasted allocation and traffic metrics for a specific product +// at a point on the reach curve. +message PlannedProductReachForecast { + // Selected product for planning. The product codes returned are within the + // set of the ones returned by ListPlannableProducts when using the same + // location id. + string plannable_product_code = 1; + + // The cost in micros. This may differ from the product's input allocation + // if one or more planned products cannot fulfill the budget because of + // limited inventory. + int64 cost_micros = 2; + + // Forecasted traffic metrics for this product. + PlannedProductForecast planned_product_forecast = 3; +} + +// Forecasted traffic metrics for a planned product. +message PlannedProductForecast { + // Number of unique people reached that exactly matches the Targeting. + int64 on_target_reach = 1; + + // Number of unique people reached. This includes people that may fall + // outside the specified Targeting. + int64 total_reach = 2; + + // Number of ad impressions that exactly matches the Targeting. + int64 on_target_impressions = 3; + + // Total number of ad impressions. This includes impressions that may fall + // outside the specified Targeting, due to insufficient information on + // signed-in users. + int64 total_impressions = 4; +} + +// Audience metrics for the planned products. +// These metrics consider the following targeting dimensions: +// +// - Location +// - PlannableAgeRange +// - Gender +message OnTargetAudienceMetrics { + // Reference audience size matching the considered targeting for YouTube. + optional int64 youtube_audience_size = 3; + + // Reference audience size matching the considered targeting for Census. + optional int64 census_audience_size = 4; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/recommendation_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/recommendation_service.proto new file mode 100644 index 000000000..d52cdc5bc --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/recommendation_service.proto @@ -0,0 +1,279 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/common/extensions.proto"; +import "google/ads/googleads/v6/enums/keyword_match_type.proto"; +import "google/ads/googleads/v6/resources/ad.proto"; +import "google/ads/googleads/v6/resources/recommendation.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "RecommendationServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Recommendation service. + +// Service to manage recommendations. +service RecommendationService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested recommendation in full detail. + rpc GetRecommendation(GetRecommendationRequest) returns (google.ads.googleads.v6.resources.Recommendation) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/recommendations/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Applies given recommendations with corresponding apply parameters. + rpc ApplyRecommendation(ApplyRecommendationRequest) returns (ApplyRecommendationResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/recommendations:apply" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } + + // Dismisses given recommendations. + rpc DismissRecommendation(DismissRecommendationRequest) returns (DismissRecommendationResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/recommendations:dismiss" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } +} + +// Request message for [RecommendationService.GetRecommendation][google.ads.googleads.v6.services.RecommendationService.GetRecommendation]. +message GetRecommendationRequest { + // Required. The resource name of the recommendation to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Recommendation" + } + ]; +} + +// Request message for [RecommendationService.ApplyRecommendation][google.ads.googleads.v6.services.RecommendationService.ApplyRecommendation]. +message ApplyRecommendationRequest { + // Required. The ID of the customer with the recommendation. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to apply recommendations. + // If partial_failure=false all recommendations should be of the same type + // There is a limit of 100 operations per request. + repeated ApplyRecommendationOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, operations will be carried + // out as a transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 3; +} + +// Information about the operation to apply a recommendation and any parameters +// to customize it. +message ApplyRecommendationOperation { + // Parameters to use when applying a campaign budget recommendation. + message CampaignBudgetParameters { + // New budget amount to set for target budget resource. This is a required + // field. + optional int64 new_budget_amount_micros = 2; + } + + // Parameters to use when applying a text ad recommendation. + message TextAdParameters { + // New ad to add to recommended ad group. All necessary fields need to be + // set in this message. This is a required field. + google.ads.googleads.v6.resources.Ad ad = 1; + } + + // Parameters to use when applying keyword recommendation. + message KeywordParameters { + // The ad group resource to add keyword to. This is a required field. + optional string ad_group = 4; + + // The match type of the keyword. This is a required field. + google.ads.googleads.v6.enums.KeywordMatchTypeEnum.KeywordMatchType match_type = 2; + + // Optional, CPC bid to set for the keyword. If not set, keyword will use + // bid based on bidding strategy used by target ad group. + optional int64 cpc_bid_micros = 5; + } + + // Parameters to use when applying Target CPA recommendation. + message TargetCpaOptInParameters { + // Average CPA to use for Target CPA bidding strategy. This is a required + // field. + optional int64 target_cpa_micros = 3; + + // Optional, budget amount to set for the campaign. + optional int64 new_campaign_budget_amount_micros = 4; + } + + // Parameters to use when applying a Target ROAS opt-in recommendation. + message TargetRoasOptInParameters { + // Average ROAS (revenue per unit of spend) to use for Target ROAS bidding + // strategy. The value is between 0.01 and 1000.0, inclusive. This is a + // required field. + optional double target_roas = 1; + + // Optional, budget amount to set for the campaign. + optional int64 new_campaign_budget_amount_micros = 2; + } + + // Parameters to use when applying callout extension recommendation. + message CalloutExtensionParameters { + // Callout extensions to be added. This is a required field. + repeated google.ads.googleads.v6.common.CalloutFeedItem callout_extensions = 1; + } + + // Parameters to use when applying call extension recommendation. + message CallExtensionParameters { + // Call extensions to be added. This is a required field. + repeated google.ads.googleads.v6.common.CallFeedItem call_extensions = 1; + } + + // Parameters to use when applying sitelink extension recommendation. + message SitelinkExtensionParameters { + // Sitelink extensions to be added. This is a required field. + repeated google.ads.googleads.v6.common.SitelinkFeedItem sitelink_extensions = 1; + } + + // Parameters to use when applying move unused budget recommendation. + message MoveUnusedBudgetParameters { + // Budget amount to move from excess budget to constrained budget. This is + // a required field. + optional int64 budget_micros_to_move = 2; + } + + // Parameters to use when applying a responsive search ad recommendation. + message ResponsiveSearchAdParameters { + // Required. New ad to add to recommended ad group. + google.ads.googleads.v6.resources.Ad ad = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // The resource name of the recommendation to apply. + string resource_name = 1; + + // Parameters to use when applying the recommendation. + oneof apply_parameters { + // Optional parameters to use when applying a campaign budget + // recommendation. + CampaignBudgetParameters campaign_budget = 2; + + // Optional parameters to use when applying a text ad recommendation. + TextAdParameters text_ad = 3; + + // Optional parameters to use when applying keyword recommendation. + KeywordParameters keyword = 4; + + // Optional parameters to use when applying target CPA opt-in + // recommendation. + TargetCpaOptInParameters target_cpa_opt_in = 5; + + // Optional parameters to use when applying target ROAS opt-in + // recommendation. + TargetRoasOptInParameters target_roas_opt_in = 10; + + // Parameters to use when applying callout extension recommendation. + CalloutExtensionParameters callout_extension = 6; + + // Parameters to use when applying call extension recommendation. + CallExtensionParameters call_extension = 7; + + // Parameters to use when applying sitelink extension recommendation. + SitelinkExtensionParameters sitelink_extension = 8; + + // Parameters to use when applying move unused budget recommendation. + MoveUnusedBudgetParameters move_unused_budget = 9; + + // Parameters to use when applying a responsive search ad recommendation. + ResponsiveSearchAdParameters responsive_search_ad = 11; + } +} + +// Response message for [RecommendationService.ApplyRecommendation][google.ads.googleads.v6.services.RecommendationService.ApplyRecommendation]. +message ApplyRecommendationResponse { + // Results of operations to apply recommendations. + repeated ApplyRecommendationResult results = 1; + + // Errors that pertain to operation failures in the partial failure mode. + // Returned only when partial_failure = true and all errors occur inside the + // operations. If any errors occur outside the operations (e.g. auth errors) + // we return the RPC level error. + google.rpc.Status partial_failure_error = 2; +} + +// The result of applying a recommendation. +message ApplyRecommendationResult { + // Returned for successful applies. + string resource_name = 1; +} + +// Request message for [RecommendationService.DismissRecommendation][google.ads.googleads.v6.services.RecommendationService.DismissRecommendation]. +message DismissRecommendationRequest { + // Operation to dismiss a single recommendation identified by resource_name. + message DismissRecommendationOperation { + // The resource name of the recommendation to dismiss. + string resource_name = 1; + } + + // Required. The ID of the customer with the recommendation. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to dismiss recommendations. + // If partial_failure=false all recommendations should be of the same type + // There is a limit of 100 operations per request. + repeated DismissRecommendationOperation operations = 3 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, operations will be carried in a + // single transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 2; +} + +// Response message for [RecommendationService.DismissRecommendation][google.ads.googleads.v6.services.RecommendationService.DismissRecommendation]. +message DismissRecommendationResponse { + // The result of dismissing a recommendation. + message DismissRecommendationResult { + // Returned for successful dismissals. + string resource_name = 1; + } + + // Results of operations to dismiss recommendations. + repeated DismissRecommendationResult results = 1; + + // Errors that pertain to operation failures in the partial failure mode. + // Returned only when partial_failure = true and all errors occur inside the + // operations. If any errors occur outside the operations (e.g. auth errors) + // we return the RPC level error. + google.rpc.Status partial_failure_error = 2; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/remarketing_action_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/remarketing_action_service.proto new file mode 100644 index 000000000..27f98d7a2 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/remarketing_action_service.proto @@ -0,0 +1,124 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/remarketing_action.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "RemarketingActionServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Remarketing Action service. + +// Service to manage remarketing actions. +service RemarketingActionService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested remarketing action in full detail. + rpc GetRemarketingAction(GetRemarketingActionRequest) returns (google.ads.googleads.v6.resources.RemarketingAction) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/remarketingActions/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates or updates remarketing actions. Operation statuses are returned. + rpc MutateRemarketingActions(MutateRemarketingActionsRequest) returns (MutateRemarketingActionsResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/remarketingActions:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } +} + +// Request message for [RemarketingActionService.GetRemarketingAction][google.ads.googleads.v6.services.RemarketingActionService.GetRemarketingAction]. +message GetRemarketingActionRequest { + // Required. The resource name of the remarketing action to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/RemarketingAction" + } + ]; +} + +// Request message for [RemarketingActionService.MutateRemarketingActions][google.ads.googleads.v6.services.RemarketingActionService.MutateRemarketingActions]. +message MutateRemarketingActionsRequest { + // Required. The ID of the customer whose remarketing actions are being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on individual remarketing actions. + repeated RemarketingActionOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 3; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; +} + +// A single operation (create, update) on a remarketing action. +message RemarketingActionOperation { + // FieldMask that determines which resource fields are modified in an update. + google.protobuf.FieldMask update_mask = 4; + + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new remarketing + // action. + google.ads.googleads.v6.resources.RemarketingAction create = 1; + + // Update operation: The remarketing action is expected to have a valid + // resource name. + google.ads.googleads.v6.resources.RemarketingAction update = 2; + } +} + +// Response message for remarketing action mutate. +message MutateRemarketingActionsResponse { + // Errors that pertain to operation failures in the partial failure mode. + // Returned only when partial_failure = true and all errors occur inside the + // operations. If any errors occur outside the operations (e.g. auth errors), + // we return an RPC level error. + google.rpc.Status partial_failure_error = 3; + + // All results for the mutate. + repeated MutateRemarketingActionResult results = 2; +} + +// The result for the remarketing action mutate. +message MutateRemarketingActionResult { + // Returned for successful operations. + string resource_name = 1; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/search_term_view_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/search_term_view_service.proto new file mode 100644 index 000000000..e145f44c8 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/search_term_view_service.proto @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/search_term_view.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "SearchTermViewServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Search Term View service. + +// Service to manage search term views. +service SearchTermViewService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the attributes of the requested search term view. + rpc GetSearchTermView(GetSearchTermViewRequest) returns (google.ads.googleads.v6.resources.SearchTermView) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/searchTermViews/*}" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for [SearchTermViewService.GetSearchTermView][google.ads.googleads.v6.services.SearchTermViewService.GetSearchTermView]. +message GetSearchTermViewRequest { + // Required. The resource name of the search term view to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/SearchTermView" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/shared_criterion_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/shared_criterion_service.proto new file mode 100644 index 000000000..901a877ff --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/shared_criterion_service.proto @@ -0,0 +1,132 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/enums/response_content_type.proto"; +import "google/ads/googleads/v6/resources/shared_criterion.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "SharedCriterionServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Shared Criterion service. + +// Service to manage shared criteria. +service SharedCriterionService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested shared criterion in full detail. + rpc GetSharedCriterion(GetSharedCriterionRequest) returns (google.ads.googleads.v6.resources.SharedCriterion) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/sharedCriteria/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates or removes shared criteria. Operation statuses are returned. + rpc MutateSharedCriteria(MutateSharedCriteriaRequest) returns (MutateSharedCriteriaResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/sharedCriteria:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } +} + +// Request message for [SharedCriterionService.GetSharedCriterion][google.ads.googleads.v6.services.SharedCriterionService.GetSharedCriterion]. +message GetSharedCriterionRequest { + // Required. The resource name of the shared criterion to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/SharedCriterion" + } + ]; +} + +// Request message for [SharedCriterionService.MutateSharedCriteria][google.ads.googleads.v6.services.SharedCriterionService.MutateSharedCriteria]. +message MutateSharedCriteriaRequest { + // Required. The ID of the customer whose shared criteria are being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on individual shared criteria. + repeated SharedCriterionOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 3; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; + + // The response content type setting. Determines whether the mutable resource + // or just the resource name should be returned post mutation. + google.ads.googleads.v6.enums.ResponseContentTypeEnum.ResponseContentType response_content_type = 5; +} + +// A single operation (create, remove) on an shared criterion. +message SharedCriterionOperation { + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new shared + // criterion. + google.ads.googleads.v6.resources.SharedCriterion create = 1; + + // Remove operation: A resource name for the removed shared criterion is + // expected, in this format: + // + // `customers/{customer_id}/sharedCriteria/{shared_set_id}~{criterion_id}` + string remove = 3; + } +} + +// Response message for a shared criterion mutate. +message MutateSharedCriteriaResponse { + // Errors that pertain to operation failures in the partial failure mode. + // Returned only when partial_failure = true and all errors occur inside the + // operations. If any errors occur outside the operations (e.g. auth errors), + // we return an RPC level error. + google.rpc.Status partial_failure_error = 3; + + // All results for the mutate. + repeated MutateSharedCriterionResult results = 2; +} + +// The result for the shared criterion mutate. +message MutateSharedCriterionResult { + // Returned for successful operations. + string resource_name = 1; + + // The mutated shared criterion with only mutable fields after mutate. The + // field will only be returned when response_content_type is set to + // "MUTABLE_RESOURCE". + google.ads.googleads.v6.resources.SharedCriterion shared_criterion = 2; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/shared_set_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/shared_set_service.proto new file mode 100644 index 000000000..72d7c9b22 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/shared_set_service.proto @@ -0,0 +1,139 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/enums/response_content_type.proto"; +import "google/ads/googleads/v6/resources/shared_set.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "SharedSetServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Shared Set service. + +// Service to manage shared sets. +service SharedSetService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested shared set in full detail. + rpc GetSharedSet(GetSharedSetRequest) returns (google.ads.googleads.v6.resources.SharedSet) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/sharedSets/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates, updates, or removes shared sets. Operation statuses are returned. + rpc MutateSharedSets(MutateSharedSetsRequest) returns (MutateSharedSetsResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/sharedSets:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } +} + +// Request message for [SharedSetService.GetSharedSet][google.ads.googleads.v6.services.SharedSetService.GetSharedSet]. +message GetSharedSetRequest { + // Required. The resource name of the shared set to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/SharedSet" + } + ]; +} + +// Request message for [SharedSetService.MutateSharedSets][google.ads.googleads.v6.services.SharedSetService.MutateSharedSets]. +message MutateSharedSetsRequest { + // Required. The ID of the customer whose shared sets are being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on individual shared sets. + repeated SharedSetOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 3; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; + + // The response content type setting. Determines whether the mutable resource + // or just the resource name should be returned post mutation. + google.ads.googleads.v6.enums.ResponseContentTypeEnum.ResponseContentType response_content_type = 5; +} + +// A single operation (create, update, remove) on an shared set. +message SharedSetOperation { + // FieldMask that determines which resource fields are modified in an update. + google.protobuf.FieldMask update_mask = 4; + + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new shared set. + google.ads.googleads.v6.resources.SharedSet create = 1; + + // Update operation: The shared set is expected to have a valid resource + // name. + google.ads.googleads.v6.resources.SharedSet update = 2; + + // Remove operation: A resource name for the removed shared set is expected, + // in this format: + // + // `customers/{customer_id}/sharedSets/{shared_set_id}` + string remove = 3; + } +} + +// Response message for a shared set mutate. +message MutateSharedSetsResponse { + // Errors that pertain to operation failures in the partial failure mode. + // Returned only when partial_failure = true and all errors occur inside the + // operations. If any errors occur outside the operations (e.g. auth errors), + // we return an RPC level error. + google.rpc.Status partial_failure_error = 3; + + // All results for the mutate. + repeated MutateSharedSetResult results = 2; +} + +// The result for the shared set mutate. +message MutateSharedSetResult { + // Returned for successful operations. + string resource_name = 1; + + // The mutated shared set with only mutable fields after mutate. The field + // will only be returned when response_content_type is set to + // "MUTABLE_RESOURCE". + google.ads.googleads.v6.resources.SharedSet shared_set = 2; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/shopping_performance_view_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/shopping_performance_view_service.proto new file mode 100644 index 000000000..9ecc01246 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/shopping_performance_view_service.proto @@ -0,0 +1,60 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/shopping_performance_view.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "ShoppingPerformanceViewServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the ShoppingPerformanceView service. + +// Service to fetch Shopping performance views. +service ShoppingPerformanceViewService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested Shopping performance view in full detail. + rpc GetShoppingPerformanceView(GetShoppingPerformanceViewRequest) returns (google.ads.googleads.v6.resources.ShoppingPerformanceView) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/shoppingPerformanceView}" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for +// [ShoppingPerformanceViewService.GetShoppingPerformanceView][google.ads.googleads.v6.services.ShoppingPerformanceViewService.GetShoppingPerformanceView]. +message GetShoppingPerformanceViewRequest { + // Required. The resource name of the Shopping performance view to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/ShoppingPerformanceView" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/third_party_app_analytics_link_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/third_party_app_analytics_link_service.proto new file mode 100644 index 000000000..d84bc8fd3 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/third_party_app_analytics_link_service.proto @@ -0,0 +1,78 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/third_party_app_analytics_link.proto"; +import "google/api/annotations.proto"; +import "google/api/resource.proto"; +import "google/api/client.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "ThirdPartyAppAnalyticsLinkServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// This service allows management of links between Google Ads and third party +// app analytics. +service ThirdPartyAppAnalyticsLinkService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the third party app analytics link in full detail. + rpc GetThirdPartyAppAnalyticsLink(GetThirdPartyAppAnalyticsLinkRequest) returns (google.ads.googleads.v6.resources.ThirdPartyAppAnalyticsLink) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/thirdPartyAppAnalyticsLinks/*}" + }; + } + + // Regenerate ThirdPartyAppAnalyticsLink.shareable_link_id that should be + // provided to the third party when setting up app analytics. + rpc RegenerateShareableLinkId(RegenerateShareableLinkIdRequest) returns (RegenerateShareableLinkIdResponse) { + option (google.api.http) = { + post: "/v6/{resource_name=customers/*/thirdPartyAppAnalyticsLinks/*}:regenerateShareableLinkId" + body: "*" + }; + } +} + +// Request message for +// [ThirdPartyAppAnalyticsLinkService.GetThirdPartyAppAnalyticsLink][google.ads.googleads.v6.services.ThirdPartyAppAnalyticsLinkService.GetThirdPartyAppAnalyticsLink]. +message GetThirdPartyAppAnalyticsLinkRequest { + // Resource name of the third party app analytics link. + string resource_name = 1 [(google.api.resource_reference) = { + type: "googleads.googleapis.com/ThirdPartyAppAnalyticsLink" + }]; +} + +// Request message for +// [ThirdPartyAppAnalyticsLinkService.RegenerateShareableLinkId][google.ads.googleads.v6.services.ThirdPartyAppAnalyticsLinkService.RegenerateShareableLinkId]. +message RegenerateShareableLinkIdRequest { + // Resource name of the third party app analytics link. + string resource_name = 1 [(google.api.resource_reference) = { + type: "googleads.googleapis.com/ThirdPartyAppAnalyticsLink" + }]; +} + +// Response message for +// [ThirdPartyAppAnalyticsLinkService.RegenerateShareableLinkId][google.ads.googleads.v6.services.ThirdPartyAppAnalyticsLinkService.RegenerateShareableLinkId]. +message RegenerateShareableLinkIdResponse { + +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/topic_constant_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/topic_constant_service.proto new file mode 100644 index 000000000..7d403bb51 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/topic_constant_service.proto @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/topic_constant.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "TopicConstantServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Topic constant service + +// Service to fetch topic constants. +service TopicConstantService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested topic constant in full detail. + rpc GetTopicConstant(GetTopicConstantRequest) returns (google.ads.googleads.v6.resources.TopicConstant) { + option (google.api.http) = { + get: "/v6/{resource_name=topicConstants/*}" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for [TopicConstantService.GetTopicConstant][google.ads.googleads.v6.services.TopicConstantService.GetTopicConstant]. +message GetTopicConstantRequest { + // Required. Resource name of the Topic to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/TopicConstant" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/topic_view_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/topic_view_service.proto new file mode 100644 index 000000000..642b296dc --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/topic_view_service.proto @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/topic_view.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "TopicViewServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Topic View service. + +// Service to manage topic views. +service TopicViewService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested topic view in full detail. + rpc GetTopicView(GetTopicViewRequest) returns (google.ads.googleads.v6.resources.TopicView) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/topicViews/*}" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for [TopicViewService.GetTopicView][google.ads.googleads.v6.services.TopicViewService.GetTopicView]. +message GetTopicViewRequest { + // Required. The resource name of the topic view to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/TopicView" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/user_data_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/user_data_service.proto new file mode 100644 index 000000000..3da8c99b3 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/user_data_service.proto @@ -0,0 +1,85 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/common/offline_user_data.proto"; +import "google/api/annotations.proto"; +import "google/api/field_behavior.proto"; +import "google/api/client.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "UserDataServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the UserDataService. + +// Service to manage user data uploads. +// Accessible only to customers on the allow-list. +service UserDataService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Uploads the given user data. + rpc UploadUserData(UploadUserDataRequest) returns (UploadUserDataResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}:uploadUserData" + body: "*" + }; + } +} + +// Request message for [UserDataService.UploadUserData][google.ads.googleads.v6.services.UserDataService.UploadUserData] +message UploadUserDataRequest { + // Required. The ID of the customer for which to update the user data. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to be done. + repeated UserDataOperation operations = 3 [(google.api.field_behavior) = REQUIRED]; + + // Metadata of the request. + oneof metadata { + // Metadata for data updates to a Customer Match user list. + google.ads.googleads.v6.common.CustomerMatchUserListMetadata customer_match_user_list_metadata = 2; + } +} + +// Operation to be made for the UploadUserDataRequest. +message UserDataOperation { + // Operation to be made for the UploadUserDataRequest. + oneof operation { + // The list of user data to be appended to the user list. + google.ads.googleads.v6.common.UserData create = 1; + + // The list of user data to be removed from the user list. + google.ads.googleads.v6.common.UserData remove = 2; + } +} + +// Response message for [UserDataService.UploadUserData][google.ads.googleads.v6.services.UserDataService.UploadUserData] +message UploadUserDataResponse { + // The date time at which the request was received by API, formatted as + // "yyyy-mm-dd hh:mm:ss+|-hh:mm", e.g. "2019-01-01 12:32:45-08:00". + optional string upload_date_time = 3; + + // Number of upload data operations received by API. + optional int32 received_operations_count = 4; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/user_interest_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/user_interest_service.proto new file mode 100644 index 000000000..faff6cad6 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/user_interest_service.proto @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/user_interest.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "UserInterestServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the user interest service + +// Service to fetch Google Ads User Interest. +service UserInterestService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested user interest in full detail + rpc GetUserInterest(GetUserInterestRequest) returns (google.ads.googleads.v6.resources.UserInterest) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/userInterests/*}" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for [UserInterestService.GetUserInterest][google.ads.googleads.v6.services.UserInterestService.GetUserInterest]. +message GetUserInterestRequest { + // Required. Resource name of the UserInterest to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/UserInterest" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/user_list_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/user_list_service.proto new file mode 100644 index 000000000..51bc37454 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/user_list_service.proto @@ -0,0 +1,129 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/user_list.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "UserListServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the User List service. + +// Service to manage user lists. +service UserListService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested user list. + rpc GetUserList(GetUserListRequest) returns (google.ads.googleads.v6.resources.UserList) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/userLists/*}" + }; + option (google.api.method_signature) = "resource_name"; + } + + // Creates or updates user lists. Operation statuses are returned. + rpc MutateUserLists(MutateUserListsRequest) returns (MutateUserListsResponse) { + option (google.api.http) = { + post: "/v6/customers/{customer_id=*}/userLists:mutate" + body: "*" + }; + option (google.api.method_signature) = "customer_id,operations"; + } +} + +// Request message for [UserListService.GetUserList][google.ads.googleads.v6.services.UserListService.GetUserList]. +message GetUserListRequest { + // Required. The resource name of the user list to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/UserList" + } + ]; +} + +// Request message for [UserListService.MutateUserLists][google.ads.googleads.v6.services.UserListService.MutateUserLists]. +message MutateUserListsRequest { + // Required. The ID of the customer whose user lists are being modified. + string customer_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of operations to perform on individual user lists. + repeated UserListOperation operations = 2 [(google.api.field_behavior) = REQUIRED]; + + // If true, successful operations will be carried out and invalid + // operations will return errors. If false, all operations will be carried + // out in one transaction if and only if they are all valid. + // Default is false. + bool partial_failure = 3; + + // If true, the request is validated but not executed. Only errors are + // returned, not results. + bool validate_only = 4; +} + +// A single operation (create, update) on a user list. +message UserListOperation { + // FieldMask that determines which resource fields are modified in an update. + google.protobuf.FieldMask update_mask = 4; + + // The mutate operation. + oneof operation { + // Create operation: No resource name is expected for the new user list. + google.ads.googleads.v6.resources.UserList create = 1; + + // Update operation: The user list is expected to have a valid resource + // name. + google.ads.googleads.v6.resources.UserList update = 2; + + // Remove operation: A resource name for the removed user list is expected, + // in this format: + // + // `customers/{customer_id}/userLists/{user_list_id}` + string remove = 3; + } +} + +// Response message for user list mutate. +message MutateUserListsResponse { + // Errors that pertain to operation failures in the partial failure mode. + // Returned only when partial_failure = true and all errors occur inside the + // operations. If any errors occur outside the operations (e.g. auth errors), + // we return an RPC level error. + google.rpc.Status partial_failure_error = 3; + + // All results for the mutate. + repeated MutateUserListResult results = 2; +} + +// The result for the user list mutate. +message MutateUserListResult { + // Returned for successful operations. + string resource_name = 1; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/user_location_view_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/user_location_view_service.proto new file mode 100644 index 000000000..57a343655 --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/user_location_view_service.proto @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/user_location_view.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "UserLocationViewServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the UserLocationView service. + +// Service to manage user location views. +service UserLocationViewService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested user location view in full detail. + rpc GetUserLocationView(GetUserLocationViewRequest) returns (google.ads.googleads.v6.resources.UserLocationView) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/userLocationViews/*}" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for [UserLocationViewService.GetUserLocationView][google.ads.googleads.v6.services.UserLocationViewService.GetUserLocationView]. +message GetUserLocationViewRequest { + // Required. The resource name of the user location view to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/UserLocationView" + } + ]; +} diff --git a/third_party/googleapis/google/ads/googleads/v6/services/video_service.proto b/third_party/googleapis/google/ads/googleads/v6/services/video_service.proto new file mode 100644 index 000000000..b162de09d --- /dev/null +++ b/third_party/googleapis/google/ads/googleads/v6/services/video_service.proto @@ -0,0 +1,59 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.ads.googleads.v6.services; + +import "google/ads/googleads/v6/resources/video.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.GoogleAds.V6.Services"; +option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/services;services"; +option java_multiple_files = true; +option java_outer_classname = "VideoServiceProto"; +option java_package = "com.google.ads.googleads.v6.services"; +option objc_class_prefix = "GAA"; +option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Services"; +option ruby_package = "Google::Ads::GoogleAds::V6::Services"; + +// Proto file describing the Video service. + +// Service to manage videos. +service VideoService { + option (google.api.default_host) = "googleads.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/adwords"; + + // Returns the requested video in full detail. + rpc GetVideo(GetVideoRequest) returns (google.ads.googleads.v6.resources.Video) { + option (google.api.http) = { + get: "/v6/{resource_name=customers/*/videos/*}" + }; + option (google.api.method_signature) = "resource_name"; + } +} + +// Request message for [VideoService.GetVideo][google.ads.googleads.v6.services.VideoService.GetVideo]. +message GetVideoRequest { + // Required. The resource name of the video to fetch. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/Video" + } + ]; +} diff --git a/third_party/googleapis/google/analytics/admin/v1alpha/BUILD.bazel b/third_party/googleapis/google/analytics/admin/v1alpha/BUILD.bazel index b50becc79..da8102417 100644 --- a/third_party/googleapis/google/analytics/admin/v1alpha/BUILD.bazel +++ b/third_party/googleapis/google/analytics/admin/v1alpha/BUILD.bazel @@ -69,11 +69,8 @@ java_grpc_library( java_gapic_library( name = "admin_java_gapic", - src = ":admin_proto_with_info", - gapic_yaml = "analyticsadmin_gapic.yaml", + srcs = [":admin_proto_with_info"], grpc_service_config = "admin_grpc_service_config.json", - package = "google.analytics.admin.v1alpha", - service_yaml = "analyticsadmin_v1alpha.yaml", test_deps = [ ":admin_java_grpc", ], @@ -85,7 +82,6 @@ java_gapic_library( java_gapic_test( name = "admin_java_gapic_test_suite", test_classes = [ - "com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClientTest", ], runtime_deps = [":admin_java_gapic_test"], ) @@ -155,51 +151,14 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "admin_moved_proto", - srcs = [":admin_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:resource_proto", - "@com_google_protobuf//:empty_proto", - "@com_google_protobuf//:field_mask_proto", - "@com_google_protobuf//:timestamp_proto", - "@com_google_protobuf//:wrappers_proto", - ], -) - -py_proto_library( - name = "admin_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":admin_moved_proto"], -) - -py_grpc_library( - name = "admin_py_grpc", - srcs = [":admin_moved_proto"], - deps = [":admin_py_proto"], ) py_gapic_library( name = "admin_py_gapic", - src = ":admin_proto_with_info", - gapic_yaml = "analyticsadmin_gapic.yaml", + srcs = [":admin_proto"], grpc_service_config = "admin_grpc_service_config.json", - package = "google.analytics.admin.v1alpha", - service_yaml = "analyticsadmin_v1alpha.yaml", - deps = [ - ":admin_py_grpc", - ":admin_py_proto", - ], ) # Open Source Packages @@ -207,8 +166,6 @@ py_gapic_assembly_pkg( name = "google-analytics-admin-v1alpha-py", deps = [ ":admin_py_gapic", - ":admin_py_grpc", - ":admin_py_proto", ], ) @@ -270,6 +227,7 @@ nodejs_gapic_library( name = "admin_nodejs_gapic", package_name = "@google-analytics/admin", src = ":admin_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "admin_grpc_service_config.json", package = "google.analytics.admin.v1alpha", service_yaml = "analyticsadmin_v1alpha.yaml", diff --git a/third_party/googleapis/google/analytics/admin/v1alpha/analytics_admin.proto b/third_party/googleapis/google/analytics/admin/v1alpha/analytics_admin.proto index 643299043..712cc601f 100644 --- a/third_party/googleapis/google/analytics/admin/v1alpha/analytics_admin.proto +++ b/third_party/googleapis/google/analytics/admin/v1alpha/analytics_admin.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -23,6 +23,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; option go_package = "google.golang.org/genproto/googleapis/analytics/admin/v1alpha;admin"; option java_multiple_files = true; @@ -39,8 +40,6 @@ service AnalyticsAdminService { "https://www.googleapis.com/auth/analytics.readonly"; // Lookup for a single Account. - // Throws "Target not found" if no such account found, or if caller does not - // have permissions to access it. rpc GetAccount(GetAccountRequest) returns (Account) { option (google.api.http) = { get: "/v1alpha/{name=accounts/*}" @@ -102,9 +101,6 @@ service AnalyticsAdminService { } // Lookup for a single "GA4" Property. - // - // Throws "Target not found" if no such property found, if property is not - // of the type "GA4", or if caller does not have permissions to access it. rpc GetProperty(GetPropertyRequest) returns (Property) { option (google.api.http) = { get: "/v1alpha/{name=properties/*}" @@ -293,9 +289,6 @@ service AnalyticsAdminService { } // Lookup for a single WebDataStream - // - // Throws "Target not found" if no such web data stream found, or if the - // caller does not have permissions to access it. rpc GetWebDataStream(GetWebDataStreamRequest) returns (WebDataStream) { option (google.api.http) = { get: "/v1alpha/{name=properties/*/webDataStreams/*}" @@ -341,9 +334,6 @@ service AnalyticsAdminService { } // Lookup for a single IosAppDataStream - // - // Throws "Target not found" if no such iOS app data stream found, or if the - // caller does not have permissions to access it. rpc GetIosAppDataStream(GetIosAppDataStreamRequest) returns (IosAppDataStream) { option (google.api.http) = { get: "/v1alpha/{name=properties/*/iosAppDataStreams/*}" @@ -368,7 +358,15 @@ service AnalyticsAdminService { option (google.api.method_signature) = "ios_app_data_stream,update_mask"; } - // Creates an iOS app data stream with the specified location and attributes. + // Creates an iOS app stream with the specified location and attributes. + // + // Note that an iOS app stream must be linked to a Firebase app to receive + // traffic. + // + // To create a working app stream, make sure your property is linked to a + // Firebase project. Then, use the Firebase API to create a Firebase app, + // which will also create an appropriate data stream in Analytics (may take up + // to 24 hours). rpc CreateIosAppDataStream(CreateIosAppDataStreamRequest) returns (IosAppDataStream) { option (google.api.http) = { post: "/v1alpha/{parent=properties/*}/iosAppDataStreams" @@ -389,9 +387,6 @@ service AnalyticsAdminService { } // Lookup for a single AndroidAppDataStream - // - // Throws "Target not found" if no such android app data stream found, or if - // the caller does not have permissions to access it. rpc GetAndroidAppDataStream(GetAndroidAppDataStreamRequest) returns (AndroidAppDataStream) { option (google.api.http) = { get: "/v1alpha/{name=properties/*/androidAppDataStreams/*}" @@ -416,7 +411,15 @@ service AnalyticsAdminService { option (google.api.method_signature) = "android_app_data_stream,update_mask"; } - // Creates an android app stream with the specified location and attributes. + // Creates an Android app stream with the specified location and attributes. + // + // Note that an Android app stream must be linked to a Firebase app to receive + // traffic. + // + // To create a working app stream, make sure your property is linked to a + // Firebase project. Then, use the Firebase API to create a Firebase app, + // which will also create an appropriate data stream in Analytics (may take up + // to 24 hours). rpc CreateAndroidAppDataStream(CreateAndroidAppDataStreamRequest) returns (AndroidAppDataStream) { option (google.api.http) = { post: "/v1alpha/{parent=properties/*}/androidAppDataStreams" @@ -609,8 +612,10 @@ message UpdateAccountRequest { // The account's `name` field is used to identify the account. Account account = 1 [(google.api.field_behavior) = REQUIRED]; - // The list of fields to be updated. Omitted fields will not be updated. - google.protobuf.FieldMask update_mask = 2; + // Required. The list of fields to be updated. Field names must be in snake case + // (e.g., "field_to_update"). Omitted fields will not be updated. To replace + // the entire entity, use one path with the string "*" to match all fields. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } // Request message for ProvisionAccountTicket RPC. @@ -650,11 +655,13 @@ message ListPropertiesRequest { // `firebase_project:`(The id or number of the linked firebase project). // Some examples of filters: // + // ``` // | Filter | Description | // |-----------------------------|-------------------------------------------| // | parent:accounts/123 | The account with account id: 123. | // | firebase_project:project-id | The firebase project with id: project-id. | // | firebase_project:123 | The firebase project with number: 123. | + // ``` string filter = 1 [(google.api.field_behavior) = REQUIRED]; // The maximum number of resources to return. The service may return @@ -692,8 +699,10 @@ message UpdatePropertyRequest { // updated. Property property = 1 [(google.api.field_behavior) = REQUIRED]; - // The list of fields to be updated. Omitted fields will not be updated. - google.protobuf.FieldMask update_mask = 2; + // Required. The list of fields to be updated. Field names must be in snake case + // (e.g., "field_to_update"). Omitted fields will not be updated. To replace + // the entire entity, use one path with the string "*" to match all fields. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } // Request message for CreateProperty RPC. @@ -841,8 +850,8 @@ message CreateUserLinkRequest { } ]; - // Optional. If notify_new_user is set, then email new user that they've been given - // permissions on the resource. + // Optional. If set, then email the new user notifying them that they've been granted + // permissions to the resource. bool notify_new_user = 2 [(google.api.field_behavior) = OPTIONAL]; // Required. The user link to create. @@ -855,15 +864,21 @@ message BatchCreateUserLinksRequest { // This field is required. The parent field in the CreateUserLinkRequest // messages must either be empty or match this field. // Example format: accounts/1234 - string parent = 1 [(google.api.field_behavior) = REQUIRED]; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/UserLink" + } + ]; - // Optional. If notify_new_users is set, then email new users that they've been given - // permissions on the resource. + // Optional. If set, then email the new users notifying them that they've been granted + // permissions to the resource. Regardless of whether this is set or not, + // notify_new_user field inside each individual request is ignored. bool notify_new_users = 2 [(google.api.field_behavior) = OPTIONAL]; - // The requests specifying the user links to create. + // Required. The requests specifying the user links to create. // A maximum of 1000 user links can be created in a batch. - repeated CreateUserLinkRequest requests = 3; + repeated CreateUserLinkRequest requests = 3 [(google.api.field_behavior) = REQUIRED]; } // Response message for BatchCreateUserLinks RPC. @@ -884,11 +899,16 @@ message BatchUpdateUserLinksRequest { // for. The parent field in the UpdateUserLinkRequest messages must either be // empty or match this field. // Example format: accounts/1234 - string parent = 1 [(google.api.field_behavior) = REQUIRED]; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/UserLink" + } + ]; - // The requests specifying the user links to update. + // Required. The requests specifying the user links to update. // A maximum of 1000 user links can be updated in a batch. - repeated UpdateUserLinkRequest requests = 2; + repeated UpdateUserLinkRequest requests = 2 [(google.api.field_behavior) = REQUIRED]; } // Response message for BatchUpdateUserLinks RPC. @@ -914,11 +934,16 @@ message BatchDeleteUserLinksRequest { // for. The parent of all values for user link names to delete must match this // field. // Example format: accounts/1234 - string parent = 1 [(google.api.field_behavior) = REQUIRED]; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/UserLink" + } + ]; - // The requests specifying the user links to update. + // Required. The requests specifying the user links to update. // A maximum of 1000 user links can be updated in a batch. - repeated DeleteUserLinkRequest requests = 2; + repeated DeleteUserLinkRequest requests = 2 [(google.api.field_behavior) = REQUIRED]; } // Request message for GetWebDataStream RPC. @@ -953,8 +978,10 @@ message UpdateWebDataStreamRequest { // The `name` field is used to identify the web stream to be updated. WebDataStream web_data_stream = 1 [(google.api.field_behavior) = REQUIRED]; - // The list of fields to be updated. Omitted fields will not be updated. - google.protobuf.FieldMask update_mask = 2; + // Required. The list of fields to be updated. Field names must be in snake case + // (e.g., "field_to_update"). Omitted fields will not be updated. To replace + // the entire entity, use one path with the string "*" to match all fields. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } // Request message for CreateWebDataStream RPC. @@ -1038,8 +1065,10 @@ message UpdateIosAppDataStreamRequest { // The `name` field is used to identify the iOS app stream to be updated. IosAppDataStream ios_app_data_stream = 1 [(google.api.field_behavior) = REQUIRED]; - // The list of fields to be updated. Omitted fields will not be updated. - google.protobuf.FieldMask update_mask = 2; + // Required. The list of fields to be updated. Field names must be in snake case + // (e.g., "field_to_update"). Omitted fields will not be updated. To replace + // the entire entity, use one path with the string "*" to match all fields. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } // Request message for CreateIosAppDataStream RPC. @@ -1123,8 +1152,10 @@ message UpdateAndroidAppDataStreamRequest { // The `name` field is used to identify the android app stream to be updated. AndroidAppDataStream android_app_data_stream = 1 [(google.api.field_behavior) = REQUIRED]; - // The list of fields to be updated. Omitted fields will not be updated. - google.protobuf.FieldMask update_mask = 2; + // Required. The list of fields to be updated. Field names must be in snake case + // (e.g., "field_to_update"). Omitted fields will not be updated. To replace + // the entire entity, use one path with the string "*" to match all fields. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } // Request message for CreateAndroidAppDataStream RPC. @@ -1198,8 +1229,10 @@ message UpdateEnhancedMeasurementSettingsRequest { // The `name` field is used to identify the settings to be updated. EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(google.api.field_behavior) = REQUIRED]; - // The list of fields to be updated. Omitted fields will not be updated. - google.protobuf.FieldMask update_mask = 2; + // Required. The list of fields to be updated. Field names must be in snake case + // (e.g., "field_to_update"). Omitted fields will not be updated. To replace + // the entire entity, use one path with the string "*" to match all fields. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } // Request message for CreateFirebaseLink RPC @@ -1222,8 +1255,10 @@ message UpdateFirebaseLinkRequest { // Required. The Firebase link to update. FirebaseLink firebase_link = 1 [(google.api.field_behavior) = REQUIRED]; - // The list of fields to be updated. Omitted fields will not be updated. - google.protobuf.FieldMask update_mask = 2; + // Required. The list of fields to be updated. Field names must be in snake case + // (e.g., "field_to_update"). Omitted fields will not be updated. To replace + // the entire entity, use one path with the string "*" to match all fields. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } // Request message for DeleteFirebaseLink RPC @@ -1248,12 +1283,30 @@ message ListFirebaseLinksRequest { child_type: "analyticsadmin.googleapis.com/FirebaseLink" } ]; + + // The maximum number of resources to return. The service may return + // fewer than this value, even if there are additional pages. + // If unspecified, at most 50 resources will be returned. + // The maximum value is 200; (higher values will be coerced to the maximum) + int32 page_size = 2; + + // A page token, received from a previous `ListFirebaseLinks` call. + // Provide this to retrieve the subsequent page. + // When paginating, all other parameters provided to `ListProperties` must + // match the call that provided the page token. + string page_token = 3; } // Response message for ListFirebaseLinks RPC message ListFirebaseLinksResponse { // List of FirebaseLinks. This will have at most one value. repeated FirebaseLink firebase_links = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + // Currently, Google Analytics supports only one FirebaseLink per property, + // so this will never be populated. + string next_page_token = 2; } // Request message for GetGlobalSiteTag RPC. @@ -1289,8 +1342,10 @@ message UpdateGoogleAdsLinkRequest { // The GoogleAdsLink to update GoogleAdsLink google_ads_link = 1; - // The list of fields to be updated. Omitted fields will not be updated. - google.protobuf.FieldMask update_mask = 2; + // Required. The list of fields to be updated. Field names must be in snake case + // (e.g., "field_to_update"). Omitted fields will not be updated. To replace + // the entire entity, use one path with the string "*" to match all fields. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } // Request message for DeleteGoogleAdsLink RPC. diff --git a/third_party/googleapis/google/analytics/admin/v1alpha/analyticsadmin_gapic.yaml b/third_party/googleapis/google/analytics/admin/v1alpha/analyticsadmin_gapic.yaml index f7b563d99..a6a8ef8ee 100644 --- a/third_party/googleapis/google/analytics/admin/v1alpha/analyticsadmin_gapic.yaml +++ b/third_party/googleapis/google/analytics/admin/v1alpha/analyticsadmin_gapic.yaml @@ -1,8 +1,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 language_settings: - java: - package_name: com.google.analytics.admin.v1alpha python: package_name: google.analytics.admin.v1alpha.gapic go: diff --git a/third_party/googleapis/google/analytics/admin/v1alpha/analyticsadmin_v1alpha.yaml b/third_party/googleapis/google/analytics/admin/v1alpha/analyticsadmin_v1alpha.yaml index 40563f2ec..339eed380 100644 --- a/third_party/googleapis/google/analytics/admin/v1alpha/analyticsadmin_v1alpha.yaml +++ b/third_party/googleapis/google/analytics/admin/v1alpha/analyticsadmin_v1alpha.yaml @@ -15,6 +15,7 @@ authentication: - selector: google.analytics.admin.v1alpha.AnalyticsAdminService.AuditUserLinks oauth: canonical_scopes: |- + https://www.googleapis.com/auth/analytics.manage.users, https://www.googleapis.com/auth/analytics.manage.users.readonly - selector: google.analytics.admin.v1alpha.AnalyticsAdminService.BatchCreateUserLinks oauth: @@ -27,6 +28,7 @@ authentication: - selector: google.analytics.admin.v1alpha.AnalyticsAdminService.BatchGetUserLinks oauth: canonical_scopes: |- + https://www.googleapis.com/auth/analytics.manage.users, https://www.googleapis.com/auth/analytics.manage.users.readonly - selector: google.analytics.admin.v1alpha.AnalyticsAdminService.BatchUpdateUserLinks oauth: @@ -43,74 +45,92 @@ authentication: - selector: google.analytics.admin.v1alpha.AnalyticsAdminService.GetAccount oauth: canonical_scopes: |- + https://www.googleapis.com/auth/analytics.edit, https://www.googleapis.com/auth/analytics.readonly - selector: google.analytics.admin.v1alpha.AnalyticsAdminService.GetAndroidAppDataStream oauth: canonical_scopes: |- + https://www.googleapis.com/auth/analytics.edit, https://www.googleapis.com/auth/analytics.readonly - selector: google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataSharingSettings oauth: canonical_scopes: |- + https://www.googleapis.com/auth/analytics.edit, https://www.googleapis.com/auth/analytics.readonly - selector: google.analytics.admin.v1alpha.AnalyticsAdminService.GetEnhancedMeasurementSettings oauth: canonical_scopes: |- + https://www.googleapis.com/auth/analytics.edit, https://www.googleapis.com/auth/analytics.readonly - selector: google.analytics.admin.v1alpha.AnalyticsAdminService.GetGlobalSiteTag oauth: canonical_scopes: |- + https://www.googleapis.com/auth/analytics.edit, https://www.googleapis.com/auth/analytics.readonly - selector: google.analytics.admin.v1alpha.AnalyticsAdminService.GetIosAppDataStream oauth: canonical_scopes: |- + https://www.googleapis.com/auth/analytics.edit, https://www.googleapis.com/auth/analytics.readonly - selector: google.analytics.admin.v1alpha.AnalyticsAdminService.GetProperty oauth: canonical_scopes: |- + https://www.googleapis.com/auth/analytics.edit, https://www.googleapis.com/auth/analytics.readonly - selector: google.analytics.admin.v1alpha.AnalyticsAdminService.GetUserLink oauth: canonical_scopes: |- + https://www.googleapis.com/auth/analytics.manage.users, https://www.googleapis.com/auth/analytics.manage.users.readonly - selector: google.analytics.admin.v1alpha.AnalyticsAdminService.GetWebDataStream oauth: canonical_scopes: |- + https://www.googleapis.com/auth/analytics.edit, https://www.googleapis.com/auth/analytics.readonly - selector: google.analytics.admin.v1alpha.AnalyticsAdminService.ListAccountSummaries oauth: canonical_scopes: |- + https://www.googleapis.com/auth/analytics.edit, https://www.googleapis.com/auth/analytics.readonly - selector: google.analytics.admin.v1alpha.AnalyticsAdminService.ListAccounts oauth: canonical_scopes: |- + https://www.googleapis.com/auth/analytics.edit, https://www.googleapis.com/auth/analytics.readonly - selector: google.analytics.admin.v1alpha.AnalyticsAdminService.ListAndroidAppDataStreams oauth: canonical_scopes: |- + https://www.googleapis.com/auth/analytics.edit, https://www.googleapis.com/auth/analytics.readonly - selector: google.analytics.admin.v1alpha.AnalyticsAdminService.ListFirebaseLinks oauth: canonical_scopes: |- + https://www.googleapis.com/auth/analytics.edit, https://www.googleapis.com/auth/analytics.readonly - selector: google.analytics.admin.v1alpha.AnalyticsAdminService.ListGoogleAdsLinks oauth: canonical_scopes: |- + https://www.googleapis.com/auth/analytics.edit, https://www.googleapis.com/auth/analytics.readonly - selector: google.analytics.admin.v1alpha.AnalyticsAdminService.ListIosAppDataStreams oauth: canonical_scopes: |- + https://www.googleapis.com/auth/analytics.edit, https://www.googleapis.com/auth/analytics.readonly - selector: google.analytics.admin.v1alpha.AnalyticsAdminService.ListProperties oauth: canonical_scopes: |- + https://www.googleapis.com/auth/analytics.edit, https://www.googleapis.com/auth/analytics.readonly - selector: google.analytics.admin.v1alpha.AnalyticsAdminService.ListUserLinks oauth: canonical_scopes: |- + https://www.googleapis.com/auth/analytics.manage.users, https://www.googleapis.com/auth/analytics.manage.users.readonly - selector: google.analytics.admin.v1alpha.AnalyticsAdminService.ListWebDataStreams oauth: canonical_scopes: |- + https://www.googleapis.com/auth/analytics.edit, https://www.googleapis.com/auth/analytics.readonly - selector: google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateUserLink oauth: diff --git a/third_party/googleapis/google/analytics/admin/v1alpha/resources.proto b/third_party/googleapis/google/analytics/admin/v1alpha/resources.proto index 6128c49da..3dfa5422e 100644 --- a/third_party/googleapis/google/analytics/admin/v1alpha/resources.proto +++ b/third_party/googleapis/google/analytics/admin/v1alpha/resources.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -26,6 +26,111 @@ option java_multiple_files = true; option java_outer_classname = "ResourcesProto"; option java_package = "com.google.analytics.admin.v1alpha"; +// Maximum access settings that Firebase user receive on the linked Analytics +// property. +enum MaximumUserAccess { + // Unspecified maximum user access. + MAXIMUM_USER_ACCESS_UNSPECIFIED = 0; + + // Firebase users have no access to the Analytics property. + NO_ACCESS = 1; + + // Firebase users have Read & Analyze access to the Analytics property. + READ_AND_ANALYZE = 2; + + // Firebase users have edit access to the Analytics property, but may not + // manage the Firebase link. + EDITOR_WITHOUT_LINK_MANAGEMENT = 3; + + // Firebase users have edit access to the Analytics property and may manage + // the Firebase link. + EDITOR_INCLUDING_LINK_MANAGEMENT = 4; +} + +// The category selected for this property, used for industry benchmarking. +enum IndustryCategory { + // Industry category unspecified + INDUSTRY_CATEGORY_UNSPECIFIED = 0; + + // Automotive + AUTOMOTIVE = 1; + + // Business and industrial markets + BUSINESS_AND_INDUSTRIAL_MARKETS = 2; + + // Finance + FINANCE = 3; + + // Healthcare + HEALTHCARE = 4; + + // Technology + TECHNOLOGY = 5; + + // Travel + TRAVEL = 6; + + // Other + OTHER = 7; + + // Arts and entertainment + ARTS_AND_ENTERTAINMENT = 8; + + // Beauty and fitness + BEAUTY_AND_FITNESS = 9; + + // Books and literature + BOOKS_AND_LITERATURE = 10; + + // Food and drink + FOOD_AND_DRINK = 11; + + // Games + GAMES = 12; + + // Hobbies and leisure + HOBBIES_AND_LEISURE = 13; + + // Home and garden + HOME_AND_GARDEN = 14; + + // Internet and telecom + INTERNET_AND_TELECOM = 15; + + // Law and government + LAW_AND_GOVERNMENT = 16; + + // News + NEWS = 17; + + // Online communities + ONLINE_COMMUNITIES = 18; + + // People and society + PEOPLE_AND_SOCIETY = 19; + + // Pets and animals + PETS_AND_ANIMALS = 20; + + // Real estate + REAL_ESTATE = 21; + + // Reference + REFERENCE = 22; + + // Science + SCIENCE = 23; + + // Sports + SPORTS = 24; + + // Jobs and education + JOBS_AND_EDUCATION = 25; + + // Shopping + SHOPPING = 26; +} + // A resource message representing a Google Analytics account. message Account { option (google.api.resource) = { @@ -47,9 +152,8 @@ message Account { // Required. Human-readable display name for this account. string display_name = 4 [(google.api.field_behavior) = REQUIRED]; - // Country of business. Must be a non-deprecated code for a UN M.49 region. - // https://unicode.org/cldr/charts/latest/supplemental/territory_containment_un_m_49.html - string country_code = 5; + // Country of business. Must be a Unicode CLDR region code. + string region_code = 5; // Output only. Indicates whether this Account is soft-deleted or not. Deleted // accounts are excluded from List results unless specifically requested. @@ -303,18 +407,10 @@ message EnhancedMeasurementSettings { // link that leads them away from your domain. bool outbound_clicks_enabled = 5; - // Capture events when your visitors view content on your site that has - // structured data (eg, articles, blog posts, product details screens, etc.). - bool content_views_enabled = 6; - // If enabled, capture a view search results event each time a visitor // performs a search on your site (based on a query parameter). bool site_search_enabled = 7; - // If enabled, capture a view search results event each time a visitor - // interacts with a form on your site. - bool form_interactions_enabled = 8; - // If enabled, capture video play, progress, and complete events as visitors // view embedded videos on your site. bool video_engagement_enabled = 9; @@ -323,35 +419,20 @@ message EnhancedMeasurementSettings { // a common document, compressed file, application, video, or audio extension. bool file_downloads_enabled = 10; - // If enabled, capture a click event each time a visitor clicks a link or - // element that has data attributes beginning with "data-ga". - bool data_tagged_element_clicks_enabled = 11; - - // If enabled, capture a page view event each time a page loads. - bool page_loads_enabled = 12; + // Output only. If enabled, capture a page view event each time a page loads. + bool page_loads_enabled = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; // If enabled, capture a page view event each time the website changes the // browser history state. bool page_changes_enabled = 13; - // Capture events when your visitors view content on your site that has - // articles or blog posts. - bool articles_and_blogs_enabled = 14; - - // Capture events when your visitors view content on your site that has - // product details screens, etc. - bool products_and_ecommerce_enabled = 15; - // Required. URL query parameters to interpret as site search parameters. // Max length is 1024 characters. Must not be empty. string search_query_parameter = 16 [(google.api.field_behavior) = REQUIRED]; // Additional URL query parameters. // Max length is 1024 characters. - string url_query_parameter = 17; - - // Domains to exclude from measurement. Max length is 1024 characters. - string excluded_domains = 18; + string uri_query_parameter = 17; } // A link between an GA4 property and a Firebase project. @@ -389,9 +470,13 @@ message GlobalSiteTag { pattern: "properties/{property}/globalSiteTag" }; + // Output only. Resource name for this GlobalSiteTag resource. + // Format: properties/{propertyId}/globalSiteTag + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Immutable. JavaScript code snippet to be pasted as the first item into the head tag of // every webpage to measure. - string snippet = 1 [(google.api.field_behavior) = IMMUTABLE]; + string snippet = 2 [(google.api.field_behavior) = IMMUTABLE]; } // A link between an GA4 property and a Google Ads account. @@ -406,9 +491,6 @@ message GoogleAdsLink { // Note: googleAdsLinkId is not the Google Ads customer ID. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Immutable. Format: properties/{propertyId} - string parent = 2 [(google.api.field_behavior) = IMMUTABLE]; - // Immutable. Google Ads customer ID. string customer_id = 3 [(google.api.field_behavior) = IMMUTABLE]; @@ -465,111 +547,6 @@ message DataSharingSettings { bool sharing_with_others_enabled = 6; } -// The category selected for this property, used for industry benchmarking. -enum IndustryCategory { - // Industry category unspecified - INDUSTRY_CATEGORY_UNSPECIFIED = 0; - - // Automotive - AUTOMOTIVE = 1; - - // Business and industrial markets - BUSINESS_AND_INDUSTRIAL_MARKETS = 2; - - // Finance - FINANCE = 3; - - // Healthcare - HEALTHCARE = 4; - - // Technology - TECHNOLOGY = 5; - - // Travel - TRAVEL = 6; - - // Other - OTHER = 7; - - // Arts and entertainment - ARTS_AND_ENTERTAINMENT = 8; - - // Beauty and fitness - BEAUTY_AND_FITNESS = 9; - - // Books and literature - BOOKS_AND_LITERATURE = 10; - - // Food and drink - FOOD_AND_DRINK = 11; - - // Games - GAMES = 12; - - // Hobbies and leisure - HOBBIES_AND_LEISURE = 13; - - // Home and garden - HOME_AND_GARDEN = 14; - - // Internet and telecom - INTERNET_AND_TELECOM = 15; - - // Law and government - LAW_AND_GOVERNMENT = 16; - - // News - NEWS = 17; - - // Online communities - ONLINE_COMMUNITIES = 18; - - // People and society - PEOPLE_AND_SOCIETY = 19; - - // Pets and animals - PETS_AND_ANIMALS = 20; - - // Real estate - REAL_ESTATE = 21; - - // Reference - REFERENCE = 22; - - // Science - SCIENCE = 23; - - // Sports - SPORTS = 24; - - // Jobs and education - JOBS_AND_EDUCATION = 25; - - // Shopping - SHOPPING = 26; -} - -// Maximum access settings that Firebase user receive on the linked Analytics -// property. -enum MaximumUserAccess { - // Unspecified maximum user access. - MAXIMUM_USER_ACCESS_UNSPECIFIED = 0; - - // Firebase users have no access to the Analytics property. - NO_ACCESS = 1; - - // Firebase users have Read & Analyze access to the Analytics property. - READ_AND_ANALYZE = 2; - - // Firebase users have edit access to the Analytics property, but may not - // manage the Firebase link. - EDITOR_WITHOUT_LINK_MANAGEMENT = 3; - - // Firebase users have edit access to the Analytics property and may manage - // the Firebase link. - EDITOR_INCLUDING_LINK_MANAGEMENT = 4; -} - // A virtual resource representing an overview of an account and // all its child GA4 properties. message AccountSummary { diff --git a/third_party/googleapis/google/analytics/data/v1alpha/BUILD.bazel b/third_party/googleapis/google/analytics/data/v1alpha/BUILD.bazel index edf11044a..bbbb9ba53 100644 --- a/third_party/googleapis/google/analytics/data/v1alpha/BUILD.bazel +++ b/third_party/googleapis/google/analytics/data/v1alpha/BUILD.bazel @@ -65,11 +65,8 @@ java_grpc_library( java_gapic_library( name = "data_java_gapic", - src = ":data_proto_with_info", - gapic_yaml = "analyticsdata_gapic.yaml", + srcs = [":data_proto_with_info"], grpc_service_config = "analytics_data_grpc_service_config.json", - package = "google.analytics.data.v1alpha", - service_yaml = "analyticsdata_v1alpha.yaml", test_deps = [ ":data_java_grpc", ], @@ -149,49 +146,17 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## + load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "data_moved_proto", - srcs = [":data_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:resource_proto", - ], -) - -py_proto_library( - name = "data_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":data_moved_proto"], -) - -py_grpc_library( - name = "data_py_grpc", - srcs = [":data_moved_proto"], - deps = [":data_py_proto"], ) py_gapic_library( name = "data_py_gapic", - src = ":data_proto_with_info", - gapic_yaml = "analyticsdata_gapic.yaml", + srcs = [":data_proto"], grpc_service_config = "analytics_data_grpc_service_config.json", - package = "google.analytics.data.v1alpha", - service_yaml = "analyticsdata_v1alpha.yaml", - deps = [ - ":data_py_grpc", - ":data_py_proto", - ], ) # Open Source Packages @@ -199,8 +164,6 @@ py_gapic_assembly_pkg( name = "google-analytics-data-v1alpha-py", deps = [ ":data_py_gapic", - ":data_py_grpc", - ":data_py_proto", ], ) @@ -262,6 +225,7 @@ nodejs_gapic_library( name = "data_nodejs_gapic", package_name = "@google-analytics/data", src = ":data_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "analytics_data_grpc_service_config.json", package = "google.analytics.data.v1alpha", service_yaml = "analyticsdata_v1alpha.yaml", diff --git a/third_party/googleapis/google/analytics/data/v1alpha/analytics_data_api.proto b/third_party/googleapis/google/analytics/data/v1alpha/analytics_data_api.proto index f35d308ff..7f5f9f9b9 100644 --- a/third_party/googleapis/google/analytics/data/v1alpha/analytics_data_api.proto +++ b/third_party/googleapis/google/analytics/data/v1alpha/analytics_data_api.proto @@ -78,21 +78,9 @@ service AlphaAnalyticsData { }; } - // Returns metadata for dimensions and metrics available in reporting methods. - // Used to explore the dimensions and metrics. Dimensions and metrics will be - // mostly added over time, but renames and deletions may occur. - // - // This method returns Universal Metadata. Universal Metadata are dimensions - // and metrics applicable to any property such as `country` and `totalUsers`. - rpc GetUniversalMetadata(GetUniversalMetadataRequest) returns (UniversalMetadata) { - option (google.api.http) = { - get: "/v1alpha/universalMetadata" - }; - } - // Returns metadata for dimensions and metrics available in reporting methods. // Used to explore the dimensions and metrics. In this method, a Google - // Analytics App + Web Property Identifier is specified in the request, and + // Analytics GA4 Property Identifier is specified in the request, and // the metadata response includes Custom dimensions and metrics as well as // Universal metadata. // @@ -106,6 +94,16 @@ service AlphaAnalyticsData { }; option (google.api.method_signature) = "name"; } + + // The Google Analytics Realtime API returns a customized report of realtime + // event data for your property. These reports show events and usage from the + // last 30 minutes. + rpc RunRealtimeReport(RunRealtimeReportRequest) returns (RunRealtimeReportResponse) { + option (google.api.http) = { + post: "/v1alpha/{property=properties/*}:runRealtimeReport" + body: "*" + }; + } } // The dimensions and metrics currently accepted in reporting methods. @@ -118,7 +116,7 @@ message Metadata { // Resource name of this metadata. string name = 3; - // The dimensions descriptions. + // The dimension descriptions. repeated DimensionMetadata dimensions = 1; // The metric descriptions. @@ -145,10 +143,16 @@ message RunReportRequest { repeated DateRange date_ranges = 4; // The row count of the start row. The first row is counted as row 0. + // + // To learn more about this pagination parameter, see + // [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). int64 offset = 5; // The number of rows to return. If unspecified, 10 rows are returned. If // -1, all rows are returned. + // + // To learn more about this pagination parameter, see + // [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). int64 limit = 6; // Aggregation of metrics. Aggregated metric values will be shown in rows @@ -211,6 +215,9 @@ message RunReportResponse { // rows returned in the response. For example if a query returns 175 rows and // includes limit = 50 in the API request, the response will contain row_count // = 175 but only 50 rows. + // + // To learn more about this pagination parameter, see + // [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). int32 row_count = 12; // Metadata for the report. @@ -375,27 +382,19 @@ message BatchRunPivotReportsResponse { repeated RunPivotReportResponse pivot_reports = 1; } -// Request for the universal dimension and metric metadata. -message GetUniversalMetadataRequest { - -} - -// The dimensions and metrics currently accepted in reporting methods. -message UniversalMetadata { - // The dimensions descriptions. - repeated DimensionMetadata dimensions = 1; - - // The metric descriptions. - repeated MetricMetadata metrics = 2; -} - // Request for a property's dimension and metric metadata. message GetMetadataRequest { // Required. The resource name of the metadata to retrieve. This name field is // specified in the URL path and not URL parameters. Property is a numeric - // Google Analytics App + Web Property identifier. + // Google Analytics GA4 Property identifier. To learn more, see [where to find + // your Property + // ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). // // Example: properties/1234/metadata + // + // Set the Property ID to 0 for dimensions and metrics common to all + // properties. In this special mode, this method will not return custom + // dimensions and metrics. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -403,3 +402,76 @@ message GetMetadataRequest { } ]; } + +// The request to generate a realtime report. +message RunRealtimeReportRequest { + // A Google Analytics GA4 property identifier whose events are tracked. + // Specified in the URL path and not the body. To learn more, see [where to + // find your Property + // ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). + // + // Example: properties/1234 + string property = 1; + + // The dimensions requested and displayed. + repeated Dimension dimensions = 2; + + // The metrics requested and displayed. + repeated Metric metrics = 3; + + // The number of rows to return. If unspecified, 10 rows are returned. If + // -1, all rows are returned. + int64 limit = 4; + + // The filter clause of dimensions. Dimensions must be requested to be used in + // this filter. Metrics cannot be used in this filter. + FilterExpression dimension_filter = 5; + + // The filter clause of metrics. Applied at post aggregation phase, similar to + // SQL having-clause. Metrics must be requested to be used in this filter. + // Dimensions cannot be used in this filter. + FilterExpression metric_filter = 6; + + // Aggregation of metrics. Aggregated metric values will be shown in rows + // where the dimension_values are set to "RESERVED_(MetricAggregation)". + repeated MetricAggregation metric_aggregations = 7; + + // Specifies how rows are ordered in the response. + repeated OrderBy order_bys = 8; + + // Toggles whether to return the current state of this Analytics Property's + // Realtime quota. Quota is returned in [PropertyQuota](#PropertyQuota). + bool return_property_quota = 9; +} + +// The response realtime report table corresponding to a request. +message RunRealtimeReportResponse { + // Describes dimension columns. The number of DimensionHeaders and ordering of + // DimensionHeaders matches the dimensions present in rows. + repeated DimensionHeader dimension_headers = 1; + + // Describes metric columns. The number of MetricHeaders and ordering of + // MetricHeaders matches the metrics present in rows. + repeated MetricHeader metric_headers = 2; + + // Rows of dimension value combinations and metric values in the report. + repeated Row rows = 3; + + // If requested, the totaled values of metrics. + repeated Row totals = 4; + + // If requested, the maximum values of metrics. + repeated Row maximums = 5; + + // If requested, the minimum values of metrics. + repeated Row minimums = 6; + + // The total number of rows in the query result, regardless of the number of + // rows returned in the response. For example if a query returns 175 rows and + // includes limit = 50 in the API request, the response will contain row_count + // = 175 but only 50 rows. + int32 row_count = 7; + + // This Analytics Property's Realtime quota state including this request. + PropertyQuota property_quota = 8; +} diff --git a/third_party/googleapis/google/analytics/data/v1alpha/analyticsdata_gapic.yaml b/third_party/googleapis/google/analytics/data/v1alpha/analyticsdata_gapic.yaml index 6ab3aef1b..78f5d04d8 100644 --- a/third_party/googleapis/google/analytics/data/v1alpha/analyticsdata_gapic.yaml +++ b/third_party/googleapis/google/analytics/data/v1alpha/analyticsdata_gapic.yaml @@ -1,8 +1,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 language_settings: - java: - package_name: com.google.analytics.data.v1alpha python: package_name: google.analytics.data.v1alpha.gapic go: diff --git a/third_party/googleapis/google/analytics/data/v1alpha/data.proto b/third_party/googleapis/google/analytics/data/v1alpha/data.proto index dde585296..aafd17689 100644 --- a/third_party/googleapis/google/analytics/data/v1alpha/data.proto +++ b/third_party/googleapis/google/analytics/data/v1alpha/data.proto @@ -22,8 +22,7 @@ option java_outer_classname = "ReportingApiProto"; option java_package = "com.google.analytics.data.v1alpha"; // A contiguous set of days: startDate, startDate + 1, ..., endDate. Requests -// are allowed up to 4 date ranges, and the union of the ranges can cover up to -// 1 year. +// are allowed up to 4 date ranges. message DateRange { // The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot // be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also @@ -46,15 +45,27 @@ message DateRange { // The unique identifier of the property whose events are tracked. message Entity { - // A Google Analytics App + Web property id. + // A Google Analytics GA4 property id. To learn more, see [where to find your + // Property + // ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). string property_id = 1; } -// Dimensions are attributes of your data. For example, the dimension City -// indicates the city, for example, "Paris" or "New York", from which an event -// originates. Requests are allowed up to 8 dimensions. +// Dimensions are attributes of your data. For example, the dimension city +// indicates the city from which an event originates. Dimension values in report +// responses are strings; for example, city could be "Paris" or "New York". +// Requests are allowed up to 8 dimensions. message Dimension { - // The name of the dimension. + // The name of the dimension. See the [API + // Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) + // for the list of dimension names. + // + // If `dimensionExpression` is specified, `name` can be any string that you + // would like. For example if a `dimensionExpression` concatenates `country` + // and `city`, you could call that dimension `countryAndCity`. + // + // Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`, + // `dimensionExpression`, and `pivots`. string name = 1; // One dimension can be the result of an expression of multiple dimensions. @@ -104,19 +115,29 @@ message DimensionExpression { } } -// The quantitative measurements of a report. For example, the metric eventCount -// is the total number of events. Requests are allowed up to 10 metrics. +// The quantitative measurements of a report. For example, the metric +// `eventCount` is the total number of events. Requests are allowed up to 10 +// metrics. message Metric { - // The name of the metric. + // The name of the metric. See the [API + // Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics) + // for the list of metric names. + // + // If `expression` is specified, `name` can be any string that you would like. + // For example if `expression` is `screenPageViews/sessions`, you could call + // that metric's name = `viewsPerSession`. + // + // Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric + // `expression`. string name = 1; // A mathematical expression for derived metrics. For example, the metric - // Event count per user is eventCount/totalUsers. + // Event count per user is `eventCount/totalUsers`. string expression = 2; - // Indicates if a metric is invisible. - // If a metric is invisible, the metric is not in the response, but can be - // used in filters, order_bys or being referred to in a metric expression. + // Indicates if a metric is invisible in the report response. If a metric is + // invisible, the metric will not produce a column in the response, but can be + // used in `metricFilter`, `orderBys`, or a metric `expression`. bool invisible = 3; } @@ -241,7 +262,10 @@ message Filter { // Specify one type of filter for `Filter`. oneof one_filter { - // A filter for null values. + // A filter for null values. If True, a null dimension value is matched by + // this filter. Null filter is commonly used inside a NOT filter + // expression. For example, a NOT expression of a null filter removes rows + // when a dimension is null. bool null_filter = 2; // Strings related filter. @@ -375,20 +399,35 @@ message Pivot { repeated MetricAggregation metric_aggregations = 5; } -// Specification for a cohort report. +// Specification of cohorts for a cohort report. +// Cohort reports can be used for example to create a time series of user +// retention for the cohort. For example, you could select the cohort of users +// that were acquired in the first week of September and follow that cohort for +// the next six weeks. Selecting the users acquired in the first week of +// September cohort is specified in the `cohort` object. Following that +// cohort for the next six weeks is specified in the `cohortsRange` object. +// +// The report response could show a weekly time series where say your app has +// retained 60% of this cohort after three weeks and 25% of this cohort after +// six weeks. These two percentages can be calculated by the metric +// `cohortActiveUsers/cohortTotalUsers` and will be separate rows in the report. message CohortSpec { - // The definition for the cohorts. + // Defines the selection criteria to group users into cohorts. + // + // Most cohort reports define only a single cohort. If multiple cohorts are + // specified, each cohort can be recognized in the report by their name. repeated Cohort cohorts = 1; - // The data ranges of cohorts. + // Cohort reports follow cohorts over an extended reporting date range. This + // range specifies an offset duration to follow the cohorts over. CohortsRange cohorts_range = 2; - // Settings of a cohort report. + // Optional settings for a cohort report. CohortReportSettings cohort_report_settings = 3; } -// Defines a cohort. A cohort is a group of users who share a common -// characteristic. For example, all users with the same acquisition date +// Defines a cohort selection criteria. A cohort is a group of users who share +// a common characteristic. For example, users with the same `firstTouchDate` // belong to the same cohort. message Cohort { // Assigns a name to this cohort. The dimension `cohort` is valued to this @@ -397,61 +436,92 @@ message Cohort { // `cohort_0`, `cohort_1`, etc. string name = 1; - // The dimension used by cohort. Only supports `firstTouchDate` for retention - // report. + // Dimension used by the cohort. Required and only supports `firstTouchDate`. string dimension = 2; - // The cohort selects users whose first visit date is between start date - // and end date defined in the `dateRange`. In a cohort request, this - // `dateRange` is required and the `dateRanges` in the `RunReportRequest` or - // `RunPivotReportRequest` must be unspecified. + // The cohort selects users whose first touch date is between start date and + // end date defined in the `dateRange`. This `dateRange` does not specify the + // full date range of event data that is present in a cohort report. In a + // cohort report, this `dateRange` is extended by the granularity and offset + // present in the `cohortsRange`; event data for the extended reporting date + // range is present in a cohort report. + // + // In a cohort request, this `dateRange` is required and the `dateRanges` in + // the `RunReportRequest` or `RunPivotReportRequest` must be unspecified. // - // The date range should be aligned with the cohort's granularity. If - // CohortsRange uses daily granularity, the date range can be aligned to any - // day. If CohortsRange uses weekly granularity, the date range should be - // aligned to the week boundary, starting at Sunday and ending Saturday. If - // CohortsRange uses monthly granularity, the date range should be aligned to - // the month, starting at the first and ending on the last day of the month. + // This `dateRange` should generally be aligned with the cohort's granularity. + // If `CohortsRange` uses daily granularity, this `dateRange` can be a single + // day. If `CohortsRange` uses weekly granularity, this `dateRange` can be + // aligned to a week boundary, starting at Sunday and ending Saturday. If + // `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to + // a month, starting at the first and ending on the last day of the month. DateRange date_range = 3; } -// Settings of a cohort report. -message CohortReportSettings { - // If true, accumulates the result from first visit day to the end day. Not - // supported in `RunReportRequest`. - bool accumulate = 1; -} - -// Describes date range for a cohort report. +// Configures the extended reporting date range for a cohort report. Specifies +// an offset duration to follow the cohorts over. message CohortsRange { - // Reporting granularity for the cohorts. + // The granularity used to interpret the `startOffset` and `endOffset` for the + // extended reporting date range for a cohort report. enum Granularity { - // Unspecified. + // Should never be specified. GRANULARITY_UNSPECIFIED = 0; - // Daily + // Daily granularity. Commonly used if the cohort's `dateRange` is a single + // day and the request contains `cohortNthDay`. DAILY = 1; - // Weekly + // Weekly granularity. Commonly used if the cohort's `dateRange` is a week + // in duration (starting on Sunday and ending on Saturday) and the request + // contains `cohortNthWeek`. WEEKLY = 2; - // Monthly + // Monthly granularity. Commonly used if the cohort's `dateRange` is a month + // in duration and the request contains `cohortNthMonth`. MONTHLY = 3; } - // Reporting date range for each cohort is calculated based on these three - // fields. + // The granularity used to interpret the `startOffset` and `endOffset` for the + // extended reporting date range for a cohort report. Granularity granularity = 1; - // For daily cohorts, this will be the start day offset. - // For weekly cohorts, this will be the week offset. + // `startOffset` specifies the start date of the extended reporting date range + // for a cohort report. `startOffset` is commonly set to 0 so that reports + // contain data from the acquisition of the cohort forward. + // + // If `granularity` is `DAILY`, the `startDate` of the extended reporting date + // range is `startDate` of the cohort plus `startOffset` days. + // + // If `granularity` is `WEEKLY`, the `startDate` of the extended reporting + // date range is `startDate` of the cohort plus `startOffset * 7` days. + // + // If `granularity` is `MONTHLY`, the `startDate` of the extended reporting + // date range is `startDate` of the cohort plus `startOffset * 30` days. int32 start_offset = 2; - // For daily cohorts, this will be the end day offset. - // For weekly cohorts, this will be the week offset. + // `endOffset` specifies the end date of the extended reporting date range + // for a cohort report. `endOffset` can be any positive integer but is + // commonly set to 5 to 10 so that reports contain data on the cohort for the + // next several granularity time periods. + // + // If `granularity` is `DAILY`, the `endDate` of the extended reporting date + // range is `endDate` of the cohort plus `endOffset` days. + // + // If `granularity` is `WEEKLY`, the `endDate` of the extended reporting date + // range is `endDate` of the cohort plus `endOffset * 7` days. + // + // If `granularity` is `MONTHLY`, the `endDate` of the extended reporting date + // range is `endDate` of the cohort plus `endOffset * 30` days. int32 end_offset = 3; } +// Optional settings of a cohort report. +message CohortReportSettings { + // If true, accumulates the result from first touch day to the end day. Not + // supported in `RunReportRequest`. + bool accumulate = 1; +} + // Response's metadata carrying additional information about the report content. message ResponseMetaData { // If true, indicates some buckets of dimension combinations are rolled into @@ -502,28 +572,38 @@ message PivotDimensionHeader { // For example if RunReportRequest contains: // // ```none -// dimensions { -// name: "eventName" -// } -// dimensions { -// name: "countryId" -// } -// metrics { -// name: "eventCount" -// } +// "dimensions": [ +// { +// "name": "eventName" +// }, +// { +// "name": "countryId" +// } +// ], +// "metrics": [ +// { +// "name": "eventCount" +// } +// ] // ``` // -// One row with 'in_app_purchase' as the eventName, 'us' as the countryId, and +// One row with 'in_app_purchase' as the eventName, 'JP' as the countryId, and // 15 as the eventCount, would be: // // ```none -// dimension_values { -// name: 'in_app_purchase' -// name: 'us' -// } -// metric_values { -// int64_value: 15 -// } +// "dimensionValues": [ +// { +// "value": "in_app_purchase" +// }, +// { +// "value": "JP" +// } +// ], +// "metricValues": [ +// { +// "value": "15" +// } +// ] // ``` message Row { // List of requested dimension values. In a PivotReport, dimension_values @@ -568,20 +648,24 @@ message NumericValue { // property is exhausted, all requests to that property will return Resource // Exhausted errors. message PropertyQuota { - // Analytics Properties can use up to 25,000 tokens per day. Most requests + // Standard Analytics Properties can use up to 25,000 tokens per day; + // Analytics 360 Properties can use 250,000 tokens per day. Most requests // consume fewer than 10 tokens. QuotaStatus tokens_per_day = 1; - // Analytics Properties can use up to 5,000 tokens per day. An API request - // consumes a single number of tokens, and that number is deducted from both - // the hourly and daily quotas. + // Standard Analytics Properties can use up to 5,000 tokens per day; Analytics + // 360 Properties can use 50,000 tokens per day. An API request consumes a + // single number of tokens, and that number is deducted from both the hourly + // and daily quotas. QuotaStatus tokens_per_hour = 2; - // Analytics Properties can send up to 10 concurrent requests. + // Standard Analytics Properties can send up to 10 concurrent requests; + // Analytics 360 Properties can use up to 50 concurrent requests. QuotaStatus concurrent_requests = 3; - // Analytics Properties and cloud project pairs can have up to 10 - // server errors per hour. + // Standard Analytics Properties and cloud project pairs can have up to 10 + // server errors per hour; Analytics 360 Properties and cloud project pairs + // can have up to 50 server errors per hour. QuotaStatus server_errors_per_project_per_hour = 4; } @@ -612,6 +696,9 @@ message DimensionMetadata { // for a period of time. After the deprecation period, the dimension will be // available only by `apiName`. repeated string deprecated_api_names = 4; + + // True if the dimension is a custom dimension for this property. + bool custom_definition = 5; } // Explains a metric. @@ -640,6 +727,9 @@ message MetricMetadata { // [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics // are not expressions, and for non-expressions, this field is empty. string expression = 6; + + // True if the metric is a custom metric for this property. + bool custom_definition = 7; } // Represents aggregation of metrics. diff --git a/third_party/googleapis/google/analytics/data/v1beta/BUILD.bazel b/third_party/googleapis/google/analytics/data/v1beta/BUILD.bazel new file mode 100644 index 000000000..76b951230 --- /dev/null +++ b/third_party/googleapis/google/analytics/data/v1beta/BUILD.bazel @@ -0,0 +1,341 @@ +# This file was automatically generated by BuildFileGenerator +# https://github.com/googleapis/rules_gapic/tree/master/bazel + +# Most of the manual changes to this file will be overwritten. +# It's **only** allowed to change the following rule attribute values: +# - names of *_gapic_assembly_* rules +# - certain parameters of *_gapic_library rules, including but not limited to: +# * extra_protoc_parameters +# * extra_protoc_file_parameters +# The complete list of preserved parameters can be found in the source code. + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") +load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info") + +proto_library( + name = "data_proto", + srcs = [ + "analytics_data_api.proto", + "data.proto", + ], + deps = [ + "//google/api:annotations_proto", + "//google/api:client_proto", + "//google/api:field_behavior_proto", + "//google/api:resource_proto", + ], +) + +proto_library_with_info( + name = "data_proto_with_info", + deps = [ + ":data_proto", + "//google/cloud:common_resources_proto", + ], +) + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_gapic_assembly_gradle_pkg", + "java_gapic_library", + "java_gapic_test", + "java_grpc_library", + "java_proto_library", +) + +java_proto_library( + name = "data_java_proto", + deps = [":data_proto"], +) + +java_grpc_library( + name = "data_java_grpc", + srcs = [":data_proto"], + deps = [":data_java_proto"], +) + +java_gapic_library( + name = "data_java_gapic", + srcs = [":data_proto_with_info"], + grpc_service_config = "analytics_data_grpc_service_config.json", + test_deps = [ + ":data_java_grpc", + ], + deps = [ + ":data_java_proto", + ], +) + +java_gapic_test( + name = "data_java_gapic_test_suite", + test_classes = [ + "com.google.analytics.data.v1beta.BetaAnalyticsDataClientTest", + ], + runtime_deps = [":data_java_gapic_test"], +) + +# Open Source Packages +java_gapic_assembly_gradle_pkg( + name = "google-analytics-data-v1beta-java", + deps = [ + ":data_java_gapic", + ":data_java_grpc", + ":data_java_proto", + ":data_proto", + ], +) + +############################################################################## +# Go +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "go_gapic_assembly_pkg", + "go_gapic_library", + "go_proto_library", + "go_test", +) + +go_proto_library( + name = "data_go_proto", + compilers = ["@io_bazel_rules_go//proto:go_grpc"], + importpath = "google.golang.org/genproto/googleapis/analytics/data/v1beta", + protos = [":data_proto"], + deps = [ + "//google/api:annotations_go_proto", + ], +) + +go_gapic_library( + name = "data_go_gapic", + srcs = [":data_proto_with_info"], + grpc_service_config = "analytics_data_grpc_service_config.json", + importpath = "google.golang.org/google/analytics/data/v1beta;data", + metadata = True, + service_yaml = "analyticsdata_v1beta.yaml", + deps = [ + ":data_go_proto", + ], +) + +go_test( + name = "data_go_gapic_test", + srcs = [":data_go_gapic_srcjar_test"], + embed = [":data_go_gapic"], + importpath = "google.golang.org/google/analytics/data/v1beta", +) + +# Open Source Packages +go_gapic_assembly_pkg( + name = "gapi-cloud-analytics-data-v1beta-go", + deps = [ + ":data_go_gapic", + ":data_go_gapic_srcjar-metadata.srcjar", + ":data_go_gapic_srcjar-test.srcjar", + ":data_go_proto", + ], +) + +############################################################################## +# Python +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "py_gapic_assembly_pkg", + "py_gapic_library", +) + +py_gapic_library( + name = "data_py_gapic", + srcs = [":data_proto"], + grpc_service_config = "analytics_data_grpc_service_config.json", +) + +# Open Source Packages +py_gapic_assembly_pkg( + name = "google-analytics-data-v1beta-py", + deps = [ + ":data_py_gapic", + ], +) + +############################################################################## +# PHP +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "php_gapic_assembly_pkg", + "php_gapic_library", + "php_grpc_library", + "php_proto_library", +) + +php_proto_library( + name = "data_php_proto", + deps = [":data_proto"], +) + +php_grpc_library( + name = "data_php_grpc", + srcs = [":data_proto"], + deps = [":data_php_proto"], +) + +php_gapic_library( + name = "data_php_gapic", + src = ":data_proto_with_info", + gapic_yaml = "analyticsdata_gapic.yaml", + grpc_service_config = "analytics_data_grpc_service_config.json", + package = "google.analytics.data.v1beta", + service_yaml = "analyticsdata_v1beta.yaml", + deps = [ + ":data_php_grpc", + ":data_php_proto", + ], +) + +# Open Source Packages +php_gapic_assembly_pkg( + name = "google-cloud-analytics-data-v1beta-php", + deps = [ + ":data_php_gapic", + ":data_php_grpc", + ":data_php_proto", + ], +) + +############################################################################## +# Node.js +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", +) + +nodejs_gapic_library( + name = "data_nodejs_gapic", + package_name = "@google-analytics/data", + src = ":data_proto_with_info", + extra_protoc_parameters = ["metadata"], + grpc_service_config = "analytics_data_grpc_service_config.json", + package = "google.analytics.data.v1beta", + service_yaml = "analyticsdata_v1beta.yaml", + deps = [], +) + +nodejs_gapic_assembly_pkg( + name = "google-analytics-data-v1beta-nodejs", + deps = [ + ":data_nodejs_gapic", + ":data_proto", + ], +) + +############################################################################## +# Ruby +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "ruby_cloud_gapic_library", + "ruby_gapic_assembly_pkg", + "ruby_grpc_library", + "ruby_proto_library", +) + +ruby_proto_library( + name = "data_ruby_proto", + deps = [":data_proto"], +) + +ruby_grpc_library( + name = "data_ruby_grpc", + srcs = [":data_proto"], + deps = [":data_ruby_proto"], +) + +ruby_cloud_gapic_library( + name = "data_ruby_gapic", + srcs = [":data_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-analytics-data-v1", + "ruby-cloud-env-prefix=ANALYTICSDATA", + "ruby-cloud-product-url=https://developers.google.com/analytics/devguides/reporting/data/v1", + "ruby-cloud-api-id=analyticsdata.googleapis.com", + "ruby-cloud-api-shortname=analyticsdata", + ], + ruby_cloud_description = "The Google Analytics Data API V1 provides programmatic methods to access report data in Google Analytics 4 (GA4) properties.", + ruby_cloud_title = "Google Analytics Data V1", + grpc_service_config = "analytics_data_grpc_service_config.json", + deps = [ + ":data_ruby_grpc", + ":data_ruby_proto", + ], +) + +# Open Source Packages +ruby_gapic_assembly_pkg( + name = "google-cloud-analytics-data-v1beta-ruby", + deps = [ + ":data_ruby_gapic", + ":data_ruby_grpc", + ":data_ruby_proto", + ], +) + +############################################################################## +# C# +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "csharp_gapic_assembly_pkg", + "csharp_gapic_library", + "csharp_grpc_library", + "csharp_proto_library", +) + +csharp_proto_library( + name = "data_csharp_proto", + deps = [":data_proto"], +) + +csharp_grpc_library( + name = "data_csharp_grpc", + srcs = [":data_proto"], + deps = [":data_csharp_proto"], +) + +csharp_gapic_library( + name = "data_csharp_gapic", + srcs = [":data_proto_with_info"], + common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "analytics_data_grpc_service_config.json", + deps = [ + ":data_csharp_grpc", + ":data_csharp_proto", + ], +) + +# Open Source Packages +csharp_gapic_assembly_pkg( + name = "google-cloud-analytics-data-v1beta-csharp", + deps = [ + ":data_csharp_gapic", + ":data_csharp_grpc", + ":data_csharp_proto", + ], +) + +############################################################################## +# C++ +############################################################################## +# Put your C++ rules here diff --git a/third_party/googleapis/google/analytics/data/v1beta/analytics_data_api.proto b/third_party/googleapis/google/analytics/data/v1beta/analytics_data_api.proto new file mode 100644 index 000000000..9eaca5603 --- /dev/null +++ b/third_party/googleapis/google/analytics/data/v1beta/analytics_data_api.proto @@ -0,0 +1,522 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.analytics.data.v1beta; + +import "google/analytics/data/v1beta/data.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option go_package = "google.golang.org/genproto/googleapis/analytics/data/v1beta;data"; +option java_multiple_files = true; +option java_outer_classname = "AnalyticsDataApiProto"; +option java_package = "com.google.analytics.data.v1beta"; + +// Google Analytics reporting data service. +service BetaAnalyticsData { + option (google.api.default_host) = "analyticsdata.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/analytics," + "https://www.googleapis.com/auth/analytics.readonly"; + + // Returns a customized report of your Google Analytics event data. Reports + // contain statistics derived from data collected by the Google Analytics + // tracking code. The data returned from the API is as a table with columns + // for the requested dimensions and metrics. Metrics are individual + // measurements of user activity on your property, such as active users or + // event count. Dimensions break down metrics across some common criteria, + // such as country or event name. + rpc RunReport(RunReportRequest) returns (RunReportResponse) { + option (google.api.http) = { + post: "/v1beta/{property=properties/*}:runReport" + body: "*" + }; + } + + // Returns a customized pivot report of your Google Analytics event data. + // Pivot reports are more advanced and expressive formats than regular + // reports. In a pivot report, dimensions are only visible if they are + // included in a pivot. Multiple pivots can be specified to further dissect + // your data. + rpc RunPivotReport(RunPivotReportRequest) returns (RunPivotReportResponse) { + option (google.api.http) = { + post: "/v1beta/{property=properties/*}:runPivotReport" + body: "*" + }; + } + + // Returns multiple reports in a batch. All reports must be for the same + // GA4 Property. + rpc BatchRunReports(BatchRunReportsRequest) returns (BatchRunReportsResponse) { + option (google.api.http) = { + post: "/v1beta/{property=properties/*}:batchRunReports" + body: "*" + }; + } + + // Returns multiple pivot reports in a batch. All reports must be for the same + // GA4 Property. + rpc BatchRunPivotReports(BatchRunPivotReportsRequest) returns (BatchRunPivotReportsResponse) { + option (google.api.http) = { + post: "/v1beta/{property=properties/*}:batchRunPivotReports" + body: "*" + }; + } + + // Returns metadata for dimensions and metrics available in reporting methods. + // Used to explore the dimensions and metrics. In this method, a Google + // Analytics GA4 Property Identifier is specified in the request, and + // the metadata response includes Custom dimensions and metrics as well as + // Universal metadata. + // + // For example if a custom metric with parameter name `levels_unlocked` is + // registered to a property, the Metadata response will contain + // `customEvent:levels_unlocked`. Universal metadata are dimensions and + // metrics applicable to any property such as `country` and `totalUsers`. + rpc GetMetadata(GetMetadataRequest) returns (Metadata) { + option (google.api.http) = { + get: "/v1beta/{name=properties/*/metadata}" + }; + option (google.api.method_signature) = "name"; + } + + // The Google Analytics Realtime API returns a customized report of realtime + // event data for your property. These reports show events and usage from the + // last 30 minutes. + rpc RunRealtimeReport(RunRealtimeReportRequest) returns (RunRealtimeReportResponse) { + option (google.api.http) = { + post: "/v1beta/{property=properties/*}:runRealtimeReport" + body: "*" + }; + } +} + +// The dimensions and metrics currently accepted in reporting methods. +message Metadata { + option (google.api.resource) = { + type: "analyticsdata.googleapis.com/Metadata" + pattern: "properties/{property}/metadata" + }; + + // Resource name of this metadata. + string name = 3; + + // The dimension descriptions. + repeated DimensionMetadata dimensions = 1; + + // The metric descriptions. + repeated MetricMetadata metrics = 2; +} + +// The request to generate a report. +message RunReportRequest { + // A Google Analytics GA4 property identifier whose events are tracked. + // Specified in the URL path and not the body. To learn more, see [where to + // find your Property + // ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). + // Within a batch request, this property should either be unspecified or + // consistent with the batch-level property. + // + // Example: properties/1234 + string property = 1; + + // The dimensions requested and displayed. + repeated Dimension dimensions = 2; + + // The metrics requested and displayed. + repeated Metric metrics = 3; + + // Date ranges of data to read. If multiple date ranges are requested, each + // response row will contain a zero based date range index. If two date + // ranges overlap, the event data for the overlapping days is included in the + // response rows for both date ranges. In a cohort request, this `dateRanges` + // must be unspecified. + repeated DateRange date_ranges = 4; + + // The filter clause of dimensions. Dimensions must be requested to be used in + // this filter. Metrics cannot be used in this filter. + FilterExpression dimension_filter = 5; + + // The filter clause of metrics. Applied at post aggregation phase, similar to + // SQL having-clause. Metrics must be requested to be used in this filter. + // Dimensions cannot be used in this filter. + FilterExpression metric_filter = 6; + + // The row count of the start row. The first row is counted as row 0. + // + // When paging, the first request does not specify offset; or equivalently, + // sets offset to 0; the first request returns the first `limit` of rows. The + // second request sets offset to the `limit` of the first request; the second + // request returns the second `limit` of rows. + // + // To learn more about this pagination parameter, see + // [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + int64 offset = 7; + + // The number of rows to return. If unspecified, 10,000 rows are returned. The + // API returns a maximum of 100,000 rows per request, no matter how many you + // ask for. `limit` must be positive. + // + // The API can also return fewer rows than the requested `limit`, if there + // aren't as many dimension values as the `limit`. For instance, there are + // fewer than 300 possible values for the dimension `country`, so when + // reporting on only `country`, you can't get more than 300 rows, even if you + // set `limit` to a higher value. + // + // To learn more about this pagination parameter, see + // [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + int64 limit = 8; + + // Aggregation of metrics. Aggregated metric values will be shown in rows + // where the dimension_values are set to "RESERVED_(MetricAggregation)". + repeated MetricAggregation metric_aggregations = 9; + + // Specifies how rows are ordered in the response. + repeated OrderBy order_bys = 10; + + // A currency code in ISO4217 format, such as "AED", "USD", "JPY". + // If the field is empty, the report uses the property's default currency. + string currency_code = 11; + + // Cohort group associated with this request. If there is a cohort group + // in the request the 'cohort' dimension must be present. + CohortSpec cohort_spec = 12; + + // If false or unspecified, each row with all metrics equal to 0 will not be + // returned. If true, these rows will be returned if they are not separately + // removed by a filter. + bool keep_empty_rows = 13; + + // Toggles whether to return the current state of this Analytics Property's + // quota. Quota is returned in [PropertyQuota](#PropertyQuota). + bool return_property_quota = 14; +} + +// The response report table corresponding to a request. +message RunReportResponse { + // Describes dimension columns. The number of DimensionHeaders and ordering of + // DimensionHeaders matches the dimensions present in rows. + repeated DimensionHeader dimension_headers = 1; + + // Describes metric columns. The number of MetricHeaders and ordering of + // MetricHeaders matches the metrics present in rows. + repeated MetricHeader metric_headers = 2; + + // Rows of dimension value combinations and metric values in the report. + repeated Row rows = 3; + + // If requested, the totaled values of metrics. + repeated Row totals = 4; + + // If requested, the maximum values of metrics. + repeated Row maximums = 5; + + // If requested, the minimum values of metrics. + repeated Row minimums = 6; + + // The total number of rows in the query result. `rowCount` is independent of + // the number of rows returned in the response, the `limit` request + // parameter, and the `offset` request parameter. For example if a query + // returns 175 rows and includes `limit` of 50 in the API request, the + // response will contain `rowCount` of 175 but only 50 rows. + // + // To learn more about this pagination parameter, see + // [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + int32 row_count = 7; + + // Metadata for the report. + ResponseMetaData metadata = 8; + + // This Analytics Property's quota state including this request. + PropertyQuota property_quota = 9; +} + +// The request to generate a pivot report. +message RunPivotReportRequest { + // A Google Analytics GA4 property identifier whose events are tracked. + // Specified in the URL path and not the body. To learn more, see [where to + // find your Property + // ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). + // Within a batch request, this property should either be unspecified or + // consistent with the batch-level property. + // + // Example: properties/1234 + string property = 1; + + // The dimensions requested. All defined dimensions must be used by one of the + // following: dimension_expression, dimension_filter, pivots, order_bys. + repeated Dimension dimensions = 2; + + // The metrics requested, at least one metric needs to be specified. All + // defined metrics must be used by one of the following: metric_expression, + // metric_filter, order_bys. + repeated Metric metrics = 3; + + // The date range to retrieve event data for the report. If multiple date + // ranges are specified, event data from each date range is used in the + // report. A special dimension with field name "dateRange" can be included in + // a Pivot's field names; if included, the report compares between date + // ranges. In a cohort request, this `dateRanges` must be unspecified. + repeated DateRange date_ranges = 4; + + // Describes the visual format of the report's dimensions in columns or rows. + // The union of the fieldNames (dimension names) in all pivots must be a + // subset of dimension names defined in Dimensions. No two pivots can share a + // dimension. A dimension is only visible if it appears in a pivot. + repeated Pivot pivots = 5; + + // The filter clause of dimensions. Dimensions must be requested to be used in + // this filter. Metrics cannot be used in this filter. + FilterExpression dimension_filter = 6; + + // The filter clause of metrics. Applied at post aggregation phase, similar to + // SQL having-clause. Metrics must be requested to be used in this filter. + // Dimensions cannot be used in this filter. + FilterExpression metric_filter = 7; + + // A currency code in ISO4217 format, such as "AED", "USD", "JPY". + // If the field is empty, the report uses the property's default currency. + string currency_code = 8; + + // Cohort group associated with this request. If there is a cohort group + // in the request the 'cohort' dimension must be present. + CohortSpec cohort_spec = 9; + + // If false or unspecified, each row with all metrics equal to 0 will not be + // returned. If true, these rows will be returned if they are not separately + // removed by a filter. + bool keep_empty_rows = 10; + + // Toggles whether to return the current state of this Analytics Property's + // quota. Quota is returned in [PropertyQuota](#PropertyQuota). + bool return_property_quota = 11; +} + +// The response pivot report table corresponding to a pivot request. +message RunPivotReportResponse { + // Summarizes the columns and rows created by a pivot. Each pivot in the + // request produces one header in the response. If we have a request like + // this: + // + // "pivots": [{ + // "fieldNames": ["country", + // "city"] + // }, + // { + // "fieldNames": "eventName" + // }] + // + // We will have the following `pivotHeaders` in the response: + // + // "pivotHeaders" : [{ + // "dimensionHeaders": [{ + // "dimensionValues": [ + // { "value": "United Kingdom" }, + // { "value": "London" } + // ] + // }, + // { + // "dimensionValues": [ + // { "value": "Japan" }, + // { "value": "Osaka" } + // ] + // }] + // }, + // { + // "dimensionHeaders": [{ + // "dimensionValues": [{ "value": "session_start" }] + // }, + // { + // "dimensionValues": [{ "value": "scroll" }] + // }] + // }] + repeated PivotHeader pivot_headers = 1; + + // Describes dimension columns. The number of DimensionHeaders and ordering of + // DimensionHeaders matches the dimensions present in rows. + repeated DimensionHeader dimension_headers = 2; + + // Describes metric columns. The number of MetricHeaders and ordering of + // MetricHeaders matches the metrics present in rows. + repeated MetricHeader metric_headers = 3; + + // Rows of dimension value combinations and metric values in the report. + repeated Row rows = 4; + + // Aggregation of metric values. Can be totals, minimums, or maximums. The + // returned aggregations are controlled by the metric_aggregations in the + // pivot. The type of aggregation returned in each row is shown by the + // dimension_values which are set to "RESERVED_". + repeated Row aggregates = 5; + + // Metadata for the report. + ResponseMetaData metadata = 6; + + // This Analytics Property's quota state including this request. + PropertyQuota property_quota = 7; +} + +// The batch request containing multiple report requests. +message BatchRunReportsRequest { + // A Google Analytics GA4 property identifier whose events are tracked. + // Specified in the URL path and not the body. To learn more, see [where to + // find your Property + // ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). + // This property must be specified for the batch. The property within + // RunReportRequest may either be unspecified or consistent with this + // property. + // + // Example: properties/1234 + string property = 1; + + // Individual requests. Each request has a separate report response. Each + // batch request is allowed up to 5 requests. + repeated RunReportRequest requests = 2; +} + +// The batch response containing multiple reports. +message BatchRunReportsResponse { + // Individual responses. Each response has a separate report request. + repeated RunReportResponse reports = 1; +} + +// The batch request containing multiple pivot report requests. +message BatchRunPivotReportsRequest { + // A Google Analytics GA4 property identifier whose events are tracked. + // Specified in the URL path and not the body. To learn more, see [where to + // find your Property + // ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). + // This property must be specified for the batch. The property within + // RunPivotReportRequest may either be unspecified or consistent with this + // property. + // + // Example: properties/1234 + string property = 1; + + // Individual requests. Each request has a separate pivot report response. + // Each batch request is allowed up to 5 requests. + repeated RunPivotReportRequest requests = 2; +} + +// The batch response containing multiple pivot reports. +message BatchRunPivotReportsResponse { + // Individual responses. Each response has a separate pivot report request. + repeated RunPivotReportResponse pivot_reports = 1; +} + +// Request for a property's dimension and metric metadata. +message GetMetadataRequest { + // Required. The resource name of the metadata to retrieve. This name field is + // specified in the URL path and not URL parameters. Property is a numeric + // Google Analytics GA4 Property identifier. To learn more, see [where to find + // your Property + // ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). + // + // Example: properties/1234/metadata + // + // Set the Property ID to 0 for dimensions and metrics common to all + // properties. In this special mode, this method will not return custom + // dimensions and metrics. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsdata.googleapis.com/Metadata" + } + ]; +} + +// The request to generate a realtime report. +message RunRealtimeReportRequest { + // A Google Analytics GA4 property identifier whose events are tracked. + // Specified in the URL path and not the body. To learn more, see [where to + // find your Property + // ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). + // + // Example: properties/1234 + string property = 1; + + // The dimensions requested and displayed. + repeated Dimension dimensions = 2; + + // The metrics requested and displayed. + repeated Metric metrics = 3; + + // The filter clause of dimensions. Dimensions must be requested to be used in + // this filter. Metrics cannot be used in this filter. + FilterExpression dimension_filter = 4; + + // The filter clause of metrics. Applied at post aggregation phase, similar to + // SQL having-clause. Metrics must be requested to be used in this filter. + // Dimensions cannot be used in this filter. + FilterExpression metric_filter = 5; + + // The number of rows to return. If unspecified, 10,000 rows are returned. The + // API returns a maximum of 100,000 rows per request, no matter how many you + // ask for. `limit` must be positive. + // + // The API can also return fewer rows than the requested `limit`, if there + // aren't as many dimension values as the `limit`. For instance, there are + // fewer than 300 possible values for the dimension `country`, so when + // reporting on only `country`, you can't get more than 300 rows, even if you + // set `limit` to a higher value. + int64 limit = 6; + + // Aggregation of metrics. Aggregated metric values will be shown in rows + // where the dimension_values are set to "RESERVED_(MetricAggregation)". + repeated MetricAggregation metric_aggregations = 7; + + // Specifies how rows are ordered in the response. + repeated OrderBy order_bys = 8; + + // Toggles whether to return the current state of this Analytics Property's + // Realtime quota. Quota is returned in [PropertyQuota](#PropertyQuota). + bool return_property_quota = 9; +} + +// The response realtime report table corresponding to a request. +message RunRealtimeReportResponse { + // Describes dimension columns. The number of DimensionHeaders and ordering of + // DimensionHeaders matches the dimensions present in rows. + repeated DimensionHeader dimension_headers = 1; + + // Describes metric columns. The number of MetricHeaders and ordering of + // MetricHeaders matches the metrics present in rows. + repeated MetricHeader metric_headers = 2; + + // Rows of dimension value combinations and metric values in the report. + repeated Row rows = 3; + + // If requested, the totaled values of metrics. + repeated Row totals = 4; + + // If requested, the maximum values of metrics. + repeated Row maximums = 5; + + // If requested, the minimum values of metrics. + repeated Row minimums = 6; + + // The total number of rows in the query result. `rowCount` is independent of + // the number of rows returned in the response and the `limit` request + // parameter. For example if a query returns 175 rows and includes `limit` + // of 50 in the API request, the response will contain `rowCount` of 175 but + // only 50 rows. + int32 row_count = 7; + + // This Analytics Property's Realtime quota state including this request. + PropertyQuota property_quota = 8; +} diff --git a/third_party/googleapis/google/analytics/data/v1beta/analytics_data_grpc_service_config.json b/third_party/googleapis/google/analytics/data/v1beta/analytics_data_grpc_service_config.json new file mode 100644 index 000000000..336935108 --- /dev/null +++ b/third_party/googleapis/google/analytics/data/v1beta/analytics_data_grpc_service_config.json @@ -0,0 +1,40 @@ +{ + "methodConfig": [ + { + "name": [{"service": "google.analytics.data.v1beta.BetaAnalyticsData"}], + "timeout": "60s", + "retryPolicy": { + "maxAttempts": 5, + "initialBackoff": "1s", + "maxBackoff": "60s", + "backoffMultiplier": 1.3, + "retryableStatusCodes": ["UNKNOWN"] + } + }, + { + "name": [ + { + "service": "google.analytics.data.v1beta.BetaAnalyticsData", + "method": "RunReport" + }, + { + "service": "google.analytics.data.v1beta.BetaAnalyticsData", + "method": "RunPivotReport" + }, + { + "service": "google.analytics.data.v1beta.BetaAnalyticsData", + "method": "BatchRunReports" + }, + { + "service": "google.analytics.data.v1beta.BetaAnalyticsData", + "method": "BatchRunPivotReports" + }, + { + "service": "google.analytics.data.v1beta.BetaAnalyticsData", + "method": "RunRealtimeReport" + } + ], + "timeout": "60s" + } + ] +} diff --git a/third_party/googleapis/google/analytics/data/v1beta/analyticsdata_gapic.yaml b/third_party/googleapis/google/analytics/data/v1beta/analyticsdata_gapic.yaml new file mode 100644 index 000000000..7324d94cc --- /dev/null +++ b/third_party/googleapis/google/analytics/data/v1beta/analyticsdata_gapic.yaml @@ -0,0 +1,16 @@ +type: com.google.api.codegen.ConfigProto +config_schema_version: 2.0.0 +language_settings: + python: + package_name: google.analytics.data.v1beta.gapic + go: + package_name: google.golang.org/api/analyticsdata/v1beta + csharp: + package_name: Google.Analytics.Data.V1beta + ruby: + package_name: Google::Analytics::Data::V1beta + php: + package_name: Google\Analytics\Data\V1beta + nodejs: + package_name: google.analytics.data.v1beta + domain_layer_location: analyticsdata.google.com diff --git a/third_party/googleapis/google/analytics/data/v1beta/analyticsdata_v1beta.yaml b/third_party/googleapis/google/analytics/data/v1beta/analyticsdata_v1beta.yaml new file mode 100644 index 000000000..eab7fa014 --- /dev/null +++ b/third_party/googleapis/google/analytics/data/v1beta/analyticsdata_v1beta.yaml @@ -0,0 +1,23 @@ +type: google.api.Service +config_version: 3 +name: analyticsdata.googleapis.com +title: Google Analytics Data API + +apis: +- name: google.analytics.data.v1beta.BetaAnalyticsData + +documentation: + summary: Accesses report data in Google Analytics. + +backend: + rules: + - selector: 'google.analytics.data.v1beta.BetaAnalyticsData.*' + deadline: 180.0 + +authentication: + rules: + - selector: 'google.analytics.data.v1beta.BetaAnalyticsData.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/analytics, + https://www.googleapis.com/auth/analytics.readonly diff --git a/third_party/googleapis/google/analytics/data/v1beta/data.proto b/third_party/googleapis/google/analytics/data/v1beta/data.proto new file mode 100644 index 000000000..ad0f21c27 --- /dev/null +++ b/third_party/googleapis/google/analytics/data/v1beta/data.proto @@ -0,0 +1,793 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.analytics.data.v1beta; + +option go_package = "google.golang.org/genproto/googleapis/analytics/data/v1beta;data"; +option java_multiple_files = true; +option java_outer_classname = "ReportingApiProto"; +option java_package = "com.google.analytics.data.v1beta"; + +// A contiguous set of days: startDate, startDate + 1, ..., endDate. Requests +// are allowed up to 4 date ranges. +message DateRange { + // The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot + // be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also + // accepted, and in that case, the date is inferred based on the property's + // reporting time zone. + string start_date = 1; + + // The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot + // be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is + // also accepted, and in that case, the date is inferred based on the + // property's reporting time zone. + string end_date = 2; + + // Assigns a name to this date range. The dimension `dateRange` is valued to + // this name in a report response. If set, cannot begin with `date_range_` or + // `RESERVED_`. If not set, date ranges are named by their zero based index in + // the request: `date_range_0`, `date_range_1`, etc. + string name = 3; +} + +// Dimensions are attributes of your data. For example, the dimension city +// indicates the city from which an event originates. Dimension values in report +// responses are strings; for example, city could be "Paris" or "New York". +// Requests are allowed up to 8 dimensions. +message Dimension { + // The name of the dimension. See the [API + // Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) + // for the list of dimension names. + // + // If `dimensionExpression` is specified, `name` can be any string that you + // would like within the allowed character set. For example if a + // `dimensionExpression` concatenates `country` and `city`, you could call + // that dimension `countryAndCity`. Dimension names that you choose must match + // the regular expression "^[a-zA-Z0-9_]$". + // + // Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`, + // `dimensionExpression`, and `pivots`. + string name = 1; + + // One dimension can be the result of an expression of multiple dimensions. + // For example, dimension "country, city": concatenate(country, ", ", city). + DimensionExpression dimension_expression = 2; +} + +// Used to express a dimension which is the result of a formula of multiple +// dimensions. Example usages: +// 1) lower_case(dimension) +// 2) concatenate(dimension1, symbol, dimension2). +message DimensionExpression { + // Used to convert a dimension value to a single case. + message CaseExpression { + // Name of a dimension. The name must refer back to a name in dimensions + // field of the request. + string dimension_name = 1; + } + + // Used to combine dimension values to a single dimension. + message ConcatenateExpression { + // Names of dimensions. The names must refer back to names in the dimensions + // field of the request. + repeated string dimension_names = 1; + + // The delimiter placed between dimension names. + // + // Delimiters are often single characters such as "|" or "," but can be + // longer strings. If a dimension value contains the delimiter, both will be + // present in response with no distinction. For example if dimension 1 value + // = "US,FR", dimension 2 value = "JP", and delimiter = ",", then the + // response will contain "US,FR,JP". + string delimiter = 2; + } + + // Specify one type of dimension expression for `DimensionExpression`. + oneof one_expression { + // Used to convert a dimension value to lower case. + CaseExpression lower_case = 4; + + // Used to convert a dimension value to upper case. + CaseExpression upper_case = 5; + + // Used to combine dimension values to a single dimension. + // For example, dimension "country, city": concatenate(country, ", ", city). + ConcatenateExpression concatenate = 6; + } +} + +// The quantitative measurements of a report. For example, the metric +// `eventCount` is the total number of events. Requests are allowed up to 10 +// metrics. +message Metric { + // The name of the metric. See the [API + // Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics) + // for the list of metric names. + // + // If `expression` is specified, `name` can be any string that you would like + // within the allowed character set. For example if `expression` is + // `screenPageViews/sessions`, you could call that metric's name = + // `viewsPerSession`. Metric names that you choose must match the regular + // expression "^[a-zA-Z0-9_]$". + // + // Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric + // `expression`. + string name = 1; + + // A mathematical expression for derived metrics. For example, the metric + // Event count per user is `eventCount/totalUsers`. + string expression = 2; + + // Indicates if a metric is invisible in the report response. If a metric is + // invisible, the metric will not produce a column in the response, but can be + // used in `metricFilter`, `orderBys`, or a metric `expression`. + bool invisible = 3; +} + +// To express dimension or metric filters. +// The fields in the same FilterExpression need to be either all dimensions or +// all metrics. +message FilterExpression { + // Specify one type of filter expression for `FilterExpression`. + oneof expr { + // The FilterExpressions in and_group have an AND relationship. + FilterExpressionList and_group = 1; + + // The FilterExpressions in or_group have an OR relationship. + FilterExpressionList or_group = 2; + + // The FilterExpression is NOT of not_expression. + FilterExpression not_expression = 3; + + // A primitive filter. + // All fields in filter in same FilterExpression needs to be either all + // dimensions or metrics. + Filter filter = 4; + } +} + +// A list of filter expressions. +message FilterExpressionList { + // A list of filter expressions. + repeated FilterExpression expressions = 1; +} + +// An expression to filter dimension or metric values. +message Filter { + // The filter for string + message StringFilter { + // The match type of a string filter + enum MatchType { + // Unspecified + MATCH_TYPE_UNSPECIFIED = 0; + + // Exact match of the string value. + EXACT = 1; + + // Begins with the string value. + BEGINS_WITH = 2; + + // Ends with the string value. + ENDS_WITH = 3; + + // Contains the string value. + CONTAINS = 4; + + // Full regular expression match with the string value. + FULL_REGEXP = 5; + + // Partial regular expression match with the string value. + PARTIAL_REGEXP = 6; + } + + // The match type for this filter. + MatchType match_type = 1; + + // The string value used for the matching. + string value = 2; + + // If true, the string value is case sensitive. + bool case_sensitive = 3; + } + + // The result needs to be in a list of string values. + message InListFilter { + // The list of string values. + // Must be non-empty. + repeated string values = 1; + + // If true, the string value is case sensitive. + bool case_sensitive = 2; + } + + // Filters for numeric or date values. + message NumericFilter { + // The operation applied to a numeric filter + enum Operation { + // Unspecified. + OPERATION_UNSPECIFIED = 0; + + // Equal + EQUAL = 1; + + // Less than + LESS_THAN = 2; + + // Less than or equal + LESS_THAN_OR_EQUAL = 3; + + // Greater than + GREATER_THAN = 4; + + // Greater than or equal + GREATER_THAN_OR_EQUAL = 5; + } + + // The operation type for this filter. + Operation operation = 1; + + // A numeric value or a date value. + NumericValue value = 2; + } + + // To express that the result needs to be between two numbers (inclusive). + message BetweenFilter { + // Begins with this number. + NumericValue from_value = 1; + + // Ends with this number. + NumericValue to_value = 2; + } + + // The dimension name or metric name. Must be a name defined in dimensions + // or metrics. + string field_name = 1; + + // Specify one type of filter for `Filter`. + oneof one_filter { + // Strings related filter. + StringFilter string_filter = 3; + + // A filter for in list values. + InListFilter in_list_filter = 4; + + // A filter for numeric or date values. + NumericFilter numeric_filter = 5; + + // A filter for two values. + BetweenFilter between_filter = 6; + } +} + +// The sort options. +message OrderBy { + // Sorts by metric values. + message MetricOrderBy { + // A metric name in the request to order by. + string metric_name = 1; + } + + // Sorts by dimension values. + message DimensionOrderBy { + // Rule to order the string dimension values by. + enum OrderType { + // Unspecified. + ORDER_TYPE_UNSPECIFIED = 0; + + // Alphanumeric sort by Unicode code point. For example, "2" < "A" < "X" < + // "b" < "z". + ALPHANUMERIC = 1; + + // Case insensitive alphanumeric sort by lower case Unicode code point. + // For example, "2" < "A" < "b" < "X" < "z". + CASE_INSENSITIVE_ALPHANUMERIC = 2; + + // Dimension values are converted to numbers before sorting. For example + // in NUMERIC sort, "25" < "100", and in `ALPHANUMERIC` sort, "100" < + // "25". Non-numeric dimension values all have equal ordering value below + // all numeric values. + NUMERIC = 3; + } + + // A dimension name in the request to order by. + string dimension_name = 1; + + // Controls the rule for dimension value ordering. + OrderType order_type = 2; + } + + // Sorts by a pivot column group. + message PivotOrderBy { + // A pair of dimension names and values. Rows with this dimension pivot pair + // are ordered by the metric's value. + // + // For example if pivots = {{"browser", "Chrome"}} and + // metric_name = "Sessions", + // then the rows will be sorted based on Sessions in Chrome. + // + // ---------|----------|----------------|----------|---------------- + // | Chrome | Chrome | Safari | Safari + // ---------|----------|----------------|----------|---------------- + // Country | Sessions | Pages/Sessions | Sessions | Pages/Sessions + // ---------|----------|----------------|----------|---------------- + // US | 2 | 2 | 3 | 1 + // ---------|----------|----------------|----------|---------------- + // Canada | 3 | 1 | 4 | 1 + // ---------|----------|----------------|----------|---------------- + message PivotSelection { + // Must be a dimension name from the request. + string dimension_name = 1; + + // Order by only when the named dimension is this value. + string dimension_value = 2; + } + + // In the response to order by, order rows by this column. Must be a metric + // name from the request. + string metric_name = 1; + + // Used to select a dimension name and value pivot. If multiple pivot + // selections are given, the sort occurs on rows where all pivot selection + // dimension name and value pairs match the row's dimension name and value + // pair. + repeated PivotSelection pivot_selections = 2; + } + + // Specify one type of order by for `OrderBy`. + oneof one_order_by { + // Sorts results by a metric's values. + MetricOrderBy metric = 1; + + // Sorts results by a dimension's values. + DimensionOrderBy dimension = 2; + + // Sorts results by a metric's values within a pivot column group. + PivotOrderBy pivot = 3; + } + + // If true, sorts by descending order. + bool desc = 4; +} + +// Describes the visible dimension columns and rows in the report response. +message Pivot { + // Dimension names for visible columns in the report response. Including + // "dateRange" produces a date range column; for each row in the response, + // dimension values in the date range column will indicate the corresponding + // date range from the request. + repeated string field_names = 1; + + // Specifies how dimensions are ordered in the pivot. In the first Pivot, the + // OrderBys determine Row and PivotDimensionHeader ordering; in subsequent + // Pivots, the OrderBys determine only PivotDimensionHeader ordering. + // Dimensions specified in these OrderBys must be a subset of + // Pivot.field_names. + repeated OrderBy order_bys = 2; + + // The row count of the start row. The first row is counted as row 0. + int64 offset = 3; + + // The number of unique combinations of dimension values to return in this + // pivot. If unspecified, up to 10,000 unique combinations of dimension values + // are returned. `limit` must be positive. + // + // The product of the `limit` for each `pivot` in a `RunPivotReportRequest` + // must not exceed 100,000. For example, a two pivot request with `limit: + // 1000` in each pivot will fail because the product is `1,000,000`. + int64 limit = 4; + + // Aggregate the metrics by dimensions in this pivot using the specified + // metric_aggregations. + repeated MetricAggregation metric_aggregations = 5; +} + +// The specification of cohorts for a cohort report. +// +// Cohort reports create a time series of user retention for the cohort. For +// example, you could select the cohort of users that were acquired in the first +// week of September and follow that cohort for the next six weeks. Selecting +// the users acquired in the first week of September cohort is specified in the +// `cohort` object. Following that cohort for the next six weeks is specified in +// the `cohortsRange` object. +// +// For examples, see [Cohort Report +// Examples](https://developers.google.com/analytics/devguides/reporting/data/v1/advanced#cohort_report_examples). +// +// The report response could show a weekly time series where say your app has +// retained 60% of this cohort after three weeks and 25% of this cohort after +// six weeks. These two percentages can be calculated by the metric +// `cohortActiveUsers/cohortTotalUsers` and will be separate rows in the report. +message CohortSpec { + // Defines the selection criteria to group users into cohorts. + // + // Most cohort reports define only a single cohort. If multiple cohorts are + // specified, each cohort can be recognized in the report by their name. + repeated Cohort cohorts = 1; + + // Cohort reports follow cohorts over an extended reporting date range. This + // range specifies an offset duration to follow the cohorts over. + CohortsRange cohorts_range = 2; + + // Optional settings for a cohort report. + CohortReportSettings cohort_report_settings = 3; +} + +// Defines a cohort selection criteria. A cohort is a group of users who share +// a common characteristic. For example, users with the same `firstSessionDate` +// belong to the same cohort. +message Cohort { + // Assigns a name to this cohort. The dimension `cohort` is valued to this + // name in a report response. If set, cannot begin with `cohort_` or + // `RESERVED_`. If not set, cohorts are named by their zero based index + // `cohort_0`, `cohort_1`, etc. + string name = 1; + + // Dimension used by the cohort. Required and only supports + // `firstSessionDate`. + string dimension = 2; + + // The cohort selects users whose first touch date is between start date and + // end date defined in the `dateRange`. This `dateRange` does not specify the + // full date range of event data that is present in a cohort report. In a + // cohort report, this `dateRange` is extended by the granularity and offset + // present in the `cohortsRange`; event data for the extended reporting date + // range is present in a cohort report. + // + // In a cohort request, this `dateRange` is required and the `dateRanges` in + // the `RunReportRequest` or `RunPivotReportRequest` must be unspecified. + // + // This `dateRange` should generally be aligned with the cohort's granularity. + // If `CohortsRange` uses daily granularity, this `dateRange` can be a single + // day. If `CohortsRange` uses weekly granularity, this `dateRange` can be + // aligned to a week boundary, starting at Sunday and ending Saturday. If + // `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to + // a month, starting at the first and ending on the last day of the month. + DateRange date_range = 3; +} + +// Configures the extended reporting date range for a cohort report. Specifies +// an offset duration to follow the cohorts over. +message CohortsRange { + // The granularity used to interpret the `startOffset` and `endOffset` for the + // extended reporting date range for a cohort report. + enum Granularity { + // Should never be specified. + GRANULARITY_UNSPECIFIED = 0; + + // Daily granularity. Commonly used if the cohort's `dateRange` is a single + // day and the request contains `cohortNthDay`. + DAILY = 1; + + // Weekly granularity. Commonly used if the cohort's `dateRange` is a week + // in duration (starting on Sunday and ending on Saturday) and the request + // contains `cohortNthWeek`. + WEEKLY = 2; + + // Monthly granularity. Commonly used if the cohort's `dateRange` is a month + // in duration and the request contains `cohortNthMonth`. + MONTHLY = 3; + } + + // Required. The granularity used to interpret the `startOffset` and + // `endOffset` for the extended reporting date range for a cohort report. + Granularity granularity = 1; + + // `startOffset` specifies the start date of the extended reporting date range + // for a cohort report. `startOffset` is commonly set to 0 so that reports + // contain data from the acquisition of the cohort forward. + // + // If `granularity` is `DAILY`, the `startDate` of the extended reporting date + // range is `startDate` of the cohort plus `startOffset` days. + // + // If `granularity` is `WEEKLY`, the `startDate` of the extended reporting + // date range is `startDate` of the cohort plus `startOffset * 7` days. + // + // If `granularity` is `MONTHLY`, the `startDate` of the extended reporting + // date range is `startDate` of the cohort plus `startOffset * 30` days. + int32 start_offset = 2; + + // Required. `endOffset` specifies the end date of the extended reporting date + // range for a cohort report. `endOffset` can be any positive integer but is + // commonly set to 5 to 10 so that reports contain data on the cohort for the + // next several granularity time periods. + // + // If `granularity` is `DAILY`, the `endDate` of the extended reporting date + // range is `endDate` of the cohort plus `endOffset` days. + // + // If `granularity` is `WEEKLY`, the `endDate` of the extended reporting date + // range is `endDate` of the cohort plus `endOffset * 7` days. + // + // If `granularity` is `MONTHLY`, the `endDate` of the extended reporting date + // range is `endDate` of the cohort plus `endOffset * 30` days. + int32 end_offset = 3; +} + +// Optional settings of a cohort report. +message CohortReportSettings { + // If true, accumulates the result from first touch day to the end day. Not + // supported in `RunReportRequest`. + bool accumulate = 1; +} + +// Response's metadata carrying additional information about the report content. +message ResponseMetaData { + // If true, indicates some buckets of dimension combinations are rolled into + // "(other)" row. This can happen for high cardinality reports. + bool data_loss_from_other_row = 3; +} + +// Describes a dimension column in the report. Dimensions requested in a report +// produce column entries within rows and DimensionHeaders. However, dimensions +// used exclusively within filters or expressions do not produce columns in a +// report; correspondingly, those dimensions do not produce headers. +message DimensionHeader { + // The dimension's name. + string name = 1; +} + +// Describes a metric column in the report. Visible metrics requested in a +// report produce column entries within rows and MetricHeaders. However, +// metrics used exclusively within filters or expressions do not produce columns +// in a report; correspondingly, those metrics do not produce headers. +message MetricHeader { + // The metric's name. + string name = 1; + + // The metric's data type. + MetricType type = 2; +} + +// Dimensions' values in a single pivot. +message PivotHeader { + // The size is the same as the cardinality of the corresponding dimension + // combinations. + repeated PivotDimensionHeader pivot_dimension_headers = 1; + + // The cardinality of the pivot. The total number of rows for this pivot's + // fields regardless of how the parameters `offset` and `limit` are specified + // in the request. + int32 row_count = 2; +} + +// Summarizes dimension values from a row for this pivot. +message PivotDimensionHeader { + // Values of multiple dimensions in a pivot. + repeated DimensionValue dimension_values = 1; +} + +// Report data for each row. +// For example if RunReportRequest contains: +// +// ```none +// "dimensions": [ +// { +// "name": "eventName" +// }, +// { +// "name": "countryId" +// } +// ], +// "metrics": [ +// { +// "name": "eventCount" +// } +// ] +// ``` +// +// One row with 'in_app_purchase' as the eventName, 'JP' as the countryId, and +// 15 as the eventCount, would be: +// +// ```none +// "dimensionValues": [ +// { +// "value": "in_app_purchase" +// }, +// { +// "value": "JP" +// } +// ], +// "metricValues": [ +// { +// "value": "15" +// } +// ] +// ``` +message Row { + // List of requested dimension values. In a PivotReport, dimension_values + // are only listed for dimensions included in a pivot. + repeated DimensionValue dimension_values = 1; + + // List of requested visible metric values. + repeated MetricValue metric_values = 2; +} + +// The value of a dimension. +message DimensionValue { + // One kind of dimension value + oneof one_value { + // Value as a string if the dimension type is a string. + string value = 1; + } +} + +// The value of a metric. +message MetricValue { + // One of metric value + oneof one_value { + // Measurement value. See MetricHeader for type. + string value = 4; + } +} + +// To represent a number. +message NumericValue { + // One of a numeric value + oneof one_value { + // Integer value + int64 int64_value = 1; + + // Double value + double double_value = 2; + } +} + +// Current state of all quotas for this Analytics Property. If any quota for a +// property is exhausted, all requests to that property will return Resource +// Exhausted errors. +message PropertyQuota { + // Standard Analytics Properties can use up to 25,000 tokens per day; + // Analytics 360 Properties can use 250,000 tokens per day. Most requests + // consume fewer than 10 tokens. + QuotaStatus tokens_per_day = 1; + + // Standard Analytics Properties can use up to 5,000 tokens per hour; + // Analytics 360 Properties can use 50,000 tokens per hour. An API request + // consumes a single number of tokens, and that number is deducted from both + // the hourly and daily quotas. + QuotaStatus tokens_per_hour = 2; + + // Standard Analytics Properties can send up to 10 concurrent requests; + // Analytics 360 Properties can use up to 50 concurrent requests. + QuotaStatus concurrent_requests = 3; + + // Standard Analytics Properties and cloud project pairs can have up to 10 + // server errors per hour; Analytics 360 Properties and cloud project pairs + // can have up to 50 server errors per hour. + QuotaStatus server_errors_per_project_per_hour = 4; +} + +// Current state for a particular quota group. +message QuotaStatus { + // Quota consumed by this request. + int32 consumed = 1; + + // Quota remaining after this request. + int32 remaining = 2; +} + +// Explains a dimension. +message DimensionMetadata { + // This dimension's name. Useable in [Dimension](#Dimension)'s `name`. For + // example, `eventName`. + string api_name = 1; + + // This dimension's name within the Google Analytics user interface. For + // example, `Event name`. + string ui_name = 2; + + // Description of how this dimension is used and calculated. + string description = 3; + + // Still usable but deprecated names for this dimension. If populated, this + // dimension is available by either `apiName` or one of `deprecatedApiNames` + // for a period of time. After the deprecation period, the dimension will be + // available only by `apiName`. + repeated string deprecated_api_names = 4; + + // True if the dimension is a custom dimension for this property. + bool custom_definition = 5; +} + +// Explains a metric. +message MetricMetadata { + // A metric name. Useable in [Metric](#Metric)'s `name`. For example, + // `eventCount`. + string api_name = 1; + + // This metric's name within the Google Analytics user interface. For example, + // `Event count`. + string ui_name = 2; + + // Description of how this metric is used and calculated. + string description = 3; + + // Still usable but deprecated names for this metric. If populated, this + // metric is available by either `apiName` or one of `deprecatedApiNames` + // for a period of time. After the deprecation period, the metric will be + // available only by `apiName`. + repeated string deprecated_api_names = 4; + + // The type of this metric. + MetricType type = 5; + + // The mathematical expression for this derived metric. Can be used in + // [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics + // are not expressions, and for non-expressions, this field is empty. + string expression = 6; + + // True if the metric is a custom metric for this property. + bool custom_definition = 7; +} + +// Represents aggregation of metrics. +enum MetricAggregation { + // Unspecified operator. + METRIC_AGGREGATION_UNSPECIFIED = 0; + + // SUM operator. + TOTAL = 1; + + // Minimum operator. + MINIMUM = 5; + + // Maximum operator. + MAXIMUM = 6; + + // Count operator. + COUNT = 4; +} + +// A metric's value type. +enum MetricType { + // Unspecified type. + METRIC_TYPE_UNSPECIFIED = 0; + + // Integer type. + TYPE_INTEGER = 1; + + // Floating point type. + TYPE_FLOAT = 2; + + // A duration of seconds; a special floating point type. + TYPE_SECONDS = 4; + + // A duration in milliseconds; a special floating point type. + TYPE_MILLISECONDS = 5; + + // A duration in minutes; a special floating point type. + TYPE_MINUTES = 6; + + // A duration in hours; a special floating point type. + TYPE_HOURS = 7; + + // A custom metric of standard type; a special floating point type. + TYPE_STANDARD = 8; + + // An amount of money; a special floating point type. + TYPE_CURRENCY = 9; + + // A length in feet; a special floating point type. + TYPE_FEET = 10; + + // A length in miles; a special floating point type. + TYPE_MILES = 11; + + // A length in meters; a special floating point type. + TYPE_METERS = 12; + + // A length in kilometers; a special floating point type. + TYPE_KILOMETERS = 13; +} diff --git a/third_party/googleapis/google/analytics/management/v1alpha/BUILD.bazel b/third_party/googleapis/google/analytics/management/v1alpha/BUILD.bazel deleted file mode 100644 index 284655d2a..000000000 --- a/third_party/googleapis/google/analytics/management/v1alpha/BUILD.bazel +++ /dev/null @@ -1,368 +0,0 @@ -# This file was automatically generated by BuildFileGenerator - -# This is an API workspace, having public visibility by default makes perfect sense. -package(default_visibility = ["//visibility:public"]) - -############################################################################## -# Common -############################################################################## -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info") - -proto_library( - name = "management_proto", - srcs = [ - "management_api.proto", - "resources.proto", - ], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:resource_proto", - "@com_google_protobuf//:empty_proto", - "@com_google_protobuf//:field_mask_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -proto_library_with_info( - name = "management_proto_with_info", - deps = [ - ":management_proto", - "//google/cloud:common_resources_proto", - ], -) - -############################################################################## -# Java -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "java_gapic_assembly_gradle_pkg", - "java_gapic_library", - "java_gapic_test", - "java_grpc_library", - "java_proto_library", -) - -java_proto_library( - name = "management_java_proto", - deps = [":management_proto"], -) - -java_grpc_library( - name = "management_java_grpc", - srcs = [":management_proto"], - deps = [":management_java_proto"], -) - -java_gapic_library( - name = "management_java_gapic", - src = ":management_proto_with_info", - gapic_yaml = "analyticsmanagement_gapic.yaml", - package = "google.analytics.management.v1alpha", - service_yaml = "analyticsmanagement_v1alpha.yaml", - test_deps = [ - ":management_java_grpc", - ], - deps = [ - ":management_java_proto", - ], -) - -java_gapic_test( - name = "management_java_gapic_test_suite", - test_classes = [ - "com.google.analytics.management.v1alpha.ManagementClientTest", - ], - runtime_deps = [":management_java_gapic_test"], -) - -# Open Source Packages -java_gapic_assembly_gradle_pkg( - name = "google-cloud-analytics-management-v1alpha-java", - deps = [ - ":management_java_gapic", - ":management_java_grpc", - ":management_java_proto", - ":management_proto", - ], -) - -############################################################################## -# Go -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "go_gapic_assembly_pkg", - "go_gapic_library", - "go_proto_library", - "go_test", -) - -go_proto_library( - name = "management_go_proto", - compilers = ["@io_bazel_rules_go//proto:go_grpc"], - importpath = "google.golang.org/genproto/googleapis/analytics/management/v1alpha", - protos = [":management_proto"], - deps = [ - "//google/api:annotations_go_proto", - ], -) - -# go_gapic_library( -# name = "management_go_gapic", -# src = ":management_proto_with_info", -# gapic_yaml = "analyticsmanagement_gapic.yaml", -# importpath = "google.golang.org/genproto/googleapis/analytics/management/v1alpha", -# package = "google.analytics.management.v1alpha", -# service_yaml = "analyticsmanagement_v1alpha.yaml", -# deps = [ -# ":management_go_proto", -# ], -# ) - -#go_test( -# name = "management_go_gapic_test", -# srcs = [":management_go_gapic_srcjar_test"], -# embed = [":management_go_gapic"], -# importpath = "google.golang.org/genproto/googleapis/analytics/management/v1alpha", -#) - -# # Open Source Packages -# go_gapic_assembly_pkg( -# name = "gapi-cloud-analytics-management-v1alpha-go", -# deps = [ -# ":management_go_gapic", -# ":management_go_gapic_srcjar-smoke-test.srcjar", -# ":management_go_gapic_srcjar-test.srcjar", -# ":management_go_proto", -# ], -# ) - -############################################################################## -# Python -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", - "py_gapic_assembly_pkg", - "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "management_moved_proto", - srcs = [":management_proto"], - # Customization (ikuleshov): Without this parameter, the proto resources - # are generated with "google.cloud" package prefix and the generated - # clients do not compile. - import_prefix = "google/analytics/management/v1alpha/proto", - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:resource_proto", - "@com_google_protobuf//:empty_proto", - "@com_google_protobuf//:field_mask_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -py_proto_library( - name = "management_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":management_moved_proto"], -) - -py_grpc_library( - name = "management_py_grpc", - srcs = [":management_moved_proto"], - deps = [":management_py_proto"], -) - -py_gapic_library( - name = "management_py_gapic", - src = ":management_proto_with_info", - gapic_yaml = "analyticsmanagement_gapic.yaml", - package = "google.analytics.management.v1alpha", - service_yaml = "analyticsmanagement_v1alpha.yaml", - deps = [ - ":management_py_grpc", - ":management_py_proto", - ], -) - -# Open Source Packages -py_gapic_assembly_pkg( - name = "analytics-management-v1alpha-py", - deps = [ - ":management_py_gapic", - ":management_py_grpc", - ":management_py_proto", - ], -) - -############################################################################## -# PHP -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "php_gapic_assembly_pkg", - "php_gapic_library", - "php_grpc_library", - "php_proto_library", -) - -php_proto_library( - name = "management_php_proto", - deps = [":management_proto"], -) - -php_grpc_library( - name = "management_php_grpc", - srcs = [":management_proto"], - deps = [":management_php_proto"], -) - -php_gapic_library( - name = "management_php_gapic", - src = ":management_proto_with_info", - gapic_yaml = "analyticsmanagement_gapic.yaml", - package = "google.analytics.management.v1alpha", - service_yaml = "analyticsmanagement_v1alpha.yaml", - deps = [ - ":management_php_grpc", - ":management_php_proto", - ], -) - -# Open Source Packages -php_gapic_assembly_pkg( - name = "google-cloud-analytics-management-v1alpha-php", - deps = [ - ":management_php_gapic", - ":management_php_grpc", - ":management_php_proto", - ], -) - -############################################################################## -# Node.js -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "nodejs_gapic_assembly_pkg", - "nodejs_gapic_library", -) - -nodejs_gapic_library( - name = "management_nodejs_gapic", - src = ":management_proto_with_info", - grpc_service_config = "management_grpc_service_config.json", - package = "google.analytics.management.v1alpha", - service_yaml = "analyticsmanagement_v1alpha.yaml", - deps = [], -) - -nodejs_gapic_assembly_pkg( - name = "analytics-management-v1alpha-nodejs", - deps = [ - ":management_nodejs_gapic", - ":management_proto", - ], -) - -############################################################################## -# Ruby -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "ruby_gapic_assembly_pkg", - "ruby_gapic_library", - "ruby_grpc_library", - "ruby_proto_library", -) - -ruby_proto_library( - name = "management_ruby_proto", - deps = [":management_proto"], -) - -ruby_grpc_library( - name = "management_ruby_grpc", - srcs = [":management_proto"], - deps = [":management_ruby_proto"], -) - -ruby_gapic_library( - name = "management_ruby_gapic", - src = ":management_proto_with_info", - gapic_yaml = "analyticsmanagement_gapic.yaml", - package = "google.analytics.management.v1alpha", - service_yaml = "analyticsmanagement_v1alpha.yaml", - deps = [ - ":management_ruby_grpc", - ":management_ruby_proto", - ], -) - -# Open Source Packages -ruby_gapic_assembly_pkg( - name = "google-cloud-analytics-management-v1alpha-ruby", - deps = [ - ":management_ruby_gapic", - ":management_ruby_grpc", - ":management_ruby_proto", - ], -) - -############################################################################## -# C# -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "csharp_gapic_assembly_pkg", - "csharp_gapic_library", - "csharp_grpc_library", - "csharp_proto_library", -) - -csharp_proto_library( - name = "management_csharp_proto", - deps = [":management_proto"], -) - -csharp_grpc_library( - name = "management_csharp_grpc", - srcs = [":management_proto"], - deps = [":management_csharp_proto"], -) - -csharp_gapic_library( - name = "management_csharp_gapic", - srcs = [":management_proto_with_info"], - grpc_service_config = "management_grpc_service_config.json", - common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", - deps = [ - ":management_csharp_grpc", - ":management_csharp_proto", - ], -) - -# Open Source Packages -csharp_gapic_assembly_pkg( - name = "google-cloud-analytics-management-v1alpha-csharp", - deps = [ - ":management_csharp_gapic", - ":management_csharp_grpc", - ":management_csharp_proto", - ], -) - -############################################################################## -# C++ -############################################################################## -# Put your C++ rules here diff --git a/third_party/googleapis/google/analytics/management/v1alpha/analyticsmanagement_gapic.yaml b/third_party/googleapis/google/analytics/management/v1alpha/analyticsmanagement_gapic.yaml deleted file mode 100644 index 991a5ac17..000000000 --- a/third_party/googleapis/google/analytics/management/v1alpha/analyticsmanagement_gapic.yaml +++ /dev/null @@ -1,19 +0,0 @@ -# The file created manually as per go/actools-user-guide -type: com.google.api.codegen.ConfigProto -config_schema_version: 2.0.0 -language_settings: - java: - package_name: com.google.analytics.management.v1alpha - python: - package_name: google.analytics.management.v1alpha.gapic - go: - package_name: google.golang.org/api/analyticsmanagement/v1alpha - csharp: - package_name: Google.Analytics.Management.V1alpha - ruby: - package_name: Google::Analytics::Management::V1alpha - php: - package_name: Google\Analytics\Management\V1alpha - nodejs: - package_name: google.analytics.management.v1alpha - domain_layer_location: analyticsmanagement.google.com diff --git a/third_party/googleapis/google/analytics/management/v1alpha/analyticsmanagement_v1alpha.yaml b/third_party/googleapis/google/analytics/management/v1alpha/analyticsmanagement_v1alpha.yaml deleted file mode 100644 index ff7ffb2f1..000000000 --- a/third_party/googleapis/google/analytics/management/v1alpha/analyticsmanagement_v1alpha.yaml +++ /dev/null @@ -1,106 +0,0 @@ -type: google.api.Service -config_version: 3 -name: analyticsmanagement.googleapis.com -title: Analytics Management API - -apis: -- name: google.analytics.management.v1alpha.Management - -authentication: - rules: - - selector: 'google.analytics.management.v1alpha.Management.*' - oauth: - canonical_scopes: |- - https://www.googleapis.com/auth/analytics.edit - - selector: google.analytics.management.v1alpha.Management.AuditUserLinks - oauth: - canonical_scopes: |- - https://www.googleapis.com/auth/analytics.manage.users.readonly - - selector: google.analytics.management.v1alpha.Management.BatchCreateUserLinks - oauth: - canonical_scopes: |- - https://www.googleapis.com/auth/analytics.manage.users - - selector: google.analytics.management.v1alpha.Management.BatchDeleteUserLinks - oauth: - canonical_scopes: |- - https://www.googleapis.com/auth/analytics.manage.users - - selector: google.analytics.management.v1alpha.Management.BatchGetUserLinks - oauth: - canonical_scopes: |- - https://www.googleapis.com/auth/analytics.manage.users.readonly - - selector: google.analytics.management.v1alpha.Management.BatchUpdateUserLinks - oauth: - canonical_scopes: |- - https://www.googleapis.com/auth/analytics.manage.users - - selector: google.analytics.management.v1alpha.Management.CreateUserLink - oauth: - canonical_scopes: |- - https://www.googleapis.com/auth/analytics.manage.users - - selector: google.analytics.management.v1alpha.Management.DeleteUserLink - oauth: - canonical_scopes: |- - https://www.googleapis.com/auth/analytics.manage.users - - selector: google.analytics.management.v1alpha.Management.GetAccount - oauth: - canonical_scopes: |- - https://www.googleapis.com/auth/analytics.readonly - - selector: google.analytics.management.v1alpha.Management.GetAndroidAppDataStream - oauth: - canonical_scopes: |- - https://www.googleapis.com/auth/analytics.readonly - - selector: google.analytics.management.v1alpha.Management.GetEnhancedMeasurementSettings - oauth: - canonical_scopes: |- - https://www.googleapis.com/auth/analytics.readonly - - selector: google.analytics.management.v1alpha.Management.GetIosAppDataStream - oauth: - canonical_scopes: |- - https://www.googleapis.com/auth/analytics.readonly - - selector: google.analytics.management.v1alpha.Management.GetProperty - oauth: - canonical_scopes: |- - https://www.googleapis.com/auth/analytics.readonly - - selector: google.analytics.management.v1alpha.Management.GetUserLink - oauth: - canonical_scopes: |- - https://www.googleapis.com/auth/analytics.manage.users.readonly - - selector: google.analytics.management.v1alpha.Management.GetWebDataStream - oauth: - canonical_scopes: |- - https://www.googleapis.com/auth/analytics.readonly - - selector: google.analytics.management.v1alpha.Management.ListAccounts - oauth: - canonical_scopes: |- - https://www.googleapis.com/auth/analytics.readonly - - selector: google.analytics.management.v1alpha.Management.ListAndroidAppDataStreams - oauth: - canonical_scopes: |- - https://www.googleapis.com/auth/analytics.readonly - - selector: google.analytics.management.v1alpha.Management.ListFirebaseLinks - oauth: - canonical_scopes: |- - https://www.googleapis.com/auth/analytics.readonly - - selector: google.analytics.management.v1alpha.Management.ListGoogleAdsLinks - oauth: - canonical_scopes: |- - https://www.googleapis.com/auth/analytics.readonly - - selector: google.analytics.management.v1alpha.Management.ListIosAppDataStreams - oauth: - canonical_scopes: |- - https://www.googleapis.com/auth/analytics.readonly - - selector: google.analytics.management.v1alpha.Management.ListProperties - oauth: - canonical_scopes: |- - https://www.googleapis.com/auth/analytics.readonly - - selector: google.analytics.management.v1alpha.Management.ListUserLinks - oauth: - canonical_scopes: |- - https://www.googleapis.com/auth/analytics.manage.users.readonly - - selector: google.analytics.management.v1alpha.Management.ListWebDataStreams - oauth: - canonical_scopes: |- - https://www.googleapis.com/auth/analytics.readonly - - selector: google.analytics.management.v1alpha.Management.UpdateUserLink - oauth: - canonical_scopes: |- - https://www.googleapis.com/auth/analytics.manage.users diff --git a/third_party/googleapis/google/analytics/management/v1alpha/management_api.proto b/third_party/googleapis/google/analytics/management/v1alpha/management_api.proto deleted file mode 100644 index 2312ae7cc..000000000 --- a/third_party/googleapis/google/analytics/management/v1alpha/management_api.proto +++ /dev/null @@ -1,1315 +0,0 @@ -// Copyright 2019 Google LLC. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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.analytics.management.v1alpha; - -import "google/analytics/management/v1alpha/resources.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/empty.proto"; -import "google/protobuf/field_mask.proto"; - -option go_package = "google.golang.org/genproto/googleapis/analytics/management/v1alpha;management"; -option java_multiple_files = true; -option java_outer_classname = "ManagementApiProto"; -option java_package = "com.google.analytics.management.v1alpha"; - -// Service Interface for the GA Management API (App+Web). -service Management { - option (google.api.default_host) = "analyticsmanagement.googleapis.com"; - option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/analytics.edit," - "https://www.googleapis.com/auth/analytics.manage.users," - "https://www.googleapis.com/auth/analytics.manage.users.readonly," - "https://www.googleapis.com/auth/analytics.readonly"; - - // Lookup for a single Account. - // Throws "Target not found" if no such account found, or if caller does not - // have permissions to access it. - rpc GetAccount(GetAccountRequest) returns (Account) { - option (google.api.http) = { - get: "/v1alpha/{name=accounts/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Returns all accounts accessible by the caller. - // - // Note that these accounts might not currently have App+Web properties. - // Soft-deleted (ie: "trashed") accounts are excluded by default. - // Returns an empty list if no relevant accounts are found. - rpc ListAccounts(ListAccountsRequest) returns (ListAccountsResponse) { - option (google.api.http) = { - get: "/v1alpha/accounts" - }; - } - - // Marks target Account as soft-deleted (ie: "trashed") and returns it. - // - // This API does not have a method to restore soft-deleted accounts. - // However, they can be restored using the Trash Can UI. - // - // If the accounts are not restored before the expiration time, the account - // and all child resources (eg: Properties, GoogleAdsLinks, Streams, - // UserLinks) will be permanently purged. - // https://support.google.com/analytics/answer/6154772 - // - // Returns an error if the target is not found. - rpc DeleteAccount(DeleteAccountRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1alpha/{name=accounts/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Updates an account. - rpc UpdateAccount(UpdateAccountRequest) returns (Account) { - option (google.api.http) = { - patch: "/v1alpha/{account.name=accounts/*}" - body: "account" - }; - option (google.api.method_signature) = "account,update_mask"; - } - - // Requests a ticket for creating an account. - rpc ProvisionAccountTicket(ProvisionAccountTicketRequest) returns (ProvisionAccountTicketResponse) { - option (google.api.http) = { - post: "/v1alpha/accounts:provisionAccountTicket" - body: "*" - }; - } - - // Lookup for a single "App+Web" Property. - // - // Throws "Target not found" if no such property found, if property is not - // of the type "App+Web", or if caller does not have permissions to access it. - rpc GetProperty(GetPropertyRequest) returns (Property) { - option (google.api.http) = { - get: "/v1alpha/{name=properties/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Returns child Properties under the specified parent Account. - // - // Only "App+Web" properties will be returned. - // Properties will be excluded if the caller does not have access. - // Soft-deleted (ie: "trashed") properties are excluded by default. - // Returns an empty list if no relevant properties are found. - rpc ListProperties(ListPropertiesRequest) returns (ListPropertiesResponse) { - option (google.api.http) = { - get: "/v1alpha/properties" - }; - } - - // Creates an "App+Web" property with the specified location and attributes. - rpc CreateProperty(CreatePropertyRequest) returns (Property) { - option (google.api.http) = { - post: "/v1alpha/properties" - body: "property" - }; - option (google.api.method_signature) = "property"; - } - - // Marks target Property as soft-deleted (ie: "trashed") and returns it. - // - // This API does not have a method to restore soft-deleted properties. - // However, they can be restored using the Trash Can UI. - // - // If the properties are not restored before the expiration time, the Property - // and all child resources (eg: GoogleAdsLinks, Streams, UserLinks) - // will be permanently purged. - // https://support.google.com/analytics/answer/6154772 - // - // Returns an error if the target is not found, or is not an App+Web Property. - rpc DeleteProperty(DeletePropertyRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1alpha/{name=properties/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Updates a property. - rpc UpdateProperty(UpdatePropertyRequest) returns (Property) { - option (google.api.http) = { - patch: "/v1alpha/{property.name=properties/*}" - body: "property" - }; - option (google.api.method_signature) = "property,update_mask"; - } - - // Gets information about a user's link to an account or property. - rpc GetUserLink(GetUserLinkRequest) returns (UserLink) { - option (google.api.http) = { - get: "/v1alpha/{name=accounts/*/userLinks/*}" - additional_bindings { - get: "/v1alpha/{name=properties/*/userLinks/*}" - } - }; - option (google.api.method_signature) = "name"; - } - - // Gets information about multiple users' links to an account or property. - rpc BatchGetUserLinks(BatchGetUserLinksRequest) returns (BatchGetUserLinksResponse) { - option (google.api.http) = { - get: "/v1alpha/{parent=accounts/*}/userLinks:batchGet" - additional_bindings { - get: "/v1alpha/{parent=properties/*}/userLinks:batchGet" - } - }; - } - - // Lists all user links on an account or property. - rpc ListUserLinks(ListUserLinksRequest) returns (ListUserLinksResponse) { - option (google.api.http) = { - get: "/v1alpha/{parent=accounts/*}/userLinks" - additional_bindings { - get: "/v1alpha/{parent=properties/*}/userLinks" - } - }; - option (google.api.method_signature) = "parent"; - } - - // Lists all user links on an account or property, including implicit ones - // that come from effective permissions granted by groups or organization - // admin roles. - // - // If a returned user link does not have direct permissions, they cannot - // be removed from the account or property directly with the DeleteUserLink - // command. They have to be removed from the group/etc that gives them - // permissions, which is currently only usable/discoverable in the GA or GMP - // UIs. - rpc AuditUserLinks(AuditUserLinksRequest) returns (AuditUserLinksResponse) { - option (google.api.http) = { - post: "/v1alpha/{parent=accounts/*}/userLinks:audit" - body: "*" - additional_bindings { - post: "/v1alpha/{parent=properties/*}/userLinks:audit" - body: "*" - } - }; - } - - // Creates a user link on an account or property. - // - // If the user with the specified email already has permissions on the - // account or property, then the user's existing permissions will be unioned - // with the permissions specified in the new UserLink. - rpc CreateUserLink(CreateUserLinkRequest) returns (UserLink) { - option (google.api.http) = { - post: "/v1alpha/{parent=accounts/*}/userLinks" - body: "user_link" - additional_bindings { - post: "/v1alpha/{parent=properties/*}/userLinks" - body: "user_link" - } - }; - option (google.api.method_signature) = "parent,user_link"; - } - - // Creates information about multiple users' links to an account or property. - // - // This method is transactional. If any UserLink cannot be created, none of - // the UserLinks will be created. - rpc BatchCreateUserLinks(BatchCreateUserLinksRequest) returns (BatchCreateUserLinksResponse) { - option (google.api.http) = { - post: "/v1alpha/{parent=accounts/*}/userLinks:batchCreate" - body: "*" - additional_bindings { - post: "/v1alpha/{parent=properties/*}/userLinks:batchCreate" - body: "*" - } - }; - } - - // Updates a user link on an account or property. - rpc UpdateUserLink(UpdateUserLinkRequest) returns (UserLink) { - option (google.api.http) = { - patch: "/v1alpha/{user_link.name=accounts/*/userLinks/*}" - body: "user_link" - additional_bindings { - patch: "/v1alpha/{user_link.name=properties/*/userLinks/*}" - body: "user_link" - } - }; - option (google.api.method_signature) = "user_link"; - } - - // Updates information about multiple users' links to an account or property. - rpc BatchUpdateUserLinks(BatchUpdateUserLinksRequest) returns (BatchUpdateUserLinksResponse) { - option (google.api.http) = { - post: "/v1alpha/{parent=accounts/*}/userLinks:batchUpdate" - body: "*" - additional_bindings { - post: "/v1alpha/{parent=properties/*}/userLinks:batchUpdate" - body: "*" - } - }; - } - - // Deletes a user link on an account or property. - rpc DeleteUserLink(DeleteUserLinkRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1alpha/{name=accounts/*/userLinks/*}" - additional_bindings { - delete: "/v1alpha/{name=properties/*/userLinks/*}" - } - }; - option (google.api.method_signature) = "name"; - } - - // Deletes information about multiple users' links to an account or property. - rpc BatchDeleteUserLinks(BatchDeleteUserLinksRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - post: "/v1alpha/{parent=accounts/*}/userLinks:batchDelete" - body: "*" - additional_bindings { - post: "/v1alpha/{parent=properties/*}/userLinks:batchDelete" - body: "*" - } - }; - } - - // Lookup for a single WebDataStream - // - // Throws "Target not found" if no such web data stream found, or if the - // caller does not have permissions to access it. - rpc GetWebDataStream(GetWebDataStreamRequest) returns (WebDataStream) { - option (google.api.http) = { - get: "/v1alpha/{name=properties/*/webDataStreams/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Deletes a web stream on a property. - rpc DeleteWebDataStream(DeleteWebDataStreamRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1alpha/{name=properties/*/webDataStreams/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Updates a web stream on a property. - rpc UpdateWebDataStream(UpdateWebDataStreamRequest) returns (WebDataStream) { - option (google.api.http) = { - patch: "/v1alpha/{web_data_stream.name=properties/*/webDataStreams/*}" - body: "web_data_stream" - }; - option (google.api.method_signature) = "web_data_stream,update_mask"; - } - - // Creates a web stream with the specified location and attributes. - rpc CreateWebDataStream(CreateWebDataStreamRequest) returns (WebDataStream) { - option (google.api.http) = { - post: "/v1alpha/{parent=properties/*}/webDataStreams" - body: "web_data_stream" - }; - option (google.api.method_signature) = "parent,web_data_stream"; - } - - // Returns child web data streams under the specified parent property. - // - // Web data streams will be excluded if the caller does not have access. - // Returns an empty list if no relevant web data streams are found. - rpc ListWebDataStreams(ListWebDataStreamsRequest) returns (ListWebDataStreamsResponse) { - option (google.api.http) = { - get: "/v1alpha/{parent=properties/*}/webDataStreams" - }; - option (google.api.method_signature) = "parent"; - } - - // Lookup for a single IosAppDataStream - // - // Throws "Target not found" if no such iOS app data stream found, or if the - // caller does not have permissions to access it. - rpc GetIosAppDataStream(GetIosAppDataStreamRequest) returns (IosAppDataStream) { - option (google.api.http) = { - get: "/v1alpha/{name=properties/*/iosAppDataStreams/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Deletes an iOS app stream on a property. - rpc DeleteIosAppDataStream(DeleteIosAppDataStreamRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1alpha/{name=properties/*/iosAppDataStreams/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Updates an iOS app stream on a property. - rpc UpdateIosAppDataStream(UpdateIosAppDataStreamRequest) returns (IosAppDataStream) { - option (google.api.http) = { - patch: "/v1alpha/{ios_app_data_stream.name=properties/*/iosAppDataStreams/*}" - body: "ios_app_data_stream" - }; - option (google.api.method_signature) = "ios_app_data_stream,update_mask"; - } - - // Creates an iOS app data stream with the specified location and attributes. - rpc CreateIosAppDataStream(CreateIosAppDataStreamRequest) returns (IosAppDataStream) { - option (google.api.http) = { - post: "/v1alpha/{parent=properties/*}/iosAppDataStreams" - body: "ios_app_data_stream" - }; - option (google.api.method_signature) = "parent,ios_app_data_stream"; - } - - // Returns child iOS app data streams under the specified parent property. - // - // iOS app data streams will be excluded if the caller does not have access. - // Returns an empty list if no relevant iOS app data streams are found. - rpc ListIosAppDataStreams(ListIosAppDataStreamsRequest) returns (ListIosAppDataStreamsResponse) { - option (google.api.http) = { - get: "/v1alpha/{parent=properties/*}/iosAppDataStreams" - }; - option (google.api.method_signature) = "parent"; - } - - // Lookup for a single AndroidAppDataStream - // - // Throws "Target not found" if no such android app data stream found, or if - // the caller does not have permissions to access it. - rpc GetAndroidAppDataStream(GetAndroidAppDataStreamRequest) returns (AndroidAppDataStream) { - option (google.api.http) = { - get: "/v1alpha/{name=properties/*/androidAppDataStreams/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Deletes an android app stream on a property. - rpc DeleteAndroidAppDataStream(DeleteAndroidAppDataStreamRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1alpha/{name=properties/*/androidAppDataStreams/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Updates an android app stream on a property. - rpc UpdateAndroidAppDataStream(UpdateAndroidAppDataStreamRequest) returns (AndroidAppDataStream) { - option (google.api.http) = { - patch: "/v1alpha/{android_app_data_stream.name=properties/*/androidAppDataStreams/*}" - body: "android_app_data_stream" - }; - option (google.api.method_signature) = "android_app_data_stream,update_mask"; - } - - // Creates an android app stream with the specified location and attributes. - rpc CreateAndroidAppDataStream(CreateAndroidAppDataStreamRequest) returns (AndroidAppDataStream) { - option (google.api.http) = { - post: "/v1alpha/{parent=properties/*}/androidAppDataStreams" - body: "android_app_data_stream" - }; - option (google.api.method_signature) = "parent,android_app_data_stream"; - } - - // Returns child android app streams under the specified parent property. - // - // Android app streams will be excluded if the caller does not have access. - // Returns an empty list if no relevant android app streams are found. - rpc ListAndroidAppDataStreams(ListAndroidAppDataStreamsRequest) returns (ListAndroidAppDataStreamsResponse) { - option (google.api.http) = { - get: "/v1alpha/{parent=properties/*}/androidAppDataStreams" - }; - option (google.api.method_signature) = "parent"; - } - - // Returns the singleton enhanced measurement settings for this web stream. - // Note that the stream must enable enhanced measurement for these settings to - // take effect. - rpc GetEnhancedMeasurementSettings(GetEnhancedMeasurementSettingsRequest) returns (EnhancedMeasurementSettings) { - option (google.api.http) = { - get: "/v1alpha/{name=properties/*/webDataStreams/*/enhancedMeasurementSettings}" - }; - option (google.api.method_signature) = "name"; - } - - // Updates the singleton enhanced measurement settings for this web stream. - // Note that the stream must enable enhanced measurement for these settings to - // take effect. - rpc UpdateEnhancedMeasurementSettings(UpdateEnhancedMeasurementSettingsRequest) returns (EnhancedMeasurementSettings) { - option (google.api.http) = { - patch: "/v1alpha/{enhanced_measurement_settings.name=properties/*/webDataStreams/*/enhancedMeasurementSettings}" - body: "enhanced_measurement_settings" - }; - option (google.api.method_signature) = "enhanced_measurement_settings,update_mask"; - } - - // Creates a FirebaseLink. - // - // Properties can have at most one FirebaseLink. - rpc CreateFirebaseLink(CreateFirebaseLinkRequest) returns (FirebaseLink) { - option (google.api.http) = { - post: "/v1alpha/{parent=properties/*}/firebaseLinks" - body: "firebase_link" - }; - option (google.api.method_signature) = "parent,firebase_link"; - } - - // Updates a FirebaseLink on a property - rpc UpdateFirebaseLink(UpdateFirebaseLinkRequest) returns (FirebaseLink) { - option (google.api.http) = { - patch: "/v1alpha/{firebase_link.name=properties/*/firebaseLinks/*}" - body: "firebase_link" - }; - option (google.api.method_signature) = "firebase_link,update_mask"; - } - - // Deletes a FirebaseLink on a property - rpc DeleteFirebaseLink(DeleteFirebaseLinkRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1alpha/{name=properties/*/firebaseLinks/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Lists FirebaseLinks on a property. - // Properties can have at most one FirebaseLink. - rpc ListFirebaseLinks(ListFirebaseLinksRequest) returns (ListFirebaseLinksResponse) { - option (google.api.http) = { - get: "/v1alpha/{parent=properties/*}/firebaseLinks" - }; - option (google.api.method_signature) = "parent"; - } - - // Returns the Site Tag for the specified web stream. - // Site Tags are immutable singletons. - rpc GetGlobalSiteTag(GetGlobalSiteTagRequest) returns (GlobalSiteTag) { - option (google.api.http) = { - get: "/v1alpha/{name=properties/*/webDataStreams/*/globalSiteTag}" - }; - option (google.api.method_signature) = "name"; - } - - // Creates a GoogleAdsLink. - rpc CreateGoogleAdsLink(CreateGoogleAdsLinkRequest) returns (GoogleAdsLink) { - option (google.api.http) = { - post: "/v1alpha/{parent=properties/*}/googleAdsLinks" - body: "google_ads_link" - }; - option (google.api.method_signature) = "parent,google_ads_link"; - } - - // Updates a GoogleAdsLink on a property - rpc UpdateGoogleAdsLink(UpdateGoogleAdsLinkRequest) returns (GoogleAdsLink) { - option (google.api.http) = { - patch: "/v1alpha/{google_ads_link.name=properties/*/googleAdsLinks/*}" - body: "google_ads_link" - }; - option (google.api.method_signature) = "google_ads_link,update_mask"; - } - - // Deletes a GoogleAdsLink on a property - rpc DeleteGoogleAdsLink(DeleteGoogleAdsLinkRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1alpha/{name=properties/*/googleAdsLinks/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Lists GoogleAdsLinks on a property. - rpc ListGoogleAdsLinks(ListGoogleAdsLinksRequest) returns (ListGoogleAdsLinksResponse) { - option (google.api.http) = { - get: "/v1alpha/{parent=properties/*}/googleAdsLinks" - }; - option (google.api.method_signature) = "parent"; - } -} - -// Request message for GetAccount RPC. -message GetAccountRequest { - // Required. The name of the account to lookup. - // Format: accounts/{account_id} - // Example: "accounts/100" - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsmanagement.googleapis.com/Account" - } - ]; -} - -// Request message for ListAccounts RPC. -message ListAccountsRequest { - // The maximum number of resources to return. The service may return - // fewer than this value, even if there are additional pages. - // If unspecified, at most 50 resources will be returned. - // The maximum value is 200; (higher values will be coerced to the maximum) - int32 page_size = 1; - - // A page token, received from a previous `ListAccounts` call. - // Provide this to retrieve the subsequent page. - // When paginating, all other parameters provided to `ListAccounts` must - // match the call that provided the page token. - string page_token = 2; - - // Whether to include soft-deleted (ie: "trashed") Accounts in the - // results. Accounts can be inspected to determine whether they are deleted or - // not. - bool show_deleted = 3; -} - -// Request message for ListAccounts RPC. -message ListAccountsResponse { - // Results that were accessible to the caller. - repeated Account accounts = 1; - - // A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} - -// Request message for DeleteAccount RPC. -message DeleteAccountRequest { - // Required. The name of the Account to soft-delete. - // Format: accounts/{account_id} - // Example: "accounts/100" - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsmanagement.googleapis.com/Account" - } - ]; -} - -// Request message for UpdateAccount RPC. -message UpdateAccountRequest { - // Required. The account to update. - // The account's `name` field is used to identify the account. - Account account = 1 [(google.api.field_behavior) = REQUIRED]; - - // The list of fields to be updated. Omitted fields will not be updated. - google.protobuf.FieldMask update_mask = 2; -} - -// Request message for ProvisionAccountTicket RPC. -message ProvisionAccountTicketRequest { - // The account to create. - Account account = 1; - - // Redirect URI where the user will be sent after accepting Terms of Service. - // Must be configured in Developers Console as a Redirect URI - string redirect_uri = 2; -} - -// Response message for ProvisionAccountTicket RPC. -message ProvisionAccountTicketResponse { - // The param to be passed in the ToS link. - string account_ticket_id = 1; -} - -// Request message for GetProperty RPC. -message GetPropertyRequest { - // Required. The name of the property to lookup. - // Format: properties/{property_id} - // Example: "properties/1000" - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsmanagement.googleapis.com/Property" - } - ]; -} - -// Request message for ListProperties RPC. -message ListPropertiesRequest { - // Required. An expression for filtering the results of the request. - // Fields eligible for filtering are: - // `parent:`(The resource name of the parent account) or - // `firebase_project:`(The id or number of the linked firebase project). - // Some examples of filters: - // - // | Filter | Description | - // |-----------------------------|-------------------------------------------| - // | parent:accounts/123 | The account with account id: 123. | - // | firebase_project:project-id | The firebase project with id: project-id. | - // | firebase_project:123 | The firebase project with number: 123. | - string filter = 1 [(google.api.field_behavior) = REQUIRED]; - - // The maximum number of resources to return. The service may return - // fewer than this value, even if there are additional pages. - // If unspecified, at most 50 resources will be returned. - // The maximum value is 200; (higher values will be coerced to the maximum) - int32 page_size = 2; - - // A page token, received from a previous `ListProperties` call. - // Provide this to retrieve the subsequent page. - // When paginating, all other parameters provided to `ListProperties` must - // match the call that provided the page token. - string page_token = 3; - - // Whether to include soft-deleted (ie: "trashed") Properties in the - // results. Properties can be inspected to determine whether they are deleted - // or not. - bool show_deleted = 4; -} - -// Response message for ListProperties RPC. -message ListPropertiesResponse { - // Results that matched the filter criteria and were accessible to the caller. - repeated Property properties = 1; - - // A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} - -// Request message for UpdateProperty RPC. -message UpdatePropertyRequest { - // Required. The property to update. - // The property's `name` field is used to identify the property to be - // updated. - Property property = 1 [(google.api.field_behavior) = REQUIRED]; - - // The list of fields to be updated. Omitted fields will not be updated. - google.protobuf.FieldMask update_mask = 2; -} - -// Request message for CreateProperty RPC. -message CreatePropertyRequest { - // Required. The property to create. - // Note: the supplied property must specify its parent. - Property property = 1 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for DeleteProperty RPC. -message DeletePropertyRequest { - // Required. The name of the Property to soft-delete. - // Format: properties/{property_id} - // Example: "properties/1000" - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsmanagement.googleapis.com/Property" - } - ]; -} - -// Request message for GetUserLink RPC. -message GetUserLinkRequest { - // Required. Example format: accounts/1234/userLinks/5678 - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsmanagement.googleapis.com/UserLink" - } - ]; -} - -// Request message for BatchGetUserLinks RPC. -message BatchGetUserLinksRequest { - // Required. The account or property that all user links in the request are - // for. The parent of all provided values for the 'names' field must match - // this field. - // Example format: accounts/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsmanagement.googleapis.com/UserLink" - } - ]; - - // Required. The names of the user links to retrieve. - // A maximum of 1000 user links can be retrieved in a batch. - // Format: accounts/{accountId}/userLinks/{userLinkId} - repeated string names = 2 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsmanagement.googleapis.com/UserLink" - } - ]; -} - -// Response message for BatchGetUserLinks RPC. -message BatchGetUserLinksResponse { - // The requested user links. - repeated UserLink user_links = 1; -} - -// Request message for ListUserLinks RPC. -message ListUserLinksRequest { - // Required. Example format: accounts/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsmanagement.googleapis.com/UserLink" - } - ]; - - // The maximum number of user links to return. - // The service may return fewer than this value. - // If unspecified, at most 200 user links will be returned. - // The maximum value is 500; values above 500 will be coerced to 500. - int32 page_size = 2; - - // A page token, received from a previous `ListUserLinks` call. - // Provide this to retrieve the subsequent page. - // When paginating, all other parameters provided to `ListUserLinks` must - // match the call that provided the page token. - string page_token = 3; -} - -// Response message for ListUserLinks RPC. -message ListUserLinksResponse { - // List of UserLinks. These will be ordered stably, but in an arbitrary order. - repeated UserLink user_links = 1; - - // A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} - -// Request message for AuditUserLinks RPC. -message AuditUserLinksRequest { - // Required. Example format: accounts/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsmanagement.googleapis.com/UserLink" - } - ]; - - // The maximum number of user links to return. - // The service may return fewer than this value. - // If unspecified, at most 1000 user links will be returned. - // The maximum value is 5000; values above 5000 will be coerced to 5000. - int32 page_size = 2; - - // A page token, received from a previous `AuditUserLinks` call. - // Provide this to retrieve the subsequent page. - // When paginating, all other parameters provided to `AuditUserLinks` must - // match the call that provided the page token. - string page_token = 3; -} - -// Response message for AuditUserLinks RPC. -message AuditUserLinksResponse { - // List of AuditUserLinks. These will be ordered stably, but in an arbitrary - // order. - repeated AuditUserLink user_links = 1; - - // A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} - -// Request message for CreateUserLink RPC. -// -// Users can have multiple email addresses associated with their Google -// account, and one of these email addresses is the "primary" email address. -// Any of the email addresses associated with a Google account may be used -// for a new UserLink, but the returned UserLink will always contain the -// "primary" email address. As a result, the input and output email address -// for this request may differ. -message CreateUserLinkRequest { - // Required. Example format: accounts/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsmanagement.googleapis.com/UserLink" - } - ]; - - // Required. The user link to create. - UserLink user_link = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for BatchCreateUserLinks RPC. -message BatchCreateUserLinksRequest { - // Required. The account or property that all user links in the request are for. - // This field is required. The parent field in the CreateUserLinkRequest - // messages must either be empty or match this field. - // Example format: accounts/1234 - string parent = 1 [(google.api.field_behavior) = REQUIRED]; - - // The requests specifying the user links to create. - // A maximum of 1000 user links can be created in a batch. - repeated CreateUserLinkRequest requests = 2; -} - -// Response message for BatchCreateUserLinks RPC. -message BatchCreateUserLinksResponse { - // The user links created. - repeated UserLink user_links = 1; -} - -// Request message for UpdateUserLink RPC. -message UpdateUserLinkRequest { - // Required. The user link to update. - UserLink user_link = 1 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for BatchUpdateUserLinks RPC. -message BatchUpdateUserLinksRequest { - // Required. The account or property that all user links in the request are - // for. The parent field in the UpdateUserLinkRequest messages must either be - // empty or match this field. - // Example format: accounts/1234 - string parent = 1 [(google.api.field_behavior) = REQUIRED]; - - // The requests specifying the user links to update. - // A maximum of 1000 user links can be updated in a batch. - repeated UpdateUserLinkRequest requests = 2; -} - -// Response message for BatchUpdateUserLinks RPC. -message BatchUpdateUserLinksResponse { - // The user links updated. - repeated UserLink user_links = 1; -} - -// Request message for DeleteUserLink RPC. -message DeleteUserLinkRequest { - // Required. Example format: accounts/1234/userLinks/5678 - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsmanagement.googleapis.com/UserLink" - } - ]; -} - -// Request message for BatchDeleteUserLinks RPC. -message BatchDeleteUserLinksRequest { - // Required. The account or property that all user links in the request are - // for. The parent of all values for user link names to delete must match this - // field. - // Example format: accounts/1234 - string parent = 1 [(google.api.field_behavior) = REQUIRED]; - - // The requests specifying the user links to update. - // A maximum of 1000 user links can be updated in a batch. - repeated DeleteUserLinkRequest requests = 2; -} - -// Request message for GetWebDataStream RPC. -message GetWebDataStreamRequest { - // Required. The name of the web data stream to lookup. - // Format: properties/{property_id}/webDataStreams/{stream_id} - // Example: "properties/123/webDataStreams/456" - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsmanagement.googleapis.com/WebDataStream" - } - ]; -} - -// Request message for DeleteWebDataStream RPC. -message DeleteWebDataStreamRequest { - // Required. The name of the web data stream to delete. - // Format: properties/{property_id}/webDataStreams/{stream_id} - // Example: "properties/123/webDataStreams/456" - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsmanagement.googleapis.com/WebDataStream" - } - ]; -} - -// Request message for UpdateWebDataStream RPC. -message UpdateWebDataStreamRequest { - // Required. The web stream to update. - // The `name` field is used to identify the web stream to be updated. - WebDataStream web_data_stream = 1 [(google.api.field_behavior) = REQUIRED]; - - // The list of fields to be updated. Omitted fields will not be updated. - google.protobuf.FieldMask update_mask = 2; -} - -// Request message for CreateWebDataStream RPC. -message CreateWebDataStreamRequest { - // Required. The web stream to create. - WebDataStream web_data_stream = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The parent resource where this web data stream will be created. - // Format: properties/123 - string parent = 2 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsmanagement.googleapis.com/WebDataStream" - } - ]; -} - -// Request message for ListWebDataStreams RPC. -message ListWebDataStreamsRequest { - // Required. The name of the parent property. - // For example, to list results of web streams under the property with Id - // 123: "properties/123" - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsmanagement.googleapis.com/WebDataStream" - } - ]; - - // The maximum number of resources to return. - // If unspecified, at most 50 resources will be returned. - // The maximum value is 200; (higher values will be coerced to the maximum) - int32 page_size = 2; - - // A page token, received from a previous `ListWebDataStreams` call. - // Provide this to retrieve the subsequent page. - // When paginating, all other parameters provided to `ListWebDataStreams` must - // match the call that provided the page token. - string page_token = 3; -} - -// Request message for ListWebDataStreams RPC. -message ListWebDataStreamsResponse { - // Results that matched the filter criteria and were accessible to the caller. - repeated WebDataStream web_data_streams = 1; - - // A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} - -// Request message for GetIosAppDataStream RPC. -message GetIosAppDataStreamRequest { - // Required. The name of the iOS app data stream to lookup. - // Format: properties/{property_id}/iosAppDataStreams/{stream_id} - // Example: "properties/123/iosAppDataStreams/456" - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsmanagement.googleapis.com/IosAppDataStream" - } - ]; -} - -// Request message for DeleteIosAppDataStream RPC. -message DeleteIosAppDataStreamRequest { - // Required. The name of the iOS app data stream to delete. - // Format: properties/{property_id}/iosAppDataStreams/{stream_id} - // Example: "properties/123/iosAppDataStreams/456" - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsmanagement.googleapis.com/IosAppDataStream" - } - ]; -} - -// Request message for UpdateIosAppDataStream RPC. -message UpdateIosAppDataStreamRequest { - // Required. The iOS app stream to update. - // The `name` field is used to identify the iOS app stream to be updated. - IosAppDataStream ios_app_data_stream = 1 [(google.api.field_behavior) = REQUIRED]; - - // The list of fields to be updated. Omitted fields will not be updated. - google.protobuf.FieldMask update_mask = 2; -} - -// Request message for CreateIosAppDataStream RPC. -message CreateIosAppDataStreamRequest { - // Required. The iOS app data stream to create. - IosAppDataStream ios_app_data_stream = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The parent resource where this ios app data stream will be created. - // Format: properties/123 - string parent = 2 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsmanagement.googleapis.com/IosAppDataStream" - } - ]; -} - -// Request message for ListIosAppDataStreams RPC. -message ListIosAppDataStreamsRequest { - // Required. The name of the parent property. - // For example, to list results of app streams under the property with Id - // 123: "properties/123" - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsmanagement.googleapis.com/IosAppDataStream" - } - ]; - - // The maximum number of resources to return. - // If unspecified, at most 50 resources will be returned. - // The maximum value is 200; (higher values will be coerced to the maximum) - int32 page_size = 2; - - // A page token, received from a previous `ListIosAppDataStreams` - // call. Provide this to retrieve the subsequent page. - // When paginating, all other parameters provided to `ListIosAppDataStreams` - // must match the call that provided the page token. - string page_token = 3; -} - -// Request message for ListIosAppDataStreams RPC. -message ListIosAppDataStreamsResponse { - // Results that matched the filter criteria and were accessible to the caller. - repeated IosAppDataStream ios_app_data_streams = 1; - - // A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} - -// Request message for GetAndroidAppDataStream RPC. -message GetAndroidAppDataStreamRequest { - // Required. The name of the android app data stream to lookup. - // Format: properties/{property_id}/androidAppDataStreams/{stream_id} - // Example: "properties/123/androidAppDataStreams/456" - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsmanagement.googleapis.com/AndroidAppDataStream" - } - ]; -} - -// Request message for DeleteAndroidAppDataStream RPC. -message DeleteAndroidAppDataStreamRequest { - // Required. The name of the android app data stream to delete. - // Format: properties/{property_id}/androidAppDataStreams/{stream_id} - // Example: "properties/123/androidAppDataStreams/456" - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsmanagement.googleapis.com/AndroidAppDataStream" - } - ]; -} - -// Request message for UpdateAndroidAppDataStream RPC. -message UpdateAndroidAppDataStreamRequest { - // Required. The android app stream to update. - // The `name` field is used to identify the android app stream to be updated. - AndroidAppDataStream android_app_data_stream = 1 [(google.api.field_behavior) = REQUIRED]; - - // The list of fields to be updated. Omitted fields will not be updated. - google.protobuf.FieldMask update_mask = 2; -} - -// Request message for CreateAndroidAppDataStream RPC. -message CreateAndroidAppDataStreamRequest { - // Required. The android app stream to create. - AndroidAppDataStream android_app_data_stream = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The parent resource where this android app data stream will be created. - // Format: properties/123 - string parent = 2 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsmanagement.googleapis.com/AndroidAppDataStream" - } - ]; -} - -// Request message for ListAndroidAppDataStreams RPC. -message ListAndroidAppDataStreamsRequest { - // Required. The name of the parent property. - // For example, to limit results to app streams under the property with Id - // 123: "properties/123" - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsmanagement.googleapis.com/AndroidAppDataStream" - } - ]; - - // The maximum number of resources to return. - // - // If unspecified, at most 50 resources will be returned. - // The maximum value is 200; (higher values will be coerced to the maximum) - int32 page_size = 2; - - // A page token, received from a previous call. Provide this to - // retrieve the subsequent page. - // When paginating, all other parameters provided to - // `ListAndroidAppDataStreams` must match the call that provided the page - // token. - string page_token = 3; -} - -// Request message for ListAndroidDataStreams RPC. -message ListAndroidAppDataStreamsResponse { - // Results that matched the filter criteria and were accessible to the caller. - repeated AndroidAppDataStream android_app_data_streams = 1; - - // A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} - -// Request message for GetEnhancedMeasurementSettings RPC. -message GetEnhancedMeasurementSettingsRequest { - // Required. The name of the settings to lookup. - // Format: - // properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings - // Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings" - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsmanagement.googleapis.com/EnhancedMeasurementSettings" - } - ]; -} - -// Request message for UpdateEnhancedMeasurementSettings RPC. -message UpdateEnhancedMeasurementSettingsRequest { - // Required. The settings to update. - // The `name` field is used to identify the settings to be updated. - EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(google.api.field_behavior) = REQUIRED]; - - // The list of fields to be updated. Omitted fields will not be updated. - google.protobuf.FieldMask update_mask = 2; -} - -// Request message for CreateFirebaseLink RPC -message CreateFirebaseLinkRequest { - // Required. Format: properties/{property_id} - // Example: properties/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsmanagement.googleapis.com/FirebaseLink" - } - ]; - - // Required. The Firebase link to create. - FirebaseLink firebase_link = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for UpdateFirebaseLink RPC -message UpdateFirebaseLinkRequest { - // Required. The Firebase link to update. - FirebaseLink firebase_link = 1 [(google.api.field_behavior) = REQUIRED]; - - // The list of fields to be updated. Omitted fields will not be updated. - google.protobuf.FieldMask update_mask = 2; -} - -// Request message for DeleteFirebaseLink RPC -message DeleteFirebaseLinkRequest { - // Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} - // Example: properties/1234/firebaseLinks/5678 - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsmanagement.googleapis.com/FirebaseLink" - } - ]; -} - -// Request message for ListFirebaseLinks RPC -message ListFirebaseLinksRequest { - // Required. Format: properties/{property_id} - // Example: properties/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsmanagement.googleapis.com/FirebaseLink" - } - ]; -} - -// Response message for ListFirebaseLinks RPC -message ListFirebaseLinksResponse { - // List of FirebaseLinks. This will have at most one value. - repeated FirebaseLink firebase_links = 1; -} - -// Request message for GetGlobalSiteTag RPC. -message GetGlobalSiteTagRequest { - // Required. The name of the site tag to lookup. - // Note that site tags are singletons and do not have unique IDs. - // Format: properties/{property_id}/webDataStreams/{stream_id}/globalSiteTag - // Example: "properties/123/webDataStreams/456/globalSiteTag" - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsmanagement.googleapis.com/GlobalSiteTag" - } - ]; -} - -// Request message for CreateGoogleAdsLink RPC -message CreateGoogleAdsLinkRequest { - // Required. Example format: properties/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsmanagement.googleapis.com/GoogleAdsLink" - } - ]; - - // Required. The GoogleAdsLink to create. - GoogleAdsLink google_ads_link = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for UpdateGoogleAdsLink RPC -message UpdateGoogleAdsLinkRequest { - // The GoogleAdsLink to update - GoogleAdsLink google_ads_link = 1; - - // The list of fields to be updated. Omitted fields will not be updated. - google.protobuf.FieldMask update_mask = 2; -} - -// Request message for DeleteGoogleAdsLink RPC. -message DeleteGoogleAdsLinkRequest { - // Required. Example format: properties/1234/googleAdsLinks/5678 - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "analyticsmanagement.googleapis.com/GoogleAdsLink" - } - ]; -} - -// Request message for ListGoogleAdsLinks RPC. -message ListGoogleAdsLinksRequest { - // Required. Example format: properties/1234 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsmanagement.googleapis.com/GoogleAdsLink" - } - ]; - - // The maximum number of resources to return. - // If unspecified, at most 50 resources will be returned. - // The maximum value is 200 (higher values will be coerced to the maximum). - int32 page_size = 2; - - // A page token, received from a previous `ListGoogleAdsLinks` call. - // Provide this to retrieve the subsequent page. - // - // When paginating, all other parameters provided to `ListGoogleAdsLinks` must - // match the call that provided the page token. - string page_token = 3; -} - -// Response message for ListGoogleAdsLinks RPC. -message ListGoogleAdsLinksResponse { - // List of GoogleAdsLinks. - repeated GoogleAdsLink google_ads_links = 1; - - // A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} diff --git a/third_party/googleapis/google/analytics/management/v1alpha/management_grpc_service_config.json b/third_party/googleapis/google/analytics/management/v1alpha/management_grpc_service_config.json deleted file mode 100644 index 19d999b66..000000000 --- a/third_party/googleapis/google/analytics/management/v1alpha/management_grpc_service_config.json +++ /dev/null @@ -1,148 +0,0 @@ -{ - "methodConfig": [ - { - "timeout": "60s", - "name": [ - { - "service": "google.analytics.management.v1alpha.Management", - "method": "GetAccount" - }, - { - "service": "google.analytics.management.v1alpha.Management", - "method": "ListAccounts" - }, - { - "service": "google.analytics.management.v1alpha.Management", - "method": "DeleteAccount" - }, { - "service": "google.analytics.management.v1alpha.Management", - "method": "UpdateAccount" - }, { - "service": "google.analytics.management.v1alpha.Management", - "method": "ProvisionAccountTicket" - }, { - "service": "google.analytics.management.v1alpha.Management", - "method": "GetProperty" - }, { - "service": "google.analytics.management.v1alpha.Management", - "method": "ListProperties" - }, { - "service": "google.analytics.management.v1alpha.Management", - "method": "DeleteProperty" - }, { - "service": "google.analytics.management.v1alpha.Management", - "method": "CreateProperty" - }, { - "service": "google.analytics.management.v1alpha.Management", - "method": "UpdateProperty" - }, { - "service": "google.analytics.management.v1alpha.Management", - "method": "GetUserLink" - }, { - "service": "google.analytics.management.v1alpha.Management", - "method": "BatchGetUserLinks" - }, { - "service": "google.analytics.management.v1alpha.Management", - "method": "ListUserLinks" - }, { - "service": "google.analytics.management.v1alpha.Management", - "method": "AuditUserLinks" - }, { - "service": "google.analytics.management.v1alpha.Management", - "method": "CreateUserLink" - }, { - "service": "google.analytics.management.v1alpha.Management", - "method": "BatchCreateUserLinks" - }, { - "service": "google.analytics.management.v1alpha.Management", - "method": "UpdateUserLink" - }, { - "service": "google.analytics.management.v1alpha.Management", - "method": "BatchUpdateUserLinks" - }, { - "service": "google.analytics.management.v1alpha.Management", - "method": "DeleteUserLink" - }, { - "service": "google.analytics.management.v1alpha.Management", - "method": "BatchDeleteUserLinks" - }, { - "service": "google.analytics.management.v1alpha.Management", - "method": "GetWebDataStream" - }, { - "service": "google.analytics.management.v1alpha.Management", - "method": "UpdateWebDataStream" - }, { - "service": "google.analytics.management.v1alpha.Management", - "method": "CreateWebDataStream" - }, { - "service": "google.analytics.management.v1alpha.Management", - "method": "ListWebDataStreams" - }, { - "service": "google.analytics.management.v1alpha.Management", - "method": "GetIosAppDataStream" - }, { - "service": "google.analytics.management.v1alpha.Management", - "method": "DeleteIosAppDataStream" - }, { - "service": "google.analytics.management.v1alpha.Management", - "method": "UpdateIosAppDataStream" - }, { - "service": "google.analytics.management.v1alpha.Management", - "method": "CreateIosAppDataStream" - }, { - "service": "google.analytics.management.v1alpha.Management", - "method": "ListIosAppDataStreams" - }, { - "service": "google.analytics.management.v1alpha.Management", - "method": "GetAndroidAppDataStream" - }, { - "service": "google.analytics.management.v1alpha.Management", - "method": "DeleteAndroidAppDataStream" - }, { - "service": "google.analytics.management.v1alpha.Management", - "method": "UpdateAndroidAppDataStream" - }, { - "service": "google.analytics.management.v1alpha.Management", - "method": "CreateAndroidAppDataStream" - }, { - "service": "google.analytics.management.v1alpha.Management", - "method": "ListAndroidAppDataStreams" - }, { - "service": "google.analytics.management.v1alpha.Management", - "method": "GetEnhancedMeasurementSettings" - }, { - "service": "google.analytics.management.v1alpha.Management", - "method": "UpdateEnhancedMeasurementSettings" - }, { - "service": "google.analytics.management.v1alpha.Management", - "method": "CreateFirebaseLink" - }, { - "service": "google.analytics.management.v1alpha.Management", - "method": "UpdateFirebaseLink" - }, { - "service": "google.analytics.management.v1alpha.Management", - "method": "DeleteFirebaseLink" - }, { - "service": "google.analytics.management.v1alpha.Management", - "method": "ListFirebaseLinks" - }, { - "service": "google.analytics.management.v1alpha.Management", - "method": "GetGlobalSiteTag" - }, { - "service": "google.analytics.management.v1alpha.Management", - "method": "CreateGoogleAdsLink" - }, { - "service": "google.analytics.management.v1alpha.Management", - "method": "UpdateGoogleAdsLink" - }, { - "service": "google.analytics.management.v1alpha.Management", - "method": "DeleteGoogleAdsLink" - }, { - "service": "google.analytics.management.v1alpha.Management", - "method": "ListGoogleAdsLinks" - } - ], - "timeout": "60s" - } - ] -} diff --git a/third_party/googleapis/google/analytics/management/v1alpha/resources.proto b/third_party/googleapis/google/analytics/management/v1alpha/resources.proto deleted file mode 100644 index 2db63ff62..000000000 --- a/third_party/googleapis/google/analytics/management/v1alpha/resources.proto +++ /dev/null @@ -1,526 +0,0 @@ -// Copyright 2019 Google LLC. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT 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.analytics.management.v1alpha; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/timestamp.proto"; - -option go_package = "google.golang.org/genproto/googleapis/analytics/management/v1alpha;management"; -option java_multiple_files = true; -option java_outer_classname = "ResourcesProto"; -option java_package = "com.google.analytics.management.v1alpha"; - -// NEXT TAG: 7 -// A resource message representing a Google Analytics account. -message Account { - option (google.api.resource) = { - type: "analyticsmanagement.googleapis.com/Account" - pattern: "accounts/{account}" - }; - - // Output only. Resource name of this account. - // Format: accounts/{account_id} - // Example: "accounts/100" - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Time when this account was originally created. - google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Time when account payload fields were last updated. - google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Human-readable display name for this account. - string display_name = 4; - - // Country of business. Must be a non-deprecated code for a UN M.49 region. - // https://unicode.org/cldr/charts/latest/supplemental/territory_containment_un_m_49.html - string country_code = 5; - - // Output only. Indicates whether this Account is soft-deleted or not. Deleted - // accounts are excluded from List results unless specifically requested. - bool deleted = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// NEXT TAG: 10 -// A resource message representing a Google Analytics App+Web property. -message Property { - option (google.api.resource) = { - type: "analyticsmanagement.googleapis.com/Property" - pattern: "properties/{property}" - }; - - // Output only. Resource name of this property. - // Format: properties/{property_id} - // Example: "properties/1000" - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Time when the entity was originally created. - google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Time when entity payload fields were last updated. - google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. Resource name of this property's logical parent. - // - // Note: The Property-Moving UI can be used to change the parent. - // Format: accounts/{account_id} - // Example: "accounts/100" - string parent = 2 [(google.api.field_behavior) = IMMUTABLE]; - - // Human-readable display name for this property. - string display_name = 5; - - // Industry associated with this property - // Example: AUTOMOTIVE, FOOD_AND_DRINK - IndustryCategory industry_category = 6; - - // Reporting Time Zone, used as the day boundary for reports, regardless of - // where the data originates. If the time zone honors DST, Analytics will - // automatically adjust for the changes. - // - // NOTE: Changing the time zone only affects data going forward, and is not - // applied retroactively. - // - // Format: https://www.iana.org/time-zones - // Example: "America/Los_Angeles" - string time_zone = 7; - - // The currency type used in reports involving monetary values. - // - // - // Format: https://en.wikipedia.org/wiki/ISO_4217 - // Examples: "USD", "EUR", "JPY" - string currency_code = 8; - - // Output only. Indicates whether this Property is soft-deleted or not. Deleted properties - // are excluded from List results unless specifically requested. - bool deleted = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// A resource message representing a Google Analytics Android app stream. -message AndroidAppDataStream { - option (google.api.resource) = { - type: "analyticsmanagement.googleapis.com/AndroidAppDataStream" - pattern: "properties/{property}/androidAppDataStreams/{android_app_data_stream}" - }; - - // Output only. Resource name of this Data Stream. - // Format: properties/{property_id}/androidAppDataStreams/{stream_id} - // Example: "properties/1000/androidAppDataStreams/2000" - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Analytics "Measurement ID", without the "G-" prefix. - // ex: "G-1A2BCD345E" would just be "1A2BCD345E" - string measurement_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. ID of the corresponding Android app in Firebase, if any. - // This ID can change if the Android app is deleted and recreated. - string firebase_app_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Time when this stream was originally created. - google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Time when stream payload fields were last updated. - google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. The package name for the app being measured. - // Example: "com.example.myandroidapp" - string package_name = 6 [(google.api.field_behavior) = IMMUTABLE]; - - // Human-readable display name for the Data Stream. - string display_name = 7; -} - -// A resource message representing a Google Analytics IOS app stream. -message IosAppDataStream { - option (google.api.resource) = { - type: "analyticsmanagement.googleapis.com/IosAppDataStream" - pattern: "properties/{property}/iosAppDataStreams/{ios_app_data_stream}" - }; - - // Output only. Resource name of this Data Stream. - // Format: properties/{property_id}/iosAppDataStreams/{stream_id} - // Example: "properties/1000/iosAppDataStreams/2000" - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Analytics "Measurement ID", without the "G-" prefix. - // Example: "G-1A2BCD345E" would just be "1A2BCD345E" - string measurement_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. ID of the corresponding iOS app in Firebase, if any. - // This ID can change if the iOS app is deleted and recreated. - string firebase_app_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Time when this stream was originally created. - google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Time when stream payload fields were last updated. - google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. The Apple App Store Bundle ID for the app - // Example: "com.example.myiosapp" - string bundle_id = 6 [(google.api.field_behavior) = IMMUTABLE]; - - // Human-readable display name for the Data Stream. - string display_name = 7; -} - -// A resource message representing a Google Analytics web stream. -message WebDataStream { - option (google.api.resource) = { - type: "analyticsmanagement.googleapis.com/WebDataStream" - pattern: "properties/{property}/webDataStreams/{web_data_stream}" - }; - - // Output only. Resource name of this Data Stream. - // Format: properties/{property_id}/webDataStreams/{stream_id} - // Example: "properties/1000/webDataStreams/2000" - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Analytics "Measurement ID", without the "G-" prefix. - // Example: "G-1A2BCD345E" would just be "1A2BCD345E" - string measurement_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. ID of the corresponding web app in Firebase, if any. - // This ID can change if the web app is deleted and recreated. - string firebase_app_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Time when this stream was originally created. - google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Time when stream payload fields were last updated. - google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. Domain name of the web app being measured, or empty. - // Example: "http://www.google.com", "https://www.google.com" - string default_uri = 6 [(google.api.field_behavior) = IMMUTABLE]; - - // Human-readable display name for the Data Stream. - string display_name = 7; -} - -// A resource message representing a user's permissions on an Account or -// Property resource. -message UserLink { - option (google.api.resource) = { - type: "analyticsmanagement.googleapis.com/UserLink" - pattern: "accounts/{account}/userLinks/{user_link}" - pattern: "properties/{property}/userLinks/{user_link}" - }; - - // Example format: properties/1234/userLinks/5678 - string name = 1; - - // Email address of the user to link - string email_address = 2; - - // Roles directly assigned to this user for this account or property. - // - // Valid values: - // predefinedRoles/read - // predefinedRoles/collaborate - // predefinedRoles/edit - // predefinedRoles/manage-users - // - // Excludes roles that are inherited from a higher-level entity, group, - // or organization admin role. - // - // A UserLink that is updated to have an empty list of direct_roles will be - // deleted. - repeated string direct_roles = 3; -} - -// Read-only resource used to summarize a principal's effective roles. -message AuditUserLink { - // Example format: properties/1234/userLinks/5678 - string name = 1; - - // Email address of the linked user - string email_address = 2; - - // Roles directly assigned to this user for this entity. - // - // Format: predefinedRoles/read - // - // Excludes roles that are inherited from an account (if this is for a - // property), group, or organization admin role. - repeated string direct_roles = 3; - - // Union of all permissions a user has at this account or property (includes - // direct permissions, group-inherited permissions, etc.). - // - // Format: predefinedRoles/read - repeated string effective_roles = 4; -} - -// Singleton resource under a WebDataStream, configuring measurement of -// additional site interactions and content. -message EnhancedMeasurementSettings { - option (google.api.resource) = { - type: "analyticsmanagement.googleapis.com/EnhancedMeasurementSettings" - pattern: "properties/{property}/webDataStreams/{web_data_stream}/enhancedMeasurementSettings" - }; - - // Output only. Resource name of this Data Stream. - // Format: - // properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings - // Example: "properties/1000/webDataStreams/2000/enhancedMeasurementSettings" - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Indicates whether Enhanced Measurement Settings will be used to - // automatically measure interactions and content on this web stream. - // - // Changing this value does not affect the settings themselves, but determines - // whether they are respected. - bool stream_enabled = 2; - - // Output only. If enabled, capture a page view event each time a page loads or the - // website changes the browser history state. - bool page_views_enabled = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // If enabled, capture scroll events each time a visitor gets to the bottom of - // a page. - bool scrolls_enabled = 4; - - // If enabled, capture an outbound click event each time a visitor clicks a - // link that leads them away from your domain. - bool outbound_clicks_enabled = 5; - - // Capture events when your visitors view content on your site that has - // structured data (eg, articles, blog posts, product details screens, etc.). - bool content_views_enabled = 6; - - // If enabled, capture a view search results event each time a visitor - // performs a search on your site (based on a query parameter). - bool site_search_enabled = 7; - - // If enabled, capture a view search results event each time a visitor - // interacts with a form on your site. - bool form_interactions_enabled = 8; - - // If enabled, capture video play, progress, and complete events as visitors - // view embedded videos on your site. - bool video_engagement_enabled = 9; - - // If enabled, capture a file download event each time a link is clicked with - // a common document, compressed file, application, video, or audio extension. - bool file_downloads_enabled = 10; - - // If enabled, capture a click event each time a visitor clicks a link or - // element that has data attributes beginning with "data-ga". - bool data_tagged_element_clicks_enabled = 11; - - // If enabled, capture a page view event each time a page loads. - bool page_loads_enabled = 12; - - // If enabled, capture a page view event each time the website changes the - // browser history state. - bool page_changes_enabled = 13; - - // Capture events when your visitors view content on your site that has - // articles or blog posts. - bool articles_and_blogs_enabled = 14; - - // Capture events when your visitors view content on your site that has - // product details screens, etc. - bool products_and_ecommerce_enabled = 15; - - // Required. URL query parameters to interpret as site search parameters. - // Max length is 1024 characters. Must not be empty. - string search_query_parameter = 16 [(google.api.field_behavior) = REQUIRED]; - - // Additional URL query parameters. - // Max length is 1024 characters. - string url_query_parameter = 17; - - // Domains to exclude from measurement. Max length is 1024 characters. - string excluded_domains = 18; -} - -// A link between an App+Web property and a Firebase project. -message FirebaseLink { - option (google.api.resource) = { - type: "analyticsmanagement.googleapis.com/FirebaseLink" - pattern: "properties/{property}/firebaseLinks/{firebase_link}" - }; - - // Output only. Example format: properties/1234/firebaseLinks/5678 - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. Firebase project resource name. When creating a FirebaseLink, you may - // provide this resource name using either a project number or project ID. - // Once this resource has been created, returned FirebaseLinks will always - // have a project_name that contains a project number. - // - // Format: 'projects/{project number}' - // Example: 'projects/1234' - string project = 2 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. Time when this FirebaseLink was originally created. - google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Maximum user access to the App + Web property allowed to admins of - // the linked Firebase project. - MaximumUserAccess maximum_user_access = 4; -} - -// Read-only resource with the tag for sending data from a website to a -// WebDataStream. -message GlobalSiteTag { - option (google.api.resource) = { - type: "analyticsmanagement.googleapis.com/GlobalSiteTag" - pattern: "properties/{property}/globalSiteTag" - }; - - // Immutable. JavaScript code snippet to be pasted as the first item into the head tag of - // every webpage to measure. - string snippet = 1 [(google.api.field_behavior) = IMMUTABLE]; -} - -// A link between an App+Web property and a Google Ads account. -message GoogleAdsLink { - option (google.api.resource) = { - type: "analyticsmanagement.googleapis.com/GoogleAdsLink" - pattern: "properties/{property}/googleAdsLinks/{google_ads_link}" - }; - - // Output only. Format: properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} - // - // Note: googleAdsLinkId is not the Google Ads customer ID. - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Immutable. Format: properties/{propertyId} - string parent = 2 [(google.api.field_behavior) = IMMUTABLE]; - - // Immutable. Google Ads customer ID. - string customer_id = 3 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. If true, this link is for a Google Ads manager account. - bool can_manage_clients = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Enable personalized advertising features with this integration. - // Automatically publish my Google Analytics audience lists and Google - // Analytics remarketing events/parameters to the linked Google Ads account. - bool ads_personalization_enabled = 5; -} - -// The category selected for this property, used for industry benchmarking. -enum IndustryCategory { - // Industry category unspecified - INDUSTRY_CATEGORY_UNSPECIFIED = 0; - - // Automotive - AUTOMOTIVE = 1; - - // Business and industrial markets - BUSINESS_AND_INDUSTRIAL_MARKETS = 2; - - // Finance - FINANCE = 3; - - // Healthcare - HEALTHCARE = 4; - - // Technology - TECHNOLOGY = 5; - - // Travel - TRAVEL = 6; - - // Other - OTHER = 7; - - // Arts and entertainment - ARTS_AND_ENTERTAINMENT = 8; - - // Beauty and fitness - BEAUTY_AND_FITNESS = 9; - - // Books and literature - BOOKS_AND_LITERATURE = 10; - - // Food and drink - FOOD_AND_DRINK = 11; - - // Games - GAMES = 12; - - // Hobbies and leisure - HOBBIES_AND_LEISURE = 13; - - // Home and garden - HOME_AND_GARDEN = 14; - - // Internet and telecom - INTERNET_AND_TELECOM = 15; - - // Law and government - LAW_AND_GOVERNMENT = 16; - - // News - NEWS = 17; - - // Online communities - ONLINE_COMMUNITIES = 18; - - // People and society - PEOPLE_AND_SOCIETY = 19; - - // Pets and animals - PETS_AND_ANIMALS = 20; - - // Real estate - REAL_ESTATE = 21; - - // Reference - REFERENCE = 22; - - // Science - SCIENCE = 23; - - // Sports - SPORTS = 24; - - // Jobs and education - JOBS_AND_EDUCATION = 25; - - // Shopping - SHOPPING = 26; -} - -// Maximum access settings that Firebase user receive on the linked Analytics -// property. -enum MaximumUserAccess { - // Unspecified maximum user access. - MAXIMUM_USER_ACCESS_UNSPECIFIED = 0; - - // Firebase users have no access to the Analytics property. - NO_ACCESS = 1; - - // Firebase users have Read & Analyze access to the Analytics property. - READ_AND_ANALYZE = 2; - - // Firebase users have edit access to the Analytics property, but may not - // manage the Firebase link. - EDITOR_WITHOUT_LINK_MANAGEMENT = 3; - - // Firebase users have edit access to the Analytics property and may manage - // the Firebase link. - EDITOR_INCLUDING_LINK_MANAGEMENT = 4; -} diff --git a/third_party/googleapis/google/api/auth.proto b/third_party/googleapis/google/api/auth.proto index 3ff0eefc0..7d12dd494 100644 --- a/third_party/googleapis/google/api/auth.proto +++ b/third_party/googleapis/google/api/auth.proto @@ -117,8 +117,8 @@ message AuthProvider { // Optional if the key set document: // - can be retrieved from // [OpenID - // Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html of - // the issuer. + // Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html) + // of the issuer. // - can be inferred from the email domain of the issuer (e.g. a Google // service account). // diff --git a/third_party/googleapis/google/api/endpoint.proto b/third_party/googleapis/google/api/endpoint.proto index 6843a887b..5cea0a86c 100644 --- a/third_party/googleapis/google/api/endpoint.proto +++ b/third_party/googleapis/google/api/endpoint.proto @@ -22,10 +22,10 @@ option java_outer_classname = "EndpointProto"; option java_package = "com.google.api"; option objc_class_prefix = "GAPI"; -// `Endpoint` describes a network endpoint that serves a set of APIs. -// A service may expose any number of endpoints, and all endpoints share the -// same service configuration, such as quota configuration and monitoring -// configuration. +// `Endpoint` describes a network endpoint of a service that serves a set of +// APIs. It is commonly known as a service endpoint. A service may expose +// any number of service endpoints, and all service endpoints share the same +// service definition, such as quota limits and monitoring metrics. // // Example service configuration: // diff --git a/third_party/googleapis/google/api/error_reason.proto b/third_party/googleapis/google/api/error_reason.proto new file mode 100644 index 000000000..c3b0cb5a8 --- /dev/null +++ b/third_party/googleapis/google/api/error_reason.proto @@ -0,0 +1,331 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.api; + +option go_package = "google.golang.org/genproto/googleapis/api/error_reason;error_reason"; +option java_multiple_files = true; +option java_outer_classname = "ErrorReasonProto"; +option java_package = "com.google.api"; +option objc_class_prefix = "GAPI"; + +// Defines the supported values for `google.rpc.ErrorInfo.reason` for the +// `googleapis.com` error domain. This error domain is reserved for [Service +// Infrastructure](https://cloud.google.com/service-infrastructure/docs/overview). +// For each error info of this domain, the metadata key "service" refers to the +// logical identifier of an API service, such as "pubsub.googleapis.com". The +// "consumer" refers to the entity that consumes an API Service. It typically is +// a Google project that owns the client application or the server resource, +// such as "projects/123". Other metadata keys are specific to each error +// reason. For more information, see the definition of the specific error +// reason. +enum ErrorReason { + // Do not use this default value. + ERROR_REASON_UNSPECIFIED = 0; + + // The request is calling a disabled service for a consumer. + // + // Example of an ErrorInfo when the consumer "projects/123" contacting + // "pubsub.googleapis.com" service which is disabled: + // + // { "reason": "SERVICE_DISABLED" + // "domain": "googleapis.com" + // "metadata": { + // "consumer": "projects/123", + // "service": "pubsub.googleapis.com" + // } + // } + // + // This response indicates the "pubsub.googleapis.com" has been disabled in + // "projects/123". + SERVICE_DISABLED = 1; + + // The request whose associated billing account is disabled. + // + // Example of an ErrorInfo when the consumer "projects/123" fails to contact + // "pubsub.googleapis.com" service because of the billing account is disabled: + // + // { "reason": "BILLING_DISABLED" + // "domain": "googleapis.com" + // "metadata": { + // "consumer": "projects/123", + // "service": "pubsub.googleapis.com" + // } + // } + // + // This response indicates the billing account associated has been disabled. + BILLING_DISABLED = 2; + + // The request is denied because the provided [API + // key](https://cloud.google.com/docs/authentication/api-keys) is invalid. It + // may be in a bad format, cannot be found, or has been expired). + // + // Example of an ErrorInfo when the request is contacting + // "storage.googleapis.com" service with an invalid API key: + // + // { "reason": "API_KEY_INVALID" + // "domain": "googleapis.com" + // "metadata": { + // "service": "storage.googleapis.com", + // } + // } + API_KEY_INVALID = 3; + + // The request is denied because it violates [API key API + // restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_api_restrictions). + // + // Example of an ErrorInfo when the request is contacting the service + // "storage.googleapis.com" that is restricted in the API key: + // + // { "reason": "API_KEY_SERVICE_BLOCKED" + // "domain": "googleapis.com" + // "metadata": { + // "consumer": "projects/123", + // "service": "storage.googleapis.com" + // } + // } + API_KEY_SERVICE_BLOCKED = 4; + + // The request is denied because it violates [API key HTTP + // restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_http_restrictions). + // + // Example of an ErrorInfo when the http referrer of the request violates API + // key HTTP restrictions: + // + // { "reason": "API_KEY_HTTP_REFERRER_BLOCKED" + // "domain": "googleapis.com" + // "metadata": { + // "consumer": "projects/123", + // "service": "storage.googleapis.com", + // } + // } + API_KEY_HTTP_REFERRER_BLOCKED = 7; + + // The request is denied because it violates [API key IP address + // restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions). + // + // Example of an ErrorInfo when the caller IP of the request violates API + // key IP address restrictions: + // + // { "reason": "API_KEY_IP_ADDRESS_BLOCKED" + // "domain": "googleapis.com" + // "metadata": { + // "consumer": "projects/123", + // "service": "storage.googleapis.com", + // } + // } + API_KEY_IP_ADDRESS_BLOCKED = 8; + + // The request is denied because it violates [API key Android application + // restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions). + // + // Example of an ErrorInfo when the request from the Android apps violates the + // API key Android application restrictions: + // + // { "reason": "API_KEY_ANDROID_APP_BLOCKED" + // "domain": "googleapis.com" + // "metadata": { + // "consumer": "projects/123", + // "service": "storage.googleapis.com" + // } + // } + API_KEY_ANDROID_APP_BLOCKED = 9; + + // The request is denied because it violates [API key iOS application + // restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions). + // + // Example of an ErrorInfo when the request from the iOS apps violates the API + // key iOS application restrictions: + // + // { "reason": "API_KEY_IOS_APP_BLOCKED" + // "domain": "googleapis.com" + // "metadata": { + // "consumer": "projects/123", + // "service": "storage.googleapis.com" + // } + // } + API_KEY_IOS_APP_BLOCKED = 13; + + // The request is denied because there is not enough rate quota for the + // consumer. + // + // Example of an ErrorInfo when the consumer "projects/123" fails to contact + // "pubsub.googleapis.com" service because consumer's rate quota usage has + // reached the maximum value set for the quota limit + // "ReadsPerMinutePerProject" on the quota metric + // "pubsub.googleapis.com/read_requests": + // + // { "reason": "RATE_LIMIT_EXCEEDED" + // "domain": "googleapis.com" + // "metadata": { + // "consumer": "projects/123", + // "service": "pubsub.googleapis.com", + // "quota_metric": "pubsub.googleapis.com/read_requests", + // "quota_limit": "ReadsPerMinutePerProject" + // } + // } + // + // Example of an ErrorInfo when the consumer "projects/123" checks quota on + // the service "dataflow.googleapis.com" and hits the organization quota + // limit "DefaultRequestsPerMinutePerOrganization" on the metric + // "dataflow.googleapis.com/default_requests". + // + // { "reason": "RATE_LIMIT_EXCEEDED" + // "domain": "googleapis.com" + // "metadata": { + // "consumer": "projects/123", + // "service": "dataflow.googleapis.com", + // "quota_metric": "dataflow.googleapis.com/default_requests", + // "quota_limit": "DefaultRequestsPerMinutePerOrganization" + // } + // } + RATE_LIMIT_EXCEEDED = 5; + + // The request is denied because there is not enough resource quota for the + // consumer. + // + // Example of an ErrorInfo when the consumer "projects/123" fails to contact + // "compute.googleapis.com" service because consumer's resource quota usage + // has reached the maximum value set for the quota limit "VMsPerProject" + // on the quota metric "compute.googleapis.com/vms": + // + // { "reason": "RESOURCE_QUOTA_EXCEEDED" + // "domain": "googleapis.com" + // "metadata": { + // "consumer": "projects/123", + // "service": "compute.googleapis.com", + // "quota_metric": "compute.googleapis.com/vms", + // "quota_limit": "VMsPerProject" + // } + // } + // + // Example of an ErrorInfo when the consumer "projects/123" checks resource + // quota on the service "dataflow.googleapis.com" and hits the organization + // quota limit "jobs-per-organization" on the metric + // "dataflow.googleapis.com/job_count". + // + // { "reason": "RESOURCE_QUOTA_EXCEEDED" + // "domain": "googleapis.com" + // "metadata": { + // "consumer": "projects/123", + // "service": "dataflow.googleapis.com", + // "quota_metric": "dataflow.googleapis.com/job_count", + // "quota_limit": "jobs-per-organization" + // } + // } + RESOURCE_QUOTA_EXCEEDED = 6; + + // The request whose associated billing account address is in a tax restricted + // location, violates the local tax restrictions when creating resources in + // the restricted region. + // + // Example of an ErrorInfo when creating the Cloud Storage Bucket in the + // container "projects/123" under a tax restricted region + // "locations/asia-northeast3": + // + // { "reason": "LOCATION_TAX_POLICY_VIOLATED" + // "domain": "googleapis.com" + // "metadata": { + // "consumer": "projects/123", + // "service": "storage.googleapis.com", + // "location": "locations/asia-northeast3" + // } + // } + // + // This response indicates creating the Cloud Storage Bucket in + // "locations/asia-northeast3" violates the location tax restriction. + LOCATION_TAX_POLICY_VIOLATED = 10; + + // The request is denied because the caller does not have required permission + // on the user project or the user project is invalid. For more information, + // see [System + // Parameters](https://cloud.google.com/apis/docs/system-parameters). + // + // Example of an ErrorInfo when the caller is calling Cloud Storage service + // with insufficient permissions on the user project: + // + // { "reason": "USER_PROJECT_DENIED" + // "domain": "googleapis.com" + // "metadata": { + // "consumer": "projects/123", + // "service": "storage.googleapis.com" + // } + // } + USER_PROJECT_DENIED = 11; + + // The request is denied because the consumer is suspended due to Terms of + // Service(Tos) violations. Check [Project suspension + // guidelines](https://cloud.google.com/resource-manager/docs/project-suspension-guidelines) + // for more information. + // + // Example of an ErrorInfo when calling Cloud Storage service with the + // suspended consumer "projects/123": + // + // { "reason": "CONSUMER_SUSPENDED" + // "domain": "googleapis.com" + // "metadata": { + // "consumer": "projects/123", + // "service": "storage.googleapis.com" + // } + // } + CONSUMER_SUSPENDED = 12; + + // The request is denied because the associated consumer is invalid. It may be + // in a bad format, cannot be found, or have been deleted. + // + // Example of an ErrorInfo when calling Cloud Storage service with the + // invalid consumer "projects/123": + // + // { "reason": "CONSUMER_INVALID" + // "domain": "googleapis.com" + // "metadata": { + // "consumer": "projects/123", + // "service": "storage.googleapis.com" + // } + // } + CONSUMER_INVALID = 14; + + // The request is denied because it violates [VPC Service + // Controls](https://cloud.google.com/vpc-service-controls/docs/overview). + // The 'uid' field is a random generated identifier that customer can use it + // to search the audit log for a request rejected by VPC Service Controls. For + // more information, please refer [VPC Service Controls + // Troubleshooting](https://cloud.google.com/vpc-service-controls/docs/troubleshooting#unique-id) + // + // Example of an ErrorInfo for a request calling Cloud Storage service is + // rejected by VPC Service Controls. + // + // { "reason": "SECURITY_POLICY_VIOLATED" + // "domain": "googleapis.com" + // "metadata": { + // "uid": "123456789abcde", + // "consumer": "projects/123", + // "service": "storage.googleapis.com" + // } + // } + SECURITY_POLICY_VIOLATED = 15; + + // The request is denied because the provided access token has expired. + // + // Example of an ErrorInfo when the request is calling Google APIs with an + // expired access token: + // + // { "reason": "ACCESS_TOKEN_EXPIRED" + // "domain": "googleapis.com" + // "metadata": {} + // } + ACCESS_TOKEN_EXPIRED = 16; +} diff --git a/third_party/googleapis/google/api/field_behavior.proto b/third_party/googleapis/google/api/field_behavior.proto index aa7127bf8..614b31a00 100644 --- a/third_party/googleapis/google/api/field_behavior.proto +++ b/third_party/googleapis/google/api/field_behavior.proto @@ -75,4 +75,10 @@ enum FieldBehavior { // This indicates that the field may be set once in a request to create a // resource, but may not be changed thereafter. IMMUTABLE = 5; + + // Denotes that a (repeated) field is an unordered list. + // This indicates that the service may provide the elements of the list + // in any arbitrary order, rather than the order the user originally + // provided. Additionally, the list's order may or may not be stable. + UNORDERED_LIST = 6; } diff --git a/third_party/googleapis/google/api/logging.proto b/third_party/googleapis/google/api/logging.proto index e9ae9bf89..9009d5901 100644 --- a/third_party/googleapis/google/api/logging.proto +++ b/third_party/googleapis/google/api/logging.proto @@ -32,14 +32,14 @@ option objc_class_prefix = "GAPI"; // monitored_resources: // - type: library.googleapis.com/branch // labels: -// - key: /city +// - key: city // description: The city where the library branch is located in. -// - key: /name +// - key: name // description: The name of the branch. // logs: // - name: activity_history // labels: -// - key: /customer_id +// - key: customer_id // - name: purchase_history // logging: // producer_destinations: diff --git a/third_party/googleapis/google/api/metric.proto b/third_party/googleapis/google/api/metric.proto index a830405d8..111a602bb 100644 --- a/third_party/googleapis/google/api/metric.proto +++ b/third_party/googleapis/google/api/metric.proto @@ -128,11 +128,11 @@ message MetricDescriptor { // if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` // defines the representation of the stored metric values. // - // Different systems may scale the values to be more easily displayed (so a - // value of `0.02KBy` _might_ be displayed as `20By`, and a value of - // `3523KBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is - // `KBy`, then the value of the metric is always in thousands of bytes, no - // matter how it may be displayed.. + // Different systems might scale the values to be more easily displayed (so a + // value of `0.02kBy` _might_ be displayed as `20By`, and a value of + // `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is + // `kBy`, then the value of the metric is always in thousands of bytes, no + // matter how it might be displayed. // // If you want a custom metric to record the exact number of CPU-seconds used // by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is @@ -145,7 +145,7 @@ message MetricDescriptor { // or use `Kis{CPU}` and write `11.723` (which is `12005/1024`). // // The supported units are a subset of [The Unified Code for Units of - // Measure](http://unitsofmeasure.org/ucum.html) standard: + // Measure](https://unitsofmeasure.org/ucum.html) standard: // // **Basic units (UNIT)** // diff --git a/third_party/googleapis/google/api/service.proto b/third_party/googleapis/google/api/service.proto index eccd1cac6..0b19a688c 100644 --- a/third_party/googleapis/google/api/service.proto +++ b/third_party/googleapis/google/api/service.proto @@ -70,27 +70,24 @@ option objc_class_prefix = "GAPI"; // requirements: // provider_id: google_calendar_auth message Service { - // This field is obsolete. Its value must be set to `3`. - google.protobuf.UInt32Value config_version = 20; - // The service name, which is a DNS-like logical identifier for the // service, such as `calendar.googleapis.com`. The service name // typically goes through DNS verification to make sure the owner // of the service also owns the DNS name. string name = 1; - // A unique ID for a specific instance of this message, typically assigned - // by the client for tracking purpose. Must be no longer than 63 characters - // and only lower case letters, digits, '.', '_' and '-' are allowed. If - // empty, the server may choose to generate one instead. - string id = 33; - // The product title for this service. string title = 2; // The Google project that owns this service. string producer_project_id = 22; + // A unique ID for a specific instance of this message, typically assigned + // by the client for tracking purpose. Must be no longer than 63 characters + // and only lower case letters, digits, '.', '_' and '-' are allowed. If + // empty, the server may choose to generate one instead. + string id = 33; + // A list of API interfaces exported by this service. Only the `name` field // of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration // author, as the remaining fields will be derived from the IDL during the @@ -170,4 +167,7 @@ message Service { // Output only. The source information for this configuration if available. SourceInfo source_info = 37; + + // Deprecated. The service config compiler always sets this field to `3`. + google.protobuf.UInt32Value config_version = 20; } diff --git a/third_party/googleapis/google/api/serviceconfig.yaml b/third_party/googleapis/google/api/serviceconfig.yaml index 6d883d428..b7b8c2c19 100644 --- a/third_party/googleapis/google/api/serviceconfig.yaml +++ b/third_party/googleapis/google/api/serviceconfig.yaml @@ -1,5 +1,5 @@ type: google.api.Service -config_version: 1 +config_version: 3 name: serviceconfig.googleapis.com title: Service Config API @@ -18,6 +18,7 @@ types: - name: google.api.Service enums: +- name: google.api.ErrorReason - name: google.api.FieldBehavior documentation: diff --git a/third_party/googleapis/google/api/servicecontrol/v1/BUILD.bazel b/third_party/googleapis/google/api/servicecontrol/v1/BUILD.bazel index 5d5326ebd..74a495a1a 100644 --- a/third_party/googleapis/google/api/servicecontrol/v1/BUILD.bazel +++ b/third_party/googleapis/google/api/servicecontrol/v1/BUILD.bazel @@ -1,4 +1,13 @@ # This file was automatically generated by BuildFileGenerator +# https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/bazel + +# Most of the manual changes to this file will be overwritten. +# It's **only** allowed to change the following rule attribute values: +# - names of *_gapic_assembly_* rules +# - certain parameters of *_gapic_library rules, including but not limited to: +# * extra_protoc_parameters +# * extra_protoc_file_parameters +# The complete list of preserved parameters can be found in the source code. # This is an API workspace, having public visibility by default makes perfect sense. package(default_visibility = ["//visibility:public"]) @@ -7,6 +16,7 @@ package(default_visibility = ["//visibility:public"]) # Common ############################################################################## load("@rules_proto//proto:defs.bzl", "proto_library") +load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info") proto_library( name = "servicecontrol_proto", @@ -32,14 +42,311 @@ proto_library( ], ) +proto_library_with_info( + name = "servicecontrol_proto_with_info", + deps = [ + ":servicecontrol_proto", + "//google/cloud:common_resources_proto", + ], +) + ############################################################################## -# C++ +# Java +############################################################################## +# load( +# "@com_google_googleapis_imports//:imports.bzl", +# "java_gapic_assembly_gradle_pkg", +# "java_gapic_library", +# "java_gapic_test", +# "java_grpc_library", +# "java_proto_library", +# ) + +# java_proto_library( +# name = "servicecontrol_java_proto", +# deps = [":servicecontrol_proto"], +# ) + +# java_grpc_library( +# name = "servicecontrol_java_grpc", +# srcs = [":servicecontrol_proto"], +# deps = [":servicecontrol_java_proto"], +# ) + +# java_gapic_library( +# name = "servicecontrol_java_gapic", +# srcs = [":servicecontrol_proto_with_info"], +# grpc_service_config = None, +# package = "google.api.servicecontrol.v1", +# test_deps = [ +# ":servicecontrol_java_grpc", +# ], +# deps = [ +# ":servicecontrol_java_proto", +# ], +# ) + +# java_gapic_test( +# name = "servicecontrol_java_gapic_test_suite", +# test_classes = [ + +# ], +# runtime_deps = [":servicecontrol_java_gapic_test"], +# ) + +# # Open Source Packages +# java_gapic_assembly_gradle_pkg( +# name = "google-cloud-api-servicecontrol-v1-java", +# deps = [ +# ":servicecontrol_java_gapic", +# ":servicecontrol_java_grpc", +# ":servicecontrol_java_proto", +# ":servicecontrol_proto", +# ], +# ) + +############################################################################## +# Go +############################################################################## +# load( +# "@com_google_googleapis_imports//:imports.bzl", +# "go_gapic_assembly_pkg", +# "go_gapic_library", +# "go_proto_library", +# "go_test", +# ) + +# go_proto_library( +# name = "servicecontrol_go_proto", +# compilers = ["@io_bazel_rules_go//proto:go_grpc"], +# importpath = "google.golang.org/genproto/googleapis/api/servicecontrol/v1", +# protos = [":servicecontrol_proto"], +# deps = [ +# "//google/api:annotations_go_proto", +# "//google/logging/type:type_proto", +# "//google/rpc:status_go_proto", +# ], +# ) + +# go_gapic_library( +# name = "servicecontrol_go_gapic", +# srcs = [":servicecontrol_proto_with_info"], +# grpc_service_config = None, +# importpath = "cloud.google.com/go/api/servicecontrol/apiv1;servicecontrol", +# service_yaml = "servicecontrol.yaml", +# deps = [ +# ":servicecontrol_go_proto", +# "@io_bazel_rules_go//proto/wkt:duration_go_proto", +# ], +# ) + +# go_test( +# name = "servicecontrol_go_gapic_test", +# srcs = [":servicecontrol_go_gapic_srcjar_test"], +# embed = [":servicecontrol_go_gapic"], +# importpath = "cloud.google.com/go/api/servicecontrol/apiv1", +# ) + +# # Open Source Packages +# go_gapic_assembly_pkg( +# name = "gapi-cloud-api-servicecontrol-v1-go", +# deps = [ +# ":servicecontrol_go_gapic", +# ":servicecontrol_go_gapic_srcjar-test.srcjar", +# ":servicecontrol_go_proto", +# ], +# ) + +############################################################################## +# Python +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "py_gapic_assembly_pkg", + "py_gapic_library", +) + +py_gapic_library( + name = "servicecontrol_py_gapic", + srcs = [":servicecontrol_proto"], + grpc_service_config = None, +) + +# Open Source Packages +py_gapic_assembly_pkg( + name = "api-servicecontrol-v1-py", + deps = [ + ":servicecontrol_py_gapic", + ], +) + +############################################################################## +# PHP +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "php_gapic_assembly_pkg", + "php_gapic_library", + "php_grpc_library", + "php_proto_library", +) + +php_proto_library( + name = "servicecontrol_php_proto", + deps = [":servicecontrol_proto"], +) + +php_grpc_library( + name = "servicecontrol_php_grpc", + srcs = [":servicecontrol_proto"], + deps = [":servicecontrol_php_proto"], +) + +php_gapic_library( + name = "servicecontrol_php_gapic", + src = ":servicecontrol_proto_with_info", + gapic_yaml = "servicecontrol_gapic.yaml", + grpc_service_config = None, + package = "google.api.servicecontrol.v1", + service_yaml = "servicecontrol.yaml", + deps = [ + ":servicecontrol_php_grpc", + ":servicecontrol_php_proto", + ], +) + +# Open Source Packages +php_gapic_assembly_pkg( + name = "google-cloud-api-servicecontrol-v1-php", + deps = [ + ":servicecontrol_php_gapic", + ":servicecontrol_php_grpc", + ":servicecontrol_php_proto", + ], +) + ############################################################################## -# Put your C++ code here -load("@com_google_googleapis_imports//:imports.bzl", "cc_proto_library") -cc_proto_library( - name = "servicecontrol_cc_proto", +# Node.js +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", +) + +nodejs_gapic_library( + name = "servicecontrol_nodejs_gapic", + package_name = "@google-cloud/service-control", + src = ":servicecontrol_proto_with_info", + extra_protoc_parameters = ["metadata"], + grpc_service_config = None, + package = "google.api.servicecontrol.v1", + service_yaml = "servicecontrol.yaml", + deps = [], +) + +nodejs_gapic_assembly_pkg( + name = "api-servicecontrol-v1-nodejs", deps = [ + ":servicecontrol_nodejs_gapic", ":servicecontrol_proto", ], ) + +############################################################################## +# Ruby +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "ruby_gapic_assembly_pkg", + "ruby_cloud_gapic_library", + "ruby_grpc_library", + "ruby_proto_library", +) + +ruby_proto_library( + name = "servicecontrol_ruby_proto", + deps = [":servicecontrol_proto"], +) + +ruby_grpc_library( + name = "servicecontrol_ruby_grpc", + srcs = [":servicecontrol_proto"], + deps = [":servicecontrol_ruby_proto"], +) + +ruby_cloud_gapic_library( + name = "servicecontrol_ruby_gapic", + srcs = [":servicecontrol_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-service_control-v1", + "ruby-cloud-env-prefix=SERVICE_CONTROL", + "ruby-cloud-product-url=https://cloud.google.com/service-infrastructure/docs/overview/", + "ruby-cloud-api-id=servicecontrol.googleapis.com", + "ruby-cloud-api-shortname=servicecontrol", + ], + ruby_cloud_description = "The Service Control API provides control plane functionality to managed services, such as logging, monitoring, and status checks.", + ruby_cloud_title = "Service Control API V1", + deps = [ + ":servicecontrol_ruby_grpc", + ":servicecontrol_ruby_proto", + ], +) + +# Open Source Packages +ruby_gapic_assembly_pkg( + name = "google-cloud-api-servicecontrol-v1-ruby", + deps = [ + ":servicecontrol_ruby_gapic", + ":servicecontrol_ruby_grpc", + ":servicecontrol_ruby_proto", + ], +) + +############################################################################## +# C# +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "csharp_gapic_assembly_pkg", + "csharp_gapic_library", + "csharp_grpc_library", + "csharp_proto_library", +) + +csharp_proto_library( + name = "servicecontrol_csharp_proto", + deps = [":servicecontrol_proto"], +) + +csharp_grpc_library( + name = "servicecontrol_csharp_grpc", + srcs = [":servicecontrol_proto"], + deps = [":servicecontrol_csharp_proto"], +) + +csharp_gapic_library( + name = "servicecontrol_csharp_gapic", + srcs = [":servicecontrol_proto_with_info"], + common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = None, + deps = [ + ":servicecontrol_csharp_grpc", + ":servicecontrol_csharp_proto", + ], +) + +# Open Source Packages +csharp_gapic_assembly_pkg( + name = "google-cloud-api-servicecontrol-v1-csharp", + deps = [ + ":servicecontrol_csharp_gapic", + ":servicecontrol_csharp_grpc", + ":servicecontrol_csharp_proto", + ], +) + +############################################################################## +# C++ +############################################################################## +# Put your C++ rules here diff --git a/third_party/googleapis/google/api/servicecontrol/v1/check_error.proto b/third_party/googleapis/google/api/servicecontrol/v1/check_error.proto index 2dd777c40..b165ca71e 100644 --- a/third_party/googleapis/google/api/servicecontrol/v1/check_error.proto +++ b/third_party/googleapis/google/api/servicecontrol/v1/check_error.proto @@ -19,10 +19,13 @@ package google.api.servicecontrol.v1; import "google/rpc/status.proto"; option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.ServiceControl.V1"; option go_package = "google.golang.org/genproto/googleapis/api/servicecontrol/v1;servicecontrol"; option java_multiple_files = true; option java_outer_classname = "CheckErrorProto"; option java_package = "com.google.api.servicecontrol.v1"; +option php_namespace = "Google\\Cloud\\ServiceControl\\V1"; +option ruby_package = "Google::Cloud::ServiceControl::V1"; // Defines the errors to be returned in // [google.api.servicecontrol.v1.CheckResponse.check_errors][google.api.servicecontrol.v1.CheckResponse.check_errors]. diff --git a/third_party/googleapis/google/api/servicecontrol/v1/distribution.proto b/third_party/googleapis/google/api/servicecontrol/v1/distribution.proto index 00863e707..91f833874 100644 --- a/third_party/googleapis/google/api/servicecontrol/v1/distribution.proto +++ b/third_party/googleapis/google/api/servicecontrol/v1/distribution.proto @@ -17,10 +17,13 @@ syntax = "proto3"; package google.api.servicecontrol.v1; option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.ServiceControl.V1"; option go_package = "google.golang.org/genproto/googleapis/api/servicecontrol/v1;servicecontrol"; option java_multiple_files = true; option java_outer_classname = "DistributionProto"; option java_package = "com.google.api.servicecontrol.v1"; +option php_namespace = "Google\\Cloud\\ServiceControl\\V1"; +option ruby_package = "Google::Cloud::ServiceControl::V1"; // Distribution represents a frequency distribution of double-valued sample // points. It contains the size of the population of sample points plus diff --git a/third_party/googleapis/google/api/servicecontrol/v1/http_request.proto b/third_party/googleapis/google/api/servicecontrol/v1/http_request.proto index 73e3c02a1..ce1d5fb43 100644 --- a/third_party/googleapis/google/api/servicecontrol/v1/http_request.proto +++ b/third_party/googleapis/google/api/servicecontrol/v1/http_request.proto @@ -18,10 +18,13 @@ package google.api.servicecontrol.v1; import "google/protobuf/duration.proto"; +option csharp_namespace = "Google.Cloud.ServiceControl.V1"; option go_package = "google.golang.org/genproto/googleapis/api/servicecontrol/v1;servicecontrol"; option java_multiple_files = true; option java_outer_classname = "HttpRequestProto"; option java_package = "com.google.api.servicecontrol.v1"; +option php_namespace = "Google\\Cloud\\ServiceControl\\V1"; +option ruby_package = "Google::Cloud::ServiceControl::V1"; // A common proto for logging HTTP requests. Only contains semantics // defined by the HTTP specification. Product-specific logging diff --git a/third_party/googleapis/google/api/servicecontrol/v1/log_entry.proto b/third_party/googleapis/google/api/servicecontrol/v1/log_entry.proto index 32bdc4fc7..c89f4617c 100644 --- a/third_party/googleapis/google/api/servicecontrol/v1/log_entry.proto +++ b/third_party/googleapis/google/api/servicecontrol/v1/log_entry.proto @@ -22,10 +22,13 @@ import "google/protobuf/any.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; +option csharp_namespace = "Google.Cloud.ServiceControl.V1"; option go_package = "google.golang.org/genproto/googleapis/api/servicecontrol/v1;servicecontrol"; option java_multiple_files = true; option java_outer_classname = "LogEntryProto"; option java_package = "com.google.api.servicecontrol.v1"; +option php_namespace = "Google\\Cloud\\ServiceControl\\V1"; +option ruby_package = "Google::Cloud::ServiceControl::V1"; // An individual log entry. message LogEntry { diff --git a/third_party/googleapis/google/api/servicecontrol/v1/metric_value.proto b/third_party/googleapis/google/api/servicecontrol/v1/metric_value.proto index 76cdbcaae..e160e795b 100644 --- a/third_party/googleapis/google/api/servicecontrol/v1/metric_value.proto +++ b/third_party/googleapis/google/api/servicecontrol/v1/metric_value.proto @@ -20,10 +20,13 @@ import "google/api/servicecontrol/v1/distribution.proto"; import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.ServiceControl.V1"; option go_package = "google.golang.org/genproto/googleapis/api/servicecontrol/v1;servicecontrol"; option java_multiple_files = true; option java_outer_classname = "MetricValueSetProto"; option java_package = "com.google.api.servicecontrol.v1"; +option php_namespace = "Google\\Cloud\\ServiceControl\\V1"; +option ruby_package = "Google::Cloud::ServiceControl::V1"; // Represents a single metric value. message MetricValue { diff --git a/third_party/googleapis/google/api/servicecontrol/v1/operation.proto b/third_party/googleapis/google/api/servicecontrol/v1/operation.proto index dfa01206a..4bc67177d 100644 --- a/third_party/googleapis/google/api/servicecontrol/v1/operation.proto +++ b/third_party/googleapis/google/api/servicecontrol/v1/operation.proto @@ -22,10 +22,13 @@ import "google/protobuf/any.proto"; import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.ServiceControl.V1"; option go_package = "google.golang.org/genproto/googleapis/api/servicecontrol/v1;servicecontrol"; option java_multiple_files = true; option java_outer_classname = "OperationProto"; option java_package = "com.google.api.servicecontrol.v1"; +option php_namespace = "Google\\Cloud\\ServiceControl\\V1"; +option ruby_package = "Google::Cloud::ServiceControl::V1"; // Represents information regarding an operation. message Operation { diff --git a/third_party/googleapis/google/api/servicecontrol/v1/quota_controller.proto b/third_party/googleapis/google/api/servicecontrol/v1/quota_controller.proto index d1b8e72a9..8882c529b 100644 --- a/third_party/googleapis/google/api/servicecontrol/v1/quota_controller.proto +++ b/third_party/googleapis/google/api/servicecontrol/v1/quota_controller.proto @@ -21,10 +21,13 @@ import "google/api/servicecontrol/v1/metric_value.proto"; import "google/api/client.proto"; option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.ServiceControl.V1"; option go_package = "google.golang.org/genproto/googleapis/api/servicecontrol/v1;servicecontrol"; option java_multiple_files = true; option java_outer_classname = "QuotaControllerProto"; option java_package = "com.google.api.servicecontrol.v1"; +option php_namespace = "Google\\Cloud\\ServiceControl\\V1"; +option ruby_package = "Google::Cloud::ServiceControl::V1"; // [Google Quota Control API](/service-control/overview) // diff --git a/third_party/googleapis/google/api/servicecontrol/v1/service_controller.proto b/third_party/googleapis/google/api/servicecontrol/v1/service_controller.proto index a3792116f..4dbe7c724 100644 --- a/third_party/googleapis/google/api/servicecontrol/v1/service_controller.proto +++ b/third_party/googleapis/google/api/servicecontrol/v1/service_controller.proto @@ -24,11 +24,14 @@ import "google/rpc/status.proto"; import "google/api/client.proto"; option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.ServiceControl.V1"; option go_package = "google.golang.org/genproto/googleapis/api/servicecontrol/v1;servicecontrol"; option java_multiple_files = true; option java_outer_classname = "ServiceControllerProto"; option java_package = "com.google.api.servicecontrol.v1"; option objc_class_prefix = "GASC"; +option php_namespace = "Google\\Cloud\\ServiceControl\\V1"; +option ruby_package = "Google::Cloud::ServiceControl::V1"; // [Google Service Control API](/service-control/overview) // diff --git a/third_party/googleapis/google/api/servicecontrol/v1/servicecontrol_gapic.yaml b/third_party/googleapis/google/api/servicecontrol/v1/servicecontrol_gapic.yaml new file mode 100644 index 000000000..8b0246fd2 --- /dev/null +++ b/third_party/googleapis/google/api/servicecontrol/v1/servicecontrol_gapic.yaml @@ -0,0 +1,3 @@ +type: com.google.api.codegen.ConfigProto +config_schema_version: 2.0.0 +language_settings: diff --git a/third_party/googleapis/google/api/servicemanagement/v1/BUILD.bazel b/third_party/googleapis/google/api/servicemanagement/v1/BUILD.bazel index 28bebe9cf..305573cab 100644 --- a/third_party/googleapis/google/api/servicemanagement/v1/BUILD.bazel +++ b/third_party/googleapis/google/api/servicemanagement/v1/BUILD.bazel @@ -64,11 +64,9 @@ java_grpc_library( java_gapic_library( name = "servicemanagement_java_gapic", - src = ":servicemanagement_proto_with_info", + srcs = [":servicemanagement_proto_with_info"], gapic_yaml = "servicemanagement_gapic.yaml", grpc_service_config = "servicemanagement_grpc_service_config.json", - package = "google.api.servicemanagement.v1", - service_yaml = "servicemanagement_v1.yaml", test_deps = [ ":servicemanagement_java_grpc", ], @@ -132,9 +130,9 @@ go_gapic_library( deps = [ ":servicemanagement_go_proto", "//google/api:serviceconfig_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", "@io_bazel_rules_go//proto/wkt:any_go_proto", ], ) @@ -161,55 +159,14 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "servicemanagement_moved_proto", - srcs = [":servicemanagement_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:config_change_proto", - "//google/api:field_behavior_proto", - "//google/api:metric_proto", - "//google/api:quota_proto", - "//google/api:service_proto", - "//google/longrunning:operations_proto", - "//google/rpc:status_proto", - "@com_google_protobuf//:any_proto", - "@com_google_protobuf//:field_mask_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -py_proto_library( - name = "servicemanagement_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":servicemanagement_moved_proto"], -) - -py_grpc_library( - name = "servicemanagement_py_grpc", - srcs = [":servicemanagement_moved_proto"], - deps = [":servicemanagement_py_proto"], ) py_gapic_library( name = "servicemanagement_py_gapic", - src = ":servicemanagement_proto_with_info", - gapic_yaml = "servicemanagement_gapic.yaml", + srcs = [":servicemanagement_proto"], grpc_service_config = "servicemanagement_grpc_service_config.json", - package = "google.api.servicemanagement.v1", - service_yaml = "servicemanagement_v1.yaml", - deps = [ - ":servicemanagement_py_grpc", - ":servicemanagement_py_proto", - ], ) # Open Source Packages @@ -217,8 +174,6 @@ py_gapic_assembly_pkg( name = "api-servicemanagement-v1-py", deps = [ ":servicemanagement_py_gapic", - ":servicemanagement_py_grpc", - ":servicemanagement_py_proto", ], ) @@ -279,6 +234,7 @@ load( nodejs_gapic_library( name = "servicemanagement_nodejs_gapic", src = ":servicemanagement_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "servicemanagement_grpc_service_config.json", package = "google.api.servicemanagement.v1", service_yaml = "servicemanagement_v1.yaml", @@ -299,7 +255,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -315,12 +271,18 @@ ruby_grpc_library( deps = [":servicemanagement_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "servicemanagement_ruby_gapic", - src = ":servicemanagement_proto_with_info", - gapic_yaml = "servicemanagement_gapic.yaml", - package = "google.api.servicemanagement.v1", - service_yaml = "servicemanagement_v1.yaml", + srcs = [":servicemanagement_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-service_management-v1", + "ruby-cloud-env-prefix=SERVICE_MANAGEMENT", + "ruby-cloud-product-url=https://cloud.google.com/service-infrastructure/docs/overview/", + "ruby-cloud-api-id=servicemanagement.googleapis.com", + "ruby-cloud-api-shortname=servicemanagement", + ], + ruby_cloud_description = "Google Service Management allows service producers to publish their services on Google Cloud Platform so that they can be discovered and used by service consumers.", + ruby_cloud_title = "Service Management API V1", deps = [ ":servicemanagement_ruby_grpc", ":servicemanagement_ruby_proto", @@ -362,8 +324,8 @@ csharp_grpc_library( csharp_gapic_library( name = "servicemanagement_csharp_gapic", srcs = [":servicemanagement_proto_with_info"], - grpc_service_config = "servicemanagement_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "servicemanagement_grpc_service_config.json", deps = [ ":servicemanagement_csharp_grpc", ":servicemanagement_csharp_proto", diff --git a/third_party/googleapis/google/api/servicemanagement/v1/resources.proto b/third_party/googleapis/google/api/servicemanagement/v1/resources.proto index d7eee52c9..37ac30099 100644 --- a/third_party/googleapis/google/api/servicemanagement/v1/resources.proto +++ b/third_party/googleapis/google/api/servicemanagement/v1/resources.proto @@ -36,6 +36,7 @@ option java_outer_classname = "ResourcesProto"; option java_package = "com.google.api.servicemanagement.v1"; option objc_class_prefix = "GASM"; option php_namespace = "Google\\Cloud\\ServiceManagement\\V1"; +option ruby_package = "Google::Cloud::ServiceManagement::V1"; // The full representation of a Service that is managed by // Google Service Management. diff --git a/third_party/googleapis/google/api/servicemanagement/v1/servicemanagement_gapic.legacy.yaml b/third_party/googleapis/google/api/servicemanagement/v1/servicemanagement_gapic.legacy.yaml deleted file mode 100644 index 7086218c1..000000000 --- a/third_party/googleapis/google/api/servicemanagement/v1/servicemanagement_gapic.legacy.yaml +++ /dev/null @@ -1,300 +0,0 @@ -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.api.servicemanagement.v1 - python: - package_name: google.cloud.api.servicemanagement_v1.gapic - go: - package_name: cloud.google.com/go/api/servicemanagement/apiv1 - csharp: - package_name: Google.Api.Servicemanagement.V1 - ruby: - package_name: Google::Cloud::Api::Servicemanagement::V1 - php: - package_name: Google\Cloud\Api\Servicemanagement\V1 - nodejs: - package_name: servicemanagement.v1 -# A list of API interface configurations. -interfaces: -- name: google.api.servicemanagement.v1.ServiceManager - # 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. - smoke_test: - method: ListServices - init_fields: - - producer_project_id=$PROJECT_ID - collections: [] - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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: ListServices - flattening: - groups: - - parameters: - - producer_project_id - - consumer_id - required_fields: - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: services - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 10000 - - name: GetService - flattening: - groups: - - parameters: - - service_name - required_fields: - - service_name - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 10000 - - name: CreateService - flattening: - groups: - - parameters: - - service - required_fields: - - service - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 20000 - - name: DeleteService - flattening: - groups: - - parameters: - - service_name - required_fields: - - service_name - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - - name: UndeleteService - flattening: - groups: - - parameters: - - service_name - required_fields: - - service_name - retry_codes_name: non_idempotent - retry_params_name: default - # REVIEW: Could this operation take a long time? - timeout_millis: 60000 - - name: ListServiceConfigs - flattening: - groups: - - parameters: - - service_name - required_fields: - - service_name - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: service_configs - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 10000 - - name: GetServiceConfig - flattening: - groups: - - parameters: - - service_name - - config_id - - view - required_fields: - - service_name - - config_id - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 10000 - - name: CreateServiceConfig - flattening: - groups: - - parameters: - - service_name - - service_config - required_fields: - - service_name - - service_config - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 20000 - - name: SubmitConfigSource - flattening: - groups: - - parameters: - - service_name - - config_source - - validate_only - required_fields: - - service_name - - config_source - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 10000 - - name: ListServiceRollouts - flattening: - groups: - - parameters: - - service_name - - filter - required_fields: - - service_name - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: rollouts - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 10000 - - name: GetServiceRollout - flattening: - groups: - - parameters: - - service_name - - rollout_id - required_fields: - - service_name - - rollout_id - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 10000 - - name: CreateServiceRollout - flattening: - groups: - - parameters: - - service_name - - rollout - required_fields: - - service_name - - rollout - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 10000 - - name: GenerateConfigReport - flattening: - groups: - - parameters: - - new_config - - old_config - required_fields: - - new_config - - old_config - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 10000 - - name: EnableService - flattening: - groups: - - parameters: - - service_name - - consumer_id - required_fields: - - service_name - - consumer_id - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 10000 - - name: DisableService - flattening: - groups: - - parameters: - - service_name - - consumer_id - required_fields: - - service_name - - consumer_id - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 10000 diff --git a/third_party/googleapis/google/api/servicemanagement/v1/servicemanager.proto b/third_party/googleapis/google/api/servicemanagement/v1/servicemanager.proto index 6069b8176..f94739fbe 100644 --- a/third_party/googleapis/google/api/servicemanagement/v1/servicemanager.proto +++ b/third_party/googleapis/google/api/servicemanagement/v1/servicemanager.proto @@ -33,6 +33,7 @@ option java_outer_classname = "ServiceManagerProto"; option java_package = "com.google.api.servicemanagement.v1"; option objc_class_prefix = "GASM"; option php_namespace = "Google\\Cloud\\ServiceManagement\\V1"; +option ruby_package = "Google::Cloud::ServiceManagement::V1"; // [Google Service Management API](/service-management/overview) service ServiceManager { diff --git a/third_party/googleapis/google/api/usage.proto b/third_party/googleapis/google/api/usage.proto index 14d34c44e..b37dff785 100644 --- a/third_party/googleapis/google/api/usage.proto +++ b/third_party/googleapis/google/api/usage.proto @@ -27,6 +27,12 @@ message Usage { // Requirements that must be satisfied before a consumer project can use the // service. Each requirement is of the form /; // for example 'serviceusage.googleapis.com/billing-enabled'. + // + // For Google APIs, a Terms of Service requirement must be included here. + // Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud". + // Other Google APIs should include + // "serviceusage.googleapis.com/tos/universal". Additional ToS can be + // included based on the business needs. repeated string requirements = 1; // A list of usage rules that apply to individual API methods. diff --git a/third_party/googleapis/google/appengine/v1/app_yaml.proto b/third_party/googleapis/google/appengine/v1/app_yaml.proto index a2de49b2d..e64aba6aa 100644 --- a/third_party/googleapis/google/appengine/v1/app_yaml.proto +++ b/third_party/googleapis/google/appengine/v1/app_yaml.proto @@ -19,10 +19,13 @@ package google.appengine.v1; import "google/protobuf/duration.proto"; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AppEngine.V1"; option go_package = "google.golang.org/genproto/googleapis/appengine/v1;appengine"; option java_multiple_files = true; option java_outer_classname = "AppYamlProto"; option java_package = "com.google.appengine.v1"; +option php_namespace = "Google\\Cloud\\AppEngine\\V1"; +option ruby_package = "Google::Cloud::AppEngine::V1"; // [Google Cloud Endpoints](https://cloud.google.com/appengine/docs/python/endpoints/) // configuration for API handlers. diff --git a/third_party/googleapis/google/appengine/v1/appengine.proto b/third_party/googleapis/google/appengine/v1/appengine.proto index 322b5cfbc..9fe4a7671 100644 --- a/third_party/googleapis/google/appengine/v1/appengine.proto +++ b/third_party/googleapis/google/appengine/v1/appengine.proto @@ -30,10 +30,13 @@ import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/api/client.proto"; +option csharp_namespace = "Google.Cloud.AppEngine.V1"; option go_package = "google.golang.org/genproto/googleapis/appengine/v1;appengine"; option java_multiple_files = true; option java_outer_classname = "AppengineProto"; option java_package = "com.google.appengine.v1"; +option php_namespace = "Google\\Cloud\\AppEngine\\V1"; +option ruby_package = "Google::Cloud::AppEngine::V1"; // Manages App Engine applications. service Applications { diff --git a/third_party/googleapis/google/appengine/v1/application.proto b/third_party/googleapis/google/appengine/v1/application.proto index 95d88e487..a8038abd0 100644 --- a/third_party/googleapis/google/appengine/v1/application.proto +++ b/third_party/googleapis/google/appengine/v1/application.proto @@ -19,10 +19,13 @@ package google.appengine.v1; import "google/protobuf/duration.proto"; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AppEngine.V1"; option go_package = "google.golang.org/genproto/googleapis/appengine/v1;appengine"; option java_multiple_files = true; option java_outer_classname = "ApplicationProto"; option java_package = "com.google.appengine.v1"; +option php_namespace = "Google\\Cloud\\AppEngine\\V1"; +option ruby_package = "Google::Cloud::AppEngine::V1"; // An Application resource contains the top-level configuration of an App // Engine application. diff --git a/third_party/googleapis/google/appengine/v1/audit_data.proto b/third_party/googleapis/google/appengine/v1/audit_data.proto index 5a8d813af..101dd71c7 100644 --- a/third_party/googleapis/google/appengine/v1/audit_data.proto +++ b/third_party/googleapis/google/appengine/v1/audit_data.proto @@ -19,10 +19,13 @@ package google.appengine.v1; import "google/appengine/v1/appengine.proto"; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AppEngine.V1"; option go_package = "google.golang.org/genproto/googleapis/appengine/v1;appengine"; option java_multiple_files = true; option java_outer_classname = "AuditDataProto"; option java_package = "com.google.appengine.v1"; +option php_namespace = "Google\\Cloud\\AppEngine\\V1"; +option ruby_package = "Google::Cloud::AppEngine::V1"; // App Engine admin service audit log. message AuditData { diff --git a/third_party/googleapis/google/appengine/v1/certificate.proto b/third_party/googleapis/google/appengine/v1/certificate.proto index f8898027b..9ce5e72da 100644 --- a/third_party/googleapis/google/appengine/v1/certificate.proto +++ b/third_party/googleapis/google/appengine/v1/certificate.proto @@ -19,10 +19,13 @@ package google.appengine.v1; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AppEngine.V1"; option go_package = "google.golang.org/genproto/googleapis/appengine/v1;appengine"; option java_multiple_files = true; option java_outer_classname = "CertificateProto"; option java_package = "com.google.appengine.v1"; +option php_namespace = "Google\\Cloud\\AppEngine\\V1"; +option ruby_package = "Google::Cloud::AppEngine::V1"; // An SSL certificate that a user has been authorized to administer. A user // is authorized to administer any certificate that applies to one of their diff --git a/third_party/googleapis/google/appengine/v1/deploy.proto b/third_party/googleapis/google/appengine/v1/deploy.proto index 270e629f3..a4f2816ec 100644 --- a/third_party/googleapis/google/appengine/v1/deploy.proto +++ b/third_party/googleapis/google/appengine/v1/deploy.proto @@ -19,10 +19,13 @@ package google.appengine.v1; import "google/protobuf/duration.proto"; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AppEngine.V1"; option go_package = "google.golang.org/genproto/googleapis/appengine/v1;appengine"; option java_multiple_files = true; option java_outer_classname = "DeployProto"; option java_package = "com.google.appengine.v1"; +option php_namespace = "Google\\Cloud\\AppEngine\\V1"; +option ruby_package = "Google::Cloud::AppEngine::V1"; // Code and application artifacts used to deploy a version to App Engine. message Deployment { diff --git a/third_party/googleapis/google/appengine/v1/deployed_files.proto b/third_party/googleapis/google/appengine/v1/deployed_files.proto index fb4294b4e..b9024c867 100644 --- a/third_party/googleapis/google/appengine/v1/deployed_files.proto +++ b/third_party/googleapis/google/appengine/v1/deployed_files.proto @@ -18,7 +18,10 @@ package google.appengine.v1; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AppEngine.V1"; option go_package = "google.golang.org/genproto/googleapis/appengine/v1;appengine"; option java_multiple_files = true; option java_outer_classname = "DeployedFilesProto"; option java_package = "com.google.appengine.v1"; +option php_namespace = "Google\\Cloud\\AppEngine\\V1"; +option ruby_package = "Google::Cloud::AppEngine::V1"; diff --git a/third_party/googleapis/google/appengine/v1/domain.proto b/third_party/googleapis/google/appengine/v1/domain.proto index 1d01addb3..70951382c 100644 --- a/third_party/googleapis/google/appengine/v1/domain.proto +++ b/third_party/googleapis/google/appengine/v1/domain.proto @@ -18,10 +18,13 @@ package google.appengine.v1; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AppEngine.V1"; option go_package = "google.golang.org/genproto/googleapis/appengine/v1;appengine"; option java_multiple_files = true; option java_outer_classname = "DomainProto"; option java_package = "com.google.appengine.v1"; +option php_namespace = "Google\\Cloud\\AppEngine\\V1"; +option ruby_package = "Google::Cloud::AppEngine::V1"; // A domain that a user has been authorized to administer. To authorize use // of a domain, verify ownership via diff --git a/third_party/googleapis/google/appengine/v1/domain_mapping.proto b/third_party/googleapis/google/appengine/v1/domain_mapping.proto index 54380dba3..d0cfec75b 100644 --- a/third_party/googleapis/google/appengine/v1/domain_mapping.proto +++ b/third_party/googleapis/google/appengine/v1/domain_mapping.proto @@ -18,10 +18,13 @@ package google.appengine.v1; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AppEngine.V1"; option go_package = "google.golang.org/genproto/googleapis/appengine/v1;appengine"; option java_multiple_files = true; option java_outer_classname = "DomainMappingProto"; option java_package = "com.google.appengine.v1"; +option php_namespace = "Google\\Cloud\\AppEngine\\V1"; +option ruby_package = "Google::Cloud::AppEngine::V1"; // A domain serving an App Engine application. message DomainMapping { diff --git a/third_party/googleapis/google/appengine/v1/firewall.proto b/third_party/googleapis/google/appengine/v1/firewall.proto index c8daa2f58..ba4e96340 100644 --- a/third_party/googleapis/google/appengine/v1/firewall.proto +++ b/third_party/googleapis/google/appengine/v1/firewall.proto @@ -18,10 +18,13 @@ package google.appengine.v1; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AppEngine.V1"; option go_package = "google.golang.org/genproto/googleapis/appengine/v1;appengine"; option java_multiple_files = true; option java_outer_classname = "FirewallProto"; option java_package = "com.google.appengine.v1.firewall"; +option php_namespace = "Google\\Cloud\\AppEngine\\V1"; +option ruby_package = "Google::Cloud::AppEngine::V1"; // A single firewall rule that is evaluated against incoming traffic // and provides an action to take on matched requests. diff --git a/third_party/googleapis/google/appengine/v1/instance.proto b/third_party/googleapis/google/appengine/v1/instance.proto index 02f4784b8..ac0627fb6 100644 --- a/third_party/googleapis/google/appengine/v1/instance.proto +++ b/third_party/googleapis/google/appengine/v1/instance.proto @@ -19,10 +19,13 @@ package google.appengine.v1; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AppEngine.V1"; option go_package = "google.golang.org/genproto/googleapis/appengine/v1;appengine"; option java_multiple_files = true; option java_outer_classname = "InstanceProto"; option java_package = "com.google.appengine.v1"; +option php_namespace = "Google\\Cloud\\AppEngine\\V1"; +option ruby_package = "Google::Cloud::AppEngine::V1"; // An Instance resource is the computing unit that App Engine uses to // automatically scale an application. diff --git a/third_party/googleapis/google/appengine/v1/location.proto b/third_party/googleapis/google/appengine/v1/location.proto index 8f149e319..3b2bb9b51 100644 --- a/third_party/googleapis/google/appengine/v1/location.proto +++ b/third_party/googleapis/google/appengine/v1/location.proto @@ -18,10 +18,13 @@ package google.appengine.v1; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AppEngine.V1"; option go_package = "google.golang.org/genproto/googleapis/appengine/v1;appengine"; option java_multiple_files = true; option java_outer_classname = "LocationProto"; option java_package = "com.google.appengine.v1"; +option php_namespace = "Google\\Cloud\\AppEngine\\V1"; +option ruby_package = "Google::Cloud::AppEngine::V1"; // Metadata for the given [google.cloud.location.Location][google.cloud.location.Location]. message LocationMetadata { diff --git a/third_party/googleapis/google/appengine/v1/network_settings.proto b/third_party/googleapis/google/appengine/v1/network_settings.proto index 92a3a3c80..904eab2a7 100644 --- a/third_party/googleapis/google/appengine/v1/network_settings.proto +++ b/third_party/googleapis/google/appengine/v1/network_settings.proto @@ -18,7 +18,10 @@ package google.appengine.v1; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AppEngine.V1"; option go_package = "google.golang.org/genproto/googleapis/appengine/v1;appengine"; option java_multiple_files = true; option java_outer_classname = "NetworkSettingsProto"; option java_package = "com.google.appengine.v1"; +option php_namespace = "Google\\Cloud\\AppEngine\\V1"; +option ruby_package = "Google::Cloud::AppEngine::V1"; diff --git a/third_party/googleapis/google/appengine/v1/operation.proto b/third_party/googleapis/google/appengine/v1/operation.proto index 33ccb5332..eeafaba47 100644 --- a/third_party/googleapis/google/appengine/v1/operation.proto +++ b/third_party/googleapis/google/appengine/v1/operation.proto @@ -19,10 +19,13 @@ package google.appengine.v1; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AppEngine.V1"; option go_package = "google.golang.org/genproto/googleapis/appengine/v1;appengine"; option java_multiple_files = true; option java_outer_classname = "OperationProto"; option java_package = "com.google.appengine.v1"; +option php_namespace = "Google\\Cloud\\AppEngine\\V1"; +option ruby_package = "Google::Cloud::AppEngine::V1"; // Metadata for the given [google.longrunning.Operation][google.longrunning.Operation]. message OperationMetadataV1 { diff --git a/third_party/googleapis/google/appengine/v1/service.proto b/third_party/googleapis/google/appengine/v1/service.proto index b330f9718..0339da53a 100644 --- a/third_party/googleapis/google/appengine/v1/service.proto +++ b/third_party/googleapis/google/appengine/v1/service.proto @@ -18,10 +18,13 @@ package google.appengine.v1; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AppEngine.V1"; option go_package = "google.golang.org/genproto/googleapis/appengine/v1;appengine"; option java_multiple_files = true; option java_outer_classname = "ServiceProto"; option java_package = "com.google.appengine.v1"; +option php_namespace = "Google\\Cloud\\AppEngine\\V1"; +option ruby_package = "Google::Cloud::AppEngine::V1"; // A Service resource is a logical component of an application that can share // state and communicate in a secure fashion with other services. diff --git a/third_party/googleapis/google/appengine/v1/version.proto b/third_party/googleapis/google/appengine/v1/version.proto index f4159056d..bd7515c23 100644 --- a/third_party/googleapis/google/appengine/v1/version.proto +++ b/third_party/googleapis/google/appengine/v1/version.proto @@ -22,10 +22,13 @@ import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AppEngine.V1"; option go_package = "google.golang.org/genproto/googleapis/appengine/v1;appengine"; option java_multiple_files = true; option java_outer_classname = "VersionProto"; option java_package = "com.google.appengine.v1"; +option php_namespace = "Google\\Cloud\\AppEngine\\V1"; +option ruby_package = "Google::Cloud::AppEngine::V1"; // A Version resource is a specific set of source code and configuration files // that are deployed into a service. diff --git a/third_party/googleapis/google/appengine/v1beta/app_yaml.proto b/third_party/googleapis/google/appengine/v1beta/app_yaml.proto index 83792a1e9..6b8ecce72 100644 --- a/third_party/googleapis/google/appengine/v1beta/app_yaml.proto +++ b/third_party/googleapis/google/appengine/v1beta/app_yaml.proto @@ -19,10 +19,13 @@ package google.appengine.v1beta; import "google/protobuf/duration.proto"; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AppEngine.V1Beta"; option go_package = "google.golang.org/genproto/googleapis/appengine/v1beta;appengine"; option java_multiple_files = true; option java_outer_classname = "AppYamlProto"; option java_package = "com.google.appengine.v1beta"; +option php_namespace = "Google\\Cloud\\AppEngine\\V1beta"; +option ruby_package = "Google::Cloud::AppEngine::V1beta"; // [Google Cloud Endpoints](https://cloud.google.com/appengine/docs/python/endpoints/) // configuration for API handlers. diff --git a/third_party/googleapis/google/appengine/v1beta/appengine.proto b/third_party/googleapis/google/appengine/v1beta/appengine.proto index df75ca9dc..56fe88730 100644 --- a/third_party/googleapis/google/appengine/v1beta/appengine.proto +++ b/third_party/googleapis/google/appengine/v1beta/appengine.proto @@ -30,10 +30,13 @@ import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/api/client.proto"; +option csharp_namespace = "Google.Cloud.AppEngine.V1Beta"; option go_package = "google.golang.org/genproto/googleapis/appengine/v1beta;appengine"; option java_multiple_files = true; option java_outer_classname = "AppengineProto"; option java_package = "com.google.appengine.v1beta"; +option php_namespace = "Google\\Cloud\\AppEngine\\V1beta"; +option ruby_package = "Google::Cloud::AppEngine::V1beta"; // Manages App Engine applications. service Applications { diff --git a/third_party/googleapis/google/appengine/v1beta/application.proto b/third_party/googleapis/google/appengine/v1beta/application.proto index 0e89ed850..664fd7adc 100644 --- a/third_party/googleapis/google/appengine/v1beta/application.proto +++ b/third_party/googleapis/google/appengine/v1beta/application.proto @@ -19,10 +19,13 @@ package google.appengine.v1beta; import "google/protobuf/duration.proto"; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AppEngine.V1Beta"; option go_package = "google.golang.org/genproto/googleapis/appengine/v1beta;appengine"; option java_multiple_files = true; option java_outer_classname = "ApplicationProto"; option java_package = "com.google.appengine.v1beta"; +option php_namespace = "Google\\Cloud\\AppEngine\\V1beta"; +option ruby_package = "Google::Cloud::AppEngine::V1beta"; // An Application resource contains the top-level configuration of an App // Engine application. diff --git a/third_party/googleapis/google/appengine/v1beta/audit_data.proto b/third_party/googleapis/google/appengine/v1beta/audit_data.proto index 06b03e7cb..897154efc 100644 --- a/third_party/googleapis/google/appengine/v1beta/audit_data.proto +++ b/third_party/googleapis/google/appengine/v1beta/audit_data.proto @@ -19,10 +19,13 @@ package google.appengine.v1beta; import "google/appengine/v1beta/appengine.proto"; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AppEngine.V1Beta"; option go_package = "google.golang.org/genproto/googleapis/appengine/v1beta;appengine"; option java_multiple_files = true; option java_outer_classname = "AuditDataProto"; option java_package = "com.google.appengine.v1beta"; +option php_namespace = "Google\\Cloud\\AppEngine\\V1beta"; +option ruby_package = "Google::Cloud::AppEngine::V1beta"; // App Engine admin service audit log. message AuditData { diff --git a/third_party/googleapis/google/appengine/v1beta/certificate.proto b/third_party/googleapis/google/appengine/v1beta/certificate.proto index 1da811f41..f1ca1248b 100644 --- a/third_party/googleapis/google/appengine/v1beta/certificate.proto +++ b/third_party/googleapis/google/appengine/v1beta/certificate.proto @@ -19,10 +19,13 @@ package google.appengine.v1beta; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AppEngine.V1Beta"; option go_package = "google.golang.org/genproto/googleapis/appengine/v1beta;appengine"; option java_multiple_files = true; option java_outer_classname = "CertificateProto"; option java_package = "com.google.appengine.v1beta"; +option php_namespace = "Google\\Cloud\\AppEngine\\V1beta"; +option ruby_package = "Google::Cloud::AppEngine::V1beta"; // An SSL certificate that a user has been authorized to administer. A user // is authorized to administer any certificate that applies to one of their diff --git a/third_party/googleapis/google/appengine/v1beta/deploy.proto b/third_party/googleapis/google/appengine/v1beta/deploy.proto index 04e506ba0..54cd57d4d 100644 --- a/third_party/googleapis/google/appengine/v1beta/deploy.proto +++ b/third_party/googleapis/google/appengine/v1beta/deploy.proto @@ -19,10 +19,13 @@ package google.appengine.v1beta; import "google/protobuf/duration.proto"; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AppEngine.V1Beta"; option go_package = "google.golang.org/genproto/googleapis/appengine/v1beta;appengine"; option java_multiple_files = true; option java_outer_classname = "DeployProto"; option java_package = "com.google.appengine.v1beta"; +option php_namespace = "Google\\Cloud\\AppEngine\\V1beta"; +option ruby_package = "Google::Cloud::AppEngine::V1beta"; // Code and application artifacts used to deploy a version to App Engine. message Deployment { diff --git a/third_party/googleapis/google/appengine/v1beta/deployed_files.proto b/third_party/googleapis/google/appengine/v1beta/deployed_files.proto index f2b10bc99..894190506 100644 --- a/third_party/googleapis/google/appengine/v1beta/deployed_files.proto +++ b/third_party/googleapis/google/appengine/v1beta/deployed_files.proto @@ -18,7 +18,10 @@ package google.appengine.v1beta; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AppEngine.V1Beta"; option go_package = "google.golang.org/genproto/googleapis/appengine/v1beta;appengine"; option java_multiple_files = true; option java_outer_classname = "DeployedFilesProto"; option java_package = "com.google.appengine.v1beta"; +option php_namespace = "Google\\Cloud\\AppEngine\\V1beta"; +option ruby_package = "Google::Cloud::AppEngine::V1beta"; diff --git a/third_party/googleapis/google/appengine/v1beta/domain.proto b/third_party/googleapis/google/appengine/v1beta/domain.proto index 754798671..9b726f083 100644 --- a/third_party/googleapis/google/appengine/v1beta/domain.proto +++ b/third_party/googleapis/google/appengine/v1beta/domain.proto @@ -18,10 +18,13 @@ package google.appengine.v1beta; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AppEngine.V1Beta"; option go_package = "google.golang.org/genproto/googleapis/appengine/v1beta;appengine"; option java_multiple_files = true; option java_outer_classname = "DomainProto"; option java_package = "com.google.appengine.v1beta"; +option php_namespace = "Google\\Cloud\\AppEngine\\V1beta"; +option ruby_package = "Google::Cloud::AppEngine::V1beta"; // A domain that a user has been authorized to administer. To authorize use // of a domain, verify ownership via diff --git a/third_party/googleapis/google/appengine/v1beta/domain_mapping.proto b/third_party/googleapis/google/appengine/v1beta/domain_mapping.proto index 758efccb0..e5c2e3cee 100644 --- a/third_party/googleapis/google/appengine/v1beta/domain_mapping.proto +++ b/third_party/googleapis/google/appengine/v1beta/domain_mapping.proto @@ -18,10 +18,13 @@ package google.appengine.v1beta; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AppEngine.V1Beta"; option go_package = "google.golang.org/genproto/googleapis/appengine/v1beta;appengine"; option java_multiple_files = true; option java_outer_classname = "DomainMappingProto"; option java_package = "com.google.appengine.v1beta"; +option php_namespace = "Google\\Cloud\\AppEngine\\V1beta"; +option ruby_package = "Google::Cloud::AppEngine::V1beta"; // A domain serving an App Engine application. message DomainMapping { diff --git a/third_party/googleapis/google/appengine/v1beta/firewall.proto b/third_party/googleapis/google/appengine/v1beta/firewall.proto index 76074ddac..eaabc9613 100644 --- a/third_party/googleapis/google/appengine/v1beta/firewall.proto +++ b/third_party/googleapis/google/appengine/v1beta/firewall.proto @@ -18,10 +18,13 @@ package google.appengine.v1beta; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AppEngine.V1Beta"; option go_package = "google.golang.org/genproto/googleapis/appengine/v1beta;appengine"; option java_multiple_files = true; option java_outer_classname = "FirewallProto"; option java_package = "com.google.appengine.v1beta.firewall"; +option php_namespace = "Google\\Cloud\\AppEngine\\V1beta"; +option ruby_package = "Google::Cloud::AppEngine::V1beta"; // A single firewall rule that is evaluated against incoming traffic // and provides an action to take on matched requests. diff --git a/third_party/googleapis/google/appengine/v1beta/instance.proto b/third_party/googleapis/google/appengine/v1beta/instance.proto index 3859c4899..3f9402c65 100644 --- a/third_party/googleapis/google/appengine/v1beta/instance.proto +++ b/third_party/googleapis/google/appengine/v1beta/instance.proto @@ -19,10 +19,13 @@ package google.appengine.v1beta; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AppEngine.V1Beta"; option go_package = "google.golang.org/genproto/googleapis/appengine/v1beta;appengine"; option java_multiple_files = true; option java_outer_classname = "InstanceProto"; option java_package = "com.google.appengine.v1beta"; +option php_namespace = "Google\\Cloud\\AppEngine\\V1beta"; +option ruby_package = "Google::Cloud::AppEngine::V1beta"; // An Instance resource is the computing unit that App Engine uses to // automatically scale an application. diff --git a/third_party/googleapis/google/appengine/v1beta/location.proto b/third_party/googleapis/google/appengine/v1beta/location.proto index 27af4d056..211cae5f0 100644 --- a/third_party/googleapis/google/appengine/v1beta/location.proto +++ b/third_party/googleapis/google/appengine/v1beta/location.proto @@ -18,7 +18,10 @@ package google.appengine.v1beta; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AppEngine.V1Beta"; option go_package = "google.golang.org/genproto/googleapis/appengine/v1beta;appengine"; option java_multiple_files = true; option java_outer_classname = "LocationProto"; option java_package = "com.google.appengine.v1beta"; +option php_namespace = "Google\\Cloud\\AppEngine\\V1beta"; +option ruby_package = "Google::Cloud::AppEngine::V1beta"; diff --git a/third_party/googleapis/google/appengine/v1beta/network_settings.proto b/third_party/googleapis/google/appengine/v1beta/network_settings.proto index e12c6a3b0..f5d52e2b2 100644 --- a/third_party/googleapis/google/appengine/v1beta/network_settings.proto +++ b/third_party/googleapis/google/appengine/v1beta/network_settings.proto @@ -18,7 +18,10 @@ package google.appengine.v1beta; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AppEngine.V1Beta"; option go_package = "google.golang.org/genproto/googleapis/appengine/v1beta;appengine"; option java_multiple_files = true; option java_outer_classname = "NetworkSettingsProto"; option java_package = "com.google.appengine.v1beta"; +option php_namespace = "Google\\Cloud\\AppEngine\\V1beta"; +option ruby_package = "Google::Cloud::AppEngine::V1beta"; diff --git a/third_party/googleapis/google/appengine/v1beta/operation.proto b/third_party/googleapis/google/appengine/v1beta/operation.proto index 7e220240b..09a854e54 100644 --- a/third_party/googleapis/google/appengine/v1beta/operation.proto +++ b/third_party/googleapis/google/appengine/v1beta/operation.proto @@ -19,10 +19,13 @@ package google.appengine.v1beta; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AppEngine.V1Beta"; option go_package = "google.golang.org/genproto/googleapis/appengine/v1beta;appengine"; option java_multiple_files = true; option java_outer_classname = "OperationProto"; option java_package = "com.google.appengine.v1beta"; +option php_namespace = "Google\\Cloud\\AppEngine\\V1beta"; +option ruby_package = "Google::Cloud::AppEngine::V1beta"; // Metadata for the given [google.longrunning.Operation][google.longrunning.Operation]. message OperationMetadataV1Beta { diff --git a/third_party/googleapis/google/appengine/v1beta/service.proto b/third_party/googleapis/google/appengine/v1beta/service.proto index 137029c7c..57b6461be 100644 --- a/third_party/googleapis/google/appengine/v1beta/service.proto +++ b/third_party/googleapis/google/appengine/v1beta/service.proto @@ -18,10 +18,13 @@ package google.appengine.v1beta; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AppEngine.V1Beta"; option go_package = "google.golang.org/genproto/googleapis/appengine/v1beta;appengine"; option java_multiple_files = true; option java_outer_classname = "ServiceProto"; option java_package = "com.google.appengine.v1beta"; +option php_namespace = "Google\\Cloud\\AppEngine\\V1beta"; +option ruby_package = "Google::Cloud::AppEngine::V1beta"; // A Service resource is a logical component of an application that can share // state and communicate in a secure fashion with other services. diff --git a/third_party/googleapis/google/appengine/v1beta/version.proto b/third_party/googleapis/google/appengine/v1beta/version.proto index 2aa3935bf..08bc8507d 100644 --- a/third_party/googleapis/google/appengine/v1beta/version.proto +++ b/third_party/googleapis/google/appengine/v1beta/version.proto @@ -22,10 +22,13 @@ import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; +option csharp_namespace = "Google.Cloud.AppEngine.V1Beta"; option go_package = "google.golang.org/genproto/googleapis/appengine/v1beta;appengine"; option java_multiple_files = true; option java_outer_classname = "VersionProto"; option java_package = "com.google.appengine.v1beta"; +option php_namespace = "Google\\Cloud\\AppEngine\\V1beta"; +option ruby_package = "Google::Cloud::AppEngine::V1beta"; // A Version resource is a specific set of source code and configuration files // that are deployed into a service. diff --git a/third_party/googleapis/google/apps/drive/activity/v2/BUILD.bazel b/third_party/googleapis/google/apps/drive/activity/v2/BUILD.bazel new file mode 100644 index 000000000..c323aaff4 --- /dev/null +++ b/third_party/googleapis/google/apps/drive/activity/v2/BUILD.bazel @@ -0,0 +1,337 @@ +# This file was automatically generated by BuildFileGenerator +# https://github.com/googleapis/rules_gapic/tree/master/bazel + +# Most of the manual changes to this file will be overwritten. +# It's **only** allowed to change the following rule attribute values: +# - names of *_gapic_assembly_* rules +# - certain parameters of *_gapic_library rules, including but not limited to: +# * extra_protoc_parameters +# * extra_protoc_file_parameters +# The complete list of preserved parameters can be found in the source code. + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") +load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info") + +proto_library( + name = "activity_proto", + srcs = [ + "action.proto", + "actor.proto", + "common.proto", + "drive_activity_service.proto", + "query_drive_activity_request.proto", + "query_drive_activity_response.proto", + "target.proto", + ], + deps = [ + "//google/api:annotations_proto", + "//google/api:client_proto", + "@com_google_protobuf//:timestamp_proto", + ], +) + +proto_library_with_info( + name = "activity_proto_with_info", + deps = [ + ":activity_proto", + "//google/cloud:common_resources_proto", + ], +) + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_gapic_assembly_gradle_pkg", + "java_gapic_library", + "java_gapic_test", + "java_grpc_library", + "java_proto_library", +) + +java_proto_library( + name = "activity_java_proto", + deps = [":activity_proto"], +) + +java_grpc_library( + name = "activity_java_grpc", + srcs = [":activity_proto"], + deps = [":activity_java_proto"], +) + +java_gapic_library( + name = "activity_java_gapic", + srcs = [":activity_proto_with_info"], + grpc_service_config = "driveactivity_grpc_service_config.json", + test_deps = [ + ":activity_java_grpc", + ], + deps = [ + ":activity_java_proto", + ], +) + +java_gapic_test( + name = "activity_java_gapic_test_suite", + test_classes = [ + "com.google.apps.drive.activity.v2.DriveActivityServiceClientTest", + ], + runtime_deps = [":activity_java_gapic_test"], +) + +# Open Source Packages +java_gapic_assembly_gradle_pkg( + name = "google-apps-drive-activity-v2-java", + deps = [ + ":activity_java_gapic", + ":activity_java_grpc", + ":activity_java_proto", + ":activity_proto", + ], +) + +############################################################################## +# Go +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "go_gapic_assembly_pkg", + "go_gapic_library", + "go_proto_library", + "go_test", +) + +go_proto_library( + name = "activity_go_proto", + compilers = ["@io_bazel_rules_go//proto:go_grpc"], + importpath = "google.golang.org/genproto/googleapis/apps/drive/activity/v2", + protos = [":activity_proto"], + deps = [ + "//google/api:annotations_go_proto", + ], +) + +go_gapic_library( + name = "activity_go_gapic", + srcs = [":activity_proto_with_info"], + grpc_service_config = "driveactivity_grpc_service_config.json", + importpath = "google.golang.org/google/apps/drive/activity/v2;activity", + metadata = True, + service_yaml = "driveactivity_v2.yaml", + deps = [ + ":activity_go_proto", + ], +) + +go_test( + name = "activity_go_gapic_test", + srcs = [":activity_go_gapic_srcjar_test"], + embed = [":activity_go_gapic"], + importpath = "google.golang.org/google/apps/drive/activity/v2", +) + +# Open Source Packages +go_gapic_assembly_pkg( + name = "gapi-apps-drive-activity-v2-go", + deps = [ + ":activity_go_gapic", + ":activity_go_gapic_srcjar-metadata.srcjar", + ":activity_go_gapic_srcjar-test.srcjar", + ":activity_go_proto", + ], +) + +############################################################################## +# Python +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "py_gapic_assembly_pkg", + "py_gapic_library", +) + +py_gapic_library( + name = "activity_py_gapic", + srcs = [":activity_proto"], + grpc_service_config = "driveactivity_grpc_service_config.json", +) + +# Open Source Packages +py_gapic_assembly_pkg( + name = "drive-activity-v2-py", + deps = [ + ":activity_py_gapic", + ], +) + +############################################################################## +# PHP +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "php_gapic_assembly_pkg", + "php_gapic_library", + "php_grpc_library", + "php_proto_library", +) + +php_proto_library( + name = "activity_php_proto", + deps = [":activity_proto"], +) + +php_grpc_library( + name = "activity_php_grpc", + srcs = [":activity_proto"], + deps = [":activity_php_proto"], +) + +php_gapic_library( + name = "activity_php_gapic", + src = ":activity_proto_with_info", + gapic_yaml = "driveactivity_gapic.yaml", + grpc_service_config = "driveactivity_grpc_service_config.json", + package = "google.apps.drive.activity.v2", + service_yaml = "driveactivity_v2.yaml", + deps = [ + ":activity_php_grpc", + ":activity_php_proto", + ], +) + +# Open Source Packages +php_gapic_assembly_pkg( + name = "google-apps-drive-activity-v2-php", + deps = [ + ":activity_php_gapic", + ":activity_php_grpc", + ":activity_php_proto", + ], +) + +############################################################################## +# Node.js +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", +) + +nodejs_gapic_library( + name = "activity_nodejs_gapic", + package_name = "@google-cloud/drive-activity", + src = ":activity_proto_with_info", + extra_protoc_parameters = ["metadata"], + grpc_service_config = "driveactivity_grpc_service_config.json", + package = "google.apps.drive.activity.v2", + service_yaml = "driveactivity_v2.yaml", + deps = [], +) + +nodejs_gapic_assembly_pkg( + name = "drive-activity-v2-nodejs", + deps = [ + ":activity_nodejs_gapic", + ":activity_proto", + ], +) + +############################################################################## +# Ruby +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "ruby_cloud_gapic_library", + "ruby_gapic_assembly_pkg", + "ruby_grpc_library", + "ruby_proto_library", +) + +ruby_proto_library( + name = "activity_ruby_proto", + deps = [":activity_proto"], +) + +ruby_grpc_library( + name = "activity_ruby_grpc", + srcs = [":activity_proto"], + deps = [":activity_ruby_proto"], +) + +ruby_cloud_gapic_library( + name = "activity_ruby_gapic", + srcs = [":activity_proto_with_info"], + extra_protoc_parameters = ["ruby-cloud-gem-name=google-apps-drive-activity-v2"], + grpc_service_config = "driveactivity_grpc_service_config.json", + deps = [ + ":activity_ruby_grpc", + ":activity_ruby_proto", + ], +) + +# Open Source Packages +ruby_gapic_assembly_pkg( + name = "google-apps-drive-activity-v2-ruby", + deps = [ + ":activity_ruby_gapic", + ":activity_ruby_grpc", + ":activity_ruby_proto", + ], +) + +############################################################################## +# C# +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "csharp_gapic_assembly_pkg", + "csharp_gapic_library", + "csharp_grpc_library", + "csharp_proto_library", +) + +csharp_proto_library( + name = "activity_csharp_proto", + deps = [":activity_proto"], +) + +csharp_grpc_library( + name = "activity_csharp_grpc", + srcs = [":activity_proto"], + deps = [":activity_csharp_proto"], +) + +csharp_gapic_library( + name = "activity_csharp_gapic", + srcs = [":activity_proto_with_info"], + common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "driveactivity_grpc_service_config.json", + deps = [ + ":activity_csharp_grpc", + ":activity_csharp_proto", + ], +) + +# Open Source Packages +csharp_gapic_assembly_pkg( + name = "google-apps-drive-activity-v2-csharp", + deps = [ + ":activity_csharp_gapic", + ":activity_csharp_grpc", + ":activity_csharp_proto", + ], +) + +############################################################################## +# C++ +############################################################################## +# Put your C++ rules here diff --git a/third_party/googleapis/google/apps/drive/activity/v2/action.proto b/third_party/googleapis/google/apps/drive/activity/v2/action.proto new file mode 100644 index 000000000..422465c82 --- /dev/null +++ b/third_party/googleapis/google/apps/drive/activity/v2/action.proto @@ -0,0 +1,460 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.apps.drive.activity.v2; + +import "google/apps/drive/activity/v2/actor.proto"; +import "google/apps/drive/activity/v2/common.proto"; +import "google/apps/drive/activity/v2/target.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Apps.Drive.Activity.V2"; +option go_package = "google.golang.org/genproto/googleapis/apps/drive/activity/v2;activity"; +option java_multiple_files = true; +option java_outer_classname = "ActionProto"; +option java_package = "com.google.apps.drive.activity.v2"; +option objc_class_prefix = "GADA"; +option php_namespace = "Google\\Apps\\Drive\\Activity\\V2"; + +// Information about the action. +message Action { + // The type and detailed information about the action. + ActionDetail detail = 1; + + // The actor responsible for this action (or empty if all actors are + // responsible). + Actor actor = 3; + + // The target this action affects (or empty if affecting all targets). This + // represents the state of the target immediately after this action occurred. + Target target = 4; + + // When the action occurred (or empty if same time as entire activity). + oneof time { + // The action occurred at this specific time. + google.protobuf.Timestamp timestamp = 5; + + // The action occurred over this time range. + TimeRange time_range = 6; + } +} + +// Data describing the type and additional information of an action. +message ActionDetail { + // Data describing the type and additional information of an action. + oneof action_detail { + // An object was created. + Create create = 1; + + // An object was edited. + Edit edit = 2; + + // An object was moved. + Move move = 3; + + // An object was renamed. + Rename rename = 4; + + // An object was deleted. + Delete delete = 5; + + // A deleted object was restored. + Restore restore = 6; + + // The permission on an object was changed. + PermissionChange permission_change = 7; + + // A change about comments was made. + Comment comment = 8; + + // A change happened in data leak prevention status. + DataLeakPreventionChange dlp_change = 9; + + // An object was referenced in an application outside of Drive/Docs. + ApplicationReference reference = 12; + + // Settings were changed. + SettingsChange settings_change = 13; + } +} + +// An object was created. +message Create { + // An object was created from scratch. + message New { + + } + + // An object was uploaded into Drive. + message Upload { + + } + + // An object was created by copying an existing object. + message Copy { + // The original object. + TargetReference original_object = 1; + } + + // The origin of the new object. + oneof origin { + // If present, indicates the object was newly created (e.g. as a blank + // document), not derived from a Drive object or external object. + New new = 1; + + // If present, indicates the object originated externally and was uploaded + // to Drive. + Upload upload = 2; + + // If present, indicates the object was created by copying an existing Drive + // object. + Copy copy = 3; + } +} + +// An empty message indicating an object was edited. +message Edit { + +} + +// An object was moved. +message Move { + // The added parent object(s). + repeated TargetReference added_parents = 1; + + // The removed parent object(s). + repeated TargetReference removed_parents = 2; +} + +// An object was renamed. +message Rename { + // The previous title of the drive object. + string old_title = 1; + + // The new title of the drive object. + string new_title = 2; +} + +// An object was deleted. +message Delete { + // The type of deletion. + enum Type { + // Deletion type is not available. + TYPE_UNSPECIFIED = 0; + + // An object was put into the trash. + TRASH = 1; + + // An object was deleted permanently. + PERMANENT_DELETE = 2; + } + + // The type of delete action taken. + Type type = 1; +} + +// A deleted object was restored. +message Restore { + // The type of restoration. + enum Type { + // The type is not available. + TYPE_UNSPECIFIED = 0; + + // An object was restored from the trash. + UNTRASH = 1; + } + + // The type of restore action taken. + Type type = 1; +} + +// A change of the permission setting on an item. +message PermissionChange { + // The set of permissions added by this change. + repeated Permission added_permissions = 1; + + // The set of permissions removed by this change. + repeated Permission removed_permissions = 2; +} + +// The permission setting of an object. +message Permission { + // Represents any user (including a logged out user). + message Anyone { + + } + + // The [Google Drive permissions + // roles](https://developers.google.com/drive/web/manage-sharing#roles). + enum Role { + // The role is not available. + ROLE_UNSPECIFIED = 0; + + // A role granting full access. + OWNER = 1; + + // A role granting the ability to manage people and settings. + ORGANIZER = 2; + + // A role granting the ability to contribute and manage content. + FILE_ORGANIZER = 3; + + // A role granting the ability to contribute content. This role is sometimes + // also known as "writer". + EDITOR = 4; + + // A role granting the ability to view and comment on content. + COMMENTER = 5; + + // A role granting the ability to view content. This role is sometimes also + // known as "reader". + VIEWER = 6; + + // A role granting the ability to view content only after it has been + // published to the web. This role is sometimes also known as "published + // reader". See https://support.google.com/sites/answer/6372880 for more + // information. + PUBLISHED_VIEWER = 7; + } + + // Indicates the + // [Google Drive permissions + // role](https://developers.google.com/drive/web/manage-sharing#roles). The + // role determines a user's ability to read, write, and comment on items. + Role role = 1; + + // The entity granted the role. + oneof scope { + // The user to whom this permission applies. + User user = 2; + + // The group to whom this permission applies. + Group group = 3; + + // The domain to whom this permission applies. + Domain domain = 4; + + // If set, this permission applies to anyone, even logged out users. + Anyone anyone = 5; + } + + // If true, the item can be discovered (e.g. in the user's "Shared with me" + // collection) without needing a link to the item. + bool allow_discovery = 6; +} + +// A change about comments on an object. +message Comment { + // A regular posted comment. + message Post { + // More detailed information about the change. + enum Subtype { + // Subtype not available. + SUBTYPE_UNSPECIFIED = 0; + + // A post was added. + ADDED = 1; + + // A post was deleted. + DELETED = 2; + + // A reply was added. + REPLY_ADDED = 3; + + // A reply was deleted. + REPLY_DELETED = 4; + + // A posted comment was resolved. + RESOLVED = 5; + + // A posted comment was reopened. + REOPENED = 6; + } + + // The sub-type of this event. + Subtype subtype = 1; + } + + // A comment with an assignment. + message Assignment { + // More detailed information about the change. + enum Subtype { + // Subtype not available. + SUBTYPE_UNSPECIFIED = 0; + + // An assignment was added. + ADDED = 1; + + // An assignment was deleted. + DELETED = 2; + + // An assignment reply was added. + REPLY_ADDED = 3; + + // An assignment reply was deleted. + REPLY_DELETED = 4; + + // An assignment was resolved. + RESOLVED = 5; + + // A resolved assignment was reopened. + REOPENED = 6; + + // An assignment was reassigned. + REASSIGNED = 7; + } + + // The sub-type of this event. + Subtype subtype = 1; + + // The user to whom the comment was assigned. + User assigned_user = 7; + } + + // A suggestion. + message Suggestion { + // More detailed information about the change. + enum Subtype { + // Subtype not available. + SUBTYPE_UNSPECIFIED = 0; + + // A suggestion was added. + ADDED = 1; + + // A suggestion was deleted. + DELETED = 2; + + // A suggestion reply was added. + REPLY_ADDED = 3; + + // A suggestion reply was deleted. + REPLY_DELETED = 4; + + // A suggestion was accepted. + ACCEPTED = 7; + + // A suggestion was rejected. + REJECTED = 8; + + // An accepted suggestion was deleted. + ACCEPT_DELETED = 9; + + // A rejected suggestion was deleted. + REJECT_DELETED = 10; + } + + // The sub-type of this event. + Subtype subtype = 1; + } + + // The type of changed comment. + oneof type { + // A change on a regular posted comment. + Post post = 1; + + // A change on an assignment. + Assignment assignment = 2; + + // A change on a suggestion. + Suggestion suggestion = 3; + } + + // Users who are mentioned in this comment. + repeated User mentioned_users = 7; +} + +// A change in the object's data leak prevention status. +message DataLeakPreventionChange { + // The type of the change. + enum Type { + // An update to the DLP state that is neither FLAGGED or CLEARED. + TYPE_UNSPECIFIED = 0; + + // Document has been flagged as containing sensitive content. + FLAGGED = 1; + + // Document is no longer flagged as containing sensitive content. + CLEARED = 2; + } + + // The type of Data Leak Prevention (DLP) change. + Type type = 1; +} + +// Activity in applications other than Drive. +message ApplicationReference { + // The type of the action. + enum Type { + // The type is not available. + UNSPECIFIED_REFERENCE_TYPE = 0; + + // The links of one or more Drive items were posted. + LINK = 1; + + // Comments were made regarding a Drive item. + DISCUSS = 2; + } + + // The reference type corresponding to this event. + Type type = 1; +} + +// Information about settings changes. +message SettingsChange { + // Information about restriction policy changes to a feature. + message RestrictionChange { + // The feature which had changes to its restriction policy. + enum Feature { + // The feature which changed restriction settings was not available. + FEATURE_UNSPECIFIED = 0; + + // When restricted, this prevents items from being shared outside the + // domain. + SHARING_OUTSIDE_DOMAIN = 1; + + // When restricted, this prevents direct sharing of individual items. + DIRECT_SHARING = 2; + + // When restricted, this prevents actions like copy, download, and print + // that might result in uncontrolled duplicates of items. + ITEM_DUPLICATION = 3; + + // When restricted, this prevents use of Drive File Stream. + DRIVE_FILE_STREAM = 4; + } + + // The restriction applicable to a feature. + enum Restriction { + // The type of restriction is not available. + RESTRICTION_UNSPECIFIED = 0; + + // The feature is available without restriction. + UNRESTRICTED = 1; + + // The use of this feature is fully restricted. + FULLY_RESTRICTED = 2; + } + + // The feature which had a change in restriction policy. + Feature feature = 1; + + // The restriction in place after the change. + Restriction new_restriction = 2; + } + + // The set of changes made to restrictions. + repeated RestrictionChange restriction_changes = 1; +} diff --git a/third_party/googleapis/google/apps/drive/activity/v2/actor.proto b/third_party/googleapis/google/apps/drive/activity/v2/actor.proto new file mode 100644 index 000000000..da2d12f38 --- /dev/null +++ b/third_party/googleapis/google/apps/drive/activity/v2/actor.proto @@ -0,0 +1,120 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.apps.drive.activity.v2; + +import "google/apps/drive/activity/v2/common.proto"; + +option csharp_namespace = "Google.Apps.Drive.Activity.V2"; +option go_package = "google.golang.org/genproto/googleapis/apps/drive/activity/v2;activity"; +option java_multiple_files = true; +option java_outer_classname = "ActorProto"; +option java_package = "com.google.apps.drive.activity.v2"; +option objc_class_prefix = "GADA"; +option php_namespace = "Google\\Apps\\Drive\\Activity\\V2"; + +// The actor of a Drive activity. +message Actor { + // The type of actor. + oneof type { + // An end user. + User user = 1; + + // An anonymous user. + AnonymousUser anonymous = 2; + + // An account acting on behalf of another. + Impersonation impersonation = 3; + + // A non-user actor (i.e. system triggered). + SystemEvent system = 4; + + // An administrator. + Administrator administrator = 5; + } +} + +// Information about an end user. +message User { + // A known user. + message KnownUser { + // The identifier for this user that can be used with the People API to get + // more information. The format is `people/ACCOUNT_ID`. See + // https://developers.google.com/people/. + string person_name = 1; + + // True if this is the user making the request. + bool is_current_user = 2; + } + + // A user whose account has since been deleted. + message DeletedUser { + + } + + // A user about whom nothing is currently known. + message UnknownUser { + + } + + // The type of user, such as known, unknown, and deleted. + oneof type { + // A known user. + KnownUser known_user = 2; + + // A user whose account has since been deleted. + DeletedUser deleted_user = 3; + + // A user about whom nothing is currently known. + UnknownUser unknown_user = 4; + } +} + +// Empty message representing an anonymous user or indicating the authenticated +// user should be anonymized. +message AnonymousUser { + +} + +// Information about an impersonation, where an admin acts on behalf of an end +// user. Information about the acting admin is not currently available. +message Impersonation { + // The impersonated user. + User impersonated_user = 1; +} + +// Event triggered by system operations instead of end users. +message SystemEvent { + // The types of system events that may trigger activity. + enum Type { + // The event type is unspecified. + TYPE_UNSPECIFIED = 0; + + // The event is a consequence of a user account being deleted. + USER_DELETION = 1; + + // The event is due to the system automatically purging trash. + TRASH_AUTO_PURGE = 2; + } + + // The type of the system event that may triggered activity. + Type type = 1; +} + +// Empty message representing an administrator. +message Administrator { + +} diff --git a/third_party/googleapis/google/apps/drive/activity/v2/common.proto b/third_party/googleapis/google/apps/drive/activity/v2/common.proto new file mode 100644 index 000000000..75a1fbcb7 --- /dev/null +++ b/third_party/googleapis/google/apps/drive/activity/v2/common.proto @@ -0,0 +1,54 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.apps.drive.activity.v2; + +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Apps.Drive.Activity.V2"; +option go_package = "google.golang.org/genproto/googleapis/apps/drive/activity/v2;activity"; +option java_multiple_files = true; +option java_outer_classname = "CommonProto"; +option java_package = "com.google.apps.drive.activity.v2"; +option objc_class_prefix = "GADA"; +option php_namespace = "Google\\Apps\\Drive\\Activity\\V2"; + +// Information about time ranges. +message TimeRange { + // The start of the time range. + google.protobuf.Timestamp start_time = 1; + + // The end of the time range. + google.protobuf.Timestamp end_time = 2; +} + +// Information about a group. +message Group { + // The email address of the group. + string email = 1; + + // The title of the group. + string title = 2; +} + +// Information about a domain. +message Domain { + // The name of the domain, e.g. `google.com`. + string name = 1; + + // An opaque string used to identify this domain. + string legacy_id = 3; +} diff --git a/third_party/googleapis/google/apps/drive/activity/v2/drive_activity_service.proto b/third_party/googleapis/google/apps/drive/activity/v2/drive_activity_service.proto new file mode 100644 index 000000000..849ac49f0 --- /dev/null +++ b/third_party/googleapis/google/apps/drive/activity/v2/drive_activity_service.proto @@ -0,0 +1,48 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.apps.drive.activity.v2; + +import "google/api/annotations.proto"; +import "google/apps/drive/activity/v2/query_drive_activity_request.proto"; +import "google/apps/drive/activity/v2/query_drive_activity_response.proto"; +import "google/api/client.proto"; + +option csharp_namespace = "Google.Apps.Drive.Activity.V2"; +option go_package = "google.golang.org/genproto/googleapis/apps/drive/activity/v2;activity"; +option java_multiple_files = true; +option java_outer_classname = "DriveActivityServiceProto"; +option java_package = "com.google.apps.drive.activity.v2"; +option objc_class_prefix = "GADA"; +option php_namespace = "Google\\Apps\\Drive\\Activity\\V2"; + +// Service for querying activity on Drive items. Activity is user +// or system action on Drive items that happened in the past. A Drive item can +// be a file or folder, or a Team Drive. +service DriveActivityService { + option (google.api.default_host) = "driveactivity.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/drive.activity," + "https://www.googleapis.com/auth/drive.activity.readonly"; + + // Query past activity in Google Drive. + rpc QueryDriveActivity(QueryDriveActivityRequest) returns (QueryDriveActivityResponse) { + option (google.api.http) = { + post: "/v2/activity:query" + body: "*" + }; + } +} diff --git a/third_party/googleapis/google/apps/drive/activity/v2/driveactivity_gapic.yaml b/third_party/googleapis/google/apps/drive/activity/v2/driveactivity_gapic.yaml new file mode 100644 index 000000000..3924cad69 --- /dev/null +++ b/third_party/googleapis/google/apps/drive/activity/v2/driveactivity_gapic.yaml @@ -0,0 +1,5 @@ +type: com.google.api.codegen.ConfigProto +config_schema_version: 2.0.0 +language_settings: + php: + package_name: Google\Apps\Drive\Activity\V2 diff --git a/third_party/googleapis/google/apps/drive/activity/v2/driveactivity_grpc_service_config.json b/third_party/googleapis/google/apps/drive/activity/v2/driveactivity_grpc_service_config.json new file mode 100644 index 000000000..a226a6bb3 --- /dev/null +++ b/third_party/googleapis/google/apps/drive/activity/v2/driveactivity_grpc_service_config.json @@ -0,0 +1,20 @@ +{ + "methodConfig": [ + { + "name": [ + { + "service": "google.apps.drive.activity.v2.DriveActivityService", + "method": "QueryDriveActivity" + } + ], + "timeout": "60s", + "retryPolicy": { + "maxAttempts": 5, + "initialBackoff": "1s", + "maxBackoff": "60s", + "backoffMultiplier": 1.3, + "retryableStatusCodes": ["UNAVAILABLE"] + } + } + ] +} diff --git a/third_party/googleapis/google/apps/drive/activity/v2/driveactivity_v2.yaml b/third_party/googleapis/google/apps/drive/activity/v2/driveactivity_v2.yaml new file mode 100644 index 000000000..fa499e63a --- /dev/null +++ b/third_party/googleapis/google/apps/drive/activity/v2/driveactivity_v2.yaml @@ -0,0 +1,18 @@ +type: google.api.Service +config_version: 3 +name: driveactivity.googleapis.com +title: Drive Activity API + +apis: +- name: google.apps.drive.activity.v2.DriveActivityService + +documentation: + summary: Provides a historical view of activity in Google Drive. + +authentication: + rules: + - selector: google.apps.drive.activity.v2.DriveActivityService.QueryDriveActivity + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/drive.activity, + https://www.googleapis.com/auth/drive.activity.readonly diff --git a/third_party/googleapis/google/apps/drive/activity/v2/query_drive_activity_request.proto b/third_party/googleapis/google/apps/drive/activity/v2/query_drive_activity_request.proto new file mode 100644 index 000000000..9985107e4 --- /dev/null +++ b/third_party/googleapis/google/apps/drive/activity/v2/query_drive_activity_request.proto @@ -0,0 +1,107 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.apps.drive.activity.v2; + +option csharp_namespace = "Google.Apps.Drive.Activity.V2"; +option go_package = "google.golang.org/genproto/googleapis/apps/drive/activity/v2;activity"; +option java_multiple_files = true; +option java_outer_classname = "QueryDriveActivityRequestProto"; +option java_package = "com.google.apps.drive.activity.v2"; +option objc_class_prefix = "GADA"; +option php_namespace = "Google\\Apps\\Drive\\Activity\\V2"; + +// The request message for querying Drive activity. +message QueryDriveActivityRequest { + // The primary criteria in the query. The default is + // ancestor_name = `items/root` if no key is specified. + oneof key { + // Return activities for this Drive item. The format is + // `items/ITEM_ID`. + string item_name = 1; + + // Return activities for this Drive folder and all children and descendants. + // The format is `items/ITEM_ID`. + string ancestor_name = 2; + } + + // Details on how to consolidate related actions that make up the activity. If + // not set, then related actions are not consolidated. + ConsolidationStrategy consolidation_strategy = 5; + + // The miminum number of activities desired in the response; the server will + // attempt to return at least this quanitity. The server may also return fewer + // activities if it has a partial response ready before the request times out. + // If not set, a default value is used. + int32 page_size = 6; + + // The token identifying which page of results to return. Set this to the + // next_page_token value returned from a previous query to obtain the + // following page of results. If not set, the first page of results will be + // returned. + string page_token = 7; + + // The filtering for items returned from this query request. The format of the + // filter string is a sequence of expressions, joined by an optional "AND", + // where each expression is of the form "field operator value". + // + // Supported fields: + // + // - `time`: Uses numerical operators on date values either in + // terms of milliseconds since Jan 1, 1970 or in RFC 3339 format. + // Examples: + // - `time > 1452409200000 AND time <= 1492812924310` + // - `time >= "2016-01-10T01:02:03-05:00"` + // + // - `detail.action_detail_case`: Uses the "has" operator (:) and + // either a singular value or a list of allowed action types enclosed in + // parentheses. + // Examples: + // - `detail.action_detail_case: RENAME` + // - `detail.action_detail_case:(CREATE EDIT)` + // - `-detail.action_detail_case:MOVE` + string filter = 8; +} + +// How the individual activities are consolidated. A set of activities may be +// consolidated into one combined activity if they are related in some way, such +// as one actor performing the same action on multiple targets, or multiple +// actors performing the same action on a single target. The strategy defines +// the rules for which activities are related. +message ConsolidationStrategy { + // A strategy which does no consolidation of individual activities. + message NoConsolidation { + + } + + // A strategy which consolidates activities using the grouping rules from the + // legacy V1 Activity API. Similar actions occurring within a window of time + // can be grouped across multiple targets (such as moving a set of files at + // once) or multiple actors (such as several users editing the same item). + // Grouping rules for this strategy are specific to each type of action. + message Legacy { + + } + + // How the individual activities are consolidated. + oneof strategy { + // The individual activities are not consolidated. + NoConsolidation none = 1; + + // The individual activities are consolidated using the legacy strategy. + Legacy legacy = 2; + } +} diff --git a/third_party/googleapis/google/apps/drive/activity/v2/query_drive_activity_response.proto b/third_party/googleapis/google/apps/drive/activity/v2/query_drive_activity_response.proto new file mode 100644 index 000000000..08cbe8e15 --- /dev/null +++ b/third_party/googleapis/google/apps/drive/activity/v2/query_drive_activity_response.proto @@ -0,0 +1,74 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.apps.drive.activity.v2; + +import "google/apps/drive/activity/v2/action.proto"; +import "google/apps/drive/activity/v2/actor.proto"; +import "google/apps/drive/activity/v2/common.proto"; +import "google/apps/drive/activity/v2/target.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Apps.Drive.Activity.V2"; +option go_package = "google.golang.org/genproto/googleapis/apps/drive/activity/v2;activity"; +option java_multiple_files = true; +option java_outer_classname = "QueryDriveActivityResponseProto"; +option java_package = "com.google.apps.drive.activity.v2"; +option objc_class_prefix = "GADA"; +option php_namespace = "Google\\Apps\\Drive\\Activity\\V2"; + +// Response message for querying Drive activity. +message QueryDriveActivityResponse { + // List of activity requested. + repeated DriveActivity activities = 1; + + // Token to retrieve the next page of results, or + // empty if there are no more results in the list. + string next_page_token = 2; +} + +// A single Drive activity comprising one or more Actions by one or more +// Actors on one or more Targets. Some Action groupings occur spontaneously, +// such as moving an item into a shared folder triggering a permission change. +// Other groupings of related Actions, such as multiple Actors editing one item +// or moving multiple files into a new folder, are controlled by the selection +// of a ConsolidationStrategy in the QueryDriveActivityRequest. +message DriveActivity { + // Key information about the primary action for this activity. This is either + // representative, or the most important, of all actions in the activity, + // according to the ConsolidationStrategy in the request. + ActionDetail primary_action_detail = 2; + + // All actor(s) responsible for the activity. + repeated Actor actors = 3; + + // Details on all actions in this activity. + repeated Action actions = 4; + + // All Google Drive objects this activity is about (e.g. file, folder, drive). + // This represents the state of the target immediately after the actions + // occurred. + repeated Target targets = 5; + + // The period of time when this activity occurred. + oneof time { + // The activity occurred at this specific time. + google.protobuf.Timestamp timestamp = 6; + + // The activity occurred over this time range. + TimeRange time_range = 7; + } +} diff --git a/third_party/googleapis/google/apps/drive/activity/v2/target.proto b/third_party/googleapis/google/apps/drive/activity/v2/target.proto new file mode 100644 index 000000000..75dcd5b94 --- /dev/null +++ b/third_party/googleapis/google/apps/drive/activity/v2/target.proto @@ -0,0 +1,265 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.apps.drive.activity.v2; + +import "google/apps/drive/activity/v2/actor.proto"; +import "google/apps/drive/activity/v2/common.proto"; + +option csharp_namespace = "Google.Apps.Drive.Activity.V2"; +option go_package = "google.golang.org/genproto/googleapis/apps/drive/activity/v2;activity"; +option java_multiple_files = true; +option java_outer_classname = "TargetProto"; +option java_package = "com.google.apps.drive.activity.v2"; +option objc_class_prefix = "GADA"; +option php_namespace = "Google\\Apps\\Drive\\Activity\\V2"; + +// Information about the target of activity. +message Target { + // The type of target object. + oneof object { + // The target is a Drive item. + DriveItem drive_item = 1; + + // The target is a shared drive. + Drive drive = 5; + + // The target is a comment on a Drive file. + FileComment file_comment = 3; + } + + // This field is deprecated; please use the `drive` field instead. + TeamDrive team_drive = 2 [deprecated = true]; +} + +// A lightweight reference to the target of activity. +message TargetReference { + // The type of target object. + oneof object { + // The target is a Drive item. + DriveItemReference drive_item = 1; + + // The target is a shared drive. + DriveReference drive = 3; + } + + // This field is deprecated; please use the `drive` field instead. + TeamDriveReference team_drive = 2 [deprecated = true]; +} + +// A comment on a file. +message FileComment { + // The comment in the discussion thread. This identifier is an opaque string + // compatible with the Drive API; see + // https://developers.google.com/drive/v3/reference/comments/get + string legacy_comment_id = 1; + + // The discussion thread to which the comment was added. This identifier is an + // opaque string compatible with the Drive API and references the first + // comment in a discussion; see + // https://developers.google.com/drive/v3/reference/comments/get + string legacy_discussion_id = 2; + + // The link to the discussion thread containing this comment, for example, + // `https://docs.google.com/DOCUMENT_ID/edit?disco=THREAD_ID`. + string link_to_discussion = 3; + + // The Drive item containing this comment. + DriveItem parent = 4; +} + +// A Drive item, such as a file or folder. +message DriveItem { + // This item is deprecated; please see `DriveFile` instead. + message File { + option deprecated = true; + + + } + + // This item is deprecated; please see `DriveFolder` instead. + message Folder { + option deprecated = true; + + // This item is deprecated; please see `DriveFolder.Type` instead. + enum Type { + option deprecated = true; + + // This item is deprecated; please see `DriveFolder.Type` instead. + TYPE_UNSPECIFIED = 0; + + // This item is deprecated; please see `DriveFolder.Type` instead. + MY_DRIVE_ROOT = 1; + + // This item is deprecated; please see `DriveFolder.Type` instead. + TEAM_DRIVE_ROOT = 2; + + // This item is deprecated; please see `DriveFolder.Type` instead. + STANDARD_FOLDER = 3; + } + + // This field is deprecated; please see `DriveFolder.type` instead. + Type type = 6; + } + + // A Drive item which is a file. + message DriveFile { + + } + + // A Drive item which is a folder. + message DriveFolder { + // The type of a Drive folder. + enum Type { + // The folder type is unknown. + TYPE_UNSPECIFIED = 0; + + // The folder is the root of a user's MyDrive. + MY_DRIVE_ROOT = 1; + + // The folder is the root of a shared drive. + SHARED_DRIVE_ROOT = 2; + + // The folder is a standard, non-root, folder. + STANDARD_FOLDER = 3; + } + + // The type of Drive folder. + Type type = 6; + } + + // The target Drive item. The format is `items/ITEM_ID`. + string name = 1; + + // The title of the Drive item. + string title = 2; + + // This field is deprecated; please use the `driveFile` field instead. + File file = 3 [deprecated = true]; + + // This field is deprecated; please use the `driveFolder` field instead. + Folder folder = 4 [deprecated = true]; + + // If present, this describes the type of the Drive item. + oneof item_type { + // The Drive item is a file. + DriveFile drive_file = 8; + + // The Drive item is a folder. Includes information about the type of + // folder. + DriveFolder drive_folder = 9; + } + + // The MIME type of the Drive item. See + // https://developers.google.com/drive/v3/web/mime-types. + string mime_type = 6; + + // Information about the owner of this Drive item. + Owner owner = 7; +} + +// Information about the owner of a Drive item. +message Owner { + // The owner of the Drive item. + oneof owner { + // The user that owns the Drive item. + User user = 1; + + // The drive that owns the item. + DriveReference drive = 4; + } + + // This field is deprecated; please use the `drive` field instead. + TeamDriveReference team_drive = 2 [deprecated = true]; + + // The domain of the Drive item owner. + Domain domain = 3; +} + +// This item is deprecated; please see `Drive` instead. +message TeamDrive { + option deprecated = true; + + // This field is deprecated; please see `Drive.name` instead. + string name = 1; + + // This field is deprecated; please see `Drive.title` instead. + string title = 2; + + // This field is deprecated; please see `Drive.root` instead. + DriveItem root = 3; +} + +// Information about a shared drive. +message Drive { + // The resource name of the shared drive. The format is + // `COLLECTION_ID/DRIVE_ID`. Clients should not assume a specific collection + // ID for this resource name. + string name = 1; + + // The title of the shared drive. + string title = 2; + + // The root of this shared drive. + DriveItem root = 3; +} + +// A lightweight reference to a Drive item, such as a file or folder. +message DriveItemReference { + // The target Drive item. The format is `items/ITEM_ID`. + string name = 1; + + // The title of the Drive item. + string title = 2; + + // This field is deprecated; please use the `driveFile` field instead. + DriveItem.File file = 3 [deprecated = true]; + + // This field is deprecated; please use the `driveFolder` field instead. + DriveItem.Folder folder = 4 [deprecated = true]; + + // If present, this describes the type of the Drive item. + oneof item_type { + // The Drive item is a file. + DriveItem.DriveFile drive_file = 8; + + // The Drive item is a folder. Includes information about the type of + // folder. + DriveItem.DriveFolder drive_folder = 9; + } +} + +// This item is deprecated; please see `DriveReference` instead. +message TeamDriveReference { + option deprecated = true; + + // This field is deprecated; please see `DriveReference.name` instead. + string name = 1; + + // This field is deprecated; please see `DriveReference.title` instead. + string title = 2; +} + +// A lightweight reference to a shared drive. +message DriveReference { + // The resource name of the shared drive. The format is + // `COLLECTION_ID/DRIVE_ID`. Clients should not assume a specific collection + // ID for this resource name. + string name = 1; + + // The title of the shared drive. + string title = 2; +} diff --git a/third_party/googleapis/google/apps/market/v2/BUILD.bazel b/third_party/googleapis/google/apps/market/v2/BUILD.bazel new file mode 100644 index 000000000..a477dbb14 --- /dev/null +++ b/third_party/googleapis/google/apps/market/v2/BUILD.bazel @@ -0,0 +1,335 @@ +# This file was automatically generated by BuildFileGenerator +# https://github.com/googleapis/rules_gapic/tree/master/bazel + +# Most of the manual changes to this file will be overwritten. +# It's **only** allowed to change the following rule attribute values: +# - names of *_gapic_assembly_* rules +# - certain parameters of *_gapic_library rules, including but not limited to: +# * extra_protoc_parameters +# * extra_protoc_file_parameters +# The complete list of preserved parameters can be found in the source code. + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") +load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info") + +proto_library( + name = "marketplace_proto", + srcs = [ + "resources.proto", + "services.proto", + ], + deps = [ + "//google/api:annotations_proto", + "//google/api:client_proto", + ], +) + +proto_library_with_info( + name = "marketplace_proto_with_info", + deps = [ + ":marketplace_proto", + "//google/cloud:common_resources_proto", + ], +) + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_gapic_assembly_gradle_pkg", + "java_gapic_library", + "java_gapic_test", + "java_grpc_library", + "java_proto_library", +) + +java_proto_library( + name = "marketplace_java_proto", + deps = [":marketplace_proto"], +) + +java_grpc_library( + name = "marketplace_java_grpc", + srcs = [":marketplace_proto"], + deps = [":marketplace_java_proto"], +) + +java_gapic_library( + name = "marketplace_java_gapic", + srcs = [":marketplace_proto_with_info"], + grpc_service_config = "service_grpc_service_config.json", + test_deps = [ + ":marketplace_java_grpc", + ], + deps = [ + ":marketplace_java_proto", + ], +) + +java_gapic_test( + name = "marketplace_java_gapic_test_suite", + test_classes = [ + "com.google.ccc.hosted.marketplace.v2.CustomerLicenseServiceClientTest", + "com.google.ccc.hosted.marketplace.v2.LicenseNotificationServiceClientTest", + "com.google.ccc.hosted.marketplace.v2.UserLicenseServiceClientTest", + ], + runtime_deps = [":marketplace_java_gapic_test"], +) + +# Open Source Packages +java_gapic_assembly_gradle_pkg( + name = "google-cloud-hosted-marketplace-v2-java", + deps = [ + ":marketplace_java_gapic", + ":marketplace_java_grpc", + ":marketplace_java_proto", + ":marketplace_proto", + ], +) + +############################################################################## +# Go +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "go_gapic_assembly_pkg", + "go_gapic_library", + "go_proto_library", + "go_test", +) + +go_proto_library( + name = "marketplace_go_proto", + compilers = ["@io_bazel_rules_go//proto:go_grpc"], + importpath = "google.golang.org/genproto/googleapis/ccc/hosted/marketplace/v2", + protos = [":marketplace_proto"], + deps = [ + "//google/api:annotations_go_proto", + ], +) + +go_gapic_library( + name = "marketplace_go_gapic", + srcs = [":marketplace_proto_with_info"], + grpc_service_config = "service_grpc_service_config.json", + importpath = "google.golang.org/ccc/hosted/marketplace/v2;marketplace", + service_yaml = "appsmarket_v2.yaml", + metadata = True, + deps = [ + ":marketplace_go_proto", + ], +) + +go_test( + name = "marketplace_go_gapic_test", + srcs = [":marketplace_go_gapic_srcjar_test"], + embed = [":marketplace_go_gapic"], + importpath = "google.golang.org/ccc/hosted/marketplace/v2", +) + +# Open Source Packages +go_gapic_assembly_pkg( + name = "gapi-cloud-hosted-marketplace-v2-go", + deps = [ + ":marketplace_go_gapic", + ":marketplace_go_gapic_srcjar-test.srcjar", + ":marketplace_go_gapic_srcjar-metadata.srcjar", + ":marketplace_go_proto", + ], +) + +############################################################################## +# Python +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "py_gapic_assembly_pkg", + "py_gapic_library", +) + +py_gapic_library( + name = "marketplace_py_gapic", + srcs = [":marketplace_proto"], + grpc_service_config = "service_grpc_service_config.json", +) + +# Open Source Packages +py_gapic_assembly_pkg( + name = "hosted-marketplace-v2-py", + deps = [ + ":marketplace_py_gapic", + ], +) + +############################################################################## +# PHP +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "php_gapic_assembly_pkg", + "php_gapic_library", + "php_grpc_library", + "php_proto_library", +) + +php_proto_library( + name = "marketplace_php_proto", + deps = [":marketplace_proto"], +) + +php_grpc_library( + name = "marketplace_php_grpc", + srcs = [":marketplace_proto"], + deps = [":marketplace_php_proto"], +) + +php_gapic_library( + name = "marketplace_php_gapic", + src = ":marketplace_proto_with_info", + gapic_yaml = "appsmarket_gapic.yaml", + grpc_service_config = "service_grpc_service_config.json", + package = "ccc.hosted.marketplace.v2", + service_yaml = "appsmarket_v2.yaml", + deps = [ + ":marketplace_php_grpc", + ":marketplace_php_proto", + ], +) + +# Open Source Packages +php_gapic_assembly_pkg( + name = "google-cloud-hosted-marketplace-v2-php", + deps = [ + ":marketplace_php_gapic", + ":marketplace_php_grpc", + ":marketplace_php_proto", + ], +) + +############################################################################## +# Node.js +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", +) + +nodejs_gapic_library( + name = "marketplace_nodejs_gapic", + package_name = "@google-cloud/marketplace", + src = ":marketplace_proto_with_info", + extra_protoc_parameters = ["metadata"], + grpc_service_config = "service_grpc_service_config.json", + package = "ccc.hosted.marketplace.v2", + service_yaml = "appsmarket_v2.yaml", + deps = [], +) + +nodejs_gapic_assembly_pkg( + name = "hosted-marketplace-v2-nodejs", + deps = [ + ":marketplace_nodejs_gapic", + ":marketplace_proto", + ], +) + +############################################################################## +# Ruby +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "ruby_gapic_assembly_pkg", + "ruby_cloud_gapic_library", + "ruby_grpc_library", + "ruby_proto_library", +) + +ruby_proto_library( + name = "marketplace_ruby_proto", + deps = [":marketplace_proto"], +) + +ruby_grpc_library( + name = "marketplace_ruby_grpc", + srcs = [":marketplace_proto"], + deps = [":marketplace_ruby_proto"], +) + +ruby_cloud_gapic_library( + name = "marketplace_ruby_gapic", + srcs = [":marketplace_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-hosted-marketplace-v2", + ], + grpc_service_config = "service_grpc_service_config.json", + deps = [ + ":marketplace_ruby_grpc", + ":marketplace_ruby_proto", + ], +) + +# Open Source Packages +ruby_gapic_assembly_pkg( + name = "google-cloud-hosted-marketplace-v2-ruby", + deps = [ + ":marketplace_ruby_gapic", + ":marketplace_ruby_grpc", + ":marketplace_ruby_proto", + ], +) + +############################################################################## +# C# +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "csharp_gapic_assembly_pkg", + "csharp_gapic_library", + "csharp_grpc_library", + "csharp_proto_library", +) + +csharp_proto_library( + name = "marketplace_csharp_proto", + deps = [":marketplace_proto"], +) + +csharp_grpc_library( + name = "marketplace_csharp_grpc", + srcs = [":marketplace_proto"], + deps = [":marketplace_csharp_proto"], +) + +csharp_gapic_library( + name = "marketplace_csharp_gapic", + srcs = [":marketplace_proto_with_info"], + common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "service_grpc_service_config.json", + deps = [ + ":marketplace_csharp_grpc", + ":marketplace_csharp_proto", + ], +) + +# Open Source Packages +csharp_gapic_assembly_pkg( + name = "google-cloud-hosted-marketplace-v2-csharp", + deps = [ + ":marketplace_csharp_gapic", + ":marketplace_csharp_grpc", + ":marketplace_csharp_proto", + ], +) + +############################################################################## +# C++ +############################################################################## +# Put your C++ rules here diff --git a/third_party/googleapis/google/apps/market/v2/appsmarket_gapic.yaml b/third_party/googleapis/google/apps/market/v2/appsmarket_gapic.yaml new file mode 100644 index 000000000..a859c37be --- /dev/null +++ b/third_party/googleapis/google/apps/market/v2/appsmarket_gapic.yaml @@ -0,0 +1,5 @@ +type: com.google.api.codegen.ConfigProto +config_schema_version: 2.0.0 +language_settings: + php: + package_name: Google\Apps\Market\V2 diff --git a/third_party/googleapis/google/apps/market/v2/appsmarket_v2.yaml b/third_party/googleapis/google/apps/market/v2/appsmarket_v2.yaml new file mode 100644 index 000000000..1fb992cda --- /dev/null +++ b/third_party/googleapis/google/apps/market/v2/appsmarket_v2.yaml @@ -0,0 +1,38 @@ +type: google.api.Service +config_version: 3 +name: appsmarket.googleapis.com +title: Google Workspace Marketplace API + +apis: +- name: ccc.hosted.marketplace.v2.CustomerLicenseService +- name: ccc.hosted.marketplace.v2.LicenseNotificationService +- name: ccc.hosted.marketplace.v2.UserLicenseService + +documentation: + summary: |- + Lets your Google Workspace Marketplace applications integrate with Google's + licensing and billing services. + +backend: + rules: + - selector: ccc.hosted.marketplace.v2.CustomerLicenseService.Get + deadline: 20.0 + - selector: ccc.hosted.marketplace.v2.LicenseNotificationService.List + deadline: 20.0 + - selector: ccc.hosted.marketplace.v2.UserLicenseService.Get + deadline: 20.0 + +authentication: + rules: + - selector: ccc.hosted.marketplace.v2.CustomerLicenseService.Get + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/appsmarketplace.license + - selector: ccc.hosted.marketplace.v2.LicenseNotificationService.List + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/appsmarketplace.license + - selector: ccc.hosted.marketplace.v2.UserLicenseService.Get + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/appsmarketplace.license diff --git a/third_party/googleapis/google/apps/market/v2/resources.proto b/third_party/googleapis/google/apps/market/v2/resources.proto new file mode 100644 index 000000000..09993bbbd --- /dev/null +++ b/third_party/googleapis/google/apps/market/v2/resources.proto @@ -0,0 +1,175 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package ccc.hosted.marketplace.v2; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/ccc/hosted/marketplace/v2;marketplace"; +option java_multiple_files = true; +option java_outer_classname = "ResourcesProto"; +option java_package = "com.google.ccc.hosted.marketplace.v2"; + +message CustomerLicense { + message Editions { + // (Deprecated) + string edition_id = 405 [deprecated = true]; + + // (Deprecated) + int32 seat_count = 406 [deprecated = true]; + + // (Deprecated) + int32 assigned_seats = 409 [deprecated = true]; + } + + // The type of API resource. This is always appsmarket#customerLicense. + string kind = 1; + + // The customer's license status. One of: + // + // - `ACTIVE`: The customer has a valid license. + // - `UNLICENSED`: There is no license: either this customer has never + // installed your application, or else has deleted it. + string state = 2; + + // The ID of the application corresponding to this license query. + string application_id = 3; + + // (Deprecated) + repeated Editions editions = 4 [deprecated = true]; + + // The ID of the customer license. + string id = 101; + + // The domain name of the customer. + string customer_id = 102; +} + +message LicenseNotification { + message Deletes { + string kind = 1; + + // (Deprecated) + string edition_id = 901 [deprecated = true]; + } + + message Expiries { + string kind = 1; + + // (Deprecated) + string edition_id = 701 [deprecated = true]; + } + + message Provisions { + string kind = 1; + + // (Deprecated) + string edition_id = 601 [deprecated = true]; + + // The number of seats that were provisioned. + int64 seat_count = 602; + } + + message Reassignments { + string kind = 1; + + // The email address of the reassigned user. + string user_id = 801; + + string type = 802; + + // (Deprecated) + string edition_id = 803 [deprecated = true]; + } + + // The ID of the license notification. + string id = 1; + + // The ID of the application according to this notification. + string application_id = 2; + + // The time the event occurred, measuring in milliseconds since the UNIX + // epoch. + int64 timestamp = 3; + + // The domain name of the customer corresponding to this notification. + string customer_id = 4; + + // The type of API resource. This is always appsmarket#licenseNotification. + string kind = 5; + + // The list of provisioning notifications. + repeated Provisions provisions = 6; + + // The list of expiry notifications. + repeated Expiries expiries = 7; + + // The list of reassignment notifications. + repeated Reassignments reassignments = 8; + + // The list of deletion notifications. + repeated Deletes deletes = 9; +} + +message LicenseNotificationList { + string kind = 1; + + // The list of notifications. One or more of: + // + // - `provisions`: A new license of the application has been provisioned. + // - `expiries`: A license of the application has expired. + // - `deletions`: An application has been deleted from a domain. + // - `reassignments`: An administrator has assigned or revoked a seat license + // for the application on the provided domain. + repeated LicenseNotification notifications = 1007; + + // The token used to continue querying for notifications after the final + // notification in the current result set. + string next_page_token = 100602; +} + +message UserLicense { + // The type of API resource. This is always appsmarket#userLicense. + string kind = 1; + + // The domain administrator has activated the application for this domain. + bool enabled = 2; + + // The user's licensing status. One of: + // + // - `ACTIVE`: The user has a valid license and should be permitted to use the + // application. + // - `UNLICENSED`: The administrator of this user's domain never assigned a + // seat for the application to this user. + // - `EXPIRED`: The administrator assigned a seat to this user, but the + // license is expired. + string state = 3; + + // (Deprecated) + string edition_id = 4 [deprecated = true]; + + // The domain name of the user. + string customer_id = 5; + + // The ID of the application corresponding to the license query. + string application_id = 6; + + // The ID of user license. + string id = 101; + + // The email address of the user. + string user_id = 102; +} diff --git a/third_party/googleapis/google/apps/market/v2/service_grpc_service_config.json b/third_party/googleapis/google/apps/market/v2/service_grpc_service_config.json new file mode 100644 index 000000000..65501070d --- /dev/null +++ b/third_party/googleapis/google/apps/market/v2/service_grpc_service_config.json @@ -0,0 +1,27 @@ +{ + "methodConfig": [ + { + "name": [ + { + "service": "ccc.hosted.marketplace.v2.CustomerLicenseService", + "method": "Get" + }, + { + "service": "ccc.hosted.marketplace.v2.LicenseNotificationService", + "method": "List" + }, + { + "service": "ccc.hosted.marketplace.v2.UserLicenseService", + "method": "Get" + } + ], + "timeout": "60s", + "retryPolicy": { + "initialBackoff": "1s", + "maxBackoff": "60s", + "backoffMultiplier": 1.3, + "retryableStatusCodes": ["UNAVAILABLE", "UNKNOWN"] + } + } + ] +} diff --git a/third_party/googleapis/google/apps/market/v2/services.proto b/third_party/googleapis/google/apps/market/v2/services.proto new file mode 100644 index 000000000..3be0e9627 --- /dev/null +++ b/third_party/googleapis/google/apps/market/v2/services.proto @@ -0,0 +1,92 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package ccc.hosted.marketplace.v2; + +import "google/api/annotations.proto"; +import "google/apps/market/v2/resources.proto"; +import "google/api/client.proto"; + +option go_package = "google.golang.org/genproto/googleapis/ccc/hosted/marketplace/v2;marketplace"; +option java_multiple_files = true; +option java_outer_classname = "ServiceProto"; +option java_package = "com.google.ccc.hosted.marketplace.v2"; + +service CustomerLicenseService { + option (google.api.default_host) = "appsmarket.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/appsmarketplace.license"; + + // Get the status of a license for a customer to determine if they have access + // for a given app. + rpc Get(CustomerLicenseGetRequest) returns (CustomerLicense) { + option (google.api.http) = { + get: "/appsmarket/v2/customerLicense/{application_id}/{customer_id}" + }; + } +} + +service LicenseNotificationService { + option (google.api.default_host) = "appsmarket.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/appsmarketplace.license"; + + // Get a list of licensing notifications with regards to a given app. + rpc List(LicenseNotificationListRequest) returns (LicenseNotificationList) { + option (google.api.http) = { + get: "/appsmarket/v2/licenseNotification/{application_id}" + body: "*" + }; + } +} + +service UserLicenseService { + option (google.api.default_host) = "appsmarket.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/appsmarketplace.license"; + + // Get the user's licensing status for their permission to use a given app. + rpc Get(UserLicenseGetRequest) returns (UserLicense) { + option (google.api.http) = { + get: "/appsmarket/v2/userLicense/{application_id}/{user_id}" + }; + } +} + +message CustomerLicenseGetRequest { + // Application Id + string application_id = 1; + + // Customer Id + string customer_id = 2; +} + +message LicenseNotificationListRequest { + // Application Id + string application_id = 1; + + uint32 max_results = 2; + + string start_token = 3; + + // Timestamp in milliseconds since epoch + uint64 timestamp = 4; +} + +message UserLicenseGetRequest { + // Application Id + string application_id = 1; + + // User Id + string user_id = 2; +} diff --git a/third_party/googleapis/google/apps/script/type/BUILD.bazel b/third_party/googleapis/google/apps/script/type/BUILD.bazel new file mode 100644 index 000000000..7f6af6767 --- /dev/null +++ b/third_party/googleapis/google/apps/script/type/BUILD.bazel @@ -0,0 +1,118 @@ +# This file was automatically generated by BuildFileGenerator + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "csharp_grpc_library", + "csharp_proto_library", + "go_proto_library", + "java_grpc_library", + "java_proto_library", + "moved_proto_library", + "php_grpc_library", + "php_proto_library", + "py_grpc_library", + "py_proto_library", + "ruby_grpc_library", + "ruby_proto_library", +) + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +proto_library( + name = "type_proto", + srcs = [ + "addon_widget_set.proto", + "extension_point.proto", + "script_manifest.proto", + ], + deps = [ + "@com_google_protobuf//:struct_proto", + "@com_google_protobuf//:wrappers_proto", + ], +) + +java_proto_library( + name = "type_java_proto", + deps = [":type_proto"], +) + +java_grpc_library( + name = "type_java_grpc", + srcs = [":type_proto"], + deps = [":type_java_proto"], +) + +go_proto_library( + name = "type_go_proto", + compilers = ["@io_bazel_rules_go//proto:go_grpc"], + importpath = "google.golang.org/genproto/googleapis/apps/script/type", + protos = [":type_proto"], +) + +moved_proto_library( + name = "type_moved_proto", + srcs = [":type_proto"], + deps = [ + "@com_google_protobuf//:struct_proto", + "@com_google_protobuf//:wrappers_proto", + ], +) + +py_proto_library( + name = "type_py_proto", + plugin = "@protoc_docs_plugin//:docs_plugin", + deps = [":type_moved_proto"], +) + +py_grpc_library( + name = "type_py_grpc", + srcs = [":type_moved_proto"], + deps = [":type_py_proto"], +) + +php_proto_library( + name = "type_php_proto", + deps = [":type_proto"], +) + +php_grpc_library( + name = "type_php_grpc", + srcs = [":type_proto"], + deps = [":type_php_proto"], +) + +ruby_proto_library( + name = "type_ruby_proto", + deps = [":type_proto"], +) + +ruby_grpc_library( + name = "type_ruby_grpc", + srcs = [":type_proto"], + deps = [":type_ruby_proto"], +) + +csharp_proto_library( + name = "type_csharp_proto", + deps = [":type_proto"], +) + +csharp_grpc_library( + name = "type_csharp_grpc", + srcs = [":type_proto"], + deps = [":type_csharp_proto"], +) + +############################################################################## +# C++ +############################################################################## +# Put your C++ code here diff --git a/third_party/googleapis/google/apps/script/type/addon_widget_set.proto b/third_party/googleapis/google/apps/script/type/addon_widget_set.proto new file mode 100644 index 000000000..79490eab3 --- /dev/null +++ b/third_party/googleapis/google/apps/script/type/addon_widget_set.proto @@ -0,0 +1,57 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.apps.script.type; + +option csharp_namespace = "Google.Apps.Script.Type"; +option go_package = "google.golang.org/genproto/googleapis/apps/script/type"; +option java_multiple_files = true; +option java_package = "com.google.apps.script.type"; +option php_namespace = "Google\\Apps\\Script\\Type"; +option ruby_package = "Google::Apps::Script::Type"; + +// The widget subset used by an add-on. +message AddOnWidgetSet { + // The Widget type. DEFAULT is the basic widget set. + enum WidgetType { + // The default widget set. + WIDGET_TYPE_UNSPECIFIED = 0; + + // The date picker. + DATE_PICKER = 1; + + // Styled buttons include filled buttons and disabled buttons. + STYLED_BUTTONS = 2; + + // Persistent forms allow persisting form values during actions. + PERSISTENT_FORMS = 3; + + // Fixed footer in card. + FIXED_FOOTER = 4; + + // Update the subject and recipients of a draft. + UPDATE_SUBJECT_AND_RECIPIENTS = 5; + + // The grid widget. + GRID_WIDGET = 6; + + // A Gmail add-on action that applies to the addon compose UI. + ADDON_COMPOSE_UI_ACTION = 7; + } + + // The list of widgets used in an add-on. + repeated WidgetType used_widgets = 1; +} diff --git a/third_party/googleapis/google/apps/script/type/calendar/BUILD.bazel b/third_party/googleapis/google/apps/script/type/calendar/BUILD.bazel new file mode 100644 index 000000000..8ae209363 --- /dev/null +++ b/third_party/googleapis/google/apps/script/type/calendar/BUILD.bazel @@ -0,0 +1,120 @@ +# This file was automatically generated by BuildFileGenerator + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "csharp_grpc_library", + "csharp_proto_library", + "go_proto_library", + "java_grpc_library", + "java_proto_library", + "moved_proto_library", + "php_grpc_library", + "php_proto_library", + "py_grpc_library", + "py_proto_library", + "ruby_grpc_library", + "ruby_proto_library", +) + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +proto_library( + name = "calendar_proto", + srcs = [ + "calendar_addon_manifest.proto", + ], + deps = [ + "//google/api:field_behavior_proto", + "//google/apps/script/type:type_proto", + ], +) + +java_proto_library( + name = "calendar_java_proto", + deps = [":calendar_proto"], +) + +java_grpc_library( + name = "calendar_java_grpc", + srcs = [":calendar_proto"], + deps = [":calendar_java_proto"], +) + +go_proto_library( + name = "calendar_go_proto", + compilers = ["@io_bazel_rules_go//proto:go_grpc"], + importpath = "google.golang.org/genproto/googleapis/apps/script/type/calendar", + protos = [":calendar_proto"], + deps = [ + "//google/api:annotations_go_proto", + "//google/apps/script/type:type_go_proto", + ], +) + +moved_proto_library( + name = "calendar_moved_proto", + srcs = [":calendar_proto"], + deps = [ + "//google/api:field_behavior_proto", + "//google/apps/script/type:type_proto", + ], +) + +py_proto_library( + name = "calendar_py_proto", + plugin = "@protoc_docs_plugin//:docs_plugin", + deps = [":calendar_moved_proto"], +) + +py_grpc_library( + name = "calendar_py_grpc", + srcs = [":calendar_moved_proto"], + deps = [":calendar_py_proto"], +) + +php_proto_library( + name = "calendar_php_proto", + deps = [":calendar_proto"], +) + +php_grpc_library( + name = "calendar_php_grpc", + srcs = [":calendar_proto"], + deps = [":calendar_php_proto"], +) + +ruby_proto_library( + name = "calendar_ruby_proto", + deps = [":calendar_proto"], +) + +ruby_grpc_library( + name = "calendar_ruby_grpc", + srcs = [":calendar_proto"], + deps = [":calendar_ruby_proto"], +) + +csharp_proto_library( + name = "calendar_csharp_proto", + deps = [":calendar_proto"], +) + +csharp_grpc_library( + name = "calendar_csharp_grpc", + srcs = [":calendar_proto"], + deps = [":calendar_csharp_proto"], +) + +############################################################################## +# C++ +############################################################################## +# Put your C++ code here diff --git a/third_party/googleapis/google/apps/script/type/calendar/calendar_addon_manifest.proto b/third_party/googleapis/google/apps/script/type/calendar/calendar_addon_manifest.proto new file mode 100644 index 000000000..3d21cd28c --- /dev/null +++ b/third_party/googleapis/google/apps/script/type/calendar/calendar_addon_manifest.proto @@ -0,0 +1,107 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.apps.script.type.calendar; + +import "google/api/field_behavior.proto"; +import "google/apps/script/type/extension_point.proto"; + +option csharp_namespace = "Google.Apps.Script.Type.Calendar"; +option go_package = "google.golang.org/genproto/googleapis/apps/script/type/calendar"; +option java_multiple_files = true; +option java_outer_classname = "CalendarAddOnManifestProto"; +option java_package = "com.google.apps.script.type.calendar"; +option php_namespace = "Google\\Apps\\Script\\Type\\Calendar"; +option ruby_package = "Google::Apps::Script::Type::Calendar"; + +// Manifest section specific to Calendar Add-ons. + +// Calendar add-on manifest. +message CalendarAddOnManifest { + // An enum defining the level of data access event triggers require. + enum EventAccess { + // Default value when nothing is set for EventAccess. + UNSPECIFIED = 0; + + // METADATA gives event triggers the permission to access the metadata of + // events such as event id and calendar id. + METADATA = 1; + + // READ gives event triggers access to all provided event fields including + // the metadata, attendees, and conference data. + READ = 3; + + // WRITE gives event triggers access to the metadata of events and the + // ability to perform all actions, including adding attendees and setting + // conference data. + WRITE = 4; + + // READ_WRITE gives event triggers access to all provided event fields + // including the metadata, attendees, and conference data and the ability to + // perform all actions. + READ_WRITE = 5; + } + + // Defines an endpoint that will be executed contexts that don't + // match a declared contextual trigger. Any cards generated by this function + // will always be available to the user, but may be eclipsed by contextual + // content when this add-on declares more targeted triggers. + // + // If present, this overrides the configuration from + // `addOns.common.homepageTrigger`. + google.apps.script.type.HomepageExtensionPoint homepage_trigger = 6; + + // Defines conference solutions provided by this add-on. + repeated ConferenceSolution conference_solution = 3; + + // An endpoint to execute that creates a URL to the add-on's settings page. + string create_settings_url_function = 5; + + // An endpoint to trigger when an event is opened (viewed/edited). + CalendarExtensionPoint event_open_trigger = 10; + + // An endpoint to trigger when the open event is updated. + CalendarExtensionPoint event_update_trigger = 11; + + // Define the level of data access when an event addon is triggered. + EventAccess current_event_access = 12; +} + +// Defines conference related values. +message ConferenceSolution { + // Required. The endpoint to call when ConferenceData should be created. + string on_create_function = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. IDs should be unique across ConferenceSolutions within one + // add-on, but this is not strictly enforced. It is up to the add-on developer + // to assign them uniquely, otherwise the wrong ConferenceSolution may be + // used when the add-on is triggered. While the developer may change the + // display name of an add-on, the ID should not be changed. + string id = 4 [(google.api.field_behavior) = REQUIRED]; + + // Required. The display name of the ConferenceSolution. + string name = 5 [(google.api.field_behavior) = REQUIRED]; + + // Required. The URL for the logo image of the ConferenceSolution. + string logo_url = 6 [(google.api.field_behavior) = REQUIRED]; +} + +// Common format for declaring a calendar add-on's triggers. +message CalendarExtensionPoint { + // Required. The endpoint to execute when this extension point is + // activated. + string run_function = 1 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/third_party/googleapis/google/apps/script/type/docs/BUILD.bazel b/third_party/googleapis/google/apps/script/type/docs/BUILD.bazel new file mode 100644 index 000000000..b95410638 --- /dev/null +++ b/third_party/googleapis/google/apps/script/type/docs/BUILD.bazel @@ -0,0 +1,120 @@ +# This file was automatically generated by BuildFileGenerator + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "csharp_grpc_library", + "csharp_proto_library", + "go_proto_library", + "java_grpc_library", + "java_proto_library", + "moved_proto_library", + "php_grpc_library", + "php_proto_library", + "py_grpc_library", + "py_proto_library", + "ruby_grpc_library", + "ruby_proto_library", +) + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +proto_library( + name = "docs_proto", + srcs = [ + "docs_addon_manifest.proto", + ], + deps = [ + "//google/api:field_behavior_proto", + "//google/apps/script/type:type_proto", + ], +) + +java_proto_library( + name = "docs_java_proto", + deps = [":docs_proto"], +) + +java_grpc_library( + name = "docs_java_grpc", + srcs = [":docs_proto"], + deps = [":docs_java_proto"], +) + +go_proto_library( + name = "docs_go_proto", + compilers = ["@io_bazel_rules_go//proto:go_grpc"], + importpath = "google.golang.org/genproto/googleapis/apps/script/type/docs", + protos = [":docs_proto"], + deps = [ + "//google/api:annotations_go_proto", + "//google/apps/script/type:type_go_proto", + ], +) + +moved_proto_library( + name = "docs_moved_proto", + srcs = [":docs_proto"], + deps = [ + "//google/api:field_behavior_proto", + "//google/apps/script/type:type_proto", + ], +) + +py_proto_library( + name = "docs_py_proto", + plugin = "@protoc_docs_plugin//:docs_plugin", + deps = [":docs_moved_proto"], +) + +py_grpc_library( + name = "docs_py_grpc", + srcs = [":docs_moved_proto"], + deps = [":docs_py_proto"], +) + +php_proto_library( + name = "docs_php_proto", + deps = [":docs_proto"], +) + +php_grpc_library( + name = "docs_php_grpc", + srcs = [":docs_proto"], + deps = [":docs_php_proto"], +) + +ruby_proto_library( + name = "docs_ruby_proto", + deps = [":docs_proto"], +) + +ruby_grpc_library( + name = "docs_ruby_grpc", + srcs = [":docs_proto"], + deps = [":docs_ruby_proto"], +) + +csharp_proto_library( + name = "docs_csharp_proto", + deps = [":docs_proto"], +) + +csharp_grpc_library( + name = "docs_csharp_grpc", + srcs = [":docs_proto"], + deps = [":docs_csharp_proto"], +) + +############################################################################## +# C++ +############################################################################## +# Put your C++ code here diff --git a/third_party/googleapis/google/apps/script/type/docs/docs_addon_manifest.proto b/third_party/googleapis/google/apps/script/type/docs/docs_addon_manifest.proto new file mode 100644 index 000000000..395523be5 --- /dev/null +++ b/third_party/googleapis/google/apps/script/type/docs/docs_addon_manifest.proto @@ -0,0 +1,47 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.apps.script.type.docs; + +import "google/api/field_behavior.proto"; +import "google/apps/script/type/extension_point.proto"; + +option csharp_namespace = "Google.Apps.Script.Type.Docs"; +option go_package = "google.golang.org/genproto/googleapis/apps/script/type/docs"; +option java_multiple_files = true; +option java_outer_classname = "DocsAddOnManifestProto"; +option java_package = "com.google.apps.script.type.docs"; +option php_namespace = "Google\\Apps\\Script\\Type\\Docs"; +option ruby_package = "Google::Apps::Script::Type::Docs"; + +// Manifest section specific to Docs Add-ons. + +// Docs add-on manifest. +message DocsAddOnManifest { + // If present, this overrides the configuration from + // `addOns.common.homepageTrigger`. + google.apps.script.type.HomepageExtensionPoint homepage_trigger = 1; + + // Endpoint to execute when file scope authorization is granted + // for this document/user pair. + DocsExtensionPoint on_file_scope_granted_trigger = 2; +} + +// Common format for declaring a Docs add-on's triggers. +message DocsExtensionPoint { + // Required. The endpoint to execute when this extension point is activated. + string run_function = 1 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/third_party/googleapis/google/apps/script/type/drive/BUILD.bazel b/third_party/googleapis/google/apps/script/type/drive/BUILD.bazel new file mode 100644 index 000000000..c869c24be --- /dev/null +++ b/third_party/googleapis/google/apps/script/type/drive/BUILD.bazel @@ -0,0 +1,117 @@ +# This file was automatically generated by BuildFileGenerator + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "csharp_grpc_library", + "csharp_proto_library", + "go_proto_library", + "java_grpc_library", + "java_proto_library", + "moved_proto_library", + "php_grpc_library", + "php_proto_library", + "py_grpc_library", + "py_proto_library", + "ruby_grpc_library", + "ruby_proto_library", +) + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +proto_library( + name = "drive_proto", + srcs = [ + "drive_addon_manifest.proto", + ], + deps = [ + "//google/apps/script/type:type_proto", + ], +) + +java_proto_library( + name = "drive_java_proto", + deps = [":drive_proto"], +) + +java_grpc_library( + name = "drive_java_grpc", + srcs = [":drive_proto"], + deps = [":drive_java_proto"], +) + +go_proto_library( + name = "drive_go_proto", + compilers = ["@io_bazel_rules_go//proto:go_grpc"], + importpath = "google.golang.org/genproto/googleapis/apps/script/type/drive", + protos = [":drive_proto"], + deps = [ + "//google/apps/script/type:type_go_proto", + ], +) + +moved_proto_library( + name = "drive_moved_proto", + srcs = [":drive_proto"], + deps = [ + "//google/apps/script/type:type_proto", + ], +) + +py_proto_library( + name = "drive_py_proto", + plugin = "@protoc_docs_plugin//:docs_plugin", + deps = [":drive_moved_proto"], +) + +py_grpc_library( + name = "drive_py_grpc", + srcs = [":drive_moved_proto"], + deps = [":drive_py_proto"], +) + +php_proto_library( + name = "drive_php_proto", + deps = [":drive_proto"], +) + +php_grpc_library( + name = "drive_php_grpc", + srcs = [":drive_proto"], + deps = [":drive_php_proto"], +) + +ruby_proto_library( + name = "drive_ruby_proto", + deps = [":drive_proto"], +) + +ruby_grpc_library( + name = "drive_ruby_grpc", + srcs = [":drive_proto"], + deps = [":drive_ruby_proto"], +) + +csharp_proto_library( + name = "drive_csharp_proto", + deps = [":drive_proto"], +) + +csharp_grpc_library( + name = "drive_csharp_grpc", + srcs = [":drive_proto"], + deps = [":drive_csharp_proto"], +) + +############################################################################## +# C++ +############################################################################## +# Put your C++ code here diff --git a/third_party/googleapis/google/apps/script/type/drive/drive_addon_manifest.proto b/third_party/googleapis/google/apps/script/type/drive/drive_addon_manifest.proto new file mode 100644 index 000000000..55da161cf --- /dev/null +++ b/third_party/googleapis/google/apps/script/type/drive/drive_addon_manifest.proto @@ -0,0 +1,48 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.apps.script.type.drive; + +import "google/apps/script/type/extension_point.proto"; + +option csharp_namespace = "Google.Apps.Script.Type.Drive"; +option go_package = "google.golang.org/genproto/googleapis/apps/script/type/drive"; +option java_multiple_files = true; +option java_outer_classname = "DriveAddOnManifestProto"; +option java_package = "com.google.apps.script.type.drive"; +option php_namespace = "Google\\Apps\\Script\\Type\\Drive"; +option ruby_package = "Google::Apps::Script::Type::Drive"; + +// Manifest section specific to Drive Add-ons. + +// Drive add-on manifest. +message DriveAddOnManifest { + // If present, this overrides the configuration from + // `addOns.common.homepageTrigger`. + google.apps.script.type.HomepageExtensionPoint homepage_trigger = 1; + + // Corresponds to behvior that should execute when items are selected + // in relevant Drive view (e.g. the My Drive Doclist). + DriveExtensionPoint on_items_selected_trigger = 2; +} + +// A generic extension point with common features, e.g. something that simply +// needs a corresponding run function to work. +message DriveExtensionPoint { + // Required. The endpoint to execute when this extension point is + // activated. + string run_function = 1; +} diff --git a/third_party/googleapis/google/apps/script/type/extension_point.proto b/third_party/googleapis/google/apps/script/type/extension_point.proto new file mode 100644 index 000000000..f387c8642 --- /dev/null +++ b/third_party/googleapis/google/apps/script/type/extension_point.proto @@ -0,0 +1,77 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.apps.script.type; + +import "google/protobuf/wrappers.proto"; + +option csharp_namespace = "Google.Apps.Script.Type"; +option go_package = "google.golang.org/genproto/googleapis/apps/script/type"; +option java_multiple_files = true; +option java_package = "com.google.apps.script.type"; +option php_namespace = "Google\\Apps\\Script\\Type"; +option ruby_package = "Google::Apps::Script::Type"; + +// Common Manifest protos for G Suite extension-point configuration. + +// Common format for declaring a menu item, or button, that appears within a +// host app. +message MenuItemExtensionPoint { + // Required. The endpoint to execute when this extension point is + // activated. + string run_function = 1; + + // Required. User-visible text describing the action taken by activating this + // extension point. For example, "Insert invoice". + string label = 2; + + // The URL for the logo image shown in the add-on toolbar. + // + // If not set, defaults to the add-on's primary logo URL. + string logo_url = 3; +} + +// Common format for declaring an add-on's home-page view. +message HomepageExtensionPoint { + // Required. The endpoint to execute when this extension point is + // activated. + string run_function = 1; + + // Optional. If set to `false`, disable the home-page view in this context. + // + // Defaults to `true` if unset. + // + // If an add-ons custom home-page view is disabled, an autogenerated overview + // card will be provided for users instead. + google.protobuf.BoolValue enabled = 2; +} + +// Format for declaring a universal action menu item extension point. +message UniversalActionExtensionPoint { + // Required. User-visible text describing the action taken by activating this + // extension point, for example, "Add a new contact". + string label = 1; + + // Required. The action type supported on a universal action menu item. It + // could be either a link to open or an endpoint to execute. + oneof action_type { + // URL to be opened by the UniversalAction. + string open_link = 2; + + // Endpoint to be run by the UniversalAction. + string run_function = 3; + } +} diff --git a/third_party/googleapis/google/apps/script/type/gmail/BUILD.bazel b/third_party/googleapis/google/apps/script/type/gmail/BUILD.bazel new file mode 100644 index 000000000..cfe6d28b0 --- /dev/null +++ b/third_party/googleapis/google/apps/script/type/gmail/BUILD.bazel @@ -0,0 +1,119 @@ +# This file was automatically generated by BuildFileGenerator + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "csharp_grpc_library", + "csharp_proto_library", + "go_proto_library", + "java_grpc_library", + "java_proto_library", + "moved_proto_library", + "php_grpc_library", + "php_proto_library", + "py_grpc_library", + "py_proto_library", + "ruby_grpc_library", + "ruby_proto_library", +) + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +proto_library( + name = "gmail_proto", + srcs = [ + "gmail_addon_manifest.proto", + ], + deps = [ + "//google/apps/script/type:type_proto", + "@com_google_protobuf//:struct_proto", + ], +) + +java_proto_library( + name = "gmail_java_proto", + deps = [":gmail_proto"], +) + +java_grpc_library( + name = "gmail_java_grpc", + srcs = [":gmail_proto"], + deps = [":gmail_java_proto"], +) + +go_proto_library( + name = "gmail_go_proto", + compilers = ["@io_bazel_rules_go//proto:go_grpc"], + importpath = "google.golang.org/genproto/googleapis/apps/script/type/gmail", + protos = [":gmail_proto"], + deps = [ + "//google/apps/script/type:type_go_proto", + ], +) + +moved_proto_library( + name = "gmail_moved_proto", + srcs = [":gmail_proto"], + deps = [ + "//google/apps/script/type:type_proto", + "@com_google_protobuf//:struct_proto", + ], +) + +py_proto_library( + name = "gmail_py_proto", + plugin = "@protoc_docs_plugin//:docs_plugin", + deps = [":gmail_moved_proto"], +) + +py_grpc_library( + name = "gmail_py_grpc", + srcs = [":gmail_moved_proto"], + deps = [":gmail_py_proto"], +) + +php_proto_library( + name = "gmail_php_proto", + deps = [":gmail_proto"], +) + +php_grpc_library( + name = "gmail_php_grpc", + srcs = [":gmail_proto"], + deps = [":gmail_php_proto"], +) + +ruby_proto_library( + name = "gmail_ruby_proto", + deps = [":gmail_proto"], +) + +ruby_grpc_library( + name = "gmail_ruby_grpc", + srcs = [":gmail_proto"], + deps = [":gmail_ruby_proto"], +) + +csharp_proto_library( + name = "gmail_csharp_proto", + deps = [":gmail_proto"], +) + +csharp_grpc_library( + name = "gmail_csharp_grpc", + srcs = [":gmail_proto"], + deps = [":gmail_csharp_proto"], +) + +############################################################################## +# C++ +############################################################################## +# Put your C++ code here diff --git a/third_party/googleapis/google/apps/script/type/gmail/gmail_addon_manifest.proto b/third_party/googleapis/google/apps/script/type/gmail/gmail_addon_manifest.proto new file mode 100644 index 000000000..293899786 --- /dev/null +++ b/third_party/googleapis/google/apps/script/type/gmail/gmail_addon_manifest.proto @@ -0,0 +1,128 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.apps.script.type.gmail; + +import "google/apps/script/type/addon_widget_set.proto"; +import "google/apps/script/type/extension_point.proto"; +import "google/protobuf/struct.proto"; + +option csharp_namespace = "Google.Apps.Script.Type.Gmail"; +option go_package = "google.golang.org/genproto/googleapis/apps/script/type/gmail"; +option java_multiple_files = true; +option java_outer_classname = "GmailAddOnManifestProto"; +option java_package = "com.google.apps.script.type.gmail"; +option php_namespace = "Google\\Apps\\Script\\Type\\Gmail"; +option ruby_package = "Google::Apps::Script::Type::Gmail"; + +// Properties customizing the appearance and execution of a Gmail add-on. +message GmailAddOnManifest { + // Defines an endpoint that will be executed in contexts that don't + // match a declared contextual trigger. Any cards generated by this function + // will always be available to the user, but may be eclipsed by contextual + // content when this add-on declares more targeted triggers. + // + // If present, this overrides the configuration from + // `addOns.common.homepageTrigger`. + google.apps.script.type.HomepageExtensionPoint homepage_trigger = 14; + + // Defines the set of conditions that trigger the add-on. + repeated ContextualTrigger contextual_triggers = 3; + + // Defines set of [universal + // actions](/gmail/add-ons/how-tos/universal-actions) for the add-on. The user + // triggers universal actions from the add-on toolbar menu. + repeated UniversalAction universal_actions = 4; + + // Defines the compose time trigger for a compose time add-on. This is the + // trigger that causes an add-on to take action when the user is composing an + // email. + // All compose time addons are required to have the + // gmail.addons.current.action.compose scope even though it might not edit the + // draft. + ComposeTrigger compose_trigger = 12; + + // The name of an endpoint that verifies that the add-on has + // all the required third-party authorizations, by probing the third-party + // APIs. If the probe fails, the function should throw an exception to + // initiate the authorization flow. This function is called before each + // invocation of the add-on, in order to ensure a smooth user experience. + string authorization_check_function = 7; +} + +// An action that is always available in the add-on toolbar menu regardless of +// message context. +message UniversalAction { + // Required. User-visible text describing the action, for example, "Add a new + // contact." + string text = 1; + + // The type of the action determines the behavior of Gmail when the user + // invokes the action. + oneof action_type { + // A link that is opened by Gmail when the user triggers the action. + string open_link = 2; + + // An endpoint that is called when the user triggers the + // action. See the [universal actions + // guide](/gmail/add-ons/how-tos/universal-actions) for details. + string run_function = 3; + } +} + +// A trigger that activates when user is composing an email. +message ComposeTrigger { + // An enum defining the level of data access this compose trigger requires. + enum DraftAccess { + // Default value when nothing is set for DraftAccess. + UNSPECIFIED = 0; + + // NONE means compose trigger won't be able to access any data of the draft + // when a compose addon is triggered. + NONE = 1; + + // METADATA gives compose trigger the permission to access the metadata of + // the draft when a compose addon is triggered. This includes the audience + // list (To/cc list) of a draft message. + METADATA = 2; + } + + // Defines the set of actions for compose time add-on. These are actions + // that user can trigger on a compose time addon. + repeated google.apps.script.type.MenuItemExtensionPoint actions = 5; + + // Define the level of data access when a compose time addon is triggered. + DraftAccess draft_access = 4; +} + +// Defines a trigger that fires when the open email meets a specific criteria. +// When the trigger fires, it executes a specific endpoint, usually +// in order to create new cards and update the UI. +message ContextualTrigger { + // The type of trigger determines the conditions Gmail uses to show the + // add-on. + oneof trigger { + // UnconditionalTriggers are executed when any mail message is opened. + UnconditionalTrigger unconditional = 1; + } + + // Required. The name of the endpoint to call when a message matches the + // trigger. + string on_trigger_function = 4; +} + +// A trigger that fires when any email message is opened. +message UnconditionalTrigger {} diff --git a/third_party/googleapis/google/apps/script/type/script_manifest.proto b/third_party/googleapis/google/apps/script/type/script_manifest.proto new file mode 100644 index 000000000..572d5da98 --- /dev/null +++ b/third_party/googleapis/google/apps/script/type/script_manifest.proto @@ -0,0 +1,105 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.apps.script.type; + +import "google/apps/script/type/addon_widget_set.proto"; +import "google/apps/script/type/extension_point.proto"; +import "google/protobuf/struct.proto"; + +option csharp_namespace = "Google.Apps.Script.Type"; +option go_package = "google.golang.org/genproto/googleapis/apps/script/type"; +option java_multiple_files = true; +option java_package = "com.google.apps.script.type"; +option php_namespace = "Google\\Apps\\Script\\Type"; +option ruby_package = "Google::Apps::Script::Type"; + +// Add-on configuration that is shared across all add-on host applications. +message CommonAddOnManifest { + // Required. The display name of the add-on. + string name = 1; + + // Required. The URL for the logo image shown in the add-on toolbar. + string logo_url = 2; + + // Common layout properties for the add-on cards. + LayoutProperties layout_properties = 3; + + // The widgets used in the add-on. If this field is not specified, + // it indicates that default set is used. + AddOnWidgetSet add_on_widget_set = 4; + + // Whether to pass locale information from host app. + bool use_locale_from_app = 5; + + // Defines an endpoint that will be executed in any context, in + // any host. Any cards generated by this function will always be available to + // the user, but may be eclipsed by contextual content when this add-on + // declares more targeted triggers. + HomepageExtensionPoint homepage_trigger = 6; + + // Defines a list of extension points in the universal action menu which + // serves as a setting menu for the add-on. The extension point can be + // link URL to open or an endpoint to execute as a form + // submission. + repeated UniversalActionExtensionPoint universal_actions = 7; + + // An OpenLink action + // can only use a URL with an HTTPS, MAILTO or TEL scheme. For HTTPS links, + // the URL must also + // [match](/gmail/add-ons/concepts/manifests#whitelisting_urls) one of the + // prefixes specified in this whitelist. If the prefix omits the scheme, HTTPS + // is assumed. Notice that HTTP links are automatically rewritten to HTTPS + // links. + google.protobuf.ListValue open_link_url_prefixes = 8; +} + +// Card layout properties shared across all add-on host applications. +message LayoutProperties { + // The primary color of the add-on. It sets the color of toolbar. If no + // primary color is set explicitly, the default value provided by the + // framework is used. + string primary_color = 1; + + // The secondary color of the add-on. It sets the color of buttons. + // If primary color is set but no secondary color is set, the + // secondary color is the same as the primary color. If neither primary + // color nor secondary color is set, the default value provided by the + // framework is used. + string secondary_color = 2; +} + +// Options for sending requests to add-on HTTP endpoints +message HttpOptions { + // Configuration for the token sent in the HTTP Authorization header + HttpAuthorizationHeader authorization_header = 1; +} + +// Authorization header sent in add-on HTTP requests +enum HttpAuthorizationHeader { + // Default value, equivalent to `SYSTEM_ID_TOKEN` + HTTP_AUTHORIZATION_HEADER_UNSPECIFIED = 0; + + // Send an ID token for the project-specific Google Workspace Add-ons system + // service account (default) + SYSTEM_ID_TOKEN = 1; + + // Send an ID token for the end user + USER_ID_TOKEN = 2; + + // Do not send an Authentication header + NONE = 3; +} diff --git a/third_party/googleapis/google/apps/script/type/sheets/BUILD.bazel b/third_party/googleapis/google/apps/script/type/sheets/BUILD.bazel new file mode 100644 index 000000000..b662c6139 --- /dev/null +++ b/third_party/googleapis/google/apps/script/type/sheets/BUILD.bazel @@ -0,0 +1,120 @@ +# This file was automatically generated by BuildFileGenerator + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "csharp_grpc_library", + "csharp_proto_library", + "go_proto_library", + "java_grpc_library", + "java_proto_library", + "moved_proto_library", + "php_grpc_library", + "php_proto_library", + "py_grpc_library", + "py_proto_library", + "ruby_grpc_library", + "ruby_proto_library", +) + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +proto_library( + name = "sheets_proto", + srcs = [ + "sheets_addon_manifest.proto", + ], + deps = [ + "//google/api:field_behavior_proto", + "//google/apps/script/type:type_proto", + ], +) + +java_proto_library( + name = "sheets_java_proto", + deps = [":sheets_proto"], +) + +java_grpc_library( + name = "sheets_java_grpc", + srcs = [":sheets_proto"], + deps = [":sheets_java_proto"], +) + +go_proto_library( + name = "sheets_go_proto", + compilers = ["@io_bazel_rules_go//proto:go_grpc"], + importpath = "google.golang.org/genproto/googleapis/apps/script/type/sheets", + protos = [":sheets_proto"], + deps = [ + "//google/api:annotations_go_proto", + "//google/apps/script/type:type_go_proto", + ], +) + +moved_proto_library( + name = "sheets_moved_proto", + srcs = [":sheets_proto"], + deps = [ + "//google/api:field_behavior_proto", + "//google/apps/script/type:type_proto", + ], +) + +py_proto_library( + name = "sheets_py_proto", + plugin = "@protoc_docs_plugin//:docs_plugin", + deps = [":sheets_moved_proto"], +) + +py_grpc_library( + name = "sheets_py_grpc", + srcs = [":sheets_moved_proto"], + deps = [":sheets_py_proto"], +) + +php_proto_library( + name = "sheets_php_proto", + deps = [":sheets_proto"], +) + +php_grpc_library( + name = "sheets_php_grpc", + srcs = [":sheets_proto"], + deps = [":sheets_php_proto"], +) + +ruby_proto_library( + name = "sheets_ruby_proto", + deps = [":sheets_proto"], +) + +ruby_grpc_library( + name = "sheets_ruby_grpc", + srcs = [":sheets_proto"], + deps = [":sheets_ruby_proto"], +) + +csharp_proto_library( + name = "sheets_csharp_proto", + deps = [":sheets_proto"], +) + +csharp_grpc_library( + name = "sheets_csharp_grpc", + srcs = [":sheets_proto"], + deps = [":sheets_csharp_proto"], +) + +############################################################################## +# C++ +############################################################################## +# Put your C++ code here diff --git a/third_party/googleapis/google/apps/script/type/sheets/sheets_addon_manifest.proto b/third_party/googleapis/google/apps/script/type/sheets/sheets_addon_manifest.proto new file mode 100644 index 000000000..c34bca71f --- /dev/null +++ b/third_party/googleapis/google/apps/script/type/sheets/sheets_addon_manifest.proto @@ -0,0 +1,47 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.apps.script.type.sheets; + +import "google/api/field_behavior.proto"; +import "google/apps/script/type/extension_point.proto"; + +option csharp_namespace = "Google.Apps.Script.Type.Sheets"; +option go_package = "google.golang.org/genproto/googleapis/apps/script/type/sheets"; +option java_multiple_files = true; +option java_outer_classname = "SheetsAddOnManifestProto"; +option java_package = "com.google.apps.script.type.sheets"; +option php_namespace = "Google\\Apps\\Script\\Type\\Sheets"; +option ruby_package = "Google::Apps::Script::Type::Sheets"; + +// Manifest section specific to Sheets Add-ons. + +// Sheets add-on manifest. +message SheetsAddOnManifest { + // If present, this overrides the configuration from + // `addOns.common.homepageTrigger`. + google.apps.script.type.HomepageExtensionPoint homepage_trigger = 3; + + // Endpoint to execute when file scope authorization is granted + // for this document/user pair. + SheetsExtensionPoint on_file_scope_granted_trigger = 5; +} + +// Common format for declaring a Sheets add-on's triggers. +message SheetsExtensionPoint { + // Required. The endpoint to execute when this extension point is activated. + string run_function = 1 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/third_party/googleapis/google/apps/script/type/slides/BUILD.bazel b/third_party/googleapis/google/apps/script/type/slides/BUILD.bazel new file mode 100644 index 000000000..6e3e717d8 --- /dev/null +++ b/third_party/googleapis/google/apps/script/type/slides/BUILD.bazel @@ -0,0 +1,120 @@ +# This file was automatically generated by BuildFileGenerator + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "csharp_grpc_library", + "csharp_proto_library", + "go_proto_library", + "java_grpc_library", + "java_proto_library", + "moved_proto_library", + "php_grpc_library", + "php_proto_library", + "py_grpc_library", + "py_proto_library", + "ruby_grpc_library", + "ruby_proto_library", +) + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +proto_library( + name = "slides_proto", + srcs = [ + "slides_addon_manifest.proto", + ], + deps = [ + "//google/api:field_behavior_proto", + "//google/apps/script/type:type_proto", + ], +) + +java_proto_library( + name = "slides_java_proto", + deps = [":slides_proto"], +) + +java_grpc_library( + name = "slides_java_grpc", + srcs = [":slides_proto"], + deps = [":slides_java_proto"], +) + +go_proto_library( + name = "slides_go_proto", + compilers = ["@io_bazel_rules_go//proto:go_grpc"], + importpath = "google.golang.org/genproto/googleapis/apps/script/type/slides", + protos = [":slides_proto"], + deps = [ + "//google/api:annotations_go_proto", + "//google/apps/script/type:type_go_proto", + ], +) + +moved_proto_library( + name = "slides_moved_proto", + srcs = [":slides_proto"], + deps = [ + "//google/api:field_behavior_proto", + "//google/apps/script/type:type_proto", + ], +) + +py_proto_library( + name = "slides_py_proto", + plugin = "@protoc_docs_plugin//:docs_plugin", + deps = [":slides_moved_proto"], +) + +py_grpc_library( + name = "slides_py_grpc", + srcs = [":slides_moved_proto"], + deps = [":slides_py_proto"], +) + +php_proto_library( + name = "slides_php_proto", + deps = [":slides_proto"], +) + +php_grpc_library( + name = "slides_php_grpc", + srcs = [":slides_proto"], + deps = [":slides_php_proto"], +) + +ruby_proto_library( + name = "slides_ruby_proto", + deps = [":slides_proto"], +) + +ruby_grpc_library( + name = "slides_ruby_grpc", + srcs = [":slides_proto"], + deps = [":slides_ruby_proto"], +) + +csharp_proto_library( + name = "slides_csharp_proto", + deps = [":slides_proto"], +) + +csharp_grpc_library( + name = "slides_csharp_grpc", + srcs = [":slides_proto"], + deps = [":slides_csharp_proto"], +) + +############################################################################## +# C++ +############################################################################## +# Put your C++ code here diff --git a/third_party/googleapis/google/apps/script/type/slides/slides_addon_manifest.proto b/third_party/googleapis/google/apps/script/type/slides/slides_addon_manifest.proto new file mode 100644 index 000000000..6a51bb2f4 --- /dev/null +++ b/third_party/googleapis/google/apps/script/type/slides/slides_addon_manifest.proto @@ -0,0 +1,47 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.apps.script.type.slides; + +import "google/api/field_behavior.proto"; +import "google/apps/script/type/extension_point.proto"; + +option csharp_namespace = "Google.Apps.Script.Type.Slides"; +option go_package = "google.golang.org/genproto/googleapis/apps/script/type/slides"; +option java_multiple_files = true; +option java_outer_classname = "SlidesAddOnManifestProto"; +option java_package = "com.google.apps.script.type.slides"; +option php_namespace = "Google\\Apps\\Script\\Type\\Slides"; +option ruby_package = "Google::Apps::Script::Type::Slides"; + +// Manifest section specific to Slides Add-ons. + +// Slides add-on manifest. +message SlidesAddOnManifest { + // If present, this overrides the configuration from + // `addOns.common.homepageTrigger`. + google.apps.script.type.HomepageExtensionPoint homepage_trigger = 1; + + // Endpoint to execute when file scope authorization is granted + // for this document/user pair. + SlidesExtensionPoint on_file_scope_granted_trigger = 2; +} + +// Common format for declaring a Slides add-on's triggers. +message SlidesExtensionPoint { + // Required. The endpoint to execute when this extension point is activated. + string run_function = 1 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/third_party/googleapis/google/area120/tables/v1alpha1/BUILD.bazel b/third_party/googleapis/google/area120/tables/v1alpha1/BUILD.bazel index b61a6baf3..4052c3d3f 100644 --- a/third_party/googleapis/google/area120/tables/v1alpha1/BUILD.bazel +++ b/third_party/googleapis/google/area120/tables/v1alpha1/BUILD.bazel @@ -67,11 +67,9 @@ java_grpc_library( java_gapic_library( name = "tables_java_gapic", - src = ":tables_proto_with_info", + srcs = [":tables_proto_with_info"], gapic_yaml = "language_gapic.yaml", grpc_service_config = "tables_grpc_service_config.json", - package = "google.area120.tables.v1alpha1", - service_yaml = "area120tables_v1alpha1.yaml", test_deps = [ ":tables_java_grpc", ], @@ -151,12 +149,10 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -229,7 +225,9 @@ load( nodejs_gapic_library( name = "tables_nodejs_gapic", + package_name = "@google/area120-tables", src = ":tables_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "tables_grpc_service_config.json", package = "google.area120.tables.v1alpha1", service_yaml = "area120tables_v1alpha1.yaml", @@ -314,8 +312,8 @@ csharp_grpc_library( csharp_gapic_library( name = "tables_csharp_gapic", srcs = [":tables_proto_with_info"], - grpc_service_config = "tables_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "tables_grpc_service_config.json", deps = [ ":tables_csharp_grpc", ":tables_csharp_proto", diff --git a/third_party/googleapis/google/area120/tables/v1alpha1/area120tables_v1alpha1.yaml b/third_party/googleapis/google/area120/tables/v1alpha1/area120tables_v1alpha1.yaml index fcc611155..62cbd7a1e 100644 --- a/third_party/googleapis/google/area120/tables/v1alpha1/area120tables_v1alpha1.yaml +++ b/third_party/googleapis/google/area120/tables/v1alpha1/area120tables_v1alpha1.yaml @@ -13,28 +13,49 @@ authentication: canonical_scopes: |- https://www.googleapis.com/auth/drive, https://www.googleapis.com/auth/drive.file, - https://www.googleapis.com/auth/spreadsheets - - selector: google.area120.tables.v1alpha1.TablesService.GetRow + https://www.googleapis.com/auth/drive.readonly, + https://www.googleapis.com/auth/spreadsheets, + https://www.googleapis.com/auth/spreadsheets.readonly, + https://www.googleapis.com/auth/tables + - selector: google.area120.tables.v1alpha1.TablesService.BatchCreateRows oauth: canonical_scopes: |- https://www.googleapis.com/auth/drive, https://www.googleapis.com/auth/drive.file, - https://www.googleapis.com/auth/drive.readonly, https://www.googleapis.com/auth/spreadsheets, - https://www.googleapis.com/auth/spreadsheets.readonly - - selector: google.area120.tables.v1alpha1.TablesService.GetTable + https://www.googleapis.com/auth/tables + - selector: google.area120.tables.v1alpha1.TablesService.BatchDeleteRows oauth: canonical_scopes: |- https://www.googleapis.com/auth/drive, https://www.googleapis.com/auth/drive.file, - https://www.googleapis.com/auth/drive.readonly, https://www.googleapis.com/auth/spreadsheets, - https://www.googleapis.com/auth/spreadsheets.readonly - - selector: google.area120.tables.v1alpha1.TablesService.ListRows + https://www.googleapis.com/auth/tables + - selector: google.area120.tables.v1alpha1.TablesService.BatchUpdateRows + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/drive, + https://www.googleapis.com/auth/drive.file, + https://www.googleapis.com/auth/spreadsheets, + https://www.googleapis.com/auth/tables + - selector: google.area120.tables.v1alpha1.TablesService.CreateRow + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/drive, + https://www.googleapis.com/auth/drive.file, + https://www.googleapis.com/auth/spreadsheets, + https://www.googleapis.com/auth/tables + - selector: google.area120.tables.v1alpha1.TablesService.DeleteRow + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/drive, + https://www.googleapis.com/auth/drive.file, + https://www.googleapis.com/auth/spreadsheets, + https://www.googleapis.com/auth/tables + - selector: google.area120.tables.v1alpha1.TablesService.UpdateRow oauth: canonical_scopes: |- https://www.googleapis.com/auth/drive, https://www.googleapis.com/auth/drive.file, - https://www.googleapis.com/auth/drive.readonly, https://www.googleapis.com/auth/spreadsheets, - https://www.googleapis.com/auth/spreadsheets.readonly + https://www.googleapis.com/auth/tables diff --git a/third_party/googleapis/google/area120/tables/v1alpha1/tables.proto b/third_party/googleapis/google/area120/tables/v1alpha1/tables.proto index fbd83e0f8..91cf178a6 100644 --- a/third_party/googleapis/google/area120/tables/v1alpha1/tables.proto +++ b/third_party/googleapis/google/area120/tables/v1alpha1/tables.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,6 +37,10 @@ option java_package = "com.google.area120.tables.v1alpha1"; // // - Each Table has a collection of [Row][google.area120.tables.v1alpha1.Row] // resources, named `tables/*/rows/*` +// +// - The API has a collection of +// [Workspace][google.area120.tables.v1alpha1.Workspace] +// resources, named `workspaces/*`. service TablesService { option (google.api.default_host) = "area120tables.googleapis.com"; option (google.api.oauth_scopes) = @@ -44,7 +48,8 @@ service TablesService { "https://www.googleapis.com/auth/drive.file," "https://www.googleapis.com/auth/drive.readonly," "https://www.googleapis.com/auth/spreadsheets," - "https://www.googleapis.com/auth/spreadsheets.readonly"; + "https://www.googleapis.com/auth/spreadsheets.readonly," + "https://www.googleapis.com/auth/tables"; // Gets a table. Returns NOT_FOUND if the table does not exist. rpc GetTable(GetTableRequest) returns (Table) { @@ -61,6 +66,21 @@ service TablesService { }; } + // Gets a workspace. Returns NOT_FOUND if the workspace does not exist. + rpc GetWorkspace(GetWorkspaceRequest) returns (Workspace) { + option (google.api.http) = { + get: "/v1alpha1/{name=workspaces/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists workspaces for the user. + rpc ListWorkspaces(ListWorkspacesRequest) returns (ListWorkspacesResponse) { + option (google.api.http) = { + get: "/v1alpha1/workspaces" + }; + } + // Gets a row. Returns NOT_FOUND if the row does not exist in the table. rpc GetRow(GetRowRequest) returns (Row) { option (google.api.http) = { @@ -118,13 +138,26 @@ service TablesService { }; option (google.api.method_signature) = "name"; } + + // Deletes multiple rows. + rpc BatchDeleteRows(BatchDeleteRowsRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1alpha1/{parent=tables/*}/rows:batchDelete" + body: "*" + }; + } } // Request message for TablesService.GetTable. message GetTableRequest { // Required. The name of the table to retrieve. // Format: tables/{table} - string name = 1 [(google.api.field_behavior) = REQUIRED]; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "area120tables.googleapis.com/Table" + } + ]; } // Request message for TablesService.ListTables. @@ -154,11 +187,55 @@ message ListTablesResponse { string next_page_token = 2; } +// Request message for TablesService.GetWorkspace. +message GetWorkspaceRequest { + // Required. The name of the workspace to retrieve. + // Format: workspaces/{workspace} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "area120tables.googleapis.com/Workspace" + } + ]; +} + +// Request message for TablesService.ListWorkspaces. +message ListWorkspacesRequest { + // The maximum number of workspaces to return. The service may return fewer + // than this value. + // + // If unspecified, at most 10 workspaces are returned. The maximum value is + // 25; values above 25 are coerced to 25. + int32 page_size = 1; + + // A page token, received from a previous `ListWorkspaces` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListWorkspaces` must + // match the call that provided the page token. + string page_token = 2; +} + +// Response message for TablesService.ListWorkspaces. +message ListWorkspacesResponse { + // The list of workspaces. + repeated Workspace workspaces = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is empty, there are no subsequent pages. + string next_page_token = 2; +} + // Request message for TablesService.GetRow. message GetRowRequest { // Required. The name of the row to retrieve. // Format: tables/{table}/rows/{row} - string name = 1 [(google.api.field_behavior) = REQUIRED]; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "area120tables.googleapis.com/Row" + } + ]; // Optional. Column key to use for values in the row. // Defaults to user entered name. @@ -188,6 +265,11 @@ message ListRowsRequest { // Optional. Column key to use for values in the row. // Defaults to user entered name. View view = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Raw text query to search for in rows of the table. + // Special characters must be escaped. Logical operators and field specific + // filtering not supported. + string filter = 5 [(google.api.field_behavior) = OPTIONAL]; } // Response message for TablesService.ListRows. @@ -275,6 +357,29 @@ message DeleteRowRequest { ]; } +// Request message for TablesService.BatchDeleteRows +message BatchDeleteRowsRequest { + // Required. The parent table shared by all rows being deleted. + // Format: tables/{table} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "area120tables.googleapis.com/Table" + } + ]; + + // Required. The names of the rows to delete. All rows must belong to the parent table + // or else the entire batch will fail. A maximum of 500 rows can be deleted + // in a batch. + // Format: tables/{table}/rows/{row} + repeated string names = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "area120tables.googleapis.com/Row" + } + ]; +} + // A single table. message Table { option (google.api.resource) = { @@ -300,12 +405,57 @@ message ColumnDescription { string name = 1; // Data type of the column - // Supported types are number, text, boolean, number_list, text_list, - // boolean_list. + // Supported types are auto_id, boolean, boolean_list, creator, + // create_timestamp, date, dropdown, location, integer, + // integer_list, number, number_list, person, person_list, tags, check_list, + // text, text_list, update_timestamp, updater, relationship, + // file_attachment_list. + // These types directly map to the column types supported on Tables website. string data_type = 2; // Internal id for a column. string id = 3; + + // Optional. Range of labeled values for the column. + // Some columns like tags and drop-downs limit the values to a set of + // possible values. We return the range of values in such cases to help + // clients implement better user data validation. + repeated LabeledItem labels = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Additional details about a relationship column. Specified when data_type + // is relationship. + RelationshipDetails relationship_details = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Indicates that this is a lookup column whose value is derived from the + // relationship column specified in the details. Lookup columns can not be + // updated directly. To change the value you must update the associated + // relationship column. + LookupDetails lookup_details = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// A single item in a labeled column. +message LabeledItem { + // Display string as entered by user. + string name = 1; + + // Internal id associated with the item. + string id = 2; +} + +// Details about a relationship column. +message RelationshipDetails { + // The name of the table this relationship is linked to. + string linked_table = 1; +} + +// Details about a lookup column whose value comes from the associated +// relationship. +message LookupDetails { + // The name of the relationship column associated with the lookup. + string relationship_column = 1; + + // The id of the relationship column. + string relationship_column_id = 2; } // A single row in a table. @@ -326,6 +476,24 @@ message Row { map values = 2; } +// A single workspace. +message Workspace { + option (google.api.resource) = { + type: "area120tables.googleapis.com/Workspace" + pattern: "workspaces/{workspace}" + }; + + // The resource name of the workspace. + // Workspace names have the form `workspaces/{workspace}`. + string name = 1; + + // The human readable title of the workspace. + string display_name = 2; + + // The list of tables in the workspace. + repeated Table tables = 3; +} + // Column identifier used for the values in the row. enum View { // Defaults to user entered text. diff --git a/third_party/googleapis/google/area120/tables/v1alpha1/tables_grpc_service_config.json b/third_party/googleapis/google/area120/tables/v1alpha1/tables_grpc_service_config.json index 17fbc5ba3..58b7f7514 100644 --- a/third_party/googleapis/google/area120/tables/v1alpha1/tables_grpc_service_config.json +++ b/third_party/googleapis/google/area120/tables/v1alpha1/tables_grpc_service_config.json @@ -12,6 +12,8 @@ }, { "name": [ + { "service": "google.area120.tables.v1alpha1.TablesService", "method": "ListWorkspaces" }, + { "service": "google.area120.tables.v1alpha1.TablesService", "method": "GetWorkspace" }, { "service": "google.area120.tables.v1alpha1.TablesService", "method": "ListTables" }, { "service": "google.area120.tables.v1alpha1.TablesService", "method": "GetTable" }, { "service": "google.area120.tables.v1alpha1.TablesService", "method": "GetRow" }, @@ -20,7 +22,8 @@ { "service": "google.area120.tables.v1alpha1.TablesService", "method": "BatchCreateRows" }, { "service": "google.area120.tables.v1alpha1.TablesService", "method": "UpdateRow" }, { "service": "google.area120.tables.v1alpha1.TablesService", "method": "BatchUpdateRows" }, - { "service": "google.area120.tables.v1alpha1.TablesService", "method": "DeleteRow" } + { "service": "google.area120.tables.v1alpha1.TablesService", "method": "DeleteRow" }, + { "service": "google.area120.tables.v1alpha1.TablesService", "method": "BatchDeleteRows" } ], "timeout": "60s" }] diff --git a/third_party/googleapis/google/artman_logging_external_types.yaml b/third_party/googleapis/google/artman_logging_external_types.yaml deleted file mode 100644 index 875708275..000000000 --- a/third_party/googleapis/google/artman_logging_external_types.yaml +++ /dev/null @@ -1,22 +0,0 @@ -common: - api_name: logging-external-types - organization_name: google - src_proto_paths: - - appengine/legacy - - appengine/logging/v1 - - cloud/audit - - cloud/bigquery/logging/v1 - - iam/v1/logging - proto_deps: - - name: google-common-protos - - name: google-iam-v1 - proto_path: google/iam/v1 - - name: google-appengine-v1 - proto_path: google/appengine/v1 -artifacts: -- name: java_grpc - type: GRPC - language: JAVA -- name: php_grpc - type: GRPC - language: PHP diff --git a/third_party/googleapis/google/bigtable/admin/artman_bigtableadmin.legacy.yaml b/third_party/googleapis/google/bigtable/admin/artman_bigtableadmin.legacy.yaml deleted file mode 100644 index 4f6edfec6..000000000 --- a/third_party/googleapis/google/bigtable/admin/artman_bigtableadmin.legacy.yaml +++ /dev/null @@ -1,19 +0,0 @@ -common: - api_name: bigtable-admin - api_version: v2 - organization_name: google-cloud - service_yaml: v2/bigtableadmin_v2.yaml - gapic_yaml: v2/bigtableadmin_gapic.legacy.yaml - src_proto_paths: - - v2 - proto_deps: - - name: google-common-protos - - name: google-iam-v1 - proto_path: google/iam/v1 - test_proto_deps: - - name: google-iam-v1 - proto_path: google/iam/v1 -artifacts: -- name: ruby_gapic - type: GAPIC - language: RUBY diff --git a/third_party/googleapis/google/bigtable/admin/artman_bigtableadmin.yaml b/third_party/googleapis/google/bigtable/admin/artman_bigtableadmin.yaml deleted file mode 100644 index 0c6ec1d6d..000000000 --- a/third_party/googleapis/google/bigtable/admin/artman_bigtableadmin.yaml +++ /dev/null @@ -1,34 +0,0 @@ -common: - api_name: bigtable-admin - api_version: v2 - organization_name: google-cloud - service_yaml: v2/bigtableadmin_v2.yaml - gapic_yaml: v2/bigtableadmin_gapic.yaml - src_proto_paths: - - v2 - proto_deps: - - name: google-common-protos - - name: google-iam-v1 - proto_path: google/iam/v1 - test_proto_deps: - - name: google-iam-v1 - proto_path: google/iam/v1 -artifacts: -- name: java_gapic - type: GAPIC - language: JAVA -- name: python_gapic - type: GAPIC - language: PYTHON -- name: php_gapic - type: GAPIC - language: PHP -- name: go_gapic - type: GAPIC - language: GO -- name: csharp_gapic - type: GAPIC - language: CSHARP -- name: nodejs_gapic - type: GAPIC - language: NODEJS diff --git a/third_party/googleapis/google/bigtable/admin/v2/BUILD.bazel b/third_party/googleapis/google/bigtable/admin/v2/BUILD.bazel index beb3c59cb..295985ffb 100644 --- a/third_party/googleapis/google/bigtable/admin/v2/BUILD.bazel +++ b/third_party/googleapis/google/bigtable/admin/v2/BUILD.bazel @@ -26,6 +26,7 @@ proto_library( "//google/iam/v1:iam_policy_proto", "//google/iam/v1:policy_proto", "//google/longrunning:operations_proto", + "//google/rpc:status_proto", "@com_google_protobuf//:duration_proto", "@com_google_protobuf//:empty_proto", "@com_google_protobuf//:field_mask_proto", @@ -66,10 +67,9 @@ java_grpc_library( java_gapic_library( name = "admin_java_gapic", - src = ":admin_proto_with_info", + srcs = [":admin_proto_with_info"], gapic_yaml = "bigtableadmin_gapic.yaml", - package = "google.bigtable.admin.v2", - service_yaml = "bigtableadmin_v2.yaml", + grpc_service_config = "bigtableadmin_grpc_service_config.json", test_deps = [ ":admin_java_grpc", "//google/iam/v1:iam_java_grpc", @@ -120,6 +120,7 @@ go_proto_library( "//google/api:annotations_go_proto", "//google/iam/v1:iam_go_proto", "//google/longrunning:longrunning_go_proto", + "//google/rpc:status_go_proto", ], ) @@ -132,8 +133,8 @@ go_gapic_library( deps = [ ":admin_go_proto", "//google/iam/v1:iam_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", + "@com_google_cloud_go//longrunning/autogen:go_default_library", "@com_google_cloud_go//longrunning:go_default_library", "@io_bazel_rules_go//proto/wkt:duration_go_proto", ], @@ -161,52 +162,17 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "admin_moved_proto", - srcs = [":admin_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:resource_proto", - "//google/iam/v1:iam_policy_proto", - "//google/iam/v1:policy_proto", - "//google/longrunning:operations_proto", - "@com_google_protobuf//:duration_proto", - "@com_google_protobuf//:empty_proto", - "@com_google_protobuf//:field_mask_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -py_proto_library( - name = "admin_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":admin_moved_proto"], -) - -py_grpc_library( - name = "admin_py_grpc", - srcs = [":admin_moved_proto"], - deps = [":admin_py_proto"], ) py_gapic_library( - name = "admin_py_gapic", - src = ":admin_proto_with_info", - gapic_yaml = "bigtableadmin_gapic.yaml", - package = "google.bigtable.admin.v2", - service_yaml = "bigtableadmin_v2.yaml", - deps = [ - ":admin_py_grpc", - ":admin_py_proto", + name = "bigtable_admin_py_gapic", + srcs = [":admin_proto"], + grpc_service_config = "bigtableadmin_grpc_service_config.json", + opt_args = [ + "python-gapic-namespace=google.cloud", + "python-gapic-name=bigtable_admin", ], ) @@ -214,9 +180,7 @@ py_gapic_library( py_gapic_assembly_pkg( name = "bigtable-admin-v2-py", deps = [ - ":admin_py_gapic", - ":admin_py_grpc", - ":admin_py_proto", + ":bigtable_admin_py_gapic", ], ) @@ -278,6 +242,7 @@ nodejs_gapic_library( name = "admin_nodejs_gapic", package_name = "@google-cloud/bigtable", src = ":admin_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "bigtableadmin_grpc_service_config.json", main_service = "bigtable", package = "google.bigtable.admin.v2", @@ -299,7 +264,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -315,12 +280,19 @@ ruby_grpc_library( deps = [":admin_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "admin_ruby_gapic", - src = ":admin_proto_with_info", - gapic_yaml = "bigtableadmin_gapic.yaml", - package = "google.bigtable.admin.v2", - service_yaml = "bigtableadmin_v2.yaml", + srcs = [":admin_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-bigtable-admin-v2", + "ruby-cloud-env-prefix=BIGTABLE", + "ruby-cloud-product-url=https://cloud.google.com/bigtable", + "ruby-cloud-api-id=bigtable.googleapis.com", + "ruby-cloud-api-shortname=bigtable", + ], + grpc_service_config = "bigtableadmin_grpc_service_config.json", + ruby_cloud_description = "Cloud Bigtable is a fully managed, scalable NoSQL database service for large analytical and operational workloads.", + ruby_cloud_title = "Cloud Bigtable Admin V2", deps = [ ":admin_ruby_grpc", ":admin_ruby_proto", @@ -362,8 +334,8 @@ csharp_grpc_library( csharp_gapic_library( name = "admin_csharp_gapic", srcs = [":admin_proto_with_info"], - grpc_service_config = "bigtableadmin_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "bigtableadmin_grpc_service_config.json", deps = [ ":admin_csharp_grpc", ":admin_csharp_proto", diff --git a/third_party/googleapis/google/bigtable/admin/v2/bigtable_instance_admin.proto b/third_party/googleapis/google/bigtable/admin/v2/bigtable_instance_admin.proto index 8b19b5582..ca3aaed7a 100644 --- a/third_party/googleapis/google/bigtable/admin/v2/bigtable_instance_admin.proto +++ b/third_party/googleapis/google/bigtable/admin/v2/bigtable_instance_admin.proto @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,7 +11,6 @@ // WITHOUT 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"; @@ -565,9 +564,11 @@ message DeleteAppProfileRequest { } ]; - // If true, ignore safety checks when deleting the app profile. - bool ignore_warnings = 2; + // Required. If true, ignore safety checks when deleting the app profile. + bool ignore_warnings = 2 [(google.api.field_behavior) = REQUIRED]; } // The metadata for the Operation returned by UpdateAppProfile. -message UpdateAppProfileMetadata {} +message UpdateAppProfileMetadata { + +} diff --git a/third_party/googleapis/google/bigtable/admin/v2/bigtable_table_admin.proto b/third_party/googleapis/google/bigtable/admin/v2/bigtable_table_admin.proto index 6f434a473..d979dba59 100644 --- a/third_party/googleapis/google/bigtable/admin/v2/bigtable_table_admin.proto +++ b/third_party/googleapis/google/bigtable/admin/v2/bigtable_table_admin.proto @@ -72,8 +72,7 @@ service BigtableTableAdmin { // feature might be changed in backward-incompatible ways and is not // recommended for production use. It is not subject to any SLA or deprecation // policy. - rpc CreateTableFromSnapshot(CreateTableFromSnapshotRequest) - returns (google.longrunning.Operation) { + rpc CreateTableFromSnapshot(CreateTableFromSnapshotRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v2/{parent=projects/*/instances/*}/tables:createFromSnapshot" body: "*" @@ -135,8 +134,7 @@ service BigtableTableAdmin { // CheckConsistency to check whether mutations to the table that finished // before this call started have been replicated. The tokens will be available // for 90 days. - rpc GenerateConsistencyToken(GenerateConsistencyTokenRequest) - returns (GenerateConsistencyTokenResponse) { + rpc GenerateConsistencyToken(GenerateConsistencyTokenRequest) returns (GenerateConsistencyTokenResponse) { option (google.api.http) = { post: "/v2/{name=projects/*/instances/*/tables/*}:generateConsistencyToken" body: "*" @@ -147,8 +145,7 @@ service BigtableTableAdmin { // Checks replication consistency based on a consistency token, that is, if // replication has caught up based on the conditions specified in the token // and the check request. - rpc CheckConsistency(CheckConsistencyRequest) - returns (CheckConsistencyResponse) { + rpc CheckConsistency(CheckConsistencyRequest) returns (CheckConsistencyResponse) { option (google.api.http) = { post: "/v2/{name=projects/*/instances/*/tables/*}:checkConsistency" body: "*" @@ -164,14 +161,12 @@ service BigtableTableAdmin { // feature might be changed in backward-incompatible ways and is not // recommended for production use. It is not subject to any SLA or deprecation // policy. - rpc SnapshotTable(SnapshotTableRequest) - returns (google.longrunning.Operation) { + rpc SnapshotTable(SnapshotTableRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v2/{name=projects/*/instances/*/tables/*}:snapshot" body: "*" }; - option (google.api.method_signature) = - "name,cluster,snapshot_id,description"; + option (google.api.method_signature) = "name,cluster,snapshot_id,description"; option (google.longrunning.operation_info) = { response_type: "Snapshot" metadata_type: "SnapshotTableMetadata" @@ -220,24 +215,24 @@ service BigtableTableAdmin { option (google.api.method_signature) = "name"; } - // Starts creating a new Cloud Bigtable Backup. The returned backup + // Starts creating a new Cloud Bigtable Backup. The returned backup // [long-running operation][google.longrunning.Operation] can be used to // track creation of the backup. The // [metadata][google.longrunning.Operation.metadata] field type is // [CreateBackupMetadata][google.bigtable.admin.v2.CreateBackupMetadata]. The // [response][google.longrunning.Operation.response] field type is - // [Backup][google.bigtable.admin.v2.Backup], if successful. Cancelling the - // returned operation will stop the creation and delete the backup. + // [Backup][google.bigtable.admin.v2.Backup], if successful. Cancelling the returned operation will stop the + // creation and delete the backup. rpc CreateBackup(CreateBackupRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v2/{parent=projects/*/instances/*/clusters/*}/backups" body: "backup" }; + option (google.api.method_signature) = "parent,backup_id,backup"; option (google.longrunning.operation_info) = { response_type: "Backup" metadata_type: "CreateBackupMetadata" }; - option (google.api.method_signature) = "parent,backup_id,backup"; } // Gets metadata on a pending or completed Cloud Bigtable Backup. @@ -275,11 +270,11 @@ service BigtableTableAdmin { } // Create a new table by restoring from a completed backup. The new table - // must be in the same instance as the instance containing the backup. The + // must be in the same instance as the instance containing the backup. The // returned table [long-running operation][google.longrunning.Operation] can - // be used to track the progress of the operation, and to cancel it. The + // be used to track the progress of the operation, and to cancel it. The // [metadata][google.longrunning.Operation.metadata] field type is - // [RestoreTableMetadata][google.bigtable.admin.RestoreTableMetadata]. The + // [RestoreTableMetadata][google.bigtable.admin.RestoreTableMetadata]. The // [response][google.longrunning.Operation.response] type is // [Table][google.bigtable.admin.v2.Table], if successful. rpc RestoreTable(RestoreTableRequest) returns (google.longrunning.Operation) { @@ -293,22 +288,24 @@ service BigtableTableAdmin { }; } - // Gets the access control policy for a resource. + // Gets the access control policy for a Table or Backup resource. // Returns an empty policy if the resource exists but does not have a policy // set. - rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) - returns (google.iam.v1.Policy) { + rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) returns (google.iam.v1.Policy) { option (google.api.http) = { post: "/v2/{resource=projects/*/instances/*/tables/*}:getIamPolicy" body: "*" + additional_bindings { + post: "/v2/{resource=projects/*/instances/*/clusters/*/backups/*}:getIamPolicy" + body: "*" + } }; option (google.api.method_signature) = "resource"; } // Sets the access control policy on a Table or Backup resource. // Replaces any existing policy. - rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) - returns (google.iam.v1.Policy) { + rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) returns (google.iam.v1.Policy) { option (google.api.http) = { post: "/v2/{resource=projects/*/instances/*/tables/*}:setIamPolicy" body: "*" @@ -320,9 +317,8 @@ service BigtableTableAdmin { option (google.api.method_signature) = "resource,policy"; } - // Returns permissions that the caller has on the specified table resource. - rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) - returns (google.iam.v1.TestIamPermissionsResponse) { + // Returns permissions that the caller has on the specified Table or Backup resource. + rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) returns (google.iam.v1.TestIamPermissionsResponse) { option (google.api.http) = { post: "/v2/{resource=projects/*/instances/*/tables/*}:testIamPermissions" body: "*" @@ -335,6 +331,78 @@ service BigtableTableAdmin { } } +// The request for +// [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]. +message RestoreTableRequest { + // Required. The name of the instance in which to create the restored + // table. This instance must be the parent of the source backup. Values are + // of the form `projects//instances/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "bigtable.googleapis.com/Instance" + } + ]; + + // Required. The id of the table to create and restore to. This + // table must not already exist. The `table_id` appended to + // `parent` forms the full table name of the form + // `projects//instances//tables/`. + string table_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The source from which to restore. + oneof source { + // Name of the backup from which to restore. Values are of the form + // `projects//instances//clusters//backups/`. + string backup = 3 [(google.api.resource_reference) = { + type: "bigtable.googleapis.com/Backup" + }]; + } +} + +// Metadata type for the long-running operation returned by +// [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]. +message RestoreTableMetadata { + // Name of the table being created and restored to. + string name = 1; + + // The type of the restore source. + RestoreSourceType source_type = 2; + + // Information about the source used to restore the table, as specified by + // `source` in [RestoreTableRequest][google.bigtable.admin.v2.RestoreTableRequest]. + oneof source_info { + BackupInfo backup_info = 3; + } + + // If exists, the name of the long-running operation that will be used to + // track the post-restore optimization process to optimize the performance of + // the restored table. The metadata type of the long-running operation is + // [OptimizeRestoreTableMetadata][]. The response type is + // [Empty][google.protobuf.Empty]. This long-running operation may be + // automatically created by the system if applicable after the + // RestoreTable long-running operation completes successfully. This operation + // may not be created if the table is already optimized or the restore was + // not successful. + string optimize_table_operation_name = 4; + + // The progress of the [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable] + // operation. + OperationProgress progress = 5; +} + +// Metadata type for the long-running operation used to track the progress +// of optimizations performed on a newly restored table. This long-running +// operation is automatically created by the system after the successful +// completion of a table restore, and cannot be cancelled. +message OptimizeRestoredTableMetadata { + // Name of the restored table being optimized. + string name = 1; + + // The progress of the post-restore optimizations. + OperationProgress progress = 2; +} + // Request message for // [google.bigtable.admin.v2.BigtableTableAdmin.CreateTable][google.bigtable.admin.v2.BigtableTableAdmin.CreateTable] message CreateTableRequest { @@ -353,8 +421,8 @@ message CreateTableRequest { } ]; - // Required. The name by which the new table should be referred to within the - // parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. + // Required. The name by which the new table should be referred to within the parent + // instance, e.g., `foobar` rather than `{parent}/tables/foobar`. // Maximum 50 characters. string table_id = 2 [(google.api.field_behavior) = REQUIRED]; @@ -397,13 +465,13 @@ message CreateTableFromSnapshotRequest { } ]; - // Required. The name by which the new table should be referred to within the - // parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. + // Required. The name by which the new table should be referred to within the parent + // instance, e.g., `foobar` rather than `{parent}/tables/foobar`. string table_id = 2 [(google.api.field_behavior) = REQUIRED]; - // Required. The unique name of the snapshot from which to restore the table. - // The snapshot and the table must be in the same instance. Values are of the - // form + // Required. The unique name of the snapshot from which to restore the table. The + // snapshot and the table must be in the same instance. + // Values are of the form // `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. string source_snapshot = 3 [ (google.api.field_behavior) = REQUIRED, @@ -421,7 +489,9 @@ message DropRowRangeRequest { // `projects/{project}/instances/{instance}/tables/{table}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { type: "bigtable.googleapis.com/Table" } + (google.api.resource_reference) = { + type: "bigtable.googleapis.com/Table" + } ]; // Delete all rows or by prefix. @@ -438,8 +508,8 @@ message DropRowRangeRequest { // Request message for // [google.bigtable.admin.v2.BigtableTableAdmin.ListTables][google.bigtable.admin.v2.BigtableTableAdmin.ListTables] message ListTablesRequest { - // Required. The unique name of the instance for which tables should be - // listed. Values are of the form `projects/{project}/instances/{instance}`. + // Required. The unique name of the instance for which tables should be listed. + // Values are of the form `projects/{project}/instances/{instance}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -486,7 +556,9 @@ message GetTableRequest { // `projects/{project}/instances/{instance}/tables/{table}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { type: "bigtable.googleapis.com/Table" } + (google.api.resource_reference) = { + type: "bigtable.googleapis.com/Table" + } ]; // The view to be applied to the returned table's fields. @@ -502,7 +574,9 @@ message DeleteTableRequest { // `projects/{project}/instances/{instance}/tables/{table}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { type: "bigtable.googleapis.com/Table" } + (google.api.resource_reference) = { + type: "bigtable.googleapis.com/Table" + } ]; } @@ -535,26 +609,29 @@ message ModifyColumnFamiliesRequest { // `projects/{project}/instances/{instance}/tables/{table}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { type: "bigtable.googleapis.com/Table" } + (google.api.resource_reference) = { + type: "bigtable.googleapis.com/Table" + } ]; - // Required. Modifications to be atomically applied to the specified table's - // families. Entries are applied in order, meaning that earlier modifications - // can be masked by later ones (in the case of repeated updates to the same - // family, for example). - repeated Modification modifications = 2 - [(google.api.field_behavior) = REQUIRED]; + // Required. Modifications to be atomically applied to the specified table's families. + // Entries are applied in order, meaning that earlier modifications can be + // masked by later ones (in the case of repeated updates to the same family, + // for example). + repeated Modification modifications = 2 [(google.api.field_behavior) = REQUIRED]; } // Request message for // [google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken][google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken] message GenerateConsistencyTokenRequest { - // Required. The unique name of the Table for which to create a consistency - // token. Values are of the form + // Required. The unique name of the Table for which to create a consistency token. + // Values are of the form // `projects/{project}/instances/{instance}/tables/{table}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { type: "bigtable.googleapis.com/Table" } + (google.api.resource_reference) = { + type: "bigtable.googleapis.com/Table" + } ]; } @@ -568,12 +645,14 @@ message GenerateConsistencyTokenResponse { // Request message for // [google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency][google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency] message CheckConsistencyRequest { - // Required. The unique name of the Table for which to check replication - // consistency. Values are of the form + // Required. The unique name of the Table for which to check replication consistency. + // Values are of the form // `projects/{project}/instances/{instance}/tables/{table}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { type: "bigtable.googleapis.com/Table" } + (google.api.resource_reference) = { + type: "bigtable.googleapis.com/Table" + } ]; // Required. The token created using GenerateConsistencyToken for the Table. @@ -601,7 +680,9 @@ message SnapshotTableRequest { // `projects/{project}/instances/{instance}/tables/{table}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { type: "bigtable.googleapis.com/Table" } + (google.api.resource_reference) = { + type: "bigtable.googleapis.com/Table" + } ]; // Required. The name of the cluster where the snapshot will be created in. @@ -614,9 +695,9 @@ message SnapshotTableRequest { } ]; - // Required. The ID by which the new snapshot should be referred to within the - // parent cluster, e.g., `mysnapshot` of the form: - // `[_a-zA-Z0-9][-_.a-zA-Z0-9]*` rather than + // Required. The ID by which the new snapshot should be referred to within the parent + // cluster, e.g., `mysnapshot` of the form: `[_a-zA-Z0-9][-_.a-zA-Z0-9]*` + // rather than // `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/mysnapshot`. string snapshot_id = 3 [(google.api.field_behavior) = REQUIRED]; @@ -657,8 +738,8 @@ message GetSnapshotRequest { // feature might be changed in backward-incompatible ways and is not recommended // for production use. It is not subject to any SLA or deprecation policy. message ListSnapshotsRequest { - // Required. The unique name of the cluster for which snapshots should be - // listed. Values are of the form + // Required. The unique name of the cluster for which snapshots should be listed. + // Values are of the form // `projects/{project}/instances/{instance}/clusters/{cluster}`. // Use `{cluster} = '-'` to list snapshots for all clusters in an instance, // e.g., `projects/{project}/instances/{instance}/clusters/-`. @@ -748,8 +829,7 @@ message CreateTableFromSnapshotMetadata { google.protobuf.Timestamp finish_time = 3; } -// The request for -// [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup]. +// The request for [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup]. message CreateBackupRequest { // Required. This must be one of the clusters in the instance in which this // table is located. The backup will be stored in this cluster. Values are @@ -789,20 +869,7 @@ message CreateBackupMetadata { google.protobuf.Timestamp end_time = 4; } -// The request for -// [GetBackup][google.bigtable.admin.v2.BigtableTableAdmin.GetBackup]. -message GetBackupRequest { - // Required. Name of the backup. - // Values are of the form - // `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { type: "bigtable.googleapis.com/Backup" } - ]; -} - -// The request for -// [UpdateBackup][google.bigtable.admin.v2.BigtableTableAdmin.UpdateBackup]. +// The request for [UpdateBackup][google.bigtable.admin.v2.BigtableTableAdmin.UpdateBackup]. message UpdateBackupRequest { // Required. The backup to update. `backup.name`, and the fields to be updated // as specified by `update_mask` are required. Other fields are ignored. @@ -815,26 +882,38 @@ message UpdateBackupRequest { // resource, not to the request message. The field mask must always be // specified; this prevents any future fields from being erased accidentally // by clients that do not know about them. - google.protobuf.FieldMask update_mask = 2 - [(google.api.field_behavior) = REQUIRED]; + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } -// The request for -// [DeleteBackup][google.bigtable.admin.v2.BigtableTableAdmin.DeleteBackup]. +// The request for [GetBackup][google.bigtable.admin.v2.BigtableTableAdmin.GetBackup]. +message GetBackupRequest { + // Required. Name of the backup. + // Values are of the form + // `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "bigtable.googleapis.com/Backup" + } + ]; +} + +// The request for [DeleteBackup][google.bigtable.admin.v2.BigtableTableAdmin.DeleteBackup]. message DeleteBackupRequest { // Required. Name of the backup to delete. // Values are of the form // `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { type: "bigtable.googleapis.com/Backup" } + (google.api.resource_reference) = { + type: "bigtable.googleapis.com/Backup" + } ]; } -// The request for -// [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups]. +// The request for [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups]. message ListBackupsRequest { - // Required. The cluster to list backups from. Values are of the + // Required. The cluster to list backups from. Values are of the // form `projects/{project}/instances/{instance}/clusters/{cluster}`. // Use `{cluster} = '-'` to list backups for all clusters in an instance, // e.g., `projects/{project}/instances/{instance}/clusters/-`. @@ -849,7 +928,7 @@ message ListBackupsRequest { // The expression must specify the field name, a comparison operator, // and the value that you want to use for filtering. The value must be a // string, a number, or a boolean. The comparison operator must be - // <, >, <=, >=, !=, =, or :. Colon ‘:’ represents a HAS operator which is + // <, >, <=, >=, !=, =, or :. Colon ':' represents a HAS operator which is // roughly synonymous with equality. Filter rules are case insensitive. // // The fields eligible for filtering are: @@ -880,9 +959,8 @@ message ListBackupsRequest { string filter = 2; // An expression for specifying the sort order of the results of the request. - // The string value should specify one or more fields in - // [Backup][google.bigtable.admin.v2.Backup]. The full syntax is described at - // https://aip.dev/132#ordering. + // The string value should specify one or more fields in [Backup][google.bigtable.admin.v2.Backup]. The full + // syntax is described at https://aip.dev/132#ordering. // // Fields supported are: // * name @@ -907,88 +985,19 @@ message ListBackupsRequest { int32 page_size = 4; // If non-empty, `page_token` should contain a - // [next_page_token][google.bigtable.admin.v2.ListBackupsResponse.next_page_token] - // from a previous - // [ListBackupsResponse][google.bigtable.admin.v2.ListBackupsResponse] to the - // same `parent` and with the same `filter`. + // [next_page_token][google.bigtable.admin.v2.ListBackupsResponse.next_page_token] from a + // previous [ListBackupsResponse][google.bigtable.admin.v2.ListBackupsResponse] to the same `parent` and with the same + // `filter`. string page_token = 5; } -// The response for -// [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups]. +// The response for [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups]. message ListBackupsResponse { // The list of matching backups. repeated Backup backups = 1; // `next_page_token` can be sent in a subsequent - // [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups] call - // to fetch more of the matching backups. + // [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups] call to fetch more + // of the matching backups. string next_page_token = 2; } - -// The request for -// [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]. -message RestoreTableRequest { - // Required. The name of the instance in which to create the restored - // table. This instance must be the parent of the source backup. Values are - // of the form `projects//instances/`. - string parent = 1; - - // Required. The id of the table to create and restore to. This - // table must not already exist. The `table_id` appended to - // `parent` forms the full table name of the form - // `projects//instances//tables/`. - string table_id = 2; - - // Required. The source from which to restore. - oneof source { - // Name of the backup from which to restore. Values are of the form - // `projects//instances//clusters//backups/`. - string backup = 3; - } -} - -// Metadata type for the long-running operation returned by -// [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]. -message RestoreTableMetadata { - // Name of the table being created and restored to. - string name = 1; - - // The type of the restore source. - RestoreSourceType source_type = 2; - - // Information about the source used to restore the table, as specified by - // `source` in - // [RestoreTableRequest][google.bigtable.admin.v2.RestoreTableRequest]. - oneof source_info { - BackupInfo backup_info = 3; - } - - // If exists, the name of the long-running operation that will be used to - // track the post-restore optimization process to optimize the performance of - // the restored table. The metadata type of the long-running operation is - // [OptimizeRestoreTableMetadata][]. The response type is - // [Empty][google.protobuf.Empty]. This long-running operation may be - // automatically created by the system if applicable after the - // RestoreTable long-running operation completes successfully. This operation - // may not be created if the table is already optimized or the restore was - // not successful. - string optimize_table_operation_name = 4; - - // The progress of the - // [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable] - // operation. - OperationProgress progress = 5; -} - -// Metadata type for the long-running operation used to track the progress -// of optimizations performed on a newly restored table. This long-running -// operation is automatically created by the system after the successful -// completion of a table restore, and cannot be cancelled. -message OptimizeRestoredTableMetadata { - // Name of the restored table being optimized. - string name = 1; - - // The progress of the post-restore optimizations. - OperationProgress progress = 2; -} diff --git a/third_party/googleapis/google/bigtable/admin/v2/bigtableadmin_gapic.yaml b/third_party/googleapis/google/bigtable/admin/v2/bigtableadmin_gapic.yaml index 1fef6825f..66c005295 100644 --- a/third_party/googleapis/google/bigtable/admin/v2/bigtableadmin_gapic.yaml +++ b/third_party/googleapis/google/bigtable/admin/v2/bigtableadmin_gapic.yaml @@ -21,250 +21,61 @@ language_settings: package_name: admin.v2 interfaces: - name: google.bigtable.admin.v2.BigtableInstanceAdmin - retry_params_def: - - name: idempotent_params - initial_retry_delay_millis: 1000 - retry_delay_multiplier: 2 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 60000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 60000 - total_timeout_millis: 600000 - - name: non_idempotent_params - initial_retry_delay_millis: 0 - retry_delay_multiplier: 1 - max_retry_delay_millis: 0 - initial_rpc_timeout_millis: 60000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 60000 - total_timeout_millis: 60000 - - name: non_idempotent_heavy_params - initial_retry_delay_millis: 0 - retry_delay_multiplier: 1 - max_retry_delay_millis: 0 - initial_rpc_timeout_millis: 300000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 300000 - total_timeout_millis: 300000 methods: - name: CreateInstance - retry_params_name: non_idempotent_heavy_params long_running: initial_poll_delay_millis: 500 poll_delay_multiplier: 1.5 max_poll_delay_millis: 5000 total_poll_timeout_millis: 600000 - - name: GetInstance - retry_params_name: idempotent_params - - name: ListInstances - retry_params_name: idempotent_params - - name: UpdateInstance - retry_codes_name: idempotent - retry_params_name: idempotent_params - surface_treatments: - - include_languages: [java, csharp] - visibility: DISABLED - name: PartialUpdateInstance - retry_codes_name: idempotent - retry_params_name: idempotent_params long_running: initial_poll_delay_millis: 500 poll_delay_multiplier: 1.5 max_poll_delay_millis: 5000 total_poll_timeout_millis: 600000 - - name: DeleteInstance - retry_params_name: non_idempotent_params - name: CreateCluster - retry_params_name: non_idempotent_params long_running: initial_poll_delay_millis: 5000 poll_delay_multiplier: 1.5 max_poll_delay_millis: 60000 total_poll_timeout_millis: 21600000 - - name: GetCluster - retry_params_name: idempotent_params - - name: ListClusters - retry_params_name: idempotent_params - name: UpdateCluster - retry_codes_name: idempotent - retry_params_name: idempotent_params long_running: initial_poll_delay_millis: 500 poll_delay_multiplier: 1.5 max_poll_delay_millis: 5000 total_poll_timeout_millis: 600000 - - name: DeleteCluster - retry_params_name: non_idempotent_params - - name: CreateAppProfile - retry_params_name: non_idempotent_params - - name: GetAppProfile - retry_params_name: idempotent_params - - name: ListAppProfiles - retry_params_name: idempotent_params - name: UpdateAppProfile - retry_codes_name: idempotent - retry_params_name: idempotent_params long_running: initial_poll_delay_millis: 500 poll_delay_multiplier: 1.5 max_poll_delay_millis: 5000 total_poll_timeout_millis: 600000 - - name: DeleteAppProfile - retry_params_name: non_idempotent_params - - name: GetIamPolicy - retry_codes_name: idempotent - retry_params_name: idempotent_params - - name: SetIamPolicy - retry_params_name: non_idempotent_params - - name: TestIamPermissions - retry_codes_name: idempotent - retry_params_name: idempotent_params - name: google.bigtable.admin.v2.BigtableTableAdmin - retry_params_def: - - name: idempotent_params - initial_retry_delay_millis: 1000 - retry_delay_multiplier: 2 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 60000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 60000 - total_timeout_millis: 600000 - - name: non_idempotent_params - initial_retry_delay_millis: 0 - retry_delay_multiplier: 1 - max_retry_delay_millis: 0 - initial_rpc_timeout_millis: 60000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 60000 - total_timeout_millis: 60000 - - name: non_idempotent_heavy_params - initial_retry_delay_millis: 0 - retry_delay_multiplier: 1 - max_retry_delay_millis: 0 - initial_rpc_timeout_millis: 300000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 300000 - total_timeout_millis: 300000 - - name: drop_row_range_params - initial_retry_delay_millis: 0 - retry_delay_multiplier: 1 - max_retry_delay_millis: 0 - initial_rpc_timeout_millis: 3600000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 3600000 - total_timeout_millis: 3600000 methods: - - name: CreateTable - retry_params_name: non_idempotent_heavy_params - name: CreateTableFromSnapshot - retry_params_name: non_idempotent_params long_running: initial_poll_delay_millis: 5000 poll_delay_multiplier: 1.5 max_poll_delay_millis: 60000 total_poll_timeout_millis: 3600000 - # Snapshots are Alpha-only and not supported in C# - surface_treatments: - - include_languages: [csharp] - visibility: DISABLED - - name: ListTables - retry_params_name: idempotent_params - - name: GetTable - retry_params_name: idempotent_params - - name: DeleteTable - retry_params_name: non_idempotent_params - - name: ModifyColumnFamilies - retry_params_name: non_idempotent_heavy_params - - name: DropRowRange - retry_params_name: drop_row_range_params - - name: GenerateConsistencyToken - retry_codes_name: idempotent - retry_params_name: idempotent_params - - name: CheckConsistency - retry_codes_name: idempotent - retry_params_name: idempotent_params - - name: GetIamPolicy - retry_codes_name: idempotent - retry_params_name: idempotent_params - - name: SetIamPolicy - retry_params_name: non_idempotent_params - - name: TestIamPermissions - retry_codes_name: idempotent - retry_params_name: idempotent_params - name: SnapshotTable - retry_params_name: non_idempotent_params long_running: initial_poll_delay_millis: 500 poll_delay_multiplier: 1.5 max_poll_delay_millis: 5000 total_poll_timeout_millis: 600000 - # Snapshots are Alpha-only and not supported in C# - surface_treatments: - - include_languages: [csharp] - visibility: DISABLED - - name: GetSnapshot - retry_params_name: idempotent_params - # Snapshots are Alpha-only and not supported in C# - surface_treatments: - - include_languages: [csharp] - visibility: DISABLED - - name: ListSnapshots - retry_codes_name: idempotent - retry_params_name: idempotent_params - # Snapshots are Alpha-only and not supported in C# - surface_treatments: - - include_languages: [csharp] - visibility: DISABLED - - name: DeleteSnapshot - retry_params_name: non_idempotent_params - # Snapshots are Alpha-only and not supported in C# - surface_treatments: - - include_languages: [csharp] - visibility: DISABLED - name: CreateBackup - retry_params_name: non_idempotent_params long_running: initial_poll_delay_millis: 500 poll_delay_multiplier: 1.5 max_poll_delay_millis: 5000 total_poll_timeout_millis: 600000 - # Managed Backup is in alpha and not supported in C# - surface_treatments: - - include_languages: [csharp] - visibility: DISABLED - - name: GetBackup - retry_params_name: idempotent_params - # Managed Backup is in alpha and not supported in C# - surface_treatments: - - include_languages: [csharp] - visibility: DISABLED - - name: ListBackups - retry_params_name: idempotent_params - # Managed Backup is in alpha and not supported in C# - surface_treatments: - - include_languages: [csharp] - visibility: DISABLED - - name: UpdateBackup - retry_params_name: non_idempotent_params - # Managed Backup is in alpha and not supported in C# - surface_treatments: - - include_languages: [csharp] - visibility: DISABLED - - name: DeleteBackup - retry_params_name: non_idempotent_params - # Managed Backup is in alpha and not supported in C# - surface_treatments: - - include_languages: [csharp] - visibility: DISABLED - name: RestoreTable - retry_params_name: non_idempotent_params long_running: initial_poll_delay_millis: 500 poll_delay_multiplier: 1.5 max_poll_delay_millis: 5000 total_poll_timeout_millis: 600000 - # Managed Backup is in alpha and not supported in C# - surface_treatments: - - include_languages: [csharp] - visibility: DISABLED diff --git a/third_party/googleapis/google/bigtable/admin/v2/bigtableadmin_grpc_service_config.json b/third_party/googleapis/google/bigtable/admin/v2/bigtableadmin_grpc_service_config.json index 5682ad9fa..29f7ae282 100755 --- a/third_party/googleapis/google/bigtable/admin/v2/bigtableadmin_grpc_service_config.json +++ b/third_party/googleapis/google/bigtable/admin/v2/bigtableadmin_grpc_service_config.json @@ -17,23 +17,31 @@ "name": [ { "service": "google.bigtable.admin.v2.BigtableTableAdmin", - "method": "CreateTableFromSnapshot" + "method": "DeleteTable" }, { "service": "google.bigtable.admin.v2.BigtableTableAdmin", - "method": "DeleteTable" + "method": "SetIamPolicy" }, { "service": "google.bigtable.admin.v2.BigtableTableAdmin", - "method": "SetIamPolicy" + "method": "DeleteSnapshot" }, { "service": "google.bigtable.admin.v2.BigtableTableAdmin", - "method": "SnapshotTable" + "method": "CreateBackup" }, { "service": "google.bigtable.admin.v2.BigtableTableAdmin", - "method": "DeleteSnapshot" + "method": "UpdateBackup" + }, + { + "service": "google.bigtable.admin.v2.BigtableTableAdmin", + "method": "DeleteBackup" + }, + { + "service": "google.bigtable.admin.v2.BigtableTableAdmin", + "method": "RestoreTable" } ], "timeout": "60s" @@ -48,6 +56,32 @@ "service": "google.bigtable.admin.v2.BigtableTableAdmin", "method": "GetTable" }, + { + "service": "google.bigtable.admin.v2.BigtableTableAdmin", + "method": "GetSnapshot" + }, + { + "service": "google.bigtable.admin.v2.BigtableTableAdmin", + "method": "GetBackup" + }, + { + "service": "google.bigtable.admin.v2.BigtableTableAdmin", + "method": "ListBackups" + } + ], + "timeout": "60s", + "retryPolicy": { + "initialBackoff": "1s", + "maxBackoff": "60s", + "backoffMultiplier": 2, + "retryableStatusCodes": [ + "UNAVAILABLE", + "DEADLINE_EXCEEDED" + ] + } + }, + { + "name": [ { "service": "google.bigtable.admin.v2.BigtableTableAdmin", "method": "GenerateConsistencyToken" @@ -64,10 +98,6 @@ "service": "google.bigtable.admin.v2.BigtableTableAdmin", "method": "TestIamPermissions" }, - { - "service": "google.bigtable.admin.v2.BigtableTableAdmin", - "method": "GetSnapshot" - }, { "service": "google.bigtable.admin.v2.BigtableTableAdmin", "method": "ListSnapshots" @@ -75,7 +105,6 @@ ], "timeout": "60s", "retryPolicy": { - "maxAttempts": 5, "initialBackoff": "1s", "maxBackoff": "60s", "backoffMultiplier": 2, @@ -115,35 +144,35 @@ }, { "service": "google.bigtable.admin.v2.BigtableInstanceAdmin", - "method": "UpdateInstance" + "method": "GetCluster" }, { "service": "google.bigtable.admin.v2.BigtableInstanceAdmin", - "method": "PartialUpdateInstance" + "method": "UpdateCluster" }, { "service": "google.bigtable.admin.v2.BigtableInstanceAdmin", - "method": "GetCluster" + "method": "ListClusters" }, { "service": "google.bigtable.admin.v2.BigtableInstanceAdmin", - "method": "ListClusters" + "method": "GetAppProfile" }, { "service": "google.bigtable.admin.v2.BigtableInstanceAdmin", - "method": "UpdateCluster" + "method": "ListAppProfiles" }, { "service": "google.bigtable.admin.v2.BigtableInstanceAdmin", - "method": "GetAppProfile" + "method": "UpdateAppProfile" }, { "service": "google.bigtable.admin.v2.BigtableInstanceAdmin", - "method": "ListAppProfiles" + "method": "UpdateInstance" }, { "service": "google.bigtable.admin.v2.BigtableInstanceAdmin", - "method": "UpdateAppProfile" + "method": "PartialUpdateInstance" }, { "service": "google.bigtable.admin.v2.BigtableInstanceAdmin", diff --git a/third_party/googleapis/google/bigtable/admin/v2/instance.proto b/third_party/googleapis/google/bigtable/admin/v2/instance.proto index 2086f9707..d590788b2 100644 --- a/third_party/googleapis/google/bigtable/admin/v2/instance.proto +++ b/third_party/googleapis/google/bigtable/admin/v2/instance.proto @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,7 +11,6 @@ // WITHOUT 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"; @@ -28,6 +27,10 @@ option java_outer_classname = "InstanceProto"; option java_package = "com.google.bigtable.admin.v2"; option php_namespace = "Google\\Cloud\\Bigtable\\Admin\\V2"; option ruby_package = "Google::Cloud::Bigtable::Admin::V2"; +option (google.api.resource_definition) = { + type: "cloudkms.googleapis.com/CryptoKey" + pattern: "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}" +}; // A collection of Bigtable [Tables][google.bigtable.admin.v2.Table] and // the resources that serve them. @@ -113,6 +116,22 @@ message Cluster { pattern: "projects/{project}/instances/{instance}/clusters/{cluster}" }; + // Cloud Key Management Service (Cloud KMS) settings for a CMEK-protected + // cluster. + message EncryptionConfig { + // Describes the Cloud KMS encryption key that will be used to protect the + // destination Bigtable cluster. The requirements for this key are: + // 1) The Cloud Bigtable service account associated with the project that + // contains this cluster must be granted the + // `cloudkms.cryptoKeyEncrypterDecrypter` role on the CMEK key. + // 2) Only regional keys can be used and the region of the CMEK key must + // match the region of the cluster. + // 3) All clusters within an instance must use the same CMEK key. + string kms_key_name = 1 [(google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKey" + }]; + } + // Possible states of a cluster. enum State { // The state of the cluster could not be determined. @@ -162,6 +181,10 @@ message Cluster { // The type of storage used by this cluster to serve its // parent instance's tables, unless explicitly overridden. StorageType default_storage_type = 5; + + // Immutable. The encryption configuration for CMEK-protected clusters. + EncryptionConfig encryption_config = 6 + [(google.api.field_behavior) = IMMUTABLE]; } // A configuration object describing how Cloud Bigtable should treat traffic @@ -194,7 +217,7 @@ message AppProfile { // (`OutputOnly`) // The unique name of the app profile. Values are of the form - // `projects//instances//appProfiles/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. + // `projects/{project}/instances/{instance}/appProfiles/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. string name = 1; // Strongly validated etag for optimistic concurrency control. Preserve the diff --git a/third_party/googleapis/google/bigtable/admin/v2/table.proto b/third_party/googleapis/google/bigtable/admin/v2/table.proto index e85ca8ca9..a5578225e 100644 --- a/third_party/googleapis/google/bigtable/admin/v2/table.proto +++ b/third_party/googleapis/google/bigtable/admin/v2/table.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.Bigtable.Admin.V2"; option go_package = "google.golang.org/genproto/googleapis/bigtable/admin/v2;admin"; @@ -28,6 +29,10 @@ option java_outer_classname = "TableProto"; option java_package = "com.google.bigtable.admin.v2"; option php_namespace = "Google\\Cloud\\Bigtable\\Admin\\V2"; option ruby_package = "Google::Cloud::Bigtable::Admin::V2"; +option (google.api.resource_definition) = { + type: "cloudkms.googleapis.com/CryptoKeyVersion" + pattern: "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}" +}; // Indicates the type of the restore source. enum RestoreSourceType { @@ -92,6 +97,14 @@ message Table { // Output only. The state of replication for the table in this cluster. ReplicationState replication_state = 1; + + // Output only. The encryption information for the table in this cluster. + // If the encryption key protecting this resource is customer managed, then + // its version can be rotated in Cloud Key Management Service (Cloud KMS). + // The primary version of the key and its status will be reflected here when + // changes propagate from Cloud KMS. + repeated EncryptionInfo encryption_info = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Possible timestamp granularities to use when keeping multiple versions @@ -120,12 +133,15 @@ message Table { // state. REPLICATION_VIEW = 3; + // Only populates 'name' and fields related to the table's encryption state. + ENCRYPTION_VIEW = 5; + // Populates all fields. FULL = 4; } - // Output only. The unique name of the table. Values are of the form - // `projects//instances//tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. + // The unique name of the table. Values are of the form + // `projects/{project}/instances/{instance}/tables/[_a-zA-Z0-9][-_.a-zA-Z0-9]*`. // Views: `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `FULL` string name = 1; @@ -133,7 +149,7 @@ message Table { // If it could not be determined whether or not the table has data in a // particular cluster (for example, if its zone is unavailable), then // there will be an entry for the cluster with UNKNOWN `replication_status`. - // Views: `REPLICATION_VIEW`, `FULL` + // Views: `REPLICATION_VIEW`, `ENCRYPTION_VIEW`, `FULL` map cluster_states = 2; // (`CreationOnly`) @@ -196,6 +212,51 @@ message GcRule { } } +// Encryption information for a given resource. +// If this resource is protected with customer managed encryption, the in-use +// Cloud Key Management Service (Cloud KMS) key version is specified along with +// its status. +message EncryptionInfo { + // Possible encryption types for a resource. + enum EncryptionType { + // Encryption type was not specified, though data at rest remains encrypted. + ENCRYPTION_TYPE_UNSPECIFIED = 0; + + // The data backing this resource is encrypted at rest with a key that is + // fully managed by Google. No key version or status will be populated. + // This is the default state. + GOOGLE_DEFAULT_ENCRYPTION = 1; + + // The data backing this resource is encrypted at rest with a key that is + // managed by the customer. + // The in-use version of the key and its status are populated for + // CMEK-protected tables. + // CMEK-protected backups are pinned to the key version that was in use at + // the time the backup was taken. This key version is populated but its + // status is not tracked and is reported as `UNKNOWN`. + CUSTOMER_MANAGED_ENCRYPTION = 2; + } + + // Output only. The type of encryption used to protect this resource. + EncryptionType encryption_type = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The status of encrypt/decrypt calls on underlying data for + // this resource. Regardless of status, the existing data is always encrypted + // at rest. + google.rpc.Status encryption_status = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The version of the Cloud KMS key specified in the parent + // cluster that is in use for the data underlying this table. + string kms_key_version = 2 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKeyVersion" + } + ]; +} + // A snapshot of a table at a particular time. A snapshot can be used as a // checkpoint for data restoration or a data source for a new table. // @@ -225,7 +286,7 @@ message Snapshot { // Output only. The unique name of the snapshot. // Values are of the form - // `projects//instances//clusters//snapshots/`. + // `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. string name = 1; // Output only. The source table at the time the snapshot was taken. @@ -318,6 +379,10 @@ message Backup { // Output only. The current state of the backup. State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The encryption information for the backup. + EncryptionInfo encryption_info = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Information about a backup. diff --git a/third_party/googleapis/google/bigtable/artman_bigtable.yaml b/third_party/googleapis/google/bigtable/artman_bigtable.yaml deleted file mode 100644 index 7fd1777a4..000000000 --- a/third_party/googleapis/google/bigtable/artman_bigtable.yaml +++ /dev/null @@ -1,35 +0,0 @@ -common: - api_name: bigtable - api_version: v2 - organization_name: google-cloud - service_yaml: v2/bigtable_v2.yaml - gapic_yaml: v2/bigtable_gapic.yaml - proto_package: google.bigtable.v2 - src_proto_paths: - - v2 - proto_deps: - - name: google-common-protos -artifacts: -- name: java_gapic - type: GAPIC - language: JAVA -- name: python_gapic - type: GAPIC - language: PYTHON -- name: php_gapic - type: GAPIC - language: PHP -- name: ruby_gapic - type: GAPIC - language: RUBY -- name: go_gapic - type: GAPIC - language: GO -- name: csharp_gapic - type: GAPIC - language: CSHARP -- name: nodejs_gapic - type: GAPIC - language: NODEJS -- name: gapic_config - type: GAPIC_CONFIG diff --git a/third_party/googleapis/google/bigtable/v2/BUILD.bazel b/third_party/googleapis/google/bigtable/v2/BUILD.bazel index e9caf3bfc..10ac8389a 100644 --- a/third_party/googleapis/google/bigtable/v2/BUILD.bazel +++ b/third_party/googleapis/google/bigtable/v2/BUILD.bazel @@ -58,10 +58,9 @@ java_grpc_library( java_gapic_library( name = "bigtable_java_gapic", - src = ":bigtable_proto_with_info", + srcs = [":bigtable_proto_with_info"], gapic_yaml = "bigtable_gapic.yaml", - package = "google.bigtable.v2", - service_yaml = "bigtable_v2.yaml", + grpc_service_config = "bigtable_grpc_service_config.json", test_deps = [ ":bigtable_java_grpc", ], @@ -144,57 +143,21 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "bigtable_moved_proto", - srcs = [":bigtable_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:resource_proto", - "//google/rpc:status_proto", - "@com_google_protobuf//:wrappers_proto", - ], -) - -py_proto_library( - name = "bigtable_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":bigtable_moved_proto"], -) - -py_grpc_library( - name = "bigtable_py_grpc", - srcs = [":bigtable_moved_proto"], - deps = [":bigtable_py_proto"], ) py_gapic_library( name = "bigtable_py_gapic", - src = ":bigtable_proto_with_info", - gapic_yaml = "bigtable_gapic.yaml", - package = "google.bigtable.v2", - service_yaml = "bigtable_v2.yaml", - deps = [ - ":bigtable_py_grpc", - ":bigtable_py_proto", - ], + srcs = [":bigtable_proto"], + grpc_service_config = "bigtable_grpc_service_config.json", + opt_args = ["python-gapic-namespace=google.cloud"], ) -# Open Source Packages py_gapic_assembly_pkg( name = "bigtable-v2-py", deps = [ ":bigtable_py_gapic", - ":bigtable_py_grpc", - ":bigtable_py_proto", ], ) @@ -255,6 +218,7 @@ nodejs_gapic_library( name = "bigtable_nodejs_gapic", package_name = "@google-cloud/bigtable", src = ":bigtable_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "bigtable_grpc_service_config.json", main_service = "bigtable", package = "google.bigtable.v2", @@ -276,7 +240,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -292,12 +256,19 @@ ruby_grpc_library( deps = [":bigtable_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "bigtable_ruby_gapic", - src = ":bigtable_proto_with_info", - gapic_yaml = "bigtable_gapic.yaml", - package = "google.bigtable.v2", - service_yaml = "bigtable_v2.yaml", + srcs = [":bigtable_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-bigtable-v2", + "ruby-cloud-env-prefix=BIGTABLE", + "ruby-cloud-product-url=https://cloud.google.com/bigtable", + "ruby-cloud-api-id=bigtable.googleapis.com", + "ruby-cloud-api-shortname=bigtable", + ], + grpc_service_config = "bigtable_grpc_service_config.json", + ruby_cloud_description = "Cloud Bigtable is a fully managed, scalable NoSQL database service for large analytical and operational workloads.", + ruby_cloud_title = "Cloud Bigtable V2", deps = [ ":bigtable_ruby_grpc", ":bigtable_ruby_proto", @@ -339,8 +310,8 @@ csharp_grpc_library( csharp_gapic_library( name = "bigtable_csharp_gapic", srcs = [":bigtable_proto_with_info"], - grpc_service_config = "bigtable_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "bigtable_grpc_service_config.json", deps = [ ":bigtable_csharp_grpc", ":bigtable_csharp_proto", diff --git a/third_party/googleapis/google/bigtable/v2/bigtable_gapic.legacy.yaml b/third_party/googleapis/google/bigtable/v2/bigtable_gapic.legacy.yaml deleted file mode 100644 index d88eee9fd..000000000 --- a/third_party/googleapis/google/bigtable/v2/bigtable_gapic.legacy.yaml +++ /dev/null @@ -1,198 +0,0 @@ -type: com.google.api.codegen.ConfigProto -config_schema_version: 1.0.0 -language_settings: - java: - package_name: com.google.cloud.bigtable.data.v2 - interface_names: - google.bigtable.v2.Bigtable: BaseBigtableData - python: - package_name: google.cloud.bigtable_v2.gapic - go: - package_name: cloud.google.com/go/bigtable/apiv2 - csharp: - package_name: Google.Cloud.Bigtable.V2 - interface_names: - google.bigtable.v2.Bigtable: BigtableServiceApi - ruby: - package_name: Google::Cloud::Bigtable::V2 - release_level: GA - php: - package_name: Google\Cloud\Bigtable\V2 - nodejs: - package_name: bigtable.v2 - domain_layer_location: google-cloud -interfaces: -- name: google.bigtable.v2.Bigtable - collections: - - name_pattern: projects/{project}/instances/{instance}/tables/{table} - entity_name: table - language_overrides: - - language: csharp - common_resource_name: Google.Cloud.Bigtable.Common.V2.TableName - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - retry_params_def: - - name: idempotent_params - initial_retry_delay_millis: 10 - retry_delay_multiplier: 2 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - - name: non_idempotent_params - initial_retry_delay_millis: 10 - retry_delay_multiplier: 2 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 20000 - - name: read_rows_params - initial_retry_delay_millis: 10 - retry_delay_multiplier: 2 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 300000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 300000 - total_timeout_millis: 43200000 - - name: mutate_rows_params - initial_retry_delay_millis: 10 - retry_delay_multiplier: 2 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 60000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 60000 - total_timeout_millis: 600000 - methods: - - name: ReadRows - flattening: - groups: - - parameters: - - table_name - required_fields: - - table_name - retry_codes_name: idempotent - retry_params_name: read_rows_params - field_name_patterns: - table_name: table - resource_name_treatment: STATIC_TYPES - timeout_millis: 43200000 - header_request_params: - - table_name - - name: SampleRowKeys - flattening: - groups: - - parameters: - - table_name - required_fields: - - table_name - retry_codes_name: idempotent - retry_params_name: idempotent_params - field_name_patterns: - table_name: table - timeout_millis: 20000 - resource_name_treatment: STATIC_TYPES - header_request_params: - - table_name - - name: MutateRow - flattening: - groups: - - parameters: - - table_name - - row_key - - mutations - required_fields: - - table_name - - row_key - - mutations - retry_codes_name: idempotent - retry_params_name: idempotent_params - field_name_patterns: - table_name: table - resource_name_treatment: STATIC_TYPES - timeout_millis: 20000 - header_request_params: - - table_name - - name: MutateRows - flattening: - groups: - - parameters: - - table_name - - entries - required_fields: - - table_name - - entries - retry_codes_name: idempotent - retry_params_name: mutate_rows_params - field_name_patterns: - table_name: table - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - header_request_params: - - table_name - - name: CheckAndMutateRow - flattening: - groups: - - parameters: - - table_name - - row_key - - predicate_filter - - true_mutations - - false_mutations - # Note that one of {true_mutations,false_mutations} must be specified, but - # since they are not both required, we leave them as optional params. - required_fields: - - table_name - - row_key - retry_codes_name: non_idempotent - retry_params_name: non_idempotent_params - field_name_patterns: - table_name: table - resource_name_treatment: STATIC_TYPES - timeout_millis: 20000 - header_request_params: - - table_name - - name: ReadModifyWriteRow - flattening: - groups: - - parameters: - - table_name - - row_key - - rules - required_fields: - - table_name - - row_key - - rules - retry_codes_name: non_idempotent - retry_params_name: non_idempotent_params - field_name_patterns: - table_name: table - resource_name_treatment: STATIC_TYPES - timeout_millis: 20000 - header_request_params: - - table_name -resource_name_generation: -- message_name: ReadRowsRequest - field_entity_map: - table_name: table -- message_name: SampleRowKeysRequest - field_entity_map: - table_name: table -- message_name: MutateRowRequest - field_entity_map: - table_name: table -- message_name: MutateRowsRequest - field_entity_map: - table_name: table -- message_name: CheckAndMutateRowRequest - field_entity_map: - table_name: table -- message_name: ReadModifyWriteRowRequest - field_entity_map: - table_name: table diff --git a/third_party/googleapis/google/bigtable/v2/bigtable_gapic.yaml b/third_party/googleapis/google/bigtable/v2/bigtable_gapic.yaml index 04e9f5b37..9b0b563a9 100644 --- a/third_party/googleapis/google/bigtable/v2/bigtable_gapic.yaml +++ b/third_party/googleapis/google/bigtable/v2/bigtable_gapic.yaml @@ -23,76 +23,3 @@ language_settings: domain_layer_location: google-cloud interfaces: - name: google.bigtable.v2.Bigtable - collections: - - entity_name: table - language_overrides: - - language: csharp - common_resource_name: Google.Cloud.Bigtable.Common.V2.TableName - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - retry_params_def: - - name: idempotent_params - initial_retry_delay_millis: 10 - retry_delay_multiplier: 2 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - - name: non_idempotent_params - initial_retry_delay_millis: 10 - retry_delay_multiplier: 2 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 20000 - - name: read_rows_params - initial_retry_delay_millis: 10 - retry_delay_multiplier: 2 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 300000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 300000 - total_timeout_millis: 43200000 - - name: mutate_rows_params - initial_retry_delay_millis: 10 - retry_delay_multiplier: 2 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 60000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 60000 - total_timeout_millis: 600000 - methods: - - name: ReadRows - # although ReadRows is idempotent, the retry logic requires complex resumption logic that should be handled manually at the client level - retry_codes_name: non_idempotent - retry_params_name: read_rows_params - timeout_millis: 43200000 - - name: SampleRowKeys - # although SampleRowKeys is idempotent, the retries should buffer and retry the entire stream as a whole, which should be handled manually at the client level - retry_codes_name: non_idempotent - retry_params_name: non_idempotent_params - timeout_millis: 60000 - - name: MutateRow - retry_codes_name: idempotent - retry_params_name: idempotent_params - timeout_millis: 60000 - - name: MutateRows - # although MutateRows is idempotent (if serverside timestamps are not used), retries should be more granular and occur for groups of failed entries handled manually at the client level - retry_codes_name: non_idempotent - retry_params_name: mutate_rows_params - timeout_millis: 600000 - - name: CheckAndMutateRow - retry_codes_name: non_idempotent - retry_params_name: non_idempotent_params - timeout_millis: 20000 - - name: ReadModifyWriteRow - retry_codes_name: non_idempotent - retry_params_name: non_idempotent_params - timeout_millis: 20000 diff --git a/third_party/googleapis/google/bigtable/v2/bigtable_grpc_service_config.json b/third_party/googleapis/google/bigtable/v2/bigtable_grpc_service_config.json index 9ad691ecf..8786d7fd5 100755 --- a/third_party/googleapis/google/bigtable/v2/bigtable_grpc_service_config.json +++ b/third_party/googleapis/google/bigtable/v2/bigtable_grpc_service_config.json @@ -11,7 +11,13 @@ "method": "ReadModifyWriteRow" } ], - "timeout": "20s" + "timeout": "20s", + "retryPolicy": { + "initialBackoff": "0.010s", + "maxBackoff": "60s", + "backoffMultiplier": 2, + "retryableStatusCodes": [] + } }, { "name": [ @@ -20,7 +26,13 @@ "method": "SampleRowKeys" } ], - "timeout": "60s" + "timeout": "60s", + "retryPolicy": { + "initialBackoff": "0.010s", + "maxBackoff": "60s", + "backoffMultiplier": 2, + "retryableStatusCodes": [] + } }, { "name": [ @@ -29,7 +41,13 @@ "method": "MutateRows" } ], - "timeout": "600s" + "timeout": "600s", + "retryPolicy": { + "initialBackoff": "0.010s", + "maxBackoff": "60s", + "backoffMultiplier": 2, + "retryableStatusCodes": [] + } }, { "name": [ @@ -38,7 +56,13 @@ "method": "ReadRows" } ], - "timeout": "43200s" + "timeout": "43200s", + "retryPolicy": { + "initialBackoff": "0.010s", + "maxBackoff": "60s", + "backoffMultiplier": 2, + "retryableStatusCodes": [] + } }, { "name": [ diff --git a/third_party/googleapis/google/chromeos/moblab/v1beta1/BUILD.bazel b/third_party/googleapis/google/chromeos/moblab/v1beta1/BUILD.bazel index 8405b0785..a0e120eb1 100644 --- a/third_party/googleapis/google/chromeos/moblab/v1beta1/BUILD.bazel +++ b/third_party/googleapis/google/chromeos/moblab/v1beta1/BUILD.bazel @@ -59,10 +59,8 @@ java_grpc_library( java_gapic_library( name = "moblab_java_gapic", - src = ":moblab_proto_with_info", - gapic_yaml = "chromeosmoblab_gapic.yaml", - package = "google.chromeos.moblab.v1beta1", - service_yaml = "chromeosmoblab_v1beta1.yaml", + srcs = [":moblab_proto_with_info"], + grpc_service_config = "moblab_grpc_service_config.json", test_deps = [ ":moblab_java_grpc", ], @@ -120,9 +118,9 @@ go_gapic_library( service_yaml = "chromeosmoblab_v1beta1.yaml", deps = [ ":moblab_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", ], ) @@ -148,49 +146,14 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "moblab_moved_proto", - srcs = [":moblab_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:resource_proto", - "//google/longrunning:operations_proto", - "@com_google_protobuf//:field_mask_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -py_proto_library( - name = "moblab_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":moblab_moved_proto"], -) - -py_grpc_library( - name = "moblab_py_grpc", - srcs = [":moblab_moved_proto"], - deps = [":moblab_py_proto"], ) py_gapic_library( name = "moblab_py_gapic", - src = ":moblab_proto_with_info", - gapic_yaml = "chromeosmoblab_gapic.yaml", - package = "google.chromeos.moblab.v1beta1", - service_yaml = "chromeosmoblab_v1beta1.yaml", - deps = [ - ":moblab_py_grpc", - ":moblab_py_proto", - ], + srcs = [":moblab_proto"], + grpc_service_config = "moblab_grpc_service_config.json", ) # Open Source Packages @@ -198,8 +161,6 @@ py_gapic_assembly_pkg( name = "chromeos-moblab-v1beta1-py", deps = [ ":moblab_py_gapic", - ":moblab_py_grpc", - ":moblab_py_proto", ], ) @@ -259,6 +220,7 @@ load( nodejs_gapic_library( name = "moblab_nodejs_gapic", src = ":moblab_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "moblab_grpc_service_config.json", package = "google.chromeos.moblab.v1beta1", service_yaml = "chromeosmoblab_v1beta1.yaml", @@ -342,8 +304,8 @@ csharp_grpc_library( csharp_gapic_library( name = "moblab_csharp_gapic", srcs = [":moblab_proto_with_info"], - grpc_service_config = "moblab_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "moblab_grpc_service_config.json", deps = [ ":moblab_csharp_grpc", ":moblab_csharp_proto", diff --git a/third_party/googleapis/google/chromeos/moblab/v1beta1/chromeosmoblab_gapic.yaml b/third_party/googleapis/google/chromeos/moblab/v1beta1/chromeosmoblab_gapic.yaml index 602b7eacb..422c70184 100644 --- a/third_party/googleapis/google/chromeos/moblab/v1beta1/chromeosmoblab_gapic.yaml +++ b/third_party/googleapis/google/chromeos/moblab/v1beta1/chromeosmoblab_gapic.yaml @@ -1,8 +1,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 language_settings: - java: - package_name: com.google.chromeos.moblab.v1beta1 python: package_name: google.chromeos.moblab_v1beta1.gapic go: diff --git a/third_party/googleapis/google/cloud/accessapproval/v1/BUILD.bazel b/third_party/googleapis/google/cloud/accessapproval/v1/BUILD.bazel index 3232bc53d..55619183b 100644 --- a/third_party/googleapis/google/cloud/accessapproval/v1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/accessapproval/v1/BUILD.bazel @@ -66,11 +66,9 @@ java_grpc_library( java_gapic_library( name = "accessapproval_java_gapic", - src = ":accessapproval_proto_with_info", + srcs = [":accessapproval_proto_with_info"], gapic_yaml = "accessapproval_gapic.yaml", grpc_service_config = "accessapproval_grpc_service_config.json", - package = "google.cloud.accessapproval.v1", - service_yaml = "accessapproval_v1.yaml", test_deps = [ ":accessapproval_java_grpc", ], @@ -150,12 +148,10 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -228,7 +224,9 @@ load( nodejs_gapic_library( name = "accessapproval_nodejs_gapic", + package_name = "@google-cloud/access-approval", src = ":accessapproval_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "accessapproval_grpc_service_config.json", package = "google.cloud.accessapproval.v1", service_yaml = "accessapproval_v1.yaml", @@ -249,7 +247,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -265,13 +263,19 @@ ruby_grpc_library( deps = [":accessapproval_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "accessapproval_ruby_gapic", - src = ":accessapproval_proto_with_info", - gapic_yaml = "accessapproval_gapic.yaml", + srcs = [":accessapproval_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-access_approval-v1", + "ruby-cloud-env-prefix=ACCESS_APPROVAL", + "ruby-cloud-product-url=https://cloud.google.com/access-approval/", + "ruby-cloud-api-id=accessapproval.googleapis.com", + "ruby-cloud-api-shortname=accessapproval", + ], grpc_service_config = "accessapproval_grpc_service_config.json", - package = "google.cloud.accessapproval.v1", - service_yaml = "accessapproval_v1.yaml", + ruby_cloud_description = "An API for controlling access to data by Google personnel.", + ruby_cloud_title = "Access Approval V1", deps = [ ":accessapproval_ruby_grpc", ":accessapproval_ruby_proto", @@ -313,8 +317,8 @@ csharp_grpc_library( csharp_gapic_library( name = "accessapproval_csharp_gapic", srcs = [":accessapproval_proto_with_info"], - grpc_service_config = "accessapproval_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "accessapproval_grpc_service_config.json", deps = [ ":accessapproval_csharp_grpc", ":accessapproval_csharp_proto", diff --git a/third_party/googleapis/google/cloud/accessapproval/v1/accessapproval.proto b/third_party/googleapis/google/cloud/accessapproval/v1/accessapproval.proto index 0b8421d7c..cd1ec8eb2 100644 --- a/third_party/googleapis/google/cloud/accessapproval/v1/accessapproval.proto +++ b/third_party/googleapis/google/cloud/accessapproval/v1/accessapproval.proto @@ -23,10 +23,12 @@ import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; +option csharp_namespace = "Google.Cloud.AccessApproval.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/accessapproval/v1;accessapproval"; option java_multiple_files = true; option java_outer_classname = "AccessApprovalProto"; option java_package = "com.google.cloud.accessapproval.v1"; +option php_namespace = "Google\\Cloud\\AccessApproval\\V1"; option ruby_package = "Google::Cloud::AccessApproval::V1"; // This API allows a customer to manage accesses to cloud resources by diff --git a/third_party/googleapis/google/cloud/aiplatform/logging/BUILD.bazel b/third_party/googleapis/google/cloud/aiplatform/logging/BUILD.bazel new file mode 100644 index 000000000..bfb557d02 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/logging/BUILD.bazel @@ -0,0 +1,162 @@ +# This file was automatically generated by BuildFileGenerator + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") + +proto_library( + name = "logging_proto", + srcs = [ + "prediction.proto", + ], + deps = [ + "//google/rpc:status_proto", + ], +) + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_grpc_library", + "java_proto_library", +) + +java_proto_library( + name = "logging_java_proto", + deps = [":logging_proto"], +) + +java_grpc_library( + name = "logging_java_grpc", + srcs = [":logging_proto"], + deps = [":logging_java_proto"], +) + +############################################################################## +# Go +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "go_proto_library", +) + +go_proto_library( + name = "logging_go_proto", + compilers = ["@io_bazel_rules_go//proto:go_grpc"], + importpath = "google.golang.org/genproto/googleapis/cloud/aiplatform/logging", + protos = [":logging_proto"], + deps = [ + "//google/rpc:status_go_proto", + ], +) + +############################################################################## +# Python +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "moved_proto_library", + "py_grpc_library", + "py_proto_library", +) + +moved_proto_library( + name = "logging_moved_proto", + srcs = [":logging_proto"], + deps = [ + "//google/rpc:status_proto", + ], +) + +py_proto_library( + name = "logging_py_proto", + plugin = "@protoc_docs_plugin//:docs_plugin", + deps = [":logging_moved_proto"], +) + +py_grpc_library( + name = "logging_py_grpc", + srcs = [":logging_moved_proto"], + deps = [":logging_py_proto"], +) + +############################################################################## +# PHP +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "php_grpc_library", + "php_proto_library", +) + +php_proto_library( + name = "logging_php_proto", + deps = [":logging_proto"], +) + +php_grpc_library( + name = "logging_php_grpc", + srcs = [":logging_proto"], + deps = [":logging_php_proto"], +) + +############################################################################## +# Node.js +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", +) + + +############################################################################## +# Ruby +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "ruby_grpc_library", + "ruby_proto_library", +) + +ruby_proto_library( + name = "logging_ruby_proto", + deps = [":logging_proto"], +) + +ruby_grpc_library( + name = "logging_ruby_grpc", + srcs = [":logging_proto"], + deps = [":logging_ruby_proto"], +) + +############################################################################## +# C# +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "csharp_grpc_library", + "csharp_proto_library", +) + +csharp_proto_library( + name = "logging_csharp_proto", + deps = [":logging_proto"], +) + +csharp_grpc_library( + name = "logging_csharp_grpc", + srcs = [":logging_proto"], + deps = [":logging_csharp_proto"], +) + +############################################################################## +# C++ +############################################################################## +# Put your C++ code here diff --git a/third_party/googleapis/google/cloud/aiplatform/logging/prediction.proto b/third_party/googleapis/google/cloud/aiplatform/logging/prediction.proto new file mode 100644 index 000000000..037b51c87 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/logging/prediction.proto @@ -0,0 +1,45 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.logging; + +import "google/rpc/status.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/logging;logging"; +option java_multiple_files = true; +option java_outer_classname = "PredictionProto"; +option java_package = "com.google.cloud.aiplatform.logging"; + +// The access log entry definition of online prediction. +message OnlinePredictionLogEntry { + // The resource name of the endpoint as referred to in the original request. + // For example, projects/12323/locations/us-central1/endpoints/123. + string endpoint = 1; + + // The ID of the deployed model used to serve this predict request. + string deployed_model_id = 2; + + // The number of instances in the prediction request. + int64 instance_count = 3; + + // The number of successfully predicted instances in the response. + // Populated when prediction succeeds. + int64 prediction_count = 4; + + // The error code and message. + // Populated when prediction fails. + google.rpc.Status error = 5; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/BUILD.bazel b/third_party/googleapis/google/cloud/aiplatform/v1/BUILD.bazel new file mode 100644 index 000000000..58717757c --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/BUILD.bazel @@ -0,0 +1,420 @@ +# This file was automatically generated by BuildFileGenerator +# https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/bazel + +# Most of the manual changes to this file will be overwritten. +# It's **only** allowed to change the following rule attribute values: +# - names of *_gapic_assembly_* rules +# - certain parameters of *_gapic_library rules, including but not limited to: +# * extra_protoc_parameters +# * extra_protoc_file_parameters +# The complete list of preserved parameters can be found in the source code. + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") +load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info") + +_PROTO_SUBPACKAGE_DEPS = [ + "//google/cloud/aiplatform/v1/schema/predict/instance:instance_proto", + "//google/cloud/aiplatform/v1/schema/predict/params:params_proto", + "//google/cloud/aiplatform/v1/schema/predict/prediction:prediction_proto", + "//google/cloud/aiplatform/v1/schema/trainingjob/definition:definition_proto", +] + +proto_library( + name = "aiplatform_proto", + srcs = [ + "accelerator_type.proto", + "annotation.proto", + "annotation_spec.proto", + "batch_prediction_job.proto", + "completion_stats.proto", + "custom_job.proto", + "data_item.proto", + "data_labeling_job.proto", + "dataset.proto", + "dataset_service.proto", + "deployed_model_ref.proto", + "encryption_spec.proto", + "endpoint.proto", + "endpoint_service.proto", + "env_var.proto", + "hyperparameter_tuning_job.proto", + "io.proto", + "job_service.proto", + "job_state.proto", + "machine_resources.proto", + "manual_batch_tuning_parameters.proto", + "migratable_resource.proto", + "migration_service.proto", + "model.proto", + "model_evaluation.proto", + "model_evaluation_slice.proto", + "model_service.proto", + "operation.proto", + "pipeline_service.proto", + "pipeline_state.proto", + "prediction_service.proto", + "specialist_pool.proto", + "specialist_pool_service.proto", + "study.proto", + "training_pipeline.proto", + "user_action_reference.proto", + ], + deps = [ + "//google/api:annotations_proto", + "//google/api:client_proto", + "//google/api:field_behavior_proto", + "//google/api:resource_proto", + "//google/longrunning:operations_proto", + "//google/rpc:status_proto", + "//google/type:money_proto", + "@com_google_protobuf//:duration_proto", + "@com_google_protobuf//:empty_proto", + "@com_google_protobuf//:field_mask_proto", + "@com_google_protobuf//:struct_proto", + "@com_google_protobuf//:timestamp_proto", + "@com_google_protobuf//:wrappers_proto", + ] + _PROTO_SUBPACKAGE_DEPS, +) + +proto_library_with_info( + name = "aiplatform_proto_with_info", + deps = [ + ":aiplatform_proto", + "//google/cloud:common_resources_proto", + ] + _PROTO_SUBPACKAGE_DEPS, +) + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_gapic_assembly_gradle_pkg", + "java_gapic_library", + "java_gapic_test", + "java_grpc_library", + "java_proto_library", +) + +_JAVA_PROTO_SUBPACKAGE_DEPS = [ + "//google/cloud/aiplatform/v1/schema/predict/instance:instance_java_proto", + "//google/cloud/aiplatform/v1/schema/predict/params:params_java_proto", + "//google/cloud/aiplatform/v1/schema/predict/prediction:prediction_java_proto", + "//google/cloud/aiplatform/v1/schema/trainingjob/definition:definition_java_proto", +] + +_JAVA_GRPC_SUBPACKAGE_DEPS = [ + "//google/cloud/aiplatform/v1/schema/predict/instance:instance_java_grpc", + "//google/cloud/aiplatform/v1/schema/predict/params:params_java_grpc", + "//google/cloud/aiplatform/v1/schema/predict/prediction:prediction_java_grpc", + "//google/cloud/aiplatform/v1/schema/trainingjob/definition:definition_java_grpc", +] + +java_proto_library( + name = "aiplatform_java_proto", + deps = [":aiplatform_proto"], +) + +java_grpc_library( + name = "aiplatform_java_grpc", + srcs = [":aiplatform_proto"], + deps = [":aiplatform_java_proto"] + _JAVA_PROTO_SUBPACKAGE_DEPS, +) + +java_gapic_library( + name = "aiplatform_java_gapic", + srcs = [":aiplatform_proto_with_info"], + grpc_service_config = "aiplatform_grpc_service_config.json", + test_deps = [ + ":aiplatform_java_grpc", + ] + _JAVA_PROTO_SUBPACKAGE_DEPS, + deps = [ + ":aiplatform_java_proto", + ] + _JAVA_PROTO_SUBPACKAGE_DEPS, +) + +java_gapic_test( + name = "aiplatform_java_gapic_test_suite", + test_classes = [ + "com.google.cloud.aiplatform.v1.DatasetServiceClientTest", + "com.google.cloud.aiplatform.v1.EndpointServiceClientTest", + "com.google.cloud.aiplatform.v1.JobServiceClientTest", + "com.google.cloud.aiplatform.v1.MigrationServiceClientTest", + "com.google.cloud.aiplatform.v1.ModelServiceClientTest", + "com.google.cloud.aiplatform.v1.PipelineServiceClientTest", + "com.google.cloud.aiplatform.v1.PredictionServiceClientTest", + "com.google.cloud.aiplatform.v1.SpecialistPoolServiceClientTest", + ], + runtime_deps = [":aiplatform_java_gapic_test"], +) + +# Open Source Packages +java_gapic_assembly_gradle_pkg( + name = "google-cloud-aiplatform-v1-java", + deps = [ + ":aiplatform_java_gapic", + ":aiplatform_java_grpc", + ":aiplatform_java_proto", + ":aiplatform_proto", + ] + _JAVA_PROTO_SUBPACKAGE_DEPS + _PROTO_SUBPACKAGE_DEPS + _JAVA_GRPC_SUBPACKAGE_DEPS, +) + +############################################################################## +# Go +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "go_gapic_assembly_pkg", + "go_gapic_library", + "go_proto_library", + "go_test", +) + +go_proto_library( + name = "aiplatform_go_proto", + compilers = ["@io_bazel_rules_go//proto:go_grpc"], + importpath = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1", + protos = [":aiplatform_proto"], + deps = [ + "//google/api:annotations_go_proto", + "//google/longrunning:longrunning_go_proto", + "//google/rpc:status_go_proto", + "//google/type:money_go_proto", + ], +) + +go_gapic_library( + name = "aiplatform_go_gapic", + srcs = [":aiplatform_proto_with_info"], + grpc_service_config = "aiplatform_grpc_service_config.json", + importpath = "cloud.google.com/go/aiplatform/apiv1;aiplatform", + service_yaml = "aiplatform_v1.yaml", + deps = [ + ":aiplatform_go_proto", + "//google/longrunning:longrunning_go_proto", + "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", + "@io_bazel_rules_go//proto/wkt:duration_go_proto", + "@io_bazel_rules_go//proto/wkt:struct_go_proto", + ], +) + +go_test( + name = "aiplatform_go_gapic_test", + srcs = [":aiplatform_go_gapic_srcjar_test"], + embed = [":aiplatform_go_gapic"], + importpath = "cloud.google.com/go/aiplatform/apiv1", +) + +# Open Source Packages +go_gapic_assembly_pkg( + name = "gapi-cloud-aiplatform-v1-go", + deps = [ + ":aiplatform_go_gapic", + ":aiplatform_go_gapic_srcjar-test.srcjar", + ":aiplatform_go_proto", + ], +) + +############################################################################## +# Python +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "py_gapic_assembly_pkg", + "py_gapic_library", +) + +_PY_GAPIC_SUBPACKAGE_DEPS = [ + "//google/cloud/aiplatform/v1/schema/predict/instance:instance_py_gapic", + "//google/cloud/aiplatform/v1/schema/predict/params:params_py_gapic", + "//google/cloud/aiplatform/v1/schema/predict/prediction:prediction_py_gapic", + "//google/cloud/aiplatform/v1/schema/trainingjob/definition:definition_py_gapic", +] + + +py_gapic_library( + name = "aiplatform_py_gapic", + srcs = [":aiplatform_proto"], + grpc_service_config = "aiplatform_grpc_service_config.json", +) + +# Open Source Packages +py_gapic_assembly_pkg( + name = "aiplatform-v1-py", + deps = [ + ":aiplatform_py_gapic", + ] + _PROTO_SUBPACKAGE_DEPS + _PY_GAPIC_SUBPACKAGE_DEPS, +) + +############################################################################## +# PHP +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "php_gapic_assembly_pkg", + "php_gapic_library", + "php_grpc_library", + "php_proto_library", +) + +php_proto_library( + name = "aiplatform_php_proto", + deps = [":aiplatform_proto"], +) + +php_grpc_library( + name = "aiplatform_php_grpc", + srcs = [":aiplatform_proto"], + deps = [":aiplatform_php_proto"], +) + +php_gapic_library( + name = "aiplatform_php_gapic", + src = ":aiplatform_proto_with_info", + gapic_yaml = "aiplatform_gapic.yaml", + grpc_service_config = "aiplatform_grpc_service_config.json", + package = "google.cloud.aiplatform.v1", + service_yaml = "aiplatform_v1.yaml", + deps = [ + ":aiplatform_php_grpc", + ":aiplatform_php_proto", + ], +) + +# Open Source Packages +php_gapic_assembly_pkg( + name = "google-cloud-aiplatform-v1-php", + deps = [ + ":aiplatform_php_gapic", + ":aiplatform_php_grpc", + ":aiplatform_php_proto", + ], +) + +############################################################################## +# Node.js +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", +) + +nodejs_gapic_library( + name = "aiplatform_nodejs_gapic", + package_name = "@google-cloud/aiplatform", + src = ":aiplatform_proto_with_info", + extra_protoc_parameters = ["metadata"], + grpc_service_config = "aiplatform_grpc_service_config.json", + package = "google.cloud.aiplatform.v1", + service_yaml = "aiplatform_v1.yaml", + deps = [], +) + +nodejs_gapic_assembly_pkg( + name = "aiplatform-v1-nodejs", + deps = [ + ":aiplatform_nodejs_gapic", + ":aiplatform_proto", + ] + _PROTO_SUBPACKAGE_DEPS, +) + +############################################################################## +# Ruby +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "ruby_gapic_assembly_pkg", + "ruby_gapic_library", + "ruby_grpc_library", + "ruby_proto_library", +) + +ruby_proto_library( + name = "aiplatform_ruby_proto", + deps = [":aiplatform_proto"], +) + +ruby_grpc_library( + name = "aiplatform_ruby_grpc", + srcs = [":aiplatform_proto"], + deps = [":aiplatform_ruby_proto"], +) + +ruby_gapic_library( + name = "aiplatform_ruby_gapic", + src = ":aiplatform_proto_with_info", + gapic_yaml = "aiplatform_gapic.yaml", + grpc_service_config = "aiplatform_grpc_service_config.json", + package = "google.cloud.aiplatform.v1", + service_yaml = "aiplatform_v1.yaml", + deps = [ + ":aiplatform_ruby_grpc", + ":aiplatform_ruby_proto", + ], +) + +# Open Source Packages +ruby_gapic_assembly_pkg( + name = "google-cloud-aiplatform-v1-ruby", + deps = [ + ":aiplatform_ruby_gapic", + ":aiplatform_ruby_grpc", + ":aiplatform_ruby_proto", + ], +) + +############################################################################## +# C# +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "csharp_gapic_assembly_pkg", + "csharp_gapic_library", + "csharp_grpc_library", + "csharp_proto_library", +) + +csharp_proto_library( + name = "aiplatform_csharp_proto", + deps = [":aiplatform_proto"], +) + +csharp_grpc_library( + name = "aiplatform_csharp_grpc", + srcs = [":aiplatform_proto"], + deps = [":aiplatform_csharp_proto"], +) + +csharp_gapic_library( + name = "aiplatform_csharp_gapic", + srcs = [":aiplatform_proto_with_info"], + common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "aiplatform_grpc_service_config.json", + deps = [ + ":aiplatform_csharp_grpc", + ":aiplatform_csharp_proto", + ], +) + +# Open Source Packages +csharp_gapic_assembly_pkg( + name = "google-cloud-aiplatform-v1-csharp", + deps = [ + ":aiplatform_csharp_gapic", + ":aiplatform_csharp_grpc", + ":aiplatform_csharp_proto", + ], +) + +############################################################################## +# C++ +############################################################################## +# Put your C++ rules here diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/accelerator_type.proto b/third_party/googleapis/google/cloud/aiplatform/v1/accelerator_type.proto new file mode 100644 index 000000000..096d7187a --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/accelerator_type.proto @@ -0,0 +1,51 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "AcceleratorTypeProto"; +option java_package = "com.google.cloud.aiplatform.v1"; + +// Represents a hardware accelerator type. +enum AcceleratorType { + // Unspecified accelerator type, which means no accelerator. + ACCELERATOR_TYPE_UNSPECIFIED = 0; + + // Nvidia Tesla K80 GPU. + NVIDIA_TESLA_K80 = 1; + + // Nvidia Tesla P100 GPU. + NVIDIA_TESLA_P100 = 2; + + // Nvidia Tesla V100 GPU. + NVIDIA_TESLA_V100 = 3; + + // Nvidia Tesla P4 GPU. + NVIDIA_TESLA_P4 = 4; + + // Nvidia Tesla T4 GPU. + NVIDIA_TESLA_T4 = 5; + + // TPU v2. + TPU_V2 = 6; + + // TPU v3. + TPU_V3 = 7; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/aiplatform_gapic.yaml b/third_party/googleapis/google/cloud/aiplatform/v1/aiplatform_gapic.yaml new file mode 100644 index 000000000..691492a6e --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/aiplatform_gapic.yaml @@ -0,0 +1,18 @@ +type: com.google.api.codegen.ConfigProto +config_schema_version: 2.0.0 +language_settings: + java: + package_name: com.google.cloud.aiplatform.v1 + python: + package_name: google.cloud.aiplatform_v1.gapic + go: + package_name: cloud.google.com/go/aiplatform/apiv1 + csharp: + package_name: Google.Aiplatform.V1 + ruby: + package_name: Google::Cloud::Aiplatform::V1 + php: + package_name: Google\Cloud\Aiplatform\V1 + nodejs: + package_name: aiplatform.v1 + domain_layer_location: google-cloud diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/aiplatform_grpc_service_config.json b/third_party/googleapis/google/cloud/aiplatform/v1/aiplatform_grpc_service_config.json new file mode 100644 index 000000000..b0f52507c --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/aiplatform_grpc_service_config.json @@ -0,0 +1,279 @@ +{ + "methodConfig": [ + { + "name": [ + { + "service": "google.cloud.aiplatform.v1beta1.DatasetService", + "method": "CreateDataset" + }, + { + "service": "google.cloud.aiplatform.v1beta1.DatasetService", + "method": "GetDataset" + }, + { + "service": "google.cloud.aiplatform.v1beta1.DatasetService", + "method": "UpdateDataset" + }, + { + "service": "google.cloud.aiplatform.v1beta1.DatasetService", + "method": "ListDatasets" + }, + { + "service": "google.cloud.aiplatform.v1beta1.DatasetService", + "method": "DeleteDataset" + }, + { + "service": "google.cloud.aiplatform.v1beta1.DatasetService", + "method": "ImportData" + }, + { + "service": "google.cloud.aiplatform.v1beta1.DatasetService", + "method": "ExportData" + }, + { + "service": "google.cloud.aiplatform.v1beta1.DatasetService", + "method": "ListDataItems" + }, + { + "service": "google.cloud.aiplatform.v1beta1.DatasetService", + "method": "GetAnnotationSpec" + }, + { + "service": "google.cloud.aiplatform.v1beta1.DatasetService", + "method": "ListAnnotations" + } + ], + "timeout": "5s" + }, + { + "name":[ + { + "service": "google.cloud.aiplatform.v1beta1.EndpointService", + "method": "CreateEndpoint" + }, + { + "service": "google.cloud.aiplatform.v1beta1.EndpointService", + "method": "GetEndpoint" + }, + { + "service": "google.cloud.aiplatform.v1beta1.EndpointService", + "method": "ListEndpoints" + }, + { + "service": "google.cloud.aiplatform.v1beta1.EndpointService", + "method": "UpdateEndpoint" + }, + { + "service": "google.cloud.aiplatform.v1beta1.EndpointService", + "method": "DeleteEndpoint" + }, + { + "service": "google.cloud.aiplatform.v1beta1.EndpointService", + "method": "DeployModel" + }, + { + "service": "google.cloud.aiplatform.v1beta1.EndpointService", + "method": "UndeployModel" + } + ], + "timeout": "5s" + }, + { + "name":[ + { + "service": "google.cloud.aiplatform.v1beta1.JobService", + "method": "CreateCustomJob" + }, + { + "service": "google.cloud.aiplatform.v1beta1.JobService", + "method": "GetCustomJob" + }, + { + "service": "google.cloud.aiplatform.v1beta1.JobService", + "method": "ListCustomJobs" + }, + { + "service": "google.cloud.aiplatform.v1beta1.JobService", + "method": "DeleteCustomJob" + }, + { + "service": "google.cloud.aiplatform.v1beta1.JobService", + "method": "CancelCustomJob" + }, + { + "service": "google.cloud.aiplatform.v1beta1.JobService", + "method": "CreateDataLabelingJob" + }, + { + "service": "google.cloud.aiplatform.v1beta1.JobService", + "method": "GetDataLabelingJob" + }, + { + "service": "google.cloud.aiplatform.v1beta1.JobService", + "method": "ListDataLabelingJobs" + }, + { + "service": "google.cloud.aiplatform.v1beta1.JobService", + "method": "DeleteDataLabelingJob" + }, + { + "service": "google.cloud.aiplatform.v1beta1.JobService", + "method": "CancelDataLabelingJob" + }, + { + "service": "google.cloud.aiplatform.v1beta1.JobService", + "method": "CreateHyperparameterTuningJob" + }, + { + "service": "google.cloud.aiplatform.v1beta1.JobService", + "method": "GetHyperparameterTuningJob" + }, + { + "service": "google.cloud.aiplatform.v1beta1.JobService", + "method": "ListHyperparameterTuningJobs" + }, + { + "service": "google.cloud.aiplatform.v1beta1.JobService", + "method": "DeleteHyperparameterTuningJob" + }, + { + "service": "google.cloud.aiplatform.v1beta1.JobService", + "method": "CancelHyperparameterTuningJob" + }, + { + "service": "google.cloud.aiplatform.v1beta1.JobService", + "method": "CreateBatchPredictionJob" + }, + { + "service": "google.cloud.aiplatform.v1beta1.JobService", + "method": "GetBatchPredictionJob" + }, + { + "service": "google.cloud.aiplatform.v1beta1.JobService", + "method": "ListBatchPredictionJobs" + }, + { + "service": "google.cloud.aiplatform.v1beta1.JobService", + "method": "DeleteBatchPredictionJob" + }, + { + "service": "google.cloud.aiplatform.v1beta1.JobService", + "method": "CancelBatchPredictionJob" + } + ], + "timeout": "5s" + }, + { + "name":[ + { + "service": "google.cloud.aiplatform.v1beta1.ModelService", + "method": "UploadModel" + }, + { + "service": "google.cloud.aiplatform.v1beta1.ModelService", + "method": "GetModel" + }, + { + "service": "google.cloud.aiplatform.v1beta1.ModelService", + "method": "ListModels" + }, + { + "service": "google.cloud.aiplatform.v1beta1.ModelService", + "method": "UpdateModel" + }, + { + "service": "google.cloud.aiplatform.v1beta1.ModelService", + "method": "DeleteModel" + }, + { + "service": "google.cloud.aiplatform.v1beta1.ModelService", + "method": "ExportModel" + }, + { + "service": "google.cloud.aiplatform.v1beta1.ModelService", + "method": "GetModelEvaluation" + }, + { + "service": "google.cloud.aiplatform.v1beta1.ModelService", + "method": "ListModelEvaluations" + }, + { + "service": "google.cloud.aiplatform.v1beta1.ModelService", + "method": "GetModelEvaluationSlice" + }, + { + "service": "google.cloud.aiplatform.v1beta1.ModelService", + "method": "ListModelEvaluationSlices" + }, + { + "service": "google.cloud.aiplatform.v1beta1.ModelService", + "method": "ExportEvaluatedDataItems" + } + ], + "timeout": "5s" + }, + { + "name":[ + { + "service": "google.cloud.aiplatform.v1beta1.PipelineService", + "method": "CreateTrainingPipeline" + }, + { + "service": "google.cloud.aiplatform.v1beta1.PipelineService", + "method": "GetTrainingPipeline" + }, + { + "service": "google.cloud.aiplatform.v1beta1.PipelineService", + "method": "ListTrainingPipelines" + }, + { + "service": "google.cloud.aiplatform.v1beta1.PipelineService", + "method": "DeleteTrainingPipeline" + }, + { + "service": "google.cloud.aiplatform.v1beta1.PipelineService", + "method": "CancelTrainingPipeline" + } + ], + "timeout": "5s" + }, + { + "name":[ + { + "service": "google.cloud.aiplatform.v1beta1.PredictionService", + "method": "Predict" + }, + { + "service": "google.cloud.aiplatform.v1beta1.PredictionService", + "method": "Explain" + } + ], + "timeout": "5s" + }, + { + "name":[ + { + "service": "google.cloud.aiplatform.v1beta1.SpecialistPoolService", + "method": "CreateSpecialistPool" + }, + { + "service": "google.cloud.aiplatform.v1beta1.SpecialistPoolService", + "method": "GetSpecialistPool" + }, + { + "service": "google.cloud.aiplatform.v1beta1.SpecialistPoolService", + "method": "ListSpecialistPools" + }, + { + "service": "google.cloud.aiplatform.v1beta1.SpecialistPoolService", + "method": "DeleteSpecialistPool" + }, + { + "service": "google.cloud.aiplatform.v1beta1.SpecialistPoolService", + "method": "UpdateSpecialistPool" + } + ], + "timeout": "5s" + } + ] +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/aiplatform_v1.yaml b/third_party/googleapis/google/cloud/aiplatform/v1/aiplatform_v1.yaml new file mode 100644 index 000000000..f1a614502 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/aiplatform_v1.yaml @@ -0,0 +1,112 @@ +type: google.api.Service +config_version: 3 +name: aiplatform.googleapis.com +title: Cloud AI Platform API + +apis: +- name: google.cloud.aiplatform.v1.DatasetService +- name: google.cloud.aiplatform.v1.EndpointService +- name: google.cloud.aiplatform.v1.JobService +- name: google.cloud.aiplatform.v1.MigrationService +- name: google.cloud.aiplatform.v1.ModelService +- name: google.cloud.aiplatform.v1.PipelineService +- name: google.cloud.aiplatform.v1.PredictionService +- name: google.cloud.aiplatform.v1.SpecialistPoolService + +types: +- name: google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata +- name: google.cloud.aiplatform.v1.BatchMigrateResourcesResponse +- name: google.cloud.aiplatform.v1.CreateDatasetOperationMetadata +- name: google.cloud.aiplatform.v1.CreateEndpointOperationMetadata +- name: google.cloud.aiplatform.v1.CreateSpecialistPoolOperationMetadata +- name: google.cloud.aiplatform.v1.DeleteOperationMetadata +- name: google.cloud.aiplatform.v1.DeployModelOperationMetadata +- name: google.cloud.aiplatform.v1.DeployModelResponse +- name: google.cloud.aiplatform.v1.ExportDataOperationMetadata +- name: google.cloud.aiplatform.v1.ExportDataResponse +- name: google.cloud.aiplatform.v1.ExportModelOperationMetadata +- name: google.cloud.aiplatform.v1.ExportModelResponse +- name: google.cloud.aiplatform.v1.ImportDataOperationMetadata +- name: google.cloud.aiplatform.v1.ImportDataResponse +- name: google.cloud.aiplatform.v1.SpecialistPool +- name: google.cloud.aiplatform.v1.UndeployModelOperationMetadata +- name: google.cloud.aiplatform.v1.UndeployModelResponse +- name: google.cloud.aiplatform.v1.UpdateSpecialistPoolOperationMetadata +- name: google.cloud.aiplatform.v1.UploadModelOperationMetadata +- name: google.cloud.aiplatform.v1.UploadModelResponse + +documentation: + summary: |- + Train high-quality custom machine learning models with minimal machine + learning expertise and effort. + overview: |- + AI Platform (Unified) enables data scientists, developers, and AI newcomers + to create custom machine learning models specific to their business needs + by leveraging Google's state-of-the-art transfer learning and innovative + AI research. + +backend: + rules: + - selector: 'google.cloud.aiplatform.v1.DatasetService.*' + deadline: 60.0 + - selector: 'google.cloud.aiplatform.v1.EndpointService.*' + deadline: 60.0 + - selector: 'google.cloud.aiplatform.v1.JobService.*' + deadline: 60.0 + - selector: google.cloud.aiplatform.v1.MigrationService.BatchMigrateResources + deadline: 60.0 + - selector: google.cloud.aiplatform.v1.MigrationService.SearchMigratableResources + deadline: 60.0 + - selector: 'google.cloud.aiplatform.v1.ModelService.*' + deadline: 60.0 + - selector: 'google.cloud.aiplatform.v1.PipelineService.*' + deadline: 60.0 + - selector: google.cloud.aiplatform.v1.PredictionService.Predict + deadline: 600.0 + - selector: 'google.cloud.aiplatform.v1.SpecialistPoolService.*' + deadline: 60.0 + - selector: 'google.longrunning.Operations.*' + deadline: 60.0 + +authentication: + rules: + - selector: 'google.cloud.aiplatform.v1.DatasetService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform + - selector: 'google.cloud.aiplatform.v1.EndpointService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform + - selector: 'google.cloud.aiplatform.v1.JobService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform + - selector: google.cloud.aiplatform.v1.MigrationService.BatchMigrateResources + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform + - selector: google.cloud.aiplatform.v1.MigrationService.SearchMigratableResources + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform + - selector: 'google.cloud.aiplatform.v1.ModelService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform + - selector: 'google.cloud.aiplatform.v1.PipelineService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform + - selector: google.cloud.aiplatform.v1.PredictionService.Predict + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform + - selector: 'google.cloud.aiplatform.v1.SpecialistPoolService.*' + 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/third_party/googleapis/google/cloud/aiplatform/v1/annotation.proto b/third_party/googleapis/google/cloud/aiplatform/v1/annotation.proto new file mode 100644 index 000000000..14e6c6b83 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/annotation.proto @@ -0,0 +1,88 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1/user_action_reference.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "AnnotationProto"; +option java_package = "com.google.cloud.aiplatform.v1"; + +// Used to assign specific AnnotationSpec to a particular area of a DataItem or +// the whole part of the DataItem. +message Annotation { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/Annotation" + pattern: "projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}/annotations/{annotation}" + }; + + // Output only. Resource name of the Annotation. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Google Cloud Storage URI points to a YAML file describing [payload][google.cloud.aiplatform.v1.Annotation.payload]. The + // schema is defined as an + // [OpenAPI 3.0.2 Schema Object](https://tinyurl.com/y538mdwt). + // The schema files that can be used here are found in + // gs://google-cloud-aiplatform/schema/dataset/annotation/, note that the + // chosen schema must be consistent with the parent Dataset's + // [metadata][google.cloud.aiplatform.v1.Dataset.metadata_schema_uri]. + string payload_schema_uri = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The schema of the payload can be found in + // [payload_schema][google.cloud.aiplatform.v1.Annotation.payload_schema_uri]. + google.protobuf.Value payload = 3 [(google.api.field_behavior) = REQUIRED]; + + // Output only. Timestamp when this Annotation was created. + google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this Annotation was last updated. + google.protobuf.Timestamp update_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Used to perform consistent read-modify-write updates. If not set, a blind + // "overwrite" update happens. + string etag = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The source of the Annotation. + UserActionReference annotation_source = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The labels with user-defined metadata to organize your Annotations. + // + // Label keys and values can be no longer than 64 characters + // (Unicode codepoints), can only contain lowercase letters, numeric + // characters, underscores and dashes. International characters are allowed. + // No more than 64 user labels can be associated with one Annotation(System + // labels are excluded). + // + // See https://goo.gl/xmQnxf for more information and examples of labels. + // System reserved label keys are prefixed with "aiplatform.googleapis.com/" + // and are immutable. Following system labels exist for each Annotation: + // + // * "aiplatform.googleapis.com/annotation_set_name": + // optional, name of the UI's annotation set this Annotation belongs to. + // If not set, the Annotation is not visible in the UI. + // + // * "aiplatform.googleapis.com/payload_schema": + // output only, its value is the [payload_schema's][google.cloud.aiplatform.v1.Annotation.payload_schema_uri] + // title. + map labels = 6 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/annotation_spec.proto b/third_party/googleapis/google/cloud/aiplatform/v1/annotation_spec.proto new file mode 100644 index 000000000..d087278a1 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/annotation_spec.proto @@ -0,0 +1,53 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "AnnotationSpecProto"; +option java_package = "com.google.cloud.aiplatform.v1"; + +// Identifies a concept with which DataItems may be annotated with. +message AnnotationSpec { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/AnnotationSpec" + pattern: "projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}" + }; + + // Output only. Resource name of the AnnotationSpec. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The user-defined name of the AnnotationSpec. + // The name can be up to 128 characters long and can be consist of any UTF-8 + // characters. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Output only. Timestamp when this AnnotationSpec was created. + google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when AnnotationSpec was last updated. + google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Used to perform consistent read-modify-write updates. If not set, a blind + // "overwrite" update happens. + string etag = 5 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/batch_prediction_job.proto b/third_party/googleapis/google/cloud/aiplatform/v1/batch_prediction_job.proto new file mode 100644 index 000000000..dab242c3d --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/batch_prediction_job.proto @@ -0,0 +1,249 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1/completion_stats.proto"; +import "google/cloud/aiplatform/v1/encryption_spec.proto"; +import "google/cloud/aiplatform/v1/io.proto"; +import "google/cloud/aiplatform/v1/job_state.proto"; +import "google/cloud/aiplatform/v1/machine_resources.proto"; +import "google/cloud/aiplatform/v1/manual_batch_tuning_parameters.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "BatchPredictionJobProto"; +option java_package = "com.google.cloud.aiplatform.v1"; + +// A job that uses a [Model][google.cloud.aiplatform.v1.BatchPredictionJob.model] to produce predictions +// on multiple [input instances][google.cloud.aiplatform.v1.BatchPredictionJob.input_config]. If +// predictions for significant portion of the instances fail, the job may finish +// without attempting predictions for all remaining instances. +message BatchPredictionJob { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/BatchPredictionJob" + pattern: "projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}" + }; + + // Configures the input to [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob]. + // See [Model.supported_input_storage_formats][google.cloud.aiplatform.v1.Model.supported_input_storage_formats] for Model's supported input + // formats, and how instances should be expressed via any of them. + message InputConfig { + // Required. The source of the input. + oneof source { + // The Cloud Storage location for the input instances. + GcsSource gcs_source = 2; + + // The BigQuery location of the input table. + // The schema of the table should be in the format described by the given + // context OpenAPI Schema, if one is provided. The table may contain + // additional columns that are not described by the schema, and they will + // be ignored. + BigQuerySource bigquery_source = 3; + } + + // Required. The format in which instances are given, must be one of the + // [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model] + // [supported_input_storage_formats][google.cloud.aiplatform.v1.Model.supported_input_storage_formats]. + string instances_format = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // Configures the output of [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob]. + // See [Model.supported_output_storage_formats][google.cloud.aiplatform.v1.Model.supported_output_storage_formats] for supported output + // formats, and how predictions are expressed via any of them. + message OutputConfig { + // Required. The destination of the output. + oneof destination { + // The Cloud Storage location of the directory where the output is + // to be written to. In the given directory a new directory is created. + // Its name is `prediction--`, + // where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. + // Inside of it files `predictions_0001.`, + // `predictions_0002.`, ..., `predictions_N.` + // are created where `` depends on chosen + // [predictions_format][google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig.predictions_format], and N may equal 0001 and depends on the total + // number of successfully predicted instances. + // If the Model has both [instance][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri] + // and [prediction][google.cloud.aiplatform.v1.PredictSchemata.parameters_schema_uri] schemata + // defined then each such file contains predictions as per the + // [predictions_format][google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig.predictions_format]. + // If prediction for any instance failed (partially or completely), then + // an additional `errors_0001.`, `errors_0002.`,..., + // `errors_N.` files are created (N depends on total number + // of failed predictions). These files contain the failed instances, + // as per their schema, followed by an additional `error` field which as + // value has + // [`google.rpc.Status`](Status) + // containing only `code` and `message` fields. + GcsDestination gcs_destination = 2; + + // The BigQuery project location where the output is to be written to. + // In the given project a new dataset is created with name + // `prediction__` + // where is made + // BigQuery-dataset-name compatible (for example, most special characters + // become underscores), and timestamp is in + // YYYY_MM_DDThh_mm_ss_sssZ "based on ISO-8601" format. In the dataset + // two tables will be created, `predictions`, and `errors`. + // If the Model has both [instance][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri] + // and [prediction][google.cloud.aiplatform.v1.PredictSchemata.parameters_schema_uri] schemata + // defined then the tables have columns as follows: The `predictions` + // table contains instances for which the prediction succeeded, it + // has columns as per a concatenation of the Model's instance and + // prediction schemata. The `errors` table contains rows for which the + // prediction has failed, it has instance columns, as per the + // instance schema, followed by a single "errors" column, which as values + // has [`google.rpc.Status`](Status) + // represented as a STRUCT, and containing only `code` and `message`. + BigQueryDestination bigquery_destination = 3; + } + + // Required. The format in which AI Platform gives the predictions, must be one of the + // [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model] + // + // [supported_output_storage_formats][google.cloud.aiplatform.v1.Model.supported_output_storage_formats]. + string predictions_format = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // Further describes this job's output. + // Supplements [output_config][google.cloud.aiplatform.v1.BatchPredictionJob.output_config]. + message OutputInfo { + // The output location into which prediction output is written. + oneof output_location { + // Output only. The full path of the Cloud Storage directory created, into which + // the prediction output is written. + string gcs_output_directory = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The path of the BigQuery dataset created, in + // `bq://projectId.bqDatasetId` + // format, into which the prediction output is written. + string bigquery_output_dataset = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + } + + // Output only. Resource name of the BatchPredictionJob. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The user-defined name of this BatchPredictionJob. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The name of the Model that produces the predictions via this job, + // must share the same ancestor Location. + // Starting this job has no impact on any existing deployments of the Model + // and their resources. + string model = 3 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Model" + } + ]; + + // Required. Input configuration of the instances on which predictions are performed. + // The schema of any single instance may be specified via + // the [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model] + // [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata] + // [instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri]. + InputConfig input_config = 4 [(google.api.field_behavior) = REQUIRED]; + + // The parameters that govern the predictions. The schema of the parameters + // may be specified via the [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model] + // [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata] + // [parameters_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.parameters_schema_uri]. + google.protobuf.Value model_parameters = 5; + + // Required. The Configuration specifying where output predictions should + // be written. + // The schema of any single prediction may be specified as a concatenation + // of [Model's][google.cloud.aiplatform.v1.BatchPredictionJob.model] + // [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata] + // [instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri] + // and + // [prediction_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.prediction_schema_uri]. + OutputConfig output_config = 6 [(google.api.field_behavior) = REQUIRED]; + + // The config of resources used by the Model during the batch prediction. If + // the Model [supports][google.cloud.aiplatform.v1.Model.supported_deployment_resources_types] + // DEDICATED_RESOURCES this config may be provided (and the job will use these + // resources), if the Model doesn't support AUTOMATIC_RESOURCES, this config + // must be provided. + BatchDedicatedResources dedicated_resources = 7; + + // Immutable. Parameters configuring the batch behavior. Currently only applicable when + // [dedicated_resources][google.cloud.aiplatform.v1.BatchPredictionJob.dedicated_resources] are used (in other cases AI Platform does + // the tuning itself). + ManualBatchTuningParameters manual_batch_tuning_parameters = 8 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. Information further describing the output of this job. + OutputInfo output_info = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The detailed state of the job. + JobState state = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Only populated when the job's state is JOB_STATE_FAILED or + // JOB_STATE_CANCELLED. + google.rpc.Status error = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Partial failures encountered. + // For example, single files that can't be read. + // This field never exceeds 20 entries. + // Status details fields contain standard GCP error details. + repeated google.rpc.Status partial_failures = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Information about resources that had been consumed by this job. + // Provided in real time at best effort basis, as well as a final value + // once the job completes. + // + // Note: This field currently may be not populated for batch predictions that + // use AutoML Models. + ResourcesConsumed resources_consumed = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Statistics on completed and failed prediction instances. + CompletionStats completion_stats = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the BatchPredictionJob was created. + google.protobuf.Timestamp create_time = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the BatchPredictionJob for the first time entered the + // `JOB_STATE_RUNNING` state. + google.protobuf.Timestamp start_time = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the BatchPredictionJob entered any of the following states: + // `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, `JOB_STATE_CANCELLED`. + google.protobuf.Timestamp end_time = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the BatchPredictionJob was most recently updated. + google.protobuf.Timestamp update_time = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The labels with user-defined metadata to organize BatchPredictionJobs. + // + // Label keys and values can be no longer than 64 characters + // (Unicode codepoints), can only contain lowercase letters, numeric + // characters, underscores and dashes. International characters are allowed. + // + // See https://goo.gl/xmQnxf for more information and examples of labels. + map labels = 19; + + // Customer-managed encryption key options for a BatchPredictionJob. If this + // is set, then all resources created by the BatchPredictionJob will be + // encrypted with the provided encryption key. + EncryptionSpec encryption_spec = 24; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/completion_stats.proto b/third_party/googleapis/google/cloud/aiplatform/v1/completion_stats.proto new file mode 100644 index 000000000..2e37bcc47 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/completion_stats.proto @@ -0,0 +1,43 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/field_behavior.proto"; +import "google/rpc/status.proto"; +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "CompletionStatsProto"; +option java_package = "com.google.cloud.aiplatform.v1"; + +// Success and error statistics of processing multiple entities +// (for example, DataItems or structured data rows) in batch. +message CompletionStats { + // Output only. The number of entities that had been processed successfully. + int64 successful_count = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of entities for which any error was encountered. + int64 failed_count = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. In cases when enough errors are encountered a job, pipeline, or operation + // may be failed as a whole. Below is the number of entities for which the + // processing had not been finished (either in successful or failed state). + // Set to -1 if the number is unknown (for example, the operation failed + // before the total entity number could be collected). + int64 incomplete_count = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/custom_job.proto b/third_party/googleapis/google/cloud/aiplatform/v1/custom_job.proto new file mode 100644 index 000000000..eb9125ad7 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/custom_job.proto @@ -0,0 +1,216 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1/encryption_spec.proto"; +import "google/cloud/aiplatform/v1/env_var.proto"; +import "google/cloud/aiplatform/v1/io.proto"; +import "google/cloud/aiplatform/v1/job_state.proto"; +import "google/cloud/aiplatform/v1/machine_resources.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "CustomJobProto"; +option java_package = "com.google.cloud.aiplatform.v1"; + +// Represents a job that runs custom workloads such as a Docker container or a +// Python package. A CustomJob can have multiple worker pools and each worker +// pool can have its own machine and input spec. A CustomJob will be cleaned up +// once the job enters terminal state (failed or succeeded). +message CustomJob { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/CustomJob" + pattern: "projects/{project}/locations/{location}/customJobs/{custom_job}" + }; + + // Output only. Resource name of a CustomJob. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The display name of the CustomJob. + // The name can be up to 128 characters long and can be consist of any UTF-8 + // characters. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Job spec. + CustomJobSpec job_spec = 4 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The detailed state of the job. + JobState state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the CustomJob was created. + google.protobuf.Timestamp create_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the CustomJob for the first time entered the + // `JOB_STATE_RUNNING` state. + google.protobuf.Timestamp start_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the CustomJob entered any of the following states: + // `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, `JOB_STATE_CANCELLED`. + google.protobuf.Timestamp end_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the CustomJob was most recently updated. + google.protobuf.Timestamp update_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Only populated when job's state is `JOB_STATE_FAILED` or + // `JOB_STATE_CANCELLED`. + google.rpc.Status error = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The labels with user-defined metadata to organize CustomJobs. + // + // Label keys and values can be no longer than 64 characters + // (Unicode codepoints), can only contain lowercase letters, numeric + // characters, underscores and dashes. International characters are allowed. + // + // See https://goo.gl/xmQnxf for more information and examples of labels. + map labels = 11; + + // Customer-managed encryption key options for a CustomJob. If this is set, + // then all resources created by the CustomJob will be encrypted with the + // provided encryption key. + EncryptionSpec encryption_spec = 12; +} + +// Represents the spec of a CustomJob. +message CustomJobSpec { + // Required. The spec of the worker pools including machine type and Docker image. + repeated WorkerPoolSpec worker_pool_specs = 1 [(google.api.field_behavior) = REQUIRED]; + + // Scheduling options for a CustomJob. + Scheduling scheduling = 3; + + // Specifies the service account for workload run-as account. + // Users submitting jobs must have act-as permission on this run-as account. + // If unspecified, the AI Platform Custom Code Service Agent for the + // CustomJob's project is used. + string service_account = 4; + + // The full name of the Compute Engine + // [network](/compute/docs/networks-and-firewalls#networks) to which the Job + // should be peered. For example, `projects/12345/global/networks/myVPC`. + // [Format](/compute/docs/reference/rest/v1/networks/insert) + // is of the form `projects/{project}/global/networks/{network}`. + // Where {project} is a project number, as in `12345`, and {network} is a + // network name. + // + // Private services access must already be configured for the network. If left + // unspecified, the job is not peered with any network. + string network = 5; + + // The Cloud Storage location to store the output of this CustomJob or + // HyperparameterTuningJob. For HyperparameterTuningJob, + // the baseOutputDirectory of + // each child CustomJob backing a Trial is set to a subdirectory of name + // [id][google.cloud.aiplatform.v1.Trial.id] under its parent HyperparameterTuningJob's + // baseOutputDirectory. + // + // The following AI Platform environment variables will be passed to + // containers or python modules when this field is set: + // + // For CustomJob: + // + // * AIP_MODEL_DIR = `/model/` + // * AIP_CHECKPOINT_DIR = `/checkpoints/` + // * AIP_TENSORBOARD_LOG_DIR = `/logs/` + // + // For CustomJob backing a Trial of HyperparameterTuningJob: + // + // * AIP_MODEL_DIR = `//model/` + // * AIP_CHECKPOINT_DIR = `//checkpoints/` + // * AIP_TENSORBOARD_LOG_DIR = `//logs/` + GcsDestination base_output_directory = 6; +} + +// Represents the spec of a worker pool in a job. +message WorkerPoolSpec { + // The custom task to be executed in this worker pool. + oneof task { + // The custom container task. + ContainerSpec container_spec = 6; + + // The Python packaged task. + PythonPackageSpec python_package_spec = 7; + } + + // Optional. Immutable. The specification of a single machine. + MachineSpec machine_spec = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Optional. The number of worker replicas to use for this worker pool. + int64 replica_count = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Disk spec. + DiskSpec disk_spec = 5; +} + +// The spec of a Container. +message ContainerSpec { + // Required. The URI of a container image in the Container Registry that is to be run on + // each worker replica. + string image_uri = 1 [(google.api.field_behavior) = REQUIRED]; + + // The command to be invoked when the container is started. + // It overrides the entrypoint instruction in Dockerfile when provided. + repeated string command = 2; + + // The arguments to be passed when starting the container. + repeated string args = 3; + + // Environment variables to be passed to the container. + repeated EnvVar env = 4; +} + +// The spec of a Python packaged code. +message PythonPackageSpec { + // Required. The URI of a container image in the Container Registry that will run the + // provided python package. AI Platform provides wide range of executor images + // with pre-installed packages to meet users' various use cases. Only one of + // the provided images can be set here. + string executor_image_uri = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The Google Cloud Storage location of the Python package files which are + // the training program and its dependent packages. + // The maximum number of package URIs is 100. + repeated string package_uris = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The Python module name to run after installing the packages. + string python_module = 3 [(google.api.field_behavior) = REQUIRED]; + + // Command line arguments to be passed to the Python task. + repeated string args = 4; + + // Environment variables to be passed to the python module. + repeated EnvVar env = 5; +} + +// All parameters related to queuing and scheduling of custom jobs. +message Scheduling { + // The maximum job running time. The default is 7 days. + google.protobuf.Duration timeout = 1; + + // Restarts the entire CustomJob if a worker gets restarted. + // This feature can be used by distributed training jobs that are not + // resilient to workers leaving and joining a job. + bool restart_job_on_worker_restart = 3; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/data_item.proto b/third_party/googleapis/google/cloud/aiplatform/v1/data_item.proto new file mode 100644 index 000000000..fdc2e5bdc --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/data_item.proto @@ -0,0 +1,68 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "DataItemProto"; +option java_package = "com.google.cloud.aiplatform.v1"; + +// A piece of data in a Dataset. Could be an image, a video, a document or plain +// text. +message DataItem { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/DataItem" + pattern: "projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}" + }; + + // Output only. The resource name of the DataItem. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this DataItem was created. + google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this DataItem was last updated. + google.protobuf.Timestamp update_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The labels with user-defined metadata to organize your DataItems. + // + // Label keys and values can be no longer than 64 characters + // (Unicode codepoints), can only contain lowercase letters, numeric + // characters, underscores and dashes. International characters are allowed. + // No more than 64 user labels can be associated with one DataItem(System + // labels are excluded). + // + // See https://goo.gl/xmQnxf for more information and examples of labels. + // System reserved label keys are prefixed with "aiplatform.googleapis.com/" + // and are immutable. + map labels = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The data that the DataItem represents (for example, an image or a text + // snippet). The schema of the payload is stored in the parent Dataset's + // [metadata schema's][google.cloud.aiplatform.v1.Dataset.metadata_schema_uri] dataItemSchemaUri field. + google.protobuf.Value payload = 4 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Used to perform consistent read-modify-write updates. If not set, a blind + // "overwrite" update happens. + string etag = 7 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/data_labeling_job.proto b/third_party/googleapis/google/cloud/aiplatform/v1/data_labeling_job.proto new file mode 100644 index 000000000..c6af38262 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/data_labeling_job.proto @@ -0,0 +1,207 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1/accelerator_type.proto"; +import "google/cloud/aiplatform/v1/encryption_spec.proto"; +import "google/cloud/aiplatform/v1/job_state.proto"; +import "google/cloud/aiplatform/v1/specialist_pool.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; +import "google/type/money.proto"; +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "DataLabelingJobProto"; +option java_package = "com.google.cloud.aiplatform.v1"; + +// DataLabelingJob is used to trigger a human labeling job on unlabeled data +// from the following Dataset: +message DataLabelingJob { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/DataLabelingJob" + pattern: "projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}" + }; + + // Output only. Resource name of the DataLabelingJob. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The user-defined name of the DataLabelingJob. + // The name can be up to 128 characters long and can be consist of any UTF-8 + // characters. + // Display name of a DataLabelingJob. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Dataset resource names. Right now we only support labeling from a single + // Dataset. + // Format: + // `projects/{project}/locations/{location}/datasets/{dataset}` + repeated string datasets = 3 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Dataset" + } + ]; + + // Labels to assign to annotations generated by this DataLabelingJob. + // + // Label keys and values can be no longer than 64 characters + // (Unicode codepoints), can only contain lowercase letters, numeric + // characters, underscores and dashes. International characters are allowed. + // See https://goo.gl/xmQnxf for more information and examples of labels. + // System reserved label keys are prefixed with "aiplatform.googleapis.com/" + // and are immutable. + map annotation_labels = 12; + + // Required. Number of labelers to work on each DataItem. + int32 labeler_count = 4 [(google.api.field_behavior) = REQUIRED]; + + // Required. The Google Cloud Storage location of the instruction pdf. This pdf is + // shared with labelers, and provides detailed description on how to label + // DataItems in Datasets. + string instruction_uri = 5 [(google.api.field_behavior) = REQUIRED]; + + // Required. Points to a YAML file stored on Google Cloud Storage describing the + // config for a specific type of DataLabelingJob. + // The schema files that can be used here are found in the + // https://storage.googleapis.com/google-cloud-aiplatform bucket in the + // /schema/datalabelingjob/inputs/ folder. + string inputs_schema_uri = 6 [(google.api.field_behavior) = REQUIRED]; + + // Required. Input config parameters for the DataLabelingJob. + google.protobuf.Value inputs = 7 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The detailed state of the job. + JobState state = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Current labeling job progress percentage scaled in interval [0, 100], + // indicating the percentage of DataItems that has been finished. + int32 labeling_progress = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Estimated cost(in US dollars) that the DataLabelingJob has incurred to + // date. + google.type.Money current_spend = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this DataLabelingJob was created. + google.protobuf.Timestamp create_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this DataLabelingJob was updated most recently. + google.protobuf.Timestamp update_time = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. DataLabelingJob errors. It is only populated when job's state is + // `JOB_STATE_FAILED` or `JOB_STATE_CANCELLED`. + google.rpc.Status error = 22 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The labels with user-defined metadata to organize your DataLabelingJobs. + // + // Label keys and values can be no longer than 64 characters + // (Unicode codepoints), can only contain lowercase letters, numeric + // characters, underscores and dashes. International characters are allowed. + // + // See https://goo.gl/xmQnxf for more information and examples of labels. + // System reserved label keys are prefixed with "aiplatform.googleapis.com/" + // and are immutable. Following system labels exist for each DataLabelingJob: + // + // * "aiplatform.googleapis.com/schema": output only, its value is the + // [inputs_schema][google.cloud.aiplatform.v1.DataLabelingJob.inputs_schema_uri]'s title. + map labels = 11; + + // The SpecialistPools' resource names associated with this job. + repeated string specialist_pools = 16; + + // Customer-managed encryption key spec for a DataLabelingJob. If set, this + // DataLabelingJob will be secured by this key. + // + // Note: Annotations created in the DataLabelingJob are associated with + // the EncryptionSpec of the Dataset they are exported to. + EncryptionSpec encryption_spec = 20; + + // Parameters that configure the active learning pipeline. Active learning will + // label the data incrementally via several iterations. For every iteration, + // it will select a batch of data based on the sampling strategy. + ActiveLearningConfig active_learning_config = 21; +} + +// Parameters that configure the active learning pipeline. Active learning will +// label the data incrementally by several iterations. For every iteration, it +// will select a batch of data based on the sampling strategy. +message ActiveLearningConfig { + // Required. Max human labeling DataItems. The rest part will be labeled by + // machine. + oneof human_labeling_budget { + // Max number of human labeled DataItems. + int64 max_data_item_count = 1; + + // Max percent of total DataItems for human labeling. + int32 max_data_item_percentage = 2; + } + + // Active learning data sampling config. For every active learning labeling + // iteration, it will select a batch of data based on the sampling strategy. + SampleConfig sample_config = 3; + + // CMLE training config. For every active learning labeling iteration, system + // will train a machine learning model on CMLE. The trained model will be used + // by data sampling algorithm to select DataItems. + TrainingConfig training_config = 4; +} + +// Active learning data sampling config. For every active learning labeling +// iteration, it will select a batch of data based on the sampling strategy. +message SampleConfig { + // Sample strategy decides which subset of DataItems should be selected for + // human labeling in every batch. + enum SampleStrategy { + // Default will be treated as UNCERTAINTY. + SAMPLE_STRATEGY_UNSPECIFIED = 0; + + // Sample the most uncertain data to label. + UNCERTAINTY = 1; + } + + // Decides sample size for the initial batch. initial_batch_sample_percentage + // is used by default. + oneof initial_batch_sample_size { + // The percentage of data needed to be labeled in the first batch. + int32 initial_batch_sample_percentage = 1; + } + + // Decides sample size for the following batches. + // following_batch_sample_percentage is used by default. + oneof following_batch_sample_size { + // The percentage of data needed to be labeled in each following batch + // (except the first batch). + int32 following_batch_sample_percentage = 3; + } + + // Field to choose sampling strategy. Sampling strategy will decide which data + // should be selected for human labeling in every batch. + SampleStrategy sample_strategy = 5; +} + +// CMLE training config. For every active learning labeling iteration, system +// will train a machine learning model on CMLE. The trained model will be used +// by data sampling algorithm to select DataItems. +message TrainingConfig { + // The timeout hours for the CMLE training job, expressed in milli hours + // i.e. 1,000 value in this field means 1 hour. + int64 timeout_training_milli_hours = 1; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/dataset.proto b/third_party/googleapis/google/cloud/aiplatform/v1/dataset.proto new file mode 100644 index 000000000..7aabab486 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/dataset.proto @@ -0,0 +1,138 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1/encryption_spec.proto"; +import "google/cloud/aiplatform/v1/io.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "DatasetProto"; +option java_package = "com.google.cloud.aiplatform.v1"; + +// A collection of DataItems and Annotations on them. +message Dataset { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/Dataset" + pattern: "projects/{project}/locations/{location}/datasets/{dataset}" + }; + + // Output only. The resource name of the Dataset. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The user-defined name of the Dataset. + // The name can be up to 128 characters long and can be consist of any UTF-8 + // characters. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Points to a YAML file stored on Google Cloud Storage describing additional + // information about the Dataset. + // The schema is defined as an OpenAPI 3.0.2 Schema Object. + // The schema files that can be used here are found in + // gs://google-cloud-aiplatform/schema/dataset/metadata/. + string metadata_schema_uri = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. Additional information about the Dataset. + google.protobuf.Value metadata = 8 [(google.api.field_behavior) = REQUIRED]; + + // Output only. Timestamp when this Dataset was created. + google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this Dataset was last updated. + google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Used to perform consistent read-modify-write updates. If not set, a blind + // "overwrite" update happens. + string etag = 6; + + // The labels with user-defined metadata to organize your Datasets. + // + // Label keys and values can be no longer than 64 characters + // (Unicode codepoints), can only contain lowercase letters, numeric + // characters, underscores and dashes. International characters are allowed. + // No more than 64 user labels can be associated with one Dataset (System + // labels are excluded). + // + // See https://goo.gl/xmQnxf for more information and examples of labels. + // System reserved label keys are prefixed with "aiplatform.googleapis.com/" + // and are immutable. Following system labels exist for each Dataset: + // + // * "aiplatform.googleapis.com/dataset_metadata_schema": output only, its + // value is the [metadata_schema's][google.cloud.aiplatform.v1.Dataset.metadata_schema_uri] title. + map labels = 7; + + // Customer-managed encryption key spec for a Dataset. If set, this Dataset + // and all sub-resources of this Dataset will be secured by this key. + EncryptionSpec encryption_spec = 11; +} + +// Describes the location from where we import data into a Dataset, together +// with the labels that will be applied to the DataItems and the Annotations. +message ImportDataConfig { + // The source of the input. + oneof source { + // The Google Cloud Storage location for the input content. + GcsSource gcs_source = 1; + } + + // Labels that will be applied to newly imported DataItems. If an identical + // DataItem as one being imported already exists in the Dataset, then these + // labels will be appended to these of the already existing one, and if labels + // with identical key is imported before, the old label value will be + // overwritten. If two DataItems are identical in the same import data + // operation, the labels will be combined and if key collision happens in this + // case, one of the values will be picked randomly. Two DataItems are + // considered identical if their content bytes are identical (e.g. image bytes + // or pdf bytes). + // These labels will be overridden by Annotation labels specified inside index + // file referenced by [import_schema_uri][google.cloud.aiplatform.v1.ImportDataConfig.import_schema_uri], e.g. jsonl file. + map data_item_labels = 2; + + // Required. Points to a YAML file stored on Google Cloud Storage describing the import + // format. Validation will be done against the schema. The schema is defined + // as an [OpenAPI 3.0.2 Schema Object](https://tinyurl.com/y538mdwt). + string import_schema_uri = 4 [(google.api.field_behavior) = REQUIRED]; +} + +// Describes what part of the Dataset is to be exported, the destination of +// the export and how to export. +message ExportDataConfig { + // The destination of the output. + oneof destination { + // The Google Cloud Storage location where the output is to be written to. + // In the given directory a new directory will be created with name: + // `export-data--` where + // timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. All export + // output will be written into that directory. Inside that directory, + // annotations with the same schema will be grouped into sub directories + // which are named with the corresponding annotations' schema title. Inside + // these sub directories, a schema.yaml will be created to describe the + // output format. + GcsDestination gcs_destination = 1; + } + + // A filter on Annotations of the Dataset. Only Annotations on to-be-exported + // DataItems(specified by [data_items_filter][]) that match this filter will + // be exported. The filter syntax is the same as in + // [ListAnnotations][google.cloud.aiplatform.v1.DatasetService.ListAnnotations]. + string annotations_filter = 2; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/dataset_service.proto b/third_party/googleapis/google/cloud/aiplatform/v1/dataset_service.proto new file mode 100644 index 000000000..8c6ea31fe --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/dataset_service.proto @@ -0,0 +1,411 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1/annotation.proto"; +import "google/cloud/aiplatform/v1/annotation_spec.proto"; +import "google/cloud/aiplatform/v1/data_item.proto"; +import "google/cloud/aiplatform/v1/dataset.proto"; +import "google/cloud/aiplatform/v1/operation.proto"; +import "google/cloud/aiplatform/v1/training_pipeline.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/field_mask.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "DatasetServiceProto"; +option java_package = "com.google.cloud.aiplatform.v1"; + +service DatasetService { + option (google.api.default_host) = "aiplatform.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + + // Creates a Dataset. + rpc CreateDataset(CreateDatasetRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/datasets" + body: "dataset" + }; + option (google.api.method_signature) = "parent,dataset"; + option (google.longrunning.operation_info) = { + response_type: "Dataset" + metadata_type: "CreateDatasetOperationMetadata" + }; + } + + // Gets a Dataset. + rpc GetDataset(GetDatasetRequest) returns (Dataset) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/datasets/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates a Dataset. + rpc UpdateDataset(UpdateDatasetRequest) returns (Dataset) { + option (google.api.http) = { + patch: "/v1/{dataset.name=projects/*/locations/*/datasets/*}" + body: "dataset" + }; + option (google.api.method_signature) = "dataset,update_mask"; + } + + // Lists Datasets in a Location. + rpc ListDatasets(ListDatasetsRequest) returns (ListDatasetsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/datasets" + }; + option (google.api.method_signature) = "parent"; + } + + // Deletes a Dataset. + rpc DeleteDataset(DeleteDatasetRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/datasets/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteOperationMetadata" + }; + } + + // Imports data into a Dataset. + rpc ImportData(ImportDataRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/datasets/*}:import" + body: "*" + }; + option (google.api.method_signature) = "name,import_configs"; + option (google.longrunning.operation_info) = { + response_type: "ImportDataResponse" + metadata_type: "ImportDataOperationMetadata" + }; + } + + // Exports data from a Dataset. + rpc ExportData(ExportDataRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/datasets/*}:export" + body: "*" + }; + option (google.api.method_signature) = "name,export_config"; + option (google.longrunning.operation_info) = { + response_type: "ExportDataResponse" + metadata_type: "ExportDataOperationMetadata" + }; + } + + // Lists DataItems in a Dataset. + rpc ListDataItems(ListDataItemsRequest) returns (ListDataItemsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/datasets/*}/dataItems" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets an AnnotationSpec. + rpc GetAnnotationSpec(GetAnnotationSpecRequest) returns (AnnotationSpec) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists Annotations belongs to a dataitem + rpc ListAnnotations(ListAnnotationsRequest) returns (ListAnnotationsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/datasets/*/dataItems/*}/annotations" + }; + option (google.api.method_signature) = "parent"; + } +} + +// Request message for [DatasetService.CreateDataset][google.cloud.aiplatform.v1.DatasetService.CreateDataset]. +message CreateDatasetRequest { + // Required. The resource name of the Location to create the Dataset in. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The Dataset to create. + Dataset dataset = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Runtime operation information for [DatasetService.CreateDataset][google.cloud.aiplatform.v1.DatasetService.CreateDataset]. +message CreateDatasetOperationMetadata { + // The operation generic information. + GenericOperationMetadata generic_metadata = 1; +} + +// Request message for [DatasetService.GetDataset][google.cloud.aiplatform.v1.DatasetService.GetDataset]. +message GetDatasetRequest { + // Required. The name of the Dataset resource. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Dataset" + } + ]; + + // Mask specifying which fields to read. + google.protobuf.FieldMask read_mask = 2; +} + +// Request message for [DatasetService.UpdateDataset][google.cloud.aiplatform.v1.DatasetService.UpdateDataset]. +message UpdateDatasetRequest { + // Required. The Dataset which replaces the resource on the server. + Dataset dataset = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The update mask applies to the resource. + // For the `FieldMask` definition, see + // [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask). + // Updatable fields: + // + // * `display_name` + // * `description` + // * `labels` + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for [DatasetService.ListDatasets][google.cloud.aiplatform.v1.DatasetService.ListDatasets]. +message ListDatasetsRequest { + // Required. The name of the Dataset's parent resource. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // An expression for filtering the results of the request. For field names + // both snake_case and camelCase are supported. + // + // * `display_name`: supports = and != + // * `metadata_schema_uri`: supports = and != + // * `labels` supports general map functions that is: + // * `labels.key=value` - key:value equality + // * `labels.key:* or labels:key - key existence + // * A key including a space must be quoted. `labels."a key"`. + // + // Some examples: + // * `displayName="myDisplayName"` + // * `labels.myKey="myValue"` + string filter = 2; + + // The standard list page size. + int32 page_size = 3; + + // The standard list page token. + string page_token = 4; + + // Mask specifying which fields to read. + google.protobuf.FieldMask read_mask = 5; + + // A comma-separated list of fields to order by, sorted in ascending order. + // Use "desc" after a field name for descending. + // Supported fields: + // * `display_name` + // * `create_time` + // * `update_time` + string order_by = 6; +} + +// Response message for [DatasetService.ListDatasets][google.cloud.aiplatform.v1.DatasetService.ListDatasets]. +message ListDatasetsResponse { + // A list of Datasets that matches the specified filter in the request. + repeated Dataset datasets = 1; + + // The standard List next-page token. + string next_page_token = 2; +} + +// Request message for [DatasetService.DeleteDataset][google.cloud.aiplatform.v1.DatasetService.DeleteDataset]. +message DeleteDatasetRequest { + // Required. The resource name of the Dataset to delete. + // Format: + // `projects/{project}/locations/{location}/datasets/{dataset}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Dataset" + } + ]; +} + +// Request message for [DatasetService.ImportData][google.cloud.aiplatform.v1.DatasetService.ImportData]. +message ImportDataRequest { + // Required. The name of the Dataset resource. + // Format: + // `projects/{project}/locations/{location}/datasets/{dataset}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Dataset" + } + ]; + + // Required. The desired input locations. The contents of all input locations will be + // imported in one batch. + repeated ImportDataConfig import_configs = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for [DatasetService.ImportData][google.cloud.aiplatform.v1.DatasetService.ImportData]. +message ImportDataResponse { + +} + +// Runtime operation information for [DatasetService.ImportData][google.cloud.aiplatform.v1.DatasetService.ImportData]. +message ImportDataOperationMetadata { + // The common part of the operation metadata. + GenericOperationMetadata generic_metadata = 1; +} + +// Request message for [DatasetService.ExportData][google.cloud.aiplatform.v1.DatasetService.ExportData]. +message ExportDataRequest { + // Required. The name of the Dataset resource. + // Format: + // `projects/{project}/locations/{location}/datasets/{dataset}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Dataset" + } + ]; + + // Required. The desired output location. + ExportDataConfig export_config = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for [DatasetService.ExportData][google.cloud.aiplatform.v1.DatasetService.ExportData]. +message ExportDataResponse { + // All of the files that are exported in this export operation. + repeated string exported_files = 1; +} + +// Runtime operation information for [DatasetService.ExportData][google.cloud.aiplatform.v1.DatasetService.ExportData]. +message ExportDataOperationMetadata { + // The common part of the operation metadata. + GenericOperationMetadata generic_metadata = 1; + + // A Google Cloud Storage directory which path ends with '/'. The exported + // data is stored in the directory. + string gcs_output_directory = 2; +} + +// Request message for [DatasetService.ListDataItems][google.cloud.aiplatform.v1.DatasetService.ListDataItems]. +message ListDataItemsRequest { + // Required. The resource name of the Dataset to list DataItems from. + // Format: + // `projects/{project}/locations/{location}/datasets/{dataset}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Dataset" + } + ]; + + // The standard list filter. + string filter = 2; + + // The standard list page size. + int32 page_size = 3; + + // The standard list page token. + string page_token = 4; + + // Mask specifying which fields to read. + google.protobuf.FieldMask read_mask = 5; + + // A comma-separated list of fields to order by, sorted in ascending order. + // Use "desc" after a field name for descending. + string order_by = 6; +} + +// Response message for [DatasetService.ListDataItems][google.cloud.aiplatform.v1.DatasetService.ListDataItems]. +message ListDataItemsResponse { + // A list of DataItems that matches the specified filter in the request. + repeated DataItem data_items = 1; + + // The standard List next-page token. + string next_page_token = 2; +} + +// Request message for [DatasetService.GetAnnotationSpec][google.cloud.aiplatform.v1.DatasetService.GetAnnotationSpec]. +message GetAnnotationSpecRequest { + // Required. The name of the AnnotationSpec resource. + // Format: + // + // `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/AnnotationSpec" + } + ]; + + // Mask specifying which fields to read. + google.protobuf.FieldMask read_mask = 2; +} + +// Request message for [DatasetService.ListAnnotations][google.cloud.aiplatform.v1.DatasetService.ListAnnotations]. +message ListAnnotationsRequest { + // Required. The resource name of the DataItem to list Annotations from. + // Format: + // + // `projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/DataItem" + } + ]; + + // The standard list filter. + string filter = 2; + + // The standard list page size. + int32 page_size = 3; + + // The standard list page token. + string page_token = 4; + + // Mask specifying which fields to read. + google.protobuf.FieldMask read_mask = 5; + + // A comma-separated list of fields to order by, sorted in ascending order. + // Use "desc" after a field name for descending. + string order_by = 6; +} + +// Response message for [DatasetService.ListAnnotations][google.cloud.aiplatform.v1.DatasetService.ListAnnotations]. +message ListAnnotationsResponse { + // A list of Annotations that matches the specified filter in the request. + repeated Annotation annotations = 1; + + // The standard List next-page token. + string next_page_token = 2; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/deployed_model_ref.proto b/third_party/googleapis/google/cloud/aiplatform/v1/deployed_model_ref.proto new file mode 100644 index 000000000..f3e6184c8 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/deployed_model_ref.proto @@ -0,0 +1,40 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "DeployedModelNameProto"; +option java_package = "com.google.cloud.aiplatform.v1"; + +// Points to a DeployedModel. +message DeployedModelRef { + // Immutable. A resource name of an Endpoint. + string endpoint = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Endpoint" + } + ]; + + // Immutable. An ID of a DeployedModel in the above Endpoint. + string deployed_model_id = 2 [(google.api.field_behavior) = IMMUTABLE]; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/encryption_spec.proto b/third_party/googleapis/google/cloud/aiplatform/v1/encryption_spec.proto new file mode 100644 index 000000000..dd97fb48b --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/encryption_spec.proto @@ -0,0 +1,36 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/field_behavior.proto"; +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "EncryptionSpecProto"; +option java_package = "com.google.cloud.aiplatform.v1"; + +// Represents a customer-managed encryption key spec that can be applied to +// a top-level resource. +message EncryptionSpec { + // Required. The Cloud KMS resource identifier of the customer managed encryption key + // used to protect a resource. Has the form: + // `projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`. + // The key needs to be in the same region as where the compute resource is + // created. + string kms_key_name = 1 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/endpoint.proto b/third_party/googleapis/google/cloud/aiplatform/v1/endpoint.proto new file mode 100644 index 000000000..3b9afe32f --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/endpoint.proto @@ -0,0 +1,151 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1/encryption_spec.proto"; +import "google/cloud/aiplatform/v1/machine_resources.proto"; +import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "EndpointProto"; +option java_package = "com.google.cloud.aiplatform.v1"; + +// Models are deployed into it, and afterwards Endpoint is called to obtain +// predictions and explanations. +message Endpoint { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/Endpoint" + pattern: "projects/{project}/locations/{location}/endpoints/{endpoint}" + }; + + // Output only. The resource name of the Endpoint. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The display name of the Endpoint. + // The name can be up to 128 characters long and can be consist of any UTF-8 + // characters. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // The description of the Endpoint. + string description = 3; + + // Output only. The models deployed in this Endpoint. + // To add or remove DeployedModels use [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel] and + // [EndpointService.UndeployModel][google.cloud.aiplatform.v1.EndpointService.UndeployModel] respectively. + repeated DeployedModel deployed_models = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // A map from a DeployedModel's ID to the percentage of this Endpoint's + // traffic that should be forwarded to that DeployedModel. + // + // If a DeployedModel's ID is not listed in this map, then it receives no + // traffic. + // + // The traffic percentage values must add up to 100, or map must be empty if + // the Endpoint is to not accept any traffic at a moment. + map traffic_split = 5; + + // Used to perform consistent read-modify-write updates. If not set, a blind + // "overwrite" update happens. + string etag = 6; + + // The labels with user-defined metadata to organize your Endpoints. + // + // Label keys and values can be no longer than 64 characters + // (Unicode codepoints), can only contain lowercase letters, numeric + // characters, underscores and dashes. International characters are allowed. + // + // See https://goo.gl/xmQnxf for more information and examples of labels. + map labels = 7; + + // Output only. Timestamp when this Endpoint was created. + google.protobuf.Timestamp create_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this Endpoint was last updated. + google.protobuf.Timestamp update_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Customer-managed encryption key spec for an Endpoint. If set, this + // Endpoint and all sub-resources of this Endpoint will be secured by + // this key. + EncryptionSpec encryption_spec = 10; +} + +// A deployment of a Model. Endpoints contain one or more DeployedModels. +message DeployedModel { + // The prediction (for example, the machine) resources that the DeployedModel + // uses. The user is billed for the resources (at least their minimal amount) + // even if the DeployedModel receives no traffic. + // Not all Models support all resources types. See + // [Model.supported_deployment_resources_types][google.cloud.aiplatform.v1.Model.supported_deployment_resources_types]. + oneof prediction_resources { + // A description of resources that are dedicated to the DeployedModel, and + // that need a higher degree of manual configuration. + DedicatedResources dedicated_resources = 7; + + // A description of resources that to large degree are decided by AI + // Platform, and require only a modest additional configuration. + AutomaticResources automatic_resources = 8; + } + + // Output only. The ID of the DeployedModel. + string id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The name of the Model that this is the deployment of. Note that the Model + // may be in a different location than the DeployedModel's Endpoint. + string model = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Model" + } + ]; + + // The display name of the DeployedModel. If not provided upon creation, + // the Model's display_name is used. + string display_name = 3; + + // Output only. Timestamp when the DeployedModel was created. + google.protobuf.Timestamp create_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The service account that the DeployedModel's container runs as. Specify the + // email address of the service account. If this service account is not + // specified, the container runs as a service account that doesn't have access + // to the resource project. + // + // Users deploying the Model must have the `iam.serviceAccounts.actAs` + // permission on this service account. + string service_account = 11; + + // For custom-trained Models and AutoML Tabular Models, the container of the + // DeployedModel instances will send `stderr` and `stdout` streams to + // Stackdriver Logging by default. Please note that the logs incur cost, + // which are subject to [Cloud Logging + // pricing](https://cloud.google.com/stackdriver/pricing). + // + // User can disable container logging by setting this flag to true. + bool disable_container_logging = 15; + + // These logs are like standard server access logs, containing + // information like timestamp and latency for each prediction request. + // + // Note that Stackdriver logs may incur a cost, especially if your project + // receives prediction requests at a high queries per second rate (QPS). + // Estimate your costs before enabling this option. + bool enable_access_logging = 13; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/endpoint_service.proto b/third_party/googleapis/google/cloud/aiplatform/v1/endpoint_service.proto new file mode 100644 index 000000000..f055c6051 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/endpoint_service.proto @@ -0,0 +1,312 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1/endpoint.proto"; +import "google/cloud/aiplatform/v1/operation.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/field_mask.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "EndpointServiceProto"; +option java_package = "com.google.cloud.aiplatform.v1"; + +service EndpointService { + option (google.api.default_host) = "aiplatform.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + + // Creates an Endpoint. + rpc CreateEndpoint(CreateEndpointRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/endpoints" + body: "endpoint" + }; + option (google.api.method_signature) = "parent,endpoint"; + option (google.longrunning.operation_info) = { + response_type: "Endpoint" + metadata_type: "CreateEndpointOperationMetadata" + }; + } + + // Gets an Endpoint. + rpc GetEndpoint(GetEndpointRequest) returns (Endpoint) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/endpoints/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists Endpoints in a Location. + rpc ListEndpoints(ListEndpointsRequest) returns (ListEndpointsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/endpoints" + }; + option (google.api.method_signature) = "parent"; + } + + // Updates an Endpoint. + rpc UpdateEndpoint(UpdateEndpointRequest) returns (Endpoint) { + option (google.api.http) = { + patch: "/v1/{endpoint.name=projects/*/locations/*/endpoints/*}" + body: "endpoint" + }; + option (google.api.method_signature) = "endpoint,update_mask"; + } + + // Deletes an Endpoint. + rpc DeleteEndpoint(DeleteEndpointRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/endpoints/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteOperationMetadata" + }; + } + + // Deploys a Model into this Endpoint, creating a DeployedModel within it. + rpc DeployModel(DeployModelRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{endpoint=projects/*/locations/*/endpoints/*}:deployModel" + body: "*" + }; + option (google.api.method_signature) = "endpoint,deployed_model,traffic_split"; + option (google.longrunning.operation_info) = { + response_type: "DeployModelResponse" + metadata_type: "DeployModelOperationMetadata" + }; + } + + // Undeploys a Model from an Endpoint, removing a DeployedModel from it, and + // freeing all resources it's using. + rpc UndeployModel(UndeployModelRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{endpoint=projects/*/locations/*/endpoints/*}:undeployModel" + body: "*" + }; + option (google.api.method_signature) = "endpoint,deployed_model_id,traffic_split"; + option (google.longrunning.operation_info) = { + response_type: "UndeployModelResponse" + metadata_type: "UndeployModelOperationMetadata" + }; + } +} + +// Request message for [EndpointService.CreateEndpoint][google.cloud.aiplatform.v1.EndpointService.CreateEndpoint]. +message CreateEndpointRequest { + // Required. The resource name of the Location to create the Endpoint in. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The Endpoint to create. + Endpoint endpoint = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Runtime operation information for [EndpointService.CreateEndpoint][google.cloud.aiplatform.v1.EndpointService.CreateEndpoint]. +message CreateEndpointOperationMetadata { + // The operation generic information. + GenericOperationMetadata generic_metadata = 1; +} + +// Request message for [EndpointService.GetEndpoint][google.cloud.aiplatform.v1.EndpointService.GetEndpoint] +message GetEndpointRequest { + // Required. The name of the Endpoint resource. + // Format: + // `projects/{project}/locations/{location}/endpoints/{endpoint}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Endpoint" + } + ]; +} + +// Request message for [EndpointService.ListEndpoints][google.cloud.aiplatform.v1.EndpointService.ListEndpoints]. +message ListEndpointsRequest { + // Required. The resource name of the Location from which to list the Endpoints. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Optional. An expression for filtering the results of the request. For field names + // both snake_case and camelCase are supported. + // + // * `endpoint` supports = and !=. `endpoint` represents the Endpoint ID, + // i.e. the last segment of the Endpoint's [resource name][google.cloud.aiplatform.v1.Endpoint.name]. + // * `display_name` supports = and, != + // * `labels` supports general map functions that is: + // * `labels.key=value` - key:value equality + // * `labels.key:* or labels:key - key existence + // * A key including a space must be quoted. `labels."a key"`. + // + // Some examples: + // * `endpoint=1` + // * `displayName="myDisplayName"` + // * `labels.myKey="myValue"` + string filter = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The standard list page size. + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The standard list page token. + // Typically obtained via + // [ListEndpointsResponse.next_page_token][google.cloud.aiplatform.v1.ListEndpointsResponse.next_page_token] of the previous + // [EndpointService.ListEndpoints][google.cloud.aiplatform.v1.EndpointService.ListEndpoints] call. + string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Mask specifying which fields to read. + google.protobuf.FieldMask read_mask = 5 [(google.api.field_behavior) = OPTIONAL]; + + // A comma-separated list of fields to order by, sorted in ascending order. + // Use "desc" after a field name for descending. + // Supported fields: + // * `display_name` + // * `create_time` + // * `update_time` + // + // Example: `display_name, create_time desc`. + string order_by = 6; +} + +// Response message for [EndpointService.ListEndpoints][google.cloud.aiplatform.v1.EndpointService.ListEndpoints]. +message ListEndpointsResponse { + // List of Endpoints in the requested page. + repeated Endpoint endpoints = 1; + + // A token to retrieve the next page of results. + // Pass to [ListEndpointsRequest.page_token][google.cloud.aiplatform.v1.ListEndpointsRequest.page_token] to obtain that page. + string next_page_token = 2; +} + +// Request message for [EndpointService.UpdateEndpoint][google.cloud.aiplatform.v1.EndpointService.UpdateEndpoint]. +message UpdateEndpointRequest { + // Required. The Endpoint which replaces the resource on the server. + Endpoint endpoint = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The update mask applies to the resource. + // See + // [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask). + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for [EndpointService.DeleteEndpoint][google.cloud.aiplatform.v1.EndpointService.DeleteEndpoint]. +message DeleteEndpointRequest { + // Required. The name of the Endpoint resource to be deleted. + // Format: + // `projects/{project}/locations/{location}/endpoints/{endpoint}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Endpoint" + } + ]; +} + +// Request message for [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel]. +message DeployModelRequest { + // Required. The name of the Endpoint resource into which to deploy a Model. + // Format: + // `projects/{project}/locations/{location}/endpoints/{endpoint}` + string endpoint = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Endpoint" + } + ]; + + // Required. The DeployedModel to be created within the Endpoint. Note that + // [Endpoint.traffic_split][google.cloud.aiplatform.v1.Endpoint.traffic_split] must be updated for the DeployedModel to start + // receiving traffic, either as part of this call, or via + // [EndpointService.UpdateEndpoint][google.cloud.aiplatform.v1.EndpointService.UpdateEndpoint]. + DeployedModel deployed_model = 2 [(google.api.field_behavior) = REQUIRED]; + + // A map from a DeployedModel's ID to the percentage of this Endpoint's + // traffic that should be forwarded to that DeployedModel. + // + // If this field is non-empty, then the Endpoint's + // [traffic_split][google.cloud.aiplatform.v1.Endpoint.traffic_split] will be overwritten with it. + // To refer to the ID of the just being deployed Model, a "0" should be used, + // and the actual ID of the new DeployedModel will be filled in its place by + // this method. The traffic percentage values must add up to 100. + // + // If this field is empty, then the Endpoint's + // [traffic_split][google.cloud.aiplatform.v1.Endpoint.traffic_split] is not updated. + map traffic_split = 3; +} + +// Response message for [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel]. +message DeployModelResponse { + // The DeployedModel that had been deployed in the Endpoint. + DeployedModel deployed_model = 1; +} + +// Runtime operation information for [EndpointService.DeployModel][google.cloud.aiplatform.v1.EndpointService.DeployModel]. +message DeployModelOperationMetadata { + // The operation generic information. + GenericOperationMetadata generic_metadata = 1; +} + +// Request message for [EndpointService.UndeployModel][google.cloud.aiplatform.v1.EndpointService.UndeployModel]. +message UndeployModelRequest { + // Required. The name of the Endpoint resource from which to undeploy a Model. + // Format: + // `projects/{project}/locations/{location}/endpoints/{endpoint}` + string endpoint = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Endpoint" + } + ]; + + // Required. The ID of the DeployedModel to be undeployed from the Endpoint. + string deployed_model_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // If this field is provided, then the Endpoint's + // [traffic_split][google.cloud.aiplatform.v1.Endpoint.traffic_split] will be overwritten with it. If + // last DeployedModel is being undeployed from the Endpoint, the + // [Endpoint.traffic_split] will always end up empty when this call returns. + // A DeployedModel will be successfully undeployed only if it doesn't have + // any traffic assigned to it when this method executes, or if this field + // unassigns any traffic to it. + map traffic_split = 3; +} + +// Response message for [EndpointService.UndeployModel][google.cloud.aiplatform.v1.EndpointService.UndeployModel]. +message UndeployModelResponse { + +} + +// Runtime operation information for [EndpointService.UndeployModel][google.cloud.aiplatform.v1.EndpointService.UndeployModel]. +message UndeployModelOperationMetadata { + // The operation generic information. + GenericOperationMetadata generic_metadata = 1; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/env_var.proto b/third_party/googleapis/google/cloud/aiplatform/v1/env_var.proto new file mode 100644 index 000000000..8071a70de --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/env_var.proto @@ -0,0 +1,40 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/field_behavior.proto"; +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "EnvVarProto"; +option java_package = "com.google.cloud.aiplatform.v1"; + +// Represents an environment variable present in a Container or Python Module. +message EnvVar { + // Required. Name of the environment variable. Must be a valid C identifier. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Variables that reference a $(VAR_NAME) are expanded + // using the previous defined environment variables in the container and + // any service environment variables. If a variable cannot be resolved, + // the reference in the input string will be unchanged. The $(VAR_NAME) + // syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped + // references will never be expanded, regardless of whether the variable + // exists or not. + string value = 2 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/hyperparameter_tuning_job.proto b/third_party/googleapis/google/cloud/aiplatform/v1/hyperparameter_tuning_job.proto new file mode 100644 index 000000000..2f3a1011d --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/hyperparameter_tuning_job.proto @@ -0,0 +1,108 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1/custom_job.proto"; +import "google/cloud/aiplatform/v1/encryption_spec.proto"; +import "google/cloud/aiplatform/v1/job_state.proto"; +import "google/cloud/aiplatform/v1/study.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "HyperparameterTuningJobProto"; +option java_package = "com.google.cloud.aiplatform.v1"; + +// Represents a HyperparameterTuningJob. A HyperparameterTuningJob +// has a Study specification and multiple CustomJobs with identical +// CustomJob specification. +message HyperparameterTuningJob { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/HyperparameterTuningJob" + pattern: "projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}" + }; + + // Output only. Resource name of the HyperparameterTuningJob. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The display name of the HyperparameterTuningJob. + // The name can be up to 128 characters long and can be consist of any UTF-8 + // characters. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Study configuration of the HyperparameterTuningJob. + StudySpec study_spec = 4 [(google.api.field_behavior) = REQUIRED]; + + // Required. The desired total number of Trials. + int32 max_trial_count = 5 [(google.api.field_behavior) = REQUIRED]; + + // Required. The desired number of Trials to run in parallel. + int32 parallel_trial_count = 6 [(google.api.field_behavior) = REQUIRED]; + + // The number of failed Trials that need to be seen before failing + // the HyperparameterTuningJob. + // + // If set to 0, AI Platform decides how many Trials must fail + // before the whole job fails. + int32 max_failed_trial_count = 7; + + // Required. The spec of a trial job. The same spec applies to the CustomJobs created + // in all the trials. + CustomJobSpec trial_job_spec = 8 [(google.api.field_behavior) = REQUIRED]; + + // Output only. Trials of the HyperparameterTuningJob. + repeated Trial trials = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The detailed state of the job. + JobState state = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the HyperparameterTuningJob was created. + google.protobuf.Timestamp create_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the HyperparameterTuningJob for the first time entered the + // `JOB_STATE_RUNNING` state. + google.protobuf.Timestamp start_time = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the HyperparameterTuningJob entered any of the following states: + // `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, `JOB_STATE_CANCELLED`. + google.protobuf.Timestamp end_time = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the HyperparameterTuningJob was most recently updated. + google.protobuf.Timestamp update_time = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Only populated when job's state is JOB_STATE_FAILED or + // JOB_STATE_CANCELLED. + google.rpc.Status error = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The labels with user-defined metadata to organize HyperparameterTuningJobs. + // + // Label keys and values can be no longer than 64 characters + // (Unicode codepoints), can only contain lowercase letters, numeric + // characters, underscores and dashes. International characters are allowed. + // + // See https://goo.gl/xmQnxf for more information and examples of labels. + map labels = 16; + + // Customer-managed encryption key options for a HyperparameterTuningJob. + // If this is set, then all resources created by the HyperparameterTuningJob + // will be encrypted with the provided encryption key. + EncryptionSpec encryption_spec = 17; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/io.proto b/third_party/googleapis/google/cloud/aiplatform/v1/io.proto new file mode 100644 index 000000000..c32c66e79 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/io.proto @@ -0,0 +1,81 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/field_behavior.proto"; +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "IoProto"; +option java_package = "com.google.cloud.aiplatform.v1"; + +// The Google Cloud Storage location for the input content. +message GcsSource { + // Required. Google Cloud Storage URI(-s) to the input file(s). May contain + // wildcards. For more information on wildcards, see + // https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames. + repeated string uris = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// The Google Cloud Storage location where the output is to be written to. +message GcsDestination { + // Required. Google Cloud Storage URI to output directory. If the uri doesn't end with + // '/', a '/' will be automatically appended. The directory is created if it + // doesn't exist. + string output_uri_prefix = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// The BigQuery location for the input content. +message BigQuerySource { + // Required. BigQuery URI to a table, up to 2000 characters long. + // Accepted forms: + // + // * BigQuery path. For example: `bq://projectId.bqDatasetId.bqTableId`. + string input_uri = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// The BigQuery location for the output content. +message BigQueryDestination { + // Required. BigQuery URI to a project or table, up to 2000 characters long. + // + // When only the project is specified, the Dataset and Table are created. + // When the full table reference is specified, the Dataset must exist and table must + // not exist. + // + // Accepted forms: + // + // * BigQuery path. For example: + // `bq://projectId` or `bq://projectId.bqDatasetId.bqTableId`. + string output_uri = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// The Container Registry location for the container image. +message ContainerRegistryDestination { + // Required. Container Registry URI of a container image. + // Only Google Container Registry and Artifact Registry are supported now. + // Accepted forms: + // + // * Google Container Registry path. For example: + // `gcr.io/projectId/imageName:tag`. + // + // * Artifact Registry path. For example: + // `us-central1-docker.pkg.dev/projectId/repoName/imageName:tag`. + // + // If a tag is not specified, "latest" will be used as the default tag. + string output_uri = 1 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/job_service.proto b/third_party/googleapis/google/cloud/aiplatform/v1/job_service.proto new file mode 100644 index 000000000..b9bff3d3e --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/job_service.proto @@ -0,0 +1,701 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1/batch_prediction_job.proto"; +import "google/cloud/aiplatform/v1/custom_job.proto"; +import "google/cloud/aiplatform/v1/data_labeling_job.proto"; +import "google/cloud/aiplatform/v1/hyperparameter_tuning_job.proto"; +import "google/cloud/aiplatform/v1/operation.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "JobServiceProto"; +option java_package = "com.google.cloud.aiplatform.v1"; + +// A service for creating and managing AI Platform's jobs. +service JobService { + option (google.api.default_host) = "aiplatform.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + + // Creates a CustomJob. A created CustomJob right away + // will be attempted to be run. + rpc CreateCustomJob(CreateCustomJobRequest) returns (CustomJob) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/customJobs" + body: "custom_job" + }; + option (google.api.method_signature) = "parent,custom_job"; + } + + // Gets a CustomJob. + rpc GetCustomJob(GetCustomJobRequest) returns (CustomJob) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/customJobs/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists CustomJobs in a Location. + rpc ListCustomJobs(ListCustomJobsRequest) returns (ListCustomJobsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/customJobs" + }; + option (google.api.method_signature) = "parent"; + } + + // Deletes a CustomJob. + rpc DeleteCustomJob(DeleteCustomJobRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/customJobs/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteOperationMetadata" + }; + } + + // Cancels a CustomJob. + // Starts asynchronous cancellation on the CustomJob. The server + // makes a best effort to cancel the job, but success is not + // guaranteed. Clients can use [JobService.GetCustomJob][google.cloud.aiplatform.v1.JobService.GetCustomJob] or + // other methods to check whether the cancellation succeeded or whether the + // job completed despite cancellation. On successful cancellation, + // the CustomJob is not deleted; instead it becomes a job with + // a [CustomJob.error][google.cloud.aiplatform.v1.CustomJob.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, + // corresponding to `Code.CANCELLED`, and [CustomJob.state][google.cloud.aiplatform.v1.CustomJob.state] is set to + // `CANCELLED`. + rpc CancelCustomJob(CancelCustomJobRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/customJobs/*}:cancel" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a DataLabelingJob. + rpc CreateDataLabelingJob(CreateDataLabelingJobRequest) returns (DataLabelingJob) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/dataLabelingJobs" + body: "data_labeling_job" + }; + option (google.api.method_signature) = "parent,data_labeling_job"; + } + + // Gets a DataLabelingJob. + rpc GetDataLabelingJob(GetDataLabelingJobRequest) returns (DataLabelingJob) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/dataLabelingJobs/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists DataLabelingJobs in a Location. + rpc ListDataLabelingJobs(ListDataLabelingJobsRequest) returns (ListDataLabelingJobsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/dataLabelingJobs" + }; + option (google.api.method_signature) = "parent"; + } + + // Deletes a DataLabelingJob. + rpc DeleteDataLabelingJob(DeleteDataLabelingJobRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/dataLabelingJobs/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteOperationMetadata" + }; + } + + // Cancels a DataLabelingJob. Success of cancellation is not guaranteed. + rpc CancelDataLabelingJob(CancelDataLabelingJobRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/dataLabelingJobs/*}:cancel" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a HyperparameterTuningJob + rpc CreateHyperparameterTuningJob(CreateHyperparameterTuningJobRequest) returns (HyperparameterTuningJob) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/hyperparameterTuningJobs" + body: "hyperparameter_tuning_job" + }; + option (google.api.method_signature) = "parent,hyperparameter_tuning_job"; + } + + // Gets a HyperparameterTuningJob + rpc GetHyperparameterTuningJob(GetHyperparameterTuningJobRequest) returns (HyperparameterTuningJob) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists HyperparameterTuningJobs in a Location. + rpc ListHyperparameterTuningJobs(ListHyperparameterTuningJobsRequest) returns (ListHyperparameterTuningJobsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/hyperparameterTuningJobs" + }; + option (google.api.method_signature) = "parent"; + } + + // Deletes a HyperparameterTuningJob. + rpc DeleteHyperparameterTuningJob(DeleteHyperparameterTuningJobRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteOperationMetadata" + }; + } + + // Cancels a HyperparameterTuningJob. + // Starts asynchronous cancellation on the HyperparameterTuningJob. The server + // makes a best effort to cancel the job, but success is not + // guaranteed. Clients can use [JobService.GetHyperparameterTuningJob][google.cloud.aiplatform.v1.JobService.GetHyperparameterTuningJob] or + // other methods to check whether the cancellation succeeded or whether the + // job completed despite cancellation. On successful cancellation, + // the HyperparameterTuningJob is not deleted; instead it becomes a job with + // a [HyperparameterTuningJob.error][google.cloud.aiplatform.v1.HyperparameterTuningJob.error] value with a [google.rpc.Status.code][google.rpc.Status.code] + // of 1, corresponding to `Code.CANCELLED`, and + // [HyperparameterTuningJob.state][google.cloud.aiplatform.v1.HyperparameterTuningJob.state] is set to `CANCELLED`. + rpc CancelHyperparameterTuningJob(CancelHyperparameterTuningJobRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}:cancel" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a BatchPredictionJob. A BatchPredictionJob once created will + // right away be attempted to start. + rpc CreateBatchPredictionJob(CreateBatchPredictionJobRequest) returns (BatchPredictionJob) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/batchPredictionJobs" + body: "batch_prediction_job" + }; + option (google.api.method_signature) = "parent,batch_prediction_job"; + } + + // Gets a BatchPredictionJob + rpc GetBatchPredictionJob(GetBatchPredictionJobRequest) returns (BatchPredictionJob) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/batchPredictionJobs/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists BatchPredictionJobs in a Location. + rpc ListBatchPredictionJobs(ListBatchPredictionJobsRequest) returns (ListBatchPredictionJobsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/batchPredictionJobs" + }; + option (google.api.method_signature) = "parent"; + } + + // Deletes a BatchPredictionJob. Can only be called on jobs that already + // finished. + rpc DeleteBatchPredictionJob(DeleteBatchPredictionJobRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/batchPredictionJobs/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteOperationMetadata" + }; + } + + // Cancels a BatchPredictionJob. + // + // Starts asynchronous cancellation on the BatchPredictionJob. The server + // makes the best effort to cancel the job, but success is not + // guaranteed. Clients can use [JobService.GetBatchPredictionJob][google.cloud.aiplatform.v1.JobService.GetBatchPredictionJob] or + // other methods to check whether the cancellation succeeded or whether the + // job completed despite cancellation. On a successful cancellation, + // the BatchPredictionJob is not deleted;instead its + // [BatchPredictionJob.state][google.cloud.aiplatform.v1.BatchPredictionJob.state] is set to `CANCELLED`. Any files already + // outputted by the job are not deleted. + rpc CancelBatchPredictionJob(CancelBatchPredictionJobRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/batchPredictionJobs/*}:cancel" + body: "*" + }; + option (google.api.method_signature) = "name"; + } +} + +// Request message for [JobService.CreateCustomJob][google.cloud.aiplatform.v1.JobService.CreateCustomJob]. +message CreateCustomJobRequest { + // Required. The resource name of the Location to create the CustomJob in. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The CustomJob to create. + CustomJob custom_job = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for [JobService.GetCustomJob][google.cloud.aiplatform.v1.JobService.GetCustomJob]. +message GetCustomJobRequest { + // Required. The name of the CustomJob resource. + // Format: + // `projects/{project}/locations/{location}/customJobs/{custom_job}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/CustomJob" + } + ]; +} + +// Request message for [JobService.ListCustomJobs][google.cloud.aiplatform.v1.JobService.ListCustomJobs]. +message ListCustomJobsRequest { + // Required. The resource name of the Location to list the CustomJobs from. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // The standard list filter. + // + // Supported fields: + // + // * `display_name` supports = and !=. + // + // * `state` supports = and !=. + // + // Some examples of using the filter are: + // + // * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"` + // + // * `state="JOB_STATE_RUNNING" OR display_name="my_job"` + // + // * `NOT display_name="my_job"` + // + // * `state="JOB_STATE_FAILED"` + string filter = 2; + + // The standard list page size. + int32 page_size = 3; + + // The standard list page token. + // Typically obtained via + // [ListCustomJobsResponse.next_page_token][google.cloud.aiplatform.v1.ListCustomJobsResponse.next_page_token] of the previous + // [JobService.ListCustomJobs][google.cloud.aiplatform.v1.JobService.ListCustomJobs] call. + string page_token = 4; + + // Mask specifying which fields to read. + google.protobuf.FieldMask read_mask = 5; +} + +// Response message for [JobService.ListCustomJobs][google.cloud.aiplatform.v1.JobService.ListCustomJobs] +message ListCustomJobsResponse { + // List of CustomJobs in the requested page. + repeated CustomJob custom_jobs = 1; + + // A token to retrieve the next page of results. + // Pass to [ListCustomJobsRequest.page_token][google.cloud.aiplatform.v1.ListCustomJobsRequest.page_token] to obtain that page. + string next_page_token = 2; +} + +// Request message for [JobService.DeleteCustomJob][google.cloud.aiplatform.v1.JobService.DeleteCustomJob]. +message DeleteCustomJobRequest { + // Required. The name of the CustomJob resource to be deleted. + // Format: + // `projects/{project}/locations/{location}/customJobs/{custom_job}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/CustomJob" + } + ]; +} + +// Request message for [JobService.CancelCustomJob][google.cloud.aiplatform.v1.JobService.CancelCustomJob]. +message CancelCustomJobRequest { + // Required. The name of the CustomJob to cancel. + // Format: + // `projects/{project}/locations/{location}/customJobs/{custom_job}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/CustomJob" + } + ]; +} + +// Request message for [DataLabelingJobService.CreateDataLabelingJob][]. +message CreateDataLabelingJobRequest { + // Required. The parent of the DataLabelingJob. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The DataLabelingJob to create. + DataLabelingJob data_labeling_job = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for [DataLabelingJobService.GetDataLabelingJob][]. +message GetDataLabelingJobRequest { + // Required. The name of the DataLabelingJob. + // Format: + // + // `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/DataLabelingJob" + } + ]; +} + +// Request message for [DataLabelingJobService.ListDataLabelingJobs][]. +message ListDataLabelingJobsRequest { + // Required. The parent of the DataLabelingJob. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // The standard list filter. + // + // Supported fields: + // + // * `display_name` supports = and !=. + // + // * `state` supports = and !=. + // + // Some examples of using the filter are: + // + // * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"` + // + // * `state="JOB_STATE_RUNNING" OR display_name="my_job"` + // + // * `NOT display_name="my_job"` + // + // * `state="JOB_STATE_FAILED"` + string filter = 2; + + // The standard list page size. + int32 page_size = 3; + + // The standard list page token. + string page_token = 4; + + // Mask specifying which fields to read. FieldMask represents a set of + // symbolic field paths. For example, the mask can be `paths: "name"`. The + // "name" here is a field in DataLabelingJob. + // If this field is not set, all fields of the DataLabelingJob are returned. + google.protobuf.FieldMask read_mask = 5; + + // A comma-separated list of fields to order by, sorted in ascending order by + // default. + // Use `desc` after a field name for descending. + string order_by = 6; +} + +// Response message for [JobService.ListDataLabelingJobs][google.cloud.aiplatform.v1.JobService.ListDataLabelingJobs]. +message ListDataLabelingJobsResponse { + // A list of DataLabelingJobs that matches the specified filter in the + // request. + repeated DataLabelingJob data_labeling_jobs = 1; + + // The standard List next-page token. + string next_page_token = 2; +} + +// Request message for [JobService.DeleteDataLabelingJob][google.cloud.aiplatform.v1.JobService.DeleteDataLabelingJob]. +message DeleteDataLabelingJobRequest { + // Required. The name of the DataLabelingJob to be deleted. + // Format: + // + // `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/DataLabelingJob" + } + ]; +} + +// Request message for [DataLabelingJobService.CancelDataLabelingJob][]. +message CancelDataLabelingJobRequest { + // Required. The name of the DataLabelingJob. + // Format: + // + // `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/DataLabelingJob" + } + ]; +} + +// Request message for [JobService.CreateHyperparameterTuningJob][google.cloud.aiplatform.v1.JobService.CreateHyperparameterTuningJob]. +message CreateHyperparameterTuningJobRequest { + // Required. The resource name of the Location to create the HyperparameterTuningJob in. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The HyperparameterTuningJob to create. + HyperparameterTuningJob hyperparameter_tuning_job = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for [JobService.GetHyperparameterTuningJob][google.cloud.aiplatform.v1.JobService.GetHyperparameterTuningJob]. +message GetHyperparameterTuningJobRequest { + // Required. The name of the HyperparameterTuningJob resource. + // Format: + // + // `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/HyperparameterTuningJob" + } + ]; +} + +// Request message for [JobService.ListHyperparameterTuningJobs][google.cloud.aiplatform.v1.JobService.ListHyperparameterTuningJobs]. +message ListHyperparameterTuningJobsRequest { + // Required. The resource name of the Location to list the HyperparameterTuningJobs + // from. Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // The standard list filter. + // + // Supported fields: + // + // * `display_name` supports = and !=. + // + // * `state` supports = and !=. + // + // Some examples of using the filter are: + // + // * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"` + // + // * `state="JOB_STATE_RUNNING" OR display_name="my_job"` + // + // * `NOT display_name="my_job"` + // + // * `state="JOB_STATE_FAILED"` + string filter = 2; + + // The standard list page size. + int32 page_size = 3; + + // The standard list page token. + // Typically obtained via + // [ListHyperparameterTuningJobsResponse.next_page_token][google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse.next_page_token] of the previous + // [JobService.ListHyperparameterTuningJobs][google.cloud.aiplatform.v1.JobService.ListHyperparameterTuningJobs] call. + string page_token = 4; + + // Mask specifying which fields to read. + google.protobuf.FieldMask read_mask = 5; +} + +// Response message for [JobService.ListHyperparameterTuningJobs][google.cloud.aiplatform.v1.JobService.ListHyperparameterTuningJobs] +message ListHyperparameterTuningJobsResponse { + // List of HyperparameterTuningJobs in the requested page. + // [HyperparameterTuningJob.trials][google.cloud.aiplatform.v1.HyperparameterTuningJob.trials] of the jobs will be not be returned. + repeated HyperparameterTuningJob hyperparameter_tuning_jobs = 1; + + // A token to retrieve the next page of results. + // Pass to [ListHyperparameterTuningJobsRequest.page_token][google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest.page_token] to obtain that + // page. + string next_page_token = 2; +} + +// Request message for [JobService.DeleteHyperparameterTuningJob][google.cloud.aiplatform.v1.JobService.DeleteHyperparameterTuningJob]. +message DeleteHyperparameterTuningJobRequest { + // Required. The name of the HyperparameterTuningJob resource to be deleted. + // Format: + // + // `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/HyperparameterTuningJob" + } + ]; +} + +// Request message for [JobService.CancelHyperparameterTuningJob][google.cloud.aiplatform.v1.JobService.CancelHyperparameterTuningJob]. +message CancelHyperparameterTuningJobRequest { + // Required. The name of the HyperparameterTuningJob to cancel. + // Format: + // + // `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/HyperparameterTuningJob" + } + ]; +} + +// Request message for [JobService.CreateBatchPredictionJob][google.cloud.aiplatform.v1.JobService.CreateBatchPredictionJob]. +message CreateBatchPredictionJobRequest { + // Required. The resource name of the Location to create the BatchPredictionJob in. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The BatchPredictionJob to create. + BatchPredictionJob batch_prediction_job = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for [JobService.GetBatchPredictionJob][google.cloud.aiplatform.v1.JobService.GetBatchPredictionJob]. +message GetBatchPredictionJobRequest { + // Required. The name of the BatchPredictionJob resource. + // Format: + // + // `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/BatchPredictionJob" + } + ]; +} + +// Request message for [JobService.ListBatchPredictionJobs][google.cloud.aiplatform.v1.JobService.ListBatchPredictionJobs]. +message ListBatchPredictionJobsRequest { + // Required. The resource name of the Location to list the BatchPredictionJobs + // from. Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // The standard list filter. + // + // Supported fields: + // + // * `display_name` supports = and !=. + // + // * `state` supports = and !=. + // + // Some examples of using the filter are: + // + // * `state="JOB_STATE_SUCCEEDED" AND display_name="my_job"` + // + // * `state="JOB_STATE_RUNNING" OR display_name="my_job"` + // + // * `NOT display_name="my_job"` + // + // * `state="JOB_STATE_FAILED"` + string filter = 2; + + // The standard list page size. + int32 page_size = 3; + + // The standard list page token. + // Typically obtained via + // [ListBatchPredictionJobsResponse.next_page_token][google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse.next_page_token] of the previous + // [JobService.ListBatchPredictionJobs][google.cloud.aiplatform.v1.JobService.ListBatchPredictionJobs] call. + string page_token = 4; + + // Mask specifying which fields to read. + google.protobuf.FieldMask read_mask = 5; +} + +// Response message for [JobService.ListBatchPredictionJobs][google.cloud.aiplatform.v1.JobService.ListBatchPredictionJobs] +message ListBatchPredictionJobsResponse { + // List of BatchPredictionJobs in the requested page. + repeated BatchPredictionJob batch_prediction_jobs = 1; + + // A token to retrieve the next page of results. + // Pass to [ListBatchPredictionJobsRequest.page_token][google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest.page_token] to obtain that + // page. + string next_page_token = 2; +} + +// Request message for [JobService.DeleteBatchPredictionJob][google.cloud.aiplatform.v1.JobService.DeleteBatchPredictionJob]. +message DeleteBatchPredictionJobRequest { + // Required. The name of the BatchPredictionJob resource to be deleted. + // Format: + // + // `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/BatchPredictionJob" + } + ]; +} + +// Request message for [JobService.CancelBatchPredictionJob][google.cloud.aiplatform.v1.JobService.CancelBatchPredictionJob]. +message CancelBatchPredictionJobRequest { + // Required. The name of the BatchPredictionJob to cancel. + // Format: + // + // `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/BatchPredictionJob" + } + ]; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/job_state.proto b/third_party/googleapis/google/cloud/aiplatform/v1/job_state.proto new file mode 100644 index 000000000..e0a600a8b --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/job_state.proto @@ -0,0 +1,55 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "JobStateProto"; +option java_package = "com.google.cloud.aiplatform.v1"; + +// Describes the state of a job. +enum JobState { + // The job state is unspecified. + JOB_STATE_UNSPECIFIED = 0; + + // The job has been just created or resumed and processing has not yet begun. + JOB_STATE_QUEUED = 1; + + // The service is preparing to run the job. + JOB_STATE_PENDING = 2; + + // The job is in progress. + JOB_STATE_RUNNING = 3; + + // The job completed successfully. + JOB_STATE_SUCCEEDED = 4; + + // The job failed. + JOB_STATE_FAILED = 5; + + // The job is being cancelled. From this state the job may only go to + // either `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED` or `JOB_STATE_CANCELLED`. + JOB_STATE_CANCELLING = 6; + + // The job has been cancelled. + JOB_STATE_CANCELLED = 7; + + // The job has been stopped, and can be resumed. + JOB_STATE_PAUSED = 8; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/machine_resources.proto b/third_party/googleapis/google/cloud/aiplatform/v1/machine_resources.proto new file mode 100644 index 000000000..f10cd4e1d --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/machine_resources.proto @@ -0,0 +1,139 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/field_behavior.proto"; +import "google/cloud/aiplatform/v1/accelerator_type.proto"; +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "MachineResourcesProto"; +option java_package = "com.google.cloud.aiplatform.v1"; + +// Specification of a single machine. +message MachineSpec { + // Immutable. The type of the machine. For the machine types supported for prediction, + // see https://tinyurl.com/aip-docs/predictions/machine-types. + // For machine types supported for creating a custom training job, see + // https://tinyurl.com/aip-docs/training/configure-compute. + // + // For [DeployedModel][google.cloud.aiplatform.v1.DeployedModel] this field is optional, and the default + // value is `n1-standard-2`. For [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob] or as part of + // [WorkerPoolSpec][google.cloud.aiplatform.v1.WorkerPoolSpec] this field is required. + string machine_type = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. The type of accelerator(s) that may be attached to the machine as per + // [accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count]. + AcceleratorType accelerator_type = 2 [(google.api.field_behavior) = IMMUTABLE]; + + // The number of accelerators to attach to the machine. + int32 accelerator_count = 3; +} + +// A description of resources that are dedicated to a DeployedModel, and +// that need a higher degree of manual configuration. +message DedicatedResources { + // Required. Immutable. The specification of a single machine used by the prediction. + MachineSpec machine_spec = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Required. Immutable. The minimum number of machine replicas this DeployedModel will be always + // deployed on. If traffic against it increases, it may dynamically be + // deployed onto more replicas, and as traffic decreases, some of these extra + // replicas may be freed. + // Note: if [machine_spec.accelerator_count][google.cloud.aiplatform.v1.MachineSpec.accelerator_count] is + // above 0, currently the model will be always deployed precisely on + // [min_replica_count][google.cloud.aiplatform.v1.DedicatedResources.min_replica_count]. + int32 min_replica_count = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Immutable. The maximum number of replicas this DeployedModel may be deployed on when + // the traffic against it increases. If the requested value is too large, + // the deployment will error, but if deployment succeeds then the ability + // to scale the model to that many replicas is guaranteed (barring service + // outages). If traffic against the DeployedModel increases beyond what its + // replicas at maximum may handle, a portion of the traffic will be dropped. + // If this value is not provided, will use [min_replica_count][google.cloud.aiplatform.v1.DedicatedResources.min_replica_count] as the + // default value. + int32 max_replica_count = 3 [(google.api.field_behavior) = IMMUTABLE]; +} + +// A description of resources that to large degree are decided by AI Platform, +// and require only a modest additional configuration. +// Each Model supporting these resources documents its specific guidelines. +message AutomaticResources { + // Immutable. The minimum number of replicas this DeployedModel will be always deployed + // on. If traffic against it increases, it may dynamically be deployed onto + // more replicas up to [max_replica_count][google.cloud.aiplatform.v1.AutomaticResources.max_replica_count], and as traffic decreases, some + // of these extra replicas may be freed. + // If the requested value is too large, the deployment will error. + int32 min_replica_count = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. The maximum number of replicas this DeployedModel may be deployed on when + // the traffic against it increases. If the requested value is too large, + // the deployment will error, but if deployment succeeds then the ability + // to scale the model to that many replicas is guaranteed (barring service + // outages). If traffic against the DeployedModel increases beyond what its + // replicas at maximum may handle, a portion of the traffic will be dropped. + // If this value is not provided, a no upper bound for scaling under heavy + // traffic will be assume, though AI Platform may be unable to scale beyond + // certain replica number. + int32 max_replica_count = 2 [(google.api.field_behavior) = IMMUTABLE]; +} + +// A description of resources that are used for performing batch operations, are +// dedicated to a Model, and need manual configuration. +message BatchDedicatedResources { + // Required. Immutable. The specification of a single machine. + MachineSpec machine_spec = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Immutable. The number of machine replicas used at the start of the batch operation. + // If not set, AI Platform decides starting number, not greater than + // [max_replica_count][google.cloud.aiplatform.v1.BatchDedicatedResources.max_replica_count] + int32 starting_replica_count = 2 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. The maximum number of machine replicas the batch operation may be scaled + // to. The default value is 10. + int32 max_replica_count = 3 [(google.api.field_behavior) = IMMUTABLE]; +} + +// Statistics information about resource consumption. +message ResourcesConsumed { + // Output only. The number of replica hours used. Note that many replicas may run in + // parallel, and additionally any given work may be queued for some time. + // Therefore this value is not strictly related to wall time. + double replica_hours = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Represents the spec of disk options. +message DiskSpec { + // Type of the boot disk (default is "pd-ssd"). + // Valid values: "pd-ssd" (Persistent Disk Solid State Drive) or + // "pd-standard" (Persistent Disk Hard Disk Drive). + string boot_disk_type = 1; + + // Size in GB of the boot disk (default is 100GB). + int32 boot_disk_size_gb = 2; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/manual_batch_tuning_parameters.proto b/third_party/googleapis/google/cloud/aiplatform/v1/manual_batch_tuning_parameters.proto new file mode 100644 index 000000000..da258a7bc --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/manual_batch_tuning_parameters.proto @@ -0,0 +1,37 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/field_behavior.proto"; +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "ManualBatchTuningParametersProto"; +option java_package = "com.google.cloud.aiplatform.v1"; + +// Manual batch tuning parameters. +message ManualBatchTuningParameters { + // Immutable. The number of the records (e.g. instances) of the operation given in + // each batch to a machine replica. Machine type, and size of a single + // record should be considered when setting this parameter, higher value + // speeds up the batch operation's execution, but too high value will result + // in a whole batch not fitting in a machine's memory, and the whole + // operation will fail. + // The default value is 4. + int32 batch_size = 1 [(google.api.field_behavior) = IMMUTABLE]; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/migratable_resource.proto b/third_party/googleapis/google/cloud/aiplatform/v1/migratable_resource.proto new file mode 100644 index 000000000..9e126901b --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/migratable_resource.proto @@ -0,0 +1,148 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "MigratableResourceProto"; +option java_package = "com.google.cloud.aiplatform.v1"; +option (google.api.resource_definition) = { + type: "ml.googleapis.com/Version" + pattern: "projects/{project}/models/{model}/versions/{version}" +}; +option (google.api.resource_definition) = { + type: "automl.googleapis.com/Model" + pattern: "projects/{project}/locations/{location}/models/{model}" +}; +option (google.api.resource_definition) = { + type: "automl.googleapis.com/Dataset" + pattern: "projects/{project}/locations/{location}/datasets/{dataset}" +}; +option (google.api.resource_definition) = { + type: "datalabeling.googleapis.com/Dataset" + pattern: "projects/{project}/datasets/{dataset}" +}; +option (google.api.resource_definition) = { + type: "datalabeling.googleapis.com/AnnotatedDataset" + pattern: "projects/{project}/datasets/{dataset}/annotatedDatasets/{annotated_dataset}" +}; + +// Represents one resource that exists in automl.googleapis.com, +// datalabeling.googleapis.com or ml.googleapis.com. +message MigratableResource { + // Represents one model Version in ml.googleapis.com. + message MlEngineModelVersion { + // The ml.googleapis.com endpoint that this model Version currently lives + // in. + // Example values: + // + // * ml.googleapis.com + // * us-centrall-ml.googleapis.com + // * europe-west4-ml.googleapis.com + // * asia-east1-ml.googleapis.com + string endpoint = 1; + + // Full resource name of ml engine model Version. + // Format: `projects/{project}/models/{model}/versions/{version}`. + string version = 2 [(google.api.resource_reference) = { + type: "ml.googleapis.com/Version" + }]; + } + + // Represents one Model in automl.googleapis.com. + message AutomlModel { + // Full resource name of automl Model. + // Format: + // `projects/{project}/locations/{location}/models/{model}`. + string model = 1 [(google.api.resource_reference) = { + type: "automl.googleapis.com/Model" + }]; + + // The Model's display name in automl.googleapis.com. + string model_display_name = 3; + } + + // Represents one Dataset in automl.googleapis.com. + message AutomlDataset { + // Full resource name of automl Dataset. + // Format: + // `projects/{project}/locations/{location}/datasets/{dataset}`. + string dataset = 1 [(google.api.resource_reference) = { + type: "automl.googleapis.com/Dataset" + }]; + + // The Dataset's display name in automl.googleapis.com. + string dataset_display_name = 4; + } + + // Represents one Dataset in datalabeling.googleapis.com. + message DataLabelingDataset { + // Represents one AnnotatedDataset in datalabeling.googleapis.com. + message DataLabelingAnnotatedDataset { + // Full resource name of data labeling AnnotatedDataset. + // Format: + // + // `projects/{project}/datasets/{dataset}/annotatedDatasets/{annotated_dataset}`. + string annotated_dataset = 1 [(google.api.resource_reference) = { + type: "datalabeling.googleapis.com/AnnotatedDataset" + }]; + + // The AnnotatedDataset's display name in datalabeling.googleapis.com. + string annotated_dataset_display_name = 3; + } + + // Full resource name of data labeling Dataset. + // Format: + // `projects/{project}/datasets/{dataset}`. + string dataset = 1 [(google.api.resource_reference) = { + type: "datalabeling.googleapis.com/Dataset" + }]; + + // The Dataset's display name in datalabeling.googleapis.com. + string dataset_display_name = 4; + + // The migratable AnnotatedDataset in datalabeling.googleapis.com belongs to + // the data labeling Dataset. + repeated DataLabelingAnnotatedDataset data_labeling_annotated_datasets = 3; + } + + oneof resource { + // Output only. Represents one Version in ml.googleapis.com. + MlEngineModelVersion ml_engine_model_version = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Represents one Model in automl.googleapis.com. + AutomlModel automl_model = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Represents one Dataset in automl.googleapis.com. + AutomlDataset automl_dataset = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Represents one Dataset in datalabeling.googleapis.com. + DataLabelingDataset data_labeling_dataset = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Output only. Timestamp when the last migration attempt on this MigratableResource started. + // Will not be set if there's no migration attempt on this MigratableResource. + google.protobuf.Timestamp last_migrate_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this MigratableResource was last updated. + google.protobuf.Timestamp last_update_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/migration_service.proto b/third_party/googleapis/google/cloud/aiplatform/v1/migration_service.proto new file mode 100644 index 000000000..353bcd619 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/migration_service.proto @@ -0,0 +1,311 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/cloud/aiplatform/v1/dataset.proto"; +import "google/cloud/aiplatform/v1/model.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1/migratable_resource.proto"; +import "google/cloud/aiplatform/v1/operation.proto"; +import "google/longrunning/operations.proto"; +import "google/rpc/status.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "MigrationServiceProto"; +option java_package = "com.google.cloud.aiplatform.v1"; + +// A service that migrates resources from automl.googleapis.com, +// datalabeling.googleapis.com and ml.googleapis.com to AI Platform. +service MigrationService { + option (google.api.default_host) = "aiplatform.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + + // Searches all of the resources in automl.googleapis.com, + // datalabeling.googleapis.com and ml.googleapis.com that can be migrated to + // AI Platform's given location. + rpc SearchMigratableResources(SearchMigratableResourcesRequest) returns (SearchMigratableResourcesResponse) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/migratableResources:search" + body: "*" + }; + option (google.api.method_signature) = "parent"; + } + + // Batch migrates resources from ml.googleapis.com, automl.googleapis.com, + // and datalabeling.googleapis.com to AI Platform (Unified). + rpc BatchMigrateResources(BatchMigrateResourcesRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/migratableResources:batchMigrate" + body: "*" + }; + option (google.api.method_signature) = "parent,migrate_resource_requests"; + option (google.longrunning.operation_info) = { + response_type: "BatchMigrateResourcesResponse" + metadata_type: "BatchMigrateResourcesOperationMetadata" + }; + } +} + +// Request message for [MigrationService.SearchMigratableResources][google.cloud.aiplatform.v1.MigrationService.SearchMigratableResources]. +message SearchMigratableResourcesRequest { + // Required. The location that the migratable resources should be searched from. + // It's the AI Platform location that the resources can be migrated to, not + // the resources' original location. + // Format: + // `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // The standard page size. + // The default and maximum value is 100. + int32 page_size = 2; + + // The standard page token. + string page_token = 3; + + // Supported filters are: + // * Resource type: For a specific type of MigratableResource. + // * `ml_engine_model_version:*` + // * `automl_model:*`, + // * `automl_dataset:*` + // * `data_labeling_dataset:*`. + // * Migrated or not: Filter migrated resource or not by last_migrate_time. + // * `last_migrate_time:*` will filter migrated resources. + // * `NOT last_migrate_time:*` will filter not yet migrated resources. + string filter = 4; +} + +// Response message for [MigrationService.SearchMigratableResources][google.cloud.aiplatform.v1.MigrationService.SearchMigratableResources]. +message SearchMigratableResourcesResponse { + // All migratable resources that can be migrated to the + // location specified in the request. + repeated MigratableResource migratable_resources = 1; + + // The standard next-page token. + // The migratable_resources may not fill page_size in + // SearchMigratableResourcesRequest even when there are subsequent pages. + string next_page_token = 2; +} + +// Request message for [MigrationService.BatchMigrateResources][google.cloud.aiplatform.v1.MigrationService.BatchMigrateResources]. +message BatchMigrateResourcesRequest { + // Required. The location of the migrated resource will live in. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The request messages specifying the resources to migrate. + // They must be in the same location as the destination. + // Up to 50 resources can be migrated in one batch. + repeated MigrateResourceRequest migrate_resource_requests = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Config of migrating one resource from automl.googleapis.com, +// datalabeling.googleapis.com and ml.googleapis.com to AI Platform. +message MigrateResourceRequest { + // Config for migrating version in ml.googleapis.com to AI Platform's Model. + message MigrateMlEngineModelVersionConfig { + // Required. The ml.googleapis.com endpoint that this model version should be migrated + // from. + // Example values: + // + // * ml.googleapis.com + // + // * us-centrall-ml.googleapis.com + // + // * europe-west4-ml.googleapis.com + // + // * asia-east1-ml.googleapis.com + string endpoint = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Full resource name of ml engine model version. + // Format: `projects/{project}/models/{model}/versions/{version}`. + string model_version = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "ml.googleapis.com/Version" + } + ]; + + // Required. Display name of the model in AI Platform. + // System will pick a display name if unspecified. + string model_display_name = 3 [(google.api.field_behavior) = REQUIRED]; + } + + // Config for migrating Model in automl.googleapis.com to AI Platform's Model. + message MigrateAutomlModelConfig { + // Required. Full resource name of automl Model. + // Format: + // `projects/{project}/locations/{location}/models/{model}`. + string model = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "automl.googleapis.com/Model" + } + ]; + + // Optional. Display name of the model in AI Platform. + // System will pick a display name if unspecified. + string model_display_name = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Config for migrating Dataset in automl.googleapis.com to AI Platform's + // Dataset. + message MigrateAutomlDatasetConfig { + // Required. Full resource name of automl Dataset. + // Format: + // `projects/{project}/locations/{location}/datasets/{dataset}`. + string dataset = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "automl.googleapis.com/Dataset" + } + ]; + + // Required. Display name of the Dataset in AI Platform. + // System will pick a display name if unspecified. + string dataset_display_name = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // Config for migrating Dataset in datalabeling.googleapis.com to AI + // Platform's Dataset. + message MigrateDataLabelingDatasetConfig { + // Config for migrating AnnotatedDataset in datalabeling.googleapis.com to + // AI Platform's SavedQuery. + message MigrateDataLabelingAnnotatedDatasetConfig { + // Required. Full resource name of data labeling AnnotatedDataset. + // Format: + // + // `projects/{project}/datasets/{dataset}/annotatedDatasets/{annotated_dataset}`. + string annotated_dataset = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datalabeling.googleapis.com/AnnotatedDataset" + } + ]; + } + + // Required. Full resource name of data labeling Dataset. + // Format: + // `projects/{project}/datasets/{dataset}`. + string dataset = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datalabeling.googleapis.com/Dataset" + } + ]; + + // Optional. Display name of the Dataset in AI Platform. + // System will pick a display name if unspecified. + string dataset_display_name = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configs for migrating AnnotatedDataset in datalabeling.googleapis.com to + // AI Platform's SavedQuery. The specified AnnotatedDatasets have to belong + // to the datalabeling Dataset. + repeated MigrateDataLabelingAnnotatedDatasetConfig migrate_data_labeling_annotated_dataset_configs = 3 [(google.api.field_behavior) = OPTIONAL]; + } + + oneof request { + // Config for migrating Version in ml.googleapis.com to AI Platform's Model. + MigrateMlEngineModelVersionConfig migrate_ml_engine_model_version_config = 1; + + // Config for migrating Model in automl.googleapis.com to AI Platform's + // Model. + MigrateAutomlModelConfig migrate_automl_model_config = 2; + + // Config for migrating Dataset in automl.googleapis.com to AI Platform's + // Dataset. + MigrateAutomlDatasetConfig migrate_automl_dataset_config = 3; + + // Config for migrating Dataset in datalabeling.googleapis.com to + // AI Platform's Dataset. + MigrateDataLabelingDatasetConfig migrate_data_labeling_dataset_config = 4; + } +} + +// Response message for [MigrationService.BatchMigrateResources][google.cloud.aiplatform.v1.MigrationService.BatchMigrateResources]. +message BatchMigrateResourcesResponse { + // Successfully migrated resources. + repeated MigrateResourceResponse migrate_resource_responses = 1; +} + +// Describes a successfully migrated resource. +message MigrateResourceResponse { + // After migration, the resource name in AI Platform. + oneof migrated_resource { + // Migrated Dataset's resource name. + string dataset = 1 [(google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Dataset" + }]; + + // Migrated Model's resource name. + string model = 2 [(google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Model" + }]; + } + + // Before migration, the identifier in ml.googleapis.com, + // automl.googleapis.com or datalabeling.googleapis.com. + MigratableResource migratable_resource = 3; +} + +// Runtime operation information for [MigrationService.BatchMigrateResources][google.cloud.aiplatform.v1.MigrationService.BatchMigrateResources]. +message BatchMigrateResourcesOperationMetadata { + // Represents a partial result in batch migration operation for one + // [MigrateResourceRequest][google.cloud.aiplatform.v1.MigrateResourceRequest]. + message PartialResult { + // If the resource's migration is ongoing, none of the result will be set. + // If the resource's migration is finished, either error or one of the + // migrated resource name will be filled. + oneof result { + // The error result of the migration request in case of failure. + google.rpc.Status error = 2; + + // Migrated model resource name. + string model = 3 [(google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Model" + }]; + + // Migrated dataset resource name. + string dataset = 4 [(google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Dataset" + }]; + } + + // It's the same as the value in + // [MigrateResourceRequest.migrate_resource_requests][]. + MigrateResourceRequest request = 1; + } + + // The common part of the operation metadata. + GenericOperationMetadata generic_metadata = 1; + + // Partial results that reflect the latest migration operation progress. + repeated PartialResult partial_results = 2; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/model.proto b/third_party/googleapis/google/cloud/aiplatform/v1/model.proto new file mode 100644 index 000000000..cf003c645 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/model.proto @@ -0,0 +1,524 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1/dataset.proto"; +import "google/cloud/aiplatform/v1/deployed_model_ref.proto"; +import "google/cloud/aiplatform/v1/encryption_spec.proto"; +import "google/cloud/aiplatform/v1/env_var.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "ModelProto"; +option java_package = "com.google.cloud.aiplatform.v1"; + +// A trained machine learning Model. +message Model { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/Model" + pattern: "projects/{project}/locations/{location}/models/{model}" + }; + + // Represents export format supported by the Model. + // All formats export to Google Cloud Storage. + message ExportFormat { + // The Model content that can be exported. + enum ExportableContent { + // Should not be used. + EXPORTABLE_CONTENT_UNSPECIFIED = 0; + + // Model artifact and any of its supported files. Will be exported to the + // location specified by the `artifactDestination` field of the + // [ExportModelRequest.output_config][google.cloud.aiplatform.v1.ExportModelRequest.output_config] object. + ARTIFACT = 1; + + // The container image that is to be used when deploying this Model. Will + // be exported to the location specified by the `imageDestination` field + // of the [ExportModelRequest.output_config][google.cloud.aiplatform.v1.ExportModelRequest.output_config] object. + IMAGE = 2; + } + + // Output only. The ID of the export format. + // The possible format IDs are: + // + // * `tflite` + // Used for Android mobile devices. + // + // * `edgetpu-tflite` + // Used for [Edge TPU](https://cloud.google.com/edge-tpu/) devices. + // + // * `tf-saved-model` + // A tensorflow model in SavedModel format. + // + // * `tf-js` + // A [TensorFlow.js](https://www.tensorflow.org/js) model that can be used + // in the browser and in Node.js using JavaScript. + // + // * `core-ml` + // Used for iOS mobile devices. + // + // * `custom-trained` + // A Model that was uploaded or trained by custom code. + string id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The content of this Model that may be exported. + repeated ExportableContent exportable_contents = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Identifies a type of Model's prediction resources. + enum DeploymentResourcesType { + // Should not be used. + DEPLOYMENT_RESOURCES_TYPE_UNSPECIFIED = 0; + + // Resources that are dedicated to the [DeployedModel][google.cloud.aiplatform.v1.DeployedModel], and that need a + // higher degree of manual configuration. + DEDICATED_RESOURCES = 1; + + // Resources that to large degree are decided by AI Platform, and require + // only a modest additional configuration. + AUTOMATIC_RESOURCES = 2; + } + + // The resource name of the Model. + string name = 1; + + // Required. The display name of the Model. + // The name can be up to 128 characters long and can be consist of any UTF-8 + // characters. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // The description of the Model. + string description = 3; + + // The schemata that describe formats of the Model's predictions and + // explanations as given and returned via + // [PredictionService.Predict][google.cloud.aiplatform.v1.PredictionService.Predict] and [PredictionService.Explain][]. + PredictSchemata predict_schemata = 4; + + // Immutable. Points to a YAML file stored on Google Cloud Storage describing additional + // information about the Model, that is specific to it. Unset if the Model + // does not have any additional information. + // The schema is defined as an OpenAPI 3.0.2 + // [Schema Object](https://tinyurl.com/y538mdwt#schema-object). + // AutoML Models always have this field populated by AI Platform, if no + // additional metadata is needed, this field is set to an empty string. + // Note: The URI given on output will be immutable and probably different, + // including the URI scheme, than the one given on input. The output URI will + // point to a location where the user only has a read access. + string metadata_schema_uri = 5 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. An additional information about the Model; the schema of the metadata can + // be found in [metadata_schema][google.cloud.aiplatform.v1.Model.metadata_schema_uri]. + // Unset if the Model does not have any additional information. + google.protobuf.Value metadata = 6 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. The formats in which this Model may be exported. If empty, this Model is + // not available for export. + repeated ExportFormat supported_export_formats = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The resource name of the TrainingPipeline that uploaded this Model, if any. + string training_pipeline = 7 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/TrainingPipeline" + } + ]; + + // Input only. The specification of the container that is to be used when deploying + // this Model. The specification is ingested upon + // [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel], and all binaries it contains are copied + // and stored internally by AI Platform. + // Not present for AutoML Models. + ModelContainerSpec container_spec = 9 [(google.api.field_behavior) = INPUT_ONLY]; + + // Immutable. The path to the directory containing the Model artifact and any of its + // supporting files. + // Not present for AutoML Models. + string artifact_uri = 26 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. When this Model is deployed, its prediction resources are described by the + // `prediction_resources` field of the [Endpoint.deployed_models][google.cloud.aiplatform.v1.Endpoint.deployed_models] object. + // Because not all Models support all resource configuration types, the + // configuration types this Model supports are listed here. If no + // configuration types are listed, the Model cannot be deployed to an + // [Endpoint][google.cloud.aiplatform.v1.Endpoint] and does not support + // online predictions ([PredictionService.Predict][google.cloud.aiplatform.v1.PredictionService.Predict] or + // [PredictionService.Explain][]). Such a Model can serve predictions by + // using a [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob], if it has at least one entry each in + // [supported_input_storage_formats][google.cloud.aiplatform.v1.Model.supported_input_storage_formats] and + // [supported_output_storage_formats][google.cloud.aiplatform.v1.Model.supported_output_storage_formats]. + repeated DeploymentResourcesType supported_deployment_resources_types = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The formats this Model supports in + // [BatchPredictionJob.input_config][google.cloud.aiplatform.v1.BatchPredictionJob.input_config]. If + // [PredictSchemata.instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri] exists, the instances + // should be given as per that schema. + // + // The possible formats are: + // + // * `jsonl` + // The JSON Lines format, where each instance is a single line. Uses + // [GcsSource][google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig.gcs_source]. + // + // * `csv` + // The CSV format, where each instance is a single comma-separated line. + // The first line in the file is the header, containing comma-separated field + // names. Uses [GcsSource][google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig.gcs_source]. + // + // * `tf-record` + // The TFRecord format, where each instance is a single record in tfrecord + // syntax. Uses [GcsSource][google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig.gcs_source]. + // + // * `tf-record-gzip` + // Similar to `tf-record`, but the file is gzipped. Uses + // [GcsSource][google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig.gcs_source]. + // + // * `bigquery` + // Each instance is a single row in BigQuery. Uses + // [BigQuerySource][google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig.bigquery_source]. + // + // * `file-list` + // Each line of the file is the location of an instance to process, uses + // `gcs_source` field of the + // [InputConfig][google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig] object. + // + // + // If this Model doesn't support any of these formats it means it cannot be + // used with a [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob]. However, if it has + // [supported_deployment_resources_types][google.cloud.aiplatform.v1.Model.supported_deployment_resources_types], it could serve online + // predictions by using [PredictionService.Predict][google.cloud.aiplatform.v1.PredictionService.Predict] or + // [PredictionService.Explain][]. + repeated string supported_input_storage_formats = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The formats this Model supports in + // [BatchPredictionJob.output_config][google.cloud.aiplatform.v1.BatchPredictionJob.output_config]. If both + // [PredictSchemata.instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri] and + // [PredictSchemata.prediction_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.prediction_schema_uri] exist, the predictions + // are returned together with their instances. In other words, the + // prediction has the original instance data first, followed + // by the actual prediction content (as per the schema). + // + // The possible formats are: + // + // * `jsonl` + // The JSON Lines format, where each prediction is a single line. Uses + // [GcsDestination][google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig.gcs_destination]. + // + // * `csv` + // The CSV format, where each prediction is a single comma-separated line. + // The first line in the file is the header, containing comma-separated field + // names. Uses + // [GcsDestination][google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig.gcs_destination]. + // + // * `bigquery` + // Each prediction is a single row in a BigQuery table, uses + // [BigQueryDestination][google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig.bigquery_destination] + // . + // + // + // If this Model doesn't support any of these formats it means it cannot be + // used with a [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob]. However, if it has + // [supported_deployment_resources_types][google.cloud.aiplatform.v1.Model.supported_deployment_resources_types], it could serve online + // predictions by using [PredictionService.Predict][google.cloud.aiplatform.v1.PredictionService.Predict] or + // [PredictionService.Explain][]. + repeated string supported_output_storage_formats = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this Model was uploaded into AI Platform. + google.protobuf.Timestamp create_time = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this Model was most recently updated. + google.protobuf.Timestamp update_time = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The pointers to DeployedModels created from this Model. Note that + // Model could have been deployed to Endpoints in different Locations. + repeated DeployedModelRef deployed_models = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Used to perform consistent read-modify-write updates. If not set, a blind + // "overwrite" update happens. + string etag = 16; + + // The labels with user-defined metadata to organize your Models. + // + // Label keys and values can be no longer than 64 characters + // (Unicode codepoints), can only contain lowercase letters, numeric + // characters, underscores and dashes. International characters are allowed. + // + // See https://goo.gl/xmQnxf for more information and examples of labels. + map labels = 17; + + // Customer-managed encryption key spec for a Model. If set, this + // Model and all sub-resources of this Model will be secured by this key. + EncryptionSpec encryption_spec = 24; +} + +// Contains the schemata used in Model's predictions and explanations via +// [PredictionService.Predict][google.cloud.aiplatform.v1.PredictionService.Predict], [PredictionService.Explain][] and +// [BatchPredictionJob][google.cloud.aiplatform.v1.BatchPredictionJob]. +message PredictSchemata { + // Immutable. Points to a YAML file stored on Google Cloud Storage describing the format + // of a single instance, which are used in [PredictRequest.instances][google.cloud.aiplatform.v1.PredictRequest.instances], + // [ExplainRequest.instances][] and + // [BatchPredictionJob.input_config][google.cloud.aiplatform.v1.BatchPredictionJob.input_config]. + // The schema is defined as an OpenAPI 3.0.2 + // [Schema Object](https://tinyurl.com/y538mdwt#schema-object). + // AutoML Models always have this field populated by AI Platform. + // Note: The URI given on output will be immutable and probably different, + // including the URI scheme, than the one given on input. The output URI will + // point to a location where the user only has a read access. + string instance_schema_uri = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Points to a YAML file stored on Google Cloud Storage describing the + // parameters of prediction and explanation via + // [PredictRequest.parameters][google.cloud.aiplatform.v1.PredictRequest.parameters], [ExplainRequest.parameters][] and + // [BatchPredictionJob.model_parameters][google.cloud.aiplatform.v1.BatchPredictionJob.model_parameters]. + // The schema is defined as an OpenAPI 3.0.2 + // [Schema Object](https://tinyurl.com/y538mdwt#schema-object). + // AutoML Models always have this field populated by AI Platform, if no + // parameters are supported, then it is set to an empty string. + // Note: The URI given on output will be immutable and probably different, + // including the URI scheme, than the one given on input. The output URI will + // point to a location where the user only has a read access. + string parameters_schema_uri = 2 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Points to a YAML file stored on Google Cloud Storage describing the format + // of a single prediction produced by this Model, which are returned via + // [PredictResponse.predictions][google.cloud.aiplatform.v1.PredictResponse.predictions], [ExplainResponse.explanations][], and + // [BatchPredictionJob.output_config][google.cloud.aiplatform.v1.BatchPredictionJob.output_config]. + // The schema is defined as an OpenAPI 3.0.2 + // [Schema Object](https://tinyurl.com/y538mdwt#schema-object). + // AutoML Models always have this field populated by AI Platform. + // Note: The URI given on output will be immutable and probably different, + // including the URI scheme, than the one given on input. The output URI will + // point to a location where the user only has a read access. + string prediction_schema_uri = 3 [(google.api.field_behavior) = IMMUTABLE]; +} + +// Specification of a container for serving predictions. This message is a +// subset of the Kubernetes Container v1 core +// [specification](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). +message ModelContainerSpec { + // Required. Immutable. URI of the Docker image to be used as the custom container for serving + // predictions. This URI must identify an image in Artifact Registry or + // Container Registry. Learn more about the container publishing + // requirements, including permissions requirements for the AI Platform + // Service Agent, + // [here](https://tinyurl.com/cust-cont-reqs#publishing). + // + // The container image is ingested upon [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel], stored + // internally, and this original path is afterwards not used. + // + // To learn about the requirements for the Docker image itself, see + // [Custom container requirements](https://tinyurl.com/cust-cont-reqs). + string image_uri = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Immutable. Specifies the command that runs when the container starts. This overrides + // the container's + // [ENTRYPOINT](https://docs.docker.com/engine/reference/builder/#entrypoint). + // Specify this field as an array of executable and arguments, similar to a + // Docker `ENTRYPOINT`'s "exec" form, not its "shell" form. + // + // If you do not specify this field, then the container's `ENTRYPOINT` runs, + // in conjunction with the [args][google.cloud.aiplatform.v1.ModelContainerSpec.args] field or the + // container's [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd), + // if either exists. If this field is not specified and the container does not + // have an `ENTRYPOINT`, then refer to the Docker documentation about how + // `CMD` and `ENTRYPOINT` + // [interact](https://tinyurl.com/h3kdcgs). + // + // If you specify this field, then you can also specify the `args` field to + // provide additional arguments for this command. However, if you specify this + // field, then the container's `CMD` is ignored. See the + // [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + // `command` and `args` fields interact with a container's `ENTRYPOINT` and + // `CMD`. + // + // In this field, you can reference environment variables + // [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + // and environment variables set in the [env][google.cloud.aiplatform.v1.ModelContainerSpec.env] field. + // You cannot reference environment variables set in the Docker image. In + // order for environment variables to be expanded, reference them by using the + // following syntax: + // $(VARIABLE_NAME) + // Note that this differs from Bash variable expansion, which does not use + // parentheses. If a variable cannot be resolved, the reference in the input + // string is used unchanged. To avoid variable expansion, you can escape this + // syntax with `$$`; for example: + // $$(VARIABLE_NAME) + // This field corresponds to the `command` field of the Kubernetes Containers + // [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + repeated string command = 2 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Specifies arguments for the command that runs when the container starts. + // This overrides the container's + // [`CMD`](https://docs.docker.com/engine/reference/builder/#cmd). Specify + // this field as an array of executable and arguments, similar to a Docker + // `CMD`'s "default parameters" form. + // + // If you don't specify this field but do specify the + // [command][google.cloud.aiplatform.v1.ModelContainerSpec.command] field, then the command from the + // `command` field runs without any additional arguments. See the + // [Kubernetes documentation](https://tinyurl.com/y8bvllf4) about how the + // `command` and `args` fields interact with a container's `ENTRYPOINT` and + // `CMD`. + // + // If you don't specify this field and don't specify the `command` field, + // then the container's + // [`ENTRYPOINT`](https://docs.docker.com/engine/reference/builder/#cmd) and + // `CMD` determine what runs based on their default behavior. See the Docker + // documentation about how `CMD` and `ENTRYPOINT` + // [interact](https://tinyurl.com/h3kdcgs). + // + // In this field, you can reference environment variables + // [set by AI Platform](https://tinyurl.com/cust-cont-reqs#aip-variables) + // and environment variables set in the [env][google.cloud.aiplatform.v1.ModelContainerSpec.env] field. + // You cannot reference environment variables set in the Docker image. In + // order for environment variables to be expanded, reference them by using the + // following syntax: + // $(VARIABLE_NAME) + // Note that this differs from Bash variable expansion, which does not use + // parentheses. If a variable cannot be resolved, the reference in the input + // string is used unchanged. To avoid variable expansion, you can escape this + // syntax with `$$`; for example: + // $$(VARIABLE_NAME) + // This field corresponds to the `args` field of the Kubernetes Containers + // [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + repeated string args = 3 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. List of environment variables to set in the container. After the container + // starts running, code running in the container can read these environment + // variables. + // + // Additionally, the [command][google.cloud.aiplatform.v1.ModelContainerSpec.command] and + // [args][google.cloud.aiplatform.v1.ModelContainerSpec.args] fields can reference these variables. Later + // entries in this list can also reference earlier entries. For example, the + // following example sets the variable `VAR_2` to have the value `foo bar`: + // + // ```json + // [ + // { + // "name": "VAR_1", + // "value": "foo" + // }, + // { + // "name": "VAR_2", + // "value": "$(VAR_1) bar" + // } + // ] + // ``` + // + // If you switch the order of the variables in the example, then the expansion + // does not occur. + // + // This field corresponds to the `env` field of the Kubernetes Containers + // [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + repeated EnvVar env = 4 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. List of ports to expose from the container. AI Platform sends any + // prediction requests that it receives to the first port on this list. AI + // Platform also sends + // [liveness and health checks](https://tinyurl.com/cust-cont-reqs#health) + // to this port. + // + // If you do not specify this field, it defaults to following value: + // + // ```json + // [ + // { + // "containerPort": 8080 + // } + // ] + // ``` + // + // AI Platform does not use ports other than the first one listed. This field + // corresponds to the `ports` field of the Kubernetes Containers + // [v1 core API](https://tinyurl.com/k8s-io-api/v1.18/#container-v1-core). + repeated Port ports = 5 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. HTTP path on the container to send prediction requests to. AI Platform + // forwards requests sent using + // [projects.locations.endpoints.predict][google.cloud.aiplatform.v1.PredictionService.Predict] to this + // path on the container's IP address and port. AI Platform then returns the + // container's response in the API response. + // + // For example, if you set this field to `/foo`, then when AI Platform + // receives a prediction request, it forwards the request body in a POST + // request to the `/foo` path on the port of your container specified by the + // first value of this `ModelContainerSpec`'s + // [ports][google.cloud.aiplatform.v1.ModelContainerSpec.ports] field. + // + // If you don't specify this field, it defaults to the following value when + // you [deploy this Model to an Endpoint][google.cloud.aiplatform.v1.EndpointService.DeployModel]: + // /v1/endpoints/ENDPOINT/deployedModels/DEPLOYED_MODEL:predict + // The placeholders in this value are replaced as follows: + // + // * ENDPOINT: The last segment (following `endpoints/`)of the + // Endpoint.name][] field of the Endpoint where this Model has been + // deployed. (AI Platform makes this value available to your container code + // as the + // [`AIP_ENDPOINT_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables) + // environment variable.) + // + // * DEPLOYED_MODEL: [DeployedModel.id][google.cloud.aiplatform.v1.DeployedModel.id] of the `DeployedModel`. + // (AI Platform makes this value available to your container code + // as the [`AIP_DEPLOYED_MODEL_ID` environment + // variable](https://tinyurl.com/cust-cont-reqs#aip-variables).) + string predict_route = 6 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. HTTP path on the container to send health checks to. AI Platform + // intermittently sends GET requests to this path on the container's IP + // address and port to check that the container is healthy. Read more about + // [health + // checks](https://tinyurl.com/cust-cont-reqs#checks). + // + // For example, if you set this field to `/bar`, then AI Platform + // intermittently sends a GET request to the `/bar` path on the port of your + // container specified by the first value of this `ModelContainerSpec`'s + // [ports][google.cloud.aiplatform.v1.ModelContainerSpec.ports] field. + // + // If you don't specify this field, it defaults to the following value when + // you [deploy this Model to an Endpoint][google.cloud.aiplatform.v1.EndpointService.DeployModel]: + // /v1/endpoints/ENDPOINT/deployedModels/DEPLOYED_MODEL:predict + // The placeholders in this value are replaced as follows: + // + // * ENDPOINT: The last segment (following `endpoints/`)of the + // Endpoint.name][] field of the Endpoint where this Model has been + // deployed. (AI Platform makes this value available to your container code + // as the + // [`AIP_ENDPOINT_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables) + // environment variable.) + // + // * DEPLOYED_MODEL: [DeployedModel.id][google.cloud.aiplatform.v1.DeployedModel.id] of the `DeployedModel`. + // (AI Platform makes this value available to your container code as the + // [`AIP_DEPLOYED_MODEL_ID`](https://tinyurl.com/cust-cont-reqs#aip-variables) + // environment variable.) + string health_route = 7 [(google.api.field_behavior) = IMMUTABLE]; +} + +// Represents a network port in a container. +message Port { + // The number of the port to expose on the pod's IP address. + // Must be a valid port number, between 1 and 65535 inclusive. + int32 container_port = 3; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/model_evaluation.proto b/third_party/googleapis/google/cloud/aiplatform/v1/model_evaluation.proto new file mode 100644 index 000000000..6596a4fc2 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/model_evaluation.proto @@ -0,0 +1,59 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "ModelEvaluationProto"; +option java_package = "com.google.cloud.aiplatform.v1"; + +// A collection of metrics calculated by comparing Model's predictions on all of +// the test data against annotations from the test data. +message ModelEvaluation { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/ModelEvaluation" + pattern: "projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}" + }; + + // Output only. The resource name of the ModelEvaluation. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Points to a YAML file stored on Google Cloud Storage describing the + // [metrics][google.cloud.aiplatform.v1.ModelEvaluation.metrics] of this ModelEvaluation. The schema is + // defined as an OpenAPI 3.0.2 + // [Schema Object](https://tinyurl.com/y538mdwt#schema-object). + string metrics_schema_uri = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Evaluation metrics of the Model. The schema of the metrics is stored in + // [metrics_schema_uri][google.cloud.aiplatform.v1.ModelEvaluation.metrics_schema_uri] + google.protobuf.Value metrics = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this ModelEvaluation was created. + google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. All possible [dimensions][ModelEvaluationSlice.slice.dimension] of + // ModelEvaluationSlices. The dimensions can be used as the filter of the + // [ModelService.ListModelEvaluationSlices][google.cloud.aiplatform.v1.ModelService.ListModelEvaluationSlices] request, in the form of + // `slice.dimension = `. + repeated string slice_dimensions = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/model_evaluation_slice.proto b/third_party/googleapis/google/cloud/aiplatform/v1/model_evaluation_slice.proto new file mode 100644 index 000000000..78656ed7a --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/model_evaluation_slice.proto @@ -0,0 +1,69 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "ModelEvaluationSliceProto"; +option java_package = "com.google.cloud.aiplatform.v1"; + +// A collection of metrics calculated by comparing Model's predictions on a +// slice of the test data against ground truth annotations. +message ModelEvaluationSlice { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/ModelEvaluationSlice" + pattern: "projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}" + }; + + // Definition of a slice. + message Slice { + // Output only. The dimension of the slice. + // Well-known dimensions are: + // * `annotationSpec`: This slice is on the test data that has either + // ground truth or prediction with [AnnotationSpec.display_name][google.cloud.aiplatform.v1.AnnotationSpec.display_name] + // equals to [value][google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.value]. + string dimension = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The value of the dimension in this slice. + string value = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Output only. The resource name of the ModelEvaluationSlice. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The slice of the test data that is used to evaluate the Model. + Slice slice = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Points to a YAML file stored on Google Cloud Storage describing the + // [metrics][google.cloud.aiplatform.v1.ModelEvaluationSlice.metrics] of this ModelEvaluationSlice. The + // schema is defined as an OpenAPI 3.0.2 + // [Schema Object](https://tinyurl.com/y538mdwt#schema-object). + string metrics_schema_uri = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Sliced evaluation metrics of the Model. The schema of the metrics is stored + // in [metrics_schema_uri][google.cloud.aiplatform.v1.ModelEvaluationSlice.metrics_schema_uri] + google.protobuf.Value metrics = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this ModelEvaluationSlice was created. + google.protobuf.Timestamp create_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/model_service.proto b/third_party/googleapis/google/cloud/aiplatform/v1/model_service.proto new file mode 100644 index 000000000..55c3bf99c --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/model_service.proto @@ -0,0 +1,439 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1/io.proto"; +import "google/cloud/aiplatform/v1/model.proto"; +import "google/cloud/aiplatform/v1/model_evaluation.proto"; +import "google/cloud/aiplatform/v1/model_evaluation_slice.proto"; +import "google/cloud/aiplatform/v1/operation.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/field_mask.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "ModelServiceProto"; +option java_package = "com.google.cloud.aiplatform.v1"; + +// A service for managing AI Platform's machine learning Models. +service ModelService { + option (google.api.default_host) = "aiplatform.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + + // Uploads a Model artifact into AI Platform. + rpc UploadModel(UploadModelRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/models:upload" + body: "*" + }; + option (google.api.method_signature) = "parent,model"; + option (google.longrunning.operation_info) = { + response_type: "UploadModelResponse" + metadata_type: "UploadModelOperationMetadata" + }; + } + + // Gets a Model. + rpc GetModel(GetModelRequest) returns (Model) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/models/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists Models in a Location. + rpc ListModels(ListModelsRequest) returns (ListModelsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/models" + }; + option (google.api.method_signature) = "parent"; + } + + // Updates a Model. + rpc UpdateModel(UpdateModelRequest) returns (Model) { + option (google.api.http) = { + patch: "/v1/{model.name=projects/*/locations/*/models/*}" + body: "model" + }; + option (google.api.method_signature) = "model,update_mask"; + } + + // Deletes a Model. + // Note: Model can only be deleted if there are no DeployedModels created + // from it. + rpc DeleteModel(DeleteModelRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/models/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteOperationMetadata" + }; + } + + // Exports a trained, exportable, Model to a location specified by the + // user. A Model is considered to be exportable if it has at least one + // [supported export format][google.cloud.aiplatform.v1.Model.supported_export_formats]. + rpc ExportModel(ExportModelRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/models/*}:export" + body: "*" + }; + option (google.api.method_signature) = "name,output_config"; + option (google.longrunning.operation_info) = { + response_type: "ExportModelResponse" + metadata_type: "ExportModelOperationMetadata" + }; + } + + // Gets a ModelEvaluation. + rpc GetModelEvaluation(GetModelEvaluationRequest) returns (ModelEvaluation) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/models/*/evaluations/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists ModelEvaluations in a Model. + rpc ListModelEvaluations(ListModelEvaluationsRequest) returns (ListModelEvaluationsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/models/*}/evaluations" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets a ModelEvaluationSlice. + rpc GetModelEvaluationSlice(GetModelEvaluationSliceRequest) returns (ModelEvaluationSlice) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/models/*/evaluations/*/slices/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists ModelEvaluationSlices in a ModelEvaluation. + rpc ListModelEvaluationSlices(ListModelEvaluationSlicesRequest) returns (ListModelEvaluationSlicesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/models/*/evaluations/*}/slices" + }; + option (google.api.method_signature) = "parent"; + } +} + +// Request message for [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel]. +message UploadModelRequest { + // Required. The resource name of the Location into which to upload the Model. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The Model to create. + Model model = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Details of [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel] operation. +message UploadModelOperationMetadata { + // The common part of the operation metadata. + GenericOperationMetadata generic_metadata = 1; +} + +// Response message of [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel] operation. +message UploadModelResponse { + // The name of the uploaded Model resource. + // Format: `projects/{project}/locations/{location}/models/{model}` + string model = 1 [(google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Model" + }]; +} + +// Request message for [ModelService.GetModel][google.cloud.aiplatform.v1.ModelService.GetModel]. +message GetModelRequest { + // Required. The name of the Model resource. + // Format: `projects/{project}/locations/{location}/models/{model}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Model" + } + ]; +} + +// Request message for [ModelService.ListModels][google.cloud.aiplatform.v1.ModelService.ListModels]. +message ListModelsRequest { + // Required. The resource name of the Location to list the Models from. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // An expression for filtering the results of the request. For field names + // both snake_case and camelCase are supported. + // + // * `model` supports = and !=. `model` represents the Model ID, + // i.e. the last segment of the Model's [resource name][google.cloud.aiplatform.v1.Model.name]. + // * `display_name` supports = and != + // * `labels` supports general map functions that is: + // * `labels.key=value` - key:value equality + // * `labels.key:* or labels:key - key existence + // * A key including a space must be quoted. `labels."a key"`. + // + // Some examples: + // * `model=1234` + // * `displayName="myDisplayName"` + // * `labels.myKey="myValue"` + string filter = 2; + + // The standard list page size. + int32 page_size = 3; + + // The standard list page token. + // Typically obtained via + // [ListModelsResponse.next_page_token][google.cloud.aiplatform.v1.ListModelsResponse.next_page_token] of the previous + // [ModelService.ListModels][google.cloud.aiplatform.v1.ModelService.ListModels] call. + string page_token = 4; + + // Mask specifying which fields to read. + google.protobuf.FieldMask read_mask = 5; + + // A comma-separated list of fields to order by, sorted in ascending order. + // Use "desc" after a field name for descending. + // Supported fields: + // * `display_name` + // * `create_time` + // * `update_time` + // + // Example: `display_name, create_time desc`. + string order_by = 6; +} + +// Response message for [ModelService.ListModels][google.cloud.aiplatform.v1.ModelService.ListModels] +message ListModelsResponse { + // List of Models in the requested page. + repeated Model models = 1; + + // A token to retrieve next page of results. + // Pass to [ListModelsRequest.page_token][google.cloud.aiplatform.v1.ListModelsRequest.page_token] to obtain that page. + string next_page_token = 2; +} + +// Request message for [ModelService.UpdateModel][google.cloud.aiplatform.v1.ModelService.UpdateModel]. +message UpdateModelRequest { + // Required. The Model which replaces the resource on the server. + Model model = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The update mask applies to the resource. + // For the `FieldMask` definition, see + // [FieldMask](https://tinyurl.com/protobufs/google.protobuf#fieldmask). + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for [ModelService.DeleteModel][google.cloud.aiplatform.v1.ModelService.DeleteModel]. +message DeleteModelRequest { + // Required. The name of the Model resource to be deleted. + // Format: `projects/{project}/locations/{location}/models/{model}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Model" + } + ]; +} + +// Request message for [ModelService.ExportModel][google.cloud.aiplatform.v1.ModelService.ExportModel]. +message ExportModelRequest { + // Output configuration for the Model export. + message OutputConfig { + // The ID of the format in which the Model must be exported. Each Model + // lists the [export formats it supports][google.cloud.aiplatform.v1.Model.supported_export_formats]. + // If no value is provided here, then the first from the list of the Model's + // supported formats is used by default. + string export_format_id = 1; + + // The Cloud Storage location where the Model artifact is to be + // written to. Under the directory given as the destination a new one with + // name "`model-export--`", + // where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format, + // will be created. Inside, the Model and any of its supporting files + // will be written. + // This field should only be set when the `exportableContent` field of the + // [Model.supported_export_formats] object contains `ARTIFACT`. + GcsDestination artifact_destination = 3; + + // The Google Container Registry or Artifact Registry uri where the + // Model container image will be copied to. + // This field should only be set when the `exportableContent` field of the + // [Model.supported_export_formats] object contains `IMAGE`. + ContainerRegistryDestination image_destination = 4; + } + + // Required. The resource name of the Model to export. + // Format: `projects/{project}/locations/{location}/models/{model}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Model" + } + ]; + + // Required. The desired output location and configuration. + OutputConfig output_config = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Details of [ModelService.ExportModel][google.cloud.aiplatform.v1.ModelService.ExportModel] operation. +message ExportModelOperationMetadata { + // Further describes the output of the ExportModel. Supplements + // [ExportModelRequest.OutputConfig][google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig]. + message OutputInfo { + // Output only. If the Model artifact is being exported to Google Cloud Storage this is + // the full path of the directory created, into which the Model files are + // being written to. + string artifact_output_uri = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. If the Model image is being exported to Google Container Registry or + // Artifact Registry this is the full path of the image created. + string image_output_uri = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The common part of the operation metadata. + GenericOperationMetadata generic_metadata = 1; + + // Output only. Information further describing the output of this Model export. + OutputInfo output_info = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Response message of [ModelService.ExportModel][google.cloud.aiplatform.v1.ModelService.ExportModel] operation. +message ExportModelResponse { + +} + +// Request message for [ModelService.GetModelEvaluation][google.cloud.aiplatform.v1.ModelService.GetModelEvaluation]. +message GetModelEvaluationRequest { + // Required. The name of the ModelEvaluation resource. + // Format: + // + // `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/ModelEvaluation" + } + ]; +} + +// Request message for [ModelService.ListModelEvaluations][google.cloud.aiplatform.v1.ModelService.ListModelEvaluations]. +message ListModelEvaluationsRequest { + // Required. The resource name of the Model to list the ModelEvaluations from. + // Format: `projects/{project}/locations/{location}/models/{model}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Model" + } + ]; + + // The standard list filter. + string filter = 2; + + // The standard list page size. + int32 page_size = 3; + + // The standard list page token. + // Typically obtained via + // [ListModelEvaluationsResponse.next_page_token][google.cloud.aiplatform.v1.ListModelEvaluationsResponse.next_page_token] of the previous + // [ModelService.ListModelEvaluations][google.cloud.aiplatform.v1.ModelService.ListModelEvaluations] call. + string page_token = 4; + + // Mask specifying which fields to read. + google.protobuf.FieldMask read_mask = 5; +} + +// Response message for [ModelService.ListModelEvaluations][google.cloud.aiplatform.v1.ModelService.ListModelEvaluations]. +message ListModelEvaluationsResponse { + // List of ModelEvaluations in the requested page. + repeated ModelEvaluation model_evaluations = 1; + + // A token to retrieve next page of results. + // Pass to [ListModelEvaluationsRequest.page_token][google.cloud.aiplatform.v1.ListModelEvaluationsRequest.page_token] to obtain that page. + string next_page_token = 2; +} + +// Request message for [ModelService.GetModelEvaluationSlice][google.cloud.aiplatform.v1.ModelService.GetModelEvaluationSlice]. +message GetModelEvaluationSliceRequest { + // Required. The name of the ModelEvaluationSlice resource. + // Format: + // + // `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/ModelEvaluationSlice" + } + ]; +} + +// Request message for [ModelService.ListModelEvaluationSlices][google.cloud.aiplatform.v1.ModelService.ListModelEvaluationSlices]. +message ListModelEvaluationSlicesRequest { + // Required. The resource name of the ModelEvaluation to list the ModelEvaluationSlices + // from. Format: + // + // `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/ModelEvaluation" + } + ]; + + // The standard list filter. + // + // * `slice.dimension` - for =. + string filter = 2; + + // The standard list page size. + int32 page_size = 3; + + // The standard list page token. + // Typically obtained via + // [ListModelEvaluationSlicesResponse.next_page_token][google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse.next_page_token] of the previous + // [ModelService.ListModelEvaluationSlices][google.cloud.aiplatform.v1.ModelService.ListModelEvaluationSlices] call. + string page_token = 4; + + // Mask specifying which fields to read. + google.protobuf.FieldMask read_mask = 5; +} + +// Response message for [ModelService.ListModelEvaluationSlices][google.cloud.aiplatform.v1.ModelService.ListModelEvaluationSlices]. +message ListModelEvaluationSlicesResponse { + // List of ModelEvaluations in the requested page. + repeated ModelEvaluationSlice model_evaluation_slices = 1; + + // A token to retrieve next page of results. + // Pass to [ListModelEvaluationSlicesRequest.page_token][google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest.page_token] to obtain that + // page. + string next_page_token = 2; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/operation.proto b/third_party/googleapis/google/cloud/aiplatform/v1/operation.proto new file mode 100644 index 000000000..e3b1d3c73 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/operation.proto @@ -0,0 +1,50 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/field_behavior.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "OperationProto"; +option java_package = "com.google.cloud.aiplatform.v1"; + +// Generic Metadata shared by all operations. +message GenericOperationMetadata { + // Output only. Partial failures encountered. + // E.g. single files that couldn't be read. + // This field should never exceed 20 entries. + // Status details field will contain standard GCP error details. + repeated google.rpc.Status partial_failures = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the operation was created. + google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the operation was updated for the last time. + // If the operation has finished (successfully or not), this is the finish + // time. + google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Details of operations that perform deletes of any entities. +message DeleteOperationMetadata { + // The common part of the operation metadata. + GenericOperationMetadata generic_metadata = 1; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/pipeline_service.proto b/third_party/googleapis/google/cloud/aiplatform/v1/pipeline_service.proto new file mode 100644 index 000000000..60d06d60c --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/pipeline_service.proto @@ -0,0 +1,202 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1/training_pipeline.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "PipelineServiceProto"; +option java_package = "com.google.cloud.aiplatform.v1"; + +// A service for creating and managing AI Platform's pipelines. +service PipelineService { + option (google.api.default_host) = "aiplatform.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + + // Creates a TrainingPipeline. A created TrainingPipeline right away will be + // attempted to be run. + rpc CreateTrainingPipeline(CreateTrainingPipelineRequest) returns (TrainingPipeline) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/trainingPipelines" + body: "training_pipeline" + }; + option (google.api.method_signature) = "parent,training_pipeline"; + } + + // Gets a TrainingPipeline. + rpc GetTrainingPipeline(GetTrainingPipelineRequest) returns (TrainingPipeline) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/trainingPipelines/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists TrainingPipelines in a Location. + rpc ListTrainingPipelines(ListTrainingPipelinesRequest) returns (ListTrainingPipelinesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/trainingPipelines" + }; + option (google.api.method_signature) = "parent"; + } + + // Deletes a TrainingPipeline. + rpc DeleteTrainingPipeline(DeleteTrainingPipelineRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/trainingPipelines/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteOperationMetadata" + }; + } + + // Cancels a TrainingPipeline. + // Starts asynchronous cancellation on the TrainingPipeline. The server + // makes a best effort to cancel the pipeline, but success is not + // guaranteed. Clients can use [PipelineService.GetTrainingPipeline][google.cloud.aiplatform.v1.PipelineService.GetTrainingPipeline] or + // other methods to check whether the cancellation succeeded or whether the + // pipeline completed despite cancellation. On successful cancellation, + // the TrainingPipeline is not deleted; instead it becomes a pipeline with + // a [TrainingPipeline.error][google.cloud.aiplatform.v1.TrainingPipeline.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, + // corresponding to `Code.CANCELLED`, and [TrainingPipeline.state][google.cloud.aiplatform.v1.TrainingPipeline.state] is set to + // `CANCELLED`. + rpc CancelTrainingPipeline(CancelTrainingPipelineRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/trainingPipelines/*}:cancel" + body: "*" + }; + option (google.api.method_signature) = "name"; + } +} + +// Request message for [PipelineService.CreateTrainingPipeline][google.cloud.aiplatform.v1.PipelineService.CreateTrainingPipeline]. +message CreateTrainingPipelineRequest { + // Required. The resource name of the Location to create the TrainingPipeline in. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The TrainingPipeline to create. + TrainingPipeline training_pipeline = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for [PipelineService.GetTrainingPipeline][google.cloud.aiplatform.v1.PipelineService.GetTrainingPipeline]. +message GetTrainingPipelineRequest { + // Required. The name of the TrainingPipeline resource. + // Format: + // + // `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/TrainingPipeline" + } + ]; +} + +// Request message for [PipelineService.ListTrainingPipelines][google.cloud.aiplatform.v1.PipelineService.ListTrainingPipelines]. +message ListTrainingPipelinesRequest { + // Required. The resource name of the Location to list the TrainingPipelines from. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // The standard list filter. + // Supported fields: + // + // * `display_name` supports = and !=. + // + // * `state` supports = and !=. + // + // Some examples of using the filter are: + // + // * `state="PIPELINE_STATE_SUCCEEDED" AND display_name="my_pipeline"` + // + // * `state="PIPELINE_STATE_RUNNING" OR display_name="my_pipeline"` + // + // * `NOT display_name="my_pipeline"` + // + // * `state="PIPELINE_STATE_FAILED"` + string filter = 2; + + // The standard list page size. + int32 page_size = 3; + + // The standard list page token. + // Typically obtained via + // [ListTrainingPipelinesResponse.next_page_token][google.cloud.aiplatform.v1.ListTrainingPipelinesResponse.next_page_token] of the previous + // [PipelineService.ListTrainingPipelines][google.cloud.aiplatform.v1.PipelineService.ListTrainingPipelines] call. + string page_token = 4; + + // Mask specifying which fields to read. + google.protobuf.FieldMask read_mask = 5; +} + +// Response message for [PipelineService.ListTrainingPipelines][google.cloud.aiplatform.v1.PipelineService.ListTrainingPipelines] +message ListTrainingPipelinesResponse { + // List of TrainingPipelines in the requested page. + repeated TrainingPipeline training_pipelines = 1; + + // A token to retrieve the next page of results. + // Pass to [ListTrainingPipelinesRequest.page_token][google.cloud.aiplatform.v1.ListTrainingPipelinesRequest.page_token] to obtain that page. + string next_page_token = 2; +} + +// Request message for [PipelineService.DeleteTrainingPipeline][google.cloud.aiplatform.v1.PipelineService.DeleteTrainingPipeline]. +message DeleteTrainingPipelineRequest { + // Required. The name of the TrainingPipeline resource to be deleted. + // Format: + // + // `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/TrainingPipeline" + } + ]; +} + +// Request message for [PipelineService.CancelTrainingPipeline][google.cloud.aiplatform.v1.PipelineService.CancelTrainingPipeline]. +message CancelTrainingPipelineRequest { + // Required. The name of the TrainingPipeline to cancel. + // Format: + // + // `projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/TrainingPipeline" + } + ]; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/pipeline_state.proto b/third_party/googleapis/google/cloud/aiplatform/v1/pipeline_state.proto new file mode 100644 index 000000000..42abd26f1 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/pipeline_state.proto @@ -0,0 +1,57 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "PipelineStateProto"; +option java_package = "com.google.cloud.aiplatform.v1"; + +// Describes the state of a pipeline. +enum PipelineState { + // The pipeline state is unspecified. + PIPELINE_STATE_UNSPECIFIED = 0; + + // The pipeline has been just created or resumed and processing has not yet + // begun. + PIPELINE_STATE_QUEUED = 1; + + // The service is preparing to run the pipeline. + PIPELINE_STATE_PENDING = 2; + + // The pipeline is in progress. + PIPELINE_STATE_RUNNING = 3; + + // The pipeline completed successfully. + PIPELINE_STATE_SUCCEEDED = 4; + + // The pipeline failed. + PIPELINE_STATE_FAILED = 5; + + // The pipeline is being cancelled. From this state the pipeline may only go + // to either PIPELINE_STATE_SUCCEEDED, PIPELINE_STATE_FAILED or + // PIPELINE_STATE_CANCELLED. + PIPELINE_STATE_CANCELLING = 6; + + // The pipeline has been cancelled. + PIPELINE_STATE_CANCELLED = 7; + + // The pipeline has been stopped, and can be resumed. + PIPELINE_STATE_PAUSED = 8; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/prediction_service.proto b/third_party/googleapis/google/cloud/aiplatform/v1/prediction_service.proto new file mode 100644 index 000000000..146c1a47a --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/prediction_service.proto @@ -0,0 +1,86 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/struct.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "PredictionServiceProto"; +option java_package = "com.google.cloud.aiplatform.v1"; + +// A service for online predictions and explanations. +service PredictionService { + option (google.api.default_host) = "aiplatform.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + + // Perform an online prediction. + rpc Predict(PredictRequest) returns (PredictResponse) { + option (google.api.http) = { + post: "/v1/{endpoint=projects/*/locations/*/endpoints/*}:predict" + body: "*" + }; + option (google.api.method_signature) = "endpoint,instances,parameters"; + } +} + +// Request message for [PredictionService.Predict][google.cloud.aiplatform.v1.PredictionService.Predict]. +message PredictRequest { + // Required. The name of the Endpoint requested to serve the prediction. + // Format: + // `projects/{project}/locations/{location}/endpoints/{endpoint}` + string endpoint = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Endpoint" + } + ]; + + // Required. The instances that are the input to the prediction call. + // A DeployedModel may have an upper limit on the number of instances it + // supports per request, and when it is exceeded the prediction call errors + // in case of AutoML Models, or, in case of customer created Models, the + // behaviour is as documented by that Model. + // The schema of any single instance may be specified via Endpoint's + // DeployedModels' [Model's][google.cloud.aiplatform.v1.DeployedModel.model] + // [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata] + // [instance_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.instance_schema_uri]. + repeated google.protobuf.Value instances = 2 [(google.api.field_behavior) = REQUIRED]; + + // The parameters that govern the prediction. The schema of the parameters may + // be specified via Endpoint's DeployedModels' [Model's ][google.cloud.aiplatform.v1.DeployedModel.model] + // [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata] + // [parameters_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.parameters_schema_uri]. + google.protobuf.Value parameters = 3; +} + +// Response message for [PredictionService.Predict][google.cloud.aiplatform.v1.PredictionService.Predict]. +message PredictResponse { + // The predictions that are the output of the predictions call. + // The schema of any single prediction may be specified via Endpoint's + // DeployedModels' [Model's ][google.cloud.aiplatform.v1.DeployedModel.model] + // [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata] + // [prediction_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.prediction_schema_uri]. + repeated google.protobuf.Value predictions = 1; + + // ID of the Endpoint's DeployedModel that served this prediction. + string deployed_model_id = 2; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/schema/aiplatform_v1.yaml b/third_party/googleapis/google/cloud/aiplatform/v1/schema/aiplatform_v1.yaml new file mode 100644 index 000000000..d73d4f58e --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/schema/aiplatform_v1.yaml @@ -0,0 +1,391 @@ +type: google.api.Service +config_version: 3 +name: aiplatform.googleapis.com +title: Cloud AI Platform API + +types: +- name: google.cloud.aiplatform.v1.schema.predict.instance.ImageClassificationPredictionInstance +- name: google.cloud.aiplatform.v1.schema.predict.instance.ImageObjectDetectionPredictionInstance +- name: google.cloud.aiplatform.v1.schema.predict.instance.TextClassificationPredictionInstance +- name: google.cloud.aiplatform.v1.schema.predict.instance.TextExtractionPredictionInstance +- name: google.cloud.aiplatform.v1.schema.predict.instance.TextSentimentPredictionInstance +- name: google.cloud.aiplatform.v1.schema.predict.instance.VideoActionRecognitionPredictionInstance +- name: google.cloud.aiplatform.v1.schema.predict.instance.VideoClassificationPredictionInstance +- name: google.cloud.aiplatform.v1.schema.predict.instance.VideoObjectTrackingPredictionInstance +- name: google.cloud.aiplatform.v1.schema.predict.params.ImageClassificationPredictionParams +- name: google.cloud.aiplatform.v1.schema.predict.params.ImageObjectDetectionPredictionParams +- name: google.cloud.aiplatform.v1.schema.predict.params.ImageSegmentationPredictionParams +- name: google.cloud.aiplatform.v1.schema.predict.params.VideoActionRecognitionPredictionParams +- name: google.cloud.aiplatform.v1.schema.predict.params.VideoClassificationPredictionParams +- name: google.cloud.aiplatform.v1.schema.predict.params.VideoObjectTrackingPredictionParams +- name: google.cloud.aiplatform.v1.schema.predict.prediction.ClassificationPredictionResult +- name: google.cloud.aiplatform.v1.schema.predict.prediction.ImageObjectDetectionPredictionResult +- name: google.cloud.aiplatform.v1.schema.predict.prediction.ImageSegmentationPredictionResult +- name: google.cloud.aiplatform.v1.schema.predict.prediction.TabularClassificationPredictionResult +- name: google.cloud.aiplatform.v1.schema.predict.prediction.TabularRegressionPredictionResult +- name: google.cloud.aiplatform.v1.schema.predict.prediction.TextExtractionPredictionResult +- name: google.cloud.aiplatform.v1.schema.predict.prediction.TextSentimentPredictionResult +- name: google.cloud.aiplatform.v1.schema.predict.prediction.VideoActionRecognitionPredictionResult +- name: google.cloud.aiplatform.v1.schema.predict.prediction.VideoClassificationPredictionResult +- name: google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult +- name: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassification +- name: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs +- name: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationMetadata +- name: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetection +- name: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs +- name: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata +- name: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentation +- name: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs +- name: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata +- name: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTables +- name: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs +- name: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesMetadata +- name: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassification +- name: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassificationInputs +- name: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtraction +- name: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtractionInputs +- name: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentiment +- name: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentimentInputs +- name: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognition +- name: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs +- name: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassification +- name: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassificationInputs +- name: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTracking +- name: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs +- name: google.cloud.aiplatform.v1.schema.trainingjob.definition.CustomJobMetadata +- name: google.cloud.aiplatform.v1.schema.trainingjob.definition.CustomTask +- name: google.cloud.aiplatform.v1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig +- name: google.cloud.aiplatform.v1.schema.trainingjob.definition.HyperparameterTuningJobMetadata +- name: google.cloud.aiplatform.v1.schema.trainingjob.definition.HyperparameterTuningJobSpec +- name: google.cloud.aiplatform.v1.schema.trainingjob.definition.HyperparameterTuningTask + +documentation: + summary: |- + Train high-quality custom machine learning models with minimal machine + learning expertise and effort. + overview: |- + AI Platform (Unified) enables data scientists, developers, and AI newcomers + to create custom machine learning models specific to their business needs + by leveraging Google's state-of-the-art transfer learning and innovative + AI research. + rules: + - selector: google.cloud.location.Locations.GetLocation + description: Gets information about a location. + + - selector: google.cloud.location.Locations.ListLocations + description: Lists information about the supported locations for this service. + +backend: + rules: + - selector: google.cloud.location.Locations.GetLocation + deadline: 30.0 + - selector: google.cloud.location.Locations.ListLocations + deadline: 30.0 + - selector: 'google.longrunning.Operations.*' + deadline: 60.0 + +http: + rules: + - selector: google.cloud.location.Locations.GetLocation + get: '/ui/{name=projects/*/locations/*}' + additional_bindings: + - get: '/v1/{name=projects/*/locations/*}' + - selector: google.cloud.location.Locations.ListLocations + get: '/ui/{name=projects/*}/locations' + additional_bindings: + - get: '/v1/{name=projects/*}/locations' + - selector: google.longrunning.Operations.CancelOperation + post: '/ui/{name=projects/*/locations/*/operations/*}:cancel' + additional_bindings: + - post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:cancel' + - post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel' + - post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel' + - post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel' + - post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel' + - post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel' + - post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel' + - post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel' + - post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel' + - post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel' + - post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel' + - post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel' + - post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:cancel' + - post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel' + - post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel' + - post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel' + - post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:cancel' + - post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel' + - post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel' + - post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel' + - post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel' + - post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel' + - post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel' + - post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel' + - post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel' + - post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel' + - post: '/v1/{name=projects/*/locations/*/operations/*}:cancel' + - post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:cancel' + - post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel' + - post: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel' + - post: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel' + - post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel' + - post: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel' + - post: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel' + - post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel' + - post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel' + - post: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel' + - post: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel' + - post: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel' + - post: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}:cancel' + - post: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel' + - post: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel' + - post: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel' + - post: '/v1/{name=projects/*/locations/*/models/*/operations/*}:cancel' + - post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel' + - post: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel' + - post: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel' + - post: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel' + - post: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel' + - post: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel' + - post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel' + - post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel' + - post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel' + - selector: google.longrunning.Operations.DeleteOperation + delete: '/ui/{name=projects/*/locations/*/operations/*}' + additional_bindings: + - delete: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}' + - delete: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}' + - delete: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}' + - delete: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}' + - delete: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}' + - delete: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}' + - delete: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}' + - delete: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}' + - delete: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}' + - delete: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}' + - delete: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}' + - delete: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}' + - delete: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}' + - delete: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}' + - delete: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}' + - delete: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}' + - delete: '/ui/{name=projects/*/locations/*/models/*/operations/*}' + - delete: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}' + - delete: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}' + - delete: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}' + - delete: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}' + - delete: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}' + - delete: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}' + - delete: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}' + - delete: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}' + - delete: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}' + - delete: '/v1/{name=projects/*/locations/*/operations/*}' + - delete: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}' + - delete: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}' + - delete: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}' + - delete: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}' + - delete: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}' + - delete: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}' + - delete: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}' + - delete: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}' + - delete: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}' + - delete: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}' + - delete: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}' + - delete: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}' + - delete: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}' + - delete: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}' + - delete: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}' + - delete: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}' + - delete: '/v1/{name=projects/*/locations/*/models/*/operations/*}' + - delete: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}' + - delete: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}' + - delete: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}' + - delete: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}' + - delete: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}' + - delete: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}' + - delete: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}' + - delete: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}' + - delete: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}' + - selector: google.longrunning.Operations.GetOperation + get: '/ui/{name=projects/*/locations/*/operations/*}' + additional_bindings: + - get: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}' + - get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}' + - get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}' + - get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}' + - get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}' + - get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}' + - get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}' + - get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}' + - get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}' + - get: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}' + - get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}' + - get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}' + - get: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}' + - get: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}' + - get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}' + - get: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}' + - get: '/ui/{name=projects/*/locations/*/models/*/operations/*}' + - get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}' + - get: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}' + - get: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}' + - get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}' + - get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}' + - get: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}' + - get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}' + - get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}' + - get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}' + - get: '/v1/{name=projects/*/locations/*/operations/*}' + - get: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}' + - get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}' + - get: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}' + - get: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}' + - get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}' + - get: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}' + - get: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}' + - get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}' + - get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}' + - get: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}' + - get: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}' + - get: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}' + - get: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}' + - get: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}' + - get: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}' + - get: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}' + - get: '/v1/{name=projects/*/locations/*/models/*/operations/*}' + - get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}' + - get: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}' + - get: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}' + - get: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}' + - get: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}' + - get: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}' + - get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}' + - get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}' + - get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}' + - selector: google.longrunning.Operations.ListOperations + get: '/ui/{name=projects/*/locations/*}/operations' + additional_bindings: + - get: '/ui/{name=projects/*/locations/*/datasets/*}/operations' + - get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations' + - get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations' + - get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations' + - get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations' + - get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations' + - get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations' + - get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations' + - get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations' + - get: '/ui/{name=projects/*/locations/*/customJobs/*}/operations' + - get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*}/operations' + - get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations' + - get: '/ui/{name=projects/*/locations/*/indexes/*}/operations' + - get: '/ui/{name=projects/*/locations/*/indexEndpoints/*}/operations' + - get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations' + - get: '/ui/{name=projects/*/locations/*/migratableResources/*}/operations' + - get: '/ui/{name=projects/*/locations/*/models/*}/operations' + - get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations' + - get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations' + - get: '/ui/{name=projects/*/locations/*/trainingPipelines/*}/operations' + - get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations' + - get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations' + - get: '/ui/{name=projects/*/locations/*/tensorboards/*}/operations' + - get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations' + - get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations' + - get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations' + - get: '/v1/{name=projects/*/locations/*}/operations' + - get: '/v1/{name=projects/*/locations/*/datasets/*}/operations' + - get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations' + - get: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations' + - get: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations' + - get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations' + - get: '/v1/{name=projects/*/locations/*/endpoints/*}/operations' + - get: '/v1/{name=projects/*/locations/*/featurestores/*}/operations' + - get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations' + - get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations' + - get: '/v1/{name=projects/*/locations/*/customJobs/*}/operations' + - get: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*}/operations' + - get: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations' + - get: '/v1/{name=projects/*/locations/*/indexes/*}/operations' + - get: '/v1/{name=projects/*/locations/*/indexEndpoints/*}/operations' + - get: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations' + - get: '/v1/{name=projects/*/locations/*/migratableResources/*}/operations' + - get: '/v1/{name=projects/*/locations/*/models/*}/operations' + - get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*}/operations' + - get: '/v1/{name=projects/*/locations/*/studies/*/trials/*}/operations' + - get: '/v1/{name=projects/*/locations/*/trainingPipelines/*}/operations' + - get: '/v1/{name=projects/*/locations/*/pipelineJobs/*}/operations' + - get: '/v1/{name=projects/*/locations/*/specialistPools/*}/operations' + - get: '/v1/{name=projects/*/locations/*/tensorboards/*}/operations' + - get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations' + - get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations' + - get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations' + - selector: google.longrunning.Operations.WaitOperation + post: '/ui/{name=projects/*/locations/*/operations/*}:wait' + additional_bindings: + - post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:wait' + - post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait' + - post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait' + - post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait' + - post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait' + - post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait' + - post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait' + - post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait' + - post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait' + - post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:wait' + - post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait' + - post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait' + - post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:wait' + - post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait' + - post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait' + - post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait' + - post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:wait' + - post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait' + - post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait' + - post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait' + - post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait' + - post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait' + - post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait' + - post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait' + - post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait' + - post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait' + - post: '/v1/{name=projects/*/locations/*/operations/*}:wait' + - post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:wait' + - post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait' + - post: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait' + - post: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait' + - post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait' + - post: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait' + - post: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}:wait' + - post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait' + - post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait' + - post: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}:wait' + - post: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait' + - post: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait' + - post: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}:wait' + - post: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait' + - post: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait' + - post: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait' + - post: '/v1/{name=projects/*/locations/*/models/*/operations/*}:wait' + - post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait' + - post: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait' + - post: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait' + - post: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait' + - post: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait' + - post: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait' + - post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait' + - post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait' + - post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait' + +authentication: + rules: + - selector: google.cloud.location.Locations.GetLocation + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform + - selector: google.cloud.location.Locations.ListLocations + 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/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/instance/BUILD.bazel b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/instance/BUILD.bazel new file mode 100644 index 000000000..7d2389298 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/instance/BUILD.bazel @@ -0,0 +1,188 @@ +# This file was automatically generated by BuildFileGenerator + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") + +proto_library( + name = "instance_proto", + srcs = [ + "image_classification.proto", + "image_object_detection.proto", + "image_segmentation.proto", + "text_classification.proto", + "text_extraction.proto", + "text_sentiment.proto", + "video_action_recognition.proto", + "video_classification.proto", + "video_object_tracking.proto", + ], + deps = [ + "//google/api:annotations_proto", + ], +) + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_grpc_library", + "java_proto_library", +) + +java_proto_library( + name = "instance_java_proto", + deps = [":instance_proto"], +) + +java_grpc_library( + name = "instance_java_grpc", + srcs = [":instance_proto"], + deps = [":instance_java_proto"], +) + +############################################################################## +# Go +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "go_proto_library", +) + +go_proto_library( + name = "instance_go_proto", + compilers = ["@io_bazel_rules_go//proto:go_grpc"], + importpath = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/instance", + protos = [":instance_proto"], + deps = [ + "//google/api:annotations_go_proto", + ], +) + +############################################################################## +# Python +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "moved_proto_library", + "py_gapic_assembly_pkg", + "py_gapic_library", + "py_grpc_library", + "py_proto_library", +) + +moved_proto_library( + name = "instance_moved_proto", + srcs = [":instance_proto"], + deps = [ + "//google/api:annotations_proto", + ], +) + +py_proto_library( + name = "instance_py_proto", + plugin = "@protoc_docs_plugin//:docs_plugin", + deps = [":instance_moved_proto"], +) + +py_grpc_library( + name = "instance_py_grpc", + srcs = [":instance_moved_proto"], + deps = [":instance_py_proto"], +) + +py_gapic_library( + name = "instance_py_gapic", + opt_args = [ + "python-gapic-namespace=google.cloud.aiplatform.v1.schema.predict", + "python-gapic-name=instance", + ], + srcs = [":instance_proto"], +) + +# Open Source Packages +py_gapic_assembly_pkg( + name = "instance-py", + deps = [ + ":instance_py_gapic", + ] +) + +############################################################################## +# PHP +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "php_grpc_library", + "php_proto_library", +) + +php_proto_library( + name = "instance_php_proto", + deps = [":instance_proto"], +) + +php_grpc_library( + name = "instance_php_grpc", + srcs = [":instance_proto"], + deps = [":instance_php_proto"], +) + +############################################################################## +# Node.js +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", +) + +############################################################################## +# Ruby +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "ruby_grpc_library", + "ruby_proto_library", +) + +ruby_proto_library( + name = "instance_ruby_proto", + deps = [":instance_proto"], +) + +ruby_grpc_library( + name = "instance_ruby_grpc", + srcs = [":instance_proto"], + deps = [":instance_ruby_proto"], +) + +############################################################################## +# C# +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "csharp_grpc_library", + "csharp_proto_library", +) + +csharp_proto_library( + name = "instance_csharp_proto", + deps = [":instance_proto"], +) + +csharp_grpc_library( + name = "instance_csharp_grpc", + srcs = [":instance_proto"], + deps = [":instance_csharp_proto"], +) + +############################################################################## +# C++ +############################################################################## +# Put your C++ code here diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/instance/image_classification.proto b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/instance/image_classification.proto new file mode 100644 index 000000000..6edde6ea9 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/instance/image_classification.proto @@ -0,0 +1,41 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1.schema.predict.instance; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/instance;instance"; +option java_multiple_files = true; +option java_outer_classname = "ImageClassificationPredictionInstanceProto"; +option java_package = "com.google.cloud.aiplatform.v1.schema.predict.instance"; + +// Prediction input format for Image Classification. +message ImageClassificationPredictionInstance { + // The image bytes or GCS URI to make the prediction on. + string content = 1; + + // The MIME type of the content of the image. Only the images in below listed + // MIME types are supported. + // - image/jpeg + // - image/gif + // - image/png + // - image/webp + // - image/bmp + // - image/tiff + // - image/vnd.microsoft.icon + string mime_type = 2; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/instance/image_object_detection.proto b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/instance/image_object_detection.proto new file mode 100644 index 000000000..42fc99732 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/instance/image_object_detection.proto @@ -0,0 +1,41 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1.schema.predict.instance; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/instance;instance"; +option java_multiple_files = true; +option java_outer_classname = "ImageObjectDetectionPredictionInstanceProto"; +option java_package = "com.google.cloud.aiplatform.v1.schema.predict.instance"; + +// Prediction input format for Image Object Detection. +message ImageObjectDetectionPredictionInstance { + // The image bytes or GCS URI to make the prediction on. + string content = 1; + + // The MIME type of the content of the image. Only the images in below listed + // MIME types are supported. + // - image/jpeg + // - image/gif + // - image/png + // - image/webp + // - image/bmp + // - image/tiff + // - image/vnd.microsoft.icon + string mime_type = 2; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/instance/image_segmentation.proto b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/instance/image_segmentation.proto new file mode 100644 index 000000000..dec18aad8 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/instance/image_segmentation.proto @@ -0,0 +1,36 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1.schema.predict.instance; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/instance;instance"; +option java_multiple_files = true; +option java_outer_classname = "ImageSegmentationPredictionInstanceProto"; +option java_package = "com.google.cloud.aiplatform.v1.schema.predict.instance"; + +// Prediction input format for Image Segmentation. +message ImageSegmentationPredictionInstance { + // The image bytes to make the predictions on. + string content = 1; + + // The MIME type of the content of the image. Only the images in below listed + // MIME types are supported. + // - image/jpeg + // - image/png + string mime_type = 2; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/instance/text_classification.proto b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/instance/text_classification.proto new file mode 100644 index 000000000..bec1d6746 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/instance/text_classification.proto @@ -0,0 +1,35 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1.schema.predict.instance; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/instance;instance"; +option java_multiple_files = true; +option java_outer_classname = "TextClassificationPredictionInstanceProto"; +option java_package = "com.google.cloud.aiplatform.v1.schema.predict.instance"; + +// Prediction input format for Text Classification. +message TextClassificationPredictionInstance { + // The text snippet to make the predictions on. + string content = 1; + + // The MIME type of the text snippet. The supported MIME types are listed + // below. + // - text/plain + string mime_type = 2; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/instance/text_extraction.proto b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/instance/text_extraction.proto new file mode 100644 index 000000000..8adb28325 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/instance/text_extraction.proto @@ -0,0 +1,42 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1.schema.predict.instance; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/instance;instance"; +option java_multiple_files = true; +option java_outer_classname = "TextExtractionPredictionInstanceProto"; +option java_package = "com.google.cloud.aiplatform.v1.schema.predict.instance"; + +// Prediction input format for Text Extraction. +message TextExtractionPredictionInstance { + // The text snippet to make the predictions on. + string content = 1; + + // The MIME type of the text snippet. The supported MIME types are listed + // below. + // - text/plain + string mime_type = 2; + + // This field is only used for batch prediction. If a key is provided, the + // batch prediction result will by mapped to this key. If omitted, then the + // batch prediction result will contain the entire input instance. AI Platform + // will not check if keys in the request are duplicates, so it is up to the + // caller to ensure the keys are unique. + string key = 3; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/instance/text_sentiment.proto b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/instance/text_sentiment.proto new file mode 100644 index 000000000..6a20c75a9 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/instance/text_sentiment.proto @@ -0,0 +1,35 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1.schema.predict.instance; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/instance;instance"; +option java_multiple_files = true; +option java_outer_classname = "TextSentimentPredictionInstanceProto"; +option java_package = "com.google.cloud.aiplatform.v1.schema.predict.instance"; + +// Prediction input format for Text Sentiment. +message TextSentimentPredictionInstance { + // The text snippet to make the predictions on. + string content = 1; + + // The MIME type of the text snippet. The supported MIME types are listed + // below. + // - text/plain + string mime_type = 2; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/instance/video_action_recognition.proto b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/instance/video_action_recognition.proto new file mode 100644 index 000000000..4ee124384 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/instance/video_action_recognition.proto @@ -0,0 +1,48 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1.schema.predict.instance; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/instance;instance"; +option java_multiple_files = true; +option java_outer_classname = "VideoActionRecognitionPredictionInstanceProto"; +option java_package = "com.google.cloud.aiplatform.v1.schema.predict.instance"; + +// Prediction input format for Video Action Recognition. +message VideoActionRecognitionPredictionInstance { + // The Google Cloud Storage location of the video on which to perform the + // prediction. + string content = 1; + + // The MIME type of the content of the video. Only the following are + // supported: video/mp4 video/avi video/quicktime + string mime_type = 2; + + // The beginning, inclusive, of the video's time segment on which to perform + // the prediction. Expressed as a number of seconds as measured from the + // start of the video, with "s" appended at the end. Fractions are allowed, + // up to a microsecond precision. + string time_segment_start = 3; + + // The end, exclusive, of the video's time segment on which to perform + // the prediction. Expressed as a number of seconds as measured from the + // start of the video, with "s" appended at the end. Fractions are allowed, + // up to a microsecond precision, and "inf" or "Infinity" is allowed, which + // means the end of the video. + string time_segment_end = 4; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/instance/video_classification.proto b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/instance/video_classification.proto new file mode 100644 index 000000000..74e80068f --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/instance/video_classification.proto @@ -0,0 +1,48 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1.schema.predict.instance; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/instance;instance"; +option java_multiple_files = true; +option java_outer_classname = "VideoClassificationPredictionInstanceProto"; +option java_package = "com.google.cloud.aiplatform.v1.schema.predict.instance"; + +// Prediction input format for Video Classification. +message VideoClassificationPredictionInstance { + // The Google Cloud Storage location of the video on which to perform the + // prediction. + string content = 1; + + // The MIME type of the content of the video. Only the following are + // supported: video/mp4 video/avi video/quicktime + string mime_type = 2; + + // The beginning, inclusive, of the video's time segment on which to perform + // the prediction. Expressed as a number of seconds as measured from the + // start of the video, with "s" appended at the end. Fractions are allowed, + // up to a microsecond precision. + string time_segment_start = 3; + + // The end, exclusive, of the video's time segment on which to perform + // the prediction. Expressed as a number of seconds as measured from the + // start of the video, with "s" appended at the end. Fractions are allowed, + // up to a microsecond precision, and "inf" or "Infinity" is allowed, which + // means the end of the video. + string time_segment_end = 4; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/instance/video_object_tracking.proto b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/instance/video_object_tracking.proto new file mode 100644 index 000000000..0a7cbb883 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/instance/video_object_tracking.proto @@ -0,0 +1,48 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1.schema.predict.instance; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/instance;instance"; +option java_multiple_files = true; +option java_outer_classname = "VideoObjectTrackingPredictionInstanceProto"; +option java_package = "com.google.cloud.aiplatform.v1.schema.predict.instance"; + +// Prediction input format for Video Object Tracking. +message VideoObjectTrackingPredictionInstance { + // The Google Cloud Storage location of the video on which to perform the + // prediction. + string content = 1; + + // The MIME type of the content of the video. Only the following are + // supported: video/mp4 video/avi video/quicktime + string mime_type = 2; + + // The beginning, inclusive, of the video's time segment on which to perform + // the prediction. Expressed as a number of seconds as measured from the + // start of the video, with "s" appended at the end. Fractions are allowed, + // up to a microsecond precision. + string time_segment_start = 3; + + // The end, exclusive, of the video's time segment on which to perform + // the prediction. Expressed as a number of seconds as measured from the + // start of the video, with "s" appended at the end. Fractions are allowed, + // up to a microsecond precision, and "inf" or "Infinity" is allowed, which + // means the end of the video. + string time_segment_end = 4; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/params/BUILD.bazel b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/params/BUILD.bazel new file mode 100644 index 000000000..f0b2581e3 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/params/BUILD.bazel @@ -0,0 +1,186 @@ +# This file was automatically generated by BuildFileGenerator + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") + +proto_library( + name = "params_proto", + srcs = [ + "image_classification.proto", + "image_object_detection.proto", + "image_segmentation.proto", + "video_action_recognition.proto", + "video_classification.proto", + "video_object_tracking.proto", + ], + deps = [ + "//google/api:annotations_proto", + ], +) + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_grpc_library", + "java_proto_library", +) + +java_proto_library( + name = "params_java_proto", + deps = [":params_proto"], +) + +java_grpc_library( + name = "params_java_grpc", + srcs = [":params_proto"], + deps = [":params_java_proto"], +) + +############################################################################## +# Go +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "go_proto_library", +) + +go_proto_library( + name = "params_go_proto", + compilers = ["@io_bazel_rules_go//proto:go_grpc"], + importpath = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/params", + protos = [":params_proto"], + deps = [ + "//google/api:annotations_go_proto", + ], +) + +############################################################################## +# Python +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "moved_proto_library", + "py_gapic_assembly_pkg", + "py_gapic_library", + "py_grpc_library", + "py_proto_library", +) + +moved_proto_library( + name = "params_moved_proto", + srcs = [":params_proto"], + deps = [ + "//google/api:annotations_proto", + ], +) + +py_proto_library( + name = "params_py_proto", + plugin = "@protoc_docs_plugin//:docs_plugin", + deps = [":params_moved_proto"], +) + +py_grpc_library( + name = "params_py_grpc", + srcs = [":params_moved_proto"], + deps = [":params_py_proto"], +) + +py_gapic_library( + name = "params_py_gapic", + opt_args = [ + "python-gapic-namespace=google.cloud.aiplatform.v1.schema.predict", + "python-gapic-name=params", + ], + srcs = [":params_proto"], +) + +# Open Source Packages +py_gapic_assembly_pkg( + name = "params-py", + deps = [ + ":params_py_gapic", + ] +) + +############################################################################## +# PHP +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "php_grpc_library", + "php_proto_library", +) + +php_proto_library( + name = "params_php_proto", + deps = [":params_proto"], +) + +php_grpc_library( + name = "params_php_grpc", + srcs = [":params_proto"], + deps = [":params_php_proto"], +) + +############################################################################## +# Node.js +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", +) + + +############################################################################## +# Ruby +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "ruby_grpc_library", + "ruby_proto_library", +) + +ruby_proto_library( + name = "params_ruby_proto", + deps = [":params_proto"], +) + +ruby_grpc_library( + name = "params_ruby_grpc", + srcs = [":params_proto"], + deps = [":params_ruby_proto"], +) + +############################################################################## +# C# +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "csharp_grpc_library", + "csharp_proto_library", +) + +csharp_proto_library( + name = "params_csharp_proto", + deps = [":params_proto"], +) + +csharp_grpc_library( + name = "params_csharp_grpc", + srcs = [":params_proto"], + deps = [":params_csharp_proto"], +) + +############################################################################## +# C++ +############################################################################## +# Put your C++ code here diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/params/image_classification.proto b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/params/image_classification.proto new file mode 100644 index 000000000..959ad9494 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/params/image_classification.proto @@ -0,0 +1,36 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1.schema.predict.params; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/params;params"; +option java_multiple_files = true; +option java_outer_classname = "ImageClassificationPredictionParamsProto"; +option java_package = "com.google.cloud.aiplatform.v1.schema.predict.params"; + +// Prediction model parameters for Image Classification. +message ImageClassificationPredictionParams { + // The Model only returns predictions with at least this confidence score. + // Default value is 0.0 + float confidence_threshold = 1; + + // The Model only returns up to that many top, by confidence score, + // predictions per instance. If this number is very high, the Model may return + // fewer predictions. Default value is 10. + int32 max_predictions = 2; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/params/image_object_detection.proto b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/params/image_object_detection.proto new file mode 100644 index 000000000..d4a9e4b8d --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/params/image_object_detection.proto @@ -0,0 +1,36 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1.schema.predict.params; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/params;params"; +option java_multiple_files = true; +option java_outer_classname = "ImageObjectDetectionPredictionParamsProto"; +option java_package = "com.google.cloud.aiplatform.v1.schema.predict.params"; + +// Prediction model parameters for Image Object Detection. +message ImageObjectDetectionPredictionParams { + // The Model only returns predictions with at least this confidence score. + // Default value is 0.0 + float confidence_threshold = 1; + + // The Model only returns up to that many top, by confidence score, + // predictions per instance. Note that number of returned predictions is also + // limited by metadata's predictionsLimit. Default value is 10. + int32 max_predictions = 2; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/params/image_segmentation.proto b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/params/image_segmentation.proto new file mode 100644 index 000000000..84c604264 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/params/image_segmentation.proto @@ -0,0 +1,33 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1.schema.predict.params; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/params;params"; +option java_multiple_files = true; +option java_outer_classname = "ImageSegmentationPredictionParamsProto"; +option java_package = "com.google.cloud.aiplatform.v1.schema.predict.params"; + +// Prediction model parameters for Image Segmentation. +message ImageSegmentationPredictionParams { + // When the model predicts category of pixels of the image, it will only + // provide predictions for pixels that it is at least this much confident + // about. All other pixels will be classified as background. Default value is + // 0.5. + float confidence_threshold = 1; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/params/video_action_recognition.proto b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/params/video_action_recognition.proto new file mode 100644 index 000000000..50775f03c --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/params/video_action_recognition.proto @@ -0,0 +1,36 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1.schema.predict.params; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/params;params"; +option java_multiple_files = true; +option java_outer_classname = "VideoActionRecognitionPredictionParamsProto"; +option java_package = "com.google.cloud.aiplatform.v1.schema.predict.params"; + +// Prediction model parameters for Video Action Recognition. +message VideoActionRecognitionPredictionParams { + // The Model only returns predictions with at least this confidence score. + // Default value is 0.0 + float confidence_threshold = 1; + + // The model only returns up to that many top, by confidence score, + // predictions per frame of the video. If this number is very high, the + // Model may return fewer predictions per frame. Default value is 50. + int32 max_predictions = 2; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/params/video_classification.proto b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/params/video_classification.proto new file mode 100644 index 000000000..f1ae51c1e --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/params/video_classification.proto @@ -0,0 +1,61 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1.schema.predict.params; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/params;params"; +option java_multiple_files = true; +option java_outer_classname = "VideoClassificationPredictionParamsProto"; +option java_package = "com.google.cloud.aiplatform.v1.schema.predict.params"; + +// Prediction model parameters for Video Classification. +message VideoClassificationPredictionParams { + // The Model only returns predictions with at least this confidence score. + // Default value is 0.0 + float confidence_threshold = 1; + + // The Model only returns up to that many top, by confidence score, + // predictions per instance. If this number is very high, the Model may return + // fewer predictions. Default value is 10,000. + int32 max_predictions = 2; + + // Set to true to request segment-level classification. AI Platform returns + // labels and their confidence scores for the entire time segment of the + // video that user specified in the input instance. + // Default value is true + bool segment_classification = 3; + + // Set to true to request shot-level classification. AI Platform determines + // the boundaries for each camera shot in the entire time segment of the + // video that user specified in the input instance. AI Platform then + // returns labels and their confidence scores for each detected shot, along + // with the start and end time of the shot. + // WARNING: Model evaluation is not done for this classification type, + // the quality of it depends on the training data, but there are no metrics + // provided to describe that quality. + // Default value is false + bool shot_classification = 4; + + // Set to true to request classification for a video at one-second intervals. + // AI Platform returns labels and their confidence scores for each second of + // the entire time segment of the video that user specified in the input + // WARNING: Model evaluation is not done for this classification type, the + // quality of it depends on the training data, but there are no metrics + // provided to describe that quality. Default value is false + bool one_sec_interval_classification = 5; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/params/video_object_tracking.proto b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/params/video_object_tracking.proto new file mode 100644 index 000000000..1c5fb631d --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/params/video_object_tracking.proto @@ -0,0 +1,40 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1.schema.predict.params; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/params;params"; +option java_multiple_files = true; +option java_outer_classname = "VideoObjectTrackingPredictionParamsProto"; +option java_package = "com.google.cloud.aiplatform.v1.schema.predict.params"; + +// Prediction model parameters for Video Object Tracking. +message VideoObjectTrackingPredictionParams { + // The Model only returns predictions with at least this confidence score. + // Default value is 0.0 + float confidence_threshold = 1; + + // The model only returns up to that many top, by confidence score, + // predictions per frame of the video. If this number is very high, the + // Model may return fewer predictions per frame. Default value is 50. + int32 max_predictions = 2; + + // Only bounding boxes with shortest edge at least that long as a relative + // value of video frame size are returned. Default value is 0.0. + float min_bounding_box_size = 3; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/prediction/BUILD.bazel b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/prediction/BUILD.bazel new file mode 100644 index 000000000..a530a15a5 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/prediction/BUILD.bazel @@ -0,0 +1,198 @@ +# This file was automatically generated by BuildFileGenerator + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") + +proto_library( + name = "prediction_proto", + srcs = [ + "classification.proto", + "image_object_detection.proto", + "image_segmentation.proto", + "tabular_classification.proto", + "tabular_regression.proto", + "text_extraction.proto", + "text_sentiment.proto", + "video_action_recognition.proto", + "video_classification.proto", + "video_object_tracking.proto", + ], + deps = [ + "//google/api:annotations_proto", + "@com_google_protobuf//:duration_proto", + "@com_google_protobuf//:struct_proto", + "@com_google_protobuf//:wrappers_proto", + ], +) + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_grpc_library", + "java_proto_library", +) + +java_proto_library( + name = "prediction_java_proto", + deps = [":prediction_proto"], +) + +java_grpc_library( + name = "prediction_java_grpc", + srcs = [":prediction_proto"], + deps = [":prediction_java_proto"], +) + +############################################################################## +# Go +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "go_proto_library", +) + +go_proto_library( + name = "prediction_go_proto", + compilers = ["@io_bazel_rules_go//proto:go_grpc"], + importpath = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/prediction", + protos = [":prediction_proto"], + deps = [ + "//google/api:annotations_go_proto", + "//google/cloud/aiplatform/v1/schema/predict/instance:instance_go_proto", + ], +) + +############################################################################## +# Python +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "moved_proto_library", + "py_gapic_assembly_pkg", + "py_gapic_library", + "py_grpc_library", + "py_proto_library", + +) + +moved_proto_library( + name = "prediction_moved_proto", + srcs = [":prediction_proto"], + deps = [ + "//google/api:annotations_proto", + "//google/cloud/aiplatform/v1/schema/predict/instance:instance_proto", + "@com_google_protobuf//:duration_proto", + "@com_google_protobuf//:struct_proto", + "@com_google_protobuf//:wrappers_proto", + ], +) + +py_proto_library( + name = "prediction_py_proto", + plugin = "@protoc_docs_plugin//:docs_plugin", + deps = [":prediction_moved_proto"], +) + +py_grpc_library( + name = "prediction_py_grpc", + srcs = [":prediction_moved_proto"], + deps = [":prediction_py_proto"], +) + +py_gapic_library( + name = "prediction_py_gapic", + opt_args = [ + "python-gapic-namespace=google.cloud.aiplatform.v1.schema.predict", # Replace with the current version + "python-gapic-name=prediction", + ], + srcs = [":prediction_proto"], +) + +py_gapic_assembly_pkg( + name = "prediction-py", + deps = [ + ":prediction_py_gapic", + ] +) + +############################################################################## +# PHP +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "php_grpc_library", + "php_proto_library", +) + +php_proto_library( + name = "prediction_php_proto", + deps = [":prediction_proto"], +) + +php_grpc_library( + name = "prediction_php_grpc", + srcs = [":prediction_proto"], + deps = [":prediction_php_proto"], +) + +############################################################################## +# Node.js +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", +) + + +############################################################################## +# Ruby +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "ruby_grpc_library", + "ruby_proto_library", +) + +ruby_proto_library( + name = "prediction_ruby_proto", + deps = [":prediction_proto"], +) + +ruby_grpc_library( + name = "prediction_ruby_grpc", + srcs = [":prediction_proto"], + deps = [":prediction_ruby_proto"], +) + +############################################################################## +# C# +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "csharp_grpc_library", + "csharp_proto_library", +) + +csharp_proto_library( + name = "prediction_csharp_proto", + deps = [":prediction_proto"], +) + +csharp_grpc_library( + name = "prediction_csharp_grpc", + srcs = [":prediction_proto"], + deps = [":prediction_csharp_proto"], +) + +############################################################################## +# C++ +############################################################################## +# Put your C++ code here diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/prediction/classification.proto b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/prediction/classification.proto new file mode 100644 index 000000000..76c636ec8 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/prediction/classification.proto @@ -0,0 +1,39 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1.schema.predict.prediction; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/prediction;prediction"; +option java_multiple_files = true; +option java_outer_classname = "ClassificationPredictionResultProto"; +option java_package = "com.google.cloud.aiplatform.v1.schema.predict.prediction"; + +// Prediction output format for Image and Text Classification. +message ClassificationPredictionResult { + // The resource IDs of the AnnotationSpecs that had been identified, ordered + // by the confidence score descendingly. + repeated int64 ids = 1; + + // The display names of the AnnotationSpecs that had been identified, order + // matches the IDs. + repeated string display_names = 2; + + // The Model's confidences in correctness of the predicted IDs, higher value + // means higher confidence. Order matches the Ids. + repeated float confidences = 3; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/prediction/image_object_detection.proto b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/prediction/image_object_detection.proto new file mode 100644 index 000000000..235199208 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/prediction/image_object_detection.proto @@ -0,0 +1,48 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1.schema.predict.prediction; + +import "google/protobuf/struct.proto"; +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/prediction;prediction"; +option java_multiple_files = true; +option java_outer_classname = "ImageObjectDetectionPredictionResultProto"; +option java_package = "com.google.cloud.aiplatform.v1.schema.predict.prediction"; + +// Prediction output format for Image Object Detection. +message ImageObjectDetectionPredictionResult { + // The resource IDs of the AnnotationSpecs that had been identified, ordered + // by the confidence score descendingly. + repeated int64 ids = 1; + + // The display names of the AnnotationSpecs that had been identified, order + // matches the IDs. + repeated string display_names = 2; + + // The Model's confidences in correctness of the predicted IDs, higher value + // means higher confidence. Order matches the Ids. + repeated float confidences = 3; + + // Bounding boxes, i.e. the rectangles over the image, that pinpoint + // the found AnnotationSpecs. Given in order that matches the IDs. Each + // bounding box is an array of 4 numbers `xMin`, `xMax`, `yMin`, and + // `yMax`, which represent the extremal coordinates of the box. They are + // relative to the image size, and the point 0,0 is in the top left + // of the image. + repeated google.protobuf.ListValue bboxes = 4; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/prediction/image_segmentation.proto b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/prediction/image_segmentation.proto new file mode 100644 index 000000000..d5726b149 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/prediction/image_segmentation.proto @@ -0,0 +1,42 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1.schema.predict.prediction; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/prediction;prediction"; +option java_multiple_files = true; +option java_outer_classname = "ImageSegmentationPredictionResultProto"; +option java_package = "com.google.cloud.aiplatform.v1.schema.predict.prediction"; + +// Prediction output format for Image Segmentation. +message ImageSegmentationPredictionResult { + // A PNG image where each pixel in the mask represents the category in which + // the pixel in the original image was predicted to belong to. The size of + // this image will be the same as the original image. The mapping between the + // AnntoationSpec and the color can be found in model's metadata. The model + // will choose the most likely category and if none of the categories reach + // the confidence threshold, the pixel will be marked as background. + string category_mask = 1; + + // A one channel image which is encoded as an 8bit lossless PNG. The size of + // the image will be the same as the original image. For a specific pixel, + // darker color means less confidence in correctness of the cateogry in the + // categoryMask for the corresponding pixel. Black means no confidence and + // white means complete confidence. + string confidence_mask = 2; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/prediction/tabular_classification.proto b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/prediction/tabular_classification.proto new file mode 100644 index 000000000..a11739285 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/prediction/tabular_classification.proto @@ -0,0 +1,36 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1.schema.predict.prediction; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/prediction;prediction"; +option java_multiple_files = true; +option java_outer_classname = "TabularClassificationPredictionResultProto"; +option java_package = "com.google.cloud.aiplatform.v1.schema.predict.prediction"; + +// Prediction output format for Tabular Classification. +message TabularClassificationPredictionResult { + // The name of the classes being classified, contains all possible values of + // the target column. + repeated string classes = 1; + + // The model's confidence in each class being correct, higher + // value means higher confidence. The N-th score corresponds to + // the N-th class in classes. + repeated float scores = 2; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/prediction/tabular_regression.proto b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/prediction/tabular_regression.proto new file mode 100644 index 000000000..28c75b4d8 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/prediction/tabular_regression.proto @@ -0,0 +1,36 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1.schema.predict.prediction; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/prediction;prediction"; +option java_multiple_files = true; +option java_outer_classname = "TabularRegressionPredictionResultProto"; +option java_package = "com.google.cloud.aiplatform.v1.schema.predict.prediction"; + +// Prediction output format for Tabular Regression. +message TabularRegressionPredictionResult { + // The regression value. + float value = 1; + + // The lower bound of the prediction interval. + float lower_bound = 2; + + // The upper bound of the prediction interval. + float upper_bound = 3; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/prediction/text_extraction.proto b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/prediction/text_extraction.proto new file mode 100644 index 000000000..01a119095 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/prediction/text_extraction.proto @@ -0,0 +1,49 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1.schema.predict.prediction; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/prediction;prediction"; +option java_multiple_files = true; +option java_outer_classname = "TextExtractionPredictionResultProto"; +option java_package = "com.google.cloud.aiplatform.v1.schema.predict.prediction"; + +// Prediction output format for Text Extraction. +message TextExtractionPredictionResult { + // The resource IDs of the AnnotationSpecs that had been identified, + // ordered by the confidence score descendingly. + repeated int64 ids = 1; + + // The display names of the AnnotationSpecs that had been identified, + // order matches the IDs. + repeated string display_names = 2; + + // The start offsets, inclusive, of the text segment in which the + // AnnotationSpec has been identified. Expressed as a zero-based number + // of characters as measured from the start of the text snippet. + repeated int64 text_segment_start_offsets = 3; + + // The end offsets, inclusive, of the text segment in which the + // AnnotationSpec has been identified. Expressed as a zero-based number + // of characters as measured from the start of the text snippet. + repeated int64 text_segment_end_offsets = 4; + + // The Model's confidences in correctness of the predicted IDs, higher + // value means higher confidence. Order matches the Ids. + repeated float confidences = 5; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/prediction/text_sentiment.proto b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/prediction/text_sentiment.proto new file mode 100644 index 000000000..a2a3c94f8 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/prediction/text_sentiment.proto @@ -0,0 +1,34 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1.schema.predict.prediction; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/prediction;prediction"; +option java_multiple_files = true; +option java_outer_classname = "TextSentimentPredictionResultProto"; +option java_package = "com.google.cloud.aiplatform.v1.schema.predict.prediction"; + +// Prediction output format for Text Sentiment +message TextSentimentPredictionResult { + // The integer sentiment labels between 0 (inclusive) and sentimentMax label + // (inclusive), while 0 maps to the least positive sentiment and + // sentimentMax maps to the most positive one. The higher the score is, the + // more positive the sentiment in the text snippet is. Note: sentimentMax is + // an integer value between 1 (inclusive) and 10 (inclusive). + int32 sentiment = 1; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/prediction/video_action_recognition.proto b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/prediction/video_action_recognition.proto new file mode 100644 index 000000000..e45ccef2a --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/prediction/video_action_recognition.proto @@ -0,0 +1,51 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1.schema.predict.prediction; + +import "google/protobuf/duration.proto"; +import "google/protobuf/wrappers.proto"; +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/prediction;prediction"; +option java_multiple_files = true; +option java_outer_classname = "VideoActionRecognitionPredictionResultProto"; +option java_package = "com.google.cloud.aiplatform.v1.schema.predict.prediction"; + +// Prediction output format for Video Action Recognition. +message VideoActionRecognitionPredictionResult { + // The resource ID of the AnnotationSpec that had been identified. + string id = 1; + + // The display name of the AnnotationSpec that had been identified. + string display_name = 2; + + // The beginning, inclusive, of the video's time segment in which the + // AnnotationSpec has been identified. Expressed as a number of seconds as + // measured from the start of the video, with fractions up to a microsecond + // precision, and with "s" appended at the end. + google.protobuf.Duration time_segment_start = 4; + + // The end, exclusive, of the video's time segment in which the + // AnnotationSpec has been identified. Expressed as a number of seconds as + // measured from the start of the video, with fractions up to a microsecond + // precision, and with "s" appended at the end. + google.protobuf.Duration time_segment_end = 5; + + // The Model's confidence in correction of this prediction, higher + // value means higher confidence. + google.protobuf.FloatValue confidence = 6; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/prediction/video_classification.proto b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/prediction/video_classification.proto new file mode 100644 index 000000000..873350394 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/prediction/video_classification.proto @@ -0,0 +1,64 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1.schema.predict.prediction; + +import "google/protobuf/duration.proto"; +import "google/protobuf/wrappers.proto"; +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/prediction;prediction"; +option java_multiple_files = true; +option java_outer_classname = "VideoClassificationPredictionResultProto"; +option java_package = "com.google.cloud.aiplatform.v1.schema.predict.prediction"; + +// Prediction output format for Video Classification. +message VideoClassificationPredictionResult { + // The resource ID of the AnnotationSpec that had been identified. + string id = 1; + + // The display name of the AnnotationSpec that had been identified. + string display_name = 2; + + // The type of the prediction. The requested types can be configured + // via parameters. This will be one of + // - segment-classification + // - shot-classification + // - one-sec-interval-classification + string type = 3; + + // The beginning, inclusive, of the video's time segment in which the + // AnnotationSpec has been identified. Expressed as a number of seconds as + // measured from the start of the video, with fractions up to a microsecond + // precision, and with "s" appended at the end. Note that for + // 'segment-classification' prediction type, this equals the original + // 'timeSegmentStart' from the input instance, for other types it is the + // start of a shot or a 1 second interval respectively. + google.protobuf.Duration time_segment_start = 4; + + // The end, exclusive, of the video's time segment in which the + // AnnotationSpec has been identified. Expressed as a number of seconds as + // measured from the start of the video, with fractions up to a microsecond + // precision, and with "s" appended at the end. Note that for + // 'segment-classification' prediction type, this equals the original + // 'timeSegmentEnd' from the input instance, for other types it is the end + // of a shot or a 1 second interval respectively. + google.protobuf.Duration time_segment_end = 5; + + // The Model's confidence in correction of this prediction, higher + // value means higher confidence. + google.protobuf.FloatValue confidence = 6; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/prediction/video_object_tracking.proto b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/prediction/video_object_tracking.proto new file mode 100644 index 000000000..2a39204b7 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/schema/predict/prediction/video_object_tracking.proto @@ -0,0 +1,79 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1.schema.predict.prediction; + +import "google/protobuf/duration.proto"; +import "google/protobuf/wrappers.proto"; +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/prediction;prediction"; +option java_multiple_files = true; +option java_outer_classname = "VideoObjectTrackingPredictionResultProto"; +option java_package = "com.google.cloud.aiplatform.v1.schema.predict.prediction"; + +// Prediction output format for Video Object Tracking. +message VideoObjectTrackingPredictionResult { + // The fields `xMin`, `xMax`, `yMin`, and `yMax` refer to a bounding box, + // i.e. the rectangle over the video frame pinpointing the found + // AnnotationSpec. The coordinates are relative to the frame size, and the + // point 0,0 is in the top left of the frame. + message Frame { + // A time (frame) of a video in which the object has been detected. + // Expressed as a number of seconds as measured from the + // start of the video, with fractions up to a microsecond precision, and + // with "s" appended at the end. + google.protobuf.Duration time_offset = 1; + + // The leftmost coordinate of the bounding box. + google.protobuf.FloatValue x_min = 2; + + // The rightmost coordinate of the bounding box. + google.protobuf.FloatValue x_max = 3; + + // The topmost coordinate of the bounding box. + google.protobuf.FloatValue y_min = 4; + + // The bottommost coordinate of the bounding box. + google.protobuf.FloatValue y_max = 5; + } + + // The resource ID of the AnnotationSpec that had been identified. + string id = 1; + + // The display name of the AnnotationSpec that had been identified. + string display_name = 2; + + // The beginning, inclusive, of the video's time segment in which the + // object instance has been detected. Expressed as a number of seconds as + // measured from the start of the video, with fractions up to a microsecond + // precision, and with "s" appended at the end. + google.protobuf.Duration time_segment_start = 3; + + // The end, inclusive, of the video's time segment in which the + // object instance has been detected. Expressed as a number of seconds as + // measured from the start of the video, with fractions up to a microsecond + // precision, and with "s" appended at the end. + google.protobuf.Duration time_segment_end = 4; + + // The Model's confidence in correction of this prediction, higher + // value means higher confidence. + google.protobuf.FloatValue confidence = 5; + + // All of the frames of the video in which a single object instance has been + // detected. The bounding boxes in the frames identify the same object. + repeated Frame frames = 6; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/schema/trainingjob/definition/BUILD.bazel b/third_party/googleapis/google/cloud/aiplatform/v1/schema/trainingjob/definition/BUILD.bazel new file mode 100644 index 000000000..a475ff56d --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/schema/trainingjob/definition/BUILD.bazel @@ -0,0 +1,190 @@ +# This file was automatically generated by BuildFileGenerator + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") + +proto_library( + name = "definition_proto", + srcs = [ + "automl_image_classification.proto", + "automl_image_object_detection.proto", + "automl_image_segmentation.proto", + "automl_tables.proto", + "automl_text_classification.proto", + "automl_text_extraction.proto", + "automl_text_sentiment.proto", + "automl_video_action_recognition.proto", + "automl_video_classification.proto", + "automl_video_object_tracking.proto", + "export_evaluated_data_items_config.proto", + ], + deps = [ + "//google/api:annotations_proto", + ], +) + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_grpc_library", + "java_proto_library", +) + +java_proto_library( + name = "definition_java_proto", + deps = [":definition_proto"], +) + +java_grpc_library( + name = "definition_java_grpc", + srcs = [":definition_proto"], + deps = [":definition_java_proto"], +) + +############################################################################## +# Go +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "go_proto_library", +) + +go_proto_library( + name = "definition_go_proto", + compilers = ["@io_bazel_rules_go//proto:go_grpc"], + importpath = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/trainingjob/definition", + protos = [":definition_proto"], + deps = [ + "//google/api:annotations_go_proto", + ], +) + +############################################################################## +# Python +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "moved_proto_library", + "py_gapic_assembly_pkg", + "py_gapic_library", + "py_grpc_library", + "py_proto_library", +) + +moved_proto_library( + name = "definition_moved_proto", + srcs = [":definition_proto"], + deps = [ + "//google/api:annotations_proto", + ], +) + +py_proto_library( + name = "definition_py_proto", + plugin = "@protoc_docs_plugin//:docs_plugin", + deps = [":definition_moved_proto"], +) + +py_grpc_library( + name = "definition_py_grpc", + srcs = [":definition_moved_proto"], + deps = [":definition_py_proto"], +) + +py_gapic_library( + name = "definition_py_gapic", + srcs = [":definition_proto"], + opt_args = [ + "python-gapic-namespace=google.cloud.aiplatform.v1.schema.trainingjob", + "python-gapic-name=definition", + ], +) + +# Open Source Packages +py_gapic_assembly_pkg( + name = "definition_py", + deps = [ + ":definition_py_gapic", + ], +) + +############################################################################## +# PHP +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "php_grpc_library", + "php_proto_library", +) + +php_proto_library( + name = "definition_php_proto", + deps = [":definition_proto"], +) + +php_grpc_library( + name = "definition_php_grpc", + srcs = [":definition_proto"], + deps = [":definition_php_proto"], +) + +############################################################################## +# Node.js +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", +) + +############################################################################## +# Ruby +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "ruby_grpc_library", + "ruby_proto_library", +) + +ruby_proto_library( + name = "definition_ruby_proto", + deps = [":definition_proto"], +) + +ruby_grpc_library( + name = "definition_ruby_grpc", + srcs = [":definition_proto"], + deps = [":definition_ruby_proto"], +) + +############################################################################## +# C# +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "csharp_grpc_library", + "csharp_proto_library", +) + +csharp_proto_library( + name = "definition_csharp_proto", + deps = [":definition_proto"], +) + +csharp_grpc_library( + name = "definition_csharp_grpc", + srcs = [":definition_proto"], + deps = [":definition_csharp_proto"], +) + +############################################################################## +# C++ +############################################################################## +# Put your C++ code here diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_classification.proto b/third_party/googleapis/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_classification.proto new file mode 100644 index 000000000..d5f365aef --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_classification.proto @@ -0,0 +1,125 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1.schema.trainingjob.definition; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/trainingjob/definition;definition"; +option java_multiple_files = true; +option java_outer_classname = "AutoMLImageClassificationProto"; +option java_package = "com.google.cloud.aiplatform.v1.schema.trainingjob.definition"; + +// A TrainingJob that trains and uploads an AutoML Image Classification Model. +message AutoMlImageClassification { + // The input parameters of this TrainingJob. + AutoMlImageClassificationInputs inputs = 1; + + // The metadata information. + AutoMlImageClassificationMetadata metadata = 2; +} + +message AutoMlImageClassificationInputs { + enum ModelType { + // Should not be set. + MODEL_TYPE_UNSPECIFIED = 0; + + // A Model best tailored to be used within Google Cloud, and which cannot + // be exported. + // Default. + CLOUD = 1; + + // A model that, in addition to being available within Google + // Cloud, can also be exported (see ModelService.ExportModel) as TensorFlow + // or Core ML model and used on a mobile or edge device afterwards. + // Expected to have low latency, but may have lower prediction + // quality than other mobile models. + MOBILE_TF_LOW_LATENCY_1 = 2; + + // A model that, in addition to being available within Google + // Cloud, can also be exported (see ModelService.ExportModel) as TensorFlow + // or Core ML model and used on a mobile or edge device with afterwards. + MOBILE_TF_VERSATILE_1 = 3; + + // A model that, in addition to being available within Google + // Cloud, can also be exported (see ModelService.ExportModel) as TensorFlow + // or Core ML model and used on a mobile or edge device afterwards. + // Expected to have a higher latency, but should also have a higher + // prediction quality than other mobile models. + MOBILE_TF_HIGH_ACCURACY_1 = 4; + } + + ModelType model_type = 1; + + // The ID of the `base` model. If it is specified, the new model will be + // trained based on the `base` model. Otherwise, the new model will be + // trained from scratch. The `base` model must be in the same + // Project and Location as the new Model to train, and have the same + // modelType. + string base_model_id = 2; + + // The training budget of creating this model, expressed in milli node + // hours i.e. 1,000 value in this field means 1 node hour. The actual + // metadata.costMilliNodeHours will be equal or less than this value. + // If further model training ceases to provide any improvements, it will + // stop without using the full budget and the metadata.successfulStopReason + // will be `model-converged`. + // Note, node_hour = actual_hour * number_of_nodes_involved. + // For modelType `cloud`(default), the budget must be between 8,000 + // and 800,000 milli node hours, inclusive. The default value is 192,000 + // which represents one day in wall time, considering 8 nodes are used. + // For model types `mobile-tf-low-latency-1`, `mobile-tf-versatile-1`, + // `mobile-tf-high-accuracy-1`, the training budget must be between + // 1,000 and 100,000 milli node hours, inclusive. + // The default value is 24,000 which represents one day in wall time on a + // single node that is used. + int64 budget_milli_node_hours = 3; + + // Use the entire training budget. This disables the early stopping feature. + // When false the early stopping feature is enabled, which means that + // AutoML Image Classification might stop training before the entire + // training budget has been used. + bool disable_early_stopping = 4; + + // If false, a single-label (multi-class) Model will be trained (i.e. + // assuming that for each image just up to one annotation may be + // applicable). If true, a multi-label Model will be trained (i.e. + // assuming that for each image multiple annotations may be applicable). + bool multi_label = 5; +} + +message AutoMlImageClassificationMetadata { + enum SuccessfulStopReason { + // Should not be set. + SUCCESSFUL_STOP_REASON_UNSPECIFIED = 0; + + // The inputs.budgetMilliNodeHours had been reached. + BUDGET_REACHED = 1; + + // Further training of the Model ceased to increase its quality, since it + // already has converged. + MODEL_CONVERGED = 2; + } + + // The actual training cost of creating this model, expressed in + // milli node hours, i.e. 1,000 value in this field means 1 node hour. + // Guaranteed to not exceed inputs.budgetMilliNodeHours. + int64 cost_milli_node_hours = 1; + + // For successful job completions, this is the reason why the job has + // finished. + SuccessfulStopReason successful_stop_reason = 2; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_object_detection.proto b/third_party/googleapis/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_object_detection.proto new file mode 100644 index 000000000..5abceb55b --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_object_detection.proto @@ -0,0 +1,117 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1.schema.trainingjob.definition; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/trainingjob/definition;definition"; +option java_multiple_files = true; +option java_outer_classname = "AutoMLImageObjectDetectionProto"; +option java_package = "com.google.cloud.aiplatform.v1.schema.trainingjob.definition"; + +// A TrainingJob that trains and uploads an AutoML Image Object Detection Model. +message AutoMlImageObjectDetection { + // The input parameters of this TrainingJob. + AutoMlImageObjectDetectionInputs inputs = 1; + + // The metadata information + AutoMlImageObjectDetectionMetadata metadata = 2; +} + +message AutoMlImageObjectDetectionInputs { + enum ModelType { + // Should not be set. + MODEL_TYPE_UNSPECIFIED = 0; + + // A model best tailored to be used within Google Cloud, and which cannot + // be exported. Expected to have a higher latency, but should also have a + // higher prediction quality than other cloud models. + CLOUD_HIGH_ACCURACY_1 = 1; + + // A model best tailored to be used within Google Cloud, and which cannot + // be exported. Expected to have a low latency, but may have lower + // prediction quality than other cloud models. + CLOUD_LOW_LATENCY_1 = 2; + + // A model that, in addition to being available within Google + // Cloud can also be exported (see ModelService.ExportModel) and + // used on a mobile or edge device with TensorFlow afterwards. + // Expected to have low latency, but may have lower prediction + // quality than other mobile models. + MOBILE_TF_LOW_LATENCY_1 = 3; + + // A model that, in addition to being available within Google + // Cloud can also be exported (see ModelService.ExportModel) and + // used on a mobile or edge device with TensorFlow afterwards. + MOBILE_TF_VERSATILE_1 = 4; + + // A model that, in addition to being available within Google + // Cloud, can also be exported (see ModelService.ExportModel) and + // used on a mobile or edge device with TensorFlow afterwards. + // Expected to have a higher latency, but should also have a higher + // prediction quality than other mobile models. + MOBILE_TF_HIGH_ACCURACY_1 = 5; + } + + ModelType model_type = 1; + + // The training budget of creating this model, expressed in milli node + // hours i.e. 1,000 value in this field means 1 node hour. The actual + // metadata.costMilliNodeHours will be equal or less than this value. + // If further model training ceases to provide any improvements, it will + // stop without using the full budget and the metadata.successfulStopReason + // will be `model-converged`. + // Note, node_hour = actual_hour * number_of_nodes_involved. + // For modelType `cloud`(default), the budget must be between 20,000 + // and 900,000 milli node hours, inclusive. The default value is 216,000 + // which represents one day in wall time, considering 9 nodes are used. + // For model types `mobile-tf-low-latency-1`, `mobile-tf-versatile-1`, + // `mobile-tf-high-accuracy-1` + // the training budget must be between 1,000 and 100,000 milli node hours, + // inclusive. The default value is 24,000 which represents one day in + // wall time on a single node that is used. + int64 budget_milli_node_hours = 2; + + // Use the entire training budget. This disables the early stopping feature. + // When false the early stopping feature is enabled, which means that AutoML + // Image Object Detection might stop training before the entire training + // budget has been used. + bool disable_early_stopping = 3; +} + +message AutoMlImageObjectDetectionMetadata { + enum SuccessfulStopReason { + // Should not be set. + SUCCESSFUL_STOP_REASON_UNSPECIFIED = 0; + + // The inputs.budgetMilliNodeHours had been reached. + BUDGET_REACHED = 1; + + // Further training of the Model ceased to increase its quality, since it + // already has converged. + MODEL_CONVERGED = 2; + } + + // The actual training cost of creating this model, expressed in + // milli node hours, i.e. 1,000 value in this field means 1 node hour. + // Guaranteed to not exceed inputs.budgetMilliNodeHours. + int64 cost_milli_node_hours = 1; + + // For successful job completions, this is the reason why the job has + // finished. + SuccessfulStopReason successful_stop_reason = 2; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_segmentation.proto b/third_party/googleapis/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_segmentation.proto new file mode 100644 index 000000000..2747b2968 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_image_segmentation.proto @@ -0,0 +1,103 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1.schema.trainingjob.definition; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/trainingjob/definition;definition"; +option java_multiple_files = true; +option java_outer_classname = "AutoMLImageSegmentationProto"; +option java_package = "com.google.cloud.aiplatform.v1.schema.trainingjob.definition"; + +// A TrainingJob that trains and uploads an AutoML Image Segmentation Model. +message AutoMlImageSegmentation { + // The input parameters of this TrainingJob. + AutoMlImageSegmentationInputs inputs = 1; + + // The metadata information. + AutoMlImageSegmentationMetadata metadata = 2; +} + +message AutoMlImageSegmentationInputs { + enum ModelType { + // Should not be set. + MODEL_TYPE_UNSPECIFIED = 0; + + // A model to be used via prediction calls to uCAIP API. Expected + // to have a higher latency, but should also have a higher prediction + // quality than other models. + CLOUD_HIGH_ACCURACY_1 = 1; + + // A model to be used via prediction calls to uCAIP API. Expected + // to have a lower latency but relatively lower prediction quality. + CLOUD_LOW_ACCURACY_1 = 2; + + // A model that, in addition to being available within Google + // Cloud, can also be exported (see ModelService.ExportModel) as TensorFlow + // model and used on a mobile or edge device afterwards. + // Expected to have low latency, but may have lower prediction + // quality than other mobile models. + MOBILE_TF_LOW_LATENCY_1 = 3; + } + + ModelType model_type = 1; + + // The training budget of creating this model, expressed in milli node + // hours i.e. 1,000 value in this field means 1 node hour. The actual + // metadata.costMilliNodeHours will be equal or less than this value. + // If further model training ceases to provide any improvements, it will + // stop without using the full budget and the metadata.successfulStopReason + // will be `model-converged`. + // Note, node_hour = actual_hour * number_of_nodes_involved. Or + // actaul_wall_clock_hours = train_budget_milli_node_hours / + // (number_of_nodes_involved * 1000) + // For modelType `cloud-high-accuracy-1`(default), the budget must be between + // 20,000 and 2,000,000 milli node hours, inclusive. The default value is + // 192,000 which represents one day in wall time + // (1000 milli * 24 hours * 8 nodes). + int64 budget_milli_node_hours = 2; + + // The ID of the `base` model. If it is specified, the new model will be + // trained based on the `base` model. Otherwise, the new model will be + // trained from scratch. The `base` model must be in the same + // Project and Location as the new Model to train, and have the same + // modelType. + string base_model_id = 3; +} + +message AutoMlImageSegmentationMetadata { + enum SuccessfulStopReason { + // Should not be set. + SUCCESSFUL_STOP_REASON_UNSPECIFIED = 0; + + // The inputs.budgetMilliNodeHours had been reached. + BUDGET_REACHED = 1; + + // Further training of the Model ceased to increase its quality, since it + // already has converged. + MODEL_CONVERGED = 2; + } + + // The actual training cost of creating this model, expressed in + // milli node hours, i.e. 1,000 value in this field means 1 node hour. + // Guaranteed to not exceed inputs.budgetMilliNodeHours. + int64 cost_milli_node_hours = 1; + + // For successful job completions, this is the reason why the job has + // finished. + SuccessfulStopReason successful_stop_reason = 2; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_tables.proto b/third_party/googleapis/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_tables.proto new file mode 100644 index 000000000..09ecd2dd7 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_tables.proto @@ -0,0 +1,278 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1.schema.trainingjob.definition; + +import "google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto"; +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/trainingjob/definition;definition"; +option java_multiple_files = true; +option java_outer_classname = "AutoMLTablesProto"; +option java_package = "com.google.cloud.aiplatform.v1.schema.trainingjob.definition"; + +// A TrainingJob that trains and uploads an AutoML Tables Model. +message AutoMlTables { + // The input parameters of this TrainingJob. + AutoMlTablesInputs inputs = 1; + + // The metadata information. + AutoMlTablesMetadata metadata = 2; +} + +message AutoMlTablesInputs { + message Transformation { + // Training pipeline will infer the proper transformation based on the + // statistic of dataset. + message AutoTransformation { + string column_name = 1; + } + + // Training pipeline will perform following transformation functions. + // * The value converted to float32. + // * The z_score of the value. + // * log(value+1) when the value is greater than or equal to 0. Otherwise, + // this transformation is not applied and the value is considered a + // missing value. + // * z_score of log(value+1) when the value is greater than or equal to 0. + // Otherwise, this transformation is not applied and the value is + // considered a missing value. + // * A boolean value that indicates whether the value is valid. + message NumericTransformation { + string column_name = 1; + + // If invalid values is allowed, the training pipeline will create a + // boolean feature that indicated whether the value is valid. + // Otherwise, the training pipeline will discard the input row from + // trainining data. + bool invalid_values_allowed = 2; + } + + // Training pipeline will perform following transformation functions. + // * The categorical string as is--no change to case, punctuation, + // spelling, + // tense, and so on. + // * Convert the category name to a dictionary lookup index and generate an + // embedding for each index. + // * Categories that appear less than 5 times in the training dataset are + // treated as the "unknown" category. The "unknown" category gets its own + // special lookup index and resulting embedding. + message CategoricalTransformation { + string column_name = 1; + } + + // Training pipeline will perform following transformation functions. + // * Apply the transformation functions for Numerical columns. + // * Determine the year, month, day,and weekday. Treat each value from the + // * timestamp as a Categorical column. + // * Invalid numerical values (for example, values that fall outside of a + // typical timestamp range, or are extreme values) receive no special + // treatment and are not removed. + message TimestampTransformation { + string column_name = 1; + + // The format in which that time field is expressed. The time_format must + // either be one of: + // * `unix-seconds` + // * `unix-milliseconds` + // * `unix-microseconds` + // * `unix-nanoseconds` + // (for respectively number of seconds, milliseconds, microseconds and + // nanoseconds since start of the Unix epoch); + // or be written in `strftime` syntax. If time_format is not set, then the + // default format is RFC 3339 `date-time` format, where + // `time-offset` = `"Z"` (e.g. 1985-04-12T23:20:50.52Z) + string time_format = 2; + + // If invalid values is allowed, the training pipeline will create a + // boolean feature that indicated whether the value is valid. + // Otherwise, the training pipeline will discard the input row from + // trainining data. + bool invalid_values_allowed = 3; + } + + // Training pipeline will perform following transformation functions. + // * The text as is--no change to case, punctuation, spelling, tense, and + // so + // on. + // * Tokenize text to words. Convert each words to a dictionary lookup + // index + // and generate an embedding for each index. Combine the embedding of all + // elements into a single embedding using the mean. + // * Tokenization is based on unicode script boundaries. + // * Missing values get their own lookup index and resulting embedding. + // * Stop-words receive no special treatment and are not removed. + message TextTransformation { + string column_name = 1; + } + + // Treats the column as numerical array and performs following + // transformation functions. + // * All transformations for Numerical types applied to the average of the + // all elements. + // * The average of empty arrays is treated as zero. + message NumericArrayTransformation { + string column_name = 1; + + // If invalid values is allowed, the training pipeline will create a + // boolean feature that indicated whether the value is valid. + // Otherwise, the training pipeline will discard the input row from + // trainining data. + bool invalid_values_allowed = 2; + } + + // Treats the column as categorical array and performs following + // transformation functions. + // * For each element in the array, convert the category name to a + // dictionary + // lookup index and generate an embedding for each index. + // Combine the embedding of all elements into a single embedding using + // the mean. + // * Empty arrays treated as an embedding of zeroes. + message CategoricalArrayTransformation { + string column_name = 1; + } + + // Treats the column as text array and performs following transformation + // functions. + // * Concatenate all text values in the array into a single text value + // using + // a space (" ") as a delimiter, and then treat the result as a single + // text value. Apply the transformations for Text columns. + // * Empty arrays treated as an empty text. + message TextArrayTransformation { + string column_name = 1; + } + + // The transformation that the training pipeline will apply to the input + // columns. + oneof transformation_detail { + AutoTransformation auto = 1; + + NumericTransformation numeric = 2; + + CategoricalTransformation categorical = 3; + + TimestampTransformation timestamp = 4; + + TextTransformation text = 5; + + NumericArrayTransformation repeated_numeric = 6; + + CategoricalArrayTransformation repeated_categorical = 7; + + TextArrayTransformation repeated_text = 8; + } + } + + // Additional optimization objective configuration. Required for + // `maximize-precision-at-recall` and `maximize-recall-at-precision`, + // otherwise unused. + oneof additional_optimization_objective_config { + // Required when optimization_objective is "maximize-precision-at-recall". + // Must be between 0 and 1, inclusive. + float optimization_objective_recall_value = 5; + + // Required when optimization_objective is "maximize-recall-at-precision". + // Must be between 0 and 1, inclusive. + float optimization_objective_precision_value = 6; + } + + // The type of prediction the Model is to produce. + // "classification" - Predict one out of multiple target values is + // picked for each row. + // "regression" - Predict a value based on its relation to other values. + // This type is available only to columns that contain + // semantically numeric values, i.e. integers or floating + // point number, even if stored as e.g. strings. + string prediction_type = 1; + + // The column name of the target column that the model is to predict. + string target_column = 2; + + // Each transformation will apply transform function to given input column. + // And the result will be used for training. + // When creating transformation for BigQuery Struct column, the column should + // be flattened using "." as the delimiter. + repeated Transformation transformations = 3; + + // Objective function the model is optimizing towards. The training process + // creates a model that maximizes/minimizes the value of the objective + // function over the validation set. + // + // The supported optimization objectives depend on the prediction type. + // If the field is not set, a default objective function is used. + // + // classification (binary): + // "maximize-au-roc" (default) - Maximize the area under the receiver + // operating characteristic (ROC) curve. + // "minimize-log-loss" - Minimize log loss. + // "maximize-au-prc" - Maximize the area under the precision-recall curve. + // "maximize-precision-at-recall" - Maximize precision for a specified + // recall value. + // "maximize-recall-at-precision" - Maximize recall for a specified + // precision value. + // + // classification (multi-class): + // "minimize-log-loss" (default) - Minimize log loss. + // + // regression: + // "minimize-rmse" (default) - Minimize root-mean-squared error (RMSE). + // "minimize-mae" - Minimize mean-absolute error (MAE). + // "minimize-rmsle" - Minimize root-mean-squared log error (RMSLE). + string optimization_objective = 4; + + // Required. The train budget of creating this model, expressed in milli node + // hours i.e. 1,000 value in this field means 1 node hour. + // + // The training cost of the model will not exceed this budget. The final cost + // will be attempted to be close to the budget, though may end up being (even) + // noticeably smaller - at the backend's discretion. This especially may + // happen when further model training ceases to provide any improvements. + // + // If the budget is set to a value known to be insufficient to train a + // model for the given dataset, the training won't be attempted and + // will error. + // + // The train budget must be between 1,000 and 72,000 milli node hours, + // inclusive. + int64 train_budget_milli_node_hours = 7; + + // Use the entire training budget. This disables the early stopping feature. + // By default, the early stopping feature is enabled, which means that AutoML + // Tables might stop training before the entire training budget has been used. + bool disable_early_stopping = 8; + + // Column name that should be used as the weight column. + // Higher values in this column give more importance to the row + // during model training. The column must have numeric values between 0 and + // 10000 inclusively; 0 means the row is ignored for training. If weight + // column field is not set, then all rows are assumed to have equal weight + // of 1. + string weight_column_name = 9; + + // Configuration for exporting test set predictions to a BigQuery table. If + // this configuration is absent, then the export is not performed. + ExportEvaluatedDataItemsConfig export_evaluated_data_items_config = 10; +} + +// Model metadata specific to AutoML Tables. +message AutoMlTablesMetadata { + // Output only. The actual training cost of the model, expressed in milli + // node hours, i.e. 1,000 value in this field means 1 node hour. Guaranteed + // to not exceed the train budget. + int64 train_cost_milli_node_hours = 1; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_classification.proto b/third_party/googleapis/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_classification.proto new file mode 100644 index 000000000..3f03fcb97 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_classification.proto @@ -0,0 +1,34 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1.schema.trainingjob.definition; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/trainingjob/definition;definition"; +option java_multiple_files = true; +option java_outer_classname = "AutoMLTextClassificationProto"; +option java_package = "com.google.cloud.aiplatform.v1.schema.trainingjob.definition"; + +// A TrainingJob that trains and uploads an AutoML Text Classification Model. +message AutoMlTextClassification { + // The input parameters of this TrainingJob. + AutoMlTextClassificationInputs inputs = 1; +} + +message AutoMlTextClassificationInputs { + bool multi_label = 1; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_extraction.proto b/third_party/googleapis/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_extraction.proto new file mode 100644 index 000000000..9a08edd6e --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_extraction.proto @@ -0,0 +1,34 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1.schema.trainingjob.definition; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/trainingjob/definition;definition"; +option java_multiple_files = true; +option java_outer_classname = "AutoMLTextExtractionProto"; +option java_package = "com.google.cloud.aiplatform.v1.schema.trainingjob.definition"; + +// A TrainingJob that trains and uploads an AutoML Text Extraction Model. +message AutoMlTextExtraction { + // The input parameters of this TrainingJob. + AutoMlTextExtractionInputs inputs = 1; +} + +message AutoMlTextExtractionInputs { + +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_sentiment.proto b/third_party/googleapis/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_sentiment.proto new file mode 100644 index 000000000..2d9120976 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_text_sentiment.proto @@ -0,0 +1,41 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1.schema.trainingjob.definition; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/trainingjob/definition;definition"; +option java_multiple_files = true; +option java_outer_classname = "AutoMLTextSentimentProto"; +option java_package = "com.google.cloud.aiplatform.v1.schema.trainingjob.definition"; + +// A TrainingJob that trains and uploads an AutoML Text Sentiment Model. +message AutoMlTextSentiment { + // The input parameters of this TrainingJob. + AutoMlTextSentimentInputs inputs = 1; +} + +message AutoMlTextSentimentInputs { + // A sentiment is expressed as an integer ordinal, where higher value + // means a more positive sentiment. The range of sentiments that will be used + // is between 0 and sentimentMax (inclusive on both ends), and all the values + // in the range must be represented in the dataset before a model can be + // created. + // Only the Annotations with this sentimentMax will be used for training. + // sentimentMax value must be between 1 and 10 (inclusive). + int32 sentiment_max = 1; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_action_recognition.proto b/third_party/googleapis/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_action_recognition.proto new file mode 100644 index 000000000..8ed75139a --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_action_recognition.proto @@ -0,0 +1,49 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1.schema.trainingjob.definition; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/trainingjob/definition;definition"; +option java_multiple_files = true; +option java_outer_classname = "AutoMLVideoActionRecognitionProto"; +option java_package = "com.google.cloud.aiplatform.v1.schema.trainingjob.definition"; + +// A TrainingJob that trains and uploads an AutoML Video Action Recognition +// Model. +message AutoMlVideoActionRecognition { + // The input parameters of this TrainingJob. + AutoMlVideoActionRecognitionInputs inputs = 1; +} + +message AutoMlVideoActionRecognitionInputs { + enum ModelType { + // Should not be set. + MODEL_TYPE_UNSPECIFIED = 0; + + // A model best tailored to be used within Google Cloud, and which c annot + // be exported. Default. + CLOUD = 1; + + // A model that, in addition to being available within Google Cloud, can + // also be exported (see ModelService.ExportModel) as a TensorFlow or + // TensorFlow Lite model and used on a mobile or edge device afterwards. + MOBILE_VERSATILE_1 = 2; + } + + ModelType model_type = 1; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.proto b/third_party/googleapis/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.proto new file mode 100644 index 000000000..ca94acd18 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.proto @@ -0,0 +1,53 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1.schema.trainingjob.definition; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/trainingjob/definition;definition"; +option java_multiple_files = true; +option java_outer_classname = "AutoMLVideoClassificationProto"; +option java_package = "com.google.cloud.aiplatform.v1.schema.trainingjob.definition"; + +// A TrainingJob that trains and uploads an AutoML Video Classification Model. +message AutoMlVideoClassification { + // The input parameters of this TrainingJob. + AutoMlVideoClassificationInputs inputs = 1; +} + +message AutoMlVideoClassificationInputs { + enum ModelType { + // Should not be set. + MODEL_TYPE_UNSPECIFIED = 0; + + // A model best tailored to be used within Google Cloud, and which cannot + // be exported. Default. + CLOUD = 1; + + // A model that, in addition to being available within Google Cloud, can + // also be exported (see ModelService.ExportModel) as a TensorFlow or + // TensorFlow Lite model and used on a mobile or edge device afterwards. + MOBILE_VERSATILE_1 = 2; + + // A model that, in addition to being available within Google Cloud, can + // also be exported (see ModelService.ExportModel) to a Jetson device + // afterwards. + MOBILE_JETSON_VERSATILE_1 = 3; + } + + ModelType model_type = 1; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.proto b/third_party/googleapis/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.proto new file mode 100644 index 000000000..d7a931119 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.proto @@ -0,0 +1,64 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1.schema.trainingjob.definition; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/trainingjob/definition;definition"; +option java_multiple_files = true; +option java_outer_classname = "AutoMLVideoObjectTrackingProto"; +option java_package = "com.google.cloud.aiplatform.v1.schema.trainingjob.definition"; + +// A TrainingJob that trains and uploads an AutoML Video ObjectTracking Model. +message AutoMlVideoObjectTracking { + // The input parameters of this TrainingJob. + AutoMlVideoObjectTrackingInputs inputs = 1; +} + +message AutoMlVideoObjectTrackingInputs { + enum ModelType { + // Should not be set. + MODEL_TYPE_UNSPECIFIED = 0; + + // A model best tailored to be used within Google Cloud, and which c annot + // be exported. Default. + CLOUD = 1; + + // A model that, in addition to being available within Google Cloud, can + // also be exported (see ModelService.ExportModel) as a TensorFlow or + // TensorFlow Lite model and used on a mobile or edge device afterwards. + MOBILE_VERSATILE_1 = 2; + + // A versatile model that is meant to be exported (see + // ModelService.ExportModel) and used on a Google Coral device. + MOBILE_CORAL_VERSATILE_1 = 3; + + // A model that trades off quality for low latency, to be exported (see + // ModelService.ExportModel) and used on a Google Coral device. + MOBILE_CORAL_LOW_LATENCY_1 = 4; + + // A versatile model that is meant to be exported (see + // ModelService.ExportModel) and used on an NVIDIA Jetson device. + MOBILE_JETSON_VERSATILE_1 = 5; + + // A model that trades off quality for low latency, to be exported (see + // ModelService.ExportModel) and used on an NVIDIA Jetson device. + MOBILE_JETSON_LOW_LATENCY_1 = 6; + } + + ModelType model_type = 1; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto b/third_party/googleapis/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto new file mode 100644 index 000000000..a22461df9 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto @@ -0,0 +1,41 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1.schema.trainingjob.definition; + +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/trainingjob/definition;definition"; +option java_multiple_files = true; +option java_outer_classname = "ExportEvaluatedDataItemsConfigProto"; +option java_package = "com.google.cloud.aiplatform.v1.schema.trainingjob.definition"; + +// Configuration for exporting test set predictions to a BigQuery table. +message ExportEvaluatedDataItemsConfig { + // URI of desired destination BigQuery table. Expected format: + // bq://:: + // + // If not specified, then results are exported to the following auto-created + // BigQuery table: + // + // :export_evaluated_examples__.evaluated_examples + string destination_bigquery_uri = 1; + + // If true and an export destination is specified, then the contents of the + // destination are overwritten. Otherwise, if the export destination already + // exists, then the export operation fails. + bool override_existing_table = 2; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/specialist_pool.proto b/third_party/googleapis/google/cloud/aiplatform/v1/specialist_pool.proto new file mode 100644 index 000000000..2f2900433 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/specialist_pool.proto @@ -0,0 +1,57 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "SpecialistPoolProto"; +option java_package = "com.google.cloud.aiplatform.v1"; + +// SpecialistPool represents customers' own workforce to work on their data +// labeling jobs. It includes a group of specialist managers who are responsible +// for managing the labelers in this pool as well as customers' data labeling +// jobs associated with this pool. +// Customers create specialist pool as well as start data labeling jobs on +// Cloud, managers and labelers work with the jobs using CrowdCompute console. +message SpecialistPool { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/SpecialistPool" + pattern: "projects/{project}/locations/{location}/specialistPools/{specialist_pool}" + }; + + // Required. The resource name of the SpecialistPool. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The user-defined name of the SpecialistPool. + // The name can be up to 128 characters long and can be consist of any UTF-8 + // characters. + // This field should be unique on project-level. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The number of Specialists in this SpecialistPool. + int32 specialist_managers_count = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The email addresses of the specialists in the SpecialistPool. + repeated string specialist_manager_emails = 4; + + // Output only. The resource name of the pending data labeling jobs. + repeated string pending_data_labeling_jobs = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/specialist_pool_service.proto b/third_party/googleapis/google/cloud/aiplatform/v1/specialist_pool_service.proto new file mode 100644 index 000000000..3ac9f3889 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/specialist_pool_service.proto @@ -0,0 +1,209 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1/operation.proto"; +import "google/cloud/aiplatform/v1/specialist_pool.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/field_mask.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "SpecialistPoolServiceProto"; +option java_package = "com.google.cloud.aiplatform.v1"; + +// A service for creating and managing Customer SpecialistPools. +// When customers start Data Labeling jobs, they can reuse/create Specialist +// Pools to bring their own Specialists to label the data. +// Customers can add/remove Managers for the Specialist Pool on Cloud console, +// then Managers will get email notifications to manage Specialists and tasks on +// CrowdCompute console. +service SpecialistPoolService { + option (google.api.default_host) = "aiplatform.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + + // Creates a SpecialistPool. + rpc CreateSpecialistPool(CreateSpecialistPoolRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/specialistPools" + body: "specialist_pool" + }; + option (google.api.method_signature) = "parent,specialist_pool"; + option (google.longrunning.operation_info) = { + response_type: "SpecialistPool" + metadata_type: "CreateSpecialistPoolOperationMetadata" + }; + } + + // Gets a SpecialistPool. + rpc GetSpecialistPool(GetSpecialistPoolRequest) returns (SpecialistPool) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/specialistPools/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists SpecialistPools in a Location. + rpc ListSpecialistPools(ListSpecialistPoolsRequest) returns (ListSpecialistPoolsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/specialistPools" + }; + option (google.api.method_signature) = "parent"; + } + + // Deletes a SpecialistPool as well as all Specialists in the pool. + rpc DeleteSpecialistPool(DeleteSpecialistPoolRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/specialistPools/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteOperationMetadata" + }; + } + + // Updates a SpecialistPool. + rpc UpdateSpecialistPool(UpdateSpecialistPoolRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{specialist_pool.name=projects/*/locations/*/specialistPools/*}" + body: "specialist_pool" + }; + option (google.api.method_signature) = "specialist_pool,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "SpecialistPool" + metadata_type: "UpdateSpecialistPoolOperationMetadata" + }; + } +} + +// Request message for [SpecialistPoolService.CreateSpecialistPool][google.cloud.aiplatform.v1.SpecialistPoolService.CreateSpecialistPool]. +message CreateSpecialistPoolRequest { + // Required. The parent Project name for the new SpecialistPool. + // The form is `projects/{project}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The SpecialistPool to create. + SpecialistPool specialist_pool = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Runtime operation information for +// [SpecialistPoolService.CreateSpecialistPool][google.cloud.aiplatform.v1.SpecialistPoolService.CreateSpecialistPool]. +message CreateSpecialistPoolOperationMetadata { + // The operation generic information. + GenericOperationMetadata generic_metadata = 1; +} + +// Request message for [SpecialistPoolService.GetSpecialistPool][google.cloud.aiplatform.v1.SpecialistPoolService.GetSpecialistPool]. +message GetSpecialistPoolRequest { + // Required. The name of the SpecialistPool resource. + // The form is + // + // `projects/{project}/locations/{location}/specialistPools/{specialist_pool}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/SpecialistPool" + } + ]; +} + +// Request message for [SpecialistPoolService.ListSpecialistPools][google.cloud.aiplatform.v1.SpecialistPoolService.ListSpecialistPools]. +message ListSpecialistPoolsRequest { + // Required. The name of the SpecialistPool's parent resource. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // The standard list page size. + int32 page_size = 2; + + // The standard list page token. + // Typically obtained by [ListSpecialistPoolsResponse.next_page_token][google.cloud.aiplatform.v1.ListSpecialistPoolsResponse.next_page_token] of + // the previous [SpecialistPoolService.ListSpecialistPools][google.cloud.aiplatform.v1.SpecialistPoolService.ListSpecialistPools] call. Return + // first page if empty. + string page_token = 3; + + // Mask specifying which fields to read. FieldMask represents a set of + google.protobuf.FieldMask read_mask = 4; +} + +// Response message for [SpecialistPoolService.ListSpecialistPools][google.cloud.aiplatform.v1.SpecialistPoolService.ListSpecialistPools]. +message ListSpecialistPoolsResponse { + // A list of SpecialistPools that matches the specified filter in the request. + repeated SpecialistPool specialist_pools = 1; + + // The standard List next-page token. + string next_page_token = 2; +} + +// Request message for [SpecialistPoolService.DeleteSpecialistPool][google.cloud.aiplatform.v1.SpecialistPoolService.DeleteSpecialistPool]. +message DeleteSpecialistPoolRequest { + // Required. The resource name of the SpecialistPool to delete. Format: + // `projects/{project}/locations/{location}/specialistPools/{specialist_pool}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/SpecialistPool" + } + ]; + + // If set to true, any specialist managers in this SpecialistPool will also be + // deleted. (Otherwise, the request will only work if the SpecialistPool has + // no specialist managers.) + bool force = 2; +} + +// Request message for [SpecialistPoolService.UpdateSpecialistPool][google.cloud.aiplatform.v1.SpecialistPoolService.UpdateSpecialistPool]. +message UpdateSpecialistPoolRequest { + // Required. The SpecialistPool which replaces the resource on the server. + SpecialistPool specialist_pool = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The update mask applies to the resource. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Runtime operation metadata for +// [SpecialistPoolService.UpdateSpecialistPool][google.cloud.aiplatform.v1.SpecialistPoolService.UpdateSpecialistPool]. +message UpdateSpecialistPoolOperationMetadata { + // Output only. The name of the SpecialistPool to which the specialists are being added. + // Format: + // + // `projects/{project_id}/locations/{location_id}/specialistPools/{specialist_pool}` + string specialist_pool = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/SpecialistPool" + } + ]; + + // The operation generic information. + GenericOperationMetadata generic_metadata = 2; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/study.proto b/third_party/googleapis/google/cloud/aiplatform/v1/study.proto new file mode 100644 index 000000000..7e54aa9b4 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/study.proto @@ -0,0 +1,355 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; +import "google/protobuf/wrappers.proto"; +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "StudyProto"; +option java_package = "com.google.cloud.aiplatform.v1"; + +// A message representing a Trial. A Trial contains a unique set of Parameters +// that has been or will be evaluated, along with the objective metrics got by +// running the Trial. +message Trial { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/Trial" + pattern: "projects/{project}/locations/{location}/studies/{study}/trials/{trial}" + }; + + // A message representing a parameter to be tuned. + message Parameter { + // Output only. The ID of the parameter. The parameter should be defined in + // [StudySpec's Parameters][google.cloud.aiplatform.v1.StudySpec.parameters]. + string parameter_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The value of the parameter. + // `number_value` will be set if a parameter defined in StudySpec is + // in type 'INTEGER', 'DOUBLE' or 'DISCRETE'. + // `string_value` will be set if a parameter defined in StudySpec is + // in type 'CATEGORICAL'. + google.protobuf.Value value = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Describes a Trial state. + enum State { + // The Trial state is unspecified. + STATE_UNSPECIFIED = 0; + + // Indicates that a specific Trial has been requested, but it has not yet + // been suggested by the service. + REQUESTED = 1; + + // Indicates that the Trial has been suggested. + ACTIVE = 2; + + // Indicates that the Trial should stop according to the service. + STOPPING = 3; + + // Indicates that the Trial is completed successfully. + SUCCEEDED = 4; + + // Indicates that the Trial should not be attempted again. + // The service will set a Trial to INFEASIBLE when it's done but missing + // the final_measurement. + INFEASIBLE = 5; + } + + // Output only. The identifier of the Trial assigned by the service. + string id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The detailed state of the Trial. + State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The parameters of the Trial. + repeated Parameter parameters = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The final measurement containing the objective value. + Measurement final_measurement = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the Trial was started. + google.protobuf.Timestamp start_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the Trial's status changed to `SUCCEEDED` or `INFEASIBLE`. + google.protobuf.Timestamp end_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The CustomJob name linked to the Trial. + // It's set for a HyperparameterTuningJob's Trial. + string custom_job = 11 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/CustomJob" + } + ]; +} + +// Represents specification of a Study. +message StudySpec { + // Represents a metric to optimize. + message MetricSpec { + // The available types of optimization goals. + enum GoalType { + // Goal Type will default to maximize. + GOAL_TYPE_UNSPECIFIED = 0; + + // Maximize the goal metric. + MAXIMIZE = 1; + + // Minimize the goal metric. + MINIMIZE = 2; + } + + // Required. The ID of the metric. Must not contain whitespaces and must be unique + // amongst all MetricSpecs. + string metric_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The optimization goal of the metric. + GoalType goal = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // Represents a single parameter to optimize. + message ParameterSpec { + // Value specification for a parameter in `DOUBLE` type. + message DoubleValueSpec { + // Required. Inclusive minimum value of the parameter. + double min_value = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Inclusive maximum value of the parameter. + double max_value = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // Value specification for a parameter in `INTEGER` type. + message IntegerValueSpec { + // Required. Inclusive minimum value of the parameter. + int64 min_value = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Inclusive maximum value of the parameter. + int64 max_value = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // Value specification for a parameter in `CATEGORICAL` type. + message CategoricalValueSpec { + // Required. The list of possible categories. + repeated string values = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // Value specification for a parameter in `DISCRETE` type. + message DiscreteValueSpec { + // Required. A list of possible values. + // The list should be in increasing order and at least 1e-10 apart. + // For instance, this parameter might have possible settings of 1.5, 2.5, + // and 4.0. This list should not contain more than 1,000 values. + repeated double values = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // Represents a parameter spec with condition from its parent parameter. + message ConditionalParameterSpec { + // Represents the spec to match discrete values from parent parameter. + message DiscreteValueCondition { + // Required. Matches values of the parent parameter of 'DISCRETE' type. + // All values must exist in `discrete_value_spec` of parent parameter. + // + // The Epsilon of the value matching is 1e-10. + repeated double values = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // Represents the spec to match integer values from parent parameter. + message IntValueCondition { + // Required. Matches values of the parent parameter of 'INTEGER' type. + // All values must lie in `integer_value_spec` of parent parameter. + repeated int64 values = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // Represents the spec to match categorical values from parent parameter. + message CategoricalValueCondition { + // Required. Matches values of the parent parameter of 'CATEGORICAL' type. + // All values must exist in `categorical_value_spec` of parent + // parameter. + repeated string values = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // A set of parameter values from the parent ParameterSpec's feasible + // space. + oneof parent_value_condition { + // The spec for matching values from a parent parameter of + // `DISCRETE` type. + DiscreteValueCondition parent_discrete_values = 2; + + // The spec for matching values from a parent parameter of `INTEGER` + // type. + IntValueCondition parent_int_values = 3; + + // The spec for matching values from a parent parameter of + // `CATEGORICAL` type. + CategoricalValueCondition parent_categorical_values = 4; + } + + // Required. The spec for a conditional parameter. + ParameterSpec parameter_spec = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // The type of scaling that should be applied to this parameter. + enum ScaleType { + // By default, no scaling is applied. + SCALE_TYPE_UNSPECIFIED = 0; + + // Scales the feasible space to (0, 1) linearly. + UNIT_LINEAR_SCALE = 1; + + // Scales the feasible space logarithmically to (0, 1). The entire + // feasible space must be strictly positive. + UNIT_LOG_SCALE = 2; + + // Scales the feasible space "reverse" logarithmically to (0, 1). The + // result is that values close to the top of the feasible space are spread + // out more than points near the bottom. The entire feasible space must be + // strictly positive. + UNIT_REVERSE_LOG_SCALE = 3; + } + + oneof parameter_value_spec { + // The value spec for a 'DOUBLE' parameter. + DoubleValueSpec double_value_spec = 2; + + // The value spec for an 'INTEGER' parameter. + IntegerValueSpec integer_value_spec = 3; + + // The value spec for a 'CATEGORICAL' parameter. + CategoricalValueSpec categorical_value_spec = 4; + + // The value spec for a 'DISCRETE' parameter. + DiscreteValueSpec discrete_value_spec = 5; + } + + // Required. The ID of the parameter. Must not contain whitespaces and must be unique + // amongst all ParameterSpecs. + string parameter_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // How the parameter should be scaled. + // Leave unset for `CATEGORICAL` parameters. + ScaleType scale_type = 6; + + // A conditional parameter node is active if the parameter's value matches + // the conditional node's parent_value_condition. + // + // If two items in conditional_parameter_specs have the same name, they + // must have disjoint parent_value_condition. + repeated ConditionalParameterSpec conditional_parameter_specs = 10; + } + + // The available search algorithms for the Study. + enum Algorithm { + // The default algorithm used by AI Platform Optimization service. + ALGORITHM_UNSPECIFIED = 0; + + // Simple grid search within the feasible space. To use grid search, + // all parameters must be `INTEGER`, `CATEGORICAL`, or `DISCRETE`. + GRID_SEARCH = 2; + + // Simple random search within the feasible space. + RANDOM_SEARCH = 3; + } + + // Describes the noise level of the repeated observations. + // + // "Noisy" means that the repeated observations with the same Trial parameters + // may lead to different metric evaluations. + enum ObservationNoise { + // The default noise level chosen by the AI Platform service. + OBSERVATION_NOISE_UNSPECIFIED = 0; + + // AI Platform Vizier assumes that the objective function is (nearly) + // perfectly reproducible, and will never repeat the same Trial + // parameters. + LOW = 1; + + // AI Platform Vizier will estimate the amount of noise in metric + // evaluations, it may repeat the same Trial parameters more than once. + HIGH = 2; + } + + // This indicates which measurement to use if/when the service automatically + // selects the final measurement from previously reported intermediate + // measurements. Choose this based on two considerations: + // A) Do you expect your measurements to monotonically improve? + // If so, choose LAST_MEASUREMENT. On the other hand, if you're in a + // situation where your system can "over-train" and you expect the + // performance to get better for a while but then start declining, + // choose BEST_MEASUREMENT. + // B) Are your measurements significantly noisy and/or irreproducible? + // If so, BEST_MEASUREMENT will tend to be over-optimistic, and it + // may be better to choose LAST_MEASUREMENT. + // If both or neither of (A) and (B) apply, it doesn't matter which + // selection type is chosen. + enum MeasurementSelectionType { + // Will be treated as LAST_MEASUREMENT. + MEASUREMENT_SELECTION_TYPE_UNSPECIFIED = 0; + + // Use the last measurement reported. + LAST_MEASUREMENT = 1; + + // Use the best measurement reported. + BEST_MEASUREMENT = 2; + } + + // Required. Metric specs for the Study. + repeated MetricSpec metrics = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The set of parameters to tune. + repeated ParameterSpec parameters = 2 [(google.api.field_behavior) = REQUIRED]; + + // The search algorithm specified for the Study. + Algorithm algorithm = 3; + + // The observation noise level of the study. + // Currently only supported by the Vizier service. Not supported by + // HyperparamterTuningJob or TrainingPipeline. + ObservationNoise observation_noise = 6; + + // Describe which measurement selection type will be used + MeasurementSelectionType measurement_selection_type = 7; +} + +// A message representing a Measurement of a Trial. A Measurement contains +// the Metrics got by executing a Trial using suggested hyperparameter +// values. +message Measurement { + // A message representing a metric in the measurement. + message Metric { + // Output only. The ID of the Metric. The Metric should be defined in + // [StudySpec's Metrics][google.cloud.aiplatform.v1.StudySpec.metrics]. + string metric_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The value for this metric. + double value = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Output only. The number of steps the machine learning model has been trained for. + // Must be non-negative. + int64 step_count = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A list of metrics got by evaluating the objective functions using suggested + // Parameter values. + repeated Metric metrics = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1/training_pipeline.proto b/third_party/googleapis/google/cloud/aiplatform/v1/training_pipeline.proto new file mode 100644 index 000000000..1ede99df0 --- /dev/null +++ b/third_party/googleapis/google/cloud/aiplatform/v1/training_pipeline.proto @@ -0,0 +1,356 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1/encryption_spec.proto"; +import "google/cloud/aiplatform/v1/io.proto"; +import "google/cloud/aiplatform/v1/machine_resources.proto"; +import "google/cloud/aiplatform/v1/manual_batch_tuning_parameters.proto"; +import "google/cloud/aiplatform/v1/model.proto"; +import "google/cloud/aiplatform/v1/pipeline_state.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "TrainingPipelineProto"; +option java_package = "com.google.cloud.aiplatform.v1"; + +// The TrainingPipeline orchestrates tasks associated with training a Model. It +// always executes the training task, and optionally may also +// export data from AI Platform's Dataset which becomes the training input, +// [upload][google.cloud.aiplatform.v1.ModelService.UploadModel] the Model to AI Platform, and evaluate the +// Model. +message TrainingPipeline { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/TrainingPipeline" + pattern: "projects/{project}/locations/{location}/trainingPipelines/{training_pipeline}" + }; + + // Output only. Resource name of the TrainingPipeline. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The user-defined name of this TrainingPipeline. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Specifies AI Platform owned input data that may be used for training the + // Model. The TrainingPipeline's [training_task_definition][google.cloud.aiplatform.v1.TrainingPipeline.training_task_definition] should make + // clear whether this config is used and if there are any special requirements + // on how it should be filled. If nothing about this config is mentioned in + // the [training_task_definition][google.cloud.aiplatform.v1.TrainingPipeline.training_task_definition], then it should be assumed that the + // TrainingPipeline does not depend on this configuration. + InputDataConfig input_data_config = 3; + + // Required. A Google Cloud Storage path to the YAML file that defines the training task + // which is responsible for producing the model artifact, and may also include + // additional auxiliary work. + // The definition files that can be used here are found in + // gs://google-cloud-aiplatform/schema/trainingjob/definition/. + // Note: The URI given on output will be immutable and probably different, + // including the URI scheme, than the one given on input. The output URI will + // point to a location where the user only has a read access. + string training_task_definition = 4 [(google.api.field_behavior) = REQUIRED]; + + // Required. The training task's parameter(s), as specified in the + // [training_task_definition][google.cloud.aiplatform.v1.TrainingPipeline.training_task_definition]'s `inputs`. + google.protobuf.Value training_task_inputs = 5 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The metadata information as specified in the [training_task_definition][google.cloud.aiplatform.v1.TrainingPipeline.training_task_definition]'s + // `metadata`. This metadata is an auxiliary runtime and final information + // about the training task. While the pipeline is running this information is + // populated only at a best effort basis. Only present if the + // pipeline's [training_task_definition][google.cloud.aiplatform.v1.TrainingPipeline.training_task_definition] contains `metadata` object. + google.protobuf.Value training_task_metadata = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Describes the Model that may be uploaded (via [ModelService.UploadModel][google.cloud.aiplatform.v1.ModelService.UploadModel]) + // by this TrainingPipeline. The TrainingPipeline's + // [training_task_definition][google.cloud.aiplatform.v1.TrainingPipeline.training_task_definition] should make clear whether this Model + // description should be populated, and if there are any special requirements + // regarding how it should be filled. If nothing is mentioned in the + // [training_task_definition][google.cloud.aiplatform.v1.TrainingPipeline.training_task_definition], then it should be assumed that this field + // should not be filled and the training task either uploads the Model without + // a need of this information, or that training task does not support + // uploading a Model as part of the pipeline. + // When the Pipeline's state becomes `PIPELINE_STATE_SUCCEEDED` and + // the trained Model had been uploaded into AI Platform, then the + // model_to_upload's resource [name][google.cloud.aiplatform.v1.Model.name] is populated. The Model + // is always uploaded into the Project and Location in which this pipeline + // is. + Model model_to_upload = 7; + + // Output only. The detailed state of the pipeline. + PipelineState state = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Only populated when the pipeline's state is `PIPELINE_STATE_FAILED` or + // `PIPELINE_STATE_CANCELLED`. + google.rpc.Status error = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the TrainingPipeline was created. + google.protobuf.Timestamp create_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the TrainingPipeline for the first time entered the + // `PIPELINE_STATE_RUNNING` state. + google.protobuf.Timestamp start_time = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the TrainingPipeline entered any of the following states: + // `PIPELINE_STATE_SUCCEEDED`, `PIPELINE_STATE_FAILED`, + // `PIPELINE_STATE_CANCELLED`. + google.protobuf.Timestamp end_time = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the TrainingPipeline was most recently updated. + google.protobuf.Timestamp update_time = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The labels with user-defined metadata to organize TrainingPipelines. + // + // Label keys and values can be no longer than 64 characters + // (Unicode codepoints), can only contain lowercase letters, numeric + // characters, underscores and dashes. International characters are allowed. + // + // See https://goo.gl/xmQnxf for more information and examples of labels. + map labels = 15; + + // Customer-managed encryption key spec for a TrainingPipeline. If set, this + // TrainingPipeline will be secured by this key. + // + // Note: Model trained by this TrainingPipeline is also secured by this key if + // [model_to_upload][google.cloud.aiplatform.v1.TrainingPipeline.encryption_spec] is not set separately. + EncryptionSpec encryption_spec = 18; +} + +// Specifies AI Platform owned input data to be used for training, and +// possibly evaluating, the Model. +message InputDataConfig { + // The instructions how the input data should be split between the + // training, validation and test sets. + // If no split type is provided, the [fraction_split][google.cloud.aiplatform.v1.InputDataConfig.fraction_split] is used by default. + oneof split { + // Split based on fractions defining the size of each set. + FractionSplit fraction_split = 2; + + // Split based on the provided filters for each set. + FilterSplit filter_split = 3; + + // Supported only for tabular Datasets. + // + // Split based on a predefined key. + PredefinedSplit predefined_split = 4; + + // Supported only for tabular Datasets. + // + // Split based on the timestamp of the input data pieces. + TimestampSplit timestamp_split = 5; + } + + // Only applicable to Custom and Hyperparameter Tuning TrainingPipelines. + // + // The destination of the training data to be written to. + // + // Supported destination file formats: + // * For non-tabular data: "jsonl". + // * For tabular data: "csv" and "bigquery". + // + // The following AI Platform environment variables are passed to containers + // or python modules of the training task when this field is set: + // + // * AIP_DATA_FORMAT : Exported data format. + // * AIP_TRAINING_DATA_URI : Sharded exported training data uris. + // * AIP_VALIDATION_DATA_URI : Sharded exported validation data uris. + // * AIP_TEST_DATA_URI : Sharded exported test data uris. + oneof destination { + // The Cloud Storage location where the training data is to be + // written to. In the given directory a new directory is created with + // name: + // `dataset---` + // where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. + // All training input data is written into that directory. + // + // The AI Platform environment variables representing Cloud Storage + // data URIs are represented in the Cloud Storage wildcard + // format to support sharded data. e.g.: "gs://.../training-*.jsonl" + // + // * AIP_DATA_FORMAT = "jsonl" for non-tabular data, "csv" for tabular data + // * AIP_TRAINING_DATA_URI = + // + // "gcs_destination/dataset---
+ // + // If not specified, then results are exported to the following auto-created + // BigQuery table: + // + // :export_evaluated_examples__.evaluated_examples + string destination_bigquery_uri = 1; + + // If true and an export destination is specified, then the contents of the + // destination are overwritten. Otherwise, if the export destination already + // exists, then the export operation fails. + bool override_existing_table = 2; +} diff --git a/third_party/googleapis/google/cloud/aiplatform/v1beta1/study.proto b/third_party/googleapis/google/cloud/aiplatform/v1beta1/study.proto index ab2c07f6d..2d0a8f878 100644 --- a/third_party/googleapis/google/cloud/aiplatform/v1beta1/study.proto +++ b/third_party/googleapis/google/cloud/aiplatform/v1beta1/study.proto @@ -21,6 +21,7 @@ import "google/api/resource.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; +import "google/protobuf/wrappers.proto"; import "google/api/annotations.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; @@ -32,6 +33,11 @@ option java_package = "com.google.cloud.aiplatform.v1beta1"; // that has been or will be evaluated, along with the objective metrics got by // running the Trial. message Trial { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/Trial" + pattern: "projects/{project}/locations/{location}/studies/{study}/trials/{trial}" + }; + // A message representing a parameter to be tuned. message Parameter { // Output only. The ID of the parameter. The parameter should be defined in @@ -157,6 +163,52 @@ message StudySpec { repeated double values = 1 [(google.api.field_behavior) = REQUIRED]; } + // Represents a parameter spec with condition from its parent parameter. + message ConditionalParameterSpec { + // Represents the spec to match discrete values from parent parameter. + message DiscreteValueCondition { + // Required. Matches values of the parent parameter of 'DISCRETE' type. + // All values must exist in `discrete_value_spec` of parent parameter. + // + // The Epsilon of the value matching is 1e-10. + repeated double values = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // Represents the spec to match integer values from parent parameter. + message IntValueCondition { + // Required. Matches values of the parent parameter of 'INTEGER' type. + // All values must lie in `integer_value_spec` of parent parameter. + repeated int64 values = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // Represents the spec to match categorical values from parent parameter. + message CategoricalValueCondition { + // Required. Matches values of the parent parameter of 'CATEGORICAL' type. + // All values must exist in `categorical_value_spec` of parent + // parameter. + repeated string values = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // A set of parameter values from the parent ParameterSpec's feasible + // space. + oneof parent_value_condition { + // The spec for matching values from a parent parameter of + // `DISCRETE` type. + DiscreteValueCondition parent_discrete_values = 2; + + // The spec for matching values from a parent parameter of `INTEGER` + // type. + IntValueCondition parent_int_values = 3; + + // The spec for matching values from a parent parameter of + // `CATEGORICAL` type. + CategoricalValueCondition parent_categorical_values = 4; + } + + // Required. The spec for a conditional parameter. + ParameterSpec parameter_spec = 1 [(google.api.field_behavior) = REQUIRED]; + } + // The type of scaling that should be applied to this parameter. enum ScaleType { // By default, no scaling is applied. @@ -197,6 +249,13 @@ message StudySpec { // How the parameter should be scaled. // Leave unset for `CATEGORICAL` parameters. ScaleType scale_type = 6; + + // A conditional parameter node is active if the parameter's value matches + // the conditional node's parent_value_condition. + // + // If two items in conditional_parameter_specs have the same name, they + // must have disjoint parent_value_condition. + repeated ConditionalParameterSpec conditional_parameter_specs = 10; } // The available search algorithms for the Study. @@ -212,6 +271,48 @@ message StudySpec { RANDOM_SEARCH = 3; } + // Describes the noise level of the repeated observations. + // + // "Noisy" means that the repeated observations with the same Trial parameters + // may lead to different metric evaluations. + enum ObservationNoise { + // The default noise level chosen by the AI Platform service. + OBSERVATION_NOISE_UNSPECIFIED = 0; + + // AI Platform Vizier assumes that the objective function is (nearly) + // perfectly reproducible, and will never repeat the same Trial + // parameters. + LOW = 1; + + // AI Platform Vizier will estimate the amount of noise in metric + // evaluations, it may repeat the same Trial parameters more than once. + HIGH = 2; + } + + // This indicates which measurement to use if/when the service automatically + // selects the final measurement from previously reported intermediate + // measurements. Choose this based on two considerations: + // A) Do you expect your measurements to monotonically improve? + // If so, choose LAST_MEASUREMENT. On the other hand, if you're in a + // situation where your system can "over-train" and you expect the + // performance to get better for a while but then start declining, + // choose BEST_MEASUREMENT. + // B) Are your measurements significantly noisy and/or irreproducible? + // If so, BEST_MEASUREMENT will tend to be over-optimistic, and it + // may be better to choose LAST_MEASUREMENT. + // If both or neither of (A) and (B) apply, it doesn't matter which + // selection type is chosen. + enum MeasurementSelectionType { + // Will be treated as LAST_MEASUREMENT. + MEASUREMENT_SELECTION_TYPE_UNSPECIFIED = 0; + + // Use the last measurement reported. + LAST_MEASUREMENT = 1; + + // Use the best measurement reported. + BEST_MEASUREMENT = 2; + } + // Required. Metric specs for the Study. repeated MetricSpec metrics = 1 [(google.api.field_behavior) = REQUIRED]; @@ -220,6 +321,14 @@ message StudySpec { // The search algorithm specified for the Study. Algorithm algorithm = 3; + + // The observation noise level of the study. + // Currently only supported by the Vizier service. Not supported by + // HyperparamterTuningJob or TrainingPipeline. + ObservationNoise observation_noise = 6; + + // Describe which measurement selection type will be used + MeasurementSelectionType measurement_selection_type = 7; } // A message representing a Measurement of a Trial. A Measurement contains diff --git a/third_party/googleapis/google/cloud/aiplatform/v1beta1/training_pipeline.proto b/third_party/googleapis/google/cloud/aiplatform/v1beta1/training_pipeline.proto index 2f21f05bc..26568518e 100644 --- a/third_party/googleapis/google/cloud/aiplatform/v1beta1/training_pipeline.proto +++ b/third_party/googleapis/google/cloud/aiplatform/v1beta1/training_pipeline.proto @@ -18,6 +18,7 @@ package google.cloud.aiplatform.v1beta1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1beta1/encryption_spec.proto"; import "google/cloud/aiplatform/v1beta1/io.proto"; import "google/cloud/aiplatform/v1beta1/machine_resources.proto"; import "google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto"; @@ -79,7 +80,7 @@ message TrainingPipeline { // pipeline's [training_task_definition][google.cloud.aiplatform.v1beta1.TrainingPipeline.training_task_definition] contains `metadata` object. google.protobuf.Value training_task_metadata = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Describes the Model that may be uploaded (via [ModelService.UploadMode][]) + // Describes the Model that may be uploaded (via [ModelService.UploadModel][google.cloud.aiplatform.v1beta1.ModelService.UploadModel]) // by this TrainingPipeline. The TrainingPipeline's // [training_task_definition][google.cloud.aiplatform.v1beta1.TrainingPipeline.training_task_definition] should make clear whether this Model // description should be populated, and if there are any special requirements @@ -125,6 +126,13 @@ message TrainingPipeline { // // See https://goo.gl/xmQnxf for more information and examples of labels. map labels = 15; + + // Customer-managed encryption key spec for a TrainingPipeline. If set, this + // TrainingPipeline will be secured by this key. + // + // Note: Model trained by this TrainingPipeline is also secured by this key if + // [model_to_upload][google.cloud.aiplatform.v1beta1.TrainingPipeline.encryption_spec] is not set separately. + EncryptionSpec encryption_spec = 18; } // Specifies AI Platform owned input data to be used for training, and @@ -153,27 +161,67 @@ message InputDataConfig { // Only applicable to Custom and Hyperparameter Tuning TrainingPipelines. // - // The destination of the input data to be written to. + // The destination of the training data to be written to. + // + // Supported destination file formats: + // * For non-tabular data: "jsonl". + // * For tabular data: "csv" and "bigquery". // - // Following AI Platform environment variables will be passed to containers + // The following AI Platform environment variables are passed to containers // or python modules of the training task when this field is set: // - // * AIP_DATA_FORMAT : Exported data format. Supported formats: "jsonl". + // * AIP_DATA_FORMAT : Exported data format. // * AIP_TRAINING_DATA_URI : Sharded exported training data uris. // * AIP_VALIDATION_DATA_URI : Sharded exported validation data uris. // * AIP_TEST_DATA_URI : Sharded exported test data uris. oneof destination { - // The Google Cloud Storage location. + // The Cloud Storage location where the training data is to be + // written to. In the given directory a new directory is created with + // name: + // `dataset---` + // where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format. + // All training input data is written into that directory. + // + // The AI Platform environment variables representing Cloud Storage + // data URIs are represented in the Cloud Storage wildcard + // format to support sharded data. e.g.: "gs://.../training-*.jsonl" + // + // * AIP_DATA_FORMAT = "jsonl" for non-tabular data, "csv" for tabular data + // * AIP_TRAINING_DATA_URI = // - // The AI Platform environment variables representing Google Cloud Storage - // data URIs will always be represented in the Google Cloud Storage wildcard - // format to support sharded data. e.g.: "gs://.../training-* + // "gcs_destination/dataset---
- google.protobuf.FieldMask update_mask = 4 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.FieldMask update_mask = 4 + [(google.api.field_behavior) = REQUIRED]; // Optional. A unique id used to identify the request. If the server - // receives two [UpdateClusterRequest][google.cloud.dataproc.v1beta2.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.v1beta2.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). @@ -873,10 +958,11 @@ message DeleteClusterRequest { string cluster_uuid = 4 [(google.api.field_behavior) = OPTIONAL]; // Optional. A unique id used to identify the request. If the server - // receives two [DeleteClusterRequest][google.cloud.dataproc.v1beta2.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.v1beta2.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/third_party/googleapis/google/cloud/dataproc/v1beta2/dataproc.yaml b/third_party/googleapis/google/cloud/dataproc/v1beta2/dataproc.yaml deleted file mode 100644 index af68853d5..000000000 --- a/third_party/googleapis/google/cloud/dataproc/v1beta2/dataproc.yaml +++ /dev/null @@ -1,52 +0,0 @@ -type: google.api.Service -config_version: 2 -name: dataproc.googleapis.com -title: Google Cloud Dataproc API - -apis: -- 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.v1beta2.DiagnoseClusterResults -- name: google.cloud.dataproc.v1beta2.ClusterOperationMetadata -- name: google.cloud.dataproc.v1beta2.WorkflowMetadata - -documentation: - summary: 'Manages Hadoop-based clusters and jobs on Google Cloud Platform.' - -http: - rules: - - selector: google.longrunning.Operations.ListOperations - get: '/v1beta2/{name=projects/*/regions/*/operations}' - - - selector: google.longrunning.Operations.GetOperation - get: '/v1beta2/{name=projects/*/regions/*/operations/*}' - - - selector: google.longrunning.Operations.DeleteOperation - delete: '/v1beta2/{name=projects/*/regions/*/operations/*}' - - - selector: google.longrunning.Operations.CancelOperation - post: '/v1beta2/{name=projects/*/regions/*/operations/*}:cancel' - - - selector: google.iam.v1.IAMPolicy.SetIamPolicy - post: '/v1beta2/{resource=projects/*/regions/*/clusters/*}:setIamPolicy' - body: '*' - - - selector: google.iam.v1.IAMPolicy.GetIamPolicy - get: '/v1beta2/{resource=projects/*/regions/*/clusters/*}:getIamPolicy' - - - selector: google.iam.v1.IAMPolicy.TestIamPermissions - post: '/v1beta2/{resource=projects/*/regions/*/clusters/*}:testIamPermissions' - body: '*' - - -authentication: - rules: - - selector: '*' - oauth: - canonical_scopes: |- - https://www.googleapis.com/auth/cloud-platform - diff --git a/third_party/googleapis/google/cloud/dataproc/v1beta2/dataproc_gapic.legacy.yaml b/third_party/googleapis/google/cloud/dataproc/v1beta2/dataproc_gapic.legacy.yaml deleted file mode 100644 index 33ab4c380..000000000 --- a/third_party/googleapis/google/cloud/dataproc/v1beta2/dataproc_gapic.legacy.yaml +++ /dev/null @@ -1,96 +0,0 @@ -type: com.google.api.codegen.ConfigProto -config_schema_version: 2.0.0 -language_settings: - java: - package_name: com.google.cloud.dataproc.v1beta2 - python: - package_name: google.cloud.dataproc_v1beta2.gapic - go: - package_name: cloud.google.com/go/dataproc/apiv1beta2 - csharp: - package_name: Google.Cloud.Dataproc.V1Beta2 - ruby: - package_name: Google::Cloud::Dataproc::V1beta2 - php: - package_name: Google\Cloud\Dataproc\V1beta2 - nodejs: - package_name: dataproc.v1beta2 - domain_layer_location: google-cloud -interfaces: -- name: google.cloud.dataproc.v1beta2.ClusterController - smoke_test: - method: ListClusters - init_fields: - - project_id=$PROJECT_ID - - region="global" - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - INTERNAL - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: - - UNAVAILABLE - methods: - - name: CreateCluster - retry_codes_name: non_idempotent - - name: UpdateCluster - retry_codes_name: non_idempotent - - name: DeleteCluster - retry_codes_name: non_idempotent - - name: GetCluster - retry_codes_name: idempotent - - name: ListClusters - retry_codes_name: idempotent - - name: DiagnoseCluster - retry_codes_name: non_idempotent -- name: google.cloud.dataproc.v1beta2.JobController - retry_codes_def: - - name: idempotent - retry_codes: - - DEADLINE_EXCEEDED - - INTERNAL - - UNAVAILABLE - - name: non_idempotent - retry_codes: - - UNAVAILABLE - methods: - - name: SubmitJob - retry_codes_name: non_idempotent - - name: GetJob - retry_codes_name: idempotent - - name: ListJobs - retry_codes_name: idempotent - - name: UpdateJob - retry_codes_name: non_idempotent - - name: CancelJob - retry_codes_name: idempotent - - name: DeleteJob - retry_codes_name: non_idempotent -- name: google.cloud.dataproc.v1beta2.WorkflowTemplateService - retry_codes_def: - - name: idempotent - retry_codes: - - DEADLINE_EXCEEDED - - INTERNAL - - UNAVAILABLE - - name: non_idempotent - retry_codes: - - UNAVAILABLE - methods: - - name: CreateWorkflowTemplate - retry_codes_name: non_idempotent - - name: GetWorkflowTemplate - retry_codes_name: idempotent - - name: InstantiateWorkflowTemplate - retry_codes_name: non_idempotent - - name: InstantiateInlineWorkflowTemplate - retry_codes_name: non_idempotent - - name: UpdateWorkflowTemplate - retry_codes_name: non_idempotent - - name: ListWorkflowTemplates - retry_codes_name: idempotent - - name: DeleteWorkflowTemplate - retry_codes_name: non_idempotent diff --git a/third_party/googleapis/google/cloud/dataproc/v1beta2/dataproc_gapic.yaml b/third_party/googleapis/google/cloud/dataproc/v1beta2/dataproc_gapic.yaml index 3e4d4b496..efddce37b 100644 --- a/third_party/googleapis/google/cloud/dataproc/v1beta2/dataproc_gapic.yaml +++ b/third_party/googleapis/google/cloud/dataproc/v1beta2/dataproc_gapic.yaml @@ -1,8 +1,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 language_settings: - java: - package_name: com.google.cloud.dataproc.v1beta2 python: package_name: google.cloud.dataproc_v1beta2.gapic go: diff --git a/third_party/googleapis/google/cloud/dataproc/v1beta2/dataproc_v1beta2.yaml b/third_party/googleapis/google/cloud/dataproc/v1beta2/dataproc_v1beta2.yaml index c7b7a18da..f4d176b36 100644 --- a/third_party/googleapis/google/cloud/dataproc/v1beta2/dataproc_v1beta2.yaml +++ b/third_party/googleapis/google/cloud/dataproc/v1beta2/dataproc_v1beta2.yaml @@ -28,14 +28,14 @@ documentation: Sets the access control policy on the specified resource. Replaces any existing policy. - Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and - PERMISSION_DENIED + Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` + errors. - selector: google.iam.v1.IAMPolicy.TestIamPermissions description: |- Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of - permissions, not a NOT_FOUND error. + permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization diff --git a/third_party/googleapis/google/cloud/dataproc/v1beta2/jobs.proto b/third_party/googleapis/google/cloud/dataproc/v1beta2/jobs.proto index 9d9aaae01..c99f67916 100644 --- a/third_party/googleapis/google/cloud/dataproc/v1beta2/jobs.proto +++ b/third_party/googleapis/google/cloud/dataproc/v1beta2/jobs.proto @@ -224,12 +224,12 @@ message SparkJob { // Spark driver and tasks. repeated string jar_file_uris = 4 [(google.api.field_behavior) = OPTIONAL]; - // Optional. HCFS URIs of files to be copied to the working directory of - // Spark drivers and distributed tasks. Useful for naively parallel tasks. + // Optional. HCFS URIs of files to be placed in the working directory of + // each executor. Useful for naively parallel tasks. repeated string file_uris = 5 [(google.api.field_behavior) = OPTIONAL]; - // Optional. HCFS URIs of archives to be extracted in the working directory - // of Spark drivers and tasks. Supported file types: + // Optional. HCFS URIs of archives to be extracted into the working directory + // of each executor. Supported file types: // .jar, .tar, .tar.gz, .tgz, and .zip. repeated string archive_uris = 6 [(google.api.field_behavior) = OPTIONAL]; @@ -265,11 +265,12 @@ message PySparkJob { // Python driver and tasks. repeated string jar_file_uris = 4 [(google.api.field_behavior) = OPTIONAL]; - // Optional. HCFS URIs of files to be copied to the working directory of - // Python drivers and distributed tasks. Useful for naively parallel tasks. + // Optional. HCFS URIs of files to be placed in the working directory of + // each executor. Useful for naively parallel tasks. repeated string file_uris = 5 [(google.api.field_behavior) = OPTIONAL]; - // Optional. HCFS URIs of archives to be extracted in the working directory of + // Optional. HCFS URIs of archives to be extracted into the working directory + // of each executor. Supported file types: // .jar, .tar, .tar.gz, .tgz, and .zip. repeated string archive_uris = 6 [(google.api.field_behavior) = OPTIONAL]; @@ -414,12 +415,12 @@ message SparkRJob { // occur that causes an incorrect job submission. repeated string args = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. HCFS URIs of files to be copied to the working directory of - // R drivers and distributed tasks. Useful for naively parallel tasks. + // Optional. HCFS URIs of files to be placed in the working directory of + // each executor. Useful for naively parallel tasks. repeated string file_uris = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. HCFS URIs of archives to be extracted in the working directory of - // Spark drivers and tasks. Supported file types: + // Optional. HCFS URIs of archives to be extracted into the working directory + // of each executor. Supported file types: // .jar, .tar, .tar.gz, .tgz, and .zip. repeated string archive_uris = 4 [(google.api.field_behavior) = OPTIONAL]; @@ -562,9 +563,9 @@ message JobStatus { // Encapsulates the full scoping used to reference a job. message JobReference { - // Required. The ID of the Google Cloud Platform project that the job - // belongs to. - string project_id = 1 [(google.api.field_behavior) = REQUIRED]; + // Optional. The ID of the Google Cloud Platform project that the job belongs to. If + // specified, must match the request project ID. + string project_id = 1 [(google.api.field_behavior) = OPTIONAL]; // Optional. The job ID, which must be unique within the project. // The ID must contain only letters (a-z, A-Z), numbers (0-9), diff --git a/third_party/googleapis/google/cloud/dataproc/v1beta2/shared.proto b/third_party/googleapis/google/cloud/dataproc/v1beta2/shared.proto index 130ae554d..ac474aa5a 100644 --- a/third_party/googleapis/google/cloud/dataproc/v1beta2/shared.proto +++ b/third_party/googleapis/google/cloud/dataproc/v1beta2/shared.proto @@ -25,20 +25,17 @@ option java_package = "com.google.cloud.dataproc.v1beta2"; // Cluster components that can be activated. enum Component { - // Unspecified component. + // Unspecified component. Specifying this will cause Cluster creation to fail. COMPONENT_UNSPECIFIED = 0; // The Anaconda python distribution. ANACONDA = 5; - // Docker - DOCKER = 13; - // The Druid query engine. DRUID = 9; - // Flink - FLINK = 14; + // HBase. + HBASE = 11; // The Hive Web HCatalog (the REST service for accessing HCatalog). HIVE_WEBHCAT = 3; diff --git a/third_party/googleapis/google/cloud/dataproc/v1beta2/workflow_templates.proto b/third_party/googleapis/google/cloud/dataproc/v1beta2/workflow_templates.proto index e5ef680bd..48f2f7192 100644 --- a/third_party/googleapis/google/cloud/dataproc/v1beta2/workflow_templates.proto +++ b/third_party/googleapis/google/cloud/dataproc/v1beta2/workflow_templates.proto @@ -23,6 +23,7 @@ import "google/api/resource.proto"; import "google/cloud/dataproc/v1beta2/clusters.proto"; import "google/cloud/dataproc/v1beta2/jobs.proto"; import "google/longrunning/operations.proto"; +import "google/protobuf/duration.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/timestamp.proto"; @@ -35,10 +36,12 @@ option java_package = "com.google.cloud.dataproc.v1beta2"; // Dataproc API. service WorkflowTemplateService { option (google.api.default_host) = "dataproc.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; // Creates new workflow template. - rpc CreateWorkflowTemplate(CreateWorkflowTemplateRequest) returns (WorkflowTemplate) { + rpc CreateWorkflowTemplate(CreateWorkflowTemplateRequest) + returns (WorkflowTemplate) { option (google.api.http) = { post: "/v1beta2/{parent=projects/*/regions/*}/workflowTemplates" body: "template" @@ -54,7 +57,8 @@ 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: "/v1beta2/{name=projects/*/regions/*/workflowTemplates/*}" additional_bindings { @@ -84,7 +88,8 @@ 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: "/v1beta2/{name=projects/*/regions/*/workflowTemplates/*}:instantiate" body: "*" @@ -104,7 +109,8 @@ service WorkflowTemplateService { // Instantiates a template and begins execution. // // This method is equivalent to executing the sequence - // [CreateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.CreateWorkflowTemplate], [InstantiateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.InstantiateWorkflowTemplate], + // [CreateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.CreateWorkflowTemplate], + // [InstantiateWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.InstantiateWorkflowTemplate], // [DeleteWorkflowTemplate][google.cloud.dataproc.v1beta2.WorkflowTemplateService.DeleteWorkflowTemplate]. // // The returned Operation can be used to track execution of @@ -125,7 +131,9 @@ 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: "/v1beta2/{parent=projects/*/locations/*}/workflowTemplates:instantiateInline" body: "template" @@ -143,7 +151,8 @@ 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: "/v1beta2/{template.name=projects/*/regions/*/workflowTemplates/*}" body: "template" @@ -156,7 +165,8 @@ 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: "/v1beta2/{parent=projects/*/regions/*}/workflowTemplates" additional_bindings { @@ -167,7 +177,8 @@ 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: "/v1beta2/{name=projects/*/regions/*/workflowTemplates/*}" additional_bindings { @@ -220,10 +231,12 @@ message WorkflowTemplate { int32 version = 3 [(google.api.field_behavior) = OPTIONAL]; // Output only. The time template was created. - google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time template was last updated. - google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. The labels to associate with this template. These labels // will be propagated to all jobs and clusters created by the workflow @@ -248,7 +261,20 @@ message WorkflowTemplate { // Optional. Template parameters whose values are substituted into the // template. Values for parameters must be provided when the template is // instantiated. - repeated TemplateParameter parameters = 9 [(google.api.field_behavior) = OPTIONAL]; + repeated TemplateParameter parameters = 9 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Timeout duration for the DAG of jobs. You can use "s", "m", "h", + // and "d" suffixes for second, minute, hour, and day duration values, + // respectively. The timeout duration must be from 10 minutes ("10m") to 24 + // hours ("24h" or "1d"). The timer begins when the first job is submitted. If + // the workflow is running at the end of the timeout period, any remaining + // jobs are cancelled, the workflow is terminated, and if the workflow was + // running on a [managed + // cluster](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#configuring_or_selecting_a_cluster), + // the cluster is deleted. + google.protobuf.Duration dag_timeout = 10 + [(google.api.field_behavior) = OPTIONAL]; } // Specifies workflow execution target. @@ -316,8 +342,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.v1beta2.OrderedJob.prerequisite_step_ids] field from other - // steps. + // [prerequisiteStepIds][google.cloud.dataproc.v1beta2.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 @@ -326,23 +352,29 @@ message OrderedJob { // Required. The job definition. oneof job_type { - HadoopJob hadoop_job = 2; + // Optional. Job is a Hadoop job. + HadoopJob hadoop_job = 2 [(google.api.field_behavior) = OPTIONAL]; - SparkJob spark_job = 3; + // Optional. Job is a Spark job. + SparkJob spark_job = 3 [(google.api.field_behavior) = OPTIONAL]; - PySparkJob pyspark_job = 4; + // Optional. Job is a PySpark job. + PySparkJob pyspark_job = 4 [(google.api.field_behavior) = OPTIONAL]; - HiveJob hive_job = 5; + // Optional. Job is a Hive job. + HiveJob hive_job = 5 [(google.api.field_behavior) = OPTIONAL]; - PigJob pig_job = 6; + // Optional. Job is a Pig job. + PigJob pig_job = 6 [(google.api.field_behavior) = OPTIONAL]; - // Spark R job - SparkRJob spark_r_job = 11; + // Optional. Job is a SparkR job. + SparkRJob spark_r_job = 11 [(google.api.field_behavior) = OPTIONAL]; - SparkSqlJob spark_sql_job = 7; + // Optional. Job is a SparkSql job. + SparkSqlJob spark_sql_job = 7 [(google.api.field_behavior) = OPTIONAL]; - // Presto job - PrestoJob presto_job = 12; + // Optional. Job is a Presto job. + PrestoJob presto_job = 12 [(google.api.field_behavior) = OPTIONAL]; } // Optional. The labels to associate with this job. @@ -362,7 +394,8 @@ message OrderedJob { // Optional. The optional list of prerequisite job step_ids. // If not specified, the job will start at the beginning of workflow. - repeated string prerequisite_step_ids = 10 [(google.api.field_behavior) = OPTIONAL]; + repeated string prerequisite_step_ids = 10 + [(google.api.field_behavior) = OPTIONAL]; } // A configurable parameter that replaces one or more fields in the template. @@ -388,10 +421,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: // @@ -498,13 +531,15 @@ message WorkflowMetadata { int32 version = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The create cluster operation metadata. - ClusterOperation create_cluster = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + ClusterOperation create_cluster = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The workflow graph. WorkflowGraph graph = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The delete cluster operation metadata. - ClusterOperation delete_cluster = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + ClusterOperation delete_cluster = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The workflow state. State state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -516,13 +551,35 @@ message WorkflowMetadata { map parameters = 8; // Output only. Workflow start time. - google.protobuf.Timestamp start_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp start_time = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Workflow end time. - google.protobuf.Timestamp end_time = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp end_time = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The UUID of target cluster. string cluster_uuid = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timeout duration for the DAG of jobs. + // Minimum timeout duration is 10 minutes and maximum is 24 hours, expressed + // as a + // [google.protobuf.Duration][https://developers.google.com/protocol-buffers/docs/proto3#json_mapping]. + // For example, "1800" = 1800 seconds/30 minutes duration. + google.protobuf.Duration dag_timeout = 12 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. DAG start time, which is only set for workflows with + // [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout] + // when the DAG begins. + google.protobuf.Timestamp dag_start_time = 13 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. DAG end time, which is only set for workflows with + // [dag_timeout][google.cloud.dataproc.v1beta2.WorkflowMetadata.dag_timeout] + // when the DAG ends. + google.protobuf.Timestamp dag_end_time = 14 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // The cluster operation triggered by a workflow. @@ -571,7 +628,8 @@ message WorkflowNode { string step_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Node's prerequisite nodes. - repeated string prerequisite_step_ids = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + repeated string prerequisite_step_ids = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The job id; populated after the node enters RUNNING state. string job_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -753,7 +811,8 @@ message ListWorkflowTemplatesRequest { // A response to a request to list workflow templates in a project. message ListWorkflowTemplatesResponse { // Output only. WorkflowTemplates list. - repeated WorkflowTemplate templates = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + repeated WorkflowTemplate templates = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. This token is included in the response if there are more // results to fetch. To fetch additional results, provide this value as the diff --git a/third_party/googleapis/google/cloud/dataqna/v1alpha/BUILD.bazel b/third_party/googleapis/google/cloud/dataqna/v1alpha/BUILD.bazel new file mode 100644 index 000000000..887bcd349 --- /dev/null +++ b/third_party/googleapis/google/cloud/dataqna/v1alpha/BUILD.bazel @@ -0,0 +1,349 @@ +# This file was automatically generated by BuildFileGenerator +# https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/bazel + +# Most of the manual changes to this file will be overwritten. +# It's **only** allowed to change the following rule attribute values: +# - names of *_gapic_assembly_* rules +# - certain parameters of *_gapic_library rules, including but not limited to: +# * extra_protoc_parameters +# * extra_protoc_file_parameters +# The complete list of preserved parameters can be found in the source code. + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") +load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info") + +proto_library( + name = "dataqna_proto", + srcs = [ + "annotated_string.proto", + "auto_suggestion_service.proto", + "question.proto", + "question_service.proto", + "user_feedback.proto", + ], + deps = [ + "//google/api:annotations_proto", + "//google/api:client_proto", + "//google/api:field_behavior_proto", + "//google/api:resource_proto", + "//google/rpc:status_proto", + "@com_google_protobuf//:any_proto", + "@com_google_protobuf//:field_mask_proto", + "@com_google_protobuf//:timestamp_proto", + ], +) + +proto_library_with_info( + name = "dataqna_proto_with_info", + deps = [ + ":dataqna_proto", + "//google/cloud:common_resources_proto", + ], +) + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_gapic_assembly_gradle_pkg", + "java_gapic_library", + "java_gapic_test", + "java_grpc_library", + "java_proto_library", +) + +java_proto_library( + name = "dataqna_java_proto", + deps = [":dataqna_proto"], +) + +java_grpc_library( + name = "dataqna_java_grpc", + srcs = [":dataqna_proto"], + deps = [":dataqna_java_proto"], +) + +java_gapic_library( + name = "dataqna_java_gapic", + srcs = [":dataqna_proto_with_info"], + grpc_service_config = "dataqna_grpc_service_config.json", + test_deps = [ + ":dataqna_java_grpc", + ], + deps = [ + ":dataqna_java_proto", + ], +) + +java_gapic_test( + name = "dataqna_java_gapic_test_suite", + test_classes = [ + "com.google.cloud.dataqna.v1alpha.AutoSuggestionServiceClientTest", + "com.google.cloud.dataqna.v1alpha.QuestionServiceClientTest", + ], + runtime_deps = [":dataqna_java_gapic_test"], +) + +# Open Source Packages +java_gapic_assembly_gradle_pkg( + name = "google-cloud-dataqna-v1alpha-java", + deps = [ + ":dataqna_java_gapic", + ":dataqna_java_grpc", + ":dataqna_java_proto", + ":dataqna_proto", + ], +) + +############################################################################## +# Go +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "go_gapic_assembly_pkg", + "go_gapic_library", + "go_proto_library", + "go_test", +) + +go_proto_library( + name = "dataqna_go_proto", + compilers = ["@io_bazel_rules_go//proto:go_grpc"], + importpath = "google.golang.org/genproto/googleapis/cloud/dataqna/v1alpha", + protos = [":dataqna_proto"], + deps = [ + "//google/api:annotations_go_proto", + "//google/rpc:status_go_proto", + ], +) + +go_gapic_library( + name = "dataqna_go_gapic", + srcs = [":dataqna_proto_with_info"], + grpc_service_config = "dataqna_grpc_service_config.json", + importpath = "cloud.google.com/go/dataqna/apiv1alpha;dataqna", + service_yaml = "dataqna_v1alpha.yaml", + deps = [ + ":dataqna_go_proto", + ], +) + +go_test( + name = "dataqna_go_gapic_test", + srcs = [":dataqna_go_gapic_srcjar_test"], + embed = [":dataqna_go_gapic"], + importpath = "cloud.google.com/go/dataqna/apiv1alpha", +) + +# Open Source Packages +go_gapic_assembly_pkg( + name = "gapi-cloud-dataqna-v1alpha-go", + deps = [ + ":dataqna_go_gapic", + ":dataqna_go_gapic_srcjar-test.srcjar", + ":dataqna_go_proto", + ], +) + +############################################################################## +# Python +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "py_gapic_assembly_pkg", + "py_gapic_library", +) + +py_gapic_library( + name = "dataqna_py_gapic", + srcs = [":dataqna_proto"], + grpc_service_config = "dataqna_grpc_service_config.json", +) + +py_gapic_assembly_pkg( + name = "dataqna-v1alpha-py", + deps = [ + ":dataqna_py_gapic", + ], +) + +############################################################################## +# PHP +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "php_gapic_assembly_pkg", + "php_gapic_library", + "php_grpc_library", + "php_proto_library", +) + +php_proto_library( + name = "dataqna_php_proto", + deps = [":dataqna_proto"], +) + +php_grpc_library( + name = "dataqna_php_grpc", + srcs = [":dataqna_proto"], + deps = [":dataqna_php_proto"], +) + +php_gapic_library( + name = "dataqna_php_gapic", + src = ":dataqna_proto_with_info", + gapic_yaml = "gapic.yaml", + grpc_service_config = "dataqna_grpc_service_config.json", + package = "google.cloud.dataqna.v1alpha", + service_yaml = "dataqna_v1alpha.yaml", + deps = [ + ":dataqna_php_grpc", + ":dataqna_php_proto", + ], +) + +# Open Source Packages +php_gapic_assembly_pkg( + name = "google-cloud-dataqna-v1alpha-php", + deps = [ + ":dataqna_php_gapic", + ":dataqna_php_grpc", + ":dataqna_php_proto", + ], +) + +############################################################################## +# Node.js +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", +) + +nodejs_gapic_library( + name = "dataqna_nodejs_gapic", + package_name = "@google-cloud/data-qna", + src = ":dataqna_proto_with_info", + extra_protoc_parameters = ["metadata"], + grpc_service_config = "dataqna_grpc_service_config.json", + package = "google.cloud.dataqna.v1alpha", + service_yaml = "dataqna_v1alpha.yaml", + deps = [], +) + +nodejs_gapic_assembly_pkg( + name = "dataqna-v1alpha-nodejs", + deps = [ + ":dataqna_nodejs_gapic", + ":dataqna_proto", + ], +) + +############################################################################## +# Ruby +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "ruby_gapic_assembly_pkg", + "ruby_cloud_gapic_library", + "ruby_grpc_library", + "ruby_proto_library", +) + +ruby_proto_library( + name = "dataqna_ruby_proto", + deps = [":dataqna_proto"], +) + +ruby_grpc_library( + name = "dataqna_ruby_grpc", + srcs = [":dataqna_proto"], + deps = [":dataqna_ruby_proto"], +) + +ruby_cloud_gapic_library( + name = "dataqna_ruby_gapic", + srcs = [":dataqna_proto_with_info",], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-dataqna-v1alpha", + "ruby-cloud-env-prefix=BIGQUERY_DATAQNA", + "ruby-cloud-path-override=data_qn_a=dataqna", + "ruby-cloud-namespace-override=Dataqna=DataQnA", + "ruby-cloud-product-url=https://cloud.google.com/bigquery/docs/dataqna/", + "ruby-cloud-api-id=dataqna.googleapis.com", + "ruby-cloud-api-shortname=dataqna", + ], + grpc_service_config = "dataqna_grpc_service_config.json", + ruby_cloud_description = "Data QnA is a natural language question and answer service for BigQuery data.", + ruby_cloud_title = "BigQuery Data QnA V1alpha", + deps = [ + ":dataqna_ruby_grpc", + ":dataqna_ruby_proto", + ], +) + +# Open Source Packages +ruby_gapic_assembly_pkg( + name = "google-cloud-dataqna-v1alpha-ruby", + deps = [ + ":dataqna_ruby_gapic", + ":dataqna_ruby_grpc", + ":dataqna_ruby_proto", + ], +) + +############################################################################## +# C# +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "csharp_gapic_assembly_pkg", + "csharp_gapic_library", + "csharp_grpc_library", + "csharp_proto_library", +) + +csharp_proto_library( + name = "dataqna_csharp_proto", + deps = [":dataqna_proto"], +) + +csharp_grpc_library( + name = "dataqna_csharp_grpc", + srcs = [":dataqna_proto"], + deps = [":dataqna_csharp_proto"], +) + +csharp_gapic_library( + name = "dataqna_csharp_gapic", + srcs = [":dataqna_proto_with_info"], + common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "dataqna_grpc_service_config.json", + deps = [ + ":dataqna_csharp_grpc", + ":dataqna_csharp_proto", + ], +) + +# Open Source Packages +csharp_gapic_assembly_pkg( + name = "google-cloud-dataqna-v1alpha-csharp", + deps = [ + ":dataqna_csharp_gapic", + ":dataqna_csharp_grpc", + ":dataqna_csharp_proto", + ], +) + +############################################################################## +# C++ +############################################################################## +# Put your C++ rules here diff --git a/third_party/googleapis/google/cloud/dataqna/v1alpha/annotated_string.proto b/third_party/googleapis/google/cloud/dataqna/v1alpha/annotated_string.proto new file mode 100644 index 000000000..d1eb596d1 --- /dev/null +++ b/third_party/googleapis/google/cloud/dataqna/v1alpha/annotated_string.proto @@ -0,0 +1,103 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dataqna.v1alpha; + +option csharp_namespace = "Google.Cloud.DataQnA.V1Alpha"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dataqna/v1alpha;dataqna"; +option java_multiple_files = true; +option java_outer_classname = "AnnotatedStringProto"; +option java_package = "com.google.cloud.dataqna.v1alpha"; +option php_namespace = "Google\\Cloud\\DataQnA\\V1alpha"; +option ruby_package = "Google::Cloud::DataQnA::V1alpha"; + +// Describes string annotation from both semantic and formatting perspectives. +// Example: +// +// User Query: +// +// top countries by population in Africa +// +// 0 4 14 17 28 31 37 +// +// Table Data: +// +// + "country" - dimension +// + "population" - metric +// + "Africa" - value in the "continent" column +// +// text_formatted = `"top countries by population in Africa"` +// +// html_formatted = +// `"top countries by population in Africa"` +// +// ``` +// markups = [ +// {DIMENSION, 4, 12}, // 'countries' +// {METRIC, 17, 26}, // 'population' +// {FILTER, 31, 36} // 'Africa' +// ] +// ``` +// +// Note that html formattings for 'DIMENSION' and 'METRIC' are the same, while +// semantic markups are different. +message AnnotatedString { + // Semantic markup denotes a substring (by index and length) with markup + // information. + message SemanticMarkup { + // The semantic type of the markup substring. + SemanticMarkupType type = 1; + + // Unicode character index of the query. + int32 start_char_index = 2; + + // The length (number of unicode characters) of the markup substring. + int32 length = 3; + } + + // Semantic markup types. + enum SemanticMarkupType { + // No markup type was specified. + MARKUP_TYPE_UNSPECIFIED = 0; + + // Markup for a substring denoting a metric. + METRIC = 1; + + // Markup for a substring denoting a dimension. + DIMENSION = 2; + + // Markup for a substring denoting a filter. + FILTER = 3; + + // Markup for an unused substring. + UNUSED = 4; + + // Markup for a substring containing blocked phrases. + BLOCKED = 5; + + // Markup for a substring that contains terms for row. + ROW = 6; + } + + // Text version of the string. + string text_formatted = 1; + + // HTML version of the string annotation. + string html_formatted = 2; + + // Semantic version of the string annotation. + repeated SemanticMarkup markups = 3; +} diff --git a/third_party/googleapis/google/cloud/dataqna/v1alpha/auto_suggestion_service.proto b/third_party/googleapis/google/cloud/dataqna/v1alpha/auto_suggestion_service.proto new file mode 100644 index 000000000..dc547819a --- /dev/null +++ b/third_party/googleapis/google/cloud/dataqna/v1alpha/auto_suggestion_service.proto @@ -0,0 +1,215 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dataqna.v1alpha; + +import "google/api/annotations.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/dataqna/v1alpha/annotated_string.proto"; +import "google/api/client.proto"; + +option csharp_namespace = "Google.Cloud.DataQnA.V1Alpha"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dataqna/v1alpha;dataqna"; +option java_multiple_files = true; +option java_outer_classname = "AutoSuggestionServiceProto"; +option java_package = "com.google.cloud.dataqna.v1alpha"; +option php_namespace = "Google\\Cloud\\DataQnA\\V1alpha"; +option ruby_package = "Google::Cloud::DataQnA::V1alpha"; + +// This stateless API provides automatic suggestions for natural language +// queries for the data sources in the provided project and location. +// +// The service provides a resourceless operation `suggestQueries` that can be +// called to get a list of suggestions for a given incomplete query and scope +// (or list of scopes) under which the query is to be interpreted. +// +// There are two types of suggestions, ENTITY for single entity suggestions +// and TEMPLATE for full sentences. By default, both types are returned. +// +// Example Request: +// ``` +// GetSuggestions({ +// parent: "locations/us/projects/my-project" +// scopes: +// "//bigquery.googleapis.com/projects/my-project/datasets/my-dataset/tables/my-table" +// query: "top it" +// }) +// ``` +// +// The service will retrieve information based on the given scope(s) and give +// suggestions based on that (e.g. "top item" for "top it" if "item" is a known +// dimension for the provided scope). +// ``` +// suggestions { +// suggestion_info { +// annotated_suggestion { +// text_formatted: "top item by sum of usd_revenue_net" +// markups { +// type: DIMENSION +// start_char_index: 4 +// length: 4 +// } +// markups { +// type: METRIC +// start_char_index: 19 +// length: 15 +// } +// } +// query_matches { +// start_char_index: 0 +// length: 6 +// } +// } +// suggestion_type: TEMPLATE +// ranking_score: 0.9 +// } +// suggestions { +// suggestion_info { +// annotated_suggestion { +// text_formatted: "item" +// markups { +// type: DIMENSION +// start_char_index: 4 +// length: 2 +// } +// } +// query_matches { +// start_char_index: 0 +// length: 6 +// } +// } +// suggestion_type: ENTITY +// ranking_score: 0.8 +// } +// ``` +service AutoSuggestionService { + option (google.api.default_host) = "dataqna.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + + // Gets a list of suggestions based on a prefix string. + // AutoSuggestion tolerance should be less than 1 second. + rpc SuggestQueries(SuggestQueriesRequest) returns (SuggestQueriesResponse) { + option (google.api.http) = { + post: "/v1alpha/{parent=projects/*/locations/*}:suggestQueries" + body: "*" + }; + } +} + +// Request for query suggestions. +message SuggestQueriesRequest { + // Required. The parent of the suggestion query is the resource denoting the project and + // location. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // The scopes to which this search is restricted. The only supported scope + // pattern is + // `//bigquery.googleapis.com/projects/{GCP-PROJECT-ID}/datasets/{DATASET-ID}/tables/{TABLE-ID}`. + repeated string scopes = 2; + + // User query for which to generate suggestions. If the query is empty, zero + // state suggestions are returned. This allows UIs to display suggestions + // right away, helping the user to get a sense of what a query might look + // like. + string query = 3; + + // The requested suggestion type. Multiple suggestion types can be + // requested, but there is no guarantee that the service will return + // suggestions for each type. Suggestions for a requested type might rank + // lower than suggestions for other types and the service may decide to cut + // these suggestions off. + repeated SuggestionType suggestion_types = 4; +} + +// A suggestion for a query with a ranking score. +message Suggestion { + // Detailed information about the suggestion. + SuggestionInfo suggestion_info = 1; + + // The score of the suggestion. This can be used to define ordering in UI. + // The score represents confidence in the suggestion where higher is better. + // All score values must be in the range [0, 1). + double ranking_score = 2; + + // The type of the suggestion. + SuggestionType suggestion_type = 3; +} + +// Detailed information about the suggestion. +message SuggestionInfo { + // MatchInfo describes which part of suggestion matched with data in user + // typed query. This can be used to highlight matching parts in the UI. This + // is different from the annotations provided in annotated_suggestion. The + // annotated_suggestion provides information about the semantic meaning, while + // this provides information about how it relates to the input. + // + // Example: + // user query: `top products` + // + // ``` + // annotated_suggestion { + // text_formatted = "top product_group" + // html_formatted = "top product_group" + // markups { + // {type: TEXT, start_char_index: 0, length: 3} + // {type: DIMENSION, start_char_index: 4, length: 13} + // } + // } + // + // query_matches { + // { start_char_index: 0, length: 3 } + // { start_char_index: 4, length: 7} + // } + // ``` + message MatchInfo { + // Unicode character index of the string annotation. + int32 start_char_index = 1; + + // Count of unicode characters of this substring. + int32 length = 2; + } + + // Annotations for the suggestion. This provides information about which part + // of the suggestion corresponds to what semantic meaning (e.g. a metric). + AnnotatedString annotated_suggestion = 1; + + // Matches between user query and the annotated string. + repeated MatchInfo query_matches = 2; +} + +// Response to SuggestQueries. +message SuggestQueriesResponse { + // A list of suggestions. + repeated Suggestion suggestions = 1; +} + +// The type of suggestion. +enum SuggestionType { + // No suggestiont type is specified. + SUGGESTION_TYPE_UNSPECIFIED = 0; + + // Entity suggestion type. Suggestions are for single entities. + ENTITY = 1; + + // Template suggestion type. Suggestions are for full sentences. + TEMPLATE = 2; +} diff --git a/third_party/googleapis/google/cloud/dataqna/v1alpha/dataqna_grpc_service_config.json b/third_party/googleapis/google/cloud/dataqna/v1alpha/dataqna_grpc_service_config.json new file mode 100644 index 000000000..434d589c6 --- /dev/null +++ b/third_party/googleapis/google/cloud/dataqna/v1alpha/dataqna_grpc_service_config.json @@ -0,0 +1,29 @@ +{ + "methodConfig": [{ + "name": [{ "service": "google.cloud.dataqna.v1alpha.QuestionService" }], + "timeout": "60s", + "retryPolicy": { + "maxAttempts": 5, + "initialBackoff": "1s", + "maxBackoff": "10s", + "backoffMultiplier": 1.3, + "retryableStatusCodes": ["UNAVAILABLE"] + } + }, + { + "name": [ + { "service": "google.cloud.dataqna.v1alpha.QuestionService", + "method": "CreateQuestion"}, + { "service": "google.cloud.dataqna.v1alpha.QuestionService", + "method": "ExecuteQuestion"}, + { "service": "google.cloud.dataqna.v1alpha.QuestionService", + "method": "UpdateUserFeedback"} + ], + "timeout": "60s" + }, + { + "name": [ + { "service": "google.cloud.dataqna.v1alpha.AutoSuggestionService" }], + "timeout": "2s" + }] +} diff --git a/third_party/googleapis/google/cloud/dataqna/v1alpha/dataqna_v1alpha.yaml b/third_party/googleapis/google/cloud/dataqna/v1alpha/dataqna_v1alpha.yaml new file mode 100644 index 000000000..322909472 --- /dev/null +++ b/third_party/googleapis/google/cloud/dataqna/v1alpha/dataqna_v1alpha.yaml @@ -0,0 +1,24 @@ +type: google.api.Service +config_version: 3 +name: dataqna.googleapis.com +title: Data QnA API + +apis: +- name: google.cloud.dataqna.v1alpha.AutoSuggestionService +- name: google.cloud.dataqna.v1alpha.QuestionService + +documentation: + summary: |- + Data QnA is a natural language question and answer service for BigQuery + data. + +authentication: + rules: + - selector: google.cloud.dataqna.v1alpha.AutoSuggestionService.SuggestQueries + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform + - selector: 'google.cloud.dataqna.v1alpha.QuestionService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform diff --git a/third_party/googleapis/google/cloud/dataqna/v1alpha/gapic.yaml b/third_party/googleapis/google/cloud/dataqna/v1alpha/gapic.yaml new file mode 100644 index 000000000..24faf52cf --- /dev/null +++ b/third_party/googleapis/google/cloud/dataqna/v1alpha/gapic.yaml @@ -0,0 +1,16 @@ +type: com.google.api.codegen.ConfigProto +config_schema_version: 2.0.0 +language_settings: + python: + package_name: google.cloud.dataqna_v1alpha.gapic + go: + package_name: google.golang.org/genproto/googleapis/cloud/dataqna/v1alpha;dataqna + csharp: + package_name: Google.Cloud.DataQnA.V1Alpha + ruby: + package_name: Google::Cloud::DataQnA::V1alpha + php: + package_name: Google\Cloud\DataQnA\V1alpha + nodejs: + package_name: dataqna.v1alpha + domain_layer_location: google-cloud diff --git a/third_party/googleapis/google/cloud/dataqna/v1alpha/question.proto b/third_party/googleapis/google/cloud/dataqna/v1alpha/question.proto new file mode 100644 index 000000000..7478adfd7 --- /dev/null +++ b/third_party/googleapis/google/cloud/dataqna/v1alpha/question.proto @@ -0,0 +1,401 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dataqna.v1alpha; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/dataqna/v1alpha/annotated_string.proto"; +import "google/protobuf/any.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Cloud.DataQnA.V1Alpha"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dataqna/v1alpha;dataqna"; +option java_multiple_files = true; +option java_outer_classname = "QuestionProto"; +option java_package = "com.google.cloud.dataqna.v1alpha"; +option php_namespace = "Google\\Cloud\\DataQnA\\V1alpha"; +option ruby_package = "Google::Cloud::DataQnA::V1alpha"; + +// The question resource represents a natural language query, its settings, +// understanding generated by the system, and answer retrieval status. +// A question cannot be modified. +message Question { + option (google.api.resource) = { + type: "dataqna.googleapis.com/Question" + pattern: "projects/{project}/locations/{location}/questions/{question}" + }; + + // Output only. Immutable. The unique identifier for the Question. The ID is server-generated. + // Example: `projects/foo/locations/bar/questions/123` + string name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Required. Immutable. Scopes to be used for the question. A scope defines the relevant data set + // scope. It can be a reference to a specific data source or a collection of + // data sources. Currently, support is limited to a single BigQuery table. + // There must be exactly one `scopes` element. + // + // Example: + // `//bigquery.googleapis.com/projects/test-project/datasets/foo/tables/bar` + repeated string scopes = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Required. Immutable. The query in natural language. + string query = 3 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // A list of annotations to use instead of the default annotation of a data + // source (set in the data source reference resource). There must not be + // more than one annotation with the same data source reference. + repeated string data_source_annotations = 4; + + // An error field explaining why interpretation failed. This is only populated + // if the interpretation failed. + // + // Note: This is different from getting a status error on the request itself. + // This is not a client or server error and the Question resource is still + // persisted, but the service could not interpret the question. Clients should + // present the error to the user so the user can rephrase the question. + InterpretError interpret_error = 5; + + // A list of interpretations for this question. + repeated Interpretation interpretations = 6; + + // Time when the question was created. + google.protobuf.Timestamp create_time = 7; + + // Output only. The e-mail address of the user that created this question. + string user_email = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Input only. Immutable. Flags to request additional information for debugging purposes. + DebugFlags debug_flags = 9 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = INPUT_ONLY + ]; + + // Top level debug information. + // This will be stored as the type DebugInformation. + // Using Any so clients don't need to pull in anything + // inside the debug message. + google.protobuf.Any debug_info = 10; +} + +// Details on the failure to interpret the question. +message InterpretError { + // Details on interpretation failure. + message InterpretErrorDetails { + // Populated if parts of the query are unsupported. + InterpretUnsupportedDetails unsupported_details = 1; + + // Populated if the query is incomplete. + InterpretIncompleteQueryDetails incomplete_query_details = 2; + + // Populated if the query was too ambiguous. + InterpretAmbiguityDetails ambiguity_details = 3; + } + + // Details about unsupported parts in a query. + message InterpretUnsupportedDetails { + // Unsupported operators. For example: median. + repeated string operators = 1; + + // Unsupported intents. + repeated string intent = 2; + } + + // Details about an incomplete query. + message InterpretIncompleteQueryDetails { + // List of missing interpret entities. + repeated InterpretEntity entities = 1; + } + + // Details about a query that was too ambiguous. Currently, the message + // has no fields and its presence signals that there was ambiguity. + message InterpretAmbiguityDetails { + + } + + // The interpret error code provides an error category why the interpretation + // failed. + enum InterpretErrorCode { + // No interpret error code was specified. + INTERPRET_ERROR_CODE_UNSPECIFIED = 0; + + // The query is not valid. + INVALID_QUERY = 1; + + // The interpreter failed to understand the question. For example, because + // it was too ambiguous. + FAILED_TO_UNDERSTAND = 2; + + // The interpreter could understand the question, but was not able to arrive + // at an answer. For example, because a requested operation is not + // supported. + FAILED_TO_ANSWER = 3; + } + + // Error message explaining why this question could not be interpreted. + string message = 1; + + // The code for the error category why the interpretation failed. + InterpretErrorCode code = 2; + + // Details on interpretation failure. + InterpretErrorDetails details = 3; +} + +// Information about the backend status (such as BigQuery) of the execution. +message ExecutionInfo { + // Enum of possible job execution statuses. + enum JobExecutionState { + // No job execution was specified. + JOB_EXECUTION_STATE_UNSPECIFIED = 0; + + // No job execution was requested, yet. + NOT_EXECUTED = 1; + + // The job is running. + RUNNING = 2; + + // The job completed successfully. + SUCCEEDED = 3; + + // The job completed unsuccessfully. + FAILED = 4; + } + + // Status returned by the backend when the job was created. + google.rpc.Status job_creation_status = 1; + + // Status of the job execution. + JobExecutionState job_execution_state = 2; + + // Time when the execution was triggered. + google.protobuf.Timestamp create_time = 3; + + // BigQuery job information. + // Future versions will have different backends. Hence, clients must make sure + // they can handle it when this field is not populated. + BigQueryJob bigquery_job = 4; +} + +// BigQuery job information. This can be used to query the BigQuery API and +// retrieve the current job's status (using +// [jobs.get](https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/get)). +message BigQueryJob { + // The job ID. + string job_id = 1; + + // The project ID of the job. + string project_id = 2; + + // The location where the job is running. + string location = 3; +} + +// An interpretation of a natural language query. +message Interpretation { + // List of data sources used in the current understanding. + repeated string data_sources = 1; + + // The level of confidence that one of the interpretations is correct. This is + // a value in the range [0, 1] where a value of 0.5 or below is to be + // considered a low confidence. + double confidence = 2; + + // A list of unused phrases. Clients should display a Did You Mean (DYM) + // dialog if this is non-empty, even if this is the only interpretation. + repeated string unused_phrases = 3; + + // Human readable representation of the query. + HumanReadable human_readable = 4; + + // Information about the interpretation structure that helps to understand and + // visualize the response. + InterpretationStructure interpretation_structure = 5; + + // Representation of the data query to be sent to the backend. + DataQuery data_query = 6; + + // Information about the backend response. This is populated only if execution + // of an interpretation was requested. + ExecutionInfo execution_info = 7; +} + +// Representation of the data query for the backend. +// This is provided for informational purposes only. Clients should not use +// it to send it to the backend directly, but rather use the `execute` RPC +// to trigger the execution. Using the `execute` RPC is needed in order to +// track the state of a question and report on it correctly to the data +// administrators. +message DataQuery { + // The generated SQL query to be sent to the backend. + string sql = 1; +} + +// Human readable interpretation. +message HumanReadable { + // Generated query explaining the interpretation. + AnnotatedString generated_interpretation = 1; + + // Annotations on the original query. + AnnotatedString original_question = 2; +} + +// Information about the interpretation structure that helps to understand and +// visualize the response. +message InterpretationStructure { + // Information about a column. + message ColumnInfo { + // The alias of the output column as used by the backend. For example, the + // field name in the schema provided in the query response in BigQuery. + string output_alias = 1; + + // Human readable name of the output column. + string display_name = 2; + } + + // Enumeration of visualzation types to use for query response data. + enum VisualizationType { + // No visualization type was specified. + VISUALIZATION_TYPE_UNSPECIFIED = 0; + + // Show a table. + TABLE = 1; + + // Show a [bar + // chart](https://developers.google.com/chart/interactive/docs/gallery/barchart). + BAR_CHART = 2; + + // Show a [column + // chart](https://developers.google.com/chart/interactive/docs/gallery/columnchart). + COLUMN_CHART = 3; + + // Show a + // [timeline](https://developers.google.com/chart/interactive/docs/gallery/timeline). + TIMELINE = 4; + + // Show a [scatter + // plot](https://developers.google.com/chart/interactive/docs/gallery/scatterchart). + SCATTER_PLOT = 5; + + // Show a [pie + // chart](https://developers.google.com/chart/interactive/docs/gallery/piechart). + PIE_CHART = 6; + + // Show a [line + // chart](https://developers.google.com/chart/interactive/docs/gallery/linechart). + LINE_CHART = 7; + + // Show an [area + // chart](https://developers.google.com/chart/interactive/docs/gallery/areachart). + AREA_CHART = 8; + + // Show a [combo + // chart](https://developers.google.com/chart/interactive/docs/gallery/combochart). + COMBO_CHART = 9; + + // Show a + // [histogram](https://developers.google.com/chart/interactive/docs/gallery/histogram). + HISTOGRAM = 10; + + // This denotes queries when the user has not specified the particular type + // of chart and has mentioned only a generic chart name such as "Chart", + // "Plot", "Graph", etc. This will differentiate it from specific charting + // terms such as "Bar chart", "Pie chart", etc. + GENERIC_CHART = 11; + + // The user tried to specify a chart type, but the interpreter could not + // understand the type. The client should display a generic chart and may + // give a hint to the user that the requested type was not understood. + CHART_NOT_UNDERSTOOD = 12; + } + + // List of possible visualization types to apply for this interpretation. The + // order has no relevance. + repeated VisualizationType visualization_types = 1; + + // Information about the output columns, that is, the columns that will be + // returned by the backend. + repeated ColumnInfo column_info = 2; +} + +// Configuriation of debug flags. +message DebugFlags { + // Whether to include the original VAQuery. + bool include_va_query = 1; + + // Whether to include the original nested VAQuery. + bool include_nested_va_query = 2; + + // Whether to include the original human interpretation strings generated + // by Analyza. + bool include_human_interpretation = 3; + + // Whether to include the Aqua debug response. + bool include_aqua_debug_response = 4; + + // The time in milliseconds from Unix epoch to be used + // to process the query. This is useful for testing + // the queries at different time period. + // If not set or time_override <= 0, then the current + // time is used. + int64 time_override = 5; + + // Set to true if request is initiated by an internal Google user. + bool is_internal_google_user = 6; + + // Determines whether cache needs to be ignored. If set to + // true, cache won't be queried and updated. + bool ignore_cache = 7; + + // Whether to include the request/response pair from the call to the + // EntityIndex for SearchEntities. + bool include_search_entities_rpc = 8; + + // Whether to include the request/response pair from the call to the + // Annotations service for ListColumnAnnotations. + bool include_list_column_annotations_rpc = 9; + + // Whether to include the entity list passed to Analyza. + bool include_virtual_analyst_entities = 10; + + // Whether to include the table list. + bool include_table_list = 11; + + // Whether to include the domain list. + bool include_domain_list = 12; +} + +// Query entities of an interpretation. +enum InterpretEntity { + // No interpret entity was specified. + INTERPRET_ENTITY_UNSPECIFIED = 0; + + // A dimenstion entity. + DIMENSION = 1; + + // A metric entity. + METRIC = 2; +} diff --git a/third_party/googleapis/google/cloud/dataqna/v1alpha/question_service.proto b/third_party/googleapis/google/cloud/dataqna/v1alpha/question_service.proto new file mode 100644 index 000000000..d92ac1275 --- /dev/null +++ b/third_party/googleapis/google/cloud/dataqna/v1alpha/question_service.proto @@ -0,0 +1,162 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dataqna.v1alpha; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/dataqna/v1alpha/question.proto"; +import "google/cloud/dataqna/v1alpha/user_feedback.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Cloud.DataQnA.V1Alpha"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dataqna/v1alpha;dataqna"; +option java_multiple_files = true; +option java_outer_classname = "QuestionServiceProto"; +option java_package = "com.google.cloud.dataqna.v1alpha"; +option php_namespace = "Google\\Cloud\\DataQnA\\V1alpha"; +option ruby_package = "Google::Cloud::DataQnA::V1alpha"; + +// Service to interpret natural language queries. +// The service allows to create `Question` resources that are interpreted and +// are filled with one or more interpretations if the question could be +// interpreted. Once a `Question` resource is created and has at least one +// interpretation, an interpretation can be chosen for execution, which +// triggers a query to the backend (for BigQuery, it will create a job). +// Upon successful execution of that interpretation, backend specific +// information will be returned so that the client can retrieve the results +// from the backend. +// +// The `Question` resources are named `projects/*/locations/*/questions/*`. +// +// The `Question` resource has a singletion sub-resource `UserFeedback` named +// `projects/*/locations/*/questions/*/userFeedback`, which allows access to +// user feedback. +service QuestionService { + option (google.api.default_host) = "dataqna.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + + // Gets a previously created question. + rpc GetQuestion(GetQuestionRequest) returns (Question) { + option (google.api.http) = { + get: "/v1alpha/{name=projects/*/locations/*/questions/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a question. + rpc CreateQuestion(CreateQuestionRequest) returns (Question) { + option (google.api.http) = { + post: "/v1alpha/{parent=projects/*/locations/*}/questions" + body: "question" + }; + option (google.api.method_signature) = "parent,question"; + } + + // Executes an interpretation. + rpc ExecuteQuestion(ExecuteQuestionRequest) returns (Question) { + option (google.api.http) = { + post: "/v1alpha/{name=projects/*/locations/*/questions/*}:execute" + body: "*" + }; + option (google.api.method_signature) = "name,interpretation_index"; + } + + // Gets previously created user feedback. + rpc GetUserFeedback(GetUserFeedbackRequest) returns (UserFeedback) { + option (google.api.http) = { + get: "/v1alpha/{name=projects/*/locations/*/questions/*/userFeedback}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates user feedback. This creates user feedback if there was none before + // (upsert). + rpc UpdateUserFeedback(UpdateUserFeedbackRequest) returns (UserFeedback) { + option (google.api.http) = { + patch: "/v1alpha/{user_feedback.name=projects/*/locations/*/questions/*/userFeedback}" + body: "user_feedback" + }; + option (google.api.method_signature) = "user_feedback,update_mask"; + } +} + +// A request to get a previously created question. +message GetQuestionRequest { + // Required. The unique identifier for the question. + // Example: `projects/foo/locations/bar/questions/1234` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dataqna.googleapis.com/Question" + } + ]; + + // The list of fields to be retrieved. + google.protobuf.FieldMask read_mask = 2; +} + +// Request to create a question resource. +message CreateQuestionRequest { + // Required. The name of the project this data source reference belongs to. + // Example: `projects/foo/locations/bar` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The question to create. + Question question = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request to execute an interpretation. +message ExecuteQuestionRequest { + // Required. The unique identifier for the question. + // Example: `projects/foo/locations/bar/questions/1234` + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Index of the interpretation to execute. + int32 interpretation_index = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request to get user feedback. +message GetUserFeedbackRequest { + // Required. The unique identifier for the user feedback. + // User feedback is a singleton resource on a Question. + // Example: `projects/foo/locations/bar/questions/1234/userFeedback` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dataqna.googleapis.com/UserFeedback" + } + ]; +} + +// Request to updates user feedback. +message UpdateUserFeedbackRequest { + // Required. The user feedback to update. This can be called even if there is no + // user feedback so far. + // The feedback's name field is used to identify the user feedback (and the + // corresponding question) to update. + UserFeedback user_feedback = 1 [(google.api.field_behavior) = REQUIRED]; + + // The list of fields to be updated. + google.protobuf.FieldMask update_mask = 2; +} diff --git a/third_party/googleapis/google/cloud/dataqna/v1alpha/user_feedback.proto b/third_party/googleapis/google/cloud/dataqna/v1alpha/user_feedback.proto new file mode 100644 index 000000000..9749d49e7 --- /dev/null +++ b/third_party/googleapis/google/cloud/dataqna/v1alpha/user_feedback.proto @@ -0,0 +1,59 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dataqna.v1alpha; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Cloud.DataQnA.V1Alpha"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dataqna/v1alpha;dataqna"; +option java_multiple_files = true; +option java_outer_classname = "UserFeedbackProto"; +option java_package = "com.google.cloud.dataqna.v1alpha"; +option php_namespace = "Google\\Cloud\\DataQnA\\V1alpha"; +option ruby_package = "Google::Cloud::DataQnA::V1alpha"; + +// Feedback provided by a user. +message UserFeedback { + option (google.api.resource) = { + type: "dataqna.googleapis.com/UserFeedback" + pattern: "projects/{project}/locations/{location}/questions/{question}/userFeedback" + }; + + // Enumeration of feedback ratings. + enum UserFeedbackRating { + // No rating was specified. + USER_FEEDBACK_RATING_UNSPECIFIED = 0; + + // The user provided positive feedback. + POSITIVE = 1; + + // The user provided negative feedback. + NEGATIVE = 2; + } + + // Required. The unique identifier for the user feedback. + // User feedback is a singleton resource on a Question. + // Example: `projects/foo/locations/bar/questions/1234/userFeedback` + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Free form user feedback, such as a text box. + string free_form_feedback = 2; + + // The user feedback rating + UserFeedbackRating rating = 3; +} diff --git a/third_party/googleapis/google/cloud/dialogflow/BUILD.bazel b/third_party/googleapis/google/cloud/dialogflow/BUILD.bazel index a87c57fec..26dec0ead 100644 --- a/third_party/googleapis/google/cloud/dialogflow/BUILD.bazel +++ b/third_party/googleapis/google/cloud/dialogflow/BUILD.bazel @@ -1 +1,13 @@ -exports_files(glob(["*.yaml"])) +package(default_visibility = ["//visibility:public"]) + +exports_files(glob([ + "*.yaml", +])) + +proto_library( + name = "common_resources_proto", + srcs = ["common_resources.proto"], + deps = [ + "//google/api:resource_proto", + ], +) diff --git a/third_party/googleapis/google/cloud/dialogflow/common_resources.proto b/third_party/googleapis/google/cloud/dialogflow/common_resources.proto new file mode 100644 index 000000000..733ad10bf --- /dev/null +++ b/third_party/googleapis/google/cloud/dialogflow/common_resources.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +package google.cloud; + +import "google/api/resource.proto"; + +option (google.api.resource_definition) = { + type: "dialogflow.googleapis.com/ConversationModel" + pattern: "projects/{project}/locations/{location}/conversationModels/{conversation_model}" +}; diff --git a/third_party/googleapis/google/cloud/dialogflow/cx/v3/BUILD.bazel b/third_party/googleapis/google/cloud/dialogflow/cx/v3/BUILD.bazel new file mode 100644 index 000000000..163793142 --- /dev/null +++ b/third_party/googleapis/google/cloud/dialogflow/cx/v3/BUILD.bazel @@ -0,0 +1,384 @@ +# This file was automatically generated by BuildFileGenerator +# https://github.com/googleapis/rules_gapic/tree/master/bazel + +# Most of the manual changes to this file will be overwritten. +# It's **only** allowed to change the following rule attribute values: +# - names of *_gapic_assembly_* rules +# - certain parameters of *_gapic_library rules, including but not limited to: +# * extra_protoc_parameters +# * extra_protoc_file_parameters +# The complete list of preserved parameters can be found in the source code. + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") +load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info") + +proto_library( + name = "cx_proto", + srcs = [ + "agent.proto", + "audio_config.proto", + "entity_type.proto", + "environment.proto", + "experiment.proto", + "flow.proto", + "fulfillment.proto", + "intent.proto", + "page.proto", + "response_message.proto", + "security_settings.proto", + "session.proto", + "session_entity_type.proto", + "test_case.proto", + "transition_route_group.proto", + "validation_message.proto", + "version.proto", + "webhook.proto", + ], + deps = [ + "//google/api:annotations_proto", + "//google/api:client_proto", + "//google/api:field_behavior_proto", + "//google/api:resource_proto", + "//google/longrunning:operations_proto", + "//google/rpc:status_proto", + "//google/type:latlng_proto", + "@com_google_protobuf//:duration_proto", + "@com_google_protobuf//:empty_proto", + "@com_google_protobuf//:field_mask_proto", + "@com_google_protobuf//:struct_proto", + "@com_google_protobuf//:timestamp_proto", + ], +) + +proto_library_with_info( + name = "cx_proto_with_info", + deps = [ + ":cx_proto", + "//google/cloud:common_resources_proto", + ], +) + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_gapic_assembly_gradle_pkg", + "java_gapic_library", + "java_gapic_test", + "java_grpc_library", + "java_proto_library", +) + +java_proto_library( + name = "cx_java_proto", + deps = [":cx_proto"], +) + +java_grpc_library( + name = "cx_java_grpc", + srcs = [":cx_proto"], + deps = [":cx_java_proto"], +) + +java_gapic_library( + name = "cx_java_gapic", + srcs = [":cx_proto_with_info"], + grpc_service_config = "dialogflow_grpc_service_config.json", + test_deps = [ + ":cx_java_grpc", + ], + deps = [ + ":cx_java_proto", + ], +) + +java_gapic_test( + name = "cx_java_gapic_test_suite", + test_classes = [ + "com.google.cloud.dialogflow.cx.v3.AgentsClientTest", + "com.google.cloud.dialogflow.cx.v3.EntityTypesClientTest", + "com.google.cloud.dialogflow.cx.v3.EnvironmentsClientTest", + "com.google.cloud.dialogflow.cx.v3.ExperimentsClientTest", + "com.google.cloud.dialogflow.cx.v3.FlowsClientTest", + "com.google.cloud.dialogflow.cx.v3.IntentsClientTest", + "com.google.cloud.dialogflow.cx.v3.PagesClientTest", + "com.google.cloud.dialogflow.cx.v3.SecuritySettingsServiceClientTest", + "com.google.cloud.dialogflow.cx.v3.SessionEntityTypesClientTest", + "com.google.cloud.dialogflow.cx.v3.SessionsClientTest", + "com.google.cloud.dialogflow.cx.v3.TestCasesClientTest", + "com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupsClientTest", + "com.google.cloud.dialogflow.cx.v3.VersionsClientTest", + "com.google.cloud.dialogflow.cx.v3.WebhooksClientTest", + ], + runtime_deps = [":cx_java_gapic_test"], +) + +# Open Source Packages +java_gapic_assembly_gradle_pkg( + name = "google-cloud-dialogflow-cx-v3-java", + deps = [ + ":cx_java_gapic", + ":cx_java_grpc", + ":cx_java_proto", + ":cx_proto", + ], +) + +############################################################################## +# Go +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "go_gapic_assembly_pkg", + "go_gapic_library", + "go_proto_library", + "go_test", +) + +go_proto_library( + name = "cx_go_proto", + compilers = ["@io_bazel_rules_go//proto:go_grpc"], + importpath = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3", + protos = [":cx_proto"], + deps = [ + "//google/api:annotations_go_proto", + "//google/longrunning:longrunning_go_proto", + "//google/rpc:status_go_proto", + "//google/type:latlng_go_proto", + ], +) + +go_gapic_library( + name = "cx_go_gapic", + srcs = [":cx_proto_with_info"], + grpc_service_config = "dialogflow_grpc_service_config.json", + importpath = "cloud.google.com/go/dialogflow/cx/apiv3;cx", + metadata = True, + service_yaml = "dialogflow_v3.yaml", + deps = [ + ":cx_go_proto", + "//google/longrunning:longrunning_go_proto", + "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", + "@io_bazel_rules_go//proto/wkt:duration_go_proto", + "@io_bazel_rules_go//proto/wkt:struct_go_proto", + ], +) + +go_test( + name = "cx_go_gapic_test", + srcs = [":cx_go_gapic_srcjar_test"], + embed = [":cx_go_gapic"], + importpath = "cloud.google.com/go/dialogflow/cx/apiv3", +) + +# Open Source Packages +go_gapic_assembly_pkg( + name = "gapi-cloud-dialogflow-cx-v3-go", + deps = [ + ":cx_go_gapic", + ":cx_go_gapic_srcjar-metadata.srcjar", + ":cx_go_gapic_srcjar-test.srcjar", + ":cx_go_proto", + ], +) + +############################################################################## +# Python +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "py_gapic_assembly_pkg", + "py_gapic_library", +) + +py_gapic_library( + name = "cx_py_gapic", + srcs = [":cx_proto"], + grpc_service_config = "dialogflow_grpc_service_config.json", + opt_args = [ + "python-gapic-name=dialogflowcx", + "python-gapic-namespace=google.cloud", + ], +) + +# Open Source Packages +py_gapic_assembly_pkg( + name = "dialogflow-cx-v3-py", + deps = [ + ":cx_py_gapic", + ], +) + +############################################################################## +# PHP +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "php_gapic_assembly_pkg", + "php_gapic_library", + "php_grpc_library", + "php_proto_library", +) + +php_proto_library( + name = "cx_php_proto", + deps = [":cx_proto"], +) + +php_grpc_library( + name = "cx_php_grpc", + srcs = [":cx_proto"], + deps = [":cx_php_proto"], +) + +php_gapic_library( + name = "cx_php_gapic", + src = ":cx_proto_with_info", + gapic_yaml = "dialogflow_gapic.yaml", + grpc_service_config = "dialogflow_grpc_service_config.json", + package = "google.cloud.dialogflow.cx.v3", + service_yaml = "dialogflow_v3.yaml", + deps = [ + ":cx_php_grpc", + ":cx_php_proto", + ], +) + +# Open Source Packages +php_gapic_assembly_pkg( + name = "google-cloud-dialogflow-cx-v3-php", + deps = [ + ":cx_php_gapic", + ":cx_php_grpc", + ":cx_php_proto", + ], +) + +############################################################################## +# Node.js +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", +) + +nodejs_gapic_library( + name = "cx_nodejs_gapic", + package_name = "@google-cloud/dialogflow-cx", + src = ":cx_proto_with_info", + extra_protoc_parameters = ["metadata"], + grpc_service_config = "dialogflow_grpc_service_config.json", + package = "google.cloud.dialogflow.cx.v3", + service_yaml = "dialogflow_v3.yaml", + deps = [], +) + +nodejs_gapic_assembly_pkg( + name = "dialogflow-cx-v3-nodejs", + deps = [ + ":cx_nodejs_gapic", + ":cx_proto", + ], +) + +############################################################################## +# Ruby +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "ruby_gapic_assembly_pkg", + "ruby_gapic_library", + "ruby_grpc_library", + "ruby_proto_library", +) + +ruby_proto_library( + name = "cx_ruby_proto", + deps = [":cx_proto"], +) + +ruby_grpc_library( + name = "cx_ruby_grpc", + srcs = [":cx_proto"], + deps = [":cx_ruby_proto"], +) + +ruby_gapic_library( + name = "cx_ruby_gapic", + src = ":cx_proto_with_info", + gapic_yaml = "dialogflow_gapic.yaml", + grpc_service_config = "dialogflow_grpc_service_config.json", + package = "google.cloud.dialogflow.cx.v3", + service_yaml = "dialogflow_v3.yaml", + deps = [ + ":cx_ruby_grpc", + ":cx_ruby_proto", + ], +) + +# Open Source Packages +ruby_gapic_assembly_pkg( + name = "google-cloud-dialogflow-cx-v3-ruby", + deps = [ + ":cx_ruby_gapic", + ":cx_ruby_grpc", + ":cx_ruby_proto", + ], +) + +############################################################################## +# C# +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "csharp_gapic_assembly_pkg", + "csharp_gapic_library", + "csharp_grpc_library", + "csharp_proto_library", +) + +csharp_proto_library( + name = "cx_csharp_proto", + deps = [":cx_proto"], +) + +csharp_grpc_library( + name = "cx_csharp_grpc", + srcs = [":cx_proto"], + deps = [":cx_csharp_proto"], +) + +csharp_gapic_library( + name = "cx_csharp_gapic", + srcs = [":cx_proto_with_info"], + common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "dialogflow_grpc_service_config.json", + deps = [ + ":cx_csharp_grpc", + ":cx_csharp_proto", + ], +) + +# Open Source Packages +csharp_gapic_assembly_pkg( + name = "google-cloud-dialogflow-cx-v3-csharp", + deps = [ + ":cx_csharp_gapic", + ":cx_csharp_grpc", + ":cx_csharp_proto", + ], +) + +############################################################################## +# C++ +############################################################################## +# Put your C++ rules here diff --git a/third_party/googleapis/google/cloud/dialogflow/cx/v3/agent.proto b/third_party/googleapis/google/cloud/dialogflow/cx/v3/agent.proto new file mode 100644 index 000000000..38d89f130 --- /dev/null +++ b/third_party/googleapis/google/cloud/dialogflow/cx/v3/agent.proto @@ -0,0 +1,409 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.cx.v3; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/dialogflow/cx/v3/flow.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx"; +option java_multiple_files = true; +option java_outer_classname = "AgentProto"; +option java_package = "com.google.cloud.dialogflow.cx.v3"; +option objc_class_prefix = "DF"; + +// Service for managing [Agents][google.cloud.dialogflow.cx.v3.Agent]. +service Agents { + option (google.api.default_host) = "dialogflow.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/dialogflow"; + + // Returns the list of all agents in the specified location. + rpc ListAgents(ListAgentsRequest) returns (ListAgentsResponse) { + option (google.api.http) = { + get: "/v3/{parent=projects/*/locations/*}/agents" + }; + option (google.api.method_signature) = "parent"; + } + + // Retrieves the specified agent. + rpc GetAgent(GetAgentRequest) returns (Agent) { + option (google.api.http) = { + get: "/v3/{name=projects/*/locations/*/agents/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates an agent in the specified location. + rpc CreateAgent(CreateAgentRequest) returns (Agent) { + option (google.api.http) = { + post: "/v3/{parent=projects/*/locations/*}/agents" + body: "agent" + }; + option (google.api.method_signature) = "parent,agent"; + } + + // Updates the specified agent. + rpc UpdateAgent(UpdateAgentRequest) returns (Agent) { + option (google.api.http) = { + patch: "/v3/{agent.name=projects/*/locations/*/agents/*}" + body: "agent" + }; + option (google.api.method_signature) = "agent,update_mask"; + } + + // Deletes the specified agent. + rpc DeleteAgent(DeleteAgentRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v3/{name=projects/*/locations/*/agents/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Exports the specified agent to a binary file. + rpc ExportAgent(ExportAgentRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v3/{name=projects/*/locations/*/agents/*}:export" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "ExportAgentResponse" + metadata_type: "google.protobuf.Struct" + }; + } + + // Restores the specified agent from a binary file. + // + // Replaces the current agent with a new one. Note that all existing resources + // in agent (e.g. intents, entity types, flows) will be removed. + rpc RestoreAgent(RestoreAgentRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v3/{name=projects/*/locations/*/agents/*}:restore" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.protobuf.Struct" + }; + } + + // Validates the specified agent and creates or updates validation results. + // The agent in draft version is validated. Please call this API after the + // training is completed to get the complete validation results. + rpc ValidateAgent(ValidateAgentRequest) returns (AgentValidationResult) { + option (google.api.http) = { + post: "/v3/{name=projects/*/locations/*/agents/*}:validate" + body: "*" + }; + } + + // Gets the latest agent validation result. Agent validation is performed + // when ValidateAgent is called. + rpc GetAgentValidationResult(GetAgentValidationResultRequest) returns (AgentValidationResult) { + option (google.api.http) = { + get: "/v3/{name=projects/*/locations/*/agents/*/validationResult}" + }; + option (google.api.method_signature) = "name"; + } +} + +// Settings related to speech recognition. +message SpeechToTextSettings { + // Whether to use speech adaptation for speech recognition. + bool enable_speech_adaptation = 1; +} + +// Agents are best described as Natural Language Understanding (NLU) modules +// that transform user requests into actionable data. You can include agents +// in your app, product, or service to determine user intent and respond to the +// user in a natural way. +// +// After you create an agent, you can add [Intents][google.cloud.dialogflow.cx.v3.Intent], +// [Entity Types][google.cloud.dialogflow.cx.v3.EntityType], [Flows][google.cloud.dialogflow.cx.v3.Flow], [Fulfillments][google.cloud.dialogflow.cx.v3.Fulfillment], +// [Webhooks][google.cloud.dialogflow.cx.v3.Webhook], and so on to manage the conversation flows.. +message Agent { + option (google.api.resource) = { + type: "dialogflow.googleapis.com/Agent" + pattern: "projects/{project}/locations/{location}/agents/{agent}" + }; + + // The unique identifier of the agent. + // Required for the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] method. [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent] + // populates the name automatically. + // Format: `projects//locations//agents/`. + string name = 1; + + // Required. The human-readable name of the agent, unique within the location. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Immutable. The default language of the agent as a language tag. + // See [Language + // Support](https://cloud.google.com/dialogflow/cx/docs/reference/language) + // for a list of the currently supported language codes. + // This field cannot be set by the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] method. + string default_language_code = 3 [(google.api.field_behavior) = IMMUTABLE]; + + // Required. The time zone of the agent from the [time zone + // database](https://www.iana.org/time-zones), e.g., America/New_York, + // Europe/Paris. + string time_zone = 5 [(google.api.field_behavior) = REQUIRED]; + + // The description of the agent. The maximum length is 500 characters. If + // exceeded, the request is rejected. + string description = 6; + + // The URI of the agent's avatar. Avatars are used throughout the Dialogflow + // console and in the self-hosted [Web + // Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo) + // integration. + string avatar_uri = 7; + + // Speech recognition related settings. + SpeechToTextSettings speech_to_text_settings = 13; + + // Immutable. Name of the start flow in this agent. A start flow will be automatically + // created when the agent is created, and can only be deleted by deleting the + // agent. + // Format: `projects//locations//agents//flows/`. + string start_flow = 16 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Flow" + } + ]; + + // Name of the [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] reference for the agent. + // Format: `projects//locations//securitySettings/`. + string security_settings = 17 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/SecuritySettings" + }]; + + // Indicates if stackdriver logging is enabled for the agent. + bool enable_stackdriver_logging = 18; + + // Indicates if automatic spell correction is enabled in detect intent + // requests. + bool enable_spell_correction = 20; +} + +// The request message for [Agents.ListAgents][google.cloud.dialogflow.cx.v3.Agents.ListAgents]. +message ListAgentsRequest { + // Required. The location to list all agents for. + // Format: `projects//locations/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/Agent" + } + ]; + + // The maximum number of items to return in a single page. By default 100 and + // at most 1000. + int32 page_size = 2; + + // The next_page_token value returned from a previous list request. + string page_token = 3; +} + +// The response message for [Agents.ListAgents][google.cloud.dialogflow.cx.v3.Agents.ListAgents]. +message ListAgentsResponse { + // The list of agents. There will be a maximum number of items returned based + // on the page_size field in the request. + repeated Agent agents = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; +} + +// The request message for [Agents.GetAgent][google.cloud.dialogflow.cx.v3.Agents.GetAgent]. +message GetAgentRequest { + // Required. The name of the agent. + // Format: `projects//locations//agents/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Agent" + } + ]; +} + +// The request message for [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent]. +message CreateAgentRequest { + // Required. The location to create a agent for. + // Format: `projects//locations/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/Agent" + } + ]; + + // Required. The agent to create. + Agent agent = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// The request message for [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent]. +message UpdateAgentRequest { + // Required. The agent to update. + Agent agent = 1 [(google.api.field_behavior) = REQUIRED]; + + // The mask to control which fields get updated. If the mask is not present, + // all fields will be updated. + google.protobuf.FieldMask update_mask = 2; +} + +// The request message for [Agents.DeleteAgent][google.cloud.dialogflow.cx.v3.Agents.DeleteAgent]. +message DeleteAgentRequest { + // Required. The name of the agent to delete. + // Format: `projects//locations//agents/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Agent" + } + ]; +} + +// The request message for [Agents.ExportAgent][google.cloud.dialogflow.cx.v3.Agents.ExportAgent]. +message ExportAgentRequest { + // Required. The name of the agent to export. + // Format: `projects//locations//agents/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Agent" + } + ]; + + // Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to + // export the agent to. The format of this URI must be + // `gs:///`. + // If left unspecified, the serialized agent is returned inline. + string agent_uri = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response message for [Agents.ExportAgent][google.cloud.dialogflow.cx.v3.Agents.ExportAgent]. +message ExportAgentResponse { + // The exported agent. + oneof agent { + // The URI to a file containing the exported agent. This field is populated + // only if `agent_uri` is specified in [ExportAgentRequest][google.cloud.dialogflow.cx.v3.ExportAgentRequest]. + string agent_uri = 1; + + // Uncompressed raw byte content for agent. + bytes agent_content = 2; + } +} + +// The request message for [Agents.RestoreAgent][google.cloud.dialogflow.cx.v3.Agents.RestoreAgent]. +message RestoreAgentRequest { + // Restore option. + enum RestoreOption { + // Unspecified. Treated as KEEP. + RESTORE_OPTION_UNSPECIFIED = 0; + + // Always respect the settings from the exported agent file. It may cause + // a restoration failure if some settings (e.g. model type) are not + // supported in the target agent. + KEEP = 1; + + // Fallback to default settings if some settings are not supported in the + // target agent. + FALLBACK = 2; + } + + // Required. The name of the agent to restore into. + // Format: `projects//locations//agents/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Agent" + } + ]; + + // Required. The agent to restore. + oneof agent { + // The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI + // to restore agent from. The format of this URI must be + // `gs:///`. + string agent_uri = 2; + + // Uncompressed raw byte content for agent. + bytes agent_content = 3; + } + + // Agent restore mode. If not specified, `KEEP` is assumed. + RestoreOption restore_option = 5; +} + +// The request message for [Agents.ValidateAgent][google.cloud.dialogflow.cx.v3.Agents.ValidateAgent]. +message ValidateAgentRequest { + // Required. The agent to validate. + // Format: `projects//locations//agents/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Agent" + } + ]; + + // If not specified, the agent's default language is used. + string language_code = 2; +} + +// The request message for [Agents.GetAgentValidationResult][google.cloud.dialogflow.cx.v3.Agents.GetAgentValidationResult]. +message GetAgentValidationResultRequest { + // Required. The agent name. + // Format: `projects//locations//agents//validationResult`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/AgentValidationResult" + } + ]; + + // If not specified, the agent's default language is used. + string language_code = 2; +} + +// The response message for [Agents.GetAgentValidationResult][google.cloud.dialogflow.cx.v3.Agents.GetAgentValidationResult]. +message AgentValidationResult { + option (google.api.resource) = { + type: "dialogflow.googleapis.com/AgentValidationResult" + pattern: "projects/{project}/locations/{location}/agents/{agent}/validationResult" + }; + + // The unique identifier of the agent validation result. + // Format: `projects//locations//agents//validationResult`. + string name = 1; + + // Contains all flow validation results. + repeated FlowValidationResult flow_validation_results = 2; +} diff --git a/third_party/googleapis/google/cloud/dialogflow/cx/v3/audio_config.proto b/third_party/googleapis/google/cloud/dialogflow/cx/v3/audio_config.proto new file mode 100644 index 000000000..dc9c911b9 --- /dev/null +++ b/third_party/googleapis/google/cloud/dialogflow/cx/v3/audio_config.proto @@ -0,0 +1,309 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.cx.v3; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/duration.proto"; +import "google/api/annotations.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx"; +option java_multiple_files = true; +option java_outer_classname = "AudioConfigProto"; +option java_package = "com.google.cloud.dialogflow.cx.v3"; +option objc_class_prefix = "DF"; + +// Information for a word recognized by the speech recognizer. +message SpeechWordInfo { + // The word this info is for. + string word = 3; + + // Time offset relative to the beginning of the audio that corresponds to the + // start of the spoken word. This is an experimental feature and the accuracy + // of the time offset can vary. + google.protobuf.Duration start_offset = 1; + + // Time offset relative to the beginning of the audio that corresponds to the + // end of the spoken word. This is an experimental feature and the accuracy of + // the time offset can vary. + google.protobuf.Duration end_offset = 2; + + // The Speech confidence between 0.0 and 1.0 for this word. A higher number + // indicates an estimated greater likelihood that the recognized word is + // correct. The default of 0.0 is a sentinel value indicating that confidence + // was not set. + // + // This field is not guaranteed to be fully stable over time for the same + // audio input. Users should also not rely on it to always be provided. + float confidence = 4; +} + +// Audio encoding of the audio content sent in the conversational query request. +// Refer to the +// [Cloud Speech API +// documentation](https://cloud.google.com/speech-to-text/docs/basics) for more +// details. +enum AudioEncoding { + // Not specified. + AUDIO_ENCODING_UNSPECIFIED = 0; + + // Uncompressed 16-bit signed little-endian samples (Linear PCM). + AUDIO_ENCODING_LINEAR_16 = 1; + + // [`FLAC`](https://xiph.org/flac/documentation.html) (Free Lossless Audio + // Codec) is the recommended encoding because it is lossless (therefore + // recognition is not compromised) and requires only about half the + // bandwidth of `LINEAR16`. `FLAC` stream encoding supports 16-bit and + // 24-bit samples, however, not all fields in `STREAMINFO` are supported. + AUDIO_ENCODING_FLAC = 2; + + // 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law. + AUDIO_ENCODING_MULAW = 3; + + // Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000. + AUDIO_ENCODING_AMR = 4; + + // Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000. + AUDIO_ENCODING_AMR_WB = 5; + + // Opus encoded audio frames in Ogg container + // ([OggOpus](https://wiki.xiph.org/OggOpus)). + // `sample_rate_hertz` must be 16000. + AUDIO_ENCODING_OGG_OPUS = 6; + + // Although the use of lossy encodings is not recommended, if a very low + // bitrate encoding is required, `OGG_OPUS` is highly preferred over + // Speex encoding. The [Speex](https://speex.org/) encoding supported by + // Dialogflow API has a header byte in each block, as in MIME type + // `audio/x-speex-with-header-byte`. + // It is a variant of the RTP Speex encoding defined in + // [RFC 5574](https://tools.ietf.org/html/rfc5574). + // The stream is a sequence of blocks, one block per RTP packet. Each block + // starts with a byte containing the length of the block, in bytes, followed + // by one or more frames of Speex data, padded to an integral number of + // bytes (octets) as specified in RFC 5574. In other words, each RTP header + // is replaced with a single byte containing the block length. Only Speex + // wideband is supported. `sample_rate_hertz` must be 16000. + AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE = 7; +} + +// Instructs the speech recognizer on how to process the audio content. +message InputAudioConfig { + // Required. Audio encoding of the audio content to process. + AudioEncoding audio_encoding = 1 [(google.api.field_behavior) = REQUIRED]; + + // Sample rate (in Hertz) of the audio content sent in the query. + // Refer to + // [Cloud Speech API + // documentation](https://cloud.google.com/speech-to-text/docs/basics) for + // more details. + int32 sample_rate_hertz = 2; + + // Optional. If `true`, Dialogflow returns [SpeechWordInfo][google.cloud.dialogflow.cx.v3.SpeechWordInfo] in + // [StreamingRecognitionResult][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult] with information about the recognized speech + // words, e.g. start and end time offsets. If false or unspecified, Speech + // doesn't return any word-level information. + bool enable_word_info = 13; + + // Optional. A list of strings containing words and phrases that the speech + // recognizer should recognize with higher likelihood. + // + // See [the Cloud Speech + // documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-hints) + // for more details. + repeated string phrase_hints = 4; + + // Optional. Which Speech model to select for the given request. Select the + // model best suited to your domain to get best results. If a model is not + // explicitly specified, then we auto-select a model based on the parameters + // in the InputAudioConfig. + // If enhanced speech model is enabled for the agent and an enhanced + // version of the specified model for the language does not exist, then the + // speech is recognized using the standard version of the specified model. + // Refer to + // [Cloud Speech API + // documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model) + // for more details. + string model = 7; + + // Optional. Which variant of the [Speech model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use. + SpeechModelVariant model_variant = 10; + + // Optional. If `false` (default), recognition does not cease until the + // client closes the stream. + // If `true`, the recognizer will detect a single spoken utterance in input + // audio. Recognition ceases when it detects the audio's voice has + // stopped or paused. In this case, once a detected intent is received, the + // client should close the stream and start a new request with a new stream as + // needed. + // Note: This setting is relevant only for streaming methods. + bool single_utterance = 8; +} + +// Variant of the specified [Speech model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use. +// +// See the [Cloud Speech +// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models) +// for which models have different variants. For example, the "phone_call" model +// has both a standard and an enhanced variant. When you use an enhanced model, +// you will generally receive higher quality results than for a standard model. +enum SpeechModelVariant { + // No model variant specified. In this case Dialogflow defaults to + // USE_BEST_AVAILABLE. + SPEECH_MODEL_VARIANT_UNSPECIFIED = 0; + + // Use the best available variant of the [Speech + // model][InputAudioConfig.model] that the caller is eligible for. + // + // Please see the [Dialogflow + // docs](https://cloud.google.com/dialogflow/docs/data-logging) for + // how to make your project eligible for enhanced models. + USE_BEST_AVAILABLE = 1; + + // Use standard model variant even if an enhanced model is available. See the + // [Cloud Speech + // documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models) + // for details about enhanced models. + USE_STANDARD = 2; + + // Use an enhanced model variant: + // + // * If an enhanced variant does not exist for the given + // [model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] and request language, Dialogflow falls + // back to the standard variant. + // + // The [Cloud Speech + // documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models) + // describes which models have enhanced variants. + // + // * If the API caller isn't eligible for enhanced models, Dialogflow returns + // an error. Please see the [Dialogflow + // docs](https://cloud.google.com/dialogflow/docs/data-logging) + // for how to make your project eligible. + USE_ENHANCED = 3; +} + +// Description of which voice to use for speech synthesis. +message VoiceSelectionParams { + // Optional. The name of the voice. If not set, the service will choose a + // voice based on the other parameters such as language_code and + // [ssml_gender][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.ssml_gender]. + // + // For the list of available voices, please refer to [Supported voices and + // languages](https://cloud.google.com/text-to-speech/docs/voices). + string name = 1; + + // Optional. The preferred gender of the voice. If not set, the service will + // choose a voice based on the other parameters such as language_code and + // [name][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a + // voice of the appropriate gender is not available, the synthesizer + // substitutes a voice with a different gender rather than failing the + // request. + SsmlVoiceGender ssml_gender = 2; +} + +// Configuration of how speech should be synthesized. +message SynthesizeSpeechConfig { + // Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal + // native speed supported by the specific voice. 2.0 is twice as fast, and + // 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any + // other values < 0.25 or > 4.0 will return an error. + double speaking_rate = 1; + + // Optional. Speaking pitch, in the range [-20.0, 20.0]. 20 means increase 20 + // semitones from the original pitch. -20 means decrease 20 semitones from the + // original pitch. + double pitch = 2; + + // Optional. Volume gain (in dB) of the normal native volume supported by the + // specific voice, in the range [-96.0, 16.0]. If unset, or set to a value of + // 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB) + // will play at approximately half the amplitude of the normal native signal + // amplitude. A value of +6.0 (dB) will play at approximately twice the + // amplitude of the normal native signal amplitude. We strongly recommend not + // to exceed +10 (dB) as there's usually no effective increase in loudness for + // any value greater than that. + double volume_gain_db = 3; + + // Optional. An identifier which selects 'audio effects' profiles that are + // applied on (post synthesized) text to speech. Effects are applied on top of + // each other in the order they are given. + repeated string effects_profile_id = 5; + + // Optional. The desired voice of the synthesized audio. + VoiceSelectionParams voice = 4; +} + +// Instructs the speech synthesizer how to generate the output audio content. +message OutputAudioConfig { + // Required. Audio encoding of the synthesized audio content. + OutputAudioEncoding audio_encoding = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The synthesis sample rate (in hertz) for this audio. If not + // provided, then the synthesizer will use the default sample rate based on + // the audio encoding. If this is different from the voice's natural sample + // rate, then the synthesizer will honor this request by converting to the + // desired sample rate (which might result in worse audio quality). + int32 sample_rate_hertz = 2; + + // Optional. Configuration of how speech should be synthesized. + SynthesizeSpeechConfig synthesize_speech_config = 3; +} + +// Gender of the voice as described in +// [SSML voice element](https://www.w3.org/TR/speech-synthesis11/#edef_voice). +enum SsmlVoiceGender { + // An unspecified gender, which means that the client doesn't care which + // gender the selected voice will have. + SSML_VOICE_GENDER_UNSPECIFIED = 0; + + // A male voice. + SSML_VOICE_GENDER_MALE = 1; + + // A female voice. + SSML_VOICE_GENDER_FEMALE = 2; + + // A gender-neutral voice. + SSML_VOICE_GENDER_NEUTRAL = 3; +} + +// Audio encoding of the output audio format in Text-To-Speech. +enum OutputAudioEncoding { + // Not specified. + OUTPUT_AUDIO_ENCODING_UNSPECIFIED = 0; + + // Uncompressed 16-bit signed little-endian samples (Linear PCM). + // Audio content returned as LINEAR16 also contains a WAV header. + OUTPUT_AUDIO_ENCODING_LINEAR_16 = 1; + + // MP3 audio at 32kbps. + OUTPUT_AUDIO_ENCODING_MP3 = 2; + + // MP3 audio at 64kbps. + OUTPUT_AUDIO_ENCODING_MP3_64_KBPS = 4; + + // Opus encoded audio wrapped in an ogg container. The result will be a + // file which can be played natively on Android, and in browsers (at least + // Chrome and Firefox). The quality of the encoding is considerably higher + // than MP3 while using approximately the same bitrate. + OUTPUT_AUDIO_ENCODING_OGG_OPUS = 3; + + // 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law. + OUTPUT_AUDIO_ENCODING_MULAW = 5; +} diff --git a/third_party/googleapis/google/cloud/dialogflow/cx/v3/dialogflow_gapic.yaml b/third_party/googleapis/google/cloud/dialogflow/cx/v3/dialogflow_gapic.yaml new file mode 100644 index 000000000..80149b37b --- /dev/null +++ b/third_party/googleapis/google/cloud/dialogflow/cx/v3/dialogflow_gapic.yaml @@ -0,0 +1,20 @@ +type: com.google.api.codegen.ConfigProto +config_schema_version: 2.0.0 +# The settings of generated code in a specific language. +language_settings: + java: + package_name: com.google.cloud.dialogflow.cx.v3 + release_level: GA + python: + package_name: google.cloud.dialogflowcx_v3.gapic + go: + package_name: cloud.google.com/go/cloud/dialogflow/cx/apiv3 + csharp: + package_name: Google.Cloud.Dialogflow.Cx.V3 + ruby: + package_name: Google::Cloud::Dialogflow::Cx::V3 + php: + package_name: Google\Cloud\Dialogflow\Cx\V3 + nodejs: + package_name: dialogflowcx.v3 + domain_layer_location: google-cloud diff --git a/third_party/googleapis/google/cloud/dialogflow/cx/v3/dialogflow_grpc_service_config.json b/third_party/googleapis/google/cloud/dialogflow/cx/v3/dialogflow_grpc_service_config.json new file mode 100644 index 000000000..90a83fc9d --- /dev/null +++ b/third_party/googleapis/google/cloud/dialogflow/cx/v3/dialogflow_grpc_service_config.json @@ -0,0 +1,97 @@ +{ + "methodConfig": [ + { + "name": [ + { + "service": "google.cloud.dialogflow.cx.v3.Agents" + }, + { + "service": "google.cloud.dialogflow.cx.v3.Changelogs" + }, + { + "service": "google.cloud.dialogflow.cx.v3.EntityTypes" + }, + { + "service": "google.cloud.dialogflow.cx.v3.Environments" + }, + { + "service": "google.cloud.dialogflow.cx.v3.Experiments" + }, + { + "service": "google.cloud.dialogflow.cx.v3.Flows" + }, + { + "service": "google.cloud.dialogflow.cx.v3.Fulfillments" + }, + { + "service": "google.cloud.dialogflow.cx.v3.Intents" + }, + { + "service": "google.cloud.dialogflow.cx.v3.Pages" + }, + { + "service": "google.cloud.dialogflow.cx.v3.SecuritySettingsService" + }, + { + "service": "google.cloud.dialogflow.cx.v3.Sessions" + }, + { + "service": "google.cloud.dialogflow.cx.v3.SessionEntityTypes" + }, + { + "service": "google.cloud.dialogflow.cx.v3.TestCases" + }, + { + "service": "google.cloud.dialogflow.cx.v3.TransitionRouteGroups" + }, + { + "service": "google.cloud.dialogflow.cx.v3.Versions" + }, + { + "service": "google.cloud.dialogflow.cx.v3.Webhooks" + }, + { + "service": "google.cloud.dialogflow.cx.v3.Documents" + }, + { + "service": "google.cloud.dialogflow.cx.v3.KnowledgeBases" + } + ], + "timeout": "60s", + "retryPolicy": { + "initialBackoff": "0.100s", + "maxBackoff": "60s", + "backoffMultiplier": 1.3, + "retryableStatusCodes": [ + "UNAVAILABLE" + ] + } + }, + { + "name": [ + { + "service": "google.cloud.dialogflow.cx.v3.Sessions", + "method": "DetectIntent" + } + ], + "timeout": "220s", + "retryPolicy": { + "initialBackoff": "0.100s", + "maxBackoff": "60s", + "backoffMultiplier": 1.3, + "retryableStatusCodes": [ + "UNAVAILABLE" + ] + } + }, + { + "name": [ + { + "service": "google.cloud.dialogflow.cx.v3.Sessions", + "method": "StreamingDetectIntent" + } + ], + "timeout": "220s" + } + ] +} diff --git a/third_party/googleapis/google/cloud/dialogflow/cx/v3/dialogflow_v3.yaml b/third_party/googleapis/google/cloud/dialogflow/cx/v3/dialogflow_v3.yaml new file mode 100644 index 000000000..e303849ac --- /dev/null +++ b/third_party/googleapis/google/cloud/dialogflow/cx/v3/dialogflow_v3.yaml @@ -0,0 +1,187 @@ +type: google.api.Service +config_version: 3 +name: dialogflow.googleapis.com +title: Dialogflow API + +apis: +- name: google.cloud.dialogflow.cx.v3.Agents +- name: google.cloud.dialogflow.cx.v3.EntityTypes +- name: google.cloud.dialogflow.cx.v3.Environments +- name: google.cloud.dialogflow.cx.v3.Experiments +- name: google.cloud.dialogflow.cx.v3.Flows +- name: google.cloud.dialogflow.cx.v3.Intents +- name: google.cloud.dialogflow.cx.v3.Pages +- name: google.cloud.dialogflow.cx.v3.SecuritySettingsService +- name: google.cloud.dialogflow.cx.v3.SessionEntityTypes +- name: google.cloud.dialogflow.cx.v3.Sessions +- name: google.cloud.dialogflow.cx.v3.TestCases +- name: google.cloud.dialogflow.cx.v3.TransitionRouteGroups +- name: google.cloud.dialogflow.cx.v3.Versions +- name: google.cloud.dialogflow.cx.v3.Webhooks + +types: +- name: google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata +- name: google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse +- name: google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata +- name: google.cloud.dialogflow.cx.v3.ExportAgentResponse +- name: google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata +- name: google.cloud.dialogflow.cx.v3.ExportTestCasesResponse +- name: google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata +- name: google.cloud.dialogflow.cx.v3.ImportTestCasesResponse +- name: google.cloud.dialogflow.cx.v3.RunTestCaseMetadata +- name: google.cloud.dialogflow.cx.v3.RunTestCaseResponse +- name: google.cloud.dialogflow.cx.v3.TestError +- name: google.cloud.dialogflow.cx.v3.WebhookRequest +- name: google.cloud.dialogflow.cx.v3.WebhookResponse + +documentation: + summary: |- + Builds conversational interfaces (for example, chatbots, and voice-powered + apps and devices). + overview: |- + Dialogflow is + a natural language understanding platform that makes it easy + to design and integrate a conversational user interface into your mobile + app, web application, device, bot, interactive voice response system, and + so on. Using Dialogflow, you can provide new and engaging ways for + users to interact with your product. + + Dialogflow can analyze multiple types of input from your customers, + including text or audio inputs (like from a phone or voice recording). + It can also respond to your customers in a couple of ways, either through + text or with synthetic speech. + + For more information, see the + [Dialogflow documentation](https://cloud.google.com/dialogflow/docs). + +backend: + rules: + - selector: 'google.cloud.dialogflow.cx.v3.Agents.*' + deadline: 60.0 + - selector: 'google.cloud.dialogflow.cx.v3.EntityTypes.*' + deadline: 60.0 + - selector: 'google.cloud.dialogflow.cx.v3.Environments.*' + deadline: 60.0 + - selector: 'google.cloud.dialogflow.cx.v3.Experiments.*' + deadline: 60.0 + - selector: 'google.cloud.dialogflow.cx.v3.Flows.*' + deadline: 60.0 + - selector: 'google.cloud.dialogflow.cx.v3.Intents.*' + deadline: 60.0 + - selector: 'google.cloud.dialogflow.cx.v3.Pages.*' + deadline: 60.0 + - selector: 'google.cloud.dialogflow.cx.v3.SecuritySettingsService.*' + deadline: 60.0 + - selector: 'google.cloud.dialogflow.cx.v3.SessionEntityTypes.*' + deadline: 60.0 + - selector: google.cloud.dialogflow.cx.v3.Sessions.DetectIntent + deadline: 220.0 + - selector: google.cloud.dialogflow.cx.v3.Sessions.FulfillIntent + deadline: 60.0 + - selector: google.cloud.dialogflow.cx.v3.Sessions.MatchIntent + deadline: 60.0 + - selector: google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent + deadline: 220.0 + - selector: 'google.cloud.dialogflow.cx.v3.TestCases.*' + deadline: 60.0 + - selector: 'google.cloud.dialogflow.cx.v3.TransitionRouteGroups.*' + deadline: 60.0 + - selector: 'google.cloud.dialogflow.cx.v3.Versions.*' + deadline: 60.0 + - selector: 'google.cloud.dialogflow.cx.v3.Webhooks.*' + deadline: 60.0 + - selector: 'google.longrunning.Operations.*' + deadline: 60.0 + +http: + rules: + - selector: google.longrunning.Operations.CancelOperation + post: '/v3/{name=projects/*/operations/*}:cancel' + additional_bindings: + - post: '/v3/{name=projects/*/locations/*/operations/*}:cancel' + - selector: google.longrunning.Operations.GetOperation + get: '/v3/{name=projects/*/operations/*}' + additional_bindings: + - get: '/v3/{name=projects/*/locations/*/operations/*}' + - selector: google.longrunning.Operations.ListOperations + get: '/v3/{name=projects/*}/operations' + additional_bindings: + - get: '/v3/{name=projects/*/locations/*}/operations' + +authentication: + rules: + - selector: 'google.cloud.dialogflow.cx.v3.Agents.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/dialogflow + - selector: 'google.cloud.dialogflow.cx.v3.EntityTypes.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/dialogflow + - selector: 'google.cloud.dialogflow.cx.v3.Environments.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/dialogflow + - selector: 'google.cloud.dialogflow.cx.v3.Experiments.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/dialogflow + - selector: 'google.cloud.dialogflow.cx.v3.Flows.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/dialogflow + - selector: 'google.cloud.dialogflow.cx.v3.Intents.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/dialogflow + - selector: 'google.cloud.dialogflow.cx.v3.Pages.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/dialogflow + - selector: 'google.cloud.dialogflow.cx.v3.SecuritySettingsService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/dialogflow + - selector: 'google.cloud.dialogflow.cx.v3.SessionEntityTypes.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/dialogflow + - selector: 'google.cloud.dialogflow.cx.v3.Sessions.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/dialogflow + - selector: 'google.cloud.dialogflow.cx.v3.TestCases.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/dialogflow + - selector: 'google.cloud.dialogflow.cx.v3.TransitionRouteGroups.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/dialogflow + - selector: 'google.cloud.dialogflow.cx.v3.Versions.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/dialogflow + - selector: 'google.cloud.dialogflow.cx.v3.Webhooks.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/dialogflow + - selector: 'google.longrunning.Operations.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/dialogflow diff --git a/third_party/googleapis/google/cloud/dialogflow/cx/v3/entity_type.proto b/third_party/googleapis/google/cloud/dialogflow/cx/v3/entity_type.proto new file mode 100644 index 000000000..715dcb875 --- /dev/null +++ b/third_party/googleapis/google/cloud/dialogflow/cx/v3/entity_type.proto @@ -0,0 +1,358 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.cx.v3; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx"; +option java_multiple_files = true; +option java_outer_classname = "EntityTypeProto"; +option java_package = "com.google.cloud.dialogflow.cx.v3"; +option objc_class_prefix = "DF"; + +// Service for managing [EntityTypes][google.cloud.dialogflow.cx.v3.EntityType]. +service EntityTypes { + option (google.api.default_host) = "dialogflow.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/dialogflow"; + + // Returns the list of all entity types in the specified agent. + rpc ListEntityTypes(ListEntityTypesRequest) returns (ListEntityTypesResponse) { + option (google.api.http) = { + get: "/v3/{parent=projects/*/locations/*/agents/*}/entityTypes" + }; + option (google.api.method_signature) = "parent"; + } + + // Retrieves the specified entity type. + rpc GetEntityType(GetEntityTypeRequest) returns (EntityType) { + option (google.api.http) = { + get: "/v3/{name=projects/*/locations/*/agents/*/entityTypes/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates an entity type in the specified agent. + rpc CreateEntityType(CreateEntityTypeRequest) returns (EntityType) { + option (google.api.http) = { + post: "/v3/{parent=projects/*/locations/*/agents/*}/entityTypes" + body: "entity_type" + }; + option (google.api.method_signature) = "parent,entity_type"; + } + + // Updates the specified entity type. + rpc UpdateEntityType(UpdateEntityTypeRequest) returns (EntityType) { + option (google.api.http) = { + patch: "/v3/{entity_type.name=projects/*/locations/*/agents/*/entityTypes/*}" + body: "entity_type" + }; + option (google.api.method_signature) = "entity_type,update_mask"; + } + + // Deletes the specified entity type. + rpc DeleteEntityType(DeleteEntityTypeRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v3/{name=projects/*/locations/*/agents/*/entityTypes/*}" + }; + option (google.api.method_signature) = "name"; + } +} + +// Entities are extracted from user input and represent parameters that are +// meaningful to your application. For example, a date range, a proper name +// such as a geographic location or landmark, and so on. Entities represent +// actionable data for your application. +// +// When you define an entity, you can also include synonyms that all map to +// that entity. For example, "soft drink", "soda", "pop", and so on. +// +// There are three types of entities: +// +// * **System** - entities that are defined by the Dialogflow API for common +// data types such as date, time, currency, and so on. A system entity is +// represented by the `EntityType` type. +// +// * **Custom** - entities that are defined by you that represent +// actionable data that is meaningful to your application. For example, +// you could define a `pizza.sauce` entity for red or white pizza sauce, +// a `pizza.cheese` entity for the different types of cheese on a pizza, +// a `pizza.topping` entity for different toppings, and so on. A custom +// entity is represented by the `EntityType` type. +// +// * **User** - entities that are built for an individual user such as +// favorites, preferences, playlists, and so on. A user entity is +// represented by the [SessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityType] type. +// +// For more information about entity types, see the [Dialogflow +// documentation](https://cloud.google.com/dialogflow/docs/entities-overview). +message EntityType { + option (google.api.resource) = { + type: "dialogflow.googleapis.com/EntityType" + pattern: "projects/{project}/locations/{location}/agents/{agent}/entityTypes/{entity_type}" + }; + + // An **entity entry** for an associated entity type. + message Entity { + // Required. The primary value associated with this entity entry. + // For example, if the entity type is *vegetable*, the value could be + // *scallions*. + // + // For `KIND_MAP` entity types: + // + // * A canonical value to be used in place of synonyms. + // + // For `KIND_LIST` entity types: + // + // * A string that can contain references to other entity types (with or + // without aliases). + string value = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. A collection of value synonyms. For example, if the entity type + // is *vegetable*, and `value` is *scallions*, a synonym could be *green + // onions*. + // + // For `KIND_LIST` entity types: + // + // * This collection must contain exactly one synonym equal to `value`. + repeated string synonyms = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // An excluded entity phrase that should not be matched. + message ExcludedPhrase { + // Required. The word or phrase to be excluded. + string value = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // Represents kinds of entities. + enum Kind { + // Not specified. This value should be never used. + KIND_UNSPECIFIED = 0; + + // Map entity types allow mapping of a group of synonyms to a canonical + // value. + KIND_MAP = 1; + + // List entity types contain a set of entries that do not map to canonical + // values. However, list entity types can contain references to other entity + // types (with or without aliases). + KIND_LIST = 2; + + // Regexp entity types allow to specify regular expressions in entries + // values. + KIND_REGEXP = 3; + } + + // Represents different entity type expansion modes. Automated expansion + // allows an agent to recognize values that have not been explicitly listed in + // the entity (for example, new kinds of shopping list items). + enum AutoExpansionMode { + // Auto expansion disabled for the entity. + AUTO_EXPANSION_MODE_UNSPECIFIED = 0; + + // Allows an agent to recognize values that have not been explicitly + // listed in the entity. + AUTO_EXPANSION_MODE_DEFAULT = 1; + } + + // The unique identifier of the entity type. + // Required for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityType]. + // Format: `projects//locations//agents//entityTypes/`. + string name = 1; + + // Required. The human-readable name of the entity type, unique within the agent. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Indicates the kind of entity type. + Kind kind = 3 [(google.api.field_behavior) = REQUIRED]; + + // Indicates whether the entity type can be automatically expanded. + AutoExpansionMode auto_expansion_mode = 4; + + // The collection of entity entries associated with the entity type. + repeated Entity entities = 5; + + // Collection of exceptional words and phrases that shouldn't be matched. + // For example, if you have a size entity type with entry `giant`(an + // adjective), you might consider adding `giants`(a noun) as an exclusion. + // If the kind of entity type is `KIND_MAP`, then the phrases specified by + // entities and excluded phrases should be mutually exclusive. + repeated ExcludedPhrase excluded_phrases = 6; + + // Enables fuzzy entity extraction during classification. + bool enable_fuzzy_extraction = 7; + + // Indicates whether parameters of the entity type should be redacted in log. + // If redaction is enabled, page parameters and intent parameters referring to + // the entity type will be replaced by parameter name when logging. + bool redact = 9; +} + +// The request message for [EntityTypes.ListEntityTypes][google.cloud.dialogflow.cx.v3.EntityTypes.ListEntityTypes]. +message ListEntityTypesRequest { + // Required. The agent to list all entity types for. + // Format: `projects//locations//agents/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/EntityType" + } + ]; + + // The language to list entity types for. The following fields are language + // dependent: + // + // * `EntityType.entities.value` + // * `EntityType.entities.synonyms` + // * `EntityType.excluded_phrases.value` + // + // If not specified, the agent's default language is used. + // [Many + // languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) + // are supported. + // Note: languages must be enabled in the agent before they can be used. + string language_code = 2; + + // The maximum number of items to return in a single page. By default 100 and + // at most 1000. + int32 page_size = 3; + + // The next_page_token value returned from a previous list request. + string page_token = 4; +} + +// The response message for [EntityTypes.ListEntityTypes][google.cloud.dialogflow.cx.v3.EntityTypes.ListEntityTypes]. +message ListEntityTypesResponse { + // The list of entity types. There will be a maximum number of items returned + // based on the page_size field in the request. + repeated EntityType entity_types = 1; + + // Token to retrieve the next page of results, or empty if there are no + // more results in the list. + string next_page_token = 2; +} + +// The request message for [EntityTypes.GetEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.GetEntityType]. +message GetEntityTypeRequest { + // Required. The name of the entity type. + // Format: `projects//locations//agents//entityTypes/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/EntityType" + } + ]; + + // The language to retrieve the entity type for. The following fields are + // language dependent: + // + // * `EntityType.entities.value` + // * `EntityType.entities.synonyms` + // * `EntityType.excluded_phrases.value` + // + // If not specified, the agent's default language is used. + // [Many + // languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) + // are supported. + // Note: languages must be enabled in the agent before they can be used. + string language_code = 2; +} + +// The request message for [EntityTypes.CreateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.CreateEntityType]. +message CreateEntityTypeRequest { + // Required. The agent to create a entity type for. + // Format: `projects//locations//agents/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/EntityType" + } + ]; + + // Required. The entity type to create. + EntityType entity_type = 2 [(google.api.field_behavior) = REQUIRED]; + + // The language of the following fields in `entity_type`: + // + // * `EntityType.entities.value` + // * `EntityType.entities.synonyms` + // * `EntityType.excluded_phrases.value` + // + // If not specified, the agent's default language is used. + // [Many + // languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) + // are supported. + // Note: languages must be enabled in the agent before they can be used. + string language_code = 3; +} + +// The request message for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityType]. +message UpdateEntityTypeRequest { + // Required. The entity type to update. + EntityType entity_type = 1 [(google.api.field_behavior) = REQUIRED]; + + // The language of the following fields in `entity_type`: + // + // * `EntityType.entities.value` + // * `EntityType.entities.synonyms` + // * `EntityType.excluded_phrases.value` + // + // If not specified, the agent's default language is used. + // [Many + // languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) + // are supported. + // Note: languages must be enabled in the agent before they can be used. + string language_code = 2; + + // The mask to control which fields get updated. + google.protobuf.FieldMask update_mask = 3; +} + +// The request message for [EntityTypes.DeleteEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.DeleteEntityType]. +message DeleteEntityTypeRequest { + // Required. The name of the entity type to delete. + // Format: `projects//locations//agents//entityTypes/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/EntityType" + } + ]; + + // This field has no effect for entity type not being used. + // For entity types that are used by intents or pages: + // + // * If `force` is set to false, an error will be returned with message + // indicating the referencing resources. + // * If `force` is set to true, Dialogflow will remove the entity type, as + // well as any references to the entity type (i.e. Page + // [parameter][google.cloud.dialogflow.cx.v3.Form.Parameter] of the entity type will be changed to + // '@sys.any' and intent [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] of the entity type + // will be removed). + bool force = 2; +} diff --git a/third_party/googleapis/google/cloud/dialogflow/cx/v3/environment.proto b/third_party/googleapis/google/cloud/dialogflow/cx/v3/environment.proto new file mode 100644 index 000000000..a1ac901e5 --- /dev/null +++ b/third_party/googleapis/google/cloud/dialogflow/cx/v3/environment.proto @@ -0,0 +1,263 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.cx.v3; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/dialogflow/cx/v3/test_case.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx"; +option java_multiple_files = true; +option java_outer_classname = "EnvironmentProto"; +option java_package = "com.google.cloud.dialogflow.cx.v3"; +option objc_class_prefix = "DF"; + +// Service for managing [Environments][google.cloud.dialogflow.cx.v3.Environment]. +service Environments { + option (google.api.default_host) = "dialogflow.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/dialogflow"; + + // Returns the list of all environments in the specified [Agent][google.cloud.dialogflow.cx.v3.Agent]. + rpc ListEnvironments(ListEnvironmentsRequest) returns (ListEnvironmentsResponse) { + option (google.api.http) = { + get: "/v3/{parent=projects/*/locations/*/agents/*}/environments" + }; + option (google.api.method_signature) = "parent"; + } + + // Retrieves the specified [Environment][google.cloud.dialogflow.cx.v3.Environment]. + rpc GetEnvironment(GetEnvironmentRequest) returns (Environment) { + option (google.api.http) = { + get: "/v3/{name=projects/*/locations/*/agents/*/environments/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates an [Environment][google.cloud.dialogflow.cx.v3.Environment] in the specified [Agent][google.cloud.dialogflow.cx.v3.Agent]. + rpc CreateEnvironment(CreateEnvironmentRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v3/{parent=projects/*/locations/*/agents/*}/environments" + body: "environment" + }; + option (google.api.method_signature) = "parent,environment"; + option (google.longrunning.operation_info) = { + response_type: "Environment" + metadata_type: "google.protobuf.Struct" + }; + } + + // Updates the specified [Environment][google.cloud.dialogflow.cx.v3.Environment]. + rpc UpdateEnvironment(UpdateEnvironmentRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v3/{environment.name=projects/*/locations/*/agents/*/environments/*}" + body: "environment" + }; + option (google.api.method_signature) = "environment,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Environment" + metadata_type: "google.protobuf.Struct" + }; + } + + // Deletes the specified [Environment][google.cloud.dialogflow.cx.v3.Environment]. + rpc DeleteEnvironment(DeleteEnvironmentRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v3/{name=projects/*/locations/*/agents/*/environments/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Looks up the history of the specified [Environment][google.cloud.dialogflow.cx.v3.Environment]. + rpc LookupEnvironmentHistory(LookupEnvironmentHistoryRequest) returns (LookupEnvironmentHistoryResponse) { + option (google.api.http) = { + get: "/v3/{name=projects/*/locations/*/agents/*/environments/*}:lookupEnvironmentHistory" + }; + option (google.api.method_signature) = "name"; + } +} + +// Represents an environment for an agent. You can create multiple versions +// of your agent and publish them to separate environments. When you edit an +// agent, you are editing the draft agent. At any point, you can save the draft +// agent as an agent version, which is an immutable snapshot of your agent. When +// you save the draft agent, it is published to the default environment. When +// you create agent versions, you can publish them to custom environments. You +// can create a variety of custom environments for testing, development, +// production, etc. +message Environment { + option (google.api.resource) = { + type: "dialogflow.googleapis.com/Environment" + pattern: "projects/{project}/locations/{location}/agents/{agent}/environments/{environment}" + }; + + // Configuration for the version. + message VersionConfig { + // Required. Format: projects//locations//agents//flows//versions/. + string version = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Version" + } + ]; + } + + // The name of the environment. + // Format: `projects//locations//agents//environments/`. + string name = 1; + + // Required. The human-readable name of the environment (unique in an agent). Limit of + // 64 characters. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // The human-readable description of the environment. The maximum length is + // 500 characters. If exceeded, the request is rejected. + string description = 3; + + // Required. A list of configurations for flow versions. You should include version + // configs for all flows that are reachable from [`Start + // Flow`][Agent.start_flow] in the agent. Otherwise, an error will be + // returned. + repeated VersionConfig version_configs = 6 [(google.api.field_behavior) = REQUIRED]; + + // Output only. Update time of this environment. + google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The request message for [Environments.ListEnvironments][google.cloud.dialogflow.cx.v3.Environments.ListEnvironments]. +message ListEnvironmentsRequest { + // Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to list all environments for. + // Format: `projects//locations//agents/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/Environment" + } + ]; + + // The maximum number of items to return in a single page. By default 20 and + // at most 100. + int32 page_size = 2; + + // The next_page_token value returned from a previous list request. + string page_token = 3; +} + +// The response message for [Environments.ListEnvironments][google.cloud.dialogflow.cx.v3.Environments.ListEnvironments]. +message ListEnvironmentsResponse { + // The list of environments. There will be a maximum number of items + // returned based on the page_size field in the request. The list may in some + // cases be empty or contain fewer entries than page_size even if this isn't + // the last page. + repeated Environment environments = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; +} + +// The request message for [Environments.GetEnvironment][google.cloud.dialogflow.cx.v3.Environments.GetEnvironment]. +message GetEnvironmentRequest { + // Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment]. + // Format: `projects//locations//agents//environments/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Environment" + } + ]; +} + +// The request message for [Environments.CreateEnvironment][google.cloud.dialogflow.cx.v3.Environments.CreateEnvironment]. +message CreateEnvironmentRequest { + // Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to create an [Environment][google.cloud.dialogflow.cx.v3.Environment] for. + // Format: `projects//locations//agents/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/Environment" + } + ]; + + // Required. The environment to create. + Environment environment = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// The request message for [Environments.UpdateEnvironment][google.cloud.dialogflow.cx.v3.Environments.UpdateEnvironment]. +message UpdateEnvironmentRequest { + // Required. The environment to update. + Environment environment = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The mask to control which fields get updated. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// The request message for [Environments.DeleteEnvironment][google.cloud.dialogflow.cx.v3.Environments.DeleteEnvironment]. +message DeleteEnvironmentRequest { + // Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment] to delete. + // Format: `projects//locations//agents//environments/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Environment" + } + ]; +} + +// The request message for [Environments.LookupEnvironmentHistory][google.cloud.dialogflow.cx.v3.Environments.LookupEnvironmentHistory]. +message LookupEnvironmentHistoryRequest { + // Required. Resource name of the environment to look up the history for. + // Format: `projects//locations//agents//environments/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Environment" + } + ]; + + // The maximum number of items to return in a single page. By default 100 and + // at most 1000. + int32 page_size = 2; + + // The next_page_token value returned from a previous list request. + string page_token = 3; +} + +// The response message for [Environments.LookupEnvironmentHistory][google.cloud.dialogflow.cx.v3.Environments.LookupEnvironmentHistory]. +message LookupEnvironmentHistoryResponse { + // Represents a list of snapshots for an environment. Time of the snapshots is + // stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time]. + repeated Environment environments = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; +} diff --git a/third_party/googleapis/google/cloud/dialogflow/cx/v3/experiment.proto b/third_party/googleapis/google/cloud/dialogflow/cx/v3/experiment.proto new file mode 100644 index 000000000..4db6a9a64 --- /dev/null +++ b/third_party/googleapis/google/cloud/dialogflow/cx/v3/experiment.proto @@ -0,0 +1,438 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.cx.v3; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx"; +option java_multiple_files = true; +option java_outer_classname = "ExperimentProto"; +option java_package = "com.google.cloud.dialogflow.cx.v3"; +option objc_class_prefix = "DF"; + +// Service for managing [Experiments][google.cloud.dialogflow.cx.v3.Experiment]. +service Experiments { + option (google.api.default_host) = "dialogflow.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/dialogflow"; + + // Returns the list of all experiments in the specified [Environment][google.cloud.dialogflow.cx.v3.Environment]. + rpc ListExperiments(ListExperimentsRequest) returns (ListExperimentsResponse) { + option (google.api.http) = { + get: "/v3/{parent=projects/*/locations/*/agents/*/environments/*}/experiments" + }; + option (google.api.method_signature) = "parent"; + } + + // Retrieves the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment]. + rpc GetExperiment(GetExperimentRequest) returns (Experiment) { + option (google.api.http) = { + get: "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates an [Experiment][google.cloud.dialogflow.cx.v3.Experiment] in the specified [Environment][google.cloud.dialogflow.cx.v3.Environment]. + rpc CreateExperiment(CreateExperimentRequest) returns (Experiment) { + option (google.api.http) = { + post: "/v3/{parent=projects/*/locations/*/agents/*/environments/*}/experiments" + body: "experiment" + }; + option (google.api.method_signature) = "parent,experiment"; + } + + // Updates the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment]. + rpc UpdateExperiment(UpdateExperimentRequest) returns (Experiment) { + option (google.api.http) = { + patch: "/v3/{experiment.name=projects/*/locations/*/agents/*/environments/*/experiments/*}" + body: "experiment" + }; + option (google.api.method_signature) = "experiment,update_mask"; + } + + // Deletes the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment]. + rpc DeleteExperiment(DeleteExperimentRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Starts the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment]. This rpc only changes the state of + // experiment from PENDING to RUNNING. + rpc StartExperiment(StartExperimentRequest) returns (Experiment) { + option (google.api.http) = { + post: "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:start" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Stops the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment]. This rpc only changes the state of + // experiment from RUNNING to DONE. + rpc StopExperiment(StopExperimentRequest) returns (Experiment) { + option (google.api.http) = { + post: "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:stop" + body: "*" + }; + option (google.api.method_signature) = "name"; + } +} + +// Represents an experiment in an environment. +message Experiment { + option (google.api.resource) = { + type: "dialogflow.googleapis.com/Experiment" + pattern: "projects/{project}/locations/{location}/agents/{agent}/environments/{environment}/experiments/{experiment}" + }; + + // Definition of the experiment. + message Definition { + // The condition defines which subset of sessions are selected for + // this experiment. If not specified, all sessions are eligible. E.g. + // "query_input.language_code=en" See the [conditions + // reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition). + string condition = 1; + + // The variants of the experiment. We currently only support single variant + // experiment. + oneof variants { + // The flow versions as the variants of this experiment. + VersionVariants version_variants = 2; + } + } + + // The inference result which includes an objective metric to optimize and the + // confidence interval. + message Result { + // A confidence interval is a range of possible values for the experiment + // objective you are trying to measure. + message ConfidenceInterval { + // The confidence level used to construct the interval, i.e. there is X% + // chance that the true value is within this interval. + double confidence_level = 1; + + // The percent change between an experiment metric's value and the value + // for its control. + double ratio = 2; + + // Lower bound of the interval. + double lower_bound = 3; + + // Upper bound of the interval. + double upper_bound = 4; + } + + // Metric and corresponding confidence intervals. + message Metric { + // Ratio-based metric type. Only one of type or count_type is specified in + // each Metric. + MetricType type = 1; + + // Count-based metric type. Only one of type or count_type is specified in + // each Metric. + CountType count_type = 5; + + // The actual value of the metric. + oneof value { + // Ratio value of a metric. + double ratio = 2; + + // Count value of a metric. + double count = 4; + } + + // The probability that the treatment is better than all other treatments + // in the experiment + ConfidenceInterval confidence_interval = 3; + } + + // Version variant and associated metrics. + message VersionMetrics { + // The name of the flow [Version][google.cloud.dialogflow.cx.v3.Version]. + // Format: `projects//locations//agents//flows//versions/`. + string version = 1 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Version" + }]; + + // The metrics and corresponding confidence intervals in the inference + // result. + repeated Metric metrics = 2; + + // Number of sessions that were allocated to this version. + int32 session_count = 3; + } + + // Types of ratio-based metric for Dialogflow experiment. + enum MetricType { + // Metric unspecified. + METRIC_UNSPECIFIED = 0; + + // Percentage of contained sessions without user calling back in 24 hours. + CONTAINED_SESSION_NO_CALLBACK_RATE = 1; + + // Percentage of sessions that were handed to a human agent. + LIVE_AGENT_HANDOFF_RATE = 2; + + // Percentage of sessions with the same user calling back. + CALLBACK_SESSION_RATE = 3; + + // Percentage of sessions where user hung up. + ABANDONED_SESSION_RATE = 4; + + // Percentage of sessions reached Dialogflow 'END_PAGE' or + // 'END_SESSION'. + SESSION_END_RATE = 5; + } + + // Types of count-based metric for Dialogflow experiment. + enum CountType { + // Count type unspecified. + COUNT_TYPE_UNSPECIFIED = 0; + + // Total number of occurrences of a 'NO_MATCH'. + TOTAL_NO_MATCH_COUNT = 1; + + // Total number of turn counts. + TOTAL_TURN_COUNT = 2; + + // Average turn count in a session. + AVERAGE_TURN_COUNT = 3; + } + + // Version variants and metrics. + repeated VersionMetrics version_metrics = 1; + + // The last time the experiment's stats data was updated. Will have default + // value if stats have never been computed for this experiment. + google.protobuf.Timestamp last_update_time = 2; + } + + // The state of the experiment. + enum State { + // State unspecified. + STATE_UNSPECIFIED = 0; + + // The experiment is created but not started yet. + DRAFT = 1; + + // The experiment is running. + RUNNING = 2; + + // The experiment is done. + DONE = 3; + } + + // The name of the experiment. + // Format: projects//locations//agents//environments//experiments/.. + string name = 1; + + // Required. The human-readable name of the experiment (unique in an environment). Limit + // of 64 characters. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // The human-readable description of the experiment. + string description = 3; + + // The current state of the experiment. + // Transition triggered by Expriments.StartExperiment: PENDING->RUNNING. + // Transition triggered by Expriments.CancelExperiment: PENDING->CANCELLED or + // RUNNING->CANCELLED. + State state = 4; + + // The definition of the experiment. + Definition definition = 5; + + // Inference result of the experiment. + Result result = 6; + + // Creation time of this experiment. + google.protobuf.Timestamp create_time = 7; + + // Start time of this experiment. + google.protobuf.Timestamp start_time = 8; + + // End time of this experiment. + google.protobuf.Timestamp end_time = 9; + + // Last update time of this experiment. + google.protobuf.Timestamp last_update_time = 10; + + // Maximum number of days to run the experiment/rollout. If auto-rollout is + // not enabled, default value and maximum will be 30 days. If auto-rollout is + // enabled, default value and maximum will be 6 days. + google.protobuf.Duration experiment_length = 11; + + // The history of updates to the experiment variants. + repeated VariantsHistory variants_history = 12; +} + +// A list of flow version variants. +message VersionVariants { + // A single flow version with specified traffic allocation. + message Variant { + // The name of the flow version. + // Format: `projects//locations//agents//flows//versions/`. + string version = 1; + + // Percentage of the traffic which should be routed to this + // version of flow. Traffic allocation for a single flow must sum up to 1.0. + float traffic_allocation = 2; + + // Whether the variant is for the control group. + bool is_control_group = 3; + } + + // A list of flow version variants. + repeated Variant variants = 1; +} + +// The history of variants update. +message VariantsHistory { + // The variants updated. We currently only support single variant + // experiment. + oneof variants { + // The flow versions as the variants. + VersionVariants version_variants = 1; + } + + // Update time of the variants. + google.protobuf.Timestamp update_time = 2; +} + +// The request message for [Experiments.ListExperiments][google.cloud.dialogflow.cx.v3.Experiments.ListExperiments]. +message ListExperimentsRequest { + // Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for. + // Format: `projects//locations//agents//environments/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/Experiment" + } + ]; + + // The maximum number of items to return in a single page. By default 20 and + // at most 100. + int32 page_size = 2; + + // The next_page_token value returned from a previous list request. + string page_token = 3; +} + +// The response message for [Experiments.ListExperiments][google.cloud.dialogflow.cx.v3.Experiments.ListExperiments]. +message ListExperimentsResponse { + // The list of experiments. There will be a maximum number of items + // returned based on the page_size field in the request. The list may in some + // cases be empty or contain fewer entries than page_size even if this isn't + // the last page. + repeated Experiment experiments = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; +} + +// The request message for [Experiments.GetExperiment][google.cloud.dialogflow.cx.v3.Experiments.GetExperiment]. +message GetExperimentRequest { + // Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment]. + // Format: `projects//locations//agents//environments//experiments/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Experiment" + } + ]; +} + +// The request message for [Experiments.CreateExperiment][google.cloud.dialogflow.cx.v3.Experiments.CreateExperiment]. +message CreateExperimentRequest { + // Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to create an [Environment][google.cloud.dialogflow.cx.v3.Environment] for. + // Format: `projects//locations//agents//environments/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/Experiment" + } + ]; + + // Required. The experiment to create. + Experiment experiment = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// The request message for [Experiments.UpdateExperiment][google.cloud.dialogflow.cx.v3.Experiments.UpdateExperiment]. +message UpdateExperimentRequest { + // Required. The experiment to update. + Experiment experiment = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The mask to control which fields get updated. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// The request message for [Experiments.DeleteExperiment][google.cloud.dialogflow.cx.v3.Experiments.DeleteExperiment]. +message DeleteExperimentRequest { + // Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment] to delete. + // Format: `projects//locations//agents//environments//experiments/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Experiment" + } + ]; +} + +// The request message for [Experiments.StartExperiment][google.cloud.dialogflow.cx.v3.Experiments.StartExperiment]. +message StartExperimentRequest { + // Required. Resource name of the experiment to start. + // Format: `projects//locations//agents//environments//experiments/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Experiment" + } + ]; +} + +// The request message for [Experiments.StopExperiment][google.cloud.dialogflow.cx.v3.Experiments.StopExperiment]. +message StopExperimentRequest { + // Required. Resource name of the experiment to stop. + // Format: `projects//locations//agents//environments//experiments/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Experiment" + } + ]; +} diff --git a/third_party/googleapis/google/cloud/dialogflow/cx/v3/flow.proto b/third_party/googleapis/google/cloud/dialogflow/cx/v3/flow.proto new file mode 100644 index 000000000..7560e77a4 --- /dev/null +++ b/third_party/googleapis/google/cloud/dialogflow/cx/v3/flow.proto @@ -0,0 +1,437 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.cx.v3; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/dialogflow/cx/v3/page.proto"; +import "google/cloud/dialogflow/cx/v3/validation_message.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx"; +option java_multiple_files = true; +option java_outer_classname = "FlowProto"; +option java_package = "com.google.cloud.dialogflow.cx.v3"; +option objc_class_prefix = "DF"; + +// Service for managing [Flows][google.cloud.dialogflow.cx.v3.Flow]. +service Flows { + option (google.api.default_host) = "dialogflow.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/dialogflow"; + + // Creates a flow in the specified agent. + rpc CreateFlow(CreateFlowRequest) returns (Flow) { + option (google.api.http) = { + post: "/v3/{parent=projects/*/locations/*/agents/*}/flows" + body: "flow" + }; + option (google.api.method_signature) = "parent,flow"; + } + + // Deletes a specified flow. + rpc DeleteFlow(DeleteFlowRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v3/{name=projects/*/locations/*/agents/*/flows/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Returns the list of all flows in the specified agent. + rpc ListFlows(ListFlowsRequest) returns (ListFlowsResponse) { + option (google.api.http) = { + get: "/v3/{parent=projects/*/locations/*/agents/*}/flows" + }; + option (google.api.method_signature) = "parent"; + } + + // Retrieves the specified flow. + rpc GetFlow(GetFlowRequest) returns (Flow) { + option (google.api.http) = { + get: "/v3/{name=projects/*/locations/*/agents/*/flows/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates the specified flow. + rpc UpdateFlow(UpdateFlowRequest) returns (Flow) { + option (google.api.http) = { + patch: "/v3/{flow.name=projects/*/locations/*/agents/*/flows/*}" + body: "flow" + }; + option (google.api.method_signature) = "flow,update_mask"; + } + + // Trains the specified flow. Note that only the flow in 'draft' environment + // is trained. + rpc TrainFlow(TrainFlowRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v3/{name=projects/*/locations/*/agents/*/flows/*}:train" + body: "*" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.protobuf.Struct" + }; + } + + // Validates the specified flow and creates or updates validation results. + // Please call this API after the training is completed to get the complete + // validation results. + rpc ValidateFlow(ValidateFlowRequest) returns (FlowValidationResult) { + option (google.api.http) = { + post: "/v3/{name=projects/*/locations/*/agents/*/flows/*}:validate" + body: "*" + }; + } + + // Gets the latest flow validation result. Flow validation is performed + // when ValidateFlow is called. + rpc GetFlowValidationResult(GetFlowValidationResultRequest) returns (FlowValidationResult) { + option (google.api.http) = { + get: "/v3/{name=projects/*/locations/*/agents/*/flows/*/validationResult}" + }; + option (google.api.method_signature) = "name"; + } +} + +// Settings related to NLU. +message NluSettings { + // NLU model type. + enum ModelType { + // Not specified. `MODEL_TYPE_STANDARD` will be used. + MODEL_TYPE_UNSPECIFIED = 0; + + // Use standard NLU model. + MODEL_TYPE_STANDARD = 1; + + // Use advanced NLU model. + MODEL_TYPE_ADVANCED = 3; + } + + // NLU model training mode. + enum ModelTrainingMode { + // Not specified. `MODEL_TRAINING_MODE_AUTOMATIC` will be used. + MODEL_TRAINING_MODE_UNSPECIFIED = 0; + + // NLU model training is automatically triggered when a flow gets modified. + // User can also manually trigger model training in this mode. + MODEL_TRAINING_MODE_AUTOMATIC = 1; + + // User needs to manually trigger NLU model training. Best for large flows + // whose models take long time to train. + MODEL_TRAINING_MODE_MANUAL = 2; + } + + // Indicates the type of NLU model. + ModelType model_type = 1; + + // To filter out false positive results and still get variety in matched + // natural language inputs for your agent, you can tune the machine learning + // classification threshold. If the returned score value is less than the + // threshold value, then a no-match event will be triggered. The score values + // range from 0.0 (completely uncertain) to 1.0 (completely certain). If set + // to 0.0, the default of 0.3 is used. + float classification_threshold = 3; + + // Indicates NLU model training mode. + ModelTrainingMode model_training_mode = 4; +} + +// Flows represents the conversation flows when you build your chatbot agent. +// +// A flow consists of many pages connected by the transition routes. +// Conversations always start with the built-in Start Flow (with an all-0 ID). +// Transition routes can direct the conversation session from the current flow +// (parent flow) to another flow (sub flow). When the sub flow is finished, +// Dialogflow will bring the session back to the parent flow, where the sub flow +// is started. +// +// Usually, when a transition route is followed by a matched intent, the intent +// will be "consumed". This means the intent won't activate more transition +// routes. However, when the followed transition route moves the conversation +// session into a different flow, the matched intent can be carried over and to +// be consumed in the target flow. +message Flow { + option (google.api.resource) = { + type: "dialogflow.googleapis.com/Flow" + pattern: "projects/{project}/locations/{location}/agents/{agent}/flows/{flow}" + }; + + // The unique identifier of the flow. + // Format: `projects//locations//agents//flows/`. + string name = 1; + + // Required. The human-readable name of the flow. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // The description of the flow. The maximum length is 500 characters. If + // exceeded, the request is rejected. + string description = 3; + + // A flow's transition routes serve two purposes: + // + // * They are responsible for matching the user's first utterances in the + // flow. + // * They are inherited by every page's [transition + // routes][Page.transition_routes] and can support use cases such as the user + // saying "help" or "can I talk to a human?", which can be handled in a common + // way regardless of the current page. Transition routes defined in the page + // have higher priority than those defined in the flow. + // + // TransitionRoutes are evalauted in the following order: + // + // * TransitionRoutes with intent specified.. + // * TransitionRoutes with only condition specified. + // + // TransitionRoutes with intent specified are inherited by pages in the flow. + repeated TransitionRoute transition_routes = 4; + + // A flow's event handlers serve two purposes: + // + // * They are responsible for handling events (e.g. no match, + // webhook errors) in the flow. + // * They are inherited by every page's [event + // handlers][Page.event_handlers], which can be used to handle common events + // regardless of the current page. Event handlers defined in the page + // have higher priority than those defined in the flow. + // + // Unlike [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], these handlers are + // evaluated on a first-match basis. The first one that matches the event + // get executed, with the rest being ignored. + repeated EventHandler event_handlers = 10; + + // NLU related settings of the flow. + NluSettings nlu_settings = 11; +} + +// The request message for [Flows.CreateFlow][google.cloud.dialogflow.cx.v3.Flows.CreateFlow]. +message CreateFlowRequest { + // Required. The agent to create a flow for. + // Format: `projects//locations//agents/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/Flow" + } + ]; + + // Required. The flow to create. + Flow flow = 2 [(google.api.field_behavior) = REQUIRED]; + + // The language of the following fields in `flow`: + // + // * `Flow.event_handlers.trigger_fulfillment.messages` + // * `Flow.transition_routes.trigger_fulfillment.messages` + // + // If not specified, the agent's default language is used. + // [Many + // languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) + // are supported. + // Note: languages must be enabled in the agent before they can be used. + string language_code = 3; +} + +// The request message for [Flows.DeleteFlow][google.cloud.dialogflow.cx.v3.Flows.DeleteFlow]. +message DeleteFlowRequest { + // Required. The name of the flow to delete. + // Format: `projects//locations//agents//flows/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Flow" + } + ]; + + // This field has no effect for flows with no incoming transitions. + // For flows with incoming transitions: + // + // * If `force` is set to false, an error will be returned with message + // indicating the incoming transitions. + // * If `force` is set to true, Dialogflow will remove the flow, as well as + // any transitions to the flow (i.e. [Target + // flow][EventHandler.target_flow] in event handlers or [Target + // flow][TransitionRoute.target_flow] in transition routes that point to + // this flow will be cleared). + bool force = 2; +} + +// The request message for [Flows.ListFlows][google.cloud.dialogflow.cx.v3.Flows.ListFlows]. +message ListFlowsRequest { + // Required. The agent containing the flows. + // Format: `projects//locations//agents/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/Flow" + } + ]; + + // The maximum number of items to return in a single page. By default 100 and + // at most 1000. + int32 page_size = 2; + + // The next_page_token value returned from a previous list request. + string page_token = 3; + + // The language to list flows for. The following fields are language + // dependent: + // + // * `Flow.event_handlers.trigger_fulfillment.messages` + // * `Flow.transition_routes.trigger_fulfillment.messages` + // + // If not specified, the agent's default language is used. + // [Many + // languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) + // are supported. + // Note: languages must be enabled in the agent before they can be used. + string language_code = 4; +} + +// The response message for [Flows.ListFlows][google.cloud.dialogflow.cx.v3.Flows.ListFlows]. +message ListFlowsResponse { + // The list of flows. There will be a maximum number of items returned based + // on the page_size field in the request. + repeated Flow flows = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; +} + +// The response message for [Flows.GetFlow][google.cloud.dialogflow.cx.v3.Flows.GetFlow]. +message GetFlowRequest { + // Required. The name of the flow to get. + // Format: `projects//locations//agents//flows/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Flow" + } + ]; + + // The language to retrieve the flow for. The following fields are language + // dependent: + // + // * `Flow.event_handlers.trigger_fulfillment.messages` + // * `Flow.transition_routes.trigger_fulfillment.messages` + // + // If not specified, the agent's default language is used. + // [Many + // languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) + // are supported. + // Note: languages must be enabled in the agent before they can be used. + string language_code = 2; +} + +// The request message for [Flows.UpdateFlow][google.cloud.dialogflow.cx.v3.Flows.UpdateFlow]. +message UpdateFlowRequest { + // Required. The flow to update. + Flow flow = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The mask to control which fields get updated. If `update_mask` is not + // specified, an error will be returned. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + + // The language of the following fields in `flow`: + // + // * `Flow.event_handlers.trigger_fulfillment.messages` + // * `Flow.transition_routes.trigger_fulfillment.messages` + // + // If not specified, the agent's default language is used. + // [Many + // languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) + // are supported. + // Note: languages must be enabled in the agent before they can be used. + string language_code = 3; +} + +// The request message for [Flows.TrainFlow][google.cloud.dialogflow.cx.v3.Flows.TrainFlow]. +message TrainFlowRequest { + // Required. The flow to train. + // Format: `projects//locations//agents//flows/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Flow" + } + ]; +} + +// The request message for [Flows.ValidateFlow][google.cloud.dialogflow.cx.v3.Flows.ValidateFlow]. +message ValidateFlowRequest { + // Required. The flow to validate. + // Format: `projects//locations//agents//flows/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Flow" + } + ]; + + // If not specified, the agent's default language is used. + string language_code = 2; +} + +// The request message for [Flows.GetFlowValidationResult][google.cloud.dialogflow.cx.v3.Flows.GetFlowValidationResult]. +message GetFlowValidationResultRequest { + // Required. The flow name. + // Format: `projects//locations//agents//flows//validationResult`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/FlowValidationResult" + } + ]; + + // If not specified, the agent's default language is used. + string language_code = 2; +} + +// The response message for [Flows.GetFlowValidationResult][google.cloud.dialogflow.cx.v3.Flows.GetFlowValidationResult]. +message FlowValidationResult { + option (google.api.resource) = { + type: "dialogflow.googleapis.com/FlowValidationResult" + pattern: "projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/validationResult" + }; + + // The unique identifier of the flow validation result. + // Format: `projects//locations//agents//flows//validationResult`. + string name = 1; + + // Contains all validation messages. + repeated ValidationMessage validation_messages = 2; + + // Last time the flow was validated. + google.protobuf.Timestamp update_time = 3; +} diff --git a/third_party/googleapis/google/cloud/dialogflow/cx/v3/fulfillment.proto b/third_party/googleapis/google/cloud/dialogflow/cx/v3/fulfillment.proto new file mode 100644 index 000000000..0f04f6836 --- /dev/null +++ b/third_party/googleapis/google/cloud/dialogflow/cx/v3/fulfillment.proto @@ -0,0 +1,107 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.cx.v3; + +import "google/api/resource.proto"; +import "google/cloud/dialogflow/cx/v3/response_message.proto"; +import "google/protobuf/struct.proto"; +import "google/api/annotations.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx"; +option java_multiple_files = true; +option java_outer_classname = "FulfillmentProto"; +option java_package = "com.google.cloud.dialogflow.cx.v3"; +option objc_class_prefix = "DF"; + +// A fulfillment can do one or more of the following actions at the same time: +// +// * Generate rich message responses. +// * Set parameter values. +// * Call the webhook. +// +// Fulfillments can be called at various stages in the [Page][google.cloud.dialogflow.cx.v3.Page] or +// [Form][google.cloud.dialogflow.cx.v3.Form] lifecycle. For example, when a [DetectIntentRequest][google.cloud.dialogflow.cx.v3.DetectIntentRequest] drives a +// session to enter a new page, the page's entry fulfillment can add a static +// response to the [QueryResult][google.cloud.dialogflow.cx.v3.QueryResult] in the returning [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse], +// call the webhook (for example, to load user data from a database), or both. +message Fulfillment { + // Setting a parameter value. + message SetParameterAction { + // Display name of the parameter. + string parameter = 1; + + // The new value of the parameter. A null value clears the parameter. + google.protobuf.Value value = 2; + } + + // A list of cascading if-else conditions. Cases are mutually exclusive. + // The first one with a matching condition is selected, all the rest ignored. + message ConditionalCases { + // Each case has a Boolean condition. When it is evaluated to be True, the + // corresponding messages will be selected and evaluated recursively. + message Case { + // The list of messages or conditional cases to activate for this case. + message CaseContent { + // Either a message is returned or additional cases to be evaluated. + oneof cases_or_message { + // Returned message. + ResponseMessage message = 1; + + // Additional cases to be evaluated. + ConditionalCases additional_cases = 2; + } + } + + // The condition to activate and select this case. Empty means the + // condition is always true. The condition is evaluated against [form + // parameters][Form.parameters] or [session + // parameters][SessionInfo.parameters]. + // + // See the [conditions + // reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition). + string condition = 1; + + // A list of case content. + repeated CaseContent case_content = 2; + } + + // A list of cascading if-else conditions. + repeated Case cases = 1; + } + + // The list of rich message responses to present to the user. + repeated ResponseMessage messages = 1; + + // The webhook to call. + // Format: `projects//locations//agents//webhooks/`. + string webhook = 2 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Webhook" + }]; + + // The tag used by the webhook to identify which fulfillment is being called. + // This field is required if `webhook` is specified. + string tag = 3; + + // Set parameter values before executing the webhook. + repeated SetParameterAction set_parameter_actions = 4; + + // Conditional cases for this fulfillment. + repeated ConditionalCases conditional_cases = 5; +} diff --git a/third_party/googleapis/google/cloud/dialogflow/cx/v3/intent.proto b/third_party/googleapis/google/cloud/dialogflow/cx/v3/intent.proto new file mode 100644 index 000000000..1e2924ff8 --- /dev/null +++ b/third_party/googleapis/google/cloud/dialogflow/cx/v3/intent.proto @@ -0,0 +1,363 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.cx.v3; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx"; +option java_multiple_files = true; +option java_outer_classname = "IntentProto"; +option java_package = "com.google.cloud.dialogflow.cx.v3"; +option objc_class_prefix = "DF"; + +// Service for managing [Intents][google.cloud.dialogflow.cx.v3.Intent]. +service Intents { + option (google.api.default_host) = "dialogflow.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/dialogflow"; + + // Returns the list of all intents in the specified agent. + rpc ListIntents(ListIntentsRequest) returns (ListIntentsResponse) { + option (google.api.http) = { + get: "/v3/{parent=projects/*/locations/*/agents/*}/intents" + }; + option (google.api.method_signature) = "parent"; + } + + // Retrieves the specified intent. + rpc GetIntent(GetIntentRequest) returns (Intent) { + option (google.api.http) = { + get: "/v3/{name=projects/*/locations/*/agents/*/intents/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates an intent in the specified agent. + rpc CreateIntent(CreateIntentRequest) returns (Intent) { + option (google.api.http) = { + post: "/v3/{parent=projects/*/locations/*/agents/*}/intents" + body: "intent" + }; + option (google.api.method_signature) = "parent,intent"; + } + + // Updates the specified intent. + rpc UpdateIntent(UpdateIntentRequest) returns (Intent) { + option (google.api.http) = { + patch: "/v3/{intent.name=projects/*/locations/*/agents/*/intents/*}" + body: "intent" + }; + option (google.api.method_signature) = "intent,update_mask"; + } + + // Deletes the specified intent. + rpc DeleteIntent(DeleteIntentRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v3/{name=projects/*/locations/*/agents/*/intents/*}" + }; + option (google.api.method_signature) = "name"; + } +} + +// An intent represents a user's intent to interact with a conversational agent. +// +// You can provide information for the Dialogflow API to use to match user input +// to an intent by adding training phrases (i.e., examples of user input) to +// your intent. +message Intent { + option (google.api.resource) = { + type: "dialogflow.googleapis.com/Intent" + pattern: "projects/{project}/locations/{location}/agents/{agent}/intents/{intent}" + }; + + // Represents an example that the agent is trained on to identify the intent. + message TrainingPhrase { + // Represents a part of a training phrase. + message Part { + // Required. The text for this part. + string text = 1 [(google.api.field_behavior) = REQUIRED]; + + // The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to annotate this part of the + // training phrase. This field is required for annotated parts of the + // training phrase. + string parameter_id = 2; + } + + // Output only. The unique identifier of the training phrase. + string id = 1; + + // Required. The ordered list of training phrase parts. + // The parts are concatenated in order to form the training phrase. + // + // Note: The API does not automatically annotate training phrases like the + // Dialogflow Console does. + // + // Note: Do not forget to include whitespace at part boundaries, so the + // training phrase is well formatted when the parts are concatenated. + // + // If the training phrase does not need to be annotated with parameters, + // you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set. + // + // If you want to annotate the training phrase, you must create multiple + // parts, where the fields of each part are populated in one of two ways: + // + // - `Part.text` is set to a part of the phrase that has no parameters. + // - `Part.text` is set to a part of the phrase that you want to annotate, + // and the `parameter_id` field is set. + repeated Part parts = 2 [(google.api.field_behavior) = REQUIRED]; + + // Indicates how many times this example was added to the intent. + int32 repeat_count = 3; + } + + // Represents an intent parameter. + message Parameter { + // Required. The unique identifier of the parameter. This field + // is used by [training phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate their + // [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part]. + string id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The entity type of the parameter. + // Format: `projects/-/locations/-/agents/-/entityTypes/` for system entity types (for example, + // `projects/-/locations/-/agents/-/entityTypes/sys.date`), or + // `projects//locations//agents//entityTypes/` for developer entity types. + string entity_type = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/EntityType" + } + ]; + + // Indicates whether the parameter represents a list of values. + bool is_list = 3; + + // Indicates whether the parameter content should be redacted in log. If + // redaction is enabled, the parameter content will be replaced by parameter + // name during logging. + // Note: the parameter content is subject to redaction if either parameter + // level redaction or [entity type level redaction][google.cloud.dialogflow.cx.v3.EntityType.redact] is + // enabled. + bool redact = 4; + } + + // The unique identifier of the intent. + // Required for the [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent] method. [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent] + // populates the name automatically. + // Format: `projects//locations//agents//intents/`. + string name = 1; + + // Required. The human-readable name of the intent, unique within the agent. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // The collection of training phrases the agent is trained on to identify the + // intent. + repeated TrainingPhrase training_phrases = 3; + + // The collection of parameters associated with the intent. + repeated Parameter parameters = 4; + + // The priority of this intent. Higher numbers represent higher + // priorities. + // + // - If the supplied value is unspecified or 0, the service + // translates the value to 500,000, which corresponds to the + // `Normal` priority in the console. + // - If the supplied value is negative, the intent is ignored + // in runtime detect intent requests. + int32 priority = 5; + + // Indicates whether this is a fallback intent. Currently only default + // fallback intent is allowed in the agent, which is added upon agent + // creation. + // Adding training phrases to fallback intent is useful in the case of + // requests that are mistakenly matched, since training phrases assigned to + // fallback intents act as negative examples that triggers no-match event. + bool is_fallback = 6; + + // Optional. The key/value metadata to label an intent. Labels can contain + // lowercase letters, digits and the symbols '-' and '_'. International + // characters are allowed, including letters from unicase alphabets. Keys must + // start with a letter. Keys and values can be no longer than 63 characters + // and no more than 128 bytes. + // + // Prefix "sys." is reserved for Dialogflow defined labels. Currently allowed + // Dialogflow defined labels include: + // * sys.head + // * sys.contextual + // The above labels do not require value. "sys.head" means the intent is a + // head intent. "sys.contextual" means the intent is a contextual intent. + map labels = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Human readable description for better understanding an intent like its + // scope, content, result etc. Maximum character limit: 140 characters. + string description = 8 [(google.api.field_behavior) = OPTIONAL]; +} + +// The request message for [Intents.ListIntents][google.cloud.dialogflow.cx.v3.Intents.ListIntents]. +message ListIntentsRequest { + // Required. The agent to list all intents for. + // Format: `projects//locations//agents/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/Intent" + } + ]; + + // The language to list intents for. The following fields are language + // dependent: + // + // * `Intent.training_phrases.parts.text` + // + // If not specified, the agent's default language is used. + // [Many + // languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) + // are supported. + // Note: languages must be enabled in the agent before they can be used. + string language_code = 2; + + // The resource view to apply to the returned intent. + IntentView intent_view = 5; + + // The maximum number of items to return in a single page. By default 100 and + // at most 1000. + int32 page_size = 3; + + // The next_page_token value returned from a previous list request. + string page_token = 4; +} + +// The response message for [Intents.ListIntents][google.cloud.dialogflow.cx.v3.Intents.ListIntents]. +message ListIntentsResponse { + // The list of intents. There will be a maximum number of items returned based + // on the page_size field in the request. + repeated Intent intents = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; +} + +// The request message for [Intents.GetIntent][google.cloud.dialogflow.cx.v3.Intents.GetIntent]. +message GetIntentRequest { + // Required. The name of the intent. + // Format: `projects//locations//agents//intents/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Intent" + } + ]; + + // The language to retrieve the intent for. The following fields are language + // dependent: + // + // * `Intent.training_phrases.parts.text` + // + // If not specified, the agent's default language is used. + // [Many + // languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) + // are supported. + // Note: languages must be enabled in the agent before they can be used. + string language_code = 2; +} + +// The request message for [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent]. +message CreateIntentRequest { + // Required. The agent to create an intent for. + // Format: `projects//locations//agents/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/Intent" + } + ]; + + // Required. The intent to create. + Intent intent = 2 [(google.api.field_behavior) = REQUIRED]; + + // The language of the following fields in `intent`: + // + // * `Intent.training_phrases.parts.text` + // + // If not specified, the agent's default language is used. + // [Many + // languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) + // are supported. + // Note: languages must be enabled in the agent before they can be used. + string language_code = 3; +} + +// The request message for [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent]. +message UpdateIntentRequest { + // Required. The intent to update. + Intent intent = 1 [(google.api.field_behavior) = REQUIRED]; + + // The language of the following fields in `intent`: + // + // * `Intent.training_phrases.parts.text` + // + // If not specified, the agent's default language is used. + // [Many + // languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) + // are supported. + // Note: languages must be enabled in the agent before they can be used. + string language_code = 2; + + // The mask to control which fields get updated. If the mask is not present, + // all fields will be updated. + google.protobuf.FieldMask update_mask = 3; +} + +// The request message for [Intents.DeleteIntent][google.cloud.dialogflow.cx.v3.Intents.DeleteIntent]. +message DeleteIntentRequest { + // Required. The name of the intent to delete. + // Format: `projects//locations//agents//intents/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Intent" + } + ]; +} + +// Represents the options for views of an intent. +// An intent can be a sizable object. Therefore, we provide a resource view that +// does not return training phrases in the response. +enum IntentView { + // Not specified. Treated as INTENT_VIEW_FULL. + INTENT_VIEW_UNSPECIFIED = 0; + + // Training phrases field is not populated in the response. + INTENT_VIEW_PARTIAL = 1; + + // All fields are populated. + INTENT_VIEW_FULL = 2; +} diff --git a/third_party/googleapis/google/cloud/dialogflow/cx/v3/page.proto b/third_party/googleapis/google/cloud/dialogflow/cx/v3/page.proto new file mode 100644 index 000000000..fadede1ae --- /dev/null +++ b/third_party/googleapis/google/cloud/dialogflow/cx/v3/page.proto @@ -0,0 +1,524 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.cx.v3; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/dialogflow/cx/v3/fulfillment.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/struct.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx"; +option java_multiple_files = true; +option java_outer_classname = "PageProto"; +option java_package = "com.google.cloud.dialogflow.cx.v3"; +option objc_class_prefix = "DF"; + +// Service for managing [Pages][google.cloud.dialogflow.cx.v3.Page]. +service Pages { + option (google.api.default_host) = "dialogflow.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/dialogflow"; + + // Returns the list of all pages in the specified flow. + rpc ListPages(ListPagesRequest) returns (ListPagesResponse) { + option (google.api.http) = { + get: "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/pages" + }; + option (google.api.method_signature) = "parent"; + } + + // Retrieves the specified page. + rpc GetPage(GetPageRequest) returns (Page) { + option (google.api.http) = { + get: "/v3/{name=projects/*/locations/*/agents/*/flows/*/pages/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a page in the specified flow. + rpc CreatePage(CreatePageRequest) returns (Page) { + option (google.api.http) = { + post: "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/pages" + body: "page" + }; + option (google.api.method_signature) = "parent,page"; + } + + // Updates the specified page. + rpc UpdatePage(UpdatePageRequest) returns (Page) { + option (google.api.http) = { + patch: "/v3/{page.name=projects/*/locations/*/agents/*/flows/*/pages/*}" + body: "page" + }; + option (google.api.method_signature) = "page,update_mask"; + } + + // Deletes the specified page. + rpc DeletePage(DeletePageRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v3/{name=projects/*/locations/*/agents/*/flows/*/pages/*}" + }; + option (google.api.method_signature) = "name"; + } +} + +// A Dialogflow CX conversation (session) can be described and visualized as a +// state machine. The states of a CX session are represented by pages. +// +// For each flow, you define many pages, where your combined pages can handle a +// complete conversation on the topics the flow is designed for. At any given +// moment, exactly one page is the current page, the current page is considered +// active, and the flow associated with that page is considered active. Every +// flow has a special start page. When a flow initially becomes active, the +// start page page becomes the current page. For each conversational turn, the +// current page will either stay the same or transition to another page. +// +// You configure each page to collect information from the end-user that is +// relevant for the conversational state represented by the page. +// +// For more information, see the +// [Page guide](https://cloud.google.com/dialogflow/cx/docs/concept/page). +message Page { + option (google.api.resource) = { + type: "dialogflow.googleapis.com/Page" + pattern: "projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/pages/{page}" + }; + + // The unique identifier of the page. + // Required for the [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage] method. [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage] + // populates the name automatically. + // Format: `projects//locations//agents//flows//pages/`. + string name = 1; + + // Required. The human-readable name of the page, unique within the agent. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // The fulfillment to call when the session is entering the page. + Fulfillment entry_fulfillment = 7; + + // The form associated with the page, used for collecting parameters + // relevant to the page. + Form form = 4; + + // Ordered list of [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] associated + // with the page. Transition route groups must be unique within a page. + // + // * If multiple transition routes within a page scope refer to the same + // intent, then the precedence order is: page's transition route -> page's + // transition route group -> flow's transition routes. + // + // * If multiple transition route groups within a page contain the same + // intent, then the first group in the ordered list takes precedence. + // + // Format:`projects//locations//agents//flows//transitionRouteGroups/`. + repeated string transition_route_groups = 11 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/TransitionRouteGroup" + }]; + + // A list of transitions for the transition rules of this page. + // They route the conversation to another page in the same flow, or another + // flow. + // + // When we are in a certain page, the TransitionRoutes are evalauted in the + // following order: + // + // * TransitionRoutes defined in the page with intent specified. + // * TransitionRoutes defined in the + // [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent + // specified. + // * TransitionRoutes defined in flow with intent specified. + // * TransitionRoutes defined in the + // [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent + // specified. + // * TransitionRoutes defined in the page with only condition specified. + // * TransitionRoutes defined in the + // [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only + // condition specified. + repeated TransitionRoute transition_routes = 9; + + // Handlers associated with the page to handle events such as webhook errors, + // no match or no input. + repeated EventHandler event_handlers = 10; +} + +// A form is a data model that groups related parameters that can be collected +// from the user. The process in which the agent prompts the user and collects +// parameter values from the user is called form filling. A form can be added to +// a [page][google.cloud.dialogflow.cx.v3.Page]. When form filling is done, the filled parameters will be +// written to the [session][google.cloud.dialogflow.cx.v3.SessionInfo.parameters]. +message Form { + // Represents a form parameter. + message Parameter { + // Configuration for how the filling of a parameter should be handled. + message FillBehavior { + // Required. The fulfillment to provide the initial prompt that the agent + // can present to the user in order to fill the parameter. + Fulfillment initial_prompt_fulfillment = 3 [(google.api.field_behavior) = REQUIRED]; + + // The handlers for parameter-level events, used to provide reprompt for + // the parameter or transition to a different page/flow. The supported + // events are: + // * `sys.no-match-`, where N can be from 1 to 6 + // * `sys.no-match-default` + // * `sys.no-input-`, where N can be from 1 to 6 + // * `sys.no-input-default` + // * `sys.invalid-parameter` + // + // `initial_prompt_fulfillment` provides the first prompt for the + // parameter. + // + // If the user's response does not fill the parameter, a + // no-match/no-input event will be triggered, and the fulfillment + // associated with the `sys.no-match-1`/`sys.no-input-1` handler (if + // defined) will be called to provide a prompt. The + // `sys.no-match-2`/`sys.no-input-2` handler (if defined) will respond to + // the next no-match/no-input event, and so on. + // + // A `sys.no-match-default` or `sys.no-input-default` handler will be used + // to handle all following no-match/no-input events after all numbered + // no-match/no-input handlers for the parameter are consumed. + // + // A `sys.invalid-parameter` handler can be defined to handle the case + // where the parameter values have been `invalidated` by webhook. For + // example, if the user's response fill the parameter, however the + // parameter was invalidated by webhook, the fulfillment associated with + // the `sys.invalid-parameter` handler (if defined) will be called to + // provide a prompt. + // + // If the event handler for the corresponding event can't be found on the + // parameter, `initial_prompt_fulfillment` will be re-prompted. + repeated EventHandler reprompt_event_handlers = 5; + } + + // Required. The human-readable name of the parameter, unique within the + // form. + string display_name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Indicates whether the parameter is required. Optional parameters will not + // trigger prompts; however, they are filled if the user specifies them. + // Required parameters must be filled before form filling concludes. + bool required = 2; + + // Required. The entity type of the parameter. + // Format: `projects/-/locations/-/agents/-/entityTypes/` for system entity types (for example, + // `projects/-/locations/-/agents/-/entityTypes/sys.date`), or + // `projects//locations//agents//entityTypes/` for developer entity types. + string entity_type = 3 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/EntityType" + } + ]; + + // Indicates whether the parameter represents a list of values. + bool is_list = 4; + + // Required. Defines fill behavior for the parameter. + FillBehavior fill_behavior = 7 [(google.api.field_behavior) = REQUIRED]; + + // The default value of an optional parameter. If the parameter is required, + // the default value will be ignored. + google.protobuf.Value default_value = 9; + + // Indicates whether the parameter content should be redacted in log. If + // redaction is enabled, the parameter content will be replaced by parameter + // name during logging. + // Note: the parameter content is subject to redaction if either parameter + // level redaction or [entity type level redaction][google.cloud.dialogflow.cx.v3.EntityType.redact] is + // enabled. + bool redact = 11; + } + + // Parameters to collect from the user. + repeated Parameter parameters = 1; +} + +// An event handler specifies an [event][google.cloud.dialogflow.cx.v3.EventHandler.event] that can be handled +// during a session. When the specified event happens, the following actions are +// taken in order: +// +// * If there is a +// [`trigger_fulfillment`][google.cloud.dialogflow.cx.v3.EventHandler.trigger_fulfillment] associated with +// the event, it will be called. +// * If there is a [`target_page`][google.cloud.dialogflow.cx.v3.EventHandler.target_page] associated +// with the event, the session will transition into the specified page. +// * If there is a [`target_flow`][google.cloud.dialogflow.cx.v3.EventHandler.target_flow] associated +// with the event, the session will transition into the specified flow. +message EventHandler { + // Output only. The unique identifier of this event handler. + string name = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The name of the event to handle. + string event = 4 [(google.api.field_behavior) = REQUIRED]; + + // The fulfillment to call when the event occurs. + // Handling webhook errors with a fulfillment enabled with webhook could + // cause infinite loop. It is invalid to specify such fulfillment for a + // handler handling webhooks. + Fulfillment trigger_fulfillment = 5; + + // The target to transition to, either a page in the same host flow (the flow + // that owns this [TransitionRoute][google.cloud.dialogflow.cx.v3.TransitionRoute]), or another flow in the same agent. + oneof target { + // The target page to transition to. + // Format: `projects//locations//agents//flows//pages/`. + string target_page = 2 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Page" + }]; + + // The target flow to transition to. + // Format: `projects//locations//agents//flows/`. + string target_flow = 3 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Flow" + }]; + } +} + +// A transition route specifies a [intent][google.cloud.dialogflow.cx.v3.Intent] that can be matched and/or a +// data condition that can be evaluated during a session. When a specified +// transition is matched, the following actions are taken in order: +// +// * If there is a +// [`trigger_fulfillment`][google.cloud.dialogflow.cx.v3.TransitionRoute.trigger_fulfillment] associated with +// the transition, it will be called. +// * If there is a [`target_page`][google.cloud.dialogflow.cx.v3.TransitionRoute.target_page] associated +// with the transition, the session will transition into the specified page. +// * If there is a [`target_flow`][google.cloud.dialogflow.cx.v3.TransitionRoute.target_flow] associated +// with the transition, the session will transition into the specified flow. +message TransitionRoute { + // Output only. The unique identifier of this transition route. + string name = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The unique identifier of an [Intent][google.cloud.dialogflow.cx.v3.Intent]. + // Format: `projects//locations//agents//intents/`. + // Indicates that the transition can only happen when the given intent is + // matched. + // At least one of `intent` or `condition` must be specified. When both + // `intent` and `condition` are specified, the transition can only happen + // when both are fulfilled. + string intent = 1 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Intent" + }]; + + // The condition to evaluate against [form parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or + // [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters]. + // + // See the [conditions + // reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition). + // At least one of `intent` or `condition` must be specified. When both + // `intent` and `condition` are specified, the transition can only happen + // when both are fulfilled. + string condition = 2; + + // The fulfillment to call when the condition is satisfied. At least one of + // `trigger_fulfillment` and `target` must be specified. When both are + // defined, `trigger_fulfillment` is executed first. + Fulfillment trigger_fulfillment = 3; + + // The target to transition to, either a page in the same host flow (the flow + // that owns this [TransitionRoute][google.cloud.dialogflow.cx.v3.TransitionRoute]), or another flow in the same agent. + oneof target { + // The target page to transition to. + // Format: `projects//locations//agents//flows//pages/`. + string target_page = 4 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Page" + }]; + + // The target flow to transition to. + // Format: `projects//locations//agents//flows/`. + string target_flow = 5 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Flow" + }]; + } +} + +// The request message for [Pages.ListPages][google.cloud.dialogflow.cx.v3.Pages.ListPages]. +message ListPagesRequest { + // Required. The flow to list all pages for. + // Format: `projects//locations//agents//flows/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/Page" + } + ]; + + // The language to list pages for. The following fields are language + // dependent: + // + // * `Page.entry_fulfillment.messages` + // * `Page.form.parameters.fill_behavior.initial_prompt_fulfillment.messages` + // * `Page.form.parameters.fill_behavior.reprompt_event_handlers.messages` + // * `Page.transition_routes.trigger_fulfillment.messages` + // * + // `Page.transition_route_groups.transition_routes.trigger_fulfillment.messages` + // + // If not specified, the agent's default language is used. + // [Many + // languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) + // are supported. + // Note: languages must be enabled in the agent before they can be used. + string language_code = 2; + + // The maximum number of items to return in a single page. By default 100 and + // at most 1000. + int32 page_size = 3; + + // The next_page_token value returned from a previous list request. + string page_token = 4; +} + +// The response message for [Pages.ListPages][google.cloud.dialogflow.cx.v3.Pages.ListPages]. +message ListPagesResponse { + // The list of pages. There will be a maximum number of items returned based + // on the page_size field in the request. + repeated Page pages = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; +} + +// The request message for [Pages.GetPage][google.cloud.dialogflow.cx.v3.Pages.GetPage]. +message GetPageRequest { + // Required. The name of the page. + // Format: `projects//locations//agents//flows//pages/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Page" + } + ]; + + // The language to retrieve the page for. The following fields are language + // dependent: + // + // * `Page.entry_fulfillment.messages` + // * `Page.form.parameters.fill_behavior.initial_prompt_fulfillment.messages` + // * `Page.form.parameters.fill_behavior.reprompt_event_handlers.messages` + // * `Page.transition_routes.trigger_fulfillment.messages` + // * + // `Page.transition_route_groups.transition_routes.trigger_fulfillment.messages` + // + // If not specified, the agent's default language is used. + // [Many + // languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) + // are supported. + // Note: languages must be enabled in the agent before they can be used. + string language_code = 2; +} + +// The request message for [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage]. +message CreatePageRequest { + // Required. The flow to create a page for. + // Format: `projects//locations//agents//flows/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/Page" + } + ]; + + // Required. The page to create. + Page page = 2 [(google.api.field_behavior) = REQUIRED]; + + // The language of the following fields in `page`: + // + // * `Page.entry_fulfillment.messages` + // * `Page.form.parameters.fill_behavior.initial_prompt_fulfillment.messages` + // * `Page.form.parameters.fill_behavior.reprompt_event_handlers.messages` + // * `Page.transition_routes.trigger_fulfillment.messages` + // * + // `Page.transition_route_groups.transition_routes.trigger_fulfillment.messages` + // + // If not specified, the agent's default language is used. + // [Many + // languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) + // are supported. + // Note: languages must be enabled in the agent before they can be used. + string language_code = 3; +} + +// The request message for [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage]. +message UpdatePageRequest { + // Required. The page to update. + Page page = 1 [(google.api.field_behavior) = REQUIRED]; + + // The language of the following fields in `page`: + // + // * `Page.entry_fulfillment.messages` + // * `Page.form.parameters.fill_behavior.initial_prompt_fulfillment.messages` + // * `Page.form.parameters.fill_behavior.reprompt_event_handlers.messages` + // * `Page.transition_routes.trigger_fulfillment.messages` + // * + // `Page.transition_route_groups.transition_routes.trigger_fulfillment.messages` + // + // If not specified, the agent's default language is used. + // [Many + // languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) + // are supported. + // Note: languages must be enabled in the agent before they can be used. + string language_code = 2; + + // The mask to control which fields get updated. If the mask is not present, + // all fields will be updated. + google.protobuf.FieldMask update_mask = 3; +} + +// The request message for [Pages.DeletePage][google.cloud.dialogflow.cx.v3.Pages.DeletePage]. +message DeletePageRequest { + // Required. The name of the page to delete. + // Format: `projects//locations//agents//Flows//pages/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Page" + } + ]; + + // This field has no effect for pages with no incoming transitions. + // For pages with incoming transitions: + // + // * If `force` is set to false, an error will be returned with message + // indicating the incoming transitions. + // * If `force` is set to true, Dialogflow will remove the page, as well as + // any transitions to the page (i.e. [Target + // page][EventHandler.target_page] in event handlers or [Target + // page][TransitionRoute.target_page] in transition routes that point to + // this page will be cleared). + bool force = 2; +} diff --git a/third_party/googleapis/google/cloud/dialogflow/cx/v3/response_message.proto b/third_party/googleapis/google/cloud/dialogflow/cx/v3/response_message.proto new file mode 100644 index 000000000..37a6ac653 --- /dev/null +++ b/third_party/googleapis/google/cloud/dialogflow/cx/v3/response_message.proto @@ -0,0 +1,205 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.cx.v3; + +import "google/api/field_behavior.proto"; +import "google/protobuf/struct.proto"; +import "google/api/annotations.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx"; +option java_multiple_files = true; +option java_outer_classname = "ResponseMessageProto"; +option java_package = "com.google.cloud.dialogflow.cx.v3"; +option objc_class_prefix = "DF"; + +// Represents a response message that can be returned by a conversational agent. +// +// Response messages are also used for output audio synthesis. The approach is +// as follows: +// +// * If at least one OutputAudioText response is present, then all +// OutputAudioText responses are linearly concatenated, and the result is used +// for output audio synthesis. +// * If the OutputAudioText responses are a mixture of text and SSML, then the +// concatenated result is treated as SSML; otherwise, the result is treated as +// either text or SSML as appropriate. The agent designer should ideally use +// either text or SSML consistently throughout the bot design. +// * Otherwise, all Text responses are linearly concatenated, and the result is +// used for output audio synthesis. +// +// This approach allows for more sophisticated user experience scenarios, where +// the text displayed to the user may differ from what is heard. +message ResponseMessage { + // The text response message. + message Text { + // Required. A collection of text responses. + repeated string text = 1 [(google.api.field_behavior) = REQUIRED]; + + // Output only. Whether the playback of this message can be interrupted by the end + // user's speech and the client can then starts the next Dialogflow + // request. + bool allow_playback_interruption = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Indicates that the conversation should be handed off to a live agent. + // + // Dialogflow only uses this to determine which conversations were handed off + // to a human agent for measurement purposes. What else to do with this signal + // is up to you and your handoff procedures. + // + // You may set this, for example: + // * In the [entry_fulfillment][google.cloud.dialogflow.cx.v3.Page.entry_fulfillment] of a [Page][google.cloud.dialogflow.cx.v3.Page] if + // entering the page indicates something went extremely wrong in the + // conversation. + // * In a webhook response when you determine that the customer issue can only + // be handled by a human. + message LiveAgentHandoff { + // Custom metadata for your handoff procedure. Dialogflow doesn't impose + // any structure on this. + google.protobuf.Struct metadata = 1; + } + + // Indicates that the conversation succeeded, i.e., the bot handled the issue + // that the customer talked to it about. + // + // Dialogflow only uses this to determine which conversations should be + // counted as successful and doesn't process the metadata in this message in + // any way. Note that Dialogflow also considers conversations that get to the + // conversation end page as successful even if they don't return + // [ConversationSuccess][google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess]. + // + // You may set this, for example: + // * In the [entry_fulfillment][google.cloud.dialogflow.cx.v3.Page.entry_fulfillment] of a [Page][google.cloud.dialogflow.cx.v3.Page] if + // entering the page indicates that the conversation succeeded. + // * In a webhook response when you determine that you handled the customer + // issue. + message ConversationSuccess { + // Custom metadata. Dialogflow doesn't impose any structure on this. + google.protobuf.Struct metadata = 1; + } + + // A text or ssml response that is preferentially used for TTS output audio + // synthesis, as described in the comment on the ResponseMessage message. + message OutputAudioText { + // The source, which is either plain text or SSML. + oneof source { + // The raw text to be synthesized. + string text = 1; + + // The SSML text to be synthesized. For more information, see + // [SSML](/speech/text-to-speech/docs/ssml). + string ssml = 2; + } + + // Output only. Whether the playback of this message can be interrupted by the end + // user's speech and the client can then starts the next Dialogflow + // request. + bool allow_playback_interruption = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Indicates that interaction with the Dialogflow agent has ended. + // This message is generated by Dialogflow only and not supposed to be + // defined by the user. + message EndInteraction { + + } + + // Specifies an audio clip to be played by the client as part of the response. + message PlayAudio { + // Required. URI of the audio clip. Dialogflow does not impose any validation on this + // value. It is specific to the client that reads it. + string audio_uri = 1 [(google.api.field_behavior) = REQUIRED]; + + // Output only. Whether the playback of this message can be interrupted by the end + // user's speech and the client can then starts the next Dialogflow + // request. + bool allow_playback_interruption = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Represents an audio message that is composed of both segments + // synthesized from the Dialogflow agent prompts and ones hosted externally + // at the specified URIs. + // The external URIs are specified via + // [play_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.play_audio]. + // This message is generated by Dialogflow only and not supposed to be + // defined by the user. + message MixedAudio { + // Represents one segment of audio. + message Segment { + // Content of the segment. + oneof content { + // Raw audio synthesized from the Dialogflow agent's response using + // the output config specified in the request. + bytes audio = 1; + + // Client-specific URI that points to an audio clip accessible to the + // client. Dialogflow does not impose any validation on it. + string uri = 2; + } + + // Output only. Whether the playback of this segment can be interrupted by the end + // user's speech and the client should then start the next Dialogflow + // request. + bool allow_playback_interruption = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Segments this audio response is composed of. + repeated Segment segments = 1; + } + + // Required. The rich response message. + oneof message { + // Returns a text response. + Text text = 1; + + // Returns a response containing a custom, platform-specific payload. + google.protobuf.Struct payload = 2; + + // Indicates that the conversation succeeded. + ConversationSuccess conversation_success = 9; + + // A text or ssml response that is preferentially used for TTS output audio + // synthesis, as described in the comment on the ResponseMessage message. + OutputAudioText output_audio_text = 8; + + // Hands off conversation to a human agent. + LiveAgentHandoff live_agent_handoff = 10; + + // Output only. A signal that indicates the interaction with the Dialogflow agent has + // ended. + // This message is generated by Dialogflow only when the conversation + // reaches `END_SESSION` page. It is not supposed to be defined by the user. + // + // It's guaranteed that there is at most one such message in each response. + EndInteraction end_interaction = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Signal that the client should play an audio clip hosted at a + // client-specific URI. Dialogflow uses this to construct + // [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio]. However, Dialogflow itself + // does not try to read or process the URI in any way. + PlayAudio play_audio = 12; + + // Output only. An audio response message composed of both the synthesized Dialogflow + // agent responses and responses defined via + // [play_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.play_audio]. + // This message is generated by Dialogflow only and not supposed to be + // defined by the user. + MixedAudio mixed_audio = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + } +} diff --git a/third_party/googleapis/google/cloud/dialogflow/cx/v3/security_settings.proto b/third_party/googleapis/google/cloud/dialogflow/cx/v3/security_settings.proto new file mode 100644 index 000000000..a5154bdd2 --- /dev/null +++ b/third_party/googleapis/google/cloud/dialogflow/cx/v3/security_settings.proto @@ -0,0 +1,246 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.cx.v3; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx"; +option java_multiple_files = true; +option java_outer_classname = "SecuritySettingsProto"; +option java_package = "com.google.cloud.dialogflow.cx.v3"; +option objc_class_prefix = "DF"; + +// Service for managing security settings for Dialogflow. +service SecuritySettingsService { + option (google.api.default_host) = "dialogflow.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/dialogflow"; + + // Create security settings in the specified location. + rpc CreateSecuritySettings(CreateSecuritySettingsRequest) returns (SecuritySettings) { + option (google.api.http) = { + post: "/v3/{parent=projects/*/locations/*}/securitySettings" + body: "security_settings" + }; + option (google.api.method_signature) = "parent,security_settings"; + } + + // Retrieves the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]. + // The returned settings may be stale by up to 1 minute. + rpc GetSecuritySettings(GetSecuritySettingsRequest) returns (SecuritySettings) { + option (google.api.http) = { + get: "/v3/{name=projects/*/locations/*/securitySettings/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]. + rpc UpdateSecuritySettings(UpdateSecuritySettingsRequest) returns (SecuritySettings) { + option (google.api.http) = { + patch: "/v3/{security_settings.name=projects/*/locations/*/securitySettings/*}" + body: "security_settings" + }; + option (google.api.method_signature) = "security_settings,update_mask"; + } + + // Returns the list of all security settings in the specified location. + rpc ListSecuritySettings(ListSecuritySettingsRequest) returns (ListSecuritySettingsResponse) { + option (google.api.http) = { + get: "/v3/{parent=projects/*/locations/*}/securitySettings" + }; + option (google.api.method_signature) = "parent"; + } + + // Deletes the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]. + rpc DeleteSecuritySettings(DeleteSecuritySettingsRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v3/{name=projects/*/locations/*/securitySettings/*}" + }; + option (google.api.method_signature) = "name"; + } +} + +// The request message for [SecuritySettingsService.GetSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.GetSecuritySettings]. +message GetSecuritySettingsRequest { + // Required. Resource name of the settings. + // Format: `projects//locations//securitySettings/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/SecuritySettings" + } + ]; +} + +// The request message for [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings]. +message UpdateSecuritySettingsRequest { + // Required. [SecuritySettings] object that contains values for each of the + // fields to update. + SecuritySettings security_settings = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The mask to control which fields get updated. If the mask is not present, + // all fields will be updated. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// The request message for [SecuritySettings.ListSecuritySettings][]. +message ListSecuritySettingsRequest { + // Required. The location to list all security settings for. + // Format: `projects//locations/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/SecuritySettings" + } + ]; + + // The maximum number of items to return in a single page. By default 20 and + // at most 100. + int32 page_size = 2; + + // The next_page_token value returned from a previous list request. + string page_token = 3; +} + +// The response message for [SecuritySettings.ListSecuritySettings][]. +message ListSecuritySettingsResponse { + // The list of security settings. + repeated SecuritySettings security_settings = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; +} + +// The request message for [SecuritySettings.CreateSecuritySettings][]. +message CreateSecuritySettingsRequest { + // Required. The location to create an [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] for. + // Format: `projects//locations/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/SecuritySettings" + } + ]; + + // Required. The security settings to create. + SecuritySettings security_settings = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// The request message for [SecuritySettings.DeleteSecuritySettings][]. +message DeleteSecuritySettingsRequest { + // Required. The name of the [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] to delete. + // Format: `projects//locations//securitySettings/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/SecuritySettings" + } + ]; +} + +// Represents the settings related to security issues, such as data redaction +// and data retention. It may take hours for updates on the settings to +// propagate to all the related components and take effect. +message SecuritySettings { + option (google.api.resource) = { + type: "dialogflow.googleapis.com/SecuritySettings" + pattern: "projects/{project}/locations/{location}/securitySettings/{security_settings}" + }; + + // Defines how we redact data. + enum RedactionStrategy { + // Do not redact. + REDACTION_STRATEGY_UNSPECIFIED = 0; + + // Call redaction service to clean up the data to be persisted. + REDACT_WITH_SERVICE = 1; + } + + // Defines what types of data to redact. + enum RedactionScope { + // Don't redact any kind of data. + REDACTION_SCOPE_UNSPECIFIED = 0; + + // On data to be written to disk or similar devices that are capable of + // holding data even if power is disconnected. This includes data that are + // temporarily saved on disk. + REDACT_DISK_STORAGE = 2; + } + + // Type of data we purge after retention settings triggers purge. + enum PurgeDataType { + // Unspecified. Do not use. + PURGE_DATA_TYPE_UNSPECIFIED = 0; + + // Dialogflow history. This does not include Stackdriver log, which is + // owned by the user not Dialogflow. + DIALOGFLOW_HISTORY = 1; + } + + // Required. Resource name of the settings. + // Format: `projects//locations//securitySettings/`. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The human-readable name of the security settings, unique within the + // location. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Strategy that defines how we do redaction. + RedactionStrategy redaction_strategy = 3; + + // Defines on what data we apply redaction. Note that we don't + // redact data to which we don't have access, e.g., Stackdriver logs. + RedactionScope redaction_scope = 4; + + // DLP inspect template name. Use this template to define inspect base + // settings. + // + // If empty, we use the default DLP inspect config. + // + // The template name will have one of the following formats: + // `projects/PROJECT_ID/inspectTemplates/TEMPLATE_ID` OR + // `organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_ID` + string inspect_template = 9; + + // Specifies how data is retained. Note that even if the data is + // purged due to retention policy, we may still hold it in backup storage for + // a few days without allowing direct readings. + oneof data_retention { + // Retains the data for the specified number of days. + // User must Set a value lower than Dialogflow's default 30d TTL. Setting a + // value higher than that has no effect. + // A missing value or setting to 0 also means we use Dialogflow's default + // TTL. + int32 retention_window_days = 6; + } + + // List of types of data to remove when retention settings triggers purge. + repeated PurgeDataType purge_data_types = 8; +} diff --git a/third_party/googleapis/google/cloud/dialogflow/cx/v3/session.proto b/third_party/googleapis/google/cloud/dialogflow/cx/v3/session.proto new file mode 100644 index 000000000..2e485a56d --- /dev/null +++ b/third_party/googleapis/google/cloud/dialogflow/cx/v3/session.proto @@ -0,0 +1,767 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.cx.v3; + +import "google/api/annotations.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/dialogflow/cx/v3/audio_config.proto"; +import "google/cloud/dialogflow/cx/v3/flow.proto"; +import "google/cloud/dialogflow/cx/v3/intent.proto"; +import "google/cloud/dialogflow/cx/v3/page.proto"; +import "google/cloud/dialogflow/cx/v3/response_message.proto"; +import "google/cloud/dialogflow/cx/v3/session_entity_type.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/struct.proto"; +import "google/rpc/status.proto"; +import "google/type/latlng.proto"; +import "google/api/client.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx"; +option java_multiple_files = true; +option java_outer_classname = "SessionProto"; +option java_package = "com.google.cloud.dialogflow.cx.v3"; +option objc_class_prefix = "DF"; +option (google.api.resource_definition) = { + type: "dialogflow.googleapis.com/Session" + pattern: "projects/{project}/locations/{location}/agents/{agent}/sessions/{session}" + pattern: "projects/{project}/locations/{location}/agents/{agent}/environments/{environment}/sessions/{session}" +}; + +// A session represents an interaction with a user. You retrieve user input +// and pass it to the [DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] method to determine +// user intent and respond. +service Sessions { + option (google.api.default_host) = "dialogflow.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/dialogflow"; + + // Processes a natural language query and returns structured, actionable data + // as a result. This method is not idempotent, because it may cause session + // entity types to be updated, which in turn might affect results of future + // queries. + // + // Note: Always use agent versions for production traffic. + // See [Versions and + // environments](https://cloud.google.com/dialogflow/cx/docs/concept/version). + rpc DetectIntent(DetectIntentRequest) returns (DetectIntentResponse) { + option (google.api.http) = { + post: "/v3/{session=projects/*/locations/*/agents/*/sessions/*}:detectIntent" + body: "*" + additional_bindings { + post: "/v3/{session=projects/*/locations/*/agents/*/environments/*/sessions/*}:detectIntent" + body: "*" + } + }; + } + + // Processes a natural language query in audio format in a streaming fashion + // and returns structured, actionable data as a result. This method is only + // available via the gRPC API (not REST). + // + // Note: Always use agent versions for production traffic. + // See [Versions and + // environments](https://cloud.google.com/dialogflow/cx/docs/concept/version). + rpc StreamingDetectIntent(stream StreamingDetectIntentRequest) returns (stream StreamingDetectIntentResponse) { + } + + // Returns preliminary intent match results, doesn't change the session + // status. + rpc MatchIntent(MatchIntentRequest) returns (MatchIntentResponse) { + option (google.api.http) = { + post: "/v3/{session=projects/*/locations/*/agents/*/sessions/*}:matchIntent" + body: "*" + additional_bindings { + post: "/v3/{session=projects/*/locations/*/agents/*/environments/*/sessions/*}:matchIntent" + body: "*" + } + }; + } + + // Fulfills a matched intent returned by [MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent]. + // Must be called after [MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent], with input from + // [MatchIntentResponse][google.cloud.dialogflow.cx.v3.MatchIntentResponse]. Otherwise, the behavior is undefined. + rpc FulfillIntent(FulfillIntentRequest) returns (FulfillIntentResponse) { + option (google.api.http) = { + post: "/v3/{match_intent_request.session=projects/*/locations/*/agents/*/sessions/*}:fulfillIntent" + body: "*" + additional_bindings { + post: "/v3/{match_intent_request.session=projects/*/locations/*/agents/*/environments/*/sessions/*}:fulfillIntent" + body: "*" + } + }; + } +} + +// The request to detect user's intent. +message DetectIntentRequest { + // Required. The name of the session this query is sent to. + // Format: `projects//locations//agents//sessions/` or `projects//locations//agents//environments//sessions/`. + // If `Environment ID` is not specified, we assume default 'draft' + // environment. + // It's up to the API caller to choose an appropriate `Session ID`. It can be + // a random number or some type of session identifiers (preferably hashed). + // The length of the `Session ID` must not exceed 36 characters. + // + // For more information, see the [sessions + // guide](https://cloud.google.com/dialogflow/cx/docs/concept/session). + // + // Note: Always use agent versions for production traffic. + // See [Versions and + // environments](https://cloud.google.com/dialogflow/cx/docs/concept/version). + string session = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Session" + } + ]; + + // The parameters of this query. + QueryParameters query_params = 2; + + // Required. The input specification. + QueryInput query_input = 3 [(google.api.field_behavior) = REQUIRED]; + + // Instructs the speech synthesizer how to generate the output audio. + OutputAudioConfig output_audio_config = 4; +} + +// The message returned from the DetectIntent method. +message DetectIntentResponse { + // Output only. The unique identifier of the response. It can be used to + // locate a response in the training example set or for reporting issues. + string response_id = 1; + + // The result of the conversational query. + QueryResult query_result = 2; + + // The audio data bytes encoded as specified in the request. + // Note: The output audio is generated based on the values of default platform + // text responses found in the + // [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages] field. If + // multiple default text responses exist, they will be concatenated when + // generating audio. If no default platform text responses exist, the + // generated audio content will be empty. + // + // In some scenarios, multiple output audio fields may be present in the + // response structure. In these cases, only the top-most-level audio output + // has content. + bytes output_audio = 4; + + // The config used by the speech synthesizer to generate the output audio. + OutputAudioConfig output_audio_config = 5; +} + +// The top-level message sent by the client to the +// [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent] method. +// +// Multiple request messages should be sent in order: +// +// 1. The first message must contain +// [session][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.session], +// [query_input][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.query_input] plus optionally +// [query_params][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.query_params]. If the client +// wants to receive an audio response, it should also contain +// [output_audio_config][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.output_audio_config]. +// +// 2. If [query_input][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.query_input] was set to +// [query_input.audio.config][google.cloud.dialogflow.cx.v3.AudioInput.config], all subsequent messages +// must contain [query_input.audio.audio][google.cloud.dialogflow.cx.v3.AudioInput.audio] to continue with +// Speech recognition. +// If you decide to rather detect an intent from text +// input after you already started Speech recognition, please send a message +// with [query_input.text][google.cloud.dialogflow.cx.v3.QueryInput.text]. +// +// However, note that: +// +// * Dialogflow will bill you for the audio duration so far. +// * Dialogflow discards all Speech recognition results in favor of the +// input text. +// * Dialogflow will use the language code from the first message. +// +// After you sent all input, you must half-close or abort the request stream. +message StreamingDetectIntentRequest { + // The name of the session this query is sent to. + // Format: `projects//locations//agents//sessions/` or `projects//locations//agents//environments//sessions/`. + // If `Environment ID` is not specified, we assume default 'draft' + // environment. + // It's up to the API caller to choose an appropriate `Session ID`. It can be + // a random number or some type of session identifiers (preferably hashed). + // The length of the `Session ID` must not exceed 36 characters. + // Note: session must be set in the first request. + // + // For more information, see the [sessions + // guide](https://cloud.google.com/dialogflow/cx/docs/concept/session). + // + // Note: Always use agent versions for production traffic. + // See [Versions and + // environments](https://cloud.google.com/dialogflow/cx/docs/concept/version). + string session = 1 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Session" + }]; + + // The parameters of this query. + QueryParameters query_params = 2; + + // Required. The input specification. + QueryInput query_input = 3 [(google.api.field_behavior) = REQUIRED]; + + // Instructs the speech synthesizer how to generate the output audio. + OutputAudioConfig output_audio_config = 4; +} + +// The top-level message returned from the `StreamingDetectIntent` method. +// +// Multiple response messages can be returned in order: +// +// 1. If the input was set to streaming audio, the first one or more messages +// contain `recognition_result`. Each `recognition_result` represents a more +// complete transcript of what the user said. The last `recognition_result` +// has `is_final` set to `true`. +// +// 2. The last message contains `detect_intent_response`. +message StreamingDetectIntentResponse { + // The output response. + oneof response { + // The result of speech recognition. + StreamingRecognitionResult recognition_result = 1; + + // The response from detect intent. + DetectIntentResponse detect_intent_response = 2; + } +} + +// Contains a speech recognition result corresponding to a portion of the audio +// that is currently being processed or an indication that this is the end +// of the single requested utterance. +// +// Example: +// +// 1. transcript: "tube" +// +// 2. transcript: "to be a" +// +// 3. transcript: "to be" +// +// 4. transcript: "to be or not to be" +// is_final: true +// +// 5. transcript: " that's" +// +// 6. transcript: " that is" +// +// 7. message_type: `END_OF_SINGLE_UTTERANCE` +// +// 8. transcript: " that is the question" +// is_final: true +// +// Only two of the responses contain final results (#4 and #8 indicated by +// `is_final: true`). Concatenating these generates the full transcript: "to be +// or not to be that is the question". +// +// In each response we populate: +// +// * for `TRANSCRIPT`: `transcript` and possibly `is_final`. +// +// * for `END_OF_SINGLE_UTTERANCE`: only `message_type`. +message StreamingRecognitionResult { + // Type of the response message. + enum MessageType { + // Not specified. Should never be used. + MESSAGE_TYPE_UNSPECIFIED = 0; + + // Message contains a (possibly partial) transcript. + TRANSCRIPT = 1; + + // Event indicates that the server has detected the end of the user's speech + // utterance and expects no additional speech. Therefore, the server will + // not process additional audio (although it may subsequently return + // additional results). The client should stop sending additional audio + // data, half-close the gRPC connection, and wait for any additional results + // until the server closes the gRPC connection. This message is only sent if + // [`single_utterance`][google.cloud.dialogflow.cx.v3.InputAudioConfig.single_utterance] was set to + // `true`, and is not used otherwise. + END_OF_SINGLE_UTTERANCE = 2; + } + + // Type of the result message. + MessageType message_type = 1; + + // Transcript text representing the words that the user spoke. + // Populated if and only if `message_type` = `TRANSCRIPT`. + string transcript = 2; + + // If `false`, the `StreamingRecognitionResult` represents an + // interim result that may change. If `true`, the recognizer will not return + // any further hypotheses about this piece of the audio. May only be populated + // for `message_type` = `TRANSCRIPT`. + bool is_final = 3; + + // The Speech confidence between 0.0 and 1.0 for the current portion of audio. + // A higher number indicates an estimated greater likelihood that the + // recognized words are correct. The default of 0.0 is a sentinel value + // indicating that confidence was not set. + // + // This field is typically only provided if `is_final` is true and you should + // not rely on it being accurate or even set. + float confidence = 4; + + // An estimate of the likelihood that the speech recognizer will + // not change its guess about this interim recognition result: + // * If the value is unspecified or 0.0, Dialogflow didn't compute the + // stability. In particular, Dialogflow will only provide stability for + // `TRANSCRIPT` results with `is_final = false`. + // * Otherwise, the value is in (0.0, 1.0] where 0.0 means completely + // unstable and 1.0 means completely stable. + float stability = 6; + + // Word-specific information for the words recognized by Speech in + // [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and + // [InputAudioConfig.enable_word_info] is set. + repeated SpeechWordInfo speech_word_info = 7; + + // Time offset of the end of this Speech recognition result relative to the + // beginning of the audio. Only populated for `message_type` = + // `TRANSCRIPT`. + google.protobuf.Duration speech_end_offset = 8; +} + +// Represents the parameters of a conversational query. +message QueryParameters { + // The time zone of this conversational query from the [time zone + // database](https://www.iana.org/time-zones), e.g., America/New_York, + // Europe/Paris. If not provided, the time zone specified in the agent is + // used. + string time_zone = 1; + + // The geo location of this conversational query. + google.type.LatLng geo_location = 2; + + // Additional session entity types to replace or extend developer entity types + // with. The entity synonyms apply to all languages and persist for the + // session of this query. + repeated SessionEntityType session_entity_types = 3; + + // This field can be used to pass custom data into the webhook associated with + // the agent. Arbitrary JSON objects are supported. + google.protobuf.Struct payload = 4; + + // Additional parameters to be put into [session + // parameters][SessionInfo.parameters]. To remove a + // parameter from the session, clients should explicitly set the parameter + // value to null. + // + // Depending on your protocol or client library language, this is a + // map, associative array, symbol table, dictionary, or JSON object + // composed of a collection of (MapKey, MapValue) pairs: + // + // - MapKey type: string + // - MapKey value: parameter name + // - MapValue type: + // - If parameter's entity type is a composite entity: map + // - Else: depending on parameter value type, could be one of string, + // number, boolean, null, list or map + // - MapValue value: + // - If parameter's entity type is a composite entity: + // map from composite entity property names to property values + // - Else: parameter value + google.protobuf.Struct parameters = 5; + + // Whether to disable webhook calls for this request. + bool disable_webhook = 7; + + // Configures whether sentiment analysis should be performed. If not + // provided, sentiment analysis is not performed. + bool analyze_query_text_sentiment = 8; + + // This field can be used to pass HTTP headers for a webhook + // call. These headers will be sent to webhook along with the headers that + // have been configured through Dialogflow web console. The headers defined + // within this field will overwrite the headers configured through Dialogflow + // console if there is a conflict. Header names are case-insensitive. + // Google's specified headers are not allowed. Including: "Host", + // "Content-Length", "Connection", "From", "User-Agent", "Accept-Encoding", + // "If-Modified-Since", "If-None-Match", "X-Forwarded-For", etc. + map webhook_headers = 10; +} + +// Represents the query input. It can contain one of: +// +// 1. A conversational query in the form of text. +// +// 2. An intent query that specifies which intent to trigger. +// +// 3. Natural language speech audio to be processed. +// +// 4. An event to be triggered. +// +message QueryInput { + // Required. The input specification. + oneof input { + // The natural language text to be processed. + TextInput text = 2; + + // The intent to be triggered. + IntentInput intent = 3; + + // The natural language speech audio to be processed. + AudioInput audio = 5; + + // The event to be triggered. + EventInput event = 6; + + // The DTMF event to be handled. + DtmfInput dtmf = 7; + } + + // Required. The language of the input. See [Language + // Support](https://cloud.google.com/dialogflow/cx/docs/reference/language) + // for a list of the currently supported language codes. Note that queries in + // the same session do not necessarily need to specify the same language. + string language_code = 4 [(google.api.field_behavior) = REQUIRED]; +} + +// Represents the result of a conversational query. +message QueryResult { + // The original conversational query. + oneof query { + // If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field + // will contain a copy of the text. + string text = 1; + + // If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will + // contain a copy of the intent identifier. + string trigger_intent = 11; + + // If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input, + // this field will contain the trascript for the audio. + string transcript = 12; + + // If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain + // the name of the event. + string trigger_event = 14; + } + + // The language that was triggered during intent detection. + // See [Language + // Support](https://cloud.google.com/dialogflow/cx/docs/reference/language) + // for a list of the currently supported language codes. + string language_code = 2; + + // The collected [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters]. + // + // Depending on your protocol or client library language, this is a + // map, associative array, symbol table, dictionary, or JSON object + // composed of a collection of (MapKey, MapValue) pairs: + // + // - MapKey type: string + // - MapKey value: parameter name + // - MapValue type: + // - If parameter's entity type is a composite entity: map + // - Else: depending on parameter value type, could be one of string, + // number, boolean, null, list or map + // - MapValue value: + // - If parameter's entity type is a composite entity: + // map from composite entity property names to property values + // - Else: parameter value + google.protobuf.Struct parameters = 3; + + // The list of rich messages returned to the client. Responses vary from + // simple text messages to more sophisticated, structured payloads used + // to drive complex logic. + repeated ResponseMessage response_messages = 4; + + // The list of webhook call status in the order of call sequence. + repeated google.rpc.Status webhook_statuses = 13; + + // The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in + // the order of call sequence. If some webhook call fails or doesn't return + // any payload, an empty `Struct` would be used instead. + repeated google.protobuf.Struct webhook_payloads = 6; + + // The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message, + // including but not limited to `name` and `display_name`. + Page current_page = 7; + + // The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the conversational query. Some, not all fields + // are filled in this message, including but not limited to: `name` and + // `display_name`. + // This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead. + Intent intent = 8 [deprecated = true]; + + // The intent detection confidence. Values range from 0.0 (completely + // uncertain) to 1.0 (completely certain). + // This value is for informational purpose only and is only used to + // help match the best intent within the classification threshold. + // This value may change for the same end-user expression at any time due to a + // model retraining or change in implementation. + // This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead. + float intent_detection_confidence = 9 [deprecated = true]; + + // Intent match result, could be an intent or an event. + Match match = 15; + + // The free-form diagnostic info. For example, this field could contain + // webhook call latency. The string keys of the Struct's fields map can change + // without notice. + google.protobuf.Struct diagnostic_info = 10; + + // The sentiment analyss result, which depends on + // [`analyze_query_text_sentiment`] + // [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment], specified in the request. + SentimentAnalysisResult sentiment_analysis_result = 17; +} + +// Represents the natural language text to be processed. +message TextInput { + // Required. The UTF-8 encoded natural language text to be processed. Text length must + // not exceed 256 characters. + string text = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Represents the intent to trigger programmatically rather than as a result of +// natural language processing. +message IntentInput { + // Required. The unique identifier of the intent. + // Format: `projects//locations//agents//intents/`. + string intent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Intent" + } + ]; +} + +// Represents the natural speech audio to be processed. +message AudioInput { + // Required. Instructs the speech recognizer how to process the speech audio. + InputAudioConfig config = 1 [(google.api.field_behavior) = REQUIRED]; + + // The natural language speech audio to be processed. + // A single request can contain up to 1 minute of speech audio data. + // The [transcribed text][google.cloud.dialogflow.cx.v3.QueryResult.transcript] cannot contain more than 256 + // bytes. + // + // For non-streaming audio detect intent, both `config` and `audio` must be + // provided. + // For streaming audio detect intent, `config` must be provided in + // the first request and `audio` must be provided in all following requests. + bytes audio = 2; +} + +// Represents the event to trigger. +message EventInput { + // Name of the event. + string event = 1; +} + +// Represents the input for dtmf event. +message DtmfInput { + // The dtmf digits. + string digits = 1; + + // The finish digit (if any). + string finish_digit = 2; +} + +// Represents one match result of [MatchIntent][]. +message Match { + // Type of a Match. + enum MatchType { + // Not specified. Should never be used. + MATCH_TYPE_UNSPECIFIED = 0; + + // The query was matched to an intent. + INTENT = 1; + + // The query directly triggered an intent. + DIRECT_INTENT = 2; + + // The query was used for parameter filling. + PARAMETER_FILLING = 3; + + // No match was found for the query. + NO_MATCH = 4; + + // Indicates an empty query. + NO_INPUT = 5; + + // The query directly triggered an event. + EVENT = 6; + } + + // The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query. Some, not all fields are filled in + // this message, including but not limited to: `name` and `display_name`. Only + // filled for [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type. + Intent intent = 1; + + // The event that matched the query. Only filled for + // [`EVENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type. + string event = 6; + + // The collection of parameters extracted from the query. + // + // Depending on your protocol or client library language, this is a + // map, associative array, symbol table, dictionary, or JSON object + // composed of a collection of (MapKey, MapValue) pairs: + // + // - MapKey type: string + // - MapKey value: parameter name + // - MapValue type: + // - If parameter's entity type is a composite entity: map + // - Else: depending on parameter value type, could be one of string, + // number, boolean, null, list or map + // - MapValue value: + // - If parameter's entity type is a composite entity: + // map from composite entity property names to property values + // - Else: parameter value + google.protobuf.Struct parameters = 2; + + // Final text input which was matched during MatchIntent. This value can be + // different from original input sent in request because of spelling + // correction or other processing. + string resolved_input = 3; + + // Type of this [Match][google.cloud.dialogflow.cx.v3.Match]. + MatchType match_type = 4; + + // The confidence of this match. Values range from 0.0 (completely uncertain) + // to 1.0 (completely certain). + // This value is for informational purpose only and is only used to help match + // the best intent within the classification threshold. This value may change + // for the same end-user expression at any time due to a model retraining or + // change in implementation. + float confidence = 5; +} + +// Request of [MatchIntent][]. +message MatchIntentRequest { + // Required. The name of the session this query is sent to. + // Format: `projects//locations//agents//sessions/` or `projects//locations//agents//environments//sessions/`. + // If `Environment ID` is not specified, we assume default 'draft' + // environment. + // It's up to the API caller to choose an appropriate `Session ID`. It can be + // a random number or some type of session identifiers (preferably hashed). + // The length of the `Session ID` must not exceed 36 characters. + // + // For more information, see the [sessions + // guide](https://cloud.google.com/dialogflow/cx/docs/concept/session). + string session = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Session" + } + ]; + + // The parameters of this query. + QueryParameters query_params = 2; + + // Required. The input specification. + QueryInput query_input = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Response of [MatchIntent][]. +message MatchIntentResponse { + // The original conversational query. + oneof query { + // If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field + // will contain a copy of the text. + string text = 1; + + // If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will + // contain a copy of the intent identifier. + string trigger_intent = 2; + + // If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input, + // this field will contain the trascript for the audio. + string transcript = 3; + + // If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will + // contain a copy of the event name. + string trigger_event = 6; + } + + // Match results, if more than one, ordered descendingly by the confidence + // we have that the particular intent matches the query. + repeated Match matches = 4; + + // The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message, + // including but not limited to `name` and `display_name`. + Page current_page = 5; +} + +// Request of [FulfillIntent][] +message FulfillIntentRequest { + // Must be same as the corresponding MatchIntent request, otherwise the + // behavior is undefined. + MatchIntentRequest match_intent_request = 1; + + // The matched intent/event to fulfill. + Match match = 2; + + // Instructs the speech synthesizer how to generate output audio. + OutputAudioConfig output_audio_config = 3; +} + +// Response of [FulfillIntent][] +message FulfillIntentResponse { + // Output only. The unique identifier of the response. It can be used to + // locate a response in the training example set or for reporting issues. + string response_id = 1; + + // The result of the conversational query. + QueryResult query_result = 2; + + // The audio data bytes encoded as specified in the request. + // Note: The output audio is generated based on the values of default platform + // text responses found in the + // [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages] field. If + // multiple default text responses exist, they will be concatenated when + // generating audio. If no default platform text responses exist, the + // generated audio content will be empty. + // + // In some scenarios, multiple output audio fields may be present in the + // response structure. In these cases, only the top-most-level audio output + // has content. + bytes output_audio = 3; + + // The config used by the speech synthesizer to generate the output audio. + OutputAudioConfig output_audio_config = 4; +} + +// The result of sentiment analysis. Sentiment analysis inspects user input +// and identifies the prevailing subjective opinion, especially to determine a +// user's attitude as positive, negative, or neutral. +message SentimentAnalysisResult { + // Sentiment score between -1.0 (negative sentiment) and 1.0 (positive + // sentiment). + float score = 1; + + // A non-negative number in the [0, +inf) range, which represents the absolute + // magnitude of sentiment, regardless of score (positive or negative). + float magnitude = 2; +} diff --git a/third_party/googleapis/google/cloud/dialogflow/cx/v3/session_entity_type.proto b/third_party/googleapis/google/cloud/dialogflow/cx/v3/session_entity_type.proto new file mode 100644 index 000000000..8500bd03b --- /dev/null +++ b/third_party/googleapis/google/cloud/dialogflow/cx/v3/session_entity_type.proto @@ -0,0 +1,264 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.cx.v3; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/dialogflow/cx/v3/entity_type.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx"; +option java_multiple_files = true; +option java_outer_classname = "SessionEntityTypeProto"; +option java_package = "com.google.cloud.dialogflow.cx.v3"; +option objc_class_prefix = "DF"; + +// Service for managing [SessionEntityTypes][google.cloud.dialogflow.cx.v3.SessionEntityType]. +service SessionEntityTypes { + option (google.api.default_host) = "dialogflow.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/dialogflow"; + + // Returns the list of all session entity types in the specified session. + rpc ListSessionEntityTypes(ListSessionEntityTypesRequest) returns (ListSessionEntityTypesResponse) { + option (google.api.http) = { + get: "/v3/{parent=projects/*/locations/*/agents/*/sessions/*}/entityTypes" + additional_bindings { + get: "/v3/{parent=projects/*/locations/*/agents/*/environments/*/sessions/*}/entityTypes" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Retrieves the specified session entity type. + rpc GetSessionEntityType(GetSessionEntityTypeRequest) returns (SessionEntityType) { + option (google.api.http) = { + get: "/v3/{name=projects/*/locations/*/agents/*/sessions/*/entityTypes/*}" + additional_bindings { + get: "/v3/{name=projects/*/locations/*/agents/*/environments/*/sessions/*/entityTypes/*}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Creates a session entity type. + // + // If the specified session entity type already exists, overrides the + // session entity type. + rpc CreateSessionEntityType(CreateSessionEntityTypeRequest) returns (SessionEntityType) { + option (google.api.http) = { + post: "/v3/{parent=projects/*/locations/*/agents/*/sessions/*}/entityTypes" + body: "session_entity_type" + additional_bindings { + post: "/v3/{parent=projects/*/locations/*/agents/*/environments/*/sessions/*}/entityTypes" + body: "session_entity_type" + } + }; + option (google.api.method_signature) = "parent,session_entity_type"; + } + + // Updates the specified session entity type. + rpc UpdateSessionEntityType(UpdateSessionEntityTypeRequest) returns (SessionEntityType) { + option (google.api.http) = { + patch: "/v3/{session_entity_type.name=projects/*/locations/*/agents/*/sessions/*/entityTypes/*}" + body: "session_entity_type" + additional_bindings { + patch: "/v3/{session_entity_type.name=projects/*/locations/*/agents/*/environments/*/sessions/*/entityTypes/*}" + body: "session_entity_type" + } + }; + option (google.api.method_signature) = "session_entity_type,update_mask"; + } + + // Deletes the specified session entity type. + rpc DeleteSessionEntityType(DeleteSessionEntityTypeRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v3/{name=projects/*/locations/*/agents/*/sessions/*/entityTypes/*}" + additional_bindings { + delete: "/v3/{name=projects/*/locations/*/agents/*/environments/*/sessions/*/entityTypes/*}" + } + }; + option (google.api.method_signature) = "name"; + } +} + +// Session entity types are referred to as **User** entity types and are +// entities that are built for an individual user such as favorites, +// preferences, playlists, and so on. +// +// You can redefine a session entity type at the session level to extend or +// replace a [custom entity type][google.cloud.dialogflow.cx.v3.EntityType] at the user session level (we +// refer to the entity types defined at the agent level as "custom entity +// types"). +// +// Note: session entity types apply to all queries, regardless of the language. +// +// For more information about entity types, see the [Dialogflow +// documentation](https://cloud.google.com/dialogflow/docs/entities-overview). +message SessionEntityType { + option (google.api.resource) = { + type: "dialogflow.googleapis.com/SessionEntityType" + pattern: "projects/{project}/locations/{location}/agents/{agent}/sessions/{session}/entityTypes/{entity_type}" + pattern: "projects/{project}/locations/{location}/agents/{agent}/environments/{environment}/sessions/{session}/entityTypes/{entity_type}" + }; + + // The types of modifications for the session entity type. + enum EntityOverrideMode { + // Not specified. This value should be never used. + ENTITY_OVERRIDE_MODE_UNSPECIFIED = 0; + + // The collection of session entities overrides the collection of entities + // in the corresponding custom entity type. + ENTITY_OVERRIDE_MODE_OVERRIDE = 1; + + // The collection of session entities extends the collection of entities in + // the corresponding custom entity type. + // + // Note: Even in this override mode calls to `ListSessionEntityTypes`, + // `GetSessionEntityType`, `CreateSessionEntityType` and + // `UpdateSessionEntityType` only return the additional entities added in + // this session entity type. If you want to get the supplemented list, + // please call [EntityTypes.GetEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.GetEntityType] on the custom entity type + // and merge. + ENTITY_OVERRIDE_MODE_SUPPLEMENT = 2; + } + + // Required. The unique identifier of the session entity type. + // Format: `projects//locations//agents//sessions//entityTypes/` or `projects//locations//agents//environments//sessions//entityTypes/`. If `Environment ID` is not specified, we assume default 'draft' + // environment. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Indicates whether the additional data should override or supplement the + // custom entity type definition. + EntityOverrideMode entity_override_mode = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. The collection of entities to override or supplement the custom entity + // type. + repeated EntityType.Entity entities = 4 [(google.api.field_behavior) = REQUIRED]; +} + +// The request message for [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.cx.v3.SessionEntityTypes.ListSessionEntityTypes]. +message ListSessionEntityTypesRequest { + // Required. The session to list all session entity types from. + // Format: `projects//locations//agents//sessions/` or `projects//locations//agents//environments//sessions/`. + // If `Environment ID` is not specified, we assume default 'draft' + // environment. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/SessionEntityType" + } + ]; + + // The maximum number of items to return in a single page. By default 100 and + // at most 1000. + int32 page_size = 2; + + // The next_page_token value returned from a previous list request. + string page_token = 3; +} + +// The response message for [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.cx.v3.SessionEntityTypes.ListSessionEntityTypes]. +message ListSessionEntityTypesResponse { + // The list of session entity types. There will be a maximum number of items + // returned based on the page_size field in the request. + repeated SessionEntityType session_entity_types = 1; + + // Token to retrieve the next page of results, or empty if there are no + // more results in the list. + string next_page_token = 2; +} + +// The request message for [SessionEntityTypes.GetSessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityTypes.GetSessionEntityType]. +message GetSessionEntityTypeRequest { + // Required. The name of the session entity type. + // Format: `projects//locations//agents//sessions//entityTypes/` or + // `projects//locations//agents//environments//sessions//entityTypes/`. If `Environment ID` is not specified, we assume default 'draft' + // environment. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/SessionEntityType" + } + ]; +} + +// The request message for [SessionEntityTypes.CreateSessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityTypes.CreateSessionEntityType]. +message CreateSessionEntityTypeRequest { + // Required. The session to create a session entity type for. + // Format: `projects//locations//agents//sessions/` or `projects//locations//agents//environments//sessions/`. + // If `Environment ID` is not specified, we assume default 'draft' + // environment. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/SessionEntityType" + } + ]; + + // Required. The session entity type to create. + SessionEntityType session_entity_type = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// The request message for [SessionEntityTypes.UpdateSessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityTypes.UpdateSessionEntityType]. +message UpdateSessionEntityTypeRequest { + // Required. The session entity type to update. + // Format: `projects//locations//agents//sessions//entityTypes/` or + // `projects//locations//agents//environments//sessions//entityTypes/`. If `Environment ID` is not specified, we assume default 'draft' + // environment. + SessionEntityType session_entity_type = 1 [(google.api.field_behavior) = REQUIRED]; + + // The mask to control which fields get updated. + google.protobuf.FieldMask update_mask = 2; +} + +// The request message for [SessionEntityTypes.DeleteSessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityTypes.DeleteSessionEntityType]. +message DeleteSessionEntityTypeRequest { + // Required. The name of the session entity type to delete. + // Format: `projects//locations//agents//sessions//entityTypes/` or + // `projects//locations//agents//environments//sessions//entityTypes/`. If `Environment ID` is not specified, we assume default 'draft' + // environment. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/SessionEntityType" + } + ]; +} diff --git a/third_party/googleapis/google/cloud/dialogflow/cx/v3/test_case.proto b/third_party/googleapis/google/cloud/dialogflow/cx/v3/test_case.proto new file mode 100644 index 000000000..baa1aff62 --- /dev/null +++ b/third_party/googleapis/google/cloud/dialogflow/cx/v3/test_case.proto @@ -0,0 +1,875 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.cx.v3; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/dialogflow/cx/v3/flow.proto"; +import "google/cloud/dialogflow/cx/v3/intent.proto"; +import "google/cloud/dialogflow/cx/v3/page.proto"; +import "google/cloud/dialogflow/cx/v3/response_message.proto"; +import "google/cloud/dialogflow/cx/v3/session.proto"; +import "google/cloud/dialogflow/cx/v3/transition_route_group.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx"; +option java_multiple_files = true; +option java_outer_classname = "TestCaseProto"; +option java_package = "com.google.cloud.dialogflow.cx.v3"; +option objc_class_prefix = "DF"; + +// Service for managing [Test Cases][google.cloud.dialogflow.cx.v3.TestCase] and +// [Test Case Results][google.cloud.dialogflow.cx.v3.TestCaseResult]. +service TestCases { + option (google.api.default_host) = "dialogflow.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/dialogflow"; + + // Fetches a list of test cases for a given agent. + rpc ListTestCases(ListTestCasesRequest) returns (ListTestCasesResponse) { + option (google.api.http) = { + get: "/v3/{parent=projects/*/locations/*/agents/*}/testCases" + }; + option (google.api.method_signature) = "parent"; + } + + // Batch deletes test cases. + rpc BatchDeleteTestCases(BatchDeleteTestCasesRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v3/{parent=projects/*/locations/*/agents/*}/testCases:batchDelete" + body: "*" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets a test case. + rpc GetTestCase(GetTestCaseRequest) returns (TestCase) { + option (google.api.http) = { + get: "/v3/{name=projects/*/locations/*/agents/*/testCases/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a test case for the given agent. + rpc CreateTestCase(CreateTestCaseRequest) returns (TestCase) { + option (google.api.http) = { + post: "/v3/{parent=projects/*/locations/*/agents/*}/testCases" + body: "test_case" + }; + option (google.api.method_signature) = "parent,test_case"; + } + + // Updates the specified test case. + rpc UpdateTestCase(UpdateTestCaseRequest) returns (TestCase) { + option (google.api.http) = { + patch: "/v3/{test_case.name=projects/*/locations/*/agents/*/testCases/*}" + body: "test_case" + }; + option (google.api.method_signature) = "test_case,update_mask"; + } + + // Kicks off a test case run. + rpc RunTestCase(RunTestCaseRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v3/{name=projects/*/locations/*/agents/*/testCases/*}:run" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "RunTestCaseResponse" + metadata_type: "RunTestCaseMetadata" + }; + } + + // Kicks off a batch run of test cases. + rpc BatchRunTestCases(BatchRunTestCasesRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v3/{parent=projects/*/locations/*/agents/*}/testCases:batchRun" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "BatchRunTestCasesResponse" + metadata_type: "BatchRunTestCasesMetadata" + }; + } + + // Calculates the test coverage for an agent. + rpc CalculateCoverage(CalculateCoverageRequest) returns (CalculateCoverageResponse) { + option (google.api.http) = { + get: "/v3/{agent=projects/*/locations/*/agents/*}/testCases:calculateCoverage" + }; + } + + // Imports the test cases from a Cloud Storage bucket or a local file. It + // always creates new test cases and won't overwite any existing ones. The + // provided ID in the imported test case is neglected. + rpc ImportTestCases(ImportTestCasesRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v3/{parent=projects/*/locations/*/agents/*}/testCases:import" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "ImportTestCasesResponse" + metadata_type: "ImportTestCasesMetadata" + }; + } + + // Exports the test cases under the agent to a Cloud Storage bucket or a local + // file. Filter can be applied to export a subset of test cases. + rpc ExportTestCases(ExportTestCasesRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v3/{parent=projects/*/locations/*/agents/*}/testCases:export" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "ExportTestCasesResponse" + metadata_type: "ExportTestCasesMetadata" + }; + } + + // Fetches a list of results for a given test case. + rpc ListTestCaseResults(ListTestCaseResultsRequest) returns (ListTestCaseResultsResponse) { + option (google.api.http) = { + get: "/v3/{parent=projects/*/locations/*/agents/*/testCases/*}/results" + }; + option (google.api.method_signature) = "parent"; + } +} + +// Represents a test case. +message TestCase { + option (google.api.resource) = { + type: "dialogflow.googleapis.com/TestCase" + pattern: "projects/{project}/locations/{location}/agents/{agent}/testCases/{test_case}" + }; + + // The unique identifier of the test case. + // [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase] will populate the name automatically. + // Otherwise use format: `projects//locations//agents/ + // /testCases/`. + string name = 1; + + // Tags are short descriptions that users may apply to test cases for + // organizational and filtering purposes. Each tag should start with "#" and + // has a limit of 30 characters. + repeated string tags = 2; + + // Required. The human-readable name of the test case, unique within the agent. Limit of + // 200 characters. + string display_name = 3 [(google.api.field_behavior) = REQUIRED]; + + // Additional freeform notes about the test case. Limit of 400 characters. + string notes = 4; + + // Config for the test case. + TestConfig test_config = 13; + + // The conversation turns uttered when the test case was created, in + // chronological order. These include the canonical set of agent utterances + // that should occur when the agent is working properly. + repeated ConversationTurn test_case_conversation_turns = 5; + + // Output only. When the test was created. + google.protobuf.Timestamp creation_time = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The latest test result. + TestCaseResult last_test_result = 12; +} + +// Represents a result from running a test case in an agent environment. +message TestCaseResult { + option (google.api.resource) = { + type: "dialogflow.googleapis.com/TestCaseResult" + pattern: "projects/{project}/locations/{location}/agents/{agent}/testCases/{test_case}/results/{result}" + }; + + // The resource name for the test case result. Format: + // `projects//locations//agents//testCases/ + // /results/`. + string name = 1; + + // Environment where the test was run. If not set, it indicates the draft + // environment. + string environment = 2 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Environment" + }]; + + // The conversation turns uttered during the test case replay in chronological + // order. + repeated ConversationTurn conversation_turns = 3; + + // Whether the test case passed in the agent environment. + TestResult test_result = 4; + + // The time that the test was run. + google.protobuf.Timestamp test_time = 5; +} + +// Represents configurations for a test case. +message TestConfig { + // Session parameters to be compared when calculating differences. + repeated string tracking_parameters = 1; + + // Flow name. If not set, default start flow is assumed. + // Format: `projects//locations//agents//flows/`. + string flow = 2 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Flow" + }]; +} + +// One interaction between a human and virtual agent. The human provides some +// input and the virtual agent provides a response. +message ConversationTurn { + // The input from the human user. + message UserInput { + // Supports [text input][google.cloud.dialogflow.cx.v3.QueryInput.text], [event input][google.cloud.dialogflow.cx.v3.QueryInput.event], + // [dtmf input][google.cloud.dialogflow.cx.v3.QueryInput.dtmf] in the test case. + QueryInput input = 5; + + // Parameters that need to be injected into the conversation during intent + // detection. + google.protobuf.Struct injected_parameters = 2; + + // If webhooks should be allowed to trigger in response to the user + // utterance. Often if parameters are injected, webhooks should not be + // enabled. + bool is_webhook_enabled = 3; + } + + // The output from the virtual agent. + message VirtualAgentOutput { + // The session parameters available to the bot at this point. + google.protobuf.Struct session_parameters = 4; + + // Output only. If this is part of a [result conversation + // turn][TestCaseResult.conversation_turns], the list of differences + // between the original run and the replay for this output, if any. + repeated TestRunDifference differences = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Input only. The diagnostic + // [info][Session.DetectIntentResponse.QueryResult.diagnostic_info] + // output for the turn. + google.protobuf.Struct diagnostic_info = 6 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = INPUT_ONLY + ]; + + // The [Intent][google.cloud.dialogflow.cx.v3.Intent] that triggered the response. Only name and displayName + // will be set. + Intent triggered_intent = 7; + + // The [Page][google.cloud.dialogflow.cx.v3.Page] on which the utterance was spoken. Only name and displayName + // will be set. + Page current_page = 8; + + // The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn. + repeated ResponseMessage.Text text_responses = 9; + + // Response error from the agent in the test result. If set, other output + // is empty. + google.rpc.Status status = 10; + } + + // The user input. + UserInput user_input = 1; + + // The virtual agent output. + VirtualAgentOutput virtual_agent_output = 2; +} + +// The description of differences between original and replayed agent output. +message TestRunDifference { + // What part of the message replay differs from the test case. + enum DiffType { + // Should never be used. + DIFF_TYPE_UNSPECIFIED = 0; + + // The intent. + INTENT = 1; + + // The page. + PAGE = 2; + + // The parameters. + PARAMETERS = 3; + + // The message utterance. + UTTERANCE = 4; + } + + // The type of diff. + DiffType type = 1; + + // A description of the diff, showing the actual output vs expected output. + string description = 2; +} + +// Transition coverage represents the percentage of all possible page +// transitions (page-level transition routes and event handlers, excluding +// transition route groups) present within any of a parent's test cases. +message TransitionCoverage { + // The source or target of a transition. + message TransitionNode { + // A TransitionNode can be either a page or a flow. + oneof kind { + // Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page]. Only some fields such as name and + // displayname will be set. + Page page = 1; + + // Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow]. Only some fields such as name and + // displayname will be set. + Flow flow = 2; + } + } + + // A transition in a page. + message Transition { + // The start node of a transition. + TransitionNode source = 1; + + // The index of a transition in the transition list. Starting from 0. + int32 index = 4; + + // The end node of a transition. + TransitionNode target = 2; + + // Whether or not the transition is covered by at least one of the + // agent's test cases. + bool covered = 3; + + // The detailed transition. + oneof detail { + // Intent route or condition route. + TransitionRoute transition_route = 5; + + // Event handler. + EventHandler event_handler = 6; + } + } + + // The list of Transitions present in the agent. + repeated Transition transitions = 1; + + // The percent of transitions in the agent that are covered. + float coverage_score = 2; +} + +// Transition route group coverage represents the percentage of all possible +// transition routes present within any of a parent's test cases. The results +// are grouped by the transition route group. +message TransitionRouteGroupCoverage { + // Coverage result message for one transition route group. + message Coverage { + // A transition coverage in a transition route group. + message Transition { + // Intent route or condition route. + TransitionRoute transition_route = 1; + + // Whether or not the transition route is covered by at least one of the + // agent's test cases. + bool covered = 2; + } + + // Transition route group metadata. Only name and displayName will be set. + TransitionRouteGroup route_group = 1; + + // The list of transition routes and coverage in the transition route group. + repeated Transition transitions = 2; + + // The percent of transition routes in the transition route group that are + // covered. + float coverage_score = 3; + } + + // Transition route group coverages. + repeated Coverage coverages = 1; + + // The percent of transition routes in all the transition route groups that + // are covered. + float coverage_score = 2; +} + +// Intent coverage represents the percentage of all possible intents in the +// agent that are triggered in any of a parent's test cases. +message IntentCoverage { + // The agent's intent. + message Intent { + // The intent full resource name + string intent = 1 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Intent" + }]; + + // Whether or not the intent is covered by at least one of the agent's + // test cases. + bool covered = 2; + } + + // The list of Intents present in the agent + repeated Intent intents = 1; + + // The percent of intents in the agent that are covered. + float coverage_score = 2; +} + +// The request message for [TestCases.CalculateCoverage][google.cloud.dialogflow.cx.v3.TestCases.CalculateCoverage]. +message CalculateCoverageRequest { + // The type of coverage score requested. + enum CoverageType { + // Should never be used. + COVERAGE_TYPE_UNSPECIFIED = 0; + + // Intent coverage. + INTENT = 1; + + // Page transition coverage. + PAGE_TRANSITION = 2; + + // Transition route group coverage. + TRANSITION_ROUTE_GROUP = 3; + } + + // Required. The agent to calculate coverage for. + // Format: `projects//locations//agents/`. + string agent = 3 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Agent" + } + ]; + + // Required. The type of coverage requested. + CoverageType type = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// The response message for [TestCases.CalculateCoverage][google.cloud.dialogflow.cx.v3.TestCases.CalculateCoverage]. +message CalculateCoverageResponse { + // The agent to calculate coverage for. + // Format: `projects//locations//agents/`. + string agent = 5 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Agent" + }]; + + // The type of coverage requested. + oneof coverage_type { + // Intent coverage. + IntentCoverage intent_coverage = 2; + + // Transition (excluding transition route groups) coverage. + TransitionCoverage transition_coverage = 4; + + // Transition route group coverage. + TransitionRouteGroupCoverage route_group_coverage = 6; + } +} + +// The request message for [TestCases.ListTestCases][google.cloud.dialogflow.cx.v3.TestCases.ListTestCases]. +message ListTestCasesRequest { + // Specifies how much test case information to include in the response. + enum TestCaseView { + // The default / unset value. + // The API will default to the BASIC view. + TEST_CASE_VIEW_UNSPECIFIED = 0; + + // Include basic metadata about the test case, but not the conversation + // turns. This is the default value. + BASIC = 1; + + // Include everything. + FULL = 2; + } + + // Required. The agent to list all pages for. + // Format: `projects//locations//agents/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/TestCase" + } + ]; + + // The maximum number of items to return in a single page. By default 20. + // Note that when TestCaseView = FULL, the maximum page size allowed is 20. + // When TestCaseView = BASIC, the maximum page size allowed is 500. + int32 page_size = 2; + + // The next_page_token value returned from a previous list request. + string page_token = 3; + + // Specifies whether response should include all fields or just the metadata. + TestCaseView view = 4; +} + +// The response message for [TestCases.ListTestCases][google.cloud.dialogflow.cx.v3.TestCases.ListTestCases]. +message ListTestCasesResponse { + // The list of test cases. There will be a maximum number of items returned + // based on the page_size field in the request. + repeated TestCase test_cases = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; +} + +// The request message for [TestCases.BatchDeleteTestCases][google.cloud.dialogflow.cx.v3.TestCases.BatchDeleteTestCases]. +message BatchDeleteTestCasesRequest { + // Required. The agent to delete test cases from. + // Format: `projects//locations//agents/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/TestCase" + } + ]; + + // Required. Format of test case names: `projects//locations/ + // /agents//testCases/`. + repeated string names = 3 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/TestCase" + } + ]; +} + +// The request message for [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase]. +message CreateTestCaseRequest { + // Required. The agent to create the test case for. + // Format: `projects//locations//agents/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/TestCase" + } + ]; + + // Required. The test case to create. + TestCase test_case = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// The request message for [TestCases.UpdateTestCase][google.cloud.dialogflow.cx.v3.TestCases.UpdateTestCase]. +message UpdateTestCaseRequest { + // Required. The test case to update. + TestCase test_case = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The mask to specify which fields should be updated. The + // [`creationTime`][google.cloud.dialogflow.cx.v3.TestCase.creation_time] and + // [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result] cannot be updated. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// The request message for [TestCases.GetTestCase][google.cloud.dialogflow.cx.v3.TestCases.GetTestCase]. +message GetTestCaseRequest { + // Required. The name of the testcase. + // Format: `projects//locations//agents//testCases/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/TestCase" + } + ]; +} + +// The request message for [TestCases.RunTestCase][google.cloud.dialogflow.cx.v3.TestCases.RunTestCase]. +message RunTestCaseRequest { + // Required. Format of test case name to run: `projects//locations/ + // /agents//testCases/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/TestCase" + } + ]; + + // Optional. Environment name. If not set, draft environment is assumed. + // Format: `projects//locations//agents//environments/`. + string environment = 2 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Environment" + } + ]; +} + +// The response message for [TestCases.RunTestCase][google.cloud.dialogflow.cx.v3.TestCases.RunTestCase]. +message RunTestCaseResponse { + // The result. + TestCaseResult result = 2; +} + +// Metadata returned for the [TestCases.RunTestCase][google.cloud.dialogflow.cx.v3.TestCases.RunTestCase] long running operation. +message RunTestCaseMetadata { + +} + +// The request message for [TestCases.BatchRunTestCases][google.cloud.dialogflow.cx.v3.TestCases.BatchRunTestCases]. +message BatchRunTestCasesRequest { + // Required. Agent name. Format: `projects//locations//agents/ + // `. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/TestCase" + } + ]; + + // Optional. If not set, draft environment is assumed. Format: `projects//locations//agents//environments/`. + string environment = 2 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Environment" + } + ]; + + // Required. Format: `projects//locations//agents//testCases/`. + repeated string test_cases = 3 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/TestCase" + } + ]; +} + +// The response message for [TestCases.BatchRunTestCases][google.cloud.dialogflow.cx.v3.TestCases.BatchRunTestCases]. +message BatchRunTestCasesResponse { + // The test case results. The detailed + // [conversation turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are empty in this + // response. + repeated TestCaseResult results = 1; +} + +// Metadata returned for the [TestCases.BatchRunTestCases][google.cloud.dialogflow.cx.v3.TestCases.BatchRunTestCases] long running +// operation. +message BatchRunTestCasesMetadata { + // The test errors. + repeated TestError errors = 1; +} + +// Error info for running a test. +message TestError { + // The test case resource name. + string test_case = 1 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/TestCase" + }]; + + // The status associated with the test. + google.rpc.Status status = 2; + + // The timestamp when the test was completed. + google.protobuf.Timestamp test_time = 3; +} + +// The request message for [TestCases.ImportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ImportTestCases]. +message ImportTestCasesRequest { + // Required. The agent to import test cases to. + // Format: `projects//locations//agents/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/TestCase" + } + ]; + + // Required. The source to import. + oneof source { + // The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI + // to import test cases from. The format of this URI must be + // `gs:///`. + string gcs_uri = 2; + + // Uncompressed raw byte content for test cases. + bytes content = 3; + } +} + +// The response message for [TestCases.ImportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ImportTestCases]. +message ImportTestCasesResponse { + // The unique identifiers of the new test cases. + // Format: `projects//locations//agents//testCases/`. + repeated string names = 1 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/TestCase" + }]; +} + +// Metadata returned for the [TestCases.ImportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ImportTestCases] long running +// operation. +message ImportTestCasesMetadata { + // Errors for failed test cases. + repeated TestCaseError errors = 1; +} + +// Error info for importing a test. +message TestCaseError { + // The test case. + TestCase test_case = 1; + + // The status associated with the test case. + google.rpc.Status status = 2; +} + +// The request message for [TestCases.ExportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ExportTestCases]. +message ExportTestCasesRequest { + // Data format of the exported test cases. + enum DataFormat { + // Unspecified format. + DATA_FORMAT_UNSPECIFIED = 0; + + // Raw bytes. + BLOB = 1; + + // JSON format. + JSON = 2; + } + + // Required. The agent where to export test cases from. + // Format: `projects//locations//agents/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/TestCase" + } + ]; + + // The destination to export. + oneof destination { + // The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to + // export the test cases to. The format of this URI must be + // `gs:///`. If unspecified, the serialized test + // cases is returned inline. + string gcs_uri = 2; + } + + // The data format of the exported test cases. If not specified, `BLOB` is + // assumed. + DataFormat data_format = 3; + + // The filter expression used to filter exported test cases, see + // [API Filtering](https://aip.dev/160). The expression is case insensitive + // and supports the following syntax: + // + // name = [OR name = ] ... + // + // For example: + // + // * "name = t1 OR name = t2" matches the test case with the exact resource + // name "t1" or "t2". + string filter = 4; +} + +// The response message for [TestCases.ExportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ExportTestCases]. +message ExportTestCasesResponse { + // The exported test cases. + oneof destination { + // The URI to a file containing the exported test cases. This field is + // populated only if `gcs_uri` is specified in + // [ExportTestCasesRequest][google.cloud.dialogflow.cx.v3.ExportTestCasesRequest]. + string gcs_uri = 1; + + // Uncompressed raw byte content for test cases. + bytes content = 2; + } +} + +// Metadata returned for the [TestCases.ExportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ExportTestCases] long running +// operation. +message ExportTestCasesMetadata { + +} + +// The request message for [TestCases.ListTestCaseResults][google.cloud.dialogflow.cx.v3.TestCases.ListTestCaseResults]. +message ListTestCaseResultsRequest { + // Required. The test case to list results for. + // Format: `projects//locations//agents// + // testCases/`. Specify a `-` as a wildcard for TestCase ID to + // list results across multiple test cases. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/TestCaseResult" + } + ]; + + // The maximum number of items to return in a single page. By default 100 and + // at most 1000. + int32 page_size = 2; + + // The next_page_token value returned from a previous list request. + string page_token = 3; + + // The filter expression used to filter test case results. See + // [API Filtering](https://aip.dev/160). + // + // The expression is case insensitive. Only 'AND' is supported for logical + // operators. The supported syntax is listed below in detail: + // + // [AND ] ... + // [AND latest] + // + // The supported fields and operators are: + // field operator + // `environment` `=`, `IN` (Use value `draft` for draft environment) + // `test_time` `>`, `<` + // + // `latest` only returns the latest test result in all results for each test + // case. + // + // Examples: + // * "environment=draft AND latest" matches the latest test result for each + // test case in the draft environment. + // * "environment IN (e1,e2)" matches any test case results with an + // environment resource name of either "e1" or "e2". + // * "test_time > 1602540713" matches any test case results with test time + // later than a unix timestamp in seconds 1602540713. + string filter = 4; +} + +// The response message for [TestCases.ListTestCaseResults][google.cloud.dialogflow.cx.v3.TestCases.ListTestCaseResults]. +message ListTestCaseResultsResponse { + // The list of test case results. + repeated TestCaseResult test_case_results = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; +} + +// The test result for a test case and an agent environment. +enum TestResult { + // Not specified. Should never be used. + TEST_RESULT_UNSPECIFIED = 0; + + // The test passed. + PASSED = 1; + + // The test did not pass. + FAILED = 2; +} diff --git a/third_party/googleapis/google/cloud/dialogflow/cx/v3/transition_route_group.proto b/third_party/googleapis/google/cloud/dialogflow/cx/v3/transition_route_group.proto new file mode 100644 index 000000000..1f5911955 --- /dev/null +++ b/third_party/googleapis/google/cloud/dialogflow/cx/v3/transition_route_group.proto @@ -0,0 +1,243 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.cx.v3; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/dialogflow/cx/v3/page.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx"; +option java_multiple_files = true; +option java_outer_classname = "TransitionRouteGroupProto"; +option java_package = "com.google.cloud.dialogflow.cx.v3"; +option objc_class_prefix = "DF"; + +// Service for managing [TransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]. +service TransitionRouteGroups { + option (google.api.default_host) = "dialogflow.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/dialogflow"; + + // Returns the list of all transition route groups in the specified flow. + rpc ListTransitionRouteGroups(ListTransitionRouteGroupsRequest) returns (ListTransitionRouteGroupsResponse) { + option (google.api.http) = { + get: "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/transitionRouteGroups" + }; + option (google.api.method_signature) = "parent"; + } + + // Retrieves the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]. + rpc GetTransitionRouteGroup(GetTransitionRouteGroupRequest) returns (TransitionRouteGroup) { + option (google.api.http) = { + get: "/v3/{name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates an [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] in the specified flow. + rpc CreateTransitionRouteGroup(CreateTransitionRouteGroupRequest) returns (TransitionRouteGroup) { + option (google.api.http) = { + post: "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/transitionRouteGroups" + body: "transition_route_group" + }; + option (google.api.method_signature) = "parent,transition_route_group"; + } + + // Updates the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]. + rpc UpdateTransitionRouteGroup(UpdateTransitionRouteGroupRequest) returns (TransitionRouteGroup) { + option (google.api.http) = { + patch: "/v3/{transition_route_group.name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}" + body: "transition_route_group" + }; + option (google.api.method_signature) = "transition_route_group,update_mask"; + } + + // Deletes the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]. + rpc DeleteTransitionRouteGroup(DeleteTransitionRouteGroupRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v3/{name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}" + }; + option (google.api.method_signature) = "name"; + } +} + +// An TransitionRouteGroup represents a group of +// [`TransitionRoutes`][google.cloud.dialogflow.cx.v3.TransitionRoute] to be used by a [Page][google.cloud.dialogflow.cx.v3.Page]. +message TransitionRouteGroup { + option (google.api.resource) = { + type: "dialogflow.googleapis.com/TransitionRouteGroup" + pattern: "projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/transitionRouteGroups/{transition_route_group}" + }; + + // The unique identifier of the transition route group. + // [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup] populates the name + // automatically. + // Format: `projects//locations//agents//flows//transitionRouteGroups/`. + string name = 1; + + // Required. The human-readable name of the transition route group, unique within + // the [Agent][google.cloud.dialogflow.cx.v3.Agent]. The display name can be no longer than 30 characters. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]. + repeated TransitionRoute transition_routes = 5; +} + +// The request message for [TransitionRouteGroups.ListTransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.ListTransitionRouteGroups]. +message ListTransitionRouteGroupsRequest { + // Required. The flow to list all transition route groups for. + // Format: `projects//locations//agents//flows/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/TransitionRouteGroup" + } + ]; + + // The maximum number of items to return in a single page. By default 100 and + // at most 1000. + int32 page_size = 2; + + // The next_page_token value returned from a previous list request. + string page_token = 3; + + // The language to list transition route groups for. The field + // [`messages`][TransitionRoute.trigger_fulfillment.messages] in + // [TransitionRoute][google.cloud.dialogflow.cx.v3.TransitionRoute] is language dependent. + // + // If not specified, the agent's default language is used. + // [Many + // languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) + // are supported. + // Note: languages must be enabled in the agent before they can be used. + string language_code = 4; +} + +// The response message for [TransitionRouteGroups.ListTransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.ListTransitionRouteGroups]. +message ListTransitionRouteGroupsResponse { + // The list of transition route groups. There will be a maximum number of + // items returned based on the page_size field in the request. The list may in + // some cases be empty or contain fewer entries than page_size even if this + // isn't the last page. + repeated TransitionRouteGroup transition_route_groups = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; +} + +// The request message for [TransitionRouteGroups.GetTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.GetTransitionRouteGroup]. +message GetTransitionRouteGroupRequest { + // Required. The name of the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]. + // Format: `projects//locations//agents//flows//transitionRouteGroups/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/TransitionRouteGroup" + } + ]; + + // The language to list transition route groups for. The field + // [`messages`][TransitionRoute.trigger_fulfillment.messages] in + // [TransitionRoute][google.cloud.dialogflow.cx.v3.TransitionRoute] is language dependent. + // + // If not specified, the agent's default language is used. + // [Many + // languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) + // are supported. + // Note: languages must be enabled in the agent before they can be used. + string language_code = 2; +} + +// The request message for [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup]. +message CreateTransitionRouteGroupRequest { + // Required. The flow to create an [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] for. + // Format: `projects//locations//agents//flows/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/TransitionRouteGroup" + } + ]; + + // Required. The transition route group to create. + TransitionRouteGroup transition_route_group = 2 [(google.api.field_behavior) = REQUIRED]; + + // The language to list transition route groups for. The field + // [`messages`][TransitionRoute.trigger_fulfillment.messages] in + // [TransitionRoute][google.cloud.dialogflow.cx.v3.TransitionRoute] is language dependent. + // + // If not specified, the agent's default language is used. + // [Many + // languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) + // are supported. + // Note: languages must be enabled in the agent before they can be used. + string language_code = 3; +} + +// The request message for [TransitionRouteGroups.UpdateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.UpdateTransitionRouteGroup]. +message UpdateTransitionRouteGroupRequest { + // Required. The transition route group to update. + TransitionRouteGroup transition_route_group = 1 [(google.api.field_behavior) = REQUIRED]; + + // The mask to control which fields get updated. + google.protobuf.FieldMask update_mask = 2; + + // The language to list transition route groups for. The field + // [`messages`][TransitionRoute.trigger_fulfillment.messages] in + // [TransitionRoute][google.cloud.dialogflow.cx.v3.TransitionRoute] is language dependent. + // + // If not specified, the agent's default language is used. + // [Many + // languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) + // are supported. + // Note: languages must be enabled in the agent before they can be used. + string language_code = 3; +} + +// The request message for [TransitionRouteGroups.DeleteTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.DeleteTransitionRouteGroup]. +message DeleteTransitionRouteGroupRequest { + // Required. The name of the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] to delete. + // Format: `projects//locations//agents//flows//transitionRouteGroups/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/TransitionRouteGroup" + } + ]; + + // This field has no effect for transition route group that no page is using. + // If the transition route group is referenced by any page: + // + // * If `force` is set to false, an error will be returned with message + // indicating pages that reference the transition route group. + // * If `force` is set to true, Dialogflow will remove the transition route + // group, as well as any reference to it. + bool force = 2; +} diff --git a/third_party/googleapis/google/cloud/dialogflow/cx/v3/validation_message.proto b/third_party/googleapis/google/cloud/dialogflow/cx/v3/validation_message.proto new file mode 100644 index 000000000..f36c9bb9d --- /dev/null +++ b/third_party/googleapis/google/cloud/dialogflow/cx/v3/validation_message.proto @@ -0,0 +1,115 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.cx.v3; + +import "google/protobuf/struct.proto"; +import "google/api/annotations.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx"; +option java_multiple_files = true; +option java_outer_classname = "ValidationMessageProto"; +option java_package = "com.google.cloud.dialogflow.cx.v3"; +option objc_class_prefix = "DF"; + +// Agent/flow validation message. +message ValidationMessage { + // Resource types. + enum ResourceType { + // Unspecified. + RESOURCE_TYPE_UNSPECIFIED = 0; + + // Agent. + AGENT = 1; + + // Intent. + INTENT = 2; + + // Intent training phrase. + INTENT_TRAINING_PHRASE = 8; + + // Intent parameter. + INTENT_PARAMETER = 9; + + // Multiple intents. + INTENTS = 10; + + // Multiple training phrases. + INTENT_TRAINING_PHRASES = 11; + + // Entity type. + ENTITY_TYPE = 3; + + // Multiple entity types. + ENTITY_TYPES = 12; + + // Webhook. + WEBHOOK = 4; + + // Flow. + FLOW = 5; + + // Page. + PAGE = 6; + + // Multiple pages. + PAGES = 13; + + // Transition route group. + TRANSITION_ROUTE_GROUP = 7; + } + + // Severity level. + enum Severity { + // Unspecified. + SEVERITY_UNSPECIFIED = 0; + + // The agent doesn't follow Dialogflow best practices. + INFO = 1; + + // The agent may not behave as expected. + WARNING = 2; + + // The agent may experience failures. + ERROR = 3; + } + + // The type of the resources where the message is found. + ResourceType resource_type = 1; + + // The names of the resources where the message is found. + repeated string resources = 2 [deprecated = true]; + + // The resource names of the resources where the message is found. + repeated ResourceName resource_names = 6; + + // Indicates the severity of the message. + Severity severity = 3; + + // The message detail. + string detail = 4; +} + +// Resource name and display name. +message ResourceName { + // Name. + string name = 1; + + // Display name. + string display_name = 2; +} diff --git a/third_party/googleapis/google/cloud/dialogflow/cx/v3/version.proto b/third_party/googleapis/google/cloud/dialogflow/cx/v3/version.proto new file mode 100644 index 000000000..a3a992025 --- /dev/null +++ b/third_party/googleapis/google/cloud/dialogflow/cx/v3/version.proto @@ -0,0 +1,261 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.cx.v3; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/dialogflow/cx/v3/flow.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx"; +option java_multiple_files = true; +option java_outer_classname = "VersionProto"; +option java_package = "com.google.cloud.dialogflow.cx.v3"; +option objc_class_prefix = "DF"; + +// Service for managing [Versions][google.cloud.dialogflow.cx.v3.Version]. +service Versions { + option (google.api.default_host) = "dialogflow.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/dialogflow"; + + // Returns the list of all versions in the specified [Flow][google.cloud.dialogflow.cx.v3.Flow]. + rpc ListVersions(ListVersionsRequest) returns (ListVersionsResponse) { + option (google.api.http) = { + get: "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/versions" + }; + option (google.api.method_signature) = "parent"; + } + + // Retrieves the specified [Version][google.cloud.dialogflow.cx.v3.Version]. + rpc GetVersion(GetVersionRequest) returns (Version) { + option (google.api.http) = { + get: "/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a [Version][google.cloud.dialogflow.cx.v3.Version] in the specified [Flow][google.cloud.dialogflow.cx.v3.Flow]. + rpc CreateVersion(CreateVersionRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/versions" + body: "version" + }; + option (google.api.method_signature) = "parent,version"; + option (google.longrunning.operation_info) = { + response_type: "Version" + metadata_type: "CreateVersionOperationMetadata" + }; + } + + // Updates the specified [Version][google.cloud.dialogflow.cx.v3.Version]. + rpc UpdateVersion(UpdateVersionRequest) returns (Version) { + option (google.api.http) = { + patch: "/v3/{version.name=projects/*/locations/*/agents/*/flows/*/versions/*}" + body: "version" + }; + option (google.api.method_signature) = "version,update_mask"; + } + + // Deletes the specified [Version][google.cloud.dialogflow.cx.v3.Version]. + rpc DeleteVersion(DeleteVersionRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Loads a specified version to draft version. + rpc LoadVersion(LoadVersionRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v3/{name=projects/*/locations/*/agents/*/flows/*/versions/*}:load" + body: "*" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.protobuf.Struct" + }; + } +} + +// Metadata associated with the long running operation for +// [Versions.CreateVersion][google.cloud.dialogflow.cx.v3.Versions.CreateVersion]. +message CreateVersionOperationMetadata { + // Name of the created version. + // Format: `projects//locations//agents//flows//versions/`. + string version = 1 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Version" + }]; +} + +// Represents a version of a flow. +message Version { + option (google.api.resource) = { + type: "dialogflow.googleapis.com/Version" + pattern: "projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/versions/{version}" + }; + + // The state of the version. + enum State { + // Not specified. This value is not used. + STATE_UNSPECIFIED = 0; + + // Version is not ready to serve (e.g. training is running). + RUNNING = 1; + + // Training has succeeded and this version is ready to serve. + SUCCEEDED = 2; + + // Version training failed. + FAILED = 3; + } + + // Format: projects//locations//agents//flows//versions/. Version ID is a self-increasing + // number generated by Dialogflow upon version creation. + string name = 1; + + // Required. The human-readable name of the version. Limit of 64 characters. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // The description of the version. The maximum length is 500 characters. If + // exceeded, the request is rejected. + string description = 3; + + // Output only. The NLU settings of the flow at version creation. + NluSettings nlu_settings = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Create time of the version. + google.protobuf.Timestamp create_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The state of this version. This field is read-only and cannot be set by + // create and update methods. + State state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The request message for [Versions.ListVersions][google.cloud.dialogflow.cx.v3.Versions.ListVersions]. +message ListVersionsRequest { + // Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all versions for. + // Format: `projects//locations//agents//flows/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/Version" + } + ]; + + // The maximum number of items to return in a single page. By default 20 and + // at most 100. + int32 page_size = 2; + + // The next_page_token value returned from a previous list request. + string page_token = 3; +} + +// The response message for [Versions.ListVersions][google.cloud.dialogflow.cx.v3.Versions.ListVersions]. +message ListVersionsResponse { + // A list of versions. There will be a maximum number of items returned based + // on the page_size field in the request. The list may in some cases be empty + // or contain fewer entries than page_size even if this isn't the last page. + repeated Version versions = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; +} + +// The request message for [Versions.GetVersion][google.cloud.dialogflow.cx.v3.Versions.GetVersion]. +message GetVersionRequest { + // Required. The name of the [Version][google.cloud.dialogflow.cx.v3.Version]. + // Format: `projects//locations//agents//flows//versions/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Version" + } + ]; +} + +// The request message for [Versions.CreateVersion][google.cloud.dialogflow.cx.v3.Versions.CreateVersion]. +message CreateVersionRequest { + // Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to create an [Version][google.cloud.dialogflow.cx.v3.Version] for. + // Format: `projects//locations//agents//flows/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/Version" + } + ]; + + // Required. The version to create. + Version version = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// The request message for [Versions.UpdateVersion][google.cloud.dialogflow.cx.v3.Versions.UpdateVersion]. +message UpdateVersionRequest { + // Required. The version to update. + Version version = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The mask to control which fields get updated. Currently only `description` + // and `display_name` can be updated. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// The request message for [Versions.DeleteVersion][google.cloud.dialogflow.cx.v3.Versions.DeleteVersion]. +message DeleteVersionRequest { + // Required. The name of the [Version][google.cloud.dialogflow.cx.v3.Version] to delete. + // Format: `projects//locations//agents//flows//versions/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Version" + } + ]; +} + +// The request message for [Versions.LoadVersion][google.cloud.dialogflow.cx.v3.Versions.LoadVersion]. +message LoadVersionRequest { + // Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded to draft version. + // Format: `projects//locations//agents//flows//versions/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Version" + } + ]; + + // This field is used to prevent accidental overwrite of other agent resources + // in the draft version, which can potentially impact other flow's behavior. + // If `allow_override_agent_resources` is false, conflicted agent-level + // resources will not be overridden (i.e. intents, entities, webhooks). + bool allow_override_agent_resources = 2; +} diff --git a/third_party/googleapis/google/cloud/dialogflow/cx/v3/webhook.proto b/third_party/googleapis/google/cloud/dialogflow/cx/v3/webhook.proto new file mode 100644 index 000000000..eb0863642 --- /dev/null +++ b/third_party/googleapis/google/cloud/dialogflow/cx/v3/webhook.proto @@ -0,0 +1,470 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.cx.v3; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/dialogflow/cx/v3/response_message.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/struct.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx"; +option java_multiple_files = true; +option java_outer_classname = "WebhookProto"; +option java_package = "com.google.cloud.dialogflow.cx.v3"; +option objc_class_prefix = "DF"; +option (google.api.resource_definition) = { + type: "servicedirectory.googleapis.com/Service" + pattern: "projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}" +}; + +// Service for managing [Webhooks][google.cloud.dialogflow.cx.v3.Webhook]. +service Webhooks { + option (google.api.default_host) = "dialogflow.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/dialogflow"; + + // Returns the list of all webhooks in the specified agent. + rpc ListWebhooks(ListWebhooksRequest) returns (ListWebhooksResponse) { + option (google.api.http) = { + get: "/v3/{parent=projects/*/locations/*/agents/*}/webhooks" + }; + option (google.api.method_signature) = "parent"; + } + + // Retrieves the specified webhook. + rpc GetWebhook(GetWebhookRequest) returns (Webhook) { + option (google.api.http) = { + get: "/v3/{name=projects/*/locations/*/agents/*/webhooks/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a webhook in the specified agent. + rpc CreateWebhook(CreateWebhookRequest) returns (Webhook) { + option (google.api.http) = { + post: "/v3/{parent=projects/*/locations/*/agents/*}/webhooks" + body: "webhook" + }; + option (google.api.method_signature) = "parent,webhook"; + } + + // Updates the specified webhook. + rpc UpdateWebhook(UpdateWebhookRequest) returns (Webhook) { + option (google.api.http) = { + patch: "/v3/{webhook.name=projects/*/locations/*/agents/*/webhooks/*}" + body: "webhook" + }; + option (google.api.method_signature) = "webhook,update_mask"; + } + + // Deletes the specified webhook. + rpc DeleteWebhook(DeleteWebhookRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v3/{name=projects/*/locations/*/agents/*/webhooks/*}" + }; + option (google.api.method_signature) = "name"; + } +} + +// Webhooks host the developer's business logic. During a session, webhooks +// allow the developer to use the data extracted by Dialogflow's natural +// language processing to generate dynamic responses, validate collected data, +// or trigger actions on the backend. +message Webhook { + option (google.api.resource) = { + type: "dialogflow.googleapis.com/Webhook" + pattern: "projects/{project}/locations/{location}/agents/{agent}/webhooks/{webhook}" + }; + + // Represents configuration for a generic web service. + message GenericWebService { + // Required. The webhook URI for receiving POST requests. It must use https protocol. + string uri = 1 [(google.api.field_behavior) = REQUIRED]; + + // The user name for HTTP Basic authentication. + string username = 2 [deprecated = true]; + + // The password for HTTP Basic authentication. + string password = 3 [deprecated = true]; + + // The HTTP request headers to send together with webhook + // requests. + map request_headers = 4; + } + + // The unique identifier of the webhook. + // Required for the [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook] method. + // [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook] populates the name automatically. + // Format: `projects//locations//agents//webhooks/`. + string name = 1; + + // Required. The human-readable name of the webhook, unique within the agent. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The webhook configuration. + oneof webhook { + // Configuration for a generic web service. + GenericWebService generic_web_service = 4; + } + + // Webhook execution timeout. Execution is considered failed if Dialogflow + // doesn't receive a response from webhook at the end of the timeout period. + // Defaults to 5 seconds, maximum allowed timeout is 30 seconds. + google.protobuf.Duration timeout = 6; + + // Indicates whether the webhook is disabled. + bool disabled = 5; +} + +// The request message for [Webhooks.ListWebhooks][google.cloud.dialogflow.cx.v3.Webhooks.ListWebhooks]. +message ListWebhooksRequest { + // Required. The agent to list all webhooks for. + // Format: `projects//locations//agents/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/Webhook" + } + ]; + + // The maximum number of items to return in a single page. By default 100 and + // at most 1000. + int32 page_size = 2; + + // The next_page_token value returned from a previous list request. + string page_token = 3; +} + +// The response message for [Webhooks.ListWebhooks][google.cloud.dialogflow.cx.v3.Webhooks.ListWebhooks]. +message ListWebhooksResponse { + // The list of webhooks. There will be a maximum number of items returned + // based on the page_size field in the request. + repeated Webhook webhooks = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; +} + +// The request message for [Webhooks.GetWebhook][google.cloud.dialogflow.cx.v3.Webhooks.GetWebhook]. +message GetWebhookRequest { + // Required. The name of the webhook. + // Format: `projects//locations//agents//webhooks/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Webhook" + } + ]; +} + +// The request message for [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook]. +message CreateWebhookRequest { + // Required. The agent to create a webhook for. + // Format: `projects//locations//agents/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/Webhook" + } + ]; + + // Required. The webhook to create. + Webhook webhook = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// The request message for [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook]. +message UpdateWebhookRequest { + // Required. The webhook to update. + Webhook webhook = 1 [(google.api.field_behavior) = REQUIRED]; + + // The mask to control which fields get updated. If the mask is not present, + // all fields will be updated. + google.protobuf.FieldMask update_mask = 2; +} + +// The request message for [Webhooks.DeleteWebhook][google.cloud.dialogflow.cx.v3.Webhooks.DeleteWebhook]. +message DeleteWebhookRequest { + // Required. The name of the webhook to delete. + // Format: `projects//locations//agents//webhooks/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Webhook" + } + ]; + + // This field has no effect for webhook not being used. + // For webhooks that are used by pages/flows/transition route groups: + // + // * If `force` is set to false, an error will be returned with message + // indicating the referenced resources. + // * If `force` is set to true, Dialogflow will remove the webhook, as well + // as any references to the webhook (i.e. [Webhook][google.cloud.dialogflow.cx.v3.Fulfillment.webhook] + // and [tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag]in fulfillments that point to this webhook + // will be removed). + bool force = 2; +} + +// The request message for a webhook call. +message WebhookRequest { + // Represents fulfillment information communicated to the webhook. + message FulfillmentInfo { + // Always present. The tag used to identify which fulfillment is being + // called. + string tag = 1; + } + + // Represents intent information communicated to the webhook. + message IntentInfo { + // Represents a value for an intent parameter. + message IntentParameterValue { + // Always present. Original text value extracted from user utterance. + string original_value = 1; + + // Always present. Structured value for the parameter extracted from user + // utterance. + google.protobuf.Value resolved_value = 2; + } + + // Always present. The unique identifier of the last matched + // [intent][google.cloud.dialogflow.cx.v3.Intent]. Format: `projects//locations//agents//intents/`. + string last_matched_intent = 1 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Intent" + }]; + + // Always present. The display name of the last matched [intent][google.cloud.dialogflow.cx.v3.Intent]. + string display_name = 3; + + // Parameters identified as a result of intent matching. This is a map of + // the name of the identified parameter to the value of the parameter + // identified from the user's utterance. All parameters defined in the + // matched intent that are identified will be surfaced here. + map parameters = 2; + + // The confidence of the matched intent. Values range from 0.0 (completely + // uncertain) to 1.0 (completely certain). + float confidence = 4; + } + + // Represents the result of sentiment analysis. + message SentimentAnalysisResult { + // Sentiment score between -1.0 (negative sentiment) and 1.0 (positive + // sentiment). + float score = 1; + + // A non-negative number in the [0, +inf) range, which represents the + // absolute magnitude of sentiment, regardless of score (positive or + // negative). + float magnitude = 2; + } + + // Always present. The unique identifier of the [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse] that + // will be returned to the API caller. + string detect_intent_response_id = 1; + + // Always present. Information about the fulfillment that triggered this + // webhook call. + FulfillmentInfo fulfillment_info = 6; + + // Information about the last matched intent. + IntentInfo intent_info = 3; + + // Information about page status. + PageInfo page_info = 4; + + // Information about session status. + SessionInfo session_info = 5; + + // The list of rich message responses to present to the user. Webhook can + // choose to append or replace this list in + // [WebhookResponse.fulfillment_response][google.cloud.dialogflow.cx.v3.WebhookResponse.fulfillment_response]; + repeated ResponseMessage messages = 7; + + // Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload]. + google.protobuf.Struct payload = 8; + + // The sentiment analysis result of the current user request. The field is + // filled when sentiment analysis is configured to be enabled for the request. + SentimentAnalysisResult sentiment_analysis_result = 9; +} + +// The response message for a webhook call. +message WebhookResponse { + // Represents a fulfillment response to the user. + message FulfillmentResponse { + // Defines merge behavior for `messages`. + enum MergeBehavior { + // Not specified. `APPEND` will be used. + MERGE_BEHAVIOR_UNSPECIFIED = 0; + + // `messages` will be appended to the list of messages waiting to be sent + // to the user. + APPEND = 1; + + // `messages` will replace the list of messages waiting to be sent to the + // user. + REPLACE = 2; + } + + // The list of rich message responses to present to the user. + repeated ResponseMessage messages = 1; + + // Merge behavior for `messages`. + MergeBehavior merge_behavior = 2; + } + + // The fulfillment response to send to the user. This field can be omitted by + // the webhook if it does not intend to send any response to the user. + FulfillmentResponse fulfillment_response = 1; + + // Information about page status. This field can be omitted by the webhook if + // it does not intend to modify page status. + PageInfo page_info = 2; + + // Information about session status. This field can be omitted by the webhook + // if it does not intend to modify session status. + SessionInfo session_info = 3; + + // Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads]. + google.protobuf.Struct payload = 4; + + // The target to transition to. This can be set optionally to indicate an + // immediate transition to a different page in the same host flow, or a + // different flow in the same agent. + oneof transition { + // The target page to transition to. + // Format: `projects//locations//agents//flows//pages/`. + string target_page = 5 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Page" + }]; + + // The target flow to transition to. + // Format: `projects//locations//agents//flows/`. + string target_flow = 6 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Flow" + }]; + } +} + +// Represents page information communicated to and from the webhook. +message PageInfo { + // Represents form information. + message FormInfo { + // Represents parameter information. + message ParameterInfo { + // Represents the state of a parameter. + enum ParameterState { + // Not specified. This value should be never used. + PARAMETER_STATE_UNSPECIFIED = 0; + + // Indicates that the parameter does not have a value. + EMPTY = 1; + + // Indicates that the parameter value is invalid. This field can be used + // by the webhook to invalidate the parameter and ask the server to + // collect it from the user again. + INVALID = 2; + + // Indicates that the parameter has a value. + FILLED = 3; + } + + // Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Required for + // [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. + // The human-readable name of the parameter, unique within the form. This + // field cannot be modified by the webhook. + string display_name = 1; + + // Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. + // Indicates whether the parameter is required. Optional parameters will + // not trigger prompts; however, they are filled if the user specifies + // them. Required parameters must be filled before form filling concludes. + bool required = 2; + + // Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Required for + // [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The state of the parameter. This field can be set + // to [INVALID][google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState.INVALID] by + // the webhook to invalidate the parameter; other values set by the + // webhook will be ignored. + ParameterState state = 3; + + // Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. + // The value of the parameter. This field can be set by the webhook to + // change the parameter value. + google.protobuf.Value value = 4; + + // Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. + // Indicates if the parameter value was just collected on the last + // conversation turn. + bool just_collected = 5; + } + + // Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. + // The parameters contained in the form. Note that the webhook cannot add + // or remove any form parameter. + repeated ParameterInfo parameter_info = 2; + } + + // Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. + // The unique identifier of the current page. + // Format: `projects//locations//agents//flows//pages/`. + string current_page = 1 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Page" + }]; + + // Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. + // Information about the form. + FormInfo form_info = 3; +} + +// Represents session information communicated to and from the webhook. +message SessionInfo { + // Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. + // The unique identifier of the [session][google.cloud.dialogflow.cx.v3.DetectIntentRequest.session]. This + // field can be used by the webhook to identify a session. + // Format: `projects//locations//agents//sessions/` or `projects//locations//agents//environments//sessions/` + // if environment is specified. + string session = 1 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Session" + }]; + + // Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. + // All parameters collected from forms and intents during the session. + // Parameters can be created, updated, or removed by the webhook. To remove a + // parameter from the session, the webhook should explicitly set the parameter + // value to null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The map is keyed by parameters' + // display names. + map parameters = 2; +} diff --git a/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/BUILD.bazel b/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/BUILD.bazel index 7a804b20e..45273528b 100644 --- a/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/BUILD.bazel @@ -1,5 +1,5 @@ # This file was automatically generated by BuildFileGenerator -# https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/bazel +# https://github.com/googleapis/rules_gapic/tree/master/bazel # Most of the manual changes to this file will be overwritten. # It's **only** allowed to change the following rule attribute values: @@ -25,16 +25,18 @@ proto_library( "audio_config.proto", "entity_type.proto", "environment.proto", + "experiment.proto", "flow.proto", "fulfillment.proto", - "gcs.proto", "intent.proto", - "ivr.proto", "page.proto", "response_message.proto", + "security_settings.proto", "session.proto", "session_entity_type.proto", + "test_case.proto", "transition_route_group.proto", + "validation_message.proto", "version.proto", "webhook.proto", ], @@ -87,11 +89,8 @@ java_grpc_library( java_gapic_library( name = "cx_java_gapic", - src = ":cx_proto_with_info", - gapic_yaml = "dialogflow_gapic.yaml", + srcs = [":cx_proto_with_info"], grpc_service_config = "dialogflow_grpc_service_config.json", - package = "google.cloud.dialogflow.cx.v3beta1", - service_yaml = "dialogflow_v3beta1.yaml", test_deps = [ ":cx_java_grpc", ], @@ -106,11 +105,14 @@ java_gapic_test( "com.google.cloud.dialogflow.cx.v3beta1.AgentsClientTest", "com.google.cloud.dialogflow.cx.v3beta1.EntityTypesClientTest", "com.google.cloud.dialogflow.cx.v3beta1.EnvironmentsClientTest", + "com.google.cloud.dialogflow.cx.v3beta1.ExperimentsClientTest", "com.google.cloud.dialogflow.cx.v3beta1.FlowsClientTest", "com.google.cloud.dialogflow.cx.v3beta1.IntentsClientTest", "com.google.cloud.dialogflow.cx.v3beta1.PagesClientTest", + "com.google.cloud.dialogflow.cx.v3beta1.SecuritySettingsServiceClientTest", "com.google.cloud.dialogflow.cx.v3beta1.SessionEntityTypesClientTest", "com.google.cloud.dialogflow.cx.v3beta1.SessionsClientTest", + "com.google.cloud.dialogflow.cx.v3beta1.TestCasesClientTest", "com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupsClientTest", "com.google.cloud.dialogflow.cx.v3beta1.VersionsClientTest", "com.google.cloud.dialogflow.cx.v3beta1.WebhooksClientTest", @@ -158,12 +160,13 @@ go_gapic_library( srcs = [":cx_proto_with_info"], grpc_service_config = "dialogflow_grpc_service_config.json", importpath = "cloud.google.com/go/dialogflow/cx/apiv3beta1;cx", + metadata = True, service_yaml = "dialogflow_v3beta1.yaml", deps = [ ":cx_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", "@io_bazel_rules_go//proto/wkt:duration_go_proto", "@io_bazel_rules_go//proto/wkt:struct_go_proto", ], @@ -181,6 +184,7 @@ go_gapic_assembly_pkg( name = "gapi-cloud-dialogflow-cx-v3beta1-go", deps = [ ":cx_go_gapic", + ":cx_go_gapic_srcjar-metadata.srcjar", ":cx_go_gapic_srcjar-test.srcjar", ":cx_go_proto", ], @@ -191,54 +195,17 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "cx_moved_proto", - srcs = [":cx_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:resource_proto", - "//google/longrunning:operations_proto", - "//google/rpc:status_proto", - "//google/type:latlng_proto", - "@com_google_protobuf//:duration_proto", - "@com_google_protobuf//:empty_proto", - "@com_google_protobuf//:field_mask_proto", - "@com_google_protobuf//:struct_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -py_proto_library( - name = "cx_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":cx_moved_proto"], -) - -py_grpc_library( - name = "cx_py_grpc", - srcs = [":cx_moved_proto"], - deps = [":cx_py_proto"], ) py_gapic_library( name = "cx_py_gapic", - src = ":cx_proto_with_info", - gapic_yaml = "dialogflow_gapic.yaml", + srcs = [":cx_proto"], grpc_service_config = "dialogflow_grpc_service_config.json", - package = "google.cloud.dialogflow.cx.v3beta1", - service_yaml = "dialogflow_v3beta1.yaml", - deps = [ - ":cx_py_grpc", - ":cx_py_proto", + opt_args = [ + "python-gapic-name=dialogflowcx", + "python-gapic-namespace=google.cloud", ], ) @@ -247,8 +214,6 @@ py_gapic_assembly_pkg( name = "dialogflow-cx-v3beta1-py", deps = [ ":cx_py_gapic", - ":cx_py_grpc", - ":cx_py_proto", ], ) @@ -310,6 +275,7 @@ nodejs_gapic_library( name = "cx_nodejs_gapic", package_name = "@google-cloud/dialogflow-cx", src = ":cx_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "dialogflow_grpc_service_config.json", package = "google.cloud.dialogflow.cx.v3beta1", service_yaml = "dialogflow_v3beta1.yaml", diff --git a/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/agent.proto b/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/agent.proto index c6ffbca71..543dfff50 100644 --- a/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/agent.proto +++ b/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/agent.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/dialogflow/cx/v3beta1/flow.proto"; +import "google/cloud/dialogflow/cx/v3beta1/security_settings.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; @@ -108,6 +109,25 @@ service Agents { metadata_type: "google.protobuf.Struct" }; } + + // Validates the specified agent and creates or updates validation results. + // The agent in draft version is validated. Please call this API after the + // training is completed to get the complete validation results. + rpc ValidateAgent(ValidateAgentRequest) returns (AgentValidationResult) { + option (google.api.http) = { + post: "/v3beta1/{name=projects/*/locations/*/agents/*}:validate" + body: "*" + }; + } + + // Gets the latest agent validation result. Agent validation is performed + // when ValidateAgent is called. + rpc GetAgentValidationResult(GetAgentValidationResultRequest) returns (AgentValidationResult) { + option (google.api.http) = { + get: "/v3beta1/{name=projects/*/locations/*/agents/*/validationResult}" + }; + option (google.api.method_signature) = "name"; + } } // Settings related to speech recognition. @@ -141,7 +161,7 @@ message Agent { // Immutable. The default language of the agent as a language tag. // See [Language - // Support](https://cloud.google.com/dialogflow/docs/reference/language) + // Support](https://cloud.google.com/dialogflow/cx/docs/reference/language) // for a list of the currently supported language codes. // This field cannot be set by the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgent] method. string default_language_code = 3 [(google.api.field_behavior) = IMMUTABLE]; @@ -176,6 +196,13 @@ message Agent { } ]; + // Name of the [SecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettings] reference for the agent. + // Format: `projects//locations//securitySettings/`. + string security_settings = 17 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/SecuritySettings" + }]; + // Indicates if stackdriver logging is enabled for the agent. bool enable_stackdriver_logging = 18; @@ -317,11 +344,49 @@ message RestoreAgentRequest { } } -// The response message for [Agents.ImportAgent][google.cloud.dialogflow.cx.v3beta1.Agents.ImportAgent]. -message ImportAgentResponse { - // The unique identifier of the new agent. +// The request message for [Agents.ValidateAgent][google.cloud.dialogflow.cx.v3beta1.Agents.ValidateAgent]. +message ValidateAgentRequest { + // Required. The agent to validate. // Format: `projects//locations//agents/`. - string agent = 1 [(google.api.resource_reference) = { - type: "dialogflow.googleapis.com/Agent" - }]; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Agent" + } + ]; + + // If not specified, the agent's default language is used. + string language_code = 2; +} + +// The request message for [Agents.GetAgentValidationResult][google.cloud.dialogflow.cx.v3beta1.Agents.GetAgentValidationResult]. +message GetAgentValidationResultRequest { + // Required. The agent name. + // Format: `projects//locations//agents//validationResult`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/AgentValidationResult" + } + ]; + + // If not specified, the agent's default language is used. + string language_code = 2; +} + +// The response message for [Agents.GetAgentValidationResult][google.cloud.dialogflow.cx.v3beta1.Agents.GetAgentValidationResult]. +message AgentValidationResult { + option (google.api.resource) = { + type: "dialogflow.googleapis.com/AgentValidationResult" + pattern: "projects/{project}/locations/{location}/agents/{agent}/validationResult" + }; + + // The unique identifier of the agent validation result. + // Format: `projects//locations//agents//validationResult`. + string name = 1; + + // Contains all flow validation results. + repeated FlowValidationResult flow_validation_results = 2; } diff --git a/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/audio_config.proto b/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/audio_config.proto index e28a50da9..38f05bd52 100644 --- a/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/audio_config.proto +++ b/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/audio_config.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -204,6 +204,9 @@ message VoiceSelectionParams { // Optional. The name of the voice. If not set, the service will choose a // voice based on the other parameters such as language_code and // [ssml_gender][google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.ssml_gender]. + // + // For the list of available voices, please refer to [Supported voices and + // languages](https://cloud.google.com/text-to-speech/docs/voices). string name = 1; // Optional. The preferred gender of the voice. If not set, the service will @@ -246,6 +249,22 @@ message SynthesizeSpeechConfig { VoiceSelectionParams voice = 4; } +// Instructs the speech synthesizer how to generate the output audio content. +message OutputAudioConfig { + // Required. Audio encoding of the synthesized audio content. + OutputAudioEncoding audio_encoding = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The synthesis sample rate (in hertz) for this audio. If not + // provided, then the synthesizer will use the default sample rate based on + // the audio encoding. If this is different from the voice's natural sample + // rate, then the synthesizer will honor this request by converting to the + // desired sample rate (which might result in worse audio quality). + int32 sample_rate_hertz = 2; + + // Optional. Configuration of how speech should be synthesized. + SynthesizeSpeechConfig synthesize_speech_config = 3; +} + // Gender of the voice as described in // [SSML voice element](https://www.w3.org/TR/speech-synthesis11/#edef_voice). enum SsmlVoiceGender { @@ -263,22 +282,6 @@ enum SsmlVoiceGender { SSML_VOICE_GENDER_NEUTRAL = 3; } -// Instructs the speech synthesizer how to generate the output audio content. -message OutputAudioConfig { - // Required. Audio encoding of the synthesized audio content. - OutputAudioEncoding audio_encoding = 1 [(google.api.field_behavior) = REQUIRED]; - - // Optional. The synthesis sample rate (in hertz) for this audio. If not - // provided, then the synthesizer will use the default sample rate based on - // the audio encoding. If this is different from the voice's natural sample - // rate, then the synthesizer will honor this request by converting to the - // desired sample rate (which might result in worse audio quality). - int32 sample_rate_hertz = 2; - - // Optional. Configuration of how speech should be synthesized. - SynthesizeSpeechConfig synthesize_speech_config = 3; -} - // Audio encoding of the output audio format in Text-To-Speech. enum OutputAudioEncoding { // Not specified. diff --git a/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/dialogflow_grpc_service_config.json b/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/dialogflow_grpc_service_config.json index d2828f5ba..18d92f616 100644 --- a/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/dialogflow_grpc_service_config.json +++ b/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/dialogflow_grpc_service_config.json @@ -5,6 +5,9 @@ { "service": "google.cloud.dialogflow.cx.v3beta1.Agents" }, + { + "service": "google.cloud.dialogflow.cx.v3beta1.Changelogs" + }, { "service": "google.cloud.dialogflow.cx.v3beta1.EntityTypes" }, @@ -35,6 +38,9 @@ { "service": "google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes" }, + { + "service": "google.cloud.dialogflow.cx.v3beta1.TestCases" + }, { "service": "google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups" }, @@ -43,6 +49,12 @@ }, { "service": "google.cloud.dialogflow.cx.v3beta1.Webhooks" + }, + { + "service": "google.cloud.dialogflow.cx.v3beta1.Documents" + }, + { + "service": "google.cloud.dialogflow.cx.v3beta1.KnowledgeBases" } ], "timeout": "60s", diff --git a/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/dialogflow_v3beta1.yaml b/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/dialogflow_v3beta1.yaml index db1bdf9c4..c490f9502 100644 --- a/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/dialogflow_v3beta1.yaml +++ b/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/dialogflow_v3beta1.yaml @@ -7,19 +7,30 @@ apis: - name: google.cloud.dialogflow.cx.v3beta1.Agents - name: google.cloud.dialogflow.cx.v3beta1.EntityTypes - name: google.cloud.dialogflow.cx.v3beta1.Environments +- name: google.cloud.dialogflow.cx.v3beta1.Experiments - name: google.cloud.dialogflow.cx.v3beta1.Flows - name: google.cloud.dialogflow.cx.v3beta1.Intents - name: google.cloud.dialogflow.cx.v3beta1.Pages +- name: google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService - name: google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes - name: google.cloud.dialogflow.cx.v3beta1.Sessions +- name: google.cloud.dialogflow.cx.v3beta1.TestCases - name: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups - name: google.cloud.dialogflow.cx.v3beta1.Versions - name: google.cloud.dialogflow.cx.v3beta1.Webhooks types: +- name: google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata +- name: google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse - name: google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata - name: google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse -- name: google.cloud.dialogflow.cx.v3beta1.ImportAgentResponse +- name: google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata +- name: google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse +- name: google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata +- name: google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse +- name: google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata +- name: google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse +- name: google.cloud.dialogflow.cx.v3beta1.TestError - name: google.cloud.dialogflow.cx.v3beta1.WebhookRequest - name: google.cloud.dialogflow.cx.v3beta1.WebhookResponse @@ -51,12 +62,16 @@ backend: deadline: 60.0 - selector: 'google.cloud.dialogflow.cx.v3beta1.Environments.*' deadline: 60.0 + - selector: 'google.cloud.dialogflow.cx.v3beta1.Experiments.*' + deadline: 60.0 - selector: 'google.cloud.dialogflow.cx.v3beta1.Flows.*' deadline: 60.0 - selector: 'google.cloud.dialogflow.cx.v3beta1.Intents.*' deadline: 60.0 - selector: 'google.cloud.dialogflow.cx.v3beta1.Pages.*' deadline: 60.0 + - selector: 'google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.*' + deadline: 60.0 - selector: 'google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.*' deadline: 60.0 - selector: google.cloud.dialogflow.cx.v3beta1.Sessions.DetectIntent @@ -67,6 +82,8 @@ backend: deadline: 60.0 - selector: google.cloud.dialogflow.cx.v3beta1.Sessions.StreamingDetectIntent deadline: 220.0 + - selector: 'google.cloud.dialogflow.cx.v3beta1.TestCases.*' + deadline: 60.0 - selector: 'google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.*' deadline: 60.0 - selector: 'google.cloud.dialogflow.cx.v3beta1.Versions.*' @@ -76,6 +93,21 @@ backend: - selector: 'google.longrunning.Operations.*' deadline: 60.0 +http: + rules: + - selector: google.longrunning.Operations.CancelOperation + post: '/v3beta1/{name=projects/*/operations/*}:cancel' + additional_bindings: + - post: '/v3beta1/{name=projects/*/locations/*/operations/*}:cancel' + - selector: google.longrunning.Operations.GetOperation + get: '/v3beta1/{name=projects/*/operations/*}' + additional_bindings: + - get: '/v3beta1/{name=projects/*/locations/*/operations/*}' + - selector: google.longrunning.Operations.ListOperations + get: '/v3beta1/{name=projects/*}/operations' + additional_bindings: + - get: '/v3beta1/{name=projects/*/locations/*}/operations' + authentication: rules: - selector: 'google.cloud.dialogflow.cx.v3beta1.Agents.*' @@ -93,6 +125,11 @@ authentication: canonical_scopes: |- https://www.googleapis.com/auth/cloud-platform, https://www.googleapis.com/auth/dialogflow + - selector: 'google.cloud.dialogflow.cx.v3beta1.Experiments.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/dialogflow - selector: 'google.cloud.dialogflow.cx.v3beta1.Flows.*' oauth: canonical_scopes: |- @@ -108,6 +145,11 @@ authentication: canonical_scopes: |- https://www.googleapis.com/auth/cloud-platform, https://www.googleapis.com/auth/dialogflow + - selector: 'google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/dialogflow - selector: 'google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.*' oauth: canonical_scopes: |- @@ -118,6 +160,11 @@ authentication: canonical_scopes: |- https://www.googleapis.com/auth/cloud-platform, https://www.googleapis.com/auth/dialogflow + - selector: 'google.cloud.dialogflow.cx.v3beta1.TestCases.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/dialogflow - selector: 'google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.*' oauth: canonical_scopes: |- diff --git a/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/entity_type.proto b/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/entity_type.proto index 8c5571a18..8086a5758 100644 --- a/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/entity_type.proto +++ b/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/entity_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -115,7 +115,6 @@ message EntityType { }; // An **entity entry** for an associated entity type. - // Next Id = 8 message Entity { // Required. The primary value associated with this entity entry. // For example, if the entity type is *vegetable*, the value could be @@ -205,6 +204,11 @@ message EntityType { // Enables fuzzy entity extraction during classification. bool enable_fuzzy_extraction = 7; + + // Indicates whether parameters of the entity type should be redacted in log. + // If redaction is enabled, page parameters and intent parameters referring to + // the entity type will be replaced by parameter name during logging. + bool redact = 9; } // The request message for [EntityTypes.ListEntityTypes][google.cloud.dialogflow.cx.v3beta1.EntityTypes.ListEntityTypes]. @@ -227,7 +231,7 @@ message ListEntityTypesRequest { // // If not specified, the agent's default language is used. // [Many - // languages](https://cloud.google.com/dialogflow/docs/reference/language) + // languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) // are supported. // Note: languages must be enabled in the agent before they can be used. string language_code = 2; @@ -272,7 +276,7 @@ message GetEntityTypeRequest { // // If not specified, the agent's default language is used. // [Many - // languages](https://cloud.google.com/dialogflow/docs/reference/language) + // languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) // are supported. // Note: languages must be enabled in the agent before they can be used. string language_code = 2; @@ -300,7 +304,7 @@ message CreateEntityTypeRequest { // // If not specified, the agent's default language is used. // [Many - // languages](https://cloud.google.com/dialogflow/docs/reference/language) + // languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) // are supported. // Note: languages must be enabled in the agent before they can be used. string language_code = 3; @@ -319,7 +323,7 @@ message UpdateEntityTypeRequest { // // If not specified, the agent's default language is used. // [Many - // languages](https://cloud.google.com/dialogflow/docs/reference/language) + // languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) // are supported. // Note: languages must be enabled in the agent before they can be used. string language_code = 2; diff --git a/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/environment.proto b/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/environment.proto index a5c444c3d..feddb123a 100644 --- a/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/environment.proto +++ b/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/environment.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/experiment.proto b/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/experiment.proto new file mode 100644 index 000000000..7ae323b41 --- /dev/null +++ b/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/experiment.proto @@ -0,0 +1,436 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.cx.v3beta1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3beta1;cx"; +option java_multiple_files = true; +option java_outer_classname = "ExperimentProto"; +option java_package = "com.google.cloud.dialogflow.cx.v3beta1"; +option objc_class_prefix = "DF"; + +// Service for managing [Experiments][google.cloud.dialogflow.cx.v3beta1.Experiment]. +service Experiments { + option (google.api.default_host) = "dialogflow.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/dialogflow"; + + // Returns the list of all experiments in the specified [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]. + rpc ListExperiments(ListExperimentsRequest) returns (ListExperimentsResponse) { + option (google.api.http) = { + get: "/v3beta1/{parent=projects/*/locations/*/agents/*/environments/*}/experiments" + }; + option (google.api.method_signature) = "parent"; + } + + // Retrieves the specified [Experiment][google.cloud.dialogflow.cx.v3beta1.Experiment]. + rpc GetExperiment(GetExperimentRequest) returns (Experiment) { + option (google.api.http) = { + get: "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates an [Experiment][google.cloud.dialogflow.cx.v3beta1.Experiment] in the specified [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]. + rpc CreateExperiment(CreateExperimentRequest) returns (Experiment) { + option (google.api.http) = { + post: "/v3beta1/{parent=projects/*/locations/*/agents/*/environments/*}/experiments" + body: "experiment" + }; + option (google.api.method_signature) = "parent,experiment"; + } + + // Updates the specified [Experiment][google.cloud.dialogflow.cx.v3beta1.Experiment]. + rpc UpdateExperiment(UpdateExperimentRequest) returns (Experiment) { + option (google.api.http) = { + patch: "/v3beta1/{experiment.name=projects/*/locations/*/agents/*/environments/*/experiments/*}" + body: "experiment" + }; + option (google.api.method_signature) = "experiment,update_mask"; + } + + // Deletes the specified [Experiment][google.cloud.dialogflow.cx.v3beta1.Experiment]. + rpc DeleteExperiment(DeleteExperimentRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Starts the specified [Experiment][google.cloud.dialogflow.cx.v3beta1.Experiment]. This rpc only changes the state of + // experiment from PENDING to RUNNING. + rpc StartExperiment(StartExperimentRequest) returns (Experiment) { + option (google.api.http) = { + post: "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:start" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Stops the specified [Experiment][google.cloud.dialogflow.cx.v3beta1.Experiment]. This rpc only changes the state of + // experiment from RUNNING to DONE. + rpc StopExperiment(StopExperimentRequest) returns (Experiment) { + option (google.api.http) = { + post: "/v3beta1/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:stop" + body: "*" + }; + option (google.api.method_signature) = "name"; + } +} + +// Represents an experiment in an environment. +message Experiment { + option (google.api.resource) = { + type: "dialogflow.googleapis.com/Experiment" + pattern: "projects/{project}/locations/{location}/agents/{agent}/environments/{environment}/experiments/{experiment}" + }; + + // Definition of the experiment. + message Definition { + // The condition defines which subset of sessions are selected for + // this experiment. If not specified, all sessions are eligible. E.g. + // "query_input.language_code=en" See the [conditions + // reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition). + string condition = 1; + + // The variants of the experiment. We currently only support single variant + // experiment. + oneof variants { + // The flow versions as the variants of this experiment. + VersionVariants version_variants = 2; + } + } + + // The inference result which includes an objective metric to optimize and the + // confidence interval. + message Result { + // A confidence interval is a range of possible values for the experiment + // objective you are trying to measure. + message ConfidenceInterval { + // The confidence level used to construct the interval, i.e. there is X% + // chance that the true value is within this interval. + double confidence_level = 1; + + // The percent change between an experiment metric's value and the value + // for its control. + double ratio = 2; + + // Lower bound of the interval. + double lower_bound = 3; + + // Upper bound of the interval. + double upper_bound = 4; + } + + // Metric and corresponding confidence intervals. + message Metric { + // Ratio-based metric type. Only one of type or count_type is specified in + // each Metric. + MetricType type = 1; + + // Count-based metric type. Only one of type or count_type is specified in + // each Metric. + CountType count_type = 5; + + // The actual value of the metric. + oneof value { + // Ratio value of a metric. + double ratio = 2; + + // Count value of a metric. + double count = 4; + } + + // The probability that the treatment is better than all other treatments + // in the experiment + ConfidenceInterval confidence_interval = 3; + } + + // Version variant and associated metrics. + message VersionMetrics { + // The name of the flow [Version][google.cloud.dialogflow.cx.v3beta1.Version]. + // Format: `projects//locations//agents//flows//versions/`. + string version = 1 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Version" + }]; + + // The metrics and corresponding confidence intervals in the inference + // result. + repeated Metric metrics = 2; + + // Number of sessions that were allocated to this version. + int32 session_count = 3; + } + + // Types of ratio-based metric for Dialogflow experiment. + enum MetricType { + // Metric unspecified. + METRIC_UNSPECIFIED = 0; + + // Percentage of contained sessions without user calling back in 24 hours. + CONTAINED_SESSION_NO_CALLBACK_RATE = 1; + + // Percentage of sessions that were handed to a human agent. + LIVE_AGENT_HANDOFF_RATE = 2; + + // Percentage of sessions with the same user calling back. + CALLBACK_SESSION_RATE = 3; + + // Percentage of sessions where user hung up. + ABANDONED_SESSION_RATE = 4; + + // Percentage of sessions reached Dialogflow 'END_PAGE' or + // 'END_SESSION'. + SESSION_END_RATE = 5; + } + + // types of count-based metric for Dialogflow experiment. + enum CountType { + // Count type unspecified. + COUNT_TYPE_UNSPECIFIED = 0; + + // Total number of occurrences of a 'NO_MATCH'. + TOTAL_NO_MATCH_COUNT = 1; + + // Total number of turn counts. + TOTAL_TURN_COUNT = 2; + + // Average turn count in a session. + AVERAGE_TURN_COUNT = 3; + } + + // Version variants and metrics. + repeated VersionMetrics version_metrics = 1; + + // The last time the experiment's stats data was updated. Will have default + // value if stats have never been computed for this experiment. + google.protobuf.Timestamp last_update_time = 2; + } + + // The state of the experiment. + enum State { + // State unspecified. + STATE_UNSPECIFIED = 0; + + // The experiment is created but not started yet. + DRAFT = 1; + + // The experiment is running. + RUNNING = 2; + + // The experiment is done. + DONE = 3; + } + + // The name of the experiment. + // Format: projects//locations//agents//environments//experiments/.. + string name = 1; + + // Required. The human-readable name of the experiment (unique in an environment). Limit + // of 64 characters. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // The human-readable description of the experiment. + string description = 3; + + // The current state of the experiment. + // Transition triggered by Expriments.StartExperiment: PENDING->RUNNING. + // Transition triggered by Expriments.CancelExperiment: PENDING->CANCELLED or + // RUNNING->CANCELLED. + State state = 4; + + // The definition of the experiment. + Definition definition = 5; + + // Inference result of the experiment. + Result result = 6; + + // Creation time of this experiment. + google.protobuf.Timestamp create_time = 7; + + // Start time of this experiment. + google.protobuf.Timestamp start_time = 8; + + // End time of this experiment. + google.protobuf.Timestamp end_time = 9; + + // Last update time of this experiment. + google.protobuf.Timestamp last_update_time = 10; + + // Maximum number of days to run the experiment. + google.protobuf.Duration experiment_length = 11; + + // The history of updates to the experiment variants. + repeated VariantsHistory variants_history = 12; +} + +// A list of flow version variants. +message VersionVariants { + // A single flow version with specified traffic allocation. + message Variant { + // The name of the flow version. + // Format: `projects//locations//agents//flows//versions/`. + string version = 1; + + // Percentage of the traffic which should be routed to this + // version of flow. Traffic allocation for a single flow must sum up to 1.0. + float traffic_allocation = 2; + + // Whether the variant is for the control group. + bool is_control_group = 3; + } + + // A list of flow version variants. + repeated Variant variants = 1; +} + +// The history of variants update. +message VariantsHistory { + // The variants updated. We currently only support single variant + // experiment. + oneof variants { + // The flow versions as the variants. + VersionVariants version_variants = 1; + } + + // Update time of the variants. + google.protobuf.Timestamp update_time = 2; +} + +// The request message for [Experiments.ListExperiments][google.cloud.dialogflow.cx.v3beta1.Experiments.ListExperiments]. +message ListExperimentsRequest { + // Required. The [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] to list all environments for. + // Format: `projects//locations//agents//environments/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/Experiment" + } + ]; + + // The maximum number of items to return in a single page. By default 20 and + // at most 100. + int32 page_size = 2; + + // The next_page_token value returned from a previous list request. + string page_token = 3; +} + +// The response message for [Experiments.ListExperiments][google.cloud.dialogflow.cx.v3beta1.Experiments.ListExperiments]. +message ListExperimentsResponse { + // The list of experiments. There will be a maximum number of items + // returned based on the page_size field in the request. The list may in some + // cases be empty or contain fewer entries than page_size even if this isn't + // the last page. + repeated Experiment experiments = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; +} + +// The request message for [Experiments.GetExperiment][google.cloud.dialogflow.cx.v3beta1.Experiments.GetExperiment]. +message GetExperimentRequest { + // Required. The name of the [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]. + // Format: `projects//locations//agents//environments//experiments/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Experiment" + } + ]; +} + +// The request message for [Experiments.CreateExperiment][google.cloud.dialogflow.cx.v3beta1.Experiments.CreateExperiment]. +message CreateExperimentRequest { + // Required. The [Agent][google.cloud.dialogflow.cx.v3beta1.Agent] to create an [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] for. + // Format: `projects//locations//agents//environments/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/Experiment" + } + ]; + + // Required. The experiment to create. + Experiment experiment = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// The request message for [Experiments.UpdateExperiment][google.cloud.dialogflow.cx.v3beta1.Experiments.UpdateExperiment]. +message UpdateExperimentRequest { + // Required. The experiment to update. + Experiment experiment = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The mask to control which fields get updated. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// The request message for [Experiments.DeleteExperiment][google.cloud.dialogflow.cx.v3beta1.Experiments.DeleteExperiment]. +message DeleteExperimentRequest { + // Required. The name of the [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] to delete. + // Format: `projects//locations//agents//environments//experiments/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Experiment" + } + ]; +} + +// The request message for [Experiments.StartExperiment][google.cloud.dialogflow.cx.v3beta1.Experiments.StartExperiment]. +message StartExperimentRequest { + // Required. Resource name of the experiment to start. + // Format: `projects//locations//agents//environments//experiments/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Experiment" + } + ]; +} + +// The request message for [Experiments.StopExperiment][google.cloud.dialogflow.cx.v3beta1.Experiments.StopExperiment]. +message StopExperimentRequest { + // Required. Resource name of the experiment to stop. + // Format: `projects//locations//agents//environments//experiments/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Experiment" + } + ]; +} diff --git a/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/flow.proto b/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/flow.proto index fefd0abe4..f8b92b5eb 100644 --- a/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/flow.proto +++ b/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/flow.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/dialogflow/cx/v3beta1/page.proto"; +import "google/cloud/dialogflow/cx/v3beta1/validation_message.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; @@ -96,6 +97,25 @@ service Flows { metadata_type: "google.protobuf.Struct" }; } + + // Validates the specified flow and creates or updates validation results. + // Please call this API after the training is completed to get the complete + // validation results. + rpc ValidateFlow(ValidateFlowRequest) returns (FlowValidationResult) { + option (google.api.http) = { + post: "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*}:validate" + body: "*" + }; + } + + // Gets the latest flow validation result. Flow validation is performed + // when ValidateFlow is called. + rpc GetFlowValidationResult(GetFlowValidationResultRequest) returns (FlowValidationResult) { + option (google.api.http) = { + get: "/v3beta1/{name=projects/*/locations/*/agents/*/flows/*/validationResult}" + }; + option (google.api.method_signature) = "name"; + } } // Settings related to NLU. @@ -230,7 +250,7 @@ message CreateFlowRequest { // // If not specified, the agent's default language is used. // [Many - // languages](https://cloud.google.com/dialogflow/docs/reference/language) + // languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) // are supported. // Note: languages must be enabled in the agent before they can be used. string language_code = 3; @@ -287,7 +307,7 @@ message ListFlowsRequest { // // If not specified, the agent's default language is used. // [Many - // languages](https://cloud.google.com/dialogflow/docs/reference/language) + // languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) // are supported. // Note: languages must be enabled in the agent before they can be used. string language_code = 4; @@ -324,7 +344,7 @@ message GetFlowRequest { // // If not specified, the agent's default language is used. // [Many - // languages](https://cloud.google.com/dialogflow/docs/reference/language) + // languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) // are supported. // Note: languages must be enabled in the agent before they can be used. string language_code = 2; @@ -346,7 +366,7 @@ message UpdateFlowRequest { // // If not specified, the agent's default language is used. // [Many - // languages](https://cloud.google.com/dialogflow/docs/reference/language) + // languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) // are supported. // Note: languages must be enabled in the agent before they can be used. string language_code = 3; @@ -364,3 +384,54 @@ message TrainFlowRequest { } ]; } + +// The request message for [Flows.ValidateFlow][google.cloud.dialogflow.cx.v3beta1.Flows.ValidateFlow]. +message ValidateFlowRequest { + // Required. The flow to validate. + // Format: `projects//locations//agents//flows/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Flow" + } + ]; + + // If not specified, the agent's default language is used. + string language_code = 2; +} + +// The request message for [Flows.GetFlowValidationResult][google.cloud.dialogflow.cx.v3beta1.Flows.GetFlowValidationResult]. +message GetFlowValidationResultRequest { + // Required. The flow name. + // Format: `projects//locations//agents//flows//validationResult`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/FlowValidationResult" + } + ]; + + // If not specified, the agent's default language is used. + string language_code = 2; +} + +// The response message for [Flows.GetFlowValidationResult][google.cloud.dialogflow.cx.v3beta1.Flows.GetFlowValidationResult]. +message FlowValidationResult { + option (google.api.resource) = { + type: "dialogflow.googleapis.com/FlowValidationResult" + pattern: "projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/validationResult" + }; + + // The unique identifier of the flow validation result. + // Format: `projects//locations//agents//flows//validationResult`. + string name = 1; + + // Contains all validation messages. + repeated ValidationMessage validation_messages = 2; + + // Last time the flow was validated. + google.protobuf.Timestamp update_time = 3; +} diff --git a/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/fulfillment.proto b/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/fulfillment.proto index 7a8e5af3c..74d9e8224 100644 --- a/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/fulfillment.proto +++ b/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/fulfillment.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/intent.proto b/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/intent.proto index b60577205..c0479c472 100644 --- a/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/intent.proto +++ b/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/intent.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -155,9 +155,12 @@ message Intent { // Indicates whether the parameter represents a list of values. bool is_list = 3; - // Indicates whether the parameter content is logged in text and audio. If - // it is set to true, the parameter content will be replaced to parameter - // id in both request and response. The default value is false. + // Indicates whether the parameter content should be redacted in log. If + // redaction is enabled, the parameter content will be replaced by parameter + // name during logging. + // Note: the parameter content is subject to redaction if either parameter + // level redaction or [entity type level redaction][google.cloud.dialogflow.cx.v3beta1.EntityType.redact] is + // enabled. bool redact = 4; } @@ -195,6 +198,24 @@ message Intent { // requests that are mistakenly matched, since training phrases assigned to // fallback intents act as negative examples that triggers no-match event. bool is_fallback = 6; + + // Optional. The key/value metadata to label an intent. Labels can contain + // lowercase letters, digits and the symbols '-' and '_'. International + // characters are allowed, including letters from unicase alphabets. Keys must + // start with a letter. Keys and values can be no longer than 63 characters + // and no more than 128 bytes. + // + // Prefix "sys-" is reserved for Dialogflow defined labels. Currently allowed + // Dialogflow defined labels include: + // * sys-head + // * sys-contextual + // The above labels do not require value. "sys-head" means the intent is a + // head intent. "sys-contextual" means the intent is a contextual intent. + map labels = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Human readable description for better understanding an intent like its + // scope, content, result etc. Maximum character limit: 140 characters. + string description = 8 [(google.api.field_behavior) = OPTIONAL]; } // The request message for [Intents.ListIntents][google.cloud.dialogflow.cx.v3beta1.Intents.ListIntents]. @@ -215,7 +236,7 @@ message ListIntentsRequest { // // If not specified, the agent's default language is used. // [Many - // languages](https://cloud.google.com/dialogflow/docs/reference/language) + // languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) // are supported. // Note: languages must be enabled in the agent before they can be used. string language_code = 2; @@ -261,7 +282,7 @@ message GetIntentRequest { // // If not specified, the agent's default language is used. // [Many - // languages](https://cloud.google.com/dialogflow/docs/reference/language) + // languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) // are supported. // Note: languages must be enabled in the agent before they can be used. string language_code = 2; @@ -287,7 +308,7 @@ message CreateIntentRequest { // // If not specified, the agent's default language is used. // [Many - // languages](https://cloud.google.com/dialogflow/docs/reference/language) + // languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) // are supported. // Note: languages must be enabled in the agent before they can be used. string language_code = 3; @@ -304,7 +325,7 @@ message UpdateIntentRequest { // // If not specified, the agent's default language is used. // [Many - // languages](https://cloud.google.com/dialogflow/docs/reference/language) + // languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) // are supported. // Note: languages must be enabled in the agent before they can be used. string language_code = 2; diff --git a/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/ivr.proto b/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/ivr.proto deleted file mode 100644 index 86a97737b..000000000 --- a/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/ivr.proto +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.dialogflow.cx.v3beta1; - -import "google/protobuf/duration.proto"; -import "google/api/annotations.proto"; - -option cc_enable_arenas = true; -option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3beta1;cx"; -option java_multiple_files = true; -option java_outer_classname = "InteractiveVoiceResponseProto"; -option java_package = "com.google.cloud.dialogflow.cx.v3beta1"; -option objc_class_prefix = "DF"; diff --git a/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/page.proto b/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/page.proto index f63dcfae4..4a8acf7a5 100644 --- a/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/page.proto +++ b/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/page.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -147,9 +147,16 @@ message Page { // // * TransitionRoutes defined in the page with intent specified. // * TransitionRoutes defined in the - // [transition route groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups]. + // [transition route groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups] with intent + // specified. // * TransitionRoutes defined in flow with intent specified. + // * TransitionRoutes defined in the + // [transition route groups][google.cloud.dialogflow.cx.v3beta1.Flow.transition_route_groups] with intent + // specified. // * TransitionRoutes defined in the page with only condition specified. + // * TransitionRoutes defined in the + // [transition route groups][google.cloud.dialogflow.cx.v3beta1.Page.transition_route_groups] with only + // condition specified. repeated TransitionRoute transition_routes = 9; // Handlers associated with the page to handle events such as webhook errors, @@ -238,9 +245,12 @@ message Form { // the default value will be ignored. google.protobuf.Value default_value = 9; - // Indicates whether the parameter content is logged in text and audio. If - // it is set to true, the parameter content will be replaced to parameter - // name in both request and response. The default value is false. + // Indicates whether the parameter content should be redacted in log. If + // redaction is enabled, the parameter content will be replaced by parameter + // name during logging. + // Note: the parameter content is subject to redaction if either parameter + // level redaction or [entity type level redaction][google.cloud.dialogflow.cx.v3beta1.EntityType.redact] is + // enabled. bool redact = 11; } @@ -376,7 +386,7 @@ message ListPagesRequest { // // If not specified, the agent's default language is used. // [Many - // languages](https://cloud.google.com/dialogflow/docs/reference/language) + // languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) // are supported. // Note: languages must be enabled in the agent before they can be used. string language_code = 2; @@ -424,7 +434,7 @@ message GetPageRequest { // // If not specified, the agent's default language is used. // [Many - // languages](https://cloud.google.com/dialogflow/docs/reference/language) + // languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) // are supported. // Note: languages must be enabled in the agent before they can be used. string language_code = 2; @@ -456,7 +466,7 @@ message CreatePageRequest { // // If not specified, the agent's default language is used. // [Many - // languages](https://cloud.google.com/dialogflow/docs/reference/language) + // languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) // are supported. // Note: languages must be enabled in the agent before they can be used. string language_code = 3; @@ -478,7 +488,7 @@ message UpdatePageRequest { // // If not specified, the agent's default language is used. // [Many - // languages](https://cloud.google.com/dialogflow/docs/reference/language) + // languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) // are supported. // Note: languages must be enabled in the agent before they can be used. string language_code = 2; diff --git a/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/response_message.proto b/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/response_message.proto index 1627520eb..e8934f20d 100644 --- a/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/response_message.proto +++ b/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/response_message.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -184,8 +184,8 @@ message ResponseMessage { // Output only. A signal that indicates the interaction with the Dialogflow agent has // ended. // This message is generated by Dialogflow only when the conversation - // reaches `END_SESSION` or `END_PAGE` page. It is not supposed to be - // defined by the user. + // reaches `END_SESSION` page. It is not supposed to be defined by the user. + // // It's guaranteed that there is at most one such message in each response. EndInteraction end_interaction = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/security_settings.proto b/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/security_settings.proto new file mode 100644 index 000000000..376a73188 --- /dev/null +++ b/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/security_settings.proto @@ -0,0 +1,246 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.cx.v3beta1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3beta1;cx"; +option java_multiple_files = true; +option java_outer_classname = "SecuritySettingsProto"; +option java_package = "com.google.cloud.dialogflow.cx.v3beta1"; +option objc_class_prefix = "DF"; + +// Service for managing security settings for Dialogflow. +service SecuritySettingsService { + option (google.api.default_host) = "dialogflow.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/dialogflow"; + + // Create security settings in the specified location. + rpc CreateSecuritySettings(CreateSecuritySettingsRequest) returns (SecuritySettings) { + option (google.api.http) = { + post: "/v3beta1/{parent=projects/*/locations/*}/securitySettings" + body: "security_settings" + }; + option (google.api.method_signature) = "parent,security_settings"; + } + + // Retrieves the specified [SecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettings]. + // The returned settings may be stale by up to 1 minute. + rpc GetSecuritySettings(GetSecuritySettingsRequest) returns (SecuritySettings) { + option (google.api.http) = { + get: "/v3beta1/{name=projects/*/locations/*/securitySettings/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates the specified [SecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettings]. + rpc UpdateSecuritySettings(UpdateSecuritySettingsRequest) returns (SecuritySettings) { + option (google.api.http) = { + patch: "/v3beta1/{security_settings.name=projects/*/locations/*/securitySettings/*}" + body: "security_settings" + }; + option (google.api.method_signature) = "security_settings,update_mask"; + } + + // Returns the list of all security settings in the specified location. + rpc ListSecuritySettings(ListSecuritySettingsRequest) returns (ListSecuritySettingsResponse) { + option (google.api.http) = { + get: "/v3beta1/{parent=projects/*/locations/*}/securitySettings" + }; + option (google.api.method_signature) = "parent"; + } + + // Deletes the specified [SecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettings]. + rpc DeleteSecuritySettings(DeleteSecuritySettingsRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v3beta1/{name=projects/*/locations/*/securitySettings/*}" + }; + option (google.api.method_signature) = "name"; + } +} + +// The request message for [SecuritySettingsService.GetSecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.GetSecuritySettings]. +message GetSecuritySettingsRequest { + // Required. Resource name of the settings. + // Format: `projects//locations//securitySettings/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/SecuritySettings" + } + ]; +} + +// The request message for [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.UpdateSecuritySettings]. +message UpdateSecuritySettingsRequest { + // Required. [SecuritySettings] object that contains values for each of the + // fields to update. + SecuritySettings security_settings = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The mask to control which fields get updated. If the mask is not present, + // all fields will be updated. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// The request message for [SecuritySettings.ListSecuritySettings][]. +message ListSecuritySettingsRequest { + // Required. The location to list all security settings for. + // Format: `projects//locations/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/SecuritySettings" + } + ]; + + // The maximum number of items to return in a single page. By default 20 and + // at most 100. + int32 page_size = 2; + + // The next_page_token value returned from a previous list request. + string page_token = 3; +} + +// The response message for [SecuritySettings.ListSecuritySettings][]. +message ListSecuritySettingsResponse { + // The list of security settings. + repeated SecuritySettings security_settings = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; +} + +// The request message for [SecuritySettings.CreateSecuritySettings][]. +message CreateSecuritySettingsRequest { + // Required. The location to create an [SecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettings] for. + // Format: `projects//locations/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/SecuritySettings" + } + ]; + + // Required. The security settings to create. + SecuritySettings security_settings = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// The request message for [SecuritySettings.DeleteSecuritySettings][]. +message DeleteSecuritySettingsRequest { + // Required. The name of the [SecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettings] to delete. + // Format: `projects//locations//securitySettings/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/SecuritySettings" + } + ]; +} + +// Represents the settings related to security issues, such as data redaction +// and data retention. It may take hours for updates on the settings to +// propagate to all the related components and take effect. +message SecuritySettings { + option (google.api.resource) = { + type: "dialogflow.googleapis.com/SecuritySettings" + pattern: "projects/{project}/locations/{location}/securitySettings/{security_settings}" + }; + + // Defines how we redact data. + enum RedactionStrategy { + // Do not redact. + REDACTION_STRATEGY_UNSPECIFIED = 0; + + // Call redaction service to clean up the data to be persisted. + REDACT_WITH_SERVICE = 1; + } + + // Defines what types of data to redact. + enum RedactionScope { + // Don't redact any kind of data. + REDACTION_SCOPE_UNSPECIFIED = 0; + + // On data to be written to disk or similar devices that are capable of + // holding data even if power is disconnected. This includes data that are + // temporarily saved on disk. + REDACT_DISK_STORAGE = 2; + } + + // Type of data we purge after retention settings triggers purge. + enum PurgeDataType { + // Unspecified. Do not use. + PURGE_DATA_TYPE_UNSPECIFIED = 0; + + // Dialogflow history. This does not include Stackdriver log, which is + // owned by the user not Dialogflow. + DIALOGFLOW_HISTORY = 1; + } + + // Required. Resource name of the settings. + // Format: `projects//locations//securitySettings/`. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The human-readable name of the security settings, unique within the + // location. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Strategy that defines how we do redaction. + RedactionStrategy redaction_strategy = 3; + + // Defines on what data we apply redaction. Note that we don't + // redact data to which we don't have access, e.g., Stackdriver logs. + RedactionScope redaction_scope = 4; + + // DLP inspect template name. Use this template to define inspect base + // settings. + // + // If empty, we use the default DLP inspect config. + // + // The template name will have one of the following formats: + // `projects/PROJECT_ID/inspectTemplates/TEMPLATE_ID` OR + // `organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_ID` + string inspect_template = 9; + + // Specifies how data is retained. Note that even if the data is + // purged due to retention policy, we may still hold it in backup storage for + // a few days without allowing direct readings. + oneof data_retention { + // Retains the data for the specified number of days. + // User must Set a value lower than Dialogflow's default 30d TTL. Setting a + // value higher than that has no effect. + // A missing value or setting to 0 also means we use Dialogflow's default + // TTL. + int32 retention_window_days = 6; + } + + // List of types of data to remove when retention settings triggers purge. + repeated PurgeDataType purge_data_types = 8; +} diff --git a/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/session.proto b/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/session.proto index 27fdeb15a..4b650a044 100644 --- a/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/session.proto +++ b/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/session.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -57,6 +57,10 @@ service Sessions { // as a result. This method is not idempotent, because it may cause session // entity types to be updated, which in turn might affect results of future // queries. + // + // Note: Always use agent versions for production traffic. + // See [Versions and + // environments](https://cloud.google.com/dialogflow/cx/docs/concept/version). rpc DetectIntent(DetectIntentRequest) returns (DetectIntentResponse) { option (google.api.http) = { post: "/v3beta1/{session=projects/*/locations/*/agents/*/sessions/*}:detectIntent" @@ -71,6 +75,10 @@ service Sessions { // Processes a natural language query in audio format in a streaming fashion // and returns structured, actionable data as a result. This method is only // available via the gRPC API (not REST). + // + // Note: Always use agent versions for production traffic. + // See [Versions and + // environments](https://cloud.google.com/dialogflow/cx/docs/concept/version). rpc StreamingDetectIntent(stream StreamingDetectIntentRequest) returns (stream StreamingDetectIntentResponse) { } @@ -116,6 +124,10 @@ message DetectIntentRequest { // // For more information, see the [sessions // guide](https://cloud.google.com/dialogflow/cx/docs/concept/session). + // + // Note: Always use agent versions for production traffic. + // See [Versions and + // environments](https://cloud.google.com/dialogflow/cx/docs/concept/version). string session = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -201,6 +213,10 @@ message StreamingDetectIntentRequest { // // For more information, see the [sessions // guide](https://cloud.google.com/dialogflow/cx/docs/concept/session). + // + // Note: Always use agent versions for production traffic. + // See [Versions and + // environments](https://cloud.google.com/dialogflow/cx/docs/concept/version). string session = 1 [(google.api.resource_reference) = { type: "dialogflow.googleapis.com/Session" }]; @@ -364,16 +380,30 @@ message QueryParameters { // - MapKey value: parameter name // - MapValue type: // - If parameter's entity type is a composite entity: map - // - Else: string or number, depending on parameter value type + // - Else: depending on parameter value type, could be one of string, + // number, boolean, null, list or map // - MapValue value: // - If parameter's entity type is a composite entity: // map from composite entity property names to property values // - Else: parameter value google.protobuf.Struct parameters = 5; + // Whether to disable webhook calls for this request. + bool disable_webhook = 7; + // Configures whether sentiment analysis should be performed. If not // provided, sentiment analysis is not performed. bool analyze_query_text_sentiment = 8; + + // This field can be used to pass HTTP headers for a webhook + // call. These headers will be sent to webhook along with the headers that + // have been configured through Dialogflow web console. The headers defined + // within this field will overwrite the headers configured through Dialogflow + // console if there is a conflict. Header names are case-insensitive. + // Google's specified headers are not allowed. Including: "Host", + // "Content-Length", "Connection", "From", "User-Agent", "Accept-Encoding", + // "If-Modified-Since", "If-None-Match", "X-Forwarded-For", etc. + map webhook_headers = 10; } // Represents the query input. It can contain one of: @@ -400,12 +430,15 @@ message QueryInput { // The event to be triggered. EventInput event = 6; + + // The DTMF event to be handled. + DtmfInput dtmf = 7; } // Required. The language of the input. See [Language - // Support](https://cloud.google.com/dialogflow/docs/reference/language) for a - // list of the currently supported language codes. Note that queries in the - // same session do not necessarily need to specify the same language. + // Support](https://cloud.google.com/dialogflow/cx/docs/reference/language) + // for a list of the currently supported language codes. Note that queries in + // the same session do not necessarily need to specify the same language. string language_code = 4 [(google.api.field_behavior) = REQUIRED]; } @@ -432,7 +465,7 @@ message QueryResult { // The language that was triggered during intent detection. // See [Language - // Support](https://cloud.google.com/dialogflow/docs/reference/language) + // Support](https://cloud.google.com/dialogflow/cx/docs/reference/language) // for a list of the currently supported language codes. string language_code = 2; @@ -446,7 +479,8 @@ message QueryResult { // - MapKey value: parameter name // - MapValue type: // - If parameter's entity type is a composite entity: map - // - Else: string or number, depending on parameter value type + // - Else: depending on parameter value type, could be one of string, + // number, boolean, null, list or map // - MapValue value: // - If parameter's entity type is a composite entity: // map from composite entity property names to property values @@ -543,6 +577,15 @@ message EventInput { string event = 1; } +// Represents the input for dtmf event. +message DtmfInput { + // The dtmf digits. + string digits = 1; + + // The finish digit (if any). + string finish_digit = 2; +} + // Represents one match result of [MatchIntent][]. message Match { // Type of a Match. @@ -564,6 +607,9 @@ message Match { // Indicates an empty query. NO_INPUT = 5; + + // The query directly triggered an event. + EVENT = 6; } // The [Intent][google.cloud.dialogflow.cx.v3beta1.Intent] that matched the query. Some, not all fields are filled in @@ -571,6 +617,10 @@ message Match { // filled for [`INTENT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] match type. Intent intent = 1; + // The event that matched the query. Only filled for + // [`EVENT`][google.cloud.dialogflow.cx.v3beta1.Match.MatchType] match type. + string event = 6; + // The collection of parameters extracted from the query. // // Depending on your protocol or client library language, this is a @@ -581,7 +631,8 @@ message Match { // - MapKey value: parameter name // - MapValue type: // - If parameter's entity type is a composite entity: map - // - Else: string or number, depending on parameter value type + // - Else: depending on parameter value type, could be one of string, + // number, boolean, null, list or map // - MapValue value: // - If parameter's entity type is a composite entity: // map from composite entity property names to property values diff --git a/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/session_entity_type.proto b/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/session_entity_type.proto index 5b8f5df92..7bdd3ec31 100644 --- a/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/session_entity_type.proto +++ b/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/session_entity_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/test_case.proto b/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/test_case.proto new file mode 100644 index 000000000..05c07a27d --- /dev/null +++ b/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/test_case.proto @@ -0,0 +1,875 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.cx.v3beta1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/dialogflow/cx/v3beta1/flow.proto"; +import "google/cloud/dialogflow/cx/v3beta1/intent.proto"; +import "google/cloud/dialogflow/cx/v3beta1/page.proto"; +import "google/cloud/dialogflow/cx/v3beta1/response_message.proto"; +import "google/cloud/dialogflow/cx/v3beta1/session.proto"; +import "google/cloud/dialogflow/cx/v3beta1/transition_route_group.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3beta1;cx"; +option java_multiple_files = true; +option java_outer_classname = "TestCaseProto"; +option java_package = "com.google.cloud.dialogflow.cx.v3beta1"; +option objc_class_prefix = "DF"; + +// Service for managing [Test Cases][google.cloud.dialogflow.cx.v3beta1.TestCase] and +// [Test Case Results][google.cloud.dialogflow.cx.v3beta1.TestCaseResult]. +service TestCases { + option (google.api.default_host) = "dialogflow.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/dialogflow"; + + // Fetches a list of test cases for a given agent. + rpc ListTestCases(ListTestCasesRequest) returns (ListTestCasesResponse) { + option (google.api.http) = { + get: "/v3beta1/{parent=projects/*/locations/*/agents/*}/testCases" + }; + option (google.api.method_signature) = "parent"; + } + + // Batch deletes test cases. + rpc BatchDeleteTestCases(BatchDeleteTestCasesRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v3beta1/{parent=projects/*/locations/*/agents/*}/testCases:batchDelete" + body: "*" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets a test case. + rpc GetTestCase(GetTestCaseRequest) returns (TestCase) { + option (google.api.http) = { + get: "/v3beta1/{name=projects/*/locations/*/agents/*/testCases/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a test case for the given agent. + rpc CreateTestCase(CreateTestCaseRequest) returns (TestCase) { + option (google.api.http) = { + post: "/v3beta1/{parent=projects/*/locations/*/agents/*}/testCases" + body: "test_case" + }; + option (google.api.method_signature) = "parent,test_case"; + } + + // Updates the specified test case. + rpc UpdateTestCase(UpdateTestCaseRequest) returns (TestCase) { + option (google.api.http) = { + patch: "/v3beta1/{test_case.name=projects/*/locations/*/agents/*/testCases/*}" + body: "test_case" + }; + option (google.api.method_signature) = "test_case,update_mask"; + } + + // Kicks off a test case run. + rpc RunTestCase(RunTestCaseRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v3beta1/{name=projects/*/locations/*/agents/*/testCases/*}:run" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "RunTestCaseResponse" + metadata_type: "RunTestCaseMetadata" + }; + } + + // Kicks off a batch run of test cases. + rpc BatchRunTestCases(BatchRunTestCasesRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v3beta1/{parent=projects/*/locations/*/agents/*}/testCases:batchRun" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "BatchRunTestCasesResponse" + metadata_type: "BatchRunTestCasesMetadata" + }; + } + + // Calculates the test coverage for an agent. + rpc CalculateCoverage(CalculateCoverageRequest) returns (CalculateCoverageResponse) { + option (google.api.http) = { + get: "/v3beta1/{agent=projects/*/locations/*/agents/*}/testCases:calculateCoverage" + }; + } + + // Imports the test cases from a Cloud Storage bucket or a local file. It + // always creates new test cases and won't overwite any existing ones. The + // provided ID in the imported test case is neglected. + rpc ImportTestCases(ImportTestCasesRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v3beta1/{parent=projects/*/locations/*/agents/*}/testCases:import" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "ImportTestCasesResponse" + metadata_type: "ImportTestCasesMetadata" + }; + } + + // Exports the test cases under the agent to a Cloud Storage bucket or a local + // file. Filter can be applied to export a subset of test cases. + rpc ExportTestCases(ExportTestCasesRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v3beta1/{parent=projects/*/locations/*/agents/*}/testCases:export" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "ExportTestCasesResponse" + metadata_type: "ExportTestCasesMetadata" + }; + } + + // Fetches a list of results for a given test case. + rpc ListTestCaseResults(ListTestCaseResultsRequest) returns (ListTestCaseResultsResponse) { + option (google.api.http) = { + get: "/v3beta1/{parent=projects/*/locations/*/agents/*/testCases/*}/results" + }; + option (google.api.method_signature) = "parent"; + } +} + +// Represents a test case. +message TestCase { + option (google.api.resource) = { + type: "dialogflow.googleapis.com/TestCase" + pattern: "projects/{project}/locations/{location}/agents/{agent}/testCases/{test_case}" + }; + + // The unique identifier of the test case. + // [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3beta1.TestCases.CreateTestCase] will populate the name automatically. + // Otherwise use format: `projects//locations//agents/ + // /testCases/`. + string name = 1; + + // Tags are short descriptions that users may apply to test cases for + // organizational and filtering purposes. Each tag should start with "#" and + // has a limit of 30 characters. + repeated string tags = 2; + + // Required. The human-readable name of the test case, unique within the agent. Limit of + // 200 characters. + string display_name = 3 [(google.api.field_behavior) = REQUIRED]; + + // Additional freeform notes about the test case. Limit of 400 characters. + string notes = 4; + + // Config for the test case. + TestConfig test_config = 13; + + // The conversation turns uttered when the test case was created, in + // chronological order. These include the canonical set of agent utterances + // that should occur when the agent is working properly. + repeated ConversationTurn test_case_conversation_turns = 5; + + // Output only. When the test was created. + google.protobuf.Timestamp creation_time = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The latest test result. + TestCaseResult last_test_result = 12; +} + +// Represents a result from running a test case in an agent environment. +message TestCaseResult { + option (google.api.resource) = { + type: "dialogflow.googleapis.com/TestCaseResult" + pattern: "projects/{project}/locations/{location}/agents/{agent}/testCases/{test_case}/results/{result}" + }; + + // The resource name for the test case result. Format: + // `projects//locations//agents//testCases/ + // /results/`. + string name = 1; + + // Environment where the test was run. If not set, it indicates the draft + // environment. + string environment = 2 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Environment" + }]; + + // The conversation turns uttered during the test case replay in chronological + // order. + repeated ConversationTurn conversation_turns = 3; + + // Whether the test case passed in the agent environment. + TestResult test_result = 4; + + // The time that the test was run. + google.protobuf.Timestamp test_time = 5; +} + +// Represents configurations for a test case. +message TestConfig { + // Session parameters to be compared when calculating differences. + repeated string tracking_parameters = 1; + + // Flow name. If not set, default start flow is assumed. + // Format: `projects//locations//agents//flows/`. + string flow = 2 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Flow" + }]; +} + +// One interaction between a human and virtual agent. The human provides some +// input and the virtual agent provides a response. +message ConversationTurn { + // The input from the human user. + message UserInput { + // Supports [text input][google.cloud.dialogflow.cx.v3beta1.QueryInput.text], [event input][google.cloud.dialogflow.cx.v3beta1.QueryInput.event], + // [dtmf input][google.cloud.dialogflow.cx.v3beta1.QueryInput.dtmf] in the test case. + QueryInput input = 5; + + // Parameters that need to be injected into the conversation during intent + // detection. + google.protobuf.Struct injected_parameters = 2; + + // If webhooks should be allowed to trigger in response to the user + // utterance. Often if parameters are injected, webhooks should not be + // enabled. + bool is_webhook_enabled = 3; + } + + // The output from the virtual agent. + message VirtualAgentOutput { + // The session parameters available to the bot at this point. + google.protobuf.Struct session_parameters = 4; + + // Output only. If this is part of a [result conversation + // turn][TestCaseResult.conversation_turns], the list of differences + // between the original run and the replay for this output, if any. + repeated TestRunDifference differences = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Input only. The diagnostic + // [info][Session.DetectIntentResponse.QueryResult.diagnostic_info] + // output for the turn. + google.protobuf.Struct diagnostic_info = 6 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = INPUT_ONLY + ]; + + // The [Intent][google.cloud.dialogflow.cx.v3beta1.Intent] that triggered the response. Only name and displayName + // will be set. + Intent triggered_intent = 7; + + // The [Page][google.cloud.dialogflow.cx.v3beta1.Page] on which the utterance was spoken. Only name and displayName + // will be set. + Page current_page = 8; + + // The [text][google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text] responses from the agent for the turn. + repeated ResponseMessage.Text text_responses = 9; + + // Response error from the agent in the test result. If set, other output + // is empty. + google.rpc.Status status = 10; + } + + // The user input. + UserInput user_input = 1; + + // The virtual agent output. + VirtualAgentOutput virtual_agent_output = 2; +} + +// The description of differences between original and replayed agent output. +message TestRunDifference { + // What part of the message replay differs from the test case. + enum DiffType { + // Should never be used. + DIFF_TYPE_UNSPECIFIED = 0; + + // The intent. + INTENT = 1; + + // The page. + PAGE = 2; + + // The parameters. + PARAMETERS = 3; + + // The message utterance. + UTTERANCE = 4; + } + + // The type of diff. + DiffType type = 1; + + // A description of the diff, showing the actual output vs expected output. + string description = 2; +} + +// Transition coverage represents the percentage of all possible page +// transitions (page-level transition routes and event handlers, excluding +// transition route groups) present within any of a parent's test cases. +message TransitionCoverage { + // The source or target of a transition. + message TransitionNode { + // A TransitionNode can be either a page or a flow. + oneof kind { + // Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3beta1.Page]. Only some fields such as name and + // displayname will be set. + Page page = 1; + + // Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3beta1.Flow]. Only some fields such as name and + // displayname will be set. + Flow flow = 2; + } + } + + // A transition in a page. + message Transition { + // The start node of a transition. + TransitionNode source = 1; + + // The index of a transition in the transition list. Starting from 0. + int32 index = 4; + + // The end node of a transition. + TransitionNode target = 2; + + // Whether or not the transition is covered by at least one of the + // agent's test cases. + bool covered = 3; + + // The detailed transition. + oneof detail { + // Intent route or condition route. + TransitionRoute transition_route = 5; + + // Event handler. + EventHandler event_handler = 6; + } + } + + // The list of Transitions present in the agent. + repeated Transition transitions = 1; + + // The percent of transitions in the agent that are covered. + float coverage_score = 2; +} + +// Transition route group coverage represents the percentage of all possible +// transition routes present within any of a parent's test cases. The results +// are grouped by the transition route group. +message TransitionRouteGroupCoverage { + // Coverage result message for one transition route group. + message Coverage { + // A transition coverage in a transition route group. + message Transition { + // Intent route or condition route. + TransitionRoute transition_route = 1; + + // Whether or not the transition route is covered by at least one of the + // agent's test cases. + bool covered = 2; + } + + // Transition route group metadata. Only name and displayName will be set. + TransitionRouteGroup route_group = 1; + + // The list of transition routes and coverage in the transition route group. + repeated Transition transitions = 2; + + // The percent of transition routes in the transition route group that are + // covered. + float coverage_score = 3; + } + + // Transition route group coverages. + repeated Coverage coverages = 1; + + // The percent of transition routes in all the transition route groups that + // are covered. + float coverage_score = 2; +} + +// Intent coverage represents the percentage of all possible intents in the +// agent that are triggered in any of a parent's test cases. +message IntentCoverage { + // The agent's intent. + message Intent { + // The intent full resource name + string intent = 1 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Intent" + }]; + + // Whether or not the intent is covered by at least one of the agent's + // test cases. + bool covered = 2; + } + + // The list of Intents present in the agent + repeated Intent intents = 1; + + // The percent of intents in the agent that are covered. + float coverage_score = 2; +} + +// The request message for [TestCases.CalculateCoverage][google.cloud.dialogflow.cx.v3beta1.TestCases.CalculateCoverage]. +message CalculateCoverageRequest { + // The type of coverage score requested. + enum CoverageType { + // Should never be used. + COVERAGE_TYPE_UNSPECIFIED = 0; + + // Intent coverage. + INTENT = 1; + + // Page transition coverage. + PAGE_TRANSITION = 2; + + // Transition route group coverage. + TRANSITION_ROUTE_GROUP = 3; + } + + // Required. The agent to calculate coverage for. + // Format: `projects//locations//agents/`. + string agent = 3 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Agent" + } + ]; + + // Required. The type of coverage requested. + CoverageType type = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// The response message for [TestCases.CalculateCoverage][google.cloud.dialogflow.cx.v3beta1.TestCases.CalculateCoverage]. +message CalculateCoverageResponse { + // The agent to calculate coverage for. + // Format: `projects//locations//agents/`. + string agent = 5 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Agent" + }]; + + // The type of coverage requested. + oneof coverage_type { + // Intent coverage. + IntentCoverage intent_coverage = 2; + + // Transition (excluding transition route groups) coverage. + TransitionCoverage transition_coverage = 4; + + // Transition route group coverage. + TransitionRouteGroupCoverage route_group_coverage = 6; + } +} + +// The request message for [TestCases.ListTestCases][google.cloud.dialogflow.cx.v3beta1.TestCases.ListTestCases]. +message ListTestCasesRequest { + // Specifies how much test case information to include in the response. + enum TestCaseView { + // The default / unset value. + // The API will default to the BASIC view. + TEST_CASE_VIEW_UNSPECIFIED = 0; + + // Include basic metadata about the test case, but not the conversation + // turns. This is the default value. + BASIC = 1; + + // Include everything. + FULL = 2; + } + + // Required. The agent to list all pages for. + // Format: `projects//locations//agents/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/TestCase" + } + ]; + + // The maximum number of items to return in a single page. By default 20. + // Note that when TestCaseView = FULL, the maximum page size allowed is 20. + // When TestCaseView = BASIC, the maximum page size allowed is 500. + int32 page_size = 2; + + // The next_page_token value returned from a previous list request. + string page_token = 3; + + // Specifies whether response should include all fields or just the metadata. + TestCaseView view = 4; +} + +// The response message for [TestCases.ListTestCases][google.cloud.dialogflow.cx.v3beta1.TestCases.ListTestCases]. +message ListTestCasesResponse { + // The list of test cases. There will be a maximum number of items returned + // based on the page_size field in the request. + repeated TestCase test_cases = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; +} + +// The request message for [TestCases.BatchDeleteTestCases][google.cloud.dialogflow.cx.v3beta1.TestCases.BatchDeleteTestCases]. +message BatchDeleteTestCasesRequest { + // Required. The agent to delete test cases from. + // Format: `projects//locations//agents/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/TestCase" + } + ]; + + // Required. Format of test case names: `projects//locations/ + // /agents//testCases/`. + repeated string names = 3 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/TestCase" + } + ]; +} + +// The request message for [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3beta1.TestCases.CreateTestCase]. +message CreateTestCaseRequest { + // Required. The agent to create the test case for. + // Format: `projects//locations//agents/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/TestCase" + } + ]; + + // Required. The test case to create. + TestCase test_case = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// The request message for [TestCases.UpdateTestCase][google.cloud.dialogflow.cx.v3beta1.TestCases.UpdateTestCase]. +message UpdateTestCaseRequest { + // Required. The test case to update. + TestCase test_case = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The mask to specify which fields should be updated. The + // [`creationTime`][google.cloud.dialogflow.cx.v3beta1.TestCase.creation_time] and + // [`lastTestResult`][google.cloud.dialogflow.cx.v3beta1.TestCase.last_test_result] cannot be updated. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// The request message for [TestCases.GetTestCase][google.cloud.dialogflow.cx.v3beta1.TestCases.GetTestCase]. +message GetTestCaseRequest { + // Required. The name of the testcase. + // Format: `projects//locations//agents//testCases/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/TestCase" + } + ]; +} + +// The request message for [TestCases.RunTestCase][google.cloud.dialogflow.cx.v3beta1.TestCases.RunTestCase]. +message RunTestCaseRequest { + // Required. Format of test case name to run: `projects//locations/ + // /agents//testCases/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/TestCase" + } + ]; + + // Optional. Environment name. If not set, draft environment is assumed. + // Format: `projects//locations//agents//environments/`. + string environment = 2 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Environment" + } + ]; +} + +// The response message for [TestCases.RunTestCase][google.cloud.dialogflow.cx.v3beta1.TestCases.RunTestCase]. +message RunTestCaseResponse { + // The result. + TestCaseResult result = 2; +} + +// Metadata returned for the [TestCases.RunTestCase][google.cloud.dialogflow.cx.v3beta1.TestCases.RunTestCase] long running operation. +message RunTestCaseMetadata { + +} + +// The request message for [TestCases.BatchRunTestCases][google.cloud.dialogflow.cx.v3beta1.TestCases.BatchRunTestCases]. +message BatchRunTestCasesRequest { + // Required. Agent name. Format: `projects//locations//agents/ + // `. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/TestCase" + } + ]; + + // Optional. If not set, draft environment is assumed. Format: `projects//locations//agents//environments/`. + string environment = 2 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Environment" + } + ]; + + // Required. Format: `projects//locations//agents//testCases/`. + repeated string test_cases = 3 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/TestCase" + } + ]; +} + +// The response message for [TestCases.BatchRunTestCases][google.cloud.dialogflow.cx.v3beta1.TestCases.BatchRunTestCases]. +message BatchRunTestCasesResponse { + // The test case results. The detailed + // [conversation turns][google.cloud.dialogflow.cx.v3beta1.TestCaseResult.conversation_turns] are empty in this + // response. + repeated TestCaseResult results = 1; +} + +// Metadata returned for the [TestCases.BatchRunTestCases][google.cloud.dialogflow.cx.v3beta1.TestCases.BatchRunTestCases] long running +// operation. +message BatchRunTestCasesMetadata { + // The test errors. + repeated TestError errors = 1; +} + +// Error info for running a test. +message TestError { + // The test case resource name. + string test_case = 1 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/TestCase" + }]; + + // The status associated with the test. + google.rpc.Status status = 2; + + // The timestamp when the test was completed. + google.protobuf.Timestamp test_time = 3; +} + +// The request message for [TestCases.ImportTestCases][google.cloud.dialogflow.cx.v3beta1.TestCases.ImportTestCases]. +message ImportTestCasesRequest { + // Required. The agent to import test cases to. + // Format: `projects//locations//agents/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/TestCase" + } + ]; + + // Required. The source to import. + oneof source { + // The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI + // to import test cases from. The format of this URI must be + // `gs:///`. + string gcs_uri = 2; + + // Uncompressed raw byte content for test cases. + bytes content = 3; + } +} + +// The response message for [TestCases.ImportTestCases][google.cloud.dialogflow.cx.v3beta1.TestCases.ImportTestCases]. +message ImportTestCasesResponse { + // The unique identifiers of the new test cases. + // Format: `projects//locations//agents//testCases/`. + repeated string names = 1 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/TestCase" + }]; +} + +// Metadata returned for the [TestCases.ImportTestCases][google.cloud.dialogflow.cx.v3beta1.TestCases.ImportTestCases] long running +// operation. +message ImportTestCasesMetadata { + // Errors for failed test cases. + repeated TestCaseError errors = 1; +} + +// Error info for importing a test. +message TestCaseError { + // The test case. + TestCase test_case = 1; + + // The status associated with the test case. + google.rpc.Status status = 2; +} + +// The request message for [TestCases.ExportTestCases][google.cloud.dialogflow.cx.v3beta1.TestCases.ExportTestCases]. +message ExportTestCasesRequest { + // Data format of the exported test cases. + enum DataFormat { + // Unspecified format. + DATA_FORMAT_UNSPECIFIED = 0; + + // Raw bytes. + BLOB = 1; + + // JSON format. + JSON = 2; + } + + // Required. The agent where to export test cases from. + // Format: `projects//locations//agents/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/TestCase" + } + ]; + + // The destination to export. + oneof destination { + // The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to + // export the test cases to. The format of this URI must be + // `gs:///`. If unspecified, the serialized test + // cases is returned inline. + string gcs_uri = 2; + } + + // The data format of the exported test cases. If not specified, `BLOB` is + // assumed. + DataFormat data_format = 3; + + // The filter expression used to filter exported test cases, see + // [API Filtering](https://aip.dev/160). The expression is case insensitive + // and supports the following syntax: + // + // name = [OR name = ] ... + // + // For example: + // + // * "name = t1 OR name = t2" matches the test case with the exact resource + // name "t1" or "t2". + string filter = 4; +} + +// The response message for [TestCases.ExportTestCases][google.cloud.dialogflow.cx.v3beta1.TestCases.ExportTestCases]. +message ExportTestCasesResponse { + // The exported test cases. + oneof destination { + // The URI to a file containing the exported test cases. This field is + // populated only if `gcs_uri` is specified in + // [ExportTestCasesRequest][google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest]. + string gcs_uri = 1; + + // Uncompressed raw byte content for test cases. + bytes content = 2; + } +} + +// Metadata returned for the [TestCases.ExportTestCases][google.cloud.dialogflow.cx.v3beta1.TestCases.ExportTestCases] long running +// operation. +message ExportTestCasesMetadata { + +} + +// The request message for [TestCases.ListTestCaseResults][google.cloud.dialogflow.cx.v3beta1.TestCases.ListTestCaseResults]. +message ListTestCaseResultsRequest { + // Required. The test case to list results for. + // Format: `projects//locations//agents// + // testCases/`. Specify a `-` as a wildcard for TestCase ID to + // list results across multiple test cases. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/TestCaseResult" + } + ]; + + // The maximum number of items to return in a single page. By default 100 and + // at most 1000. + int32 page_size = 2; + + // The next_page_token value returned from a previous list request. + string page_token = 3; + + // The filter expression used to filter test case results. See + // [API Filtering](https://aip.dev/160). + // + // The expression is case insensitive. Only 'AND' is supported for logical + // operators. The supported syntax is listed below in detail: + // + // [AND ] ... + // [AND latest] + // + // The supported fields and operators are: + // field operator + // `environment` `=`, `IN` (Use value `draft` for draft environment) + // `test_time` `>`, `<` + // + // `latest` only returns the latest test result in all results for each test + // case. + // + // Examples: + // * "environment=draft AND latest" matches the latest test result for each + // test case in the draft environment. + // * "environment IN (e1,e2)" matches any test case results with an + // environment resource name of either "e1" or "e2". + // * "test_time > 1602540713" matches any test case results with test time + // later than a unix timestamp in seconds 1602540713. + string filter = 4; +} + +// The response message for [TestCases.ListTestCaseResults][google.cloud.dialogflow.cx.v3beta1.TestCases.ListTestCaseResults]. +message ListTestCaseResultsResponse { + // The list of test case results. + repeated TestCaseResult test_case_results = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; +} + +// The test result for a test case and an agent environment. +enum TestResult { + // Not specified. Should never be used. + TEST_RESULT_UNSPECIFIED = 0; + + // The test passed. + PASSED = 1; + + // The test did not pass. + FAILED = 2; +} diff --git a/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/transition_route_group.proto b/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/transition_route_group.proto index a2eed7b4a..341985b4a 100644 --- a/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/transition_route_group.proto +++ b/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/transition_route_group.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -102,11 +102,6 @@ message TransitionRouteGroup { string display_name = 2 [(google.api.field_behavior) = REQUIRED]; // Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup]. - // Duplicate transition routes (i.e. using the same - // [`intent`][google.cloud.dialogflow.cx.v3beta1.TransitionRoute.intent]) are not allowed. - // - // Note that the [`name`][google.cloud.dialogflow.cx.v3beta1.TransitionRoute.name] field is not used in the - // transition route group scope. repeated TransitionRoute transition_routes = 5; } @@ -135,7 +130,7 @@ message ListTransitionRouteGroupsRequest { // // If not specified, the agent's default language is used. // [Many - // languages](https://cloud.google.com/dialogflow/docs/reference/language) + // languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) // are supported. // Note: languages must be enabled in the agent before they can be used. string language_code = 4; @@ -172,7 +167,7 @@ message GetTransitionRouteGroupRequest { // // If not specified, the agent's default language is used. // [Many - // languages](https://cloud.google.com/dialogflow/docs/reference/language) + // languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) // are supported. // Note: languages must be enabled in the agent before they can be used. string language_code = 2; @@ -199,7 +194,7 @@ message CreateTransitionRouteGroupRequest { // // If not specified, the agent's default language is used. // [Many - // languages](https://cloud.google.com/dialogflow/docs/reference/language) + // languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) // are supported. // Note: languages must be enabled in the agent before they can be used. string language_code = 3; @@ -219,7 +214,7 @@ message UpdateTransitionRouteGroupRequest { // // If not specified, the agent's default language is used. // [Many - // languages](https://cloud.google.com/dialogflow/docs/reference/language) + // languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) // are supported. // Note: languages must be enabled in the agent before they can be used. string language_code = 3; diff --git a/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/validation_message.proto b/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/validation_message.proto new file mode 100644 index 000000000..b80e4fa27 --- /dev/null +++ b/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/validation_message.proto @@ -0,0 +1,115 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.cx.v3beta1; + +import "google/protobuf/struct.proto"; +import "google/api/annotations.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3beta1;cx"; +option java_multiple_files = true; +option java_outer_classname = "ValidationMessageProto"; +option java_package = "com.google.cloud.dialogflow.cx.v3beta1"; +option objc_class_prefix = "DF"; + +// Agent/flow validation message. +message ValidationMessage { + // Resource types. + enum ResourceType { + // Unspecified. + RESOURCE_TYPE_UNSPECIFIED = 0; + + // Agent. + AGENT = 1; + + // Intent. + INTENT = 2; + + // Intent training phrase. + INTENT_TRAINING_PHRASE = 8; + + // Intent parameter. + INTENT_PARAMETER = 9; + + // Multiple intents. + INTENTS = 10; + + // Multiple training phrases. + INTENT_TRAINING_PHRASES = 11; + + // Entity type. + ENTITY_TYPE = 3; + + // Multiple entity types. + ENTITY_TYPES = 12; + + // Webhook. + WEBHOOK = 4; + + // Flow. + FLOW = 5; + + // Page. + PAGE = 6; + + // Multiple pages. + PAGES = 13; + + // Transition route group. + TRANSITION_ROUTE_GROUP = 7; + } + + // Severity level. + enum Severity { + // Unspecified. + SEVERITY_UNSPECIFIED = 0; + + // The agent doesn't follow Dialogflow best practices. + INFO = 1; + + // The agent may not behave as expected. + WARNING = 2; + + // The agent may experience failures. + ERROR = 3; + } + + // The type of the resources where the message is found. + ResourceType resource_type = 1; + + // The names of the resources where the message is found. + repeated string resources = 2 [deprecated = true]; + + // The resource names of the resources where the message is found. + repeated ResourceName resource_names = 6; + + // Indicates the severity of the message. + Severity severity = 3; + + // The message detail. + string detail = 4; +} + +// Resource name and display name. +message ResourceName { + // Name. + string name = 1; + + // Display name. + string display_name = 2; +} diff --git a/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/version.proto b/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/version.proto index 819a6d3cd..9648a4277 100644 --- a/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/version.proto +++ b/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/version.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/webhook.proto b/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/webhook.proto index e813bf304..8f94f3027 100644 --- a/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/webhook.proto +++ b/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/webhook.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -33,6 +33,10 @@ option java_multiple_files = true; option java_outer_classname = "WebhookProto"; option java_package = "com.google.cloud.dialogflow.cx.v3beta1"; option objc_class_prefix = "DF"; +option (google.api.resource_definition) = { + type: "servicedirectory.googleapis.com/Service" + pattern: "projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}" +}; // Service for managing [Webhooks][google.cloud.dialogflow.cx.v3beta1.Webhook]. service Webhooks { @@ -255,11 +259,30 @@ message WebhookRequest { type: "dialogflow.googleapis.com/Intent" }]; + // Always present. The display name of the last matched [intent][google.cloud.dialogflow.cx.v3beta1.Intent]. + string display_name = 3; + // Parameters identified as a result of intent matching. This is a map of // the name of the identified parameter to the value of the parameter // identified from the user's utterance. All parameters defined in the // matched intent that are identified will be surfaced here. map parameters = 2; + + // The confidence of the matched intent. Values range from 0.0 (completely + // uncertain) to 1.0 (completely certain). + float confidence = 4; + } + + // Represents the result of sentiment analysis. + message SentimentAnalysisResult { + // Sentiment score between -1.0 (negative sentiment) and 1.0 (positive + // sentiment). + float score = 1; + + // A non-negative number in the [0, +inf) range, which represents the + // absolute magnitude of sentiment, regardless of score (positive or + // negative). + float magnitude = 2; } // Always present. The unique identifier of the [DetectIntentResponse][google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse] that @@ -286,6 +309,10 @@ message WebhookRequest { // Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3beta1.QueryParameters.payload]. google.protobuf.Struct payload = 8; + + // The sentiment analysis result of the current user request. The field is + // filled when sentiment analysis is configured to be enabled for the request. + SentimentAnalysisResult sentiment_analysis_result = 9; } // The response message for a webhook call. @@ -424,9 +451,11 @@ message PageInfo { message SessionInfo { // Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3beta1.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3beta1.WebhookResponse]. // The unique identifier of the [session][google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest.session]. This - // field can be used by the webhook to identify a user. + // field can be used by the webhook to identify a session. // Format: `projects//locations//agents//sessions/`. + // ID>/sessions/` or `projects//locations//agents//environments//sessions/` + // if environment is specified. string session = 1 [(google.api.resource_reference) = { type: "dialogflow.googleapis.com/Session" }]; diff --git a/third_party/googleapis/google/cloud/dialogflow/v2/BUILD.bazel b/third_party/googleapis/google/cloud/dialogflow/v2/BUILD.bazel index 3f8858fbf..db76cc5b5 100644 --- a/third_party/googleapis/google/cloud/dialogflow/v2/BUILD.bazel +++ b/third_party/googleapis/google/cloud/dialogflow/v2/BUILD.bazel @@ -1,5 +1,5 @@ # This file was automatically generated by BuildFileGenerator -# https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/bazel +# https://github.com/googleapis/rules_gapic/tree/master/bazel # Most of the manual changes to this file will be overwritten. # It's **only** allowed to change the following rule attribute values: @@ -22,11 +22,20 @@ proto_library( name = "dialogflow_proto", srcs = [ "agent.proto", + "answer_record.proto", "audio_config.proto", "context.proto", + "conversation.proto", + "conversation_event.proto", + "conversation_profile.proto", + "document.proto", "entity_type.proto", "environment.proto", + "gcs.proto", + "human_agent_assistant_event.proto", "intent.proto", + "knowledge_base.proto", + "participant.proto", "session.proto", "session_entity_type.proto", "validation_result.proto", @@ -53,6 +62,7 @@ proto_library_with_info( deps = [ ":dialogflow_proto", "//google/cloud:common_resources_proto", + "//google/cloud/dialogflow:common_resources_proto", ], ) @@ -81,11 +91,8 @@ java_grpc_library( java_gapic_library( name = "dialogflow_java_gapic", - src = ":dialogflow_proto_with_info", - gapic_yaml = "dialogflow_gapic.yaml", + srcs = [":dialogflow_proto_with_info"], grpc_service_config = "dialogflow_grpc_service_config.json", - package = "google.cloud.dialogflow.v2", - service_yaml = "dialogflow_v2.yaml", test_deps = [ ":dialogflow_java_grpc", ], @@ -97,13 +104,6 @@ java_gapic_library( java_gapic_test( name = "dialogflow_java_gapic_test_suite", test_classes = [ - "com.google.cloud.dialogflow.v2.AgentsClientTest", - "com.google.cloud.dialogflow.v2.ContextsClientTest", - "com.google.cloud.dialogflow.v2.EntityTypesClientTest", - "com.google.cloud.dialogflow.v2.EnvironmentsClientTest", - "com.google.cloud.dialogflow.v2.IntentsClientTest", - "com.google.cloud.dialogflow.v2.SessionEntityTypesClientTest", - "com.google.cloud.dialogflow.v2.SessionsClientTest", ], runtime_deps = [":dialogflow_java_gapic_test"], ) @@ -148,12 +148,13 @@ go_gapic_library( srcs = [":dialogflow_proto_with_info"], grpc_service_config = "dialogflow_grpc_service_config.json", importpath = "cloud.google.com/go/dialogflow/apiv2;dialogflow", + metadata = True, service_yaml = "dialogflow_v2.yaml", deps = [ ":dialogflow_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", "@io_bazel_rules_go//proto/wkt:duration_go_proto", "@io_bazel_rules_go//proto/wkt:struct_go_proto", ], @@ -171,6 +172,7 @@ go_gapic_assembly_pkg( name = "gapi-cloud-dialogflow-v2-go", deps = [ ":dialogflow_go_gapic", + ":dialogflow_go_gapic_srcjar-metadata.srcjar", ":dialogflow_go_gapic_srcjar-test.srcjar", ":dialogflow_go_proto", ], @@ -179,12 +181,10 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -193,6 +193,7 @@ py_gapic_library( grpc_service_config = "dialogflow_grpc_service_config.json", ) +# Open Source Packages py_gapic_assembly_pkg( name = "dialogflow-v2-py", deps = [ @@ -258,6 +259,7 @@ nodejs_gapic_library( name = "dialogflow_nodejs_gapic", package_name = "@google-cloud/dialogflow", src = ":dialogflow_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "dialogflow_grpc_service_config.json", main_service = "dialogflow", package = "google.cloud.dialogflow.v2", @@ -279,7 +281,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -295,13 +297,19 @@ ruby_grpc_library( deps = [":dialogflow_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "dialogflow_ruby_gapic", - src = ":dialogflow_proto_with_info", - gapic_yaml = "dialogflow_gapic.yaml", + srcs = [":dialogflow_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-dialogflow-v2", + "ruby-cloud-env-prefix=DIALOGFLOW", + "ruby-cloud-product-url=https://cloud.google.com/dialogflow", + "ruby-cloud-api-id=dialogflow.googleapis.com", + "ruby-cloud-api-shortname=dialogflow", + ], grpc_service_config = "dialogflow_grpc_service_config.json", - package = "google.cloud.dialogflow.v2", - service_yaml = "dialogflow_v2.yaml", + ruby_cloud_description = "Dialogflow is an end-to-end, build-once deploy-everywhere development suite for creating conversational interfaces for websites, mobile applications, popular messaging platforms, and IoT devices. You can use it to build interfaces (such as chatbots and conversational IVR) that enable natural and rich interactions between your users and your business.", + ruby_cloud_title = "Dialogflow V2", deps = [ ":dialogflow_ruby_grpc", ":dialogflow_ruby_proto", @@ -343,8 +351,8 @@ csharp_grpc_library( csharp_gapic_library( name = "dialogflow_csharp_gapic", srcs = [":dialogflow_proto_with_info"], - grpc_service_config = "dialogflow_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "dialogflow_grpc_service_config.json", deps = [ ":dialogflow_csharp_grpc", ":dialogflow_csharp_proto", @@ -364,4 +372,20 @@ csharp_gapic_assembly_pkg( ############################################################################## # C++ ############################################################################## -# Put your C++ rules here +load( + "@com_google_googleapis_imports//:imports.bzl", + "cc_grpc_library", + "cc_proto_library", +) + +cc_proto_library( + name = "dialogflow_cc_proto", + deps = [":dialogflow_proto"], +) + +cc_grpc_library( + name = "dialogflow_cc_grpc", + srcs = [":dialogflow_proto"], + grpc_only = True, + deps = [":dialogflow_cc_proto"], +) diff --git a/third_party/googleapis/google/cloud/dialogflow/v2/agent.proto b/third_party/googleapis/google/cloud/dialogflow/v2/agent.proto index 1ce271736..4ac05cd2a 100644 --- a/third_party/googleapis/google/cloud/dialogflow/v2/agent.proto +++ b/third_party/googleapis/google/cloud/dialogflow/v2/agent.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -267,7 +267,10 @@ message Agent { bool enable_logging = 8 [(google.api.field_behavior) = OPTIONAL]; // Optional. Determines how intents are detected from user queries. - MatchMode match_mode = 9 [(google.api.field_behavior) = OPTIONAL]; + MatchMode match_mode = 9 [ + deprecated = true, + (google.api.field_behavior) = OPTIONAL + ]; // Optional. To filter out false positive results and still get variety in // matched natural language inputs for your agent, you can tune the machine diff --git a/third_party/googleapis/google/cloud/dialogflow/v2/answer_record.proto b/third_party/googleapis/google/cloud/dialogflow/v2/answer_record.proto new file mode 100644 index 000000000..1afb47e63 --- /dev/null +++ b/third_party/googleapis/google/cloud/dialogflow/v2/answer_record.proto @@ -0,0 +1,297 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.v2; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/dialogflow/v2/participant.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Dialogflow.V2"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/v2;dialogflow"; +option java_multiple_files = true; +option java_outer_classname = "AnswerRecordsProto"; +option java_package = "com.google.cloud.dialogflow.v2"; +option objc_class_prefix = "DF"; + +// Service for managing [AnswerRecords][google.cloud.dialogflow.v2.AnswerRecord]. +service AnswerRecords { + option (google.api.default_host) = "dialogflow.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/dialogflow"; + + // Returns the list of all answer records in the specified project in reverse + // chronological order. + rpc ListAnswerRecords(ListAnswerRecordsRequest) returns (ListAnswerRecordsResponse) { + option (google.api.http) = { + get: "/v2/{parent=projects/*}/answerRecords" + additional_bindings { + get: "/v2/{parent=projects/*/locations/*}/answerRecords" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Updates the specified answer record. + rpc UpdateAnswerRecord(UpdateAnswerRecordRequest) returns (AnswerRecord) { + option (google.api.http) = { + patch: "/v2/{answer_record.name=projects/*/answerRecords/*}" + body: "answer_record" + additional_bindings { + patch: "/v2/{answer_record.name=projects/*/locations/*/answerRecords/*}" + body: "answer_record" + } + }; + option (google.api.method_signature) = "answer_record,update_mask"; + } +} + +// Answer records are records to manage answer history and feedbacks for +// Dialogflow. +// +// Currently, answer record includes: +// +// - human agent assistant article suggestion +// - human agent assistant faq article +// +// It doesn't include: +// +// - `DetectIntent` intent matching +// - `DetectIntent` knowledge +// +// Answer records are not related to the conversation history in the +// Dialogflow Console. A Record is generated even when the end-user disables +// conversation history in the console. Records are created when there's a human +// agent assistant suggestion generated. +// +// A typical workflow for customers provide feedback to an answer is: +// +// 1. For human agent assistant, customers get suggestion via ListSuggestions +// API. Together with the answers, [AnswerRecord.name][google.cloud.dialogflow.v2.AnswerRecord.name] are returned to the +// customers. +// 2. The customer uses the [AnswerRecord.name][google.cloud.dialogflow.v2.AnswerRecord.name] to call the +// [UpdateAnswerRecord][] method to send feedback about a specific answer +// that they believe is wrong. +message AnswerRecord { + option (google.api.resource) = { + type: "dialogflow.googleapis.com/AnswerRecord" + pattern: "projects/{project}/answerRecords/{answer_record}" + pattern: "projects/{project}/locations/{location}/answerRecords/{answer_record}" + }; + + // The unique identifier of this answer record. + // Format: `projects//locations//answerRecords/`. + string name = 1; + + // Required. The AnswerFeedback for this record. You can set this with + // [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2.AnswerRecords.UpdateAnswerRecord] in order to give us feedback about + // this answer. + AnswerFeedback answer_feedback = 2 [(google.api.field_behavior) = REQUIRED]; + + // The record for this answer. + oneof record { + // Output only. The record for human agent assistant. + AgentAssistantRecord agent_assistant_record = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + } +} + +// Request message for [AnswerRecords.ListAnswerRecords][google.cloud.dialogflow.v2.AnswerRecords.ListAnswerRecords]. +message ListAnswerRecordsRequest { + // Required. The project to list all answer records for in reverse + // chronological order. Format: `projects//locations/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/AnswerRecord" + } + ]; + + // Required. Filters to restrict results to specific answer records. + // Filter on answer record type. Currently predicates on `type` is supported, + // valid values are `ARTICLE_ANSWER`, `FAQ_ANSWER`. + // + // For more information about filtering, see + // [API Filtering](https://aip.dev/160). + string filter = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The maximum number of records to return in a single page. + // The server may return fewer records than this. If unspecified, we use 10. + // The maximum is 100. + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The + // [ListAnswerRecordsResponse.next_page_token][google.cloud.dialogflow.v2.ListAnswerRecordsResponse.next_page_token] + // value returned from a previous list request used to continue listing on + // the next page. + string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for [AnswerRecords.ListAnswerRecords][google.cloud.dialogflow.v2.AnswerRecords.ListAnswerRecords]. +message ListAnswerRecordsResponse { + // The list of answer records. + repeated AnswerRecord answer_records = 1; + + // A token to retrieve next page of results. Or empty if there are no more + // results. + // Pass this value in the + // [ListAnswerRecordsRequest.page_token][google.cloud.dialogflow.v2.ListAnswerRecordsRequest.page_token] + // field in the subsequent call to `ListAnswerRecords` method to retrieve the + // next page of results. + string next_page_token = 2; +} + +// Request message for [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2.AnswerRecords.UpdateAnswerRecord]. +message UpdateAnswerRecordRequest { + // Required. Answer record to update. + AnswerRecord answer_record = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/AnswerRecord" + } + ]; + + // Required. The mask to control which fields get updated. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Represents feedback the customer has about the quality & correctness of a +// certain answer in a conversation. +message AnswerFeedback { + // The correctness level of an answer. + enum CorrectnessLevel { + // Correctness level unspecified. + CORRECTNESS_LEVEL_UNSPECIFIED = 0; + + // Answer is totally wrong. + NOT_CORRECT = 1; + + // Answer is partially correct. + PARTIALLY_CORRECT = 2; + + // Answer is fully correct. + FULLY_CORRECT = 3; + } + + // The correctness level of the specific answer. + CorrectnessLevel correctness_level = 1; + + // Normally, detail feedback is provided when answer is not fully correct. + oneof detail_feedback { + // Detail feedback of agent assist suggestions. + AgentAssistantFeedback agent_assistant_detail_feedback = 2; + } + + // Indicates whether the answer/item was clicked by the human agent + // or not. Default to false. + bool clicked = 3; + + // Time when the answer/item was clicked. + google.protobuf.Timestamp click_time = 5; + + // Indicates whether the answer/item was displayed to the human + // agent in the agent desktop UI. Default to false. + bool displayed = 4; + + // Time when the answer/item was displayed. + google.protobuf.Timestamp display_time = 6; +} + +// Detail feedback of Agent Assist result. +message AgentAssistantFeedback { + // Relevance of an answer. + enum AnswerRelevance { + // Answer relevance unspecified. + ANSWER_RELEVANCE_UNSPECIFIED = 0; + + // Answer is irrelevant to query. + IRRELEVANT = 1; + + // Answer is relevant to query. + RELEVANT = 2; + } + + // Correctness of document. + enum DocumentCorrectness { + // Document correctness unspecified. + DOCUMENT_CORRECTNESS_UNSPECIFIED = 0; + + // Information in document is incorrect. + INCORRECT = 1; + + // Information in document is correct. + CORRECT = 2; + } + + // Efficiency of document. + enum DocumentEfficiency { + // Document efficiency unspecified. + DOCUMENT_EFFICIENCY_UNSPECIFIED = 0; + + // Document is inefficient. + INEFFICIENT = 1; + + // Document is efficient. + EFFICIENT = 2; + } + + // Optional. Whether or not the suggested answer is relevant. + // + // For example: + // + // * Query: "Can I change my mailing address?" + // * Suggested document says: "Items must be returned/exchanged within 60 + // days of the purchase date." + // * [answer_relevance][google.cloud.dialogflow.v2.AgentAssistantFeedback.answer_relevance]: [AnswerRelevance.IRRELEVANT][google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance.IRRELEVANT] + AnswerRelevance answer_relevance = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether or not the information in the document is correct. + // + // For example: + // + // * Query: "Can I return the package in 2 days once received?" + // * Suggested document says: "Items must be returned/exchanged within 60 + // days of the purchase date." + // * Ground truth: "No return or exchange is allowed." + // * [document_correctness]: INCORRECT + DocumentCorrectness document_correctness = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether or not the suggested document is efficient. For example, + // if the document is poorly written, hard to understand, hard to use or + // too long to find useful information, [document_efficiency][google.cloud.dialogflow.v2.AgentAssistantFeedback.document_efficiency] is + // [DocumentEfficiency.INEFFICIENT][google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency.INEFFICIENT]. + DocumentEfficiency document_efficiency = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Represents a record of a human agent assist answer. +message AgentAssistantRecord { + // Output only. The agent assist answer. + oneof answer { + // Output only. The article suggestion answer. + ArticleAnswer article_suggestion_answer = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The FAQ answer. + FaqAnswer faq_answer = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + } +} diff --git a/third_party/googleapis/google/cloud/dialogflow/v2/audio_config.proto b/third_party/googleapis/google/cloud/dialogflow/v2/audio_config.proto index dcfd650fc..674535b4b 100644 --- a/third_party/googleapis/google/cloud/dialogflow/v2/audio_config.proto +++ b/third_party/googleapis/google/cloud/dialogflow/v2/audio_config.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -247,6 +247,12 @@ message InputAudioConfig { // Note: When specified, InputAudioConfig.single_utterance takes precedence // over StreamingDetectIntentRequest.single_utterance. bool single_utterance = 8; + + // Only used in [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] and + // [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent]. + // If `false` and recognition doesn't return any result, trigger + // `NO_SPEECH_RECOGNIZED` event to Dialogflow agent. + bool disable_no_speech_recognized_event = 14; } // Description of which voice to use for speech synthesis. @@ -264,23 +270,6 @@ message VoiceSelectionParams { SsmlVoiceGender ssml_gender = 2; } -// Gender of the voice as described in -// [SSML voice element](https://www.w3.org/TR/speech-synthesis11/#edef_voice). -enum SsmlVoiceGender { - // An unspecified gender, which means that the client doesn't care which - // gender the selected voice will have. - SSML_VOICE_GENDER_UNSPECIFIED = 0; - - // A male voice. - SSML_VOICE_GENDER_MALE = 1; - - // A female voice. - SSML_VOICE_GENDER_FEMALE = 2; - - // A gender-neutral voice. - SSML_VOICE_GENDER_NEUTRAL = 3; -} - // Configuration of how speech should be synthesized. message SynthesizeSpeechConfig { // Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal @@ -313,6 +302,23 @@ message SynthesizeSpeechConfig { VoiceSelectionParams voice = 4; } +// Gender of the voice as described in +// [SSML voice element](https://www.w3.org/TR/speech-synthesis11/#edef_voice). +enum SsmlVoiceGender { + // An unspecified gender, which means that the client doesn't care which + // gender the selected voice will have. + SSML_VOICE_GENDER_UNSPECIFIED = 0; + + // A male voice. + SSML_VOICE_GENDER_MALE = 1; + + // A female voice. + SSML_VOICE_GENDER_FEMALE = 2; + + // A gender-neutral voice. + SSML_VOICE_GENDER_NEUTRAL = 3; +} + // Instructs the speech synthesizer on how to generate the output audio content. // If this audio config is supplied in a request, it overrides all existing // text-to-speech settings applied to the agent. @@ -331,6 +337,12 @@ message OutputAudioConfig { SynthesizeSpeechConfig synthesize_speech_config = 3; } +// A wrapper of repeated TelephonyDtmf digits. +message TelephonyDtmfEvents { + // A sequence of TelephonyDtmf digits. + repeated TelephonyDtmf dtmf_events = 1; +} + // Audio encoding of the output audio format in Text-To-Speech. enum OutputAudioEncoding { // Not specified. @@ -349,3 +361,67 @@ enum OutputAudioEncoding { // than MP3 while using approximately the same bitrate. OUTPUT_AUDIO_ENCODING_OGG_OPUS = 3; } + +// Configures speech transcription for [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile]. +message SpeechToTextConfig { + // Optional. The speech model used in speech to text. + // `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `USE_BEST_AVAILABLE` will be treated as + // `USE_ENHANCED`. It can be overridden in [AnalyzeContentRequest][google.cloud.dialogflow.v2.AnalyzeContentRequest] and + // [StreamingAnalyzeContentRequest][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest] request. + SpeechModelVariant speech_model_variant = 1 [(google.api.field_behavior) = OPTIONAL]; +} + +// [DTMF](https://en.wikipedia.org/wiki/Dual-tone_multi-frequency_signaling) +// digit in Telephony Gateway. +enum TelephonyDtmf { + // Not specified. This value may be used to indicate an absent digit. + TELEPHONY_DTMF_UNSPECIFIED = 0; + + // Number: '1'. + DTMF_ONE = 1; + + // Number: '2'. + DTMF_TWO = 2; + + // Number: '3'. + DTMF_THREE = 3; + + // Number: '4'. + DTMF_FOUR = 4; + + // Number: '5'. + DTMF_FIVE = 5; + + // Number: '6'. + DTMF_SIX = 6; + + // Number: '7'. + DTMF_SEVEN = 7; + + // Number: '8'. + DTMF_EIGHT = 8; + + // Number: '9'. + DTMF_NINE = 9; + + // Number: '0'. + DTMF_ZERO = 10; + + // Letter: 'A'. + DTMF_A = 11; + + // Letter: 'B'. + DTMF_B = 12; + + // Letter: 'C'. + DTMF_C = 13; + + // Letter: 'D'. + DTMF_D = 14; + + // Asterisk/star: '*'. + DTMF_STAR = 15; + + // Pound/diamond/hash/square/gate/octothorpe: '#'. + DTMF_POUND = 16; +} diff --git a/third_party/googleapis/google/cloud/dialogflow/v2/context.proto b/third_party/googleapis/google/cloud/dialogflow/v2/context.proto index 07740d1f7..246ee7be4 100644 --- a/third_party/googleapis/google/cloud/dialogflow/v2/context.proto +++ b/third_party/googleapis/google/cloud/dialogflow/v2/context.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -169,7 +169,8 @@ message Context { // - MapKey value: parameter name // - MapValue type: // - If parameter's entity type is a composite entity: map - // - Else: string or number, depending on parameter value type + // - Else: depending on parameter value type, could be one of string, + // number, boolean, null, list or map // - MapValue value: // - If parameter's entity type is a composite entity: // map from composite entity property names to property values diff --git a/third_party/googleapis/google/cloud/dialogflow/v2/conversation.proto b/third_party/googleapis/google/cloud/dialogflow/v2/conversation.proto new file mode 100644 index 000000000..5124402cd --- /dev/null +++ b/third_party/googleapis/google/cloud/dialogflow/v2/conversation.proto @@ -0,0 +1,520 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.v2; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/dialogflow/v2/participant.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/timestamp.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Dialogflow.V2"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/v2;dialogflow"; +option java_multiple_files = true; +option java_outer_classname = "ConversationProto"; +option java_package = "com.google.cloud.dialogflow.v2"; +option objc_class_prefix = "DF"; + +// Service for managing [Conversations][google.cloud.dialogflow.v2.Conversation]. +service Conversations { + option (google.api.default_host) = "dialogflow.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/dialogflow"; + + // Creates a new conversation. Conversations are auto-completed after 24 + // hours. + // + // Conversation Lifecycle: + // There are two stages during a conversation: Automated Agent Stage and + // Assist Stage. + // + // For Automated Agent Stage, there will be a dialogflow agent responding to + // user queries. + // + // For Assist Stage, there's no dialogflow agent responding to user queries. + // But we will provide suggestions which are generated from conversation. + // + // If [Conversation.conversation_profile][google.cloud.dialogflow.v2.Conversation.conversation_profile] is configured for a dialogflow + // agent, conversation will start from `Automated Agent Stage`, otherwise, it + // will start from `Assist Stage`. And during `Automated Agent Stage`, once an + // [Intent][google.cloud.dialogflow.v2.Intent] with [Intent.live_agent_handoff][google.cloud.dialogflow.v2.Intent.live_agent_handoff] is triggered, conversation + // will transfer to Assist Stage. + rpc CreateConversation(CreateConversationRequest) returns (Conversation) { + option (google.api.http) = { + post: "/v2/{parent=projects/*}/conversations" + body: "conversation" + additional_bindings { + post: "/v2/{parent=projects/*/locations/*}/conversations" + body: "conversation" + } + }; + option (google.api.method_signature) = "parent,conversation"; + } + + // Returns the list of all conversations in the specified project. + rpc ListConversations(ListConversationsRequest) returns (ListConversationsResponse) { + option (google.api.http) = { + get: "/v2/{parent=projects/*}/conversations" + additional_bindings { + get: "/v2/{parent=projects/*/locations/*}/conversations" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Retrieves the specific conversation. + rpc GetConversation(GetConversationRequest) returns (Conversation) { + option (google.api.http) = { + get: "/v2/{name=projects/*/conversations/*}" + additional_bindings { + get: "/v2/{name=projects/*/locations/*/conversations/*}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Completes the specified conversation. Finished conversations are purged + // from the database after 30 days. + rpc CompleteConversation(CompleteConversationRequest) returns (Conversation) { + option (google.api.http) = { + post: "/v2/{name=projects/*/conversations/*}:complete" + body: "*" + additional_bindings { + post: "/v2/{name=projects/*/locations/*/conversations/*}:complete" + body: "*" + } + }; + option (google.api.method_signature) = "name"; + } + + // Creates a call matcher that links incoming SIP calls to the specified + // conversation if they fulfill specified criteria. + rpc CreateCallMatcher(CreateCallMatcherRequest) returns (CallMatcher) { + option (google.api.http) = { + post: "/v2/{parent=projects/*/conversations/*}/callMatchers" + body: "call_matcher" + additional_bindings { + post: "/v2/{parent=projects/*/locations/*/conversations/*}/callMatchers" + body: "*" + } + }; + option (google.api.method_signature) = "parent,call_matcher"; + } + + // Returns the list of all call matchers in the specified conversation. + rpc ListCallMatchers(ListCallMatchersRequest) returns (ListCallMatchersResponse) { + option (google.api.http) = { + get: "/v2/{parent=projects/*/conversations/*}/callMatchers" + additional_bindings { + get: "/v2/{parent=projects/*/locations/*/conversations/*}/callMatchers" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Requests deletion of a call matcher. + rpc DeleteCallMatcher(DeleteCallMatcherRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v2/{name=projects/*/conversations/*/callMatchers/*}" + additional_bindings { + delete: "/v2/{name=projects/*/locations/*/conversations/*/callMatchers/*}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Lists messages that belong to a given conversation. + // `messages` are ordered by `create_time` in descending order. To fetch + // updates without duplication, send request with filter + // `create_time_epoch_microseconds > + // [first item's create_time of previous request]` and empty page_token. + rpc ListMessages(ListMessagesRequest) returns (ListMessagesResponse) { + option (google.api.http) = { + get: "/v2/{parent=projects/*/conversations/*}/messages" + additional_bindings { + get: "/v2/{parent=projects/*/locations/*/conversations/*}/messages" + } + }; + option (google.api.method_signature) = "parent"; + } +} + +// Represents a conversation. +// A conversation is an interaction between an agent, including live agents +// and Dialogflow agents, and a support customer. Conversations can +// include phone calls and text-based chat sessions. +message Conversation { + option (google.api.resource) = { + type: "dialogflow.googleapis.com/Conversation" + pattern: "projects/{project}/conversations/{conversation}" + pattern: "projects/{project}/locations/{location}/conversations/{conversation}" + }; + + // Enumeration of the completion status of the conversation. + enum LifecycleState { + // Unknown. + LIFECYCLE_STATE_UNSPECIFIED = 0; + + // Conversation is currently open for media analysis. + IN_PROGRESS = 1; + + // Conversation has been completed. + COMPLETED = 2; + } + + // Enumeration of the different conversation stages a conversation can be in. + // Reference: + // https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages + enum ConversationStage { + // Unknown. Should never be used after a conversation is successfully + // created. + CONVERSATION_STAGE_UNSPECIFIED = 0; + + // The conversation should return virtual agent responses into the + // conversation. + VIRTUAL_AGENT_STAGE = 1; + + // The conversation should not provide responses, just listen and provide + // suggestions. + HUMAN_ASSIST_STAGE = 2; + } + + // Output only. The unique identifier of this conversation. + // Format: `projects//locations//conversations/`. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The current state of the Conversation. + LifecycleState lifecycle_state = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The Conversation Profile to be used to configure this + // Conversation. This field cannot be updated. + // Format: `projects//locations//conversationProfiles/`. + string conversation_profile = 3 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/ConversationProfile" + } + ]; + + // Output only. It will not be empty if the conversation is to be connected over + // telephony. + ConversationPhoneNumber phone_number = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time the conversation was started. + google.protobuf.Timestamp start_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time the conversation was finished. + google.protobuf.Timestamp end_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The stage of a conversation. It indicates whether the virtual agent or a + // human agent is handling the conversation. + // + // If the conversation is created with the conversation profile that has + // Dialogflow config set, defaults to + // [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE]; Otherwise, defaults to + // [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE]. + // + // If the conversation is created with the conversation profile that has + // Dialogflow config set but explicitly sets conversation_stage to + // [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE], it skips + // [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE] stage and directly goes to + // [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE]. + ConversationStage conversation_stage = 7; +} + +// Represents a call matcher that describes criteria for matching incoming SIP +// calls to a conversation. When Dialogflow get a SIP call from a third-party +// carrier, Dialogflow matches the call to an existing conversation by either: +// +// * Extracting the conversation id from the +// [Call-Info header](https://tools.ietf.org/html/rfc3261#section-20.9), e.g. +// `Call-Info: +// +// ;purpose=Goog-ContactCenter-Conversation`. +// * Or, if that doesn't work, matching incoming [SIP +// headers](https://tools.ietf.org/html/rfc3261#section-7.3) +// against any [CallMatcher][google.cloud.dialogflow.v2.CallMatcher] for the conversation. +// +// If an incoming SIP call without valid `Call-Info` header matches to zero or +// multiple conversations with `CallMatcher`, we reject it. +// +// A call matcher contains equality conditions for SIP headers that all have +// to be fulfilled in order for a SIP call to match. +// +// The matched SIP headers consist of well-known headers (`To`, `From`, +// `Call-ID`) and custom headers. A [CallMatcher][google.cloud.dialogflow.v2.CallMatcher] is only valid if it +// specifies: +// +// * At least 1 custom header, +// * or at least 2 well-known headers. +message CallMatcher { + option (google.api.resource) = { + type: "dialogflow.googleapis.com/CallMatcher" + pattern: "projects/{project}/conversations/{conversation}/callMatchers/{call_matcher}" + pattern: "projects/{project}/locations/{location}/conversations/{conversation}/callMatchers/{call_matcher}" + }; + + // Custom SIP headers. See the [description of headers in + // the RFC](https://tools.ietf.org/html/rfc3261#section-7.3). + message CustomHeaders { + // Cisco's proprietary `Cisco-Guid` header. + string cisco_guid = 1; + } + + // Output only. The unique identifier of this call matcher. + // Format: `projects//locations//conversations//callMatchers/`. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Value of the [`To` + // header](https://tools.ietf.org/html/rfc3261#section-8.1.1.2) to match. If + // empty or unspecified, we don't match to the + // [`To` header](https://tools.ietf.org/html/rfc3261#section-8.1.1.2). + string to_header = 2; + + // Value of the [`From` + // header](https://tools.ietf.org/html/rfc3261#section-8.1.1.3) to match. If + // empty or unspecified, we don't match to the + // [`From` header](https://tools.ietf.org/html/rfc3261#section-8.1.1.3). + string from_header = 3; + + // Value of the [`Call-ID` + // header](https://tools.ietf.org/html/rfc3261#section-8.1.1.4) to match. If + // empty or unspecified, we don't match to the + // [`Call-ID` header](https://tools.ietf.org/html/rfc3261#section-8.1.1.4). + string call_id_header = 4; + + // Custom SIP headers that must match. + CustomHeaders custom_headers = 5; +} + +// The request message for [Conversations.CreateConversation][google.cloud.dialogflow.v2.Conversations.CreateConversation]. +message CreateConversationRequest { + // Required. Resource identifier of the project creating the conversation. + // Format: `projects//locations/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/Conversation" + } + ]; + + // Required. The conversation to create. + Conversation conversation = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Identifier of the conversation. Generally it's auto generated by Google. + // Only set it if you cannot wait for the response to return a + // auto-generated one to you. + // + // The conversation ID must be compliant with the regression fomula + // "[a-zA-Z][a-zA-Z0-9_-]*" with the characters length in range of [3,64]. + // If the field is provided, the caller is resposible for + // 1. the uniqueness of the ID, otherwise the request will be rejected. + // 2. the consistency for whether to use custom ID or not under a project to + // better ensure uniqueness. + string conversation_id = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// The request message for [Conversations.ListConversations][google.cloud.dialogflow.v2.Conversations.ListConversations]. +message ListConversationsRequest { + // Required. The project from which to list all conversation. + // Format: `projects//locations/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/Conversation" + } + ]; + + // Optional. The maximum number of items to return in a single page. By + // default 100 and at most 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The next_page_token value returned from a previous list request. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // A filter expression that filters conversations listed in the response. In + // general, the expression must specify the field name, a comparison operator, + // and the value to use for filtering: + //
    + //
  • The value must be a string, a number, or a boolean.
  • + //
  • The comparison operator must be either `=`,`!=`, `>`, or `<`.
  • + //
  • To filter on multiple expressions, separate the + // expressions with `AND` or `OR` (omitting both implies `AND`).
  • + //
  • For clarity, expressions can be enclosed in parentheses.
  • + //
+ // Only `lifecycle_state` can be filtered on in this way. For example, + // the following expression only returns `COMPLETED` conversations: + // + // `lifecycle_state = "COMPLETED"` + // + // For more information about filtering, see + // [API Filtering](https://aip.dev/160). + string filter = 4; +} + +// The response message for [Conversations.ListConversations][google.cloud.dialogflow.v2.Conversations.ListConversations]. +message ListConversationsResponse { + // The list of conversations. There will be a maximum number of items + // returned based on the page_size field in the request. + repeated Conversation conversations = 1; + + // Token to retrieve the next page of results, or empty if there are no + // more results in the list. + string next_page_token = 2; +} + +// The request message for [Conversations.GetConversation][google.cloud.dialogflow.v2.Conversations.GetConversation]. +message GetConversationRequest { + // Required. The name of the conversation. Format: + // `projects//locations//conversations/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Conversation" + } + ]; +} + +// The request message for [Conversations.CompleteConversation][google.cloud.dialogflow.v2.Conversations.CompleteConversation]. +message CompleteConversationRequest { + // Required. Resource identifier of the conversation to close. + // Format: `projects//locations//conversations/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Conversation" + } + ]; +} + +// The request message for [Conversations.CreateCallMatcher][google.cloud.dialogflow.v2.Conversations.CreateCallMatcher]. +message CreateCallMatcherRequest { + // Required. Resource identifier of the conversation adding the call matcher. + // Format: `projects//locations//conversations/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/CallMatcher" + } + ]; + + // Required. The call matcher to create. + CallMatcher call_matcher = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// The request message for [Conversations.ListCallMatchers][google.cloud.dialogflow.v2.Conversations.ListCallMatchers]. +message ListCallMatchersRequest { + // Required. The conversation to list all call matchers from. + // Format: `projects//locations//conversations/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/CallMatcher" + } + ]; + + // Optional. The maximum number of items to return in a single page. By + // default 100 and at most 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The next_page_token value returned from a previous list request. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response message for [Conversations.ListCallMatchers][google.cloud.dialogflow.v2.Conversations.ListCallMatchers]. +message ListCallMatchersResponse { + // The list of call matchers. There is a maximum number of items + // returned based on the page_size field in the request. + repeated CallMatcher call_matchers = 1; + + // Token to retrieve the next page of results or empty if there are no + // more results in the list. + string next_page_token = 2; +} + +// The request message for [Conversations.DeleteCallMatcher][google.cloud.dialogflow.v2.Conversations.DeleteCallMatcher]. +message DeleteCallMatcherRequest { + // Required. The unique identifier of the [CallMatcher][google.cloud.dialogflow.v2.CallMatcher] to delete. + // Format: `projects//locations//conversations//callMatchers/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/CallMatcher" + } + ]; +} + +// The request message for [Conversations.ListMessages][google.cloud.dialogflow.v2.Conversations.ListMessages]. +message ListMessagesRequest { + // Required. The name of the conversation to list messages for. + // Format: `projects//locations//conversations/` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/Message" + } + ]; + + // Optional. Filter on message fields. Currently predicates on `create_time` + // and `create_time_epoch_microseconds` are supported. `create_time` only + // support milliseconds accuracy. E.g., + // `create_time_epoch_microseconds > 1551790877964485` or + // `create_time > 2017-01-15T01:30:15.01Z`. + // + // For more information about filtering, see + // [API Filtering](https://aip.dev/160). + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The maximum number of items to return in a single page. By + // default 100 and at most 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The next_page_token value returned from a previous list request. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response message for [Conversations.ListMessages][google.cloud.dialogflow.v2.Conversations.ListMessages]. +message ListMessagesResponse { + // The list of messages. There will be a maximum number of items + // returned based on the page_size field in the request. + // `messages` is sorted by `create_time` in descending order. + repeated Message messages = 1; + + // Token to retrieve the next page of results, or empty if there are + // no more results in the list. + string next_page_token = 2; +} + +// Represents a phone number for telephony integration. It allows for connecting +// a particular conversation over telephony. +message ConversationPhoneNumber { + // Output only. The phone number to connect to this conversation. + string phone_number = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/cloud/dialogflow/v2/conversation_event.proto b/third_party/googleapis/google/cloud/dialogflow/v2/conversation_event.proto new file mode 100644 index 000000000..61cfd75f6 --- /dev/null +++ b/third_party/googleapis/google/cloud/dialogflow/v2/conversation_event.proto @@ -0,0 +1,86 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.v2; + +import "google/cloud/dialogflow/v2/participant.proto"; +import "google/rpc/status.proto"; +import "google/api/annotations.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Dialogflow.V2"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/v2;dialogflow"; +option java_multiple_files = true; +option java_outer_classname = "ConversationEventProto"; +option java_package = "com.google.cloud.dialogflow.v2"; +option objc_class_prefix = "DF"; + +// Represents a notification sent to Pub/Sub subscribers for conversation +// lifecycle events. +message ConversationEvent { + // Enumeration of the types of events available. + enum Type { + // Type not set. + TYPE_UNSPECIFIED = 0; + + // A new conversation has been opened. This is fired when a telephone call + // is answered, or a conversation is created via the API. + CONVERSATION_STARTED = 1; + + // An existing conversation has closed. This is fired when a telephone call + // is terminated, or a conversation is closed via the API. + CONVERSATION_FINISHED = 2; + + // An existing conversation has received notification from Dialogflow that + // human intervention is required. + HUMAN_INTERVENTION_NEEDED = 3; + + // An existing conversation has received a new message, either from API or + // telephony. It is configured in + // [ConversationProfile.new_message_event_notification_config][google.cloud.dialogflow.v2.ConversationProfile.new_message_event_notification_config] + NEW_MESSAGE = 5; + + // Unrecoverable error during a telephone call. + // + // In general non-recoverable errors only occur if something was + // misconfigured in the ConversationProfile corresponding to the call. After + // a non-recoverable error, Dialogflow may stop responding. + // + // We don't fire this event: + // + // * in an API call because we can directly return the error, or, + // * when we can recover from an error. + UNRECOVERABLE_ERROR = 4; + } + + // The unique identifier of the conversation this notification + // refers to. + // Format: `projects//conversations/`. + string conversation = 1; + + // The type of the event that this notification refers to. + Type type = 2; + + // More detailed information about an error. Only set for type + // UNRECOVERABLE_ERROR_IN_PHONE_CALL. + google.rpc.Status error_status = 3; + + // Payload of conversation event. + oneof payload { + // Payload of NEW_MESSAGE event. + Message new_message_payload = 4; + } +} diff --git a/third_party/googleapis/google/cloud/dialogflow/v2/conversation_profile.proto b/third_party/googleapis/google/cloud/dialogflow/v2/conversation_profile.proto new file mode 100644 index 000000000..ea0fc6f02 --- /dev/null +++ b/third_party/googleapis/google/cloud/dialogflow/v2/conversation_profile.proto @@ -0,0 +1,577 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.v2; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/dialogflow/v2/audio_config.proto"; +import "google/cloud/dialogflow/v2/participant.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Dialogflow.V2"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/v2;dialogflow"; +option java_multiple_files = true; +option java_outer_classname = "ConversationProfileProto"; +option java_package = "com.google.cloud.dialogflow.v2"; +option objc_class_prefix = "DF"; + +// Service for managing [ConversationProfiles][google.cloud.dialogflow.v2.ConversationProfile]. +service ConversationProfiles { + option (google.api.default_host) = "dialogflow.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/dialogflow"; + + // Returns the list of all conversation profiles in the specified project. + rpc ListConversationProfiles(ListConversationProfilesRequest) returns (ListConversationProfilesResponse) { + option (google.api.http) = { + get: "/v2/{parent=projects/*}/conversationProfiles" + additional_bindings { + get: "/v2/{parent=projects/*/locations/*}/conversationProfiles" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Retrieves the specified conversation profile. + rpc GetConversationProfile(GetConversationProfileRequest) returns (ConversationProfile) { + option (google.api.http) = { + get: "/v2/{name=projects/*/conversationProfiles/*}" + additional_bindings { + get: "/v2/{name=projects/*/locations/*/conversationProfiles/*}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Creates a conversation profile in the specified project. + // + // [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] + // aren't populated in the response. You can retrieve them via + // [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API. + rpc CreateConversationProfile(CreateConversationProfileRequest) returns (ConversationProfile) { + option (google.api.http) = { + post: "/v2/{parent=projects/*}/conversationProfiles" + body: "conversation_profile" + additional_bindings { + post: "/v2/{parent=projects/*/locations/*}/conversationProfiles" + body: "conversation_profile" + } + }; + option (google.api.method_signature) = "parent,conversation_profile"; + } + + // Updates the specified conversation profile. + // + // [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] + // aren't populated in the response. You can retrieve them via + // [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API. + rpc UpdateConversationProfile(UpdateConversationProfileRequest) returns (ConversationProfile) { + option (google.api.http) = { + patch: "/v2/{conversation_profile.name=projects/*/conversationProfiles/*}" + body: "conversation_profile" + additional_bindings { + patch: "/v2/{conversation_profile.name=projects/*/locations/*/conversationProfiles/*}" + body: "conversation_profile" + } + }; + option (google.api.method_signature) = "conversation_profile,update_mask"; + } + + // Deletes the specified conversation profile. + rpc DeleteConversationProfile(DeleteConversationProfileRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v2/{name=projects/*/conversationProfiles/*}" + additional_bindings { + delete: "/v2/{name=projects/*/locations/*/conversationProfiles/*}" + } + }; + option (google.api.method_signature) = "name"; + } +} + +// Defines the services to connect to incoming Dialogflow conversations. +message ConversationProfile { + option (google.api.resource) = { + type: "dialogflow.googleapis.com/ConversationProfile" + pattern: "projects/{project}/conversationProfiles/{conversation_profile}" + pattern: "projects/{project}/locations/{location}/conversationProfiles/{conversation_profile}" + }; + + // Optional. The unique identifier of this conversation profile. + // Format: `projects//locations//conversationProfiles/`. + string name = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Human readable name for this profile. Max length 1024 bytes. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Output only. Create time of the conversation profile. + google.protobuf.Timestamp create_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Update time of the conversation profile. + google.protobuf.Timestamp update_time = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Configuration for an automated agent to use with this profile. + AutomatedAgentConfig automated_agent_config = 3; + + // Configuration for agent assistance to use with this profile. + HumanAgentAssistantConfig human_agent_assistant_config = 4; + + // Configuration for connecting to a live agent. + HumanAgentHandoffConfig human_agent_handoff_config = 5; + + // Configuration for publishing conversation lifecycle events. + NotificationConfig notification_config = 6; + + // Configuration for logging conversation lifecycle events. + LoggingConfig logging_config = 7; + + // Configuration for publishing new message events. Event will be sent in + // format of [ConversationEvent][google.cloud.dialogflow.v2.ConversationEvent] + NotificationConfig new_message_event_notification_config = 8; + + // Settings for speech transcription. + SpeechToTextConfig stt_config = 9; + + // Language which represents the conversationProfile. + // If unspecified, the default language code en-us applies. Users need to + // create a ConversationProfile for each language they want to support. + string language_code = 10; +} + +// The request message for [ConversationProfiles.ListConversationProfiles][google.cloud.dialogflow.v2.ConversationProfiles.ListConversationProfiles]. +message ListConversationProfilesRequest { + // Required. The project to list all conversation profiles from. + // Format: `projects//locations/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/ConversationProfile" + } + ]; + + // The maximum number of items to return in a single page. By + // default 100 and at most 1000. + int32 page_size = 2; + + // The next_page_token value returned from a previous list request. + string page_token = 3; +} + +// The response message for [ConversationProfiles.ListConversationProfiles][google.cloud.dialogflow.v2.ConversationProfiles.ListConversationProfiles]. +message ListConversationProfilesResponse { + // The list of project conversation profiles. There is a maximum number + // of items returned based on the page_size field in the request. + repeated ConversationProfile conversation_profiles = 1; + + // Token to retrieve the next page of results, or empty if there are no + // more results in the list. + string next_page_token = 2; +} + +// The request message for [ConversationProfiles.GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile]. +message GetConversationProfileRequest { + // Required. The resource name of the conversation profile. + // Format: `projects//locations//conversationProfiles/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/ConversationProfile" + } + ]; +} + +// The request message for [ConversationProfiles.CreateConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.CreateConversationProfile]. +message CreateConversationProfileRequest { + // Required. The project to create a conversation profile for. + // Format: `projects//locations/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/ConversationProfile" + } + ]; + + // Required. The conversation profile to create. + ConversationProfile conversation_profile = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// The request message for [ConversationProfiles.UpdateConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.UpdateConversationProfile]. +message UpdateConversationProfileRequest { + // Required. The conversation profile to update. + ConversationProfile conversation_profile = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The mask to control which fields to update. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// The request message for [ConversationProfiles.DeleteConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.DeleteConversationProfile]. +// +// This operation fails if the conversation profile is still referenced from +// a phone number. +message DeleteConversationProfileRequest { + // Required. The name of the conversation profile to delete. + // Format: `projects//locations//conversationProfiles/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/ConversationProfile" + } + ]; +} + +// Defines the Automated Agent to connect to a conversation. +message AutomatedAgentConfig { + // Required. ID of the Dialogflow agent environment to use. + // + // This project needs to either be the same project as the conversation or you + // need to grant `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow API + // Service Agent` role in this project. + // + // Format: `projects//locations//agent/environments/`. If environment is not + // specified, the default `draft` environment is used. Refer to + // [DetectIntentRequest](/dialogflow/docs/reference/rpc/google.cloud.dialogflow.v2#google.cloud.dialogflow.v2.DetectIntentRequest) + // for more details. + string agent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Agent" + } + ]; +} + +// Defines the Human Agent Assist to connect to a conversation. +message HumanAgentAssistantConfig { + // Settings of suggestion trigger. + message SuggestionTriggerSettings { + // Do not trigger if last utterance is small talk. + bool no_smalltalk = 1; + + // Only trigger suggestion if participant role of last utterance is + // END_USER. + bool only_end_user = 2; + } + + // Config for suggestion features. + message SuggestionFeatureConfig { + // The suggestion feature. + SuggestionFeature suggestion_feature = 5; + + // Automatically iterates all participants and tries to compile + // suggestions. + // + // Supported features: ARTICLE_SUGGESTION, FAQ, DIALOGFLOW_ASSIST. + bool enable_event_based_suggestion = 3; + + // Settings of suggestion trigger. + // + // Currently, only ARTICLE_SUGGESTION and FAQ will use this field. + SuggestionTriggerSettings suggestion_trigger_settings = 10; + + // Configs of query. + SuggestionQueryConfig query_config = 6; + + // Configs of custom conversation model. + ConversationModelConfig conversation_model_config = 7; + } + + // Detail human agent assistant config. + message SuggestionConfig { + // Configuration of different suggestion features. One feature can have only + // one config. + repeated SuggestionFeatureConfig feature_configs = 2; + + // If `group_suggestion_responses` is false, and there are multiple + // `feature_configs` in `event based suggestion` or + // StreamingAnalyzeContent, we will try to deliver suggestions to customers + // as soon as we get new suggestion. Different type of suggestions based on + // the same context will be in separate Pub/Sub event or + // `StreamingAnalyzeContentResponse`. + // + // If `group_suggestion_responses` set to true. All the suggestions to the + // same participant based on the same context will be grouped into a single + // Pub/Sub event or StreamingAnalyzeContentResponse. + bool group_suggestion_responses = 3; + } + + // Config for suggestion query. + message SuggestionQueryConfig { + // Knowledge base source settings. + // + // Supported features: ARTICLE_SUGGESTION, FAQ. + message KnowledgeBaseQuerySource { + // Required. Knowledge bases to query. Format: + // `projects//locations//knowledgeBases/`. Currently, at most 5 knowledge + // bases are supported. + repeated string knowledge_bases = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/KnowledgeBase" + } + ]; + } + + // Document source settings. + // + // Supported features: SMART_REPLY, SMART_COMPOSE. + message DocumentQuerySource { + // Required. Knowledge documents to query from. Format: + // `projects//locations//knowledgeBases//documents/`. + // Currently, at most 5 documents are supported. + repeated string documents = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Document" + } + ]; + } + + // Dialogflow source setting. + // + // Supported feature: DIALOGFLOW_ASSIST. + message DialogflowQuerySource { + // Required. The name of a Dialogflow virtual agent used for end user side intent + // detection and suggestion. Format: `projects//locations//agent`. When multiple agents are allowed in + // the same Dialogflow project. + string agent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Agent" + } + ]; + } + + // Settings that determine how to filter recent conversation context when + // generating suggestions. + message ContextFilterSettings { + // If set to true, the last message from virtual agent (hand off message) + // and the message before it (trigger message of hand off) are dropped. + bool drop_handoff_messages = 1; + + // If set to true, all messages from virtual agent are dropped. + bool drop_virtual_agent_messages = 2; + + // If set to true, all messages from ivr stage are dropped. + bool drop_ivr_messages = 3; + } + + // Source of query. + oneof query_source { + // Query from knowledgebase. It is used by: + // ARTICLE_SUGGESTION, FAQ. + KnowledgeBaseQuerySource knowledge_base_query_source = 1; + + // Query from knowledge base document. It is used by: + // SMART_REPLY, SMART_COMPOSE. + DocumentQuerySource document_query_source = 2; + + // Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST. + DialogflowQuerySource dialogflow_query_source = 3; + } + + // Maximum number of results to return. Currently, if unset, defaults to 10. + // And the max number is 20. + int32 max_results = 4; + + // Confidence threshold of query result. + // + // Agent Assist gives each suggestion a score in the range [0.0, 1.0], based + // on the relevance between the suggestion and the current conversation + // context. A score of 0.0 has no relevance, while a score of 1.0 has high + // relevance. Only suggestions with a score greater than or equal to the + // value of this field are included in the results. + // + // For a baseline model (the default), the recommended value is in the range + // [0.05, 0.1]. + // + // For a custom model, there is no recommended value. Tune this value by + // starting from a very low value and slowly increasing until you have + // desired results. + // + // If this field is not set, it defaults to 0.0, which means that all + // suggestions are returned. + // + // Supported features: ARTICLE_SUGGESTION. + float confidence_threshold = 5; + + // Determines how recent conversation context is filtered when generating + // suggestions. If unspecified, no messages will be dropped. + ContextFilterSettings context_filter_settings = 7; + } + + // Custom conversation models used in agent assist feature. + // + // Supported feature: ARTICLE_SUGGESTION, SMART_COMPOSE, SMART_REPLY. + message ConversationModelConfig { + // Required. Conversation model resource name. Format: `projects//conversationModels/`. + string model = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/ConversationModel" + } + ]; + } + + // Configuration for analyses to run on each conversation message. + message MessageAnalysisConfig { + // Enable entity extraction in conversation messages on [agent assist + // stage](https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages). + // If unspecified, defaults to false. + bool enable_entity_extraction = 2; + + // Enable sentiment analysis in conversation messages on [agent assist + // stage](https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages). + // If unspecified, defaults to false. Sentiment analysis inspects user input + // and identifies the prevailing subjective opinion, especially to determine + // a user's attitude as positive, negative, or neutral: + // https://cloud.google.com/natural-language/docs/basics#sentiment_analysis + // For [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent] method, result will be in + // [StreamingAnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.message]. + // For [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] method, result will be in + // [AnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2.AnalyzeContentResponse.message] + // For [Conversations.ListMessages][google.cloud.dialogflow.v2.Conversations.ListMessages] method, result will be in + // [ListMessagesResponse.messages.SentimentAnalysisResult][google.cloud.dialogflow.v2.ListMessagesResponse.messages] + // If Pub/Sub notification is configured, result will be in + // [ConversationEvent.new_message_payload.SentimentAnalysisResult][google.cloud.dialogflow.v2.ConversationEvent.new_message_payload]. + bool enable_sentiment_analysis = 3; + } + + // Pub/Sub topic on which to publish new agent assistant events. + NotificationConfig notification_config = 2; + + // Configuration for agent assistance of human agent participant. + SuggestionConfig human_agent_suggestion_config = 3; + + // Configuration for agent assistance of end user participant. + SuggestionConfig end_user_suggestion_config = 4; + + // Configuration for message analysis. + MessageAnalysisConfig message_analysis_config = 5; +} + +// Defines the hand off to a live agent, typically on which external agent +// service provider to connect to a conversation. +message HumanAgentHandoffConfig { + // Configuration specific to LivePerson (https://www.liveperson.com). + message LivePersonConfig { + // Required. Account number of the LivePerson account to connect. This is + // the account number you input at the login page. + string account_number = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // Configuration specific to Salesforce Live Agent. + message SalesforceLiveAgentConfig { + // Required. The organization ID of the Salesforce account. + string organization_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Live Agent deployment ID. + string deployment_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Live Agent chat button ID. + string button_id = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. Domain of the Live Agent endpoint for this agent. You can find + // the endpoint URL in the `Live Agent settings` page. For example if URL + // has the form https://d.la4-c2-phx.salesforceliveagent.com/..., + // you should fill in d.la4-c2-phx.salesforceliveagent.com. + string endpoint_domain = 4 [(google.api.field_behavior) = REQUIRED]; + } + + // Required. Specifies which agent service to connect for human agent handoff. + oneof agent_service { + // Uses LivePerson (https://www.liveperson.com). + LivePersonConfig live_person_config = 1; + + // Uses Salesforce Live Agent. + SalesforceLiveAgentConfig salesforce_live_agent_config = 2; + } +} + +// Defines notification behavior. +message NotificationConfig { + // Format of cloud pub/sub message. + enum MessageFormat { + // If it is unspeified, PROTO will be used. + MESSAGE_FORMAT_UNSPECIFIED = 0; + + // Pubsub message will be serialized proto. + PROTO = 1; + + // Pubsub message will be json. + JSON = 2; + } + + // Name of the Pub/Sub topic to publish conversation + // events like + // [CONVERSATION_STARTED][google.cloud.dialogflow.v2.ConversationEvent.Type.CONVERSATION_STARTED] as + // serialized [ConversationEvent][google.cloud.dialogflow.v2.ConversationEvent] protos. + // + // Notification works for phone calls, if this topic either is in the same + // project as the conversation or you grant `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow Service + // Agent` role in the topic project. + // + // Format: `projects//locations//topics/`. + string topic = 1; + + // Format of message. + MessageFormat message_format = 2; +} + +// Defines logging behavior for conversation lifecycle events. +message LoggingConfig { + // Whether to log conversation events like + // [CONVERSATION_STARTED][google.cloud.dialogflow.v2.ConversationEvent.Type.CONVERSATION_STARTED] to + // Stackdriver in the conversation project as JSON format + // [ConversationEvent][google.cloud.dialogflow.v2.ConversationEvent] protos. + bool enable_stackdriver_logging = 3; +} + +// The type of Human Agent Assistant API suggestion to perform, and the maximum +// number of results to return for that type. Multiple `Feature` objects can +// be specified in the `features` list. +message SuggestionFeature { + // Defines the type of Human Agent Assistant feature. + enum Type { + // Unspecified feature type. + TYPE_UNSPECIFIED = 0; + + // Run article suggestion model. + ARTICLE_SUGGESTION = 1; + + // Run FAQ model. + FAQ = 2; + } + + // Type of Human Agent Assistant API feature to request. + Type type = 1; +} diff --git a/third_party/googleapis/google/cloud/dialogflow/v2/dialogflow_gapic.legacy.yaml b/third_party/googleapis/google/cloud/dialogflow/v2/dialogflow_gapic.legacy.yaml deleted file mode 100644 index fa25d16a5..000000000 --- a/third_party/googleapis/google/cloud/dialogflow/v2/dialogflow_gapic.legacy.yaml +++ /dev/null @@ -1,1359 +0,0 @@ -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.dialogflow.v2 - python: - package_name: google.cloud.dialogflow_v2.gapic - go: - package_name: cloud.google.com/go/dialogflow/apiv2 - release_level: GA - csharp: - package_name: Google.Cloud.Dialogflow.V2 - ruby: - package_name: Google::Cloud::Dialogflow::V2 - php: - package_name: Google\Cloud\Dialogflow\V2 - nodejs: - package_name: dialogflow.v2 - domain_layer_location: google-cloud -# A list of API interface configurations. -interfaces: -# The fully qualified name of the API interface. -- name: google.cloud.dialogflow.v2.Agents - # 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: - - name_pattern: projects/{project} - entity_name: project - language_overrides: - - language: csharp - common_resource_name: Google.Api.Gax.ResourceNames.ProjectName - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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. - # - # 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: SetAgent - flattening: - groups: - - parameters: - - agent - required_fields: - - agent - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - agent.parent: project - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: DeleteAgent - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: GetAgent - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: SearchAgents - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: agents - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: TrainAgent - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 60000 - long_running: - # LINT.IfChange(train_agent_long_running_operation) - return_type: google.protobuf.Empty - metadata_type: google.protobuf.Struct - # LINT.ThenChange() - initial_poll_delay_millis: 500 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 5000 - total_poll_timeout_millis: 300000 - resource_name_treatment: STATIC_TYPES - - name: ExportAgent - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 60000 - long_running: - # LINT.IfChange(export_agent_long_running_operation) - return_type: google.cloud.dialogflow.v2.ExportAgentResponse - metadata_type: google.protobuf.Struct - # LINT.ThenChange() - initial_poll_delay_millis: 500 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 5000 - total_poll_timeout_millis: 300000 - resource_name_treatment: STATIC_TYPES - - name: ImportAgent - required_fields: - - parent - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 60000 - long_running: - # LINT.IfChange(import_agent_long_running_operation) - return_type: google.protobuf.Empty - metadata_type: google.protobuf.Struct - # LINT.ThenChange() - initial_poll_delay_millis: 500 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 5000 - total_poll_timeout_millis: 300000 - resource_name_treatment: STATIC_TYPES - - name: RestoreAgent - - required_fields: - - parent - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 60000 - long_running: - # LINT.IfChange(restore_agent_long_running_operation) - return_type: google.protobuf.Empty - metadata_type: google.protobuf.Struct - # LINT.ThenChange() - initial_poll_delay_millis: 500 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 5000 - total_poll_timeout_millis: 300000 - resource_name_treatment: STATIC_TYPES -# The fully qualified name of the API interface. -- name: google.cloud.dialogflow.v2.Contexts - # 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: - - name_pattern: projects/{project}/agent/sessions/{session} - entity_name: session - - name_pattern: projects/{project}/agent/sessions/{session}/contexts/{context} - entity_name: context - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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. - # - # 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: ListContexts - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: contexts - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: session - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: GetContext - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: context - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: CreateContext - flattening: - groups: - - parameters: - - parent - - context - required_fields: - - parent - - context - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: session - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: UpdateContext - flattening: - groups: - - parameters: - - context - required_fields: - - context - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - context.name: context - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: DeleteContext - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: context - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: DeleteAllContexts - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: session - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES -# The fully qualified name of the API interface. -- name: google.cloud.dialogflow.v2.EntityTypes - # 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: - - name_pattern: projects/{project}/agent - entity_name: project_agent - - name_pattern: projects/{project}/agent/entityTypes/{entity_type} - entity_name: entity_type - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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. - # - # 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: ListEntityTypes - flattening: - groups: - - parameters: - - parent - - parameters: - - parent - - language_code - required_fields: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: entity_types - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: project_agent - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: GetEntityType - flattening: - groups: - - parameters: - - name - - parameters: - - name - - language_code - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: entity_type - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: CreateEntityType - flattening: - groups: - - parameters: - - parent - - entity_type - - parameters: - - parent - - entity_type - - language_code - required_fields: - - parent - - entity_type - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: project_agent - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: UpdateEntityType - flattening: - groups: - - parameters: - - entity_type - - parameters: - - entity_type - - language_code - required_fields: - - entity_type - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - entity_type.name: entity_type - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: DeleteEntityType - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: entity_type - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: BatchUpdateEntityTypes - required_fields: - - parent - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: project_agent - timeout_millis: 60000 - long_running: - # LINT.IfChange(batch_update_entity_types_long_running_operation) - return_type: google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse - metadata_type: google.protobuf.Struct - # LINT.ThenChange() - initial_poll_delay_millis: 500 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 5000 - total_poll_timeout_millis: 300000 - resource_name_treatment: STATIC_TYPES - - name: BatchDeleteEntityTypes - flattening: - groups: - - parameters: - - parent - - entity_type_names - required_fields: - - parent - - entity_type_names - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: project_agent - timeout_millis: 60000 - long_running: - # LINT.IfChange(batch_delete_entity_types_long_running_operation) - return_type: google.protobuf.Empty - metadata_type: google.protobuf.Struct - # LINT.ThenChange() - initial_poll_delay_millis: 500 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 5000 - total_poll_timeout_millis: 300000 - resource_name_treatment: STATIC_TYPES - - name: BatchCreateEntities - flattening: - groups: - - parameters: - - parent - - entities - - parameters: - - parent - - entities - - language_code - required_fields: - - parent - - entities - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: entity_type - timeout_millis: 60000 - long_running: - # LINT.IfChange(batch_create_entities_long_running_operation) - return_type: google.protobuf.Empty - metadata_type: google.protobuf.Struct - # LINT.ThenChange() - initial_poll_delay_millis: 500 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 5000 - total_poll_timeout_millis: 300000 - resource_name_treatment: STATIC_TYPES - - name: BatchUpdateEntities - flattening: - groups: - - parameters: - - parent - - entities - - parameters: - - parent - - entities - - language_code - required_fields: - - parent - - entities - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: entity_type - timeout_millis: 60000 - long_running: - # LINT.IfChange(batch_update_entities_long_running_operation) - return_type: google.protobuf.Empty - metadata_type: google.protobuf.Struct - # LINT.ThenChange() - initial_poll_delay_millis: 500 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 5000 - total_poll_timeout_millis: 300000 - resource_name_treatment: STATIC_TYPES - - name: BatchDeleteEntities - flattening: - groups: - - parameters: - - parent - - entity_values - - parameters: - - parent - - entity_values - - language_code - required_fields: - - parent - - entity_values - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: entity_type - timeout_millis: 60000 - long_running: - # LINT.IfChange(batch_delete_entities_long_running_operation) - return_type: google.protobuf.Empty - metadata_type: google.protobuf.Struct - # LINT.ThenChange() - initial_poll_delay_millis: 500 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 5000 - total_poll_timeout_millis: 300000 - resource_name_treatment: STATIC_TYPES -# The fully qualified name of the API interface. -- name: google.cloud.dialogflow.v2.Intents - # 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: - - name_pattern: projects/{project}/agent - entity_name: project_agent - - name_pattern: projects/{project}/agent/intents/{intent} - entity_name: intent - - name_pattern: projects/{project}/agents/{agent} - entity_name: agent - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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. - # - # 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: ListIntents - flattening: - groups: - - parameters: - - parent - - parameters: - - parent - - language_code - required_fields: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: intents - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: project_agent - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: GetIntent - flattening: - groups: - - parameters: - - name - - parameters: - - name - - language_code - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: intent - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: CreateIntent - flattening: - groups: - - parameters: - - parent - - intent - - parameters: - - parent - - intent - - language_code - required_fields: - - parent - - intent - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: project_agent - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: UpdateIntent - flattening: - groups: - - parameters: - - intent - - language_code - - parameters: - - intent - - language_code - - update_mask - required_fields: - - intent - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - intent.name: intent - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: DeleteIntent - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: intent - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: BatchUpdateIntents - required_fields: - - parent - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: project_agent - timeout_millis: 60000 - long_running: - # LINT.IfChange(batch_update_intents_long_running_operation) - return_type: google.cloud.dialogflow.v2.BatchUpdateIntentsResponse - metadata_type: google.protobuf.Struct - # LINT.ThenChange() - initial_poll_delay_millis: 500 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 5000 - total_poll_timeout_millis: 300000 - resource_name_treatment: STATIC_TYPES - - name: BatchDeleteIntents - flattening: - groups: - - parameters: - - parent - - intents - required_fields: - - parent - - intents - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: project_agent - timeout_millis: 60000 - long_running: - # LINT.IfChange(batch_delete_intents_long_running_operation) - return_type: google.protobuf.Empty - metadata_type: google.protobuf.Struct - # LINT.ThenChange() - initial_poll_delay_millis: 500 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 5000 - total_poll_timeout_millis: 300000 - resource_name_treatment: STATIC_TYPES -# The fully qualified name of the API interface. -- name: google.cloud.dialogflow.v2.SessionEntityTypes - # 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: - - name_pattern: projects/{project}/agent/sessions/{session} - entity_name: session - - name_pattern: projects/{project}/agent/sessions/{session}/entityTypes/{entity_type} - entity_name: session_entity_type - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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. - # - # 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: ListSessionEntityTypes - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: session_entity_types - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: session - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: GetSessionEntityType - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: session_entity_type - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: CreateSessionEntityType - flattening: - groups: - - parameters: - - parent - - session_entity_type - required_fields: - - parent - - session_entity_type - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: session - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: UpdateSessionEntityType - flattening: - groups: - - parameters: - - session_entity_type - required_fields: - - session_entity_type - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - session_entity_type.name: session_entity_type - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: DeleteSessionEntityType - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: session_entity_type - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES -# The fully qualified name of the API interface. -- name: google.cloud.dialogflow.v2.Sessions - # 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: - - name_pattern: projects/{project}/agent/sessions/{session} - entity_name: session - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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. - # - # 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: DetectIntent - flattening: - groups: - - parameters: - - session - - query_input - required_fields: - - session - - query_input - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - session: session - timeout_millis: 220000 - resource_name_treatment: STATIC_TYPES - - name: StreamingDetectIntent - required_fields: - - session - - query_input - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 220000 -# The fully qualified name of the API interface. -- name: google.cloud.dialogflow.v2.Environments - # 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: - - name_pattern: projects/{project}/agent - entity_name: project_agent - - name_pattern: projects/{project}/agent/environments/{environment} - entity_name: environment - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - INTERNAL - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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. - # - # 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: ListEnvironments - flattening: - groups: - - parameters: - - parent - - parameters: - - parent - required_fields: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: environments - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: project_agent - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES -resource_name_generation: -- message_name: SetAgentRequest - field_entity_map: - agent.parent: project -- message_name: DeleteAgentRequest - field_entity_map: - parent: project -- message_name: GetAgentRequest - field_entity_map: - parent: project -- message_name: SearchAgentsRequest - field_entity_map: - parent: project -- message_name: TrainAgentRequest - field_entity_map: - parent: project -- message_name: ExportAgentRequest - field_entity_map: - parent: project -- message_name: ImportAgentRequest - field_entity_map: - parent: project -- message_name: RestoreAgentRequest - field_entity_map: - parent: project -- message_name: ListContextsRequest - field_entity_map: - parent: session -- message_name: GetContextRequest - field_entity_map: - name: context -- message_name: CreateContextRequest - field_entity_map: - parent: session -- message_name: Context - field_entity_map: - name: context -- message_name: DeleteContextRequest - field_entity_map: - name: context -- message_name: DeleteAllContextsRequest - field_entity_map: - parent: session -- message_name: ListEntityTypesRequest - field_entity_map: - parent: project_agent -- message_name: GetEntityTypeRequest - field_entity_map: - name: entity_type -- message_name: CreateEntityTypeRequest - field_entity_map: - parent: project_agent -- message_name: EntityType - field_entity_map: - name: entity_type -- message_name: DeleteEntityTypeRequest - field_entity_map: - name: entity_type -- message_name: BatchUpdateEntityTypesRequest - field_entity_map: - parent: project_agent -- message_name: BatchDeleteEntityTypesRequest - field_entity_map: - parent: project_agent -- message_name: BatchCreateEntitiesRequest - field_entity_map: - parent: entity_type -- message_name: BatchUpdateEntitiesRequest - field_entity_map: - parent: entity_type -- message_name: BatchDeleteEntitiesRequest - field_entity_map: - parent: entity_type -- message_name: ListIntentsRequest - field_entity_map: - parent: project_agent -- message_name: GetIntentRequest - field_entity_map: - name: intent -- message_name: CreateIntentRequest - field_entity_map: - parent: project_agent -- message_name: Intent - field_entity_map: - name: intent -- message_name: DeleteIntentRequest - field_entity_map: - name: intent -- message_name: BatchUpdateIntentsRequest - field_entity_map: - parent: project_agent -- message_name: BatchDeleteIntentsRequest - field_entity_map: - parent: project_agent -- message_name: ListSessionEntityTypesRequest - field_entity_map: - parent: session -- message_name: GetSessionEntityTypeRequest - field_entity_map: - name: session_entity_type -- message_name: CreateSessionEntityTypeRequest - field_entity_map: - parent: session -- message_name: SessionEntityType - field_entity_map: - name: session_entity_type -- message_name: DeleteSessionEntityTypeRequest - field_entity_map: - name: session_entity_type -- message_name: DetectIntentRequest - field_entity_map: - session: session -- message_name: ListEnvironmentsRequest - field_entity_map: - parent: project_agent diff --git a/third_party/googleapis/google/cloud/dialogflow/v2/dialogflow_gapic.yaml b/third_party/googleapis/google/cloud/dialogflow/v2/dialogflow_gapic.yaml index 3e56ba1f0..72df92b6b 100644 --- a/third_party/googleapis/google/cloud/dialogflow/v2/dialogflow_gapic.yaml +++ b/third_party/googleapis/google/cloud/dialogflow/v2/dialogflow_gapic.yaml @@ -1,8 +1,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 language_settings: - java: - package_name: com.google.cloud.dialogflow.v2 python: package_name: google.cloud.dialogflow_v2.gapic go: diff --git a/third_party/googleapis/google/cloud/dialogflow/v2/dialogflow_v2.yaml b/third_party/googleapis/google/cloud/dialogflow/v2/dialogflow_v2.yaml index a8d105e43..36c44b21f 100644 --- a/third_party/googleapis/google/cloud/dialogflow/v2/dialogflow_v2.yaml +++ b/third_party/googleapis/google/cloud/dialogflow/v2/dialogflow_v2.yaml @@ -5,17 +5,26 @@ title: Dialogflow API apis: - name: google.cloud.dialogflow.v2.Agents +- name: google.cloud.dialogflow.v2.AnswerRecords - name: google.cloud.dialogflow.v2.Contexts +- name: google.cloud.dialogflow.v2.ConversationProfiles +- name: google.cloud.dialogflow.v2.Conversations +- name: google.cloud.dialogflow.v2.Documents - name: google.cloud.dialogflow.v2.EntityTypes - name: google.cloud.dialogflow.v2.Environments - name: google.cloud.dialogflow.v2.Intents +- name: google.cloud.dialogflow.v2.KnowledgeBases +- name: google.cloud.dialogflow.v2.Participants - name: google.cloud.dialogflow.v2.SessionEntityTypes - name: google.cloud.dialogflow.v2.Sessions types: - name: google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse - name: google.cloud.dialogflow.v2.BatchUpdateIntentsResponse +- name: google.cloud.dialogflow.v2.ConversationEvent - name: google.cloud.dialogflow.v2.ExportAgentResponse +- name: google.cloud.dialogflow.v2.HumanAgentAssistantEvent +- name: google.cloud.dialogflow.v2.KnowledgeOperationMetadata - name: google.cloud.dialogflow.v2.OriginalDetectIntentRequest - name: google.cloud.dialogflow.v2.WebhookRequest - name: google.cloud.dialogflow.v2.WebhookResponse @@ -44,14 +53,32 @@ backend: rules: - selector: 'google.cloud.dialogflow.v2.Agents.*' deadline: 60.0 + - selector: google.cloud.dialogflow.v2.AnswerRecords.ListAnswerRecords + deadline: 60.0 + - selector: google.cloud.dialogflow.v2.AnswerRecords.UpdateAnswerRecord + deadline: 60.0 - selector: 'google.cloud.dialogflow.v2.Contexts.*' deadline: 60.0 + - selector: 'google.cloud.dialogflow.v2.ConversationProfiles.*' + deadline: 60.0 + - selector: 'google.cloud.dialogflow.v2.Conversations.*' + deadline: 60.0 + - selector: 'google.cloud.dialogflow.v2.Documents.*' + deadline: 60.0 - selector: 'google.cloud.dialogflow.v2.EntityTypes.*' deadline: 60.0 - selector: google.cloud.dialogflow.v2.Environments.ListEnvironments deadline: 60.0 - selector: 'google.cloud.dialogflow.v2.Intents.*' deadline: 60.0 + - selector: 'google.cloud.dialogflow.v2.KnowledgeBases.*' + deadline: 60.0 + - selector: 'google.cloud.dialogflow.v2.Participants.*' + deadline: 60.0 + - selector: google.cloud.dialogflow.v2.Participants.AnalyzeContent + deadline: 220.0 + - selector: google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent + deadline: 220.0 - selector: 'google.cloud.dialogflow.v2.SessionEntityTypes.*' deadline: 60.0 - selector: google.cloud.dialogflow.v2.Sessions.DetectIntent @@ -61,6 +88,21 @@ backend: - selector: 'google.longrunning.Operations.*' deadline: 60.0 +http: + rules: + - selector: google.longrunning.Operations.CancelOperation + post: '/v2/{name=projects/*/operations/*}:cancel' + additional_bindings: + - post: '/v2/{name=projects/*/locations/*/operations/*}:cancel' + - selector: google.longrunning.Operations.GetOperation + get: '/v2/{name=projects/*/operations/*}' + additional_bindings: + - get: '/v2/{name=projects/*/locations/*/operations/*}' + - selector: google.longrunning.Operations.ListOperations + get: '/v2/{name=projects/*}/operations' + additional_bindings: + - get: '/v2/{name=projects/*/locations/*}/operations' + authentication: rules: - selector: 'google.cloud.dialogflow.v2.Agents.*' @@ -68,11 +110,36 @@ authentication: canonical_scopes: |- https://www.googleapis.com/auth/cloud-platform, https://www.googleapis.com/auth/dialogflow + - selector: google.cloud.dialogflow.v2.AnswerRecords.ListAnswerRecords + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/dialogflow + - selector: google.cloud.dialogflow.v2.AnswerRecords.UpdateAnswerRecord + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/dialogflow - selector: 'google.cloud.dialogflow.v2.Contexts.*' oauth: canonical_scopes: |- https://www.googleapis.com/auth/cloud-platform, https://www.googleapis.com/auth/dialogflow + - selector: 'google.cloud.dialogflow.v2.ConversationProfiles.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/dialogflow + - selector: 'google.cloud.dialogflow.v2.Conversations.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/dialogflow + - selector: 'google.cloud.dialogflow.v2.Documents.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/dialogflow - selector: 'google.cloud.dialogflow.v2.EntityTypes.*' oauth: canonical_scopes: |- @@ -88,6 +155,16 @@ authentication: canonical_scopes: |- https://www.googleapis.com/auth/cloud-platform, https://www.googleapis.com/auth/dialogflow + - selector: 'google.cloud.dialogflow.v2.KnowledgeBases.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/dialogflow + - selector: 'google.cloud.dialogflow.v2.Participants.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/dialogflow - selector: 'google.cloud.dialogflow.v2.SessionEntityTypes.*' oauth: canonical_scopes: |- diff --git a/third_party/googleapis/google/cloud/dialogflow/v2/document.proto b/third_party/googleapis/google/cloud/dialogflow/v2/document.proto new file mode 100644 index 000000000..5ff579960 --- /dev/null +++ b/third_party/googleapis/google/cloud/dialogflow/v2/document.proto @@ -0,0 +1,389 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.v2; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Dialogflow.V2"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/v2;dialogflow"; +option java_multiple_files = true; +option java_outer_classname = "DocumentProto"; +option java_package = "com.google.cloud.dialogflow.v2"; +option objc_class_prefix = "DF"; + +// Service for managing knowledge [Documents][google.cloud.dialogflow.v2.Document]. +service Documents { + option (google.api.default_host) = "dialogflow.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/dialogflow"; + + // Returns the list of all documents of the knowledge base. + rpc ListDocuments(ListDocumentsRequest) returns (ListDocumentsResponse) { + option (google.api.http) = { + get: "/v2/{parent=projects/*/knowledgeBases/*}/documents" + additional_bindings { + get: "/v2/{parent=projects/*/locations/*/knowledgeBases/*}/documents" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Retrieves the specified document. + rpc GetDocument(GetDocumentRequest) returns (Document) { + option (google.api.http) = { + get: "/v2/{name=projects/*/knowledgeBases/*/documents/*}" + additional_bindings { + get: "/v2/{name=projects/*/locations/*/knowledgeBases/*/documents/*}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new document. + // + // Operation + rpc CreateDocument(CreateDocumentRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v2/{parent=projects/*/knowledgeBases/*}/documents" + body: "document" + additional_bindings { + post: "/v2/{parent=projects/*/locations/*/knowledgeBases/*}/documents" + body: "document" + } + }; + option (google.api.method_signature) = "parent,document"; + option (google.longrunning.operation_info) = { + response_type: "Document" + metadata_type: "KnowledgeOperationMetadata" + }; + } + + // Deletes the specified document. + // + // Operation + rpc DeleteDocument(DeleteDocumentRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v2/{name=projects/*/knowledgeBases/*/documents/*}" + additional_bindings { + delete: "/v2/{name=projects/*/locations/*/knowledgeBases/*/documents/*}" + } + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "KnowledgeOperationMetadata" + }; + } + + // Updates the specified document. + // + // Operation + rpc UpdateDocument(UpdateDocumentRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v2/{document.name=projects/*/knowledgeBases/*/documents/*}" + body: "document" + additional_bindings { + patch: "/v2/{document.name=projects/*/locations/*/knowledgeBases/*/documents/*}" + body: "document" + } + }; + option (google.api.method_signature) = "document,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Document" + metadata_type: "KnowledgeOperationMetadata" + }; + } + + // Reloads the specified document from its specified source, content_uri or + // content. The previously loaded content of the document will be deleted. + // Note: Even when the content of the document has not changed, there still + // may be side effects because of internal implementation changes. + // + // Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; + // only use `projects.knowledgeBases.documents`. + // + // Operation + rpc ReloadDocument(ReloadDocumentRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v2/{name=projects/*/knowledgeBases/*/documents/*}:reload" + body: "*" + additional_bindings { + post: "/v2/{name=projects/*/locations/*/knowledgeBases/*/documents/*}:reload" + body: "*" + } + }; + option (google.api.method_signature) = "name,content_uri"; + option (google.longrunning.operation_info) = { + response_type: "Document" + metadata_type: "KnowledgeOperationMetadata" + }; + } +} + +// A knowledge document to be used by a [KnowledgeBase][google.cloud.dialogflow.v2.KnowledgeBase]. +// +// For more information, see the [knowledge base +// guide](https://cloud.google.com/dialogflow/docs/how/knowledge-bases). +// +// Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; +// only use `projects.knowledgeBases.documents`. +message Document { + option (google.api.resource) = { + type: "dialogflow.googleapis.com/Document" + pattern: "projects/{project}/knowledgeBases/{knowledge_base}/documents/{document}" + pattern: "projects/{project}/locations/{location}/knowledgeBases/{knowledge_base}/documents/{document}" + }; + + // The status of a reload attempt. + message ReloadStatus { + // The time of a reload attempt. + // This reload may have been triggered automatically or manually and may + // not have succeeded. + google.protobuf.Timestamp time = 1; + + // The status of a reload attempt or the initial load. + google.rpc.Status status = 2; + } + + // The knowledge type of document content. + enum KnowledgeType { + // The type is unspecified or arbitrary. + KNOWLEDGE_TYPE_UNSPECIFIED = 0; + + // The document content contains question and answer pairs as either HTML or + // CSV. Typical FAQ HTML formats are parsed accurately, but unusual formats + // may fail to be parsed. + // + // CSV must have questions in the first column and answers in the second, + // with no header. Because of this explicit format, they are always parsed + // accurately. + FAQ = 1; + + // Documents for which unstructured text is extracted and used for + // question answering. + EXTRACTIVE_QA = 2; + + // The entire document content as a whole can be used for query results. + // Only for Contact Center Solutions on Dialogflow. + ARTICLE_SUGGESTION = 3; + } + + // Optional. The document resource name. + // The name must be empty when creating a document. + // Format: `projects//locations//knowledgeBases//documents/`. + string name = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The display name of the document. The name must be 1024 bytes or + // less; otherwise, the creation request fails. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The MIME type of this document. + string mime_type = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. The knowledge type of document content. + repeated KnowledgeType knowledge_types = 4 [(google.api.field_behavior) = REQUIRED]; + + // Required. The source of this document. + oneof source { + // The URI where the file content is located. + // + // For documents stored in Google Cloud Storage, these URIs must have + // the form `gs:///`. + // + // NOTE: External URLs must correspond to public webpages, i.e., they must + // be indexed by Google Search. In particular, URLs for showing documents in + // Google Cloud Storage (i.e. the URL in your browser) are not supported. + // Instead use the `gs://` format URI described above. + string content_uri = 5; + + // The raw content of the document. This field is only permitted for + // EXTRACTIVE_QA and FAQ knowledge types. + bytes raw_content = 9; + } + + // Optional. If true, we try to automatically reload the document every day + // (at a time picked by the system). If false or unspecified, we don't try + // to automatically reload the document. + // + // Currently you can only enable automatic reload for documents sourced from + // a public url, see `source` field for the source types. + // + // Reload status can be tracked in `latest_reload_status`. If a reload + // fails, we will keep the document unchanged. + // + // If a reload fails with internal errors, the system will try to reload the + // document on the next day. + // If a reload fails with non-retriable errors (e.g. PERMISION_DENIED), the + // system will not try to reload the document anymore. You need to manually + // reload the document successfully by calling `ReloadDocument` and clear the + // errors. + bool enable_auto_reload = 11 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The time and status of the latest reload. + // This reload may have been triggered automatically or manually + // and may not have succeeded. + ReloadStatus latest_reload_status = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Metadata for the document. The metadata supports arbitrary + // key-value pairs. Suggested use cases include storing a document's title, + // an external URL distinct from the document's content_uri, etc. + // The max size of a `key` or a `value` of the metadata is 1024 bytes. + map metadata = 7 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for [Documents.GetDocument][google.cloud.dialogflow.v2.Documents.GetDocument]. +message GetDocumentRequest { + // Required. The name of the document to retrieve. + // Format `projects//locations//knowledgeBases//documents/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Document" + } + ]; +} + +// Request message for [Documents.ListDocuments][google.cloud.dialogflow.v2.Documents.ListDocuments]. +message ListDocumentsRequest { + // Required. The knowledge base to list all documents for. + // Format: `projects//locations//knowledgeBases/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/Document" + } + ]; + + // The maximum number of items to return in a single page. By + // default 10 and at most 100. + int32 page_size = 2; + + // The next_page_token value returned from a previous list request. + string page_token = 3; +} + +// Response message for [Documents.ListDocuments][google.cloud.dialogflow.v2.Documents.ListDocuments]. +message ListDocumentsResponse { + // The list of documents. + repeated Document documents = 1; + + // Token to retrieve the next page of results, or empty if there are no + // more results in the list. + string next_page_token = 2; +} + +// Request message for [Documents.CreateDocument][google.cloud.dialogflow.v2.Documents.CreateDocument]. +message CreateDocumentRequest { + // Required. The knowledge base to create a document for. + // Format: `projects//locations//knowledgeBases/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/Document" + } + ]; + + // Required. The document to create. + Document document = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for [Documents.DeleteDocument][google.cloud.dialogflow.v2.Documents.DeleteDocument]. +message DeleteDocumentRequest { + // Required. The name of the document to delete. + // Format: `projects//locations//knowledgeBases//documents/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Document" + } + ]; +} + +// Request message for [Documents.UpdateDocument][google.cloud.dialogflow.v2.Documents.UpdateDocument]. +message UpdateDocumentRequest { + // Required. The document to update. + Document document = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Not specified means `update all`. + // Currently, only `display_name` can be updated, an InvalidArgument will be + // returned for attempting to update other fields. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for [Documents.ReloadDocument][google.cloud.dialogflow.v2.Documents.ReloadDocument]. +message ReloadDocumentRequest { + // Required. The name of the document to reload. + // Format: `projects//locations//knowledgeBases//documents/` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Document" + } + ]; + + // The source for document reloading. + // If provided, the service will load the contents from the source + // and update document in the knowledge base. + oneof source { + // Optional. The path of gcs source file for reloading document content. For now, + // only gcs uri is supported. + // + // For documents stored in Google Cloud Storage, these URIs must have + // the form `gs:///`. + string content_uri = 3 [(google.api.field_behavior) = OPTIONAL]; + } +} + +// Metadata in google::longrunning::Operation for Knowledge operations. +message KnowledgeOperationMetadata { + // States of the operation. + enum State { + // State unspecified. + STATE_UNSPECIFIED = 0; + + // The operation has been created. + PENDING = 1; + + // The operation is currently running. + RUNNING = 2; + + // The operation is done, either cancelled or completed. + DONE = 3; + } + + // Output only. The current state of this operation. + State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/cloud/dialogflow/v2/entity_type.proto b/third_party/googleapis/google/cloud/dialogflow/v2/entity_type.proto index 13fcdb050..f8a69ec58 100644 --- a/third_party/googleapis/google/cloud/dialogflow/v2/entity_type.proto +++ b/third_party/googleapis/google/cloud/dialogflow/v2/entity_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/cloud/dialogflow/v2/environment.proto b/third_party/googleapis/google/cloud/dialogflow/v2/environment.proto index d48c210fc..ef094c71e 100644 --- a/third_party/googleapis/google/cloud/dialogflow/v2/environment.proto +++ b/third_party/googleapis/google/cloud/dialogflow/v2/environment.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/gcs.proto b/third_party/googleapis/google/cloud/dialogflow/v2/gcs.proto similarity index 79% rename from third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/gcs.proto rename to third_party/googleapis/google/cloud/dialogflow/v2/gcs.proto index c2bb45178..1fb2dc99c 100644 --- a/third_party/googleapis/google/cloud/dialogflow/cx/v3beta1/gcs.proto +++ b/third_party/googleapis/google/cloud/dialogflow/v2/gcs.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -14,15 +14,15 @@ syntax = "proto3"; -package google.cloud.dialogflow.cx.v3beta1; +package google.cloud.dialogflow.v2; import "google/api/field_behavior.proto"; import "google/api/annotations.proto"; option cc_enable_arenas = true; -option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3beta1;cx"; +option csharp_namespace = "Google.Cloud.Dialogflow.V2"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/v2;dialogflow"; option java_multiple_files = true; option java_outer_classname = "GcsProto"; -option java_package = "com.google.cloud.dialogflow.cx.v3beta1"; +option java_package = "com.google.cloud.dialogflow.v2"; option objc_class_prefix = "DF"; diff --git a/third_party/googleapis/google/cloud/dialogflow/v2/human_agent_assistant_event.proto b/third_party/googleapis/google/cloud/dialogflow/v2/human_agent_assistant_event.proto new file mode 100644 index 000000000..f79ce9d46 --- /dev/null +++ b/third_party/googleapis/google/cloud/dialogflow/v2/human_agent_assistant_event.proto @@ -0,0 +1,44 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.v2; + +import "google/cloud/dialogflow/v2/participant.proto"; +import "google/api/annotations.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Dialogflow.V2"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/v2;dialogflow"; +option java_multiple_files = true; +option java_outer_classname = "HumanAgentAssistantEventProto"; +option java_package = "com.google.cloud.dialogflow.v2"; +option objc_class_prefix = "DF"; + +// Represents a notification sent to Cloud Pub/Sub subscribers for +// human agent assistant events in a specific conversation. +message HumanAgentAssistantEvent { + // The conversation this notification refers to. + // Format: `projects//conversations/`. + string conversation = 1; + + // The participant that the suggestion is compiled for. + // Format: `projects//conversations//participants/`. It will not be set in legacy workflow. + string participant = 3; + + // The suggestion results payload that this notification refers to. + repeated SuggestionResult suggestion_results = 5; +} diff --git a/third_party/googleapis/google/cloud/dialogflow/v2/intent.proto b/third_party/googleapis/google/cloud/dialogflow/v2/intent.proto index f4f78acad..e1507a5c9 100644 --- a/third_party/googleapis/google/cloud/dialogflow/v2/intent.proto +++ b/third_party/googleapis/google/cloud/dialogflow/v2/intent.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -47,6 +47,9 @@ service Intents { rpc ListIntents(ListIntentsRequest) returns (ListIntentsResponse) { option (google.api.http) = { get: "/v2/{parent=projects/*/agent}/intents" + additional_bindings { + get: "/v2/{parent=projects/*/agent/environments/*}/intents" + } }; option (google.api.method_signature) = "parent"; option (google.api.method_signature) = "parent,language_code"; @@ -771,6 +774,17 @@ message Intent { // auto-markup in the UI is turned off. bool ml_disabled = 19 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Indicates that a live agent should be brought in to handle the + // interaction with the user. In most cases, when you set this flag to true, + // you would also want to set end_interaction to true as well. Default is + // false. + bool live_agent_handoff = 20 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Indicates that this intent ends an interaction. Some integrations + // (e.g., Actions on Google or Dialogflow phone gateway) use this information + // to close interaction with an end user. Default is false. + bool end_interaction = 21 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The list of context names required for this intent to be // triggered. // Format: `projects//agent/sessions/-/contexts/`. diff --git a/third_party/googleapis/google/cloud/dialogflow/v2/knowledge_base.proto b/third_party/googleapis/google/cloud/dialogflow/v2/knowledge_base.proto new file mode 100644 index 000000000..52dbed10c --- /dev/null +++ b/third_party/googleapis/google/cloud/dialogflow/v2/knowledge_base.proto @@ -0,0 +1,217 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.v2; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Dialogflow.V2"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/v2;dialogflow"; +option java_multiple_files = true; +option java_outer_classname = "KnowledgeBaseProto"; +option java_package = "com.google.cloud.dialogflow.v2"; +option objc_class_prefix = "DF"; + +// Service for managing [KnowledgeBases][google.cloud.dialogflow.v2.KnowledgeBase]. +service KnowledgeBases { + option (google.api.default_host) = "dialogflow.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/dialogflow"; + + // Returns the list of all knowledge bases of the specified agent. + rpc ListKnowledgeBases(ListKnowledgeBasesRequest) returns (ListKnowledgeBasesResponse) { + option (google.api.http) = { + get: "/v2/{parent=projects/*}/knowledgeBases" + additional_bindings { + get: "/v2/{parent=projects/*/locations/*}/knowledgeBases" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Retrieves the specified knowledge base. + rpc GetKnowledgeBase(GetKnowledgeBaseRequest) returns (KnowledgeBase) { + option (google.api.http) = { + get: "/v2/{name=projects/*/knowledgeBases/*}" + additional_bindings { + get: "/v2/{name=projects/*/locations/*/knowledgeBases/*}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Creates a knowledge base. + rpc CreateKnowledgeBase(CreateKnowledgeBaseRequest) returns (KnowledgeBase) { + option (google.api.http) = { + post: "/v2/{parent=projects/*}/knowledgeBases" + body: "knowledge_base" + additional_bindings { + post: "/v2/{parent=projects/*/locations/*}/knowledgeBases" + body: "knowledge_base" + } + }; + option (google.api.method_signature) = "parent,knowledge_base"; + } + + // Deletes the specified knowledge base. + rpc DeleteKnowledgeBase(DeleteKnowledgeBaseRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v2/{name=projects/*/knowledgeBases/*}" + additional_bindings { + delete: "/v2/{name=projects/*/locations/*/knowledgeBases/*}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Updates the specified knowledge base. + rpc UpdateKnowledgeBase(UpdateKnowledgeBaseRequest) returns (KnowledgeBase) { + option (google.api.http) = { + patch: "/v2/{knowledge_base.name=projects/*/knowledgeBases/*}" + body: "knowledge_base" + additional_bindings { + patch: "/v2/{knowledge_base.name=projects/*/locations/*/knowledgeBases/*}" + body: "knowledge_base" + } + }; + option (google.api.method_signature) = "knowledge_base,update_mask"; + } +} + +// A knowledge base represents a collection of knowledge documents that you +// provide to Dialogflow. Your knowledge documents contain information that may +// be useful during conversations with end-users. Some Dialogflow features use +// knowledge bases when looking for a response to an end-user input. +// +// For more information, see the [knowledge base +// guide](https://cloud.google.com/dialogflow/docs/how/knowledge-bases). +// +// Note: The `projects.agent.knowledgeBases` resource is deprecated; +// only use `projects.knowledgeBases`. +message KnowledgeBase { + option (google.api.resource) = { + type: "dialogflow.googleapis.com/KnowledgeBase" + pattern: "projects/{project}/knowledgeBases/{knowledge_base}" + pattern: "projects/{project}/locations/{location}/knowledgeBases/{knowledge_base}" + }; + + // The knowledge base resource name. + // The name must be empty when creating a knowledge base. + // Format: `projects//locations//knowledgeBases/`. + string name = 1; + + // Required. The display name of the knowledge base. The name must be 1024 + // bytes or less; otherwise, the creation request fails. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Language which represents the KnowledgeBase. When the KnowledgeBase is + // created/updated, expect this to be present for non en-us languages. When + // unspecified, the default language code en-us applies. + string language_code = 4; +} + +// Request message for [KnowledgeBases.ListKnowledgeBases][google.cloud.dialogflow.v2.KnowledgeBases.ListKnowledgeBases]. +message ListKnowledgeBasesRequest { + // Required. The project to list of knowledge bases for. + // Format: `projects//locations/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/KnowledgeBase" + } + ]; + + // The maximum number of items to return in a single page. By + // default 10 and at most 100. + int32 page_size = 2; + + // The next_page_token value returned from a previous list request. + string page_token = 3; +} + +// Response message for [KnowledgeBases.ListKnowledgeBases][google.cloud.dialogflow.v2.KnowledgeBases.ListKnowledgeBases]. +message ListKnowledgeBasesResponse { + // The list of knowledge bases. + repeated KnowledgeBase knowledge_bases = 1; + + // Token to retrieve the next page of results, or empty if there are no + // more results in the list. + string next_page_token = 2; +} + +// Request message for [KnowledgeBases.GetKnowledgeBase][google.cloud.dialogflow.v2.KnowledgeBases.GetKnowledgeBase]. +message GetKnowledgeBaseRequest { + // Required. The name of the knowledge base to retrieve. + // Format `projects//locations//knowledgeBases/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/KnowledgeBase" + } + ]; +} + +// Request message for [KnowledgeBases.CreateKnowledgeBase][google.cloud.dialogflow.v2.KnowledgeBases.CreateKnowledgeBase]. +message CreateKnowledgeBaseRequest { + // Required. The project to create a knowledge base for. + // Format: `projects//locations/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/KnowledgeBase" + } + ]; + + // Required. The knowledge base to create. + KnowledgeBase knowledge_base = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for [KnowledgeBases.DeleteKnowledgeBase][google.cloud.dialogflow.v2.KnowledgeBases.DeleteKnowledgeBase]. +message DeleteKnowledgeBaseRequest { + // Required. The name of the knowledge base to delete. + // Format: `projects//locations//knowledgeBases/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/KnowledgeBase" + } + ]; + + // Optional. Force deletes the knowledge base. When set to true, any documents + // in the knowledge base are also deleted. + bool force = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for [KnowledgeBases.UpdateKnowledgeBase][google.cloud.dialogflow.v2.KnowledgeBases.UpdateKnowledgeBase]. +message UpdateKnowledgeBaseRequest { + // Required. The knowledge base to update. + KnowledgeBase knowledge_base = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Not specified means `update all`. + // Currently, only `display_name` can be updated, an InvalidArgument will be + // returned for attempting to update other fields. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/third_party/googleapis/google/cloud/dialogflow/v2/participant.proto b/third_party/googleapis/google/cloud/dialogflow/v2/participant.proto new file mode 100644 index 000000000..2c6e85736 --- /dev/null +++ b/third_party/googleapis/google/cloud/dialogflow/v2/participant.proto @@ -0,0 +1,766 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.v2; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/dialogflow/v2/audio_config.proto"; +import "google/cloud/dialogflow/v2/session.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Dialogflow.V2"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/v2;dialogflow"; +option java_multiple_files = true; +option java_outer_classname = "ParticipantProto"; +option java_package = "com.google.cloud.dialogflow.v2"; +option objc_class_prefix = "DF"; + +// Service for managing [Participants][google.cloud.dialogflow.v2.Participant]. +service Participants { + option (google.api.default_host) = "dialogflow.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/dialogflow"; + + // Creates a new participant in a conversation. + rpc CreateParticipant(CreateParticipantRequest) returns (Participant) { + option (google.api.http) = { + post: "/v2/{parent=projects/*/conversations/*}/participants" + body: "participant" + additional_bindings { + post: "/v2/{parent=projects/*/locations/*/conversations/*}/participants" + body: "participant" + } + }; + option (google.api.method_signature) = "parent,participant"; + } + + // Retrieves a conversation participant. + rpc GetParticipant(GetParticipantRequest) returns (Participant) { + option (google.api.http) = { + get: "/v2/{name=projects/*/conversations/*/participants/*}" + additional_bindings { + get: "/v2/{name=projects/*/locations/*/conversations/*/participants/*}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Returns the list of all participants in the specified conversation. + rpc ListParticipants(ListParticipantsRequest) returns (ListParticipantsResponse) { + option (google.api.http) = { + get: "/v2/{parent=projects/*/conversations/*}/participants" + additional_bindings { + get: "/v2/{parent=projects/*/locations/*/conversations/*}/participants" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Updates the specified participant. + rpc UpdateParticipant(UpdateParticipantRequest) returns (Participant) { + option (google.api.http) = { + patch: "/v2/{participant.name=projects/*/conversations/*/participants/*}" + body: "participant" + additional_bindings { + patch: "/v2/{participant.name=projects/*/locations/*/conversations/*/participants/*}" + body: "participant" + } + }; + option (google.api.method_signature) = "participant,update_mask"; + } + + // Adds a text (chat, for example), or audio (phone recording, for example) + // message from a participant into the conversation. + // + // Note: Always use agent versions for production traffic + // sent to virtual agents. See [Versions and + // environments(https://cloud.google.com/dialogflow/es/docs/agents-versions). + rpc AnalyzeContent(AnalyzeContentRequest) returns (AnalyzeContentResponse) { + option (google.api.http) = { + post: "/v2/{participant=projects/*/conversations/*/participants/*}:analyzeContent" + body: "*" + additional_bindings { + post: "/v2/{participant=projects/*/locations/*/conversations/*/participants/*}:analyzeContent" + body: "*" + } + }; + option (google.api.method_signature) = "participant,text_input"; + option (google.api.method_signature) = "participant,audio_input"; + option (google.api.method_signature) = "participant,event_input"; + } + + // Adds a text (chat, for example), or audio (phone recording, for example) + // message from a participant into the conversation. + // Note: This method is only available through the gRPC API (not REST). + // + // The top-level message sent to the client by the server is + // `StreamingAnalyzeContentResponse`. Multiple response messages can be + // returned in order. The first one or more messages contain the + // `recognition_result` field. Each result represents a more complete + // transcript of what the user said. The next message contains the + // `reply_text` field and potentially the `reply_audio` field. The message can + // also contain the `automated_agent_reply` field. + // + // Note: Always use agent versions for production traffic + // sent to virtual agents. See [Versions and + // environments(https://cloud.google.com/dialogflow/es/docs/agents-versions). + rpc StreamingAnalyzeContent(stream StreamingAnalyzeContentRequest) returns (stream StreamingAnalyzeContentResponse) { + } + + // Gets suggested articles for a participant based on specific historical + // messages. + rpc SuggestArticles(SuggestArticlesRequest) returns (SuggestArticlesResponse) { + option (google.api.http) = { + post: "/v2/{parent=projects/*/conversations/*/participants/*}/suggestions:suggestArticles" + body: "*" + additional_bindings { + post: "/v2/{parent=projects/*/locations/*/conversations/*/participants/*}/suggestions:suggestArticles" + body: "*" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Gets suggested faq answers for a participant based on specific historical + // messages. + rpc SuggestFaqAnswers(SuggestFaqAnswersRequest) returns (SuggestFaqAnswersResponse) { + option (google.api.http) = { + post: "/v2/{parent=projects/*/conversations/*/participants/*}/suggestions:suggestFaqAnswers" + body: "*" + additional_bindings { + post: "/v2/{parent=projects/*/locations/*/conversations/*/participants/*}/suggestions:suggestFaqAnswers" + body: "*" + } + }; + option (google.api.method_signature) = "parent"; + } +} + +// Represents a conversation participant (human agent, virtual agent, end-user). +message Participant { + option (google.api.resource) = { + type: "dialogflow.googleapis.com/Participant" + pattern: "projects/{project}/conversations/{conversation}/participants/{participant}" + pattern: "projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant}" + }; + + // Enumeration of the roles a participant can play in a conversation. + enum Role { + // Participant role not set. + ROLE_UNSPECIFIED = 0; + + // Participant is a human agent. + HUMAN_AGENT = 1; + + // Participant is an automated agent, such as a Dialogflow agent. + AUTOMATED_AGENT = 2; + + // Participant is an end user that has called or chatted with + // Dialogflow services. + END_USER = 3; + } + + // Optional. The unique identifier of this participant. + // Format: `projects//locations//conversations//participants/`. + string name = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Immutable. The role this participant plays in the conversation. This field must be set + // during participant creation and is then immutable. + Role role = 2 [(google.api.field_behavior) = IMMUTABLE]; + + // Optional. Label applied to streams representing this participant in SIPREC + // XML metadata and SDP. This is used to assign transcriptions from that + // media stream to this participant. This field can be updated. + string sip_recording_media_label = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// Represents a message posted into a conversation. +message Message { + option (google.api.resource) = { + type: "dialogflow.googleapis.com/Message" + pattern: "projects/{project}/conversations/{conversation}/messages/{message}" + pattern: "projects/{project}/locations/{location}/conversations/{conversation}/messages/{message}" + }; + + // The unique identifier of the message. + // Format: `projects//locations//conversations//messages/`. + string name = 1; + + // Required. The message content. + string content = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The message language. + // This should be a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) + // language tag. Example: "en-US". + string language_code = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The participant that sends this message. + string participant = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The role of the participant. + Participant.Role participant_role = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time when the message was created. + google.protobuf.Timestamp create_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The annotation for the message. + MessageAnnotation message_annotation = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The request message for [Participants.CreateParticipant][google.cloud.dialogflow.v2.Participants.CreateParticipant]. +message CreateParticipantRequest { + // Required. Resource identifier of the conversation adding the participant. + // Format: `projects//locations//conversations/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/Participant" + } + ]; + + // Required. The participant to create. + Participant participant = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// The request message for [Participants.GetParticipant][google.cloud.dialogflow.v2.Participants.GetParticipant]. +message GetParticipantRequest { + // Required. The name of the participant. Format: + // `projects//locations//conversations//participants/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Participant" + } + ]; +} + +// The request message for [Participants.ListParticipants][google.cloud.dialogflow.v2.Participants.ListParticipants]. +message ListParticipantsRequest { + // Required. The conversation to list all participants from. + // Format: `projects//locations//conversations/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/Participant" + } + ]; + + // Optional. The maximum number of items to return in a single page. By + // default 100 and at most 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The next_page_token value returned from a previous list request. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response message for [Participants.ListParticipants][google.cloud.dialogflow.v2.Participants.ListParticipants]. +message ListParticipantsResponse { + // The list of participants. There is a maximum number of items + // returned based on the page_size field in the request. + repeated Participant participants = 1; + + // Token to retrieve the next page of results or empty if there are no + // more results in the list. + string next_page_token = 2; +} + +// The request message for [Participants.UpdateParticipant][google.cloud.dialogflow.v2.Participants.UpdateParticipant]. +message UpdateParticipantRequest { + // Required. The participant to update. + Participant participant = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The mask to specify which fields to update. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// The request message for [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent]. +message AnalyzeContentRequest { + // Required. The name of the participant this text comes from. + // Format: `projects//locations//conversations//participants/`. + string participant = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Participant" + } + ]; + + // Required. The input content. + oneof input { + // The natural language text to be processed. + TextInput text_input = 6; + + // The natural language speech audio to be processed. + AudioInput audio_input = 7; + + // An input event to send to Dialogflow. + EventInput event_input = 8; + } + + // Speech synthesis configuration. + // The speech synthesis settings for a virtual agent that may be configured + // for the associated conversation profile are not used when calling + // AnalyzeContent. If this configuration is not supplied, speech synthesis + // is disabled. + OutputAudioConfig reply_audio_config = 5; + + // Parameters for a Dialogflow virtual-agent query. + QueryParameters query_params = 9; + + // A unique identifier for this request. Restricted to 36 ASCII characters. + // A random UUID is recommended. + // This request is only idempotent if a `request_id` is provided. + string request_id = 11; +} + +// The message in the response that indicates the parameters of DTMF. +message DtmfParameters { + // Indicates whether DTMF input can be handled in the next request. + bool accepts_dtmf_input = 1; +} + +// The response message for [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent]. +message AnalyzeContentResponse { + // The output text content. + // This field is set if the automated agent responded with text to show to + // the user. + string reply_text = 1; + + // The audio data bytes encoded as specified in the request. + // This field is set if: + // + // - `reply_audio_config` was specified in the request, or + // - The automated agent responded with audio to play to the user. In such + // case, `reply_audio.config` contains settings used to synthesize the + // speech. + // + // In some scenarios, multiple output audio fields may be present in the + // response structure. In these cases, only the top-most-level audio output + // has content. + OutputAudio reply_audio = 2; + + // Only set if a Dialogflow automated agent has responded. + // Note that: [AutomatedAgentReply.detect_intent_response.output_audio][] + // and [AutomatedAgentReply.detect_intent_response.output_audio_config][] + // are always empty, use [reply_audio][google.cloud.dialogflow.v2.AnalyzeContentResponse.reply_audio] instead. + AutomatedAgentReply automated_agent_reply = 3; + + // Message analyzed by CCAI. + Message message = 5; + + // The suggestions for most recent human agent. The order is the same as + // [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of + // [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config]. + repeated SuggestionResult human_agent_suggestion_results = 6; + + // The suggestions for end user. The order is the same as + // [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of + // [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config]. + repeated SuggestionResult end_user_suggestion_results = 7; + + // Indicates the parameters of DTMF. + DtmfParameters dtmf_parameters = 9; +} + +// The top-level message sent by the client to the +// [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent] method. +// +// Multiple request messages should be sent in order: +// +// 1. The first message must contain +// [participant][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.participant], +// [config][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.config] and optionally +// [query_params][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.query_params]. If you want +// to receive an audio response, it should also contain +// [reply_audio_config][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.reply_audio_config]. +// The message must not contain +// [input][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.input]. +// +// 2. If [config][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.config] in the first message +// was set to [audio_config][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.audio_config], +// all subsequent messages must contain +// [input_audio][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.input_audio] to continue +// with Speech recognition. +// However, note that: +// +// * Dialogflow will bill you for the audio so far. +// * Dialogflow discards all Speech recognition results in favor of the +// text input. +// +// 3. If [StreamingAnalyzeContentRequest.config][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.config] in the first message was set +// to [StreamingAnalyzeContentRequest.text_config][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.text_config], then the second message +// must contain only [input_text][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.input_text]. +// Moreover, you must not send more than two messages. +// +// After you sent all input, you must half-close or abort the request stream. +message StreamingAnalyzeContentRequest { + // Required. The name of the participant this text comes from. + // Format: `projects//locations//conversations//participants/`. + string participant = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Participant" + } + ]; + + // Required. The input config. + oneof config { + // Instructs the speech recognizer how to process the speech audio. + InputAudioConfig audio_config = 2; + + // The natural language text to be processed. + InputTextConfig text_config = 3; + } + + // Speech synthesis configuration. + // The speech synthesis settings for a virtual agent that may be configured + // for the associated conversation profile are not used when calling + // StreamingAnalyzeContent. If this configuration is not supplied, speech + // synthesis is disabled. + OutputAudioConfig reply_audio_config = 4; + + // Required. The input. + oneof input { + // The input audio content to be recognized. Must be sent if `audio_config` + // is set in the first message. The complete audio over all streaming + // messages must not exceed 1 minute. + bytes input_audio = 5; + + // The UTF-8 encoded natural language text to be processed. Must be sent if + // `text_config` is set in the first message. Text length must not exceed + // 256 bytes. The `input_text` field can be only sent once. + string input_text = 6; + + // The DTMF digits used to invoke intent and fill in parameter value. + // + // This input is ignored if the previous response indicated that DTMF input + // is not accepted. + TelephonyDtmfEvents input_dtmf = 9; + } + + // Parameters for a Dialogflow virtual-agent query. + QueryParameters query_params = 7; +} + +// The top-level message returned from the `StreamingAnalyzeContent` method. +// +// Multiple response messages can be returned in order: +// +// 1. If the input was set to streaming audio, the first one or more messages +// contain `recognition_result`. Each `recognition_result` represents a more +// complete transcript of what the user said. The last `recognition_result` +// has `is_final` set to `true`. +// +// 2. The next message contains `reply_text` and optionally `reply_audio` +// returned by an agent. This message may also contain +// `automated_agent_reply`. +message StreamingAnalyzeContentResponse { + // The result of speech recognition. + StreamingRecognitionResult recognition_result = 1; + + // The output text content. + // This field is set if an automated agent responded with a text for the user. + string reply_text = 2; + + // The audio data bytes encoded as specified in the request. + // This field is set if: + // + // - The `reply_audio_config` field is specified in the request. + // - The automated agent, which this output comes from, responded with audio. + // In such case, the `reply_audio.config` field contains settings used to + // synthesize the speech. + // + // In some scenarios, multiple output audio fields may be present in the + // response structure. In these cases, only the top-most-level audio output + // has content. + OutputAudio reply_audio = 3; + + // Only set if a Dialogflow automated agent has responded. + // Note that: [AutomatedAgentReply.detect_intent_response.output_audio][] + // and [AutomatedAgentReply.detect_intent_response.output_audio_config][] + // are always empty, use [reply_audio][google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse.reply_audio] instead. + AutomatedAgentReply automated_agent_reply = 4; + + // Message analyzed by CCAI. + Message message = 6; + + // The suggestions for most recent human agent. The order is the same as + // [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of + // [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.human_agent_suggestion_config]. + repeated SuggestionResult human_agent_suggestion_results = 7; + + // The suggestions for end user. The order is the same as + // [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of + // [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2.HumanAgentAssistantConfig.end_user_suggestion_config]. + repeated SuggestionResult end_user_suggestion_results = 8; + + // Indicates the parameters of DTMF. + DtmfParameters dtmf_parameters = 10; +} + +// The request message for [Participants.SuggestArticles][google.cloud.dialogflow.v2.Participants.SuggestArticles]. +message SuggestArticlesRequest { + // Required. The name of the participant to fetch suggestion for. + // Format: `projects//locations//conversations//participants/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Participant" + } + ]; + + // The name of the latest conversation message to compile suggestion + // for. If empty, it will be the latest message of the conversation. + // + // Format: `projects//locations//conversations//messages/`. + string latest_message = 2 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Message" + }]; + + // Max number of messages prior to and including + // [latest_message][google.cloud.dialogflow.v2.SuggestArticlesRequest.latest_message] to use as context + // when compiling the suggestion. By default 20 and at most 50. + int32 context_size = 3; +} + +// The response message for [Participants.SuggestArticles][google.cloud.dialogflow.v2.Participants.SuggestArticles]. +message SuggestArticlesResponse { + // Articles ordered by score in descending order. + repeated ArticleAnswer article_answers = 1; + + // The name of the latest conversation message used to compile + // suggestion for. + // + // Format: `projects//locations//conversations//messages/`. + string latest_message = 2; + + // Number of messages prior to and including + // [latest_message][google.cloud.dialogflow.v2.SuggestArticlesResponse.latest_message] to compile the + // suggestion. It may be smaller than the + // [SuggestArticlesRequest.context_size][google.cloud.dialogflow.v2.SuggestArticlesRequest.context_size] field in the request if there + // aren't that many messages in the conversation. + int32 context_size = 3; +} + +// The request message for [Participants.SuggestFaqAnswers][google.cloud.dialogflow.v2.Participants.SuggestFaqAnswers]. +message SuggestFaqAnswersRequest { + // Required. The name of the participant to fetch suggestion for. + // Format: `projects//locations//conversations//participants/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Participant" + } + ]; + + // The name of the latest conversation message to compile suggestion + // for. If empty, it will be the latest message of the conversation. + // + // Format: `projects//locations//conversations//messages/`. + string latest_message = 2 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Message" + }]; + + // Max number of messages prior to and including + // [latest_message] to use as context when compiling the + // suggestion. By default 20 and at most 50. + int32 context_size = 3; +} + +// The request message for [Participants.SuggestFaqAnswers][google.cloud.dialogflow.v2.Participants.SuggestFaqAnswers]. +message SuggestFaqAnswersResponse { + // Answers extracted from FAQ documents. + repeated FaqAnswer faq_answers = 1; + + // The name of the latest conversation message used to compile + // suggestion for. + // + // Format: `projects//locations//conversations//messages/`. + string latest_message = 2; + + // Number of messages prior to and including + // [latest_message][google.cloud.dialogflow.v2.SuggestFaqAnswersResponse.latest_message] to compile the + // suggestion. It may be smaller than the + // [SuggestFaqAnswersRequest.context_size][google.cloud.dialogflow.v2.SuggestFaqAnswersRequest.context_size] field in the request if there + // aren't that many messages in the conversation. + int32 context_size = 3; +} + +// Represents the natural language speech audio to be processed. +message AudioInput { + // Required. Instructs the speech recognizer how to process the speech audio. + InputAudioConfig config = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The natural language speech audio to be processed. + // A single request can contain up to 1 minute of speech audio data. + // The transcribed text cannot contain more than 256 bytes. + bytes audio = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Represents the natural language speech audio to be played to the end user. +message OutputAudio { + // Instructs the speech synthesizer how to generate the speech + // audio. + OutputAudioConfig config = 1; + + // The natural language speech audio. + bytes audio = 2; +} + +// Represents a response from an automated agent. +message AutomatedAgentReply { + // Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2.Sessions.DetectIntent] call. + DetectIntentResponse detect_intent_response = 1; +} + +// Represents article answer. +message ArticleAnswer { + // The article title. + string title = 1; + + // The article URI. + string uri = 2; + + // Article snippets. + repeated string snippets = 3; + + // Article match confidence. + // The system's confidence score that this article is a good match for this + // conversation, as a value from 0.0 (completely uncertain) to 1.0 + // (completely certain). + float confidence = 4; + + // A map that contains metadata about the answer and the + // document from which it originates. + map metadata = 5; + + // The name of answer record, in the format of + // "projects//locations//answerRecords/" + string answer_record = 6; +} + +// Represents answer from "frequently asked questions". +message FaqAnswer { + // The piece of text from the `source` knowledge base document. + string answer = 1; + + // The system's confidence score that this Knowledge answer is a good match + // for this conversational query, range from 0.0 (completely uncertain) + // to 1.0 (completely certain). + float confidence = 2; + + // The corresponding FAQ question. + string question = 3; + + // Indicates which Knowledge Document this answer was extracted + // from. + // Format: `projects//locations//agent/knowledgeBases//documents/`. + string source = 4; + + // A map that contains metadata about the answer and the + // document from which it originates. + map metadata = 5; + + // The name of answer record, in the format of + // "projects//locations//answerRecords/" + string answer_record = 6; +} + +// One response of different type of suggestion response which is used in +// the response of [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] and +// [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent], as well as [HumanAgentAssistantEvent][google.cloud.dialogflow.v2.HumanAgentAssistantEvent]. +message SuggestionResult { + // Different type of suggestion response. + oneof suggestion_response { + // Error status if the request failed. + google.rpc.Status error = 1; + + // SuggestArticlesResponse if request is for ARTICLE_SUGGESTION. + SuggestArticlesResponse suggest_articles_response = 2; + + // SuggestFaqAnswersResponse if request is for FAQ_ANSWER. + SuggestFaqAnswersResponse suggest_faq_answers_response = 3; + } +} + +// Defines the language used in the input text. +message InputTextConfig { + // Required. The language of this conversational query. See [Language + // Support](https://cloud.google.com/dialogflow/docs/reference/language) + // for a list of the currently supported language codes. + string language_code = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Represents a part of a message possibly annotated with an entity. The part +// can be an entity or purely a part of the message between two entities or +// message start/end. +message AnnotatedMessagePart { + // A part of a message possibly annotated with an entity. + string text = 1; + + // The [Dialogflow system entity + // type](https://cloud.google.com/dialogflow/docs/reference/system-entities) + // of this message part. If this is empty, Dialogflow could not annotate the + // phrase part with a system entity. + string entity_type = 2; + + // The [Dialogflow system entity formatted value + // ](https://cloud.google.com/dialogflow/docs/reference/system-entities) of + // this message part. For example for a system entity of type + // `@sys.unit-currency`, this may contain: + //
+  // {
+  //   "amount": 5,
+  //   "currency": "USD"
+  // }
+  // 
+ google.protobuf.Value formatted_value = 3; +} + +// Represents the result of annotation for the message. +message MessageAnnotation { + // The collection of annotated message parts ordered by their + // position in the message. You can recover the annotated message by + // concatenating [AnnotatedMessagePart.text]. + repeated AnnotatedMessagePart parts = 1; + + // Indicates whether the text message contains entities. + bool contain_entities = 2; +} diff --git a/third_party/googleapis/google/cloud/dialogflow/v2/session.proto b/third_party/googleapis/google/cloud/dialogflow/v2/session.proto index b0912cbda..338489652 100644 --- a/third_party/googleapis/google/cloud/dialogflow/v2/session.proto +++ b/third_party/googleapis/google/cloud/dialogflow/v2/session.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -57,6 +57,10 @@ service Sessions { // as a result. This method is not idempotent, because it may cause contexts // and session entity types to be updated, which in turn might affect // results of future queries. + // + // Note: Always use agent versions for production traffic. + // See [Versions and + // environments](https://cloud.google.com/dialogflow/es/docs/agents-versions). rpc DetectIntent(DetectIntentRequest) returns (DetectIntentResponse) { option (google.api.http) = { post: "/v2/{session=projects/*/agent/sessions/*}:detectIntent" @@ -72,6 +76,10 @@ service Sessions { // Processes a natural language query in audio format in a streaming fashion // and returns structured, actionable data as a result. This method is only // available via the gRPC API (not REST). + // + // Note: Always use agent versions for production traffic. + // See [Versions and + // environments](https://cloud.google.com/dialogflow/es/docs/agents-versions). rpc StreamingDetectIntent(stream StreamingDetectIntentRequest) returns (stream StreamingDetectIntentResponse) { } } @@ -82,14 +90,19 @@ message DetectIntentRequest { // `projects//agent/sessions/`, or // `projects//agent/environments//users//sessions/`. If `Environment ID` is not specified, we assume - // default 'draft' environment. If `User ID` is not specified, we are using - // "-". It's up to the API caller to choose an appropriate `Session ID` and - // `User Id`. They can be a random number or some type of user and session + // default 'draft' environment (`Environment ID` might be referred to as + // environment name at some places). If `User ID` is not specified, we are + // using "-". It's up to the API caller to choose an appropriate `Session ID` + // and `User Id`. They can be a random number or some type of user and session // identifiers (preferably hashed). The length of the `Session ID` and // `User ID` must not exceed 36 characters. // // For more information, see the [API interactions // guide](https://cloud.google.com/dialogflow/docs/api-overview). + // + // Note: Always use agent versions for production traffic. + // See [Versions and + // environments](https://cloud.google.com/dialogflow/es/docs/agents-versions). string session = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -192,6 +205,17 @@ message QueryParameters { // Configures the type of sentiment analysis to perform. If not // provided, sentiment analysis is not performed. SentimentAnalysisRequestConfig sentiment_analysis_request_config = 10; + + // This field can be used to pass HTTP headers for a webhook + // call. These headers will be sent to webhook along with the headers that + // have been configured through the Dialogflow web console. The headers + // defined within this field will overwrite the headers configured through the + // Dialogflow console if there is a conflict. Header names are + // case-insensitive. Google's specified headers are not allowed. Including: + // "Host", "Content-Length", "Connection", "From", "User-Agent", + // "Accept-Encoding", "If-Modified-Since", "If-None-Match", "X-Forwarded-For", + // etc. + map webhook_headers = 14; } // Represents the query input. It can contain either: @@ -259,7 +283,8 @@ message QueryResult { // - MapKey value: parameter name // - MapValue type: // - If parameter's entity type is a composite entity: map - // - Else: string or number, depending on parameter value type + // - Else: depending on parameter value type, could be one of string, + // number, boolean, null, list or map // - MapValue value: // - If parameter's entity type is a composite entity: // map from composite entity property names to property values @@ -368,6 +393,10 @@ message StreamingDetectIntentRequest { // // For more information, see the [API interactions // guide](https://cloud.google.com/dialogflow/docs/api-overview). + // + // Note: Always use agent versions for production traffic. + // See [Versions and + // environments](https://cloud.google.com/dialogflow/es/docs/agents-versions). string session = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -575,7 +604,8 @@ message EventInput { // - MapKey value: parameter name // - MapValue type: // - If parameter's entity type is a composite entity: map - // - Else: string or number, depending on parameter value type + // - Else: depending on parameter value type, could be one of string, + // number, boolean, null, list or map // - MapValue value: // - If parameter's entity type is a composite entity: // map from composite entity property names to property values diff --git a/third_party/googleapis/google/cloud/dialogflow/v2/session_entity_type.proto b/third_party/googleapis/google/cloud/dialogflow/v2/session_entity_type.proto index 8d7fa89c0..0eceed81c 100644 --- a/third_party/googleapis/google/cloud/dialogflow/v2/session_entity_type.proto +++ b/third_party/googleapis/google/cloud/dialogflow/v2/session_entity_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/cloud/dialogflow/v2/validation_result.proto b/third_party/googleapis/google/cloud/dialogflow/v2/validation_result.proto index e499c1462..e41cb9cde 100644 --- a/third_party/googleapis/google/cloud/dialogflow/v2/validation_result.proto +++ b/third_party/googleapis/google/cloud/dialogflow/v2/validation_result.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -33,7 +33,7 @@ message ValidationError { // Not specified. This value should never be used. SEVERITY_UNSPECIFIED = 0; - // The agent doesn't follow Dialogflow best practicies. + // The agent doesn't follow Dialogflow best practices. INFO = 1; // The agent may not behave as expected. diff --git a/third_party/googleapis/google/cloud/dialogflow/v2/webhook.proto b/third_party/googleapis/google/cloud/dialogflow/v2/webhook.proto index 19f529aed..ce72e92d3 100644 --- a/third_party/googleapis/google/cloud/dialogflow/v2/webhook.proto +++ b/third_party/googleapis/google/cloud/dialogflow/v2/webhook.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/cloud/dialogflow/v2beta1/BUILD.bazel b/third_party/googleapis/google/cloud/dialogflow/v2beta1/BUILD.bazel index 5546f54c8..3ac6756a8 100644 --- a/third_party/googleapis/google/cloud/dialogflow/v2beta1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/dialogflow/v2beta1/BUILD.bazel @@ -1,5 +1,5 @@ # This file was automatically generated by BuildFileGenerator -# https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/bazel +# https://github.com/googleapis/rules_gapic/tree/master/bazel # Most of the manual changes to this file will be overwritten. # It's **only** allowed to change the following rule attribute values: @@ -22,14 +22,20 @@ proto_library( name = "dialogflow_proto", srcs = [ "agent.proto", + "answer_record.proto", "audio_config.proto", "context.proto", + "conversation.proto", + "conversation_event.proto", + "conversation_profile.proto", "document.proto", "entity_type.proto", "environment.proto", "gcs.proto", + "human_agent_assistant_event.proto", "intent.proto", "knowledge_base.proto", + "participant.proto", "session.proto", "session_entity_type.proto", "validation_result.proto", @@ -43,6 +49,7 @@ proto_library( "//google/longrunning:operations_proto", "//google/rpc:status_proto", "//google/type:latlng_proto", + "@com_google_protobuf//:any_proto", "@com_google_protobuf//:duration_proto", "@com_google_protobuf//:empty_proto", "@com_google_protobuf//:field_mask_proto", @@ -56,6 +63,7 @@ proto_library_with_info( deps = [ ":dialogflow_proto", "//google/cloud:common_resources_proto", + "//google/cloud/dialogflow:common_resources_proto", ], ) @@ -84,11 +92,8 @@ java_grpc_library( java_gapic_library( name = "dialogflow_java_gapic", - src = ":dialogflow_proto_with_info", - gapic_yaml = "dialogflow_gapic.yaml", + srcs = [":dialogflow_proto_with_info"], grpc_service_config = "dialogflow_grpc_service_config.json", - package = "google.cloud.dialogflow.v2beta1", - service_yaml = "dialogflow_v2beta1.yaml", test_deps = [ ":dialogflow_java_grpc", ], @@ -100,15 +105,6 @@ java_gapic_library( java_gapic_test( name = "dialogflow_java_gapic_test_suite", test_classes = [ - "com.google.cloud.dialogflow.v2beta1.AgentsClientTest", - "com.google.cloud.dialogflow.v2beta1.ContextsClientTest", - "com.google.cloud.dialogflow.v2beta1.DocumentsClientTest", - "com.google.cloud.dialogflow.v2beta1.EntityTypesClientTest", - "com.google.cloud.dialogflow.v2beta1.EnvironmentsClientTest", - "com.google.cloud.dialogflow.v2beta1.IntentsClientTest", - "com.google.cloud.dialogflow.v2beta1.KnowledgeBasesClientTest", - "com.google.cloud.dialogflow.v2beta1.SessionEntityTypesClientTest", - "com.google.cloud.dialogflow.v2beta1.SessionsClientTest", ], runtime_deps = [":dialogflow_java_gapic_test"], ) @@ -153,12 +149,14 @@ go_gapic_library( srcs = [":dialogflow_proto_with_info"], grpc_service_config = "dialogflow_grpc_service_config.json", importpath = "cloud.google.com/go/dialogflow/apiv2beta1;dialogflow", + metadata = True, service_yaml = "dialogflow_v2beta1.yaml", deps = [ ":dialogflow_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", + "@io_bazel_rules_go//proto/wkt:any_go_proto", "@io_bazel_rules_go//proto/wkt:duration_go_proto", "@io_bazel_rules_go//proto/wkt:struct_go_proto", ], @@ -176,6 +174,7 @@ go_gapic_assembly_pkg( name = "gapi-cloud-dialogflow-v2beta1-go", deps = [ ":dialogflow_go_gapic", + ":dialogflow_go_gapic_srcjar-metadata.srcjar", ":dialogflow_go_gapic_srcjar-test.srcjar", ":dialogflow_go_proto", ], @@ -186,55 +185,14 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "dialogflow_moved_proto", - srcs = [":dialogflow_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:resource_proto", - "//google/longrunning:operations_proto", - "//google/rpc:status_proto", - "//google/type:latlng_proto", - "@com_google_protobuf//:duration_proto", - "@com_google_protobuf//:empty_proto", - "@com_google_protobuf//:field_mask_proto", - "@com_google_protobuf//:struct_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -py_proto_library( - name = "dialogflow_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":dialogflow_moved_proto"], -) - -py_grpc_library( - name = "dialogflow_py_grpc", - srcs = [":dialogflow_moved_proto"], - deps = [":dialogflow_py_proto"], ) py_gapic_library( name = "dialogflow_py_gapic", - src = ":dialogflow_proto_with_info", - gapic_yaml = "dialogflow_gapic.yaml", + srcs = [":dialogflow_proto"], grpc_service_config = "dialogflow_grpc_service_config.json", - package = "google.cloud.dialogflow.v2beta1", - service_yaml = "dialogflow_v2beta1.yaml", - deps = [ - ":dialogflow_py_grpc", - ":dialogflow_py_proto", - ], ) # Open Source Packages @@ -242,8 +200,6 @@ py_gapic_assembly_pkg( name = "dialogflow-v2beta1-py", deps = [ ":dialogflow_py_gapic", - ":dialogflow_py_grpc", - ":dialogflow_py_proto", ], ) @@ -305,6 +261,7 @@ nodejs_gapic_library( name = "dialogflow_nodejs_gapic", package_name = "@google-cloud/dialogflow", src = ":dialogflow_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "dialogflow_grpc_service_config.json", main_service = "dialogflow", package = "google.cloud.dialogflow.v2beta1", diff --git a/third_party/googleapis/google/cloud/dialogflow/v2beta1/agent.proto b/third_party/googleapis/google/cloud/dialogflow/v2beta1/agent.proto index 435841027..51c5b831d 100644 --- a/third_party/googleapis/google/cloud/dialogflow/v2beta1/agent.proto +++ b/third_party/googleapis/google/cloud/dialogflow/v2beta1/agent.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -305,7 +305,7 @@ message Agent { bool enable_logging = 8; // Optional. Determines how intents are detected from user queries. - MatchMode match_mode = 9; + MatchMode match_mode = 9 [deprecated = true]; // Optional. To filter out false positive results and still get variety in // matched natural language inputs for your agent, you can tune the machine diff --git a/third_party/googleapis/google/cloud/dialogflow/v2beta1/answer_record.proto b/third_party/googleapis/google/cloud/dialogflow/v2beta1/answer_record.proto new file mode 100644 index 000000000..b344010d1 --- /dev/null +++ b/third_party/googleapis/google/cloud/dialogflow/v2beta1/answer_record.proto @@ -0,0 +1,322 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.v2beta1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/dialogflow/v2beta1/participant.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Dialogflow.V2beta1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1;dialogflow"; +option java_multiple_files = true; +option java_outer_classname = "AnswerRecordsProto"; +option java_package = "com.google.cloud.dialogflow.v2beta1"; +option objc_class_prefix = "DF"; + +// Service for managing [AnswerRecords][google.cloud.dialogflow.v2beta1.AnswerRecord]. +service AnswerRecords { + option (google.api.default_host) = "dialogflow.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/dialogflow"; + + // Deprecated. + // Retrieves a specific answer record. + rpc GetAnswerRecord(GetAnswerRecordRequest) returns (AnswerRecord) { + option deprecated = true; + option (google.api.http) = { + get: "/v2beta1/{name=projects/*/answerRecords/*}" + additional_bindings { + get: "/v2beta1/{name=projects/*/locations/*/answerRecords/*}" + } + }; + } + + // Returns the list of all answer records in the specified project in reverse + // chronological order. + rpc ListAnswerRecords(ListAnswerRecordsRequest) returns (ListAnswerRecordsResponse) { + option (google.api.http) = { + get: "/v2beta1/{parent=projects/*}/answerRecords" + additional_bindings { + get: "/v2beta1/{parent=projects/*/locations/*}/answerRecords" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Updates the specified answer record. + rpc UpdateAnswerRecord(UpdateAnswerRecordRequest) returns (AnswerRecord) { + option (google.api.http) = { + patch: "/v2beta1/{answer_record.name=projects/*/answerRecords/*}" + body: "answer_record" + additional_bindings { + patch: "/v2beta1/{answer_record.name=projects/*/locations/*/answerRecords/*}" + body: "answer_record" + } + }; + option (google.api.method_signature) = "answer_record,update_mask"; + } +} + +// Answer records are records to manage answer history and feedbacks for +// Dialogflow. +// +// Currently, answer record includes: +// +// - human agent assistant article suggestion +// - human agent assistant faq article +// +// It doesn't include: +// +// - `DetectIntent` intent matching +// - `DetectIntent` knowledge +// +// Answer records are not related to the conversation history in the +// Dialogflow Console. A Record is generated even when the end-user disables +// conversation history in the console. Records are created when there's a human +// agent assistant suggestion generated. +// +// A typical workflow for customers provide feedback to an answer is: +// +// 1. For human agent assistant, customers get suggestion via ListSuggestions +// API. Together with the answers, [AnswerRecord.name][google.cloud.dialogflow.v2beta1.AnswerRecord.name] are returned to the +// customers. +// 2. The customer uses the [AnswerRecord.name][google.cloud.dialogflow.v2beta1.AnswerRecord.name] to call the +// [UpdateAnswerRecord][] method to send feedback about a specific answer +// that they believe is wrong. +message AnswerRecord { + option (google.api.resource) = { + type: "dialogflow.googleapis.com/AnswerRecord" + pattern: "projects/{project}/answerRecords/{answer_record}" + pattern: "projects/{project}/locations/{location}/answerRecords/{answer_record}" + }; + + // The unique identifier of this answer record. + // Required for [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2beta1.AnswerRecords.UpdateAnswerRecord] method. + // Format: `projects//locations//answerRecords/`. + string name = 1; + + // Optional. The AnswerFeedback for this record. You can set this with + // [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2beta1.AnswerRecords.UpdateAnswerRecord] in order to give us feedback about + // this answer. + AnswerFeedback answer_feedback = 3; + + // Output only. The record for this answer. + oneof record { + // Output only. The record for human agent assistant. + AgentAssistantRecord agent_assistant_record = 4; + } +} + +// Represents a record of a human agent assistant answer. +message AgentAssistantRecord { + // Output only. The agent assistant answer. + oneof answer { + // Output only. The article suggestion answer. + ArticleAnswer article_suggestion_answer = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The FAQ answer. + FaqAnswer faq_answer = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + } +} + +// Represents feedback the customer has about the quality & correctness of a +// certain answer in a conversation. +message AnswerFeedback { + // The correctness level of an answer. + enum CorrectnessLevel { + // Correctness level unspecified. + CORRECTNESS_LEVEL_UNSPECIFIED = 0; + + // Answer is totally wrong. + NOT_CORRECT = 1; + + // Answer is partially correct. + PARTIALLY_CORRECT = 2; + + // Answer is fully correct. + FULLY_CORRECT = 3; + } + + // The correctness level of the specific answer. + CorrectnessLevel correctness_level = 1; + + // Normally, detail feedback is provided when answer is not fully correct. + oneof detail_feedback { + // Optional. Detail feedback of agent assistant suggestions. + AgentAssistantFeedback agent_assistant_detail_feedback = 2; + } + + // Indicates whether the answer/item was clicked by the human agent + // or not. Default to false. + bool clicked = 3; + + // Time when the answer/item was clicked. + google.protobuf.Timestamp click_time = 5; + + // Indicates whether the answer/item was displayed to the human + // agent in the agent desktop UI. Default to false. + bool displayed = 4; + + // Time when the answer/item was displayed. + google.protobuf.Timestamp display_time = 6; +} + +// Detail feedback of Agent Assistant result. +message AgentAssistantFeedback { + // Feedback for conversation summarization. + message SummarizationFeedback { + // Timestamp when composing of the summary starts. + google.protobuf.Timestamp start_timestamp = 1; + + // Timestamp when the summary was submitted. + google.protobuf.Timestamp submit_timestamp = 2; + + // Text of actual submitted summary. + string summary_text = 3; + } + + // Relevance of an answer. + enum AnswerRelevance { + // Answer relevance unspecified. + ANSWER_RELEVANCE_UNSPECIFIED = 0; + + // Answer is irrelevant to query. + IRRELEVANT = 1; + + // Answer is relevant to query. + RELEVANT = 2; + } + + // Correctness of document. + enum DocumentCorrectness { + // Document correctness unspecified. + DOCUMENT_CORRECTNESS_UNSPECIFIED = 0; + + // Information in document is incorrect. + INCORRECT = 1; + + // Information in document is correct. + CORRECT = 2; + } + + // Efficiency of document. + enum DocumentEfficiency { + // Document efficiency unspecified. + DOCUMENT_EFFICIENCY_UNSPECIFIED = 0; + + // Document is inefficient. + INEFFICIENT = 1; + + // Document is efficient. + EFFICIENT = 2; + } + + // Optional. Whether or not the suggested answer is relevant. + // + // For example: + // + // * Query: "Can I change my mailing address?" + // * Suggested document says: "Items must be returned/exchanged within 60 + // days of the purchase date." + // * [answer_relevance][google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.answer_relevance]: [AnswerRelevance.IRRELEVANT][google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.AnswerRelevance.IRRELEVANT] + AnswerRelevance answer_relevance = 1; + + // Optional. Whether or not the information in the document is correct. + // + // For example: + // + // * Query: "Can I return the package in 2 days once received?" + // * Suggested document says: "Items must be returned/exchanged within 60 + // days of the purchase date." + // * Ground truth: "No return or exchange is allowed." + // * [document_correctness]: INCORRECT + DocumentCorrectness document_correctness = 2; + + // Optional. Whether or not the suggested document is efficient. For example, + // if the document is poorly written, hard to understand, hard to use or + // too long to find useful information, [document_efficiency][google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.document_efficiency] is + // [DocumentEfficiency.INEFFICIENT][google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.DocumentEfficiency.INEFFICIENT]. + DocumentEfficiency document_efficiency = 3; + + // Feedback for conversation summarization. + SummarizationFeedback summarization_feedback = 4; +} + +// Request message for [AnswerRecords.GetAnswerRecord][google.cloud.dialogflow.v2beta1.AnswerRecords.GetAnswerRecord]. +message GetAnswerRecordRequest { + // Required. The name of the answer record to retrieve. + // Format: `projects//locations//answerRecords/`. + string name = 1; +} + +// Request message for [AnswerRecords.ListAnswerRecords][google.cloud.dialogflow.v2beta1.AnswerRecords.ListAnswerRecords]. +message ListAnswerRecordsRequest { + // Required. The project to list all answer records for in reverse + // chronological order. Format: `projects//locations/`. + string parent = 1 [(google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/AnswerRecord" + }]; + + // Optional. The maximum number of records to return in a single page. + // The server may return fewer records than this. If unspecified, we use 10. + // The maximum is 100. + int32 page_size = 3; + + // Optional. The + // [ListAnswerRecordsResponse.next_page_token][google.cloud.dialogflow.v2beta1.ListAnswerRecordsResponse.next_page_token] + // value returned from a previous list request used to continue listing on + // the next page. + string page_token = 4; +} + +// Response message for [AnswerRecords.ListAnswerRecords][google.cloud.dialogflow.v2beta1.AnswerRecords.ListAnswerRecords]. +message ListAnswerRecordsResponse { + // The list of answer records. + repeated AnswerRecord answer_records = 1; + + // A token to retrieve next page of results. Or empty if there are no more + // results. + // Pass this value in the + // [ListAnswerRecordsRequest.page_token][google.cloud.dialogflow.v2beta1.ListAnswerRecordsRequest.page_token] + // field in the subsequent call to `ListAnswerRecords` method to retrieve the + // next page of results. + string next_page_token = 2; +} + +// Request message for [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2beta1.AnswerRecords.UpdateAnswerRecord]. +message UpdateAnswerRecordRequest { + // Required. Answer record to update. + AnswerRecord answer_record = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/AnswerRecord" + } + ]; + + // Required. The mask to control which fields get updated. + google.protobuf.FieldMask update_mask = 2; +} diff --git a/third_party/googleapis/google/cloud/dialogflow/v2beta1/audio_config.proto b/third_party/googleapis/google/cloud/dialogflow/v2beta1/audio_config.proto index 7afa9bbc6..009a9473b 100644 --- a/third_party/googleapis/google/cloud/dialogflow/v2beta1/audio_config.proto +++ b/third_party/googleapis/google/cloud/dialogflow/v2beta1/audio_config.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -30,6 +30,36 @@ option java_outer_classname = "AudioConfigProto"; option java_package = "com.google.cloud.dialogflow.v2beta1"; option objc_class_prefix = "DF"; +// Hints for the speech recognizer to help with recognition in a specific +// conversation state. +message SpeechContext { + // Optional. A list of strings containing words and phrases that the speech + // recognizer should recognize with higher likelihood. + // + // This list can be used to: + // + // * improve accuracy for words and phrases you expect the user to say, + // e.g. typical commands for your Dialogflow agent + // * add additional words to the speech recognizer vocabulary + // * ... + // + // See the [Cloud Speech + // documentation](https://cloud.google.com/speech-to-text/quotas) for usage + // limits. + repeated string phrases = 1; + + // Optional. Boost for this context compared to other contexts: + // + // * If the boost is positive, Dialogflow will increase the probability that + // the phrases in this context are recognized over similar sounding phrases. + // * If the boost is unspecified or non-positive, Dialogflow will not apply + // any boost. + // + // Dialogflow recommends that you use boosts in the range (0, 20] and that you + // find a value that fits your use case with binary search. + float boost = 2; +} + // Audio encoding of the audio content sent in the conversational query request. // Refer to the // [Cloud Speech API @@ -79,36 +109,6 @@ enum AudioEncoding { AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE = 7; } -// Hints for the speech recognizer to help with recognition in a specific -// conversation state. -message SpeechContext { - // Optional. A list of strings containing words and phrases that the speech - // recognizer should recognize with higher likelihood. - // - // This list can be used to: - // - // * improve accuracy for words and phrases you expect the user to say, - // e.g. typical commands for your Dialogflow agent - // * add additional words to the speech recognizer vocabulary - // * ... - // - // See the [Cloud Speech - // documentation](https://cloud.google.com/speech-to-text/quotas) for usage - // limits. - repeated string phrases = 1; - - // Optional. Boost for this context compared to other contexts: - // - // * If the boost is positive, Dialogflow will increase the probability that - // the phrases in this context are recognized over similar sounding phrases. - // * If the boost is unspecified or non-positive, Dialogflow will not apply - // any boost. - // - // Dialogflow recommends that you use boosts in the range (0, 20] and that you - // find a value that fits your use case with binary search. - float boost = 2; -} - // Information for a word recognized by the speech recognizer. message SpeechWordInfo { // The word this info is for. @@ -248,6 +248,12 @@ message InputAudioConfig { // Note: When specified, InputAudioConfig.single_utterance takes precedence // over StreamingDetectIntentRequest.single_utterance. bool single_utterance = 8; + + // Only used in [Participants.AnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent] and + // [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.StreamingAnalyzeContent]. + // If `false` and recognition doesn't return any result, trigger + // `NO_SPEECH_RECOGNIZED` event to Dialogflow agent. + bool disable_no_speech_recognized_event = 14; } // Description of which voice to use for speech synthesis. @@ -255,6 +261,9 @@ message VoiceSelectionParams { // Optional. The name of the voice. If not set, the service will choose a // voice based on the other parameters such as language_code and // [ssml_gender][google.cloud.dialogflow.v2beta1.VoiceSelectionParams.ssml_gender]. + // + // For the list of available voices, please refer to [Supported voices and + // languages](https://cloud.google.com/text-to-speech/docs/voices). string name = 1; // Optional. The preferred gender of the voice. If not set, the service will @@ -265,23 +274,6 @@ message VoiceSelectionParams { SsmlVoiceGender ssml_gender = 2; } -// Gender of the voice as described in -// [SSML voice element](https://www.w3.org/TR/speech-synthesis11/#edef_voice). -enum SsmlVoiceGender { - // An unspecified gender, which means that the client doesn't care which - // gender the selected voice will have. - SSML_VOICE_GENDER_UNSPECIFIED = 0; - - // A male voice. - SSML_VOICE_GENDER_MALE = 1; - - // A female voice. - SSML_VOICE_GENDER_FEMALE = 2; - - // A gender-neutral voice. - SSML_VOICE_GENDER_NEUTRAL = 3; -} - // Configuration of how speech should be synthesized. message SynthesizeSpeechConfig { // Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal @@ -314,6 +306,23 @@ message SynthesizeSpeechConfig { VoiceSelectionParams voice = 4; } +// Gender of the voice as described in +// [SSML voice element](https://www.w3.org/TR/speech-synthesis11/#edef_voice). +enum SsmlVoiceGender { + // An unspecified gender, which means that the client doesn't care which + // gender the selected voice will have. + SSML_VOICE_GENDER_UNSPECIFIED = 0; + + // A male voice. + SSML_VOICE_GENDER_MALE = 1; + + // A female voice. + SSML_VOICE_GENDER_FEMALE = 2; + + // A gender-neutral voice. + SSML_VOICE_GENDER_NEUTRAL = 3; +} + // Instructs the speech synthesizer how to generate the output audio content. // If this audio config is supplied in a request, it overrides all existing // text-to-speech settings applied to the agent. @@ -332,6 +341,12 @@ message OutputAudioConfig { SynthesizeSpeechConfig synthesize_speech_config = 3; } +// A wrapper of repeated TelephonyDtmf digits. +message TelephonyDtmfEvents { + // A sequence of TelephonyDtmf digits. + repeated TelephonyDtmf dtmf_events = 1; +} + // Audio encoding of the output audio format in Text-To-Speech. enum OutputAudioEncoding { // Not specified. @@ -351,10 +366,13 @@ enum OutputAudioEncoding { OUTPUT_AUDIO_ENCODING_OGG_OPUS = 3; } -// A wrapper of repeated TelephonyDtmf digits. -message TelephonyDtmfEvents { - // A sequence of TelephonyDtmf digits. - repeated TelephonyDtmf dtmf_events = 1; +// Configures speech transcription for [ConversationProfile][google.cloud.dialogflow.v2beta1.ConversationProfile]. +message SpeechToTextConfig { + // Optional. The speech model used in speech to text. + // `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `USE_BEST_AVAILABLE` will be treated as + // `USE_ENHANCED`. It can be overridden in [AnalyzeContentRequest][google.cloud.dialogflow.v2beta1.AnalyzeContentRequest] and + // [StreamingAnalyzeContentRequest][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest] request. + SpeechModelVariant speech_model_variant = 1 [(google.api.field_behavior) = OPTIONAL]; } // [DTMF](https://en.wikipedia.org/wiki/Dual-tone_multi-frequency_signaling) diff --git a/third_party/googleapis/google/cloud/dialogflow/v2beta1/context.proto b/third_party/googleapis/google/cloud/dialogflow/v2beta1/context.proto index 949552057..a48e0ab63 100644 --- a/third_party/googleapis/google/cloud/dialogflow/v2beta1/context.proto +++ b/third_party/googleapis/google/cloud/dialogflow/v2beta1/context.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -217,7 +217,8 @@ message Context { // - MapKey value: parameter name // - MapValue type: // - If parameter's entity type is a composite entity: map - // - Else: string or number, depending on parameter value type + // - Else: depending on parameter value type, could be one of string, + // number, boolean, null, list or map // - MapValue value: // - If parameter's entity type is a composite entity: // map from composite entity property names to property values diff --git a/third_party/googleapis/google/cloud/dialogflow/v2beta1/conversation.proto b/third_party/googleapis/google/cloud/dialogflow/v2beta1/conversation.proto new file mode 100644 index 000000000..068473823 --- /dev/null +++ b/third_party/googleapis/google/cloud/dialogflow/v2beta1/conversation.proto @@ -0,0 +1,581 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.v2beta1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/dialogflow/v2beta1/gcs.proto"; +import "google/cloud/dialogflow/v2beta1/participant.proto"; +import "google/cloud/dialogflow/v2beta1/session.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Dialogflow.V2beta1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1;dialogflow"; +option java_multiple_files = true; +option java_outer_classname = "ConversationProto"; +option java_package = "com.google.cloud.dialogflow.v2beta1"; +option objc_class_prefix = "DF"; + +// Service for managing [Conversations][google.cloud.dialogflow.v2beta1.Conversation]. +service Conversations { + option (google.api.default_host) = "dialogflow.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/dialogflow"; + + // Creates a new conversation. Conversations are auto-completed after 24 + // hours. + // + // Conversation Lifecycle: + // There are two stages during a conversation: Automated Agent Stage and + // Assist Stage. + // + // For Automated Agent Stage, there will be a dialogflow agent responding to + // user queries. + // + // For Assist Stage, there's no dialogflow agent responding to user queries. + // But we will provide suggestions which are generated from conversation. + // + // If [Conversation.conversation_profile][google.cloud.dialogflow.v2beta1.Conversation.conversation_profile] is configured for a dialogflow + // agent, conversation will start from `Automated Agent Stage`, otherwise, it + // will start from `Assist Stage`. And during `Automated Agent Stage`, once an + // [Intent][google.cloud.dialogflow.v2beta1.Intent] with [Intent.live_agent_handoff][google.cloud.dialogflow.v2beta1.Intent.live_agent_handoff] is triggered, conversation + // will transfer to Assist Stage. + rpc CreateConversation(CreateConversationRequest) returns (Conversation) { + option (google.api.http) = { + post: "/v2beta1/{parent=projects/*}/conversations" + body: "conversation" + additional_bindings { + post: "/v2beta1/{parent=projects/*/locations/*}/conversations" + body: "conversation" + } + }; + option (google.api.method_signature) = "parent,conversation"; + } + + // Returns the list of all conversations in the specified project. + rpc ListConversations(ListConversationsRequest) returns (ListConversationsResponse) { + option (google.api.http) = { + get: "/v2beta1/{parent=projects/*}/conversations" + additional_bindings { + get: "/v2beta1/{parent=projects/*/locations/*}/conversations" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Retrieves the specific conversation. + rpc GetConversation(GetConversationRequest) returns (Conversation) { + option (google.api.http) = { + get: "/v2beta1/{name=projects/*/conversations/*}" + additional_bindings { + get: "/v2beta1/{name=projects/*/locations/*/conversations/*}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Completes the specified conversation. Finished conversations are purged + // from the database after 30 days. + rpc CompleteConversation(CompleteConversationRequest) returns (Conversation) { + option (google.api.http) = { + post: "/v2beta1/{name=projects/*/conversations/*}:complete" + body: "*" + additional_bindings { + post: "/v2beta1/{name=projects/*/locations/*/conversations/*}:complete" + body: "*" + } + }; + option (google.api.method_signature) = "name"; + } + + // Creates a call matcher that links incoming SIP calls to the specified + // conversation if they fulfill specified criteria. + rpc CreateCallMatcher(CreateCallMatcherRequest) returns (CallMatcher) { + option (google.api.http) = { + post: "/v2beta1/{parent=projects/*/conversations/*}/callMatchers" + body: "call_matcher" + additional_bindings { + post: "/v2beta1/{parent=projects/*/locations/*/conversations/*}/callMatchers" + body: "*" + } + }; + option (google.api.method_signature) = "parent,call_matcher"; + } + + // Returns the list of all call matchers in the specified conversation. + rpc ListCallMatchers(ListCallMatchersRequest) returns (ListCallMatchersResponse) { + option (google.api.http) = { + get: "/v2beta1/{parent=projects/*/conversations/*}/callMatchers" + additional_bindings { + get: "/v2beta1/{parent=projects/*/locations/*/conversations/*}/callMatchers" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Requests deletion of a call matcher. + rpc DeleteCallMatcher(DeleteCallMatcherRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v2beta1/{name=projects/*/conversations/*/callMatchers/*}" + additional_bindings { + delete: "/v2beta1/{name=projects/*/locations/*/conversations/*/callMatchers/*}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Batch ingests messages to conversation. Customers can use this RPC to + // ingest historical messages to conversation. + rpc BatchCreateMessages(BatchCreateMessagesRequest) returns (BatchCreateMessagesResponse) { + option (google.api.http) = { + post: "/v2beta1/{parent=projects/*/conversations/*}/messages:batchCreate" + body: "*" + additional_bindings { + post: "/v2beta1/{parent=projects/*/locations/*/conversations/*}/messages:batchCreate" + body: "*" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Lists messages that belong to a given conversation. + // `messages` are ordered by `create_time` in descending order. To fetch + // updates without duplication, send request with filter + // `create_time_epoch_microseconds > + // [first item's create_time of previous request]` and empty page_token. + rpc ListMessages(ListMessagesRequest) returns (ListMessagesResponse) { + option (google.api.http) = { + get: "/v2beta1/{parent=projects/*/conversations/*}/messages" + additional_bindings { + get: "/v2beta1/{parent=projects/*/locations/*/conversations/*}/messages" + } + }; + option (google.api.method_signature) = "parent"; + } +} + +// Represents a conversation. +// A conversation is an interaction between an agent, including live agents +// and Dialogflow agents, and a support customer. Conversations can +// include phone calls and text-based chat sessions. +message Conversation { + option (google.api.resource) = { + type: "dialogflow.googleapis.com/Conversation" + pattern: "projects/{project}/conversations/{conversation}" + pattern: "projects/{project}/locations/{location}/conversations/{conversation}" + }; + + // Enumeration of the completion status of the conversation. + enum LifecycleState { + // Unknown. + LIFECYCLE_STATE_UNSPECIFIED = 0; + + // Conversation is currently open for media analysis. + IN_PROGRESS = 1; + + // Conversation has been completed. + COMPLETED = 2; + } + + // Enumeration of the different conversation stages a conversation can be in. + // Reference: + // https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages + enum ConversationStage { + // Unknown. Should never be used after a conversation is successfully + // created. + CONVERSATION_STAGE_UNSPECIFIED = 0; + + // The conversation should return virtual agent responses into the + // conversation. + VIRTUAL_AGENT_STAGE = 1; + + // The conversation should not provide responses, just listen and provide + // suggestions. + HUMAN_ASSIST_STAGE = 2; + } + + // Output only. The unique identifier of this conversation. + // Format: `projects//locations//conversations/`. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The current state of the Conversation. + LifecycleState lifecycle_state = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The Conversation Profile to be used to configure this + // Conversation. This field cannot be updated. + // Format: `projects//locations//conversationProfiles/`. + string conversation_profile = 3 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/ConversationProfile" + } + ]; + + // Output only. Required if the conversation is to be connected over + // telephony. + ConversationPhoneNumber phone_number = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The stage of a conversation. It indicates whether the virtual agent or a + // human agent is handling the conversation. + // + // If the conversation is created with the conversation profile that has + // Dialogflow config set, defaults to + // [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2beta1.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE]; Otherwise, defaults to + // [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2beta1.Conversation.ConversationStage.HUMAN_ASSIST_STAGE]. + // + // If the conversation is created with the conversation profile that has + // Dialogflow config set but explicitly sets conversation_stage to + // [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2beta1.Conversation.ConversationStage.HUMAN_ASSIST_STAGE], it skips + // [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2beta1.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE] stage and directly goes to + // [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2beta1.Conversation.ConversationStage.HUMAN_ASSIST_STAGE]. + ConversationStage conversation_stage = 7; + + // Output only. The time the conversation was started. + google.protobuf.Timestamp start_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time the conversation was finished. + google.protobuf.Timestamp end_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Represents a phone number for telephony integration. It allows for connecting +// a particular conversation over telephony. +message ConversationPhoneNumber { + // Output only. The phone number to connect to this conversation. + string phone_number = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Represents a call matcher that describes criteria for matching incoming SIP +// calls to a conversation. When Dialogflow get a SIP call from a third-party +// carrier, Dialogflow matches the call to an existing conversation by either: +// +// * Extracting the conversation id from the +// [Call-Info header](https://tools.ietf.org/html/rfc3261#section-20.9), e.g. +// `Call-Info: +// +// ;purpose=Goog-ContactCenter-Conversation`. +// * Or, if that doesn't work, matching incoming [SIP +// headers](https://tools.ietf.org/html/rfc3261#section-7.3) +// against any [CallMatcher][google.cloud.dialogflow.v2beta1.CallMatcher] for the conversation. +// +// If an incoming SIP call without valid `Call-Info` header matches to zero or +// multiple conversations with `CallMatcher`, we reject it. +// +// A call matcher contains equality conditions for SIP headers that all have +// to be fulfilled in order for a SIP call to match. +// +// The matched SIP headers consist of well-known headers (`To`, `From`, +// `Call-ID`) and custom headers. A [CallMatcher][google.cloud.dialogflow.v2beta1.CallMatcher] is only valid if it +// specifies: +// +// * At least 1 custom header, +// * or at least 2 well-known headers. +message CallMatcher { + option (google.api.resource) = { + type: "dialogflow.googleapis.com/CallMatcher" + pattern: "projects/{project}/conversations/{conversation}/callMatchers/{call_matcher}" + pattern: "projects/{project}/locations/{location}/conversations/{conversation}/callMatchers/{call_matcher}" + }; + + // Custom SIP headers. See the [description of headers in + // the RFC](https://tools.ietf.org/html/rfc3261#section-7.3). + message CustomHeaders { + // Cisco's proprietary `Cisco-Guid` header. + string cisco_guid = 1; + } + + // Output only. The unique identifier of this call matcher. + // Format: `projects//locations//conversations//callMatchers/`. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Value of the [`To` + // header](https://tools.ietf.org/html/rfc3261#section-8.1.1.2) to match. If + // empty or unspecified, we don't match to the + // [`To` header](https://tools.ietf.org/html/rfc3261#section-8.1.1.2). + string to_header = 2; + + // Value of the [`From` + // header](https://tools.ietf.org/html/rfc3261#section-8.1.1.3) to match. If + // empty or unspecified, we don't match to the + // [`From` header](https://tools.ietf.org/html/rfc3261#section-8.1.1.3). + string from_header = 3; + + // Value of the [`Call-ID` + // header](https://tools.ietf.org/html/rfc3261#section-8.1.1.4) to match. If + // empty or unspecified, we don't match to the + // [`Call-ID` header](https://tools.ietf.org/html/rfc3261#section-8.1.1.4). + string call_id_header = 4; + + // Custom SIP headers that must match. + CustomHeaders custom_headers = 5; +} + +// The request message for [Conversations.CreateConversation][google.cloud.dialogflow.v2beta1.Conversations.CreateConversation]. +message CreateConversationRequest { + // Required. Resource identifier of the project creating the conversation. + // Format: `projects//locations/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/Conversation" + } + ]; + + // Required. The conversation to create. + Conversation conversation = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Identifier of the conversation. Generally it's auto generated by Google. + // Only set it if you cannot wait for the response to return a + // auto-generated one to you. + // + // The conversation ID must be compliant with the regression fomula + // "[a-zA-Z][a-zA-Z0-9_-]*" with the characters length in range of [3,64]. + // If the field is provided, the caller is resposible for + // 1. the uniqueness of the ID, otherwise the request will be rejected. + // 2. the consistency for whether to use custom ID or not under a project to + // better ensure uniqueness. + string conversation_id = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// The request message for [Conversations.ListConversations][google.cloud.dialogflow.v2beta1.Conversations.ListConversations]. +message ListConversationsRequest { + // Required. The project from which to list all conversation. + // Format: `projects//locations/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/Conversation" + } + ]; + + // Optional. The maximum number of items to return in a single page. By + // default 100 and at most 1000. + int32 page_size = 2; + + // Optional. The next_page_token value returned from a previous list request. + string page_token = 3; + + // A filter expression that filters conversations listed in the response. In + // general, the expression must specify the field name, a comparison operator, + // and the value to use for filtering: + //
    + //
  • The value must be a string, a number, or a boolean.
  • + //
  • The comparison operator must be either `=`,`!=`, `>`, or `<`.
  • + //
  • To filter on multiple expressions, separate the + // expressions with `AND` or `OR` (omitting both implies `AND`).
  • + //
  • For clarity, expressions can be enclosed in parentheses.
  • + //
+ // Only `lifecycle_state` can be filtered on in this way. For example, + // the following expression only returns `COMPLETED` conversations: + // + // `lifecycle_state = "COMPLETED"` + // + // For more information about filtering, see + // [API Filtering](https://aip.dev/160). + string filter = 4; +} + +// The response message for [Conversations.ListConversations][google.cloud.dialogflow.v2beta1.Conversations.ListConversations]. +message ListConversationsResponse { + // The list of conversations. There will be a maximum number of items + // returned based on the page_size field in the request. + repeated Conversation conversations = 1; + + // Token to retrieve the next page of results, or empty if there are no + // more results in the list. + string next_page_token = 2; +} + +// The request message for [Conversations.GetConversation][google.cloud.dialogflow.v2beta1.Conversations.GetConversation]. +message GetConversationRequest { + // Required. The name of the conversation. Format: + // `projects//locations//conversations/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Conversation" + } + ]; +} + +// The request message for [Conversations.CompleteConversation][google.cloud.dialogflow.v2beta1.Conversations.CompleteConversation]. +message CompleteConversationRequest { + // Required. Resource identifier of the conversation to close. + // Format: `projects//locations//conversations/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Conversation" + } + ]; +} + +// The request message for [Conversations.CreateCallMatcher][google.cloud.dialogflow.v2beta1.Conversations.CreateCallMatcher]. +message CreateCallMatcherRequest { + // Required. Resource identifier of the conversation adding the call matcher. + // Format: `projects//locations//conversations/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/CallMatcher" + } + ]; + + // Required. The call matcher to create. + CallMatcher call_matcher = 2; +} + +// The request message for [Conversations.ListCallMatchers][google.cloud.dialogflow.v2beta1.Conversations.ListCallMatchers]. +message ListCallMatchersRequest { + // Required. The conversation to list all call matchers from. + // Format: `projects//locations//conversations/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/CallMatcher" + } + ]; + + // Optional. The maximum number of items to return in a single page. By + // default 100 and at most 1000. + int32 page_size = 2; + + // Optional. The next_page_token value returned from a previous list request. + string page_token = 3; +} + +// The response message for [Conversations.ListCallMatchers][google.cloud.dialogflow.v2beta1.Conversations.ListCallMatchers]. +message ListCallMatchersResponse { + // The list of call matchers. There is a maximum number of items + // returned based on the page_size field in the request. + repeated CallMatcher call_matchers = 1; + + // Token to retrieve the next page of results or empty if there are no + // more results in the list. + string next_page_token = 2; +} + +// The request message for [Conversations.DeleteCallMatcher][google.cloud.dialogflow.v2beta1.Conversations.DeleteCallMatcher]. +message DeleteCallMatcherRequest { + // Required. The unique identifier of the [CallMatcher][google.cloud.dialogflow.v2beta1.CallMatcher] to delete. + // Format: `projects//locations//conversations//callMatchers/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/CallMatcher" + } + ]; +} + +// The request message to create one Message. Currently it is only used in +// BatchCreateMessagesRequest. +message CreateMessageRequest { + // Required. Resource identifier of the conversation to create message. + // Format: `projects//locations//conversations/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Conversation" + } + ]; + + // Required. The message to create. + // [Message.participant][google.cloud.dialogflow.v2beta1.Message.participant] is required. + Message message = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// The request message for [Conversations.BatchCreateMessagesRequest][]. +message BatchCreateMessagesRequest { + // Required. Resource identifier of the conversation to create message. + // Format: `projects//locations//conversations/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Conversation" + } + ]; + + // Required. A maximum of 1000 Messages can be created in a batch. + // [CreateMessageRequest.message.send_time][] is required. All created + // messages will have identical [Message.create_time][google.cloud.dialogflow.v2beta1.Message.create_time]. + repeated CreateMessageRequest requests = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// The request message for [Conversations.BatchCreateMessagesResponse][]. +message BatchCreateMessagesResponse { + // Messages created. + repeated Message messages = 1; +} + +// The request message for [Conversations.ListMessages][google.cloud.dialogflow.v2beta1.Conversations.ListMessages]. +message ListMessagesRequest { + // Required. The name of the conversation to list messages for. + // Format: `projects//locations//conversations/` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/Message" + } + ]; + + // Optional. Filter on message fields. Currently predicates on `create_time` + // and `create_time_epoch_microseconds` are supported. `create_time` only + // support milliseconds accuracy. E.g., + // `create_time_epoch_microseconds > 1551790877964485` or + // `create_time > 2017-01-15T01:30:15.01Z`. + // + // For more information about filtering, see + // [API Filtering](https://aip.dev/160). + string filter = 4; + + // Optional. The maximum number of items to return in a single page. By + // default 100 and at most 1000. + int32 page_size = 2; + + // Optional. The next_page_token value returned from a previous list request. + string page_token = 3; +} + +// The response message for [Conversations.ListMessages][google.cloud.dialogflow.v2beta1.Conversations.ListMessages]. +message ListMessagesResponse { + // Required. The list of messages. There will be a maximum number of items + // returned based on the page_size field in the request. + // `messages` is sorted by `create_time` in descending order. + repeated Message messages = 1; + + // Optional. Token to retrieve the next page of results, or empty if there are + // no more results in the list. + string next_page_token = 2; +} diff --git a/third_party/googleapis/google/cloud/dialogflow/v2beta1/conversation_event.proto b/third_party/googleapis/google/cloud/dialogflow/v2beta1/conversation_event.proto new file mode 100644 index 000000000..35c1de1ee --- /dev/null +++ b/third_party/googleapis/google/cloud/dialogflow/v2beta1/conversation_event.proto @@ -0,0 +1,82 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.v2beta1; + +import "google/cloud/dialogflow/v2beta1/participant.proto"; +import "google/rpc/status.proto"; +import "google/api/annotations.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Dialogflow.V2beta1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1;dialogflow"; +option java_multiple_files = true; +option java_outer_classname = "ConversationEventProto"; +option java_package = "com.google.cloud.dialogflow.v2beta1"; +option objc_class_prefix = "DF"; + +// Represents a notification sent to Pub/Sub subscribers for conversation +// lifecycle events. +message ConversationEvent { + // Enumeration of the types of events available. + enum Type { + // Type not set. + TYPE_UNSPECIFIED = 0; + + // A new conversation has been opened. This is fired when a telephone call + // is answered, or a conversation is created via the API. + CONVERSATION_STARTED = 1; + + // An existing conversation has closed. This is fired when a telephone call + // is terminated, or a conversation is closed via the API. + CONVERSATION_FINISHED = 2; + + // An existing conversation has received a new message, either from API or + // telephony. It is configured in + // [ConversationProfile.new_message_event_notification_config][google.cloud.dialogflow.v2beta1.ConversationProfile.new_message_event_notification_config] + NEW_MESSAGE = 5; + + // Unrecoverable error during a telephone call. + // + // In general non-recoverable errors only occur if something was + // misconfigured in the ConversationProfile corresponding to the call. After + // a non-recoverable error, Dialogflow may stop responding. + // + // We don't fire this event: + // + // * in an API call because we can directly return the error, or, + // * when we can recover from an error. + UNRECOVERABLE_ERROR = 4; + } + + // Required. The unique identifier of the conversation this notification + // refers to. + // Format: `projects//conversations/`. + string conversation = 1; + + // Required. The type of the event that this notification refers to. + Type type = 2; + + // Optional. More detailed information about an error. Only set for type + // UNRECOVERABLE_ERROR_IN_PHONE_CALL. + google.rpc.Status error_status = 3; + + // Payload of conversation event. + oneof payload { + // Payload of NEW_MESSAGE event. + Message new_message_payload = 4; + } +} diff --git a/third_party/googleapis/google/cloud/dialogflow/v2beta1/conversation_profile.proto b/third_party/googleapis/google/cloud/dialogflow/v2beta1/conversation_profile.proto new file mode 100644 index 000000000..4d7513736 --- /dev/null +++ b/third_party/googleapis/google/cloud/dialogflow/v2beta1/conversation_profile.proto @@ -0,0 +1,564 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.v2beta1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/dialogflow/v2beta1/audio_config.proto"; +import "google/cloud/dialogflow/v2beta1/document.proto"; +import "google/cloud/dialogflow/v2beta1/participant.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Dialogflow.V2beta1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1;dialogflow"; +option java_multiple_files = true; +option java_outer_classname = "ConversationProfileProto"; +option java_package = "com.google.cloud.dialogflow.v2beta1"; +option objc_class_prefix = "DF"; + +// Service for managing [ConversationProfiles][google.cloud.dialogflow.v2beta1.ConversationProfile]. +service ConversationProfiles { + option (google.api.default_host) = "dialogflow.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/dialogflow"; + + // Returns the list of all conversation profiles in the specified project. + rpc ListConversationProfiles(ListConversationProfilesRequest) returns (ListConversationProfilesResponse) { + option (google.api.http) = { + get: "/v2beta1/{parent=projects/*}/conversationProfiles" + additional_bindings { + get: "/v2beta1/{parent=projects/*/locations/*}/conversationProfiles" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Retrieves the specified conversation profile. + rpc GetConversationProfile(GetConversationProfileRequest) returns (ConversationProfile) { + option (google.api.http) = { + get: "/v2beta1/{name=projects/*/conversationProfiles/*}" + additional_bindings { + get: "/v2beta1/{name=projects/*/locations/*/conversationProfiles/*}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Creates a conversation profile in the specified project. + // + // [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] + // aren't populated in the response. You can retrieve them via + // [GetConversationProfile][google.cloud.dialogflow.v2beta1.ConversationProfiles.GetConversationProfile] API. + rpc CreateConversationProfile(CreateConversationProfileRequest) returns (ConversationProfile) { + option (google.api.http) = { + post: "/v2beta1/{parent=projects/*}/conversationProfiles" + body: "conversation_profile" + additional_bindings { + post: "/v2beta1/{parent=projects/*/locations/*}/conversationProfiles" + body: "conversation_profile" + } + }; + option (google.api.method_signature) = "parent,conversation_profile"; + } + + // Updates the specified conversation profile. + // + // [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] + // aren't populated in the response. You can retrieve them via + // [GetConversationProfile][google.cloud.dialogflow.v2beta1.ConversationProfiles.GetConversationProfile] API. + rpc UpdateConversationProfile(UpdateConversationProfileRequest) returns (ConversationProfile) { + option (google.api.http) = { + patch: "/v2beta1/{conversation_profile.name=projects/*/conversationProfiles/*}" + body: "conversation_profile" + additional_bindings { + patch: "/v2beta1/{conversation_profile.name=projects/*/locations/*/conversationProfiles/*}" + body: "conversation_profile" + } + }; + option (google.api.method_signature) = "conversation_profile,update_mask"; + } + + // Deletes the specified conversation profile. + rpc DeleteConversationProfile(DeleteConversationProfileRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v2beta1/{name=projects/*/conversationProfiles/*}" + additional_bindings { + delete: "/v2beta1/{name=projects/*/locations/*/conversationProfiles/*}" + } + }; + option (google.api.method_signature) = "name"; + } +} + +// Defines the services to connect to incoming Dialogflow conversations. +message ConversationProfile { + option (google.api.resource) = { + type: "dialogflow.googleapis.com/ConversationProfile" + pattern: "projects/{project}/conversationProfiles/{conversation_profile}" + pattern: "projects/{project}/locations/{location}/conversationProfiles/{conversation_profile}" + }; + + // The unique identifier of this conversation profile. + // Format: `projects//locations//conversationProfiles/`. + string name = 1; + + // Required. Human readable name for this profile. Max length 1024 bytes. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Output only. Create time of the conversation profile. + google.protobuf.Timestamp create_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Update time of the conversation profile. + google.protobuf.Timestamp update_time = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Configuration for an automated agent to use with this profile. + AutomatedAgentConfig automated_agent_config = 3; + + // Configuration for agent assistance to use with this profile. + HumanAgentAssistantConfig human_agent_assistant_config = 4; + + // Configuration for connecting to a live agent. + HumanAgentHandoffConfig human_agent_handoff_config = 5; + + // Configuration for publishing conversation lifecycle events. + NotificationConfig notification_config = 6; + + // Configuration for logging conversation lifecycle events. + LoggingConfig logging_config = 7; + + // Configuration for publishing new message events. Event will be sent in + // format of [ConversationEvent][google.cloud.dialogflow.v2beta1.ConversationEvent] + NotificationConfig new_message_event_notification_config = 8; + + // Settings for speech transcription. + SpeechToTextConfig stt_config = 9; + + // Language code for the conversation profile. If not specified, the language + // is en-US. Language at ConversationProfile should be set for all non en-us + // languages. + string language_code = 10; +} + +// Defines the Automated Agent to connect to a conversation. +message AutomatedAgentConfig { + // Required. ID of the Dialogflow agent environment to use. + // + // This project needs to either be the same project as the conversation or you + // need to grant `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow API + // Service Agent` role in this project. + // + // - For ES agents, use format: `projects//locations//agent/environments/`. If environment is not + // specified, the default `draft` environment is used. Refer to + // [DetectIntentRequest](/dialogflow/docs/reference/rpc/google.cloud.dialogflow.v2beta1#google.cloud.dialogflow.v2beta1.DetectIntentRequest) + // for more details. + // + // - For CX agents, use format `projects//locations//agents//environments/`. If environment is not specified, the default `draft` environment + // is used. + string agent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Agent" + } + ]; +} + +// Defines the Human Agent Assistant to connect to a conversation. +message HumanAgentAssistantConfig { + // Settings of suggestion trigger. + message SuggestionTriggerSettings { + // Do not trigger if last utterance is small talk. + bool no_small_talk = 1; + + // Only trigger suggestion if participant role of last utterance is + // END_USER. + bool only_end_user = 2; + } + + // Config for suggestion features. + message SuggestionFeatureConfig { + // The suggestion feature. + SuggestionFeature suggestion_feature = 5; + + // Automatically iterates all participants and tries to compile + // suggestions. + // + // Supported features: ARTICLE_SUGGESTION, FAQ, DIALOGFLOW_ASSIST. + bool enable_event_based_suggestion = 3; + + // Settings of suggestion trigger. + // + // Currently, only ARTICLE_SUGGESTION, FAQ, and DIALOGFLOW_ASSIST will use + // this field. + SuggestionTriggerSettings suggestion_trigger_settings = 10; + + // Configs of query. + SuggestionQueryConfig query_config = 6; + + // Configs of custom conversation model. + ConversationModelConfig conversation_model_config = 7; + } + + // Detail human agent assistant config. + message SuggestionConfig { + // Configuration of different suggestion features. One feature can have only + // one config. + repeated SuggestionFeatureConfig feature_configs = 2; + + // If `group_suggestion_responses` is false, and there are multiple + // `feature_configs` in `event based suggestion` or + // StreamingAnalyzeContent, we will try to deliver suggestions to customers + // as soon as we get new suggestion. Different type of suggestions based on + // the same context will be in separate Pub/Sub event or + // `StreamingAnalyzeContentResponse`. + // + // If `group_suggestion_responses` set to true. All the suggestions to the + // same participant based on the same context will be grouped into a single + // Pub/Sub event or StreamingAnalyzeContentResponse. + bool group_suggestion_responses = 3; + } + + // Config for suggestion query. + message SuggestionQueryConfig { + // Knowledge base source settings. + // + // Supported features: ARTICLE_SUGGESTION, FAQ. + message KnowledgeBaseQuerySource { + // Required. Knowledge bases to query. Format: + // `projects//locations//knowledgeBases/`. Currently, only one knowledge + // base is supported. + repeated string knowledge_bases = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/KnowledgeBase" + } + ]; + } + + // Document source settings. + // + // Supported features: SMART_REPLY, SMART_COMPOSE. + message DocumentQuerySource { + // Required. Knowledge documents to query from. Format: + // `projects//locations//knowledgeBases//documents/`. + // Currently, only one document is supported. + repeated string documents = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Document" + } + ]; + } + + // Dialogflow source setting. + // + // Supported feature: DIALOGFLOW_ASSIST. + message DialogflowQuerySource { + // Required. The name of a dialogflow virtual agent used for end user side intent + // detection and suggestion. Format: `projects//locations//agent`. When multiple agents are allowed in + // the same Dialogflow project. + string agent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Agent" + } + ]; + } + + // Settings that determine how to filter recent conversation context when + // generating suggestions. + message ContextFilterSettings { + // If set to true, the last message from virtual agent (hand off message) + // and the message before it (trigger message of hand off) are dropped. + bool drop_handoff_messages = 1; + + // If set to true, all messages from virtual agent are dropped. + bool drop_virtual_agent_messages = 2; + + // If set to true, all messages from ivr stage are dropped. + bool drop_ivr_messages = 3; + } + + // Source of query. + oneof query_source { + // Query from knowledgebase. It is used by: + // ARTICLE_SUGGESTION, FAQ. + KnowledgeBaseQuerySource knowledge_base_query_source = 1; + + // Query from knowledge base document. It is used by: + // SMART_REPLY, SMART_COMPOSE. + DocumentQuerySource document_query_source = 2; + + // Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST. + DialogflowQuerySource dialogflow_query_source = 3; + } + + // Maximum number of results to return. Currently, if unset, defaults to 10. + // And the max number is 20. + int32 max_results = 4; + + // Confidence threshold of query result. + // + // Agent Assist gives each suggestion a score in the range [0.0, 1.0], based + // on the relevance between the suggestion and the current conversation + // context. A score of 0.0 has no relevance, while a score of 1.0 has high + // relevance. Only suggestions with a score greater than or equal to the + // value of this field are included in the results. + // + // For a baseline model (the default), the recommended value is in the range + // [0.05, 0.1]. + // + // For a custom model, there is no recommended value. Tune this value by + // starting from a very low value and slowly increasing until you have + // desired results. + // + // If this field is not set, it is default to 0.0, which means that all + // suggestions are returned. + // + // Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE. + float confidence_threshold = 5; + + // Determines how recent conversation context is filtered when generating + // suggestions. If unspecified, no messages will be dropped. + ContextFilterSettings context_filter_settings = 7; + } + + // Custom conversation models used in agent assist feature. + // + // Supported feature: ARTICLE_SUGGESTION, SMART_COMPOSE, SMART_REPLY. + message ConversationModelConfig { + // Required. Conversation model resource name. Format: `projects//conversationModels/`. + string model = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/ConversationModel" + } + ]; + } + + // Configuration for analyses to run on each conversation message. + message MessageAnalysisConfig { + // Enable entity extraction in conversation messages on [agent assist + // stage](https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages). + // If unspecified, defaults to false. + bool enable_entity_extraction = 2; + + // Enable sentiment analysis in conversation messages on [agent assist + // stage](https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages). + // If unspecified, defaults to false. Sentiment analysis inspects user input + // and identifies the prevailing subjective opinion, especially to determine + // a user's attitude as positive, negative, or neutral: + // https://cloud.google.com/natural-language/docs/basics#sentiment_analysis + // For [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.StreamingAnalyzeContent] method, result will be in + // [StreamingAnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentResponse.message]. + // For [Participants.AnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent] method, result will be in + // [AnalyzeContentResponse.message.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.AnalyzeContentResponse.message] + // For [Conversations.ListMessages][google.cloud.dialogflow.v2beta1.Conversations.ListMessages] method, result will be in + // [ListMessagesResponse.messages.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.ListMessagesResponse.messages] + // If Pub/Sub notification is configured, result will be in + // [ConversationEvent.new_message_payload.SentimentAnalysisResult][google.cloud.dialogflow.v2beta1.ConversationEvent.new_message_payload]. + bool enable_sentiment_analysis = 3; + } + + // Pub/Sub topic on which to publish new agent assistant events. + NotificationConfig notification_config = 2; + + // Configuration for agent assistance of human agent participant. + SuggestionConfig human_agent_suggestion_config = 3; + + // Configuration for agent assistance of end user participant. + SuggestionConfig end_user_suggestion_config = 4; + + // Configuration for message analysis. + MessageAnalysisConfig message_analysis_config = 5; +} + +// Defines the hand off to a live agent, typically on which external agent +// service provider to connect to a conversation. +message HumanAgentHandoffConfig { + // Configuration specific to LivePerson (https://www.liveperson.com). + message LivePersonConfig { + // Required. Account number of the LivePerson account to connect. This is + // the account number you input at the login page. + string account_number = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // Configuration specific to Salesforce Live Agent. + message SalesforceLiveAgentConfig { + // Required. The organization ID of the Salesforce account. + string organization_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Live Agent deployment ID. + string deployment_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Live Agent chat button ID. + string button_id = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. Domain of the Live Agent endpoint for this agent. You can find + // the endpoint URL in the `Live Agent settings` page. For example if URL + // has the form https://d.la4-c2-phx.salesforceliveagent.com/..., + // you should fill in d.la4-c2-phx.salesforceliveagent.com. + string endpoint_domain = 4 [(google.api.field_behavior) = REQUIRED]; + } + + // Required. Specifies which agent service to connect for human agent handoff. + oneof agent_service { + // Uses LivePerson (https://www.liveperson.com). + LivePersonConfig live_person_config = 1; + + // Uses Salesforce Live Agent. + SalesforceLiveAgentConfig salesforce_live_agent_config = 2; + } +} + +// Defines notification behavior. +message NotificationConfig { + // Format of cloud pub/sub message. + enum MessageFormat { + // If it is unspecified, PROTO will be used. + MESSAGE_FORMAT_UNSPECIFIED = 0; + + // Pubsub message will be serialized proto. + PROTO = 1; + + // Pubsub message will be json. + JSON = 2; + } + + // Name of the Pub/Sub topic to publish conversation + // events like + // [CONVERSATION_STARTED][google.cloud.dialogflow.v2beta1.ConversationEvent.Type.CONVERSATION_STARTED] as + // serialized [ConversationEvent][google.cloud.dialogflow.v2beta1.ConversationEvent] protos. + // + // Notification works for phone calls, if this topic either is in the same + // project as the conversation or you grant `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow Service + // Agent` role in the topic project. + // + // Format: `projects//locations//topics/`. + string topic = 1; + + // Format of message. + MessageFormat message_format = 2; +} + +// Defines logging behavior for conversation lifecycle events. +message LoggingConfig { + // Whether to log conversation events like + // [CONVERSATION_STARTED][google.cloud.dialogflow.v2beta1.ConversationEvent.Type.CONVERSATION_STARTED] to + // Stackdriver in the conversation project as JSON format + // [ConversationEvent][google.cloud.dialogflow.v2beta1.ConversationEvent] protos. + bool enable_stackdriver_logging = 3; +} + +// The request message for [ConversationProfiles.ListConversationProfiles][google.cloud.dialogflow.v2beta1.ConversationProfiles.ListConversationProfiles]. +message ListConversationProfilesRequest { + // Required. The project to list all conversation profiles from. + // Format: `projects//locations/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/ConversationProfile" + } + ]; + + // The maximum number of items to return in a single page. By + // default 100 and at most 1000. + int32 page_size = 2; + + // The next_page_token value returned from a previous list request. + string page_token = 3; +} + +// The response message for [ConversationProfiles.ListConversationProfiles][google.cloud.dialogflow.v2beta1.ConversationProfiles.ListConversationProfiles]. +message ListConversationProfilesResponse { + // The list of project conversation profiles. There is a maximum number + // of items returned based on the page_size field in the request. + repeated ConversationProfile conversation_profiles = 1; + + // Token to retrieve the next page of results, or empty if there are no + // more results in the list. + string next_page_token = 2; +} + +// The request message for [ConversationProfiles.GetConversationProfile][google.cloud.dialogflow.v2beta1.ConversationProfiles.GetConversationProfile]. +message GetConversationProfileRequest { + // Required. The resource name of the conversation profile. + // Format: `projects//locations//conversationProfiles/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/ConversationProfile" + } + ]; +} + +// The request message for [ConversationProfiles.CreateConversationProfile][google.cloud.dialogflow.v2beta1.ConversationProfiles.CreateConversationProfile]. +message CreateConversationProfileRequest { + // Required. The project to create a conversation profile for. + // Format: `projects//locations/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/ConversationProfile" + } + ]; + + // Required. The conversation profile to create. + ConversationProfile conversation_profile = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// The request message for [ConversationProfiles.UpdateConversationProfile][google.cloud.dialogflow.v2beta1.ConversationProfiles.UpdateConversationProfile]. +message UpdateConversationProfileRequest { + // Required. The conversation profile to update. + ConversationProfile conversation_profile = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The mask to control which fields to update. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// The request message for [ConversationProfiles.DeleteConversationProfile][google.cloud.dialogflow.v2beta1.ConversationProfiles.DeleteConversationProfile]. +// +// This operation fails if the conversation profile is still referenced from +// a phone number. +message DeleteConversationProfileRequest { + // Required. The name of the conversation profile to delete. + // Format: `projects//locations//conversationProfiles/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/ConversationProfile" + } + ]; +} diff --git a/third_party/googleapis/google/cloud/dialogflow/v2beta1/dialogflow_gapic.legacy.yaml b/third_party/googleapis/google/cloud/dialogflow/v2beta1/dialogflow_gapic.legacy.yaml deleted file mode 100644 index 0c46cf3e2..000000000 --- a/third_party/googleapis/google/cloud/dialogflow/v2beta1/dialogflow_gapic.legacy.yaml +++ /dev/null @@ -1,1754 +0,0 @@ -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.dialogflow.v2beta1 - release_level: BETA - python: - package_name: google.cloud.dialogflow_v2beta1.gapic - go: - package_name: cloud.google.com/go/cloud/dialogflow/apiv2beta1 - csharp: - package_name: Google.Cloud.Dialogflow.V2Beta1 - ruby: - package_name: Google::Cloud::Dialogflow::V2beta1 - php: - package_name: Google\Cloud\Dialogflow\V2beta1 - nodejs: - package_name: dialogflow.v2beta1 - domain_layer_location: google-cloud -# A list of API interface configurations. -interfaces: -# The fully qualified name of the API interface. -- name: google.cloud.dialogflow.v2beta1.Agents - # 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: - - name_pattern: projects/{project} - entity_name: project - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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. - # - # 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: SetAgent - flattening: - groups: - - parameters: - - agent - required_fields: - - agent - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - agent.parent: project - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: DeleteAgent - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: GetAgent - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: SearchAgents - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: agents - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: TrainAgent - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 60000 - long_running: - # LINT.IfChange(train_agent_long_running_operation) - return_type: google.protobuf.Empty - metadata_type: google.protobuf.Struct - # LINT.ThenChange() - initial_poll_delay_millis: 500 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 5000 - total_poll_timeout_millis: 300000 - resource_name_treatment: STATIC_TYPES - - name: ExportAgent - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 60000 - long_running: - # LINT.IfChange(export_agent_long_running_operation) - return_type: google.cloud.dialogflow.v2beta1.ExportAgentResponse - metadata_type: google.protobuf.Struct - # LINT.ThenChange() - initial_poll_delay_millis: 500 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 5000 - total_poll_timeout_millis: 300000 - resource_name_treatment: STATIC_TYPES - - name: ImportAgent - required_fields: - - parent - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 60000 - long_running: - # LINT.IfChange(import_agent_long_running_operation) - return_type: google.protobuf.Empty - metadata_type: google.protobuf.Struct - # LINT.ThenChange() - initial_poll_delay_millis: 500 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 5000 - total_poll_timeout_millis: 300000 - resource_name_treatment: STATIC_TYPES - - name: RestoreAgent - required_fields: - - parent - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 60000 - long_running: - # LINT.IfChange(restore_agent_long_running_operation) - return_type: google.protobuf.Empty - metadata_type: google.protobuf.Struct - # LINT.ThenChange() - initial_poll_delay_millis: 500 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 5000 - total_poll_timeout_millis: 300000 - resource_name_treatment: STATIC_TYPES -# The fully qualified name of the API interface. -- name: google.cloud.dialogflow.v2beta1.Contexts - # 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: - - name_pattern: projects/{project}/agent/sessions/{session} - entity_name: session - - name_pattern: projects/{project}/agent/environments/{environment}/users/{user}/sessions/{session} - entity_name: environment_session - - name_pattern: projects/{project}/agent/sessions/{session}/contexts/{context} - entity_name: context - - name_pattern: projects/{project}/agent/environments/{environment}/users/{user}/sessions/{session}/contexts/{context} - entity_name: environment_context - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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. - # - # 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: ListContexts - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: contexts - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: session - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: GetContext - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: context - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: CreateContext - flattening: - groups: - - parameters: - - parent - - context - required_fields: - - parent - - context - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: session - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: UpdateContext - flattening: - groups: - - parameters: - - context - required_fields: - - context - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - context.name: context - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: DeleteContext - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: context - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: DeleteAllContexts - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: session - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES -# The fully qualified name of the API interface. -- name: google.cloud.dialogflow.v2beta1.EntityTypes - # 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: - - name_pattern: projects/{project}/agent - entity_name: project_agent - - name_pattern: projects/{project}/agent/entityTypes/{entity_type} - entity_name: entity_type - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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. - # - # 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: ListEntityTypes - flattening: - groups: - - parameters: - - parent - - parameters: - - parent - - language_code - required_fields: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: entity_types - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: project_agent - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: GetEntityType - flattening: - groups: - - parameters: - - name - - parameters: - - name - - language_code - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: entity_type - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: CreateEntityType - flattening: - groups: - - parameters: - - parent - - entity_type - - parameters: - - parent - - entity_type - - language_code - required_fields: - - parent - - entity_type - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: project_agent - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: UpdateEntityType - flattening: - groups: - - parameters: - - entity_type - - parameters: - - entity_type - - language_code - required_fields: - - entity_type - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - entity_type.name: entity_type - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: DeleteEntityType - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: entity_type - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: BatchUpdateEntityTypes - required_fields: - - parent - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: project_agent - timeout_millis: 60000 - long_running: - # LINT.IfChange(batch_update_entity_types_long_running_operation) - return_type: google.cloud.dialogflow.v2beta1.BatchUpdateEntityTypesResponse - metadata_type: google.protobuf.Struct - # LINT.ThenChange() - initial_poll_delay_millis: 500 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 5000 - total_poll_timeout_millis: 300000 - resource_name_treatment: STATIC_TYPES - - name: BatchDeleteEntityTypes - flattening: - groups: - - parameters: - - parent - - entity_type_names - required_fields: - - parent - - entity_type_names - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: project_agent - timeout_millis: 60000 - long_running: - # LINT.IfChange(batch_delete_entity_types_long_running_operation) - return_type: google.protobuf.Empty - metadata_type: google.protobuf.Struct - # LINT.ThenChange() - initial_poll_delay_millis: 500 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 5000 - total_poll_timeout_millis: 300000 - resource_name_treatment: STATIC_TYPES - - name: BatchCreateEntities - flattening: - groups: - - parameters: - - parent - - entities - - parameters: - - parent - - entities - - language_code - required_fields: - - parent - - entities - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: entity_type - timeout_millis: 60000 - long_running: - # LINT.IfChange(batch_create_entities_long_running_operation) - return_type: google.protobuf.Empty - metadata_type: google.protobuf.Struct - # LINT.ThenChange() - initial_poll_delay_millis: 500 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 5000 - total_poll_timeout_millis: 300000 - resource_name_treatment: STATIC_TYPES - - name: BatchUpdateEntities - flattening: - groups: - - parameters: - - parent - - entities - - parameters: - - parent - - entities - - language_code - required_fields: - - parent - - entities - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: entity_type - timeout_millis: 60000 - long_running: - # LINT.IfChange(batch_update_entities_long_running_operation) - return_type: google.protobuf.Empty - metadata_type: google.protobuf.Struct - # LINT.ThenChange() - initial_poll_delay_millis: 500 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 5000 - total_poll_timeout_millis: 300000 - resource_name_treatment: STATIC_TYPES - - name: BatchDeleteEntities - flattening: - groups: - - parameters: - - parent - - entity_values - - parameters: - - parent - - entity_values - - language_code - required_fields: - - parent - - entity_values - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: entity_type - timeout_millis: 60000 - long_running: - # LINT.IfChange(batch_delete_entities_long_running_operation) - return_type: google.protobuf.Empty - metadata_type: google.protobuf.Struct - # LINT.ThenChange() - initial_poll_delay_millis: 500 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 5000 - total_poll_timeout_millis: 300000 - resource_name_treatment: STATIC_TYPES -# The fully qualified name of the API interface. -- name: google.cloud.dialogflow.v2beta1.Intents - # 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: - - name_pattern: projects/{project}/agent - entity_name: project_agent - - name_pattern: projects/{project}/agent/intents/{intent} - entity_name: intent - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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. - # - # 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: ListIntents - flattening: - groups: - - parameters: - - parent - - parameters: - - parent - - language_code - required_fields: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: intents - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: project_agent - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: GetIntent - flattening: - groups: - - parameters: - - name - - parameters: - - name - - language_code - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: intent - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: CreateIntent - flattening: - groups: - - parameters: - - parent - - intent - - parameters: - - parent - - intent - - language_code - required_fields: - - parent - - intent - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: project_agent - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: UpdateIntent - flattening: - groups: - - parameters: - - intent - - language_code - - parameters: - - intent - - language_code - - update_mask - required_fields: - - intent - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - intent.name: intent - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: DeleteIntent - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: intent - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: BatchUpdateIntents - required_fields: - - parent - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: project_agent - timeout_millis: 60000 - long_running: - # LINT.IfChange(batch_update_intents_long_running_operation) - return_type: google.cloud.dialogflow.v2beta1.BatchUpdateIntentsResponse - metadata_type: google.protobuf.Struct - # LINT.ThenChange() - initial_poll_delay_millis: 500 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 5000 - total_poll_timeout_millis: 300000 - resource_name_treatment: STATIC_TYPES - - name: BatchDeleteIntents - flattening: - groups: - - parameters: - - parent - - intents - required_fields: - - parent - - intents - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: project_agent - timeout_millis: 60000 - long_running: - # LINT.IfChange(batch_delete_intents_long_running_operation) - return_type: google.protobuf.Empty - metadata_type: google.protobuf.Struct - # LINT.ThenChange() - initial_poll_delay_millis: 500 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 5000 - total_poll_timeout_millis: 300000 - resource_name_treatment: STATIC_TYPES -# The fully qualified name of the API interface. -- name: google.cloud.dialogflow.v2beta1.SessionEntityTypes - # 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: - - name_pattern: projects/{project}/agent/sessions/{session} - entity_name: session - - name_pattern: projects/{project}/agent/environments/{environment}/users/{user}/sessions/{session} - entity_name: environment_session - - name_pattern: projects/{project}/agent/sessions/{session}/entityTypes/{entity_type} - entity_name: session_entity_type - - name_pattern: projects/{project}/agent/environments/{environment}/users/{user}/sessions/{session}/entityTypes/{entity_type} - entity_name: environment_session_entity_type - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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. - # - # 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: ListSessionEntityTypes - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: session_entity_types - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: session - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: GetSessionEntityType - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: session_entity_type - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: CreateSessionEntityType - flattening: - groups: - - parameters: - - parent - - session_entity_type - required_fields: - - parent - - session_entity_type - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: session - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: UpdateSessionEntityType - flattening: - groups: - - parameters: - - session_entity_type - required_fields: - - session_entity_type - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - session_entity_type.name: session_entity_type - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: DeleteSessionEntityType - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: session_entity_type - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES -# The fully qualified name of the API interface. -- name: google.cloud.dialogflow.v2beta1.Sessions - # 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: - - name_pattern: projects/{project}/agent/sessions/{session} - entity_name: session - - name_pattern: projects/{project}/agent/environments/{environment}/users/{user}/sessions/{session} - entity_name: environment_session - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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. - # - # 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: DetectIntent - flattening: - groups: - - parameters: - - session - - query_input - required_fields: - - session - - query_input - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - session: session - timeout_millis: 220000 - resource_name_treatment: STATIC_TYPES - - name: StreamingDetectIntent - required_fields: - - session - - query_input - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 220000 -# The fully qualified name of the API interface. -- name: google.cloud.dialogflow.v2beta1.KnowledgeBases - # 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: - - name_pattern: projects/{project} - entity_name: project - - name_pattern: projects/{project}/knowledgeBases/{knowledge_base} - entity_name: knowledge_base - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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: ListKnowledgeBases - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: knowledge_bases - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: GetKnowledgeBase - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: knowledge_base - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: CreateKnowledgeBase - flattening: - groups: - - parameters: - - parent - - knowledge_base - required_fields: - - parent - - knowledge_base - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: DeleteKnowledgeBase - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: knowledge_base - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: UpdateKnowledgeBase - flattening: - groups: - - parameters: - - knowledge_base - required_fields: - - knowledge_base - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - knowledge_base.name: knowledge_base - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES -# The fully qualified name of the API interface. -- name: google.cloud.dialogflow.v2beta1.Documents - # 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: - - name_pattern: projects/{project}/knowledgeBases/{knowledge_base} - entity_name: knowledge_base - - name_pattern: projects/{project}/knowledgeBases/{knowledge_base}/documents/{document} - entity_name: document - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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: ListDocuments - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: documents - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: knowledge_base - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: GetDocument - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: document - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: CreateDocument - flattening: - groups: - - parameters: - - parent - - document - required_fields: - - parent - - document - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: knowledge_base - timeout_millis: 60000 - long_running: - # LINT.IfChange(create_document_long_running_operation) - return_type: google.cloud.dialogflow.v2beta1.Document - metadata_type: google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata - # LINT.ThenChange() - initial_poll_delay_millis: 500 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 5000 - total_poll_timeout_millis: 300000 - resource_name_treatment: STATIC_TYPES - - name: DeleteDocument - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: document - timeout_millis: 60000 - long_running: - # LINT.IfChange(delete_document_long_running_operation) - return_type: google.protobuf.Empty - metadata_type: google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata - # LINT.ThenChange() - initial_poll_delay_millis: 500 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 5000 - total_poll_timeout_millis: 300000 - resource_name_treatment: STATIC_TYPES - - name: UpdateDocument - flattening: - groups: - - parameters: - - document - required_fields: - - document - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - document.name: document - timeout_millis: 60000 - long_running: - # LINT.IfChange(create_document_long_running_operation) - return_type: google.cloud.dialogflow.v2beta1.Document - metadata_type: google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata - # LINT.ThenChange() - initial_poll_delay_millis: 500 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 5000 - total_poll_timeout_millis: 300000 - resource_name_treatment: STATIC_TYPES -# The fully qualified name of the API interface. -- name: google.cloud.dialogflow.v2beta1.Environments - # 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: - - name_pattern: projects/{project}/agent - entity_name: project_agent - - name_pattern: projects/{project}/agent/environments/{environment} - entity_name: environment - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - INTERNAL - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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. - # - # 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: ListEnvironments - flattening: - groups: - - parameters: - - parent - - parameters: - - parent - required_fields: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: environments - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: project_agent - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES -resource_name_generation: -- message_name: SetAgentRequest - field_entity_map: - agent.parent: project -- message_name: DeleteAgentRequest - field_entity_map: - parent: project -- message_name: GetAgentRequest - field_entity_map: - parent: project -- message_name: SearchAgentsRequest - field_entity_map: - parent: project -- message_name: TrainAgentRequest - field_entity_map: - parent: project -- message_name: ExportAgentRequest - field_entity_map: - parent: project -- message_name: ImportAgentRequest - field_entity_map: - parent: project -- message_name: RestoreAgentRequest - field_entity_map: - parent: project -- message_name: CreateAogVersionRequest - field_entity_map: - parent: project -- message_name: WarmUpAogVersionRequest - field_entity_map: - parent: project -- message_name: ListContextsRequest - field_entity_map: - parent: session -- message_name: GetContextRequest - field_entity_map: - name: context -- message_name: CreateContextRequest - field_entity_map: - parent: session -- message_name: Context - field_entity_map: - name: context -- message_name: DeleteContextRequest - field_entity_map: - name: context -- message_name: DeleteAllContextsRequest - field_entity_map: - parent: session -- message_name: ListEntityTypesRequest - field_entity_map: - parent: project_agent -- message_name: GetEntityTypeRequest - field_entity_map: - name: entity_type -- message_name: CreateEntityTypeRequest - field_entity_map: - parent: project_agent -- message_name: EntityType - field_entity_map: - name: entity_type -- message_name: DeleteEntityTypeRequest - field_entity_map: - name: entity_type -- message_name: BatchUpdateEntityTypesRequest - field_entity_map: - parent: project_agent -- message_name: BatchDeleteEntityTypesRequest - field_entity_map: - parent: project_agent -- message_name: BatchCreateEntitiesRequest - field_entity_map: - parent: entity_type -- message_name: BatchUpdateEntitiesRequest - field_entity_map: - parent: entity_type -- message_name: BatchDeleteEntitiesRequest - field_entity_map: - parent: entity_type -- message_name: ListIntentsRequest - field_entity_map: - parent: project_agent -- message_name: GetIntentRequest - field_entity_map: - name: intent -- message_name: CreateIntentRequest - field_entity_map: - parent: project_agent -- message_name: Intent - field_entity_map: - name: intent -- message_name: DeleteIntentRequest - field_entity_map: - name: intent -- message_name: BatchUpdateIntentsRequest - field_entity_map: - parent: project_agent -- message_name: BatchDeleteIntentsRequest - field_entity_map: - parent: project_agent -- message_name: ListSessionEntityTypesRequest - field_entity_map: - parent: session -- message_name: GetSessionEntityTypeRequest - field_entity_map: - name: session_entity_type -- message_name: CreateSessionEntityTypeRequest - field_entity_map: - parent: session -- message_name: SessionEntityType - field_entity_map: - name: session_entity_type -- message_name: DeleteSessionEntityTypeRequest - field_entity_map: - name: session_entity_type -- message_name: DetectIntentRequest - field_entity_map: - session: session -- message_name: ListKnowledgeBasesRequest - field_entity_map: - parent: project -- message_name: GetKnowledgeBaseRequest - field_entity_map: - name: knowledge_base -- message_name: CreateKnowledgeBaseRequest - field_entity_map: - parent: project -- message_name: KnowledgeBase - field_entity_map: - name: knowledge_base -- message_name: DeleteKnowledgeBaseRequest - field_entity_map: - name: knowledge_base -- message_name: ListDocumentsRequest - field_entity_map: - parent: knowledge_base -- message_name: GetDocumentRequest - field_entity_map: - name: document -- message_name: CreateDocumentRequest - field_entity_map: - parent: knowledge_base -- message_name: Document - field_entity_map: - name: document -- message_name: DeleteDocumentRequest - field_entity_map: - name: document -- message_name: ListEnvironmentsRequest - field_entity_map: - parent: project_agent diff --git a/third_party/googleapis/google/cloud/dialogflow/v2beta1/dialogflow_gapic.yaml b/third_party/googleapis/google/cloud/dialogflow/v2beta1/dialogflow_gapic.yaml index 76e6ccdb5..0914789f4 100644 --- a/third_party/googleapis/google/cloud/dialogflow/v2beta1/dialogflow_gapic.yaml +++ b/third_party/googleapis/google/cloud/dialogflow/v2beta1/dialogflow_gapic.yaml @@ -2,9 +2,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 # The settings of generated code in a specific language. language_settings: - java: - package_name: com.google.cloud.dialogflow.v2beta1 - release_level: BETA python: package_name: google.cloud.dialogflow_v2beta1.gapic go: diff --git a/third_party/googleapis/google/cloud/dialogflow/v2beta1/dialogflow_grpc_service_config.json b/third_party/googleapis/google/cloud/dialogflow/v2beta1/dialogflow_grpc_service_config.json index 34d105527..3ecc60219 100755 --- a/third_party/googleapis/google/cloud/dialogflow/v2beta1/dialogflow_grpc_service_config.json +++ b/third_party/googleapis/google/cloud/dialogflow/v2beta1/dialogflow_grpc_service_config.json @@ -2,6 +2,9 @@ "methodConfig": [ { "name": [ + { + "service": "google.cloud.dialogflow.aam.v2beta1.AamAdminTool" + }, { "service": "google.cloud.dialogflow.aam.v2beta1.AamDatasets" }, @@ -14,6 +17,9 @@ { "service": "google.cloud.dialogflow.aam.v2beta1.AamLabels" }, + { + "service": "google.cloud.dialogflow.aam.v2beta1.AamNotices" + }, { "service": "google.cloud.dialogflow.aam.v2beta1.AamTasks" }, @@ -107,6 +113,9 @@ { "service": "google.cloud.dialogflow.v2beta1.InternalDatasetService" }, + { + "service": "google.cloud.dialogflow.v2beta1.IssueModelService" + }, { "service": "google.cloud.dialogflow.v2beta1.AogService" }, diff --git a/third_party/googleapis/google/cloud/dialogflow/v2beta1/dialogflow_v2beta1.yaml b/third_party/googleapis/google/cloud/dialogflow/v2beta1/dialogflow_v2beta1.yaml index e631fa92f..153a34be2 100644 --- a/third_party/googleapis/google/cloud/dialogflow/v2beta1/dialogflow_v2beta1.yaml +++ b/third_party/googleapis/google/cloud/dialogflow/v2beta1/dialogflow_v2beta1.yaml @@ -5,20 +5,26 @@ title: Dialogflow API apis: - name: google.cloud.dialogflow.v2beta1.Agents +- name: google.cloud.dialogflow.v2beta1.AnswerRecords - name: google.cloud.dialogflow.v2beta1.Contexts +- name: google.cloud.dialogflow.v2beta1.ConversationProfiles +- name: google.cloud.dialogflow.v2beta1.Conversations - name: google.cloud.dialogflow.v2beta1.Documents - name: google.cloud.dialogflow.v2beta1.EntityTypes - name: google.cloud.dialogflow.v2beta1.Environments - name: google.cloud.dialogflow.v2beta1.Intents - name: google.cloud.dialogflow.v2beta1.KnowledgeBases +- name: google.cloud.dialogflow.v2beta1.Participants - name: google.cloud.dialogflow.v2beta1.SessionEntityTypes - name: google.cloud.dialogflow.v2beta1.Sessions types: -- name: google.cloud.dialogflow.v2beta1.AutoApproveSmartMessagingEntriesResponse - name: google.cloud.dialogflow.v2beta1.BatchUpdateEntityTypesResponse - name: google.cloud.dialogflow.v2beta1.BatchUpdateIntentsResponse +- name: google.cloud.dialogflow.v2beta1.ConversationEvent - name: google.cloud.dialogflow.v2beta1.ExportAgentResponse +- name: google.cloud.dialogflow.v2beta1.HumanAgentAssistantEvent +- name: google.cloud.dialogflow.v2beta1.ImportDocumentsResponse - name: google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata - name: google.cloud.dialogflow.v2beta1.OriginalDetectIntentRequest - name: google.cloud.dialogflow.v2beta1.WebhookRequest @@ -48,8 +54,14 @@ backend: rules: - selector: 'google.cloud.dialogflow.v2beta1.Agents.*' deadline: 60.0 + - selector: 'google.cloud.dialogflow.v2beta1.AnswerRecords.*' + deadline: 60.0 - selector: 'google.cloud.dialogflow.v2beta1.Contexts.*' deadline: 60.0 + - selector: 'google.cloud.dialogflow.v2beta1.ConversationProfiles.*' + deadline: 60.0 + - selector: 'google.cloud.dialogflow.v2beta1.Conversations.*' + deadline: 60.0 - selector: 'google.cloud.dialogflow.v2beta1.Documents.*' deadline: 60.0 - selector: 'google.cloud.dialogflow.v2beta1.EntityTypes.*' @@ -60,6 +72,12 @@ backend: deadline: 60.0 - selector: 'google.cloud.dialogflow.v2beta1.KnowledgeBases.*' deadline: 60.0 + - selector: 'google.cloud.dialogflow.v2beta1.Participants.*' + deadline: 60.0 + - selector: google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent + deadline: 220.0 + - selector: google.cloud.dialogflow.v2beta1.Participants.StreamingAnalyzeContent + deadline: 220.0 - selector: 'google.cloud.dialogflow.v2beta1.SessionEntityTypes.*' deadline: 60.0 - selector: google.cloud.dialogflow.v2beta1.Sessions.DetectIntent @@ -91,11 +109,26 @@ authentication: canonical_scopes: |- https://www.googleapis.com/auth/cloud-platform, https://www.googleapis.com/auth/dialogflow + - selector: 'google.cloud.dialogflow.v2beta1.AnswerRecords.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/dialogflow - selector: 'google.cloud.dialogflow.v2beta1.Contexts.*' oauth: canonical_scopes: |- https://www.googleapis.com/auth/cloud-platform, https://www.googleapis.com/auth/dialogflow + - selector: 'google.cloud.dialogflow.v2beta1.ConversationProfiles.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/dialogflow + - selector: 'google.cloud.dialogflow.v2beta1.Conversations.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/dialogflow - selector: 'google.cloud.dialogflow.v2beta1.Documents.*' oauth: canonical_scopes: |- @@ -121,6 +154,11 @@ authentication: canonical_scopes: |- https://www.googleapis.com/auth/cloud-platform, https://www.googleapis.com/auth/dialogflow + - selector: 'google.cloud.dialogflow.v2beta1.Participants.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/dialogflow - selector: 'google.cloud.dialogflow.v2beta1.SessionEntityTypes.*' oauth: canonical_scopes: |- diff --git a/third_party/googleapis/google/cloud/dialogflow/v2beta1/document.proto b/third_party/googleapis/google/cloud/dialogflow/v2beta1/document.proto index 439fab112..0af6eb9e6 100644 --- a/third_party/googleapis/google/cloud/dialogflow/v2beta1/document.proto +++ b/third_party/googleapis/google/cloud/dialogflow/v2beta1/document.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -49,6 +49,9 @@ service Documents { rpc ListDocuments(ListDocumentsRequest) returns (ListDocumentsResponse) { option (google.api.http) = { get: "/v2beta1/{parent=projects/*/knowledgeBases/*}/documents" + additional_bindings { + get: "/v2beta1/{parent=projects/*/locations/*/knowledgeBases/*}/documents" + } additional_bindings { get: "/v2beta1/{parent=projects/*/agent/knowledgeBases/*}/documents" } @@ -63,6 +66,9 @@ service Documents { rpc GetDocument(GetDocumentRequest) returns (Document) { option (google.api.http) = { get: "/v2beta1/{name=projects/*/knowledgeBases/*/documents/*}" + additional_bindings { + get: "/v2beta1/{name=projects/*/locations/*/knowledgeBases/*/documents/*}" + } additional_bindings { get: "/v2beta1/{name=projects/*/agent/knowledgeBases/*/documents/*}" } @@ -78,6 +84,10 @@ service Documents { option (google.api.http) = { post: "/v2beta1/{parent=projects/*/knowledgeBases/*}/documents" body: "document" + additional_bindings { + post: "/v2beta1/{parent=projects/*/locations/*/knowledgeBases/*}/documents" + body: "document" + } additional_bindings { post: "/v2beta1/{parent=projects/*/agent/knowledgeBases/*}/documents" body: "document" @@ -90,6 +100,22 @@ service Documents { }; } + // Create documents by importing data from external sources. + rpc ImportDocuments(ImportDocumentsRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v2beta1/{parent=projects/*/knowledgeBases/*}/documents:import" + body: "*" + additional_bindings { + post: "/v2beta1/{parent=projects/*/locations/*/knowledgeBases/*}/documents:import" + body: "*" + } + }; + option (google.longrunning.operation_info) = { + response_type: "ImportDocumentsResponse" + metadata_type: "KnowledgeOperationMetadata" + }; + } + // Deletes the specified document. // // Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; @@ -97,6 +123,9 @@ service Documents { rpc DeleteDocument(DeleteDocumentRequest) returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v2beta1/{name=projects/*/knowledgeBases/*/documents/*}" + additional_bindings { + delete: "/v2beta1/{name=projects/*/locations/*/knowledgeBases/*/documents/*}" + } additional_bindings { delete: "/v2beta1/{name=projects/*/agent/knowledgeBases/*/documents/*}" } @@ -116,6 +145,10 @@ service Documents { option (google.api.http) = { patch: "/v2beta1/{document.name=projects/*/knowledgeBases/*/documents/*}" body: "document" + additional_bindings { + patch: "/v2beta1/{document.name=projects/*/locations/*/knowledgeBases/*/documents/*}" + body: "document" + } additional_bindings { patch: "/v2beta1/{document.name=projects/*/agent/knowledgeBases/*/documents/*}" body: "document" @@ -133,6 +166,9 @@ service Documents { // content. The previously loaded content of the document will be deleted. // Note: Even when the content of the document has not changed, there still // may be side effects because of internal implementation changes. + // Note: If the document source is Google Cloud Storage URI, its metadata will + // be replaced with the custom metadata from Google Cloud Storage if the + // `import_gcs_custom_metadata` field is set to true in the request. // // Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; // only use `projects.knowledgeBases.documents`. @@ -140,6 +176,10 @@ service Documents { option (google.api.http) = { post: "/v2beta1/{name=projects/*/knowledgeBases/*/documents/*}:reload" body: "*" + additional_bindings { + post: "/v2beta1/{name=projects/*/locations/*/knowledgeBases/*/documents/*}:reload" + body: "*" + } additional_bindings { post: "/v2beta1/{name=projects/*/agent/knowledgeBases/*/documents/*}:reload" body: "*" @@ -164,6 +204,7 @@ message Document { option (google.api.resource) = { type: "dialogflow.googleapis.com/Document" pattern: "projects/{project}/knowledgeBases/{knowledge_base}/documents/{document}" + pattern: "projects/{project}/locations/{location}/knowledgeBases/{knowledge_base}/documents/{document}" }; // The status of a reload attempt. @@ -194,12 +235,19 @@ message Document { // Documents for which unstructured text is extracted and used for // question answering. EXTRACTIVE_QA = 2; + + // The entire document content as a whole can be used for query results. + // Only for Contact Center Solutions on Dialogflow. + ARTICLE_SUGGESTION = 3; + + // The legacy enum for agent-facing smart reply feature. + SMART_REPLY = 4; } // Optional. The document resource name. // The name must be empty when creating a document. - // Format: `projects//knowledgeBases//documents/`. + // Format: `projects//locations//knowledgeBases//documents/`. string name = 1 [(google.api.field_behavior) = OPTIONAL]; // Required. The display name of the document. The name must be 1024 bytes or @@ -258,13 +306,19 @@ message Document { // This reload may have been triggered automatically or manually // and may not have succeeded. ReloadStatus latest_reload_status = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Metadata for the document. The metadata supports arbitrary + // key-value pairs. Suggested use cases include storing a document's title, + // an external URL distinct from the document's content_uri, etc. + // The max size of a `key` or a `value` of the metadata is 1024 bytes. + map metadata = 7 [(google.api.field_behavior) = OPTIONAL]; } // Request message for [Documents.GetDocument][google.cloud.dialogflow.v2beta1.Documents.GetDocument]. message GetDocumentRequest { // Required. The name of the document to retrieve. - // Format `projects//knowledgeBases//documents/`. + // Format `projects//locations//knowledgeBases//documents/`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -276,7 +330,8 @@ message GetDocumentRequest { // Request message for [Documents.ListDocuments][google.cloud.dialogflow.v2beta1.Documents.ListDocuments]. message ListDocumentsRequest { // Required. The knowledge base to list all documents for. - // Format: `projects//knowledgeBases/`. + // Format: `projects//locations//knowledgeBases/`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -327,8 +382,9 @@ message ListDocumentsResponse { // Request message for [Documents.CreateDocument][google.cloud.dialogflow.v2beta1.Documents.CreateDocument]. message CreateDocumentRequest { - // Required. The knoweldge base to create a document for. - // Format: `projects//knowledgeBases/`. + // Required. The knowledge base to create a document for. + // Format: `projects//locations//knowledgeBases/`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -338,13 +394,73 @@ message CreateDocumentRequest { // Required. The document to create. Document document = 2 [(google.api.field_behavior) = REQUIRED]; + + // Whether to import custom metadata from Google Cloud Storage. + // Only valid when the document source is Google Cloud Storage URI. + bool import_gcs_custom_metadata = 3; +} + +// Request message for [Documents.ImportDocuments][google.cloud.dialogflow.v2beta1.Documents.ImportDocuments]. +message ImportDocumentsRequest { + // Required. The knowledge base to import documents into. + // Format: `projects//locations//knowledgeBases/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/Document" + } + ]; + + // Required. The source to use for importing documents. + // + // If the source captures multiple objects, then multiple documents will be + // created, one corresponding to each object, and all of these documents will + // be created using the same document template. + oneof source { + // The Google Cloud Storage location for the documents. + // The path can include a wildcard. + // + // These URIs may have the forms + // `gs:///`. + // `gs:////*.`. + GcsSources gcs_source = 2; + } + + // Required. Document template used for importing all the documents. + ImportDocumentTemplate document_template = 3 [(google.api.field_behavior) = REQUIRED]; + + // Whether to import custom metadata from Google Cloud Storage. + // Only valid when the document source is Google Cloud Storage URI. + bool import_gcs_custom_metadata = 4; +} + +// The template used for importing documents. +message ImportDocumentTemplate { + // Required. The MIME type of the document. + string mime_type = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The knowledge type of document content. + repeated Document.KnowledgeType knowledge_types = 2 [(google.api.field_behavior) = REQUIRED]; + + // Metadata for the document. The metadata supports arbitrary + // key-value pairs. Suggested use cases include storing a document's title, + // an external URL distinct from the document's content_uri, etc. + // The max size of a `key` or a `value` of the metadata is 1024 bytes. + map metadata = 3; +} + +// Response message for [Documents.ImportDocuments][google.cloud.dialogflow.v2beta1.Documents.ImportDocuments]. +message ImportDocumentsResponse { + // Includes details about skipped documents or any other warnings. + repeated google.rpc.Status warnings = 1; } // Request message for [Documents.DeleteDocument][google.cloud.dialogflow.v2beta1.Documents.DeleteDocument]. message DeleteDocumentRequest { // Required. The name of the document to delete. - // Format: `projects//knowledgeBases//documents/`. + // Format: `projects//locations//knowledgeBases//documents/`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -388,8 +504,8 @@ message KnowledgeOperationMetadata { // Request message for [Documents.ReloadDocument][google.cloud.dialogflow.v2beta1.Documents.ReloadDocument]. message ReloadDocumentRequest { // Required. The name of the document to reload. - // Format: `projects//knowledgeBases//documents/` + // Format: `projects//locations//knowledgeBases//documents/` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -405,16 +521,8 @@ message ReloadDocumentRequest { // If not provided, the Document's existing source will be reloaded. GcsSource gcs_source = 3; } -} - -// Response message for [Documents.AutoApproveSmartMessagingEntries]. -message AutoApproveSmartMessagingEntriesResponse { - // Number of smart messaging entries enabled. - int32 enabled_count = 1; - - // Number of smart messaging entries disabled. - int32 disabled_count = 2; - // Number of smart messaging entries unreviewed. - int32 unreviewed_count = 3; + // Whether to import custom metadata from Google Cloud Storage. + // Only valid when the document source is Google Cloud Storage URI. + bool import_gcs_custom_metadata = 4; } diff --git a/third_party/googleapis/google/cloud/dialogflow/v2beta1/entity_type.proto b/third_party/googleapis/google/cloud/dialogflow/v2beta1/entity_type.proto index e1e5f8ef1..a1703f1be 100644 --- a/third_party/googleapis/google/cloud/dialogflow/v2beta1/entity_type.proto +++ b/third_party/googleapis/google/cloud/dialogflow/v2beta1/entity_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/cloud/dialogflow/v2beta1/environment.proto b/third_party/googleapis/google/cloud/dialogflow/v2beta1/environment.proto index 49efe6ff5..a933b9bea 100644 --- a/third_party/googleapis/google/cloud/dialogflow/v2beta1/environment.proto +++ b/third_party/googleapis/google/cloud/dialogflow/v2beta1/environment.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/cloud/dialogflow/v2beta1/gcs.proto b/third_party/googleapis/google/cloud/dialogflow/v2beta1/gcs.proto index 4750a0626..f01ad76f3 100644 --- a/third_party/googleapis/google/cloud/dialogflow/v2beta1/gcs.proto +++ b/third_party/googleapis/google/cloud/dialogflow/v2beta1/gcs.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -27,6 +27,15 @@ option java_outer_classname = "GcsProto"; option java_package = "com.google.cloud.dialogflow.v2beta1"; option objc_class_prefix = "DF"; +// Google Cloud Storage locations for the inputs. +message GcsSources { + // Required. Google Cloud Storage URIs for the inputs. A URI is of the + // form: + // gs://bucket/object-prefix-or-name + // Whether a prefix or name is used depends on the use case. + repeated string uris = 2 [(google.api.field_behavior) = REQUIRED]; +} + // Google Cloud Storage location for single input. message GcsSource { // Required. The Google Cloud Storage URIs for the inputs. A URI is of the diff --git a/third_party/googleapis/google/cloud/dialogflow/v2beta1/human_agent_assistant_event.proto b/third_party/googleapis/google/cloud/dialogflow/v2beta1/human_agent_assistant_event.proto new file mode 100644 index 000000000..d49c83acb --- /dev/null +++ b/third_party/googleapis/google/cloud/dialogflow/v2beta1/human_agent_assistant_event.proto @@ -0,0 +1,51 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.v2beta1; + +import "google/cloud/dialogflow/v2beta1/participant.proto"; +import "google/api/annotations.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Dialogflow.V2beta1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1;dialogflow"; +option java_multiple_files = true; +option java_outer_classname = "HumanAgentAssistantEventProto"; +option java_package = "com.google.cloud.dialogflow.v2beta1"; +option objc_class_prefix = "DF"; + +// Output only. Represents a notification sent to Pub/Sub subscribers for +// agent assistant events in a specific conversation. +message HumanAgentAssistantEvent { + // The conversation this notification refers to. + // Format: `projects//conversations/`. + string conversation = 1; + + // The participant that the suggestion is compiled for. And This field is used + // to call [Participants.ListSuggestions][google.cloud.dialogflow.v2beta1.Participants.ListSuggestions] API. Format: + // `projects//conversations//participants/`. + // It will not be set in legacy workflow. + // [HumanAgentAssistantConfig.name][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.name] for more + // information. + string participant = 3; + + // The suggestion results payload that this notification refers to. It will + // only be set when + // [HumanAgentAssistantConfig.SuggestionConfig.group_suggestion_responses][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionConfig.group_suggestion_responses] + // sets to true. + repeated SuggestionResult suggestion_results = 5; +} diff --git a/third_party/googleapis/google/cloud/dialogflow/v2beta1/intent.proto b/third_party/googleapis/google/cloud/dialogflow/v2beta1/intent.proto index 58c3b31f8..ba8c1f830 100644 --- a/third_party/googleapis/google/cloud/dialogflow/v2beta1/intent.proto +++ b/third_party/googleapis/google/cloud/dialogflow/v2beta1/intent.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -50,6 +50,9 @@ service Intents { additional_bindings { get: "/v2beta1/{parent=projects/*/locations/*/agent}/intents" } + additional_bindings { + get: "/v2beta1/{parent=projects/*/agent/environments/*}/intents" + } }; option (google.api.method_signature) = "parent"; option (google.api.method_signature) = "parent,language_code"; @@ -1114,6 +1117,12 @@ message Intent { // auto-markup in the UI is turned off. bool ml_disabled = 19 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Indicates that a live agent should be brought in to handle the + // interaction with the user. In most cases, when you set this flag to true, + // you would also want to set end_interaction to true as well. Default is + // false. + bool live_agent_handoff = 20 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Indicates that this intent ends an interaction. Some integrations // (e.g., Actions on Google or Dialogflow phone gateway) use this information // to close interaction with an end user. Default is false. diff --git a/third_party/googleapis/google/cloud/dialogflow/v2beta1/knowledge_base.proto b/third_party/googleapis/google/cloud/dialogflow/v2beta1/knowledge_base.proto index 48f1be626..fe50073bc 100644 --- a/third_party/googleapis/google/cloud/dialogflow/v2beta1/knowledge_base.proto +++ b/third_party/googleapis/google/cloud/dialogflow/v2beta1/knowledge_base.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -45,6 +45,9 @@ service KnowledgeBases { rpc ListKnowledgeBases(ListKnowledgeBasesRequest) returns (ListKnowledgeBasesResponse) { option (google.api.http) = { get: "/v2beta1/{parent=projects/*}/knowledgeBases" + additional_bindings { + get: "/v2beta1/{parent=projects/*/locations/*}/knowledgeBases" + } additional_bindings { get: "/v2beta1/{parent=projects/*/agent}/knowledgeBases" } @@ -59,6 +62,9 @@ service KnowledgeBases { rpc GetKnowledgeBase(GetKnowledgeBaseRequest) returns (KnowledgeBase) { option (google.api.http) = { get: "/v2beta1/{name=projects/*/knowledgeBases/*}" + additional_bindings { + get: "/v2beta1/{name=projects/*/locations/*/knowledgeBases/*}" + } additional_bindings { get: "/v2beta1/{name=projects/*/agent/knowledgeBases/*}" } @@ -74,6 +80,10 @@ service KnowledgeBases { option (google.api.http) = { post: "/v2beta1/{parent=projects/*}/knowledgeBases" body: "knowledge_base" + additional_bindings { + post: "/v2beta1/{parent=projects/*/locations/*}/knowledgeBases" + body: "knowledge_base" + } additional_bindings { post: "/v2beta1/{parent=projects/*/agent}/knowledgeBases" body: "knowledge_base" @@ -89,6 +99,9 @@ service KnowledgeBases { rpc DeleteKnowledgeBase(DeleteKnowledgeBaseRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v2beta1/{name=projects/*/knowledgeBases/*}" + additional_bindings { + delete: "/v2beta1/{name=projects/*/locations/*/knowledgeBases/*}" + } additional_bindings { delete: "/v2beta1/{name=projects/*/agent/knowledgeBases/*}" } @@ -104,6 +117,10 @@ service KnowledgeBases { option (google.api.http) = { patch: "/v2beta1/{knowledge_base.name=projects/*/knowledgeBases/*}" body: "knowledge_base" + additional_bindings { + patch: "/v2beta1/{knowledge_base.name=projects/*/locations/*/knowledgeBases/*}" + body: "knowledge_base" + } additional_bindings { patch: "/v2beta1/{knowledge_base.name=projects/*/agent/knowledgeBases/*}" body: "knowledge_base" @@ -128,11 +145,13 @@ message KnowledgeBase { option (google.api.resource) = { type: "dialogflow.googleapis.com/KnowledgeBase" pattern: "projects/{project}/knowledgeBases/{knowledge_base}" + pattern: "projects/{project}/locations/{location}/knowledgeBases/{knowledge_base}" }; // The knowledge base resource name. // The name must be empty when creating a knowledge base. - // Format: `projects//knowledgeBases/`. + // Format: `projects//locations//knowledgeBases/`. string name = 1; // Required. The display name of the knowledge base. The name must be 1024 @@ -148,7 +167,7 @@ message KnowledgeBase { // Request message for [KnowledgeBases.ListKnowledgeBases][google.cloud.dialogflow.v2beta1.KnowledgeBases.ListKnowledgeBases]. message ListKnowledgeBasesRequest { // Required. The project to list of knowledge bases for. - // Format: `projects/`. + // Format: `projects//locations/`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -205,7 +224,8 @@ message ListKnowledgeBasesResponse { // Request message for [KnowledgeBases.GetKnowledgeBase][google.cloud.dialogflow.v2beta1.KnowledgeBases.GetKnowledgeBase]. message GetKnowledgeBaseRequest { // Required. The name of the knowledge base to retrieve. - // Format `projects//knowledgeBases/`. + // Format `projects//locations//knowledgeBases/`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -217,7 +237,7 @@ message GetKnowledgeBaseRequest { // Request message for [KnowledgeBases.CreateKnowledgeBase][google.cloud.dialogflow.v2beta1.KnowledgeBases.CreateKnowledgeBase]. message CreateKnowledgeBaseRequest { // Required. The project to create a knowledge base for. - // Format: `projects/`. + // Format: `projects//locations/`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -232,7 +252,8 @@ message CreateKnowledgeBaseRequest { // Request message for [KnowledgeBases.DeleteKnowledgeBase][google.cloud.dialogflow.v2beta1.KnowledgeBases.DeleteKnowledgeBase]. message DeleteKnowledgeBaseRequest { // Required. The name of the knowledge base to delete. - // Format: `projects//knowledgeBases/`. + // Format: `projects//locations//knowledgeBases/`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/third_party/googleapis/google/cloud/dialogflow/v2beta1/participant.proto b/third_party/googleapis/google/cloud/dialogflow/v2beta1/participant.proto new file mode 100644 index 000000000..7257b30f3 --- /dev/null +++ b/third_party/googleapis/google/cloud/dialogflow/v2beta1/participant.proto @@ -0,0 +1,1255 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.v2beta1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/dialogflow/v2beta1/audio_config.proto"; +import "google/cloud/dialogflow/v2beta1/session.proto"; +import "google/protobuf/any.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Dialogflow.V2beta1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1;dialogflow"; +option java_multiple_files = true; +option java_outer_classname = "ParticipantProto"; +option java_package = "com.google.cloud.dialogflow.v2beta1"; +option objc_class_prefix = "DF"; + +// Service for managing [Participants][google.cloud.dialogflow.v2beta1.Participant]. +service Participants { + option (google.api.default_host) = "dialogflow.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/dialogflow"; + + // Creates a new participant in a conversation. + rpc CreateParticipant(CreateParticipantRequest) returns (Participant) { + option (google.api.http) = { + post: "/v2beta1/{parent=projects/*/conversations/*}/participants" + body: "participant" + additional_bindings { + post: "/v2beta1/{parent=projects/*/locations/*/conversations/*}/participants" + body: "participant" + } + }; + option (google.api.method_signature) = "parent,participant"; + } + + // Retrieves a conversation participant. + rpc GetParticipant(GetParticipantRequest) returns (Participant) { + option (google.api.http) = { + get: "/v2beta1/{name=projects/*/conversations/*/participants/*}" + additional_bindings { + get: "/v2beta1/{name=projects/*/locations/*/conversations/*/participants/*}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Returns the list of all participants in the specified conversation. + rpc ListParticipants(ListParticipantsRequest) returns (ListParticipantsResponse) { + option (google.api.http) = { + get: "/v2beta1/{parent=projects/*/conversations/*}/participants" + additional_bindings { + get: "/v2beta1/{parent=projects/*/locations/*/conversations/*}/participants" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Updates the specified participant. + rpc UpdateParticipant(UpdateParticipantRequest) returns (Participant) { + option (google.api.http) = { + patch: "/v2beta1/{participant.name=projects/*/conversations/*/participants/*}" + body: "participant" + additional_bindings { + patch: "/v2beta1/{participant.name=projects/*/locations/*/conversations/*/participants/*}" + body: "participant" + } + }; + option (google.api.method_signature) = "participant,update_mask"; + } + + // Adds a text (chat, for example), or audio (phone recording, for example) + // message from a participant into the conversation. + // + // Note: Always use agent versions for production traffic + // sent to virtual agents. See [Versions and + // environments(https://cloud.google.com/dialogflow/es/docs/agents-versions). + rpc AnalyzeContent(AnalyzeContentRequest) returns (AnalyzeContentResponse) { + option (google.api.http) = { + post: "/v2beta1/{participant=projects/*/conversations/*/participants/*}:analyzeContent" + body: "*" + additional_bindings { + post: "/v2beta1/{participant=projects/*/locations/*/conversations/*/participants/*}:analyzeContent" + body: "*" + } + }; + option (google.api.method_signature) = "participant,text_input"; + option (google.api.method_signature) = "participant,audio_input"; + option (google.api.method_signature) = "participant,event_input"; + } + + // Adds a text (e.g., chat) or audio (e.g., phone recording) message from a + // participant into the conversation. + // Note: This method is only available through the gRPC API (not REST). + // + // The top-level message sent to the client by the server is + // `StreamingAnalyzeContentResponse`. Multiple response messages can be + // returned in order. The first one or more messages contain the + // `recognition_result` field. Each result represents a more complete + // transcript of what the user said. The next message contains the + // `reply_text` field, and potentially the `reply_audio` and/or the + // `automated_agent_reply` fields. + // + // Note: Always use agent versions for production traffic + // sent to virtual agents. See [Versions and + // environments(https://cloud.google.com/dialogflow/es/docs/agents-versions). + rpc StreamingAnalyzeContent(stream StreamingAnalyzeContentRequest) returns (stream StreamingAnalyzeContentResponse) { + } + + // Gets suggested articles for a participant based on specific historical + // messages. + // + // Note that [ListSuggestions][google.cloud.dialogflow.v2beta1.Participants.ListSuggestions] will only list the auto-generated + // suggestions, while [CompileSuggestion][google.cloud.dialogflow.v2beta1.Participants.CompileSuggestion] will try to compile suggestion + // based on the provided conversation context in the real time. + rpc SuggestArticles(SuggestArticlesRequest) returns (SuggestArticlesResponse) { + option (google.api.http) = { + post: "/v2beta1/{parent=projects/*/conversations/*/participants/*}/suggestions:suggestArticles" + body: "*" + additional_bindings { + post: "/v2beta1/{parent=projects/*/locations/*/conversations/*/participants/*}/suggestions:suggestArticles" + body: "*" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Gets suggested faq answers for a participant based on specific historical + // messages. + rpc SuggestFaqAnswers(SuggestFaqAnswersRequest) returns (SuggestFaqAnswersResponse) { + option (google.api.http) = { + post: "/v2beta1/{parent=projects/*/conversations/*/participants/*}/suggestions:suggestFaqAnswers" + body: "*" + additional_bindings { + post: "/v2beta1/{parent=projects/*/locations/*/conversations/*/participants/*}/suggestions:suggestFaqAnswers" + body: "*" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Gets smart replies for a participant based on specific historical + // messages. + rpc SuggestSmartReplies(SuggestSmartRepliesRequest) returns (SuggestSmartRepliesResponse) { + option (google.api.http) = { + post: "/v2beta1/{parent=projects/*/conversations/*/participants/*}/suggestions:suggestSmartReplies" + body: "*" + additional_bindings { + post: "/v2beta1/{parent=projects/*/locations/*/conversations/*/participants/*}/suggestions:suggestSmartReplies" + body: "*" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Deprecated: Use inline suggestion, event based suggestion or + // Suggestion* API instead. + // See [HumanAgentAssistantConfig.name][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.name] for more + // details. + // Removal Date: 2020-09-01. + // + // Retrieves suggestions for live agents. + // + // This method should be used by human agent client software to fetch auto + // generated suggestions in real-time, while the conversation with an end user + // is in progress. The functionality is implemented in terms of the + // [list pagination](https://cloud.google.com/apis/design/design_patterns#list_pagination) + // design pattern. The client app should use the `next_page_token` field + // to fetch the next batch of suggestions. `suggestions` are sorted by + // `create_time` in descending order. + // To fetch latest suggestion, just set `page_size` to 1. + // To fetch new suggestions without duplication, send request with filter + // `create_time_epoch_microseconds > [first item's create_time of previous + // request]` and empty page_token. + rpc ListSuggestions(ListSuggestionsRequest) returns (ListSuggestionsResponse) { + option deprecated = true; + option (google.api.http) = { + get: "/v2beta1/{parent=projects/*/conversations/*/participants/*}/suggestions" + }; + } + + // Deprecated. use [SuggestArticles][google.cloud.dialogflow.v2beta1.Participants.SuggestArticles] and [SuggestFaqAnswers][google.cloud.dialogflow.v2beta1.Participants.SuggestFaqAnswers] instead. + // + // Gets suggestions for a participant based on specific historical + // messages. + // + // Note that [ListSuggestions][google.cloud.dialogflow.v2beta1.Participants.ListSuggestions] will only list the auto-generated + // suggestions, while [CompileSuggestion][google.cloud.dialogflow.v2beta1.Participants.CompileSuggestion] will try to compile suggestion + // based on the provided conversation context in the real time. + rpc CompileSuggestion(CompileSuggestionRequest) returns (CompileSuggestionResponse) { + option deprecated = true; + option (google.api.http) = { + post: "/v2beta1/{parent=projects/*/conversations/*/participants/*}/suggestions:compile" + body: "*" + }; + } +} + +// Represents a conversation participant (human agent, virtual agent, end-user). +message Participant { + option (google.api.resource) = { + type: "dialogflow.googleapis.com/Participant" + pattern: "projects/{project}/conversations/{conversation}/participants/{participant}" + pattern: "projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant}" + }; + + // Enumeration of the roles a participant can play in a conversation. + enum Role { + // Participant role not set. + ROLE_UNSPECIFIED = 0; + + // Participant is a human agent. + HUMAN_AGENT = 1; + + // Participant is an automated agent, such as a Dialogflow agent. + AUTOMATED_AGENT = 2; + + // Participant is an end user that has called or chatted with + // Dialogflow services. + END_USER = 3; + } + + // Optional. The unique identifier of this participant. + // Format: `projects//locations//conversations//participants/`. + string name = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Immutable. The role this participant plays in the conversation. This field must be set + // during participant creation and is then immutable. + Role role = 2 [(google.api.field_behavior) = IMMUTABLE]; + + // Optional. Obfuscated user id that should be associated with the created participant. + // + // You can specify a user id as follows: + // + // 1. If you set this field in + // [CreateParticipantRequest][google.cloud.dialogflow.v2beta1.CreateParticipantRequest.participant] or + // [UpdateParticipantRequest][google.cloud.dialogflow.v2beta1.UpdateParticipantRequest.participant], + // Dialogflow adds the obfuscated user id with the participant. + // + // 2. If you set this field in + // [AnalyzeContent][google.cloud.dialogflow.v2beta1.AnalyzeContentRequest.obfuscated_external_user_id] or + // [StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.obfuscated_external_user_id], + // Dialogflow will update [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2beta1.Participant.obfuscated_external_user_id]. + // + // Dialogflow uses this user id for following purposes: + // 1) Billing and measurement. If user with the same + // obfuscated_external_user_id is created in a later conversation, dialogflow + // will know it's the same user. 2) Agent assist suggestion personalization. + // For example, Dialogflow can use it to provide personalized smart reply + // suggestions for this user. + // + // Note: + // + // * Please never pass raw user ids to Dialogflow. Always obfuscate your user + // id first. + // * Dialogflow only accepts a UTF-8 encoded string, e.g., a hex digest of a + // hash function like SHA-512. + // * The length of the user id must be <= 256 characters. + string obfuscated_external_user_id = 7 [(google.api.field_behavior) = OPTIONAL]; +} + +// Represents a message posted into a conversation. +message Message { + option (google.api.resource) = { + type: "dialogflow.googleapis.com/Message" + pattern: "projects/{project}/conversations/{conversation}/messages/{message}" + pattern: "projects/{project}/locations/{location}/conversations/{conversation}/messages/{message}" + }; + + // Optional. The unique identifier of the message. + // Format: `projects//locations//conversations//messages/`. + string name = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The message content. + string content = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The message language. + // This should be a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) + // language tag. Example: "en-US". + string language_code = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The participant that sends this message. + string participant = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The role of the participant. + Participant.Role participant_role = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time when the message was created in Contact Center AI. + google.protobuf.Timestamp create_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The time when the message was sent. + google.protobuf.Timestamp send_time = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The annotation for the message. + MessageAnnotation message_annotation = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The sentiment analysis result for the message. + SentimentAnalysisResult sentiment_analysis = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The request message for [Participants.CreateParticipant][google.cloud.dialogflow.v2beta1.Participants.CreateParticipant]. +message CreateParticipantRequest { + // Required. Resource identifier of the conversation adding the participant. + // Format: `projects//locations//conversations/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/Participant" + } + ]; + + // Required. The participant to create. + Participant participant = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// The request message for [Participants.GetParticipant][google.cloud.dialogflow.v2beta1.Participants.GetParticipant]. +message GetParticipantRequest { + // Required. The name of the participant. Format: + // `projects//locations//conversations//participants/`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Participant" + } + ]; +} + +// The request message for [Participants.ListParticipants][google.cloud.dialogflow.v2beta1.Participants.ListParticipants]. +message ListParticipantsRequest { + // Required. The conversation to list all participants from. + // Format: `projects//locations//conversations/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dialogflow.googleapis.com/Participant" + } + ]; + + // Optional. The maximum number of items to return in a single page. By + // default 100 and at most 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The next_page_token value returned from a previous list request. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response message for [Participants.ListParticipants][google.cloud.dialogflow.v2beta1.Participants.ListParticipants]. +message ListParticipantsResponse { + // The list of participants. There is a maximum number of items + // returned based on the page_size field in the request. + repeated Participant participants = 1; + + // Token to retrieve the next page of results or empty if there are no + // more results in the list. + string next_page_token = 2; +} + +// The request message for [Participants.UpdateParticipant][google.cloud.dialogflow.v2beta1.Participants.UpdateParticipant]. +message UpdateParticipantRequest { + // Required. The participant to update. + Participant participant = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The mask to specify which fields to update. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Represents the natural language text to be processed. +message InputText { + // Required. The UTF-8 encoded natural language text to be processed. + // Text length must not exceed 256 bytes. + string text = 1; + + // Required. The language of this conversational query. See [Language + // Support](https://cloud.google.com/dialogflow/docs/reference/language) + // for a list of the currently supported language codes. + string language_code = 2; +} + +// Represents the natural language speech audio to be processed. +message InputAudio { + // Required. Instructs the speech recognizer how to process the speech audio. + InputAudioConfig config = 1; + + // Required. The natural language speech audio to be processed. + // A single request can contain up to 1 minute of speech audio data. + // The transcribed text cannot contain more than 256 bytes. + bytes audio = 2; +} + +// Represents the natural language speech audio to be processed. +message AudioInput { + // Required. Instructs the speech recognizer how to process the speech audio. + InputAudioConfig config = 1; + + // Required. The natural language speech audio to be processed. + // A single request can contain up to 1 minute of speech audio data. + // The transcribed text cannot contain more than 256 bytes. + bytes audio = 2; +} + +// Represents the natural language speech audio to be played to the end user. +message OutputAudio { + // Required. Instructs the speech synthesizer how to generate the speech + // audio. + OutputAudioConfig config = 1; + + // Required. The natural language speech audio. + bytes audio = 2; +} + +// Represents a response from an automated agent. +message AutomatedAgentReply { + // Required. + oneof response { + // Response of the Dialogflow [Sessions.DetectIntent][google.cloud.dialogflow.v2beta1.Sessions.DetectIntent] call. + DetectIntentResponse detect_intent_response = 1; + } + + // Response messages from the automated agent. + repeated ResponseMessage response_messages = 3; + + // Info on the query match for the automated agent response. + oneof match { + // Name of the intent if an intent is matched for the query. + // For a V2 query, the value format is `projects//locations/ + // /agent/intents/`. + // For a V3 query, the value format is `projects//locations/ + // /agents//intents/`. + string intent = 4 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Intent" + }]; + + // Event name if an event is triggered for the query. + string event = 5; + } + + // The collection of current Dialogflow CX agent session parameters at the + // time of this response. + google.protobuf.Struct cx_session_parameters = 6; +} + +// The type of Human Agent Assistant API suggestion to perform, and the maximum +// number of results to return for that type. Multiple `Feature` objects can +// be specified in the `features` list. +message SuggestionFeature { + // Defines the type of Human Agent Assistant feature. + enum Type { + // Unspecified feature type. + TYPE_UNSPECIFIED = 0; + + // Run article suggestion model. + ARTICLE_SUGGESTION = 1; + + // Run FAQ model. + FAQ = 2; + + // Run smart reply model. + SMART_REPLY = 3; + } + + // Type of Human Agent Assistant API feature to request. + Type type = 1; +} + +// The request message for [Participants.AnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent]. +message AnalyzeContentRequest { + // Required. The name of the participant this text comes from. + // Format: `projects//locations//conversations//participants/`. + string participant = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Participant" + } + ]; + + // Required. The input content. + oneof input { + // The natural language text to be processed. + InputText text = 3 [deprecated = true]; + + // The natural language speech audio to be processed. + InputAudio audio = 4 [deprecated = true]; + + // The natural language text to be processed. + TextInput text_input = 6; + + // The natural language speech audio to be processed. + AudioInput audio_input = 7; + + // An input event to send to Dialogflow. + EventInput event_input = 8; + } + + // Speech synthesis configuration. + // The speech synthesis settings for a virtual agent that may be configured + // for the associated conversation profile are not used when calling + // AnalyzeContent. If this configuration is not supplied, speech synthesis + // is disabled. + OutputAudioConfig reply_audio_config = 5; + + // Parameters for a Dialogflow virtual-agent query. + QueryParameters query_params = 9; + + // Optional. The send time of the message from end user or human agent's + // perspective. It is used for identifying the same message under one + // participant. + // + // Given two messages under the same participant: + // - If send time are different regardless of whether the content of the + // messages are exactly the same, the conversation will regard them as + // two distinct messages sent by the participant. + // - If send time is the same regardless of whether the content of the + // messages are exactly the same, the conversation will regard them as + // same message, and ignore the message received later. + // + // If the value is not provided, a new request will always be regarded as a + // new message without any de-duplication. + google.protobuf.Timestamp message_send_time = 10; + + // A unique identifier for this request. Restricted to 36 ASCII characters. + // A random UUID is recommended. + // This request is only idempotent if a `request_id` is provided. + string request_id = 11; +} + +// The message in the response that indicates the parameters of DTMF. +message DtmfParameters { + // Indicates whether DTMF input can be handled in the next request. + bool accepts_dtmf_input = 1; +} + +// The response message for [Participants.AnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent]. +message AnalyzeContentResponse { + // Output only. The output text content. + // This field is set if the automated agent responded with text to show to + // the user. + string reply_text = 1; + + // Optional. The audio data bytes encoded as specified in the request. + // This field is set if: + // + // - `reply_audio_config` was specified in the request, or + // - The automated agent responded with audio to play to the user. In such + // case, `reply_audio.config` contains settings used to synthesize the + // speech. + // + // In some scenarios, multiple output audio fields may be present in the + // response structure. In these cases, only the top-most-level audio output + // has content. + OutputAudio reply_audio = 2; + + // Optional. Only set if a Dialogflow automated agent has responded. + // Note that: [AutomatedAgentReply.detect_intent_response.output_audio][] + // and [AutomatedAgentReply.detect_intent_response.output_audio_config][] + // are always empty, use [reply_audio][google.cloud.dialogflow.v2beta1.AnalyzeContentResponse.reply_audio] instead. + AutomatedAgentReply automated_agent_reply = 3; + + // Output only. Message analyzed by CCAI. + Message message = 5; + + // The suggestions for most recent human agent. The order is the same as + // [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of + // [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.human_agent_suggestion_config]. + repeated SuggestionResult human_agent_suggestion_results = 6; + + // The suggestions for end user. The order is the same as + // [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of + // [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.end_user_suggestion_config]. + repeated SuggestionResult end_user_suggestion_results = 7; + + // Indicates the parameters of DTMF. + DtmfParameters dtmf_parameters = 9; +} + +// Defines the language used in the input text. +message InputTextConfig { + // Required. The language of this conversational query. See [Language + // Support](https://cloud.google.com/dialogflow/docs/reference/language) + // for a list of the currently supported language codes. + string language_code = 1; +} + +// The top-level message sent by the client to the +// [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.StreamingAnalyzeContent] method. +// +// Multiple request messages should be sent in order: +// +// 1. The first message must contain +// [participant][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.participant], +// [config][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.config] and optionally +// [query_params][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.query_params]. If you want +// to receive an audio response, it should also contain +// [reply_audio_config][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.reply_audio_config]. +// The message must not contain +// [input][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.input]. +// +// 2. If [config][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.config] in the first message +// was set to [audio_config][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.audio_config], +// all subsequent messages must contain +// [input_audio][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.input_audio] to continue +// with Speech recognition. +// If you decide to rather analyze text input after you already started +// Speech recognition, please send a message with +// [StreamingAnalyzeContentRequest.input_text][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.input_text]. +// +// However, note that: +// +// * Dialogflow will bill you for the audio so far. +// * Dialogflow discards all Speech recognition results in favor of the +// text input. +// +// 3. If [StreamingAnalyzeContentRequest.config][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.config] in the first message was set +// to [StreamingAnalyzeContentRequest.text_config][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.text_config], then the second message +// must contain only [input_text][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.input_text]. +// Moreover, you must not send more than two messages. +// +// After you sent all input, you must half-close or abort the request stream. +message StreamingAnalyzeContentRequest { + // Required. The name of the participant this text comes from. + // Format: `projects//locations//conversations//participants/`. + string participant = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Participant" + } + ]; + + // Required. The input config. + oneof config { + // Instructs the speech recognizer how to process the speech audio. + InputAudioConfig audio_config = 2; + + // The natural language text to be processed. + InputTextConfig text_config = 3; + } + + // Speech synthesis configuration. + // The speech synthesis settings for a virtual agent that may be configured + // for the associated conversation profile are not used when calling + // StreamingAnalyzeContent. If this configuration is not supplied, speech + // synthesis is disabled. + OutputAudioConfig reply_audio_config = 4; + + // Required. The input. + oneof input { + // The input audio content to be recognized. Must be sent if `audio_config` + // is set in the first message. The complete audio over all streaming + // messages must not exceed 1 minute. + bytes input_audio = 5; + + // The UTF-8 encoded natural language text to be processed. Must be sent if + // `text_config` is set in the first message. Text length must not exceed + // 256 bytes. The `input_text` field can be only sent once. + string input_text = 6; + + // The DTMF digits used to invoke intent and fill in parameter value. + // + // This input is ignored if the previous response indicated that DTMF input + // is not accepted. + TelephonyDtmfEvents input_dtmf = 9; + } + + // Parameters for a Dialogflow virtual-agent query. + QueryParameters query_params = 7; + + // Enable full bidirectional streaming. You can keep streaming the audio until + // timeout, and there's no need to half close the stream to get the response. + // + // Restrictions: + // + // - Timeout: 3 mins. + // - Audio Encoding: only supports [AudioEncoding.AUDIO_ENCODING_LINEAR_16][google.cloud.dialogflow.v2beta1.AudioEncoding.AUDIO_ENCODING_LINEAR_16] + // and [AudioEncoding.AUDIO_ENCODING_MULAW][google.cloud.dialogflow.v2beta1.AudioEncoding.AUDIO_ENCODING_MULAW] + // - Lifecycle: conversation should be in `Assist Stage`, go to + // [Conversation.CreateConversation][] for more information. + // + // InvalidArgument Error will be returned if the one of restriction checks + // failed. + // + // You can find more details in + // https://cloud.google.com/dialogflow/priv/docs/agent-assist/analyze-content-streaming + bool enable_extended_streaming = 11; +} + +// The top-level message returned from the `StreamingAnalyzeContent` method. +// +// Multiple response messages can be returned in order: +// +// 1. If the input was set to streaming audio, the first one or more messages +// contain `recognition_result`. Each `recognition_result` represents a more +// complete transcript of what the user said. The last `recognition_result` +// has `is_final` set to `true`. +// +// 2. The next message contains `reply_text` and optionally `reply_audio` +// returned by an agent. This message may also contain +// `automated_agent_reply`. +message StreamingAnalyzeContentResponse { + // The result of speech recognition. + StreamingRecognitionResult recognition_result = 1; + + // Optional. The output text content. + // This field is set if an automated agent responded with a text for the user. + string reply_text = 2; + + // Optional. The audio data bytes encoded as specified in the request. + // This field is set if: + // + // - The `reply_audio_config` field is specified in the request. + // - The automated agent, which this output comes from, responded with audio. + // In such case, the `reply_audio.config` field contains settings used to + // synthesize the speech. + // + // In some scenarios, multiple output audio fields may be present in the + // response structure. In these cases, only the top-most-level audio output + // has content. + OutputAudio reply_audio = 3; + + // Optional. Only set if a Dialogflow automated agent has responded. + // Note that: [AutomatedAgentReply.detect_intent_response.output_audio][] + // and [AutomatedAgentReply.detect_intent_response.output_audio_config][] + // are always empty, use [reply_audio][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentResponse.reply_audio] instead. + AutomatedAgentReply automated_agent_reply = 4; + + // Output only. Message analyzed by CCAI. + Message message = 6; + + // The suggestions for most recent human agent. The order is the same as + // [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of + // [HumanAgentAssistantConfig.human_agent_suggestion_config][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.human_agent_suggestion_config]. + repeated SuggestionResult human_agent_suggestion_results = 7; + + // The suggestions for end user. The order is the same as + // [HumanAgentAssistantConfig.SuggestionConfig.feature_configs][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionConfig.feature_configs] of + // [HumanAgentAssistantConfig.end_user_suggestion_config][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.end_user_suggestion_config]. + repeated SuggestionResult end_user_suggestion_results = 8; + + // Indicates the parameters of DTMF. + DtmfParameters dtmf_parameters = 10; +} + +// Represents a part of a message possibly annotated with an entity. The part +// can be an entity or purely a part of the message between two entities or +// message start/end. +message AnnotatedMessagePart { + // Required. A part of a message possibly annotated with an entity. + string text = 1; + + // Optional. The [Dialogflow system entity + // type](https://cloud.google.com/dialogflow/docs/reference/system-entities) + // of this message part. If this is empty, Dialogflow could not annotate the + // phrase part with a system entity. + string entity_type = 2; + + // Optional. The [Dialogflow system entity formatted value + // ](https://cloud.google.com/dialogflow/docs/reference/system-entities) of + // this message part. For example for a system entity of type + // `@sys.unit-currency`, this may contain: + //
+  // {
+  //   "amount": 5,
+  //   "currency": "USD"
+  // }
+  // 
+ google.protobuf.Value formatted_value = 3; +} + +// Represents the result of annotation for the message. +message MessageAnnotation { + // Optional. The collection of annotated message parts ordered by their + // position in the message. You can recover the annotated message by + // concatenating [AnnotatedMessagePart.text]. + repeated AnnotatedMessagePart parts = 1; + + // Required. Indicates whether the text message contains entities. + bool contain_entities = 2; +} + +// Represents article answer. +message ArticleAnswer { + // The article title. + string title = 1; + + // The article URI. + string uri = 2; + + // Output only. Article snippets. + repeated string snippets = 3; + + // A map that contains metadata about the answer and the + // document from which it originates. + map metadata = 5; + + // The name of answer record, in the format of + // "projects//locations//answerRecords/" + string answer_record = 6; +} + +// Represents answer from "frequently asked questions". +message FaqAnswer { + // The piece of text from the `source` knowledge base document. + string answer = 1; + + // The system's confidence score that this Knowledge answer is a good match + // for this conversational query, range from 0.0 (completely uncertain) + // to 1.0 (completely certain). + float confidence = 2; + + // The corresponding FAQ question. + string question = 3; + + // Indicates which Knowledge Document this answer was extracted + // from. + // Format: `projects//locations//agent/knowledgeBases//documents/`. + string source = 4; + + // A map that contains metadata about the answer and the + // document from which it originates. + map metadata = 5; + + // The name of answer record, in the format of + // "projects//locations//answerRecords/" + string answer_record = 6; +} + +// Represents a smart reply answer. +message SmartReplyAnswer { + // The content of the reply. + string reply = 1; + + // Smart reply confidence. + // The system's confidence score that this reply is a good match for + // this conversation, as a value from 0.0 (completely uncertain) to 1.0 + // (completely certain). + float confidence = 2; + + // The name of answer record, in the format of + // "projects//locations//answerRecords/" + string answer_record = 3; +} + +// One response of different type of suggestion response which is used in +// the response of [Participants.AnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent] and +// [Participants.AnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent], as well as [HumanAgentAssistantEvent][google.cloud.dialogflow.v2beta1.HumanAgentAssistantEvent]. +message SuggestionResult { + // Different type of suggestion response. + oneof suggestion_response { + // Error status if the request failed. + google.rpc.Status error = 1; + + // SuggestArticlesResponse if request is for ARTICLE_SUGGESTION. + SuggestArticlesResponse suggest_articles_response = 2; + + // SuggestFaqAnswersResponse if request is for FAQ_ANSWER. + SuggestFaqAnswersResponse suggest_faq_answers_response = 3; + + // SuggestSmartRepliesResponse if request is for SMART_REPLY. + SuggestSmartRepliesResponse suggest_smart_replies_response = 4; + } +} + +// The request message for [Participants.SuggestArticles][google.cloud.dialogflow.v2beta1.Participants.SuggestArticles]. +message SuggestArticlesRequest { + // Required. The name of the participant to fetch suggestion for. + // Format: `projects//locations//conversations//participants/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Participant" + } + ]; + + // Optional. The name of the latest conversation message to compile suggestion + // for. If empty, it will be the latest message of the conversation. + // + // Format: `projects//locations//conversations//messages/`. + string latest_message = 2 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Message" + } + ]; + + // Optional. Max number of messages prior to and including + // [latest_message][google.cloud.dialogflow.v2beta1.SuggestArticlesRequest.latest_message] to use as context + // when compiling the suggestion. By default 20 and at most 50. + int32 context_size = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response message for [Participants.SuggestArticles][google.cloud.dialogflow.v2beta1.Participants.SuggestArticles]. +message SuggestArticlesResponse { + // Output only. Articles ordered by score in descending order. + repeated ArticleAnswer article_answers = 1; + + // The name of the latest conversation message used to compile + // suggestion for. + // + // Format: `projects//locations//conversations//messages/`. + string latest_message = 2; + + // Number of messages prior to and including + // [latest_message][google.cloud.dialogflow.v2beta1.SuggestArticlesResponse.latest_message] to compile the + // suggestion. It may be smaller than the + // [SuggestArticlesResponse.context_size][google.cloud.dialogflow.v2beta1.SuggestArticlesResponse.context_size] field in the request if there + // aren't that many messages in the conversation. + int32 context_size = 3; +} + +// The request message for [Participants.SuggestFaqAnswers][google.cloud.dialogflow.v2beta1.Participants.SuggestFaqAnswers]. +message SuggestFaqAnswersRequest { + // Required. The name of the participant to fetch suggestion for. + // Format: `projects//locations//conversations//participants/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Participant" + } + ]; + + // Optional. The name of the latest conversation message to compile suggestion + // for. If empty, it will be the latest message of the conversation. + // + // Format: `projects//locations//conversations//messages/`. + string latest_message = 2 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Message" + } + ]; + + // Optional. Max number of messages prior to and including + // [latest_message] to use as context when compiling the + // suggestion. By default 20 and at most 50. + int32 context_size = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// The request message for [Participants.SuggestFaqAnswers][google.cloud.dialogflow.v2beta1.Participants.SuggestFaqAnswers]. +message SuggestFaqAnswersResponse { + // Output only. Answers extracted from FAQ documents. + repeated FaqAnswer faq_answers = 1; + + // The name of the latest conversation message used to compile + // suggestion for. + // + // Format: `projects//locations//conversations//messages/`. + string latest_message = 2; + + // Number of messages prior to and including + // [latest_message][google.cloud.dialogflow.v2beta1.SuggestFaqAnswersResponse.latest_message] to compile the + // suggestion. It may be smaller than the + // [SuggestFaqAnswersRequest.context_size][google.cloud.dialogflow.v2beta1.SuggestFaqAnswersRequest.context_size] field in the request if there + // aren't that many messages in the conversation. + int32 context_size = 3; +} + +// The request message for [Participants.SuggestSmartReplies][google.cloud.dialogflow.v2beta1.Participants.SuggestSmartReplies]. +message SuggestSmartRepliesRequest { + // Required. The name of the participant to fetch suggestion for. + // Format: `projects//locations//conversations//participants/`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Participant" + } + ]; + + // The current natural language text segment to compile suggestion + // for. This provides a way for user to get follow up smart reply suggestion + // after a smart reply selection, without sending a text message. + TextInput current_text_input = 4; + + // The name of the latest conversation message to compile suggestion + // for. If empty, it will be the latest message of the conversation. + // + // Format: `projects//locations//conversations//messages/`. + string latest_message = 2 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Message" + }]; + + // Optional. Max number of messages prior to and including + // [latest_message] to use as context when compiling the + // suggestion. By default 20 and at most 50. + int32 context_size = 3; +} + +// The response message for [Participants.SuggestSmartReplies][google.cloud.dialogflow.v2beta1.Participants.SuggestSmartReplies]. +message SuggestSmartRepliesResponse { + // Output only. Multiple reply options provided by smart reply service. The + // order is based on the rank of the model prediction. + // The maximum number of the returned replies is set in SmartReplyConfig. + repeated SmartReplyAnswer smart_reply_answers = 1; + + // The name of the latest conversation message used to compile + // suggestion for. + // + // Format: `projects//locations//conversations//messages/`. + string latest_message = 2; + + // Number of messages prior to and including + // [latest_message][google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponse.latest_message] to compile the + // suggestion. It may be smaller than the + // [SuggestSmartRepliesRequest.context_size][google.cloud.dialogflow.v2beta1.SuggestSmartRepliesRequest.context_size] field in the request if there + // aren't that many messages in the conversation. + int32 context_size = 3; +} + +// Represents a suggestion for a human agent. +message Suggestion { + option deprecated = true; + + // Represents suggested article. + message Article { + // Output only. The article title. + string title = 1; + + // Output only. The article URI. + string uri = 2; + + // Output only. Article snippets. + repeated string snippets = 3; + + // Output only. A map that contains metadata about the answer and the + // document from which it originates. + map metadata = 5; + + // Output only. The name of answer record, in the format of + // "projects//locations//answerRecords/" + string answer_record = 6; + } + + // Represents suggested answer from "frequently asked questions". + message FaqAnswer { + // Output only. The piece of text from the `source` knowledge base document. + string answer = 1; + + // The system's confidence score that this Knowledge answer is a good match + // for this conversational query, range from 0.0 (completely uncertain) + // to 1.0 (completely certain). + float confidence = 2; + + // Output only. The corresponding FAQ question. + string question = 3; + + // Output only. Indicates which Knowledge Document this answer was extracted + // from. + // Format: `projects//locations//agent/knowledgeBases//documents/`. + string source = 4; + + // Output only. A map that contains metadata about the answer and the + // document from which it originates. + map metadata = 5; + + // Output only. The name of answer record, in the format of + // "projects//locations//answerRecords/" + string answer_record = 6; + } + + // Output only. The name of this suggestion. + // Format: + // `projects//locations//conversations//participants/*/suggestions/`. + string name = 1; + + // Output only. Articles ordered by score in descending order. + repeated Article articles = 2; + + // Output only. Answers extracted from FAQ documents. + repeated FaqAnswer faq_answers = 4; + + // Output only. The time the suggestion was created. + google.protobuf.Timestamp create_time = 5; + + // Output only. Latest message used as context to compile this suggestion. + // + // Format: `projects//locations//conversations//messages/`. + string latest_message = 7; +} + +// The request message for [Participants.ListSuggestions][google.cloud.dialogflow.v2beta1.Participants.ListSuggestions]. +message ListSuggestionsRequest { + option deprecated = true; + + // Required. The name of the participant to fetch suggestions for. + // Format: `projects//locations//conversations//participants/`. + string parent = 1; + + // Optional. The maximum number of items to return in a single page. The + // default value is 100; the maximum value is 1000. + int32 page_size = 2; + + // Optional. The next_page_token value returned from a previous list request. + string page_token = 3; + + // Optional. Filter on suggestions fields. Currently predicates on + // `create_time` and `create_time_epoch_microseconds` are supported. + // `create_time` only support milliseconds accuracy. E.g., + // `create_time_epoch_microseconds > 1551790877964485` or + // `create_time > 2017-01-15T01:30:15.01Z` + // + // For more information about filtering, see + // [API Filtering](https://aip.dev/160). + string filter = 4; +} + +// The response message for [Participants.ListSuggestions][google.cloud.dialogflow.v2beta1.Participants.ListSuggestions]. +message ListSuggestionsResponse { + option deprecated = true; + + // Required. The list of suggestions. There will be a maximum number of items + // returned based on the page_size field in the request. `suggestions` is + // sorted by `create_time` in descending order. + repeated Suggestion suggestions = 1; + + // Optional. Token to retrieve the next page of results or empty if there are + // no more results in the list. + string next_page_token = 2; +} + +// The request message for [Participants.CompileSuggestion][google.cloud.dialogflow.v2beta1.Participants.CompileSuggestion]. +message CompileSuggestionRequest { + option deprecated = true; + + // Required. The name of the participant to fetch suggestion for. + // Format: `projects//locations//conversations//participants/`. + string parent = 1; + + // Optional. The name of the latest conversation message to compile suggestion + // for. If empty, it will be the latest message of the conversation. + // + // Format: `projects//locations//conversations//messages/`. + string latest_message = 2; + + // Optional. Max number of messages prior to and including + // [latest_message] to use as context when compiling the + // suggestion. If zero or less than zero, 20 is used. + int32 context_size = 3; +} + +// The response message for [Participants.CompileSuggestion][google.cloud.dialogflow.v2beta1.Participants.CompileSuggestion]. +message CompileSuggestionResponse { + option deprecated = true; + + // The compiled suggestion. + Suggestion suggestion = 1; + + // The name of the latest conversation message used to compile + // suggestion for. + // + // Format: `projects//locations//conversations//messages/`. + string latest_message = 2; + + // Number of messages prior to and including + // [latest_message][google.cloud.dialogflow.v2beta1.CompileSuggestionResponse.latest_message] + // to compile the suggestion. It may be smaller than the + // [CompileSuggestionRequest.context_size][google.cloud.dialogflow.v2beta1.CompileSuggestionRequest.context_size] field in the request if + // there aren't that many messages in the conversation. + int32 context_size = 3; +} + +// Response messages from an automated agent. +message ResponseMessage { + // The text response message. + message Text { + // A collection of text responses. + repeated string text = 1; + } + + // Indicates that the conversation should be handed off to a human agent. + // + // Dialogflow only uses this to determine which conversations were handed off + // to a human agent for measurement purposes. What else to do with this signal + // is up to you and your handoff procedures. + // + // You may set this, for example: + // * In the entry fulfillment of a CX Page if entering the page indicates + // something went extremely wrong in the conversation. + // * In a webhook response when you determine that the customer issue can only + // be handled by a human. + message LiveAgentHandoff { + // Custom metadata for your handoff procedure. Dialogflow doesn't impose + // any structure on this. + google.protobuf.Struct metadata = 1; + } + + // Indicates that interaction with the Dialogflow agent has ended. + message EndInteraction { + + } + + // Required. The rich response message. + oneof message { + // Returns a text response. + Text text = 1; + + // Returns a response containing a custom, platform-specific payload. + google.protobuf.Struct payload = 2; + + // Hands off conversation to a live agent. + LiveAgentHandoff live_agent_handoff = 3; + + // A signal that indicates the interaction with the Dialogflow agent has + // ended. + EndInteraction end_interaction = 4; + } +} diff --git a/third_party/googleapis/google/cloud/dialogflow/v2beta1/session.proto b/third_party/googleapis/google/cloud/dialogflow/v2beta1/session.proto index 340051c13..ab5e04523 100644 --- a/third_party/googleapis/google/cloud/dialogflow/v2beta1/session.proto +++ b/third_party/googleapis/google/cloud/dialogflow/v2beta1/session.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -60,6 +60,10 @@ service Sessions { // as a result. This method is not idempotent, because it may cause contexts // and session entity types to be updated, which in turn might affect // results of future queries. + // + // Note: Always use agent versions for production traffic. + // See [Versions and + // environments](https://cloud.google.com/dialogflow/es/docs/agents-versions). rpc DetectIntent(DetectIntentRequest) returns (DetectIntentResponse) { option (google.api.http) = { post: "/v2beta1/{session=projects/*/agent/sessions/*}:detectIntent" @@ -83,6 +87,10 @@ service Sessions { // Processes a natural language query in audio format in a streaming fashion // and returns structured, actionable data as a result. This method is only // available via the gRPC API (not REST). + // + // Note: Always use agent versions for production traffic. + // See [Versions and + // environments](https://cloud.google.com/dialogflow/es/docs/agents-versions). rpc StreamingDetectIntent(stream StreamingDetectIntentRequest) returns (stream StreamingDetectIntentResponse) { } } @@ -100,13 +108,18 @@ message DetectIntentRequest { // ID>`, // // If `Location ID` is not specified we assume default 'us' location. If - // `Environment ID` is not specified, we assume default 'draft' environment. + // `Environment ID` is not specified, we assume default 'draft' environment + // (`Environment ID` might be referred to as environment name at some places). // If `User ID` is not specified, we are using "-". It's up to the API caller // to choose an appropriate `Session ID` and `User Id`. They can be a random // number or some type of user and session identifiers (preferably hashed). // The length of the `Session ID` and `User ID` must not exceed 36 characters. // For more information, see the [API interactions // guide](https://cloud.google.com/dialogflow/docs/api-overview). + // + // Note: Always use agent versions for production traffic. + // See [Versions and + // environments](https://cloud.google.com/dialogflow/es/docs/agents-versions). string session = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -234,7 +247,7 @@ message QueryParameters { repeated SubAgent sub_agents = 13; // This field can be used to pass HTTP headers for a webhook - // call. These headers will be sent to webhook alone with the headers that + // call. These headers will be sent to webhook along with the headers that // have been configured through Dialogflow web console. The headers defined // within this field will overwrite the headers configured through Dialogflow // console if there is a conflict. Header names are case-insensitive. @@ -309,7 +322,8 @@ message QueryResult { // - MapKey value: parameter name // - MapValue type: // - If parameter's entity type is a composite entity: map - // - Else: string or number, depending on parameter value type + // - Else: depending on parameter value type, could be one of string, + // number, boolean, null, list or map // - MapValue value: // - If parameter's entity type is a composite entity: // map from composite entity property names to property values @@ -487,6 +501,10 @@ message StreamingDetectIntentRequest { // // For more information, see the [API interactions // guide](https://cloud.google.com/dialogflow/docs/api-overview). + // + // Note: Always use agent versions for production traffic. + // See [Versions and + // environments](https://cloud.google.com/dialogflow/es/docs/agents-versions). string session = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -724,7 +742,8 @@ message EventInput { // - MapKey value: parameter name // - MapValue type: // - If parameter's entity type is a composite entity: map - // - Else: string or number, depending on parameter value type + // - Else: depending on parameter value type, could be one of string, + // number, boolean, null, list or map // - MapValue value: // - If parameter's entity type is a composite entity: // map from composite entity property names to property values diff --git a/third_party/googleapis/google/cloud/dialogflow/v2beta1/session_entity_type.proto b/third_party/googleapis/google/cloud/dialogflow/v2beta1/session_entity_type.proto index c80497aa0..c692a6b94 100644 --- a/third_party/googleapis/google/cloud/dialogflow/v2beta1/session_entity_type.proto +++ b/third_party/googleapis/google/cloud/dialogflow/v2beta1/session_entity_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/cloud/dialogflow/v2beta1/validation_result.proto b/third_party/googleapis/google/cloud/dialogflow/v2beta1/validation_result.proto index 9ab491f7b..82352ad08 100644 --- a/third_party/googleapis/google/cloud/dialogflow/v2beta1/validation_result.proto +++ b/third_party/googleapis/google/cloud/dialogflow/v2beta1/validation_result.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -33,7 +33,7 @@ message ValidationError { // Not specified. This value should never be used. SEVERITY_UNSPECIFIED = 0; - // The agent doesn't follow Dialogflow best practicies. + // The agent doesn't follow Dialogflow best practices. INFO = 1; // The agent may not behave as expected. diff --git a/third_party/googleapis/google/cloud/dialogflow/v2beta1/webhook.proto b/third_party/googleapis/google/cloud/dialogflow/v2beta1/webhook.proto index 83f9d70a1..64c7efda7 100644 --- a/third_party/googleapis/google/cloud/dialogflow/v2beta1/webhook.proto +++ b/third_party/googleapis/google/cloud/dialogflow/v2beta1/webhook.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -117,6 +117,12 @@ message WebhookResponse { // `fulfillment_messages`, and `payload` fields. EventInput followup_event_input = 6; + // Indicates that a live agent should be brought in to handle the + // interaction with the user. In most cases, when you set this flag to true, + // you would also want to set end_interaction to true as well. Default is + // false. + bool live_agent_handoff = 7; + // Optional. Indicates that this intent ends an interaction. Some integrations // (e.g., Actions on Google or Dialogflow phone gateway) use this information // to close interaction with an end user. Default is false. diff --git a/third_party/googleapis/google/cloud/documentai/v1/BUILD.bazel b/third_party/googleapis/google/cloud/documentai/v1/BUILD.bazel new file mode 100644 index 000000000..43cc3789a --- /dev/null +++ b/third_party/googleapis/google/cloud/documentai/v1/BUILD.bazel @@ -0,0 +1,361 @@ +# This file was automatically generated by BuildFileGenerator +# https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/bazel + +# Most of the manual changes to this file will be overwritten. +# It's **only** allowed to change the following rule attribute values: +# - names of *_gapic_assembly_* rules +# - certain parameters of *_gapic_library rules, including but not limited to: +# * extra_protoc_parameters +# * extra_protoc_file_parameters +# The complete list of preserved parameters can be found in the source code. + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") +load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info") + +proto_library( + name = "documentai_proto", + srcs = [ + "document.proto", + "document_io.proto", + "document_processor_service.proto", + "geometry.proto", + ], + deps = [ + "//google/api:annotations_proto", + "//google/api:client_proto", + "//google/api:field_behavior_proto", + "//google/api:resource_proto", + "//google/longrunning:operations_proto", + "//google/rpc:status_proto", + "//google/type:color_proto", + "//google/type:date_proto", + "//google/type:datetime_proto", + "//google/type:money_proto", + "//google/type:postal_address_proto", + "@com_google_protobuf//:field_mask_proto", + "@com_google_protobuf//:timestamp_proto", + ], +) + +proto_library_with_info( + name = "documentai_proto_with_info", + deps = [ + ":documentai_proto", + "//google/cloud:common_resources_proto", + ], +) + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_gapic_assembly_gradle_pkg", + "java_gapic_library", + "java_gapic_test", + "java_grpc_library", + "java_proto_library", +) + +java_proto_library( + name = "documentai_java_proto", + deps = [":documentai_proto"], +) + +java_grpc_library( + name = "documentai_java_grpc", + srcs = [":documentai_proto"], + deps = [":documentai_java_proto"], +) + +java_gapic_library( + name = "documentai_java_gapic", + srcs = [":documentai_proto_with_info"], + grpc_service_config = "documentai_v1_grpc_service_config.json", + test_deps = [ + ":documentai_java_grpc", + ], + deps = [ + ":documentai_java_proto", + ], +) + +java_gapic_test( + name = "documentai_java_gapic_test_suite", + test_classes = [ + "com.google.cloud.documentai.v1.DocumentProcessorServiceClientTest", + ], + runtime_deps = [":documentai_java_gapic_test"], +) + +# Open Source Packages +java_gapic_assembly_gradle_pkg( + name = "google-cloud-documentai-v1-java", + deps = [ + ":documentai_java_gapic", + ":documentai_java_grpc", + ":documentai_java_proto", + ":documentai_proto", + ], +) + +############################################################################## +# Go +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "go_gapic_assembly_pkg", + "go_gapic_library", + "go_proto_library", + "go_test", +) + +go_proto_library( + name = "documentai_go_proto", + compilers = ["@io_bazel_rules_go//proto:go_grpc"], + importpath = "google.golang.org/genproto/googleapis/cloud/documentai/v1", + protos = [":documentai_proto"], + deps = [ + "//google/api:annotations_go_proto", + "//google/longrunning:longrunning_go_proto", + "//google/rpc:status_go_proto", + "//google/type:color_go_proto", + "//google/type:date_go_proto", + "//google/type:datetime_go_proto", + "//google/type:money_go_proto", + "//google/type:postaladdress_go_proto", + ], +) + +go_gapic_library( + name = "documentai_go_gapic", + srcs = [":documentai_proto_with_info"], + grpc_service_config = "documentai_v1_grpc_service_config.json", + importpath = "cloud.google.com/go/documentai/apiv1;documentai", + service_yaml = "documentai_v1.yaml", + deps = [ + ":documentai_go_proto", + "//google/longrunning:longrunning_go_proto", + "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", + ], +) + +go_test( + name = "documentai_go_gapic_test", + srcs = [":documentai_go_gapic_srcjar_test"], + embed = [":documentai_go_gapic"], + importpath = "cloud.google.com/go/documentai/apiv1", +) + +# Open Source Packages +go_gapic_assembly_pkg( + name = "gapi-cloud-documentai-v1-go", + deps = [ + ":documentai_go_gapic", + ":documentai_go_gapic_srcjar-test.srcjar", + ":documentai_go_proto", + ], +) + +############################################################################## +# Python +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "py_gapic_assembly_pkg", + "py_gapic_library", +) + +py_gapic_library( + name = "documentai_py_gapic", + srcs = [":documentai_proto"], + grpc_service_config = "documentai_v1_grpc_service_config.json", +) + +# Open Source Packages +py_gapic_assembly_pkg( + name = "documentai-v1-py", + deps = [ + ":documentai_py_gapic", + ], +) + +############################################################################## +# PHP +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "php_gapic_assembly_pkg", + "php_gapic_library", + "php_grpc_library", + "php_proto_library", +) + +php_proto_library( + name = "documentai_php_proto", + deps = [":documentai_proto"], +) + +php_grpc_library( + name = "documentai_php_grpc", + srcs = [":documentai_proto"], + deps = [":documentai_php_proto"], +) + +php_gapic_library( + name = "documentai_php_gapic", + src = ":documentai_proto_with_info", + gapic_yaml = "documentai_gapic.yaml", + grpc_service_config = "documentai_v1_grpc_service_config.json", + package = "google.cloud.documentai.v1", + service_yaml = "documentai_v1.yaml", + deps = [ + ":documentai_php_grpc", + ":documentai_php_proto", + ], +) + +# Open Source Packages +php_gapic_assembly_pkg( + name = "google-cloud-documentai-v1-php", + deps = [ + ":documentai_php_gapic", + ":documentai_php_grpc", + ":documentai_php_proto", + ], +) + +############################################################################## +# Node.js +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", +) + +nodejs_gapic_library( + name = "documentai_nodejs_gapic", + package_name = "@google-cloud/documentai", + src = ":documentai_proto_with_info", + extra_protoc_parameters = ["metadata"], + grpc_service_config = "documentai_v1_grpc_service_config.json", + package = "google.cloud.documentai.v1", + service_yaml = "documentai_v1.yaml", + deps = [], +) + +nodejs_gapic_assembly_pkg( + name = "documentai-v1-nodejs", + deps = [ + ":documentai_nodejs_gapic", + ":documentai_proto", + ], +) + +############################################################################## +# Ruby +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "ruby_gapic_assembly_pkg", + "ruby_cloud_gapic_library", + "ruby_grpc_library", + "ruby_proto_library", +) + +ruby_proto_library( + name = "documentai_ruby_proto", + deps = [":documentai_proto"], +) + +ruby_grpc_library( + name = "documentai_ruby_grpc", + srcs = [":documentai_proto"], + deps = [":documentai_ruby_proto"], +) + +ruby_cloud_gapic_library( + name = "documentai_ruby_gapic", + srcs = [":documentai_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-document_ai-v1", + "ruby-cloud-env-prefix=DOCUMENT_AI", + "ruby-cloud-product-url=https://cloud.google.com/document-ai/", + "ruby-cloud-api-id=us-documentai.googleapis.com", + "ruby-cloud-api-shortname=documentai", + "ruby-cloud-namespace-override=DocumentAi=DocumentAI", + ], + grpc_service_config = "documentai_v1_grpc_service_config.json", + ruby_cloud_description = "Document AI uses machine learning on a single cloud-based platform to automatically classify, extract, and enrich data within your documents to unlock insights.", + ruby_cloud_title = "Document AI V1beta3", + deps = [ + ":documentai_ruby_grpc", + ":documentai_ruby_proto", + ], +) + +# Open Source Packages +ruby_gapic_assembly_pkg( + name = "google-cloud-documentai-v1-ruby", + deps = [ + ":documentai_ruby_gapic", + ":documentai_ruby_grpc", + ":documentai_ruby_proto", + ], +) + +############################################################################## +# C# +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "csharp_gapic_assembly_pkg", + "csharp_gapic_library", + "csharp_grpc_library", + "csharp_proto_library", +) + +csharp_proto_library( + name = "documentai_csharp_proto", + deps = [":documentai_proto"], +) + +csharp_grpc_library( + name = "documentai_csharp_grpc", + srcs = [":documentai_proto"], + deps = [":documentai_csharp_proto"], +) + +csharp_gapic_library( + name = "documentai_csharp_gapic", + srcs = [":documentai_proto_with_info"], + common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "documentai_v1_grpc_service_config.json", + deps = [ + ":documentai_csharp_grpc", + ":documentai_csharp_proto", + ], +) + +# Open Source Packages +csharp_gapic_assembly_pkg( + name = "google-cloud-documentai-v1-csharp", + deps = [ + ":documentai_csharp_gapic", + ":documentai_csharp_grpc", + ":documentai_csharp_proto", + ], +) + +############################################################################## +# C++ +############################################################################## +# Put your C++ rules here diff --git a/third_party/googleapis/google/cloud/documentai/v1/document.proto b/third_party/googleapis/google/cloud/documentai/v1/document.proto new file mode 100644 index 000000000..f68eee737 --- /dev/null +++ b/third_party/googleapis/google/cloud/documentai/v1/document.proto @@ -0,0 +1,712 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.documentai.v1; + +import "google/api/field_behavior.proto"; +import "google/cloud/documentai/v1/geometry.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; +import "google/type/color.proto"; +import "google/type/date.proto"; +import "google/type/datetime.proto"; +import "google/type/money.proto"; +import "google/type/postal_address.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Cloud.DocumentAI.V1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1;documentai"; +option java_multiple_files = true; +option java_outer_classname = "DocumentProto"; +option java_package = "com.google.cloud.documentai.v1"; +option php_namespace = "Google\\Cloud\\DocumentAI\\V1"; +option ruby_package = "Google::Cloud::DocumentAI::V1"; + +// Document represents the canonical document resource in Document Understanding +// AI. +// It is an interchange format that provides insights into documents and allows +// for collaboration between users and Document Understanding AI to iterate and +// optimize for quality. +message Document { + // For a large document, sharding may be performed to produce several + // document shards. Each document shard contains this field to detail which + // shard it is. + message ShardInfo { + // The 0-based index of this shard. + int64 shard_index = 1; + + // Total number of shards. + int64 shard_count = 2; + + // The index of the first character in [Document.text][google.cloud.documentai.v1.Document.text] in the overall + // document global text. + int64 text_offset = 3; + } + + // Annotation for common text style attributes. This adheres to CSS + // conventions as much as possible. + message Style { + // Font size with unit. + message FontSize { + // Font size for the text. + float size = 1; + + // Unit for the font size. Follows CSS naming (in, px, pt, etc.). + string unit = 2; + } + + // Text anchor indexing into the [Document.text][google.cloud.documentai.v1.Document.text]. + TextAnchor text_anchor = 1; + + // Text color. + google.type.Color color = 2; + + // Text background color. + google.type.Color background_color = 3; + + // Font weight. Possible values are normal, bold, bolder, and lighter. + // https://www.w3schools.com/cssref/pr_font_weight.asp + string font_weight = 4; + + // Text style. Possible values are normal, italic, and oblique. + // https://www.w3schools.com/cssref/pr_font_font-style.asp + string text_style = 5; + + // Text decoration. Follows CSS standard. + // + // https://www.w3schools.com/cssref/pr_text_text-decoration.asp + string text_decoration = 6; + + // Font size. + FontSize font_size = 7; + } + + // A page in a [Document][google.cloud.documentai.v1.Document]. + message Page { + // Dimension for the page. + message Dimension { + // Page width. + float width = 1; + + // Page height. + float height = 2; + + // Dimension unit. + string unit = 3; + } + + // Rendered image contents for this page. + message Image { + // Raw byte content of the image. + bytes content = 1; + + // Encoding mime type for the image. + string mime_type = 2; + + // Width of the image in pixels. + int32 width = 3; + + // Height of the image in pixels. + int32 height = 4; + } + + // Representation for transformation matrix, intended to be compatible and + // used with OpenCV format for image manipulation. + message Matrix { + // Number of rows in the matrix. + int32 rows = 1; + + // Number of columns in the matrix. + int32 cols = 2; + + // This encodes information about what data type the matrix uses. + // For example, 0 (CV_8U) is an unsigned 8-bit image. For the full list + // of OpenCV primitive data types, please refer to + // https://docs.opencv.org/4.3.0/d1/d1b/group__core__hal__interface.html + int32 type = 3; + + // The matrix data. + bytes data = 4; + } + + // Visual element describing a layout unit on a page. + message Layout { + // Detected human reading orientation. + enum Orientation { + // Unspecified orientation. + ORIENTATION_UNSPECIFIED = 0; + + // Orientation is aligned with page up. + PAGE_UP = 1; + + // Orientation is aligned with page right. + // Turn the head 90 degrees clockwise from upright to read. + PAGE_RIGHT = 2; + + // Orientation is aligned with page down. + // Turn the head 180 degrees from upright to read. + PAGE_DOWN = 3; + + // Orientation is aligned with page left. + // Turn the head 90 degrees counterclockwise from upright to read. + PAGE_LEFT = 4; + } + + // Text anchor indexing into the [Document.text][google.cloud.documentai.v1.Document.text]. + TextAnchor text_anchor = 1; + + // Confidence of the current [Layout][google.cloud.documentai.v1.Document.Page.Layout] within context of the object this + // layout is for. e.g. confidence can be for a single token, a table, + // a visual element, etc. depending on context. Range [0, 1]. + float confidence = 2; + + // The bounding polygon for the [Layout][google.cloud.documentai.v1.Document.Page.Layout]. + BoundingPoly bounding_poly = 3; + + // Detected orientation for the [Layout][google.cloud.documentai.v1.Document.Page.Layout]. + Orientation orientation = 4; + } + + // A block has a set of lines (collected into paragraphs) that have a + // common line-spacing and orientation. + message Block { + // [Layout][google.cloud.documentai.v1.Document.Page.Layout] for [Block][google.cloud.documentai.v1.Document.Page.Block]. + Layout layout = 1; + + // A list of detected languages together with confidence. + repeated DetectedLanguage detected_languages = 2; + + // The history of this annotation. + Provenance provenance = 3; + } + + // A collection of lines that a human would perceive as a paragraph. + message Paragraph { + // [Layout][google.cloud.documentai.v1.Document.Page.Layout] for [Paragraph][google.cloud.documentai.v1.Document.Page.Paragraph]. + Layout layout = 1; + + // A list of detected languages together with confidence. + repeated DetectedLanguage detected_languages = 2; + + // The history of this annotation. + Provenance provenance = 3; + } + + // A collection of tokens that a human would perceive as a line. + // Does not cross column boundaries, can be horizontal, vertical, etc. + message Line { + // [Layout][google.cloud.documentai.v1.Document.Page.Layout] for [Line][google.cloud.documentai.v1.Document.Page.Line]. + Layout layout = 1; + + // A list of detected languages together with confidence. + repeated DetectedLanguage detected_languages = 2; + + // The history of this annotation. + Provenance provenance = 3; + } + + // A detected token. + message Token { + // Detected break at the end of a [Token][google.cloud.documentai.v1.Document.Page.Token]. + message DetectedBreak { + // Enum to denote the type of break found. + enum Type { + // Unspecified break type. + TYPE_UNSPECIFIED = 0; + + // A single whitespace. + SPACE = 1; + + // A wider whitespace. + WIDE_SPACE = 2; + + // A hyphen that indicates that a token has been split across lines. + HYPHEN = 3; + } + + // Detected break type. + Type type = 1; + } + + // [Layout][google.cloud.documentai.v1.Document.Page.Layout] for [Token][google.cloud.documentai.v1.Document.Page.Token]. + Layout layout = 1; + + // Detected break at the end of a [Token][google.cloud.documentai.v1.Document.Page.Token]. + DetectedBreak detected_break = 2; + + // A list of detected languages together with confidence. + repeated DetectedLanguage detected_languages = 3; + + // The history of this annotation. + Provenance provenance = 4; + } + + // Detected non-text visual elements e.g. checkbox, signature etc. on the + // page. + message VisualElement { + // [Layout][google.cloud.documentai.v1.Document.Page.Layout] for [VisualElement][google.cloud.documentai.v1.Document.Page.VisualElement]. + Layout layout = 1; + + // Type of the [VisualElement][google.cloud.documentai.v1.Document.Page.VisualElement]. + string type = 2; + + // A list of detected languages together with confidence. + repeated DetectedLanguage detected_languages = 3; + } + + // A table representation similar to HTML table structure. + message Table { + // A row of table cells. + message TableRow { + // Cells that make up this row. + repeated TableCell cells = 1; + } + + // A cell representation inside the table. + message TableCell { + // [Layout][google.cloud.documentai.v1.Document.Page.Layout] for [TableCell][google.cloud.documentai.v1.Document.Page.Table.TableCell]. + Layout layout = 1; + + // How many rows this cell spans. + int32 row_span = 2; + + // How many columns this cell spans. + int32 col_span = 3; + + // A list of detected languages together with confidence. + repeated DetectedLanguage detected_languages = 4; + } + + // [Layout][google.cloud.documentai.v1.Document.Page.Layout] for [Table][google.cloud.documentai.v1.Document.Page.Table]. + Layout layout = 1; + + // Header rows of the table. + repeated TableRow header_rows = 2; + + // Body rows of the table. + repeated TableRow body_rows = 3; + + // A list of detected languages together with confidence. + repeated DetectedLanguage detected_languages = 4; + } + + // A form field detected on the page. + message FormField { + // [Layout][google.cloud.documentai.v1.Document.Page.Layout] for the [FormField][google.cloud.documentai.v1.Document.Page.FormField] name. e.g. `Address`, `Email`, + // `Grand total`, `Phone number`, etc. + Layout field_name = 1; + + // [Layout][google.cloud.documentai.v1.Document.Page.Layout] for the [FormField][google.cloud.documentai.v1.Document.Page.FormField] value. + Layout field_value = 2; + + // A list of detected languages for name together with confidence. + repeated DetectedLanguage name_detected_languages = 3; + + // A list of detected languages for value together with confidence. + repeated DetectedLanguage value_detected_languages = 4; + + // If the value is non-textual, this field represents the type. Current + // valid values are: + // - blank (this indicates the field_value is normal text) + // - "unfilled_checkbox" + // - "filled_checkbox" + string value_type = 5; + } + + // Detected language for a structural component. + message DetectedLanguage { + // The BCP-47 language code, such as "en-US" or "sr-Latn". For more + // information, see + // http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + string language_code = 1; + + // Confidence of detected language. Range [0, 1]. + float confidence = 2; + } + + // 1-based index for current [Page][google.cloud.documentai.v1.Document.Page] in a parent [Document][google.cloud.documentai.v1.Document]. + // Useful when a page is taken out of a [Document][google.cloud.documentai.v1.Document] for individual + // processing. + int32 page_number = 1; + + // Rendered image for this page. This image is preprocessed to remove any + // skew, rotation, and distortions such that the annotation bounding boxes + // can be upright and axis-aligned. + Image image = 13; + + // Transformation matrices that were applied to the original document image + // to produce [Page.image][google.cloud.documentai.v1.Document.Page.image]. + repeated Matrix transforms = 14; + + // Physical dimension of the page. + Dimension dimension = 2; + + // [Layout][google.cloud.documentai.v1.Document.Page.Layout] for the page. + Layout layout = 3; + + // A list of detected languages together with confidence. + repeated DetectedLanguage detected_languages = 4; + + // A list of visually detected text blocks on the page. + // A block has a set of lines (collected into paragraphs) that have a common + // line-spacing and orientation. + repeated Block blocks = 5; + + // A list of visually detected text paragraphs on the page. + // A collection of lines that a human would perceive as a paragraph. + repeated Paragraph paragraphs = 6; + + // A list of visually detected text lines on the page. + // A collection of tokens that a human would perceive as a line. + repeated Line lines = 7; + + // A list of visually detected tokens on the page. + repeated Token tokens = 8; + + // A list of detected non-text visual elements e.g. checkbox, + // signature etc. on the page. + repeated VisualElement visual_elements = 9; + + // A list of visually detected tables on the page. + repeated Table tables = 10; + + // A list of visually detected form fields on the page. + repeated FormField form_fields = 11; + } + + // A phrase in the text that is a known entity type, such as a person, an + // organization, or location. + message Entity { + // Parsed and normalized entity value. + message NormalizedValue { + // Structured entity value. Must match entity type defined in schema if + // known. If this field is present, the 'text' field is still populated. + oneof structured_value { + // Money value. See also: + // https://github.com/googleapis/googleapis/blob/master/google/type/money.proto + google.type.Money money_value = 2; + + // Date value. Includes year, month, day. See also: + // https://github.com/googleapis/googleapis/blob/master/google/type/date.proto + google.type.Date date_value = 3; + + // DateTime value. Includes date, time, and timezone. See also: + // https://github.com/googleapis/googleapis/blob/master/google/type/datetime.proto + google.type.DateTime datetime_value = 4; + + // Postal address. See also: + // https://github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto + google.type.PostalAddress address_value = 5; + + // Boolean value. Can be used for entities with binary values, or for + // checkboxes. + bool boolean_value = 6; + } + + // Required. Normalized entity value stored as a string. This field is populated for + // supported document type (e.g. Invoice). For some entity types, one of + // respective 'structured_value' fields may also be populated. + // + // - Money/Currency type (`money_value`) is in the ISO 4217 text format. + // - Date type (`date_value`) is in the ISO 8601 text format. + // - Datetime type (`datetime_value`) is in the ISO 8601 text format. + string text = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // Optional. Provenance of the entity. + // Text anchor indexing into the [Document.text][google.cloud.documentai.v1.Document.text]. + TextAnchor text_anchor = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Entity type from a schema e.g. `Address`. + string type = 2; + + // Optional. Text value in the document e.g. `1600 Amphitheatre Pkwy`. + string mention_text = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Deprecated. Use `id` field instead. + string mention_id = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Confidence of detected Schema entity. Range [0, 1]. + float confidence = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Represents the provenance of this entity wrt. the location on the + // page where it was found. + PageAnchor page_anchor = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Canonical id. This will be a unique value in the entity list + // for this document. + string id = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Normalized entity value. Absent if the extracted value could not be + // converted or the type (e.g. address) is not supported for certain + // parsers. This field is also only populated for certain supported document + // types. + NormalizedValue normalized_value = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Entities can be nested to form a hierarchical data structure representing + // the content in the document. + repeated Entity properties = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The history of this annotation. + Provenance provenance = 11 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether the entity will be redacted for de-identification purposes. + bool redacted = 12 [(google.api.field_behavior) = OPTIONAL]; + } + + // Relationship between [Entities][google.cloud.documentai.v1.Document.Entity]. + message EntityRelation { + // Subject entity id. + string subject_id = 1; + + // Object entity id. + string object_id = 2; + + // Relationship description. + string relation = 3; + } + + // Text reference indexing into the [Document.text][google.cloud.documentai.v1.Document.text]. + message TextAnchor { + // A text segment in the [Document.text][google.cloud.documentai.v1.Document.text]. The indices may be out of bounds + // which indicate that the text extends into another document shard for + // large sharded documents. See [ShardInfo.text_offset][google.cloud.documentai.v1.Document.ShardInfo.text_offset] + message TextSegment { + // [TextSegment][google.cloud.documentai.v1.Document.TextAnchor.TextSegment] start UTF-8 char index in the [Document.text][google.cloud.documentai.v1.Document.text]. + int64 start_index = 1; + + // [TextSegment][google.cloud.documentai.v1.Document.TextAnchor.TextSegment] half open end UTF-8 char index in the + // [Document.text][google.cloud.documentai.v1.Document.text]. + int64 end_index = 2; + } + + // The text segments from the [Document.text][google.cloud.documentai.v1.Document.text]. + repeated TextSegment text_segments = 1; + + // Contains the content of the text span so that users do + // not have to look it up in the text_segments. + string content = 2; + } + + // Referencing the visual context of the entity in the [Document.pages][google.cloud.documentai.v1.Document.pages]. + // Page anchors can be cross-page, consist of multiple bounding polygons and + // optionally reference specific layout element types. + message PageAnchor { + // Represents a weak reference to a page element within a document. + message PageRef { + // The type of layout that is being referenced. + enum LayoutType { + // Layout Unspecified. + LAYOUT_TYPE_UNSPECIFIED = 0; + + // References a [Page.blocks][google.cloud.documentai.v1.Document.Page.blocks] element. + BLOCK = 1; + + // References a [Page.paragraphs][google.cloud.documentai.v1.Document.Page.paragraphs] element. + PARAGRAPH = 2; + + // References a [Page.lines][google.cloud.documentai.v1.Document.Page.lines] element. + LINE = 3; + + // References a [Page.tokens][google.cloud.documentai.v1.Document.Page.tokens] element. + TOKEN = 4; + + // References a [Page.visual_elements][google.cloud.documentai.v1.Document.Page.visual_elements] element. + VISUAL_ELEMENT = 5; + + // Refrrences a [Page.tables][google.cloud.documentai.v1.Document.Page.tables] element. + TABLE = 6; + + // References a [Page.form_fields][google.cloud.documentai.v1.Document.Page.form_fields] element. + FORM_FIELD = 7; + } + + // Required. Index into the [Document.pages][google.cloud.documentai.v1.Document.pages] element, for example using + // [Document.pages][page_refs.page] to locate the related page element. + int64 page = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The type of the layout element that is being referenced if any. + LayoutType layout_type = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Deprecated. Use [PageRef.bounding_poly][google.cloud.documentai.v1.Document.PageAnchor.PageRef.bounding_poly] instead. + string layout_id = 3 [ + deprecated = true, + (google.api.field_behavior) = OPTIONAL + ]; + + // Optional. Identifies the bounding polygon of a layout element on the page. + BoundingPoly bounding_poly = 4 [(google.api.field_behavior) = OPTIONAL]; + } + + // One or more references to visual page elements + repeated PageRef page_refs = 1; + } + + // Structure to identify provenance relationships between annotations in + // different revisions. + message Provenance { + // Structure for referencing parent provenances. When an element replaces + // one of more other elements parent references identify the elements that + // are replaced. + message Parent { + // The index of the [Document.revisions] identifying the parent revision. + int32 revision = 1; + + // The id of the parent provenance. + int32 id = 2; + } + + // If a processor or agent does an explicit operation on existing elements. + enum OperationType { + // Operation type unspecified. + OPERATION_TYPE_UNSPECIFIED = 0; + + // Add an element. Implicit if no `parents` are set for the provenance. + ADD = 1; + + // The element is removed. No `parents` should be set. + REMOVE = 2; + + // Explicitly replaces the element(s) identified by `parents`. + REPLACE = 3; + + // Element is requested for human review. + EVAL_REQUESTED = 4; + + // Element is review and approved at human review, confidence will be set + // to 1.0 + EVAL_APPROVED = 5; + } + + // The index of the revision that produced this element. + int32 revision = 1; + + // The Id of this operation. Needs to be unique within the scope of the + // revision. + int32 id = 2; + + // References to the original elements that are replaced. + repeated Parent parents = 3; + + // The type of provenance operation. + OperationType type = 4; + } + + // Contains past or forward revisions of this document. + message Revision { + // Human Review information of the document. + message HumanReview { + // Human review state. e.g. `requested`, `succeeded`, `rejected`. + string state = 1; + + // A message providing more details about the current state of processing. + // For example, the rejection reason when the state is `rejected`. + string state_message = 2; + } + + // Who/what made the change + oneof source { + // If the change was made by a person specify the name or id of that + // person. + string agent = 4; + + // If the annotation was made by processor identify the processor by its + // resource name. + string processor = 5; + } + + // Id of the revision. Unique within the context of the document. + string id = 1; + + // The revisions that this revision is based on. This can include one or + // more parent (when documents are merged.) This field represents the + // index into the `revisions` field. + repeated int32 parent = 2; + + // The time that the revision was created. + google.protobuf.Timestamp create_time = 3; + + // Human Review information of this revision. + HumanReview human_review = 6; + } + + // This message is used for text changes aka. OCR corrections. + message TextChange { + // Provenance of the correction. + // Text anchor indexing into the [Document.text][google.cloud.documentai.v1.Document.text]. There can only be a + // single `TextAnchor.text_segments` element. If the start and + // end index of the text segment are the same, the text change is inserted + // before that index. + TextAnchor text_anchor = 1; + + // The text that replaces the text identified in the `text_anchor`. + string changed_text = 2; + + // The history of this annotation. + repeated Provenance provenance = 3; + } + + // Original source document from the user. + oneof source { + // Optional. Currently supports Google Cloud Storage URI of the form + // `gs://bucket_name/object_name`. Object versioning is not supported. + // See [Google Cloud Storage Request + // URIs](https://cloud.google.com/storage/docs/reference-uris) for more + // info. + string uri = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Inline document content, represented as a stream of bytes. + // Note: As with all `bytes` fields, protobuffers use a pure binary + // representation, whereas JSON representations use base64. + bytes content = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // An IANA published MIME type (also referred to as media type). For more + // information, see + // https://www.iana.org/assignments/media-types/media-types.xhtml. + string mime_type = 3; + + // Optional. UTF-8 encoded text in reading order from the document. + string text = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Styles for the [Document.text][google.cloud.documentai.v1.Document.text]. + repeated Style text_styles = 5; + + // Visual page layout for the [Document][google.cloud.documentai.v1.Document]. + repeated Page pages = 6; + + // A list of entities detected on [Document.text][google.cloud.documentai.v1.Document.text]. For document shards, + // entities in this list may cross shard boundaries. + repeated Entity entities = 7; + + // Relationship among [Document.entities][google.cloud.documentai.v1.Document.entities]. + repeated EntityRelation entity_relations = 8; + + // A list of text corrections made to [Document.text]. This is usually + // used for annotating corrections to OCR mistakes. Text changes for a given + // revision may not overlap with each other. + repeated TextChange text_changes = 14; + + // Information about the sharding if this document is sharded part of a larger + // document. If the document is not sharded, this message is not specified. + ShardInfo shard_info = 9; + + // Any error that occurred while processing this document. + google.rpc.Status error = 10; + + // Revision history of this document. + repeated Revision revisions = 13; +} diff --git a/third_party/googleapis/google/cloud/documentai/v1/document_io.proto b/third_party/googleapis/google/cloud/documentai/v1/document_io.proto new file mode 100644 index 000000000..1bd020eef --- /dev/null +++ b/third_party/googleapis/google/cloud/documentai/v1/document_io.proto @@ -0,0 +1,86 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.documentai.v1; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Cloud.DocumentAI.V1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1;documentai"; +option java_multiple_files = true; +option java_outer_classname = "DocumentIoProto"; +option java_package = "com.google.cloud.documentai.v1"; +option php_namespace = "Google\\Cloud\\DocumentAI\\V1"; +option ruby_package = "Google::Cloud::DocumentAI::V1"; + +// Payload message of raw document content (bytes). +message RawDocument { + // Inline document content. + bytes content = 1; + + // An IANA MIME type (RFC6838) indicating the nature and format of the + // [content]. + string mime_type = 2; +} + +// Specifies a document stored on Cloud Storage. +message GcsDocument { + // The Cloud Storage object uri. + string gcs_uri = 1; + + // An IANA MIME type (RFC6838) of the content. + string mime_type = 2; +} + +// Specifies a set of documents on Cloud Storage. +message GcsDocuments { + // The list of documents. + repeated GcsDocument documents = 1; +} + +// Specifies all documents on Cloud Storage with a common prefix. +message GcsPrefix { + // The URI prefix. + string gcs_uri_prefix = 1; +} + +// The common config to specify a set of documents used as input. +message BatchDocumentsInputConfig { + // The source. + oneof source { + // The set of documents that match the specified Cloud Storage [gcs_prefix]. + GcsPrefix gcs_prefix = 1; + + // The set of documents individually specified on Cloud Storage. + GcsDocuments gcs_documents = 2; + } +} + +// Config that controls the output of documents. All documents will be written +// as a JSON file. +message DocumentOutputConfig { + // The configuration used when outputting documents. + message GcsOutputConfig { + // The Cloud Storage uri (a directory) of the output. + string gcs_uri = 1; + } + + // The destination of the results. + oneof destination { + // Output config to write the results to Cloud Storage. + GcsOutputConfig gcs_output_config = 1; + } +} diff --git a/third_party/googleapis/google/cloud/documentai/v1/document_processor_service.proto b/third_party/googleapis/google/cloud/documentai/v1/document_processor_service.proto new file mode 100644 index 000000000..0d3e872ca --- /dev/null +++ b/third_party/googleapis/google/cloud/documentai/v1/document_processor_service.proto @@ -0,0 +1,318 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.documentai.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/documentai/v1/document.proto"; +import "google/cloud/documentai/v1/document_io.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Cloud.DocumentAI.V1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1;documentai"; +option java_multiple_files = true; +option java_outer_classname = "DocumentAiProcessorService"; +option java_package = "com.google.cloud.documentai.v1"; +option php_namespace = "Google\\Cloud\\DocumentAI\\V1"; +option ruby_package = "Google::Cloud::DocumentAI::V1"; +option (google.api.resource_definition) = { + type: "documentai.googleapis.com/Location" + pattern: "projects/{project}/locations/{location}" +}; +option (google.api.resource_definition) = { + type: "documentai.googleapis.com/Processor" + pattern: "projects/{project}/locations/{location}/processors/{processor}" +}; +option (google.api.resource_definition) = { + type: "documentai.googleapis.com/HumanReviewConfig" + pattern: "projects/{project}/locations/{location}/processors/{processor}/humanReviewConfig" +}; + +// Service to call Cloud DocumentAI to process documents according to the +// processor's definition. Processors are built using state-of-the-art Google +// AI such as natural language, computer vision, and translation to extract +// structured information from unstructured or semi-structured documents. +service DocumentProcessorService { + option (google.api.default_host) = "us-documentai.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + + // Processes a single document. + rpc ProcessDocument(ProcessRequest) returns (ProcessResponse) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/processors/*}:process" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // LRO endpoint to batch process many documents. The output is written + // to Cloud Storage as JSON in the [Document] format. + rpc BatchProcessDocuments(BatchProcessRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/processors/*}:batchProcess" + body: "*" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "BatchProcessResponse" + metadata_type: "BatchProcessMetadata" + }; + } + + // Send a document for Human Review. The input document should be processed by + // the specified processor. + rpc ReviewDocument(ReviewDocumentRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{human_review_config=projects/*/locations/*/processors/*/humanReviewConfig}:reviewDocument" + body: "*" + }; + option (google.api.method_signature) = "human_review_config"; + option (google.longrunning.operation_info) = { + response_type: "ReviewDocumentResponse" + metadata_type: "ReviewDocumentOperationMetadata" + }; + } +} + +// Request message for the process document method. +message ProcessRequest { + // The document payload. + oneof source { + // An inline document proto. + Document inline_document = 4; + + // A raw document content (bytes). + RawDocument raw_document = 5; + } + + // Required. The processor resource name. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "documentai.googleapis.com/Processor" + } + ]; + + // Whether Human Review feature should be skipped for this request. Default to + // false. + bool skip_human_review = 3; +} + +// The status of human review on a processed document. +message HumanReviewStatus { + // The final state of human review on a processed document. + enum State { + // Human review state is unspecified. Most likely due to an internal error. + STATE_UNSPECIFIED = 0; + + // Human review is skipped for the document. This can happen because human + // review is not enabled on the processor or the processing request has + // been set to skip this document. + SKIPPED = 1; + + // Human review validation is triggered and passed, so no review is needed. + VALIDATION_PASSED = 2; + + // Human review validation is triggered and the document is under review. + IN_PROGRESS = 3; + + // Some error happened during triggering human review, see the + // [state_message] for details. + ERROR = 4; + } + + // The state of human review on the processing request. + State state = 1; + + // A message providing more details about the human review state. + string state_message = 2; + + // The name of the operation triggered by the processed document. This field + // is populated only when the [state] is [HUMAN_REVIEW_IN_PROGRESS]. It has + // the same response type and metadata as the long running operation returned + // by [ReviewDocument] method. + string human_review_operation = 3; +} + +// Response message for the process document method. +message ProcessResponse { + // The document payload, will populate fields based on the processor's + // behavior. + Document document = 1; + + // The status of human review on the processed document. + HumanReviewStatus human_review_status = 3; +} + +// Request message for batch process document method. +message BatchProcessRequest { + // Required. The processor resource name. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "documentai.googleapis.com/Processor" + } + ]; + + // The input documents for batch process. + BatchDocumentsInputConfig input_documents = 5; + + // The overall output config for batch process. + DocumentOutputConfig document_output_config = 6; + + // Whether Human Review feature should be skipped for this request. Default to + // false. + bool skip_human_review = 4; +} + +// Response message for batch process document method. +message BatchProcessResponse { + +} + +// The long running operation metadata for batch process method. +message BatchProcessMetadata { + // The status of a each individual document in the batch process. + message IndividualProcessStatus { + // The source of the document, same as the [input_gcs_source] field in the + // request when the batch process started. The batch process is started by + // take snapshot of that document, since a user can move or change that + // document during the process. + string input_gcs_source = 1; + + // The status of the processing of the document. + google.rpc.Status status = 2; + + // The output_gcs_destination (in the request as 'output_gcs_destination') + // of the processed document if it was successful, otherwise empty. + string output_gcs_destination = 3; + + // The status of human review on the processed document. + HumanReviewStatus human_review_status = 5; + } + + // Possible states of the batch processing operation. + enum State { + // The default value. This value is used if the state is omitted. + STATE_UNSPECIFIED = 0; + + // Request operation is waiting for scheduling. + WAITING = 1; + + // Request is being processed. + RUNNING = 2; + + // The batch processing completed successfully. + SUCCEEDED = 3; + + // The batch processing was being cancelled. + CANCELLING = 4; + + // The batch processing was cancelled. + CANCELLED = 5; + + // The batch processing has failed. + FAILED = 6; + } + + // The state of the current batch processing. + State state = 1; + + // A message providing more details about the current state of processing. + // For example, the error message if the operation is failed. + string state_message = 2; + + // The creation time of the operation. + google.protobuf.Timestamp create_time = 3; + + // The last update time of the operation. + google.protobuf.Timestamp update_time = 4; + + // The list of response details of each document. + repeated IndividualProcessStatus individual_process_statuses = 5; +} + +// Request message for review document method. +message ReviewDocumentRequest { + // The document payload. + oneof source { + // An inline document proto. + Document inline_document = 4; + } + + // Required. The resource name of the HumanReviewConfig that the document will be + // reviewed with. + string human_review_config = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "documentai.googleapis.com/HumanReviewConfig" + } + ]; +} + +// Response message for review document method. +message ReviewDocumentResponse { + // The Cloud Storage uri for the human reviewed document. + string gcs_destination = 1; +} + +// The long running operation metadata for review document method. +message ReviewDocumentOperationMetadata { + // The basic metadata of the long running operation. + CommonOperationMetadata common_metadata = 5; +} + +// The common metadata for long running operations. +message CommonOperationMetadata { + // State of the longrunning operation. + enum State { + // Unspecified state. + STATE_UNSPECIFIED = 0; + + // Operation is still running. + RUNNING = 1; + + // Operation is being cancelled. + CANCELLING = 2; + + // Operation succeeded. + SUCCEEDED = 3; + + // Operation failed. + FAILED = 4; + + // Operation is cancelled. + CANCELLED = 5; + } + + // The state of the operation. + State state = 1; + + // A message providing more details about the current state of processing. + string state_message = 2; + + // The creation time of the operation. + google.protobuf.Timestamp create_time = 3; + + // The last update time of the operation. + google.protobuf.Timestamp update_time = 4; +} diff --git a/third_party/googleapis/google/cloud/documentai/v1/documentai_gapic.yaml b/third_party/googleapis/google/cloud/documentai/v1/documentai_gapic.yaml new file mode 100644 index 000000000..db1f5a2cb --- /dev/null +++ b/third_party/googleapis/google/cloud/documentai/v1/documentai_gapic.yaml @@ -0,0 +1,16 @@ +type: com.google.api.codegen.ConfigProto +config_schema_version: 2.0.0 +language_settings: + python: + package_name: google.cloud.documentai.v1.gapic + go: + package_name: cloud.google.com/go/documentai/apiv1 + csharp: + package_name: Google.DocumentAi.V1 + ruby: + package_name: Google::Cloud::DocumentAi::V1 + php: + package_name: Google\Cloud\DocumentAi\V1 + nodejs: + package_name: documentai.v1 + domain_layer_location: google-cloud diff --git a/third_party/googleapis/google/cloud/documentai/v1/documentai_v1.yaml b/third_party/googleapis/google/cloud/documentai/v1/documentai_v1.yaml new file mode 100644 index 000000000..f7a40ce1f --- /dev/null +++ b/third_party/googleapis/google/cloud/documentai/v1/documentai_v1.yaml @@ -0,0 +1,35 @@ +type: google.api.Service +config_version: 3 +name: documentai.googleapis.com +title: Cloud Document AI API + +apis: +- name: google.cloud.documentai.v1.DocumentProcessorService + +types: +- name: google.cloud.documentai.v1.BatchProcessMetadata +- name: google.cloud.documentai.v1.BatchProcessResponse +- name: google.cloud.documentai.v1.ReviewDocumentOperationMetadata +- name: google.cloud.documentai.v1.ReviewDocumentResponse + +documentation: + summary: |- + Service to parse structured information from unstructured or + semi-structured documents using state-of-the-art Google AI such as natural + language, computer vision, translation, and AutoML. + +backend: + rules: + - selector: 'google.longrunning.Operations.*' + deadline: 60.0 + +authentication: + rules: + - selector: 'google.cloud.documentai.v1.DocumentProcessorService.*' + 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/third_party/googleapis/google/cloud/documentai/v1/documentai_v1_grpc_service_config.json b/third_party/googleapis/google/cloud/documentai/v1/documentai_v1_grpc_service_config.json new file mode 100644 index 000000000..d96fa0b5c --- /dev/null +++ b/third_party/googleapis/google/cloud/documentai/v1/documentai_v1_grpc_service_config.json @@ -0,0 +1,30 @@ +{ + "methodConfig": [ + { + "name": [ + { + "service": "google.cloud.documentai.v1.DocumentProcessorService", + "method": "ProcessDocument" + }, + { + "service": "google.cloud.documentai.v1.DocumentProcessorService", + "method": "BatchProcessDocuments" + }, + { + "service": "google.cloud.documentai.v1.DocumentProcessorService", + "method": "ReviewDocument" + } + ], + "timeout": "120s", + "retryPolicy": { + "initialBackoff": "0.100s", + "maxBackoff": "60s", + "backoffMultiplier": 1.3, + "retryableStatusCodes": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ] + } + } + ] +} diff --git a/third_party/googleapis/google/cloud/documentai/v1/geometry.proto b/third_party/googleapis/google/cloud/documentai/v1/geometry.proto new file mode 100644 index 000000000..779e9664d --- /dev/null +++ b/third_party/googleapis/google/cloud/documentai/v1/geometry.proto @@ -0,0 +1,57 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.documentai.v1; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Cloud.DocumentAI.V1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1;documentai"; +option java_multiple_files = true; +option java_outer_classname = "GeometryProto"; +option java_package = "com.google.cloud.documentai.v1"; +option php_namespace = "Google\\Cloud\\DocumentAI\\V1"; +option ruby_package = "Google::Cloud::DocumentAI::V1"; + +// A vertex represents a 2D point in the image. +// NOTE: the vertex coordinates are in the same scale as the original image. +message Vertex { + // X coordinate. + int32 x = 1; + + // Y coordinate. + int32 y = 2; +} + +// A vertex represents a 2D point in the image. +// NOTE: the normalized vertex coordinates are relative to the original image +// and range from 0 to 1. +message NormalizedVertex { + // X coordinate. + float x = 1; + + // Y coordinate. + float y = 2; +} + +// A bounding polygon for the detected image annotation. +message BoundingPoly { + // The bounding polygon vertices. + repeated Vertex vertices = 1; + + // The bounding polygon normalized vertices. + repeated NormalizedVertex normalized_vertices = 2; +} diff --git a/third_party/googleapis/google/cloud/documentai/v1beta1/BUILD.bazel b/third_party/googleapis/google/cloud/documentai/v1beta1/BUILD.bazel index 65c1bceab..92961d997 100644 --- a/third_party/googleapis/google/cloud/documentai/v1beta1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/documentai/v1beta1/BUILD.bazel @@ -1,4 +1,13 @@ # This file was automatically generated by BuildFileGenerator +# https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/bazel + +# Most of the manual changes to this file will be overwritten. +# It's **only** allowed to change the following rule attribute values: +# - names of *_gapic_assembly_* rules +# - certain parameters of *_gapic_library rules, including but not limited to: +# * extra_protoc_parameters +# * extra_protoc_file_parameters +# The complete list of preserved parameters can be found in the source code. # This is an API workspace, having public visibility by default makes perfect sense. package(default_visibility = ["//visibility:public"]) @@ -60,11 +69,8 @@ java_grpc_library( java_gapic_library( name = "documentai_java_gapic", - src = ":documentai_proto_with_info", - gapic_yaml = "documentai_gapic.yaml", + srcs = [":documentai_proto_with_info"], grpc_service_config = "documentai_grpc_service_config.json", - package = "google.cloud.documentai.v1beta1", - service_yaml = "//google/cloud/documentai:documentai_v1beta1.yaml", test_deps = [ ":documentai_java_grpc", ], @@ -124,9 +130,9 @@ go_gapic_library( service_yaml = "//google/cloud/documentai:documentai_v1beta1.yaml", deps = [ ":documentai_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", ], ) @@ -152,50 +158,14 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "documentai_moved_proto", - srcs = [":documentai_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/longrunning:operations_proto", - "//google/rpc:status_proto", - "//google/type:color_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -py_proto_library( - name = "documentai_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":documentai_moved_proto"], -) - -py_grpc_library( - name = "documentai_py_grpc", - srcs = [":documentai_moved_proto"], - deps = [":documentai_py_proto"], ) py_gapic_library( name = "documentai_py_gapic", - src = ":documentai_proto_with_info", - gapic_yaml = "documentai_gapic.yaml", + srcs = [":documentai_proto"], grpc_service_config = "documentai_grpc_service_config.json", - package = "google.cloud.documentai.v1beta1", - service_yaml = "//google/cloud/documentai:documentai_v1beta1.yaml", - deps = [ - ":documentai_py_grpc", - ":documentai_py_proto", - ], ) # Open Source Packages @@ -203,8 +173,6 @@ py_gapic_assembly_pkg( name = "documentai-v1beta1-py", deps = [ ":documentai_py_gapic", - ":documentai_py_grpc", - ":documentai_py_proto", ], ) @@ -265,6 +233,7 @@ load( nodejs_gapic_library( name = "documentai_nodejs_gapic", src = ":documentai_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "documentai_grpc_service_config.json", package = "google.cloud.documentai.v1beta1", service_yaml = "//google/cloud/documentai:documentai_v1beta1.yaml", @@ -348,8 +317,8 @@ csharp_grpc_library( csharp_gapic_library( name = "documentai_csharp_gapic", srcs = [":documentai_proto_with_info"], - grpc_service_config = "documentai_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "documentai_grpc_service_config.json", deps = [ ":documentai_csharp_grpc", ":documentai_csharp_proto", diff --git a/third_party/googleapis/google/cloud/documentai/v1beta1/document.proto b/third_party/googleapis/google/cloud/documentai/v1beta1/document.proto index 1ee00b563..2c47f6f22 100644 --- a/third_party/googleapis/google/cloud/documentai/v1beta1/document.proto +++ b/third_party/googleapis/google/cloud/documentai/v1beta1/document.proto @@ -27,7 +27,7 @@ option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1be option java_multiple_files = true; option java_outer_classname = "DocumentProto"; option java_package = "com.google.cloud.documentai.v1beta1"; -option php_namespace = "Google\\Cloud\\DocumentAi\\V1beta1"; +option php_namespace = "Google\\Cloud\\DocumentAI\\V1beta1"; option ruby_package = "Google::Cloud::DocumentAI::V1beta1"; // Document represents the canonical document resource in Document Understanding diff --git a/third_party/googleapis/google/cloud/documentai/v1beta1/document_understanding.proto b/third_party/googleapis/google/cloud/documentai/v1beta1/document_understanding.proto index a8890762b..eb17286d4 100644 --- a/third_party/googleapis/google/cloud/documentai/v1beta1/document_understanding.proto +++ b/third_party/googleapis/google/cloud/documentai/v1beta1/document_understanding.proto @@ -29,7 +29,7 @@ option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1be option java_multiple_files = true; option java_outer_classname = "DocumentAiProto"; option java_package = "com.google.cloud.documentai.v1beta1"; -option php_namespace = "Google\\Cloud\\DocumentAi\\V1beta1"; +option php_namespace = "Google\\Cloud\\DocumentAI\\V1beta1"; option ruby_package = "Google::Cloud::DocumentAI::V1beta1"; // Service to parse structured information from unstructured or semi-structured diff --git a/third_party/googleapis/google/cloud/documentai/v1beta1/documentai_gapic.legacy.yaml b/third_party/googleapis/google/cloud/documentai/v1beta1/documentai_gapic.legacy.yaml deleted file mode 100644 index 7da3881ac..000000000 --- a/third_party/googleapis/google/cloud/documentai/v1beta1/documentai_gapic.legacy.yaml +++ /dev/null @@ -1,115 +0,0 @@ -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.documentai.v1beta1 - python: - package_name: google.cloud.documentai_v1beta1.gapic - go: - package_name: cloud.google.com/go/documentai/apiv1beta1 - csharp: - package_name: Google.Cloud.DocumentAi.V1beta1 - ruby: - package_name: Google::Cloud::DocumentAi::V1beta1 - php: - package_name: Google\Cloud\DocumentAi\V1beta1 - nodejs: - package_name: documentai.v1beta1 - domain_layer_location: google-cloud -# A list of API interface configurations. -interfaces: -# The fully qualified name of the API interface. -- name: google.cloud.documentai.v1beta1.DocumentUnderstandingService - # 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: - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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. - # - # 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: BatchProcessDocuments - flattening: - groups: - - parameters: - - requests - required_fields: - - requests - retry_codes_name: idempotent - retry_params_name: default - long_running: - return_type: google.cloud.documentai.v1beta1.BatchProcessDocumentsResponse - metadata_type: google.cloud.documentai.v1beta1.OperationMetadata - initial_poll_delay_millis: 20000 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 45000 - total_poll_timeout_millis: 86400000 - timeout_millis: 60000 diff --git a/third_party/googleapis/google/cloud/documentai/v1beta1/documentai_gapic.yaml b/third_party/googleapis/google/cloud/documentai/v1beta1/documentai_gapic.yaml index 3662bd3eb..483b95fd0 100644 --- a/third_party/googleapis/google/cloud/documentai/v1beta1/documentai_gapic.yaml +++ b/third_party/googleapis/google/cloud/documentai/v1beta1/documentai_gapic.yaml @@ -2,8 +2,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 # The settings of generated code in a specific language. language_settings: - java: - package_name: com.google.cloud.documentai.v1beta1 python: package_name: google.cloud.documentai_v1beta1.gapic go: diff --git a/third_party/googleapis/google/cloud/documentai/v1beta1/geometry.proto b/third_party/googleapis/google/cloud/documentai/v1beta1/geometry.proto index b4331bc6b..631c179c3 100644 --- a/third_party/googleapis/google/cloud/documentai/v1beta1/geometry.proto +++ b/third_party/googleapis/google/cloud/documentai/v1beta1/geometry.proto @@ -24,7 +24,7 @@ option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1be option java_multiple_files = true; option java_outer_classname = "GeometryProto"; option java_package = "com.google.cloud.documentai.v1beta1"; -option php_namespace = "Google\\Cloud\\DocumentAi\\V1beta1"; +option php_namespace = "Google\\Cloud\\DocumentAI\\V1beta1"; option ruby_package = "Google::Cloud::DocumentAI::V1beta1"; // A vertex represents a 2D point in the image. diff --git a/third_party/googleapis/google/cloud/documentai/v1beta2/BUILD.bazel b/third_party/googleapis/google/cloud/documentai/v1beta2/BUILD.bazel index 43c40e3e5..8529a6f09 100644 --- a/third_party/googleapis/google/cloud/documentai/v1beta2/BUILD.bazel +++ b/third_party/googleapis/google/cloud/documentai/v1beta2/BUILD.bazel @@ -1,4 +1,13 @@ # This file was automatically generated by BuildFileGenerator +# https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/bazel + +# Most of the manual changes to this file will be overwritten. +# It's **only** allowed to change the following rule attribute values: +# - names of *_gapic_assembly_* rules +# - certain parameters of *_gapic_library rules, including but not limited to: +# * extra_protoc_parameters +# * extra_protoc_file_parameters +# The complete list of preserved parameters can be found in the source code. # This is an API workspace, having public visibility by default makes perfect sense. package(default_visibility = ["//visibility:public"]) @@ -60,11 +69,8 @@ java_grpc_library( java_gapic_library( name = "documentai_java_gapic", - src = ":documentai_proto_with_info", - gapic_yaml = "documentai_gapic.yaml", + srcs = [":documentai_proto_with_info"], grpc_service_config = "documentai_v1beta2_grpc_service_config.json", - package = "google.cloud.documentai.v1beta2", - service_yaml = "documentai_v1beta2.yaml", test_deps = [ ":documentai_java_grpc", ], @@ -124,9 +130,9 @@ go_gapic_library( service_yaml = "documentai_v1beta2.yaml", deps = [ ":documentai_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", ], ) @@ -150,12 +156,10 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -164,6 +168,7 @@ py_gapic_library( grpc_service_config = "documentai_v1beta2_grpc_service_config.json", ) +# Open Source Packages py_gapic_assembly_pkg( name = "documentai-v1beta2-py", deps = [ @@ -229,6 +234,7 @@ nodejs_gapic_library( name = "documentai_nodejs_gapic", package_name = "@google-cloud/documentai", src = ":documentai_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "documentai_v1beta2_grpc_service_config.json", package = "google.cloud.documentai.v1beta2", service_yaml = "documentai_v1beta2.yaml", @@ -312,8 +318,8 @@ csharp_grpc_library( csharp_gapic_library( name = "documentai_csharp_gapic", srcs = [":documentai_proto_with_info"], - grpc_service_config = "documentai_v1beta2_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "documentai_v1beta2_grpc_service_config.json", deps = [ ":documentai_csharp_grpc", ":documentai_csharp_proto", diff --git a/third_party/googleapis/google/cloud/documentai/v1beta2/document.proto b/third_party/googleapis/google/cloud/documentai/v1beta2/document.proto index 327473048..bb3b58bad 100644 --- a/third_party/googleapis/google/cloud/documentai/v1beta2/document.proto +++ b/third_party/googleapis/google/cloud/documentai/v1beta2/document.proto @@ -27,7 +27,7 @@ option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1be option java_multiple_files = true; option java_outer_classname = "DocumentProto"; option java_package = "com.google.cloud.documentai.v1beta2"; -option php_namespace = "Google\\Cloud\\DocumentAi\\V1beta2"; +option php_namespace = "Google\\Cloud\\DocumentAI\\V1beta2"; option ruby_package = "Google::Cloud::DocumentAI::V1beta2"; // Document represents the canonical document resource in Document Understanding diff --git a/third_party/googleapis/google/cloud/documentai/v1beta2/document_understanding.proto b/third_party/googleapis/google/cloud/documentai/v1beta2/document_understanding.proto index 9d3c8d941..cf336f014 100644 --- a/third_party/googleapis/google/cloud/documentai/v1beta2/document_understanding.proto +++ b/third_party/googleapis/google/cloud/documentai/v1beta2/document_understanding.proto @@ -29,7 +29,7 @@ option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1be option java_multiple_files = true; option java_outer_classname = "DocumentAiProto"; option java_package = "com.google.cloud.documentai.v1beta2"; -option php_namespace = "Google\\Cloud\\DocumentAi\\V1beta2"; +option php_namespace = "Google\\Cloud\\DocumentAI\\V1beta2"; option ruby_package = "Google::Cloud::DocumentAI::V1beta2"; // Service to parse structured information from unstructured or semi-structured diff --git a/third_party/googleapis/google/cloud/documentai/v1beta2/documentai_gapic.legacy.yaml b/third_party/googleapis/google/cloud/documentai/v1beta2/documentai_gapic.legacy.yaml deleted file mode 100644 index fe7f7e2d9..000000000 --- a/third_party/googleapis/google/cloud/documentai/v1beta2/documentai_gapic.legacy.yaml +++ /dev/null @@ -1,118 +0,0 @@ -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.documentai.v1beta2 - python: - package_name: google.cloud.documentai_v1beta2.gapic - go: - package_name: cloud.google.com/go/documentai/apiv1beta2 - csharp: - package_name: Google.Cloud.DocumentAi.V1beta2 - ruby: - package_name: Google::Cloud::DocumentAi::V1beta2 - php: - package_name: Google\Cloud\DocumentAi\V1beta2 - nodejs: - package_name: documentai.v1beta2 -# A list of API interface configurations. -interfaces: -# The fully qualified name of the API interface. -- name: google.cloud.documentai.v1beta2.DocumentUnderstandingService - # 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: - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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. - # - # 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: BatchProcessDocuments - flattening: - groups: - - parameters: - - requests - required_fields: - - requests - retry_codes_name: idempotent - retry_params_name: default - long_running: - return_type: google.cloud.documentai.v1beta2.BatchProcessDocumentsResponse - metadata_type: google.cloud.documentai.v1beta2.OperationMetadata - initial_poll_delay_millis: 20000 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 45000 - total_poll_timeout_millis: 86400000 - timeout_millis: 60000 - - name: ProcessDocument - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 diff --git a/third_party/googleapis/google/cloud/documentai/v1beta2/documentai_gapic.yaml b/third_party/googleapis/google/cloud/documentai/v1beta2/documentai_gapic.yaml index d08c4dfa9..3a642c159 100644 --- a/third_party/googleapis/google/cloud/documentai/v1beta2/documentai_gapic.yaml +++ b/third_party/googleapis/google/cloud/documentai/v1beta2/documentai_gapic.yaml @@ -2,8 +2,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 # The settings of generated code in a specific language. language_settings: - java: - package_name: com.google.cloud.documentai.v1beta2 python: package_name: google.cloud.documentai_v1beta2.gapic go: diff --git a/third_party/googleapis/google/cloud/documentai/v1beta2/geometry.proto b/third_party/googleapis/google/cloud/documentai/v1beta2/geometry.proto index 21584ecfe..6aff4db8c 100644 --- a/third_party/googleapis/google/cloud/documentai/v1beta2/geometry.proto +++ b/third_party/googleapis/google/cloud/documentai/v1beta2/geometry.proto @@ -23,7 +23,7 @@ option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1be option java_multiple_files = true; option java_outer_classname = "GeometryProto"; option java_package = "com.google.cloud.documentai.v1beta2"; -option php_namespace = "Google\\Cloud\\DocumentAi\\V1beta2"; +option php_namespace = "Google\\Cloud\\DocumentAI\\V1beta2"; option ruby_package = "Google::Cloud::DocumentAI::V1beta2"; // A vertex represents a 2D point in the image. diff --git a/third_party/googleapis/google/cloud/documentai/v1beta3/BUILD.bazel b/third_party/googleapis/google/cloud/documentai/v1beta3/BUILD.bazel index 34eb8809d..0e628cc7a 100644 --- a/third_party/googleapis/google/cloud/documentai/v1beta3/BUILD.bazel +++ b/third_party/googleapis/google/cloud/documentai/v1beta3/BUILD.bazel @@ -22,6 +22,7 @@ proto_library( name = "documentai_proto", srcs = [ "document.proto", + "document_io.proto", "document_processor_service.proto", "geometry.proto", ], @@ -75,11 +76,8 @@ java_grpc_library( java_gapic_library( name = "documentai_java_gapic", - src = ":documentai_proto_with_info", - gapic_yaml = "documentai_gapic.yaml", + srcs = [":documentai_proto_with_info"], grpc_service_config = "documentai_v1beta3_grpc_service_config.json", - package = "google.cloud.documentai.v1beta3", - service_yaml = "documentai_v1beta3.yaml", test_deps = [ ":documentai_java_grpc", ], @@ -143,9 +141,9 @@ go_gapic_library( service_yaml = "documentai_v1beta3.yaml", deps = [ ":documentai_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", ], ) @@ -169,12 +167,10 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -183,6 +179,7 @@ py_gapic_library( grpc_service_config = "documentai_v1beta3_grpc_service_config.json", ) +# Open Source Packages py_gapic_assembly_pkg( name = "documentai-v1beta3-py", deps = [ @@ -248,6 +245,7 @@ nodejs_gapic_library( name = "documentai_nodejs_gapic", package_name = "@google-cloud/documentai", src = ":documentai_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "documentai_v1beta3_grpc_service_config.json", package = "google.cloud.documentai.v1beta3", service_yaml = "documentai_v1beta3.yaml", @@ -268,7 +266,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -284,13 +282,20 @@ ruby_grpc_library( deps = [":documentai_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "documentai_ruby_gapic", - src = ":documentai_proto_with_info", - gapic_yaml = "documentai_gapic.yaml", + srcs = [":documentai_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-document_ai-v1beta3", + "ruby-cloud-env-prefix=DOCUMENT_AI", + "ruby-cloud-product-url=https://cloud.google.com/document-ai/", + "ruby-cloud-api-id=us-documentai.googleapis.com", + "ruby-cloud-api-shortname=documentai", + "ruby-cloud-namespace-override=DocumentAi=DocumentAI", + ], grpc_service_config = "documentai_v1beta3_grpc_service_config.json", - package = "google.cloud.documentai.v1beta3", - service_yaml = "documentai_v1beta3.yaml", + ruby_cloud_description = "Document AI uses machine learning on a single cloud-based platform to automatically classify, extract, and enrich data within your documents to unlock insights.", + ruby_cloud_title = "Document AI V1beta3", deps = [ ":documentai_ruby_grpc", ":documentai_ruby_proto", @@ -332,8 +337,8 @@ csharp_grpc_library( csharp_gapic_library( name = "documentai_csharp_gapic", srcs = [":documentai_proto_with_info"], - grpc_service_config = "documentai_v1beta3_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "documentai_v1beta3_grpc_service_config.json", deps = [ ":documentai_csharp_grpc", ":documentai_csharp_proto", diff --git a/third_party/googleapis/google/cloud/documentai/v1beta3/document.proto b/third_party/googleapis/google/cloud/documentai/v1beta3/document.proto index 2498eb473..0e14be611 100644 --- a/third_party/googleapis/google/cloud/documentai/v1beta3/document.proto +++ b/third_party/googleapis/google/cloud/documentai/v1beta3/document.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -27,13 +27,13 @@ import "google/type/money.proto"; import "google/type/postal_address.proto"; import "google/api/annotations.proto"; -option csharp_namespace = "Google.Cloud.DocumentAI.v1beta3"; +option csharp_namespace = "Google.Cloud.DocumentAI.V1Beta3"; option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1beta3;documentai"; option java_multiple_files = true; option java_outer_classname = "DocumentProto"; option java_package = "com.google.cloud.documentai.v1beta3"; -option php_namespace = "Google\\Cloud\\DocumentAi\\v1beta3"; -option ruby_package = "Google::Cloud::DocumentAI::master"; +option php_namespace = "Google\\Cloud\\DocumentAI\\V1beta3"; +option ruby_package = "Google::Cloud::DocumentAI::V1beta3"; // Document represents the canonical document resource in Document Understanding // AI. @@ -418,6 +418,10 @@ message Document { // https: // github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto google.type.PostalAddress address_value = 5; + + // Boolean value. Can be used for entities with binary values, or for + // checkboxes. + bool boolean_value = 6; } // Required. Normalized entity value stored as a string. This field is populated for @@ -450,9 +454,9 @@ message Document { // page where it was found. PageAnchor page_anchor = 6 [(google.api.field_behavior) = OPTIONAL]; - // Canonical id. This will be a unique value in the entity list + // Optional. Canonical id. This will be a unique value in the entity list // for this document. - string id = 7; + string id = 7 [(google.api.field_behavior) = OPTIONAL]; // Optional. Normalized entity value. Absent if the extracted value could not be // converted or the type (e.g. address) is not supported for certain @@ -483,27 +487,6 @@ message Document { string relation = 3; } - // A translation of the text segment. - message Translation { - // Provenance of the translation. - // Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text]. There can only be a - // single `TextAnchor.text_segments` element. If the start and - // end index of the text segment are the same, the text change is inserted - // before that index. - TextAnchor text_anchor = 1; - - // The BCP-47 language code, such as "en-US" or "sr-Latn". For more - // information, see - // http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. - string language_code = 2; - - // Text translated into the target language. - string translated_text = 3; - - // The history of this annotation. - repeated Provenance provenance = 4; - } - // Text reference indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text]. message TextAnchor { // A text segment in the [Document.text][google.cloud.documentai.v1beta3.Document.text]. The indices may be out of bounds @@ -559,7 +542,8 @@ message Document { FORM_FIELD = 7; } - // Required. Index into the [Document.pages][google.cloud.documentai.v1beta3.Document.pages] element + // Required. Index into the [Document.pages][google.cloud.documentai.v1beta3.Document.pages] element, for example using + // [Document.pages][page_refs.page] to locate the related page element. int64 page = 1 [(google.api.field_behavior) = REQUIRED]; // Optional. The type of the layout element that is being referenced if any. @@ -719,10 +703,6 @@ message Document { // Relationship among [Document.entities][google.cloud.documentai.v1beta3.Document.entities]. repeated EntityRelation entity_relations = 8; - // A list of translations on [Document.text][google.cloud.documentai.v1beta3.Document.text]. For document shards, - // translations in this list may cross shard boundaries. - repeated Translation translations = 12; - // A list of text corrections made to [Document.text]. This is usually // used for annotating corrections to OCR mistakes. Text changes for a given // revision may not overlap with each other. diff --git a/third_party/googleapis/google/cloud/documentai/v1beta3/document_io.proto b/third_party/googleapis/google/cloud/documentai/v1beta3/document_io.proto new file mode 100644 index 000000000..d364d4aba --- /dev/null +++ b/third_party/googleapis/google/cloud/documentai/v1beta3/document_io.proto @@ -0,0 +1,86 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.documentai.v1beta3; + +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Cloud.DocumentAI.V1Beta3"; +option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1beta3;documentai"; +option java_multiple_files = true; +option java_outer_classname = "DocumentIoProto"; +option java_package = "com.google.cloud.documentai.v1beta3"; +option php_namespace = "Google\\Cloud\\DocumentAI\\V1beta3"; +option ruby_package = "Google::Cloud::DocumentAI::V1beta3"; + +// Payload message of raw document content (bytes). +message RawDocument { + // Inline document content. + bytes content = 1; + + // An IANA MIME type (RFC6838) indicating the nature and format of the + // [content]. + string mime_type = 2; +} + +// Specifies a document stored on Cloud Storage. +message GcsDocument { + // The Cloud Storage object uri. + string gcs_uri = 1; + + // An IANA MIME type (RFC6838) of the content. + string mime_type = 2; +} + +// Specifies a set of documents on Cloud Storage. +message GcsDocuments { + // The list of documents. + repeated GcsDocument documents = 1; +} + +// Specifies all documents on Cloud Storage with a common prefix. +message GcsPrefix { + // The URI prefix. + string gcs_uri_prefix = 1; +} + +// The common config to specify a set of documents used as input. +message BatchDocumentsInputConfig { + // The source. + oneof source { + // The set of documents that match the specified Cloud Storage [gcs_prefix]. + GcsPrefix gcs_prefix = 1; + + // The set of documents individually specified on Cloud Storage. + GcsDocuments gcs_documents = 2; + } +} + +// Config that controls the output of documents. All documents will be written +// as a JSON file. +message DocumentOutputConfig { + // The configuration used when outputting documents. + message GcsOutputConfig { + // The Cloud Storage uri (a directory) of the output. + string gcs_uri = 1; + } + + // The destination of the results. + oneof destination { + // Output config to write the results to Cloud Storage. + GcsOutputConfig gcs_output_config = 1; + } +} diff --git a/third_party/googleapis/google/cloud/documentai/v1beta3/document_processor_service.proto b/third_party/googleapis/google/cloud/documentai/v1beta3/document_processor_service.proto index 7784da3ec..7c37b406b 100644 --- a/third_party/googleapis/google/cloud/documentai/v1beta3/document_processor_service.proto +++ b/third_party/googleapis/google/cloud/documentai/v1beta3/document_processor_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -21,18 +21,19 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/documentai/v1beta3/document.proto"; +import "google/cloud/documentai/v1beta3/document_io.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; -option csharp_namespace = "Google.Cloud.DocumentAI.v1beta3"; +option csharp_namespace = "Google.Cloud.DocumentAI.V1Beta3"; option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1beta3;documentai"; option java_multiple_files = true; option java_outer_classname = "DocumentAiProcessorService"; option java_package = "com.google.cloud.documentai.v1beta3"; -option php_namespace = "Google\\Cloud\\DocumentAi\\v1beta3"; -option ruby_package = "Google::Cloud::DocumentAI::master"; +option php_namespace = "Google\\Cloud\\DocumentAI\\V1beta3"; +option ruby_package = "Google::Cloud::DocumentAI::V1beta3"; // (-- aip.dev/not-precedent: This is needed because we have references to // these resources in our public API, but the resource management is not @@ -99,6 +100,15 @@ service DocumentProcessorService { // Request message for the process document method. message ProcessRequest { + // The document payload. + oneof source { + // An inline document proto. + Document inline_document = 4; + + // A raw document content (bytes). + RawDocument raw_document = 5; + } + // Required. The processor resource name. string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -108,13 +118,49 @@ message ProcessRequest { ]; // The document payload, the [content] and [mime_type] fields must be set. - Document document = 2; + Document document = 2 [deprecated = true]; // Whether Human Review feature should be skipped for this request. Default to // false. bool skip_human_review = 3; } +// The status of human review on a processed document. +message HumanReviewStatus { + // The final state of human review on a processed document. + enum State { + // Human review state is unspecified. Most likely due to an internal error. + STATE_UNSPECIFIED = 0; + + // Human review is skipped for the document. This can happen because human + // review is not enabled on the processor or the processing request has + // been set to skip this document. + SKIPPED = 1; + + // Human review validation is triggered and passed, so no review is needed. + VALIDATION_PASSED = 2; + + // Human review validation is triggered and the document is under review. + IN_PROGRESS = 3; + + // Some error happened during triggering human review, see the + // [state_message] for details. + ERROR = 4; + } + + // The state of human review on the processing request. + State state = 1; + + // A message providing more details about the human review state. + string state_message = 2; + + // The name of the operation triggered by the processed document. This field + // is populated only when the [state] is [HUMAN_REVIEW_IN_PROGRESS]. It has + // the same response type and metadata as the long running operation returned + // by [ReviewDocument] method. + string human_review_operation = 3; +} + // Response message for the process document method. message ProcessResponse { // The document payload, will populate fields based on the processor's @@ -125,13 +171,18 @@ message ProcessResponse { // review process is not triggered, this field will be empty. It has the same // response type and metadata as the long running operation returned by // ReviewDocument method. - string human_review_operation = 2; + string human_review_operation = 2 [deprecated = true]; + + // The status of human review on the processed document. + HumanReviewStatus human_review_status = 3; } // Request message for batch process document method. message BatchProcessRequest { // The message for input config in batch process. message BatchInputConfig { + option deprecated = true; + // The Cloud Storage location as the source of the document. string gcs_source = 1; @@ -143,6 +194,8 @@ message BatchProcessRequest { // The message for output config in batch process. message BatchOutputConfig { + option deprecated = true; + // The output Cloud Storage directory to put the processed documents. string gcs_destination = 1; } @@ -156,10 +209,20 @@ message BatchProcessRequest { ]; // The input config for each single document in the batch process. - repeated BatchInputConfig input_configs = 2; + repeated BatchInputConfig input_configs = 2 [deprecated = true]; // The overall output config for batch process. - BatchOutputConfig output_config = 3; + BatchOutputConfig output_config = 3 [deprecated = true]; + + // The input documents for batch process. + BatchDocumentsInputConfig input_documents = 5; + + // The overall output config for batch process. + DocumentOutputConfig document_output_config = 6; + + // Whether Human Review feature should be skipped for this request. Default to + // false. + bool skip_human_review = 4; } // Response message for batch process document method. @@ -188,7 +251,10 @@ message BatchProcessMetadata { // human review process is not triggered, this field will be empty. It has // the same response type and metadata as the long running operation // returned by ReviewDocument method. - string human_review_operation = 4; + string human_review_operation = 4 [deprecated = true]; + + // The status of human review on the processed document. + HumanReviewStatus human_review_status = 5; } // Possible states of the batch processing operation. @@ -234,6 +300,12 @@ message BatchProcessMetadata { // Request message for review document method. message ReviewDocumentRequest { + // The document payload. + oneof source { + // An inline document proto. + Document inline_document = 4; + } + // Required. The resource name of the HumanReviewConfig that the document will be // reviewed with. string human_review_config = 1 [ @@ -244,7 +316,7 @@ message ReviewDocumentRequest { ]; // The document that needs human review. - Document document = 2; + Document document = 2 [deprecated = true]; } // Response message for review document method. @@ -288,4 +360,43 @@ message ReviewDocumentOperationMetadata { // The last update time of the operation. google.protobuf.Timestamp update_time = 4; + + // The basic metadata of the long running operation. + CommonOperationMetadata common_metadata = 5; +} + +// The common metadata for long running operations. +message CommonOperationMetadata { + // State of the longrunning operation. + enum State { + // Unspecified state. + STATE_UNSPECIFIED = 0; + + // Operation is still running. + RUNNING = 1; + + // Operation is being cancelled. + CANCELLING = 2; + + // Operation succeeded. + SUCCEEDED = 3; + + // Operation failed. + FAILED = 4; + + // Operation is cancelled. + CANCELLED = 5; + } + + // The state of the operation. + State state = 1; + + // A message providing more details about the current state of processing. + string state_message = 2; + + // The creation time of the operation. + google.protobuf.Timestamp create_time = 3; + + // The last update time of the operation. + google.protobuf.Timestamp update_time = 4; } diff --git a/third_party/googleapis/google/cloud/documentai/v1beta3/documentai_gapic.yaml b/third_party/googleapis/google/cloud/documentai/v1beta3/documentai_gapic.yaml index 5b10f32fb..9f1df52dd 100644 --- a/third_party/googleapis/google/cloud/documentai/v1beta3/documentai_gapic.yaml +++ b/third_party/googleapis/google/cloud/documentai/v1beta3/documentai_gapic.yaml @@ -1,8 +1,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 language_settings: - java: - package_name: com.google.cloud.documentai.v1beta3 python: package_name: google.cloud.documentai.v1beta3.gapic go: diff --git a/third_party/googleapis/google/cloud/documentai/v1beta3/geometry.proto b/third_party/googleapis/google/cloud/documentai/v1beta3/geometry.proto index c70ae0c0d..240faf1f4 100644 --- a/third_party/googleapis/google/cloud/documentai/v1beta3/geometry.proto +++ b/third_party/googleapis/google/cloud/documentai/v1beta3/geometry.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -18,13 +18,13 @@ package google.cloud.documentai.v1beta3; import "google/api/annotations.proto"; -option csharp_namespace = "Google.Cloud.DocumentAI.v1beta3"; +option csharp_namespace = "Google.Cloud.DocumentAI.V1Beta3"; option go_package = "google.golang.org/genproto/googleapis/cloud/documentai/v1beta3;documentai"; option java_multiple_files = true; option java_outer_classname = "GeometryProto"; option java_package = "com.google.cloud.documentai.v1beta3"; -option php_namespace = "Google\\Cloud\\DocumentAi\\v1beta3"; -option ruby_package = "Google::Cloud::DocumentAI::master"; +option php_namespace = "Google\\Cloud\\DocumentAI\\V1beta3"; +option ruby_package = "Google::Cloud::DocumentAI::V1beta3"; // A vertex represents a 2D point in the image. // NOTE: the vertex coordinates are in the same scale as the original image. diff --git a/third_party/googleapis/google/cloud/domains/v1alpha2/BUILD.bazel b/third_party/googleapis/google/cloud/domains/v1alpha2/BUILD.bazel index b69bf1be0..6330fc578 100644 --- a/third_party/googleapis/google/cloud/domains/v1alpha2/BUILD.bazel +++ b/third_party/googleapis/google/cloud/domains/v1alpha2/BUILD.bazel @@ -69,11 +69,8 @@ java_grpc_library( java_gapic_library( name = "domains_java_gapic", - src = ":domains_proto_with_info", - gapic_yaml = "domains_gapic.yaml", + srcs = [":domains_proto_with_info"], grpc_service_config = "domains_grpc_service_config.json", - package = "google.cloud.domains.v1alpha2", - service_yaml = "domains_v1alpha2.yaml", test_deps = [ ":domains_java_grpc", ], @@ -134,9 +131,9 @@ go_gapic_library( service_yaml = "domains_v1alpha2.yaml", deps = [ ":domains_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", ], ) @@ -162,52 +159,14 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "domains_moved_proto", - srcs = [":domains_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:resource_proto", - "//google/longrunning:operations_proto", - "//google/type:money_proto", - "//google/type:postal_address_proto", - "@com_google_protobuf//:field_mask_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -py_proto_library( - name = "domains_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":domains_moved_proto"], -) - -py_grpc_library( - name = "domains_py_grpc", - srcs = [":domains_moved_proto"], - deps = [":domains_py_proto"], ) py_gapic_library( name = "domains_py_gapic", - src = ":domains_proto_with_info", - gapic_yaml = "domains_gapic.yaml", + srcs = [":domains_proto"], grpc_service_config = "domains_grpc_service_config.json", - package = "google.cloud.domains.v1alpha2", - service_yaml = "domains_v1alpha2.yaml", - deps = [ - ":domains_py_grpc", - ":domains_py_proto", - ], ) # Open Source Packages @@ -215,8 +174,6 @@ py_gapic_assembly_pkg( name = "domains-v1alpha2-py", deps = [ ":domains_py_gapic", - ":domains_py_grpc", - ":domains_py_proto", ], ) @@ -277,8 +234,10 @@ load( nodejs_gapic_library( name = "domains_nodejs_gapic", src = ":domains_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "domains_grpc_service_config.json", package = "google.cloud.domains.v1alpha2", + package_name = "@google-cloud/domains", service_yaml = "domains_v1alpha2.yaml", deps = [], ) @@ -361,8 +320,8 @@ csharp_grpc_library( csharp_gapic_library( name = "domains_csharp_gapic", srcs = [":domains_proto_with_info"], - grpc_service_config = "domains_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "domains_grpc_service_config.json", deps = [ ":domains_csharp_grpc", ":domains_csharp_proto", diff --git a/third_party/googleapis/google/cloud/domains/v1alpha2/domains_gapic.yaml b/third_party/googleapis/google/cloud/domains/v1alpha2/domains_gapic.yaml index 928c34de1..7d4756c98 100644 --- a/third_party/googleapis/google/cloud/domains/v1alpha2/domains_gapic.yaml +++ b/third_party/googleapis/google/cloud/domains/v1alpha2/domains_gapic.yaml @@ -1,8 +1,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 language_settings: - java: - package_name: com.google.cloud.domains.v1alpha2 python: package_name: google.cloud.domains_v1alpha2.gapic go: diff --git a/third_party/googleapis/google/cloud/domains/v1beta1/BUILD.bazel b/third_party/googleapis/google/cloud/domains/v1beta1/BUILD.bazel index 49cb6d628..4ae16c54d 100644 --- a/third_party/googleapis/google/cloud/domains/v1beta1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/domains/v1beta1/BUILD.bazel @@ -69,11 +69,8 @@ java_grpc_library( java_gapic_library( name = "domains_java_gapic", - src = ":domains_proto_with_info", - gapic_yaml = "domains_gapic.yaml", + srcs = [":domains_proto_with_info"], grpc_service_config = "domains_grpc_service_config.json", - package = "google.cloud.domains.v1beta1", - service_yaml = "domains_v1beta1.yaml", test_deps = [ ":domains_java_grpc", ], @@ -134,9 +131,9 @@ go_gapic_library( service_yaml = "domains_v1beta1.yaml", deps = [ ":domains_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", ], ) @@ -162,52 +159,14 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "domains_moved_proto", - srcs = [":domains_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:resource_proto", - "//google/longrunning:operations_proto", - "//google/type:money_proto", - "//google/type:postal_address_proto", - "@com_google_protobuf//:field_mask_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -py_proto_library( - name = "domains_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":domains_moved_proto"], -) - -py_grpc_library( - name = "domains_py_grpc", - srcs = [":domains_moved_proto"], - deps = [":domains_py_proto"], ) py_gapic_library( name = "domains_py_gapic", - src = ":domains_proto_with_info", - gapic_yaml = "domains_gapic.yaml", + srcs = [":domains_proto"], grpc_service_config = "domains_grpc_service_config.json", - package = "google.cloud.domains.v1beta1", - service_yaml = "domains_v1beta1.yaml", - deps = [ - ":domains_py_grpc", - ":domains_py_proto", - ], ) # Open Source Packages @@ -215,8 +174,6 @@ py_gapic_assembly_pkg( name = "domains-v1beta1-py", deps = [ ":domains_py_gapic", - ":domains_py_grpc", - ":domains_py_proto", ], ) @@ -276,7 +233,9 @@ load( nodejs_gapic_library( name = "domains_nodejs_gapic", + package_name = "@google-cloud/domains", src = ":domains_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "domains_grpc_service_config.json", package = "google.cloud.domains.v1beta1", service_yaml = "domains_v1beta1.yaml", @@ -297,7 +256,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -313,13 +272,19 @@ ruby_grpc_library( deps = [":domains_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "domains_ruby_gapic", - src = ":domains_proto_with_info", - gapic_yaml = "domains_gapic.yaml", + srcs = [":domains_proto_with_info",], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-domains-v1beta1", + "ruby-cloud-env-prefix=DOMAINS", + "ruby-cloud-product-url=https://cloud.google.com/domains", + "ruby-cloud-api-id=domains.googleapis.com", + "ruby-cloud-api-shortname=domains", + ], grpc_service_config = "domains_grpc_service_config.json", - package = "google.cloud.domains.v1beta1", - service_yaml = "domains_v1beta1.yaml", + ruby_cloud_description = "The Cloud Domains API provides registration, management and configuration of domain names.", + ruby_cloud_title = "Cloud Domains V1beta1", deps = [ ":domains_ruby_grpc", ":domains_ruby_proto", @@ -361,8 +326,8 @@ csharp_grpc_library( csharp_gapic_library( name = "domains_csharp_gapic", srcs = [":domains_proto_with_info"], - grpc_service_config = "domains_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "domains_grpc_service_config.json", deps = [ ":domains_csharp_grpc", ":domains_csharp_proto", diff --git a/third_party/googleapis/google/cloud/domains/v1beta1/domains_gapic.yaml b/third_party/googleapis/google/cloud/domains/v1beta1/domains_gapic.yaml index c4e0ecead..e1dfb357f 100644 --- a/third_party/googleapis/google/cloud/domains/v1beta1/domains_gapic.yaml +++ b/third_party/googleapis/google/cloud/domains/v1beta1/domains_gapic.yaml @@ -1,8 +1,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 language_settings: - java: - package_name: com.google.cloud.domains.v1beta1 python: package_name: google.cloud.domains_v1beta1.gapic go: diff --git a/third_party/googleapis/google/cloud/functions/v1/BUILD.bazel b/third_party/googleapis/google/cloud/functions/v1/BUILD.bazel index fcf58d31e..eb0b1832b 100644 --- a/third_party/googleapis/google/cloud/functions/v1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/functions/v1/BUILD.bazel @@ -73,11 +73,8 @@ java_grpc_library( java_gapic_library( name = "functions_java_gapic", - src = ":functions_proto_with_info", - gapic_yaml = "functions_gapic.yaml", + srcs = [":functions_proto_with_info"], grpc_service_config = "functions_grpc_service_config.json", - package = "google.cloud.functions.v1", - service_yaml = "cloudfunctions_v1.yaml", test_deps = [ ":functions_java_grpc", "//google/iam/v1:iam_java_grpc", @@ -139,9 +136,9 @@ go_gapic_library( deps = [ ":functions_go_proto", "//google/iam/v1:iam_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", "@io_bazel_rules_go//proto/wkt:any_go_proto", "@io_bazel_rules_go//proto/wkt:duration_go_proto", ], @@ -167,12 +164,10 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -246,6 +241,7 @@ nodejs_gapic_library( name = "functions_nodejs_gapic", package_name = "@google-cloud/functions", src = ":functions_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "functions_grpc_service_config.json", package = "google.cloud.functions.v1", service_yaml = "cloudfunctions_v1.yaml", @@ -266,7 +262,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -282,13 +278,19 @@ ruby_grpc_library( deps = [":functions_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "functions_ruby_gapic", - src = ":functions_proto_with_info", - gapic_yaml = "functions_gapic.yaml", + srcs = [":functions_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-functions-v1", + "ruby-cloud-env-prefix=FUNCTIONS", + "ruby-cloud-product-url=https://cloud.google.com/functions", + "ruby-cloud-api-id=cloudfunctions.googleapis.com", + "ruby-cloud-api-shortname=cloudfunctions", + ], grpc_service_config = "functions_grpc_service_config.json", - package = "google.cloud.functions.v1", - service_yaml = "cloudfunctions_v1.yaml", + ruby_cloud_description = "The Cloud Functions API manages lightweight user-provided functions executed in response to events.", + ruby_cloud_title = "Cloud Functions V1", deps = [ ":functions_ruby_grpc", ":functions_ruby_proto", @@ -330,8 +332,8 @@ csharp_grpc_library( csharp_gapic_library( name = "functions_csharp_gapic", srcs = [":functions_proto_with_info"], - grpc_service_config = "functions_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "functions_grpc_service_config.json", deps = [ ":functions_csharp_grpc", ":functions_csharp_proto", diff --git a/third_party/googleapis/google/cloud/functions/v1/functions_gapic.yaml b/third_party/googleapis/google/cloud/functions/v1/functions_gapic.yaml index b153810d2..76f6496bb 100644 --- a/third_party/googleapis/google/cloud/functions/v1/functions_gapic.yaml +++ b/third_party/googleapis/google/cloud/functions/v1/functions_gapic.yaml @@ -1,8 +1,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 language_settings: - java: - package_name: com.google.cloud.functions.v1 python: package_name: google.cloud.functions_v1.gapic go: diff --git a/third_party/googleapis/google/cloud/functions/v1/functions_grpc_service_config.json b/third_party/googleapis/google/cloud/functions/v1/functions_grpc_service_config.json index 1def2eb5b..bd66e5a06 100644 --- a/third_party/googleapis/google/cloud/functions/v1/functions_grpc_service_config.json +++ b/third_party/googleapis/google/cloud/functions/v1/functions_grpc_service_config.json @@ -3,19 +3,19 @@ { "name": [ { - "service": "google.cloud.functions.v1beta2.CloudFunctionsService", + "service": "google.cloud.functions.v1.CloudFunctionsService", "method": "ListFunctions" }, { - "service": "google.cloud.functions.v1beta2.CloudFunctionsService", + "service": "google.cloud.functions.v1.CloudFunctionsService", "method": "GetFunction" }, { - "service": "google.cloud.functions.v1beta2.CloudFunctionsService", + "service": "google.cloud.functions.v1.CloudFunctionsService", "method": "UpdateFunction" }, { - "service": "google.cloud.functions.v1beta2.CloudFunctionsService", + "service": "google.cloud.functions.v1.CloudFunctionsService", "method": "DeleteFunction" } ], @@ -33,11 +33,11 @@ { "name": [ { - "service": "google.cloud.functions.v1beta2.CloudFunctionsService", + "service": "google.cloud.functions.v1.CloudFunctionsService", "method": "CreateFunction" }, { - "service": "google.cloud.functions.v1beta2.CloudFunctionsService", + "service": "google.cloud.functions.v1.CloudFunctionsService", "method": "CallFunction" } ], diff --git a/third_party/googleapis/google/cloud/gaming/v1/BUILD.bazel b/third_party/googleapis/google/cloud/gaming/v1/BUILD.bazel index 41a5cfde9..f6ac68799 100644 --- a/third_party/googleapis/google/cloud/gaming/v1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/gaming/v1/BUILD.bazel @@ -76,11 +76,8 @@ java_grpc_library( java_gapic_library( name = "gaming_java_gapic", - src = ":gaming_proto_with_info", - gapic_yaml = "gaming_gapic.yaml", + srcs = [":gaming_proto_with_info"], grpc_service_config = "gaming_grpc_service_config.json", - package = "google.cloud.gaming.v1", - service_yaml = "gameservices_v1.yaml", test_deps = [ ":gaming_java_grpc", ], @@ -141,9 +138,9 @@ go_gapic_library( service_yaml = "gameservices_v1.yaml", deps = [ ":gaming_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", "@io_bazel_rules_go//proto/wkt:duration_go_proto", ], ) @@ -168,12 +165,10 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -247,6 +242,7 @@ load( nodejs_gapic_library( name = "gaming_nodejs_gapic", src = ":gaming_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "gaming_grpc_service_config.json", package = "google.cloud.gaming.v1", service_yaml = "gameservices_v1.yaml", @@ -267,7 +263,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -283,13 +279,19 @@ ruby_grpc_library( deps = [":gaming_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "gaming_ruby_gapic", - src = ":gaming_proto_with_info", - gapic_yaml = "gaming_gapic.yaml", + srcs = [":gaming_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-gaming-v1", + "ruby-cloud-env-prefix=GAMING", + "ruby-cloud-product-url=https://cloud.google.com/game-servers", + "ruby-cloud-api-id=gameservices.googleapis.com", + "ruby-cloud-api-shortname=gameservices", + ], grpc_service_config = "gaming_grpc_service_config.json", - package = "google.cloud.gaming.v1", - service_yaml = "gameservices_v1.yaml", + ruby_cloud_description = "With Game Servers, studios and publishers can deploy and manage their game server infrastructure hosted on multiple Agones clusters around the world through a single interface.", + ruby_cloud_title = "Cloud Gaming V1", deps = [ ":gaming_ruby_grpc", ":gaming_ruby_proto", @@ -331,8 +333,8 @@ csharp_grpc_library( csharp_gapic_library( name = "gaming_csharp_gapic", srcs = [":gaming_proto_with_info"], - grpc_service_config = "gaming_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "gaming_grpc_service_config.json", deps = [ ":gaming_csharp_grpc", ":gaming_csharp_proto", diff --git a/third_party/googleapis/google/cloud/gaming/v1/gaming_gapic.yaml b/third_party/googleapis/google/cloud/gaming/v1/gaming_gapic.yaml index 1eb087fa6..b3109080c 100644 --- a/third_party/googleapis/google/cloud/gaming/v1/gaming_gapic.yaml +++ b/third_party/googleapis/google/cloud/gaming/v1/gaming_gapic.yaml @@ -2,8 +2,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 # The settings of generated code in a specific language. language_settings: - java: - package_name: com.google.cloud.gaming.v1 python: package_name: google.cloud.gaming_v1.gapic ruby: diff --git a/third_party/googleapis/google/cloud/gaming/v1beta/BUILD.bazel b/third_party/googleapis/google/cloud/gaming/v1beta/BUILD.bazel index 9efa9332e..c3756795d 100644 --- a/third_party/googleapis/google/cloud/gaming/v1beta/BUILD.bazel +++ b/third_party/googleapis/google/cloud/gaming/v1beta/BUILD.bazel @@ -67,11 +67,8 @@ java_grpc_library( java_gapic_library( name = "gaming_java_gapic", - src = ":gaming_proto_with_info", - gapic_yaml = "gaming_gapic.yaml", + srcs = [":gaming_proto_with_info"], grpc_service_config = "gaming_grpc_service_config.json", - package = "google.cloud.gaming.v1beta", - service_yaml = "gameservices_v1beta.yaml", test_deps = [ ":gaming_java_grpc", ], @@ -132,9 +129,9 @@ go_gapic_library( service_yaml = "gameservices_v1beta.yaml", deps = [ ":gaming_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", "@io_bazel_rules_go//proto/wkt:duration_go_proto", ], ) @@ -159,12 +156,10 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -239,6 +234,7 @@ nodejs_gapic_library( name = "gaming_nodejs_gapic", package_name = "@google-cloud/game-servers", src = ":gaming_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "gaming_grpc_service_config.json", package = "google.cloud.gaming.v1beta", service_yaml = "gameservices_v1beta.yaml", @@ -322,8 +318,8 @@ csharp_grpc_library( csharp_gapic_library( name = "gaming_csharp_gapic", srcs = [":gaming_proto_with_info"], - grpc_service_config = "gaming_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "gaming_grpc_service_config.json", deps = [ ":gaming_csharp_grpc", ":gaming_csharp_proto", diff --git a/third_party/googleapis/google/cloud/gaming/v1beta/gaming_gapic.yaml b/third_party/googleapis/google/cloud/gaming/v1beta/gaming_gapic.yaml index ae7bbe0a4..83a2b3537 100644 --- a/third_party/googleapis/google/cloud/gaming/v1beta/gaming_gapic.yaml +++ b/third_party/googleapis/google/cloud/gaming/v1beta/gaming_gapic.yaml @@ -2,8 +2,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 # The settings of generated code in a specific language. language_settings: - java: - package_name: com.google.cloud.gaming.v1beta python: package_name: google.cloud.gaming_v1beta.gapic ruby: diff --git a/third_party/googleapis/google/cloud/gkehub/v1alpha2/BUILD.bazel b/third_party/googleapis/google/cloud/gkehub/v1alpha2/BUILD.bazel new file mode 100644 index 000000000..9d3e3d688 --- /dev/null +++ b/third_party/googleapis/google/cloud/gkehub/v1alpha2/BUILD.bazel @@ -0,0 +1,175 @@ +# This file was automatically generated by BuildFileGenerator + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") + +proto_library( + name = "gkehub_proto", + srcs = [ + "membership.proto", + ], + deps = [ + "//google/api:annotations_proto", + "//google/api:client_proto", + "//google/api:field_behavior_proto", + "//google/api:resource_proto", + "//google/longrunning:operations_proto", + "@com_google_protobuf//:field_mask_proto", + "@com_google_protobuf//:timestamp_proto", + ], +) + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_grpc_library", + "java_proto_library", +) + +java_proto_library( + name = "gkehub_java_proto", + deps = [":gkehub_proto"], +) + +java_grpc_library( + name = "gkehub_java_grpc", + srcs = [":gkehub_proto"], + deps = [":gkehub_java_proto"], +) + +############################################################################## +# Go +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "go_proto_library", +) + +go_proto_library( + name = "gkehub_go_proto", + compilers = ["@io_bazel_rules_go//proto:go_grpc"], + importpath = "google.golang.org/genproto/googleapis/cloud/gkehub/v1alpha2", + protos = [":gkehub_proto"], + deps = [ + "//google/api:annotations_go_proto", + "//google/longrunning:longrunning_go_proto", + ], +) + +############################################################################## +# Python +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "moved_proto_library", + "py_grpc_library", + "py_proto_library", +) + +moved_proto_library( + name = "gkehub_moved_proto", + srcs = [":gkehub_proto"], + deps = [ + "//google/api:annotations_proto", + "//google/api:client_proto", + "//google/api:field_behavior_proto", + "//google/api:resource_proto", + "//google/longrunning:operations_proto", + "@com_google_protobuf//:field_mask_proto", + "@com_google_protobuf//:timestamp_proto", + ], +) + +py_proto_library( + name = "gkehub_py_proto", + plugin = "@protoc_docs_plugin//:docs_plugin", + deps = [":gkehub_moved_proto"], +) + +py_grpc_library( + name = "gkehub_py_grpc", + srcs = [":gkehub_moved_proto"], + deps = [":gkehub_py_proto"], +) + +############################################################################## +# PHP +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "php_grpc_library", + "php_proto_library", +) + +php_proto_library( + name = "gkehub_php_proto", + deps = [":gkehub_proto"], +) + +php_grpc_library( + name = "gkehub_php_grpc", + srcs = [":gkehub_proto"], + deps = [":gkehub_php_proto"], +) + +############################################################################## +# Node.js +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", +) + + +############################################################################## +# Ruby +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "ruby_grpc_library", + "ruby_proto_library", +) + +ruby_proto_library( + name = "gkehub_ruby_proto", + deps = [":gkehub_proto"], +) + +ruby_grpc_library( + name = "gkehub_ruby_grpc", + srcs = [":gkehub_proto"], + deps = [":gkehub_ruby_proto"], +) + +############################################################################## +# C# +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "csharp_grpc_library", + "csharp_proto_library", +) + +csharp_proto_library( + name = "gkehub_csharp_proto", + deps = [":gkehub_proto"], +) + +csharp_grpc_library( + name = "gkehub_csharp_grpc", + srcs = [":gkehub_proto"], + deps = [":gkehub_csharp_proto"], +) + +############################################################################## +# C++ +############################################################################## +# Put your C++ code here diff --git a/third_party/googleapis/google/cloud/gkehub/v1alpha2/gkehub_v1alpha2.yaml b/third_party/googleapis/google/cloud/gkehub/v1alpha2/gkehub_v1alpha2.yaml new file mode 100644 index 000000000..fbdfd31be --- /dev/null +++ b/third_party/googleapis/google/cloud/gkehub/v1alpha2/gkehub_v1alpha2.yaml @@ -0,0 +1,103 @@ +type: google.api.Service +config_version: 3 +name: gkehub.googleapis.com +title: GKE Hub + +apis: +- name: google.cloud.gkehub.v1alpha2.GkeHub + +types: +- name: google.cloud.gkehub.v1alpha2.OperationMetadata + +documentation: + rules: + - selector: google.cloud.location.Locations.GetLocation + description: Gets information about a location. + + - selector: google.cloud.location.Locations.ListLocations + description: Lists information about the supported locations for this service. + + - selector: google.iam.v1.IAMPolicy.GetIamPolicy + description: |- + Gets the access control policy for a resource. Returns an empty policy + if the resource exists and does not have a policy set. + + - selector: google.iam.v1.IAMPolicy.SetIamPolicy + description: |- + Sets the access control policy on the specified resource. Replaces + any existing policy. + + Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` + errors. + + - selector: google.iam.v1.IAMPolicy.TestIamPermissions + description: |- + Returns permissions that a caller has on the specified resource. If the + resource does not exist, this will return an empty set of + permissions, not a `NOT_FOUND` error. + + Note: This operation is designed to be used for building + permission-aware UIs and command-line tools, not for authorization + checking. This operation may "fail open" without warning. + +backend: + rules: + - selector: 'google.cloud.gkehub.v1alpha2.GkeHub.*' + deadline: 60.0 + - selector: google.cloud.location.Locations.GetLocation + deadline: 60.0 + - selector: google.cloud.location.Locations.ListLocations + deadline: 60.0 + - selector: 'google.iam.v1.IAMPolicy.*' + deadline: 60.0 + - selector: 'google.longrunning.Operations.*' + deadline: 60.0 + - selector: google.longrunning.Operations.GetOperation + deadline: 5.0 + +http: + rules: + - selector: google.cloud.location.Locations.GetLocation + get: '/v1alpha2/{name=projects/*/locations/*}' + - selector: google.cloud.location.Locations.ListLocations + get: '/v1alpha2/{name=projects/*}/locations' + - selector: google.iam.v1.IAMPolicy.GetIamPolicy + get: '/v1alpha2/{resource=projects/*/locations/*/memberships/*}:getIamPolicy' + - selector: google.iam.v1.IAMPolicy.SetIamPolicy + post: '/v1alpha2/{resource=projects/*/locations/*/memberships/*}:setIamPolicy' + body: '*' + - selector: google.iam.v1.IAMPolicy.TestIamPermissions + post: '/v1alpha2/{resource=projects/*/locations/*/memberships/*}:testIamPermissions' + body: '*' + - selector: google.longrunning.Operations.CancelOperation + post: '/v1alpha2/{name=projects/*/locations/*/operations/*}:cancel' + body: '*' + - selector: google.longrunning.Operations.DeleteOperation + delete: '/v1alpha2/{name=projects/*/locations/*/operations/*}' + - selector: google.longrunning.Operations.GetOperation + get: '/v1alpha2/{name=projects/*/locations/*/operations/*}' + - selector: google.longrunning.Operations.ListOperations + get: '/v1alpha2/{name=projects/*/locations/*}/operations' + +authentication: + rules: + - selector: 'google.cloud.gkehub.v1alpha2.GkeHub.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform + - selector: google.cloud.location.Locations.GetLocation + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform + - selector: google.cloud.location.Locations.ListLocations + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform + - selector: 'google.iam.v1.IAMPolicy.*' + 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/third_party/googleapis/google/cloud/gkehub/v1alpha2/membership.proto b/third_party/googleapis/google/cloud/gkehub/v1alpha2/membership.proto new file mode 100644 index 000000000..f157b373d --- /dev/null +++ b/third_party/googleapis/google/cloud/gkehub/v1alpha2/membership.proto @@ -0,0 +1,642 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.gkehub.v1alpha2; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.GkeHub.V1Alpha2"; +option go_package = "google.golang.org/genproto/googleapis/cloud/gkehub/v1alpha2;gkehub"; +option java_multiple_files = true; +option java_outer_classname = "MembershipProto"; +option java_package = "com.google.cloud.gkehub.v1alpha2"; +option php_namespace = "Google\\Cloud\\GkeHub\\V1alpha2"; +option ruby_package = "Google::Cloud::GkeHub::V1alpha2"; + +// GKE Hub CRUD API for the Membership resource. +// The Membership service is currently only available in the global location. +service GkeHub { + option (google.api.default_host) = "gkehub.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + + // Lists Memberships in a given project and location. + rpc ListMemberships(ListMembershipsRequest) returns (ListMembershipsResponse) { + option (google.api.http) = { + get: "/v1alpha2/{parent=projects/*/locations/*}/memberships" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets the details of a Membership. + rpc GetMembership(GetMembershipRequest) returns (Membership) { + option (google.api.http) = { + get: "/v1alpha2/{name=projects/*/locations/*/memberships/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Adds a new Membership. + rpc CreateMembership(CreateMembershipRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1alpha2/{parent=projects/*/locations/*}/memberships" + body: "resource" + }; + option (google.api.method_signature) = "parent,resource,membership_id"; + option (google.longrunning.operation_info) = { + response_type: "Membership" + metadata_type: "OperationMetadata" + }; + } + + // Removes a Membership. + rpc DeleteMembership(DeleteMembershipRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1alpha2/{name=projects/*/locations/*/memberships/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Updates an existing Membership. + rpc UpdateMembership(UpdateMembershipRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1alpha2/{name=projects/*/locations/*/memberships/*}" + body: "resource" + }; + option (google.api.method_signature) = "name,resource,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Membership" + metadata_type: "OperationMetadata" + }; + } + + // Generates the manifest for deployment of the GKE connect agent. + rpc GenerateConnectManifest(GenerateConnectManifestRequest) returns (GenerateConnectManifestResponse) { + option (google.api.http) = { + get: "/v1alpha2/{name=projects/*/locations/*/memberships/*}:generateConnectManifest" + }; + } + + // Initializes the Hub in this project, which includes creating the default + // Hub Service Account and the Hub Workload Identity Pool. Initialization is + // optional, and happens automatically when the first Membership is created. + // + // InitializeHub should be called when the first Membership cannot be + // registered without these resources. A common example is granting the Hub + // Service Account access to another project, which requires the account to + // exist first. + rpc InitializeHub(InitializeHubRequest) returns (InitializeHubResponse) { + option (google.api.http) = { + post: "/v1alpha2/{project=projects/*/locations/global/memberships}:initializeHub" + body: "*" + }; + } +} + +// Membership contains information about a member cluster. +message Membership { + option (google.api.resource) = { + type: "gkehub.googleapis.com/Membership" + pattern: "projects/{project}/locations/{location}/memberships/{membership}" + }; + + // Specifies the infrastructure type of a Membership. Infrastructure type is + // used by Hub to control infrastructure-specific behavior, including pricing. + // + // Each GKE distribution (on-GCP, on-Prem, on-X,...) will set this field + // automatically, but Attached Clusters customers should specify a type + // during registration. + enum InfrastructureType { + // No type was specified. Some Hub functionality may require a type be + // specified, and will not support Memberships with this value. + INFRASTRUCTURE_TYPE_UNSPECIFIED = 0; + + // Private infrastructure that is owned or operated by customer. This + // includes GKE distributions such as GKE-OnPrem and GKE-OnBareMetal. + ON_PREM = 1; + + // Public cloud infrastructure. + MULTI_CLOUD = 2; + } + + // Output only. The full, unique name of this Membership resource in the format + // `projects/*/locations/*/memberships/{membership_id}`, set during creation. + // + // `membership_id` must be a valid RFC 1123 compliant DNS label: + // + // 1. At most 63 characters in length + // 2. It must consist of lower case alphanumeric characters or `-` + // 3. It must start and end with an alphanumeric character + // + // Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, + // with a maximum length of 63 characters. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. GCP labels for this membership. + map labels = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Description of this membership, limited to 63 characters. + // Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*` + // + // This field is present for legacy purposes. + string description = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Type of resource represented by this Membership + oneof type { + // Optional. Endpoint information to reach this member. + MembershipEndpoint endpoint = 4 [(google.api.field_behavior) = OPTIONAL]; + } + + // Output only. State of the Membership resource. + MembershipState state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. When the Membership was created. + google.protobuf.Timestamp create_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. When the Membership was last updated. + google.protobuf.Timestamp update_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. When the Membership was deleted. + google.protobuf.Timestamp delete_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. An externally-generated and managed ID for this Membership. This ID may + // be modified after creation, but this is not recommended. For GKE clusters, + // external_id is managed by the Hub API and updates will be ignored. + // + // The ID must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.]*` + // + // If this Membership represents a Kubernetes cluster, this value should be + // set to the UID of the `kube-system` namespace object. + string external_id = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. How to identify workloads from this Membership. + // See the documentation on Workload Identity for more details: + // https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity + Authority authority = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. For clusters using Connect, the timestamp of the most recent connection + // established with Google Cloud. This time is updated every several minutes, + // not continuously. For clusters that do not use GKE Connect, or that have + // never connected successfully, this field will be unset. + google.protobuf.Timestamp last_connection_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Google-generated UUID for this resource. This is unique across all + // Membership resources. If a Membership resource is deleted and another + // resource with the same name is created, it gets a different unique_id. + string unique_id = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The infrastructure type this Membership is running on. + InfrastructureType infrastructure_type = 13 [(google.api.field_behavior) = OPTIONAL]; +} + +// MembershipEndpoint contains information needed to contact a Kubernetes API, +// endpoint and any additional Kubernetes metadata. +message MembershipEndpoint { + // Optional. GKE-specific information. Only present if this Membership is a GKE cluster. + GkeCluster gke_cluster = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Useful Kubernetes-specific metadata. + KubernetesMetadata kubernetes_metadata = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The in-cluster Kubernetes Resources that should be applied for a correctly + // registered cluster, in the steady state. These resources: + // + // * Ensure that the cluster is exclusively registered to one and only one + // Hub Membership. + // * Propagate Workload Pool Information available in the Membership + // Authority field. + // * Ensure proper initial configuration of default Hub Features. + KubernetesResource kubernetes_resource = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// KubernetesResource contains the YAML manifests and configuration for +// Membership Kubernetes resources in the cluster. After CreateMembership or +// UpdateMembership, these resources should be re-applied in the cluster. +message KubernetesResource { + // Input only. The YAML representation of the Membership CR. This field is ignored for GKE + // clusters where Hub can read the CR directly. + // + // Callers should provide the CR that is currently present in the cluster + // during Create or Update, or leave this field empty if none exists. The CR + // manifest is used to validate the cluster has not been registered with + // another Membership. + string membership_cr_manifest = 1 [(google.api.field_behavior) = INPUT_ONLY]; + + // Output only. Additional Kubernetes resources that need to be applied to the cluster + // after Membership creation, and after every update. + // + // This field is only populated in the Membership returned from a successful + // long-running operation from CreateMembership or UpdateMembership. It is not + // populated during normal GetMembership or ListMemberships requests. To get + // the resource manifest after the initial registration, the caller should + // make a UpdateMembership call with an empty field mask. + repeated ResourceManifest membership_resources = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Kubernetes resources for installing the GKE Connect agent. + // + // This field is only populated in the Membership returned from a successful + // long-running operation from CreateMembership or UpdateMembership. It is not + // populated during normal GetMembership or ListMemberships requests. To get + // the resource manifest after the initial registration, the caller should + // make a UpdateMembership call with an empty field mask. + repeated ResourceManifest connect_resources = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Options for Kubernetes resource generation. + ResourceOptions resource_options = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// ResourceOptions represent options for Kubernetes resource generation. +message ResourceOptions { + // Optional. The Connect agent version to use for connect_resources. Defaults to the + // latest GKE Connect version. The version must be a currently supported + // version, obsolete versions will be rejected. + string connect_version = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for + // CustomResourceDefinition resources. + // This option should be set for clusters with Kubernetes apiserver versions + // <1.16. + bool v1beta1_crd = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// GkeCluster contains information specific to GKE clusters. +message GkeCluster { + // Immutable. Self-link of the GCP resource for the GKE cluster. For example: + // + // //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster + // + // Zonal clusters are also supported. + string resource_link = 1 [(google.api.field_behavior) = IMMUTABLE]; +} + +// KubernetesMetadata provides informational metadata for Memberships +// that are created from Kubernetes Endpoints (currently, these are equivalent +// to Kubernetes clusters). +message KubernetesMetadata { + // Output only. Kubernetes API server version string as reported by '/version'. + string kubernetes_api_server_version = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Node providerID as reported by the first node in the list of nodes on + // the Kubernetes endpoint. On Kubernetes platforms that support zero-node + // clusters (like GKE-on-GCP), the node_count will be zero and the + // node_provider_id will be empty. + string node_provider_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Node count as reported by Kubernetes nodes resources. + int32 node_count = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. vCPU count as reported by Kubernetes nodes resources. + int32 vcpu_count = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The total memory capacity as reported by the sum of all Kubernetes nodes + // resources, defined in MB. + int32 memory_mb = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time at which these details were last updated. This update_time is + // different from the Membership-level update_time since EndpointDetails are + // updated internally for API consumers. + google.protobuf.Timestamp update_time = 100 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Authority encodes how Google will recognize identities from this Membership. +// See the workload identity documentation for more details: +// https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity +message Authority { + // Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and + // be a valid URL with length <2000 characters. + // + // If set, then Google will allow valid OIDC tokens from this issuer to + // authenticate within the workload_identity_pool. OIDC discovery will be + // performed on this URI to validate tokens from the issuer, unless + // `oidc_jwks` is set. + // + // Clearing `issuer` disables Workload Identity. `issuer` cannot be directly + // modified; it must be cleared (and Workload Identity disabled) before using + // a new issuer (and re-enabling Workload Identity). + string issuer = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. OIDC verification keys for this Membership in JWKS format (RFC 7517). + // + // When this field is set, OIDC discovery will NOT be performed on `issuer`, + // and instead OIDC tokens will be validated using this field. + bytes oidc_jwks = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. An identity provider that reflects the `issuer` in the workload identity + // pool. + string identity_provider = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The name of the workload identity pool in which `issuer` will be + // recognized. + // + // There is a single Workload Identity Pool per Hub that is shared + // between all Memberships that belong to that Hub. For a Hub hosted in + // {PROJECT_ID}, the workload pool format is `{PROJECT_ID}.hub.id.goog`, + // although this is subject to change in newer versions of this API. + string workload_identity_pool = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// MembershipState describes the state of a Membership resource. +message MembershipState { + // Code describes the state of a Membership resource. + enum Code { + // The code is not set. + CODE_UNSPECIFIED = 0; + + // The cluster is being registered. + CREATING = 1; + + // The cluster is registered. + READY = 2; + + // The cluster is being unregistered. + DELETING = 3; + + // The Membership is being updated. + UPDATING = 4; + + // The Membership is being updated by the Hub Service. + SERVICE_UPDATING = 5; + } + + // Output only. The current state of the Membership resource. + Code code = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request message for `GkeHub.ListMemberships` method. +message ListMembershipsRequest { + // Required. The parent (project and location) where the Memberships will be listed. + // Specified in the format `projects/*/locations/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "gkehub.googleapis.com/Membership" + } + ]; + + // Optional. When requesting a 'page' of resources, `page_size` specifies number of + // resources to return. If unspecified or set to 0, all resources will + // be returned. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Token returned by previous call to `ListMemberships` which + // specifies the position in the list from where to continue listing the + // resources. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Lists Memberships that match the filter expression, following the syntax + // outlined in https://google.aip.dev/160. + // + // Examples: + // + // - Name is `bar` in project `foo-proj` and location `global`: + // + // name = "projects/foo-proj/locations/global/membership/bar" + // + // - Memberships that have a label called `foo`: + // + // labels.foo:* + // + // - Memberships that have a label called `foo` whose value is `bar`: + // + // labels.foo = bar + // + // - Memberships in the CREATING state: + // + // state = CREATING + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. One or more fields to compare and use to sort the output. + // See https://google.aip.dev/132#ordering. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for the `GkeHub.ListMemberships` method. +message ListMembershipsResponse { + // The list of matching Memberships. + repeated Membership resources = 1; + + // A token to request the next page of resources from the + // `ListMemberships` method. The value of an empty string means that + // there are no more resources to return. + string next_page_token = 2; + + // List of locations that could not be reached while fetching this list. + repeated string unreachable = 3; +} + +// Request message for `GkeHub.GetMembership` method. +message GetMembershipRequest { + // Required. The Membership resource name in the format + // `projects/*/locations/*/memberships/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gkehub.googleapis.com/Membership" + } + ]; +} + +// Request message for the `GkeHub.CreateMembership` method. +message CreateMembershipRequest { + // Required. The parent (project and location) where the Memberships will be created. + // Specified in the format `projects/*/locations/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "gkehub.googleapis.com/Membership" + } + ]; + + // Required. Client chosen ID for the membership. `membership_id` must be a valid RFC + // 1123 compliant DNS label: + // + // 1. At most 63 characters in length + // 2. It must consist of lower case alphanumeric characters or `-` + // 3. It must start and end with an alphanumeric character + // + // Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, + // with a maximum length of 63 characters. + string membership_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The membership to create. + Membership resource = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for `GkeHub.DeleteMembership` method. +message DeleteMembershipRequest { + // Required. The Membership resource name in the format + // `projects/*/locations/*/memberships/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gkehub.googleapis.com/Membership" + } + ]; +} + +// Request message for `GkeHub.UpdateMembership` method. +message UpdateMembershipRequest { + // Required. The Membership resource name in the format + // `projects/*/locations/*/memberships/*`. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Mask of fields to update. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Only fields specified in update_mask are updated. + // If you specify a field in the update_mask but don't specify its value here + // that field will be deleted. + // If you are updating a map field, set the value of a key to null or empty + // string to delete the key from the map. It's not possible to update a key's + // value to the empty string. + Membership resource = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for `GkeHub.GenerateConnectManifest` +// method. +// . +message GenerateConnectManifestRequest { + // Required. The Membership resource name the Agent will associate with, in the format + // `projects/*/locations/*/memberships/*`. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`. + // + // The Connect Agent is authorized automatically when run in the default + // namespace. Otherwise, explicit authorization must be granted with an + // additional IAM binding. + string namespace = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. URI of a proxy if connectivity from the agent to gkeconnect.googleapis.com + // requires the use of a proxy. Format must be in the form + // `http(s)://{proxy_address}`, depending on the HTTP/HTTPS protocol + // supported by the proxy. This will direct the connect agent's outbound + // traffic through a HTTP(S) proxy. + bytes proxy = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The Connect agent version to use. Defaults to the most current version. + string version = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, generate the resources for upgrade only. Some resources + // generated only for installation (e.g. secrets) will be excluded. + bool is_upgrade = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The registry to fetch the connect agent image from. Defaults to + // gcr.io/gkeconnect. + string registry = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The image pull secret content for the registry, if not public. + bytes image_pull_secret_content = 7 [(google.api.field_behavior) = OPTIONAL]; +} + +// GenerateConnectManifestResponse contains manifest information for +// installing/upgrading a Connect agent. +message GenerateConnectManifestResponse { + // The ordered list of Kubernetes resources that need to be applied to the + // cluster for GKE Connect agent installation/upgrade. + repeated ConnectAgentResource manifest = 1; +} + +// ConnectAgentResource represents a Kubernetes resource manifest for Connect +// Agent deployment. +message ConnectAgentResource { + // Kubernetes type of the resource. + TypeMeta type = 1; + + // YAML manifest of the resource. + string manifest = 2; +} + +// ResourceManifest represents a single Kubernetes resource to be applied to +// the cluster. +message ResourceManifest { + // YAML manifest of the resource. + string manifest = 1; + + // Whether the resource provided in the manifest is `cluster_scoped`. + // If unset, the manifest is assumed to be namespace scoped. + // + // This field is used for REST mapping when applying the resource in a + // cluster. + bool cluster_scoped = 2; +} + +// TypeMeta is the type information needed for content unmarshalling of +// Kubernetes resources in the manifest. +message TypeMeta { + // Kind of the resource (e.g. Deployment). + string kind = 1; + + // APIVersion of the resource (e.g. v1). + string api_version = 2; +} + +// Request message for the InitializeHub method. +message InitializeHubRequest { + // Required. The Hub to initialize, in the format + // `projects/*/locations/*/memberships/*`. + string project = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for the InitializeHub method. +message InitializeHubResponse { + // Name of the Hub default service identity, in the format: + // + // service-@gcp-sa-gkehub.iam.gserviceaccount.com + // + // The service account has `roles/gkehub.serviceAgent` in the Hub project. + string service_identity = 1; + + // The Workload Identity Pool used for Workload Identity-enabled clusters + // registered with this Hub. Format: `.hub.id.goog` + string workload_identity_pool = 2; +} + +// Represents the metadata of the long-running operation. +message OperationMetadata { + // Output only. The time the operation was created. + google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time the operation finished running. + google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Server-defined resource path for the target of the operation. + string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Name of the verb executed by the operation. + string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Human-readable status of the operation, if any. + string status_detail = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Identifies whether the user has requested cancellation + // of the operation. Operations that have successfully been cancelled + // have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, + // corresponding to `Code.CANCELLED`. + bool cancel_requested = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. API version used to start the operation. + string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/cloud/gkehub/v1alpha2/membership_grpc_service_config.json b/third_party/googleapis/google/cloud/gkehub/v1alpha2/membership_grpc_service_config.json new file mode 100644 index 000000000..61d769a65 --- /dev/null +++ b/third_party/googleapis/google/cloud/gkehub/v1alpha2/membership_grpc_service_config.json @@ -0,0 +1,13 @@ +{ + "methodConfig": [{ + "name": [{ "service": "google.cloud.gkehub.v1alpha2.GkeHub" }], + "timeout": "60s", + "retryPolicy": { + "maxAttempts": 5, + "initialBackoff": "1s", + "maxBackoff": "10s", + "backoffMultiplier": 1.3, + "retryableStatusCodes": ["UNAVAILABLE"] + } + }] +} diff --git a/third_party/googleapis/google/cloud/gkehub/v1beta1/BUILD.bazel b/third_party/googleapis/google/cloud/gkehub/v1beta1/BUILD.bazel new file mode 100644 index 000000000..0ef7c67c5 --- /dev/null +++ b/third_party/googleapis/google/cloud/gkehub/v1beta1/BUILD.bazel @@ -0,0 +1,340 @@ +# This file was automatically generated by BuildFileGenerator +# https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/bazel + +# Most of the manual changes to this file will be overwritten. +# It's **only** allowed to change the following rule attribute values: +# - names of *_gapic_assembly_* rules +# - certain parameters of *_gapic_library rules, including but not limited to: +# * extra_protoc_parameters +# * extra_protoc_file_parameters +# The complete list of preserved parameters can be found in the source code. + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") +load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info") + +proto_library( + name = "gkehub_proto", + srcs = [ + "membership.proto", + ], + deps = [ + "//google/api:annotations_proto", + "//google/api:client_proto", + "//google/api:field_behavior_proto", + "//google/api:resource_proto", + "//google/longrunning:operations_proto", + "//google/rpc:status_proto", + "@com_google_protobuf//:field_mask_proto", + "@com_google_protobuf//:timestamp_proto", + ], +) + +proto_library_with_info( + name = "gkehub_proto_with_info", + deps = [ + ":gkehub_proto", + "//google/cloud:common_resources_proto", + ], +) + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_gapic_assembly_gradle_pkg", + "java_gapic_library", + "java_gapic_test", + "java_grpc_library", + "java_proto_library", +) + +java_proto_library( + name = "gkehub_java_proto", + deps = [":gkehub_proto"], +) + +java_grpc_library( + name = "gkehub_java_grpc", + srcs = [":gkehub_proto"], + deps = [":gkehub_java_proto"], +) + +java_gapic_library( + name = "gkehub_java_gapic", + srcs = [":gkehub_proto_with_info"], + grpc_service_config = "membership_grpc_service_config.json", + test_deps = [ + ":gkehub_java_grpc", + ], + deps = [ + ":gkehub_java_proto", + ], +) + +java_gapic_test( + name = "gkehub_java_gapic_test_suite", + test_classes = [ + ], + runtime_deps = [":gkehub_java_gapic_test"], +) + +# Open Source Packages +java_gapic_assembly_gradle_pkg( + name = "google-cloud-gkehub-v1beta1-java", + deps = [ + ":gkehub_java_gapic", + ":gkehub_java_grpc", + ":gkehub_java_proto", + ":gkehub_proto", + ], +) + +############################################################################## +# Go +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "go_gapic_assembly_pkg", + "go_gapic_library", + "go_proto_library", + "go_test", +) + +go_proto_library( + name = "gkehub_go_proto", + compilers = ["@io_bazel_rules_go//proto:go_grpc"], + importpath = "google.golang.org/genproto/googleapis/cloud/gkehub/v1beta1", + protos = [":gkehub_proto"], + deps = [ + "//google/api:annotations_go_proto", + "//google/longrunning:longrunning_go_proto", + "//google/rpc:status_go_proto", + ], +) + +go_gapic_library( + name = "gkehub_go_gapic", + srcs = [":gkehub_proto_with_info"], + grpc_service_config = "membership_grpc_service_config.json", + importpath = "cloud.google.com/go/gkehub/apiv1beta1;gkehub", + service_yaml = "gkehub_v1beta1.yaml", + deps = [ + ":gkehub_go_proto", + "//google/longrunning:longrunning_go_proto", + "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", + ], +) + +go_test( + name = "gkehub_go_gapic_test", + srcs = [":gkehub_go_gapic_srcjar_test"], + embed = [":gkehub_go_gapic"], + importpath = "cloud.google.com/go/gkehub/apiv1beta1", +) + +# Open Source Packages +go_gapic_assembly_pkg( + name = "gapi-cloud-gkehub-v1beta1-go", + deps = [ + ":gkehub_go_gapic", + ":gkehub_go_gapic_srcjar-test.srcjar", + ":gkehub_go_proto", + ], +) + +############################################################################## +# Python +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "py_gapic_assembly_pkg", + "py_gapic_library", +) + +py_gapic_library( + name = "gkehub_py_gapic", + srcs = [":gkehub_proto"], + grpc_service_config = "membership_grpc_service_config.json", +) + +# Open Source Packages +py_gapic_assembly_pkg( + name = "gkehub-v1beta1-py", + deps = [ + ":gkehub_py_gapic", + ], +) + +############################################################################## +# PHP +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "php_gapic_assembly_pkg", + "php_gapic_library", + "php_grpc_library", + "php_proto_library", +) + +php_proto_library( + name = "gkehub_php_proto", + deps = [":gkehub_proto"], +) + +php_grpc_library( + name = "gkehub_php_grpc", + srcs = [":gkehub_proto"], + deps = [":gkehub_php_proto"], +) + +php_gapic_library( + name = "gkehub_php_gapic", + src = ":gkehub_proto_with_info", + gapic_yaml = "memberships_gapic.yaml", + grpc_service_config = "membership_grpc_service_config.json", + package = "google.cloud.gkehub.v1beta1", + service_yaml = "gkehub_v1beta1.yaml", + deps = [ + ":gkehub_php_grpc", + ":gkehub_php_proto", + ], +) + +# Open Source Packages +php_gapic_assembly_pkg( + name = "google-cloud-gkehub-v1beta1-php", + deps = [ + ":gkehub_php_gapic", + ":gkehub_php_grpc", + ":gkehub_php_proto", + ], +) + +############################################################################## +# Node.js +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", +) + +nodejs_gapic_library( + name = "gkehub_nodejs_gapic", + package_name = "@google-cloud/gke-hub", + src = ":gkehub_proto_with_info", + extra_protoc_parameters = ["metadata"], + grpc_service_config = "membership_grpc_service_config.json", + package = "google.cloud.gkehub.v1beta1", + service_yaml = "gkehub_v1beta1.yaml", + deps = [], +) + +nodejs_gapic_assembly_pkg( + name = "gkehub-v1beta1-nodejs", + deps = [ + ":gkehub_nodejs_gapic", + ":gkehub_proto", + ], +) + +############################################################################## +# Ruby +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "ruby_gapic_assembly_pkg", + "ruby_gapic_library", + "ruby_grpc_library", + "ruby_proto_library", +) + +ruby_proto_library( + name = "gkehub_ruby_proto", + deps = [":gkehub_proto"], +) + +ruby_grpc_library( + name = "gkehub_ruby_grpc", + srcs = [":gkehub_proto"], + deps = [":gkehub_ruby_proto"], +) + +ruby_gapic_library( + name = "gkehub_ruby_gapic", + src = ":gkehub_proto_with_info", + gapic_yaml = "memberships_gapic.yaml", + grpc_service_config = "membership_grpc_service_config.json", + package = "google.cloud.gkehub.v1beta1", + service_yaml = "gkehub_v1beta1.yaml", + deps = [ + ":gkehub_ruby_grpc", + ":gkehub_ruby_proto", + ], +) + +# Open Source Packages +ruby_gapic_assembly_pkg( + name = "google-cloud-gkehub-v1beta1-ruby", + deps = [ + ":gkehub_ruby_gapic", + ":gkehub_ruby_grpc", + ":gkehub_ruby_proto", + ], +) + +############################################################################## +# C# +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "csharp_gapic_assembly_pkg", + "csharp_gapic_library", + "csharp_grpc_library", + "csharp_proto_library", +) + +csharp_proto_library( + name = "gkehub_csharp_proto", + deps = [":gkehub_proto"], +) + +csharp_grpc_library( + name = "gkehub_csharp_grpc", + srcs = [":gkehub_proto"], + deps = [":gkehub_csharp_proto"], +) + +csharp_gapic_library( + name = "gkehub_csharp_gapic", + srcs = [":gkehub_proto_with_info"], + common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "membership_grpc_service_config.json", + deps = [ + ":gkehub_csharp_grpc", + ":gkehub_csharp_proto", + ], +) + +# Open Source Packages +csharp_gapic_assembly_pkg( + name = "google-cloud-gkehub-v1beta1-csharp", + deps = [ + ":gkehub_csharp_gapic", + ":gkehub_csharp_grpc", + ":gkehub_csharp_proto", + ], +) + +############################################################################## +# C++ +############################################################################## +# Put your C++ rules here diff --git a/third_party/googleapis/google/cloud/gkehub/v1beta1/gkehub_v1beta1.yaml b/third_party/googleapis/google/cloud/gkehub/v1beta1/gkehub_v1beta1.yaml new file mode 100644 index 000000000..79a50d88e --- /dev/null +++ b/third_party/googleapis/google/cloud/gkehub/v1beta1/gkehub_v1beta1.yaml @@ -0,0 +1,103 @@ +type: google.api.Service +config_version: 3 +name: gkehub.googleapis.com +title: GKE Hub + +apis: +- name: google.cloud.gkehub.v1beta1.GkeHubMembershipService + +types: +- name: google.cloud.gkehub.v1beta1.OperationMetadata + +documentation: + rules: + - selector: google.cloud.location.Locations.GetLocation + description: Gets information about a location. + + - selector: google.cloud.location.Locations.ListLocations + description: Lists information about the supported locations for this service. + + - selector: google.iam.v1.IAMPolicy.GetIamPolicy + description: |- + Gets the access control policy for a resource. Returns an empty policy + if the resource exists and does not have a policy set. + + - selector: google.iam.v1.IAMPolicy.SetIamPolicy + description: |- + Sets the access control policy on the specified resource. Replaces + any existing policy. + + Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` + errors. + + - selector: google.iam.v1.IAMPolicy.TestIamPermissions + description: |- + Returns permissions that a caller has on the specified resource. If the + resource does not exist, this will return an empty set of + permissions, not a `NOT_FOUND` error. + + Note: This operation is designed to be used for building + permission-aware UIs and command-line tools, not for authorization + checking. This operation may "fail open" without warning. + +backend: + rules: + - selector: 'google.cloud.gkehub.v1beta1.GkeHubMembershipService.*' + deadline: 60.0 + - selector: google.cloud.location.Locations.GetLocation + deadline: 60.0 + - selector: google.cloud.location.Locations.ListLocations + deadline: 60.0 + - selector: 'google.iam.v1.IAMPolicy.*' + deadline: 60.0 + - selector: 'google.longrunning.Operations.*' + deadline: 60.0 + - selector: google.longrunning.Operations.GetOperation + deadline: 5.0 + +http: + rules: + - selector: google.cloud.location.Locations.GetLocation + get: '/v1beta1/{name=projects/*/locations/*}' + - selector: google.cloud.location.Locations.ListLocations + get: '/v1beta1/{name=projects/*}/locations' + - selector: google.iam.v1.IAMPolicy.GetIamPolicy + get: '/v1beta1/{resource=projects/*/locations/*/memberships/*}:getIamPolicy' + - selector: google.iam.v1.IAMPolicy.SetIamPolicy + post: '/v1beta1/{resource=projects/*/locations/*/memberships/*}:setIamPolicy' + body: '*' + - selector: google.iam.v1.IAMPolicy.TestIamPermissions + post: '/v1beta1/{resource=projects/*/locations/*/memberships/*}:testIamPermissions' + body: '*' + - selector: google.longrunning.Operations.CancelOperation + post: '/v1beta1/{name=projects/*/locations/*/operations/*}:cancel' + body: '*' + - selector: google.longrunning.Operations.DeleteOperation + delete: '/v1beta1/{name=projects/*/locations/*/operations/*}' + - selector: google.longrunning.Operations.GetOperation + get: '/v1beta1/{name=projects/*/locations/*/operations/*}' + - selector: google.longrunning.Operations.ListOperations + get: '/v1beta1/{name=projects/*/locations/*}/operations' + +authentication: + rules: + - selector: 'google.cloud.gkehub.v1beta1.GkeHubMembershipService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform + - selector: google.cloud.location.Locations.GetLocation + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform + - selector: google.cloud.location.Locations.ListLocations + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform + - selector: 'google.iam.v1.IAMPolicy.*' + 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/third_party/googleapis/google/cloud/gkehub/v1beta1/membership.proto b/third_party/googleapis/google/cloud/gkehub/v1beta1/membership.proto new file mode 100644 index 000000000..d04698cfc --- /dev/null +++ b/third_party/googleapis/google/cloud/gkehub/v1beta1/membership.proto @@ -0,0 +1,679 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.gkehub.v1beta1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Cloud.GkeHub.V1Beta1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/gkehub/v1beta1;gkehub"; +option java_multiple_files = true; +option java_package = "com.google.cloud.gkehub.v1beta1"; +option php_namespace = "Google\\Cloud\\GkeHub\\V1beta1"; +option ruby_package = "Google::Cloud::GkeHub::V1beta1"; + +// GKE Hub CRUD API for the Membership resource. +// The Membership service is currently only available in the global location. +service GkeHubMembershipService { + option (google.api.default_host) = "gkehub.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + + // Lists Memberships in a given project and location. + rpc ListMemberships(ListMembershipsRequest) returns (ListMembershipsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*}/memberships" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets the details of a Membership. + rpc GetMembership(GetMembershipRequest) returns (Membership) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/memberships/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Adds a new Membership. + rpc CreateMembership(CreateMembershipRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*}/memberships" + body: "resource" + }; + option (google.api.method_signature) = "parent,resource,membership_id"; + option (google.longrunning.operation_info) = { + response_type: "Membership" + metadata_type: "OperationMetadata" + }; + } + + // Removes a Membership. + rpc DeleteMembership(DeleteMembershipRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1beta1/{name=projects/*/locations/*/memberships/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Updates an existing Membership. + rpc UpdateMembership(UpdateMembershipRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1beta1/{name=projects/*/locations/*/memberships/*}" + body: "resource" + }; + option (google.api.method_signature) = "name,resource,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Membership" + metadata_type: "OperationMetadata" + }; + } + + // Generates the manifest for deployment of the GKE connect agent. + rpc GenerateConnectManifest(GenerateConnectManifestRequest) returns (GenerateConnectManifestResponse) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/memberships/*}:generateConnectManifest" + }; + } + + // ValidateExclusivity validates the state of exclusivity in the cluster. + // The validation does not depend on an existing Hub membership resource. + rpc ValidateExclusivity(ValidateExclusivityRequest) returns (ValidateExclusivityResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*}/memberships:validateExclusivity" + }; + } + + // GenerateExclusivityManifest generates the manifests to update the + // exclusivity artifacts in the cluster if needed. + // + // Exclusivity artifacts include the Membership custom resource definition + // (CRD) and the singleton Membership custom resource (CR). Combined with + // ValidateExclusivity, exclusivity artifacts guarantee that a Kubernetes + // cluster is only registered to a single GKE Hub. + // + // The Membership CRD is versioned, and may require conversion when the GKE + // Hub API server begins serving a newer version of the CRD and + // corresponding CR. The response will be the converted CRD and CR if there + // are any differences between the versions. + rpc GenerateExclusivityManifest(GenerateExclusivityManifestRequest) returns (GenerateExclusivityManifestResponse) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/memberships/*}:generateExclusivityManifest" + }; + } +} + +// Membership contains information about a member cluster. +message Membership { + option (google.api.resource) = { + type: "gkehub.googleapis.com/Membership" + pattern: "projects/{project}/locations/{location}/memberships/{membership}" + }; + + // Specifies the infrastructure type of a Membership. Infrastructure type is + // used by Hub to control infrastructure-specific behavior, including pricing. + // + // Each GKE distribution (on-GCP, on-Prem, on-X,...) will set this field + // automatically, but Attached Clusters customers should specify a type + // during registration. + enum InfrastructureType { + // No type was specified. Some Hub functionality may require a type be + // specified, and will not support Memberships with this value. + INFRASTRUCTURE_TYPE_UNSPECIFIED = 0; + + // Private infrastructure that is owned or operated by customer. This + // includes GKE distributions such as GKE-OnPrem and GKE-OnBareMetal. + ON_PREM = 1; + + // Public cloud infrastructure. + MULTI_CLOUD = 2; + } + + // Output only. The full, unique name of this Membership resource in the format + // `projects/*/locations/*/memberships/{membership_id}`, set during creation. + // + // `membership_id` must be a valid RFC 1123 compliant DNS label: + // + // 1. At most 63 characters in length + // 2. It must consist of lower case alphanumeric characters or `-` + // 3. It must start and end with an alphanumeric character + // + // Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, + // with a maximum length of 63 characters. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. GCP labels for this membership. + map labels = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Description of this membership, limited to 63 characters. + // Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*` + string description = 3 [(google.api.field_behavior) = REQUIRED]; + + // Type of resource represented by this Membership + oneof type { + // Optional. Endpoint information to reach this member. + MembershipEndpoint endpoint = 4 [(google.api.field_behavior) = OPTIONAL]; + } + + // Output only. State of the Membership resource. + MembershipState state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. How to identify workloads from this Membership. + // See the documentation on Workload Identity for more details: + // https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity + Authority authority = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. When the Membership was created. + google.protobuf.Timestamp create_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. When the Membership was last updated. + google.protobuf.Timestamp update_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. When the Membership was deleted. + google.protobuf.Timestamp delete_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. An externally-generated and managed ID for this Membership. This ID may + // be modified after creation, but this is not recommended. For GKE clusters, + // external_id is managed by the Hub API and updates will be ignored. + // + // The ID must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.]*` + // + // If this Membership represents a Kubernetes cluster, this value should be + // set to the UID of the `kube-system` namespace object. + string external_id = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. For clusters using Connect, the timestamp of the most recent connection + // established with Google Cloud. This time is updated every several minutes, + // not continuously. For clusters that do not use GKE Connect, or that have + // never connected successfully, this field will be unset. + google.protobuf.Timestamp last_connection_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Google-generated UUID for this resource. This is unique across all + // Membership resources. If a Membership resource is deleted and another + // resource with the same name is created, it gets a different unique_id. + string unique_id = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The infrastructure type this Membership is running on. + InfrastructureType infrastructure_type = 13 [(google.api.field_behavior) = OPTIONAL]; +} + +// MembershipEndpoint contains information needed to contact a Kubernetes API, +// endpoint and any additional Kubernetes metadata. +message MembershipEndpoint { + // Optional. GKE-specific information. Only present if this Membership is a GKE cluster. + GkeCluster gke_cluster = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Useful Kubernetes-specific metadata. + KubernetesMetadata kubernetes_metadata = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The in-cluster Kubernetes Resources that should be applied for a correctly + // registered cluster, in the steady state. These resources: + // + // * Ensure that the cluster is exclusively registered to one and only one + // Hub Membership. + // * Propagate Workload Pool Information available in the Membership + // Authority field. + // * Ensure proper initial configuration of default Hub Features. + KubernetesResource kubernetes_resource = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// KubernetesResource contains the YAML manifests and configuration for +// Membership Kubernetes resources in the cluster. After CreateMembership or +// UpdateMembership, these resources should be re-applied in the cluster. +message KubernetesResource { + // Input only. The YAML representation of the Membership CR. This field is ignored for GKE + // clusters where Hub can read the CR directly. + // + // Callers should provide the CR that is currently present in the cluster + // during CreateMembership or UpdateMembership, or leave this field empty if + // none exists. The CR manifest is used to validate the cluster has not been + // registered with another Membership. + string membership_cr_manifest = 1 [(google.api.field_behavior) = INPUT_ONLY]; + + // Output only. Additional Kubernetes resources that need to be applied to the cluster + // after Membership creation, and after every update. + // + // This field is only populated in the Membership returned from a successful + // long-running operation from CreateMembership or UpdateMembership. It is not + // populated during normal GetMembership or ListMemberships requests. To get + // the resource manifest after the initial registration, the caller should + // make a UpdateMembership call with an empty field mask. + repeated ResourceManifest membership_resources = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Kubernetes resources for installing the GKE Connect agent + // + // This field is only populated in the Membership returned from a successful + // long-running operation from CreateMembership or UpdateMembership. It is not + // populated during normal GetMembership or ListMemberships requests. To get + // the resource manifest after the initial registration, the caller should + // make a UpdateMembership call with an empty field mask. + repeated ResourceManifest connect_resources = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Options for Kubernetes resource generation. + ResourceOptions resource_options = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// ResourceOptions represent options for Kubernetes resource generation. +message ResourceOptions { + // Optional. The Connect agent version to use for connect_resources. Defaults to the + // latest GKE Connect version. The version must be a currently supported + // version, obsolete versions will be rejected. + string connect_version = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for + // CustomResourceDefinition resources. + // This option should be set for clusters with Kubernetes apiserver versions + // <1.16. + bool v1beta1_crd = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// ResourceManifest represents a single Kubernetes resource to be applied to +// the cluster. +message ResourceManifest { + // YAML manifest of the resource. + string manifest = 1; + + // Whether the resource provided in the manifest is `cluster_scoped`. + // If unset, the manifest is assumed to be namespace scoped. + // + // This field is used for REST mapping when applying the resource in a + // cluster. + bool cluster_scoped = 2; +} + +// GkeCluster contains information specific to GKE clusters. +message GkeCluster { + // Immutable. Self-link of the GCP resource for the GKE cluster. For example: + // + // //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster + // + // Zonal clusters are also supported. + string resource_link = 1 [(google.api.field_behavior) = IMMUTABLE]; +} + +// KubernetesMetadata provides informational metadata for Memberships +// representing Kubernetes clusters. +message KubernetesMetadata { + // Output only. Kubernetes API server version string as reported by '/version'. + string kubernetes_api_server_version = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Node providerID as reported by the first node in the list of nodes on + // the Kubernetes endpoint. On Kubernetes platforms that support zero-node + // clusters (like GKE-on-GCP), the node_count will be zero and the + // node_provider_id will be empty. + string node_provider_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Node count as reported by Kubernetes nodes resources. + int32 node_count = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. vCPU count as reported by Kubernetes nodes resources. + int32 vcpu_count = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The total memory capacity as reported by the sum of all Kubernetes nodes + // resources, defined in MB. + int32 memory_mb = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time at which these details were last updated. This update_time is + // different from the Membership-level update_time since EndpointDetails are + // updated internally for API consumers. + google.protobuf.Timestamp update_time = 100 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Authority encodes how Google will recognize identities from this Membership. +// See the workload identity documentation for more details: +// https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity +message Authority { + // Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and + // be a valid URL with length <2000 characters. + // + // If set, then Google will allow valid OIDC tokens from this issuer to + // authenticate within the workload_identity_pool. OIDC discovery will be + // performed on this URI to validate tokens from the issuer. + // + // Clearing `issuer` disables Workload Identity. `issuer` cannot be directly + // modified; it must be cleared (and Workload Identity disabled) before using + // a new issuer (and re-enabling Workload Identity). + string issuer = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The name of the workload identity pool in which `issuer` will be + // recognized. + // + // There is a single Workload Identity Pool per Hub that is shared + // between all Memberships that belong to that Hub. For a Hub hosted in + // {PROJECT_ID}, the workload pool format is `{PROJECT_ID}.hub.id.goog`, + // although this is subject to change in newer versions of this API. + string workload_identity_pool = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. An identity provider that reflects the `issuer` in the workload identity + // pool. + string identity_provider = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. OIDC verification keys for this Membership in JWKS format (RFC 7517). + // + // When this field is set, OIDC discovery will NOT be performed on `issuer`, + // and instead OIDC tokens will be validated using this field. + bytes oidc_jwks = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// State of the Membership resource. +message MembershipState { + // Code describes the state of a Membership resource. + enum Code { + // The code is not set. + CODE_UNSPECIFIED = 0; + + // The cluster is being registered. + CREATING = 1; + + // The cluster is registered. + READY = 2; + + // The cluster is being unregistered. + DELETING = 3; + + // The Membership is being updated. + UPDATING = 4; + + // The Membership is being updated by the Hub Service. + SERVICE_UPDATING = 5; + } + + // Output only. The current state of the Membership resource. + Code code = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // This field is never set by the Hub Service. + string description = 2 [deprecated = true]; + + // This field is never set by the Hub Service. + google.protobuf.Timestamp update_time = 3 [deprecated = true]; +} + +// Request message for `GkeHubMembershipService.ListMemberships` method. +message ListMembershipsRequest { + // Required. The parent (project and location) where the Memberships will be listed. + // Specified in the format `projects/*/locations/*`. + string parent = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. When requesting a 'page' of resources, `page_size` specifies number of + // resources to return. If unspecified or set to 0, all resources will + // be returned. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Token returned by previous call to `ListMemberships` which + // specifies the position in the list from where to continue listing the + // resources. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Lists Memberships that match the filter expression, following the syntax + // outlined in https://google.aip.dev/160. + // + // Examples: + // + // - Name is `bar` in project `foo-proj` and location `global`: + // + // name = "projects/foo-proj/locations/global/membership/bar" + // + // - Memberships that have a label called `foo`: + // + // labels.foo:* + // + // - Memberships that have a label called `foo` whose value is `bar`: + // + // labels.foo = bar + // + // - Memberships in the CREATING state: + // + // state = CREATING + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. One or more fields to compare and use to sort the output. + // See https://google.aip.dev/132#ordering. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for the `GkeHubMembershipService.ListMemberships` method. +message ListMembershipsResponse { + // The list of matching Memberships. + repeated Membership resources = 1; + + // A token to request the next page of resources from the + // `ListMemberships` method. The value of an empty string means that + // there are no more resources to return. + string next_page_token = 2; + + // List of locations that could not be reached while fetching this list. + repeated string unreachable = 3; +} + +// Request message for `GkeHubMembershipService.GetMembership` method. +message GetMembershipRequest { + // Required. The Membership resource name in the format + // `projects/*/locations/*/memberships/*`. + string name = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for the `GkeHubMembershipService.CreateMembership` method. +message CreateMembershipRequest { + // Required. The parent (project and location) where the Memberships will be created. + // Specified in the format `projects/*/locations/*`. + string parent = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Client chosen ID for the membership. `membership_id` must be a valid RFC + // 1123 compliant DNS label: + // + // 1. At most 63 characters in length + // 2. It must consist of lower case alphanumeric characters or `-` + // 3. It must start and end with an alphanumeric character + // + // Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`, + // with a maximum length of 63 characters. + string membership_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The membership to create. + Membership resource = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for `GkeHubMembershipService.DeleteMembership` method. +message DeleteMembershipRequest { + // Required. The Membership resource name in the format + // `projects/*/locations/*/memberships/*`. + string name = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for `GkeHubMembershipService.UpdateMembership` method. +message UpdateMembershipRequest { + // Required. The membership resource name in the format: + // `projects/[project_id]/locations/global/memberships/[membership_id]` + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Mask of fields to update. At least one field path must be specified in this + // mask. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Only fields specified in update_mask are updated. + // If you specify a field in the update_mask but don't specify its value here + // that field will be deleted. + // If you are updating a map field, set the value of a key to null or empty + // string to delete the key from the map. It's not possible to update a key's + // value to the empty string. + Membership resource = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for `GkeHubMembershipService.GenerateConnectManifest` +// method. +// . +message GenerateConnectManifestRequest { + // Required. The Membership resource name the Agent will associate with, in the format + // `projects/*/locations/*/memberships/*`. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The connect agent to generate manifest for. + ConnectAgent connect_agent = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The Connect agent version to use. Defaults to the most current version. + string version = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, generate the resources for upgrade only. Some resources + // generated only for installation (e.g. secrets) will be excluded. + bool is_upgrade = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The registry to fetch the connect agent image from. Defaults to + // gcr.io/gkeconnect. + string registry = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The image pull secret content for the registry, if not public. + bytes image_pull_secret_content = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// GenerateConnectManifestResponse contains manifest information for +// installing/upgrading a Connect agent. +message GenerateConnectManifestResponse { + // The ordered list of Kubernetes resources that need to be applied to the + // cluster for GKE Connect agent installation/upgrade. + repeated ConnectAgentResource manifest = 1; +} + +// ConnectAgentResource represents a Kubernetes resource manifest for Connect +// Agent deployment. +message ConnectAgentResource { + // Kubernetes type of the resource. + TypeMeta type = 1; + + // YAML manifest of the resource. + string manifest = 2; +} + +// TypeMeta is the type information needed for content unmarshalling of +// Kubernetes resources in the manifest. +message TypeMeta { + // Kind of the resource (e.g. Deployment). + string kind = 1; + + // APIVersion of the resource (e.g. v1). + string api_version = 2; +} + +// The information required from end users to use GKE Connect. +message ConnectAgent { + // Do not set. + string name = 1 [deprecated = true]; + + // Optional. URI of a proxy if connectivity from the agent to gkeconnect.googleapis.com + // requires the use of a proxy. Format must be in the form + // `http(s)://{proxy_address}`, depending on the HTTP/HTTPS protocol + // supported by the proxy. This will direct the connect agent's outbound + // traffic through a HTTP(S) proxy. + bytes proxy = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`. + // + // The Connect Agent is authorized automatically when run in the default + // namespace. Otherwise, explicit authorization must be granted with an + // additional IAM binding. + string namespace = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// The request to validate the existing state of the membership CR in the +// cluster. +message ValidateExclusivityRequest { + // Required. The parent (project and location) where the Memberships will be created. + // Specified in the format `projects/*/locations/*`. + string parent = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The YAML of the membership CR in the cluster. Empty if the membership + // CR does not exist. + string cr_manifest = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The intended membership name under the `parent`. This method only does + // validation in anticipation of a CreateMembership call with the same name. + string intended_membership = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// The response of exclusivity artifacts validation result status. +message ValidateExclusivityResponse { + // The validation result. + // + // * `OK` means that exclusivity is validated, assuming the manifest produced + // by GenerateExclusivityManifest is successfully applied. + // * `ALREADY_EXISTS` means that the Membership CRD is already owned by + // another Hub. See `status.message` for more information. + google.rpc.Status status = 1; +} + +// The request to generate the manifests for exclusivity artifacts. +message GenerateExclusivityManifestRequest { + // Required. The Membership resource name in the format + // `projects/*/locations/*/memberships/*`. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The YAML manifest of the membership CRD retrieved by + // `kubectl get customresourcedefinitions membership`. + // Leave empty if the resource does not exist. + string crd_manifest = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The YAML manifest of the membership CR retrieved by + // `kubectl get memberships membership`. + // Leave empty if the resource does not exist. + string cr_manifest = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response of the exclusivity artifacts manifests for the client to apply. +message GenerateExclusivityManifestResponse { + // The YAML manifest of the membership CRD to apply if a newer version of the + // CRD is available. Empty if no update needs to be applied. + string crd_manifest = 1; + + // The YAML manifest of the membership CR to apply if a new version of the + // CR is available. Empty if no update needs to be applied. + string cr_manifest = 2; +} + +// Represents the metadata of the long-running operation. +message OperationMetadata { + // Output only. The time the operation was created. + google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time the operation finished running. + google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Server-defined resource path for the target of the operation. + string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Name of the verb executed by the operation. + string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Human-readable status of the operation, if any. + string status_detail = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Identifies whether the user has requested cancellation + // of the operation. Operations that have successfully been cancelled + // have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, + // corresponding to `Code.CANCELLED`. + bool cancel_requested = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. API version used to start the operation. + string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/cloud/gkehub/v1beta1/membership_grpc_service_config.json b/third_party/googleapis/google/cloud/gkehub/v1beta1/membership_grpc_service_config.json new file mode 100644 index 000000000..d0ebc1a85 --- /dev/null +++ b/third_party/googleapis/google/cloud/gkehub/v1beta1/membership_grpc_service_config.json @@ -0,0 +1,13 @@ +{ + "methodConfig": [{ + "name": [{ "service": "google.cloud.gkehub.v1beta1.GkeHubMembershipService" }], + "timeout": "60s", + "retryPolicy": { + "maxAttempts": 5, + "initialBackoff": "1s", + "maxBackoff": "10s", + "backoffMultiplier": 1.3, + "retryableStatusCodes": ["UNAVAILABLE"] + } + }] +} diff --git a/third_party/googleapis/google/cloud/gkehub/v1beta1/memberships_gapic.yaml b/third_party/googleapis/google/cloud/gkehub/v1beta1/memberships_gapic.yaml new file mode 100644 index 000000000..cde72b45b --- /dev/null +++ b/third_party/googleapis/google/cloud/gkehub/v1beta1/memberships_gapic.yaml @@ -0,0 +1,5 @@ +type: com.google.api.codegen.ConfigProto +config_schema_version: 2.0.0 +language_settings: + go: + package_name: cloud.google.com/go/gkehub/apiv1beta1 diff --git a/third_party/googleapis/google/cloud/gsuiteaddons/v1/BUILD.bazel b/third_party/googleapis/google/cloud/gsuiteaddons/v1/BUILD.bazel new file mode 100644 index 000000000..f4a7c4d27 --- /dev/null +++ b/third_party/googleapis/google/cloud/gsuiteaddons/v1/BUILD.bazel @@ -0,0 +1,302 @@ +# This file was automatically generated by BuildFileGenerator +# https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/bazel + +# Most of the manual changes to this file will be overwritten. +# It's **only** allowed to change the following rule attribute values: +# - names of *_gapic_assembly_* rules +# - certain parameters of *_gapic_library rules, including but not limited to: +# * extra_protoc_parameters +# * extra_protoc_file_parameters +# The complete list of preserved parameters can be found in the source code. + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") +load( + "@com_google_googleapis_imports//:imports.bzl", + "csharp_gapic_assembly_pkg", + "csharp_gapic_library", + "csharp_grpc_library", + "csharp_proto_library", + "go_gapic_assembly_pkg", + "go_gapic_library", + "go_proto_library", + "go_test", + "java_gapic_assembly_gradle_pkg", + "java_gapic_library", + "java_gapic_test", + "java_grpc_library", + "java_proto_library", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", + "php_gapic_assembly_pkg", + "php_gapic_library", + "php_grpc_library", + "php_proto_library", + "proto_library_with_info", + "py_gapic_assembly_pkg", + "py_gapic_library", + "ruby_gapic_assembly_pkg", + "ruby_gapic_library", + "ruby_grpc_library", + "ruby_proto_library", +) + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +proto_library( + name = "gsuiteaddons_proto", + srcs = [ + "gsuiteaddons.proto", + ], + deps = [ + "//google/api:annotations_proto", + "//google/api:client_proto", + "//google/api:field_behavior_proto", + "//google/api:resource_proto", + "//google/apps/script/type:type_proto", + "//google/apps/script/type/calendar:calendar_proto", + "//google/apps/script/type/docs:docs_proto", + "//google/apps/script/type/drive:drive_proto", + "//google/apps/script/type/gmail:gmail_proto", + "//google/apps/script/type/sheets:sheets_proto", + "//google/apps/script/type/slides:slides_proto", + "@com_google_protobuf//:empty_proto", + "@com_google_protobuf//:wrappers_proto", + ], +) + +proto_library_with_info( + name = "gsuiteaddons_proto_with_info", + deps = [ + ":gsuiteaddons_proto", + "//google/cloud:common_resources_proto", + ], +) + +java_proto_library( + name = "gsuiteaddons_java_proto", + deps = [":gsuiteaddons_proto"], +) + +java_grpc_library( + name = "gsuiteaddons_java_grpc", + srcs = [":gsuiteaddons_proto"], + deps = [":gsuiteaddons_java_proto"], +) + +java_gapic_library( + name = "gsuiteaddons_java_gapic", + srcs = [":gsuiteaddons_proto_with_info"], + grpc_service_config = "gsuiteaddons_grpc_service_config.json", + test_deps = [ + ":gsuiteaddons_java_grpc", + ], + deps = [ + ":gsuiteaddons_java_proto", + ], +) + +java_gapic_test( + name = "gsuiteaddons_java_gapic_test_suite", + test_classes = [ + "com.google.cloud.gsuiteaddons.v1.GSuiteAddOnsClientTest", + ], + runtime_deps = [":gsuiteaddons_java_gapic_test"], +) + +# Open Source Packages +java_gapic_assembly_gradle_pkg( + name = "google-cloud-gsuiteaddons-v1-java", + deps = [ + ":gsuiteaddons_java_gapic", + ":gsuiteaddons_java_grpc", + ":gsuiteaddons_java_proto", + ":gsuiteaddons_proto", + ], +) + +go_proto_library( + name = "gsuiteaddons_go_proto", + compilers = ["@io_bazel_rules_go//proto:go_grpc"], + importpath = "google.golang.org/genproto/googleapis/cloud/gsuiteaddons/v1", + protos = [":gsuiteaddons_proto"], + deps = [ + "//google/api:annotations_go_proto", + "//google/apps/script/type:type_go_proto", + "//google/apps/script/type/calendar:calendar_go_proto", + "//google/apps/script/type/docs:docs_go_proto", + "//google/apps/script/type/drive:drive_go_proto", + "//google/apps/script/type/gmail:gmail_go_proto", + "//google/apps/script/type/sheets:sheets_go_proto", + "//google/apps/script/type/slides:slides_go_proto", + ], +) + +go_gapic_library( + name = "gsuiteaddons_go_gapic", + srcs = [":gsuiteaddons_proto_with_info"], + grpc_service_config = "gsuiteaddons_grpc_service_config.json", + importpath = "cloud.google.com/go/gsuiteaddons/apiv1;gsuiteaddons", + service_yaml = "gsuiteaddons_v1.yaml", + deps = [ + ":gsuiteaddons_go_proto", + ], +) + +go_test( + name = "gsuiteaddons_go_gapic_test", + srcs = [":gsuiteaddons_go_gapic_srcjar_test"], + embed = [":gsuiteaddons_go_gapic"], + importpath = "cloud.google.com/go/gsuiteaddons/apiv1", +) + +# Open Source Packages +go_gapic_assembly_pkg( + name = "gapi-cloud-gsuiteaddons-v1-go", + deps = [ + ":gsuiteaddons_go_gapic", + ":gsuiteaddons_go_gapic_srcjar-test.srcjar", + ":gsuiteaddons_go_proto", + ], +) + +py_gapic_library( + name = "gsuiteaddons_py_gapic", + srcs = [":gsuiteaddons_proto"], + grpc_service_config = "gsuiteaddons_grpc_service_config.json", +) + +# Open Source Packages +py_gapic_assembly_pkg( + name = "gsuiteaddons-v1-py", + deps = [ + ":gsuiteaddons_py_gapic", + ], +) + +php_proto_library( + name = "gsuiteaddons_php_proto", + deps = [":gsuiteaddons_proto"], +) + +php_grpc_library( + name = "gsuiteaddons_php_grpc", + srcs = [":gsuiteaddons_proto"], + deps = [":gsuiteaddons_php_proto"], +) + +php_gapic_library( + name = "gsuiteaddons_php_gapic", + src = ":gsuiteaddons_proto_with_info", + gapic_yaml = "gsuiteaddons_gapic.yaml", + grpc_service_config = "gsuiteaddons_grpc_service_config.json", + package = "google.cloud.gsuiteaddons.v1", + service_yaml = "gsuiteaddons_v1.yaml", + deps = [ + ":gsuiteaddons_php_grpc", + ":gsuiteaddons_php_proto", + ], +) + +# Open Source Packages +php_gapic_assembly_pkg( + name = "google-cloud-gsuiteaddons-v1-php", + deps = [ + ":gsuiteaddons_php_gapic", + ":gsuiteaddons_php_grpc", + ":gsuiteaddons_php_proto", + ], +) + +nodejs_gapic_library( + name = "gsuiteaddons_nodejs_gapic", + package_name = "@google-cloud/gsuiteaddons", + src = ":gsuiteaddons_proto_with_info", + extra_protoc_parameters = ["metadata"], + grpc_service_config = "gsuiteaddons_grpc_service_config.json", + package = "google.cloud.gsuiteaddons.v1", + service_yaml = "gsuiteaddons_v1.yaml", + deps = [], +) + +nodejs_gapic_assembly_pkg( + name = "gsuiteaddons-v1-nodejs", + deps = [ + ":gsuiteaddons_nodejs_gapic", + ":gsuiteaddons_proto", + ], +) + +ruby_proto_library( + name = "gsuiteaddons_ruby_proto", + deps = [":gsuiteaddons_proto"], +) + +ruby_grpc_library( + name = "gsuiteaddons_ruby_grpc", + srcs = [":gsuiteaddons_proto"], + deps = [":gsuiteaddons_ruby_proto"], +) + +ruby_gapic_library( + name = "gsuiteaddons_ruby_gapic", + src = ":gsuiteaddons_proto_with_info", + gapic_yaml = "gsuiteaddons_gapic.yaml", + grpc_service_config = "gsuiteaddons_grpc_service_config.json", + package = "google.cloud.gsuiteaddons.v1", + service_yaml = "gsuiteaddons_v1.yaml", + deps = [ + ":gsuiteaddons_ruby_grpc", + ":gsuiteaddons_ruby_proto", + ], +) + +# Open Source Packages +ruby_gapic_assembly_pkg( + name = "google-cloud-gsuiteaddons-v1-ruby", + deps = [ + ":gsuiteaddons_ruby_gapic", + ":gsuiteaddons_ruby_grpc", + ":gsuiteaddons_ruby_proto", + ], +) + +csharp_proto_library( + name = "gsuiteaddons_csharp_proto", + deps = [":gsuiteaddons_proto"], +) + +csharp_grpc_library( + name = "gsuiteaddons_csharp_grpc", + srcs = [":gsuiteaddons_proto"], + deps = [":gsuiteaddons_csharp_proto"], +) + +csharp_gapic_library( + name = "gsuiteaddons_csharp_gapic", + srcs = [":gsuiteaddons_proto_with_info"], + common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "gsuiteaddons_grpc_service_config.json", + deps = [ + ":gsuiteaddons_csharp_grpc", + ":gsuiteaddons_csharp_proto", + ], +) + +# Open Source Packages +csharp_gapic_assembly_pkg( + name = "google-cloud-gsuiteaddons-v1-csharp", + deps = [ + ":gsuiteaddons_csharp_gapic", + ":gsuiteaddons_csharp_grpc", + ":gsuiteaddons_csharp_proto", + ], +) + +############################################################################## +# C++ +############################################################################## +# Put your C++ rules here diff --git a/third_party/googleapis/google/cloud/gsuiteaddons/v1/gsuiteaddons.proto b/third_party/googleapis/google/cloud/gsuiteaddons/v1/gsuiteaddons.proto new file mode 100644 index 000000000..11461a81c --- /dev/null +++ b/third_party/googleapis/google/cloud/gsuiteaddons/v1/gsuiteaddons.proto @@ -0,0 +1,389 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.gsuiteaddons.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/apps/script/type/calendar/calendar_addon_manifest.proto"; +import "google/apps/script/type/docs/docs_addon_manifest.proto"; +import "google/apps/script/type/drive/drive_addon_manifest.proto"; +import "google/apps/script/type/gmail/gmail_addon_manifest.proto"; +import "google/apps/script/type/script_manifest.proto"; +import "google/apps/script/type/sheets/sheets_addon_manifest.proto"; +import "google/apps/script/type/slides/slides_addon_manifest.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/wrappers.proto"; + +option csharp_namespace = "Google.Cloud.GSuiteAddOns.V1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/gsuiteaddons/v1;gsuiteaddons"; +option java_multiple_files = true; +option java_outer_classname = "GSuiteAddOnsProto"; +option java_package = "com.google.cloud.gsuiteaddons.v1"; +option php_namespace = "Google\\Cloud\\GSuiteAddOns\\V1"; +option ruby_package = "Google::Cloud::GSuiteAddOns::V1"; + +// A service for managing Google Workspace Add-ons deployments. +// +// A Google Workspace Add-on is a third-party embedded component that can be +// installed in Google Workspace Applications like Gmail, Calendar, Drive, and +// the Google Docs, Sheets, and Slides editors. Google Workspace Add-ons can +// display UI cards, receive contextual information from the host application, +// and perform actions in the host application (See: +// https://developers.google.com/gsuite/add-ons/overview for more information). +// +// A Google Workspace Add-on deployment resource specifies metadata about the +// add-on, including a specification of the entry points in the host application +// that trigger add-on executions (see: +// https://developers.google.com/gsuite/add-ons/concepts/gsuite-manifests). +// Add-on deployments defined via the Google Workspace Add-ons API define their +// entrypoints using HTTPS URLs (See: +// https://developers.google.com/gsuite/add-ons/guides/alternate-runtimes), +// +// A Google Workspace Add-on deployment can be installed in developer mode, +// which allows an add-on developer to test the experience an end-user would see +// when installing and running the add-on in their G Suite applications. When +// running in developer mode, more detailed error messages are exposed in the +// add-on UI to aid in debugging. +// +// A Google Workspace Add-on deployment can be published to Google Workspace +// Marketplace, which allows other Google Workspace users to discover and +// install the add-on. See: +// https://developers.google.com/gsuite/add-ons/how-tos/publish-add-on-overview +// for details. +service GSuiteAddOns { + option (google.api.default_host) = "gsuiteaddons.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Gets the authorization information for deployments in a given project. + rpc GetAuthorization(GetAuthorizationRequest) returns (Authorization) { + option (google.api.http) = { + get: "/v1/{name=projects/*/authorization}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a deployment with the specified name and configuration. + rpc CreateDeployment(CreateDeploymentRequest) returns (Deployment) { + option (google.api.http) = { + post: "/v1/{parent=projects/*}/deployments" + body: "deployment" + }; + option (google.api.method_signature) = "parent,deployment,deployment_id"; + } + + // Creates or replaces a deployment with the specified name. + rpc ReplaceDeployment(ReplaceDeploymentRequest) returns (Deployment) { + option (google.api.http) = { + put: "/v1/{deployment.name=projects/*/deployments/*}" + body: "deployment" + }; + option (google.api.method_signature) = "deployment"; + } + + // Gets the deployment with the specified name. + rpc GetDeployment(GetDeploymentRequest) returns (Deployment) { + option (google.api.http) = { + get: "/v1/{name=projects/*/deployments/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists all deployments in a particular project. + rpc ListDeployments(ListDeploymentsRequest) + returns (ListDeploymentsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*}/deployments" + }; + option (google.api.method_signature) = "parent"; + } + + // Deletes the deployment with the given name. + rpc DeleteDeployment(DeleteDeploymentRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/deployments/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Installs a deployment in developer mode. + // See: + // https://developers.google.com/gsuite/add-ons/how-tos/testing-gsuite-addons. + rpc InstallDeployment(InstallDeploymentRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1/{name=projects/*/deployments/*}:install" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Uninstalls a developer mode deployment. + // See: + // https://developers.google.com/gsuite/add-ons/how-tos/testing-gsuite-addons. + rpc UninstallDeployment(UninstallDeploymentRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1/{name=projects/*/deployments/*}:uninstall" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Fetches the install status of a developer mode deployment. + rpc GetInstallStatus(GetInstallStatusRequest) returns (InstallStatus) { + option (google.api.http) = { + get: "/v1/{name=projects/*/deployments/*/installStatus}" + }; + option (google.api.method_signature) = "name"; + } +} + +// Request message to get Google Workspace Add-ons authorization information. +message GetAuthorizationRequest { + // Required. Name of the project for which to get the Google Workspace Add-ons + // authorization information. + // + // Example: `projects/my_project/authorization`. + string name = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gsuiteaddons.googleapis.com/Authorization" + } + ]; +} + +// The authorization information used when invoking deployment endpoints. +message Authorization { + option (google.api.resource) = { + type: "gsuiteaddons.googleapis.com/Authorization" + pattern: "projects/{project}/authorization" + }; + + // The canonical full name of this resource. + // Example: `projects/123/authorization` + string name = 1; + + // The email address of the service account used to authenticate requests to + // add-on callback endpoints. + string service_account_email = 2; + + // The OAuth client ID used to obtain OAuth access tokens for a user on the + // add-on's behalf. + string oauth_client_id = 3; +} + +// Request message to create a deployment. +message CreateDeploymentRequest { + // Required. Name of the project in which to create the deployment. + // + // Example: `projects/my_project`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Project" + } + ]; + + // Required. The id to use for this deployment. The full name of the created + // resource will be `projects//deployments/`. + string deployment_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The deployment to create (deployment.name cannot be set). + Deployment deployment = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message to create or replace a deployment. +message ReplaceDeploymentRequest { + // Required. The deployment to create or replace. + Deployment deployment = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message to get a deployment. +message GetDeploymentRequest { + // Required. The full resource name of the deployment to get. + // + // Example: `projects/my_project/deployments/my_deployment`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gsuiteaddons.googleapis.com/Deployment" + } + ]; +} + +// Request message to list deployments for a project. +message ListDeploymentsRequest { + // Required. Name of the project in which to create the deployment. + // + // Example: `projects/my_project`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Project" + } + ]; + + // The maximum number of deployments to return. The service may return fewer + // than this value. + // If unspecified, at most 1000 deployments will be returned. + // The maximum value is 1000; values above 1000 will be coerced to 1000. + int32 page_size = 2; + + // A page token, received from a previous `ListDeployments` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListDeployments` must + // match the call that provided the page token. + string page_token = 3; +} + +// Response message to list deployments. +message ListDeploymentsResponse { + // The list of deployments for the given project. + repeated Deployment deployments = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request message to delete a deployment. +message DeleteDeploymentRequest { + // Required. The full resource name of the deployment to delete. + // + // Example: `projects/my_project/deployments/my_deployment`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gsuiteaddons.googleapis.com/Deployment" + } + ]; + + // The etag of the deployment to delete. + // If this is provided, it must match the server's etag. + string etag = 2; +} + +// Request message to install a developer mode deployment. +message InstallDeploymentRequest { + // Required. The full resource name of the deployment to install. + // + // Example: `projects/my_project/deployments/my_deployment`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gsuiteaddons.googleapis.com/Deployment" + } + ]; +} + +// Request message to uninstall a developer mode deployment. +message UninstallDeploymentRequest { + // Required. The full resource name of the deployment to install. + // + // Example: `projects/my_project/deployments/my_deployment`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gsuiteaddons.googleapis.com/Deployment" + } + ]; +} + +// Request message to get the install status of a developer mode deployment. +message GetInstallStatusRequest { + // Required. The full resource name of the deployment. + // + // Example: `projects/my_project/deployments/my_deployment/installStatus`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gsuiteaddons.googleapis.com/InstallStatus" + } + ]; +} + +// Developer mode install status of a deployment +message InstallStatus { + option (google.api.resource) = { + type: "gsuiteaddons.googleapis.com/InstallStatus" + pattern: "projects/{project}/deployments/{deployment}/installStatus" + }; + + // The canonical full resource name of the deployment install status. + // + // Example: `projects/123/deployments/my_deployment/installStatus`. + string name = 1; + + // True if the deployment is installed for the user + google.protobuf.BoolValue installed = 2; +} + +// A Google Workspace Add-on deployment +message Deployment { + option (google.api.resource) = { + type: "gsuiteaddons.googleapis.com/Deployment" + pattern: "projects/{project}/deployments/{deployment}" + }; + + // The deployment resource name. + // Example: projects/123/deployments/my_deployment. + string name = 1; + + // The list of Google OAuth scopes for which to request consent from the end + // user before executing an add-on endpoint. + repeated string oauth_scopes = 2; + + // The Google Workspace Add-on configuration. + AddOns add_ons = 3; + + // This value is computed by the server based on the version of the + // deployment in storage, and may be sent on update and delete requests to + // ensure the client has an up-to-date value before proceeding. + string etag = 5; +} + +// A Google Workspace Add-on configuration. +message AddOns { + // Configuration that is common across all Google Workspace Add-ons. + google.apps.script.type.CommonAddOnManifest common = 1; + + // Gmail add-on configuration. + google.apps.script.type.gmail.GmailAddOnManifest gmail = 2; + + // Drive add-on configuration. + google.apps.script.type.drive.DriveAddOnManifest drive = 5; + + // Calendar add-on configuration. + google.apps.script.type.calendar.CalendarAddOnManifest calendar = 6; + + // Docs add-on configuration. + google.apps.script.type.docs.DocsAddOnManifest docs = 7; + + // Sheets add-on configuration. + google.apps.script.type.sheets.SheetsAddOnManifest sheets = 8; + + // Slides add-on configuration. + google.apps.script.type.slides.SlidesAddOnManifest slides = 10; + + // Options for sending requests to add-on HTTP endpoints + google.apps.script.type.HttpOptions http_options = 15; +} diff --git a/third_party/googleapis/google/cloud/gsuiteaddons/v1/gsuiteaddons_gapic.yaml b/third_party/googleapis/google/cloud/gsuiteaddons/v1/gsuiteaddons_gapic.yaml new file mode 100644 index 000000000..2a8562afe --- /dev/null +++ b/third_party/googleapis/google/cloud/gsuiteaddons/v1/gsuiteaddons_gapic.yaml @@ -0,0 +1,18 @@ +type: com.google.api.codegen.ConfigProto +config_schema_version: 2.0.0 +language_settings: + java: + package_name: com.google.cloud.gsuiteaddons.v1 + python: + package_name: google.cloud.gsuiteaddons_v1.gapic + go: + package_name: cloud.google.com/go/gsuiteaddons/apiv1 + csharp: + package_name: Google.Cloud.GSuiteAddOns.V1 + ruby: + package_name: Google::Cloud::GSuiteAddOns::V1 + php: + package_name: Google\Cloud\GSuiteAddOns\V1 + nodejs: + package_name: gsuiteaddons.v1 + domain_layer_location: google-cloud diff --git a/third_party/googleapis/google/cloud/gsuiteaddons/v1/gsuiteaddons_grpc_service_config.json b/third_party/googleapis/google/cloud/gsuiteaddons/v1/gsuiteaddons_grpc_service_config.json new file mode 100644 index 000000000..836260347 --- /dev/null +++ b/third_party/googleapis/google/cloud/gsuiteaddons/v1/gsuiteaddons_grpc_service_config.json @@ -0,0 +1,28 @@ +{ + "methodConfig": [ + { + "name": [{ "service": "google.cloud.gsuiteaddons.v1.GSuiteAddOns" }], + "timeout": "10s", + "retryPolicy": { + "maxAttempts": 5, + "initialBackoff": "1s", + "maxBackoff": "10s", + "backoffMultiplier": 1.3, + "retryableStatusCodes": ["UNAVAILABLE", "UNKNOWN"] + } + }, + { + "name": [ + { "service": "google.cloud.gsuiteaddons.v1.GSuiteAddOns", "method": "CreateDeployment" }, + { "service": "google.cloud.gsuiteaddons.v1.GSuiteAddOns", "method": "DeleteDeployment" } + ], + "timeout": "10s" + }, + { + "name": [ + { "service": "google.cloud.gsuiteaddons.v1.GSuiteAddOns", "method": "GetAuthorization" } + ], + "timeout": "120s" + } + ] +} diff --git a/third_party/googleapis/google/cloud/gsuiteaddons/v1/gsuiteaddons_v1.yaml b/third_party/googleapis/google/cloud/gsuiteaddons/v1/gsuiteaddons_v1.yaml new file mode 100644 index 000000000..88f4b9960 --- /dev/null +++ b/third_party/googleapis/google/cloud/gsuiteaddons/v1/gsuiteaddons_v1.yaml @@ -0,0 +1,14 @@ +type: google.api.Service +config_version: 3 +name: gsuiteaddons.googleapis.com +title: Google Workspace Add-ons API + +apis: +- name: google.cloud.gsuiteaddons.v1.GSuiteAddOns + +authentication: + rules: + - selector: 'google.cloud.gsuiteaddons.v1.GSuiteAddOns.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform diff --git a/third_party/googleapis/google/cloud/iot/v1/BUILD.bazel b/third_party/googleapis/google/cloud/iot/v1/BUILD.bazel index 4d7ac1bb0..918351d7a 100644 --- a/third_party/googleapis/google/cloud/iot/v1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/iot/v1/BUILD.bazel @@ -62,11 +62,8 @@ java_grpc_library( java_gapic_library( name = "iot_java_gapic", - src = ":iot_proto_with_info", - gapic_yaml = "cloudiot_gapic.yaml", + srcs = [":iot_proto_with_info"], grpc_service_config = "cloudiot_grpc_service_config.json", - package = "google.cloud.iot.v1", - service_yaml = "cloudiot_v1.yaml", test_deps = [ ":iot_java_grpc", "//google/iam/v1:iam_java_grpc", @@ -151,12 +148,10 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -230,6 +225,7 @@ nodejs_gapic_library( name = "iot_nodejs_gapic", package_name = "@google-cloud/iot", src = ":iot_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "cloudiot_grpc_service_config.json", main_service = "iot", package = "google.cloud.iot.v1", @@ -251,7 +247,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -267,12 +263,19 @@ ruby_grpc_library( deps = [":iot_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "iot_ruby_gapic", - src = ":iot_proto_with_info", - gapic_yaml = "cloudiot_gapic.yaml", - package = "google.cloud.iot.v1", - service_yaml = "cloudiot_v1.yaml", + srcs = [":iot_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-iot-v1", + "ruby-cloud-env-prefix=IOT", + "ruby-cloud-product-url=https://cloud.google.com/iot", + "ruby-cloud-api-id=cloudiot.googleapis.com", + "ruby-cloud-api-shortname=cloudiot", + ], + grpc_service_config = "cloudiot_grpc_service_config.json", + ruby_cloud_description = "Registers and manages IoT (Internet of Things) devices that connect to the Google Cloud Platform.", + ruby_cloud_title = "Cloud IoT V1", deps = [ ":iot_ruby_grpc", ":iot_ruby_proto", @@ -314,8 +317,8 @@ csharp_grpc_library( csharp_gapic_library( name = "iot_csharp_gapic", srcs = [":iot_proto_with_info"], - grpc_service_config = "cloudiot_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "cloudiot_grpc_service_config.json", deps = [ ":iot_csharp_grpc", ":iot_csharp_proto", diff --git a/third_party/googleapis/google/cloud/iot/v1/cloudiot_gapic.legacy.yaml b/third_party/googleapis/google/cloud/iot/v1/cloudiot_gapic.legacy.yaml deleted file mode 100644 index 56a230dfe..000000000 --- a/third_party/googleapis/google/cloud/iot/v1/cloudiot_gapic.legacy.yaml +++ /dev/null @@ -1,513 +0,0 @@ -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.iot.v1 - python: - package_name: google.cloud.iot_v1.gapic - go: - package_name: cloud.google.com/go/iot/apiv1 - csharp: - package_name: Google.Cloud.Iot.V1 - ruby: - package_name: Google::Cloud::Iot::V1 - php: - package_name: Google\Cloud\Iot\V1 - nodejs: - package_name: iot.v1 - domain_layer_location: google-cloud -# A list of API interface configurations. -interfaces: -- name: google.cloud.iot.v1.DeviceManager - # 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: - - name_pattern: projects/{project}/locations/{location} - entity_name: location - - name_pattern: projects/{project}/locations/{location}/registries/{registry} - entity_name: registry - - name_pattern: projects/{project}/locations/{location}/registries/{registry}/devices/{device} - entity_name: device - # Definition for smoke test. - smoke_test: - method: ListDeviceRegistries - init_fields: - - parent%project=$PROJECT_ID - - parent%location="us-central1" - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - - name: rate_limited_aware - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - RESOURCE_EXHAUSTED - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 120000 - - name: rate_limited_aware - initial_retry_delay_millis: 1000 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 120000 - # 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: CreateDeviceRegistry - flattening: - groups: - - parameters: - - parent - - device_registry - required_fields: - - parent - - device_registry - header_request_params: - - parent - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: location - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: GetDeviceRegistry - flattening: - groups: - - parameters: - - name - required_fields: - - name - header_request_params: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: registry - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: UpdateDeviceRegistry - flattening: - groups: - - parameters: - - device_registry - - update_mask - required_fields: - - device_registry - - update_mask - header_request_params: - - device_registry.name - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - device_registry.name: registry - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: DeleteDeviceRegistry - flattening: - groups: - - parameters: - - name - required_fields: - - name - header_request_params: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: registry - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: ListDeviceRegistries - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - header_request_params: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: device_registries - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: location - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: CreateDevice - flattening: - groups: - - parameters: - - parent - - device - required_fields: - - parent - - device - header_request_params: - - parent - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: registry - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: GetDevice - flattening: - groups: - - parameters: - - name - required_fields: - - name - header_request_params: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: device - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: UpdateDevice - flattening: - groups: - - parameters: - - device - - update_mask - required_fields: - - device - - update_mask - header_request_params: - - device.name - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - device.name: device - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: DeleteDevice - flattening: - groups: - - parameters: - - name - required_fields: - - name - header_request_params: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: device - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: ListDevices - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - header_request_params: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: devices - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: registry - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: ModifyCloudToDeviceConfig - flattening: - groups: - - parameters: - - name - - binary_data - required_fields: - - name - - binary_data - header_request_params: - - name - retry_codes_name: rate_limited_aware - retry_params_name: rate_limited_aware - field_name_patterns: - name: device - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: ListDeviceConfigVersions - flattening: - groups: - - parameters: - - name - required_fields: - - name - header_request_params: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: device - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: ListDeviceStates - flattening: - groups: - - parameters: - - name - required_fields: - - name - header_request_params: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: device - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: SetIamPolicy - flattening: - groups: - - parameters: - - resource - - policy - required_fields: - - resource - - policy - header_request_params: - - resource - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - resource: registry - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: GetIamPolicy - flattening: - groups: - - parameters: - - resource - required_fields: - - resource - header_request_params: - - resource - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - resource: registry - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: TestIamPermissions - flattening: - groups: - - parameters: - - resource - - permissions - required_fields: - - resource - - permissions - header_request_params: - - resource - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - resource: registry - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: SendCommandToDevice - flattening: - groups: - - parameters: - - name - - binary_data - - subfolder - required_fields: - - name - - binary_data - header_request_params: - - name - retry_codes_name: rate_limited_aware - retry_params_name: rate_limited_aware - field_name_patterns: - name: device - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: BindDeviceToGateway - flattening: - groups: - - parameters: - - parent - - gateway_id - - device_id - required_fields: - - parent - - gateway_id - - device_id - header_request_params: - - parent - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: registry - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: UnbindDeviceFromGateway - flattening: - groups: - - parameters: - - parent - - gateway_id - - device_id - required_fields: - - parent - - gateway_id - - device_id - header_request_params: - - parent - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: registry - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 -resource_name_generation: -- message_name: google.iam.v1.SetIamPolicyRequest - field_entity_map: - resource: "*" -- message_name: google.iam.v1.GetIamPolicyRequest - field_entity_map: - resource: "*" -- message_name: google.iam.v1.TestIamPermissionsRequest - field_entity_map: - resource: "*" -- message_name: CreateDeviceRegistryRequest - field_entity_map: - parent: location -- message_name: GetDeviceRegistryRequest - field_entity_map: - name: registry -- message_name: DeleteDeviceRegistryRequest - field_entity_map: - name: registry -- message_name: ListDeviceRegistriesRequest - field_entity_map: - parent: location -- message_name: CreateDeviceRequest - field_entity_map: - parent: registry -- message_name: GetDeviceRequest - field_entity_map: - name: device -- message_name: DeleteDeviceRequest - field_entity_map: - name: device -- message_name: ListDevicesRequest - field_entity_map: - parent: registry -- message_name: ModifyCloudToDeviceConfigRequest - field_entity_map: - name: device -- message_name: ListDeviceConfigVersionsRequest - field_entity_map: - name: device -- message_name: ListDeviceStatesRequest - field_entity_map: - name: device -- message_name: SendCommandToDeviceRequest - field_entity_map: - name: device -- message_name: BindDeviceToGatewayRequest - field_entity_map: - parent: registry -- message_name: UnbindDeviceFromGatewayRequest - field_entity_map: - parent: registry -- message_name: Device - field_entity_map: - name: device -- message_name: DeviceRegistry - field_entity_map: - name: registry diff --git a/third_party/googleapis/google/cloud/iot/v1/cloudiot_gapic.yaml b/third_party/googleapis/google/cloud/iot/v1/cloudiot_gapic.yaml index 04f0dbe94..8495abc21 100644 --- a/third_party/googleapis/google/cloud/iot/v1/cloudiot_gapic.yaml +++ b/third_party/googleapis/google/cloud/iot/v1/cloudiot_gapic.yaml @@ -2,8 +2,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 # The settings of generated code in a specific language. language_settings: - java: - package_name: com.google.cloud.iot.v1 python: package_name: google.cloud.iot_v1.gapic go: diff --git a/third_party/googleapis/google/cloud/iot/v1/device_manager.proto b/third_party/googleapis/google/cloud/iot/v1/device_manager.proto index 44d11afe6..dfd6c9b6a 100644 --- a/third_party/googleapis/google/cloud/iot/v1/device_manager.proto +++ b/third_party/googleapis/google/cloud/iot/v1/device_manager.proto @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,7 +11,6 @@ // WITHOUT 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"; @@ -392,7 +391,8 @@ message GetDeviceRequest { ]; // The fields of the `Device` resource to be returned in the response. If the - // field mask is unset or empty, all fields are returned. + // field mask is unset or empty, all fields are returned. Fields have to be + // provided in snake_case format, for example: `last_heartbeat_time`. google.protobuf.FieldMask field_mask = 2; } @@ -445,7 +445,8 @@ message ListDevicesRequest { // The fields of the `Device` resource to be returned in the response. The // fields `id` and `num_id` are always returned, along with any - // other fields specified. + // other fields specified in snake_case format, for example: + // `last_heartbeat_time`. google.protobuf.FieldMask field_mask = 4; // Options related to gateways. diff --git a/third_party/googleapis/google/cloud/iot/v1/resources.proto b/third_party/googleapis/google/cloud/iot/v1/resources.proto index 2201d3302..a14fc027e 100644 --- a/third_party/googleapis/google/cloud/iot/v1/resources.proto +++ b/third_party/googleapis/google/cloud/iot/v1/resources.proto @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,7 +11,6 @@ // WITHOUT 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"; diff --git a/third_party/googleapis/google/cloud/kms/v1/BUILD.bazel b/third_party/googleapis/google/cloud/kms/v1/BUILD.bazel index 685a2be94..13791d765 100644 --- a/third_party/googleapis/google/cloud/kms/v1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/kms/v1/BUILD.bazel @@ -39,15 +39,16 @@ proto_library_with_info( ############################################################################## # Java +# DO NOT OVERRIDE with autogenerated rules if NOT migrated to Java Microgen ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "java_gapic_assembly_gradle_pkg", - "java_gapic_library", - "java_gapic_test", "java_grpc_library", "java_proto_library", - "java_resource_name_proto_library", + java_gapic_assembly_gradle_pkg = "java_gapic_assembly_gradle_pkg_legacy", + java_gapic_library = "java_gapic_library_legacy", + java_gapic_test = "java_gapic_test_legacy", + java_resource_name_proto_library = "java_resource_name_proto_library_legacy", ) java_proto_library( @@ -76,7 +77,6 @@ java_gapic_library( gapic_yaml = "cloudkms_gapic.yaml", gen_resource_name = False, grpc_service_config = "cloudkms_grpc_service_config.json", - package = "google.cloud.kms.v1", service_yaml = "cloudkms_v1.yaml", test_deps = [ ":kms_java_grpc", @@ -164,19 +164,17 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( name = "kms_py_gapic", srcs = [":kms_proto"], grpc_service_config = "cloudkms_grpc_service_config.json", - opt_args = ["add-iam-methods"] + opt_args = ["add-iam-methods"], ) py_gapic_assembly_pkg( @@ -185,6 +183,7 @@ py_gapic_assembly_pkg( ":kms_py_gapic", ], ) + ############################################################################## # PHP ############################################################################## @@ -243,6 +242,7 @@ nodejs_gapic_library( name = "kms_nodejs_gapic", package_name = "@google-cloud/kms", src = ":kms_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "cloudkms_grpc_service_config.json", iam_service = "true", package = "google.cloud.kms.v1", @@ -264,7 +264,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -280,12 +280,20 @@ ruby_grpc_library( deps = [":kms_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "kms_ruby_gapic", - src = ":kms_proto_with_info", - gapic_yaml = "cloudkms_gapic.yaml", - package = "google.cloud.kms.v1", - service_yaml = "cloudkms_v1.yaml", + srcs = [":kms_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-kms-v1", + "ruby-cloud-env-prefix=KMS", + "ruby-cloud-common-services=google.iam.v1.IAMPolicy=google.cloud.kms.v1.KeyManagementService", + "ruby-cloud-product-url=https://cloud.google.com/kms", + "ruby-cloud-api-id=cloudkms.googleapis.com", + "ruby-cloud-api-shortname=cloudkms", + ], + grpc_service_config = "cloudkms_grpc_service_config.json", + ruby_cloud_description = "Manages keys and performs cryptographic operations in a central cloud service, for direct use by other cloud resources and applications.", + ruby_cloud_title = "Cloud Key Management Service (KMS) V1", deps = [ ":kms_ruby_grpc", ":kms_ruby_proto", @@ -327,8 +335,8 @@ csharp_grpc_library( csharp_gapic_library( name = "kms_csharp_gapic", srcs = [":kms_proto_with_info"], - grpc_service_config = "cloudkms_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "cloudkms_grpc_service_config.json", deps = [ ":kms_csharp_grpc", ":kms_csharp_proto", diff --git a/third_party/googleapis/google/cloud/kms/v1/cloudkms_grpc_service_config.json b/third_party/googleapis/google/cloud/kms/v1/cloudkms_grpc_service_config.json index e65ebb1ee..61fac9b9a 100755 --- a/third_party/googleapis/google/cloud/kms/v1/cloudkms_grpc_service_config.json +++ b/third_party/googleapis/google/cloud/kms/v1/cloudkms_grpc_service_config.json @@ -118,7 +118,6 @@ "maxBackoff": "60s", "backoffMultiplier": 1.3, "retryableStatusCodes": [ - "INTERNAL", "UNAVAILABLE", "DEADLINE_EXCEEDED" ] diff --git a/third_party/googleapis/google/cloud/language/v1/BUILD.bazel b/third_party/googleapis/google/cloud/language/v1/BUILD.bazel index 4f8880b82..9038a0406 100644 --- a/third_party/googleapis/google/cloud/language/v1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/language/v1/BUILD.bazel @@ -63,11 +63,8 @@ java_grpc_library( java_gapic_library( name = "language_java_gapic", - src = ":language_proto_with_info", - gapic_yaml = "language_gapic.yaml", + srcs = [":language_proto_with_info"], grpc_service_config = "language_grpc_service_config.json", - package = "google.cloud.language.v1", - service_yaml = "//google/cloud/language:language_v1.yaml", test_deps = [ ":language_java_grpc", ], @@ -147,13 +144,11 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -228,6 +223,7 @@ nodejs_gapic_library( name = "language_nodejs_gapic", package_name = "@google-cloud/language", src = ":language_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "language_grpc_service_config.json", package = "google.cloud.language.v1", service_yaml = "//google/cloud/language:language_v1.yaml", @@ -248,7 +244,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -264,12 +260,19 @@ ruby_grpc_library( deps = [":language_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "language_ruby_gapic", - src = ":language_proto_with_info", - gapic_yaml = "language_gapic.yaml", - package = "google.cloud.language.v1", - service_yaml = "//google/cloud/language:language_v1.yaml", + srcs = [":language_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-language-v1", + "ruby-cloud-env-prefix=LANGUAGE", + "ruby-cloud-product-url=https://cloud.google.com/natural-language", + "ruby-cloud-api-id=language.googleapis.com", + "ruby-cloud-api-shortname=language", + ], + grpc_service_config = "language_grpc_service_config.json", + ruby_cloud_description = "Provides natural language understanding technologies, such as sentiment analysis, entity recognition, entity sentiment analysis, and other text annotations.", + ruby_cloud_title = "Natural Language V1", deps = [ ":language_ruby_grpc", ":language_ruby_proto", @@ -311,8 +314,8 @@ csharp_grpc_library( csharp_gapic_library( name = "language_csharp_gapic", srcs = [":language_proto_with_info"], - grpc_service_config = "language_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "language_grpc_service_config.json", deps = [ ":language_csharp_grpc", ":language_csharp_proto", diff --git a/third_party/googleapis/google/cloud/language/v1/language_gapic.legacy.yaml b/third_party/googleapis/google/cloud/language/v1/language_gapic.legacy.yaml deleted file mode 100644 index 2b05e8be2..000000000 --- a/third_party/googleapis/google/cloud/language/v1/language_gapic.legacy.yaml +++ /dev/null @@ -1,185 +0,0 @@ -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.language.v1 - python: - package_name: google.cloud.language_v1.gapic - go: - package_name: cloud.google.com/go/language/apiv1 - csharp: - package_name: Google.Cloud.Language.V1 - ruby: - package_name: Google::Cloud::Language::V1 - php: - package_name: Google\Cloud\Language\V1 - nodejs: - package_name: language.v1 - domain_layer_location: google-cloud -# A list of API interface configurations. -interfaces: - # The fully qualified name of the API interface. -- name: google.cloud.language.v1.LanguageService - # 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: - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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: AnalyzeSentiment - flattening: - groups: - - parameters: - - document - - encoding_type - - parameters: - - document - required_fields: - - document - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - - name: AnalyzeEntities - flattening: - groups: - - parameters: - - document - - encoding_type - - parameters: - - document - required_fields: - - document - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - - name: AnalyzeEntitySentiment - flattening: - groups: - - parameters: - - document - - encoding_type - - parameters: - - document - required_fields: - - document - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - - name: AnalyzeSyntax - flattening: - groups: - - parameters: - - document - - encoding_type - - parameters: - - document - required_fields: - - document - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - - name: ClassifyText - flattening: - groups: - - parameters: - - document - required_fields: - - document - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - - name: AnnotateText - flattening: - groups: - - parameters: - - document - - features - - encoding_type - - parameters: - - document - - features - required_fields: - - document - - features - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 diff --git a/third_party/googleapis/google/cloud/language/v1/language_gapic.yaml b/third_party/googleapis/google/cloud/language/v1/language_gapic.yaml index 633e6ec71..491842134 100644 --- a/third_party/googleapis/google/cloud/language/v1/language_gapic.yaml +++ b/third_party/googleapis/google/cloud/language/v1/language_gapic.yaml @@ -2,8 +2,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 # The settings of generated code in a specific language. language_settings: - java: - package_name: com.google.cloud.language.v1 python: package_name: google.cloud.language_v1.gapic go: diff --git a/third_party/googleapis/google/cloud/language/v1beta1/language_gapic.legacy.yaml b/third_party/googleapis/google/cloud/language/v1beta1/language_gapic.legacy.yaml deleted file mode 100644 index 63d633a1a..000000000 --- a/third_party/googleapis/google/cloud/language/v1beta1/language_gapic.legacy.yaml +++ /dev/null @@ -1,78 +0,0 @@ -type: com.google.api.codegen.ConfigProto -config_schema_version: 1.0.0 -language_settings: - java: - package_name: com.google.cloud.language.v1beta1 - python: - package_name: google.cloud.language_v1beta1.gapic - go: - package_name: cloud.google.com/go/language/apiv1beta1 - csharp: - package_name: Google.Cloud.Language.V1Beta1 - ruby: - package_name: Google::Cloud::Language::V1beta1 - php: - package_name: Google\Cloud\Language\V1Beta1 - nodejs: - package_name: language.v1beta1 - domain_layer_location: google-cloud -interfaces: -- name: google.cloud.language.v1beta1.LanguageService - smoke_test: - method: AnalyzeSentiment - init_fields: - - document.type=PLAIN_TEXT - collections: [] - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 60000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 60000 - total_timeout_millis: 600000 - methods: - - name: AnalyzeSentiment - flattening: - groups: - - parameters: - - document - required_fields: - - document - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 30000 - - name: AnalyzeEntities - flattening: - groups: - - parameters: - - document - - encoding_type - required_fields: - - document - - encoding_type - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 30000 - - name: AnnotateText - flattening: - groups: - - parameters: - - document - - features - - encoding_type - required_fields: - - document - - features - - encoding_type - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 30000 diff --git a/third_party/googleapis/google/cloud/language/v1beta2/BUILD.bazel b/third_party/googleapis/google/cloud/language/v1beta2/BUILD.bazel index 4791236f1..b99314e90 100644 --- a/third_party/googleapis/google/cloud/language/v1beta2/BUILD.bazel +++ b/third_party/googleapis/google/cloud/language/v1beta2/BUILD.bazel @@ -64,11 +64,8 @@ java_grpc_library( java_gapic_library( name = "language_java_gapic", - src = ":language_proto_with_info", - gapic_yaml = "language_gapic.yaml", + srcs = [":language_proto_with_info"], grpc_service_config = "language_grpc_service_config.json", - package = "google.cloud.language.v1beta2", - service_yaml = "language_v1beta2.yaml", test_deps = [ ":language_java_grpc", ], @@ -148,12 +145,10 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -228,6 +223,7 @@ nodejs_gapic_library( name = "language_nodejs_gapic", package_name = "@google-cloud/language", src = ":language_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "language_grpc_service_config.json", package = "google.cloud.language.v1beta2", service_yaml = "language_v1beta2.yaml", @@ -248,7 +244,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -264,12 +260,19 @@ ruby_grpc_library( deps = [":language_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "language_ruby_gapic", - src = ":language_proto_with_info", - gapic_yaml = "language_gapic.yaml", - package = "google.cloud.language.v1beta2", - service_yaml = "language_v1beta2.yaml", + srcs = [":language_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-language-v1beta2", + "ruby-cloud-env-prefix=LANGUAGE", + "ruby-cloud-product-url=https://cloud.google.com/natural-language", + "ruby-cloud-api-id=language.googleapis.com", + "ruby-cloud-api-shortname=language", + ], + grpc_service_config = "language_grpc_service_config.json", + ruby_cloud_description = "Provides natural language understanding technologies, such as sentiment analysis, entity recognition, entity sentiment analysis, and other text annotations.", + ruby_cloud_title = "Natural Language V1beta2", deps = [ ":language_ruby_grpc", ":language_ruby_proto", @@ -311,8 +314,8 @@ csharp_grpc_library( csharp_gapic_library( name = "language_csharp_gapic", srcs = [":language_proto_with_info"], - grpc_service_config = "language_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "language_grpc_service_config.json", deps = [ ":language_csharp_grpc", ":language_csharp_proto", diff --git a/third_party/googleapis/google/cloud/language/v1beta2/language_gapic.legacy.yaml b/third_party/googleapis/google/cloud/language/v1beta2/language_gapic.legacy.yaml deleted file mode 100644 index 7fcf68f14..000000000 --- a/third_party/googleapis/google/cloud/language/v1beta2/language_gapic.legacy.yaml +++ /dev/null @@ -1,109 +0,0 @@ -type: com.google.api.codegen.ConfigProto -config_schema_version: 1.0.0 -language_settings: - java: - package_name: com.google.cloud.language.v1beta2 - python: - package_name: google.cloud.language_v1beta2.gapic - go: - package_name: cloud.google.com/go/language/apiv1beta2 - csharp: - package_name: Google.Cloud.Language.V1Beta2 - ruby: - package_name: Google::Cloud::Language::V1beta2 - php: - package_name: Google\Cloud\Language\V1beta2 - nodejs: - package_name: language.v1beta2 - domain_layer_location: google-cloud -interfaces: -- name: google.cloud.language.v1beta2.LanguageService - smoke_test: - method: AnalyzeSentiment - init_fields: - - document.content="Hello, world!" - - document.type=PLAIN_TEXT - collections: [] - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 60000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 60000 - total_timeout_millis: 600000 - methods: - - name: AnalyzeSentiment - flattening: - groups: - - parameters: - - document - required_fields: - - document - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 30000 - - name: AnalyzeEntities - flattening: - groups: - - parameters: - - document - - encoding_type - required_fields: - - document - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 30000 - - name: AnalyzeEntitySentiment - flattening: - groups: - - parameters: - - document - - encoding_type - required_fields: - - document - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 30000 - - name: AnalyzeSyntax - flattening: - groups: - - parameters: - - document - - encoding_type - required_fields: - - document - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 30000 - - name: ClassifyText - flattening: - groups: - - parameters: - - document - required_fields: - - document - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 30000 - - name: AnnotateText - flattening: - groups: - - parameters: - - document - - features - - encoding_type - required_fields: - - document - - features - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 30000 diff --git a/third_party/googleapis/google/cloud/language/v1beta2/language_gapic.yaml b/third_party/googleapis/google/cloud/language/v1beta2/language_gapic.yaml index fef710aed..a34f35903 100644 --- a/third_party/googleapis/google/cloud/language/v1beta2/language_gapic.yaml +++ b/third_party/googleapis/google/cloud/language/v1beta2/language_gapic.yaml @@ -1,8 +1,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 language_settings: - java: - package_name: com.google.cloud.language.v1beta2 python: package_name: google.cloud.language_v1beta2.gapic go: diff --git a/third_party/googleapis/google/cloud/location/BUILD.bazel b/third_party/googleapis/google/cloud/location/BUILD.bazel new file mode 100644 index 000000000..b650d28a5 --- /dev/null +++ b/third_party/googleapis/google/cloud/location/BUILD.bazel @@ -0,0 +1,166 @@ +# This file was automatically generated by BuildFileGenerator + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") + +proto_library( + name = "location_proto", + srcs = [ + "locations.proto", + ], + deps = [ + "//google/api:annotations_proto", + "//google/api:client_proto", + "@com_google_protobuf//:any_proto", + ], +) + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_grpc_library", + "java_proto_library", +) + +java_proto_library( + name = "location_java_proto", + deps = [":location_proto"], +) + +java_grpc_library( + name = "location_java_grpc", + srcs = [":location_proto"], + deps = [":location_java_proto"], +) + +############################################################################## +# Go +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "go_proto_library", +) + +go_proto_library( + name = "location_go_proto", + compilers = ["@io_bazel_rules_go//proto:go_grpc"], + importpath = "google.golang.org/genproto/googleapis/cloud/location", + protos = [":location_proto"], + deps = [ + "//google/api:annotations_go_proto", + ], +) + +############################################################################## +# Python +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "moved_proto_library", + "py_grpc_library", + "py_proto_library", +) + +moved_proto_library( + name = "location_moved_proto", + srcs = [":location_proto"], + deps = [ + "//google/api:annotations_proto", + "//google/api:client_proto", + "@com_google_protobuf//:any_proto", + ], +) + +py_proto_library( + name = "location_py_proto", + plugin = "@protoc_docs_plugin//:docs_plugin", + deps = [":location_moved_proto"], +) + +py_grpc_library( + name = "location_py_grpc", + srcs = [":location_moved_proto"], + deps = [":location_py_proto"], +) + +############################################################################## +# PHP +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "php_grpc_library", + "php_proto_library", +) + +php_proto_library( + name = "location_php_proto", + deps = [":location_proto"], +) + +php_grpc_library( + name = "location_php_grpc", + srcs = [":location_proto"], + deps = [":location_php_proto"], +) + +############################################################################## +# Node.js +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", +) + + +############################################################################## +# Ruby +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "ruby_grpc_library", + "ruby_proto_library", +) + +ruby_proto_library( + name = "location_ruby_proto", + deps = [":location_proto"], +) + +ruby_grpc_library( + name = "location_ruby_grpc", + srcs = [":location_proto"], + deps = [":location_ruby_proto"], +) + +############################################################################## +# C# +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "csharp_grpc_library", + "csharp_proto_library", +) + +csharp_proto_library( + name = "location_csharp_proto", + deps = [":location_proto"], +) + +csharp_grpc_library( + name = "location_csharp_grpc", + srcs = [":location_proto"], + deps = [":location_csharp_proto"], +) + +############################################################################## +# C++ +############################################################################## +# Put your C++ code here diff --git a/third_party/googleapis/google/cloud/location/cloud.yaml b/third_party/googleapis/google/cloud/location/cloud.yaml new file mode 100644 index 000000000..456392a0e --- /dev/null +++ b/third_party/googleapis/google/cloud/location/cloud.yaml @@ -0,0 +1,24 @@ +type: google.api.Service +config_version: 3 +name: cloud.googleapis.com +title: Cloud Metadata API + +apis: +- name: google.cloud.location.Locations + +documentation: + summary: |- + This API provides static metadata about Google Cloud Platform. Currently, + it only provides basic information about Google Cloud locations, such as + zones, regions, and countries. + +authentication: + rules: + - selector: google.cloud.location.Locations.GetLocation + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform + - selector: google.cloud.location.Locations.ListLocations + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform diff --git a/third_party/googleapis/google/cloud/location/locations.proto b/third_party/googleapis/google/cloud/location/locations.proto index 03f327268..a91766c9d 100644 --- a/third_party/googleapis/google/cloud/location/locations.proto +++ b/third_party/googleapis/google/cloud/location/locations.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google Inc. +// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -18,6 +18,7 @@ package google.cloud.location; import "google/api/annotations.proto"; import "google/protobuf/any.proto"; +import "google/api/client.proto"; option cc_enable_arenas = true; option go_package = "google.golang.org/genproto/googleapis/cloud/location;location"; @@ -29,23 +30,31 @@ option java_package = "com.google.cloud.location"; // a service. Service-specific metadata is provided through the // [Location.metadata][google.cloud.location.Location.metadata] field. service Locations { + option (google.api.default_host) = "cloud.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + // Lists information about the supported locations for this service. rpc ListLocations(ListLocationsRequest) returns (ListLocationsResponse) { option (google.api.http) = { - get: "/v1/{name=projects/*}/locations" + get: "/v1/{name=locations}" + additional_bindings { + get: "/v1/{name=projects/*}/locations" + } }; } // Gets information about a location. rpc GetLocation(GetLocationRequest) returns (Location) { option (google.api.http) = { - get: "/v1/{name=projects/*/locations/*}" + get: "/v1/{name=locations/*}" + additional_bindings { + get: "/v1/{name=projects/*/locations/*}" + } }; } } -// The request message for -// [Locations.ListLocations][google.cloud.location.Locations.ListLocations]. +// The request message for [Locations.ListLocations][google.cloud.location.Locations.ListLocations]. message ListLocationsRequest { // The resource that owns the locations collection, if applicable. string name = 1; @@ -60,8 +69,7 @@ message ListLocationsRequest { string page_token = 4; } -// The response message for -// [Locations.ListLocations][google.cloud.location.Locations.ListLocations]. +// The response message for [Locations.ListLocations][google.cloud.location.Locations.ListLocations]. message ListLocationsResponse { // A list of locations that matches the specified filter in the request. repeated Location locations = 1; @@ -70,8 +78,7 @@ message ListLocationsResponse { string next_page_token = 2; } -// The request message for -// [Locations.GetLocation][google.cloud.location.Locations.GetLocation]. +// The request message for [Locations.GetLocation][google.cloud.location.Locations.GetLocation]. message GetLocationRequest { // Resource name for the location. string name = 1; diff --git a/third_party/googleapis/google/cloud/managedidentities/v1/BUILD.bazel b/third_party/googleapis/google/cloud/managedidentities/v1/BUILD.bazel index 693cd2aaf..1d76105fe 100644 --- a/third_party/googleapis/google/cloud/managedidentities/v1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/managedidentities/v1/BUILD.bazel @@ -1,4 +1,13 @@ # This file was automatically generated by BuildFileGenerator +# https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/bazel + +# Most of the manual changes to this file will be overwritten. +# It's **only** allowed to change the following rule attribute values: +# - names of *_gapic_assembly_* rules +# - certain parameters of *_gapic_library rules, including but not limited to: +# * extra_protoc_parameters +# * extra_protoc_file_parameters +# The complete list of preserved parameters can be found in the source code. # This is an API workspace, having public visibility by default makes perfect sense. package(default_visibility = ["//visibility:public"]) @@ -59,11 +68,8 @@ java_grpc_library( java_gapic_library( name = "managedidentities_java_gapic", - src = ":managedidentities_proto_with_info", - gapic_yaml = "managedidentities_gapic.yaml", + srcs = [":managedidentities_proto_with_info"], grpc_service_config = "managedidentities_grpc_service_config.json", - package = "google.cloud.managedidentities.v1", - service_yaml = "managedidentities_v1.yaml", test_deps = [ ":managedidentities_java_grpc", ], @@ -121,9 +127,9 @@ go_gapic_library( service_yaml = "managedidentities_v1.yaml", deps = [ ":managedidentities_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", ], ) @@ -149,50 +155,14 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "managedidentities_moved_proto", - srcs = [":managedidentities_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:resource_proto", - "//google/longrunning:operations_proto", - "@com_google_protobuf//:field_mask_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -py_proto_library( - name = "managedidentities_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":managedidentities_moved_proto"], -) - -py_grpc_library( - name = "managedidentities_py_grpc", - srcs = [":managedidentities_moved_proto"], - deps = [":managedidentities_py_proto"], ) py_gapic_library( name = "managedidentities_py_gapic", - src = ":managedidentities_proto_with_info", - gapic_yaml = "managedidentities_gapic.yaml", + srcs = [":managedidentities_proto"], grpc_service_config = "managedidentities_grpc_service_config.json", - package = "google.cloud.managedidentities.v1", - service_yaml = "managedidentities_v1.yaml", - deps = [ - ":managedidentities_py_grpc", - ":managedidentities_py_proto", - ], ) # Open Source Packages @@ -200,8 +170,6 @@ py_gapic_assembly_pkg( name = "managedidentities-v1-py", deps = [ ":managedidentities_py_gapic", - ":managedidentities_py_grpc", - ":managedidentities_py_proto", ], ) @@ -261,7 +229,9 @@ load( nodejs_gapic_library( name = "managedidentities_nodejs_gapic", + package_name = "@google-cloud/managed-identities", src = ":managedidentities_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "managedidentities_grpc_service_config.json", package = "google.cloud.managedidentities.v1", service_yaml = "managedidentities_v1.yaml", @@ -282,7 +252,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -298,12 +268,19 @@ ruby_grpc_library( deps = [":managedidentities_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "managedidentities_ruby_gapic", - src = ":managedidentities_proto_with_info", - gapic_yaml = "managedidentities_gapic.yaml", - package = "google.cloud.managedidentities.v1", - service_yaml = "managedidentities_v1.yaml", + srcs = [":managedidentities_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-managed_identities-v1", + "ruby-cloud-env-prefix=MANAGED_IDENTITIES", + "ruby-cloud-product-url=https://cloud.google.com/managed-microsoft-ad/", + "ruby-cloud-api-id=managedidentities.googleapis.com", + "ruby-cloud-api-shortname=managedidentities", + ], + grpc_service_config = "managedidentities_grpc_service_config.json", + ruby_cloud_description = "The Managed Service for Microsoft Active Directory API is used for managing a highly available, hardened service running Microsoft Active Directory.", + ruby_cloud_title = "Managed Service for Microsoft Active Directory API V1", deps = [ ":managedidentities_ruby_grpc", ":managedidentities_ruby_proto", @@ -345,8 +322,8 @@ csharp_grpc_library( csharp_gapic_library( name = "managedidentities_csharp_gapic", srcs = [":managedidentities_proto_with_info"], - grpc_service_config = "managedidentities_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "managedidentities_grpc_service_config.json", deps = [ ":managedidentities_csharp_grpc", ":managedidentities_csharp_proto", diff --git a/third_party/googleapis/google/cloud/managedidentities/v1/managed_identities_service.proto b/third_party/googleapis/google/cloud/managedidentities/v1/managed_identities_service.proto index 06ffa3f38..84c5bff55 100644 --- a/third_party/googleapis/google/cloud/managedidentities/v1/managed_identities_service.proto +++ b/third_party/googleapis/google/cloud/managedidentities/v1/managed_identities_service.proto @@ -33,6 +33,7 @@ option java_outer_classname = "ManagedIdentitiesServiceProto"; option java_package = "com.google.cloud.managedidentities.v1"; option objc_class_prefix = "GCMI"; option php_namespace = "Google\\Cloud\\ManagedIdentities\\V1"; +option ruby_package = "Google::Cloud::ManagedIdentities::V1"; // ## API Overview // diff --git a/third_party/googleapis/google/cloud/managedidentities/v1/managedidentities_gapic.yaml b/third_party/googleapis/google/cloud/managedidentities/v1/managedidentities_gapic.yaml index 307c02c58..077635316 100644 --- a/third_party/googleapis/google/cloud/managedidentities/v1/managedidentities_gapic.yaml +++ b/third_party/googleapis/google/cloud/managedidentities/v1/managedidentities_gapic.yaml @@ -2,8 +2,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 # The settings of generated code in a specific language. language_settings: - java: - package_name: com.google.cloud.managedidentities.v1 python: package_name: google.cloud.managedidentities_v1.gapic go: diff --git a/third_party/googleapis/google/cloud/managedidentities/v1/resource.proto b/third_party/googleapis/google/cloud/managedidentities/v1/resource.proto index 8fc5f9384..f1b5ae52c 100644 --- a/third_party/googleapis/google/cloud/managedidentities/v1/resource.proto +++ b/third_party/googleapis/google/cloud/managedidentities/v1/resource.proto @@ -27,6 +27,8 @@ option go_package = "google.golang.org/genproto/googleapis/cloud/managedidentiti option java_multiple_files = true; option java_outer_classname = "ResourceProto"; option java_package = "com.google.cloud.managedidentities.v1"; +option php_namespace = "Google\\Cloud\\ManagedIdentities\\V1"; +option ruby_package = "Google::Cloud::ManagedIdentities::V1"; // Represents a managed Microsoft Active Directory domain. message Domain { diff --git a/third_party/googleapis/google/cloud/managedidentities/v1beta1/BUILD.bazel b/third_party/googleapis/google/cloud/managedidentities/v1beta1/BUILD.bazel index a785f6998..ad69f8bb6 100644 --- a/third_party/googleapis/google/cloud/managedidentities/v1beta1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/managedidentities/v1beta1/BUILD.bazel @@ -1,4 +1,13 @@ # This file was automatically generated by BuildFileGenerator +# https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/bazel + +# Most of the manual changes to this file will be overwritten. +# It's **only** allowed to change the following rule attribute values: +# - names of *_gapic_assembly_* rules +# - certain parameters of *_gapic_library rules, including but not limited to: +# * extra_protoc_parameters +# * extra_protoc_file_parameters +# The complete list of preserved parameters can be found in the source code. # This is an API workspace, having public visibility by default makes perfect sense. package(default_visibility = ["//visibility:public"]) @@ -58,10 +67,8 @@ java_grpc_library( java_gapic_library( name = "managedidentities_java_gapic", - src = ":managedidentities_proto_with_info", - gapic_yaml = "managedidentities_gapic.yaml", - package = "google.cloud.managedidentities.v1beta1", - service_yaml = "managedidentities_v1beta1.yaml", + srcs = [":managedidentities_proto_with_info"], + grpc_service_config = "managedidentities_grpc_service_config.json", test_deps = [ ":managedidentities_java_grpc", ], @@ -119,9 +126,9 @@ go_gapic_library( service_yaml = "managedidentities_v1beta1.yaml", deps = [ ":managedidentities_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", ], ) @@ -147,48 +154,14 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "managedidentities_moved_proto", - srcs = [":managedidentities_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/longrunning:operations_proto", - "@com_google_protobuf//:field_mask_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -py_proto_library( - name = "managedidentities_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":managedidentities_moved_proto"], -) - -py_grpc_library( - name = "managedidentities_py_grpc", - srcs = [":managedidentities_moved_proto"], - deps = [":managedidentities_py_proto"], ) py_gapic_library( name = "managedidentities_py_gapic", - src = ":managedidentities_proto_with_info", - gapic_yaml = "managedidentities_gapic.yaml", - package = "google.cloud.managedidentities.v1beta1", - service_yaml = "managedidentities_v1beta1.yaml", - deps = [ - ":managedidentities_py_grpc", - ":managedidentities_py_proto", - ], + srcs = [":managedidentities_proto"], + grpc_service_config = "managedidentities_grpc_service_config.json", ) # Open Source Packages @@ -196,8 +169,6 @@ py_gapic_assembly_pkg( name = "managedidentities-v1beta1-py", deps = [ ":managedidentities_py_gapic", - ":managedidentities_py_grpc", - ":managedidentities_py_proto", ], ) @@ -256,7 +227,9 @@ load( nodejs_gapic_library( name = "managedidentities_nodejs_gapic", + package_name = "@google-cloud/managed-identities", src = ":managedidentities_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = None, package = "google.cloud.managedidentities.v1beta1", service_yaml = "managedidentities_v1beta1.yaml", diff --git a/third_party/googleapis/google/cloud/managedidentities/v1beta1/managed_identities_service.proto b/third_party/googleapis/google/cloud/managedidentities/v1beta1/managed_identities_service.proto index e67e55e47..e9c590644 100644 --- a/third_party/googleapis/google/cloud/managedidentities/v1beta1/managed_identities_service.proto +++ b/third_party/googleapis/google/cloud/managedidentities/v1beta1/managed_identities_service.proto @@ -32,6 +32,7 @@ option java_outer_classname = "ManagedIdentitiesServiceProto"; option java_package = "com.google.cloud.managedidentities.v1beta1"; option objc_class_prefix = "GCMI"; option php_namespace = "Google\\Cloud\\ManagedIdentities\\V1beta1"; +option ruby_package = "Google::Cloud::ManagedIdentities::V1beta1"; service ManagedIdentitiesService { option (google.api.default_host) = "managedidentities.googleapis.com"; diff --git a/third_party/googleapis/google/cloud/managedidentities/v1beta1/managedidentities_gapic.legacy.yaml b/third_party/googleapis/google/cloud/managedidentities/v1beta1/managedidentities_gapic.legacy.yaml deleted file mode 100644 index 7c234ad3c..000000000 --- a/third_party/googleapis/google/cloud/managedidentities/v1beta1/managedidentities_gapic.legacy.yaml +++ /dev/null @@ -1,295 +0,0 @@ -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.managedidentities.v1beta1 - python: - package_name: google.cloud.managedidentities_v1beta1.gapic - go: - package_name: cloud.google.com/go/managedidentities/apiv1beta1 - csharp: - package_name: Google.Cloud.Managedidentities.V1Beta1 - ruby: - package_name: Google::Cloud::Managedidentities::V1beta1 - php: - package_name: Google\Cloud\Managedidentities\V1beta1 - nodejs: - package_name: managedidentities.v1beta1 -# A list of API interface configurations. -interfaces: -# The fully qualified name of the API interface. -- name: google.cloud.managedidentities.v1beta1.ManagedIdentitiesService - # 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: - - name_pattern: projects/{project}/locations/global - entity_name: project_locations - - name_pattern: projects/{project}/locations/global/domains/{domain} - entity_name: domain - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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. - # - # 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: CreateMicrosoftAdDomain - flattening: - groups: - - parameters: - - parent - - domain_name - - domain - required_fields: - - parent - - domain_name - - domain - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: project_locations - long_running: - return_type: google.cloud.managedidentities.v1beta1.Domain - metadata_type: google.cloud.managedidentities.v1beta1.OpMetadata - initial_poll_delay_millis: 60000 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 360000 - total_poll_timeout_millis: 54000000 - timeout_millis: 60000 - - name: ResetAdminPassword - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: domain - timeout_millis: 60000 - - name: ListDomains - flattening: - groups: - - parameters: - - parent - - filter - - order_by - required_fields: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: domains - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: project_locations - timeout_millis: 60000 - - name: GetDomain - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: domain - timeout_millis: 60000 - - name: UpdateDomain - flattening: - groups: - - parameters: - - domain - - update_mask - required_fields: - - domain - - update_mask - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - domain.name: domain - long_running: - return_type: google.cloud.managedidentities.v1beta1.Domain - metadata_type: google.cloud.managedidentities.v1beta1.OpMetadata - initial_poll_delay_millis: 60000 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 360000 - total_poll_timeout_millis: 54000000 - timeout_millis: 60000 - - name: DeleteDomain - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: domain - long_running: - return_type: google.protobuf.Empty - metadata_type: google.cloud.managedidentities.v1beta1.OpMetadata - initial_poll_delay_millis: 10000 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 60000 - total_poll_timeout_millis: 900000 - timeout_millis: 60000 - - name: AttachTrust - flattening: - groups: - - parameters: - - name - - trust - required_fields: - - name - - trust - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: domain - long_running: - return_type: google.cloud.managedidentities.v1beta1.Domain - metadata_type: google.cloud.managedidentities.v1beta1.OpMetadata - initial_poll_delay_millis: 10000 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 60000 - total_poll_timeout_millis: 600000 - timeout_millis: 60000 - - name: ReconfigureTrust - flattening: - groups: - - parameters: - - name - - target_domain_name - - target_dns_ip_addresses - required_fields: - - name - - target_domain_name - - target_dns_ip_addresses - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: domain - long_running: - return_type: google.cloud.managedidentities.v1beta1.Domain - metadata_type: google.cloud.managedidentities.v1beta1.OpMetadata - initial_poll_delay_millis: 10000 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 60000 - total_poll_timeout_millis: 600000 - timeout_millis: 60000 - - name: DetachTrust - flattening: - groups: - - parameters: - - name - - trust - required_fields: - - name - - trust - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: domain - long_running: - return_type: google.cloud.managedidentities.v1beta1.Domain - metadata_type: google.cloud.managedidentities.v1beta1.OpMetadata - initial_poll_delay_millis: 10000 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 60000 - total_poll_timeout_millis: 600000 - timeout_millis: 60000 - - name: ValidateTrust - flattening: - groups: - - parameters: - - name - - trust - required_fields: - - name - - trust - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: domain - long_running: - return_type: google.cloud.managedidentities.v1beta1.Domain - metadata_type: google.cloud.managedidentities.v1beta1.OpMetadata - initial_poll_delay_millis: 10000 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 60000 - total_poll_timeout_millis: 600000 - timeout_millis: 60000 diff --git a/third_party/googleapis/google/cloud/managedidentities/v1beta1/managedidentities_gapic.yaml b/third_party/googleapis/google/cloud/managedidentities/v1beta1/managedidentities_gapic.yaml index 7134da6f1..c1007a27d 100644 --- a/third_party/googleapis/google/cloud/managedidentities/v1beta1/managedidentities_gapic.yaml +++ b/third_party/googleapis/google/cloud/managedidentities/v1beta1/managedidentities_gapic.yaml @@ -2,8 +2,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 # The settings of generated code in a specific language. language_settings: - java: - package_name: com.google.cloud.managedidentities.v1beta1 python: package_name: google.cloud.managedidentities_v1beta1.gapic go: diff --git a/third_party/googleapis/google/cloud/managedidentities/v1beta1/managedidentities_grpc_service_config.json b/third_party/googleapis/google/cloud/managedidentities/v1beta1/managedidentities_grpc_service_config.json new file mode 100644 index 000000000..29110c10e --- /dev/null +++ b/third_party/googleapis/google/cloud/managedidentities/v1beta1/managedidentities_grpc_service_config.json @@ -0,0 +1,12 @@ +{ + "methodConfig": [ + { + "name": [ + { + "service": "google.cloud.managedidentities.v1.ManagedIdentitiesService" + } + ], + "timeout": "60s" + } + ] +} diff --git a/third_party/googleapis/google/cloud/managedidentities/v1beta1/resource.proto b/third_party/googleapis/google/cloud/managedidentities/v1beta1/resource.proto index deee9eb82..d32ff2638 100644 --- a/third_party/googleapis/google/cloud/managedidentities/v1beta1/resource.proto +++ b/third_party/googleapis/google/cloud/managedidentities/v1beta1/resource.proto @@ -25,6 +25,8 @@ option go_package = "google.golang.org/genproto/googleapis/cloud/managedidentiti option java_multiple_files = true; option java_outer_classname = "ResourceProto"; option java_package = "com.google.cloud.managedidentities.v1beta1"; +option php_namespace = "Google\\Cloud\\ManagedIdentities\\V1beta1"; +option ruby_package = "Google::Cloud::ManagedIdentities::V1beta1"; // Represents a managed Microsoft Active Directory domain. message Domain { diff --git a/third_party/googleapis/google/cloud/mediatranslation/v1beta1/BUILD.bazel b/third_party/googleapis/google/cloud/mediatranslation/v1beta1/BUILD.bazel index 97d89f0ae..ca7df75b4 100644 --- a/third_party/googleapis/google/cloud/mediatranslation/v1beta1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/mediatranslation/v1beta1/BUILD.bazel @@ -63,11 +63,9 @@ java_grpc_library( java_gapic_library( name = "mediatranslation_java_gapic", - src = ":mediatranslation_proto_with_info", + srcs = [":mediatranslation_proto_with_info"], gapic_yaml = "mediatranslation_gapic.yaml", grpc_service_config = "mediatranslation_grpc_service_config.json", - package = "google.cloud.mediatranslation.v1beta1", - service_yaml = "mediatranslation_v1beta1.yaml", test_deps = [ ":mediatranslation_java_grpc", ], @@ -150,46 +148,14 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "mediatranslation_moved_proto", - srcs = [":mediatranslation_proto"], - deps = [ - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/rpc:status_proto", - ], -) - -py_proto_library( - name = "mediatranslation_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":mediatranslation_moved_proto"], -) - -py_grpc_library( - name = "mediatranslation_py_grpc", - srcs = [":mediatranslation_moved_proto"], - deps = [":mediatranslation_py_proto"], ) py_gapic_library( name = "mediatranslation_py_gapic", - src = ":mediatranslation_proto_with_info", - gapic_yaml = "mediatranslation_gapic.yaml", + srcs = [":mediatranslation_proto"], grpc_service_config = "mediatranslation_grpc_service_config.json", - package = "google.cloud.mediatranslation.v1beta1", - service_yaml = "mediatranslation_v1beta1.yaml", - deps = [ - ":mediatranslation_py_grpc", - ":mediatranslation_py_proto", - ], ) # Open Source Packages @@ -197,8 +163,6 @@ py_gapic_assembly_pkg( name = "mediatranslation-v1beta1-py", deps = [ ":mediatranslation_py_gapic", - ":mediatranslation_py_grpc", - ":mediatranslation_py_proto", ], ) @@ -260,6 +224,7 @@ nodejs_gapic_library( name = "mediatranslation_nodejs_gapic", package_name = "@google-cloud/media-translation", src = ":mediatranslation_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "mediatranslation_grpc_service_config.json", package = "google.cloud.mediatranslation.v1beta1", service_yaml = "mediatranslation_v1beta1.yaml", @@ -280,7 +245,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -296,13 +261,19 @@ ruby_grpc_library( deps = [":mediatranslation_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "mediatranslation_ruby_gapic", - src = ":mediatranslation_proto_with_info", - gapic_yaml = "mediatranslation_gapic.yaml", + srcs = [":mediatranslation_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-media_translation-v1beta1", + "ruby-cloud-env-prefix=MEDIA_TRANSLATION", + "ruby-cloud-product-url=https://cloud.google.com/media-translation/", + "ruby-cloud-api-id=mediatranslation.googleapis.com", + "ruby-cloud-api-shortname=mediatranslation", + ], grpc_service_config = "mediatranslation_grpc_service_config.json", - package = "google.cloud.mediatranslation.v1beta1", - service_yaml = "mediatranslation_v1beta1.yaml", + ruby_cloud_description = "Media Translation API delivers real-time speech translation to your content and applications directly from your audio data. Leveraging Google’s machine learning technologies, the API offers enhanced accuracy and simplified integration while equipping you with a comprehensive set of features to further refine your translation results. Improve user experience with low-latency streaming translation and scale quickly with straightforward internationalization.", + ruby_cloud_title = "Media Translation V1beta1", deps = [ ":mediatranslation_ruby_grpc", ":mediatranslation_ruby_proto", @@ -344,8 +315,8 @@ csharp_grpc_library( csharp_gapic_library( name = "mediatranslation_csharp_gapic", srcs = [":mediatranslation_proto_with_info"], - grpc_service_config = "mediatranslation_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "mediatranslation_grpc_service_config.json", deps = [ ":mediatranslation_csharp_grpc", ":mediatranslation_csharp_proto", diff --git a/third_party/googleapis/google/cloud/memcache/v1/BUILD.bazel b/third_party/googleapis/google/cloud/memcache/v1/BUILD.bazel new file mode 100644 index 000000000..7305d356d --- /dev/null +++ b/third_party/googleapis/google/cloud/memcache/v1/BUILD.bazel @@ -0,0 +1,344 @@ +# This file was automatically generated by BuildFileGenerator +# https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/bazel + +# Most of the manual changes to this file will be overwritten. +# It's **only** allowed to change the following rule attribute values: +# - names of *_gapic_assembly_* rules +# - certain parameters of *_gapic_library rules, including but not limited to: +# * extra_protoc_parameters +# * extra_protoc_file_parameters +# The complete list of preserved parameters can be found in the source code. + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") +load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info") + +proto_library( + name = "memcache_proto", + srcs = [ + "cloud_memcache.proto", + ], + deps = [ + "//google/api:annotations_proto", + "//google/api:client_proto", + "//google/api:field_behavior_proto", + "//google/api:resource_proto", + "//google/longrunning:operations_proto", + "@com_google_protobuf//:field_mask_proto", + "@com_google_protobuf//:timestamp_proto", + ], +) + +proto_library_with_info( + name = "memcache_proto_with_info", + deps = [ + ":memcache_proto", + "//google/cloud:common_resources_proto", + ], +) + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_gapic_assembly_gradle_pkg", + "java_gapic_library", + "java_gapic_test", + "java_grpc_library", + "java_proto_library", +) + +java_proto_library( + name = "memcache_java_proto", + deps = [":memcache_proto"], +) + +java_grpc_library( + name = "memcache_java_grpc", + srcs = [":memcache_proto"], + deps = [":memcache_java_proto"], +) + +java_gapic_library( + name = "memcache_java_gapic", + srcs = [":memcache_proto_with_info"], + grpc_service_config = "memcache_grpc_service_config.json", + test_deps = [ + ":memcache_java_grpc", + ], + deps = [ + ":memcache_java_proto", + ], +) + +java_gapic_test( + name = "memcache_java_gapic_test_suite", + test_classes = [ + ], + runtime_deps = [":memcache_java_gapic_test"], +) + +# Open Source Packages +java_gapic_assembly_gradle_pkg( + name = "google-cloud-memcache-v1-java", + deps = [ + ":memcache_java_gapic", + ":memcache_java_grpc", + ":memcache_java_proto", + ":memcache_proto", + ], +) + +############################################################################## +# Go +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "go_gapic_assembly_pkg", + "go_gapic_library", + "go_proto_library", + "go_test", +) + +go_proto_library( + name = "memcache_go_proto", + compilers = ["@io_bazel_rules_go//proto:go_grpc"], + importpath = "google.golang.org/genproto/googleapis/cloud/memcache/v1", + protos = [":memcache_proto"], + deps = [ + "//google/api:annotations_go_proto", + "//google/longrunning:longrunning_go_proto", + ], +) + +go_gapic_library( + name = "memcache_go_gapic", + srcs = [":memcache_proto_with_info"], + grpc_service_config = "memcache_grpc_service_config.json", + importpath = "cloud.google.com/go/memcache/apiv1;memcache", + service_yaml = "memcache_v1.yaml", + deps = [ + ":memcache_go_proto", + "//google/longrunning:longrunning_go_proto", + "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", + ], +) + +go_test( + name = "memcache_go_gapic_test", + srcs = [":memcache_go_gapic_srcjar_test"], + embed = [":memcache_go_gapic"], + importpath = "cloud.google.com/go/memcache/apiv1", +) + +# Open Source Packages +go_gapic_assembly_pkg( + name = "gapi-cloud-memcache-v1-go", + deps = [ + ":memcache_go_gapic", + ":memcache_go_gapic_srcjar-test.srcjar", + ":memcache_go_proto", + ], +) + +############################################################################## +# Python +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "py_gapic_assembly_pkg", + "py_gapic_library", +) + +py_gapic_library( + name = "memcache_py_gapic", + srcs = [":memcache_proto"], + grpc_service_config = "memcache_grpc_service_config.json", +) + +# Open Source Packages +py_gapic_assembly_pkg( + name = "memcache-v1-py", + deps = [ + ":memcache_py_gapic", + ], +) + +############################################################################## +# PHP +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "php_gapic_assembly_pkg", + "php_gapic_library", + "php_grpc_library", + "php_proto_library", +) + +php_proto_library( + name = "memcache_php_proto", + deps = [":memcache_proto"], +) + +php_grpc_library( + name = "memcache_php_grpc", + srcs = [":memcache_proto"], + deps = [":memcache_php_proto"], +) + +php_gapic_library( + name = "memcache_php_gapic", + src = ":memcache_proto_with_info", + gapic_yaml = "memcache_gapic.yaml", + grpc_service_config = "memcache_grpc_service_config.json", + package = "google.cloud.memcache.v1", + service_yaml = "memcache_v1.yaml", + deps = [ + ":memcache_php_grpc", + ":memcache_php_proto", + ], +) + +# Open Source Packages +php_gapic_assembly_pkg( + name = "google-cloud-memcache-v1-php", + deps = [ + ":memcache_php_gapic", + ":memcache_php_grpc", + ":memcache_php_proto", + ], +) + +############################################################################## +# Node.js +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", +) + +nodejs_gapic_library( + name = "memcache_nodejs_gapic", + package_name = "@google-cloud/memcache", + src = ":memcache_proto_with_info", + extra_protoc_parameters = ["metadata"], + grpc_service_config = "memcache_grpc_service_config.json", + package = "google.cloud.memcache.v1", + service_yaml = "memcache_v1.yaml", + deps = [], +) + +nodejs_gapic_assembly_pkg( + name = "memcache-v1-nodejs", + deps = [ + ":memcache_nodejs_gapic", + ":memcache_proto", + ], +) + +############################################################################## +# Ruby +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "ruby_gapic_assembly_pkg", + "ruby_cloud_gapic_library", + "ruby_grpc_library", + "ruby_proto_library", +) + +ruby_proto_library( + name = "memcache_ruby_proto", + deps = [":memcache_proto"], +) + +ruby_grpc_library( + name = "memcache_ruby_grpc", + srcs = [":memcache_proto"], + deps = [":memcache_ruby_proto"], +) + +ruby_cloud_gapic_library( + name = "memcache_ruby_gapic", + srcs = [":memcache_proto_with_info",], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-memcache-v1", + "ruby-cloud-env-prefix=MEMCACHE", + "ruby-cloud-product-url=https://cloud.google.com/memorystore/docs/memcached/", + "ruby-cloud-api-id=memcache.googleapis.com", + "ruby-cloud-api-shortname=memcache", + ], + grpc_service_config = "memcache_grpc_service_config.json", + ruby_cloud_description = "Google Cloud Memorystore for Memcached API is used for creating and managing Memcached instances in GCP.", + ruby_cloud_title = "Google Cloud Memorystore for Memcached V1", + deps = [ + ":memcache_ruby_grpc", + ":memcache_ruby_proto", + ], +) + +# Open Source Packages +ruby_gapic_assembly_pkg( + name = "google-cloud-memcache-v1-ruby", + deps = [ + ":memcache_ruby_gapic", + ":memcache_ruby_grpc", + ":memcache_ruby_proto", + ], +) + +############################################################################## +# C# +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "csharp_gapic_assembly_pkg", + "csharp_gapic_library", + "csharp_grpc_library", + "csharp_proto_library", +) + +csharp_proto_library( + name = "memcache_csharp_proto", + deps = [":memcache_proto"], +) + +csharp_grpc_library( + name = "memcache_csharp_grpc", + srcs = [":memcache_proto"], + deps = [":memcache_csharp_proto"], +) + +csharp_gapic_library( + name = "memcache_csharp_gapic", + srcs = [":memcache_proto_with_info"], + common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "memcache_grpc_service_config.json", + deps = [ + ":memcache_csharp_grpc", + ":memcache_csharp_proto", + ], +) + +# Open Source Packages +csharp_gapic_assembly_pkg( + name = "google-cloud-memcache-v1-csharp", + deps = [ + ":memcache_csharp_gapic", + ":memcache_csharp_grpc", + ":memcache_csharp_proto", + ], +) + +############################################################################## +# C++ +############################################################################## +# Put your C++ rules here diff --git a/third_party/googleapis/google/cloud/memcache/v1/cloud_memcache.proto b/third_party/googleapis/google/cloud/memcache/v1/cloud_memcache.proto new file mode 100644 index 000000000..308f05820 --- /dev/null +++ b/third_party/googleapis/google/cloud/memcache/v1/cloud_memcache.proto @@ -0,0 +1,495 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.memcache.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/memcache/v1;memcache"; +option java_multiple_files = true; +option java_outer_classname = "CloudMemcacheProto"; +option java_package = "com.google.cloud.memcache.v1"; + +// Configures and manages Cloud Memorystore for Memcached instances. +// +// +// The `memcache.googleapis.com` service implements the Google Cloud Memorystore +// for Memcached API and defines the following resource model for managing +// Memorystore Memcached (also called Memcached below) instances: +// * The service works with a collection of cloud projects, named: `/projects/*` +// * Each project has a collection of available locations, named: `/locations/*` +// * Each location has a collection of Memcached instances, named: +// `/instances/*` +// * As such, Memcached instances are resources of the form: +// `/projects/{project_id}/locations/{location_id}/instances/{instance_id}` +// +// Note that location_id must be a GCP `region`; for example: +// * `projects/my-memcached-project/locations/us-central1/instances/my-memcached` +service CloudMemcache { + option (google.api.default_host) = "memcache.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + + // Lists Instances in a given location. + rpc ListInstances(ListInstancesRequest) returns (ListInstancesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/instances" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single Instance. + rpc GetInstance(GetInstanceRequest) returns (Instance) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/instances/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new Instance in a given location. + rpc CreateInstance(CreateInstanceRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/instances" + body: "instance" + }; + option (google.api.method_signature) = "parent,instance,instance_id"; + option (google.longrunning.operation_info) = { + response_type: "google.cloud.memcache.v1.Instance" + metadata_type: "google.cloud.memcache.v1.OperationMetadata" + }; + } + + // Updates an existing Instance in a given project and location. + rpc UpdateInstance(UpdateInstanceRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{instance.name=projects/*/locations/*/instances/*}" + body: "instance" + }; + option (google.api.method_signature) = "instance,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "google.cloud.memcache.v1.Instance" + metadata_type: "google.cloud.memcache.v1.OperationMetadata" + }; + } + + // Updates the defined Memcached Parameters for an existing Instance. + // This method only stages the parameters, it must be followed by + // ApplyParameters to apply the parameters to nodes of the Memcached Instance. + rpc UpdateParameters(UpdateParametersRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{name=projects/*/locations/*/instances/*}:updateParameters" + body: "*" + }; + option (google.api.method_signature) = "name,update_mask,parameters"; + option (google.longrunning.operation_info) = { + response_type: "google.cloud.memcache.v1.Instance" + metadata_type: "google.cloud.memcache.v1.OperationMetadata" + }; + } + + // Deletes a single Instance. + rpc DeleteInstance(DeleteInstanceRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/instances/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.cloud.memcache.v1.OperationMetadata" + }; + } + + // ApplyParameters will restart the set of specified nodes in order to update + // them to the current set of parameters for the Memcached Instance. + rpc ApplyParameters(ApplyParametersRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/instances/*}:applyParameters" + body: "*" + }; + option (google.api.method_signature) = "name,node_ids,apply_all"; + option (google.longrunning.operation_info) = { + response_type: "google.cloud.memcache.v1.Instance" + metadata_type: "google.cloud.memcache.v1.OperationMetadata" + }; + } +} + +message Instance { + option (google.api.resource) = { + type: "memcache.googleapis.com/Instance" + pattern: "projects/{project}/locations/{location}/instances/{instance}" + }; + + // Configuration for a Memcached Node. + message NodeConfig { + // Required. Number of cpus per Memcached node. + int32 cpu_count = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Memory size in MiB for each Memcached node. + int32 memory_size_mb = 2 [(google.api.field_behavior) = REQUIRED]; + } + + message Node { + // Different states of a Memcached node. + enum State { + // Node state is not set. + STATE_UNSPECIFIED = 0; + + // Node is being created. + CREATING = 1; + + // Node has been created and ready to be used. + READY = 2; + + // Node is being deleted. + DELETING = 3; + + // Node is being updated. + UPDATING = 4; + } + + // Output only. Identifier of the Memcached node. The node id does not + // include project or location like the Memcached instance name. + string node_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Location (GCP Zone) for the Memcached node. + string zone = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Current state of the Memcached node. + State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Hostname or IP address of the Memcached node used by the + // clients to connect to the Memcached server on this node. + string host = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The port number of the Memcached server on this node. + int32 port = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // User defined parameters currently applied to the node. + MemcacheParameters parameters = 6; + } + + message InstanceMessage { + enum Code { + // Message Code not set. + CODE_UNSPECIFIED = 0; + + // Memcached nodes are distributed unevenly. + ZONE_DISTRIBUTION_UNBALANCED = 1; + } + + // A code that correspond to one type of user-facing message. + Code code = 1; + + // Message on memcached instance which will be exposed to users. + string message = 2; + } + + // Different states of a Memcached instance. + enum State { + // State not set. + STATE_UNSPECIFIED = 0; + + // Memcached instance is being created. + CREATING = 1; + + // Memcached instance has been created and ready to be used. + READY = 2; + + // Memcached instance is being deleted. + DELETING = 4; + + // Memcached instance is going through maintenance, e.g. data plane rollout. + PERFORMING_MAINTENANCE = 5; + } + + // Required. Unique name of the resource in this scope including project and + // location using the form: + // `projects/{project_id}/locations/{location_id}/instances/{instance_id}` + // + // Note: Memcached instances are managed and addressed at regional level so + // location_id here refers to a GCP region; however, users may choose which + // zones Memcached nodes within an instances should be provisioned in. + // Refer to [zones] field for more details. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // User provided name for the instance only used for display + // purposes. Cannot be more than 80 characters. + string display_name = 2; + + // Resource labels to represent user-provided metadata. + // Refer to cloud documentation on labels for more details. + // https://cloud.google.com/compute/docs/labeling-resources + map labels = 3; + + // The full name of the Google Compute Engine + // [network](/compute/docs/networks-and-firewalls#networks) to which the + // instance is connected. If left unspecified, the `default` network + // will be used. + string authorized_network = 4; + + // Zones where Memcached nodes should be provisioned in. + // Memcached nodes will be equally distributed across these zones. If not + // provided, the service will by default create nodes in all zones in the + // region for the instance. + repeated string zones = 5; + + // Required. Number of nodes in the Memcached instance. + int32 node_count = 6 [(google.api.field_behavior) = REQUIRED]; + + // Required. Configuration for Memcached nodes. + NodeConfig node_config = 7 [(google.api.field_behavior) = REQUIRED]; + + // The major version of Memcached software. + // If not provided, latest supported version will be used. Currently the + // latest supported major version is MEMCACHE_1_5. + // The minor version will be automatically determined by our system based on + // the latest supported minor version. + MemcacheVersion memcache_version = 9; + + // Optional: User defined parameters to apply to the memcached process + // on each node. + MemcacheParameters parameters = 11; + + // Output only. List of Memcached nodes. + // Refer to [Node] message for more details. + repeated Node memcache_nodes = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time the instance was created. + google.protobuf.Timestamp create_time = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time the instance was updated. + google.protobuf.Timestamp update_time = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The state of this Memcached instance. + State state = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The full version of memcached server running on this instance. + // System automatically determines the full memcached version for an instance + // based on the input MemcacheVersion. + // The full version format will be "memcached-1.5.16". + string memcache_full_version = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // List of messages that describe current statuses of memcached instance. + repeated InstanceMessage instance_messages = 19; + + // Output only. Endpoint for Discovery API + string discovery_endpoint = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request for [ListInstances][google.cloud.memcache.v1.CloudMemcache.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 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // The maximum number of items to return. + // + // If not specified, a default value of 1000 will be used by the service. + // Regardless of the page_size value, the response may include a partial list + // and a caller should only rely on response's + // [next_page_token][CloudMemcache.ListInstancesResponse.next_page_token] + // to determine if there are more instances left to be queried. + int32 page_size = 2; + + // The next_page_token value returned from a previous List request, + // if any. + string page_token = 3; + + // List filter. For example, exclude all Memcached instances with name as + // my-instance by specifying "name != my-instance". + string filter = 4; + + // Sort results. Supported values are "name", "name desc" or "" (unsorted). + string order_by = 5; +} + +// Response for [ListInstances][google.cloud.memcache.v1.CloudMemcache.ListInstances]. +message ListInstancesResponse { + // A list of Memcached instances in the project in the specified location, + // or across all locations. + // + // If the `location_id` in the parent field of the request is "-", all regions + // available to the project are queried, and the results aggregated. + repeated Instance instances = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Request for [GetInstance][google.cloud.memcache.v1.CloudMemcache.GetInstance]. +message GetInstanceRequest { + // Required. Memcached instance resource name in the format: + // `projects/{project_id}/locations/{location_id}/instances/{instance_id}` + // where `location_id` refers to a GCP region + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "memcache.googleapis.com/Instance" + } + ]; +} + +// Request for [CreateInstance][google.cloud.memcache.v1.CloudMemcache.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 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The logical name of the Memcached instance in the user + // project with the following restrictions: + // + // * Must contain only lowercase letters, numbers, and hyphens. + // * Must start with a letter. + // * Must be between 1-40 characters. + // * Must end with a number or a letter. + // * Must be unique within the user project / location + // + // If any of the above are not met, will raise an invalid argument error. + string instance_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. A Memcached Instance + Instance instance = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request for [UpdateInstance][google.cloud.memcache.v1.CloudMemcache.UpdateInstance]. +message UpdateInstanceRequest { + // Required. Mask of fields to update. + // * `displayName` + google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. A Memcached Instance. + // Only fields specified in update_mask are updated. + Instance instance = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request for [DeleteInstance][google.cloud.memcache.v1.CloudMemcache.DeleteInstance]. +message DeleteInstanceRequest { + // Required. Memcached instance resource name in the format: + // `projects/{project_id}/locations/{location_id}/instances/{instance_id}` + // where `location_id` refers to a GCP region + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "memcache.googleapis.com/Instance" + } + ]; +} + +// Request for [ApplyParameters][google.cloud.memcache.v1.CloudMemcache.ApplyParameters]. +message ApplyParametersRequest { + // Required. Resource name of the Memcached instance for which parameter group updates + // should be applied. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "memcache.googleapis.com/Instance" + } + ]; + + // Nodes to which we should apply the instance-level parameter group. + repeated string node_ids = 2; + + // Whether to apply instance-level parameter group to all nodes. If set to + // true, will explicitly restrict users from specifying any nodes, and apply + // parameter group updates to all nodes within the instance. + bool apply_all = 3; +} + +// Request for [UpdateParameters][google.cloud.memcache.v1.CloudMemcache.UpdateParameters]. +message UpdateParametersRequest { + // Required. Resource name of the Memcached instance for which the parameters should be + // updated. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "memcache.googleapis.com/Instance" + } + ]; + + // Required. Mask of fields to update. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + + // The parameters to apply to the instance. + MemcacheParameters parameters = 3; +} + +message MemcacheParameters { + // Output only. The unique ID associated with this set of parameters. Users + // can use this id to determine if the parameters associated with the instance + // differ from the parameters associated with the nodes and any action needs + // to be taken to apply parameters on nodes. + string id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // User defined set of parameters to use in the memcached process. + map params = 3; +} + +// Represents the metadata of a long-running operation. +message OperationMetadata { + // Output only. Time when the operation was created. + google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the operation finished running. + google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Server-defined resource path for the target of the operation. + string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Name of the verb executed by the operation. + string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Human-readable status of the operation, if any. + string status_detail = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Identifies whether the user has requested cancellation + // of the operation. Operations that have successfully been cancelled + // have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, + // corresponding to `Code.CANCELLED`. + bool cancel_requested = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. API version used to start the operation. + string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Memcached versions supported by our service. +enum MemcacheVersion { + MEMCACHE_VERSION_UNSPECIFIED = 0; + + // Memcached 1.5 version. + MEMCACHE_1_5 = 1; +} diff --git a/third_party/googleapis/google/cloud/memcache/v1/memcache_gapic.yaml b/third_party/googleapis/google/cloud/memcache/v1/memcache_gapic.yaml new file mode 100644 index 000000000..9f941b9ee --- /dev/null +++ b/third_party/googleapis/google/cloud/memcache/v1/memcache_gapic.yaml @@ -0,0 +1,17 @@ +type: com.google.api.codegen.ConfigProto +config_schema_version: 2.0.0 +# The settings of generated code in a specific language. +language_settings: + python: + package_name: google.cloud.memcache_v1.gapic + go: + package_name: cloud.google.com/go/memcache/apiv1 + csharp: + package_name: Google.Cloud.Memcache.V1 + ruby: + package_name: Google::Cloud::Memcache::V1 + php: + package_name: Google\Cloud\Memcache\V1 + nodejs: + package_name: memcache.v1 + domain_layer_location: google-cloud diff --git a/third_party/googleapis/google/cloud/memcache/v1/memcache_grpc_service_config.json b/third_party/googleapis/google/cloud/memcache/v1/memcache_grpc_service_config.json new file mode 100644 index 000000000..9031986b7 --- /dev/null +++ b/third_party/googleapis/google/cloud/memcache/v1/memcache_grpc_service_config.json @@ -0,0 +1,37 @@ +{ + "methodConfig": [ + { + "name": [ + { + "service": "google.cloud.memcache.v1.CloudMemcache", + "method": "ListInstances" + }, + { + "service": "google.cloud.memcache.v1.CloudMemcache", + "method": "GetInstance" + }, + { + "service": "google.cloud.memcache.v1.CloudMemcache", + "method": "CreateInstance" + }, + { + "service": "google.cloud.memcache.v1.CloudMemcache", + "method": "UpdateInstance" + }, + { + "service": "google.cloud.memcache.v1.CloudMemcache", + "method": "UpdateParameters" + }, + { + "service": "google.cloud.memcache.v1.CloudMemcache", + "method": "ApplyParameters" + }, + { + "service": "google.cloud.memcache.v1.CloudMemcache", + "method": "DeleteInstance" + } + ], + "timeout": "1200s" + } + ] +} diff --git a/third_party/googleapis/google/cloud/memcache/v1/memcache_v1.yaml b/third_party/googleapis/google/cloud/memcache/v1/memcache_v1.yaml new file mode 100644 index 000000000..f3a97bb3d --- /dev/null +++ b/third_party/googleapis/google/cloud/memcache/v1/memcache_v1.yaml @@ -0,0 +1,66 @@ +type: google.api.Service +config_version: 3 +name: memcache.googleapis.com +title: Cloud Memorystore for Memcached API + +apis: +- name: google.cloud.memcache.v1.CloudMemcache + +types: +- name: google.cloud.memcache.v1.OperationMetadata + +documentation: + summary: |- + Google Cloud Memorystore for Memcached API is used for creating and + managing Memcached instances in GCP. + rules: + - selector: google.iam.v1.IAMPolicy.GetIamPolicy + description: |- + Gets the access control policy for a resource. Returns an empty policy + if the resource exists and does not have a policy set. + + - selector: google.iam.v1.IAMPolicy.SetIamPolicy + description: |- + Sets the access control policy on the specified resource. Replaces + any existing policy. + + Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` + errors. + + - selector: google.iam.v1.IAMPolicy.TestIamPermissions + description: |- + Returns permissions that a caller has on the specified resource. If the + resource does not exist, this will return an empty set of + permissions, not a `NOT_FOUND` error. + + Note: This operation is designed to be used for building + permission-aware UIs and command-line tools, not for authorization + checking. This operation may "fail open" without warning. + +backend: + rules: + - selector: google.cloud.memcache.v1.CloudMemcache.GetInstance + deadline: 60.0 + - selector: google.cloud.memcache.v1.CloudMemcache.ListInstances + deadline: 60.0 + - selector: 'google.iam.v1.IAMPolicy.*' + deadline: 60.0 + - selector: 'google.longrunning.Operations.*' + deadline: 60.0 + - selector: google.longrunning.Operations.GetOperation + deadline: 5.0 + +authentication: + rules: + - selector: 'google.cloud.memcache.v1.CloudMemcache.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform + - selector: 'google.iam.v1.IAMPolicy.*' + 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/third_party/googleapis/google/cloud/memcache/v1beta2/BUILD.bazel b/third_party/googleapis/google/cloud/memcache/v1beta2/BUILD.bazel index 46d7c0a1a..723b91072 100644 --- a/third_party/googleapis/google/cloud/memcache/v1beta2/BUILD.bazel +++ b/third_party/googleapis/google/cloud/memcache/v1beta2/BUILD.bazel @@ -1,4 +1,13 @@ # This file was automatically generated by BuildFileGenerator +# https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/bazel + +# Most of the manual changes to this file will be overwritten. +# It's **only** allowed to change the following rule attribute values: +# - names of *_gapic_assembly_* rules +# - certain parameters of *_gapic_library rules, including but not limited to: +# * extra_protoc_parameters +# * extra_protoc_file_parameters +# The complete list of preserved parameters can be found in the source code. # This is an API workspace, having public visibility by default makes perfect sense. package(default_visibility = ["//visibility:public"]) @@ -58,11 +67,8 @@ java_grpc_library( java_gapic_library( name = "memcache_java_gapic", - src = ":memcache_proto_with_info", - gapic_yaml = "memcache_gapic.yaml", + srcs = [":memcache_proto_with_info"], grpc_service_config = "memcache_grpc_service_config.json", - package = "google.cloud.memcache.v1beta2", - service_yaml = "memcache_v1beta2.yaml", test_deps = [ ":memcache_java_grpc", ], @@ -74,7 +80,6 @@ java_gapic_library( java_gapic_test( name = "memcache_java_gapic_test_suite", test_classes = [ - "com.google.cloud.memcache.v1beta2.CloudMemcacheClientTest", ], runtime_deps = [":memcache_java_gapic_test"], ) @@ -120,9 +125,9 @@ go_gapic_library( service_yaml = "memcache_v1beta2.yaml", deps = [ ":memcache_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", ], ) @@ -148,50 +153,14 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "memcache_moved_proto", - srcs = [":memcache_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:resource_proto", - "//google/longrunning:operations_proto", - "@com_google_protobuf//:field_mask_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -py_proto_library( - name = "memcache_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":memcache_moved_proto"], -) - -py_grpc_library( - name = "memcache_py_grpc", - srcs = [":memcache_moved_proto"], - deps = [":memcache_py_proto"], ) py_gapic_library( name = "memcache_py_gapic", - src = ":memcache_proto_with_info", - gapic_yaml = "memcache_gapic.yaml", + srcs = [":memcache_proto"], grpc_service_config = "memcache_grpc_service_config.json", - package = "google.cloud.memcache.v1beta2", - service_yaml = "memcache_v1beta2.yaml", - deps = [ - ":memcache_py_grpc", - ":memcache_py_proto", - ], ) # Open Source Packages @@ -199,8 +168,6 @@ py_gapic_assembly_pkg( name = "memcache-v1beta2-py", deps = [ ":memcache_py_gapic", - ":memcache_py_grpc", - ":memcache_py_proto", ], ) @@ -262,6 +229,7 @@ nodejs_gapic_library( name = "memcache_nodejs_gapic", package_name = "@google-cloud/memcache", src = ":memcache_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "memcache_grpc_service_config.json", package = "google.cloud.memcache.v1beta2", service_yaml = "memcache_v1beta2.yaml", @@ -282,7 +250,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -298,12 +266,19 @@ ruby_grpc_library( deps = [":memcache_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "memcache_ruby_gapic", - src = ":memcache_proto_with_info", - gapic_yaml = "memcache_gapic.yaml", - package = "google.cloud.memcache.v1beta2", - service_yaml = "memcache_v1beta2.yaml", + srcs = [":memcache_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-memcache-v1beta2", + "ruby-cloud-env-prefix=MEMCACHE", + "ruby-cloud-product-url=https://cloud.google.com/memorystore/docs/memcached/", + "ruby-cloud-api-id=memcache.googleapis.com", + "ruby-cloud-api-shortname=memcache", + ], + grpc_service_config = "memcache_grpc_service_config.json", + ruby_cloud_description = "Google Cloud Memorystore for Memcached API is used for creating and managing Memcached instances in GCP.", + ruby_cloud_title = "Google Cloud Memorystore for Memcached", deps = [ ":memcache_ruby_grpc", ":memcache_ruby_proto", @@ -345,8 +320,8 @@ csharp_grpc_library( csharp_gapic_library( name = "memcache_csharp_gapic", srcs = [":memcache_proto_with_info"], - grpc_service_config = "memcache_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "memcache_grpc_service_config.json", deps = [ ":memcache_csharp_grpc", ":memcache_csharp_proto", diff --git a/third_party/googleapis/google/cloud/memcache/v1beta2/cloud_memcache.proto b/third_party/googleapis/google/cloud/memcache/v1beta2/cloud_memcache.proto index 56bd2ef78..1a3ff64a7 100644 --- a/third_party/googleapis/google/cloud/memcache/v1beta2/cloud_memcache.proto +++ b/third_party/googleapis/google/cloud/memcache/v1beta2/cloud_memcache.proto @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,7 +11,6 @@ // WITHOUT 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"; @@ -43,13 +42,13 @@ option java_package = "com.google.cloud.memcache.v1beta2"; // * As such, Memcached instances are resources of the form: // `/projects/{project_id}/locations/{location_id}/instances/{instance_id}` // -// Note that location_id must be refering to a GCP `region`; for example: +// Note that location_id must be a GCP `region`; for example: // * `projects/my-memcached-project/locations/us-central1/instances/my-memcached` service CloudMemcache { option (google.api.default_host) = "memcache.googleapis.com"; option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - // Lists Instances in a given project and location. + // Lists Instances in a given location. rpc ListInstances(ListInstancesRequest) returns (ListInstancesResponse) { option (google.api.http) = { get: "/v1beta2/{parent=projects/*/locations/*}/instances" @@ -65,7 +64,7 @@ service CloudMemcache { option (google.api.method_signature) = "name"; } - // Creates a new Instance in a given project and location. + // Creates a new Instance in a given location. rpc CreateInstance(CreateInstanceRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1beta2/{parent=projects/*/locations/*}/instances" @@ -91,9 +90,10 @@ service CloudMemcache { }; } - // Updates the defined Memcached Parameters for an existing Instance. + // Updates the defined Memcached parameters for an existing instance. // This method only stages the parameters, it must be followed by - // ApplyParameters to apply the parameters to nodes of the Memcached Instance. + // `ApplyParameters` to apply the parameters to nodes of the Memcached + // instance. rpc UpdateParameters(UpdateParametersRequest) returns (google.longrunning.Operation) { option (google.api.http) = { patch: "/v1beta2/{name=projects/*/locations/*/instances/*}:updateParameters" @@ -118,8 +118,8 @@ service CloudMemcache { }; } - // ApplyParameters will update current set of Parameters to the set of - // specified nodes of the Memcached Instance. + // `ApplyParameters` restarts the set of specified nodes in order to update + // them to the current set of parameters for the Memcached Instance. rpc ApplyParameters(ApplyParametersRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1beta2/{name=projects/*/locations/*/instances/*}:applyParameters" @@ -131,8 +131,22 @@ service CloudMemcache { metadata_type: "google.cloud.memcache.v1beta2.OperationMetadata" }; } + + // Updates software on the selected nodes of the Instance. + rpc ApplySoftwareUpdate(ApplySoftwareUpdateRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta2/{instance=projects/*/locations/*/instances/*}:applySoftwareUpdate" + body: "*" + }; + option (google.api.method_signature) = "instance,node_ids,apply_all"; + option (google.longrunning.operation_info) = { + response_type: "google.cloud.memcache.v1beta2.Instance" + metadata_type: "google.cloud.memcache.v1beta2.OperationMetadata" + }; + } } +// A Memorystore for Memcached instance message Instance { option (google.api.resource) = { type: "memcache.googleapis.com/Instance" @@ -150,7 +164,6 @@ message Instance { message Node { // Different states of a Memcached node. - // LINT.IfChange enum State { // Node state is not set. STATE_UNSPECIFIED = 0; @@ -187,6 +200,9 @@ message Instance { // User defined parameters currently applied to the node. MemcacheParameters parameters = 6; + + // Output only. Returns true if there is an update waiting to be applied + bool update_available = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; } message InstanceMessage { @@ -206,7 +222,6 @@ message Instance { } // Different states of a Memcached instance. - // LINT.IfChange enum State { // State not set. STATE_UNSPECIFIED = 0; @@ -228,28 +243,28 @@ message Instance { // location using the form: // `projects/{project_id}/locations/{location_id}/instances/{instance_id}` // - // Note: Memcached instances are managed and addressed at regional level so - // location_id here refers to a GCP region; however, users may choose which - // zones Memcached nodes within an instances should be provisioned in. - // Refer to [zones] field for more details. + // Note: Memcached instances are managed and addressed at the regional level + // so `location_id` here refers to a Google Cloud region; however, users may + // choose which zones Memcached nodes should be provisioned in within an + // instance. Refer to [zones][google.cloud.memcache.v1beta2.Instance.zones] field for more details. string name = 1 [(google.api.field_behavior) = REQUIRED]; - // Optional. User provided name for the instance only used for display + // User provided name for the instance, which is only used for display // purposes. Cannot be more than 80 characters. string display_name = 2; - // Optional. Resource labels to represent user-provided metadata. + // Resource labels to represent user-provided metadata. // Refer to cloud documentation on labels for more details. // https://cloud.google.com/compute/docs/labeling-resources map labels = 3; - // Optional. The full name of the Google Compute Engine + // The full name of the Google Compute Engine // [network](https://cloud.google.com/vpc/docs/vpc) to which the // instance is connected. If left unspecified, the `default` network // will be used. string authorized_network = 4; - // Optional. Zones where Memcached nodes should be provisioned in. + // Zones in which Memcached nodes should be provisioned. // Memcached nodes will be equally distributed across these zones. If not // provided, the service will by default create nodes in all zones in the // region for the instance. @@ -261,9 +276,9 @@ message Instance { // Required. Configuration for Memcached nodes. NodeConfig node_config = 7 [(google.api.field_behavior) = REQUIRED]; - // Optional. The major version of Memcached software. + // The major version of Memcached software. // If not provided, latest supported version will be used. Currently the - // latest supported major version is MEMCACHE_1_5. + // latest supported major version is `MEMCACHE_1_5`. // The minor version will be automatically determined by our system based on // the latest supported minor version. MemcacheVersion memcache_version = 9; @@ -273,7 +288,7 @@ message Instance { MemcacheParameters parameters = 11; // Output only. List of Memcached nodes. - // Refer to [Node] message for more details. + // Refer to [Node][google.cloud.memcache.v1beta2.Instance.Node] message for more details. repeated Node memcache_nodes = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time the instance was created. @@ -291,11 +306,14 @@ message Instance { // The full version format will be "memcached-1.5.16". string memcache_full_version = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; - // List of messages that describe current statuses of memcached instance. + // List of messages that describe the current state of the Memcached instance. repeated InstanceMessage instance_messages = 19; - // Output only. Endpoint for Discovery API + // Output only. Endpoint for the Discovery API. string discovery_endpoint = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Returns true if there is an update waiting to be applied + bool update_available = 21 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Request for [ListInstances][google.cloud.memcache.v1beta2.CloudMemcache.ListInstances]. @@ -313,18 +331,17 @@ message ListInstancesRequest { // The maximum number of items to return. // // If not specified, a default value of 1000 will be used by the service. - // Regardless of the page_size value, the response may include a partial list - // and a caller should only rely on response's - // [next_page_token][CloudMemcache.ListInstancesResponse.next_page_token] + // Regardless of the `page_size` value, the response may include a partial + // list and a caller should only rely on response's + // [`next_page_token`][google.cloud.memcache.v1beta2.ListInstancesResponse.next_page_token] // to determine if there are more instances left to be queried. int32 page_size = 2; - // The next_page_token value returned from a previous List request, - // if any. + // The `next_page_token` value returned from a previous List request, if any. string page_token = 3; // List filter. For example, exclude all Memcached instances with name as - // my-instance by specifying "name != my-instance". + // my-instance by specifying `"name != my-instance"`. string filter = 4; // Sort results. Supported values are "name", "name desc" or "" (unsorted). @@ -380,7 +397,9 @@ message CreateInstanceRequest { // * Must start with a letter. // * Must be between 1-40 characters. // * Must end with a number or a letter. - // * Must be unique within the user project / location + // * Must be unique within the user project / location. + // + // If any of the above are not met, the API raises an invalid argument error. string instance_id = 2 [(google.api.field_behavior) = REQUIRED]; // Required. A Memcached [Instance] resource @@ -390,7 +409,7 @@ message CreateInstanceRequest { // Request for [UpdateInstance][google.cloud.memcache.v1beta2.CloudMemcache.UpdateInstance]. message UpdateInstanceRequest { // Required. Mask of fields to update. - // * `displayName` + // * `displayName` google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED]; // Required. A Memcached [Instance] resource. @@ -400,10 +419,15 @@ message UpdateInstanceRequest { // Request for [DeleteInstance][google.cloud.memcache.v1beta2.CloudMemcache.DeleteInstance]. message DeleteInstanceRequest { - // Memcached instance resource name in the format: + // Required. Memcached instance resource name in the format: // `projects/{project_id}/locations/{location_id}/instances/{instance_id}` // where `location_id` refers to a GCP region - string name = 1; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "memcache.googleapis.com/Instance" + } + ]; } // Request for [ApplyParameters][google.cloud.memcache.v1beta2.CloudMemcache.ApplyParameters]. @@ -417,12 +441,12 @@ message ApplyParametersRequest { } ]; - // Nodes to which we should apply the instance-level parameter group. + // Nodes to which the instance-level parameter group is applied. repeated string node_ids = 2; // Whether to apply instance-level parameter group to all nodes. If set to - // true, will explicitly restrict users from specifying any nodes, and apply - // parameter group updates to all nodes within the instance. + // true, users are restricted from specifying individual nodes, and + // `ApplyParameters` updates all nodes within the instance. bool apply_all = 3; } @@ -444,11 +468,34 @@ message UpdateParametersRequest { MemcacheParameters parameters = 3; } +// Request for [ApplySoftwareUpdate][google.cloud.memcache.v1beta2.CloudMemcache.ApplySoftwareUpdate]. +message ApplySoftwareUpdateRequest { + // Required. Resource name of the Memcached instance for which software update should be + // applied. + string instance = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "memcache.googleapis.com/Instance" + } + ]; + + // Nodes to which we should apply the update to. Note all the selected nodes + // are updated in parallel. + repeated string node_ids = 2; + + // Whether to apply the update to all nodes. If set to + // true, will explicitly restrict users from specifying any nodes, and apply + // software update to all nodes (where applicable) within the instance. + bool apply_all = 3; +} + +// The unique ID associated with this set of parameters. Users +// can use this id to determine if the parameters associated with the instance +// differ from the parameters associated with the nodes. A discrepancy between +// parameter ids can inform users that they may need to take action to apply +// parameters on nodes. message MemcacheParameters { - // Output only. The unique ID associated with this set of parameters. Users - // can use this id to determine if the parameters associated with the instance - // differ from the parameters associated with the nodes and any action needs - // to be taken to apply parameters on nodes. + // Output only. string id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // User defined set of parameters to use in the memcached process. @@ -457,29 +504,29 @@ message MemcacheParameters { // Represents the metadata of a long-running operation. message OperationMetadata { - // Time when the operation was created. - google.protobuf.Timestamp create_time = 1; + // Output only. Time when the operation was created. + google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Time when the operation finished running. - google.protobuf.Timestamp end_time = 2; + // Output only. Time when the operation finished running. + google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Server-defined resource path for the target of the operation. - string target = 3; + // Output only. Server-defined resource path for the target of the operation. + string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Name of the verb executed by the operation. - string verb = 4; + // Output only. Name of the verb executed by the operation. + string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Human-readable status of the operation, if any. - string status_detail = 5; + // Output only. Human-readable status of the operation, if any. + string status_detail = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Identifies whether the user has requested cancellation + // Output only. Identifies whether the user has requested cancellation // of the operation. Operations that have successfully been cancelled // have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, // corresponding to `Code.CANCELLED`. - bool cancel_requested = 6; + bool cancel_requested = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - // API version used to start the operation. - string api_version = 7; + // Output only. API version used to start the operation. + string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Memcached versions supported by our service. diff --git a/third_party/googleapis/google/cloud/memcache/v1beta2/memcache_gapic.yaml b/third_party/googleapis/google/cloud/memcache/v1beta2/memcache_gapic.yaml index 87a6dbdab..0451cf672 100644 --- a/third_party/googleapis/google/cloud/memcache/v1beta2/memcache_gapic.yaml +++ b/third_party/googleapis/google/cloud/memcache/v1beta2/memcache_gapic.yaml @@ -2,8 +2,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 # The settings of generated code in a specific language. language_settings: - java: - package_name: com.google.cloud.memcache.v1beta2 python: package_name: google.cloud.memcache_v1beta2.gapic go: diff --git a/third_party/googleapis/google/cloud/memcache/v1beta2/memcache_grpc_service_config.json b/third_party/googleapis/google/cloud/memcache/v1beta2/memcache_grpc_service_config.json index 6817c8b4f..595e9efd1 100644 --- a/third_party/googleapis/google/cloud/memcache/v1beta2/memcache_grpc_service_config.json +++ b/third_party/googleapis/google/cloud/memcache/v1beta2/memcache_grpc_service_config.json @@ -29,6 +29,10 @@ { "service": "google.cloud.memcache.v1beta2.CloudMemcache", "method": "DeleteInstance" + }, + { + "service": "google.cloud.memcache.v1beta2.CloudMemcache", + "method": "ApplySoftwareUpdate" } ], "timeout": "1200s" diff --git a/third_party/googleapis/google/cloud/memcache/v1beta2/memcache_v1beta2.yaml b/third_party/googleapis/google/cloud/memcache/v1beta2/memcache_v1beta2.yaml index ae598c6a6..557e223cf 100644 --- a/third_party/googleapis/google/cloud/memcache/v1beta2/memcache_v1beta2.yaml +++ b/third_party/googleapis/google/cloud/memcache/v1beta2/memcache_v1beta2.yaml @@ -15,6 +15,12 @@ documentation: Google Cloud Memorystore for Memcached API is used for creating and managing Memcached instances in GCP. rules: + - selector: google.cloud.location.Locations.GetLocation + description: Gets information about a location. + + - selector: google.cloud.location.Locations.ListLocations + description: Lists information about the supported locations for this service. + - selector: google.iam.v1.IAMPolicy.GetIamPolicy description: |- Gets the access control policy for a resource. Returns an empty policy @@ -25,14 +31,14 @@ documentation: Sets the access control policy on the specified resource. Replaces any existing policy. - Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and - PERMISSION_DENIED + Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` + errors. - selector: google.iam.v1.IAMPolicy.TestIamPermissions description: |- Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of - permissions, not a NOT_FOUND error. + permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization @@ -40,6 +46,10 @@ documentation: backend: rules: + - selector: google.cloud.location.Locations.GetLocation + deadline: 60.0 + - selector: google.cloud.location.Locations.ListLocations + deadline: 60.0 - selector: google.cloud.memcache.v1beta2.CloudMemcache.GetInstance deadline: 60.0 - selector: google.cloud.memcache.v1beta2.CloudMemcache.ListInstances @@ -53,14 +63,10 @@ backend: http: rules: - - selector: google.iam.v1.IAMPolicy.GetIamPolicy - get: '/v1beta2/{resource=projects/*/locations/*/instances/*}:getIamPolicy' - - selector: google.iam.v1.IAMPolicy.SetIamPolicy - post: '/v1beta2/{resource=projects/*/locations/*/instances/*}:setIamPolicy' - body: '*' - - selector: google.iam.v1.IAMPolicy.TestIamPermissions - post: '/v1beta2/{resource=projects/*/locations/*/instances/*}:testIamPermissions' - body: '*' + - selector: google.cloud.location.Locations.GetLocation + get: '/v1beta2/{name=projects/*/locations/*}' + - selector: google.cloud.location.Locations.ListLocations + get: '/v1beta2/{name=projects/*}/locations' - selector: google.longrunning.Operations.CancelOperation post: '/v1beta2/{name=projects/*/locations/*/operations/*}:cancel' body: '*' @@ -73,6 +79,14 @@ http: authentication: rules: + - selector: google.cloud.location.Locations.GetLocation + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform + - selector: google.cloud.location.Locations.ListLocations + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform - selector: 'google.cloud.memcache.v1beta2.CloudMemcache.*' oauth: canonical_scopes: |- diff --git a/third_party/googleapis/google/cloud/metastore/logging/v1/BUILD.bazel b/third_party/googleapis/google/cloud/metastore/logging/v1/BUILD.bazel new file mode 100644 index 000000000..d34fb38e2 --- /dev/null +++ b/third_party/googleapis/google/cloud/metastore/logging/v1/BUILD.bazel @@ -0,0 +1,151 @@ +# This file was automatically generated by BuildFileGenerator + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") + +proto_library( + name = "logging_proto", + srcs = [ + "log_streams.proto", + ], + deps = [], +) + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_grpc_library", + "java_proto_library", +) + +java_proto_library( + name = "logging_java_proto", + deps = [":logging_proto"], +) + +java_grpc_library( + name = "logging_java_grpc", + srcs = [":logging_proto"], + deps = [":logging_java_proto"], +) + +############################################################################## +# Go +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "go_proto_library", +) + +go_proto_library( + name = "logging_go_proto", + compilers = ["@io_bazel_rules_go//proto:go_grpc"], + importpath = "google.golang.org/genproto/googleapis/cloud/metastore/logging/v1", + protos = [":logging_proto"], + deps = [], +) + +############################################################################## +# Python +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "moved_proto_library", + "py_grpc_library", + "py_proto_library", +) + +moved_proto_library( + name = "logging_moved_proto", + srcs = [":logging_proto"], + deps = [], +) + +py_proto_library( + name = "logging_py_proto", + plugin = "@protoc_docs_plugin//:docs_plugin", + deps = [":logging_moved_proto"], +) + +py_grpc_library( + name = "logging_py_grpc", + srcs = [":logging_moved_proto"], + deps = [":logging_py_proto"], +) + +############################################################################## +# PHP +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "php_grpc_library", + "php_proto_library", +) + +php_proto_library( + name = "logging_php_proto", + deps = [":logging_proto"], +) + +php_grpc_library( + name = "logging_php_grpc", + srcs = [":logging_proto"], + deps = [":logging_php_proto"], +) + +############################################################################## +# Node.js +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", +) + + +############################################################################## +# Ruby +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "ruby_grpc_library", + "ruby_proto_library", +) + +ruby_proto_library( + name = "logging_ruby_proto", + deps = [":logging_proto"], +) + +ruby_grpc_library( + name = "logging_ruby_grpc", + srcs = [":logging_proto"], + deps = [":logging_ruby_proto"], +) + +############################################################################## +# C# +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "csharp_grpc_library", + "csharp_proto_library", +) + +csharp_proto_library( + name = "logging_csharp_proto", + deps = [":logging_proto"], +) + +csharp_grpc_library( + name = "logging_csharp_grpc", + srcs = [":logging_proto"], + deps = [":logging_csharp_proto"], +) diff --git a/third_party/googleapis/google/cloud/metastore/logging/v1/log_streams.proto b/third_party/googleapis/google/cloud/metastore/logging/v1/log_streams.proto new file mode 100644 index 000000000..ffc977516 --- /dev/null +++ b/third_party/googleapis/google/cloud/metastore/logging/v1/log_streams.proto @@ -0,0 +1,36 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.metastore.logging.v1; + +option go_package = "google.golang.org/genproto/googleapis/cloud/metastore/logging/v1;logging"; +option java_multiple_files = true; +option java_outer_classname = "LogStreamsProto"; +option java_package = "google.cloud.metastore.logging.v1"; + +// Stackdriver structured-payload for events generated from Hive Metastore +// API requests. +message RequestsLogEntry { + // A free-text string describing the request. + string message = 1; +} + +// Stackdriver structured-payload for events generated from Hive Metastore +// system activity. +message SystemActivityLogEntry { + // A free-text string describing the system activity. + string message = 1; +} diff --git a/third_party/googleapis/google/cloud/metastore/v1alpha/BUILD.bazel b/third_party/googleapis/google/cloud/metastore/v1alpha/BUILD.bazel index 65b48b51f..c46b8b009 100644 --- a/third_party/googleapis/google/cloud/metastore/v1alpha/BUILD.bazel +++ b/third_party/googleapis/google/cloud/metastore/v1alpha/BUILD.bazel @@ -1,5 +1,5 @@ # This file was automatically generated by BuildFileGenerator -# https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/bazel +# https://github.com/googleapis/rules_gapic/tree/master/bazel # Most of the manual changes to this file will be overwritten. # It's **only** allowed to change the following rule attribute values: @@ -29,8 +29,10 @@ proto_library( "//google/api:field_behavior_proto", "//google/api:resource_proto", "//google/longrunning:operations_proto", + "//google/type:dayofweek_proto", "@com_google_protobuf//:field_mask_proto", "@com_google_protobuf//:timestamp_proto", + "@com_google_protobuf//:wrappers_proto", ], ) @@ -67,11 +69,8 @@ java_grpc_library( java_gapic_library( name = "metastore_java_gapic", - src = ":metastore_proto_with_info", - gapic_yaml = "metastore_gapic.yaml", + srcs = [":metastore_proto_with_info"], grpc_service_config = "metastore_grpc_service_config.json", - package = "google.cloud.metastore.v1alpha", - service_yaml = "metastore_v1alpha.yaml", test_deps = [ ":metastore_java_grpc", ], @@ -118,6 +117,7 @@ go_proto_library( deps = [ "//google/api:annotations_go_proto", "//google/longrunning:longrunning_go_proto", + "//google/type:dayofweek_go_proto", ], ) @@ -126,12 +126,13 @@ go_gapic_library( srcs = [":metastore_proto_with_info"], grpc_service_config = "metastore_grpc_service_config.json", importpath = "cloud.google.com/go/metastore/apiv1alpha;metastore", + metadata = True, service_yaml = "metastore_v1alpha.yaml", deps = [ ":metastore_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", ], ) @@ -147,6 +148,7 @@ go_gapic_assembly_pkg( name = "gapi-cloud-metastore-v1alpha-go", deps = [ ":metastore_go_gapic", + ":metastore_go_gapic_srcjar-metadata.srcjar", ":metastore_go_gapic_srcjar-test.srcjar", ":metastore_go_proto", ], @@ -157,50 +159,14 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "metastore_moved_proto", - srcs = [":metastore_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:resource_proto", - "//google/longrunning:operations_proto", - "@com_google_protobuf//:field_mask_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -py_proto_library( - name = "metastore_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":metastore_moved_proto"], -) - -py_grpc_library( - name = "metastore_py_grpc", - srcs = [":metastore_moved_proto"], - deps = [":metastore_py_proto"], ) py_gapic_library( name = "metastore_py_gapic", - src = ":metastore_proto_with_info", - gapic_yaml = "metastore_gapic.yaml", + srcs = [":metastore_proto"], grpc_service_config = "metastore_grpc_service_config.json", - package = "google.cloud.metastore.v1alpha", - service_yaml = "metastore_v1alpha.yaml", - deps = [ - ":metastore_py_grpc", - ":metastore_py_proto", - ], ) # Open Source Packages @@ -208,8 +174,6 @@ py_gapic_assembly_pkg( name = "metastore-v1alpha-py", deps = [ ":metastore_py_gapic", - ":metastore_py_grpc", - ":metastore_py_proto", ], ) @@ -269,7 +233,9 @@ load( nodejs_gapic_library( name = "metastore_nodejs_gapic", + package_name = "@google-cloud/dataproc-metastore", src = ":metastore_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "metastore_grpc_service_config.json", package = "google.cloud.metastore.v1alpha", service_yaml = "metastore_v1alpha.yaml", @@ -289,8 +255,8 @@ nodejs_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", + "ruby_cloud_gapic_library", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -306,13 +272,13 @@ ruby_grpc_library( deps = [":metastore_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "metastore_ruby_gapic", - src = ":metastore_proto_with_info", - gapic_yaml = "metastore_gapic.yaml", + srcs = [":metastore_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-metastore-v1alpha", + ], grpc_service_config = "metastore_grpc_service_config.json", - package = "google.cloud.metastore.v1alpha", - service_yaml = "metastore_v1alpha.yaml", deps = [ ":metastore_ruby_grpc", ":metastore_ruby_proto", @@ -354,8 +320,8 @@ csharp_grpc_library( csharp_gapic_library( name = "metastore_csharp_gapic", srcs = [":metastore_proto_with_info"], - grpc_service_config = "metastore_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "metastore_grpc_service_config.json", deps = [ ":metastore_csharp_grpc", ":metastore_csharp_proto", diff --git a/third_party/googleapis/google/cloud/metastore/v1alpha/metastore.proto b/third_party/googleapis/google/cloud/metastore/v1alpha/metastore.proto index f980bcd6b..489e06f7c 100644 --- a/third_party/googleapis/google/cloud/metastore/v1alpha/metastore.proto +++ b/third_party/googleapis/google/cloud/metastore/v1alpha/metastore.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -23,6 +23,8 @@ import "google/api/resource.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; +import "google/protobuf/wrappers.proto"; +import "google/type/dayofweek.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/metastore/v1alpha;metastore"; option java_multiple_files = true; @@ -49,7 +51,7 @@ option (google.api.resource_definition) = { // * Each location has a collection of services, named: `/services/*` // * Dataproc Metastore services are resources with names of the form: // -// `/projects/{project_id}/locations/{location_id}/services/{service_id}`. +// `/projects/{project_number}/locations/{location_id}/services/{service_id}`. service DataprocMetastore { option (google.api.default_host) = "metastore.googleapis.com"; option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; @@ -150,6 +152,72 @@ service DataprocMetastore { metadata_type: "OperationMetadata" }; } + + // Exports metadata from a service. + rpc ExportMetadata(ExportMetadataRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1alpha/{service=projects/*/locations/*/services/*}:exportMetadata" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "MetadataExport" + metadata_type: "OperationMetadata" + }; + } + + // Restores a service from a backup. + rpc RestoreService(RestoreServiceRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1alpha/{service=projects/*/locations/*/services/*}:restore" + body: "*" + }; + option (google.api.method_signature) = "service,backup"; + option (google.longrunning.operation_info) = { + response_type: "Restore" + metadata_type: "OperationMetadata" + }; + } + + // Lists backups in a service. + rpc ListBackups(ListBackupsRequest) returns (ListBackupsResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=projects/*/locations/*/services/*}/backups" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single backup. + rpc GetBackup(GetBackupRequest) returns (Backup) { + option (google.api.http) = { + get: "/v1alpha/{name=projects/*/locations/*/services/*/backups/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new Backup in a given project and location. + rpc CreateBackup(CreateBackupRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1alpha/{parent=projects/*/locations/*/services/*}/backups" + body: "backup" + }; + option (google.api.method_signature) = "parent,backup,backup_id"; + option (google.longrunning.operation_info) = { + response_type: "Backup" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a single backup. + rpc DeleteBackup(DeleteBackupRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1alpha/{name=projects/*/locations/*/services/*/backups/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } } // A managed metastore service that serves metadata queries. @@ -194,14 +262,43 @@ message Service { // The tier is not set. TIER_UNSPECIFIED = 0; - // The enterprise tier combines a powerful metastore serving layer with a - // highly scalable data storage layer. + // The developer tier provides limited scalability and no fault tolerance. + // Good for low-cost proof-of-concept. + DEVELOPER = 1; + + // The enterprise tier provides multi-zone high availability, and sufficient + // scalability for enterprise-level Dataproc Metastore workloads. ENTERPRISE = 3; } + // Release channels bundle features of varying levels of stability. Newer + // features may be introduced initially into less stable release channels and + // can be automatically promoted into more stable release channels. + enum ReleaseChannel { + // Release channel is not specified. + RELEASE_CHANNEL_UNSPECIFIED = 0; + + // The `CANARY` release channel contains the newest features, which may be + // unstable and subject to unresolved issues with no known workarounds. + // Services using the `CANARY` release channel are not subject to any SLAs. + CANARY = 1; + + // The `STABLE` release channel contains features that are considered stable + // and have been validated for production use. + STABLE = 2; + } + + // Configuration properties specific to the underlying metastore service + // technology (the software that serves metastore queries). + oneof metastore_config { + // Configuration information specific to running Hive metastore + // software as the metastore service. + HiveMetastoreConfig hive_metastore_config = 5; + } + // Immutable. The relative resource name of the metastore service, of the form: // - // "projects/{project_id}/locations/{location_id}/services/{service_id}". + // `projects/{project_number}/locations/{location_id}/services/{service_id}`. string name = 1 [(google.api.field_behavior) = IMMUTABLE]; // Output only. The time when the metastore service was created. @@ -213,19 +310,10 @@ message Service { // User-defined labels for the metastore service. map labels = 4; - // Configuration properties specific to the underlying metastore service - // technology (the software that serves metastore queries). - oneof metastore_config { - // Configuration information specific to running Hive metastore - // software as the metastore service. - HiveMetastoreConfig hive_metastore_config = 5; - } - // Immutable. The relative resource name of the VPC network on which the instance can be - // accessed. The network must belong to the same project as the metastore - // instance. It is specified in the following form: + // accessed. It is specified in the following form: // - // "projects/{project_id}/global/networks/{network_id}". + // `projects/{project_number}/global/networks/{network_id}`. string network = 7 [ (google.api.field_behavior) = IMMUTABLE, (google.api.resource_reference) = { @@ -252,6 +340,48 @@ message Service { // The tier of the service. Tier tier = 13; + + // The setting that defines how metastore metadata should be integrated with + // external services and systems. + MetadataIntegration metadata_integration = 14; + + // The one hour maintenance window of the metastore service. This specifies + // when the service can be restarted for maintenance purposes in UTC time. + MaintenanceWindow maintenance_window = 15; + + // Output only. The globally unique resource identifier of the metastore service. + string uid = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The metadata management activities of the metastore service. + MetadataManagementActivity metadata_management_activity = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. The release channel of the service. + // If unspecified, defaults to `STABLE`. + ReleaseChannel release_channel = 19 [(google.api.field_behavior) = IMMUTABLE]; +} + +// Specifies how metastore metadata should be integrated with external services. +message MetadataIntegration { + // The integration config for the Data Catalog service. + DataCatalogConfig data_catalog_config = 1; +} + +// Specifies how metastore metadata should be integrated with the Data Catalog +// service. +message DataCatalogConfig { + // Defines whether the metastore metadata should be synced to Data Catalog. + // The default value is to disable syncing metastore metadata to Data Catalog. + bool enabled = 2; +} + +// Maintenance window. This specifies when Dataproc Metastore +// may perform system maintenance operation to the service. +message MaintenanceWindow { + // The hour of day (0-23) when the window starts. + google.protobuf.Int32Value hour_of_day = 1; + + // The day of week, when the window starts. + google.type.DayOfWeek day_of_week = 2; } // Specifies configuration information specific to running Hive metastore @@ -266,7 +396,10 @@ message HiveMetastoreConfig { map config_overrides = 2; // Information used to configure the Hive metastore service as a service - // principal in a Kerberos realm. + // principal in a Kerberos realm. To disable Kerberos, use the `UpdateService` + // method and specify this field's path + // (`hive_metastore_config.kerberos_config`) in the request's `update_mask` + // while omitting this field from the request's `service`. KerberosConfig kerberos_config = 3; } @@ -278,7 +411,7 @@ message KerberosConfig { // A Kerberos principal that exists in the both the keytab the KDC // to authenticate as. A typical principal is of the form - // "primary/instance@REALM", but there is no exact format. + // `primary/instance@REALM`, but there is no exact format. string principal = 2; // A Cloud Storage URI that specifies the path to a @@ -293,11 +426,20 @@ message Secret { // The relative resource name of a Secret Manager secret version, in the // following form: // - // "projects/{project_id}/secrets/{secret_id}/versions/{version_id}". + // `projects/{project_number}/secrets/{secret_id}/versions/{version_id}`. string cloud_secret = 2; } } +// The metadata management activities of the metastore service. +message MetadataManagementActivity { + // Output only. The latest metadata exports of the metastore service. + repeated MetadataExport metadata_exports = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The latest restores of the metastore service. + repeated Restore restores = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // A metastore resource that imports metadata. message MetadataImport { option (google.api.resource) = { @@ -318,14 +460,17 @@ message MetadataImport { } // The type of the database. - DatabaseType database_type = 1; + DatabaseType database_type = 1 [deprecated = true]; - // A Cloud Storage object URI that specifies the source from which to - // import metadata. It must begin with `gs://`. + // A Cloud Storage object or folder URI that specifies the source from which + // to import metadata. It must begin with `gs://`. string gcs_uri = 2; // The name of the source database. - string source_database = 3; + string source_database = 3 [deprecated = true]; + + // Optional. The type of the database dump. If unspecified, defaults to `MYSQL`. + DatabaseDumpSpec.Type type = 4 [(google.api.field_behavior) = OPTIONAL]; } // The current state of the metadata import. @@ -347,9 +492,15 @@ message MetadataImport { FAILED = 4; } + // The metadata to be imported. + oneof metadata { + // Immutable. A database dump from a pre-existing metastore's database. + DatabaseDump database_dump = 6 [(google.api.field_behavior) = IMMUTABLE]; + } + // Immutable. The relative resource name of the metadata import, of the form: // - // "projects/{project_id}/locations/{location_id}/services/{service_id}/metadataImports/{metadata_import_id}". + // `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{metadata_import_id}`. string name = 1 [(google.api.field_behavior) = IMMUTABLE]; // The description of the metadata import. @@ -363,12 +514,152 @@ message MetadataImport { // Output only. The current state of the metadata import. State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; +} - // The metadata to be imported. - oneof metadata { - // Immutable. A database dump from a pre-existing metastore's database. - DatabaseDump database_dump = 6 [(google.api.field_behavior) = IMMUTABLE]; +// The details of a metadata export operation. +message MetadataExport { + // The current state of the metadata export. + enum State { + // The state of the metadata export is unknown. + STATE_UNSPECIFIED = 0; + + // The metadata export is running. + RUNNING = 1; + + // The metadata export completed successfully. + SUCCEEDED = 2; + + // The metadata export failed. + FAILED = 3; + + // The metadata export is cancelled. + CANCELLED = 4; + } + + oneof destination { + // Output only. A Cloud Storage URI of a folder that metadata are exported to, in the + // form of `gs:////`, where + // `` is automatically generated. + string destination_gcs_uri = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Output only. The time when the export started. + google.protobuf.Timestamp start_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time when the export ended. + google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The current state of the export. + State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The type of the database dump. + DatabaseDumpSpec.Type database_dump_type = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The details of a backup resource. +message Backup { + option (google.api.resource) = { + type: "metastore.googleapis.com/Backup" + pattern: "projects/{project}/locations/{location}/services/{service}/backups/{backup}" + }; + + // The current state of the backup. + enum State { + // The state of the backup is unknown. + STATE_UNSPECIFIED = 0; + + // The backup is being created. + CREATING = 1; + + // The backup is being deleted. + DELETING = 2; + + // The backup is active and ready to use. + ACTIVE = 3; + + // The backup failed. + FAILED = 4; } + + // Immutable. The relative resource name of the backup, in the following form: + // + // `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}` + string name = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. The time when the backup was started. + google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time when the backup finished creating. + google.protobuf.Timestamp end_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The current state of the backup. + State state = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The revision of the service at the time of backup. + Service service_revision = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The description of the backup. + string description = 6; +} + +// The details of a metadata restore operation. +message Restore { + // The current state of the restore. + enum State { + // The state of the metadata restore is unknown. + STATE_UNSPECIFIED = 0; + + // The metadata restore is running. + RUNNING = 1; + + // The metadata restore completed successfully. + SUCCEEDED = 2; + + // The metadata restore failed. + FAILED = 3; + + // The metadata restore is cancelled. + CANCELLED = 4; + } + + // The type of restore. + enum RestoreType { + // The restore type is unknown. + RESTORE_TYPE_UNSPECIFIED = 0; + + // The service's metadata and configuration are restored. + FULL = 1; + + // Only the service's metadata is restored. + METADATA_ONLY = 2; + } + + // Output only. The time when the restore started. + google.protobuf.Timestamp start_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time when the restore ended. + google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The current state of the restore. + State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The relative resource name of the metastore service backup to restore + // from, in the following form: + // + // `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}` + string backup = 4 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "metastore.googleapis.com/Backup" + } + ]; + + // Output only. The type of restore. + RestoreType type = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The restore details containing the revision of the service to be restored + // to, in format of JSON. + string details = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Request message for [DataprocMetastore.ListServices][google.cloud.metastore.v1alpha.DataprocMetastore.ListServices]. @@ -376,7 +667,7 @@ message ListServicesRequest { // Required. The relative resource name of the location of metastore services to // list, in the following form: // - // "projects/{project_id}/locations/{location_id}". + // `projects/{project_number}/locations/{location_id}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -402,9 +693,9 @@ message ListServicesRequest { // Optional. The filter to apply to list results. string filter = 4 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Specify the ordering of results as described in - // [Sorting Order](/apis/design/design_patterns#sorting_order). If not - // specified, the results will be sorted in the default order. + // Optional. Specify the ordering of results as described in [Sorting + // Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). + // If not specified, the results will be sorted in the default order. string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; } @@ -426,7 +717,7 @@ message GetServiceRequest { // Required. The relative resource name of the metastore service to retrieve, in the // following form: // - // "projects/{project_id}/locations/{location_id}/services/{service_id}". + // `projects/{project_number}/locations/{location_id}/services/{service_id}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -440,7 +731,7 @@ message CreateServiceRequest { // Required. The relative resource name of the location in which to create a metastore // service, in the following form: // - // "projects/{project_id}/locations/{location_id}". + // `projects/{project_number}/locations/{location_id}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -451,7 +742,7 @@ message CreateServiceRequest { // Required. The ID of the metastore service, which is used as the final // component of the metastore service's name. // - // This value must be between 1 and 64 characters long, begin with a + // This value must be between 2 and 63 characters long inclusive, begin with a // letter, end with a letter or number, and consist of alpha-numeric // ASCII characters or hyphens. string service_id = 2 [(google.api.field_behavior) = REQUIRED]; @@ -511,7 +802,7 @@ message DeleteServiceRequest { // Required. The relative resource name of the metastore service to delete, in the // following form: // - // "projects/{project_id}/locations/{location_id}/services/{service_id}". + // `projects/{project_number}/locations/{location_id}/services/{service_id}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -539,7 +830,7 @@ message ListMetadataImportsRequest { // Required. The relative resource name of the service whose metadata imports to // list, in the following form: // - // "projects/{project_id}/locations/{location_id}/services/{service_id}/metadataImports". + // `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -565,9 +856,9 @@ message ListMetadataImportsRequest { // Optional. The filter to apply to list results. string filter = 4 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Specify the ordering of results as described in - // [Sorting Order](/apis/design/design_patterns#sorting_order). If not - // specified, the results will be sorted in the default order. + // Optional. Specify the ordering of results as described in [Sorting + // Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). + // If not specified, the results will be sorted in the default order. string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; } @@ -589,7 +880,7 @@ message GetMetadataImportRequest { // Required. The relative resource name of the metadata import to retrieve, in the // following form: // - // "projects/{project_id}/locations/{location_id}/services/{service_id}/metadataImports/{import_id}". + // `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{import_id}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -603,7 +894,7 @@ message CreateMetadataImportRequest { // Required. The relative resource name of the service in which to create a metastore // import, in the following form: // - // "projects/{project_id}/locations/{location_id}/services/{service_id}" + // `projects/{project_number}/locations/{location_id}/services/{service_id}` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -669,6 +960,219 @@ message UpdateMetadataImportRequest { string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; } +// Request message for [DataprocMetastore.ListBackups][google.cloud.metastore.v1alpha.DataprocMetastore.ListBackups]. +message ListBackupsRequest { + // Required. The relative resource name of the service whose backups to + // list, in the following form: + // + // `projects/{project_number}/locations/{location_id}/services/{service_id}/backups`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "metastore.googleapis.com/Service" + } + ]; + + // Optional. The maximum number of backups to return. The response may contain less + // than the maximum number. If unspecified, no more than 500 backups are + // returned. The maximum value is 1000; values above 1000 are changed to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous [DataprocMetastore.ListBackups][google.cloud.metastore.v1alpha.DataprocMetastore.ListBackups] + // call. Provide this token to retrieve the subsequent page. + // + // To retrieve the first page, supply an empty page token. + // + // When paginating, other parameters provided to + // [DataprocMetastore.ListBackups][google.cloud.metastore.v1alpha.DataprocMetastore.ListBackups] must match the call that provided the + // page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The filter to apply to list results. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specify the ordering of results as described in [Sorting + // Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). + // If not specified, the results will be sorted in the default order. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for [DataprocMetastore.ListBackups][google.cloud.metastore.v1alpha.DataprocMetastore.ListBackups]. +message ListBackupsResponse { + // The backups of the specified service. + repeated Backup backups = 1; + + // A token that can be sent as `page_token` to retrieve the next page. If this + // field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Request message for [DataprocMetastore.GetBackup][google.cloud.metastore.v1alpha.DataprocMetastore.GetBackup]. +message GetBackupRequest { + // Required. The relative resource name of the backup to retrieve, in the + // following form: + // + // `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "metastore.googleapis.com/Backup" + } + ]; +} + +// Request message for [DataprocMetastore.CreateBackup][google.cloud.metastore.v1alpha.DataprocMetastore.CreateBackup]. +message CreateBackupRequest { + // Required. The relative resource name of the service in which to create a backup + // of the following form: + // + // `projects/{project_number}/locations/{location_id}/services/{service_id}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "metastore.googleapis.com/Service" + } + ]; + + // Required. The ID of the backup, which is used as the final component of the + // backup's name. + // + // This value must be between 1 and 64 characters long, begin with a letter, + // end with a letter or number, and consist of alpha-numeric ASCII characters + // or hyphens. + string backup_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The backup to create. The `name` field is ignored. The ID of the created + // backup must be provided in the request's `backup_id` field. + Backup backup = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. A request ID. Specify a unique request ID to allow the server to ignore the + // request if it has completed. The server will ignore subsequent requests + // that provide a duplicate request ID for at least 60 minutes after the first + // request. + // + // For example, if an initial request times out, followed by another request + // with the same request ID, the server ignores the second request to prevent + // the creation of duplicate commitments. + // + // The request ID must be a valid + // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) + // A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. + string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for [DataprocMetastore.DeleteBackup][google.cloud.metastore.v1alpha.DataprocMetastore.DeleteBackup]. +message DeleteBackupRequest { + // Required. The relative resource name of the backup to delete, in the + // following form: + // + // `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "metastore.googleapis.com/Backup" + } + ]; + + // Optional. A request ID. Specify a unique request ID to allow the server to ignore the + // request if it has completed. The server will ignore subsequent requests + // that provide a duplicate request ID for at least 60 minutes after the first + // request. + // + // For example, if an initial request times out, followed by another request + // with the same request ID, the server ignores the second request to prevent + // the creation of duplicate commitments. + // + // The request ID must be a valid + // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) + // A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. + string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for [DataprocMetastore.ExportMetadata][google.cloud.metastore.v1alpha.DataprocMetastore.ExportMetadata]. +message ExportMetadataRequest { + // Required. Destination that metadata is exported to. + oneof destination { + // A Cloud Storage URI of a folder, in the format + // `gs:///`. A sub-folder + // `` containing exported files will be created below it. + string destination_gcs_folder = 2; + } + + // Required. The relative resource name of the metastore service to run export, in the + // following form: + // + // `projects/{project_id}/locations/{location_id}/services/{service_id}` + string service = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "metastore.googleapis.com/Service" + } + ]; + + // Optional. A request ID. Specify a unique request ID to allow the server to ignore the + // request if it has completed. The server will ignore subsequent requests + // that provide a duplicate request ID for at least 60 minutes after the first + // request. + // + // For example, if an initial request times out, followed by another request + // with the same request ID, the server ignores the second request to prevent + // the creation of duplicate commitments. + // + // The request ID must be a valid + // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). + // A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. + string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The type of the database dump. If unspecified, defaults to `MYSQL`. + DatabaseDumpSpec.Type database_dump_type = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for [DataprocMetastore.Restore][]. +message RestoreServiceRequest { + // Required. The relative resource name of the metastore service to run restore, in the + // following form: + // + // `projects/{project_id}/locations/{location_id}/services/{service_id}` + string service = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "metastore.googleapis.com/Service" + } + ]; + + // Required. The relative resource name of the metastore service backup to restore + // from, in the following form: + // + // `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}` + string backup = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "metastore.googleapis.com/Backup" + } + ]; + + // Optional. The type of restore. If unspecified, defaults to `METADATA_ONLY`. + Restore.RestoreType restore_type = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A request ID. Specify a unique request ID to allow the server to ignore the + // request if it has completed. The server will ignore subsequent requests + // that provide a duplicate request ID for at least 60 minutes after the first + // request. + // + // For example, if an initial request times out, followed by another request + // with the same request ID, the server ignores the second request to prevent + // the creation of duplicate commitments. + // + // The request ID must be a valid + // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). + // A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. + string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; +} + // Represents the metadata of a long-running operation. message OperationMetadata { // Output only. The time the operation was created. @@ -713,3 +1217,17 @@ message LocationMetadata { // `HiveMetastoreVersion` in the list will set `is_default`. repeated HiveMetastoreVersion supported_hive_metastore_versions = 1; } + +// The specification of database dump to import from or export to. +message DatabaseDumpSpec { + // The type of the database dump. + enum Type { + // The type of the database dump is unknown. + TYPE_UNSPECIFIED = 0; + + // Database dump is a MySQL dump file. + MYSQL = 1; + } + + +} diff --git a/third_party/googleapis/google/cloud/metastore/v1alpha/metastore_gapic.yaml b/third_party/googleapis/google/cloud/metastore/v1alpha/metastore_gapic.yaml index 23c5371e5..7c3da35c6 100644 --- a/third_party/googleapis/google/cloud/metastore/v1alpha/metastore_gapic.yaml +++ b/third_party/googleapis/google/cloud/metastore/v1alpha/metastore_gapic.yaml @@ -4,15 +4,15 @@ language_settings: java: package_name: com.google.cloud.metastore.v1alpha python: - package_name: google.cloud.metastore_v1alph.gapic + package_name: google.cloud.metastore_v1alpha.gapic go: package_name: cloud.google.com/go/metastore/apiv1alpha csharp: package_name: Google.Cloud.Metastore.V1Alpha ruby: - package_name: Google::Cloud::Metastore::V1alpha + package_name: Google::Cloud::Metastore::V1Alpha php: - package_name: Google\Cloud\Metastore\V1alpha + package_name: Google\Cloud\Metastore\V1Alpha nodejs: package_name: metastore.v1alpha domain_layer_location: google-cloud diff --git a/third_party/googleapis/google/cloud/metastore/v1alpha/metastore_grpc_service_config.json b/third_party/googleapis/google/cloud/metastore/v1alpha/metastore_grpc_service_config.json index 35c3c1fb5..60d32b412 100644 --- a/third_party/googleapis/google/cloud/metastore/v1alpha/metastore_grpc_service_config.json +++ b/third_party/googleapis/google/cloud/metastore/v1alpha/metastore_grpc_service_config.json @@ -31,6 +31,22 @@ { "service": "google.cloud.metastore.v1alpha.DataprocMetastore", "method": "UpdateMetadataImport" + }, + { + "service": "google.cloud.metastore.v1alpha.DataprocMetastore", + "method": "ExportMetadata" + }, + { + "service": "google.cloud.metastore.v1alpha.DataprocMetastore", + "method": "RestoreService" + }, + { + "service": "google.cloud.metastore.v1alpha.DataprocMetastore", + "method": "CreateBackup" + }, + { + "service": "google.cloud.metastore.v1alpha.DataprocMetastore", + "method": "DeleteBackup" } ], "timeout": "60s" diff --git a/third_party/googleapis/google/cloud/metastore/v1alpha/metastore_v1alpha.yaml b/third_party/googleapis/google/cloud/metastore/v1alpha/metastore_v1alpha.yaml index c04c5ecdd..bea1ef86d 100644 --- a/third_party/googleapis/google/cloud/metastore/v1alpha/metastore_v1alpha.yaml +++ b/third_party/googleapis/google/cloud/metastore/v1alpha/metastore_v1alpha.yaml @@ -14,16 +14,63 @@ documentation: summary: |- The Dataproc Metastore API is used to manage the lifecycle and configuration of metastore services. + rules: + - selector: google.cloud.location.Locations.GetLocation + description: Gets information about a location. + + - selector: google.cloud.location.Locations.ListLocations + description: Lists information about the supported locations for this service. + + - selector: google.iam.v1.IAMPolicy.GetIamPolicy + description: |- + Gets the access control policy for a resource. Returns an empty policy + if the resource exists and does not have a policy set. + + - selector: google.iam.v1.IAMPolicy.SetIamPolicy + description: |- + Sets the access control policy on the specified resource. Replaces + any existing policy. + + Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` + errors. + + - selector: google.iam.v1.IAMPolicy.TestIamPermissions + description: |- + Returns permissions that a caller has on the specified resource. If the + resource does not exist, this will return an empty set of + permissions, not a `NOT_FOUND` error. + + Note: This operation is designed to be used for building + permission-aware UIs and command-line tools, not for authorization + checking. This operation may "fail open" without warning. backend: rules: + - selector: google.cloud.location.Locations.GetLocation + deadline: 60.0 + - selector: google.cloud.location.Locations.ListLocations + deadline: 60.0 - selector: 'google.cloud.metastore.v1alpha.DataprocMetastore.*' deadline: 60.0 + - selector: 'google.iam.v1.IAMPolicy.*' + deadline: 60.0 - selector: 'google.longrunning.Operations.*' deadline: 60.0 http: rules: + - selector: google.cloud.location.Locations.GetLocation + get: '/v1alpha/{name=projects/*/locations/*}' + - selector: google.cloud.location.Locations.ListLocations + get: '/v1alpha/{name=projects/*}/locations' + - selector: google.iam.v1.IAMPolicy.GetIamPolicy + get: '/v1alpha/{resource=projects/*/locations/*/services/*}:getIamPolicy' + - selector: google.iam.v1.IAMPolicy.SetIamPolicy + post: '/v1alpha/{resource=projects/*/locations/*/services/*}:setIamPolicy' + body: '*' + - selector: google.iam.v1.IAMPolicy.TestIamPermissions + post: '/v1alpha/{resource=projects/*/locations/*/services/*}:testIamPermissions' + body: '*' - selector: google.longrunning.Operations.DeleteOperation delete: '/v1alpha/{name=projects/*/locations/*/operations/*}' - selector: google.longrunning.Operations.GetOperation @@ -33,10 +80,22 @@ http: authentication: rules: + - selector: google.cloud.location.Locations.GetLocation + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform + - selector: google.cloud.location.Locations.ListLocations + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform - selector: 'google.cloud.metastore.v1alpha.DataprocMetastore.*' oauth: canonical_scopes: |- https://www.googleapis.com/auth/cloud-platform + - selector: 'google.iam.v1.IAMPolicy.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform - selector: 'google.longrunning.Operations.*' oauth: canonical_scopes: |- diff --git a/third_party/googleapis/google/cloud/metastore/v1beta/BUILD.bazel b/third_party/googleapis/google/cloud/metastore/v1beta/BUILD.bazel new file mode 100644 index 000000000..d4e32ac98 --- /dev/null +++ b/third_party/googleapis/google/cloud/metastore/v1beta/BUILD.bazel @@ -0,0 +1,344 @@ +# This file was automatically generated by BuildFileGenerator +# https://github.com/googleapis/rules_gapic/tree/master/bazel + +# Most of the manual changes to this file will be overwritten. +# It's **only** allowed to change the following rule attribute values: +# - names of *_gapic_assembly_* rules +# - certain parameters of *_gapic_library rules, including but not limited to: +# * extra_protoc_parameters +# * extra_protoc_file_parameters +# The complete list of preserved parameters can be found in the source code. + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") +load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info") + +proto_library( + name = "metastore_proto", + srcs = [ + "metastore.proto", + ], + deps = [ + "//google/api:annotations_proto", + "//google/api:client_proto", + "//google/api:field_behavior_proto", + "//google/api:resource_proto", + "//google/longrunning:operations_proto", + "//google/type:dayofweek_proto", + "@com_google_protobuf//:field_mask_proto", + "@com_google_protobuf//:timestamp_proto", + "@com_google_protobuf//:wrappers_proto", + ], +) + +proto_library_with_info( + name = "metastore_proto_with_info", + deps = [ + ":metastore_proto", + "//google/cloud:common_resources_proto", + ], +) + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_gapic_assembly_gradle_pkg", + "java_gapic_library", + "java_gapic_test", + "java_grpc_library", + "java_proto_library", +) + +java_proto_library( + name = "metastore_java_proto", + deps = [":metastore_proto"], +) + +java_grpc_library( + name = "metastore_java_grpc", + srcs = [":metastore_proto"], + deps = [":metastore_java_proto"], +) + +java_gapic_library( + name = "metastore_java_gapic", + srcs = [":metastore_proto_with_info"], + grpc_service_config = "metastore_grpc_service_config.json", + test_deps = [ + ":metastore_java_grpc", + ], + deps = [ + ":metastore_java_proto", + ], +) + +java_gapic_test( + name = "metastore_java_gapic_test_suite", + test_classes = [ + "com.google.cloud.metastore.v1beta.DataprocMetastoreClientTest", + ], + runtime_deps = [":metastore_java_gapic_test"], +) + +# Open Source Packages +java_gapic_assembly_gradle_pkg( + name = "google-cloud-metastore-v1beta-java", + deps = [ + ":metastore_java_gapic", + ":metastore_java_grpc", + ":metastore_java_proto", + ":metastore_proto", + ], +) + +############################################################################## +# Go +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "go_gapic_assembly_pkg", + "go_gapic_library", + "go_proto_library", + "go_test", +) + +go_proto_library( + name = "metastore_go_proto", + compilers = ["@io_bazel_rules_go//proto:go_grpc"], + importpath = "google.golang.org/genproto/googleapis/cloud/metastore/v1beta", + protos = [":metastore_proto"], + deps = [ + "//google/api:annotations_go_proto", + "//google/longrunning:longrunning_go_proto", + "//google/type:dayofweek_go_proto", + ], +) + +go_gapic_library( + name = "metastore_go_gapic", + srcs = [":metastore_proto_with_info"], + grpc_service_config = "metastore_grpc_service_config.json", + importpath = "cloud.google.com/go/metastore/apiv1beta;metastore", + service_yaml = "metastore_v1beta.yaml", + metadata = True, + deps = [ + ":metastore_go_proto", + "//google/longrunning:longrunning_go_proto", + "@com_google_cloud_go//longrunning/autogen:go_default_library", + "@com_google_cloud_go//longrunning:go_default_library", + ], +) + +go_test( + name = "metastore_go_gapic_test", + srcs = [":metastore_go_gapic_srcjar_test"], + embed = [":metastore_go_gapic"], + importpath = "cloud.google.com/go/metastore/apiv1beta", +) + +# Open Source Packages +go_gapic_assembly_pkg( + name = "gapi-cloud-metastore-v1beta-go", + deps = [ + ":metastore_go_gapic", + ":metastore_go_gapic_srcjar-test.srcjar", + ":metastore_go_gapic_srcjar-metadata.srcjar", + ":metastore_go_proto", + ], +) + +############################################################################## +# Python +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "py_gapic_assembly_pkg", + "py_gapic_library", +) + +py_gapic_library( + name = "metastore_py_gapic", + srcs = [":metastore_proto"], + grpc_service_config = "metastore_grpc_service_config.json", +) + +# Open Source Packages +py_gapic_assembly_pkg( + name = "metastore-v1beta-py", + deps = [ + ":metastore_py_gapic", + ], +) + +############################################################################## +# PHP +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "php_gapic_assembly_pkg", + "php_gapic_library", + "php_grpc_library", + "php_proto_library", +) + +php_proto_library( + name = "metastore_php_proto", + deps = [":metastore_proto"], +) + +php_grpc_library( + name = "metastore_php_grpc", + srcs = [":metastore_proto"], + deps = [":metastore_php_proto"], +) + +php_gapic_library( + name = "metastore_php_gapic", + src = ":metastore_proto_with_info", + gapic_yaml = "metastore_gapis.yaml", + grpc_service_config = "metastore_grpc_service_config.json", + package = "google.cloud.metastore.v1beta", + service_yaml = "metastore_v1beta.yaml", + deps = [ + ":metastore_php_grpc", + ":metastore_php_proto", + ], +) + +# Open Source Packages +php_gapic_assembly_pkg( + name = "google-cloud-metastore-v1beta-php", + deps = [ + ":metastore_php_gapic", + ":metastore_php_grpc", + ":metastore_php_proto", + ], +) + +############################################################################## +# Node.js +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", +) + +nodejs_gapic_library( + name = "metastore_nodejs_gapic", + package_name = "@google-cloud/metastore", + src = ":metastore_proto_with_info", + extra_protoc_parameters = ["metadata"], + grpc_service_config = "metastore_grpc_service_config.json", + package = "google.cloud.metastore.v1beta", + service_yaml = "metastore_v1beta.yaml", + deps = [], +) + +nodejs_gapic_assembly_pkg( + name = "metastore-v1beta-nodejs", + deps = [ + ":metastore_nodejs_gapic", + ":metastore_proto", + ], +) + +############################################################################## +# Ruby +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "ruby_gapic_assembly_pkg", + "ruby_cloud_gapic_library", + "ruby_grpc_library", + "ruby_proto_library", +) + +ruby_proto_library( + name = "metastore_ruby_proto", + deps = [":metastore_proto"], +) + +ruby_grpc_library( + name = "metastore_ruby_grpc", + srcs = [":metastore_proto"], + deps = [":metastore_ruby_proto"], +) + +ruby_cloud_gapic_library( + name = "metastore_ruby_gapic", + srcs = [":metastore_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-metastore-v1beta", + ], + grpc_service_config = "metastore_grpc_service_config.json", + deps = [ + ":metastore_ruby_grpc", + ":metastore_ruby_proto", + ], +) + +# Open Source Packages +ruby_gapic_assembly_pkg( + name = "google-cloud-metastore-v1beta-ruby", + deps = [ + ":metastore_ruby_gapic", + ":metastore_ruby_grpc", + ":metastore_ruby_proto", + ], +) + +############################################################################## +# C# +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "csharp_gapic_assembly_pkg", + "csharp_gapic_library", + "csharp_grpc_library", + "csharp_proto_library", +) + +csharp_proto_library( + name = "metastore_csharp_proto", + deps = [":metastore_proto"], +) + +csharp_grpc_library( + name = "metastore_csharp_grpc", + srcs = [":metastore_proto"], + deps = [":metastore_csharp_proto"], +) + +csharp_gapic_library( + name = "metastore_csharp_gapic", + srcs = [":metastore_proto_with_info"], + common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "metastore_grpc_service_config.json", + deps = [ + ":metastore_csharp_grpc", + ":metastore_csharp_proto", + ], +) + +# Open Source Packages +csharp_gapic_assembly_pkg( + name = "google-cloud-metastore-v1beta-csharp", + deps = [ + ":metastore_csharp_gapic", + ":metastore_csharp_grpc", + ":metastore_csharp_proto", + ], +) + +############################################################################## +# C++ +############################################################################## +# Put your C++ rules here diff --git a/third_party/googleapis/google/cloud/metastore/v1beta/metastore.proto b/third_party/googleapis/google/cloud/metastore/v1beta/metastore.proto new file mode 100644 index 000000000..4d4a68c4c --- /dev/null +++ b/third_party/googleapis/google/cloud/metastore/v1beta/metastore.proto @@ -0,0 +1,1233 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.metastore.v1beta; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; +import "google/protobuf/wrappers.proto"; +import "google/type/dayofweek.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/metastore/v1beta;metastore"; +option java_multiple_files = true; +option java_outer_classname = "MetastoreProto"; +option java_package = "com.google.cloud.metastore.v1beta"; +option (google.api.resource_definition) = { + type: "compute.googleapis.com/Network" + pattern: "projects/{project}/global/networks/{network}" +}; + +// Configures and manages metastore services. +// Metastore services are fully managed, highly available, auto-scaled, +// auto-healing, OSS-native deployments of technical metadata management +// software. Each metastore service exposes a network endpoint through which +// metadata queries are served. Metadata queries can originate from a variety +// of sources, including Apache Hive, Apache Presto, and Apache Spark. +// +// The Dataproc Metastore API defines the following resource model: +// +// * The service works with a collection of Google Cloud projects, named: +// `/projects/*` +// * Each project has a collection of available locations, named: `/locations/*` +// (a location must refer to a Google Cloud `region`) +// * Each location has a collection of services, named: `/services/*` +// * Dataproc Metastore services are resources with names of the form: +// +// `/projects/{project_number}/locations/{location_id}/services/{service_id}`. +service DataprocMetastore { + option (google.api.default_host) = "metastore.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + + // Lists services in a project and location. + rpc ListServices(ListServicesRequest) returns (ListServicesResponse) { + option (google.api.http) = { + get: "/v1beta/{parent=projects/*/locations/*}/services" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets the details of a single service. + rpc GetService(GetServiceRequest) returns (Service) { + option (google.api.http) = { + get: "/v1beta/{name=projects/*/locations/*/services/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a metastore service in a project and location. + rpc CreateService(CreateServiceRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta/{parent=projects/*/locations/*}/services" + body: "service" + }; + option (google.api.method_signature) = "parent,service,service_id"; + option (google.longrunning.operation_info) = { + response_type: "Service" + metadata_type: "OperationMetadata" + }; + } + + // Updates the parameters of a single service. + rpc UpdateService(UpdateServiceRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1beta/{service.name=projects/*/locations/*/services/*}" + body: "service" + }; + option (google.api.method_signature) = "service,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Service" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a single service. + rpc DeleteService(DeleteServiceRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1beta/{name=projects/*/locations/*/services/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Lists imports in a service. + rpc ListMetadataImports(ListMetadataImportsRequest) returns (ListMetadataImportsResponse) { + option (google.api.http) = { + get: "/v1beta/{parent=projects/*/locations/*/services/*}/metadataImports" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single import. + rpc GetMetadataImport(GetMetadataImportRequest) returns (MetadataImport) { + option (google.api.http) = { + get: "/v1beta/{name=projects/*/locations/*/services/*/metadataImports/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new MetadataImport in a given project and location. + rpc CreateMetadataImport(CreateMetadataImportRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta/{parent=projects/*/locations/*/services/*}/metadataImports" + body: "metadata_import" + }; + option (google.api.method_signature) = "parent,metadata_import,metadata_import_id"; + option (google.longrunning.operation_info) = { + response_type: "MetadataImport" + metadata_type: "OperationMetadata" + }; + } + + // Updates a single import. + // Only the description field of MetadataImport is supported to be updated. + rpc UpdateMetadataImport(UpdateMetadataImportRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1beta/{metadata_import.name=projects/*/locations/*/services/*/metadataImports/*}" + body: "metadata_import" + }; + option (google.api.method_signature) = "metadata_import,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "MetadataImport" + metadata_type: "OperationMetadata" + }; + } + + // Exports metadata from a service. + rpc ExportMetadata(ExportMetadataRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta/{service=projects/*/locations/*/services/*}:exportMetadata" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "MetadataExport" + metadata_type: "OperationMetadata" + }; + } + + // Restores a service from a backup. + rpc RestoreService(RestoreServiceRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta/{service=projects/*/locations/*/services/*}:restore" + body: "*" + }; + option (google.api.method_signature) = "service,backup"; + option (google.longrunning.operation_info) = { + response_type: "Restore" + metadata_type: "OperationMetadata" + }; + } + + // Lists backups in a service. + rpc ListBackups(ListBackupsRequest) returns (ListBackupsResponse) { + option (google.api.http) = { + get: "/v1beta/{parent=projects/*/locations/*/services/*}/backups" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single backup. + rpc GetBackup(GetBackupRequest) returns (Backup) { + option (google.api.http) = { + get: "/v1beta/{name=projects/*/locations/*/services/*/backups/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new Backup in a given project and location. + rpc CreateBackup(CreateBackupRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta/{parent=projects/*/locations/*/services/*}/backups" + body: "backup" + }; + option (google.api.method_signature) = "parent,backup,backup_id"; + option (google.longrunning.operation_info) = { + response_type: "Backup" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a single backup. + rpc DeleteBackup(DeleteBackupRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1beta/{name=projects/*/locations/*/services/*/backups/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } +} + +// A managed metastore service that serves metadata queries. +message Service { + option (google.api.resource) = { + type: "metastore.googleapis.com/Service" + pattern: "projects/{project}/locations/{location}/services/{service}" + }; + + // The current state of the metastore service. + enum State { + // The state of the metastore service is unknown. + STATE_UNSPECIFIED = 0; + + // The metastore service is in the process of being created. + CREATING = 1; + + // The metastore service is running and ready to serve queries. + ACTIVE = 2; + + // The metastore service is entering suspension. Its query-serving + // availability may cease unexpectedly. + SUSPENDING = 3; + + // The metastore service is suspended and unable to serve queries. + SUSPENDED = 4; + + // The metastore service is being updated. It remains usable but cannot + // accept additional update requests or be deleted at this time. + UPDATING = 5; + + // The metastore service is undergoing deletion. It cannot be used. + DELETING = 6; + + // The metastore service has encountered an error and cannot be used. The + // metastore service should be deleted. + ERROR = 7; + } + + // Available service tiers. + enum Tier { + // The tier is not set. + TIER_UNSPECIFIED = 0; + + // The developer tier provides limited scalability and no fault tolerance. + // Good for low-cost proof-of-concept. + DEVELOPER = 1; + + // The enterprise tier provides multi-zone high availability, and sufficient + // scalability for enterprise-level Dataproc Metastore workloads. + ENTERPRISE = 3; + } + + // Release channels bundle features of varying levels of stability. Newer + // features may be introduced initially into less stable release channels and + // can be automatically promoted into more stable release channels. + enum ReleaseChannel { + // Release channel is not specified. + RELEASE_CHANNEL_UNSPECIFIED = 0; + + // The `CANARY` release channel contains the newest features, which may be + // unstable and subject to unresolved issues with no known workarounds. + // Services using the `CANARY` release channel are not subject to any SLAs. + CANARY = 1; + + // The `STABLE` release channel contains features that are considered stable + // and have been validated for production use. + STABLE = 2; + } + + // Configuration properties specific to the underlying metastore service + // technology (the software that serves metastore queries). + oneof metastore_config { + // Configuration information specific to running Hive metastore + // software as the metastore service. + HiveMetastoreConfig hive_metastore_config = 5; + } + + // Immutable. The relative resource name of the metastore service, of the form: + // + // `projects/{project_number}/locations/{location_id}/services/{service_id}`. + string name = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. The time when the metastore service was created. + google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time when the metastore service was last updated. + google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // User-defined labels for the metastore service. + map labels = 4; + + // Immutable. The relative resource name of the VPC network on which the instance can be + // accessed. It is specified in the following form: + // + // `projects/{project_number}/global/networks/{network_id}`. + string network = 7 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "compute.googleapis.com/Network" + } + ]; + + // Output only. The URI of the endpoint used to access the metastore service. + string endpoint_uri = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The TCP port at which the metastore service is reached. Default: 9083. + int32 port = 9; + + // Output only. The current state of the metastore service. + State state = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Additional information about the current state of the metastore service, if + // available. + string state_message = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A Cloud Storage URI (starting with `gs://`) that specifies where artifacts + // related to the metastore service are stored. + string artifact_gcs_uri = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The tier of the service. + Tier tier = 13; + + // The setting that defines how metastore metadata should be integrated with + // external services and systems. + MetadataIntegration metadata_integration = 14; + + // The one hour maintenance window of the metastore service. This specifies + // when the service can be restarted for maintenance purposes in UTC time. + MaintenanceWindow maintenance_window = 15; + + // Output only. The globally unique resource identifier of the metastore service. + string uid = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The metadata management activities of the metastore service. + MetadataManagementActivity metadata_management_activity = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. The release channel of the service. + // If unspecified, defaults to `STABLE`. + ReleaseChannel release_channel = 19 [(google.api.field_behavior) = IMMUTABLE]; +} + +// Specifies how metastore metadata should be integrated with external services. +message MetadataIntegration { + // The integration config for the Data Catalog service. + DataCatalogConfig data_catalog_config = 1; +} + +// Specifies how metastore metadata should be integrated with the Data Catalog +// service. +message DataCatalogConfig { + // Defines whether the metastore metadata should be synced to Data Catalog. + // The default value is to disable syncing metastore metadata to Data Catalog. + bool enabled = 2; +} + +// Maintenance window. This specifies when Dataproc Metastore +// may perform system maintenance operation to the service. +message MaintenanceWindow { + // The hour of day (0-23) when the window starts. + google.protobuf.Int32Value hour_of_day = 1; + + // The day of week, when the window starts. + google.type.DayOfWeek day_of_week = 2; +} + +// Specifies configuration information specific to running Hive metastore +// software as the metastore service. +message HiveMetastoreConfig { + // Immutable. The Hive metastore schema version. + string version = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // A mapping of Hive metastore configuration key-value pairs to apply to the + // Hive metastore (configured in `hive-site.xml`). The mappings + // override system defaults (some keys cannot be overridden). + map config_overrides = 2; + + // Information used to configure the Hive metastore service as a service + // principal in a Kerberos realm. To disable Kerberos, use the `UpdateService` + // method and specify this field's path + // (`hive_metastore_config.kerberos_config`) in the request's `update_mask` + // while omitting this field from the request's `service`. + KerberosConfig kerberos_config = 3; +} + +// Configuration information for a Kerberos principal. +message KerberosConfig { + // A Kerberos keytab file that can be used to authenticate a service principal + // with a Kerberos Key Distribution Center (KDC). + Secret keytab = 1; + + // A Kerberos principal that exists in the both the keytab the KDC + // to authenticate as. A typical principal is of the form + // `primary/instance@REALM`, but there is no exact format. + string principal = 2; + + // A Cloud Storage URI that specifies the path to a + // krb5.conf file. It is of the form gs://{bucket_name}/path/to/krb5.conf, + // although the file does not need to be named krb5.conf explicitly. + string krb5_config_gcs_uri = 3; +} + +// A securely stored value. +message Secret { + oneof value { + // The relative resource name of a Secret Manager secret version, in the + // following form: + // + // `projects/{project_number}/secrets/{secret_id}/versions/{version_id}`. + string cloud_secret = 2; + } +} + +// The metadata management activities of the metastore service. +message MetadataManagementActivity { + // Output only. The latest metadata exports of the metastore service. + repeated MetadataExport metadata_exports = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The latest restores of the metastore service. + repeated Restore restores = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A metastore resource that imports metadata. +message MetadataImport { + option (google.api.resource) = { + type: "metastore.googleapis.com/MetadataImport" + pattern: "projects/{project}/locations/{location}/services/{service}/metadataImports/{metadata_import}" + }; + + // A specification of the location of and metadata about a database dump from + // a relational database management system. + message DatabaseDump { + // The type of the database. + enum DatabaseType { + // The type of the source database is unknown. + DATABASE_TYPE_UNSPECIFIED = 0; + + // The type of the source database is MySQL. + MYSQL = 1; + } + + // The type of the database. + DatabaseType database_type = 1 [deprecated = true]; + + // A Cloud Storage object or folder URI that specifies the source from which + // to import metadata. It must begin with `gs://`. + string gcs_uri = 2; + + // The name of the source database. + string source_database = 3 [deprecated = true]; + + // Optional. The type of the database dump. If unspecified, defaults to `MYSQL`. + DatabaseDumpSpec.Type type = 4 [(google.api.field_behavior) = OPTIONAL]; + } + + // The current state of the metadata import. + enum State { + // The state of the metadata import is unknown. + STATE_UNSPECIFIED = 0; + + // The metadata import is running. + RUNNING = 1; + + // The metadata import completed successfully. + SUCCEEDED = 2; + + // The metadata import is being updated. + UPDATING = 3; + + // The metadata import failed, and attempted metadata changes were rolled + // back. + FAILED = 4; + } + + // The metadata to be imported. + oneof metadata { + // Immutable. A database dump from a pre-existing metastore's database. + DatabaseDump database_dump = 6 [(google.api.field_behavior) = IMMUTABLE]; + } + + // Immutable. The relative resource name of the metadata import, of the form: + // + // `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{metadata_import_id}`. + string name = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // The description of the metadata import. + string description = 2; + + // Output only. The time when the metadata import was created. + google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time when the metadata import was last updated. + google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The current state of the metadata import. + State state = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The details of a metadata export operation. +message MetadataExport { + // The current state of the metadata export. + enum State { + // The state of the metadata export is unknown. + STATE_UNSPECIFIED = 0; + + // The metadata export is running. + RUNNING = 1; + + // The metadata export completed successfully. + SUCCEEDED = 2; + + // The metadata export failed. + FAILED = 3; + + // The metadata export is cancelled. + CANCELLED = 4; + } + + oneof destination { + // Output only. A Cloud Storage URI of a folder that metadata are exported to, in the + // form of `gs:////`, where + // `` is automatically generated. + string destination_gcs_uri = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Output only. The time when the export started. + google.protobuf.Timestamp start_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time when the export ended. + google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The current state of the export. + State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The type of the database dump. + DatabaseDumpSpec.Type database_dump_type = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The details of a backup resource. +message Backup { + option (google.api.resource) = { + type: "metastore.googleapis.com/Backup" + pattern: "projects/{project}/locations/{location}/services/{service}/backups/{backup}" + }; + + // The current state of the backup. + enum State { + // The state of the backup is unknown. + STATE_UNSPECIFIED = 0; + + // The backup is being created. + CREATING = 1; + + // The backup is being deleted. + DELETING = 2; + + // The backup is active and ready to use. + ACTIVE = 3; + + // The backup failed. + FAILED = 4; + } + + // Immutable. The relative resource name of the backup, in the following form: + // + // `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}` + string name = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. The time when the backup was started. + google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time when the backup finished creating. + google.protobuf.Timestamp end_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The current state of the backup. + State state = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The revision of the service at the time of backup. + Service service_revision = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The description of the backup. + string description = 6; +} + +// The details of a metadata restore operation. +message Restore { + // The current state of the restore. + enum State { + // The state of the metadata restore is unknown. + STATE_UNSPECIFIED = 0; + + // The metadata restore is running. + RUNNING = 1; + + // The metadata restore completed successfully. + SUCCEEDED = 2; + + // The metadata restore failed. + FAILED = 3; + + // The metadata restore is cancelled. + CANCELLED = 4; + } + + // The type of restore. + enum RestoreType { + // The restore type is unknown. + RESTORE_TYPE_UNSPECIFIED = 0; + + // The service's metadata and configuration are restored. + FULL = 1; + + // Only the service's metadata is restored. + METADATA_ONLY = 2; + } + + // Output only. The time when the restore started. + google.protobuf.Timestamp start_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time when the restore ended. + google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The current state of the restore. + State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The relative resource name of the metastore service backup to restore + // from, in the following form: + // + // `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}` + string backup = 4 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "metastore.googleapis.com/Backup" + } + ]; + + // Output only. The type of restore. + RestoreType type = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The restore details containing the revision of the service to be restored + // to, in format of JSON. + string details = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request message for [DataprocMetastore.ListServices][google.cloud.metastore.v1beta.DataprocMetastore.ListServices]. +message ListServicesRequest { + // Required. The relative resource name of the location of metastore services to + // list, in the following form: + // + // `projects/{project_number}/locations/{location_id}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Optional. The maximum number of services to return. The response may contain less + // than the maximum number. If unspecified, no more than 500 services are + // returned. The maximum value is 1000; values above 1000 are changed to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous [DataprocMetastore.ListServices][google.cloud.metastore.v1beta.DataprocMetastore.ListServices] + // call. Provide this token to retrieve the subsequent page. + // + // To retrieve the first page, supply an empty page token. + // + // When paginating, other parameters provided to + // [DataprocMetastore.ListServices][google.cloud.metastore.v1beta.DataprocMetastore.ListServices] must match the call that provided the + // page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The filter to apply to list results. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specify the ordering of results as described in [Sorting + // Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). + // If not specified, the results will be sorted in the default order. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for [DataprocMetastore.ListServices][google.cloud.metastore.v1beta.DataprocMetastore.ListServices]. +message ListServicesResponse { + // The services in the specified location. + repeated Service services = 1; + + // A token that can be sent as `page_token` to retrieve the next page. If this + // field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Request message for [DataprocMetastore.GetService][google.cloud.metastore.v1beta.DataprocMetastore.GetService]. +message GetServiceRequest { + // Required. The relative resource name of the metastore service to retrieve, in the + // following form: + // + // `projects/{project_number}/locations/{location_id}/services/{service_id}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "metastore.googleapis.com/Service" + } + ]; +} + +// Request message for [DataprocMetastore.CreateService][google.cloud.metastore.v1beta.DataprocMetastore.CreateService]. +message CreateServiceRequest { + // Required. The relative resource name of the location in which to create a metastore + // service, in the following form: + // + // `projects/{project_number}/locations/{location_id}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The ID of the metastore service, which is used as the final + // component of the metastore service's name. + // + // This value must be between 2 and 63 characters long inclusive, begin with a + // letter, end with a letter or number, and consist of alpha-numeric + // ASCII characters or hyphens. + string service_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The Metastore service to create. The `name` field is + // ignored. The ID of the created metastore service must be provided in + // the request's `service_id` field. + Service service = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. A request ID. Specify a unique request ID to allow the server to ignore the + // request if it has completed. The server will ignore subsequent requests + // that provide a duplicate request ID for at least 60 minutes after the first + // request. + // + // For example, if an initial request times out, followed by another request + // with the same request ID, the server ignores the second request to prevent + // the creation of duplicate commitments. + // + // The request ID must be a valid + // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) + // A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. + string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for [DataprocMetastore.UpdateService][google.cloud.metastore.v1beta.DataprocMetastore.UpdateService]. +message UpdateServiceRequest { + // Required. A field mask used to specify the fields to be overwritten in the + // metastore service resource by the update. + // Fields specified in the `update_mask` are relative to the resource (not + // to the full request). A field is overwritten if it is in the mask. + google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The metastore service to update. The server only merges fields + // in the service if they are specified in `update_mask`. + // + // The metastore service's `name` field is used to identify the metastore + // service to be updated. + Service service = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. A request ID. Specify a unique request ID to allow the server to ignore the + // request if it has completed. The server will ignore subsequent requests + // that provide a duplicate request ID for at least 60 minutes after the first + // request. + // + // For example, if an initial request times out, followed by another request + // with the same request ID, the server ignores the second request to prevent + // the creation of duplicate commitments. + // + // The request ID must be a valid + // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) + // A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. + string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for [DataprocMetastore.DeleteService][google.cloud.metastore.v1beta.DataprocMetastore.DeleteService]. +message DeleteServiceRequest { + // Required. The relative resource name of the metastore service to delete, in the + // following form: + // + // `projects/{project_number}/locations/{location_id}/services/{service_id}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "metastore.googleapis.com/Service" + } + ]; + + // Optional. A request ID. Specify a unique request ID to allow the server to ignore the + // request if it has completed. The server will ignore subsequent requests + // that provide a duplicate request ID for at least 60 minutes after the first + // request. + // + // For example, if an initial request times out, followed by another request + // with the same request ID, the server ignores the second request to prevent + // the creation of duplicate commitments. + // + // The request ID must be a valid + // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) + // A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. + string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for [DataprocMetastore.ListMetadataImports][google.cloud.metastore.v1beta.DataprocMetastore.ListMetadataImports]. +message ListMetadataImportsRequest { + // Required. The relative resource name of the service whose metadata imports to + // list, in the following form: + // + // `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "metastore.googleapis.com/Service" + } + ]; + + // Optional. The maximum number of imports to return. The response may contain less + // than the maximum number. If unspecified, no more than 500 imports are + // returned. The maximum value is 1000; values above 1000 are changed to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous [DataprocMetastore.ListServices][google.cloud.metastore.v1beta.DataprocMetastore.ListServices] + // call. Provide this token to retrieve the subsequent page. + // + // To retrieve the first page, supply an empty page token. + // + // When paginating, other parameters provided to + // [DataprocMetastore.ListServices][google.cloud.metastore.v1beta.DataprocMetastore.ListServices] must match the call that provided the + // page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The filter to apply to list results. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specify the ordering of results as described in [Sorting + // Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). + // If not specified, the results will be sorted in the default order. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for [DataprocMetastore.ListMetadataImports][google.cloud.metastore.v1beta.DataprocMetastore.ListMetadataImports]. +message ListMetadataImportsResponse { + // The imports in the specified service. + repeated MetadataImport metadata_imports = 1; + + // A token that can be sent as `page_token` to retrieve the next page. If this + // field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Request message for [DataprocMetastore.GetMetadataImport][google.cloud.metastore.v1beta.DataprocMetastore.GetMetadataImport]. +message GetMetadataImportRequest { + // Required. The relative resource name of the metadata import to retrieve, in the + // following form: + // + // `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{import_id}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "metastore.googleapis.com/MetadataImport" + } + ]; +} + +// Request message for [DataprocMetastore.CreateMetadataImport][google.cloud.metastore.v1beta.DataprocMetastore.CreateMetadataImport]. +message CreateMetadataImportRequest { + // Required. The relative resource name of the service in which to create a metastore + // import, in the following form: + // + // `projects/{project_number}/locations/{location_id}/services/{service_id}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "metastore.googleapis.com/Service" + } + ]; + + // Required. The ID of the metadata import, which is used as the final component of the + // metadata import's name. + // + // This value must be between 1 and 64 characters long, begin with a letter, + // end with a letter or number, and consist of alpha-numeric ASCII characters + // or hyphens. + string metadata_import_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The metadata import to create. The `name` field is ignored. The ID of the + // created metadata import must be provided in the request's + // `metadata_import_id` field. + MetadataImport metadata_import = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. A request ID. Specify a unique request ID to allow the server to ignore the + // request if it has completed. The server will ignore subsequent requests + // that provide a duplicate request ID for at least 60 minutes after the first + // request. + // + // For example, if an initial request times out, followed by another request + // with the same request ID, the server ignores the second request to prevent + // the creation of duplicate commitments. + // + // The request ID must be a valid + // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) + // A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. + string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for [DataprocMetastore.UpdateMetadataImport][google.cloud.metastore.v1beta.DataprocMetastore.UpdateMetadataImport]. +message UpdateMetadataImportRequest { + // Required. A field mask used to specify the fields to be overwritten in the + // metadata import resource by the update. + // Fields specified in the `update_mask` are relative to the resource (not + // to the full request). A field is overwritten if it is in the mask. + google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The metadata import to update. The server only merges fields + // in the import if they are specified in `update_mask`. + // + // The metadata import's `name` field is used to identify the metastore + // import to be updated. + MetadataImport metadata_import = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. A request ID. Specify a unique request ID to allow the server to ignore the + // request if it has completed. The server will ignore subsequent requests + // that provide a duplicate request ID for at least 60 minutes after the first + // request. + // + // For example, if an initial request times out, followed by another request + // with the same request ID, the server ignores the second request to prevent + // the creation of duplicate commitments. + // + // The request ID must be a valid + // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) + // A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. + string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for [DataprocMetastore.ListBackups][google.cloud.metastore.v1beta.DataprocMetastore.ListBackups]. +message ListBackupsRequest { + // Required. The relative resource name of the service whose backups to + // list, in the following form: + // + // `projects/{project_number}/locations/{location_id}/services/{service_id}/backups`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "metastore.googleapis.com/Service" + } + ]; + + // Optional. The maximum number of backups to return. The response may contain less + // than the maximum number. If unspecified, no more than 500 backups are + // returned. The maximum value is 1000; values above 1000 are changed to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous [DataprocMetastore.ListBackups][google.cloud.metastore.v1beta.DataprocMetastore.ListBackups] + // call. Provide this token to retrieve the subsequent page. + // + // To retrieve the first page, supply an empty page token. + // + // When paginating, other parameters provided to + // [DataprocMetastore.ListBackups][google.cloud.metastore.v1beta.DataprocMetastore.ListBackups] must match the call that provided the + // page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The filter to apply to list results. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specify the ordering of results as described in [Sorting + // Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). + // If not specified, the results will be sorted in the default order. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for [DataprocMetastore.ListBackups][google.cloud.metastore.v1beta.DataprocMetastore.ListBackups]. +message ListBackupsResponse { + // The backups of the specified service. + repeated Backup backups = 1; + + // A token that can be sent as `page_token` to retrieve the next page. If this + // field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Request message for [DataprocMetastore.GetBackup][google.cloud.metastore.v1beta.DataprocMetastore.GetBackup]. +message GetBackupRequest { + // Required. The relative resource name of the backup to retrieve, in the + // following form: + // + // `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "metastore.googleapis.com/Backup" + } + ]; +} + +// Request message for [DataprocMetastore.CreateBackup][google.cloud.metastore.v1beta.DataprocMetastore.CreateBackup]. +message CreateBackupRequest { + // Required. The relative resource name of the service in which to create a backup + // of the following form: + // + // `projects/{project_number}/locations/{location_id}/services/{service_id}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "metastore.googleapis.com/Service" + } + ]; + + // Required. The ID of the backup, which is used as the final component of the + // backup's name. + // + // This value must be between 1 and 64 characters long, begin with a letter, + // end with a letter or number, and consist of alpha-numeric ASCII characters + // or hyphens. + string backup_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The backup to create. The `name` field is ignored. The ID of the created + // backup must be provided in the request's `backup_id` field. + Backup backup = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. A request ID. Specify a unique request ID to allow the server to ignore the + // request if it has completed. The server will ignore subsequent requests + // that provide a duplicate request ID for at least 60 minutes after the first + // request. + // + // For example, if an initial request times out, followed by another request + // with the same request ID, the server ignores the second request to prevent + // the creation of duplicate commitments. + // + // The request ID must be a valid + // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) + // A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. + string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for [DataprocMetastore.DeleteBackup][google.cloud.metastore.v1beta.DataprocMetastore.DeleteBackup]. +message DeleteBackupRequest { + // Required. The relative resource name of the backup to delete, in the + // following form: + // + // `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "metastore.googleapis.com/Backup" + } + ]; + + // Optional. A request ID. Specify a unique request ID to allow the server to ignore the + // request if it has completed. The server will ignore subsequent requests + // that provide a duplicate request ID for at least 60 minutes after the first + // request. + // + // For example, if an initial request times out, followed by another request + // with the same request ID, the server ignores the second request to prevent + // the creation of duplicate commitments. + // + // The request ID must be a valid + // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) + // A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. + string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for [DataprocMetastore.ExportMetadata][google.cloud.metastore.v1beta.DataprocMetastore.ExportMetadata]. +message ExportMetadataRequest { + // Required. Destination that metadata is exported to. + oneof destination { + // A Cloud Storage URI of a folder, in the format + // `gs:///`. A sub-folder + // `` containing exported files will be created below it. + string destination_gcs_folder = 2; + } + + // Required. The relative resource name of the metastore service to run export, in the + // following form: + // + // `projects/{project_id}/locations/{location_id}/services/{service_id}` + string service = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "metastore.googleapis.com/Service" + } + ]; + + // Optional. A request ID. Specify a unique request ID to allow the server to ignore the + // request if it has completed. The server will ignore subsequent requests + // that provide a duplicate request ID for at least 60 minutes after the first + // request. + // + // For example, if an initial request times out, followed by another request + // with the same request ID, the server ignores the second request to prevent + // the creation of duplicate commitments. + // + // The request ID must be a valid + // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). + // A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. + string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The type of the database dump. If unspecified, defaults to `MYSQL`. + DatabaseDumpSpec.Type database_dump_type = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for [DataprocMetastore.Restore][]. +message RestoreServiceRequest { + // Required. The relative resource name of the metastore service to run restore, in the + // following form: + // + // `projects/{project_id}/locations/{location_id}/services/{service_id}` + string service = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "metastore.googleapis.com/Service" + } + ]; + + // Required. The relative resource name of the metastore service backup to restore + // from, in the following form: + // + // `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}` + string backup = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "metastore.googleapis.com/Backup" + } + ]; + + // Optional. The type of restore. If unspecified, defaults to `METADATA_ONLY`. + Restore.RestoreType restore_type = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A request ID. Specify a unique request ID to allow the server to ignore the + // request if it has completed. The server will ignore subsequent requests + // that provide a duplicate request ID for at least 60 minutes after the first + // request. + // + // For example, if an initial request times out, followed by another request + // with the same request ID, the server ignores the second request to prevent + // the creation of duplicate commitments. + // + // The request ID must be a valid + // [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). + // A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. + string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Represents the metadata of a long-running operation. +message OperationMetadata { + // Output only. The time the operation was created. + google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time the operation finished running. + google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Server-defined resource path for the target of the operation. + string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Name of the verb executed by the operation. + string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Human-readable status of the operation, if any. + string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Identifies whether the caller has requested cancellation + // of the operation. Operations that have successfully been cancelled + // have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, + // corresponding to `Code.CANCELLED`. + bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. API version used to start the operation. + string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Metadata about the service in a location. +message LocationMetadata { + // A specification of a supported version of the Hive Metastore software. + message HiveMetastoreVersion { + // The semantic version of the Hive Metastore software. + string version = 1; + + // Whether `version` will be chosen by the server if a metastore service is + // created with a `HiveMetastoreConfig` that omits the `version`. + bool is_default = 2; + } + + // The versions of Hive Metastore that can be used when creating a new + // metastore service in this location. The server guarantees that exactly one + // `HiveMetastoreVersion` in the list will set `is_default`. + repeated HiveMetastoreVersion supported_hive_metastore_versions = 1; +} + +// The specification of database dump to import from or export to. +message DatabaseDumpSpec { + // The type of the database dump. + enum Type { + // The type of the database dump is unknown. + TYPE_UNSPECIFIED = 0; + + // Database dump is a MySQL dump file. + MYSQL = 1; + } + + +} diff --git a/third_party/googleapis/google/cloud/metastore/v1beta/metastore_gapis.yaml b/third_party/googleapis/google/cloud/metastore/v1beta/metastore_gapis.yaml new file mode 100644 index 000000000..d5c83a105 --- /dev/null +++ b/third_party/googleapis/google/cloud/metastore/v1beta/metastore_gapis.yaml @@ -0,0 +1,18 @@ +type: com.google.api.codegen.ConfigProto +config_schema_version: 2.0.0 +language_settings: + java: + package_name: com.google.cloud.metastore.v1beta + python: + package_name: google.cloud.metastore_v1beta.gapic + go: + package_name: cloud.google.com/go/metastore/apiv1beta + csharp: + package_name: Google.Cloud.Metastore.V1Beta + ruby: + package_name: Google::Cloud::Metastore::V1Beta + php: + package_name: Google\Cloud\Metastore\V1Beta + nodejs: + package_name: metastore.v1beta + domain_layer_location: google-cloud diff --git a/third_party/googleapis/google/cloud/metastore/v1beta/metastore_grpc_service_config.json b/third_party/googleapis/google/cloud/metastore/v1beta/metastore_grpc_service_config.json new file mode 100644 index 000000000..7a980dd34 --- /dev/null +++ b/third_party/googleapis/google/cloud/metastore/v1beta/metastore_grpc_service_config.json @@ -0,0 +1,55 @@ +{ + "methodConfig": [{ + "name": [{ "service": "google.cloud.metastore.v1beta.DataprocMetastore" }], + "timeout": "60s", + "retryPolicy": { + "maxAttempts": 5, + "initialBackoff": "1s", + "maxBackoff": "10s", + "backoffMultiplier": 1.3, + "retryableStatusCodes": ["UNAVAILABLE"] + } + }, + { + "name": [ + { + "service": "google.cloud.metastore.v1beta.DataprocMetastore", + "method": "CreateService" + }, + { + "service": "google.cloud.metastore.v1beta.DataprocMetastore", + "method": "UpdateService" + }, + { + "service": "google.cloud.metastore.v1beta.DataprocMetastore", + "method": "DeleteService" + }, + { + "service": "google.cloud.metastore.v1beta.DataprocMetastore", + "method": "CreateMetadataImport" + }, + { + "service": "google.cloud.metastore.v1beta.DataprocMetastore", + "method": "UpdateMetadataImport" + }, + { + "service": "google.cloud.metastore.v1beta.DataprocMetastore", + "method": "ExportMetadata" + }, + { + "service": "google.cloud.metastore.v1beta.DataprocMetastore", + "method": "RestoreService" + }, + { + "service": "google.cloud.metastore.v1beta.DataprocMetastore", + "method": "CreateBackup" + }, + { + "service": "google.cloud.metastore.v1beta.DataprocMetastore", + "method": "DeleteBackup" + } + ], + "timeout": "60s" + }] +} + diff --git a/third_party/googleapis/google/cloud/metastore/v1beta/metastore_v1beta.yaml b/third_party/googleapis/google/cloud/metastore/v1beta/metastore_v1beta.yaml new file mode 100644 index 000000000..d96088861 --- /dev/null +++ b/third_party/googleapis/google/cloud/metastore/v1beta/metastore_v1beta.yaml @@ -0,0 +1,102 @@ +type: google.api.Service +config_version: 3 +name: metastore.googleapis.com +title: Dataproc Metastore API + +apis: +- name: google.cloud.metastore.v1beta.DataprocMetastore + +types: +- name: google.cloud.metastore.v1beta.LocationMetadata +- name: google.cloud.metastore.v1beta.OperationMetadata + +documentation: + summary: |- + The Dataproc Metastore API is used to manage the lifecycle and + configuration of metastore services. + rules: + - selector: google.cloud.location.Locations.GetLocation + description: Gets information about a location. + + - selector: google.cloud.location.Locations.ListLocations + description: Lists information about the supported locations for this service. + + - selector: google.iam.v1.IAMPolicy.GetIamPolicy + description: |- + Gets the access control policy for a resource. Returns an empty policy + if the resource exists and does not have a policy set. + + - selector: google.iam.v1.IAMPolicy.SetIamPolicy + description: |- + Sets the access control policy on the specified resource. Replaces + any existing policy. + + Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` + errors. + + - selector: google.iam.v1.IAMPolicy.TestIamPermissions + description: |- + Returns permissions that a caller has on the specified resource. If the + resource does not exist, this will return an empty set of + permissions, not a `NOT_FOUND` error. + + Note: This operation is designed to be used for building + permission-aware UIs and command-line tools, not for authorization + checking. This operation may "fail open" without warning. + +backend: + rules: + - selector: google.cloud.location.Locations.GetLocation + deadline: 60.0 + - selector: google.cloud.location.Locations.ListLocations + deadline: 60.0 + - selector: 'google.cloud.metastore.v1beta.DataprocMetastore.*' + deadline: 60.0 + - selector: 'google.iam.v1.IAMPolicy.*' + deadline: 60.0 + - selector: 'google.longrunning.Operations.*' + deadline: 60.0 + +http: + rules: + - selector: google.cloud.location.Locations.GetLocation + get: '/v1beta/{name=projects/*/locations/*}' + - selector: google.cloud.location.Locations.ListLocations + get: '/v1beta/{name=projects/*}/locations' + - selector: google.iam.v1.IAMPolicy.GetIamPolicy + get: '/v1beta/{resource=projects/*/locations/*/services/*}:getIamPolicy' + - selector: google.iam.v1.IAMPolicy.SetIamPolicy + post: '/v1beta/{resource=projects/*/locations/*/services/*}:setIamPolicy' + body: '*' + - selector: google.iam.v1.IAMPolicy.TestIamPermissions + post: '/v1beta/{resource=projects/*/locations/*/services/*}:testIamPermissions' + body: '*' + - selector: google.longrunning.Operations.DeleteOperation + delete: '/v1beta/{name=projects/*/locations/*/operations/*}' + - selector: google.longrunning.Operations.GetOperation + get: '/v1beta/{name=projects/*/locations/*/operations/*}' + - selector: google.longrunning.Operations.ListOperations + get: '/v1beta/{name=projects/*/locations/*}/operations' + +authentication: + rules: + - selector: google.cloud.location.Locations.GetLocation + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform + - selector: google.cloud.location.Locations.ListLocations + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform + - selector: 'google.cloud.metastore.v1beta.DataprocMetastore.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform + - selector: 'google.iam.v1.IAMPolicy.*' + 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/third_party/googleapis/google/cloud/networkconnectivity/v1alpha1/BUILD.bazel b/third_party/googleapis/google/cloud/networkconnectivity/v1alpha1/BUILD.bazel new file mode 100644 index 000000000..c7f128934 --- /dev/null +++ b/third_party/googleapis/google/cloud/networkconnectivity/v1alpha1/BUILD.bazel @@ -0,0 +1,346 @@ +# This file was automatically generated by BuildFileGenerator +# https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/bazel + +# Most of the manual changes to this file will be overwritten. +# It's **only** allowed to change the following rule attribute values: +# - names of *_gapic_assembly_* rules +# - certain parameters of *_gapic_library rules, including but not limited to: +# * extra_protoc_parameters +# * extra_protoc_file_parameters +# The complete list of preserved parameters can be found in the source code. + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") +load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info") + +proto_library( + name = "networkconnectivity_proto", + srcs = [ + "common.proto", + "hub.proto", + ], + deps = [ + "//google/api:annotations_proto", + "//google/api:client_proto", + "//google/api:field_behavior_proto", + "//google/api:resource_proto", + "//google/longrunning:operations_proto", + "@com_google_protobuf//:field_mask_proto", + "@com_google_protobuf//:timestamp_proto", + ], +) + +proto_library_with_info( + name = "networkconnectivity_proto_with_info", + deps = [ + ":networkconnectivity_proto", + "//google/cloud:common_resources_proto", + ], +) + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_gapic_assembly_gradle_pkg", + "java_gapic_library", + "java_gapic_test", + "java_grpc_library", + "java_proto_library", +) + +java_proto_library( + name = "networkconnectivity_java_proto", + deps = [":networkconnectivity_proto"], +) + +java_grpc_library( + name = "networkconnectivity_java_grpc", + srcs = [":networkconnectivity_proto"], + deps = [":networkconnectivity_java_proto"], +) + +java_gapic_library( + name = "networkconnectivity_java_gapic", + srcs = [":networkconnectivity_proto_with_info"], + grpc_service_config = "networkconnectivity_grpc_service_config.json", + test_deps = [ + ":networkconnectivity_java_grpc", + ], + deps = [ + ":networkconnectivity_java_proto", + ], +) + +java_gapic_test( + name = "networkconnectivity_java_gapic_test_suite", + test_classes = [ + ], + runtime_deps = [":networkconnectivity_java_gapic_test"], +) + +# Open Source Packages +java_gapic_assembly_gradle_pkg( + name = "google-cloud-networkconnectivity-v1alpha1-java", + deps = [ + ":networkconnectivity_java_gapic", + ":networkconnectivity_java_grpc", + ":networkconnectivity_java_proto", + ":networkconnectivity_proto", + ], +) + +############################################################################## +# Go +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "go_gapic_assembly_pkg", + "go_gapic_library", + "go_proto_library", + "go_test", +) + +go_proto_library( + name = "networkconnectivity_go_proto", + compilers = ["@io_bazel_rules_go//proto:go_grpc"], + importpath = "google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1alpha1", + protos = [":networkconnectivity_proto"], + deps = [ + "//google/api:annotations_go_proto", + "//google/longrunning:longrunning_go_proto", + ], +) + +go_gapic_library( + name = "networkconnectivity_go_gapic", + srcs = [":networkconnectivity_proto_with_info"], + grpc_service_config = "networkconnectivity_grpc_service_config.json", + importpath = "cloud.google.com/go/networkconnectivity/apiv1alpha1;networkconnectivity", + service_yaml = "networkconnectivity_v1alpha1.yaml", + deps = [ + ":networkconnectivity_go_proto", + "//google/longrunning:longrunning_go_proto", + "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", + ], +) + +go_test( + name = "networkconnectivity_go_gapic_test", + srcs = [":networkconnectivity_go_gapic_srcjar_test"], + embed = [":networkconnectivity_go_gapic"], + importpath = "cloud.google.com/go/networkconnectivity/apiv1alpha1", +) + +# Open Source Packages +go_gapic_assembly_pkg( + name = "gapi-cloud-networkconnectivity-v1alpha1-go", + deps = [ + ":networkconnectivity_go_gapic", + ":networkconnectivity_go_gapic_srcjar-test.srcjar", + ":networkconnectivity_go_proto", + ], +) + +############################################################################## +# Python +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "py_gapic_assembly_pkg", + "py_gapic_library", +) + +py_gapic_library( + name = "networkconnectivity_py_gapic", + srcs = [":networkconnectivity_proto"], + grpc_service_config = "networkconnectivity_grpc_service_config.json", + opt_args = ["warehouse-package-name=google-cloud-network-connectivity"], +) + +# Open Source Packages +py_gapic_assembly_pkg( + name = "networkconnectivity-v1alpha1-py", + deps = [ + ":networkconnectivity_py_gapic", + ], +) + +############################################################################## +# PHP +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "php_gapic_assembly_pkg", + "php_gapic_library", + "php_grpc_library", + "php_proto_library", +) + +php_proto_library( + name = "networkconnectivity_php_proto", + deps = [":networkconnectivity_proto"], +) + +php_grpc_library( + name = "networkconnectivity_php_grpc", + srcs = [":networkconnectivity_proto"], + deps = [":networkconnectivity_php_proto"], +) + +php_gapic_library( + name = "networkconnectivity_php_gapic", + src = ":networkconnectivity_proto_with_info", + gapic_yaml = "networkconnectivity_gapic.yaml", + grpc_service_config = "networkconnectivity_grpc_service_config.json", + package = "google.cloud.networkconnectivity.v1alpha1", + service_yaml = "networkconnectivity_v1alpha1.yaml", + deps = [ + ":networkconnectivity_php_grpc", + ":networkconnectivity_php_proto", + ], +) + +# Open Source Packages +php_gapic_assembly_pkg( + name = "google-cloud-networkconnectivity-v1alpha1-php", + deps = [ + ":networkconnectivity_php_gapic", + ":networkconnectivity_php_grpc", + ":networkconnectivity_php_proto", + ], +) + +############################################################################## +# Node.js +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", +) + +nodejs_gapic_library( + name = "networkconnectivity_nodejs_gapic", + package_name = "@google-cloud/network-connectivity", + src = ":networkconnectivity_proto_with_info", + extra_protoc_parameters = ["metadata"], + grpc_service_config = "networkconnectivity_grpc_service_config.json", + package = "google.cloud.networkconnectivity.v1alpha1", + service_yaml = "networkconnectivity_v1alpha1.yaml", + deps = [], +) + +nodejs_gapic_assembly_pkg( + name = "networkconnectivity-v1alpha1-nodejs", + deps = [ + ":networkconnectivity_nodejs_gapic", + ":networkconnectivity_proto", + ], +) + +############################################################################## +# Ruby +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "ruby_gapic_assembly_pkg", + "ruby_cloud_gapic_library", + "ruby_grpc_library", + "ruby_proto_library", +) + +ruby_proto_library( + name = "networkconnectivity_ruby_proto", + deps = [":networkconnectivity_proto"], +) + +ruby_grpc_library( + name = "networkconnectivity_ruby_grpc", + srcs = [":networkconnectivity_proto"], + deps = [":networkconnectivity_ruby_proto"], +) + +ruby_cloud_gapic_library( + name = "networkconnectivity_ruby_gapic", + srcs = [":networkconnectivity_proto_with_info",], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-network_connectivity-v1alpha1", + "ruby-cloud-env-prefix=NETWORK_CONNECTIVITY", + "ruby-cloud-product-url=https://cloud.google.com/network-connectivity/docs", + "ruby-cloud-api-id=networkconnectivity.googleapis.com", + "ruby-cloud-api-shortname=networkconnectivity", + ], + grpc_service_config = "networkconnectivity_grpc_service_config.json", + ruby_cloud_description = "Network Connectivity is Google's suite of products that provide enterprise connectivity from your on-premises network or from another cloud provider to your Virtual Private Cloud (VPC) network.", + ruby_cloud_title = "Network Connectivity V1alpha1", + deps = [ + ":networkconnectivity_ruby_grpc", + ":networkconnectivity_ruby_proto", + ], +) + +# Open Source Packages +ruby_gapic_assembly_pkg( + name = "google-cloud-networkconnectivity-v1alpha1-ruby", + deps = [ + ":networkconnectivity_ruby_gapic", + ":networkconnectivity_ruby_grpc", + ":networkconnectivity_ruby_proto", + ], +) + +############################################################################## +# C# +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "csharp_gapic_assembly_pkg", + "csharp_gapic_library", + "csharp_grpc_library", + "csharp_proto_library", +) + +csharp_proto_library( + name = "networkconnectivity_csharp_proto", + deps = [":networkconnectivity_proto"], +) + +csharp_grpc_library( + name = "networkconnectivity_csharp_grpc", + srcs = [":networkconnectivity_proto"], + deps = [":networkconnectivity_csharp_proto"], +) + +csharp_gapic_library( + name = "networkconnectivity_csharp_gapic", + srcs = [":networkconnectivity_proto_with_info"], + common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "networkconnectivity_grpc_service_config.json", + deps = [ + ":networkconnectivity_csharp_grpc", + ":networkconnectivity_csharp_proto", + ], +) + +# Open Source Packages +csharp_gapic_assembly_pkg( + name = "google-cloud-networkconnectivity-v1alpha1-csharp", + deps = [ + ":networkconnectivity_csharp_gapic", + ":networkconnectivity_csharp_grpc", + ":networkconnectivity_csharp_proto", + ], +) + +############################################################################## +# C++ +############################################################################## +# Put your C++ rules here diff --git a/third_party/googleapis/google/cloud/networkconnectivity/v1alpha1/common.proto b/third_party/googleapis/google/cloud/networkconnectivity/v1alpha1/common.proto new file mode 100644 index 000000000..88c3fe585 --- /dev/null +++ b/third_party/googleapis/google/cloud/networkconnectivity/v1alpha1/common.proto @@ -0,0 +1,56 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.networkconnectivity.v1alpha1; + +import "google/api/field_behavior.proto"; +import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; + +option csharp_namespace = "Google.Cloud.NetworkConnectivity.V1Alpha1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1alpha1;networkconnectivity"; +option java_multiple_files = true; +option java_outer_classname = "CommonProto"; +option java_package = "com.google.cloud.networkconnectivity.v1alpha1"; +option php_namespace = "Google\\Cloud\\NetworkConnectivity\\V1alpha1"; +option ruby_package = "Google::Cloud::NetworkConnectivity::V1alpha1"; + +// Represents the metadata of the long-running operation. +message OperationMetadata { + // Output only. The time the operation was created. + google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time the operation finished running. + google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Server-defined resource path for the target of the operation. + string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Name of the verb executed by the operation. + string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Human-readable status of the operation, if any. + string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Identifies whether the user has requested cancellation + // of the operation. Operations that have successfully been cancelled + // have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, + // corresponding to `Code.CANCELLED`. + bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. API version used to start the operation. + string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/cloud/networkconnectivity/v1alpha1/hub.proto b/third_party/googleapis/google/cloud/networkconnectivity/v1alpha1/hub.proto new file mode 100644 index 000000000..6f1b8eede --- /dev/null +++ b/third_party/googleapis/google/cloud/networkconnectivity/v1alpha1/hub.proto @@ -0,0 +1,551 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.networkconnectivity.v1alpha1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.NetworkConnectivity.V1Alpha1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1alpha1;networkconnectivity"; +option java_multiple_files = true; +option java_outer_classname = "HubProto"; +option java_package = "com.google.cloud.networkconnectivity.v1alpha1"; +option php_namespace = "Google\\Cloud\\NetworkConnectivity\\V1alpha1"; +option ruby_package = "Google::Cloud::NetworkConnectivity::V1alpha1"; +option (google.api.resource_definition) = { + type: "compute.googleapis.com/VpnTunnel" + pattern: "projects/{project}/regions/{region}/vpnTunnels/{resource_id}" +}; +option (google.api.resource_definition) = { + type: "compute.googleapis.com/InterconnectAttachment" + pattern: "projects/{project}/regions/{region}/interconnectAttachments/{resource_id}" +}; +option (google.api.resource_definition) = { + type: "compute.googleapis.com/Instance" + pattern: "projects/{project}/zones/{zone}/instances/{instance}" +}; + +// Network Connectivity Center is a hub-and-spoke abstraction for +// network connectivity management in Google Cloud. It reduces +// operational complexity through a simple, centralized connectivity management +// model. +service HubService { + option (google.api.default_host) = "networkconnectivity.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + + // Lists Hubs in a given project and location. + rpc ListHubs(ListHubsRequest) returns (ListHubsResponse) { + option (google.api.http) = { + get: "/v1alpha1/{parent=projects/*/locations/global}/hubs" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single Hub. + rpc GetHub(GetHubRequest) returns (Hub) { + option (google.api.http) = { + get: "/v1alpha1/{name=projects/*/locations/global/hubs/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new Hub in a given project and location. + rpc CreateHub(CreateHubRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1alpha1/{parent=projects/*/locations/global}/hubs" + body: "hub" + }; + option (google.api.method_signature) = "parent,hub,hub_id"; + option (google.longrunning.operation_info) = { + response_type: "Hub" + metadata_type: "OperationMetadata" + }; + } + + // Updates the parameters of a single Hub. + rpc UpdateHub(UpdateHubRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1alpha1/{hub.name=projects/*/locations/global/hubs/*}" + body: "hub" + }; + option (google.api.method_signature) = "hub,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Hub" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a single Hub. + rpc DeleteHub(DeleteHubRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1alpha1/{name=projects/*/locations/global/hubs/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Lists Spokes in a given project and location. + rpc ListSpokes(ListSpokesRequest) returns (ListSpokesResponse) { + option (google.api.http) = { + get: "/v1alpha1/{parent=projects/*/locations/*}/spokes" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single Spoke. + rpc GetSpoke(GetSpokeRequest) returns (Spoke) { + option (google.api.http) = { + get: "/v1alpha1/{name=projects/*/locations/*/spokes/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new Spoke in a given project and location. + rpc CreateSpoke(CreateSpokeRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1alpha1/{parent=projects/*/locations/*}/spokes" + body: "spoke" + }; + option (google.api.method_signature) = "parent,spoke,spoke_id"; + option (google.longrunning.operation_info) = { + response_type: "Spoke" + metadata_type: "OperationMetadata" + }; + } + + // Updates the parameters of a single Spoke. + rpc UpdateSpoke(UpdateSpokeRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1alpha1/{spoke.name=projects/*/locations/*/spokes/*}" + body: "spoke" + }; + option (google.api.method_signature) = "spoke,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Spoke" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a single Spoke. + rpc DeleteSpoke(DeleteSpokeRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1alpha1/{name=projects/*/locations/*/spokes/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } +} + +// Network Connectivity Center is a hub-and-spoke abstraction for +// network connectivity management in Google Cloud. It reduces +// operational complexity through a simple, centralized connectivity management +// model. Following is the resource message of a hub. +message Hub { + option (google.api.resource) = { + type: "networkconnectivity.googleapis.com/Hub" + pattern: "projects/{project}/locations/global/hubs/{hub}" + }; + + // Immutable. The name of a Hub resource. + string name = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // Time when the Hub was created. + google.protobuf.Timestamp create_time = 2; + + // Time when the Hub was updated. + google.protobuf.Timestamp update_time = 3; + + // User-defined labels. + map labels = 4; + + // Short description of the hub resource. + string description = 5; + + // Output only. A list of the URIs of all attached spokes + repeated string spokes = 6 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "networkconnectivity.googleapis.com/Spoke" + } + ]; + + // Output only. Google-generated UUID for this resource. This is unique across all Hub + // resources. If a Hub resource is deleted and another with the same name is + // created, it gets a different unique_id. + string unique_id = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The current lifecycle state of this Hub. + State state = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A Spoke is an abstraction of a network attachment being attached +// to a Hub. A Spoke can be underlying a VPN tunnel, a +// VLAN (interconnect) attachment, a Router appliance, etc. +message Spoke { + option (google.api.resource) = { + type: "networkconnectivity.googleapis.com/Spoke" + pattern: "projects/{project}/locations/{location}/spokes/{spoke}" + }; + + // Immutable. The name of a Spoke resource. + string name = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // The time when the Spoke was created. + google.protobuf.Timestamp create_time = 2; + + // The time when the Spoke was updated. + google.protobuf.Timestamp update_time = 3; + + // User-defined labels. + map labels = 4; + + // Short description of the spoke resource + string description = 5; + + // The resource URL of the hub resource that the spoke is attached to + string hub = 6 [(google.api.resource_reference) = { + type: "networkconnectivity.googleapis.com/Hub" + }]; + + // The URIs of linked VPN tunnel resources + repeated string linked_vpn_tunnels = 12 [(google.api.resource_reference) = { + type: "compute.googleapis.com/VpnTunnel" + }]; + + // The URIs of linked interconnect attachment resources + repeated string linked_interconnect_attachments = 13 [(google.api.resource_reference) = { + type: "compute.googleapis.com/InterconnectAttachment" + }]; + + // The URIs of linked Router appliance resources + repeated RouterApplianceInstance linked_router_appliance_instances = 14; + + // Output only. Google-generated UUID for this resource. This is unique across all Spoke + // resources. If a Spoke resource is deleted and another with the same name is + // created, it gets a different unique_id. + string unique_id = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The current lifecycle state of this Hub. + State state = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request for [HubService.ListHubs][google.cloud.networkconnectivity.v1alpha1.HubService.ListHubs] method. +message ListHubsRequest { + // Required. The parent resource's name. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // The maximum number of results per page that should be returned. + int32 page_size = 2; + + // The page token. + string page_token = 3; + + // A filter expression that filters the results listed in the response. + string filter = 4; + + // Sort the results by a certain order. + string order_by = 5; +} + +// Response for [HubService.ListHubs][google.cloud.networkconnectivity.v1alpha1.HubService.ListHubs] method. +message ListHubsResponse { + // Hubs to be returned. + repeated Hub hubs = 1; + + // The next pagination token in the List response. It should be used as + // page_token for the following request. An empty value means no more result. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Request for [HubService.GetHub][google.cloud.networkconnectivity.v1alpha1.HubService.GetHub] method. +message GetHubRequest { + // Required. Name of the Hub resource to get. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networkconnectivity.googleapis.com/Hub" + } + ]; +} + +// Request for [HubService.CreateHub][google.cloud.networkconnectivity.v1alpha1.HubService.CreateHub] method. +message CreateHubRequest { + // Required. The parent resource's name of the Hub. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Optional. Unique id for the Hub to create. + string hub_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Initial values for a new Hub. + Hub hub = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and t + // he request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request for [HubService.UpdateHub][google.cloud.networkconnectivity.v1alpha1.HubService.UpdateHub] method. +message UpdateHubRequest { + // Optional. Field mask is used to specify the fields to be overwritten in the + // Hub resource by the update. + // The fields specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If the + // user does not provide a mask then all fields will be overwritten. + google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The state that the Hub should be in after the update. + Hub hub = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and t + // he request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// The request for [HubService.DeleteHub][google.cloud.networkconnectivity.v1alpha1.HubService.DeleteHub]. +message DeleteHubRequest { + // Required. The name of the Hub to delete. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networkconnectivity.googleapis.com/Hub" + } + ]; + + // Optional. An optional request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes after the first request. + // + // For example, consider a situation where you make an initial request and t + // he request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// The request for [HubService.ListSpokes][google.cloud.networkconnectivity.v1alpha1.HubService.ListSpokes]. +message ListSpokesRequest { + // Required. The parent's resource name. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // The maximum number of results per page that should be returned. + int32 page_size = 2; + + // The page token. + string page_token = 3; + + // A filter expression that filters the results listed in the response. + string filter = 4; + + // Sort the results by a certain order. + string order_by = 5; +} + +// The response for [HubService.ListSpokes][google.cloud.networkconnectivity.v1alpha1.HubService.ListSpokes]. +message ListSpokesResponse { + // Spokes to be returned. + repeated Spoke spokes = 1; + + // The next pagination token in the List response. It should be used as + // page_token for the following request. An empty value means no more result. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// The request for [HubService.GetSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.GetSpoke]. +message GetSpokeRequest { + // Required. The name of Spoke resource. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networkconnectivity.googleapis.com/Spoke" + } + ]; +} + +// The request for [HubService.CreateSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.CreateSpoke]. +message CreateSpokeRequest { + // Required. The parent's resource name of the Spoke. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Optional. Unique id for the Spoke to create. + string spoke_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Initial values for a new Hub. + Spoke spoke = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and t + // he request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request for [HubService.UpdateSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.UpdateSpoke] method. +message UpdateSpokeRequest { + // Optional. Field mask is used to specify the fields to be overwritten in the + // Spoke resource by the update. + // The fields specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If the + // user does not provide a mask then all fields will be overwritten. + google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The state that the Spoke should be in after the update. + Spoke spoke = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and t + // he request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// The request for [HubService.DeleteSpoke][google.cloud.networkconnectivity.v1alpha1.HubService.DeleteSpoke]. +message DeleteSpokeRequest { + // Required. The name of the Spoke to delete. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networkconnectivity.googleapis.com/Spoke" + } + ]; + + // Optional. An optional request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes after the first request. + // + // For example, consider a situation where you make an initial request and t + // he request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// RouterAppliance represents a Router appliance which is specified by a VM URI +// and a NIC address. +message RouterApplianceInstance { + // The URI of the virtual machine resource + string virtual_machine = 1 [(google.api.resource_reference) = { + type: "compute.googleapis.com/Instance" + }]; + + // The IP address of the network interface to use for peering. + string ip_address = 3; + + string network_interface = 2 [deprecated = true]; +} + +// The State enum represents the lifecycle of a Network Connectivity Center +// resource. +enum State { + // No state information available + STATE_UNSPECIFIED = 0; + + // The resource's create operation is in progress + CREATING = 1; + + // The resource is active + ACTIVE = 2; + + // The resource's Delete operation is in progress + DELETING = 3; +} diff --git a/third_party/googleapis/google/cloud/networkconnectivity/v1alpha1/networkconnectivity_gapic.yaml b/third_party/googleapis/google/cloud/networkconnectivity/v1alpha1/networkconnectivity_gapic.yaml new file mode 100644 index 000000000..b89921360 --- /dev/null +++ b/third_party/googleapis/google/cloud/networkconnectivity/v1alpha1/networkconnectivity_gapic.yaml @@ -0,0 +1,16 @@ +type: com.google.api.codegen.ConfigProto +config_schema_version: 2.0.0 +language_settings: + python: + package_name: google.cloud.networkconnectivity.v1alpha1.gapic + go: + package_name: cloud.google.com/go/cloud/networkconnectivity/apiv1alpha1 + csharp: + package_name: Google.Cloud.NetworkConnectivity.V1Alpha1 + ruby: + package_name: Google::Cloud::NetworkConnectivity::V1alpha1 + php: + package_name: Google\Cloud\NetworkConnectivity\V1alpha1 + nodejs: + package_name: networkconnectivity.v1alpha1 + domain_layer_location: google-cloud diff --git a/third_party/googleapis/google/cloud/networkconnectivity/v1alpha1/networkconnectivity_grpc_service_config.json b/third_party/googleapis/google/cloud/networkconnectivity/v1alpha1/networkconnectivity_grpc_service_config.json new file mode 100644 index 000000000..d2db7958f --- /dev/null +++ b/third_party/googleapis/google/cloud/networkconnectivity/v1alpha1/networkconnectivity_grpc_service_config.json @@ -0,0 +1,24 @@ +{ + "methodConfig": [{ + "name": [{ "service": "google.cloud.networkconnectivity.v1alpha1.HubService" }], + "timeout": "60s", + "retryPolicy": { + "maxAttempts": 5, + "initialBackoff": "1s", + "maxBackoff": "10s", + "backoffMultiplier": 1.3, + "retryableStatusCodes": ["UNAVAILABLE"] + } + }, + { + "name": [ + { "service": "google.cloud.networkconnectivity.v1alpha1.HubService", "method": "CreateHub" }, + { "service": "google.cloud.networkconnectivity.v1alpha1.HubService", "method": "UpdateHub" }, + { "service": "google.cloud.networkconnectivity.v1alpha1.HubService", "method": "DeleteHub" }, + { "service": "google.cloud.networkconnectivity.v1alpha1.HubService", "method": "CreateSpoke" }, + { "service": "google.cloud.networkconnectivity.v1alpha1.HubService", "method": "UpdateSpoke" }, + { "service": "google.cloud.networkconnectivity.v1alpha1.HubService", "method": "DeleteSpoke" } + ], + "timeout": "60s" + }] +} diff --git a/third_party/googleapis/google/cloud/networkconnectivity/v1alpha1/networkconnectivity_v1alpha1.yaml b/third_party/googleapis/google/cloud/networkconnectivity/v1alpha1/networkconnectivity_v1alpha1.yaml new file mode 100644 index 000000000..f3e8dbfec --- /dev/null +++ b/third_party/googleapis/google/cloud/networkconnectivity/v1alpha1/networkconnectivity_v1alpha1.yaml @@ -0,0 +1,119 @@ +type: google.api.Service +config_version: 3 +name: networkconnectivity.googleapis.com +title: Network Connectivity API + +apis: +- name: google.cloud.networkconnectivity.v1alpha1.HubService + +types: +- name: google.cloud.networkconnectivity.v1alpha1.OperationMetadata + +documentation: + summary: |- + The Network Connectivity API will be home to various services which provide + information pertaining to network connectivity. + overview: |- + The Network Connectivity API will be home to various services which + provide information pertaining to network connectivity. This includes + information like interconnects, VPNs, VPCs, routing information, ip + address details, etc. This information will help customers verify their + network configurations and helps them to discover misconfigurations, + inconsistencies, etc. + rules: + - selector: google.cloud.location.Locations.GetLocation + description: Gets information about a location. + + - selector: google.cloud.location.Locations.ListLocations + description: Lists information about the supported locations for this service. + + - selector: google.iam.v1.IAMPolicy.GetIamPolicy + description: |- + Gets the access control policy for a resource. Returns an empty policy + if the resource exists and does not have a policy set. + + - selector: google.iam.v1.IAMPolicy.SetIamPolicy + description: |- + Sets the access control policy on the specified resource. Replaces + any existing policy. + + Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` + errors. + + - selector: google.iam.v1.IAMPolicy.TestIamPermissions + description: |- + Returns permissions that a caller has on the specified resource. If the + resource does not exist, this will return an empty set of + permissions, not a `NOT_FOUND` error. + + Note: This operation is designed to be used for building + permission-aware UIs and command-line tools, not for authorization + checking. This operation may "fail open" without warning. + +backend: + rules: + - selector: google.cloud.location.Locations.GetLocation + deadline: 60.0 + - selector: google.cloud.location.Locations.ListLocations + deadline: 60.0 + - selector: 'google.cloud.networkconnectivity.v1alpha1.HubService.*' + deadline: 60.0 + - selector: 'google.iam.v1.IAMPolicy.*' + deadline: 60.0 + - selector: 'google.longrunning.Operations.*' + deadline: 60.0 + +http: + rules: + - selector: google.cloud.location.Locations.GetLocation + get: '/v1alpha1/{name=projects/*/locations/*}' + - selector: google.cloud.location.Locations.ListLocations + get: '/v1alpha1/{name=projects/*}/locations' + - selector: google.iam.v1.IAMPolicy.GetIamPolicy + get: '/v1alpha1/{resource=projects/*/locations/global/hubs/*}:getIamPolicy' + additional_bindings: + - get: '/v1alpha1/{resource=projects/*/locations/*/spokes/*}:getIamPolicy' + - selector: google.iam.v1.IAMPolicy.SetIamPolicy + post: '/v1alpha1/{resource=projects/*/locations/global/hubs/*}:setIamPolicy' + body: '*' + additional_bindings: + - post: '/v1alpha1/{resource=projects/*/locations/*/spokes/*}:setIamPolicy' + body: '*' + - selector: google.iam.v1.IAMPolicy.TestIamPermissions + post: '/v1alpha1/{resource=projects/*/locations/global/hubs/*}:testIamPermissions' + body: '*' + additional_bindings: + - post: '/v1alpha1/{resource=projects/*/locations/*/spokes/*}:testIamPermissions' + body: '*' + - selector: google.longrunning.Operations.CancelOperation + post: '/v1alpha1/{name=projects/*/locations/*/operations/*}:cancel' + body: '*' + - selector: google.longrunning.Operations.DeleteOperation + delete: '/v1alpha1/{name=projects/*/locations/*/operations/*}' + - selector: google.longrunning.Operations.GetOperation + get: '/v1alpha1/{name=projects/*/locations/*/operations/*}' + - selector: google.longrunning.Operations.ListOperations + get: '/v1alpha1/{name=projects/*/locations/*}/operations' + +authentication: + rules: + - selector: google.cloud.location.Locations.GetLocation + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform + - selector: google.cloud.location.Locations.ListLocations + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform + - selector: 'google.cloud.networkconnectivity.v1alpha1.HubService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform + - selector: 'google.iam.v1.IAMPolicy.*' + 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/third_party/googleapis/google/cloud/notebooks/v1beta1/BUILD.bazel b/third_party/googleapis/google/cloud/notebooks/v1beta1/BUILD.bazel index cbbacfbac..672ad7967 100644 --- a/third_party/googleapis/google/cloud/notebooks/v1beta1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/notebooks/v1beta1/BUILD.bazel @@ -68,11 +68,8 @@ java_grpc_library( java_gapic_library( name = "notebooks_java_gapic", - src = ":notebooks_proto_with_info", - gapic_yaml = "notebooks_gapic.yaml", + srcs = [":notebooks_proto_with_info"], grpc_service_config = "notebooks_grpc_service_config.json", - package = "google.cloud.notebooks.v1beta1", - service_yaml = "notebooks_v1beta1.yaml", test_deps = [ ":notebooks_java_grpc", ], @@ -130,9 +127,9 @@ go_gapic_library( service_yaml = "notebooks_v1beta1.yaml", deps = [ ":notebooks_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", ], ) @@ -156,15 +153,12 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) - py_gapic_library( name = "notebooks_py_gapic", srcs = [":notebooks_proto"], @@ -235,10 +229,11 @@ load( nodejs_gapic_library( name = "notebooks_nodejs_gapic", + package_name = "@google-cloud/notebooks", src = ":notebooks_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "notebooks_grpc_service_config.json", package = "google.cloud.notebooks.v1beta1", - package_name = "@google-cloud/notebooks", service_yaml = "notebooks_v1beta1.yaml", deps = [], ) @@ -257,7 +252,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -273,13 +268,19 @@ ruby_grpc_library( deps = [":notebooks_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "notebooks_ruby_gapic", - src = ":notebooks_proto_with_info", - gapic_yaml = "notebooks_gapic.yaml", + srcs = [":notebooks_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-notebooks-v1beta1", + "ruby-cloud-env-prefix=NOTEBOOKS", + "ruby-cloud-product-url=https://cloud.google.com/ai-platform-notebooks", + "ruby-cloud-api-id=notebooks.googleapis.com", + "ruby-cloud-api-shortname=notebooks", + ], grpc_service_config = "notebooks_grpc_service_config.json", - package = "google.cloud.notebooks.v1beta1", - service_yaml = "notebooks_v1beta1.yaml", + ruby_cloud_description = "AI Platform Notebooks makes it easy to manage JupyterLab instances through a protected, publicly available notebook instance URL. A JupyterLab instance is a Deep Learning virtual machine instance with the latest machine learning and data science libraries pre-installed.", + ruby_cloud_title = "AI Platform Notebooks V1beta1", deps = [ ":notebooks_ruby_grpc", ":notebooks_ruby_proto", @@ -321,8 +322,8 @@ csharp_grpc_library( csharp_gapic_library( name = "notebooks_csharp_gapic", srcs = [":notebooks_proto_with_info"], - grpc_service_config = "notebooks_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "notebooks_grpc_service_config.json", deps = [ ":notebooks_csharp_grpc", ":notebooks_csharp_proto", diff --git a/third_party/googleapis/google/cloud/notebooks/v1beta1/notebooks_gapic.yaml b/third_party/googleapis/google/cloud/notebooks/v1beta1/notebooks_gapic.yaml index 5d8eab1b7..b98aa012b 100644 --- a/third_party/googleapis/google/cloud/notebooks/v1beta1/notebooks_gapic.yaml +++ b/third_party/googleapis/google/cloud/notebooks/v1beta1/notebooks_gapic.yaml @@ -1,8 +1,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 language_settings: - java: - package_name: com.google.cloud.notebooks.v1beta1 python: package_name: google.cloud.notebooks_v1beta1.gapic nodejs: diff --git a/third_party/googleapis/google/cloud/orgpolicy/orgpolicy_gapic.yaml b/third_party/googleapis/google/cloud/orgpolicy/orgpolicy_gapic.yaml new file mode 100644 index 000000000..f18a775f5 --- /dev/null +++ b/third_party/googleapis/google/cloud/orgpolicy/orgpolicy_gapic.yaml @@ -0,0 +1,18 @@ +type: com.google.api.codegen.ConfigProto +config_schema_version: 2.0.0 +language_settings: + java: + package_name: com.google.cloud.orgpolicy.v2 + python: + package_name: google.cloud.orgpolicy_v2.gapic + go: + package_name: cloud.google.com/go/orgpolicy/apiv2 + csharp: + package_name: Google.Cloud.OrgPolicy.V2 + ruby: + package_name: Google::Cloud::OrgPolicy::V2 + php: + package_name: Google\Cloud\OrgPolicy\V2 + nodejs: + package_name: orgpolicy.v2 + domain_layer_location: google-cloud diff --git a/third_party/googleapis/google/cloud/orgpolicy/v1/BUILD.bazel b/third_party/googleapis/google/cloud/orgpolicy/v1/BUILD.bazel index 35ac2f458..3e0d09b3c 100644 --- a/third_party/googleapis/google/cloud/orgpolicy/v1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/orgpolicy/v1/BUILD.bazel @@ -25,9 +25,9 @@ proto_library( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", + "java_gapic_assembly_gradle_pkg", "java_grpc_library", "java_proto_library", - "java_gapic_assembly_gradle_pkg", ) java_proto_library( @@ -75,9 +75,9 @@ go_proto_library( load( "@com_google_googleapis_imports//:imports.bzl", "moved_proto_library", + "py_gapic_assembly_pkg", "py_grpc_library", "py_proto_library", - "py_gapic_assembly_pkg", ) moved_proto_library( @@ -108,11 +108,12 @@ py_grpc_library( py_gapic_assembly_pkg( name = "orgpolicy-v1-py", deps = [ + ":orgpolicy_proto", ":orgpolicy_py_grpc", ":orgpolicy_py_proto", - ":orgpolicy_proto", ], ) + ############################################################################## # PHP ############################################################################## @@ -142,7 +143,6 @@ load( "nodejs_gapic_library", ) - ############################################################################## # Ruby ############################################################################## diff --git a/third_party/googleapis/google/cloud/orgpolicy/v2/BUILD.bazel b/third_party/googleapis/google/cloud/orgpolicy/v2/BUILD.bazel new file mode 100644 index 000000000..f41846ff0 --- /dev/null +++ b/third_party/googleapis/google/cloud/orgpolicy/v2/BUILD.bazel @@ -0,0 +1,343 @@ +# This file was automatically generated by BuildFileGenerator +# https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/bazel + +# Most of the manual changes to this file will be overwritten. +# It's **only** allowed to change the following rule attribute values: +# - names of *_gapic_assembly_* rules +# - certain parameters of *_gapic_library rules, including but not limited to: +# * extra_protoc_parameters +# * extra_protoc_file_parameters +# The complete list of preserved parameters can be found in the source code. + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") +load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info") + +proto_library( + name = "orgpolicy_proto", + srcs = [ + "constraint.proto", + "orgpolicy.proto", + ], + deps = [ + "//google/api:annotations_proto", + "//google/api:client_proto", + "//google/api:field_behavior_proto", + "//google/api:resource_proto", + "//google/type:expr_proto", + "@com_google_protobuf//:empty_proto", + "@com_google_protobuf//:timestamp_proto", + ], +) + +proto_library_with_info( + name = "orgpolicy_proto_with_info", + deps = [ + ":orgpolicy_proto", + "//google/cloud:common_resources_proto", + ], +) + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_gapic_assembly_gradle_pkg", + "java_gapic_library", + "java_gapic_test", + "java_grpc_library", + "java_proto_library", +) + +java_proto_library( + name = "orgpolicy_java_proto", + deps = [":orgpolicy_proto"], +) + +java_grpc_library( + name = "orgpolicy_java_grpc", + srcs = [":orgpolicy_proto"], + deps = [":orgpolicy_java_proto"], +) + +java_gapic_library( + name = "orgpolicy_java_gapic", + srcs = [":orgpolicy_proto_with_info"], + grpc_service_config = "orgpolicy_grpc_service_config.json", + test_deps = [ + ":orgpolicy_java_grpc", + ], + deps = [ + ":orgpolicy_java_proto", + ], +) + +java_gapic_test( + name = "orgpolicy_java_gapic_test_suite", + test_classes = [ + "com.google.cloud.orgpolicy.v2.OrgPolicyClientTest", + ], + runtime_deps = [":orgpolicy_java_gapic_test"], +) + +# Open Source Packages +java_gapic_assembly_gradle_pkg( + name = "google-cloud-orgpolicy-v2-java", + deps = [ + ":orgpolicy_java_gapic", + ":orgpolicy_java_grpc", + ":orgpolicy_java_proto", + ":orgpolicy_proto", + ], +) + +############################################################################## +# Go +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "go_gapic_assembly_pkg", + "go_gapic_library", + "go_proto_library", + "go_test", +) + +go_proto_library( + name = "orgpolicy_go_proto", + compilers = ["@io_bazel_rules_go//proto:go_grpc"], + importpath = "google.golang.org/genproto/googleapis/cloud/orgpolicy/v2", + protos = [":orgpolicy_proto"], + deps = [ + "//google/api:annotations_go_proto", + "//google/type:expr_go_proto", + ], +) + +go_gapic_library( + name = "orgpolicy_go_gapic", + srcs = [":orgpolicy_proto_with_info"], + grpc_service_config = "orgpolicy_grpc_service_config.json", + importpath = "cloud.google.com/go/orgpolicy/apiv2;orgpolicy", + service_yaml = "orgpolicy_v2.yaml", + deps = [ + ":orgpolicy_go_proto", + ], +) + +go_test( + name = "orgpolicy_go_gapic_test", + srcs = [":orgpolicy_go_gapic_srcjar_test"], + embed = [":orgpolicy_go_gapic"], + importpath = "cloud.google.com/go/orgpolicy/apiv2", +) + +# Open Source Packages +go_gapic_assembly_pkg( + name = "gapi-cloud-orgpolicy-v2-go", + deps = [ + ":orgpolicy_go_gapic", + ":orgpolicy_go_gapic_srcjar-test.srcjar", + ":orgpolicy_go_proto", + ], +) + +############################################################################## +# Python +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "py_gapic_assembly_pkg", + "py_gapic_library", +) + +py_gapic_library( + name = "orgpolicy_py_gapic", + srcs = [":orgpolicy_proto"], + grpc_service_config = "orgpolicy_grpc_service_config.json", +) + +# Open Source Packages +py_gapic_assembly_pkg( + name = "orgpolicy-v2-py", + deps = [ + ":orgpolicy_py_gapic", + ], +) + +############################################################################## +# PHP +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "php_gapic_assembly_pkg", + "php_gapic_library", + "php_grpc_library", + "php_proto_library", +) + +php_proto_library( + name = "orgpolicy_php_proto", + deps = [":orgpolicy_proto"], +) + +php_grpc_library( + name = "orgpolicy_php_grpc", + srcs = [":orgpolicy_proto"], + deps = [":orgpolicy_php_proto"], +) + +php_gapic_library( + name = "orgpolicy_php_gapic", + src = ":orgpolicy_proto_with_info", + gapic_yaml = "orgpolicy_gapic.yaml", + grpc_service_config = "orgpolicy_grpc_service_config.json", + package = "google.cloud.orgpolicy.v2", + service_yaml = "orgpolicy_v2.yaml", + deps = [ + ":orgpolicy_php_grpc", + ":orgpolicy_php_proto", + ], +) + +# Open Source Packages +php_gapic_assembly_pkg( + name = "google-cloud-orgpolicy-v2-php", + deps = [ + ":orgpolicy_php_gapic", + ":orgpolicy_php_grpc", + ":orgpolicy_php_proto", + ], +) + +############################################################################## +# Node.js +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", +) + +nodejs_gapic_library( + name = "orgpolicy_nodejs_gapic", + package_name = "@google-cloud/org-policy", + src = ":orgpolicy_proto_with_info", + extra_protoc_parameters = ["metadata"], + grpc_service_config = "orgpolicy_grpc_service_config.json", + package = "google.cloud.orgpolicy.v2", + service_yaml = "orgpolicy_v2.yaml", + deps = [], +) + +nodejs_gapic_assembly_pkg( + name = "orgpolicy-v2-nodejs", + deps = [ + ":orgpolicy_nodejs_gapic", + ":orgpolicy_proto", + ], +) + +############################################################################## +# Ruby +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "ruby_gapic_assembly_pkg", + "ruby_cloud_gapic_library", + "ruby_grpc_library", + "ruby_proto_library", +) + +ruby_proto_library( + name = "orgpolicy_ruby_proto", + deps = [":orgpolicy_proto"], +) + +ruby_grpc_library( + name = "orgpolicy_ruby_grpc", + srcs = [":orgpolicy_proto"], + deps = [":orgpolicy_ruby_proto"], +) + +ruby_cloud_gapic_library( + name = "orgpolicy_ruby_gapic", + srcs = [":orgpolicy_proto_with_info",], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-org_policy-v2", + "ruby-cloud-env-prefix=ORG_POLICY", + "ruby-cloud-product-url=https://cloud.google.com/resource-manager/docs/organization-policy/overview", + "ruby-cloud-api-id=orgpolicy.googleapis.com", + "ruby-cloud-api-shortname=orgpolicy", + ], + grpc_service_config = "orgpolicy_grpc_service_config.json", + ruby_cloud_description = "The Cloud Org Policy service provides a simple mechanism for organizations to restrict the allowed configurations across their entire Cloud Resource hierarchy.", + ruby_cloud_title = "Organization Policy V2", + deps = [ + ":orgpolicy_ruby_grpc", + ":orgpolicy_ruby_proto", + ], +) + +# Open Source Packages +ruby_gapic_assembly_pkg( + name = "google-cloud-orgpolicy-v2-ruby", + deps = [ + ":orgpolicy_ruby_gapic", + ":orgpolicy_ruby_grpc", + ":orgpolicy_ruby_proto", + ], +) + +############################################################################## +# C# +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "csharp_gapic_assembly_pkg", + "csharp_gapic_library", + "csharp_grpc_library", + "csharp_proto_library", +) + +csharp_proto_library( + name = "orgpolicy_csharp_proto", + deps = [":orgpolicy_proto"], +) + +csharp_grpc_library( + name = "orgpolicy_csharp_grpc", + srcs = [":orgpolicy_proto"], + deps = [":orgpolicy_csharp_proto"], +) + +csharp_gapic_library( + name = "orgpolicy_csharp_gapic", + srcs = [":orgpolicy_proto_with_info"], + common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "orgpolicy_grpc_service_config.json", + deps = [ + ":orgpolicy_csharp_grpc", + ":orgpolicy_csharp_proto", + ], +) + +# Open Source Packages +csharp_gapic_assembly_pkg( + name = "google-cloud-orgpolicy-v2-csharp", + deps = [ + ":orgpolicy_csharp_gapic", + ":orgpolicy_csharp_grpc", + ":orgpolicy_csharp_proto", + ], +) + +############################################################################## +# C++ +############################################################################## +# Put your C++ rules here diff --git a/third_party/googleapis/google/cloud/orgpolicy/v2/constraint.proto b/third_party/googleapis/google/cloud/orgpolicy/v2/constraint.proto new file mode 100644 index 000000000..a9051acb2 --- /dev/null +++ b/third_party/googleapis/google/cloud/orgpolicy/v2/constraint.proto @@ -0,0 +1,127 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.orgpolicy.v2; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Cloud.OrgPolicy.V2"; +option go_package = "google.golang.org/genproto/googleapis/cloud/orgpolicy/v2;orgpolicy"; +option java_multiple_files = true; +option java_outer_classname = "ConstraintProto"; +option java_package = "com.google.cloud.orgpolicy.v2"; +option php_namespace = "Google\\Cloud\\OrgPolicy\\V2"; +option ruby_package = "Google::Cloud::OrgPolicy::V2"; + +// A `constraint` describes a way to restrict resource's configuration. For +// example, you could enforce a constraint that controls which cloud services +// can be activated across an organization, or whether a Compute Engine instance +// can have serial port connections established. `Constraints` can be configured +// by the organization's policy adminstrator to fit the needs of the organzation +// by setting a `policy` that includes `constraints` at different locations in +// the organization's resource hierarchy. Policies are inherited down the +// resource hierarchy from higher levels, but can also be overridden. For +// details about the inheritance rules please read about +// [`policies`][google.cloud.OrgPolicy.v2.Policy]. +// +// `Constraints` have a default behavior determined by the `constraint_default` +// field, which is the enforcement behavior that is used in the absence of a +// `policy` being defined or inherited for the resource in question. +message Constraint { + option (google.api.resource) = { + type: "orgpolicy.googleapis.com/Constraint" + pattern: "projects/{project}/constraints/{constraint}" + pattern: "folders/{folder}/constraints/{constraint}" + pattern: "organizations/{organization}/constraints/{constraint}" + }; + + // A `Constraint` that allows or disallows a list of string values, which are + // configured by an Organization's policy administrator with a `Policy`. + message ListConstraint { + // Indicates whether values grouped into categories can be used in + // `Policy.allowed_values` and `Policy.denied_values`. For example, + // `"in:Python"` would match any value in the 'Python' group. + bool supports_in = 1; + + // Indicates whether subtrees of Cloud Resource Manager resource hierarchy + // can be used in `Policy.allowed_values` and `Policy.denied_values`. For + // example, `"under:folders/123"` would match any resource under the + // 'folders/123' folder. + bool supports_under = 2; + } + + // A `Constraint` that is either enforced or not. + // + // For example a constraint `constraints/compute.disableSerialPortAccess`. + // If it is enforced on a VM instance, serial port connections will not be + // opened to that instance. + message BooleanConstraint { + + } + + // Specifies the default behavior in the absence of any `Policy` for the + // `Constraint`. This must not be `CONSTRAINT_DEFAULT_UNSPECIFIED`. + // + // Immutable after creation. + enum ConstraintDefault { + // This is only used for distinguishing unset values and should never be + // used. + CONSTRAINT_DEFAULT_UNSPECIFIED = 0; + + // Indicate that all values are allowed for list constraints. + // Indicate that enforcement is off for boolean constraints. + ALLOW = 1; + + // Indicate that all values are denied for list constraints. + // Indicate that enforcement is on for boolean constraints. + DENY = 2; + } + + // Immutable. The resource name of the Constraint. Must be in one of + // the following forms: + // * `projects/{project_number}/constraints/{constraint_name}` + // * `folders/{folder_id}/constraints/{constraint_name}` + // * `organizations/{organization_id}/constraints/{constraint_name}` + // + // For example, "/projects/123/constraints/compute.disableSerialPortAccess". + string name = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // The human readable name. + // + // Mutable. + string display_name = 2; + + // Detailed description of what this `Constraint` controls as well as how and + // where it is enforced. + // + // Mutable. + string description = 3; + + // The evaluation behavior of this constraint in the absence of 'Policy'. + ConstraintDefault constraint_default = 4; + + // The type of restrictions for this `Constraint`. + // + // Immutable after creation. + oneof constraint_type { + // Defines this constraint as being a ListConstraint. + ListConstraint list_constraint = 5; + + // Defines this constraint as being a BooleanConstraint. + BooleanConstraint boolean_constraint = 6; + } +} diff --git a/third_party/googleapis/google/cloud/orgpolicy/v2/orgpolicy.proto b/third_party/googleapis/google/cloud/orgpolicy/v2/orgpolicy.proto new file mode 100644 index 000000000..2b2bb472b --- /dev/null +++ b/third_party/googleapis/google/cloud/orgpolicy/v2/orgpolicy.proto @@ -0,0 +1,479 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.orgpolicy.v2; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/orgpolicy/v2/constraint.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/timestamp.proto"; +import "google/type/expr.proto"; + +option csharp_namespace = "Google.Cloud.OrgPolicy.V2"; +option go_package = "google.golang.org/genproto/googleapis/cloud/orgpolicy/v2;orgpolicy"; +option java_multiple_files = true; +option java_outer_classname = "OrgPolicyProto"; +option java_package = "com.google.cloud.orgpolicy.v2"; +option php_namespace = "Google\\Cloud\\OrgPolicy\\V2"; +option ruby_package = "Google::Cloud::OrgPolicy::V2"; + +// An interface for managing organization policies. +// +// The Cloud Org Policy service provides a simple mechanism for organizations to +// restrict the allowed configurations across their entire Cloud Resource +// hierarchy. +// +// You can use a `policy` to configure restrictions in Cloud resources. For +// example, you can enforce a `policy` that restricts which Google +// Cloud Platform APIs can be activated in a certain part of your resource +// hierarchy, or prevents serial port access to VM instances in a particular +// folder. +// +// `Policies` are inherited down through the resource hierarchy. A `policy` +// applied to a parent resource automatically applies to all its child resources +// unless overridden with a `policy` lower in the hierarchy. +// +// A `constraint` defines an aspect of a resource's configuration that can be +// controlled by an organization's policy administrator. `Policies` are a +// collection of `constraints` that defines their allowable configuration on a +// particular resource and its child resources. +service OrgPolicy { + option (google.api.default_host) = "orgpolicy.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + + // Lists `Constraints` that could be applied on the specified resource. + rpc ListConstraints(ListConstraintsRequest) returns (ListConstraintsResponse) { + option (google.api.http) = { + get: "/v2/{parent=projects/*}/constraints" + additional_bindings { + get: "/v2/{parent=folders/*}/constraints" + } + additional_bindings { + get: "/v2/{parent=organizations/*}/constraints" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Retrieves all of the `Policies` that exist on a particular resource. + rpc ListPolicies(ListPoliciesRequest) returns (ListPoliciesResponse) { + option (google.api.http) = { + get: "/v2/{parent=projects/*}/policies" + additional_bindings { + get: "/v2/{parent=folders/*}/policies" + } + additional_bindings { + get: "/v2/{parent=organizations/*}/policies" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Gets a `Policy` on a resource. + // + // If no `Policy` is set on the resource, NOT_FOUND is returned. The + // `etag` value can be used with `UpdatePolicy()` to update a + // `Policy` during read-modify-write. + rpc GetPolicy(GetPolicyRequest) returns (Policy) { + option (google.api.http) = { + get: "/v2/{name=projects/*/policies/*}" + additional_bindings { + get: "/v2/{name=folders/*/policies/*}" + } + additional_bindings { + get: "/v2/{name=organizations/*/policies/*}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Gets the effective `Policy` on a resource. This is the result of merging + // `Policies` in the resource hierarchy and evaluating conditions. The + // returned `Policy` will not have an `etag` or `condition` set because it is + // a computed `Policy` across multiple resources. + // Subtrees of Resource Manager resource hierarchy with 'under:' prefix will + // not be expanded. + rpc GetEffectivePolicy(GetEffectivePolicyRequest) returns (Policy) { + option (google.api.http) = { + get: "/v2/{name=projects/*/policies/*}:getEffectivePolicy" + additional_bindings { + get: "/v2/{name=folders/*/policies/*}:getEffectivePolicy" + } + additional_bindings { + get: "/v2/{name=organizations/*/policies/*}:getEffectivePolicy" + } + }; + option (google.api.method_signature) = "name"; + } + + // Creates a Policy. + // + // Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the + // constraint does not exist. + // Returns a `google.rpc.Status` with `google.rpc.Code.ALREADY_EXISTS` if the + // policy already exists on the given Cloud resource. + rpc CreatePolicy(CreatePolicyRequest) returns (Policy) { + option (google.api.http) = { + post: "/v2/{parent=projects/*}/policies" + body: "policy" + additional_bindings { + post: "/v2/{parent=folders/*}/policies" + body: "policy" + } + additional_bindings { + post: "/v2/{parent=organizations/*}/policies" + body: "policy" + } + }; + option (google.api.method_signature) = "parent,policy"; + } + + // Updates a Policy. + // + // Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the + // constraint or the policy do not exist. + // Returns a `google.rpc.Status` with `google.rpc.Code.ABORTED` if the etag + // supplied in the request does not match the persisted etag of the policy + // + // Note: the supplied policy will perform a full overwrite of all + // fields. + rpc UpdatePolicy(UpdatePolicyRequest) returns (Policy) { + option (google.api.http) = { + patch: "/v2/{policy.name=projects/*/policies/*}" + body: "policy" + additional_bindings { + patch: "/v2/{policy.name=folders/*/policies/*}" + body: "policy" + } + additional_bindings { + patch: "/v2/{policy.name=organizations/*/policies/*}" + body: "policy" + } + }; + option (google.api.method_signature) = "policy"; + } + + // Deletes a Policy. + // + // Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the + // constraint or Org Policy does not exist. + rpc DeletePolicy(DeletePolicyRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v2/{name=projects/*/policies/*}" + additional_bindings { + delete: "/v2/{name=folders/*/policies/*}" + } + additional_bindings { + delete: "/v2/{name=organizations/*/policies/*}" + } + }; + option (google.api.method_signature) = "name"; + } +} + +// Defines a Cloud Organization `Policy` which is used to specify `Constraints` +// for configurations of Cloud Platform resources. +message Policy { + option (google.api.resource) = { + type: "orgpolicy.googleapis.com/Policy" + pattern: "projects/{project}/policies/{policy}" + pattern: "folders/{folder}/policies/{policy}" + pattern: "organizations/{organization}/policies/{policy}" + }; + + // Immutable. The resource name of the Policy. Must be one of the following + // forms, where constraint_name is the name of the constraint which this + // Policy configures: + // * `projects/{project_number}/policies/{constraint_name}` + // * `folders/{folder_id}/policies/{constraint_name}` + // * `organizations/{organization_id}/policies/{constraint_name}` + // + // For example, "projects/123/policies/compute.disableSerialPortAccess". + // + // Note: `projects/{project_id}/policies/{constraint_name}` is also an + // acceptable name for API requests, but responses will return the name using + // the equivalent project number. + string name = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // Basic information about the Organization Policy. + PolicySpec spec = 2; + + // An alternate policy configuration that will be used instead of the baseline + // policy configurations as determined by the launch. + // Currently the only way the launch can trigger the alternate configuration + // is via dry-run/darklaunch. + AlternatePolicySpec alternate = 3; +} + +// Similar to PolicySpec but with an extra 'launch' field for launch reference. +// The PolicySpec here is specific for dry-run/darklaunch. +message AlternatePolicySpec { + // Reference to the launch that will be used while audit logging and to + // control the launch. + // Should be set only in the alternate policy. + string launch = 1; + + // Specify `Constraint` for configurations of Cloud Platform resources. + PolicySpec spec = 2; +} + +// Defines a Cloud Organization `PolicySpec` which is used to specify +// `Constraints` for configurations of Cloud Platform resources. +message PolicySpec { + // A rule used to express this policy. + message PolicyRule { + // A message that holds specific allowed and denied values. + // This message can define specific values and subtrees of Cloud Resource + // Manager resource hierarchy (`Organizations`, `Folders`, `Projects`) that + // are allowed or denied. This is achieved by using the `under:` and + // optional `is:` prefixes. + // The `under:` prefix is used to denote resource subtree values. + // The `is:` prefix is used to denote specific values, and is required only + // if the value contains a ":". Values prefixed with "is:" are treated the + // same as values with no prefix. + // Ancestry subtrees must be in one of the following formats: + // - "projects/", e.g. "projects/tokyo-rain-123" + // - "folders/", e.g. "folders/1234" + // - "organizations/", e.g. "organizations/1234" + // The `supports_under` field of the associated `Constraint` defines + // whether ancestry prefixes can be used. + message StringValues { + // List of values allowed at this resource. + repeated string allowed_values = 1; + + // List of values denied at this resource. + repeated string denied_values = 2; + } + + oneof kind { + // List of values to be used for this PolicyRule. This field can be set + // only in Policies for list constraints. + StringValues values = 1; + + // Setting this to true means that all values are allowed. This field can + // be set only in Policies for list constraints. + bool allow_all = 2; + + // Setting this to true means that all values are denied. This field can + // be set only in Policies for list constraints. + bool deny_all = 3; + + // If `true`, then the `Policy` is enforced. If `false`, then any + // configuration is acceptable. + // This field can be set only in Policies for boolean constraints. + bool enforce = 4; + } + + // A condition which determines whether this rule is used + // in the evaluation of the policy. When set, the `expression` field in + // the `Expr' must include from 1 to 10 subexpressions, joined by the "||" + // or "&&" operators. Each subexpression must be of the form + // "resource.matchLabels(key_name, value_name)", + // where key_name and value_name are the resource names for Label Keys + // and Values. These names are available from the Label Manager Service. An + // example expression is: + // "resource.matchLabels('labelKeys/123, 'labelValues/456')". + google.type.Expr condition = 5; + } + + // An opaque tag indicating the current version of the `Policy`, used for + // concurrency control. + // + // This field is ignored if used in a `CreatePolicy` request. + // + // When the `Policy` is returned from either a `GetPolicy` or a + // `ListPolicies` request, this `etag` indicates the version of the + // current `Policy` to use when executing a read-modify-write loop. + // + // When the `Policy` is returned from a `GetEffectivePolicy` request, the + // `etag` will be unset. + string etag = 1; + + // Output only. The time stamp this was previously updated. This + // represents the last time a call to `CreatePolicy` or `UpdatePolicy` was + // made for that `Policy`. + google.protobuf.Timestamp update_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Up to 10 PolicyRules are allowed. + // + // In Policies for boolean constraints, the following requirements apply: + // - There must be one and only one PolicyRule where condition is unset. + // - BooleanPolicyRules with conditions must set `enforced` to the opposite + // of the PolicyRule without a condition. + // - During policy evaluation, PolicyRules with conditions that are + // true for a target resource take precedence. + repeated PolicyRule rules = 3; + + // Determines the inheritance behavior for this `Policy`. + // + // If `inherit_from_parent` is true, PolicyRules set higher up in the + // hierarchy (up to the closest root) are inherited and present in the + // effective policy. If it is false, then no rules are inherited, and this + // Policy becomes the new root for evaluation. + // This field can be set only for Policies which configure list constraints. + bool inherit_from_parent = 4; + + // Ignores policies set above this resource and restores the + // `constraint_default` enforcement behavior of the specific `Constraint` at + // this resource. + // This field can be set in policies for either list or boolean + // constraints. If set, `rules` must be empty and `inherit_from_parent` + // must be set to false. + bool reset = 5; +} + +// The request sent to the [ListConstraints] +// [google.cloud.orgpolicy.v2.OrgPolicy.ListConstraints] method. +message ListConstraintsRequest { + // Required. The Cloud resource that parents the constraint. Must be in one of the + // following forms: + // * `projects/{project_number}` + // * `projects/{project_id}` + // * `folders/{folder_id}` + // * `organizations/{organization_id}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "orgpolicy.googleapis.com/Constraint" + } + ]; + + // Size of the pages to be returned. This is currently unsupported and will + // be ignored. The server may at any point start using this field to limit + // page size. + int32 page_size = 2; + + // Page token used to retrieve the next page. This is currently unsupported + // and will be ignored. The server may at any point start using this field. + string page_token = 3; +} + +// The response returned from the [ListConstraints] +// [google.cloud.orgpolicy.v2.OrgPolicy.ListConstraints] method. +message ListConstraintsResponse { + // The collection of constraints that are available on the targeted resource. + repeated Constraint constraints = 1; + + // Page token used to retrieve the next page. This is currently not used. + string next_page_token = 2; +} + +// The request sent to the [ListPolicies] +// [google.cloud.orgpolicy.v2.OrgPolicy.ListPolicies] method. +message ListPoliciesRequest { + // Required. The target Cloud resource that parents the set of constraints and policies + // that will be returned from this call. Must be in one of the following + // forms: + // * `projects/{project_number}` + // * `projects/{project_id}` + // * `folders/{folder_id}` + // * `organizations/{organization_id}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "orgpolicy.googleapis.com/Policy" + } + ]; + + // Size of the pages to be returned. This is currently unsupported and will + // be ignored. The server may at any point start using this field to limit + // page size. + int32 page_size = 2; + + // Page token used to retrieve the next page. This is currently unsupported + // and will be ignored. The server may at any point start using this field. + string page_token = 3; +} + +// The response returned from the [ListPolicies] +// [google.cloud.orgpolicy.v2.OrgPolicy.ListPolicies] method. It will be empty +// if no `Policies` are set on the resource. +message ListPoliciesResponse { + // All `Policies` that exist on the resource. It will be empty if no + // `Policies` are set. + repeated Policy policies = 1; + + // Page token used to retrieve the next page. This is currently not used, but + // the server may at any point start supplying a valid token. + string next_page_token = 2; +} + +// The request sent to the [GetPolicy] +// [google.cloud.orgpolicy.v2.OrgPolicy.GetPolicy] method. +message GetPolicyRequest { + // Required. Resource name of the policy. See `Policy` for naming requirements. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "orgpolicy.googleapis.com/Policy" + } + ]; +} + +// The request sent to the [GetEffectivePolicy] +// [google.cloud.orgpolicy.v2.OrgPolicy.GetEffectivePolicy] method. +message GetEffectivePolicyRequest { + // Required. The effective policy to compute. See `Policy` for naming rules. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "orgpolicy.googleapis.com/Policy" + } + ]; +} + +// The request sent to the [CreatePolicyRequest] +// [google.cloud.orgpolicy.v2.OrgPolicy.CreatePolicy] method. +message CreatePolicyRequest { + // Required. The Cloud resource that will parent the new Policy. Must be in one of the + // following forms: + // * `projects/{project_number}` + // * `projects/{project_id}` + // * `folders/{folder_id}` + // * `organizations/{organization_id}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "orgpolicy.googleapis.com/Policy" + } + ]; + + // Required. `Policy` to create. + Policy policy = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// The request sent to the [UpdatePolicyRequest] +// [google.cloud.orgpolicy.v2.OrgPolicy.UpdatePolicy] method. +message UpdatePolicyRequest { + // Required. `Policy` to update. + Policy policy = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// The request sent to the [DeletePolicy] +// [google.cloud.orgpolicy.v2.OrgPolicy.DeletePolicy] method. +message DeletePolicyRequest { + // Required. Name of the policy to delete. + // See `Policy` for naming rules. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "orgpolicy.googleapis.com/Policy" + } + ]; +} diff --git a/third_party/googleapis/google/cloud/orgpolicy/v2/orgpolicy_gapic.yaml b/third_party/googleapis/google/cloud/orgpolicy/v2/orgpolicy_gapic.yaml new file mode 100644 index 000000000..8b0246fd2 --- /dev/null +++ b/third_party/googleapis/google/cloud/orgpolicy/v2/orgpolicy_gapic.yaml @@ -0,0 +1,3 @@ +type: com.google.api.codegen.ConfigProto +config_schema_version: 2.0.0 +language_settings: diff --git a/third_party/googleapis/google/cloud/orgpolicy/v2/orgpolicy_grpc_service_config.json b/third_party/googleapis/google/cloud/orgpolicy/v2/orgpolicy_grpc_service_config.json new file mode 100644 index 000000000..ba7a51e09 --- /dev/null +++ b/third_party/googleapis/google/cloud/orgpolicy/v2/orgpolicy_grpc_service_config.json @@ -0,0 +1,21 @@ +{ + "methodConfig": [{ + "name": [ + { "service": "google.cloud.orgpolicy.v2.OrgPolicy", "method": "ListPolicies" }, + { "service": "google.cloud.orgpolicy.v2.OrgPolicy", "method": "GetEffectivePolicy" }, + { "service": "google.cloud.orgpolicy.v2.OrgPolicy", "method": "GetPolicy" }, + { "service": "google.cloud.orgpolicy.v2.OrgPolicy", "method": "ListConstraints" }, + { "service": "google.cloud.orgpolicy.v2.OrgPolicy", "method": "CreatePolicy" }, + { "service": "google.cloud.orgpolicy.v2.OrgPolicy", "method": "DeletePolicy" }, + { "service": "google.cloud.orgpolicy.v2.OrgPolicy", "method": "UpdatePolicy" } + ], + "timeout": "60s", + "retryPolicy": { + "maxAttempts": 5, + "initialBackoff": "1s", + "maxBackoff": "10s", + "backoffMultiplier": 1.3, + "retryableStatusCodes": ["UNAVAILABLE", "DEADLINE_EXCEEDED"] + } + }] +} diff --git a/third_party/googleapis/google/cloud/orgpolicy/v2/orgpolicy_v2.yaml b/third_party/googleapis/google/cloud/orgpolicy/v2/orgpolicy_v2.yaml new file mode 100644 index 000000000..aea5371d9 --- /dev/null +++ b/third_party/googleapis/google/cloud/orgpolicy/v2/orgpolicy_v2.yaml @@ -0,0 +1,19 @@ +type: google.api.Service +config_version: 3 +name: orgpolicy.googleapis.com +title: Organization Policy API + +apis: +- name: google.cloud.orgpolicy.v2.OrgPolicy + +documentation: + summary: |- + The Org Policy API allows users to configure governance ruleson their GCP + resources across the Cloud Resource Hierarchy. + +authentication: + rules: + - selector: 'google.cloud.orgpolicy.v2.OrgPolicy.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platforma diff --git a/third_party/googleapis/google/cloud/osconfig/agentendpoint/v1/BUILD.bazel b/third_party/googleapis/google/cloud/osconfig/agentendpoint/v1/BUILD.bazel index 453633544..632cf2fff 100644 --- a/third_party/googleapis/google/cloud/osconfig/agentendpoint/v1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/osconfig/agentendpoint/v1/BUILD.bazel @@ -22,13 +22,16 @@ proto_library( name = "agentendpoint_proto", srcs = [ "agentendpoint.proto", + "config_common.proto", "inventory.proto", + "os_policy.proto", "patch_jobs.proto", "tasks.proto", ], deps = [ "//google/api:client_proto", "//google/api:field_behavior_proto", + "//google/api:resource_proto", "@com_google_protobuf//:timestamp_proto", ], ) @@ -66,11 +69,9 @@ java_grpc_library( java_gapic_library( name = "agentendpoint_java_gapic", - src = ":agentendpoint_proto_with_info", + srcs = [":agentendpoint_proto_with_info"], gapic_yaml = "osconfig_gapic.yaml", grpc_service_config = "agentendpoint_grpc_service_config.json", - package = "google.cloud.osconfig.agentendpoint.v1", - service_yaml = "osconfig_v1.yaml", test_deps = [ ":agentendpoint_java_grpc", ], @@ -152,46 +153,14 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "agentendpoint_moved_proto", - srcs = [":agentendpoint_proto"], - deps = [ - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -py_proto_library( - name = "agentendpoint_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":agentendpoint_moved_proto"], -) - -py_grpc_library( - name = "agentendpoint_py_grpc", - srcs = [":agentendpoint_moved_proto"], - deps = [":agentendpoint_py_proto"], ) py_gapic_library( name = "agentendpoint_py_gapic", - src = ":agentendpoint_proto_with_info", - gapic_yaml = "osconfig_gapic.yaml", + srcs = [":agentendpoint_proto"], grpc_service_config = "agentendpoint_grpc_service_config.json", - package = "google.cloud.osconfig.agentendpoint.v1", - service_yaml = "osconfig_v1.yaml", - deps = [ - ":agentendpoint_py_grpc", - ":agentendpoint_py_proto", - ], ) # Open Source Packages @@ -199,8 +168,6 @@ py_gapic_assembly_pkg( name = "osconfig-agentendpoint-v1-py", deps = [ ":agentendpoint_py_gapic", - ":agentendpoint_py_grpc", - ":agentendpoint_py_proto", ], ) @@ -261,6 +228,7 @@ load( nodejs_gapic_library( name = "agentendpoint_nodejs_gapic", src = ":agentendpoint_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "agentendpoint_grpc_service_config.json", package = "google.cloud.osconfig.agentendpoint.v1", service_yaml = "osconfig_v1.yaml", @@ -345,8 +313,8 @@ csharp_grpc_library( csharp_gapic_library( name = "agentendpoint_csharp_gapic", srcs = [":agentendpoint_proto_with_info"], - grpc_service_config = "agentendpoint_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "agentendpoint_grpc_service_config.json", deps = [ ":agentendpoint_csharp_grpc", ":agentendpoint_csharp_proto", diff --git a/third_party/googleapis/google/cloud/osconfig/agentendpoint/v1/agentendpoint.proto b/third_party/googleapis/google/cloud/osconfig/agentendpoint/v1/agentendpoint.proto index 6e6e211ed..6cf3ad0b0 100644 --- a/third_party/googleapis/google/cloud/osconfig/agentendpoint/v1/agentendpoint.proto +++ b/third_party/googleapis/google/cloud/osconfig/agentendpoint/v1/agentendpoint.proto @@ -73,8 +73,8 @@ message ReceiveTaskNotificationRequest { string agent_version = 2 [(google.api.field_behavior) = REQUIRED]; } -// The streaming rpc message that notifies the agent when it has a task -// that it needs to perform on the VM instance. +// The streaming rpc message that will notify the agent when it has a task +// it needs to perform on the instance. message ReceiveTaskNotificationResponse { } @@ -119,6 +119,9 @@ message ReportTaskProgressRequest { // Details about the progress of the exec step task. ExecStepTaskProgress exec_step_task_progress = 5; + + // Details about the progress of the apply config task. + ApplyConfigTaskProgress apply_config_task_progress = 6; } } @@ -140,8 +143,8 @@ message ReportTaskCompleteRequest { // Required. The type of task to report completed. // - // The output must include the appropriate message based on the following - // enum values: + // Output must include the appropriate message based on this enum as + // specified below: // APPLY_PATCHES = ApplyPatchesTaskOutput // EXEC_STEP = ExecStepTaskOutput TaskType task_type = 3 [(google.api.field_behavior) = REQUIRED]; @@ -156,6 +159,9 @@ message ReportTaskCompleteRequest { // Final output details of the exec step task; ExecStepTaskOutput exec_step_task_output = 6; + + // Final output details of the apply config task; + ApplyConfigTaskOutput apply_config_task_output = 7; } } diff --git a/third_party/googleapis/google/cloud/osconfig/agentendpoint/v1/config_common.proto b/third_party/googleapis/google/cloud/osconfig/agentendpoint/v1/config_common.proto new file mode 100644 index 000000000..3994cf4b7 --- /dev/null +++ b/third_party/googleapis/google/cloud/osconfig/agentendpoint/v1/config_common.proto @@ -0,0 +1,100 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.osconfig.agentendpoint.v1; + +option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/agentendpoint/v1;agentendpoint"; +option java_multiple_files = true; +option java_outer_classname = "ConfigCommonProto"; +option java_package = "com.google.cloud.osconfig.agentendpoint.v1"; + +// Step performed by the OS Config agent for configuring an `OSPolicyResource` +// to its desired state. +message OSPolicyResourceConfigStep { + // Supported configuration step types + enum Type { + // Default value. This value is unused. + TYPE_UNSPECIFIED = 0; + + // Validation to detect resource conflicts, schema errors, etc. + VALIDATION = 1; + + // Check the current desired state status of the resource. + DESIRED_STATE_CHECK = 2; + + // Enforce the desired state for a resource that is not in desired state. + DESIRED_STATE_ENFORCEMENT = 3; + + // Re-check desired state status for a resource after enforcement of all + // resources in the current configuration run. + // + // This step is used to determine the final desired state status for the + // resource. It accounts for any resources that might have drifted from + // their desired state due to side effects from configuring other resources + // during the current configuration run. + DESIRED_STATE_CHECK_POST_ENFORCEMENT = 4; + } + + // Supported outcomes for a configuration step. + enum Outcome { + // Default value. This value is unused. + OUTCOME_UNSPECIFIED = 0; + + // The step succeeded. + SUCCEEDED = 1; + + // The step failed. + FAILED = 2; + } + + // Configuration step type. + Type type = 1; + + // Outcome of the configuration step. + Outcome outcome = 2; +} + +// Compliance data for an OS policy resource. +message OSPolicyResourceCompliance { + // The id of the OS policy resource. + string os_policy_resource_id = 1; + + // Ordered list of configuration steps taken by the agent for the OS policy + // resource. + repeated OSPolicyResourceConfigStep config_steps = 2; + + // Compliance state of the OS policy resource. + OSPolicyComplianceState state = 3; +} + +// Supported OSPolicy compliance states. +enum OSPolicyComplianceState { + // Default value. This value is unused. + OS_POLICY_COMPLIANCE_STATE_UNSPECIFIED = 0; + + // Compliant state. + COMPLIANT = 1; + + // Non-compliant state + NON_COMPLIANT = 2; + + // Unknown compliance state. + UNKNOWN = 3; + + // No applicable OS policies were found for the instance. + // This state is only applicable to the instance. + NO_OS_POLICIES_APPLICABLE = 4; +} diff --git a/third_party/googleapis/google/cloud/osconfig/agentendpoint/v1/inventory.proto b/third_party/googleapis/google/cloud/osconfig/agentendpoint/v1/inventory.proto index 1fc5ebfaf..fc6efcd21 100644 --- a/third_party/googleapis/google/cloud/osconfig/agentendpoint/v1/inventory.proto +++ b/third_party/googleapis/google/cloud/osconfig/agentendpoint/v1/inventory.proto @@ -97,6 +97,9 @@ message Inventory { // https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering // for info in Windows Quick Fix Engineering. WindowsQuickFixEngineeringPackage qfe_package = 7; + + // Details of a COS package. + VersionedPackage cos_package = 8; } } @@ -113,6 +116,21 @@ message Inventory { string version = 3; } + // Details related to a Zypper Patch. + message ZypperPatch { + // The name of the patch. + string patch_name = 1; + + // The category of the patch. + string category = 2; + + // The severity specified for this patch + string severity = 3; + + // Any summary information provided about this patch. + string summary = 4; + } + // Details related to a Windows Update package. // Field data and names are taken from Windows Update API IUpdate Interface: // https://docs.microsoft.com/en-us/windows/win32/api/_wua/ @@ -159,21 +177,6 @@ message Inventory { google.protobuf.Timestamp last_deployment_change_time = 9; } - // Details related to a Zypper Patch. - message ZypperPatch { - // The name of the patch. - string patch_name = 1; - - // The category of the patch. - string category = 2; - - // The severity specified for this patch - string severity = 3; - - // Any summary information provided about this patch. - string summary = 4; - } - // Information related to a Quick Fix Engineering package. // Fields are taken from Windows QuickFixEngineering Interface and match // the source names: diff --git a/third_party/googleapis/google/cloud/osconfig/agentendpoint/v1/os_policy.proto b/third_party/googleapis/google/cloud/osconfig/agentendpoint/v1/os_policy.proto new file mode 100644 index 000000000..92740c3f9 --- /dev/null +++ b/third_party/googleapis/google/cloud/osconfig/agentendpoint/v1/os_policy.proto @@ -0,0 +1,437 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.osconfig.agentendpoint.v1; + +import "google/api/field_behavior.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/agentendpoint/v1;agentendpoint"; +option java_multiple_files = true; +option java_outer_classname = "OSPolicyProto"; +option java_package = "com.google.cloud.osconfig.agentendpoint.v1"; + +// An OS policy defines the desired state configuration for an instance. +message OSPolicy { + // An OS policy resource is used to define the desired state configuration + // and provides a specific functionality like installing/removing packages, + // executing a script etc. + // + // The system ensures that resources are always in their desired state by + // taking necessary actions if they have drifted from their desired state. + message Resource { + // A remote or local file. + message File { + // Specifies a file available via some URI. + message Remote { + // Required. URI from which to fetch the object. It should contain both the + // protocol and path following the format `{protocol}://{location}`. + string uri = 1 [(google.api.field_behavior) = REQUIRED]; + + // SHA256 checksum of the remote file. + string sha256_checksum = 2; + } + + // Specifies a file available as a Cloud Storage Object. + message Gcs { + // Required. Bucket of the Cloud Storage object. + string bucket = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Name of the Cloud Storage object. + string object = 2 [(google.api.field_behavior) = REQUIRED]; + + // Generation number of the Cloud Storage object. + int64 generation = 3; + } + + // A specific type of file. + oneof type { + // A generic remote file. + Remote remote = 1; + + // A Cloud Storage object. + Gcs gcs = 2; + + // A local path to use. + string local_path = 3; + } + + // Defaults to false. When false, files are subject to validations + // based on the file type: + // + // Remote: A checksum must be specified. + // Cloud Storage: An object generation number must be specified. + bool allow_insecure = 4; + } + + // A resource that manages a system package. + message PackageResource { + // A deb package file. dpkg packages only support INSTALLED state. + message Deb { + // Required. A deb package. + File source = 1 [(google.api.field_behavior) = REQUIRED]; + + // Whether dependencies should also be installed. + // install when false: `dpkg -i package` + // install when true: `apt-get update && apt-get -y install + // package.deb` + bool pull_deps = 2; + } + + // A package managed by APT. + // install: `apt-get update && apt-get -y install [name]` + // remove: `apt-get -y remove [name]` + message APT { + // Required. Package name. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // An RPM package file. RPM packages only support INSTALLED state. + message RPM { + // Required. An rpm package. + File source = 1 [(google.api.field_behavior) = REQUIRED]; + + // Whether dependencies should also be installed. + // install when false: `rpm --upgrade --replacepkgs package.rpm` + // install when true: `yum -y install package.rpm` or + // `zypper -y install package.rpm` + bool pull_deps = 2; + } + + // A package managed by YUM. + // install: `yum -y install package` + // remove: `yum -y remove package` + message YUM { + // Required. Package name. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // A package managed by Zypper. + // install: `zypper -y install package` + // remove: `zypper -y rm package` + message Zypper { + // Required. Package name. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // A package managed by GooGet. + // install: `googet -noconfirm install package` + // remove: `googet -noconfirm remove package` + message GooGet { + // Required. Package name. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // An MSI package. MSI packages only support INSTALLED state. + message MSI { + // Required. The MSI package. + File source = 1 [(google.api.field_behavior) = REQUIRED]; + + // Additional properties to use during installation. + // This should be in the format of Property=Setting. + // Appended to the defaults of "ACTION=INSTALL + // REBOOT=ReallySuppress". + repeated string properties = 2; + } + + // The desired state that the OS Config agent maintains on the VM. + enum DesiredState { + // Unspecified is invalid. + DESIRED_STATE_UNSPECIFIED = 0; + + // Ensure that the package is installed. + INSTALLED = 1; + + // The agent ensures that the package is not installed and + // uninstalls it if detected. + REMOVED = 2; + } + + // Required. The desired state the agent should maintain for this package. The + // default is to ensure the package is installed. + DesiredState desired_state = 1 [(google.api.field_behavior) = REQUIRED]; + + // A system package. + oneof system_package { + // A package managed by Apt. + APT apt = 2; + + // A deb package file. + Deb deb = 3; + + // A package managed by YUM. + YUM yum = 4; + + // A package managed by Zypper. + Zypper zypper = 5; + + // An rpm package file. + RPM rpm = 6; + + // A package managed by GooGet. + GooGet googet = 7; + + // An MSI package. + MSI msi = 8; + } + } + + // A resource that manages a package repository. + message RepositoryResource { + // Represents a single apt package repository. These will be added to + // a repo file that will be managed at + // /etc/apt/sources.list.d/google_osconfig.list. + message AptRepository { + // Type of archive. + enum ArchiveType { + // Unspecified is invalid. + ARCHIVE_TYPE_UNSPECIFIED = 0; + + // Deb indicates that the archive contains binary files. + DEB = 1; + + // Deb-src indicates that the archive contains source files. + DEB_SRC = 2; + } + + // Required. Type of archive files in this repository. The default behavior is + // DEB. + ArchiveType archive_type = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. URI for this repository. + string uri = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Distribution of this repository. + string distribution = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. List of components for this repository. Must contain at least one + // item. + repeated string components = 4 [(google.api.field_behavior) = REQUIRED]; + + // URI of the key file for this repository. The agent maintains a + // keyring at /etc/apt/trusted.gpg.d/osconfig_agent_managed.gpg. + string gpg_key = 5; + } + + // Represents a single yum package repository. These are added to a + // repo file that is managed at + // `/etc/yum.repos.d/google_osconfig.repo`. + message YumRepository { + // Required. A one word, unique name for this repository. This is the `repo + // id` in the yum config file and also the `display_name` if + // `display_name` is omitted. This id is also used as the unique + // identifier when checking for resource conflicts. + string id = 1 [(google.api.field_behavior) = REQUIRED]; + + // The display name of the repository. + string display_name = 2; + + // Required. The location of the repository directory. + string base_url = 3 [(google.api.field_behavior) = REQUIRED]; + + // URIs of GPG keys. + repeated string gpg_keys = 4; + } + + // Represents a single zypper package repository. These are added to a + // repo file that is managed at + // `/etc/zypp/repos.d/google_osconfig.repo`. + message ZypperRepository { + // Required. A one word, unique name for this repository. This is the `repo + // id` in the zypper config file and also the `display_name` if + // `display_name` is omitted. This id is also used as the unique + // identifier when checking for GuestPolicy conflicts. + string id = 1 [(google.api.field_behavior) = REQUIRED]; + + // The display name of the repository. + string display_name = 2; + + // Required. The location of the repository directory. + string base_url = 3 [(google.api.field_behavior) = REQUIRED]; + + // URIs of GPG keys. + repeated string gpg_keys = 4; + } + + // Represents a Goo package repository. These are added to a repo file + // that is managed at + // `C:/ProgramData/GooGet/repos/google_osconfig.repo`. + message GooRepository { + // Required. The name of the repository. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The url of the repository. + string url = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // A specific type of repository. + oneof repository { + // An Apt Repository. + AptRepository apt = 1; + + // A Yum Repository. + YumRepository yum = 2; + + // A Zypper Repository. + ZypperRepository zypper = 3; + + // A Goo Repository. + GooRepository goo = 4; + } + } + + // A resource that contains custom validation and enforcement steps. + message ExecResource { + // A file or script to execute. + message Exec { + // The interpreter to use. + enum Interpreter { + // Defaults to NONE. + INTERPRETER_UNSPECIFIED = 0; + + // If no interpreter is specified the + // source will be executed directly, which will likely only + // succeed for executables and scripts with shebang lines. + // [Wikipedia + // shebang](https://en.wikipedia.org/wiki/Shebang_(Unix)). + NONE = 1; + + // Indicates that the script will be run with /bin/sh on Linux and + // cmd.exe on windows. + SHELL = 2; + + // Indicates that the script will be run with powershell. + POWERSHELL = 3; + } + + // What to execute. + oneof source { + // A remote or local file. + File file = 1; + + // An inline script. + string script = 2; + } + + // Optional arguments to pass to the source during execution. + repeated string args = 3; + + // Required. The script interpreter to use. + Interpreter interpreter = 4 [(google.api.field_behavior) = REQUIRED]; + } + + // Required. What to run to validate this resource is in the desired state. + // An exit code of 100 indicates "in desired state", and exit code of 101 + // indicates "not in desired state". Any other exit code indicates a + // failure running validate. + Exec validate = 1 [(google.api.field_behavior) = REQUIRED]; + + // What to run to bring this resource into the desired state. + // A exit code of 100 indicates "success", any other exit code idicates a + // failure running enforce. + Exec enforce = 2; + } + + // A resource that manages the state of a file. + message FileResource { + // Desired state of the file. + enum DesiredState { + // Unspecified is invalid. + DESIRED_STATE_UNSPECIFIED = 0; + + // Ensure file at path is present. + PRESENT = 1; + + // Ensure file at path is absent. + ABSENT = 2; + + // Ensure the contents of the file at path matches. If the file does + // not exist it will be created. + CONTENTS_MATCH = 3; + } + + // The source for the contents of the file. + oneof source { + // A remote or local source. + File file = 1; + + // A a file with this content. + string content = 2; + } + + // Required. The absolute path of the file. + string path = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. Desired state of the file. + DesiredState state = 4 [(google.api.field_behavior) = REQUIRED]; + + // Consists of three octal digits which represent, in + // order, the permissions of the owner, group, and other users for the + // file (similarly to the numeric mode used in the linux chmod + // utility). Each digit represents a three bit number with the 4 bit + // corresponding to the read permissions, the 2 bit corresponds to the + // write bit, and the one bit corresponds to the execute permission. + // Default behavior is 755. + // + // Below are some examples of permissions and their associated values: + // read, write, and execute: 7 + // read and execute: 5 + // read and write: 6 + // read only: 4 + string permissions = 5; + } + + // Required. The id of the resource with the following restrictions: + // + // * Must contain only lowercase letters, numbers, and hyphens. + // * Must start with a letter. + // * Must be between 1-63 characters. + // * Must end with a number or a letter. + // * Must be unique within the OS policy. + string id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Resource type. + oneof resource_type { + // Package resource + PackageResource pkg = 2; + + // Package repository resource + RepositoryResource repository = 3; + + // Exec resource + ExecResource exec = 4; + + // File resource + FileResource file = 5; + } + } + + // Policy mode + enum Mode { + // Invalid mode + MODE_UNSPECIFIED = 0; + + // This mode checks if the configuration resources in the policy are in + // their desired state. No actions are performed if they are not in the + // desired state. This mode is used for reporting purposes. + VALIDATION = 1; + + // This mode checks if the configuration resources in the policy are in + // their desired state, and if not, enforces the desired state. + ENFORCEMENT = 2; + } + + +} diff --git a/third_party/googleapis/google/cloud/osconfig/agentendpoint/v1/osconfig_gapic.legacy.yaml b/third_party/googleapis/google/cloud/osconfig/agentendpoint/v1/osconfig_gapic.legacy.yaml deleted file mode 100644 index 6e6362512..000000000 --- a/third_party/googleapis/google/cloud/osconfig/agentendpoint/v1/osconfig_gapic.legacy.yaml +++ /dev/null @@ -1,148 +0,0 @@ -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.osconfig.agentendpoint.v1 - python: - package_name: google.cloud.osconfig.agentendpoint_v1.gapic - go: - package_name: cloud.google.com/go/osconfig/agentendpoint/apiv1 - csharp: - package_name: Google.Cloud.OsConfig.Agentendpoint.V1 - ruby: - package_name: Google::Cloud::OsConfig::Agentendpoint::V1 - php: - package_name: Google\Cloud\OsConfig\Agentendpoint\V1 - nodejs: - package_name: agentendpoint.v1 -# A list of API interface configurations. -interfaces: -# The fully qualified name of the API interface. -- name: google.cloud.osconfig.agentendpoint.v1.AgentEndpointService - # 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: - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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. - # - # 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: ReceiveTaskNotification - flattening: - groups: - - parameters: - - instance_id_token - - agent_version - required_fields: - - instance_id_token - - agent_version - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 60000 - - name: StartNextTask - flattening: - groups: - - parameters: - - instance_id_token - required_fields: - - instance_id_token - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 60000 - - name: ReportTaskProgress - flattening: - groups: - - parameters: - - instance_id_token - - task_id - - task_type - required_fields: - - instance_id_token - - task_id - - task_type - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 60000 - - name: ReportTaskComplete - flattening: - groups: - - parameters: - - instance_id_token - - task_id - - task_type - - error_message - required_fields: - - instance_id_token - - task_id - - task_type - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 60000 diff --git a/third_party/googleapis/google/cloud/osconfig/agentendpoint/v1/osconfig_v1.yaml b/third_party/googleapis/google/cloud/osconfig/agentendpoint/v1/osconfig_v1.yaml index f3f7d4432..2e1bd489c 100644 --- a/third_party/googleapis/google/cloud/osconfig/agentendpoint/v1/osconfig_v1.yaml +++ b/third_party/googleapis/google/cloud/osconfig/agentendpoint/v1/osconfig_v1.yaml @@ -1,7 +1,7 @@ type: google.api.Service config_version: 3 name: osconfig.googleapis.com -title: Cloud OS Config API +title: OS Config API apis: - name: google.cloud.osconfig.agentendpoint.v1.AgentEndpointService diff --git a/third_party/googleapis/google/cloud/osconfig/agentendpoint/v1/tasks.proto b/third_party/googleapis/google/cloud/osconfig/agentendpoint/v1/tasks.proto index 426dc22f1..27860e3a5 100644 --- a/third_party/googleapis/google/cloud/osconfig/agentendpoint/v1/tasks.proto +++ b/third_party/googleapis/google/cloud/osconfig/agentendpoint/v1/tasks.proto @@ -17,11 +17,19 @@ syntax = "proto3"; package google.cloud.osconfig.agentendpoint.v1; import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/osconfig/agentendpoint/v1/config_common.proto"; +import "google/cloud/osconfig/agentendpoint/v1/os_policy.proto"; import "google/cloud/osconfig/agentendpoint/v1/patch_jobs.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/agentendpoint/v1;agentendpoint"; +option java_multiple_files = true; option java_outer_classname = "Tasks"; option java_package = "com.google.cloud.osconfig.agentendpoint.v1"; +option (google.api.resource_definition) = { + type: "osconfig.googleapis.com/OSPolicyAssignment" + pattern: "projects/{project}/locations/{location}/osPolicyAssignments/{os_policy_assignment}" +}; // Specifies the current agent behavior. enum TaskDirective { @@ -47,6 +55,9 @@ enum TaskType { // The exec step task. EXEC_STEP_TASK = 2; + + // The apply config task + APPLY_CONFIG_TASK = 3; } // A unit of work to be performed by the agent. @@ -59,7 +70,8 @@ message Task { // Task details must include the appropriate message based on this enum as // specified below: // APPLY_PATCHES = ApplyPatchesTask - // EXEC_STEP = ExecStepTask; + // EXEC_STEP = ExecStepTask + // APPLY_CONFIG_TASK = ApplyConfigTask TaskType task_type = 2; // Current directive to the agent. @@ -72,6 +84,9 @@ message Task { // Details about the exec step task to perform. ExecStepTask exec_step_task = 5; + + // Details about the apply config step task to perform. + ApplyConfigTask apply_config_task = 7; } // Labels describing the task. Used for logging by the agent. @@ -104,7 +119,7 @@ message ApplyPatchesTaskProgress { // The agent is currently applying patches. APPLYING_PATCHES = 2; - // The agent is currently rebooting the VM instance. + // The agent is currently rebooting the instance. REBOOTING = 3; } @@ -174,6 +189,100 @@ message ExecStepTaskOutput { // Required. The final state of the exec step. State state = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. The exit code received from the script which ran as part of the exec step. + // Required. The exit code received from the script which ran as part of the + // exec step. int32 exit_code = 2 [(google.api.field_behavior) = REQUIRED]; } + +// Message which instructs OS Config agent to apply the desired state +// configuration. +message ApplyConfigTask { + // Message representing an OS policy. + message OSPolicy { + // User provided policy id. + // Used for reporting and logging by the agent. + string id = 1; + + // The policy mode + .google.cloud.osconfig.agentendpoint.v1.OSPolicy.Mode mode = 2; + + // Reference to the `OSPolicyAssignment` API resource that this `OSPolicy` + // belongs to. + // Format: + // projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revision_id} + // Used for reporting and logging by the agent. + string os_policy_assignment = 3 [(google.api.resource_reference) = { + type: "osconfig.googleapis.com/OSPolicyAssignment" + }]; + + // List of resources associated with the policy to be set to their + // desired state. + repeated .google.cloud.osconfig.agentendpoint.v1.OSPolicy.Resource + resources = 4; + } + + // List of os policies to be applied for the instance. + repeated OSPolicy os_policies = 1; +} + +// Information reported from the agent regarding the progress of the task of +// applying desired state configuration. +message ApplyConfigTaskProgress { + // The intermediate states of apply config task. + enum State { + // Invalid state + STATE_UNSPECIFIED = 0; + + // The agent has started the task. + STARTED = 1; + + // The agent is in the process of applying the configuration. + APPLYING_CONFIG = 2; + } + + // The current state of this task. + State state = 1; +} + +// Information reported from the agent regarding the output of the task of +// applying desired state configuration. +message ApplyConfigTaskOutput { + // Result of applying desired state config for an OS policy. + message OSPolicyResult { + // The OS policy id + string os_policy_id = 1; + + // Reference to the `OSPolicyAssignment` API resource that this `OSPolicy` + // belongs to. + // Format: + // projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revision_id} + // Used for reporting and logging by the agent. + string os_policy_assignment = 2 [(google.api.resource_reference) = { + type: "osconfig.googleapis.com/OSPolicyAssignment" + }]; + + // Results of applying desired state config for the OS policy resources. + repeated OSPolicyResourceCompliance os_policy_resource_compliances = 3; + } + + // The final state of this task. + enum State { + // Unspecified is invalid. + STATE_UNSPECIFIED = 0; + + // The apply config task completed successfully. + SUCCEEDED = 1; + + // The apply config task failed. + FAILED = 2; + + // The apply config task was cancelled. + CANCELLED = 3; + } + + // Required. The final state of this task. + State state = 1 [(google.api.field_behavior) = REQUIRED]; + + // Results of applying desired state config for the OS policies. + repeated OSPolicyResult os_policy_results = 2; +} diff --git a/third_party/googleapis/google/cloud/osconfig/agentendpoint/v1beta/BUILD.bazel b/third_party/googleapis/google/cloud/osconfig/agentendpoint/v1beta/BUILD.bazel index 12a4ccfdc..b0f9347f2 100644 --- a/third_party/googleapis/google/cloud/osconfig/agentendpoint/v1beta/BUILD.bazel +++ b/third_party/googleapis/google/cloud/osconfig/agentendpoint/v1beta/BUILD.bazel @@ -65,11 +65,9 @@ java_grpc_library( java_gapic_library( name = "agentendpoint_java_gapic", - src = ":agentendpoint_proto_with_info", + srcs = [":agentendpoint_proto_with_info"], gapic_yaml = "osconfig_gapic.yaml", grpc_service_config = "agentendpoint_grpc_service_config.json", - package = "google.cloud.osconfig.agentendpoint.v1beta", - service_yaml = "osconfig_v1beta.yaml", test_deps = [ ":agentendpoint_java_grpc", ], @@ -151,45 +149,14 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "agentendpoint_moved_proto", - srcs = [":agentendpoint_proto"], - deps = [ - "//google/api:client_proto", - "//google/api:field_behavior_proto", - ], -) - -py_proto_library( - name = "agentendpoint_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":agentendpoint_moved_proto"], -) - -py_grpc_library( - name = "agentendpoint_py_grpc", - srcs = [":agentendpoint_moved_proto"], - deps = [":agentendpoint_py_proto"], ) py_gapic_library( name = "agentendpoint_py_gapic", - src = ":agentendpoint_proto_with_info", - gapic_yaml = "osconfig_gapic.yaml", + srcs = [":agentendpoint_proto"], grpc_service_config = "agentendpoint_grpc_service_config.json", - package = "google.cloud.osconfig.agentendpoint.v1beta", - service_yaml = "osconfig_v1beta.yaml", - deps = [ - ":agentendpoint_py_grpc", - ":agentendpoint_py_proto", - ], ) # Open Source Packages @@ -197,8 +164,6 @@ py_gapic_assembly_pkg( name = "osconfig-agentendpoint-v1beta-py", deps = [ ":agentendpoint_py_gapic", - ":agentendpoint_py_grpc", - ":agentendpoint_py_proto", ], ) @@ -261,6 +226,7 @@ load( nodejs_gapic_library( name = "agentendpoint_nodejs_gapic", src = ":agentendpoint_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "agentendpoint_grpc_service_config.json", package = "google.cloud.osconfig.agentendpoint.v1beta", service_yaml = "osconfig_v1beta.yaml", @@ -345,8 +311,8 @@ csharp_grpc_library( csharp_gapic_library( name = "agentendpoint_csharp_gapic", srcs = [":agentendpoint_proto_with_info"], - grpc_service_config = "agentendpoint_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "agentendpoint_grpc_service_config.json", deps = [ ":agentendpoint_csharp_grpc", ":agentendpoint_csharp_proto", diff --git a/third_party/googleapis/google/cloud/osconfig/agentendpoint/v1beta/osconfig_gapic.legacy.yaml b/third_party/googleapis/google/cloud/osconfig/agentendpoint/v1beta/osconfig_gapic.legacy.yaml deleted file mode 100644 index 08c8ca3ba..000000000 --- a/third_party/googleapis/google/cloud/osconfig/agentendpoint/v1beta/osconfig_gapic.legacy.yaml +++ /dev/null @@ -1,148 +0,0 @@ -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.osconfig.agentendpoint.v1beta - python: - package_name: google.cloud.osconfig.agentendpoint_v1beta.gapic - go: - package_name: cloud.google.com/go/osconfig/agentendpoint/apiv1beta - csharp: - package_name: Google.Cloud.OsConfig.Agentendpoint.V1beta - ruby: - package_name: Google::Cloud::OsConfig::Agentendpoint::V1beta - php: - package_name: Google\Cloud\OsConfig\Agentendpoint\V1beta - nodejs: - package_name: agentendpoint.v1beta -# A list of API interface configurations. -interfaces: -# The fully qualified name of the API interface. -- name: google.cloud.osconfig.agentendpoint.v1beta.AgentEndpointService - # 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: - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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. - # - # 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: ReceiveTaskNotification - flattening: - groups: - - parameters: - - instance_id_token - - agent_version - required_fields: - - instance_id_token - - agent_version - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 60000 - - name: StartNextTask - flattening: - groups: - - parameters: - - instance_id_token - required_fields: - - instance_id_token - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 60000 - - name: ReportTaskProgress - flattening: - groups: - - parameters: - - instance_id_token - - task_id - - task_type - required_fields: - - instance_id_token - - task_id - - task_type - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 60000 - - name: ReportTaskComplete - flattening: - groups: - - parameters: - - instance_id_token - - task_id - - task_type - - error_message - required_fields: - - instance_id_token - - task_id - - task_type - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 60000 diff --git a/third_party/googleapis/google/cloud/osconfig/agentendpoint/v1beta/tasks.proto b/third_party/googleapis/google/cloud/osconfig/agentendpoint/v1beta/tasks.proto index e5ad39f83..3365a8f72 100644 --- a/third_party/googleapis/google/cloud/osconfig/agentendpoint/v1beta/tasks.proto +++ b/third_party/googleapis/google/cloud/osconfig/agentendpoint/v1beta/tasks.proto @@ -20,6 +20,7 @@ import "google/api/field_behavior.proto"; import "google/cloud/osconfig/agentendpoint/v1beta/patch_jobs.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/agentendpoint/v1beta;agentendpoint"; +option java_multiple_files = true; option java_outer_classname = "Tasks"; option java_package = "com.google.cloud.osconfig.agentendpoint.v1beta"; @@ -174,6 +175,7 @@ message ExecStepTaskOutput { // Required. The final state of the exec step. State state = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. The exit code received from the script which ran as part of the exec step. + // Required. The exit code received from the script which ran as part of the + // exec step. int32 exit_code = 2 [(google.api.field_behavior) = REQUIRED]; } diff --git a/third_party/googleapis/google/cloud/osconfig/v1/BUILD.bazel b/third_party/googleapis/google/cloud/osconfig/v1/BUILD.bazel index 6ef114e0e..0c3c0dd22 100644 --- a/third_party/googleapis/google/cloud/osconfig/v1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/osconfig/v1/BUILD.bazel @@ -1,4 +1,13 @@ # This file was automatically generated by BuildFileGenerator +# https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/bazel + +# Most of the manual changes to this file will be overwritten. +# It's **only** allowed to change the following rule attribute values: +# - names of *_gapic_assembly_* rules +# - certain parameters of *_gapic_library rules, including but not limited to: +# * extra_protoc_parameters +# * extra_protoc_file_parameters +# The complete list of preserved parameters can be found in the source code. # This is an API workspace, having public visibility by default makes perfect sense. package(default_visibility = ["//visibility:public"]) @@ -12,6 +21,8 @@ load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info") proto_library( name = "osconfig_proto", srcs = [ + "inventory.proto", + "osconfig_common.proto", "osconfig_service.proto", "patch_deployments.proto", "patch_jobs.proto", @@ -63,11 +74,8 @@ java_grpc_library( java_gapic_library( name = "osconfig_java_gapic", - src = ":osconfig_proto_with_info", - gapic_yaml = "osconfig_gapic.yaml", + srcs = [":osconfig_proto_with_info"], grpc_service_config = "osconfig_grpc_service_config.json", - package = "google.cloud.osconfig.v1", - service_yaml = "osconfig_v1.yaml", test_deps = [ ":osconfig_java_grpc", ], @@ -153,53 +161,14 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "osconfig_moved_proto", - srcs = [":osconfig_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:resource_proto", - "//google/type:datetime_proto", - "//google/type:dayofweek_proto", - "//google/type:timeofday_proto", - "@com_google_protobuf//:duration_proto", - "@com_google_protobuf//:empty_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -py_proto_library( - name = "osconfig_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":osconfig_moved_proto"], -) - -py_grpc_library( - name = "osconfig_py_grpc", - srcs = [":osconfig_moved_proto"], - deps = [":osconfig_py_proto"], ) py_gapic_library( name = "osconfig_py_gapic", - src = ":osconfig_proto_with_info", - gapic_yaml = "osconfig_gapic.yaml", + srcs = [":osconfig_proto"], grpc_service_config = "osconfig_grpc_service_config.json", - package = "google.cloud.osconfig.v1", - service_yaml = "osconfig_v1.yaml", - deps = [ - ":osconfig_py_grpc", - ":osconfig_py_proto", - ], ) # Open Source Packages @@ -207,8 +176,6 @@ py_gapic_assembly_pkg( name = "osconfig-v1-py", deps = [ ":osconfig_py_gapic", - ":osconfig_py_grpc", - ":osconfig_py_proto", ], ) @@ -270,6 +237,7 @@ nodejs_gapic_library( name = "osconfig_nodejs_gapic", package_name = "@google-cloud/os-config", src = ":osconfig_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "osconfig_grpc_service_config.json", main_service = "OsConfigServiceClient", package = "google.cloud.osconfig.v1", @@ -291,7 +259,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -307,12 +275,19 @@ ruby_grpc_library( deps = [":osconfig_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "osconfig_ruby_gapic", - src = ":osconfig_proto_with_info", - gapic_yaml = "osconfig_gapic.yaml", - package = "google.cloud.osconfig.v1", - service_yaml = "osconfig_v1.yaml", + srcs = [":osconfig_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-os_config-v1", + "ruby-cloud-env-prefix=OS_CONFIG", + "ruby-cloud-product-url=https://cloud.google.com/compute/docs/manage-os", + "ruby-cloud-api-id=osconfig.googleapis.com", + "ruby-cloud-api-shortname=osconfig", + ], + grpc_service_config = "osconfig_grpc_service_config.json", + ruby_cloud_description = "Cloud OS Config provides OS management tools that can be used for patch management, patch compliance, and configuration management on VM instances.", + ruby_cloud_title = "Cloud OS Config V1", deps = [ ":osconfig_ruby_grpc", ":osconfig_ruby_proto", @@ -354,8 +329,8 @@ csharp_grpc_library( csharp_gapic_library( name = "osconfig_csharp_gapic", srcs = [":osconfig_proto_with_info"], - grpc_service_config = "osconfig_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "osconfig_grpc_service_config.json", deps = [ ":osconfig_csharp_grpc", ":osconfig_csharp_proto", diff --git a/third_party/googleapis/google/cloud/osconfig/v1/inventory.proto b/third_party/googleapis/google/cloud/osconfig/v1/inventory.proto new file mode 100644 index 000000000..ba3318e70 --- /dev/null +++ b/third_party/googleapis/google/cloud/osconfig/v1/inventory.proto @@ -0,0 +1,258 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.osconfig.v1; + +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.OsConfig.V1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1;osconfig"; +option java_multiple_files = true; +option java_outer_classname = "Inventories"; +option java_package = "com.google.cloud.osconfig.v1"; +option php_namespace = "Google\\Cloud\\OsConfig\\V1"; +option ruby_package = "Google::Cloud::OsConfig::V1"; + +// OS Config Inventory is a service for collecting and reporting operating +// system and package information on VM instances. + +// The inventory details of a VM. +message Inventory { + // Operating system information for the VM. + message OsInfo { + // The VM hostname. + string hostname = 9; + + // The operating system long name. + // For example 'Debian GNU/Linux 9' or 'Microsoft Window Server 2019 + // Datacenter'. + string long_name = 2; + + // The operating system short name. + // For example, 'windows' or 'debian'. + string short_name = 3; + + // The version of the operating system. + string version = 4; + + // The system architecture of the operating system. + string architecture = 5; + + // The kernel version of the operating system. + string kernel_version = 6; + + // The kernel release of the operating system. + string kernel_release = 7; + + // The current version of the OS Config agent running on the VM. + string osconfig_agent_version = 8; + } + + // A single piece of inventory on a VM. + message Item { + // The origin of a specific inventory item. + enum OriginType { + // Invalid. An origin type must be specified. + ORIGIN_TYPE_UNSPECIFIED = 0; + + // This inventory item was discovered as the result of the agent + // reporting inventory via the reporting API. + INVENTORY_REPORT = 1; + } + + // The different types of inventory that are tracked on a VM. + enum Type { + // Invalid. An type must be specified. + TYPE_UNSPECIFIED = 0; + + // This represents a package that is installed on the VM. + INSTALLED_PACKAGE = 1; + + // This represents an update that is available for a package. + AVAILABLE_PACKAGE = 2; + } + + // Identifier for this item, unique across items for this VM. + string id = 1; + + // The origin of this inventory item. + OriginType origin_type = 2; + + // When this inventory item was first detected. + google.protobuf.Timestamp create_time = 8; + + // When this inventory item was last modified. + google.protobuf.Timestamp update_time = 9; + + // The specific type of inventory, correlating to its specific details. + Type type = 5; + + // Specific details of this inventory item based on its type. + oneof details { + // Software package present on the VM instance. + SoftwarePackage installed_package = 6; + + // Software package available to be installed on the VM instance. + SoftwarePackage available_package = 7; + } + } + + // Software package information of the operating system. + message SoftwarePackage { + // Information about the different types of software packages. + oneof details { + // Yum package info. + // For details about the yum package manager, see + // https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/ch-yum. + VersionedPackage yum_package = 1; + + // Details of an APT package. + // For details about the apt package manager, see + // https://wiki.debian.org/Apt. + VersionedPackage apt_package = 2; + + // Details of a Zypper package. + // For details about the Zypper package manager, see + // https://en.opensuse.org/SDB:Zypper_manual. + VersionedPackage zypper_package = 3; + + // Details of a Googet package. + // For details about the googet package manager, see + // https://github.com/google/googet. + VersionedPackage googet_package = 4; + + // Details of a Zypper patch. + // For details about the Zypper package manager, see + // https://en.opensuse.org/SDB:Zypper_manual. + ZypperPatch zypper_patch = 5; + + // Details of a Windows Update package. + // See https://docs.microsoft.com/en-us/windows/win32/api/_wua/ for + // information about Windows Update. + WindowsUpdatePackage wua_package = 6; + + // Details of a Windows Quick Fix engineering package. + // See + // https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering + // for info in Windows Quick Fix Engineering. + WindowsQuickFixEngineeringPackage qfe_package = 7; + + // Details of a COS package. + VersionedPackage cos_package = 8; + } + } + + // Information related to the a standard versioned package. This includes + // package info for APT, Yum, Zypper, and Googet package managers. + message VersionedPackage { + // The name of the package. + string package_name = 4; + + // The system architecture this package is intended for. + string architecture = 2; + + // The version of the package. + string version = 3; + } + + // Details related to a Windows Update package. + // Field data and names are taken from Windows Update API IUpdate Interface: + // https://docs.microsoft.com/en-us/windows/win32/api/_wua/ + // Descriptive fields like title, and description are localized based on + // the locale of the VM being updated. + message WindowsUpdatePackage { + // Categories specified by the Windows Update. + message WindowsUpdateCategory { + // The identifier of the windows update category. + string id = 1; + + // The name of the windows update category. + string name = 2; + } + + // The localized title of the update package. + string title = 1; + + // The localized description of the update package. + string description = 2; + + // The categories that are associated with this update package. + repeated WindowsUpdateCategory categories = 3; + + // A collection of Microsoft Knowledge Base article IDs that are associated + // with the update package. + repeated string kb_article_ids = 4; + + // A hyperlink to the language-specific support information for the update. + string support_url = 11; + + // A collection of URLs that provide more information about the update + // package. + repeated string more_info_urls = 5; + + // Gets the identifier of an update package. Stays the same across + // revisions. + string update_id = 6; + + // The revision number of this update package. + int32 revision_number = 7; + + // The last published date of the update, in (UTC) date and time. + google.protobuf.Timestamp last_deployment_change_time = 10; + } + + // Details related to a Zypper Patch. + message ZypperPatch { + // The name of the patch. + string patch_name = 5; + + // The category of the patch. + string category = 2; + + // The severity specified for this patch + string severity = 3; + + // Any summary information provided about this patch. + string summary = 4; + } + + // Information related to a Quick Fix Engineering package. + // Fields are taken from Windows QuickFixEngineering Interface and match + // the source names: + // https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering + message WindowsQuickFixEngineeringPackage { + // A short textual description of the QFE update. + string caption = 1; + + // A textual description of the QFE update. + string description = 2; + + // Unique identifier associated with a particular QFE update. + string hot_fix_id = 3; + + // Date that the QFE update was installed. Mapped from installed_on field. + google.protobuf.Timestamp install_time = 5; + } + + // Base level operating system information for the VM. + OsInfo os_info = 1; + + // Inventory items related to the VM keyed by an opaque unique identifier for + // each inventory item. The identifier is unique to each distinct and + // addressable inventory item and will change, when there is a new package + // version. + map items = 2; +} diff --git a/third_party/googleapis/google/cloud/osconfig/v1/osconfig_common.proto b/third_party/googleapis/google/cloud/osconfig/v1/osconfig_common.proto new file mode 100644 index 000000000..43059e9a6 --- /dev/null +++ b/third_party/googleapis/google/cloud/osconfig/v1/osconfig_common.proto @@ -0,0 +1,38 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.osconfig.v1; + +option csharp_namespace = "Google.Cloud.OsConfig.V1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1;osconfig"; +option java_outer_classname = "Common"; +option java_package = "com.google.cloud.osconfig.v1"; +option php_namespace = "Google\\Cloud\\OsConfig\\V1"; +option ruby_package = "Google::Cloud::OsConfig::V1"; + +// Message encapsulating a value that can be either absolute ("fixed") or +// relative ("percent") to a value. +message FixedOrPercent { + // Type of the value. + oneof mode { + // Specifies a fixed value. + int32 fixed = 1; + + // Specifies the relative value defined as a percentage, which will be + // multiplied by a reference value. + int32 percent = 2; + } +} diff --git a/third_party/googleapis/google/cloud/osconfig/v1/osconfig_gapic.legacy.yaml b/third_party/googleapis/google/cloud/osconfig/v1/osconfig_gapic.legacy.yaml deleted file mode 100644 index 099916fbe..000000000 --- a/third_party/googleapis/google/cloud/osconfig/v1/osconfig_gapic.legacy.yaml +++ /dev/null @@ -1,19 +0,0 @@ -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.osconfig.v1 - python: - package_name: google.cloud.osconfig_v1.gapic - go: - package_name: cloud.google.com/go/osconfig/apiv1 - csharp: - package_name: Google.Cloud.OsConfig.V1 - ruby: - package_name: Google::Cloud::OsConfig::V1 - php: - package_name: Google\Cloud\OsConfig\V1 - nodejs: - package_name: osconfig.v1 - domain_layer_location: google-cloud diff --git a/third_party/googleapis/google/cloud/osconfig/v1/osconfig_gapic.yaml b/third_party/googleapis/google/cloud/osconfig/v1/osconfig_gapic.yaml index dd81d6a9d..0ee6371d7 100644 --- a/third_party/googleapis/google/cloud/osconfig/v1/osconfig_gapic.yaml +++ b/third_party/googleapis/google/cloud/osconfig/v1/osconfig_gapic.yaml @@ -2,8 +2,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 # The settings of generated code in a specific language. language_settings: - java: - package_name: com.google.cloud.osconfig.v1 python: package_name: google.cloud.osconfig_v1.gapic go: diff --git a/third_party/googleapis/google/cloud/osconfig/v1/osconfig_v1.yaml b/third_party/googleapis/google/cloud/osconfig/v1/osconfig_v1.yaml index 32fa1aeaa..0a4a3ec8e 100644 --- a/third_party/googleapis/google/cloud/osconfig/v1/osconfig_v1.yaml +++ b/third_party/googleapis/google/cloud/osconfig/v1/osconfig_v1.yaml @@ -1,11 +1,14 @@ type: google.api.Service config_version: 3 name: osconfig.googleapis.com -title: Cloud OS Config API +title: OS Config API apis: - name: google.cloud.osconfig.v1.OsConfigService +types: +- name: google.cloud.osconfig.v1.Inventory + documentation: summary: |- OS management tools that can be used for patch management, patch diff --git a/third_party/googleapis/google/cloud/osconfig/v1/patch_deployments.proto b/third_party/googleapis/google/cloud/osconfig/v1/patch_deployments.proto index 10ea5d1a7..d8bb84a91 100644 --- a/third_party/googleapis/google/cloud/osconfig/v1/patch_deployments.proto +++ b/third_party/googleapis/google/cloud/osconfig/v1/patch_deployments.proto @@ -49,47 +49,59 @@ message PatchDeployment { // This field is ignored when you create a new patch deployment. string name = 1; - // Optional. Description of the patch deployment. Length of the description is limited - // to 1024 characters. + // Optional. Description of the patch deployment. Length of the description is + // limited to 1024 characters. string description = 2 [(google.api.field_behavior) = OPTIONAL]; // Required. VM instances to patch. - PatchInstanceFilter instance_filter = 3 [(google.api.field_behavior) = REQUIRED]; + PatchInstanceFilter instance_filter = 3 + [(google.api.field_behavior) = REQUIRED]; // Optional. Patch configuration that is applied. PatchConfig patch_config = 4 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Duration of the patch. After the duration ends, the patch times out. - google.protobuf.Duration duration = 5 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Duration of the patch. After the duration ends, the patch times + // out. + google.protobuf.Duration duration = 5 + [(google.api.field_behavior) = OPTIONAL]; // Schedule for the patch. oneof schedule { // Required. Schedule a one-time execution. - OneTimeSchedule one_time_schedule = 6 [(google.api.field_behavior) = REQUIRED]; + OneTimeSchedule one_time_schedule = 6 + [(google.api.field_behavior) = REQUIRED]; // Required. Schedule recurring executions. - RecurringSchedule recurring_schedule = 7 [(google.api.field_behavior) = REQUIRED]; + RecurringSchedule recurring_schedule = 7 + [(google.api.field_behavior) = REQUIRED]; } // Output only. Time the patch deployment was created. Timestamp is in // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - google.protobuf.Timestamp create_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Time the patch deployment was last updated. Timestamp is in // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - google.protobuf.Timestamp update_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The last time a patch job was started by this deployment. // Timestamp is in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text // format. - google.protobuf.Timestamp last_execute_time = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp last_execute_time = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Rollout strategy of the patch job. + PatchRollout rollout = 11 [(google.api.field_behavior) = OPTIONAL]; } // Sets the time for a one time patch deployment. Timestamp is in // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. message OneTimeSchedule { // Required. The desired patch job execution time. - google.protobuf.Timestamp execute_time = 1 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.Timestamp execute_time = 1 + [(google.api.field_behavior) = REQUIRED]; } // Sets the time for recurring patch deployments. @@ -114,14 +126,17 @@ message RecurringSchedule { // Optional. The time that the recurring schedule becomes effective. // Defaults to `create_time` of the patch deployment. - google.protobuf.Timestamp start_time = 2 [(google.api.field_behavior) = OPTIONAL]; + google.protobuf.Timestamp start_time = 2 + [(google.api.field_behavior) = OPTIONAL]; - // Optional. The end time at which a recurring patch deployment schedule is no longer - // active. - google.protobuf.Timestamp end_time = 3 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The end time at which a recurring patch deployment schedule is no + // longer active. + google.protobuf.Timestamp end_time = 3 + [(google.api.field_behavior) = OPTIONAL]; // Required. Time of the day to run a recurring deployment. - google.type.TimeOfDay time_of_day = 4 [(google.api.field_behavior) = REQUIRED]; + google.type.TimeOfDay time_of_day = 4 + [(google.api.field_behavior) = REQUIRED]; // Required. The frequency unit of this recurring schedule. Frequency frequency = 5 [(google.api.field_behavior) = REQUIRED]; @@ -137,16 +152,19 @@ message RecurringSchedule { } // Output only. The time the last patch job ran successfully. - google.protobuf.Timestamp last_execute_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp last_execute_time = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time the next patch job is scheduled to run. - google.protobuf.Timestamp next_execute_time = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp next_execute_time = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Represents a weekly schedule. message WeeklySchedule { // Required. Day of the week. - google.type.DayOfWeek day_of_week = 1 [(google.api.field_behavior) = REQUIRED]; + google.type.DayOfWeek day_of_week = 1 + [(google.api.field_behavior) = REQUIRED]; } // Represents a monthly schedule. An example of a valid monthly schedule is @@ -155,29 +173,32 @@ message MonthlySchedule { // One day in a month. oneof day_of_month { // Required. Week day in a month. - WeekDayOfMonth week_day_of_month = 1 [(google.api.field_behavior) = REQUIRED]; + WeekDayOfMonth week_day_of_month = 1 + [(google.api.field_behavior) = REQUIRED]; - // Required. One day of the month. 1-31 indicates the 1st to the 31st day. -1 - // indicates the last day of the month. - // Months without the target day will be skipped. For example, a schedule to - // run "every month on the 31st" will not run in February, April, June, etc. + // Required. One day of the month. 1-31 indicates the 1st to the 31st day. + // -1 indicates the last day of the month. Months without the target day + // will be skipped. For example, a schedule to run "every month on the 31st" + // will not run in February, April, June, etc. int32 month_day = 2 [(google.api.field_behavior) = REQUIRED]; } } // Represents one week day in a month. An example is "the 4th Sunday". message WeekDayOfMonth { - // Required. Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1 - // indicates the last week of the month. + // Required. Week number in a month. 1-4 indicates the 1st to 4th week of the + // month. -1 indicates the last week of the month. int32 week_ordinal = 1 [(google.api.field_behavior) = REQUIRED]; // Required. A day of the week. - google.type.DayOfWeek day_of_week = 2 [(google.api.field_behavior) = REQUIRED]; + google.type.DayOfWeek day_of_week = 2 + [(google.api.field_behavior) = REQUIRED]; } // A request message for creating a patch deployment. message CreatePatchDeploymentRequest { - // Required. The project to apply this patch deployment to in the form `projects/*`. + // Required. The project to apply this patch deployment to in the form + // `projects/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -185,8 +206,8 @@ message CreatePatchDeploymentRequest { } ]; - // Required. A name for the patch deployment in the project. When creating a name - // the following rules apply: + // Required. A name for the patch deployment in the project. When creating a + // name the following rules apply: // * Must contain only lowercase letters, numbers, and hyphens. // * Must start with a letter. // * Must be between 1-63 characters. @@ -220,11 +241,13 @@ message ListPatchDeploymentsRequest { } ]; - // Optional. The maximum number of patch deployments to return. Default is 100. + // Optional. The maximum number of patch deployments to return. Default is + // 100. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. A pagination token returned from a previous call to ListPatchDeployments - // that indicates where this listing should continue from. + // Optional. A pagination token returned from a previous call to + // ListPatchDeployments that indicates where this listing should continue + // from. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/third_party/googleapis/google/cloud/osconfig/v1/patch_jobs.proto b/third_party/googleapis/google/cloud/osconfig/v1/patch_jobs.proto index 553c9e471..1fffb532a 100644 --- a/third_party/googleapis/google/cloud/osconfig/v1/patch_jobs.proto +++ b/third_party/googleapis/google/cloud/osconfig/v1/patch_jobs.proto @@ -18,6 +18,7 @@ package google.cloud.osconfig.v1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/osconfig/v1/osconfig_common.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; @@ -43,9 +44,10 @@ message ExecutePatchJobRequest { // to 1024 characters. string description = 2; - // Required. Instances to patch, either explicitly or filtered by some criteria such - // as zone or labels. - PatchInstanceFilter instance_filter = 7 [(google.api.field_behavior) = REQUIRED]; + // Required. Instances to patch, either explicitly or filtered by some + // criteria such as zone or labels. + PatchInstanceFilter instance_filter = 7 + [(google.api.field_behavior) = REQUIRED]; // Patch configuration being applied. If omitted, instances are // patched using the default configurations. @@ -61,6 +63,9 @@ message ExecutePatchJobRequest { // Display name for this patch job. This does not have to be unique. string display_name = 8; + + // Rollout strategy of the patch job. + PatchRollout rollout = 9; } // Request to get an active or completed patch job. @@ -76,7 +81,8 @@ message GetPatchJobRequest { // Request to list details for all instances that are part of a patch job. message ListPatchJobInstanceDetailsRequest { - // Required. The parent for the instances are in the form of `projects/*/patchJobs/*`. + // Required. The parent for the instances are in the form of + // `projects/*/patchJobs/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -113,8 +119,8 @@ message ListPatchJobInstanceDetailsResponse { message PatchJobInstanceDetails { // The instance name in the form `projects/*/zones/*/instances/*` string name = 1 [(google.api.resource_reference) = { - type: "compute.googleapis.com/Instance" - }]; + type: "compute.googleapis.com/Instance" + }]; // The unique identifier for the instance. This identifier is // defined by the server. @@ -165,7 +171,7 @@ message ListPatchJobsResponse { // A high level representation of a patch job that is either in progress // or has completed. // -// Instances details are not included in the job. To paginate through instance +// Instance details are not included in the job. To paginate through instance // details, use ListPatchJobInstanceDetails. // // For more information about patch jobs, see @@ -275,7 +281,7 @@ message PatchJob { // Last time this patch job was updated. google.protobuf.Timestamp update_time = 4; - // The current state of the PatchJob . + // The current state of the PatchJob. State state = 5; // Instances to patch. @@ -310,6 +316,9 @@ message PatchJob { type: "osconfig.googleapis.com/PatchDeployment" } ]; + + // Rollout strategy being applied. + PatchRollout rollout = 16; } // Patch configuration specifications. Contains details on how to apply the @@ -416,8 +425,6 @@ message Instance { // service. NO_AGENT_DETECTED = 15; } - - } // Message for canceling a patch job. @@ -484,9 +491,7 @@ message YumSettings { } // Googet patching is performed by running `googet update`. -message GooSettings { - -} +message GooSettings {} // Zypper patching is performed by running `zypper patch`. // See also https://en.opensuse.org/SDB:Zypper_manual. @@ -683,3 +688,52 @@ message PatchInstanceFilter { // example prefix="prod-". repeated string instance_name_prefixes = 5; } + +// Patch rollout configuration specifications. Contains details on the +// concurrency control when applying patch(es) to all targeted VMs. +message PatchRollout { + // Type of the rollout. + enum Mode { + // Mode must be specified. + MODE_UNSPECIFIED = 0; + + // Patches are applied one zone at a time. The patch job begins in the + // region with the lowest number of targeted VMs. Within the region, + // patching begins in the zone with the lowest number of targeted VMs. If + // multiple regions (or zones within a region) have the same number of + // targeted VMs, a tie-breaker is achieved by sorting the regions or zones + // in alphabetical order. + ZONE_BY_ZONE = 1; + + // Patches are applied to VMs in all zones at the same time. + CONCURRENT_ZONES = 2; + } + + // Mode of the patch rollout. + Mode mode = 1; + + // The maximum number (or percentage) of VMs per zone to disrupt at any given + // moment. The number of VMs calculated from multiplying the percentage by the + // total number of VMs in a zone is rounded up. + // + // During patching, a VM is considered disrupted from the time the agent is + // notified to begin until patching has completed. This disruption time + // includes the time to complete reboot and any post-patch steps. + // + // A VM contributes to the disruption budget if its patching operation fails + // either when applying the patches, running pre or post patch steps, or if it + // fails to respond with a success notification before timing out. VMs that + // are not running or do not have an active agent do not count toward this + // disruption budget. + // + // For zone-by-zone rollouts, if the disruption budget in a zone is exceeded, + // the patch job stops, because continuing to the next zone requires + // completion of the patch process in the previous zone. + // + // For example, if the disruption budget has a fixed value of `10`, and 8 VMs + // fail to patch in the current zone, the patch job continues to patch 2 VMs + // at a time until the zone is completed. When that zone is completed + // successfully, patching begins with 10 VMs at a time in the next zone. If 10 + // VMs in the next zone fail to patch, the patch job stops. + FixedOrPercent disruption_budget = 2; +} diff --git a/third_party/googleapis/google/cloud/osconfig/v1beta/BUILD.bazel b/third_party/googleapis/google/cloud/osconfig/v1beta/BUILD.bazel index 109e593dd..fbd56d753 100644 --- a/third_party/googleapis/google/cloud/osconfig/v1beta/BUILD.bazel +++ b/third_party/googleapis/google/cloud/osconfig/v1beta/BUILD.bazel @@ -1,4 +1,13 @@ # This file was automatically generated by BuildFileGenerator +# https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/bazel + +# Most of the manual changes to this file will be overwritten. +# It's **only** allowed to change the following rule attribute values: +# - names of *_gapic_assembly_* rules +# - certain parameters of *_gapic_library rules, including but not limited to: +# * extra_protoc_parameters +# * extra_protoc_file_parameters +# The complete list of preserved parameters can be found in the source code. # This is an API workspace, having public visibility by default makes perfect sense. package(default_visibility = ["//visibility:public"]) @@ -65,11 +74,8 @@ java_grpc_library( java_gapic_library( name = "osconfig_java_gapic", - src = ":osconfig_proto_with_info", - gapic_yaml = "osconfig_gapic.yaml", + srcs = [":osconfig_proto_with_info"], grpc_service_config = "osconfig_grpc_service_config.json", - package = "google.cloud.osconfig.v1beta", - service_yaml = "osconfig_v1beta.yaml", test_deps = [ ":osconfig_java_grpc", ], @@ -155,54 +161,14 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "osconfig_moved_proto", - srcs = [":osconfig_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:resource_proto", - "//google/type:datetime_proto", - "//google/type:dayofweek_proto", - "//google/type:timeofday_proto", - "@com_google_protobuf//:duration_proto", - "@com_google_protobuf//:empty_proto", - "@com_google_protobuf//:field_mask_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -py_proto_library( - name = "osconfig_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":osconfig_moved_proto"], -) - -py_grpc_library( - name = "osconfig_py_grpc", - srcs = [":osconfig_moved_proto"], - deps = [":osconfig_py_proto"], ) py_gapic_library( name = "osconfig_py_gapic", - src = ":osconfig_proto_with_info", - gapic_yaml = "osconfig_gapic.yaml", + srcs = [":osconfig_proto"], grpc_service_config = "osconfig_grpc_service_config.json", - package = "google.cloud.osconfig.v1beta", - service_yaml = "osconfig_v1beta.yaml", - deps = [ - ":osconfig_py_grpc", - ":osconfig_py_proto", - ], ) # Open Source Packages @@ -210,8 +176,6 @@ py_gapic_assembly_pkg( name = "osconfig-v1beta-py", deps = [ ":osconfig_py_gapic", - ":osconfig_py_grpc", - ":osconfig_py_proto", ], ) @@ -272,6 +236,7 @@ load( nodejs_gapic_library( name = "osconfig_nodejs_gapic", src = ":osconfig_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "osconfig_grpc_service_config.json", package = "google.cloud.osconfig.v1beta", service_yaml = "osconfig_v1beta.yaml", @@ -355,8 +320,8 @@ csharp_grpc_library( csharp_gapic_library( name = "osconfig_csharp_gapic", srcs = [":osconfig_proto_with_info"], - grpc_service_config = "osconfig_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "osconfig_grpc_service_config.json", deps = [ ":osconfig_csharp_grpc", ":osconfig_csharp_proto", diff --git a/third_party/googleapis/google/cloud/osconfig/v1beta/osconfig_gapic.legacy.yaml b/third_party/googleapis/google/cloud/osconfig/v1beta/osconfig_gapic.legacy.yaml deleted file mode 100644 index 2f000180f..000000000 --- a/third_party/googleapis/google/cloud/osconfig/v1beta/osconfig_gapic.legacy.yaml +++ /dev/null @@ -1,337 +0,0 @@ -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.osconfig.v1beta - python: - package_name: google.cloud.osconfig_v1beta.gapic - go: - package_name: cloud.google.com/go/osconfig/apiv1beta - csharp: - package_name: Google.Cloud.OsConfig.V1beta - ruby: - package_name: Google::Cloud::OsConfig::V1beta - php: - package_name: Google\Cloud\OsConfig\V1beta - nodejs: - package_name: osconfig.v1beta -# A list of API interface configurations. -interfaces: -# The fully qualified name of the API interface. -- name: google.cloud.osconfig.v1beta.OsConfigService - # 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: - - name_pattern: projects/{project} - entity_name: project - - name_pattern: projects/{project}/guestPolicies/{guest_policy} - entity_name: guest_policy - - name_pattern: projects/{project}/patchDeployments/{patch_deployment} - entity_name: patch_deployment - - name_pattern: projects/{project}/patchJobs/{patch_job} - entity_name: patch_job - - name_pattern: projects/{project}/zones/{zone}/instances/{instance} - entity_name: instance - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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. - # - # 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: ExecutePatchJob - required_fields: - - parent - - description - - instance_filter - - patch_config - - duration - - dry_run - - display_name - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 60000 - - name: GetPatchJob - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: patch_job - timeout_millis: 60000 - - name: CancelPatchJob - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: patch_job - timeout_millis: 60000 - - name: ListPatchJobs - flattening: - groups: - - parameters: - - parent - - filter - required_fields: - - parent - - filter - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: patch_jobs - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 60000 - - name: ListPatchJobInstanceDetails - flattening: - groups: - - parameters: - - parent - - filter - required_fields: - - parent - - filter - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: patch_job_instance_details - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: patch_job - timeout_millis: 60000 - - name: CreatePatchDeployment - flattening: - groups: - - parameters: - - parent - - patch_deployment_id - - patch_deployment - required_fields: - - parent - - patch_deployment_id - - patch_deployment - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 60000 - - name: GetPatchDeployment - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: patch_deployment - timeout_millis: 60000 - - name: ListPatchDeployments - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: patch_deployments - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 60000 - - name: DeletePatchDeployment - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: patch_deployment - timeout_millis: 60000 - - name: CreateGuestPolicy - flattening: - groups: - - parameters: - - parent - - guest_policy_id - - guest_policy - required_fields: - - parent - - guest_policy_id - - guest_policy - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 60000 - - name: GetGuestPolicy - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: guest_policy - timeout_millis: 60000 - - name: ListGuestPolicies - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: guest_policies - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 60000 - - name: UpdateGuestPolicy - flattening: - groups: - - parameters: - - guest_policy - - update_mask - required_fields: - - guest_policy - - update_mask - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - guest_policy.name: guest_policy - timeout_millis: 60000 - - name: DeleteGuestPolicy - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: guest_policy - timeout_millis: 60000 - - name: LookupEffectiveGuestPolicy - flattening: - groups: - - parameters: - - instance - - os_short_name - - os_version - - os_architecture - required_fields: - - instance - - os_short_name - - os_version - - os_architecture - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - instance: instance - timeout_millis: 60000 diff --git a/third_party/googleapis/google/cloud/osconfig/v1beta/osconfig_gapic.yaml b/third_party/googleapis/google/cloud/osconfig/v1beta/osconfig_gapic.yaml index 56e155e7a..dac568791 100644 --- a/third_party/googleapis/google/cloud/osconfig/v1beta/osconfig_gapic.yaml +++ b/third_party/googleapis/google/cloud/osconfig/v1beta/osconfig_gapic.yaml @@ -2,8 +2,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 # The settings of generated code in a specific language. language_settings: - java: - package_name: com.google.cloud.osconfig.v1beta python: package_name: google.cloud.osconfig_v1beta.gapic go: diff --git a/third_party/googleapis/google/cloud/oslogin/common/BUILD.bazel b/third_party/googleapis/google/cloud/oslogin/common/BUILD.bazel index 1d2c053b3..a705a0dc2 100644 --- a/third_party/googleapis/google/cloud/oslogin/common/BUILD.bazel +++ b/third_party/googleapis/google/cloud/oslogin/common/BUILD.bazel @@ -22,7 +22,7 @@ proto_library( proto_library_with_info( name = "common_proto_with_info", deps = [ - ":common_proto", + ":common_proto", ], ) @@ -67,12 +67,10 @@ go_proto_library( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -109,7 +107,6 @@ load( "nodejs_gapic_library", ) - ############################################################################## # Ruby ############################################################################## diff --git a/third_party/googleapis/google/cloud/oslogin/v1/BUILD.bazel b/third_party/googleapis/google/cloud/oslogin/v1/BUILD.bazel index 12916466e..aa4b60944 100644 --- a/third_party/googleapis/google/cloud/oslogin/v1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/oslogin/v1/BUILD.bazel @@ -33,7 +33,7 @@ proto_library_with_info( deps = [ ":oslogin_proto", "//google/cloud:common_resources_proto", - ], + ] + _PROTO_SUBPACKAGE_DEPS, ) ############################################################################## @@ -46,7 +46,6 @@ load( "java_gapic_test", "java_grpc_library", "java_proto_library", - "java_resource_name_proto_library", ) _JAVA_PROTO_SUBPACKAGE_DEPS = [ @@ -68,29 +67,16 @@ java_grpc_library( deps = [":oslogin_java_proto"] + _JAVA_PROTO_SUBPACKAGE_DEPS, ) -java_resource_name_proto_library( - name = "oslogin_java_gapic_resource_name", - gapic_yaml = "//google/cloud/oslogin/v1:oslogin_gapic.yaml", - deps = [ - ":oslogin_proto", - "//google/cloud:common_resources_proto", - ] + _PROTO_SUBPACKAGE_DEPS, -) - java_gapic_library( name = "oslogin_java_gapic", - src = ":oslogin_proto_with_info", + srcs = [":oslogin_proto_with_info"], gapic_yaml = "oslogin_gapic.yaml", - gen_resource_name = False, grpc_service_config = "oslogin_grpc_service_config.json", - package = "google.cloud.oslogin.v1", - service_yaml = ":oslogin_v1.yaml", test_deps = [ ":oslogin_java_grpc", ] + _JAVA_GRPC_SUBPACKAGE_DEPS, deps = [ ":oslogin_java_proto", - ":oslogin_java_gapic_resource_name", ] + _JAVA_PROTO_SUBPACKAGE_DEPS, ) @@ -110,7 +96,6 @@ java_gapic_assembly_gradle_pkg( ":oslogin_java_grpc", ":oslogin_java_proto", ":oslogin_proto", - ":oslogin_java_gapic_resource_name", ] + _JAVA_PROTO_SUBPACKAGE_DEPS + _PROTO_SUBPACKAGE_DEPS + _JAVA_GRPC_SUBPACKAGE_DEPS, ) @@ -169,12 +154,10 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -189,7 +172,7 @@ py_gapic_assembly_pkg( name = "oslogin-v1-py", deps = [ ":oslogin_py_gapic", - "//google/cloud/oslogin/common:common_py_gapic" + "//google/cloud/oslogin/common:common_py_gapic", ], ) @@ -256,6 +239,7 @@ nodejs_gapic_library( name = "oslogin_nodejs_gapic", package_name = "@google-cloud/os-login", src = ":oslogin_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "oslogin_grpc_service_config.json", package = "google.cloud.oslogin.v1", service_yaml = "oslogin_v1.yaml", @@ -276,7 +260,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -297,12 +281,19 @@ ruby_grpc_library( deps = [":oslogin_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "oslogin_ruby_gapic", - src = ":oslogin_proto_with_info", - gapic_yaml = "oslogin_gapic.yaml", - package = "google.cloud.oslogin.v1", - service_yaml = "oslogin_v1.yaml", + srcs = [":oslogin_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-os_login-v1", + "ruby-cloud-env-prefix=OS_LOGIN", + "ruby-cloud-product-url=https://cloud.google.com/compute/docs/oslogin", + "ruby-cloud-api-id=oslogin.googleapis.com", + "ruby-cloud-api-shortname=oslogin", + ], + grpc_service_config = "oslogin_grpc_service_config.json", + ruby_cloud_description = "Use OS Login to manage SSH access to your instances using IAM without having to create and manage individual SSH keys. OS Login maintains a consistent Linux user identity across VM instances and is the recommended way to manage many users across multiple instances or projects.", + ruby_cloud_title = "Cloud OS Login V1", deps = [ ":oslogin_ruby_grpc", ":oslogin_ruby_proto", @@ -349,8 +340,8 @@ csharp_grpc_library( csharp_gapic_library( name = "oslogin_csharp_gapic", srcs = [":oslogin_proto_with_info"], - grpc_service_config = "oslogin_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "oslogin_grpc_service_config.json", deps = [ ":oslogin_csharp_grpc", ":oslogin_csharp_proto", diff --git a/third_party/googleapis/google/cloud/oslogin/v1/oslogin_gapic.legacy.yaml b/third_party/googleapis/google/cloud/oslogin/v1/oslogin_gapic.legacy.yaml deleted file mode 100644 index 3aff8851c..000000000 --- a/third_party/googleapis/google/cloud/oslogin/v1/oslogin_gapic.legacy.yaml +++ /dev/null @@ -1,221 +0,0 @@ -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.oslogin.v1 - python: - package_name: google.cloud.oslogin_v1.gapic - go: - package_name: cloud.google.com/go/oslogin/apiv1 - csharp: - package_name: Google.Cloud.OsLogin.V1 - ruby: - package_name: Google::Cloud::OsLogin::V1 - php: - package_name: Google\Cloud\OsLogin\V1 - nodejs: - package_name: os-login.v1 - domain_layer_location: google-cloud -# A list of API interface configurations. -interfaces: -- name: google.cloud.oslogin.v1.OsLoginService - # 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: - - name_pattern: users/{user} - entity_name: user - - name_pattern: users/{user}/projects/{project} - entity_name: project - - name_pattern: users/{user}/sshPublicKeys/{fingerprint} - entity_name: fingerprint - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 10000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 10000 - total_timeout_millis: 600000 - # 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: DeletePosixAccount - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: project - resource_name_treatment: STATIC_TYPES - timeout_millis: 10000 - - name: DeleteSshPublicKey - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: fingerprint - resource_name_treatment: STATIC_TYPES - timeout_millis: 10000 - - name: GetLoginProfile - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: user - resource_name_treatment: STATIC_TYPES - timeout_millis: 10000 - - name: GetSshPublicKey - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: fingerprint - resource_name_treatment: STATIC_TYPES - timeout_millis: 10000 - - name: ImportSshPublicKey - flattening: - groups: - - parameters: - - parent - - ssh_public_key - - parameters: - - parent - - ssh_public_key - - project_id - required_fields: - - parent - - ssh_public_key - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: user - resource_name_treatment: STATIC_TYPES - timeout_millis: 10000 - - name: UpdateSshPublicKey - flattening: - groups: - - parameters: - - name - - ssh_public_key - - parameters: - - name - - ssh_public_key - - update_mask - required_fields: - - name - - ssh_public_key - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: fingerprint - resource_name_treatment: STATIC_TYPES - timeout_millis: 10000 -resource_name_generation: -- message_name: DeletePosixAccountRequest - field_entity_map: - name: project -- message_name: DeleteSshPublicKeyRequest - field_entity_map: - name: fingerprint -- message_name: GetLoginProfileRequest - field_entity_map: - name: user -- message_name: GetSshPublicKeyRequest - field_entity_map: - name: fingerprint -- message_name: ImportSshPublicKeyRequest - field_entity_map: - parent: user -- message_name: UpdateSshPublicKeyRequest - field_entity_map: - name: fingerprint diff --git a/third_party/googleapis/google/cloud/oslogin/v1beta/BUILD.bazel b/third_party/googleapis/google/cloud/oslogin/v1beta/BUILD.bazel index a00583784..62842ce2f 100644 --- a/third_party/googleapis/google/cloud/oslogin/v1beta/BUILD.bazel +++ b/third_party/googleapis/google/cloud/oslogin/v1beta/BUILD.bazel @@ -32,7 +32,7 @@ proto_library_with_info( deps = [ ":oslogin_proto", "//google/cloud:common_resources_proto", - ], + ] + _PROTO_SUBPACKAGE_DEPS, ) ############################################################################## @@ -45,7 +45,6 @@ load( "java_gapic_test", "java_grpc_library", "java_proto_library", - "java_resource_name_proto_library", ) _JAVA_PROTO_SUBPACKAGE_DEPS = [ @@ -67,26 +66,14 @@ java_grpc_library( deps = [":oslogin_java_proto"] + _JAVA_PROTO_SUBPACKAGE_DEPS, ) -java_resource_name_proto_library( - name = "oslogin_java_gapic_resource_name", - gapic_yaml = "//google/cloud/oslogin/v1:oslogin_gapic.yaml", - deps = [ - ":oslogin_proto", - "//google/cloud:common_resources_proto", - ] + _PROTO_SUBPACKAGE_DEPS, -) - java_gapic_library( name = "oslogin_java_gapic", - src = ":oslogin_proto_with_info", + srcs = [":oslogin_proto_with_info"], gapic_yaml = "oslogin_gapic.yaml", - gen_resource_name = False, grpc_service_config = "oslogin_grpc_service_config.json", - service_yaml = "//google/cloud/oslogin:oslogin_v1beta.yaml", test_deps = [":oslogin_java_grpc"], deps = [ ":oslogin_java_proto", - ":oslogin_java_gapic_resource_name", ] + _JAVA_PROTO_SUBPACKAGE_DEPS, ) @@ -164,12 +151,10 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -184,7 +169,7 @@ py_gapic_assembly_pkg( name = "oslogin-v1beta-py", deps = [ ":oslogin_py_gapic", - "//google/cloud/oslogin/common:common_py_gapic" + "//google/cloud/oslogin/common:common_py_gapic", ], ) @@ -251,6 +236,7 @@ nodejs_gapic_library( name = "oslogin_nodejs_gapic", package_name = "@google-cloud/os-login", src = ":oslogin_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "oslogin_grpc_service_config.json", package = "google.cloud.oslogin.v1beta", service_yaml = "oslogin_v1beta.yaml", @@ -271,7 +257,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -292,12 +278,19 @@ ruby_grpc_library( deps = [":oslogin_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "oslogin_ruby_gapic", - src = ":oslogin_proto_with_info", - gapic_yaml = "oslogin_gapic.yaml", - package = "google.cloud.oslogin.v1beta", - service_yaml = "oslogin_v1beta.yaml", + srcs = [":oslogin_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-os_login-v1beta", + "ruby-cloud-env-prefix=OS_LOGIN", + "ruby-cloud-product-url=https://cloud.google.com/compute/docs/oslogin", + "ruby-cloud-api-id=oslogin.googleapis.com", + "ruby-cloud-api-shortname=oslogin", + ], + grpc_service_config = "oslogin_grpc_service_config.json", + ruby_cloud_description = "Use OS Login to manage SSH access to your instances using IAM without having to create and manage individual SSH keys. OS Login maintains a consistent Linux user identity across VM instances and is the recommended way to manage many users across multiple instances or projects.", + ruby_cloud_title = "Cloud OS Login V1beta", deps = [ ":oslogin_ruby_grpc", ":oslogin_ruby_proto", @@ -344,8 +337,8 @@ csharp_grpc_library( csharp_gapic_library( name = "oslogin_csharp_gapic", srcs = [":oslogin_proto_with_info"], - grpc_service_config = "oslogin_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "oslogin_grpc_service_config.json", deps = [ ":oslogin_csharp_grpc", ":oslogin_csharp_proto", diff --git a/third_party/googleapis/google/cloud/oslogin/v1beta/oslogin_gapic.legacy.yaml b/third_party/googleapis/google/cloud/oslogin/v1beta/oslogin_gapic.legacy.yaml deleted file mode 100644 index 09251d436..000000000 --- a/third_party/googleapis/google/cloud/oslogin/v1beta/oslogin_gapic.legacy.yaml +++ /dev/null @@ -1,222 +0,0 @@ -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.oslogin.v1beta - python: - package_name: google.cloud.oslogin_v1beta.gapic - go: - package_name: cloud.google.com/go/oslogin/apiv1beta - csharp: - package_name: Google.Cloud.OsLogin.V1Beta - ruby: - package_name: Google::Cloud::OsLogin::V1beta - php: - package_name: Google\Cloud\OsLogin\V1beta - nodejs: - package_name: os-login.v1beta - domain_layer_location: google-cloud -# A list of API interface configurations. -interfaces: - # The fully qualified name of the API interface. -- name: google.cloud.oslogin.v1beta.OsLoginService - # 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: - - name_pattern: users/{user} - entity_name: user - - name_pattern: users/{user}/projects/{project} - entity_name: project - - name_pattern: users/{user}/sshPublicKeys/{fingerprint} - entity_name: fingerprint - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 10000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 10000 - total_timeout_millis: 600000 - # 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: DeletePosixAccount - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: project - resource_name_treatment: STATIC_TYPES - timeout_millis: 10000 - - name: DeleteSshPublicKey - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: fingerprint - resource_name_treatment: STATIC_TYPES - timeout_millis: 10000 - - name: GetLoginProfile - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: user - resource_name_treatment: STATIC_TYPES - timeout_millis: 10000 - - name: GetSshPublicKey - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: fingerprint - resource_name_treatment: STATIC_TYPES - timeout_millis: 10000 - - name: ImportSshPublicKey - flattening: - groups: - - parameters: - - parent - - ssh_public_key - - parameters: - - parent - - ssh_public_key - - project_id - required_fields: - - parent - - ssh_public_key - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: user - resource_name_treatment: STATIC_TYPES - timeout_millis: 10000 - - name: UpdateSshPublicKey - flattening: - groups: - - parameters: - - name - - ssh_public_key - - parameters: - - name - - ssh_public_key - - update_mask - required_fields: - - name - - ssh_public_key - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: fingerprint - resource_name_treatment: STATIC_TYPES - timeout_millis: 10000 -resource_name_generation: -- message_name: DeletePosixAccountRequest - field_entity_map: - name: project -- message_name: DeleteSshPublicKeyRequest - field_entity_map: - name: fingerprint -- message_name: GetLoginProfileRequest - field_entity_map: - name: user -- message_name: GetSshPublicKeyRequest - field_entity_map: - name: fingerprint -- message_name: ImportSshPublicKeyRequest - field_entity_map: - parent: user -- message_name: UpdateSshPublicKeyRequest - field_entity_map: - name: fingerprint diff --git a/third_party/googleapis/google/cloud/phishingprotection/v1beta1/BUILD.bazel b/third_party/googleapis/google/cloud/phishingprotection/v1beta1/BUILD.bazel index 19dfe5eff..5dd9e982a 100644 --- a/third_party/googleapis/google/cloud/phishingprotection/v1beta1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/phishingprotection/v1beta1/BUILD.bazel @@ -55,11 +55,9 @@ java_grpc_library( java_gapic_library( name = "phishingprotection_java_gapic", - src = ":phishingprotection_proto_with_info", + srcs = [":phishingprotection_proto_with_info"], gapic_yaml = "phishingprotection_gapic.yaml", grpc_service_config = "phishingprotection_grpc_service_config.json", - package = "google.cloud.phishingprotection.v1beta1", - service_yaml = "phishingprotection_v1beta1.yaml", test_deps = [ ":phishingprotection_java_grpc", ], @@ -139,12 +137,10 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -160,7 +156,6 @@ py_gapic_assembly_pkg( ], ) - ############################################################################## # PHP ############################################################################## @@ -219,6 +214,7 @@ nodejs_gapic_library( name = "phishingprotection_nodejs_gapic", package_name = "@google-cloud/phishing-protection", src = ":phishingprotection_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "phishingprotection_grpc_service_config.json", package = "google.cloud.phishingprotection.v1beta1", service_yaml = "phishingprotection_v1beta1.yaml", @@ -239,7 +235,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -255,12 +251,20 @@ ruby_grpc_library( deps = [":phishingprotection_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "phishingprotection_ruby_gapic", - src = ":phishingprotection_proto_with_info", - gapic_yaml = "phishingprotection_gapic.yaml", - package = "google.cloud.phishingprotection.v1beta1", - service_yaml = "phishingprotection_v1beta1.yaml", + srcs = [":phishingprotection_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-phishing_protection-v1beta1", + "ruby-cloud-env-prefix=PHISHING_PROTECTION", + "ruby-cloud-product-url=https://cloud.google.com/phishing-protection", + "ruby-cloud-api-id=phishingprotection.googleapis.com", + "ruby-cloud-api-shortname=phishingprotection", + "ruby-cloud-service-override=PhishingProtectionServiceV1Beta1=PhishingProtectionService", + ], + grpc_service_config = "phishingprotection_grpc_service_config.json", + ruby_cloud_description = "Phishing Protection helps prevent users from accessing phishing sites by identifying various signals associated with malicious content, including the use of your brand assets, classifying malicious content that uses your brand and reporting the unsafe URLs to Google Safe Browsing.", + ruby_cloud_title = "Phishing Protection V1beta1", deps = [ ":phishingprotection_ruby_grpc", ":phishingprotection_ruby_proto", @@ -302,8 +306,8 @@ csharp_grpc_library( csharp_gapic_library( name = "phishingprotection_csharp_gapic", srcs = [":phishingprotection_proto_with_info"], - grpc_service_config = "phishingprotection_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "phishingprotection_grpc_service_config.json", deps = [ ":phishingprotection_csharp_grpc", ":phishingprotection_csharp_proto", diff --git a/third_party/googleapis/google/cloud/phishingprotection/v1beta1/phishingprotection_gapic.legacy.yaml b/third_party/googleapis/google/cloud/phishingprotection/v1beta1/phishingprotection_gapic.legacy.yaml deleted file mode 100644 index 02d430412..000000000 --- a/third_party/googleapis/google/cloud/phishingprotection/v1beta1/phishingprotection_gapic.legacy.yaml +++ /dev/null @@ -1,135 +0,0 @@ -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.phishingprotection.v1beta1 - python: - package_name: google.cloud.phishingprotection_v1beta1.gapic - go: - package_name: cloud.google.com/go/phishingprotection/apiv1beta1 - csharp: - package_name: Google.Cloud.PhishingProtection.V1Beta1 - ruby: - package_name: Google::Cloud::PhishingProtection::V1beta1 - php: - package_name: Google\Cloud\PhishingProtection\V1beta1 - nodejs: - package_name: phishingprotection.v1beta1 -# The configuration for the license header to put on generated files. -license_header: - # The file containing the copyright line(s). - copyright_file: copyright-google.txt - # The file containing the raw license header without any copyright line(s). - license_file: license-header-apache-2.0.txt -# A list of API interface configurations. -interfaces: -# The fully qualified name of the API interface. -- name: google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1 - # 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: - - name_pattern: projects/{project} - entity_name: project - language_overrides: - - language: csharp - common_resource_name: Google.Api.Gax.ResourceNames.ProjectName - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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: ReportPhishing - flattening: - groups: - - parameters: - - parent - - uri - required_fields: - - parent - - uri - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 60000 -resource_name_generation: -- message_name: ReportPhishingRequest - field_entity_map: - parent: project diff --git a/third_party/googleapis/google/cloud/policytroubleshooter/v1/BUILD.bazel b/third_party/googleapis/google/cloud/policytroubleshooter/v1/BUILD.bazel index 2964fe473..48f3d9d3e 100644 --- a/third_party/googleapis/google/cloud/policytroubleshooter/v1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/policytroubleshooter/v1/BUILD.bazel @@ -1,4 +1,13 @@ # This file was automatically generated by BuildFileGenerator +# https://github.com/googleapis/rules_gapic/tree/master/bazel + +# Most of the manual changes to this file will be overwritten. +# It's **only** allowed to change the following rule attribute values: +# - names of *_gapic_assembly_* rules +# - certain parameters of *_gapic_library rules, including but not limited to: +# * extra_protoc_parameters +# * extra_protoc_file_parameters +# The complete list of preserved parameters can be found in the source code. # This is an API workspace, having public visibility by default makes perfect sense. package(default_visibility = ["//visibility:public"]) @@ -7,6 +16,7 @@ package(default_visibility = ["//visibility:public"]) # Common ############################################################################## load("@rules_proto//proto:defs.bzl", "proto_library") +load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info") proto_library( name = "policytroubleshooter_proto", @@ -23,11 +33,22 @@ proto_library( ], ) +proto_library_with_info( + name = "policytroubleshooter_proto_with_info", + deps = [ + ":policytroubleshooter_proto", + "//google/cloud:common_resources_proto", + ], +) + ############################################################################## # Java ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", + "java_gapic_assembly_gradle_pkg", + "java_gapic_library", + "java_gapic_test", "java_grpc_library", "java_proto_library", ) @@ -43,12 +64,48 @@ java_grpc_library( deps = [":policytroubleshooter_java_proto"], ) +java_gapic_library( + name = "policytroubleshooter_java_gapic", + srcs = [":policytroubleshooter_proto_with_info"], + grpc_service_config = "checker_grpc_service_config.json", + test_deps = [ + ":policytroubleshooter_java_grpc", + "//google/iam/v1:iam_java_grpc", + ], + deps = [ + ":policytroubleshooter_java_proto", + "//google/iam/v1:iam_java_proto", + ], +) + +java_gapic_test( + name = "policytroubleshooter_java_gapic_test_suite", + test_classes = [ + "com.google.cloud.policytroubleshooter.v1.IamCheckerClientTest", + ], + runtime_deps = [":policytroubleshooter_java_gapic_test"], +) + +# Open Source Packages +java_gapic_assembly_gradle_pkg( + name = "google-cloud-policytroubleshooter-v1-java", + deps = [ + ":policytroubleshooter_java_gapic", + ":policytroubleshooter_java_grpc", + ":policytroubleshooter_java_proto", + ":policytroubleshooter_proto", + ], +) + ############################################################################## # Go ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", + "go_gapic_assembly_pkg", + "go_gapic_library", "go_proto_library", + "go_test", ) go_proto_library( @@ -63,38 +120,56 @@ go_proto_library( ], ) +go_gapic_library( + name = "policytroubleshooter_go_gapic", + srcs = [":policytroubleshooter_proto_with_info"], + grpc_service_config = "checker_grpc_service_config.json", + importpath = "cloud.google.com/go/policytroubleshooter/apiv1;policytroubleshooter", + service_yaml = "policytroubleshooter_v1.yaml", + deps = [ + ":policytroubleshooter_go_proto", + "//google/iam/v1:iam_go_proto", + ], +) + +go_test( + name = "policytroubleshooter_go_gapic_test", + srcs = [":policytroubleshooter_go_gapic_srcjar_test"], + embed = [":policytroubleshooter_go_gapic"], + importpath = "cloud.google.com/go/policytroubleshooter/apiv1", +) + +# Open Source Packages +go_gapic_assembly_pkg( + name = "gapi-cloud-policytroubleshooter-v1-go", + deps = [ + ":policytroubleshooter_go_gapic", + ":policytroubleshooter_go_gapic_srcjar-test.srcjar", + ":policytroubleshooter_go_proto", + ], +) + ############################################################################## # Python ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", - "py_grpc_library", - "py_proto_library", + "py_gapic_assembly_pkg", + "py_gapic_library", ) -moved_proto_library( - name = "policytroubleshooter_moved_proto", +py_gapic_library( + name = "policytroubleshooter_py_gapic", srcs = [":policytroubleshooter_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/iam/v1:policy_proto", - "//google/type:expr_proto", - ], + grpc_service_config = "checker_grpc_service_config.json", ) -py_proto_library( - name = "policytroubleshooter_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":policytroubleshooter_moved_proto"], -) - -py_grpc_library( - name = "policytroubleshooter_py_grpc", - srcs = [":policytroubleshooter_moved_proto"], - deps = [":policytroubleshooter_py_proto"], +# Open Source Packages +py_gapic_assembly_pkg( + name = "policytroubleshooter-v1-py", + deps = [ + ":policytroubleshooter_py_gapic", + ], ) ############################################################################## @@ -102,6 +177,8 @@ py_grpc_library( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", + "php_gapic_assembly_pkg", + "php_gapic_library", "php_grpc_library", "php_proto_library", ) @@ -117,6 +194,29 @@ php_grpc_library( deps = [":policytroubleshooter_php_proto"], ) +php_gapic_library( + name = "policytroubleshooter_php_gapic", + src = ":policytroubleshooter_proto_with_info", + gapic_yaml = "policytroubleshooter_gapic.yaml", + grpc_service_config = "checker_grpc_service_config.json", + package = "google.cloud.policytroubleshooter.v1", + service_yaml = "policytroubleshooter_v1.yaml", + deps = [ + ":policytroubleshooter_php_grpc", + ":policytroubleshooter_php_proto", + ], +) + +# Open Source Packages +php_gapic_assembly_pkg( + name = "google-cloud-policytroubleshooter-v1-php", + deps = [ + ":policytroubleshooter_php_gapic", + ":policytroubleshooter_php_grpc", + ":policytroubleshooter_php_proto", + ], +) + ############################################################################## # Node.js ############################################################################## @@ -126,12 +226,32 @@ load( "nodejs_gapic_library", ) +nodejs_gapic_library( + name = "policytroubleshooter_nodejs_gapic", + package_name = "@google-cloud/policy-troubleshooter", + src = ":policytroubleshooter_proto_with_info", + extra_protoc_parameters = ["metadata"], + grpc_service_config = "checker_grpc_service_config.json", + package = "google.cloud.policytroubleshooter.v1", + service_yaml = "policytroubleshooter_v1.yaml", + deps = [], +) + +nodejs_gapic_assembly_pkg( + name = "policytroubleshooter-v1-nodejs", + deps = [ + ":policytroubleshooter_nodejs_gapic", + ":policytroubleshooter_proto", + ], +) ############################################################################## # Ruby ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", + "ruby_cloud_gapic_library", + "ruby_gapic_assembly_pkg", "ruby_grpc_library", "ruby_proto_library", ) @@ -147,11 +267,42 @@ ruby_grpc_library( deps = [":policytroubleshooter_ruby_proto"], ) +ruby_cloud_gapic_library( + name = "policytroubleshooter_ruby_gapic", + srcs = [":policytroubleshooter_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-api-id=policytroubleshooter.googleapis.com", + "ruby-cloud-api-shortname=policytroubleshooter", + "ruby-cloud-env-prefix=POLICY_TROUBLESHOOTER", + "ruby-cloud-gem-name=google-cloud-policy_troubleshooter-v1", + "ruby-cloud-product-url=https://cloud.google.com/iam/docs/troubleshooting-access", + ], + grpc_service_config = "checker_grpc_service_config.json", + ruby_cloud_description = "Policy Troubleshooter makes it easier to understand why a user has access to a resource or doesn't have permission to call an API. Given an email, resource, and permission, Policy Troubleshooter will examine all IAM policies that apply to the resource. It then reveals whether the member's roles include the permission on that resource and, if so, which policies bind the member to those roles.", + ruby_cloud_title = "IAM Policy Troubleshooter V1", + deps = [ + ":policytroubleshooter_ruby_grpc", + ":policytroubleshooter_ruby_proto", + ], +) + +# Open Source Packages +ruby_gapic_assembly_pkg( + name = "google-cloud-policytroubleshooter-v1-ruby", + deps = [ + ":policytroubleshooter_ruby_gapic", + ":policytroubleshooter_ruby_grpc", + ":policytroubleshooter_ruby_proto", + ], +) + ############################################################################## # C# ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", + "csharp_gapic_assembly_pkg", + "csharp_gapic_library", "csharp_grpc_library", "csharp_proto_library", ) @@ -167,7 +318,28 @@ csharp_grpc_library( deps = [":policytroubleshooter_csharp_proto"], ) +csharp_gapic_library( + name = "policytroubleshooter_csharp_gapic", + srcs = [":policytroubleshooter_proto_with_info"], + common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "checker_grpc_service_config.json", + deps = [ + ":policytroubleshooter_csharp_grpc", + ":policytroubleshooter_csharp_proto", + ], +) + +# Open Source Packages +csharp_gapic_assembly_pkg( + name = "google-cloud-policytroubleshooter-v1-csharp", + deps = [ + ":policytroubleshooter_csharp_gapic", + ":policytroubleshooter_csharp_grpc", + ":policytroubleshooter_csharp_proto", + ], +) + ############################################################################## # C++ ############################################################################## -# Put your C++ code here +# Put your C++ rules here diff --git a/third_party/googleapis/google/cloud/policytroubleshooter/v1/policytroubleshooter_gapic.yaml b/third_party/googleapis/google/cloud/policytroubleshooter/v1/policytroubleshooter_gapic.yaml new file mode 100644 index 000000000..8b0246fd2 --- /dev/null +++ b/third_party/googleapis/google/cloud/policytroubleshooter/v1/policytroubleshooter_gapic.yaml @@ -0,0 +1,3 @@ +type: com.google.api.codegen.ConfigProto +config_schema_version: 2.0.0 +language_settings: diff --git a/third_party/googleapis/google/cloud/pubsublite/v1/BUILD.bazel b/third_party/googleapis/google/cloud/pubsublite/v1/BUILD.bazel index 1e402767e..2e3a912f6 100644 --- a/third_party/googleapis/google/cloud/pubsublite/v1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/pubsublite/v1/BUILD.bazel @@ -73,11 +73,9 @@ java_grpc_library( java_gapic_library( name = "pubsublite_java_gapic", - src = ":pubsublite_proto_with_info", + srcs = [":pubsublite_proto_with_info"], gapic_yaml = "gapic.yaml", grpc_service_config = "pubsublite_grpc_service_config.json", - package = "google.cloud.pubsublite.v1", - service_yaml = "pubsublite_v1.yaml", test_deps = [ ":pubsublite_java_grpc", ], @@ -163,12 +161,10 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -177,6 +173,7 @@ py_gapic_library( grpc_service_config = "pubsublite_grpc_service_config.json", ) +# Open Source Packages py_gapic_assembly_pkg( name = "pubsublite-v1-py", deps = [ @@ -197,6 +194,7 @@ nodejs_gapic_library( name = "pubsublite_nodejs_gapic", package_name = "@google-cloud/pubsublite", src = ":pubsublite_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "pubsublite_grpc_service_config.json", package = "google.cloud.pubsublite.v1", service_yaml = "pubsublite_v1.yaml", @@ -281,8 +279,8 @@ csharp_grpc_library( csharp_gapic_library( name = "pubsublite_csharp_gapic", srcs = [":pubsublite_proto_with_info"], - grpc_service_config = "pubsublite_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "pubsublite_grpc_service_config.json", deps = [ ":pubsublite_csharp_grpc", ":pubsublite_csharp_proto", diff --git a/third_party/googleapis/google/cloud/pubsublite/v1/admin.proto b/third_party/googleapis/google/cloud/pubsublite/v1/admin.proto index fb32fa0f9..a0e23aa32 100644 --- a/third_party/googleapis/google/cloud/pubsublite/v1/admin.proto +++ b/third_party/googleapis/google/cloud/pubsublite/v1/admin.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -24,10 +24,13 @@ import "google/cloud/pubsublite/v1/common.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; +option csharp_namespace = "Google.Cloud.PubSubLite.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/pubsublite/v1;pubsublite"; option java_multiple_files = true; option java_outer_classname = "AdminProto"; option java_package = "com.google.cloud.pubsublite.proto"; +option php_namespace = "Google\\Cloud\\PubSubLite\\V1"; +option ruby_package = "Google::Cloud::PubSubLite::V1"; // The service that a client application uses to manage topics and // subscriptions, such creating, listing, and deleting topics and subscriptions. @@ -293,6 +296,11 @@ message CreateSubscriptionRequest { // // This value is structured like: `my-sub-name`. string subscription_id = 3 [(google.api.field_behavior) = REQUIRED]; + + // If true, the newly created subscription will only receive messages + // published after the subscription was created. Otherwise, the entire + // message backlog will be received on the subscription. Defaults to false. + bool skip_backlog = 4; } // Request for GetSubscription. diff --git a/third_party/googleapis/google/cloud/pubsublite/v1/common.proto b/third_party/googleapis/google/cloud/pubsublite/v1/common.proto index 2d5400c0d..a4f81b394 100644 --- a/third_party/googleapis/google/cloud/pubsublite/v1/common.proto +++ b/third_party/googleapis/google/cloud/pubsublite/v1/common.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -21,10 +21,13 @@ import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.PubSubLite.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/pubsublite/v1;pubsublite"; option java_multiple_files = true; option java_outer_classname = "CommonProto"; option java_package = "com.google.cloud.pubsublite.proto"; +option php_namespace = "Google\\Cloud\\PubSubLite\\V1"; +option ruby_package = "Google::Cloud::PubSubLite::V1"; // The values associated with a key of an attribute. message AttributeValues { @@ -93,6 +96,11 @@ message Topic { } // The number of partitions in the topic. Must be at least 1. + // + // Once a topic has been created the number of partitions can be increased + // but not decreased. Message ordering is not guaranteed across a topic + // resize. For more information see + // https://cloud.google.com/pubsub/lite/docs/topics#scaling_capacity int64 count = 1; // The throughput dimension of this topic. diff --git a/third_party/googleapis/google/cloud/pubsublite/v1/cursor.proto b/third_party/googleapis/google/cloud/pubsublite/v1/cursor.proto index 3ab9b7637..8db4bd26b 100644 --- a/third_party/googleapis/google/cloud/pubsublite/v1/cursor.proto +++ b/third_party/googleapis/google/cloud/pubsublite/v1/cursor.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -23,10 +23,13 @@ import "google/api/resource.proto"; import "google/cloud/pubsublite/v1/common.proto"; option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.PubSubLite.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/pubsublite/v1;pubsublite"; option java_multiple_files = true; option java_outer_classname = "CursorProto"; option java_package = "com.google.cloud.pubsublite.proto"; +option php_namespace = "Google\\Cloud\\PubSubLite\\V1"; +option ruby_package = "Google::Cloud::PubSubLite::V1"; // The service that a subscriber client application uses to manage committed // cursors while receiving messsages. A cursor represents a subscriber's diff --git a/third_party/googleapis/google/cloud/pubsublite/v1/publisher.proto b/third_party/googleapis/google/cloud/pubsublite/v1/publisher.proto index bce6df003..27737ecc7 100644 --- a/third_party/googleapis/google/cloud/pubsublite/v1/publisher.proto +++ b/third_party/googleapis/google/cloud/pubsublite/v1/publisher.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,10 +20,13 @@ import "google/cloud/pubsublite/v1/common.proto"; import "google/api/client.proto"; option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.PubSubLite.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/pubsublite/v1;pubsublite"; option java_multiple_files = true; option java_outer_classname = "PublisherProto"; option java_package = "com.google.cloud.pubsublite.proto"; +option php_namespace = "Google\\Cloud\\PubSubLite\\V1"; +option ruby_package = "Google::Cloud::PubSubLite::V1"; // The service that a publisher client application uses to publish messages to // topics. Published messages are retained by the service for the duration of diff --git a/third_party/googleapis/google/cloud/pubsublite/v1/pubsublite_v1.yaml b/third_party/googleapis/google/cloud/pubsublite/v1/pubsublite_v1.yaml index 82c3c332e..5c969e271 100644 --- a/third_party/googleapis/google/cloud/pubsublite/v1/pubsublite_v1.yaml +++ b/third_party/googleapis/google/cloud/pubsublite/v1/pubsublite_v1.yaml @@ -33,6 +33,10 @@ authentication: oauth: canonical_scopes: |- https://www.googleapis.com/auth/cloud-platform + - selector: google.cloud.pubsublite.v1.TopicStatsService.ComputeHeadCursor + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform - selector: google.cloud.pubsublite.v1.TopicStatsService.ComputeMessageStats oauth: canonical_scopes: |- diff --git a/third_party/googleapis/google/cloud/pubsublite/v1/subscriber.proto b/third_party/googleapis/google/cloud/pubsublite/v1/subscriber.proto index e0cc0fa4e..dc7d899ef 100644 --- a/third_party/googleapis/google/cloud/pubsublite/v1/subscriber.proto +++ b/third_party/googleapis/google/cloud/pubsublite/v1/subscriber.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,10 +20,13 @@ import "google/cloud/pubsublite/v1/common.proto"; import "google/api/client.proto"; option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.PubSubLite.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/pubsublite/v1;pubsublite"; option java_multiple_files = true; option java_outer_classname = "SubscriberProto"; option java_package = "com.google.cloud.pubsublite.proto"; +option php_namespace = "Google\\Cloud\\PubSubLite\\V1"; +option ruby_package = "Google::Cloud::PubSubLite::V1"; // The service that a subscriber client application uses to receive messages // from subscriptions. diff --git a/third_party/googleapis/google/cloud/pubsublite/v1/topic_stats.proto b/third_party/googleapis/google/cloud/pubsublite/v1/topic_stats.proto index 3ff3f82cc..6eb64f226 100644 --- a/third_party/googleapis/google/cloud/pubsublite/v1/topic_stats.proto +++ b/third_party/googleapis/google/cloud/pubsublite/v1/topic_stats.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -23,10 +23,13 @@ import "google/cloud/pubsublite/v1/common.proto"; import "google/protobuf/timestamp.proto"; import "google/api/client.proto"; +option csharp_namespace = "Google.Cloud.PubSubLite.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/pubsublite/v1;pubsublite"; option java_multiple_files = true; option java_outer_classname = "TopicStatsProto"; option java_package = "com.google.cloud.pubsublite.proto"; +option php_namespace = "Google\\Cloud\\PubSubLite\\V1"; +option ruby_package = "Google::Cloud::PubSubLite::V1"; // This service allows users to get stats about messages in their topic. service TopicStatsService { @@ -41,6 +44,19 @@ service TopicStatsService { body: "*" }; } + + // Compute the head cursor for the partition. + // The head cursor's offset is guaranteed to be less than or equal to all + // messages which have not yet been acknowledged as published, and + // greater than the offset of any message whose publish has already + // been acknowledged. It is zero if there have never been messages in the + // partition. + rpc ComputeHeadCursor(ComputeHeadCursorRequest) returns (ComputeHeadCursorResponse) { + option (google.api.http) = { + post: "/v1/topicStats/{topic=projects/*/locations/*/topics/*}:computeHeadCursor" + body: "*" + }; + } } // Compute statistics about a range of messages in a given topic and partition. @@ -74,8 +90,8 @@ message ComputeMessageStatsResponse { int64 message_bytes = 2; // The minimum publish timestamp across these messages. Note that publish - // timestamps within a partition are non-decreasing. The timestamp will be - // unset if there are no messages. + // timestamps within a partition are not guaranteed to be non-decreasing. The + // timestamp will be unset if there are no messages. google.protobuf.Timestamp minimum_publish_time = 3; // The minimum event timestamp across these messages. For the purposes of this @@ -83,3 +99,23 @@ message ComputeMessageStatsResponse { // time. The timestamp will be unset if there are no messages. google.protobuf.Timestamp minimum_event_time = 4; } + +// Compute the current head cursor for a partition. +message ComputeHeadCursorRequest { + // Required. The topic for which we should compute the head cursor. + string topic = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "pubsublite.googleapis.com/Topic" + } + ]; + + // Required. The partition for which we should compute the head cursor. + int64 partition = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Response containing the head cursor for the requested topic and partition. +message ComputeHeadCursorResponse { + // The head cursor. + Cursor head_cursor = 1; +} diff --git a/third_party/googleapis/google/cloud/recaptchaenterprise/v1/BUILD.bazel b/third_party/googleapis/google/cloud/recaptchaenterprise/v1/BUILD.bazel index 6dd5bcd3a..e7562182a 100644 --- a/third_party/googleapis/google/cloud/recaptchaenterprise/v1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/recaptchaenterprise/v1/BUILD.bazel @@ -1,4 +1,13 @@ # This file was automatically generated by BuildFileGenerator +# https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/bazel + +# Most of the manual changes to this file will be overwritten. +# It's **only** allowed to change the following rule attribute values: +# - names of *_gapic_assembly_* rules +# - certain parameters of *_gapic_library rules, including but not limited to: +# * extra_protoc_parameters +# * extra_protoc_file_parameters +# The complete list of preserved parameters can be found in the source code. # This is an API workspace, having public visibility by default makes perfect sense. package(default_visibility = ["//visibility:public"]) @@ -58,11 +67,9 @@ java_grpc_library( java_gapic_library( name = "recaptchaenterprise_java_gapic", - src = ":recaptchaenterprise_proto_with_info", + srcs = [":recaptchaenterprise_proto_with_info"], gapic_yaml = "recaptchaenterprise_gapic.yaml", grpc_service_config = "recaptchaenterprise_grpc_service_config.json", - package = "google.cloud.recaptchaenterprise.v1", - service_yaml = "recaptchaenterprise_v1.yaml", test_deps = [ ":recaptchaenterprise_java_grpc", ], @@ -144,50 +151,14 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "recaptchaenterprise_moved_proto", - srcs = [":recaptchaenterprise_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:resource_proto", - "@com_google_protobuf//:empty_proto", - "@com_google_protobuf//:field_mask_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -py_proto_library( - name = "recaptchaenterprise_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":recaptchaenterprise_moved_proto"], -) - -py_grpc_library( - name = "recaptchaenterprise_py_grpc", - srcs = [":recaptchaenterprise_moved_proto"], - deps = [":recaptchaenterprise_py_proto"], ) py_gapic_library( name = "recaptchaenterprise_py_gapic", - src = ":recaptchaenterprise_proto_with_info", - gapic_yaml = "recaptchaenterprise_gapic.yaml", + srcs = [":recaptchaenterprise_proto"], grpc_service_config = "recaptchaenterprise_grpc_service_config.json", - package = "google.cloud.recaptchaenterprise.v1", - service_yaml = "recaptchaenterprise_v1.yaml", - deps = [ - ":recaptchaenterprise_py_grpc", - ":recaptchaenterprise_py_proto", - ], ) # Open Source Packages @@ -195,8 +166,6 @@ py_gapic_assembly_pkg( name = "recaptchaenterprise-v1-py", deps = [ ":recaptchaenterprise_py_gapic", - ":recaptchaenterprise_py_grpc", - ":recaptchaenterprise_py_proto", ], ) @@ -258,6 +227,7 @@ nodejs_gapic_library( name = "recaptchaenterprise_nodejs_gapic", package_name = "@google-cloud/recaptcha-enterprise", src = ":recaptchaenterprise_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "recaptchaenterprise_grpc_service_config.json", package = "google.cloud.recaptchaenterprise.v1", service_yaml = "recaptchaenterprise_v1.yaml", @@ -278,7 +248,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -294,12 +264,19 @@ ruby_grpc_library( deps = [":recaptchaenterprise_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "recaptchaenterprise_ruby_gapic", - src = ":recaptchaenterprise_proto_with_info", - gapic_yaml = "recaptchaenterprise_gapic.yaml", - package = "google.cloud.recaptchaenterprise.v1", - service_yaml = "recaptchaenterprise_v1.yaml", + srcs = [":recaptchaenterprise_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-recaptcha_enterprise-v1", + "ruby-cloud-env-prefix=RECAPTCHA_ENTERPRISE", + "ruby-cloud-product-url=https://cloud.google.com/recaptcha-enterprise", + "ruby-cloud-api-id=recaptchaenterprise.googleapis.com", + "ruby-cloud-api-shortname=recaptchaenterprise", + ], + grpc_service_config = "recaptchaenterprise_grpc_service_config.json", + ruby_cloud_description = "reCAPTCHA Enterprise is a service that protects your site from spam and abuse.", + ruby_cloud_title = "reCAPTCHA Enterprise V1", deps = [ ":recaptchaenterprise_ruby_grpc", ":recaptchaenterprise_ruby_proto", @@ -341,8 +318,8 @@ csharp_grpc_library( csharp_gapic_library( name = "recaptchaenterprise_csharp_gapic", srcs = [":recaptchaenterprise_proto_with_info"], - grpc_service_config = "recaptchaenterprise_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "recaptchaenterprise_grpc_service_config.json", deps = [ ":recaptchaenterprise_csharp_grpc", ":recaptchaenterprise_csharp_proto", diff --git a/third_party/googleapis/google/cloud/recaptchaenterprise/v1beta1/BUILD.bazel b/third_party/googleapis/google/cloud/recaptchaenterprise/v1beta1/BUILD.bazel index 00e325cd2..461345f1a 100644 --- a/third_party/googleapis/google/cloud/recaptchaenterprise/v1beta1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/recaptchaenterprise/v1beta1/BUILD.bazel @@ -1,4 +1,13 @@ # This file was automatically generated by BuildFileGenerator +# https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/bazel + +# Most of the manual changes to this file will be overwritten. +# It's **only** allowed to change the following rule attribute values: +# - names of *_gapic_assembly_* rules +# - certain parameters of *_gapic_library rules, including but not limited to: +# * extra_protoc_parameters +# * extra_protoc_file_parameters +# The complete list of preserved parameters can be found in the source code. # This is an API workspace, having public visibility by default makes perfect sense. package(default_visibility = ["//visibility:public"]) @@ -58,11 +67,9 @@ java_grpc_library( java_gapic_library( name = "recaptchaenterprise_java_gapic", - src = ":recaptchaenterprise_proto_with_info", + srcs = [":recaptchaenterprise_proto_with_info"], gapic_yaml = "recaptchaenterprise_gapic.yaml", grpc_service_config = "recaptchaenterprise_grpc_service_config.json", - package = "google.cloud.recaptchaenterprise.v1beta1", - service_yaml = "recaptchaenterprise_v1beta1.yaml", test_deps = [ ":recaptchaenterprise_java_grpc", ], @@ -144,50 +151,14 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "recaptchaenterprise_moved_proto", - srcs = [":recaptchaenterprise_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:resource_proto", - "@com_google_protobuf//:empty_proto", - "@com_google_protobuf//:field_mask_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -py_proto_library( - name = "recaptchaenterprise_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":recaptchaenterprise_moved_proto"], -) - -py_grpc_library( - name = "recaptchaenterprise_py_grpc", - srcs = [":recaptchaenterprise_moved_proto"], - deps = [":recaptchaenterprise_py_proto"], ) py_gapic_library( name = "recaptchaenterprise_py_gapic", - src = ":recaptchaenterprise_proto_with_info", - gapic_yaml = "recaptchaenterprise_gapic.yaml", + srcs = [":recaptchaenterprise_proto"], grpc_service_config = "recaptchaenterprise_grpc_service_config.json", - package = "google.cloud.recaptchaenterprise.v1beta1", - service_yaml = "recaptchaenterprise_v1beta1.yaml", - deps = [ - ":recaptchaenterprise_py_grpc", - ":recaptchaenterprise_py_proto", - ], ) # Open Source Packages @@ -195,8 +166,6 @@ py_gapic_assembly_pkg( name = "recaptchaenterprise-v1beta1-py", deps = [ ":recaptchaenterprise_py_gapic", - ":recaptchaenterprise_py_grpc", - ":recaptchaenterprise_py_proto", ], ) @@ -258,6 +227,7 @@ nodejs_gapic_library( name = "recaptchaenterprise_nodejs_gapic", package_name = "@google-cloud/recaptcha-enterprise", src = ":recaptchaenterprise_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "recaptchaenterprise_grpc_service_config.json", package = "google.cloud.recaptchaenterprise.v1beta1", service_yaml = "recaptchaenterprise_v1beta1.yaml", @@ -278,7 +248,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -294,12 +264,20 @@ ruby_grpc_library( deps = [":recaptchaenterprise_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "recaptchaenterprise_ruby_gapic", - src = ":recaptchaenterprise_proto_with_info", - gapic_yaml = "recaptchaenterprise_gapic.yaml", - package = "google.cloud.recaptchaenterprise.v1beta1", - service_yaml = "recaptchaenterprise_v1beta1.yaml", + srcs = [":recaptchaenterprise_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-recaptcha_enterprise-v1beta1", + "ruby-cloud-env-prefix=RECAPTCHA_ENTERPRISE", + "ruby-cloud-product-url=https://cloud.google.com/recaptcha-enterprise", + "ruby-cloud-api-id=recaptchaenterprise.googleapis.com", + "ruby-cloud-api-shortname=recaptchaenterprise", + "ruby-cloud-service-override=RecaptchaEnterpriseServiceV1Beta1=RecaptchaEnterpriseService", + ], + grpc_service_config = "recaptchaenterprise_grpc_service_config.json", + ruby_cloud_description = "reCAPTCHA Enterprise is a service that protects your site from spam and abuse.", + ruby_cloud_title = "reCAPTCHA Enterprise V1beta1", deps = [ ":recaptchaenterprise_ruby_grpc", ":recaptchaenterprise_ruby_proto", @@ -341,8 +319,8 @@ csharp_grpc_library( csharp_gapic_library( name = "recaptchaenterprise_csharp_gapic", srcs = [":recaptchaenterprise_proto_with_info"], - grpc_service_config = "recaptchaenterprise_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "recaptchaenterprise_grpc_service_config.json", deps = [ ":recaptchaenterprise_csharp_grpc", ":recaptchaenterprise_csharp_proto", diff --git a/third_party/googleapis/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise_gapic.legacy.yaml b/third_party/googleapis/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise_gapic.legacy.yaml deleted file mode 100644 index 7973f096c..000000000 --- a/third_party/googleapis/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise_gapic.legacy.yaml +++ /dev/null @@ -1,155 +0,0 @@ -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.recaptchaenterprise.v1beta1 - python: - package_name: google.cloud.recaptcha_enterprise_v1beta1.gapic - go: - package_name: cloud.google.com/go/recaptchaenterprise/apiv1beta1 - csharp: - package_name: Google.Cloud.RecaptchaEnterprise.V1Beta1 - ruby: - package_name: Google::Cloud::RecaptchaEnterprise::V1beta1 - php: - package_name: Google\Cloud\RecaptchaEnterprise\V1beta1 - nodejs: - package_name: recaptchaenterprise.v1beta1 - domain_layer_location: google-cloud -# The configuration for the license header to put on generated files. -license_header: - # The file containing the copyright line(s). - copyright_file: copyright-google.txt - # The file containing the raw license header without any copyright line(s). - license_file: license-header-apache-2.0.txt -# A list of API interface configurations. -interfaces: -# The fully qualified name of the API interface. -- name: google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1 - # 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: - - name_pattern: projects/{project} - entity_name: project - language_overrides: - - language: csharp - common_resource_name: Google.Api.Gax.ResourceNames.ProjectName - - name_pattern: projects/{project}/assessments/{assessment} - entity_name: assessment - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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: CreateAssessment - flattening: - groups: - - parameters: - - parent - - assessment - required_fields: - - parent - - assessment - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 60000 - - name: AnnotateAssessment - flattening: - groups: - - parameters: - - name - - annotation - required_fields: - - name - - annotation - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: assessment - timeout_millis: 60000 -resource_name_generation: -- message_name: CreateAssessmentRequest - field_entity_map: - parent: project -- message_name: AnnotateAssessmentRequest - field_entity_map: - name: assessment diff --git a/third_party/googleapis/google/cloud/recommendationengine/v1beta1/BUILD.bazel b/third_party/googleapis/google/cloud/recommendationengine/v1beta1/BUILD.bazel index e7d905d1c..1df143596 100644 --- a/third_party/googleapis/google/cloud/recommendationengine/v1beta1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/recommendationengine/v1beta1/BUILD.bazel @@ -19,7 +19,6 @@ load( "java_gapic_test", "java_grpc_library", "java_proto_library", - "moved_proto_library", "nodejs_gapic_assembly_pkg", "nodejs_gapic_library", "php_gapic_assembly_pkg", @@ -29,10 +28,8 @@ load( "proto_library_with_info", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -92,11 +89,9 @@ java_grpc_library( java_gapic_library( name = "recommendationengine_java_gapic", - src = ":recommendationengine_proto_with_info", + srcs = [":recommendationengine_proto_with_info"], gapic_yaml = "recommendationengine_gapic.yaml", grpc_service_config = "recommendationengine_grpc_service_config.json", - package = "google.cloud.recommendationengine.v1beta1", - service_yaml = "recommendationengine_v1beta1.yaml", test_deps = [ ":recommendationengine_java_grpc", ], @@ -151,9 +146,9 @@ go_gapic_library( deps = [ ":recommendationengine_go_proto", "//google/api:httpbody_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", "@io_bazel_rules_go//proto/wkt:struct_go_proto", ], ) @@ -175,48 +170,10 @@ go_gapic_assembly_pkg( ], ) -moved_proto_library( - name = "recommendationengine_moved_proto", - srcs = [":recommendationengine_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:httpbody_proto", - "//google/api:resource_proto", - "//google/longrunning:operations_proto", - "//google/rpc:status_proto", - "//google/type:date_proto", - "@com_google_protobuf//:empty_proto", - "@com_google_protobuf//:field_mask_proto", - "@com_google_protobuf//:struct_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -py_proto_library( - name = "recommendationengine_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":recommendationengine_moved_proto"], -) - -py_grpc_library( - name = "recommendationengine_py_grpc", - srcs = [":recommendationengine_moved_proto"], - deps = [":recommendationengine_py_proto"], -) - py_gapic_library( name = "recommendationengine_py_gapic", - src = ":recommendationengine_proto_with_info", - gapic_yaml = "recommendationengine_gapic.yaml", + srcs = [":recommendationengine_proto"], grpc_service_config = "recommendationengine_grpc_service_config.json", - package = "google.cloud.recommendationengine.v1beta1", - service_yaml = "recommendationengine_v1beta1.yaml", - deps = [ - ":recommendationengine_py_grpc", - ":recommendationengine_py_proto", - ], ) # Open Source Packages @@ -224,8 +181,6 @@ py_gapic_assembly_pkg( name = "recommendationengine-v1beta1-py", deps = [ ":recommendationengine_py_gapic", - ":recommendationengine_py_grpc", - ":recommendationengine_py_proto", ], ) @@ -266,6 +221,7 @@ php_gapic_assembly_pkg( nodejs_gapic_library( name = "recommendationengine_nodejs_gapic", src = ":recommendationengine_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "recommendationengine_grpc_service_config.json", package = "google.cloud.recommendationengine.v1beta1", service_yaml = "recommendationengine_v1beta1.yaml", @@ -291,12 +247,19 @@ ruby_grpc_library( deps = [":recommendationengine_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "recommendationengine_ruby_gapic", - src = ":recommendationengine_proto_with_info", - gapic_yaml = "recommendationengine_gapic.yaml", - package = "google.cloud.recommendationengine.v1beta1", - service_yaml = "recommendationengine_v1beta1.yaml", + srcs = [":recommendationengine_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-recommendation_engine-v1beta1", + "ruby-cloud-env-prefix=RECOMMENDATION_ENGINE", + "ruby-cloud-product-url=https://cloud.google.com/recommendations-ai/", + "ruby-cloud-api-id=recommendationengine.googleapis.com", + "ruby-cloud-api-shortname=recommendationengine", + ], + grpc_service_config = "recommendationengine_grpc_service_config.json", + ruby_cloud_description = "Recommendations AI enables you to build an end-to-end personalized recommendation system based on state-of-the-art deep learning ML models, without a need for expertise in ML or recommendation systems.", + ruby_cloud_title = "Recommendations AI V1beta1", deps = [ ":recommendationengine_ruby_grpc", ":recommendationengine_ruby_proto", diff --git a/third_party/googleapis/google/cloud/recommendationengine/v1beta1/recommendationengine_gapic.legacy.yaml b/third_party/googleapis/google/cloud/recommendationengine/v1beta1/recommendationengine_gapic.legacy.yaml deleted file mode 100644 index 90910159f..000000000 --- a/third_party/googleapis/google/cloud/recommendationengine/v1beta1/recommendationengine_gapic.legacy.yaml +++ /dev/null @@ -1,591 +0,0 @@ -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.recommendationengine.v1beta1 - python: - package_name: google.cloud.recommendationengine_v1beta1.gapic - go: - package_name: cloud.google.com/go/recommendationengine/apiv1beta1 - csharp: - package_name: Google.Cloud.Recommendationengine.V1beta1 - ruby: - package_name: Google::Cloud::Recommendationengine::V1beta1 - php: - package_name: Google\Cloud\Recommendationengine\V1beta1 - nodejs: - package_name: recommendationengine.v1beta1 -# A list of API interface configurations. -interfaces: -# The fully qualified name of the API interface. -- name: google.cloud.recommendationengine.v1beta1.CatalogService - # 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: - - name_pattern: projects/{project}/locations/{location}/catalogs/{catalog} - entity_name: catalog - - name_pattern: projects/{project}/locations/{location}/catalogs/{catalog}/catalogItems/{catalog_item_path=**} - entity_name: catalog_item_path - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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. - # - # 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: CreateCatalogItem - flattening: - groups: - - parameters: - - parent - - catalog_item - required_fields: - - parent - - catalog_item - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: catalog - timeout_millis: 60000 - - name: GetCatalogItem - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: catalog_item_path - timeout_millis: 60000 - - name: ListCatalogItems - flattening: - groups: - - parameters: - - parent - - filter - required_fields: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: catalog_items - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: catalog - timeout_millis: 300000 - - name: UpdateCatalogItem - flattening: - groups: - - parameters: - - name - - catalog_item - required_fields: - - name - - catalog_item - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: catalog_item_path - timeout_millis: 60000 - - name: DeleteCatalogItem - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: catalog_item_path - timeout_millis: 60000 - - name: ImportCatalogItems - flattening: - groups: - - parameters: - - parent - - request_id - - input_config - - errors_config - required_fields: - - parent - - input_config - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: catalog - long_running: - return_type: google.cloud.recommendationengine.v1beta1.ImportCatalogItemsResponse - metadata_type: google.cloud.recommendationengine.v1beta1.ImportMetadata - initial_poll_delay_millis: 500 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 5000 - total_poll_timeout_millis: 300000 - timeout_millis: 300000 -# The fully qualified name of the API interface. -- name: google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistry - # 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: - - name_pattern: projects/{project}/locations/{location}/catalogs/{catalog}/eventStores/{event_store} - entity_name: event_store - - name_pattern: projects/{project}/locations/{location}/catalogs/{catalog}/eventStores/{event_store}/predictionApiKeyRegistrations/{prediction_api_key_registration} - entity_name: prediction_api_key_registration - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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. - # - # 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: CreatePredictionApiKeyRegistration - flattening: - groups: - - parameters: - - parent - - prediction_api_key_registration - required_fields: - - parent - - prediction_api_key_registration - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: event_store - timeout_millis: 60000 - - name: ListPredictionApiKeyRegistrations - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: prediction_api_key_registrations - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: event_store - timeout_millis: 60000 - - name: DeletePredictionApiKeyRegistration - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: prediction_api_key_registration - timeout_millis: 60000 -# The fully qualified name of the API interface. -- name: google.cloud.recommendationengine.v1beta1.PredictionService - # 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: - - name_pattern: projects/{project}/locations/{location}/catalogs/{catalog}/eventStores/{event_store}/placements/{placement} - entity_name: placement - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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. - # - # 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: Predict - required_fields: - - name - - user_event - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: results - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: placement - timeout_millis: 60000 -# The fully qualified name of the API interface. -- name: google.cloud.recommendationengine.v1beta1.UserEventService - # 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: - - name_pattern: projects/{project}/locations/{location}/catalogs/{catalog}/eventStores/{event_store} - entity_name: event_store - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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. - # - # 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: WriteUserEvent - flattening: - groups: - - parameters: - - parent - - user_event - required_fields: - - parent - - user_event - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: event_store - timeout_millis: 60000 - - name: CollectUserEvent - flattening: - groups: - - parameters: - - parent - - user_event - - uri - - ets - required_fields: - - parent - - user_event - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: event_store - timeout_millis: 60000 - - name: ListUserEvents - flattening: - groups: - - parameters: - - parent - - filter - required_fields: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: user_events - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: event_store - timeout_millis: 300000 - - name: PurgeUserEvents - flattening: - groups: - - parameters: - - parent - - filter - - force - required_fields: - - parent - - filter - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: event_store - long_running: - return_type: google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse - metadata_type: google.cloud.recommendationengine.v1beta1.PurgeUserEventsMetadata - initial_poll_delay_millis: 500 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 5000 - total_poll_timeout_millis: 300000 - timeout_millis: 60000 - - name: ImportUserEvents - flattening: - groups: - - parameters: - - parent - - request_id - - input_config - - errors_config - required_fields: - - parent - - input_config - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: event_store - long_running: - return_type: google.cloud.recommendationengine.v1beta1.ImportUserEventsResponse - metadata_type: google.cloud.recommendationengine.v1beta1.ImportMetadata - initial_poll_delay_millis: 500 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 5000 - total_poll_timeout_millis: 300000 - timeout_millis: 300000 diff --git a/third_party/googleapis/google/cloud/recommendationengine/v1beta1/recommendationengine_gapic.yaml b/third_party/googleapis/google/cloud/recommendationengine/v1beta1/recommendationengine_gapic.yaml index 41ec59636..c3397b146 100644 --- a/third_party/googleapis/google/cloud/recommendationengine/v1beta1/recommendationengine_gapic.yaml +++ b/third_party/googleapis/google/cloud/recommendationengine/v1beta1/recommendationengine_gapic.yaml @@ -2,8 +2,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 # The settings of generated code in a specific language. language_settings: - java: - package_name: com.google.cloud.recommendationengine.v1beta1 python: package_name: google.cloud.recommendationengine_v1beta1.gapic go: diff --git a/third_party/googleapis/google/cloud/recommendationengine/v1beta1/recommendationengine_resources.proto b/third_party/googleapis/google/cloud/recommendationengine/v1beta1/recommendationengine_resources.proto index dce1e2fa5..fbec2a55a 100644 --- a/third_party/googleapis/google/cloud/recommendationengine/v1beta1/recommendationengine_resources.proto +++ b/third_party/googleapis/google/cloud/recommendationengine/v1beta1/recommendationengine_resources.proto @@ -18,6 +18,14 @@ syntax = "proto3"; package google.cloud.recommendationengine.v1beta1; +option csharp_namespace = "Google.Cloud.RecommendationEngine.V1Beta1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/recommendationengine/v1beta1;recommendationengine"; +option java_multiple_files = true; +option java_package = "com.google.cloud.recommendationengine.v1beta1"; +option objc_class_prefix = "RECAI"; +option php_namespace = "Google\\Cloud\\RecommendationEngine\\V1beta1"; +option ruby_package = "Google::Cloud::RecommendationEngine::V1beta1"; + import "google/api/resource.proto"; option (google.api.resource_definition) = { diff --git a/third_party/googleapis/google/cloud/recommender/v1/BUILD.bazel b/third_party/googleapis/google/cloud/recommender/v1/BUILD.bazel index ba11833db..248e12332 100644 --- a/third_party/googleapis/google/cloud/recommender/v1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/recommender/v1/BUILD.bazel @@ -70,11 +70,8 @@ java_grpc_library( java_gapic_library( name = "recommender_java_gapic", - src = ":recommender_proto_with_info", - gapic_yaml = "recommender_gapic.yaml", + srcs = [":recommender_proto_with_info"], grpc_service_config = "recommender_grpc_service_config.json", - package = "google.cloud.recommender.v1", - service_yaml = "recommender_v1.yaml", test_deps = [ ":recommender_java_grpc", ], @@ -158,60 +155,20 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "recommender_moved_proto", - srcs = [":recommender_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:resource_proto", - "//google/type:money_proto", - "@com_google_protobuf//:duration_proto", - "@com_google_protobuf//:struct_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -py_proto_library( - name = "recommender_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":recommender_moved_proto"], -) - -py_grpc_library( - name = "recommender_py_grpc", - srcs = [":recommender_moved_proto"], - deps = [":recommender_py_proto"], ) py_gapic_library( name = "recommender_py_gapic", - src = ":recommender_proto_with_info", - gapic_yaml = "recommender_gapic.yaml", + srcs = [":recommender_proto"], grpc_service_config = "recommender_grpc_service_config.json", - package = "google.cloud.recommender.v1", - service_yaml = "recommender_v1.yaml", - deps = [ - ":recommender_py_grpc", - ":recommender_py_proto", - ], ) -# Open Source Packages py_gapic_assembly_pkg( name = "recommender-v1-py", deps = [ ":recommender_py_gapic", - ":recommender_py_grpc", - ":recommender_py_proto", ], ) @@ -273,6 +230,7 @@ nodejs_gapic_library( name = "recommender_nodejs_gapic", package_name = "@google-cloud/recommender", src = ":recommender_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "recommender_grpc_service_config.json", package = "google.cloud.recommender.v1", service_yaml = "recommender_v1.yaml", @@ -293,7 +251,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -309,13 +267,19 @@ ruby_grpc_library( deps = [":recommender_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "recommender_ruby_gapic", - src = ":recommender_proto_with_info", - gapic_yaml = "recommender_gapic.yaml", + srcs = [":recommender_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-recommender-v1", + "ruby-cloud-env-prefix=RECOMMENDER", + "ruby-cloud-product-url=https://cloud.google.com/recommender", + "ruby-cloud-api-id=recommender.googleapis.com", + "ruby-cloud-api-shortname=recommender", + ], grpc_service_config = "recommender_grpc_service_config.json", - package = "google.cloud.recommender.v1", - service_yaml = "recommender_v1.yaml", + ruby_cloud_description = "Recommender is a service on Google Cloud that provides usage recommendations for Cloud products and services.", + ruby_cloud_title = "Recommender V1", deps = [ ":recommender_ruby_grpc", ":recommender_ruby_proto", @@ -357,8 +321,8 @@ csharp_grpc_library( csharp_gapic_library( name = "recommender_csharp_gapic", srcs = [":recommender_proto_with_info"], - grpc_service_config = "recommender_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "recommender_grpc_service_config.json", deps = [ ":recommender_csharp_grpc", ":recommender_csharp_proto", diff --git a/third_party/googleapis/google/cloud/recommender/v1/insight.proto b/third_party/googleapis/google/cloud/recommender/v1/insight.proto index 783a71477..e561b8381 100644 --- a/third_party/googleapis/google/cloud/recommender/v1/insight.proto +++ b/third_party/googleapis/google/cloud/recommender/v1/insight.proto @@ -30,6 +30,9 @@ option objc_class_prefix = "CREC"; option (google.api.resource_definition) = { type: "recommender.googleapis.com/InsightType" pattern: "projects/{project}/locations/{location}/insightTypes/{insight_type}" + pattern: "billingAccounts/{billing_account}/locations/{location}/insightTypes/{insight_type}" + pattern: "folders/{folder}/locations/{location}/insightTypes/{insight_type}" + pattern: "organizations/{organization}/locations/{location}/insightTypes/{insight_type}" }; // An insight along with the information used to derive the insight. The insight @@ -38,6 +41,9 @@ message Insight { option (google.api.resource) = { type: "recommender.googleapis.com/Insight" pattern: "projects/{project}/locations/{location}/insightTypes/{insight_type}/insights/{insight}" + pattern: "billingAccounts/{billing_account}/locations/{location}/insightTypes/{insight_type}/insights/{insight}" + pattern: "folders/{folder}/locations/{location}/insightTypes/{insight_type}/insights/{insight}" + pattern: "organizations/{organization}/locations/{location}/insightTypes/{insight_type}/insights/{insight}" }; // Reference to an associated recommendation. diff --git a/third_party/googleapis/google/cloud/recommender/v1/recommendation.proto b/third_party/googleapis/google/cloud/recommender/v1/recommendation.proto index aa8321eeb..78f8f10c2 100644 --- a/third_party/googleapis/google/cloud/recommender/v1/recommendation.proto +++ b/third_party/googleapis/google/cloud/recommender/v1/recommendation.proto @@ -30,6 +30,9 @@ option objc_class_prefix = "CREC"; option (google.api.resource_definition) = { type: "recommender.googleapis.com/Recommender" pattern: "projects/{project}/locations/{location}/recommenders/{recommender}" + pattern: "billingAccounts/{billing_account}/locations/{location}/recommenders/{recommender}" + pattern: "folders/{folder}/locations/{location}/recommenders/{recommender}" + pattern: "organizations/{organization}/locations/{location}/recommenders/{recommender}" }; // A recommendation along with a suggested action. E.g., a rightsizing @@ -38,6 +41,9 @@ message Recommendation { option (google.api.resource) = { type: "recommender.googleapis.com/Recommendation" pattern: "projects/{project}/locations/{location}/recommenders/{recommender}/recommendations/{recommendation}" + pattern: "billingAccounts/{billing_account}/locations/{location}/recommenders/{recommender}/recommendations/{recommendation}" + pattern: "folders/{folder}/locations/{location}/recommenders/{recommender}/recommendations/{recommendation}" + pattern: "organizations/{organization}/locations/{location}/recommenders/{recommender}/recommendations/{recommendation}" }; // Reference to an associated insight. @@ -170,12 +176,12 @@ message Operation { // "/versions/*/targetSize/percent": 20 // } // * Example: { - // "/bindings/*/role": "roles/admin" + // "/bindings/*/role": "roles/owner" // "/bindings/*/condition" : null // } // * Example: { - // "/bindings/*/role": "roles/admin" - // "/bindings/*/members/*" : ["x@google.com", "y@google.com"] + // "/bindings/*/role": "roles/owner" + // "/bindings/*/members/*" : ["x@example.com", "y@example.com"] // } // When both path_filters and path_value_matchers are set, an implicit AND // must be performed. diff --git a/third_party/googleapis/google/cloud/recommender/v1/recommender_gapic.yaml b/third_party/googleapis/google/cloud/recommender/v1/recommender_gapic.yaml index 7d60eb9d7..01e112394 100644 --- a/third_party/googleapis/google/cloud/recommender/v1/recommender_gapic.yaml +++ b/third_party/googleapis/google/cloud/recommender/v1/recommender_gapic.yaml @@ -2,8 +2,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 # The settings of generated code in a specific language. language_settings: - java: - package_name: com.google.cloud.recommender.v1 python: package_name: google.cloud.recommender_v1.gapic go: diff --git a/third_party/googleapis/google/cloud/recommender/v1/recommender_grpc_service_config.json b/third_party/googleapis/google/cloud/recommender/v1/recommender_grpc_service_config.json index 7d66cd7e1..b18b89040 100644 --- a/third_party/googleapis/google/cloud/recommender/v1/recommender_grpc_service_config.json +++ b/third_party/googleapis/google/cloud/recommender/v1/recommender_grpc_service_config.json @@ -3,11 +3,11 @@ { "name": [ { - "service": "google.cloud.recommender.v1beta1.Recommender", + "service": "google.cloud.recommender.v1.Recommender", "method": "ListInsights" }, { - "service": "google.cloud.recommender.v1beta1.Recommender", + "service": "google.cloud.recommender.v1.Recommender", "method": "GetInsight" }, { @@ -34,7 +34,7 @@ { "name": [ { - "service": "google.cloud.recommender.v1beta1.Recommender", + "service": "google.cloud.recommender.v1.Recommender", "method": "MarkInsightAccepted" }, { diff --git a/third_party/googleapis/google/cloud/recommender/v1/recommender_service.proto b/third_party/googleapis/google/cloud/recommender/v1/recommender_service.proto index 4f24a0509..f8816a924 100644 --- a/third_party/googleapis/google/cloud/recommender/v1/recommender_service.proto +++ b/third_party/googleapis/google/cloud/recommender/v1/recommender_service.proto @@ -43,6 +43,15 @@ service Recommender { rpc ListInsights(ListInsightsRequest) returns (ListInsightsResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*/insightTypes/*}/insights" + additional_bindings { + get: "/v1/{parent=billingAccounts/*/locations/*/insightTypes/*}/insights" + } + additional_bindings { + get: "/v1/{parent=folders/*/locations/*/insightTypes/*}/insights" + } + additional_bindings { + get: "/v1/{parent=organizations/*/locations/*/insightTypes/*}/insights" + } }; option (google.api.method_signature) = "parent"; } @@ -52,6 +61,15 @@ service Recommender { rpc GetInsight(GetInsightRequest) returns (Insight) { option (google.api.http) = { get: "/v1/{name=projects/*/locations/*/insightTypes/*/insights/*}" + additional_bindings { + get: "/v1/{name=billingAccounts/*/locations/*/insightTypes/*/insights/*}" + } + additional_bindings { + get: "/v1/{name=folders/*/locations/*/insightTypes/*/insights/*}" + } + additional_bindings { + get: "/v1/{name=organizations/*/locations/*/insightTypes/*/insights/*}" + } }; option (google.api.method_signature) = "name"; } @@ -66,6 +84,18 @@ service Recommender { option (google.api.http) = { post: "/v1/{name=projects/*/locations/*/insightTypes/*/insights/*}:markAccepted" body: "*" + additional_bindings { + post: "/v1/{name=billingAccounts/*/locations/*/insightTypes/*/insights/*}:markAccepted" + body: "*" + } + additional_bindings { + post: "/v1/{name=folders/*/locations/*/insightTypes/*/insights/*}:markAccepted" + body: "*" + } + additional_bindings { + post: "/v1/{name=organizations/*/locations/*/insightTypes/*/insights/*}:markAccepted" + body: "*" + } }; option (google.api.method_signature) = "name,state_metadata,etag"; } @@ -75,6 +105,15 @@ service Recommender { rpc ListRecommendations(ListRecommendationsRequest) returns (ListRecommendationsResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*/recommenders/*}/recommendations" + additional_bindings { + get: "/v1/{parent=billingAccounts/*/locations/*/recommenders/*}/recommendations" + } + additional_bindings { + get: "/v1/{parent=folders/*/locations/*/recommenders/*}/recommendations" + } + additional_bindings { + get: "/v1/{parent=organizations/*/locations/*/recommenders/*}/recommendations" + } }; option (google.api.method_signature) = "parent"; option (google.api.method_signature) = "parent,filter"; @@ -85,6 +124,15 @@ service Recommender { rpc GetRecommendation(GetRecommendationRequest) returns (Recommendation) { option (google.api.http) = { get: "/v1/{name=projects/*/locations/*/recommenders/*/recommendations/*}" + additional_bindings { + get: "/v1/{name=billingAccounts/*/locations/*/recommenders/*/recommendations/*}" + } + additional_bindings { + get: "/v1/{name=folders/*/locations/*/recommenders/*/recommendations/*}" + } + additional_bindings { + get: "/v1/{name=organizations/*/locations/*/recommenders/*/recommendations/*}" + } }; option (google.api.method_signature) = "name"; } @@ -103,6 +151,18 @@ service Recommender { option (google.api.http) = { post: "/v1/{name=projects/*/locations/*/recommenders/*/recommendations/*}:markClaimed" body: "*" + additional_bindings { + post: "/v1/{name=billingAccounts/*/locations/*/recommenders/*/recommendations/*}:markClaimed" + body: "*" + } + additional_bindings { + post: "/v1/{name=folders/*/locations/*/recommenders/*/recommendations/*}:markClaimed" + body: "*" + } + additional_bindings { + post: "/v1/{name=organizations/*/locations/*/recommenders/*/recommendations/*}:markClaimed" + body: "*" + } }; option (google.api.method_signature) = "name,state_metadata,etag"; } @@ -122,6 +182,18 @@ service Recommender { option (google.api.http) = { post: "/v1/{name=projects/*/locations/*/recommenders/*/recommendations/*}:markSucceeded" body: "*" + additional_bindings { + post: "/v1/{name=billingAccounts/*/locations/*/recommenders/*/recommendations/*}:markSucceeded" + body: "*" + } + additional_bindings { + post: "/v1/{name=folders/*/locations/*/recommenders/*/recommendations/*}:markSucceeded" + body: "*" + } + additional_bindings { + post: "/v1/{name=organizations/*/locations/*/recommenders/*/recommendations/*}:markSucceeded" + body: "*" + } }; option (google.api.method_signature) = "name,state_metadata,etag"; } @@ -141,6 +213,18 @@ service Recommender { option (google.api.http) = { post: "/v1/{name=projects/*/locations/*/recommenders/*/recommendations/*}:markFailed" body: "*" + additional_bindings { + post: "/v1/{name=billingAccounts/*/locations/*/recommenders/*/recommendations/*}:markFailed" + body: "*" + } + additional_bindings { + post: "/v1/{name=folders/*/locations/*/recommenders/*/recommendations/*}:markFailed" + body: "*" + } + additional_bindings { + post: "/v1/{name=organizations/*/locations/*/recommenders/*/recommendations/*}:markFailed" + body: "*" + } }; option (google.api.method_signature) = "name,state_metadata,etag"; } @@ -156,6 +240,8 @@ message ListInsightsRequest { // // LOCATION here refers to GCP Locations: // https://cloud.google.com/about/locations/ + // INSIGHT_TYPE_ID refers to supported insight types: + // https://cloud.google.com/recommender/docs/insights/insight-types.) string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -229,6 +315,8 @@ message ListRecommendationsRequest { // // LOCATION here refers to GCP Locations: // https://cloud.google.com/about/locations/ + // RECOMMENDER_ID refers to supported recommenders: + // https://cloud.google.com/recommender/docs/recommenders. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/third_party/googleapis/google/cloud/recommender/v1beta1/BUILD.bazel b/third_party/googleapis/google/cloud/recommender/v1beta1/BUILD.bazel index 12dfca7c0..2a579b297 100644 --- a/third_party/googleapis/google/cloud/recommender/v1beta1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/recommender/v1beta1/BUILD.bazel @@ -70,11 +70,8 @@ java_grpc_library( java_gapic_library( name = "recommender_java_gapic", - src = ":recommender_proto_with_info", - gapic_yaml = "recommender_gapic.yaml", + srcs = [":recommender_proto_with_info"], grpc_service_config = "recommender_grpc_service_config.json", - package = "google.cloud.recommender.v1beta1", - service_yaml = "recommender_v1beta1.yaml", test_deps = [ ":recommender_java_grpc", ], @@ -158,60 +155,20 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "recommender_moved_proto", - srcs = [":recommender_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:resource_proto", - "//google/type:money_proto", - "@com_google_protobuf//:duration_proto", - "@com_google_protobuf//:struct_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -py_proto_library( - name = "recommender_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":recommender_moved_proto"], -) - -py_grpc_library( - name = "recommender_py_grpc", - srcs = [":recommender_moved_proto"], - deps = [":recommender_py_proto"], ) py_gapic_library( name = "recommender_py_gapic", - src = ":recommender_proto_with_info", - gapic_yaml = "recommender_gapic.yaml", + srcs = [":recommender_proto"], grpc_service_config = "recommender_grpc_service_config.json", - package = "google.cloud.recommender.v1beta1", - service_yaml = "recommender_v1beta1.yaml", - deps = [ - ":recommender_py_grpc", - ":recommender_py_proto", - ], ) -# Open Source Packages py_gapic_assembly_pkg( name = "recommender-v1beta1-py", deps = [ ":recommender_py_gapic", - ":recommender_py_grpc", - ":recommender_py_proto", ], ) @@ -272,6 +229,7 @@ load( nodejs_gapic_library( name = "recommender_nodejs_gapic", src = ":recommender_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "recommender_grpc_service_config.json", package = "google.cloud.recommender.v1beta1", service_yaml = "recommender_v1beta1.yaml", @@ -356,8 +314,8 @@ csharp_grpc_library( csharp_gapic_library( name = "recommender_csharp_gapic", srcs = [":recommender_proto_with_info"], - grpc_service_config = "recommender_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "recommender_grpc_service_config.json", deps = [ ":recommender_csharp_grpc", ":recommender_csharp_proto", diff --git a/third_party/googleapis/google/cloud/recommender/v1beta1/insight.proto b/third_party/googleapis/google/cloud/recommender/v1beta1/insight.proto index f968bd118..202f721e2 100644 --- a/third_party/googleapis/google/cloud/recommender/v1beta1/insight.proto +++ b/third_party/googleapis/google/cloud/recommender/v1beta1/insight.proto @@ -29,6 +29,9 @@ option objc_class_prefix = "CREC"; option (google.api.resource_definition) = { type: "recommender.googleapis.com/InsightType" pattern: "projects/{project}/locations/{location}/insightTypes/{insight_type}" + pattern: "billingAccounts/{billing_account}/locations/{location}/insightTypes/{insight_type}" + pattern: "folders/{folder}/locations/{location}/insightTypes/{insight_type}" + pattern: "organizations/{organization}/locations/{location}/insightTypes/{insight_type}" }; // An insight along with the information used to derive the insight. The insight @@ -37,6 +40,9 @@ message Insight { option (google.api.resource) = { type: "recommender.googleapis.com/Insight" pattern: "projects/{project}/locations/{location}/insightTypes/{insight_type}/insights/{insight}" + pattern: "billingAccounts/{billing_account}/locations/{location}/insightTypes/{insight_type}/insights/{insight}" + pattern: "folders/{folder}/locations/{location}/insightTypes/{insight_type}" + pattern: "organizations/{organization}/locations/{location}/insightTypes/{insight_type}" }; // Reference to an associated recommendation. diff --git a/third_party/googleapis/google/cloud/recommender/v1beta1/recommendation.proto b/third_party/googleapis/google/cloud/recommender/v1beta1/recommendation.proto index 79c4afee8..15b4ef3b9 100644 --- a/third_party/googleapis/google/cloud/recommender/v1beta1/recommendation.proto +++ b/third_party/googleapis/google/cloud/recommender/v1beta1/recommendation.proto @@ -30,6 +30,9 @@ option objc_class_prefix = "CREC"; option (google.api.resource_definition) = { type: "recommender.googleapis.com/Recommender" pattern: "projects/{project}/locations/{location}/recommenders/{recommender}" + pattern: "billingAccounts/{billing_account}/locations/{location}/recommenders/{recommender}" + pattern: "folders/{folder}/locations/{location}/recommenders/{recommender}" + pattern: "organizations/{organization}/locations/{location}/recommenders/{recommender}" }; // A recommendation along with a suggested action. E.g., a rightsizing @@ -38,6 +41,9 @@ message Recommendation { option (google.api.resource) = { type: "recommender.googleapis.com/Recommendation" pattern: "projects/{project}/locations/{location}/recommenders/{recommender}/recommendations/{recommendation}" + pattern: "billingAccounts/{billing_account}/locations/{location}/recommenders/{recommender}/recommendations/{recommendation}" + pattern: "folders/{folder}/locations/{location}/recommenders/{recommender}/recommendations/{recommendation}" + pattern: "organizations/{organization}/locations/{location}/recommenders/{recommender}/recommendations/{recommendation}" }; // Reference to an associated insight. @@ -170,12 +176,12 @@ message Operation { // "/versions/*/targetSize/percent": 20 // } // * Example: { - // "/bindings/*/role": "roles/admin" + // "/bindings/*/role": "roles/owner" // "/bindings/*/condition" : null // } // * Example: { - // "/bindings/*/role": "roles/admin" - // "/bindings/*/members/*" : ["x@google.com", "y@google.com"] + // "/bindings/*/role": "roles/owner" + // "/bindings/*/members/*" : ["x@example.com", "y@example.com"] // } // When both path_filters and path_value_matchers are set, an implicit AND // must be performed. diff --git a/third_party/googleapis/google/cloud/recommender/v1beta1/recommender_gapic.legacy.yaml b/third_party/googleapis/google/cloud/recommender/v1beta1/recommender_gapic.legacy.yaml deleted file mode 100644 index e19916a41..000000000 --- a/third_party/googleapis/google/cloud/recommender/v1beta1/recommender_gapic.legacy.yaml +++ /dev/null @@ -1,178 +0,0 @@ -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.recommender.v1beta1 - python: - package_name: google.cloud.recommender_v1beta1.gapic - go: - package_name: cloud.google.com/go/recommender/apiv1beta1 - csharp: - package_name: Google.Cloud.Recommender.V1Beta1 - ruby: - package_name: Google::Cloud::Recommender::V1beta1 - php: - package_name: Google\Cloud\Recommender\V1beta1 - nodejs: - package_name: recommender.v1beta1 -# A list of API interface configurations. -interfaces: -# The fully qualified name of the API interface. -- name: google.cloud.recommender.v1beta1.Recommender - # 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: - - name_pattern: projects/{project}/locations/{location}/recommenders/{recommender} - entity_name: recommender - - name_pattern: projects/{project}/locations/{location}/recommenders/{recommender}/recommendations/{recommendation} - entity_name: recommendation - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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. - # - # 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: ListRecommendations - flattening: - groups: - - parameters: - - parent - - filter - required_fields: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: recommendations - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: recommender - timeout_millis: 60000 - - name: GetRecommendation - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: recommendation - timeout_millis: 60000 - - name: MarkRecommendationClaimed - flattening: - groups: - - parameters: - - name - - state_metadata - - etag - required_fields: - - name - - etag - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: recommendation - timeout_millis: 60000 - - name: MarkRecommendationSucceeded - flattening: - groups: - - parameters: - - name - - state_metadata - - etag - required_fields: - - name - - etag - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: recommendation - timeout_millis: 60000 - - name: MarkRecommendationFailed - flattening: - groups: - - parameters: - - name - - state_metadata - - etag - required_fields: - - name - - etag - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: recommendation - timeout_millis: 60000 diff --git a/third_party/googleapis/google/cloud/recommender/v1beta1/recommender_gapic.yaml b/third_party/googleapis/google/cloud/recommender/v1beta1/recommender_gapic.yaml index 174c69519..6df4c1086 100644 --- a/third_party/googleapis/google/cloud/recommender/v1beta1/recommender_gapic.yaml +++ b/third_party/googleapis/google/cloud/recommender/v1beta1/recommender_gapic.yaml @@ -2,8 +2,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 # The settings of generated code in a specific language. language_settings: - java: - package_name: com.google.cloud.recommender.v1beta1 python: package_name: google.cloud.recommender_v1beta1.gapic go: diff --git a/third_party/googleapis/google/cloud/recommender/v1beta1/recommender_service.proto b/third_party/googleapis/google/cloud/recommender/v1beta1/recommender_service.proto index 8f4df1a7d..d502c0a38 100644 --- a/third_party/googleapis/google/cloud/recommender/v1beta1/recommender_service.proto +++ b/third_party/googleapis/google/cloud/recommender/v1beta1/recommender_service.proto @@ -43,6 +43,15 @@ service Recommender { rpc ListInsights(ListInsightsRequest) returns (ListInsightsResponse) { option (google.api.http) = { get: "/v1beta1/{parent=projects/*/locations/*/insightTypes/*}/insights" + additional_bindings { + get: "/v1beta1/{parent=billingAccounts/*/locations/*/insightTypes/*}/insights" + } + additional_bindings { + get: "/v1beta1/{parent=folders/*/locations/*/insightTypes/*}/insights" + } + additional_bindings { + get: "/v1beta1/{parent=organizations/*/locations/*/insightTypes/*}/insights" + } }; option (google.api.method_signature) = "parent"; } @@ -52,6 +61,15 @@ service Recommender { rpc GetInsight(GetInsightRequest) returns (Insight) { option (google.api.http) = { get: "/v1beta1/{name=projects/*/locations/*/insightTypes/*/insights/*}" + additional_bindings { + get: "/v1beta1/{name=billingAccounts/*/locations/*/insightTypes/*/insights/*}" + } + additional_bindings { + get: "/v1beta1/{name=folders/*/locations/*/insightTypes/*/insights/*}" + } + additional_bindings { + get: "/v1beta1/{name=organizations/*/locations/*/insightTypes/*/insights/*}" + } }; option (google.api.method_signature) = "name"; } @@ -66,6 +84,18 @@ service Recommender { option (google.api.http) = { post: "/v1beta1/{name=projects/*/locations/*/insightTypes/*/insights/*}:markAccepted" body: "*" + additional_bindings { + post: "/v1beta1/{name=billingAccounts/*/locations/*/insightTypes/*/insights/*}:markAccepted" + body: "*" + } + additional_bindings { + post: "/v1beta1/{name=folders/*/locations/*/insightTypes/*/insights/*}:markAccepted" + body: "*" + } + additional_bindings { + post: "/v1beta1/{name=organizations/*/locations/*/insightTypes/*/insights/*}:markAccepted" + body: "*" + } }; option (google.api.method_signature) = "name,state_metadata,etag"; } @@ -75,6 +105,15 @@ service Recommender { rpc ListRecommendations(ListRecommendationsRequest) returns (ListRecommendationsResponse) { option (google.api.http) = { get: "/v1beta1/{parent=projects/*/locations/*/recommenders/*}/recommendations" + additional_bindings { + get: "/v1beta1/{parent=billingAccounts/*/locations/*/recommenders/*}/recommendations" + } + additional_bindings { + get: "/v1beta1/{parent=folders/*/locations/*/recommenders/*}/recommendations" + } + additional_bindings { + get: "/v1beta1/{parent=organizations/*/locations/*/recommenders/*}/recommendations" + } }; option (google.api.method_signature) = "parent,filter"; } @@ -84,6 +123,15 @@ service Recommender { rpc GetRecommendation(GetRecommendationRequest) returns (Recommendation) { option (google.api.http) = { get: "/v1beta1/{name=projects/*/locations/*/recommenders/*/recommendations/*}" + additional_bindings { + get: "/v1beta1/{name=billingAccounts/*/locations/*/recommenders/*/recommendations/*}" + } + additional_bindings { + get: "/v1beta1/{name=folders/*/locations/*/recommenders/*/recommendations/*}" + } + additional_bindings { + get: "/v1beta1/{name=organizations/*/locations/*/recommenders/*/recommendations/*}" + } }; option (google.api.method_signature) = "name"; } @@ -102,6 +150,18 @@ service Recommender { option (google.api.http) = { post: "/v1beta1/{name=projects/*/locations/*/recommenders/*/recommendations/*}:markClaimed" body: "*" + additional_bindings { + post: "/v1beta1/{name=billingAccounts/*/locations/*/recommenders/*/recommendations/*}:markClaimed" + body: "*" + } + additional_bindings { + post: "/v1beta1/{name=folders/*/locations/*/recommenders/*/recommendations/*}:markClaimed" + body: "*" + } + additional_bindings { + post: "/v1beta1/{name=organizations/*/locations/*/recommenders/*/recommendations/*}:markClaimed" + body: "*" + } }; option (google.api.method_signature) = "name,state_metadata,etag"; } @@ -121,6 +181,18 @@ service Recommender { option (google.api.http) = { post: "/v1beta1/{name=projects/*/locations/*/recommenders/*/recommendations/*}:markSucceeded" body: "*" + additional_bindings { + post: "/v1beta1/{name=billingAccounts/*/locations/*/recommenders/*/recommendations/*}:markSucceeded" + body: "*" + } + additional_bindings { + post: "/v1beta1/{name=folders/*/locations/*/recommenders/*/recommendations/*}:markSucceeded" + body: "*" + } + additional_bindings { + post: "/v1beta1/{name=organizations/*/locations/*/recommenders/*/recommendations/*}:markSucceeded" + body: "*" + } }; option (google.api.method_signature) = "name,state_metadata,etag"; } @@ -140,6 +212,18 @@ service Recommender { option (google.api.http) = { post: "/v1beta1/{name=projects/*/locations/*/recommenders/*/recommendations/*}:markFailed" body: "*" + additional_bindings { + post: "/v1beta1/{name=billingAccounts/*/locations/*/recommenders/*/recommendations/*}:markFailed" + body: "*" + } + additional_bindings { + post: "/v1beta1/{name=folders/*/locations/*/recommenders/*/recommendations/*}:markFailed" + body: "*" + } + additional_bindings { + post: "/v1beta1/{name=organizations/*/locations/*/recommenders/*/recommendations/*}:markFailed" + body: "*" + } }; option (google.api.method_signature) = "name,state_metadata,etag"; } @@ -155,6 +239,8 @@ message ListInsightsRequest { // // LOCATION here refers to GCP Locations: // https://cloud.google.com/about/locations/ + // INSIGHT_TYPE_ID refers to supported insight types: + // https://cloud.google.com/recommender/docs/insights/insight-types. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -228,6 +314,8 @@ message ListRecommendationsRequest { // // LOCATION here refers to GCP Locations: // https://cloud.google.com/about/locations/ + // RECOMMENDER_ID refers to supported recommenders: + // https://cloud.google.com/recommender/docs/recommenders. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/third_party/googleapis/google/cloud/redis/v1/BUILD.bazel b/third_party/googleapis/google/cloud/redis/v1/BUILD.bazel index c20484fc2..412f4ab91 100644 --- a/third_party/googleapis/google/cloud/redis/v1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/redis/v1/BUILD.bazel @@ -58,11 +58,9 @@ java_grpc_library( java_gapic_library( name = "redis_java_gapic", - src = ":redis_proto_with_info", + srcs = [":redis_proto_with_info"], gapic_yaml = "redis_gapic.yaml", grpc_service_config = "redis_grpc_service_config.json", - package = "google.cloud.redis.v1", - service_yaml = "redis_v1.yaml", test_deps = [ ":redis_java_grpc", ], @@ -120,9 +118,9 @@ go_gapic_library( service_yaml = "redis_v1.yaml", deps = [ ":redis_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", ], ) @@ -146,12 +144,10 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -225,6 +221,7 @@ nodejs_gapic_library( name = "redis_nodejs_gapic", package_name = "@google-cloud/redis", src = ":redis_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "redis_grpc_service_config.json", package = "google.cloud.redis.v1", service_yaml = "redis_v1.yaml", @@ -245,7 +242,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -261,12 +258,19 @@ ruby_grpc_library( deps = [":redis_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "redis_ruby_gapic", - src = ":redis_proto_with_info", - gapic_yaml = "redis_gapic.yaml", - package = "google.cloud.redis.v1", - service_yaml = "redis_v1.yaml", + srcs = [":redis_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-redis-v1", + "ruby-cloud-env-prefix=REDIS", + "ruby-cloud-product-url=https://cloud.google.com/memorystore/docs/redis", + "ruby-cloud-api-id=redis.googleapis.com", + "ruby-cloud-api-shortname=redis", + ], + grpc_service_config = "redis_grpc_service_config.json", + ruby_cloud_description = "Creates and manages Redis instances on the Google Cloud Platform.", + ruby_cloud_title = "Google Cloud Memorystore for Redis V1", deps = [ ":redis_ruby_grpc", ":redis_ruby_proto", @@ -308,8 +312,8 @@ csharp_grpc_library( csharp_gapic_library( name = "redis_csharp_gapic", srcs = [":redis_proto_with_info"], - grpc_service_config = "redis_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "redis_grpc_service_config.json", deps = [ ":redis_csharp_grpc", ":redis_csharp_proto", diff --git a/third_party/googleapis/google/cloud/redis/v1/redis_gapic.legacy.yaml b/third_party/googleapis/google/cloud/redis/v1/redis_gapic.legacy.yaml deleted file mode 100644 index 664c96908..000000000 --- a/third_party/googleapis/google/cloud/redis/v1/redis_gapic.legacy.yaml +++ /dev/null @@ -1,298 +0,0 @@ -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.redis.v1 - python: - package_name: google.cloud.redis_v1.gapic - go: - package_name: cloud.google.com/go/redis/apiv1 - csharp: - package_name: Google.Cloud.Redis.V1 - ruby: - package_name: Google::Cloud::Redis::V1 - php: - package_name: Google\Cloud\Redis\V1 - nodejs: - package_name: redis.v1 - domain_layer_location: google-cloud -# A list of API interface configurations. -interfaces: -# 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. - # 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: - - name_pattern: projects/{project}/locations/{location} - entity_name: location - - name_pattern: projects/{project}/locations/{location}/instances/{instance} - entity_name: instance - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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: ListInstances - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - resource_name_treatment: STATIC_TYPES - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: instances - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: location - timeout_millis: 60000 - - name: GetInstance - 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 - timeout_millis: 60000 - - name: CreateInstance - flattening: - groups: - - parameters: - - parent - - instance_id - - instance - required_fields: - - parent - - instance_id - - instance - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: location - 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: 1200000 # 20 minutes - timeout_millis: 60000 - sample_code_init_fields: - - instance_id="test_instance" - - instance.tier="BASIC" - - instance.memory_size_gb=1 - - name: UpdateInstance - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - update_mask - - instance - required_fields: - - update_mask - - instance - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - instance.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: 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: ImportInstance - flattening: - groups: - - parameters: - - name - - input_config - required_fields: - - name - - 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.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: FailoverInstance - flattening: - groups: - - parameters: - - name - - data_protection_mode - required_fields: - - name - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: instance - resource_name_treatment: STATIC_TYPES - 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: 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 - timeout_millis: 60000 -resource_name_generation: -- message_name: ListInstancesRequest - field_entity_map: - parent: location -- message_name: GetInstanceRequest - field_entity_map: - name: instance -- message_name: CreateInstanceRequest - field_entity_map: - parent: location -- message_name: DeleteInstanceRequest - field_entity_map: - name: instance -- message_name: FailoverInstanceRequest - field_entity_map: - name: instance diff --git a/third_party/googleapis/google/cloud/redis/v1/redis_gapic.yaml b/third_party/googleapis/google/cloud/redis/v1/redis_gapic.yaml index 19840eb74..d7e52d4ca 100644 --- a/third_party/googleapis/google/cloud/redis/v1/redis_gapic.yaml +++ b/third_party/googleapis/google/cloud/redis/v1/redis_gapic.yaml @@ -2,8 +2,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 # The settings of generated code in a specific language. language_settings: - java: - package_name: com.google.cloud.redis.v1 python: package_name: google.cloud.redis_v1.gapic go: diff --git a/third_party/googleapis/google/cloud/redis/v1beta1/BUILD.bazel b/third_party/googleapis/google/cloud/redis/v1beta1/BUILD.bazel index f6b59a55f..2a70ff54b 100644 --- a/third_party/googleapis/google/cloud/redis/v1beta1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/redis/v1beta1/BUILD.bazel @@ -58,11 +58,9 @@ java_grpc_library( java_gapic_library( name = "redis_java_gapic", - src = ":redis_proto_with_info", + srcs = [":redis_proto_with_info"], gapic_yaml = "redis_gapic.yaml", grpc_service_config = "redis_grpc_service_config.json", - package = "google.cloud.redis.v1beta1", - service_yaml = "redis_v1beta1.yaml", test_deps = [ ":redis_java_grpc", ], @@ -120,9 +118,9 @@ go_gapic_library( service_yaml = "redis_v1beta1.yaml", deps = [ ":redis_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", "@io_bazel_rules_go//proto/wkt:any_go_proto", ], ) @@ -147,12 +145,10 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -226,6 +222,7 @@ nodejs_gapic_library( name = "redis_nodejs_gapic", package_name = "@google-cloud/redis", src = ":redis_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "redis_grpc_service_config.json", package = "google.cloud.redis.v1beta1", service_yaml = "redis_v1beta1.yaml", @@ -246,7 +243,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -262,12 +259,19 @@ ruby_grpc_library( deps = [":redis_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "redis_ruby_gapic", - src = ":redis_proto_with_info", - gapic_yaml = "redis_gapic.yaml", - package = "google.cloud.redis.v1beta1", - service_yaml = "redis_v1beta1.yaml", + srcs = [":redis_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-redis-v1beta1", + "ruby-cloud-env-prefix=REDIS", + "ruby-cloud-product-url=https://cloud.google.com/memorystore/docs/redis", + "ruby-cloud-api-id=redis.googleapis.com", + "ruby-cloud-api-shortname=redis", + ], + grpc_service_config = "redis_grpc_service_config.json", + ruby_cloud_description = "Creates and manages Redis instances on the Google Cloud Platform.", + ruby_cloud_title = "Google Cloud Memorystore for Redis V1beta1", deps = [ ":redis_ruby_grpc", ":redis_ruby_proto", @@ -309,8 +313,8 @@ csharp_grpc_library( csharp_gapic_library( name = "redis_csharp_gapic", srcs = [":redis_proto_with_info"], - grpc_service_config = "redis_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "redis_grpc_service_config.json", deps = [ ":redis_csharp_grpc", ":redis_csharp_proto", diff --git a/third_party/googleapis/google/cloud/redis/v1beta1/redis_gapic.legacy.yaml b/third_party/googleapis/google/cloud/redis/v1beta1/redis_gapic.legacy.yaml deleted file mode 100644 index 3882ea049..000000000 --- a/third_party/googleapis/google/cloud/redis/v1beta1/redis_gapic.legacy.yaml +++ /dev/null @@ -1,293 +0,0 @@ -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.redis.v1beta1 - python: - package_name: google.cloud.redis_v1beta1.gapic - go: - package_name: cloud.google.com/go/redis/apiv1beta1 - csharp: - package_name: Google.Cloud.Redis.V1Beta1 - ruby: - package_name: Google::Cloud::Redis::V1beta1 - php: - package_name: Google\Cloud\Redis\V1beta1 - nodejs: - package_name: redis.v1beta1 -# A list of API interface configurations. -interfaces: -# The fully qualified name of the API interface. -- name: google.cloud.redis.v1beta1.CloudRedis - # 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: - - name_pattern: projects/{project}/locations/{location} - entity_name: location - - name_pattern: projects/{project}/locations/{location}/instances/{instance} - entity_name: instance - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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: ListInstances - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - resource_name_treatment: STATIC_TYPES - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: instances - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: location - timeout_millis: 60000 - - name: GetInstance - 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 - timeout_millis: 60000 - - name: CreateInstance - flattening: - groups: - - parameters: - - parent - - instance_id - - instance - required_fields: - - parent - - instance_id - - instance - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: location - 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: 1200000 # 20 minutes - timeout_millis: 60000 - sample_code_init_fields: - - instance_id="test_instance" - - instance.tier="BASIC" - - instance.memory_size_gb=1 - - name: UpdateInstance - flattening: - groups: - - parameters: - - update_mask - - instance - required_fields: - - update_mask - - instance - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - instance.name: instance - resource_name_treatment: STATIC_TYPES - 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: 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: ImportInstance - flattening: - groups: - - parameters: - - name - - input_config - required_fields: - - name - - 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.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: FailoverInstance - flattening: - groups: - - parameters: - - name - - data_protection_mode - required_fields: - - name - 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: 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: - parent: location -- message_name: GetInstanceRequest - field_entity_map: - name: instance -- message_name: CreateInstanceRequest - field_entity_map: - parent: location -- message_name: DeleteInstanceRequest - field_entity_map: - name: instance diff --git a/third_party/googleapis/google/cloud/redis/v1beta1/redis_gapic.yaml b/third_party/googleapis/google/cloud/redis/v1beta1/redis_gapic.yaml index fddfed254..1e4c8009d 100644 --- a/third_party/googleapis/google/cloud/redis/v1beta1/redis_gapic.yaml +++ b/third_party/googleapis/google/cloud/redis/v1beta1/redis_gapic.yaml @@ -2,8 +2,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 # The settings of generated code in a specific language. language_settings: - java: - package_name: com.google.cloud.redis.v1beta1 python: package_name: google.cloud.redis_v1beta1.gapic go: diff --git a/third_party/googleapis/google/cloud/resourcemanager/v2/cloudresourcemanager_gapic.legacy.yaml b/third_party/googleapis/google/cloud/resourcemanager/v2/cloudresourcemanager_gapic.legacy.yaml deleted file mode 100644 index e31826013..000000000 --- a/third_party/googleapis/google/cloud/resourcemanager/v2/cloudresourcemanager_gapic.legacy.yaml +++ /dev/null @@ -1,301 +0,0 @@ -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.resourcemanager.v2 - python: - package_name: google.cloud.resourcemanager_v2.gapic - go: - package_name: cloud.google.com/go/resourcemanager/apiv2 - csharp: - package_name: Google.Cloud.ResourceManager.V2 - ruby: - package_name: Google::Cloud::ResourceManager::V2 - php: - package_name: Google\Cloud\ResourceManager\V2 - nodejs: - package_name: resourcemanager.v2 - domain_layer_location: google-cloud -collection_oneofs: -- oneof_name: parent_oneof - collection_names: - - organization - - folder -# A list of API interface configurations. -interfaces: -- name: google.cloud.resourcemanager.v2.Folders - # 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: - - name_pattern: folders/{folder} - entity_name: folder - - name_pattern: organizations/{org_id} - entity_name: organization - # Definition for smoke test. - smoke_test: - method: SearchFolders - init_fields: - - query="" # Returns all folders that the caller has access to. - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 30000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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: ListFolders - flattening: - groups: - - parameters: - - parent - - show_deleted - - parameters: - - parent - required_fields: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: folders - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: parent_oneof - resource_name_treatment: STATIC_TYPES - timeout_millis: 30000 - - name: SearchFolders - flattening: - groups: - - parameters: - - query - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: folders - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 30000 - - name: GetFolder - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: folder - resource_name_treatment: STATIC_TYPES - timeout_millis: 30000 - - name: CreateFolder - flattening: - groups: - - parameters: - - parent - - folder - required_fields: - - parent - - folder - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: parent_oneof - resource_name_treatment: STATIC_TYPES - timeout_millis: 30000 - - name: UpdateFolder - flattening: - groups: - - parameters: - - folder - - update_mask - required_fields: - - folder - - update_mask - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 30000 - - name: MoveFolder - flattening: - groups: - - parameters: - - name - - destination_parent - required_fields: - - name - - destination_parent - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: folder - destination_parent: parent_oneof - resource_name_treatment: STATIC_TYPES - timeout_millis: 30000 - - name: DeleteFolder - flattening: - groups: - - parameters: - - name - - parameters: - - name - - recursive_delete - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: folder - resource_name_treatment: STATIC_TYPES - timeout_millis: 30000 - - name: UndeleteFolder - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: folder - resource_name_treatment: STATIC_TYPES - timeout_millis: 30000 - - name: GetIamPolicy - flattening: - groups: - - parameters: - - resource - required_fields: - - resource - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - resource: folder - timeout_millis: 30000 - - name: SetIamPolicy - flattening: - groups: - - parameters: - - resource - - policy - required_fields: - - resource - - policy - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - resource: folder - timeout_millis: 30000 - - name: TestIamPermissions - flattening: - groups: - - parameters: - - resource - - permissions - required_fields: - - resource - - permissions - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - resource: folder - timeout_millis: 30000 -resource_name_generation: -- message_name: ListFoldersRequest - field_entity_map: - parent: parent_oneof -- message_name: GetFolderRequest - field_entity_map: - name: folder -- message_name: CreateFolderRequest - field_entity_map: - parent: parent_oneof -- message_name: MoveFolderRequest - field_entity_map: - name: folder - destination_parent: parent_oneof -- message_name: DeleteFolderRequest - field_entity_map: - name: folder -- message_name: UndeleteFolderRequest - field_entity_map: - name: folder -- message_name: Folder - field_entity_map: - name: folder - parent: parent_oneof diff --git a/third_party/googleapis/google/cloud/resourcesettings/BUILD.bazel b/third_party/googleapis/google/cloud/resourcesettings/BUILD.bazel new file mode 100644 index 000000000..a87c57fec --- /dev/null +++ b/third_party/googleapis/google/cloud/resourcesettings/BUILD.bazel @@ -0,0 +1 @@ +exports_files(glob(["*.yaml"])) diff --git a/third_party/googleapis/google/cloud/resourcesettings/resourcesettings_gapic.yaml b/third_party/googleapis/google/cloud/resourcesettings/resourcesettings_gapic.yaml new file mode 100644 index 000000000..b4d417844 --- /dev/null +++ b/third_party/googleapis/google/cloud/resourcesettings/resourcesettings_gapic.yaml @@ -0,0 +1,18 @@ +type: com.google.api.codegen.ConfigProto +config_schema_version: 2.0.0 +language_settings: + java: + package_name: com.google.cloud.resourcesettings.v1 + python: + package_name: google.cloud.resourcesettings_v1.gapic + go: + package_name: cloud.google.com/go/resourcesettings/apiv1 + csharp: + package_name: Google.Cloud.ResourceSettings.V1 + ruby: + package_name: Google::Cloud::ResourceSettings::V1 + php: + package_name: Google\Cloud\ResourceSettings\V1 + nodejs: + package_name: resourcesettings.v1 + domain_layer_location: google-cloud diff --git a/third_party/googleapis/google/cloud/resourcesettings/v1/BUILD.bazel b/third_party/googleapis/google/cloud/resourcesettings/v1/BUILD.bazel new file mode 100644 index 000000000..5609237e9 --- /dev/null +++ b/third_party/googleapis/google/cloud/resourcesettings/v1/BUILD.bazel @@ -0,0 +1,172 @@ +# This file was automatically generated by BuildFileGenerator + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") + +proto_library( + name = "resourcesettings_proto", + srcs = [ + "resource_settings.proto", + ], + deps = [ + "//google/api:annotations_proto", + "//google/api:client_proto", + "//google/api:field_behavior_proto", + "//google/api:resource_proto", + "@com_google_protobuf//:empty_proto", + "@com_google_protobuf//:timestamp_proto", + ], +) + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_grpc_library", + "java_proto_library", +) + +java_proto_library( + name = "resourcesettings_java_proto", + deps = [":resourcesettings_proto"], +) + +java_grpc_library( + name = "resourcesettings_java_grpc", + srcs = [":resourcesettings_proto"], + deps = [":resourcesettings_java_proto"], +) + +############################################################################## +# Go +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "go_proto_library", +) + +go_proto_library( + name = "resourcesettings_go_proto", + compilers = ["@io_bazel_rules_go//proto:go_grpc"], + importpath = "google.golang.org/genproto/googleapis/cloud/resourcesettings/v1", + protos = [":resourcesettings_proto"], + deps = [ + "//google/api:annotations_go_proto", + ], +) + +############################################################################## +# Python +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "moved_proto_library", + "py_grpc_library", + "py_proto_library", +) + +moved_proto_library( + name = "resourcesettings_moved_proto", + srcs = [":resourcesettings_proto"], + deps = [ + "//google/api:annotations_proto", + "//google/api:client_proto", + "//google/api:field_behavior_proto", + "//google/api:resource_proto", + "@com_google_protobuf//:empty_proto", + "@com_google_protobuf//:timestamp_proto", + ], +) + +py_proto_library( + name = "resourcesettings_py_proto", + plugin = "@protoc_docs_plugin//:docs_plugin", + deps = [":resourcesettings_moved_proto"], +) + +py_grpc_library( + name = "resourcesettings_py_grpc", + srcs = [":resourcesettings_moved_proto"], + deps = [":resourcesettings_py_proto"], +) + +############################################################################## +# PHP +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "php_grpc_library", + "php_proto_library", +) + +php_proto_library( + name = "resourcesettings_php_proto", + deps = [":resourcesettings_proto"], +) + +php_grpc_library( + name = "resourcesettings_php_grpc", + srcs = [":resourcesettings_proto"], + deps = [":resourcesettings_php_proto"], +) + +############################################################################## +# Node.js +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", +) + + +############################################################################## +# Ruby +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "ruby_grpc_library", + "ruby_proto_library", +) + +ruby_proto_library( + name = "resourcesettings_ruby_proto", + deps = [":resourcesettings_proto"], +) + +ruby_grpc_library( + name = "resourcesettings_ruby_grpc", + srcs = [":resourcesettings_proto"], + deps = [":resourcesettings_ruby_proto"], +) + +############################################################################## +# C# +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "csharp_grpc_library", + "csharp_proto_library", +) + +csharp_proto_library( + name = "resourcesettings_csharp_proto", + deps = [":resourcesettings_proto"], +) + +csharp_grpc_library( + name = "resourcesettings_csharp_grpc", + srcs = [":resourcesettings_proto"], + deps = [":resourcesettings_csharp_proto"], +) + +############################################################################## +# C++ +############################################################################## +# Put your C++ code here diff --git a/third_party/googleapis/google/cloud/resourcesettings/v1/resource_settings.proto b/third_party/googleapis/google/cloud/resourcesettings/v1/resource_settings.proto new file mode 100644 index 000000000..8045d5fb0 --- /dev/null +++ b/third_party/googleapis/google/cloud/resourcesettings/v1/resource_settings.proto @@ -0,0 +1,432 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.resourcesettings.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/timestamp.proto"; + +option cc_enable_arenas = true; +option go_package = "google.golang.org/genproto/googleapis/cloud/resourcesettings/v1;resourcesettings"; +option java_multiple_files = true; +option java_outer_classname = "ResourceSettingsProto"; +option java_package = "com.google.cloud.resourcesettings.v1"; + +// An interface to interact with resource settings and setting values throughout +// the resource hierarchy. +// +// Services may surface a number of settings for users to control how their +// resources behave. Setting values applied on a given Cloud resource are +// evaluated hierarchically and inherited by all descendants of that resource. +// +// For all requests, returns a `google.rpc.Status` with +// `google.rpc.Code.PERMISSION_DENIED` if the IAM check fails or the `parent` +// resource is not in a Cloud Organization. +// For all requests, returns a `google.rpc.Status` with +// `google.rpc.Code.INVALID_ARGUMENT` if the request is malformed. +service ResourceSettingsService { + option (google.api.default_host) = "resourcesettings.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + + // Lists all the settings that are available on the Cloud resource `parent`. + rpc ListSettings(ListSettingsRequest) returns (ListSettingsResponse) { + option (google.api.http) = { + get: "/v1/{parent=organizations/*}/settings" + additional_bindings { + get: "/v1/{parent=folders/*}/settings" + } + additional_bindings { + get: "/v1/{parent=projects/*}/settings" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Searches for all setting values that exist on the resource `parent`. The + // setting values are not limited to those of a particular setting. + rpc SearchSettingValues(SearchSettingValuesRequest) returns (SearchSettingValuesResponse) { + option (google.api.http) = { + get: "/v1/{parent=organizations/*}/settings:search" + additional_bindings { + get: "/v1/{parent=folders/*}/settings:search" + } + additional_bindings { + get: "/v1/{parent=projects/*}/settings:search" + } + }; + } + + // Gets a setting value. + // + // Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the + // setting value does not exist. + rpc GetSettingValue(GetSettingValueRequest) returns (SettingValue) { + option (google.api.http) = { + get: "/v1/{name=organizations/*/settings/*/value}" + additional_bindings { + get: "/v1/{name=folders/*/settings/*/value}" + } + additional_bindings { + get: "/v1/{name=projects/*/settings/*/value}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Computes the effective setting value of a setting at the Cloud resource + // `parent`. The effective setting value is the calculated setting value at a + // Cloud resource and evaluates to one of the following options in the given + // order (the next option is used if the previous one does not exist): + // + // 1. the setting value on the given resource + // 2. the setting value on the given resource's nearest ancestor + // 3. the setting's default value + // 4. an empty setting value, defined as a `SettingValue` with all fields + // unset + // + // Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the + // setting does not exist. + rpc LookupEffectiveSettingValue(LookupEffectiveSettingValueRequest) returns (SettingValue) { + option (google.api.http) = { + get: "/v1/{name=organizations/*/settings/*/value}:lookupEffectiveValue" + additional_bindings { + get: "/v1/{name=folders/*/settings/*/value}:lookupEffectiveValue" + } + additional_bindings { + get: "/v1/{name=projects/*/settings/*/value}:lookupEffectiveValue" + } + }; + } + + // Creates a setting value. + // + // Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the + // setting does not exist. + // Returns a `google.rpc.Status` with `google.rpc.Code.ALREADY_EXISTS` if the + // setting value already exists on the given Cloud resource. + // Returns a `google.rpc.Status` with `google.rpc.Code.FAILED_PRECONDITION` if + // the setting is flagged as read only. + rpc CreateSettingValue(CreateSettingValueRequest) returns (SettingValue) { + option (google.api.http) = { + post: "/v1/{parent=organizations/*}/settings/*/value" + body: "setting_value" + additional_bindings { + post: "/v1/{parent=folders/*}/settings/*/value" + body: "setting_value" + } + additional_bindings { + post: "/v1/{parent=projects/*}/settings/*/value" + body: "setting_value" + } + }; + option (google.api.method_signature) = "parent,setting_value"; + } + + // Updates a setting value. + // + // Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the + // setting or the setting value does not exist. + // Returns a `google.rpc.Status` with `google.rpc.Code.FAILED_PRECONDITION` if + // the setting is flagged as read only. + // Returns a `google.rpc.Status` with `google.rpc.Code.ABORTED` if the etag + // supplied in the request does not match the persisted etag of the setting + // value. + // + // Note: the supplied setting value will perform a full overwrite of all + // fields. + rpc UpdateSettingValue(UpdateSettingValueRequest) returns (SettingValue) { + option (google.api.http) = { + patch: "/v1/{setting_value.name=organizations/*/settings/*/value}" + body: "setting_value" + additional_bindings { + patch: "/v1/{setting_value.name=folders/*/settings/*/value}" + body: "setting_value" + } + additional_bindings { + patch: "/v1/{setting_value.name=projects/*/settings/*/value}" + body: "setting_value" + } + }; + } + + // Deletes a setting value. If the setting value does not exist, the operation + // is a no-op. + // + // Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the + // setting or the setting value does not exist. The setting value will not + // exist if a prior call to `DeleteSettingValue` for the setting value already + // returned a success code. + // Returns a `google.rpc.Status` with `google.rpc.Code.FAILED_PRECONDITION` if + // the setting is flagged as read only. + rpc DeleteSettingValue(DeleteSettingValueRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=organizations/*/settings/*/value}" + additional_bindings { + delete: "/v1/{name=folders/*/settings/*/value}" + } + additional_bindings { + delete: "/v1/{name=projects/*/settings/*/value}" + } + }; + option (google.api.method_signature) = "name"; + } +} + +// The instantiation of a setting. Every setting value is parented by its +// corresponding setting. +message SettingValue { + option (google.api.resource) = { + type: "resourcesettings.googleapis.com/SettingValue" + pattern: "projects/{project_number}/settings/{setting_name}/value" + pattern: "folders/{folder}/settings/{setting_name}/value" + pattern: "organizations/{organization}/settings/{setting_name}/value" + }; + + // The resource name of the setting value. Must be in one of the following + // forms: + // + // * `projects/{project_number}/settings/{setting_name}/value` + // * `folders/{folder_id}/settings/{setting_name}/value` + // * `organizations/{organization_id}/settings/{setting_name}/value` + // + // For example, "/projects/123/settings/gcp-enableMyFeature/value" + string name = 1; + + // The value of the setting. The data type of [Value][google.cloud.resourcesettings.v1.Value] must always be + // consistent with the data type defined by the parent setting. + Value value = 2; + + // A fingerprint used for optimistic concurrency. See + // [UpdateSettingValue][google.cloud.resourcesettings.v1.ResourceSettingsService.UpdateSettingValue] for more + // details. + string etag = 3; + + // Output only. A flag indicating that this setting value cannot be modified. + // This flag is inherited from its parent setting and is for + // convenience purposes. See [Setting.read_only][google.cloud.resourcesettings.v1.Setting.read_only] for more details. + bool read_only = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp indicating when the setting value was last + // updated. + google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The schema for setting values. At a given Cloud resource, a setting can +// parent at most one setting value. +message Setting { + option (google.api.resource) = { + type: "resourcesettings.googleapis.com/Setting" + pattern: "projects/{project_number}/settings/{setting_name}" + pattern: "folders/{folder}/settings/{setting_name}" + pattern: "organizations/{organization}/settings/{setting_name}" + }; + + // The data type for setting values of this setting. See [Value][google.cloud.resourcesettings.v1.Value] for more + // details on the available data types. + enum DataType { + // Unspecified data type. + DATA_TYPE_UNSPECIFIED = 0; + + // A boolean setting. + BOOLEAN = 1; + + // A string setting. + STRING = 2; + + // A string set setting. + STRING_SET = 3; + + // A Enum setting + ENUM_VALUE = 4; + } + + // The resource name of the setting. Must be in one of the following forms: + // + // * `projects/{project_number}/settings/{setting_name}` + // * `folders/{folder_id}/settings/{setting_name}` + // * `organizations/{organization_id}/settings/{setting_name}` + // + // For example, "/projects/123/settings/gcp-enableMyFeature" + string name = 1; + + // The human readable name for this setting. + string display_name = 2; + + // A detailed description of what this setting does. + string description = 3; + + // A flag indicating that values of this setting cannot be modified (see + // documentation of the specific setting for updates and reasons). + bool read_only = 4; + + // The data type for this setting. + DataType data_type = 5; + + // The value received by + // [LookupEffectiveSettingValue][google.cloud.resourcesettings.v1.ResourceSettingsService.LookupEffectiveSettingValue] + // if no setting value is explicitly set. + // + // Note: not all settings have a default value. + Value default_value = 6; +} + +// The data in a setting value. +message Value { + // A string set value that can hold a set of strings. The maximum length of + // each string is 60 characters and there can be a maximum of 50 strings in + // the string set. + message StringSet { + // The strings in the set + repeated string values = 1; + } + + // A enum value that can hold any enum type setting values. + // Each enum type is represented by a number, this representation + // is stored in the definitions. + message EnumValue { + string value = 1; + } + + // Selects the data type and associated value. + oneof value { + // Defines this value as being a boolean value. + bool boolean_value = 1; + + // Defines this value as being a string value. + string string_value = 2; + + // Defines this value as being a StringSet. + StringSet string_set_value = 3; + + // Defines this value as being a Enum. + EnumValue enum_value = 4; + } +} + +// The request for ListSettings. +message ListSettingsRequest { + // Required. The Cloud resource that parents the setting. Must be in one of the + // following forms: + // + // * `projects/{project_number}` + // * `projects/{project_id}` + // * `folders/{folder_id}` + // * `organizations/{organization_id}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "*" + } + ]; + + // Unused. The size of the page to be returned. + int32 page_size = 2; + + // Unused. A page token used to retrieve the next page. + string page_token = 3; +} + +// The response from ListSettings. +message ListSettingsResponse { + // A list of settings that are available at the specified Cloud resource. + repeated Setting settings = 1; + + // Unused. A page token used to retrieve the next page. + string next_page_token = 2; +} + +// The request for SearchSettingValues. +message SearchSettingValuesRequest { + // Required. The Cloud resource that parents the setting. Must be in one of the + // following forms: + // + // * `projects/{project_number}` + // * `projects/{project_id}` + // * `folders/{folder_id}` + // * `organizations/{organization_id}` + string parent = 1 [(google.api.field_behavior) = REQUIRED]; + + // Unused. The size of the page to be returned. + int32 page_size = 2; + + // Unused. A page token used to retrieve the next page. + string page_token = 3; +} + +// The response from SearchSettingValues. +message SearchSettingValuesResponse { + // All setting values that exist on the specified Cloud resource. + repeated SettingValue setting_values = 1; + + // Unused. A page token used to retrieve the next page. + string next_page_token = 2; +} + +// The request for GetSettingValue. +message GetSettingValueRequest { + // Required. The name of the setting value to get. See [SettingValue][google.cloud.resourcesettings.v1.SettingValue] for naming + // requirements. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "resourcesettings.googleapis.com/SettingValue" + } + ]; +} + +// The request for LookupEffectiveSettingValue. +message LookupEffectiveSettingValueRequest { + // Required. The setting value for which an effective value will be evaluated. + // See [SettingValue][google.cloud.resourcesettings.v1.SettingValue] for naming requirements. + string name = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// The request for CreateSettingValue. +message CreateSettingValueRequest { + // Required. The name of the setting for which a value should be created. + // See [Setting][google.cloud.resourcesettings.v1.Setting] for naming requirements. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "resourcesettings.googleapis.com/Setting" + } + ]; + + // Required. The setting value to create. See [SettingValue][google.cloud.resourcesettings.v1.SettingValue] for field requirements. + SettingValue setting_value = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// The request for UpdateSettingValue. +message UpdateSettingValueRequest { + // Required. The setting value to update. See [SettingValue][google.cloud.resourcesettings.v1.SettingValue] for field requirements. + SettingValue setting_value = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// The request for DeleteSettingValue. +message DeleteSettingValueRequest { + // Required. The name of the setting value to delete. See [SettingValue][google.cloud.resourcesettings.v1.SettingValue] for naming + // requirements. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "resourcesettings.googleapis.com/SettingValue" + } + ]; +} diff --git a/third_party/googleapis/google/cloud/resourcesettings/v1/resourcesettings_grpc_service_config.json b/third_party/googleapis/google/cloud/resourcesettings/v1/resourcesettings_grpc_service_config.json new file mode 100644 index 000000000..67a32fe9d --- /dev/null +++ b/third_party/googleapis/google/cloud/resourcesettings/v1/resourcesettings_grpc_service_config.json @@ -0,0 +1,21 @@ +{ + "methodConfig": [{ + "name": [ + { "service": "google.cloud.resourcesettings.v1.ResourceSettingsService", "method": "CreateSettingValue" }, + { "service": "google.cloud.resourcesettings.v1.ResourceSettingsService", "method": "DeleteSettingValue" }, + { "service": "google.cloud.resourcesettings.v1.ResourceSettingsService", "method": "GetSettingValue" }, + { "service": "google.cloud.resourcesettings.v1.ResourceSettingsService", "method": "ListSettings" }, + { "service": "google.cloud.resourcesettings.v1.ResourceSettingsService", "method": "LookupEffectiveSettingValue" }, + { "service": "google.cloud.resourcesettings.v1.ResourceSettingsService", "method": "SearchSettingValues" }, + { "service": "google.cloud.resourcesettings.v1.ResourceSettingsService", "method": "UpdateSettingValue" } + ], + "timeout": "60s", + "retryPolicy": { + "maxAttempts": 5, + "initialBackoff": "1s", + "maxBackoff": "10s", + "backoffMultiplier": 1.3, + "retryableStatusCodes": ["UNAVAILABLE", "DEADLINE_EXCEEDED"] + } + }] +} diff --git a/third_party/googleapis/google/cloud/resourcesettings/v1/resourcesettings_v1.yaml b/third_party/googleapis/google/cloud/resourcesettings/v1/resourcesettings_v1.yaml new file mode 100644 index 000000000..ddc9817e2 --- /dev/null +++ b/third_party/googleapis/google/cloud/resourcesettings/v1/resourcesettings_v1.yaml @@ -0,0 +1,20 @@ +type: google.api.Service +config_version: 3 +name: resourcesettings.googleapis.com +title: Resource Settings API + +apis: +- name: google.cloud.resourcesettings.v1.ResourceSettingsService + +documentation: + summary: |- + The Resource Settings API allows users to control and modify the behavior + of their GCP resources (e.g., VM, firewall, Project, etc.) across the + Cloud Resource Hierarchy. + +authentication: + rules: + - selector: 'google.cloud.resourcesettings.v1.ResourceSettingsService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform diff --git a/third_party/googleapis/google/cloud/retail/v2/BUILD.bazel b/third_party/googleapis/google/cloud/retail/v2/BUILD.bazel index b638da7de..51babed13 100644 --- a/third_party/googleapis/google/cloud/retail/v2/BUILD.bazel +++ b/third_party/googleapis/google/cloud/retail/v2/BUILD.bazel @@ -41,7 +41,7 @@ load( "py_grpc_library", "py_proto_library", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -101,11 +101,8 @@ java_grpc_library( java_gapic_library( name = "retail_java_gapic", - src = ":retail_proto_with_info", - gapic_yaml = "retail_gapic.yaml", + srcs = [":retail_proto_with_info"], grpc_service_config = "retail_grpc_service_config.json", - package = "google.cloud.retail.v2", - service_yaml = "retail_v2.yaml", test_deps = [ ":retail_java_grpc", ], @@ -159,9 +156,9 @@ go_gapic_library( deps = [ ":retail_go_proto", "//google/api:httpbody_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", "@io_bazel_rules_go//proto/wkt:duration_go_proto", "@io_bazel_rules_go//proto/wkt:struct_go_proto", ], @@ -184,49 +181,14 @@ go_gapic_assembly_pkg( ], ) -moved_proto_library( - name = "retail_moved_proto", - srcs = [":retail_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:httpbody_proto", - "//google/api:resource_proto", - "//google/longrunning:operations_proto", - "//google/rpc:status_proto", - "@com_google_protobuf//:duration_proto", - "@com_google_protobuf//:empty_proto", - "@com_google_protobuf//:field_mask_proto", - "@com_google_protobuf//:struct_proto", - "@com_google_protobuf//:timestamp_proto", - "@com_google_protobuf//:wrappers_proto", - ], -) - -py_proto_library( - name = "retail_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":retail_moved_proto"], -) - -py_grpc_library( - name = "retail_py_grpc", - srcs = [":retail_moved_proto"], - deps = [":retail_py_proto"], -) +############################################################################## +# Python +############################################################################## py_gapic_library( name = "retail_py_gapic", - src = ":retail_proto_with_info", - gapic_yaml = "retail_gapic.yaml", + srcs = [":retail_proto"], grpc_service_config = "retail_grpc_service_config.json", - package = "google.cloud.retail.v2", - service_yaml = "retail_v2.yaml", - deps = [ - ":retail_py_grpc", - ":retail_py_proto", - ], ) # Open Source Packages @@ -234,8 +196,6 @@ py_gapic_assembly_pkg( name = "retail-v2-py", deps = [ ":retail_py_gapic", - ":retail_py_grpc", - ":retail_py_proto", ], ) @@ -275,7 +235,9 @@ php_gapic_assembly_pkg( nodejs_gapic_library( name = "retail_nodejs_gapic", + package_name = "@google-cloud/retail", src = ":retail_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "retail_grpc_service_config.json", package = "google.cloud.retail.v2", service_yaml = "retail_v2.yaml", @@ -301,13 +263,19 @@ ruby_grpc_library( deps = [":retail_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "retail_ruby_gapic", - src = ":retail_proto_with_info", - gapic_yaml = "retail_gapic.yaml", + srcs = [":retail_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-retail-v2", + "ruby-cloud-env-prefix=RETAIL", + "ruby-cloud-product-url=https://cloud.google.com/retail/docs/apis", + "ruby-cloud-api-id=retail.googleapis.com", + "ruby-cloud-api-shortname=retail", + ], grpc_service_config = "retail_grpc_service_config.json", - package = "google.cloud.retail.v2", - service_yaml = "retail_v2.yaml", + ruby_cloud_description = "Retail enables you to build an end-to-end personalized recommendation system based on state-of-the-art deep learning ML models, without a need for expertise in ML or recommendation systems.", + ruby_cloud_title = "Retail V2", deps = [ ":retail_ruby_grpc", ":retail_ruby_proto", diff --git a/third_party/googleapis/google/cloud/retail/v2/catalog.proto b/third_party/googleapis/google/cloud/retail/v2/catalog.proto index 8b0de9821..ded4ebd06 100644 --- a/third_party/googleapis/google/cloud/retail/v2/catalog.proto +++ b/third_party/googleapis/google/cloud/retail/v2/catalog.proto @@ -32,45 +32,58 @@ option ruby_package = "Google::Cloud::Retail::V2"; // Configures what level the product should be uploaded with regards to // how users will be send events and how predictions will be made. message ProductLevelConfig { - // The level of a [Catalog][google.cloud.retail.v2.Catalog] at which the - // [UserEvent][google.cloud.retail.v2.UserEvent]s are uploaded. Acceptable - // values are: - // * `primary` - // * `variant` + // The type of [Product][google.cloud.retail.v2.Product]s allowed to be + // ingested into the catalog. Acceptable values are: + // + // * `primary` (default): You can only ingest + // [Product.Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] + // [Product][google.cloud.retail.v2.Product]s. This means + // [Product.primary_product_id][google.cloud.retail.v2.Product.primary_product_id] + // can only be empty or set to the same value as + // [Product.id][google.cloud.retail.v2.Product.id]. + // * `variant`: You can only ingest + // [Product.Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT] + // [Product][google.cloud.retail.v2.Product]s. + // This means + // [Product.primary_product_id][google.cloud.retail.v2.Product.primary_product_id] + // cannot be empty. // // If this field is set to an invalid value other than these, an // INVALID_ARGUMENT error is returned. // - // If this field is `primary` and - // [predict_product_level][google.cloud.retail.v2.ProductLevelConfig.predict_product_level] - // is `variant`, an INVALID_ARGUMENT error is returned. + // If this field is `variant` and + // [merchant_center_product_id_field][google.cloud.retail.v2.ProductLevelConfig.merchant_center_product_id_field] + // is `itemGroupId`, an INVALID_ARGUMENT error is returned. // - // See - // https://cloud.google.com/recommendations-ai/docs/catalog#catalog-levels - // for more details. - string event_product_level = 1; + // See [Using catalog + // levels](/retail/recommendations-ai/docs/catalog#catalog-levels) for more + // details. + string ingestion_product_type = 1; - // The level of a [Catalog][google.cloud.retail.v2.Catalog] at which the - // [PredictionService.Predict][google.cloud.retail.v2.PredictionService.Predict] - // is called. Acceptable values are: - // * `primary` - // * `variant` + // Which field of [Merchant Center + // Product](/bigquery-transfer/docs/merchant-center-products-schema) should be + // imported as [Product.id][google.cloud.retail.v2.Product.id]. Acceptable + // values are: + // + // * `offerId` (default): Import `offerId` as the product ID. + // * `itemGroupId`: Import `itemGroupId` as the product ID. Notice that Retail + // API will choose one item from the ones with the same `itemGroupId`, and + // use it to represent the item group. // // If this field is set to an invalid value other than these, an // INVALID_ARGUMENT error is returned. // - // If this field is `variant` and - // [event_product_level][google.cloud.retail.v2.ProductLevelConfig.event_product_level] - // is `primary`, an INVALID_ARGUMENT error is returned. + // If this field is `itemGroupId` and + // [ingestion_product_type][google.cloud.retail.v2.ProductLevelConfig.ingestion_product_type] + // is `variant`, an INVALID_ARGUMENT error is returned. // - // See - // https://cloud.google.com/recommendations-ai/docs/catalog#catalog-levels - // for more details. - string predict_product_level = 2; + // See [Using catalog + // levels](/retail/recommendations-ai/docs/catalog#catalog-levels) for more + // details. + string merchant_center_product_id_field = 2; } // The catalog configuration. -// Next ID: 5. message Catalog { option (google.api.resource) = { type: "retail.googleapis.com/Catalog" diff --git a/third_party/googleapis/google/cloud/retail/v2/catalog_service.proto b/third_party/googleapis/google/cloud/retail/v2/catalog_service.proto index 22d4ea6b6..4adda8df7 100644 --- a/third_party/googleapis/google/cloud/retail/v2/catalog_service.proto +++ b/third_party/googleapis/google/cloud/retail/v2/catalog_service.proto @@ -21,7 +21,9 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/retail/v2/catalog.proto"; +import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Retail.V2"; option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2;retail"; @@ -69,7 +71,9 @@ message ListCatalogsRequest { // returned. string parent = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { type: "locations.googleapis.com/Location" } + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } ]; // Maximum number of [Catalog][google.cloud.retail.v2.Catalog]s to return. If diff --git a/third_party/googleapis/google/cloud/retail/v2/common.proto b/third_party/googleapis/google/cloud/retail/v2/common.proto index fa26670c9..341126afc 100644 --- a/third_party/googleapis/google/cloud/retail/v2/common.proto +++ b/third_party/googleapis/google/cloud/retail/v2/common.proto @@ -41,7 +41,7 @@ message CustomAttribute { // // Exactly one of [text][google.cloud.retail.v2.CustomAttribute.text] or // [numbers][google.cloud.retail.v2.CustomAttribute.numbers] should be set. - // Otherwise, a INVALID_ARGUMENT error is returned. + // Otherwise, an INVALID_ARGUMENT error is returned. repeated string text = 1; // The numerical values of this custom attribute. For example, `[2.3, 15.4]` @@ -52,7 +52,7 @@ message CustomAttribute { // // Exactly one of [text][google.cloud.retail.v2.CustomAttribute.text] or // [numbers][google.cloud.retail.v2.CustomAttribute.numbers] should be set. - // Otherwise, a INVALID_ARGUMENT error is returned. + // Otherwise, an INVALID_ARGUMENT error is returned. repeated double numbers = 2; } @@ -65,7 +65,7 @@ message Image { // // Google Merchant Center property // [image_link](https://support.google.com/merchants/answer/6324350). - // Schema.org property [Product.image](http://schema.org/image). + // Schema.org property [Product.image](https://schema.org/image). string uri = 1 [(google.api.field_behavior) = REQUIRED]; // Height of the image in number of pixels. @@ -84,7 +84,7 @@ message Image { // The price information of a [Product][google.cloud.retail.v2.Product]. message PriceInfo { // The 3-letter currency code defined in [ISO - // 4217][https://www.iso.org/iso-4217-currency-codes.html]. + // 4217](https://www.iso.org/iso-4217-currency-codes.html). // // If this field is an unrecognizable currency code, an INVALID_ARGUMENT // error is returned. @@ -93,9 +93,8 @@ message PriceInfo { // Price of the product. // // Google Merchant Center property - // [price](https://support.google.com/merchants/answer/6324371). - // Schema.org property - // [Offer.priceSpecification](https://schema.org/priceSpecification). + // [price](https://support.google.com/merchants/answer/6324371). Schema.org + // property [Offer.priceSpecification](https://schema.org/priceSpecification). float price = 2; // Price of the product without any discount. If zero, by default set to be @@ -109,7 +108,7 @@ message PriceInfo { // [cost][google.cloud.retail.v2.PriceInfo.cost] // // Google Merchant Center property - // [cost_of_goods_sold](https://support.google.com/merchants/answer/9017895) + // [cost_of_goods_sold](https://support.google.com/merchants/answer/9017895). float cost = 4; } @@ -133,7 +132,7 @@ message UserInfo { // [UserEventService.CollectUserEvent][google.cloud.retail.v2.UserEventService.CollectUserEvent] // or if // [direct_user_request][google.cloud.retail.v2.UserInfo.direct_user_request] - // is set. Otherwise, a FAILED_PRECONDITION error is returned. + // is set. string ip_address = 2; // User agent as included in the HTTP header. @@ -146,7 +145,7 @@ message UserInfo { // [UserEventService.CollectUserEvent][google.cloud.retail.v2.UserEventService.CollectUserEvent] // or if // [direct_user_request][google.cloud.retail.v2.UserInfo.direct_user_request] - // is set. Otherwise, a FAILED_PRECONDITION error is returned. + // is set. string user_agent = 3; // True if the request is made directly from the end user, in which case the @@ -158,6 +157,5 @@ message UserInfo { // // This should not be set when using the JavaScript tag in // [UserEventService.CollectUserEvent][google.cloud.retail.v2.UserEventService.CollectUserEvent]. - // Otherwise, a FAILED_PRECONDITION error is returned. bool direct_user_request = 4; } diff --git a/third_party/googleapis/google/cloud/retail/v2/import_config.proto b/third_party/googleapis/google/cloud/retail/v2/import_config.proto index d7c508a11..3d4c26867 100644 --- a/third_party/googleapis/google/cloud/retail/v2/import_config.proto +++ b/third_party/googleapis/google/cloud/retail/v2/import_config.proto @@ -18,7 +18,6 @@ package google.cloud.retail.v2; import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; import "google/cloud/retail/v2/product.proto"; import "google/cloud/retail/v2/user_event.proto"; import "google/protobuf/field_mask.proto"; @@ -39,10 +38,11 @@ option ruby_package = "Google::Cloud::Retail::V2"; message GcsSource { // Required. Google Cloud Storage URIs to input files. URI can be up to // 2000 characters long. URIs can match the full object path (for example, - // gs://bucket/directory/object.json) or a pattern matching one or more - // files, such as gs://bucket/directory/*.json. A request can + // `gs://bucket/directory/object.json`) or a pattern matching one or more + // files, such as `gs://bucket/directory/*.json`. A request can // contain at most 100 files, and each file can be up to 2 GB. See - // [Importing product information](/recommendations-ai/docs/upload-catalog) + // [Importing product + // information](https://cloud.google.com/recommendations-ai/docs/upload-catalog) // for the expected file format and setup instructions. repeated string input_uris = 1 [(google.api.field_behavior) = REQUIRED]; @@ -50,21 +50,18 @@ message GcsSource { // // Supported values for product imports: // - // 1: "product" using - // https://cloud.google.com/recommendations-ai/docs/upload-catalog#json - // (Default for products.import) - // - // 2: "product_merchant_center" using - // https://cloud.google.com/recommendations-ai/docs/upload-catalog#mc + // * `product` (default): One JSON [Product][google.cloud.retail.v2.Product] + // per line. Each product must + // have a valid [Product.id][google.cloud.retail.v2.Product.id]. + // * `product_merchant_center`: See [Importing catalog data from Merchant + // Center](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog#mc). // // Supported values for user events imports: // - // 1: "user_event" using - // https://cloud.google.com/recommendations-ai/docs/manage-user-events#import - // (Default for userEvents.import) - // - // 2. "user_event_ga360" using - // https://support.google.com/analytics/answer/3437719?hl=en + // * `user_event` (default): One JSON + // [UserEvent][google.cloud.retail.v2.UserEvent] per line. + // * `user_event_ga360`: Using + // https://support.google.com/analytics/answer/3437719?hl=en. string data_schema = 2; } @@ -90,30 +87,28 @@ message BigQuerySource { // The schema to use when parsing the data from the source. // - // Supported values for catalog imports: - // - // 1: "product" using - // https://cloud.google.com/recommendations-ai/docs/upload-catalog#json - // (Default for products.import) - // - // 2: "product_merchant_center" using - // https://cloud.google.com/recommendations-ai/docs/upload-catalog#mc + // Supported values for product imports: // - // Supported values for user event imports: + // * `product` (default): One JSON [Product][google.cloud.retail.v2.Product] + // per line. Each product must + // have a valid [Product.id][google.cloud.retail.v2.Product.id]. + // * `product_merchant_center`: See [Importing catalog data from Merchant + // Center](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog#mc). // - // 1: "user_event" using - // https://cloud.google.com/recommendations-ai/docs/manage-user-events#import - // (Default for userEvents.import) + // Supported values for user events imports: // - // 2. "user_event_ga360" using - // https://support.google.com/analytics/answer/3437719?hl=en + // * `user_event` (default): One JSON + // [UserEvent][google.cloud.retail.v2.UserEvent] per line. + // * `user_event_ga360`: Using + // https://support.google.com/analytics/answer/3437719?hl=en. string data_schema = 4; } // The inline source for the input config for ImportProducts method. message ProductInlineSource { - // Required. A list of products to update/create. Recommended max of 10k - // items. + // Required. A list of products to update/create. Each product must have a + // valid [Product.id][google.cloud.retail.v2.Product.id]. Recommended max of + // 10k items. repeated Product products = 1 [(google.api.field_behavior) = REQUIRED]; } @@ -138,7 +133,7 @@ message ImportErrorsConfig { // Request message for Import methods. message ImportProductsRequest { // Required. - // "projects/1234/locations/global/catalogs/default_catalog/branches/default_branch" + // `projects/1234/locations/global/catalogs/default_catalog/branches/default_branch` // // If no updateMask is specified, requires products.create permission. // If updateMask is specified, requires products.update permission. @@ -157,7 +152,7 @@ message ImportProductsRequest { // Request message for the ImportUserEvents request. message ImportUserEventsRequest { - // Required. "projects/1234/locations/global/catalogs/default_catalog" + // Required. `projects/1234/locations/global/catalogs/default_catalog` string parent = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The desired input location of the data. @@ -204,11 +199,6 @@ message UserEventInputConfig { // Metadata related to the progress of the Import operation. This will be // returned by the google.longrunning.Operation.metadata field. message ImportMetadata { - option (google.api.resource) = { - type: "retail.googleapis.com/Operation" - pattern: "operations/{operation}" - }; - // Operation create time. google.protobuf.Timestamp create_time = 1; diff --git a/third_party/googleapis/google/cloud/retail/v2/prediction_service.proto b/third_party/googleapis/google/cloud/retail/v2/prediction_service.proto index c0cd6640f..d5f68ebd2 100644 --- a/third_party/googleapis/google/cloud/retail/v2/prediction_service.proto +++ b/third_party/googleapis/google/cloud/retail/v2/prediction_service.proto @@ -76,10 +76,7 @@ message PredictRequest { // Recently viewed. // // The full list of available placements can be seen at - // - // https: - // //console.cloud.google.com/recommendatio - // // n/datafeeds/default_catalog/dashboard + // https://console.cloud.google.com/recommendation/catalogs/default_catalog/placements string placement = 1 [(google.api.field_behavior) = REQUIRED]; // Required. Context about the user, what they are looking at and what action diff --git a/third_party/googleapis/google/cloud/retail/v2/product.proto b/third_party/googleapis/google/cloud/retail/v2/product.proto index 636b8356d..d93b07172 100644 --- a/third_party/googleapis/google/cloud/retail/v2/product.proto +++ b/third_party/googleapis/google/cloud/retail/v2/product.proto @@ -45,6 +45,40 @@ message Product { pattern: "projects/{project}/locations/{location}/catalogs/{catalog}/branches/{branch}/products/{product}" }; + // The type of this product. + enum Type { + // Default value. Default to + // [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] if unset. + TYPE_UNSPECIFIED = 0; + + // The primary type. + // + // As the primary unit for predicting, indexing and search serving, a + // [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] + // [Product][google.cloud.retail.v2.Product] is grouped with multiple + // [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT] + // [Product][google.cloud.retail.v2.Product]s. + PRIMARY = 1; + + // The variant type. + // + // [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT] + // [Product][google.cloud.retail.v2.Product]s usually share some common + // attributes on the same + // [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] + // [Product][google.cloud.retail.v2.Product]s, but they have variant + // attributes like different colors, sizes and prices, etc. + VARIANT = 2; + + // The collection type. Collection products are bundled + // [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] + // [Product][google.cloud.retail.v2.Product]s or + // [Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT] + // [Product][google.cloud.retail.v2.Product]s that are sold together, such + // as a jewelry set with necklaces, earrings and rings, etc. + COLLECTION = 3; + } + // Product availability. If this field is unspecified, the product is // assumed to be in stock. enum Availability { @@ -67,8 +101,7 @@ message Product { } // Immutable. Full resource name of the product, such as - // - // "projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id". + // `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id`. // // The branch ID must be "default_branch". string name = 1 [(google.api.field_behavior) = IMMUTABLE]; @@ -77,52 +110,50 @@ message Product { // the final component of [name][google.cloud.retail.v2.Product.name]. For // example, this field is "id_1", if // [name][google.cloud.retail.v2.Product.name] is - // - // "projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/id_1". + // `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/id_1`. // // This field must be a UTF-8 encoded string with a length limit of 128 // characters. Otherwise, an INVALID_ARGUMENT error is returned. // // Google Merchant Center property - // [id](https://support.google.com/merchants/answer/6324405). - // schema.org Property [Product.sku](https://schema.org/sku). + // [id](https://support.google.com/merchants/answer/6324405). Schema.org + // Property [Product.sku](https://schema.org/sku). string id = 2 [(google.api.field_behavior) = IMMUTABLE]; + // Immutable. The type of the product. This field is output-only. + Type type = 3 [(google.api.field_behavior) = IMMUTABLE]; + // Variant group identifier. Must be an // [id][google.cloud.retail.v2.Product.id], with the same parent branch with // this product. Otherwise, an error is thrown. // - // The primary product may be empty during the creation, but cannot be updated - // from a non-empty string to an empty one. Otherwise an INVALID_ARGUMENT - // error is returned. + // For [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] + // [Product][google.cloud.retail.v2.Product]s, this field can only be empty or + // set to the same value as [id][google.cloud.retail.v2.Product.id]. // - // Should only be set for [Type.VARIANT][] - // [Product][google.cloud.retail.v2.Product]s. A maximum of 2000 products are - // allowed to share the same [Type.PRIMARY][] + // For VARIANT [Product][google.cloud.retail.v2.Product]s, this field cannot + // be empty. A maximum of 2,000 products are allowed to share the same + // [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] // [Product][google.cloud.retail.v2.Product]. Otherwise, an INVALID_ARGUMENT // error is returned. // // Google Merchant Center Property // [item_group_id](https://support.google.com/merchants/answer/6324507). - // schema.org Property + // Schema.org Property // [Product.inProductGroupWithID](https://schema.org/inProductGroupWithID). // // This field must be enabled before it can be used. [Learn // more](/recommendations-ai/docs/catalog#item-group-id). string primary_product_id = 4; - // Required. Product categories. This field is repeated for supporting one - // product belonging to several parallel categories. Each value is either the - // full path of the category, or the [category + // Product categories. This field is repeated for supporting one product + // belonging to several parallel categories. Strongly recommended using the + // full path for better search / recommendation quality. // - // ID](https: - // //www.google.com/basepages/producttype/taxonomy-with-ids.en-US.txt). - // Strongly recommended using the full path for better search / recommendation - // quality. // // To represent full path of category, use '>' sign to separate different - // hierarchies. If '>' is part of the category name, you should escape it with - // '\x3E'. + // hierarchies. If '>' is part of the category name, please replace it with + // other character(s). // // For example, if a shoes product belongs to both // ["Shoes & Accessories" -> "Shoes"] and @@ -134,17 +165,22 @@ message Product { // "Sports & Fitness > Athletic Clothing > Shoes" // ] // + // Must be set for [Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] + // [Product][google.cloud.retail.v2.Product] otherwise an INVALID_ARGUMENT + // error is returned. + // // At most 250 values are allowed per // [Product][google.cloud.retail.v2.Product]. Empty values are not allowed. // Each value must be a UTF-8 encoded string with a length limit of 5,000 // characters. Otherwise, an INVALID_ARGUMENT error is returned. // // Google Merchant Center property + // [google_product_category][mc_google_product_category]. Schema.org property + // [Product.category] (https://schema.org/category). // - // [google_product_category](https: - // //support.google.com/merchants/answer/6324436). - // Schema.org property [Product.category] (https://schema.org/category). - repeated string categories = 7 [(google.api.field_behavior) = REQUIRED]; + // [mc_google_product_category]: + // https://support.google.com/merchants/answer/6324436 + repeated string categories = 7; // Required. Product title. // @@ -166,19 +202,6 @@ message Product { // schema.org property [Product.description](https://schema.org/description). string description = 10; - // Language of the title/description and other string attributes. Use language - // tags defined by [BCP 47][https://www.rfc-editor.org/rfc/bcp/bcp47.txt]. - // - // The model automatically detects the text language. The - // [Product][google.cloud.retail.v2.Product] can include text in different - // languages, but duplicating [Product][google.cloud.retail.v2.Product]s to - // provide text in multiple languages can result in degraded model - // performance. - // - // Currently, recommendation supports all language codes, while the only - // supported language code for search is "en-US". - string language_code = 11; - // Highly encouraged. Extra product attributes to be included. For example, // for products, this could include the store name, vendor, style, color, etc. // These are very strong signals for recommendation model, thus we highly @@ -191,12 +214,15 @@ message Product { // country of a customer. Numerical features. Some examples would be the // height/weight of a product, or age of a customer. // - // For example: { "vendor": {"text": ["vendor123", "vendor456"]}, + // For example: `{ "vendor": {"text": ["vendor123", "vendor456"]}, // "lengths_cm": {"numbers":[2.3, 15.4]}, "heights_cm": {"numbers":[8.1, 6.4]} - // }. + // }`. // // A maximum of 150 attributes are allowed. Otherwise, an INVALID_ARGUMENT // error is returned. + // + // The key must be a UTF-8 encoded string with a length limit of 5,000 + // characters. Otherwise, an INVALID_ARGUMENT error is returned. map attributes = 12; // Custom tags associated with the product. @@ -224,13 +250,13 @@ message Product { // available recommendation and search. google.protobuf.Timestamp available_time = 18; - // The online availability of the [Product][google.cloud.retail.v2.Product], - // which is parallel to and independent of [fulfillment_info][]. Default is + // The online availability of the [Product][google.cloud.retail.v2.Product]. + // Default to // [Availability.IN_STOCK][google.cloud.retail.v2.Product.Availability.IN_STOCK]. // // Google Merchant Center Property // [availability](https://support.google.com/merchants/answer/6324448). - // schema.org Property [Offer.availability](https://schema.org/availability). + // Schema.org Property [Offer.availability](https://schema.org/availability). Availability availability = 19; // The available quantity of the item. @@ -242,43 +268,16 @@ message Product { // characters. Otherwise, an INVALID_ARGUMENT error is returned. // // Google Merchant Center property - // [link](https://support.google.com/merchants/answer/6324416). - // Schema.org property [Offer.url](https://schema.org/url). + // [link](https://support.google.com/merchants/answer/6324416). Schema.org + // property [Offer.url](https://schema.org/url). string uri = 22; // Product images for the product. // + // A maximum of 300 images are allowed. + // // Google Merchant Center property // [image_link](https://support.google.com/merchants/answer/6324350). // Schema.org property [Product.image](https://schema.org/image). repeated Image images = 23; - - // Indicates which fields in the [variants][] are retrievable in [Search][]. - // If not set or empty, the following fields are returned: - // - // * [name][google.cloud.retail.v2.Product.name] - // * [availability][google.cloud.retail.v2.Product.availability] - // * [color_info][] - // - // Supported fields: - // - // * [name][google.cloud.retail.v2.Product.name] - // * [availability][google.cloud.retail.v2.Product.availability] - // * [color_info][] - // * [gtin][] - // * [price_info][google.cloud.retail.v2.Product.price_info] - // * [sizes][] - // * [materials][] - // * [patterns][] - // * [conditions][] - // * [images][google.cloud.retail.v2.Product.images] - // * [attributes][google.cloud.retail.v2.Product.attributes] - // - // To mark custom attributes as retrievable, include paths of the form - // "attributes.key" where "key" is the key of a custom attribute, as - // specified in [attributes][google.cloud.retail.v2.Product.attributes]. - // - // Maximum number of paths is 10. Otherwise, an INVALID_ARGUMENT error is - // returned. - google.protobuf.FieldMask variant_retrievable_fields = 30; } diff --git a/third_party/googleapis/google/cloud/retail/v2/product_service.proto b/third_party/googleapis/google/cloud/retail/v2/product_service.proto index 1ae3b3cbc..b41305023 100644 --- a/third_party/googleapis/google/cloud/retail/v2/product_service.proto +++ b/third_party/googleapis/google/cloud/retail/v2/product_service.proto @@ -60,8 +60,7 @@ service ProductService { option (google.api.method_signature) = "name"; } - // Updates a [Product][google.cloud.retail.v2.Product]. Non-existing items - // will be created. + // Updates a [Product][google.cloud.retail.v2.Product]. rpc UpdateProduct(UpdateProductRequest) returns (Product) { option (google.api.http) = { patch: "/v2/{product.name=projects/*/locations/*/catalogs/*/branches/*/products/**}" @@ -101,8 +100,7 @@ service ProductService { // Request message for [CreateProduct][] method. message CreateProductRequest { // Required. The parent catalog resource name, such as - // - // "projects/*/locations/global/catalogs/default_catalog/branches/default_branch". + // `projects/*/locations/global/catalogs/default_catalog/branches/default_branch`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { type: "retail.googleapis.com/Branch" } @@ -133,8 +131,7 @@ message CreateProductRequest { message GetProductRequest { // Required. Full resource name of [Product][google.cloud.retail.v2.Product], // such as - // - // "projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/some_product_id". + // `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/some_product_id`. // // If the caller does not have permission to access the // [Product][google.cloud.retail.v2.Product], regardless of whether or not it @@ -174,8 +171,7 @@ message UpdateProductRequest { message DeleteProductRequest { // Required. Full resource name of [Product][google.cloud.retail.v2.Product], // such as - // - // "projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/some_product_id". + // `projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/some_product_id`. // // If the caller does not have permission to delete the // [Product][google.cloud.retail.v2.Product], regardless of whether or not it @@ -183,13 +179,6 @@ message DeleteProductRequest { // // If the [Product][google.cloud.retail.v2.Product] to delete does not exist, // a NOT_FOUND error is returned. - // - // The [Product][google.cloud.retail.v2.Product] to delete can neither be a - // non-empty [Product.Type.COLLECTION][] - // [Product][google.cloud.retail.v2.Product] nor a [Product.Type.PRIMARY][] - // [Product][google.cloud.retail.v2.Product] with more than one - // [variants][Product.Type.VARIANT]. Otherwise, a FAILED_PRECONDITION error is - // returned. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { type: "retail.googleapis.com/Product" } diff --git a/third_party/googleapis/google/cloud/retail/v2/purge_config.proto b/third_party/googleapis/google/cloud/retail/v2/purge_config.proto index 51586ad29..d9cf6b827 100644 --- a/third_party/googleapis/google/cloud/retail/v2/purge_config.proto +++ b/third_party/googleapis/google/cloud/retail/v2/purge_config.proto @@ -43,11 +43,12 @@ message PurgeUserEventsRequest { // length limit of 5,000 characters. Empty string filter is not allowed. The // eligible fields for filtering are: // - // * `eventType`: UserEvent.eventType field of type string. + // * `eventType`: Double quoted + // [UserEvent.event_type][google.cloud.retail.v2.UserEvent.event_type] string. // * `eventTime`: in ISO 8601 "zulu" format. - // * `visitorId`: field of type string. Specifying this will delete all + // * `visitorId`: Double quoted string. Specifying this will delete all // events associated with a visitor. - // * `userId`: field of type string. Specifying this will delete all events + // * `userId`: Double quoted string. Specifying this will delete all events // associated with a user. // // Examples: @@ -62,6 +63,11 @@ message PurgeUserEventsRequest { // // The filtering fields are assumed to have an implicit AND. string filter = 2 [(google.api.field_behavior) = REQUIRED]; + + // Actually perform the purge. + // If `force` is set to false, the method will return the expected purge count + // without deleting any user events. + bool force = 3; } // Response of the PurgeUserEventsRequest. If the long running operation is diff --git a/third_party/googleapis/google/cloud/retail/v2/retail_gapic.yaml b/third_party/googleapis/google/cloud/retail/v2/retail_gapic.yaml index e7f27446b..8cbed69c2 100644 --- a/third_party/googleapis/google/cloud/retail/v2/retail_gapic.yaml +++ b/third_party/googleapis/google/cloud/retail/v2/retail_gapic.yaml @@ -1,8 +1,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 language_settings: - java: - package_name: com.google.cloud.retail.v2 python: package_name: google.cloud.retail_v2.gapic go: diff --git a/third_party/googleapis/google/cloud/retail/v2/retail_v2.yaml b/third_party/googleapis/google/cloud/retail/v2/retail_v2.yaml index 4f4dca3b5..fad39bc71 100644 --- a/third_party/googleapis/google/cloud/retail/v2/retail_v2.yaml +++ b/third_party/googleapis/google/cloud/retail/v2/retail_v2.yaml @@ -1,7 +1,7 @@ type: google.api.Service config_version: 3 name: retail.googleapis.com -title: Cloud Retail Solution +title: Retail API apis: - name: google.cloud.retail.v2.CatalogService @@ -20,7 +20,10 @@ types: - name: google.cloud.retail.v2.RejoinUserEventsResponse documentation: - summary: TBD + summary: |- + Cloud Retail service enables customers to build end-to-end personalized + recommendation systems without requiring a high level of expertise in + machine learning, recommendation system, or Google Cloud. backend: rules: diff --git a/third_party/googleapis/google/cloud/retail/v2/user_event.proto b/third_party/googleapis/google/cloud/retail/v2/user_event.proto index 3ad74f5b1..ca7083e50 100644 --- a/third_party/googleapis/google/cloud/retail/v2/user_event.proto +++ b/third_party/googleapis/google/cloud/retail/v2/user_event.proto @@ -32,25 +32,26 @@ option objc_class_prefix = "RETAIL"; option php_namespace = "Google\\Cloud\\Retail\\V2"; option ruby_package = "Google::Cloud::Retail::V2"; -// UserEvent captures all metadata information recommendation engine needs to -// know about how end users interact with customers' website. +// UserEvent captures all metadata information Retail API needs to know about +// how end users interact with customers' website. message UserEvent { // Required. User event type. Allowed values are: // - // * `add-to-cart` Products being added to cart. - // * `category-page-view` Special pages such as sale or promotion pages + // * `add-to-cart`: Products being added to cart. + // * `category-page-view`: Special pages such as sale or promotion pages // viewed. - // * `detail-page-view` Products detail page viewed. - // * `home-page-view` Homepage viewed. - // * `purchase-complete` User finishing a purchase. - // * `search` - // * `shopping-cart-page-view` User viewing a shopping cart. + // * `detail-page-view`: Products detail page viewed. + // * `home-page-view`: Homepage viewed. + // * `purchase-complete`: User finishing a purchase. + // * `search`: Product search. + // * `shopping-cart-page-view`: User viewing a shopping cart. string event_type = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. A unique identifier for tracking visitors. For example, this - // could be implemented with a http cookie, which should be able to uniquely - // identify a visitor on a single device. This unique identifier should not - // change if the visitor log in/out of the website. + // Required. A unique identifier for tracking visitors. + // + // For example, this could be implemented with an HTTP cookie, which should be + // able to uniquely identify a visitor on a single device. This unique + // identifier should not change if the visitor log in/out of the website. // // The field must be a UTF-8 encoded string with a length limit of 128 // characters. Otherwise, an INVALID_ARGUMENT error is returned. @@ -61,10 +62,10 @@ message UserEvent { // method. Timestamp of when the user event happened. google.protobuf.Timestamp event_time = 3; - // A list of identifiers for the independent experiment groups - // this user event belongs to. This is used to distinguish between user events - // associated with different experiment setups (e.g. using Recommendations AI, - // using different recommendation models). + // A list of identifiers for the independent experiment groups this user event + // belongs to. This is used to distinguish between user events associated with + // different experiment setups (e.g. using Retail API, using different + // recommendation models). repeated string experiment_ids = 4; // Highly recommended for user events that are the result of @@ -73,15 +74,19 @@ message UserEvent { // performance. // // The value must be a valid - // [PredictResponse.attribute_token][] for user events that are the result of + // [PredictResponse.attribution_token][google.cloud.retail.v2.PredictResponse.attribution_token] + // for user events that are the result of // [PredictionService.Predict][google.cloud.retail.v2.PredictionService.Predict]. // // This token enables us to accurately attribute page view or purchase back to // the event and the particular predict response containing this // clicked/purchased product. If user clicks on product K in the - // recommendation results, pass [PredictResponse.attribute_token][] as a url - // parameter to product K's page. When recording events on product K's page, - // log the [PredictResponse.attribute_token][] to this field. + // recommendation results, pass + // [PredictResponse.attribution_token][google.cloud.retail.v2.PredictResponse.attribution_token] + // as a URL parameter to product K's page. When recording events on product + // K's page, log the + // [PredictResponse.attribution_token][google.cloud.retail.v2.PredictResponse.attribution_token] + // to this field. string attribution_token = 5; // The main product details related to the event. @@ -95,7 +100,7 @@ message UserEvent { // In a `search` event, this field represents the products returned to the end // user on the current page (the end user may have not finished broswing the // whole page yet). When a new page is returned to the end user, after - // pagination/filtering/ordering even for the same query, a new SEARCH event + // pagination/filtering/ordering even for the same query, a new `search` event // with different // [product_details][google.cloud.retail.v2.UserEvent.product_details] is // desired. The end user may have not finished broswing the whole page yet. @@ -103,6 +108,9 @@ message UserEvent { // Extra user event features to include in the recommendation model. // + // The key must be a UTF-8 encoded string with a length limit of 5,000 + // characters. Otherwise, an INVALID_ARGUMENT error is returned. + // // For product recommendation, an example of extra user information is // traffic_channel, i.e. how user arrives at the site. Users can arrive // at the site by coming to the site directly, or coming through Google @@ -112,15 +120,14 @@ message UserEvent { // The id or name of the associated shopping cart. This id is used // to associate multiple items added or present in the cart before purchase. // - // This can only be set for `add-to-cart`, `remove-from-cart`, - // `checkout-start`, `purchase-complete`, or `shopping-cart-page-view` events. + // This can only be set for `add-to-cart`, `purchase-complete`, or + // `shopping-cart-page-view` events. string cart_id = 8; // A transaction represents the entire purchase transaction. // - // Required for `purchase-complete` events. Optional for `checkout-start` - // events. Other event types should not set this field. Otherwise, an - // INVALID_ARGUMENT error is returned. + // Required for `purchase-complete` events. Other event types should not set + // this field. Otherwise, an INVALID_ARGUMENT error is returned. PurchaseTransaction purchase_transaction = 9; // The user's search query. @@ -135,8 +142,8 @@ message UserEvent { // The categories associated with a category page. // // To represent full path of category, use '>' sign to separate different - // hierarchies. If '>' is part of the category name, you should escape it with - // '\x3E'. + // hierarchies. If '>' is part of the category name, please replace it with + // other character(s). // // Category pages include special pages such as sales or promotions. For // instance, a special sale page may have the category hierarchy: @@ -149,37 +156,44 @@ message UserEvent { // User information. UserInfo user_info = 12; - // Complete url (window.location.href) of the user's current page. + // Complete URL (window.location.href) of the user's current page. + // // When using the client side event reporting with JavaScript pixel and Google // Tag Manager, this value is filled in automatically. Maximum length 5,000 // characters. string uri = 13; - // The referrer url of the current page. When using - // the client side event reporting with JavaScript pixel and Google Tag - // Manager, this value is filled in automatically. + // The referrer URL of the current page. + // + // When using the client side event reporting with JavaScript pixel and Google + // Tag Manager, this value is filled in automatically. string referrer_uri = 14; // A unique id of a web page view. + // // This should be kept the same for all user events triggered from the same // pageview. For example, an item detail page view could trigger multiple - // events as the user is browsing the page. - // The `pageViewId` property should be kept the same for all these events so - // that they can be grouped together properly. This `pageViewId` will be - // automatically generated if using the client side event reporting with - // JavaScript pixel and Google Tag Manager. + // events as the user is browsing the page. The `pageViewId` property should + // be kept the same for all these events so that they can be grouped together + // properly. + // + // When using the client side event reporting with JavaScript pixel and Google + // Tag Manager, this value is filled in automatically. string page_view_id = 15; } // Detailed product information associated with a user event. message ProductDetail { // Required. [Product][google.cloud.retail.v2.Product] information. - // Only [Product][id] field is used when ingesting an event, all other product - // fields are ignored as we will look them up from the catalog. + // + // Only [Product.id][google.cloud.retail.v2.Product.id] field is used when + // ingesting an event, all other product fields are ignored as we will look + // them up from the catalog. Product product = 1 [(google.api.field_behavior) = REQUIRED]; - // Quantity of the product associated with the user event. For - // example, this field will be 2 if two products are added to the shopping + // Quantity of the product associated with the user event. + // + // For example, this field will be 2 if two products are added to the shopping // cart for `purchase-complete` event. Required for `add-to-cart` and // `purchase-complete` event types. google.protobuf.Int32Value quantity = 2; @@ -190,30 +204,24 @@ message PurchaseTransaction { // The transaction ID with a length limit of 128 characters. string id = 1; - // Required. Total revenue or grand total associated with the transaction. - // This value include shipping, tax, or other adjustments to total revenue - // that you want to include as part of your revenue calculations. This field - // is not required if the event type is `refund`. + // Required. Total non-zero revenue or grand total associated with the + // transaction. This value include shipping, tax, or other adjustments to + // total revenue that you want to include as part of your revenue + // calculations. float revenue = 2 [(google.api.field_behavior) = REQUIRED]; // All the taxes associated with the transaction. float tax = 3; - // All the costs associated with the product. These can be - // manufacturing costs, shipping expenses not borne by the end user, or any - // other costs. - // - // Total product cost such that - // profit = revenue - tax + [Product][pricing][cost] - // If product_cost is not set, then - // profit = revenue - tax - [Product][pricing][cost]. + // All the costs associated with the products. These can be manufacturing + // costs, shipping expenses not borne by the end user, or any other costs, + // such that: // - // If [Product][pricing][cost] is not specified for one of the products, - // [Product][pricing][cost] based profit *cannot* be calculated for this - // Transaction. + // * Profit = [revenue][google.cloud.retail.v2.PurchaseTransaction.revenue] - + // [tax][google.cloud.retail.v2.PurchaseTransaction.tax] - + // [cost][google.cloud.retail.v2.PurchaseTransaction.cost] float cost = 4; - // Required. Currency code. Use three-character ISO-4217 code. This field - // is not required if the event type is `refund`. + // Required. Currency code. Use three-character ISO-4217 code. string currency_code = 5 [(google.api.field_behavior) = REQUIRED]; } diff --git a/third_party/googleapis/google/cloud/retail/v2/user_event_service.proto b/third_party/googleapis/google/cloud/retail/v2/user_event_service.proto index f70386bf5..4dbd1dc7f 100644 --- a/third_party/googleapis/google/cloud/retail/v2/user_event_service.proto +++ b/third_party/googleapis/google/cloud/retail/v2/user_event_service.proto @@ -51,8 +51,8 @@ service UserEventService { // Writes a single user event from the browser. This uses a GET request to // due to browser restriction of POST-ing to a 3rd party domain. // - // This method is used only by the Recommendations AI JavaScript pixel and - // Google Tag Manager. Users should not call this method directly. + // This method is used only by the Retail API JavaScript pixel and Google Tag + // Manager. Users should not call this method directly. rpc CollectUserEvent(CollectUserEventRequest) returns (google.api.HttpBody) { option (google.api.http) = { get: "/v2/{parent=projects/*/locations/*/catalogs/*}/userEvents:collect" @@ -94,13 +94,13 @@ service UserEventService { }; } - // Triggers a user event rejoin operation with latest catalog data. Events - // will not be annotated with detailed catalog information if catalog item is - // missing at the time the user event is ingested, and these events are stored - // as unjoined events with a limited usage on training and serving. This API - // can be used to trigger a 'join' operation on specified events with latest - // version of catalog items. It can also be used to correct events joined with - // wrong catalog items. + // Triggers a user event rejoin operation with latest product catalog. Events + // will not be annotated with detailed product information if product is + // missing from the catalog at the time the user event is ingested, and these + // events are stored as unjoined events with a limited usage on training and + // serving. This API can be used to trigger a 'join' operation on specified + // events with latest version of product catalog. It can also be used to + // correct events joined with wrong product catalog. rpc RejoinUserEvents(RejoinUserEventsRequest) returns (google.longrunning.Operation) { option (google.api.http) = { @@ -117,7 +117,7 @@ service UserEventService { // Request message for WriteUserEvent method. message WriteUserEventRequest { // Required. The parent catalog resource name, such as - // "projects/1234/locations/global/catalogs/default_catalog". + // `projects/1234/locations/global/catalogs/default_catalog`. string parent = 1 [(google.api.field_behavior) = REQUIRED]; // Required. User event to write. @@ -127,16 +127,16 @@ message WriteUserEventRequest { // Request message for CollectUserEvent method. message CollectUserEventRequest { // Required. The parent catalog name, such as - // "projects/1234/locations/global/catalogs/default_catalog". + // `projects/1234/locations/global/catalogs/default_catalog`. string parent = 1 [(google.api.field_behavior) = REQUIRED]; // Required. URL encoded UserEvent proto with a length limit of 2,000,000 // characters. string user_event = 2 [(google.api.field_behavior) = REQUIRED]; - // The url including cgi-parameters but excluding the hash fragment with a + // The URL including cgi-parameters but excluding the hash fragment with a // length limit of 5,000 characters. This is often more useful than the - // referer url, because many browsers only send the domain for 3rd party + // referer URL, because many browsers only send the domain for 3rd party // requests. string uri = 3; @@ -146,39 +146,41 @@ message CollectUserEventRequest { int64 ets = 4; } -// Request message for CatalogRejoin method. +// Request message for RejoinUserEvents method. message RejoinUserEventsRequest { - // The scope of events to be rejoined with latest catalog. If the rejoining - // aims at reducing number of unjoined events, set UserEventRejoinScope to - // UNJOINED_EVENTS. If the rejoining aims at correcting catalog information - // in joined_events, set UserEventRejoinScope to JOINED_EVENTS. If all events - // needs to be rejoined, set UserEventRejoinScope to + // The scope of user events to be rejoined with the latest product catalog. + // If the rejoining aims at reducing number of unjoined events, set + // UserEventRejoinScope to UNJOINED_EVENTS. + // If the rejoining aims at correcting product catalog information in joined + // events, set UserEventRejoinScope to JOINED_EVENTS. + // If all events needs to be rejoined, set UserEventRejoinScope to // USER_EVENT_REJOIN_SCOPE_UNSPECIFIED. enum UserEventRejoinScope { - // Rejoin catalogs with all events including both joined events and - // unjoined events. + // Rejoin all events with the latest product catalog, including both joined + // events and unjoined events. USER_EVENT_REJOIN_SCOPE_UNSPECIFIED = 0; - // Only rejoin catalogs with joined events. + // Only rejoin joined events with the latest product catalog. JOINED_EVENTS = 1; - // Only rejoin catalogs with unjoined events. + // Only rejoin unjoined events with the latest product catalog. UNJOINED_EVENTS = 2; } - // Required. Full resource name of user event, such as - // "projects/*/locations/*/catalogs/default_catalog". + // Required. The parent catalog resource name, such as + // `projects/1234/locations/global/catalogs/default_catalog`. string parent = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. The type of the catalog rejoin to define the scope and range of - // the user events to be rejoined with catalog items. - UserEventRejoinScope user_event_rejoin_scope = 2 - [(google.api.field_behavior) = REQUIRED]; + // The type of the user event rejoin to define the scope and range of the user + // events to be rejoined with the latest product catalog. Defaults to + // USER_EVENT_REJOIN_SCOPE_UNSPECIFIED if this field is not set, or set to an + // invalid integer value. + UserEventRejoinScope user_event_rejoin_scope = 2; } // Response message for RejoinUserEvents method. message RejoinUserEventsResponse { - // Number of user events that were joined with latest catalog items. + // Number of user events that were joined with latest product catalog. int64 rejoined_user_events_count = 1; } diff --git a/third_party/googleapis/google/cloud/retail/v2alpha/BUILD.bazel b/third_party/googleapis/google/cloud/retail/v2alpha/BUILD.bazel index 50973c536..cae874780 100644 --- a/third_party/googleapis/google/cloud/retail/v2alpha/BUILD.bazel +++ b/third_party/googleapis/google/cloud/retail/v2alpha/BUILD.bazel @@ -28,7 +28,6 @@ load( "java_gapic_test", "java_grpc_library", "java_proto_library", - "moved_proto_library", "nodejs_gapic_assembly_pkg", "nodejs_gapic_library", "php_gapic_assembly_pkg", @@ -38,8 +37,6 @@ load( "proto_library_with_info", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", "ruby_gapic_assembly_pkg", "ruby_gapic_library", "ruby_grpc_library", @@ -55,7 +52,6 @@ proto_library( "catalog.proto", "catalog_service.proto", "common.proto", - "export_config.proto", "import_config.proto", "prediction_service.proto", "product.proto", @@ -102,11 +98,8 @@ java_grpc_library( java_gapic_library( name = "retail_java_gapic", - src = ":retail_proto_with_info", - gapic_yaml = "retail_gapic.yaml", + srcs = [":retail_proto_with_info"], grpc_service_config = "retail_grpc_service_config.json", - package = "google.cloud.retail.v2alpha", - service_yaml = "retail_v2alpha.yaml", test_deps = [ ":retail_java_grpc", ], @@ -160,9 +153,9 @@ go_gapic_library( deps = [ ":retail_go_proto", "//google/api:httpbody_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", "@io_bazel_rules_go//proto/wkt:duration_go_proto", "@io_bazel_rules_go//proto/wkt:struct_go_proto", ], @@ -185,49 +178,10 @@ go_gapic_assembly_pkg( ], ) -moved_proto_library( - name = "retail_moved_proto", - srcs = [":retail_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:httpbody_proto", - "//google/api:resource_proto", - "//google/longrunning:operations_proto", - "//google/rpc:status_proto", - "@com_google_protobuf//:duration_proto", - "@com_google_protobuf//:empty_proto", - "@com_google_protobuf//:field_mask_proto", - "@com_google_protobuf//:struct_proto", - "@com_google_protobuf//:timestamp_proto", - "@com_google_protobuf//:wrappers_proto", - ], -) - -py_proto_library( - name = "retail_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":retail_moved_proto"], -) - -py_grpc_library( - name = "retail_py_grpc", - srcs = [":retail_moved_proto"], - deps = [":retail_py_proto"], -) - py_gapic_library( name = "retail_py_gapic", - src = ":retail_proto_with_info", - gapic_yaml = "retail_gapic.yaml", + srcs = [":retail_proto"], grpc_service_config = "retail_grpc_service_config.json", - package = "google.cloud.retail.v2alpha", - service_yaml = "retail_v2alpha.yaml", - deps = [ - ":retail_py_grpc", - ":retail_py_proto", - ], ) # Open Source Packages @@ -235,8 +189,6 @@ py_gapic_assembly_pkg( name = "retail-v2alpha-py", deps = [ ":retail_py_gapic", - ":retail_py_grpc", - ":retail_py_proto", ], ) @@ -277,8 +229,10 @@ php_gapic_assembly_pkg( nodejs_gapic_library( name = "retail_nodejs_gapic", src = ":retail_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "retail_grpc_service_config.json", package = "google.cloud.retail.v2alpha", + package_name = "@google-cloud/retail", service_yaml = "retail_v2alpha.yaml", deps = [], ) diff --git a/third_party/googleapis/google/cloud/retail/v2alpha/catalog.proto b/third_party/googleapis/google/cloud/retail/v2alpha/catalog.proto index e6c98c3ba..151522ef3 100644 --- a/third_party/googleapis/google/cloud/retail/v2alpha/catalog.proto +++ b/third_party/googleapis/google/cloud/retail/v2alpha/catalog.proto @@ -32,45 +32,58 @@ option ruby_package = "Google::Cloud::Retail::V2alpha"; // Configures what level the product should be uploaded with regards to // how users will be send events and how predictions will be made. message ProductLevelConfig { - // The level of a [Catalog][google.cloud.retail.v2alpha.Catalog] at which the - // [UserEvent][google.cloud.retail.v2alpha.UserEvent]s are uploaded. - // Acceptable values are: - // * `primary` - // * `variant` + // The type of [Product][google.cloud.retail.v2alpha.Product]s allowed to be + // ingested into the catalog. Acceptable values are: + // + // * `primary` (default): You can only ingest + // [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] + // [Product][google.cloud.retail.v2alpha.Product]s. This means + // [Product.primary_product_id][google.cloud.retail.v2alpha.Product.primary_product_id] + // can only be empty or set to the same value as + // [Product.id][google.cloud.retail.v2alpha.Product.id]. + // * `variant`: You can only ingest + // [Product.Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT] + // [Product][google.cloud.retail.v2alpha.Product]s. + // This means + // [Product.primary_product_id][google.cloud.retail.v2alpha.Product.primary_product_id] + // cannot be empty. // // If this field is set to an invalid value other than these, an // INVALID_ARGUMENT error is returned. // - // If this field is `primary` and - // [predict_product_level][google.cloud.retail.v2alpha.ProductLevelConfig.predict_product_level] - // is `variant`, an INVALID_ARGUMENT error is returned. + // If this field is `variant` and + // [merchant_center_product_id_field][google.cloud.retail.v2alpha.ProductLevelConfig.merchant_center_product_id_field] + // is `itemGroupId`, an INVALID_ARGUMENT error is returned. // - // See - // https://cloud.google.com/recommendations-ai/docs/catalog#catalog-levels - // for more details. - string event_product_level = 1; + // See [Using catalog + // levels](/retail/recommendations-ai/docs/catalog#catalog-levels) for more + // details. + string ingestion_product_type = 1; - // The level of a [Catalog][google.cloud.retail.v2alpha.Catalog] at which the - // [PredictionService.Predict][google.cloud.retail.v2alpha.PredictionService.Predict] - // is called. Acceptable values are: - // * `primary` - // * `variant` + // Which field of [Merchant Center + // Product](/bigquery-transfer/docs/merchant-center-products-schema) should be + // imported as [Product.id][google.cloud.retail.v2alpha.Product.id]. + // Acceptable values are: + // + // * `offerId` (default): Import `offerId` as the product ID. + // * `itemGroupId`: Import `itemGroupId` as the product ID. Notice that Retail + // API will choose one item from the ones with the same `itemGroupId`, and + // use it to represent the item group. // // If this field is set to an invalid value other than these, an // INVALID_ARGUMENT error is returned. // - // If this field is `variant` and - // [event_product_level][google.cloud.retail.v2alpha.ProductLevelConfig.event_product_level] - // is `primary`, an INVALID_ARGUMENT error is returned. + // If this field is `itemGroupId` and + // [ingestion_product_type][google.cloud.retail.v2alpha.ProductLevelConfig.ingestion_product_type] + // is `variant`, an INVALID_ARGUMENT error is returned. // - // See - // https://cloud.google.com/recommendations-ai/docs/catalog#catalog-levels - // for more details. - string predict_product_level = 2; + // See [Using catalog + // levels](/retail/recommendations-ai/docs/catalog#catalog-levels) for more + // details. + string merchant_center_product_id_field = 2; } // The catalog configuration. -// Next ID: 5. message Catalog { option (google.api.resource) = { type: "retail.googleapis.com/Catalog" diff --git a/third_party/googleapis/google/cloud/retail/v2alpha/catalog_service.proto b/third_party/googleapis/google/cloud/retail/v2alpha/catalog_service.proto index e9bc7e2b0..00bf9ffd9 100644 --- a/third_party/googleapis/google/cloud/retail/v2alpha/catalog_service.proto +++ b/third_party/googleapis/google/cloud/retail/v2alpha/catalog_service.proto @@ -21,7 +21,9 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/retail/v2alpha/catalog.proto"; +import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Retail.V2Alpha"; option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2alpha;retail"; @@ -69,7 +71,9 @@ message ListCatalogsRequest { // error is returned. string parent = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { type: "locations.googleapis.com/Location" } + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } ]; // Maximum number of [Catalog][google.cloud.retail.v2alpha.Catalog]s to diff --git a/third_party/googleapis/google/cloud/retail/v2alpha/common.proto b/third_party/googleapis/google/cloud/retail/v2alpha/common.proto index 38c28a47e..be62c883b 100644 --- a/third_party/googleapis/google/cloud/retail/v2alpha/common.proto +++ b/third_party/googleapis/google/cloud/retail/v2alpha/common.proto @@ -41,7 +41,7 @@ message CustomAttribute { // // Exactly one of [text][google.cloud.retail.v2alpha.CustomAttribute.text] or // [numbers][google.cloud.retail.v2alpha.CustomAttribute.numbers] should be - // set. Otherwise, a INVALID_ARGUMENT error is returned. + // set. Otherwise, an INVALID_ARGUMENT error is returned. repeated string text = 1; // The numerical values of this custom attribute. For example, `[2.3, 15.4]` @@ -52,7 +52,7 @@ message CustomAttribute { // // Exactly one of [text][google.cloud.retail.v2alpha.CustomAttribute.text] or // [numbers][google.cloud.retail.v2alpha.CustomAttribute.numbers] should be - // set. Otherwise, a INVALID_ARGUMENT error is returned. + // set. Otherwise, an INVALID_ARGUMENT error is returned. repeated double numbers = 2; } @@ -65,7 +65,7 @@ message Image { // // Google Merchant Center property // [image_link](https://support.google.com/merchants/answer/6324350). - // Schema.org property [Product.image](http://schema.org/image). + // Schema.org property [Product.image](https://schema.org/image). string uri = 1 [(google.api.field_behavior) = REQUIRED]; // Height of the image in number of pixels. @@ -84,7 +84,7 @@ message Image { // The price information of a [Product][google.cloud.retail.v2alpha.Product]. message PriceInfo { // The 3-letter currency code defined in [ISO - // 4217][https://www.iso.org/iso-4217-currency-codes.html]. + // 4217](https://www.iso.org/iso-4217-currency-codes.html). // // If this field is an unrecognizable currency code, an INVALID_ARGUMENT // error is returned. @@ -93,9 +93,8 @@ message PriceInfo { // Price of the product. // // Google Merchant Center property - // [price](https://support.google.com/merchants/answer/6324371). - // Schema.org property - // [Offer.priceSpecification](https://schema.org/priceSpecification). + // [price](https://support.google.com/merchants/answer/6324371). Schema.org + // property [Offer.priceSpecification](https://schema.org/priceSpecification). float price = 2; // Price of the product without any discount. If zero, by default set to be @@ -109,7 +108,7 @@ message PriceInfo { // [cost][google.cloud.retail.v2alpha.PriceInfo.cost] // // Google Merchant Center property - // [cost_of_goods_sold](https://support.google.com/merchants/answer/9017895) + // [cost_of_goods_sold](https://support.google.com/merchants/answer/9017895). float cost = 4; } @@ -133,7 +132,7 @@ message UserInfo { // [UserEventService.CollectUserEvent][google.cloud.retail.v2alpha.UserEventService.CollectUserEvent] // or if // [direct_user_request][google.cloud.retail.v2alpha.UserInfo.direct_user_request] - // is set. Otherwise, a FAILED_PRECONDITION error is returned. + // is set. string ip_address = 2; // User agent as included in the HTTP header. @@ -146,7 +145,7 @@ message UserInfo { // [UserEventService.CollectUserEvent][google.cloud.retail.v2alpha.UserEventService.CollectUserEvent] // or if // [direct_user_request][google.cloud.retail.v2alpha.UserInfo.direct_user_request] - // is set. Otherwise, a FAILED_PRECONDITION error is returned. + // is set. string user_agent = 3; // True if the request is made directly from the end user, in which case the @@ -158,6 +157,5 @@ message UserInfo { // // This should not be set when using the JavaScript tag in // [UserEventService.CollectUserEvent][google.cloud.retail.v2alpha.UserEventService.CollectUserEvent]. - // Otherwise, a FAILED_PRECONDITION error is returned. bool direct_user_request = 4; } diff --git a/third_party/googleapis/google/cloud/retail/v2alpha/export_config.proto b/third_party/googleapis/google/cloud/retail/v2alpha/export_config.proto deleted file mode 100644 index d547dffec..000000000 --- a/third_party/googleapis/google/cloud/retail/v2alpha/export_config.proto +++ /dev/null @@ -1,211 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.retail.v2alpha; - -import "google/api/annotations.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/timestamp.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Cloud.Retail.V2Alpha"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2alpha;retail"; -option java_multiple_files = true; -option java_outer_classname = "ExportConfigProto"; -option java_package = "com.google.cloud.retail.v2alpha"; -option objc_class_prefix = "RETAIL"; -option php_namespace = "Google\\Cloud\\Retail\\V2alpha"; -option ruby_package = "Google::Cloud::Retail::V2alpha"; - -// The output configuration setting. -message OutputConfig { - // The Google Cloud Storage output destination configuration. - message GcsDestination { - // Required. The output uri prefix for saving output data to json files. - // Some mapping examples are as follows: - // output_uri_prefix sample output(assuming the object is foo.json) - // ======================== ============================================= - // gs://bucket/ gs://bucket/foo.json - // gs://bucket/folder/ gs://bucket/folder/foo.json - // gs://bucket/folder/item_ gs://bucket/folder/item_foo.json - string output_uri_prefix = 1 [(google.api.field_behavior) = REQUIRED]; - } - - // The BigQuery output destination configuration. - message BigQueryDestination { - // The ID of a BigQuery Dataset. - string dataset_id = 1; - } - - // The configuration of destination for holding output data. - oneof destination { - // The Google Cloud Storage location where the output is to be written to. - GcsDestination gcs_destination = 1; - - // The BigQuery location where the output is to be written to. - BigQueryDestination bigquery_destination = 2; - } -} - -// Configuration of destination for Export related errors. -message ExportErrorsConfig { - // Required. Errors destination. - oneof destination { - // Google Cloud Storage path for import errors. This must be an empty, - // existing Cloud Storage bucket. Export errors will be written to a file in - // this bucket, one per line, as a JSON-encoded - // `google.rpc.Status` message. - string gcs_prefix = 1; - } -} - -// Request message for ExportProducts method. -message ExportProductsRequest { - // Required. - // "projects/1234/locations/global/catalogs/default_catalog/branches/default_branch" - string parent = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The desired output location of the data. - OutputConfig output_config = 2 [(google.api.field_behavior) = REQUIRED]; - - // Filtering expression to specify restrictions over - // returned products. This is a sequence of terms, where each term applies - // some kind of a restriction to the returned products. Use this expression to - // restrict results to a specific time range, tag, stock state or filter - // products by product type. - // eg: lastModifiedTime > "2012-04-23T18:25:43.511Z" - // lastModifiedTime<"2012-04-23T18:25:43.511Z" productType=primary - // - // We expect only 4 types of fields: - // - // * lastModifiedTime: this can be specified a maximum of 2 times, once - // with a - // less than operator and once with a greater than operator. The - // lastModifiedTime restrict should result in one contiguous valid last - // modified time range. - // - // * productType: supported values are 'primary' and 'variant'. Boolean - // operators `OR` and `NOT` are supported if the - // expression is enclosed in parentheses, and must be separated from the - // productType values by a space. - // - // * availability: supported values are IN_STOCK, OUT_OF_STOCK, - // PREORDER and BACKORDER. Boolean operators `OR` and `NOT` are - // supported if the - // expression is enclosed in parentheses, and must be separated from the - // availability values by a space. - // - // * Tag expressions. Restricts output to products that match all of the - // specified tags. Boolean operators `OR` and `NOT` are supported if the - // expression is enclosed in parentheses, and must be separated from the - // tag values by a space. `-"tagA"` is also supported and is equivalent - // to `NOT "tagA"`. Tag values must be double quoted UTF-8 encoded - // strings with a size limit of 1,000 characters. - // - // Some examples of valid filters expressions: - // - // * Example 1: lastModifiedTime > "2012-04-23T18:25:43.511Z" - // lastModifiedTime < "2012-04-23T18:30:43.511Z" - // * Example 2: lastModifiedTime > "2012-04-23T18:25:43.511Z" - // productType = "variant" - // * Example 3: tag=("Red" OR "Blue") tag="New-Arrival" - // tag=(NOT "promotional") - // productType = "primary" lastModifiedTime < - // "2018-04-23T18:30:43.511Z" - // * Example 4: lastModifiedTime > "2012-04-23T18:25:43.511Z" - // * Example 5: availability = (IN_STOCK OR BACKORDER) - string filter = 3; -} - -// Request message for ExportUserEvents method. -message ExportUserEventsRequest { - // Required. "projects/1234/locations/global/catalogs/default_catalog" - string parent = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The desired output location of the data. - OutputConfig output_config = 2 [(google.api.field_behavior) = REQUIRED]; - - // Filtering expression to specify restrictions over - // returned events. This is a sequence of terms, where each term applies some - // kind of a restriction to the returned user events. Use this expression to - // restrict results to a specific time range, or filter events by eventType. - // eg: eventTime > "2012-04-23T18:25:43.511Z" eventsMissingCatalogItems - // eventTime<"2012-04-23T18:25:43.511Z" eventType=search - // - // We expect only 3 types of fields: - // - // * eventTime: this can be specified a maximum of 2 times, once with a - // less than operator and once with a greater than operator. The - // eventTime restrict should result in one contiguous valid eventTime - // range. - // - // * eventType: Boolean operators `OR` and `NOT` are supported if the - // expression is enclosed in parentheses, and must be separated from the - // tag values by a space. - // - // * eventsMissingCatalogItems: specifying this will restrict results - // to events for which catalog items were not found in the catalog. The - // default behavior is to return only those events for which catalog - // items were found. - // - // Some examples of valid filters expressions: - // - // * Example 1: eventTime > "2012-04-23T18:25:43.511Z" - // eventTime < "2012-04-23T18:30:43.511Z" - // * Example 2: eventTime > "2012-04-23T18:25:43.511Z" - // eventType = detail-page-view - // * Example 3: eventsMissingCatalogItems - // eventType = (NOT search) eventTime < "2018-04-23T18:30:43.511Z" - // * Example 4: eventTime > "2012-04-23T18:25:43.511Z" - // * Example 5: eventType = (search OR impression) - // * Example 6: eventsMissingCatalogItems - string filter = 3; -} - -// Metadata related to the progress of the Export operation. This will be -// returned by the google.longrunning.Operation.metadata field. -message ExportMetadata { - // Operation create time. - google.protobuf.Timestamp create_time = 1; - - // Operation last update time. If the operation is done, this is also the - // finish time. - google.protobuf.Timestamp update_time = 2; -} - -// Response of the ExportProductsRequest. If the long running -// operation is done, then this message is returned by the -// google.longrunning.Operations.response field if the operation was successful. -message ExportProductsResponse { - // A sample of errors encountered while processing the request. - repeated google.rpc.Status error_samples = 1; - - // Echoes the destination for the complete errors in the request if set. - ExportErrorsConfig errors_config = 2; -} - -// Response of the ExportUserEventsRequest. If the long running -// operation was successful, then this message is returned by the -// google.longrunning.Operations.response field if the operation was successful. -message ExportUserEventsResponse { - // A sample of errors encountered while processing the request. - repeated google.rpc.Status error_samples = 1; - - // Echoes the destination for the complete errors if this field was set in - // the request. - ExportErrorsConfig errors_config = 2; -} diff --git a/third_party/googleapis/google/cloud/retail/v2alpha/import_config.proto b/third_party/googleapis/google/cloud/retail/v2alpha/import_config.proto index dab586344..dc3ffe925 100644 --- a/third_party/googleapis/google/cloud/retail/v2alpha/import_config.proto +++ b/third_party/googleapis/google/cloud/retail/v2alpha/import_config.proto @@ -18,7 +18,6 @@ package google.cloud.retail.v2alpha; import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; import "google/cloud/retail/v2alpha/product.proto"; import "google/cloud/retail/v2alpha/user_event.proto"; import "google/protobuf/field_mask.proto"; @@ -50,21 +49,18 @@ message GcsSource { // // Supported values for product imports: // - // 1: "product" using - // https://cloud.google.com/recommendations-ai/docs/upload-catalog#json - // (Default for products.import) - // - // 2: "product_merchant_center" using - // https://cloud.google.com/recommendations-ai/docs/upload-catalog#mc + // * `product` (default): One JSON + // [Product][google.cloud.retail.v2alpha.Product] per line. Each product must + // have a valid [Product.id][google.cloud.retail.v2alpha.Product.id]. + // * `product_merchant_center`: See [Importing catalog data from Merchant + // Center](/retail/recommendations-ai/docs/upload-catalog#mc). // // Supported values for user events imports: // - // 1: "user_event" using - // https://cloud.google.com/recommendations-ai/docs/manage-user-events#import - // (Default for userEvents.import) - // - // 2. "user_event_ga360" using - // https://support.google.com/analytics/answer/3437719?hl=en + // * `user_event` (default): One JSON + // [UserEvent][google.cloud.retail.v2alpha.UserEvent] per line. + // * `user_event_ga360`: Using + // https://support.google.com/analytics/answer/3437719?hl=en. string data_schema = 2; } @@ -90,30 +86,28 @@ message BigQuerySource { // The schema to use when parsing the data from the source. // - // Supported values for catalog imports: - // - // 1: "product" using - // https://cloud.google.com/recommendations-ai/docs/upload-catalog#json - // (Default for products.import) - // - // 2: "product_merchant_center" using - // https://cloud.google.com/recommendations-ai/docs/upload-catalog#mc + // Supported values for product imports: // - // Supported values for user event imports: + // * `product` (default): One JSON + // [Product][google.cloud.retail.v2alpha.Product] per line. Each product must + // have a valid [Product.id][google.cloud.retail.v2alpha.Product.id]. + // * `product_merchant_center`: See [Importing catalog data from Merchant + // Center](/retail/recommendations-ai/docs/upload-catalog#mc). // - // 1: "user_event" using - // https://cloud.google.com/recommendations-ai/docs/manage-user-events#import - // (Default for userEvents.import) + // Supported values for user events imports: // - // 2. "user_event_ga360" using - // https://support.google.com/analytics/answer/3437719?hl=en + // * `user_event` (default): One JSON + // [UserEvent][google.cloud.retail.v2alpha.UserEvent] per line. + // * `user_event_ga360`: Using + // https://support.google.com/analytics/answer/3437719?hl=en. string data_schema = 4; } // The inline source for the input config for ImportProducts method. message ProductInlineSource { - // Required. A list of products to update/create. Recommended max of 10k - // items. + // Required. A list of products to update/create. Each product must have a + // valid [Product.id][google.cloud.retail.v2alpha.Product.id]. Recommended max + // of 10k items. repeated Product products = 1 [(google.api.field_behavior) = REQUIRED]; } @@ -204,11 +198,6 @@ message UserEventInputConfig { // Metadata related to the progress of the Import operation. This will be // returned by the google.longrunning.Operation.metadata field. message ImportMetadata { - option (google.api.resource) = { - type: "retail.googleapis.com/Operation" - pattern: "operations/{operation}" - }; - // Operation create time. google.protobuf.Timestamp create_time = 1; diff --git a/third_party/googleapis/google/cloud/retail/v2alpha/prediction_service.proto b/third_party/googleapis/google/cloud/retail/v2alpha/prediction_service.proto index 7930a858b..2b17a0739 100644 --- a/third_party/googleapis/google/cloud/retail/v2alpha/prediction_service.proto +++ b/third_party/googleapis/google/cloud/retail/v2alpha/prediction_service.proto @@ -76,10 +76,7 @@ message PredictRequest { // Recently viewed. // // The full list of available placements can be seen at - // - // https: - // //console.cloud.google.com/recommendatio - // // n/datafeeds/default_catalog/dashboard + // https://console.cloud.google.com/recommendation/catalogs/default_catalog/placements string placement = 1 [(google.api.field_behavior) = REQUIRED]; // Required. Context about the user, what they are looking at and what action diff --git a/third_party/googleapis/google/cloud/retail/v2alpha/product.proto b/third_party/googleapis/google/cloud/retail/v2alpha/product.proto index 0cf3ea7b0..c1ed3198c 100644 --- a/third_party/googleapis/google/cloud/retail/v2alpha/product.proto +++ b/third_party/googleapis/google/cloud/retail/v2alpha/product.proto @@ -45,6 +45,41 @@ message Product { pattern: "projects/{project}/locations/{location}/catalogs/{catalog}/branches/{branch}/products/{product}" }; + // The type of this product. + enum Type { + // Default value. Default to + // [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] if + // unset. + TYPE_UNSPECIFIED = 0; + + // The primary type. + // + // As the primary unit for predicting, indexing and search serving, a + // [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] + // [Product][google.cloud.retail.v2alpha.Product] is grouped with multiple + // [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT] + // [Product][google.cloud.retail.v2alpha.Product]s. + PRIMARY = 1; + + // The variant type. + // + // [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT] + // [Product][google.cloud.retail.v2alpha.Product]s usually share some common + // attributes on the same + // [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] + // [Product][google.cloud.retail.v2alpha.Product]s, but they have variant + // attributes like different colors, sizes and prices, etc. + VARIANT = 2; + + // The collection type. Collection products are bundled + // [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] + // [Product][google.cloud.retail.v2alpha.Product]s or + // [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT] + // [Product][google.cloud.retail.v2alpha.Product]s that are sold together, + // such as a jewelry set with necklaces, earrings and rings, etc. + COLLECTION = 3; + } + // Product availability. If this field is unspecified, the product is // assumed to be in stock. enum Availability { @@ -67,7 +102,6 @@ message Product { } // Immutable. Full resource name of the product, such as - // // "projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id". // // The branch ID must be "default_branch". @@ -77,54 +111,51 @@ message Product { // is the final component of [name][google.cloud.retail.v2alpha.Product.name]. // For example, this field is "id_1", if // [name][google.cloud.retail.v2alpha.Product.name] is - // // "projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/id_1". // // This field must be a UTF-8 encoded string with a length limit of 128 // characters. Otherwise, an INVALID_ARGUMENT error is returned. // // Google Merchant Center property - // [id](https://support.google.com/merchants/answer/6324405). - // schema.org Property [Product.sku](https://schema.org/sku). + // [id](https://support.google.com/merchants/answer/6324405). Schema.org + // Property [Product.sku](https://schema.org/sku). string id = 2 [(google.api.field_behavior) = IMMUTABLE]; + // Immutable. The type of the product. This field is output-only. + Type type = 3 [(google.api.field_behavior) = IMMUTABLE]; + // Variant group identifier. Must be an // [id][google.cloud.retail.v2alpha.Product.id], with the same parent branch // with this product. Otherwise, an error is thrown. // - // The primary product may be empty during the creation, but cannot be updated - // from a non-empty string to an empty one. Otherwise an INVALID_ARGUMENT - // error is returned. + // For [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] + // [Product][google.cloud.retail.v2alpha.Product]s, this field can only be + // empty or set to the same value as + // [id][google.cloud.retail.v2alpha.Product.id]. // - // Should only be set for - // [Type.VARIANT][google.cloud.retail.v2alpha.Product.Type.VARIANT] - // [Product][google.cloud.retail.v2alpha.Product]s. A maximum of 2000 products - // are allowed to share the same + // For VARIANT [Product][google.cloud.retail.v2alpha.Product]s, this field + // cannot be empty. A maximum of 2,000 products are allowed to share the same // [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] // [Product][google.cloud.retail.v2alpha.Product]. Otherwise, an // INVALID_ARGUMENT error is returned. // // Google Merchant Center Property // [item_group_id](https://support.google.com/merchants/answer/6324507). - // schema.org Property + // Schema.org Property // [Product.inProductGroupWithID](https://schema.org/inProductGroupWithID). // // This field must be enabled before it can be used. [Learn // more](/recommendations-ai/docs/catalog#item-group-id). string primary_product_id = 4; - // Required. Product categories. This field is repeated for supporting one - // product belonging to several parallel categories. Each value is either the - // full path of the category, or the [category + // Product categories. This field is repeated for supporting one product + // belonging to several parallel categories. Strongly recommended using the + // full path for better search / recommendation quality. // - // ID](https: - // //www.google.com/basepages/producttype/taxonomy-with-ids.en-US.txt). - // Strongly recommended using the full path for better search / recommendation - // quality. // // To represent full path of category, use '>' sign to separate different - // hierarchies. If '>' is part of the category name, you should escape it with - // '\x3E'. + // hierarchies. If '>' is part of the category name, please replace it with + // other character(s). // // For example, if a shoes product belongs to both // ["Shoes & Accessories" -> "Shoes"] and @@ -136,17 +167,23 @@ message Product { // "Sports & Fitness > Athletic Clothing > Shoes" // ] // + // Must be set for + // [Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] + // [Product][google.cloud.retail.v2alpha.Product] otherwise an + // INVALID_ARGUMENT error is returned. + // // At most 250 values are allowed per // [Product][google.cloud.retail.v2alpha.Product]. Empty values are not // allowed. Each value must be a UTF-8 encoded string with a length limit of // 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. // // Google Merchant Center property + // [google_product_category][mc_google_product_category]. Schema.org property + // [Product.category] (https://schema.org/category). // - // [google_product_category](https: - // //support.google.com/merchants/answer/6324436). - // Schema.org property [Product.category] (https://schema.org/category). - repeated string categories = 7 [(google.api.field_behavior) = REQUIRED]; + // [mc_google_product_category]: + // https://support.google.com/merchants/answer/6324436 + repeated string categories = 7; // Required. Product title. // @@ -168,19 +205,6 @@ message Product { // schema.org property [Product.description](https://schema.org/description). string description = 10; - // Language of the title/description and other string attributes. Use language - // tags defined by [BCP 47][https://www.rfc-editor.org/rfc/bcp/bcp47.txt]. - // - // The model automatically detects the text language. The - // [Product][google.cloud.retail.v2alpha.Product] can include text in - // different languages, but duplicating - // [Product][google.cloud.retail.v2alpha.Product]s to provide text in multiple - // languages can result in degraded model performance. - // - // Currently, recommendation supports all language codes, while the only - // supported language code for search is "en-US". - string language_code = 11; - // Highly encouraged. Extra product attributes to be included. For example, // for products, this could include the store name, vendor, style, color, etc. // These are very strong signals for recommendation model, thus we highly @@ -193,12 +217,15 @@ message Product { // country of a customer. Numerical features. Some examples would be the // height/weight of a product, or age of a customer. // - // For example: { "vendor": {"text": ["vendor123", "vendor456"]}, + // For example: `{ "vendor": {"text": ["vendor123", "vendor456"]}, // "lengths_cm": {"numbers":[2.3, 15.4]}, "heights_cm": {"numbers":[8.1, 6.4]} - // }. + // }`. // // A maximum of 150 attributes are allowed. Otherwise, an INVALID_ARGUMENT // error is returned. + // + // The key must be a UTF-8 encoded string with a length limit of 5,000 + // characters. Otherwise, an INVALID_ARGUMENT error is returned. map attributes = 12; // Custom tags associated with the product. @@ -227,15 +254,12 @@ message Product { google.protobuf.Timestamp available_time = 18; // The online availability of the - // [Product][google.cloud.retail.v2alpha.Product], which is parallel to and - // independent of - // [fulfillment_info][google.cloud.retail.v2alpha.Product.fulfillment_info]. - // Default is + // [Product][google.cloud.retail.v2alpha.Product]. Default to // [Availability.IN_STOCK][google.cloud.retail.v2alpha.Product.Availability.IN_STOCK]. // // Google Merchant Center Property // [availability](https://support.google.com/merchants/answer/6324448). - // schema.org Property [Offer.availability](https://schema.org/availability). + // Schema.org Property [Offer.availability](https://schema.org/availability). Availability availability = 19; // The available quantity of the item. @@ -247,55 +271,16 @@ message Product { // characters. Otherwise, an INVALID_ARGUMENT error is returned. // // Google Merchant Center property - // [link](https://support.google.com/merchants/answer/6324416). - // Schema.org property [Offer.url](https://schema.org/url). + // [link](https://support.google.com/merchants/answer/6324416). Schema.org + // property [Offer.url](https://schema.org/url). string uri = 22; // Product images for the product. // + // A maximum of 300 images are allowed. + // // Google Merchant Center property // [image_link](https://support.google.com/merchants/answer/6324350). // Schema.org property [Product.image](https://schema.org/image). repeated Image images = 23; - - // The material of the product. For example, "leather", "wooden". - // - // A maximum of 5 values are allowed. Each value must be a UTF-8 encoded - // string with a length limit of 128 characters. Otherwise, an - // INVALID_ARGUMENT error is returned. - // - // Google Merchant Center property - // [material](https://support.google.com/merchants/answer/6324410). Schema.org - // property [Product.material](https://schema.org/material). - repeated string materials = 27; - - // Indicates which fields in the - // [variants][google.cloud.retail.v2alpha.Product.variants] are retrievable in - // [Search][]. If not set or empty, the following fields are returned: - // - // * [name][google.cloud.retail.v2alpha.Product.name] - // * [availability][google.cloud.retail.v2alpha.Product.availability] - // * [color_info][google.cloud.retail.v2alpha.Product.color_info] - // - // Supported fields: - // - // * [name][google.cloud.retail.v2alpha.Product.name] - // * [availability][google.cloud.retail.v2alpha.Product.availability] - // * [color_info][google.cloud.retail.v2alpha.Product.color_info] - // * [gtin][google.cloud.retail.v2alpha.Product.gtin] - // * [price_info][google.cloud.retail.v2alpha.Product.price_info] - // * [sizes][google.cloud.retail.v2alpha.Product.sizes] - // * [materials][google.cloud.retail.v2alpha.Product.materials] - // * [patterns][google.cloud.retail.v2alpha.Product.patterns] - // * [conditions][google.cloud.retail.v2alpha.Product.conditions] - // * [images][google.cloud.retail.v2alpha.Product.images] - // * [attributes][google.cloud.retail.v2alpha.Product.attributes] - // - // To mark custom attributes as retrievable, include paths of the form - // "attributes.key" where "key" is the key of a custom attribute, as - // specified in [attributes][google.cloud.retail.v2alpha.Product.attributes]. - // - // Maximum number of paths is 10. Otherwise, an INVALID_ARGUMENT error is - // returned. - google.protobuf.FieldMask variant_retrievable_fields = 30; } diff --git a/third_party/googleapis/google/cloud/retail/v2alpha/product_service.proto b/third_party/googleapis/google/cloud/retail/v2alpha/product_service.proto index 4eb041970..1259b32b3 100644 --- a/third_party/googleapis/google/cloud/retail/v2alpha/product_service.proto +++ b/third_party/googleapis/google/cloud/retail/v2alpha/product_service.proto @@ -20,7 +20,6 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -import "google/cloud/retail/v2alpha/export_config.proto"; import "google/cloud/retail/v2alpha/import_config.proto"; import "google/cloud/retail/v2alpha/product.proto"; import "google/cloud/retail/v2alpha/purge_config.proto"; @@ -61,8 +60,7 @@ service ProductService { option (google.api.method_signature) = "name"; } - // Updates a [Product][google.cloud.retail.v2alpha.Product]. Non-existing - // items will be created. + // Updates a [Product][google.cloud.retail.v2alpha.Product]. rpc UpdateProduct(UpdateProductRequest) returns (Product) { option (google.api.http) = { patch: "/v2alpha/{product.name=projects/*/locations/*/catalogs/*/branches/*/products/**}" @@ -79,25 +77,6 @@ service ProductService { option (google.api.method_signature) = "name"; } - // Permanently deletes all [Product][google.cloud.retail.v2alpha.Product]s - // under a branch. - // - // Depending on the number of [Product][google.cloud.retail.v2alpha.Product]s, - // this operation could take hours to complete. To get a sample of - // [Product][google.cloud.retail.v2alpha.Product]s that would be deleted, set - // [PurgeProductsRequest.force][] to false. - rpc PurgeProducts(PurgeProductsRequest) - returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v2alpha/{parent=projects/*/locations/*/catalogs/*/branches/*}/products:purge" - body: "*" - }; - option (google.longrunning.operation_info) = { - response_type: "google.cloud.retail.v2alpha.PurgeProductsResponse" - metadata_type: "google.cloud.retail.v2alpha.PurgeMetadata" - }; - } - // Bulk import of multiple [Product][google.cloud.retail.v2alpha.Product]s. // // Request processing may be synchronous. No partial updating is supported. @@ -116,25 +95,11 @@ service ProductService { metadata_type: "google.cloud.retail.v2alpha.ImportMetadata" }; } - - // Export of multiple [Product][google.cloud.retail.v2alpha.Product]s. - rpc ExportProducts(ExportProductsRequest) - returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v2alpha/{parent=projects/*/locations/*/catalogs/*/branches/*}/products:export" - body: "*" - }; - option (google.longrunning.operation_info) = { - response_type: "google.cloud.retail.v2alpha.ExportProductsResponse" - metadata_type: "google.cloud.retail.v2alpha.ExportMetadata" - }; - } } // Request message for [CreateProduct][] method. message CreateProductRequest { // Required. The parent catalog resource name, such as - // // "projects/*/locations/global/catalogs/default_catalog/branches/default_branch". string parent = 1 [ (google.api.field_behavior) = REQUIRED, @@ -166,7 +131,6 @@ message CreateProductRequest { message GetProductRequest { // Required. Full resource name of // [Product][google.cloud.retail.v2alpha.Product], such as - // // "projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/some_product_id". // // If the caller does not have permission to access the @@ -207,7 +171,6 @@ message UpdateProductRequest { message DeleteProductRequest { // Required. Full resource name of // [Product][google.cloud.retail.v2alpha.Product], such as - // // "projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/some_product_id". // // If the caller does not have permission to delete the @@ -216,15 +179,6 @@ message DeleteProductRequest { // // If the [Product][google.cloud.retail.v2alpha.Product] to delete does not // exist, a NOT_FOUND error is returned. - // - // The [Product][google.cloud.retail.v2alpha.Product] to delete can neither be - // a non-empty - // [Product.Type.COLLECTION][google.cloud.retail.v2alpha.Product.Type.COLLECTION] - // [Product][google.cloud.retail.v2alpha.Product] nor a - // [Product.Type.PRIMARY][google.cloud.retail.v2alpha.Product.Type.PRIMARY] - // [Product][google.cloud.retail.v2alpha.Product] with more than one - // [variants][google.cloud.retail.v2alpha.Product.Type.VARIANT]. Otherwise, a - // FAILED_PRECONDITION error is returned. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { type: "retail.googleapis.com/Product" } diff --git a/third_party/googleapis/google/cloud/retail/v2alpha/purge_config.proto b/third_party/googleapis/google/cloud/retail/v2alpha/purge_config.proto index 5084abdd9..d4a4d85e7 100644 --- a/third_party/googleapis/google/cloud/retail/v2alpha/purge_config.proto +++ b/third_party/googleapis/google/cloud/retail/v2alpha/purge_config.proto @@ -32,26 +32,6 @@ option ruby_package = "Google::Cloud::Retail::V2alpha"; // This will be returned by the google.longrunning.Operation.metadata field. message PurgeMetadata {} -// Request message for PurgeProducts method. -message PurgeProductsRequest { - // Required. The resource name of the catalog under which the products are - // created. The format is - // "projects/${projectId}/locations/global/catalogs/${catalogId}" - string parent = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. Filter matching the products to be purged. Only supported value - // at the moment is "*" (all items). - string filter = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Response of the PurgeProductsRequest. If the long running operation is -// successfully done, then this message is returned by the -// google.longrunning.Operations.response field. -message PurgeProductsResponse { - // The total count of products purged as a result of the operation. - int64 purged_count = 1; -} - // Request message for PurgeUserEvents method. message PurgeUserEventsRequest { // Required. The resource name of the catalog under which the events are @@ -63,11 +43,13 @@ message PurgeUserEventsRequest { // length limit of 5,000 characters. Empty string filter is not allowed. The // eligible fields for filtering are: // - // * `eventType`: UserEvent.eventType field of type string. + // * `eventType`: Double quoted + // [UserEvent.event_type][google.cloud.retail.v2alpha.UserEvent.event_type] + // string. // * `eventTime`: in ISO 8601 "zulu" format. - // * `visitorId`: field of type string. Specifying this will delete all + // * `visitorId`: Double quoted string. Specifying this will delete all // events associated with a visitor. - // * `userId`: field of type string. Specifying this will delete all events + // * `userId`: Double quoted string. Specifying this will delete all events // associated with a user. // // Examples: @@ -82,6 +64,11 @@ message PurgeUserEventsRequest { // // The filtering fields are assumed to have an implicit AND. string filter = 2 [(google.api.field_behavior) = REQUIRED]; + + // Actually perform the purge. + // If `force` is set to false, the method will return the expected purge count + // without deleting any user events. + bool force = 3; } // Response of the PurgeUserEventsRequest. If the long running operation is diff --git a/third_party/googleapis/google/cloud/retail/v2alpha/retail_gapic.yaml b/third_party/googleapis/google/cloud/retail/v2alpha/retail_gapic.yaml index 8ac01056e..1156cce05 100644 --- a/third_party/googleapis/google/cloud/retail/v2alpha/retail_gapic.yaml +++ b/third_party/googleapis/google/cloud/retail/v2alpha/retail_gapic.yaml @@ -1,8 +1,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 language_settings: - java: - package_name: com.google.cloud.retail.v2alpha python: package_name: google.cloud.retail_v2alpha.gapic go: diff --git a/third_party/googleapis/google/cloud/retail/v2alpha/retail_v2alpha.yaml b/third_party/googleapis/google/cloud/retail/v2alpha/retail_v2alpha.yaml index 9f23831cb..e7b7b0d66 100644 --- a/third_party/googleapis/google/cloud/retail/v2alpha/retail_v2alpha.yaml +++ b/third_party/googleapis/google/cloud/retail/v2alpha/retail_v2alpha.yaml @@ -1,7 +1,7 @@ type: google.api.Service config_version: 3 name: retail.googleapis.com -title: Cloud Retail Solution +title: Cloud Retail apis: - name: google.cloud.retail.v2alpha.CatalogService @@ -10,10 +10,6 @@ apis: - name: google.cloud.retail.v2alpha.UserEventService types: -- name: google.cloud.retail.v2alpha.ExportMetadata -- name: google.cloud.retail.v2alpha.ExportProductsResponse -- name: google.cloud.retail.v2alpha.ExportErrorsConfig -- name: google.cloud.retail.v2alpha.ExportUserEventsResponse - name: google.cloud.retail.v2alpha.ImportErrorsConfig - name: google.cloud.retail.v2alpha.ImportMetadata - name: google.cloud.retail.v2alpha.ImportProductsResponse @@ -24,7 +20,10 @@ types: - name: google.cloud.retail.v2alpha.RejoinUserEventsResponse documentation: - summary: TBD + summary: |- + Cloud Retail service enables customers to build end-to-end personalized + recommendation systems without requiring a high level of expertise in + machine learning, recommendation system, or Google Cloud. backend: rules: diff --git a/third_party/googleapis/google/cloud/retail/v2alpha/user_event.proto b/third_party/googleapis/google/cloud/retail/v2alpha/user_event.proto index 403bf40a3..bf3a6b6fd 100644 --- a/third_party/googleapis/google/cloud/retail/v2alpha/user_event.proto +++ b/third_party/googleapis/google/cloud/retail/v2alpha/user_event.proto @@ -32,25 +32,26 @@ option objc_class_prefix = "RETAIL"; option php_namespace = "Google\\Cloud\\Retail\\V2alpha"; option ruby_package = "Google::Cloud::Retail::V2alpha"; -// UserEvent captures all metadata information recommendation engine needs to -// know about how end users interact with customers' website. +// UserEvent captures all metadata information Retail API needs to know about +// how end users interact with customers' website. message UserEvent { // Required. User event type. Allowed values are: // - // * `add-to-cart` Products being added to cart. - // * `category-page-view` Special pages such as sale or promotion pages + // * `add-to-cart`: Products being added to cart. + // * `category-page-view`: Special pages such as sale or promotion pages // viewed. - // * `detail-page-view` Products detail page viewed. - // * `home-page-view` Homepage viewed. - // * `purchase-complete` User finishing a purchase. - // * `search` - // * `shopping-cart-page-view` User viewing a shopping cart. + // * `detail-page-view`: Products detail page viewed. + // * `home-page-view`: Homepage viewed. + // * `purchase-complete`: User finishing a purchase. + // * `search`: Product search. + // * `shopping-cart-page-view`: User viewing a shopping cart. string event_type = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. A unique identifier for tracking visitors. For example, this - // could be implemented with a http cookie, which should be able to uniquely - // identify a visitor on a single device. This unique identifier should not - // change if the visitor log in/out of the website. + // Required. A unique identifier for tracking visitors. + // + // For example, this could be implemented with an HTTP cookie, which should be + // able to uniquely identify a visitor on a single device. This unique + // identifier should not change if the visitor log in/out of the website. // // The field must be a UTF-8 encoded string with a length limit of 128 // characters. Otherwise, an INVALID_ARGUMENT error is returned. @@ -61,10 +62,10 @@ message UserEvent { // method. Timestamp of when the user event happened. google.protobuf.Timestamp event_time = 3; - // A list of identifiers for the independent experiment groups - // this user event belongs to. This is used to distinguish between user events - // associated with different experiment setups (e.g. using Recommendations AI, - // using different recommendation models). + // A list of identifiers for the independent experiment groups this user event + // belongs to. This is used to distinguish between user events associated with + // different experiment setups (e.g. using Retail API, using different + // recommendation models). repeated string experiment_ids = 4; // Highly recommended for user events that are the result of @@ -73,15 +74,19 @@ message UserEvent { // performance. // // The value must be a valid - // [PredictResponse.attribute_token][] for user events that are the result of + // [PredictResponse.attribution_token][google.cloud.retail.v2alpha.PredictResponse.attribution_token] + // for user events that are the result of // [PredictionService.Predict][google.cloud.retail.v2alpha.PredictionService.Predict]. // // This token enables us to accurately attribute page view or purchase back to // the event and the particular predict response containing this // clicked/purchased product. If user clicks on product K in the - // recommendation results, pass [PredictResponse.attribute_token][] as a url - // parameter to product K's page. When recording events on product K's page, - // log the [PredictResponse.attribute_token][] to this field. + // recommendation results, pass + // [PredictResponse.attribution_token][google.cloud.retail.v2alpha.PredictResponse.attribution_token] + // as a URL parameter to product K's page. When recording events on product + // K's page, log the + // [PredictResponse.attribution_token][google.cloud.retail.v2alpha.PredictResponse.attribution_token] + // to this field. string attribution_token = 5; // The main product details related to the event. @@ -95,7 +100,7 @@ message UserEvent { // In a `search` event, this field represents the products returned to the end // user on the current page (the end user may have not finished broswing the // whole page yet). When a new page is returned to the end user, after - // pagination/filtering/ordering even for the same query, a new SEARCH event + // pagination/filtering/ordering even for the same query, a new `search` event // with different // [product_details][google.cloud.retail.v2alpha.UserEvent.product_details] is // desired. The end user may have not finished broswing the whole page yet. @@ -103,6 +108,9 @@ message UserEvent { // Extra user event features to include in the recommendation model. // + // The key must be a UTF-8 encoded string with a length limit of 5,000 + // characters. Otherwise, an INVALID_ARGUMENT error is returned. + // // For product recommendation, an example of extra user information is // traffic_channel, i.e. how user arrives at the site. Users can arrive // at the site by coming to the site directly, or coming through Google @@ -112,15 +120,14 @@ message UserEvent { // The id or name of the associated shopping cart. This id is used // to associate multiple items added or present in the cart before purchase. // - // This can only be set for `add-to-cart`, `remove-from-cart`, - // `checkout-start`, `purchase-complete`, or `shopping-cart-page-view` events. + // This can only be set for `add-to-cart`, `purchase-complete`, or + // `shopping-cart-page-view` events. string cart_id = 8; // A transaction represents the entire purchase transaction. // - // Required for `purchase-complete` events. Optional for `checkout-start` - // events. Other event types should not set this field. Otherwise, an - // INVALID_ARGUMENT error is returned. + // Required for `purchase-complete` events. Other event types should not set + // this field. Otherwise, an INVALID_ARGUMENT error is returned. PurchaseTransaction purchase_transaction = 9; // The user's search query. @@ -135,8 +142,8 @@ message UserEvent { // The categories associated with a category page. // // To represent full path of category, use '>' sign to separate different - // hierarchies. If '>' is part of the category name, you should escape it with - // '\x3E'. + // hierarchies. If '>' is part of the category name, please replace it with + // other character(s). // // Category pages include special pages such as sales or promotions. For // instance, a special sale page may have the category hierarchy: @@ -149,37 +156,44 @@ message UserEvent { // User information. UserInfo user_info = 12; - // Complete url (window.location.href) of the user's current page. + // Complete URL (window.location.href) of the user's current page. + // // When using the client side event reporting with JavaScript pixel and Google // Tag Manager, this value is filled in automatically. Maximum length 5,000 // characters. string uri = 13; - // The referrer url of the current page. When using - // the client side event reporting with JavaScript pixel and Google Tag - // Manager, this value is filled in automatically. + // The referrer URL of the current page. + // + // When using the client side event reporting with JavaScript pixel and Google + // Tag Manager, this value is filled in automatically. string referrer_uri = 14; // A unique id of a web page view. + // // This should be kept the same for all user events triggered from the same // pageview. For example, an item detail page view could trigger multiple - // events as the user is browsing the page. - // The `pageViewId` property should be kept the same for all these events so - // that they can be grouped together properly. This `pageViewId` will be - // automatically generated if using the client side event reporting with - // JavaScript pixel and Google Tag Manager. + // events as the user is browsing the page. The `pageViewId` property should + // be kept the same for all these events so that they can be grouped together + // properly. + // + // When using the client side event reporting with JavaScript pixel and Google + // Tag Manager, this value is filled in automatically. string page_view_id = 15; } // Detailed product information associated with a user event. message ProductDetail { // Required. [Product][google.cloud.retail.v2alpha.Product] information. - // Only [Product][id] field is used when ingesting an event, all other product - // fields are ignored as we will look them up from the catalog. + // + // Only [Product.id][google.cloud.retail.v2alpha.Product.id] field is used + // when ingesting an event, all other product fields are ignored as we will + // look them up from the catalog. Product product = 1 [(google.api.field_behavior) = REQUIRED]; - // Quantity of the product associated with the user event. For - // example, this field will be 2 if two products are added to the shopping + // Quantity of the product associated with the user event. + // + // For example, this field will be 2 if two products are added to the shopping // cart for `purchase-complete` event. Required for `add-to-cart` and // `purchase-complete` event types. google.protobuf.Int32Value quantity = 2; @@ -190,30 +204,25 @@ message PurchaseTransaction { // The transaction ID with a length limit of 128 characters. string id = 1; - // Required. Total revenue or grand total associated with the transaction. - // This value include shipping, tax, or other adjustments to total revenue - // that you want to include as part of your revenue calculations. This field - // is not required if the event type is `refund`. + // Required. Total non-zero revenue or grand total associated with the + // transaction. This value include shipping, tax, or other adjustments to + // total revenue that you want to include as part of your revenue + // calculations. float revenue = 2 [(google.api.field_behavior) = REQUIRED]; // All the taxes associated with the transaction. float tax = 3; - // All the costs associated with the product. These can be - // manufacturing costs, shipping expenses not borne by the end user, or any - // other costs. - // - // Total product cost such that - // profit = revenue - tax + [Product][pricing][cost] - // If product_cost is not set, then - // profit = revenue - tax - [Product][pricing][cost]. + // All the costs associated with the products. These can be manufacturing + // costs, shipping expenses not borne by the end user, or any other costs, + // such that: // - // If [Product][pricing][cost] is not specified for one of the products, - // [Product][pricing][cost] based profit *cannot* be calculated for this - // Transaction. + // * Profit = + // [revenue][google.cloud.retail.v2alpha.PurchaseTransaction.revenue] - + // [tax][google.cloud.retail.v2alpha.PurchaseTransaction.tax] - + // [cost][google.cloud.retail.v2alpha.PurchaseTransaction.cost] float cost = 4; - // Required. Currency code. Use three-character ISO-4217 code. This field - // is not required if the event type is `refund`. + // Required. Currency code. Use three-character ISO-4217 code. string currency_code = 5 [(google.api.field_behavior) = REQUIRED]; } diff --git a/third_party/googleapis/google/cloud/retail/v2alpha/user_event_service.proto b/third_party/googleapis/google/cloud/retail/v2alpha/user_event_service.proto index b694f3e32..aa66b0a74 100644 --- a/third_party/googleapis/google/cloud/retail/v2alpha/user_event_service.proto +++ b/third_party/googleapis/google/cloud/retail/v2alpha/user_event_service.proto @@ -20,7 +20,6 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/httpbody.proto"; -import "google/cloud/retail/v2alpha/export_config.proto"; import "google/cloud/retail/v2alpha/import_config.proto"; import "google/cloud/retail/v2alpha/purge_config.proto"; import "google/cloud/retail/v2alpha/user_event.proto"; @@ -52,8 +51,8 @@ service UserEventService { // Writes a single user event from the browser. This uses a GET request to // due to browser restriction of POST-ing to a 3rd party domain. // - // This method is used only by the Recommendations AI JavaScript pixel and - // Google Tag Manager. Users should not call this method directly. + // This method is used only by the Retail API JavaScript pixel and Google Tag + // Manager. Users should not call this method directly. rpc CollectUserEvent(CollectUserEventRequest) returns (google.api.HttpBody) { option (google.api.http) = { get: "/v2alpha/{parent=projects/*/locations/*/catalogs/*}/userEvents:collect" @@ -95,29 +94,13 @@ service UserEventService { }; } - // Export of user events. - // - // Operation.response is of type ExportResponse. - // Operation.metadata is of type ExportMetadata. - rpc ExportUserEvents(ExportUserEventsRequest) - returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v2alpha/{parent=projects/*/locations/*/catalogs/*}/userEvents:export" - body: "*" - }; - option (google.longrunning.operation_info) = { - response_type: "google.cloud.retail.v2alpha.ExportUserEventsResponse" - metadata_type: "google.cloud.retail.v2alpha.ExportMetadata" - }; - } - - // Triggers a user event rejoin operation with latest catalog data. Events - // will not be annotated with detailed catalog information if catalog item is - // missing at the time the user event is ingested, and these events are stored - // as unjoined events with a limited usage on training and serving. This API - // can be used to trigger a 'join' operation on specified events with latest - // version of catalog items. It can also be used to correct events joined with - // wrong catalog items. + // Triggers a user event rejoin operation with latest product catalog. Events + // will not be annotated with detailed product information if product is + // missing from the catalog at the time the user event is ingested, and these + // events are stored as unjoined events with a limited usage on training and + // serving. This API can be used to trigger a 'join' operation on specified + // events with latest version of product catalog. It can also be used to + // correct events joined with wrong product catalog. rpc RejoinUserEvents(RejoinUserEventsRequest) returns (google.longrunning.Operation) { option (google.api.http) = { @@ -151,9 +134,9 @@ message CollectUserEventRequest { // characters. string user_event = 2 [(google.api.field_behavior) = REQUIRED]; - // The url including cgi-parameters but excluding the hash fragment with a + // The URL including cgi-parameters but excluding the hash fragment with a // length limit of 5,000 characters. This is often more useful than the - // referer url, because many browsers only send the domain for 3rd party + // referer URL, because many browsers only send the domain for 3rd party // requests. string uri = 3; @@ -163,39 +146,41 @@ message CollectUserEventRequest { int64 ets = 4; } -// Request message for CatalogRejoin method. +// Request message for RejoinUserEvents method. message RejoinUserEventsRequest { - // The scope of events to be rejoined with latest catalog. If the rejoining - // aims at reducing number of unjoined events, set UserEventRejoinScope to - // UNJOINED_EVENTS. If the rejoining aims at correcting catalog information - // in joined_events, set UserEventRejoinScope to JOINED_EVENTS. If all events - // needs to be rejoined, set UserEventRejoinScope to + // The scope of user events to be rejoined with the latest product catalog. + // If the rejoining aims at reducing number of unjoined events, set + // UserEventRejoinScope to UNJOINED_EVENTS. + // If the rejoining aims at correcting product catalog information in joined + // events, set UserEventRejoinScope to JOINED_EVENTS. + // If all events needs to be rejoined, set UserEventRejoinScope to // USER_EVENT_REJOIN_SCOPE_UNSPECIFIED. enum UserEventRejoinScope { - // Rejoin catalogs with all events including both joined events and - // unjoined events. + // Rejoin all events with the latest product catalog, including both joined + // events and unjoined events. USER_EVENT_REJOIN_SCOPE_UNSPECIFIED = 0; - // Only rejoin catalogs with joined events. + // Only rejoin joined events with the latest product catalog. JOINED_EVENTS = 1; - // Only rejoin catalogs with unjoined events. + // Only rejoin unjoined events with the latest product catalog. UNJOINED_EVENTS = 2; } - // Required. Full resource name of user event, such as - // "projects/*/locations/*/catalogs/default_catalog". + // Required. The parent catalog resource name, such as + // "projects/1234/locations/global/catalogs/default_catalog". string parent = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. The type of the catalog rejoin to define the scope and range of - // the user events to be rejoined with catalog items. - UserEventRejoinScope user_event_rejoin_scope = 2 - [(google.api.field_behavior) = REQUIRED]; + // The type of the user event rejoin to define the scope and range of the user + // events to be rejoined with the latest product catalog. Defaults to + // USER_EVENT_REJOIN_SCOPE_UNSPECIFIED if this field is not set, or set to an + // invalid integer value. + UserEventRejoinScope user_event_rejoin_scope = 2; } // Response message for RejoinUserEvents method. message RejoinUserEventsResponse { - // Number of user events that were joined with latest catalog items. + // Number of user events that were joined with latest product catalog. int64 rejoined_user_events_count = 1; } diff --git a/third_party/googleapis/google/cloud/retail/v2beta/BUILD.bazel b/third_party/googleapis/google/cloud/retail/v2beta/BUILD.bazel index c5ab3e20c..b48f0040a 100644 --- a/third_party/googleapis/google/cloud/retail/v2beta/BUILD.bazel +++ b/third_party/googleapis/google/cloud/retail/v2beta/BUILD.bazel @@ -28,7 +28,6 @@ load( "java_gapic_test", "java_grpc_library", "java_proto_library", - "moved_proto_library", "nodejs_gapic_assembly_pkg", "nodejs_gapic_library", "php_gapic_assembly_pkg", @@ -38,8 +37,6 @@ load( "proto_library_with_info", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", "ruby_gapic_assembly_pkg", "ruby_gapic_library", "ruby_grpc_library", @@ -55,7 +52,6 @@ proto_library( "catalog.proto", "catalog_service.proto", "common.proto", - "export_config.proto", "import_config.proto", "prediction_service.proto", "product.proto", @@ -102,11 +98,8 @@ java_grpc_library( java_gapic_library( name = "retail_java_gapic", - src = ":retail_proto_with_info", - gapic_yaml = "retail_gapic.yaml", + srcs = [":retail_proto_with_info"], grpc_service_config = "retail_grpc_service_config.json", - package = "google.cloud.retail.v2beta", - service_yaml = "retail_v2beta.yaml", test_deps = [ ":retail_java_grpc", ], @@ -160,9 +153,9 @@ go_gapic_library( deps = [ ":retail_go_proto", "//google/api:httpbody_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", "@io_bazel_rules_go//proto/wkt:duration_go_proto", "@io_bazel_rules_go//proto/wkt:struct_go_proto", ], @@ -185,49 +178,10 @@ go_gapic_assembly_pkg( ], ) -moved_proto_library( - name = "retail_moved_proto", - srcs = [":retail_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:httpbody_proto", - "//google/api:resource_proto", - "//google/longrunning:operations_proto", - "//google/rpc:status_proto", - "@com_google_protobuf//:duration_proto", - "@com_google_protobuf//:empty_proto", - "@com_google_protobuf//:field_mask_proto", - "@com_google_protobuf//:struct_proto", - "@com_google_protobuf//:timestamp_proto", - "@com_google_protobuf//:wrappers_proto", - ], -) - -py_proto_library( - name = "retail_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":retail_moved_proto"], -) - -py_grpc_library( - name = "retail_py_grpc", - srcs = [":retail_moved_proto"], - deps = [":retail_py_proto"], -) - py_gapic_library( name = "retail_py_gapic", - src = ":retail_proto_with_info", - gapic_yaml = "retail_gapic.yaml", + srcs = [":retail_proto"], grpc_service_config = "retail_grpc_service_config.json", - package = "google.cloud.retail.v2beta", - service_yaml = "retail_v2beta.yaml", - deps = [ - ":retail_py_grpc", - ":retail_py_proto", - ], ) # Open Source Packages @@ -235,8 +189,6 @@ py_gapic_assembly_pkg( name = "retail-v2beta-py", deps = [ ":retail_py_gapic", - ":retail_py_grpc", - ":retail_py_proto", ], ) @@ -277,8 +229,10 @@ php_gapic_assembly_pkg( nodejs_gapic_library( name = "retail_nodejs_gapic", src = ":retail_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "retail_grpc_service_config.json", package = "google.cloud.retail.v2beta", + package_name = "@google-cloud/retail", service_yaml = "retail_v2beta.yaml", deps = [], ) diff --git a/third_party/googleapis/google/cloud/retail/v2beta/catalog.proto b/third_party/googleapis/google/cloud/retail/v2beta/catalog.proto index 5c41e9eaa..c63bdf0ea 100644 --- a/third_party/googleapis/google/cloud/retail/v2beta/catalog.proto +++ b/third_party/googleapis/google/cloud/retail/v2beta/catalog.proto @@ -32,45 +32,58 @@ option ruby_package = "Google::Cloud::Retail::V2beta"; // Configures what level the product should be uploaded with regards to // how users will be send events and how predictions will be made. message ProductLevelConfig { - // The level of a [Catalog][google.cloud.retail.v2beta.Catalog] at which the - // [UserEvent][google.cloud.retail.v2beta.UserEvent]s are uploaded. Acceptable - // values are: - // * `primary` - // * `variant` + // The type of [Product][google.cloud.retail.v2beta.Product]s allowed to be + // ingested into the catalog. Acceptable values are: + // + // * `primary` (default): You can only ingest + // [Product.Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] + // [Product][google.cloud.retail.v2beta.Product]s. This means + // [Product.primary_product_id][google.cloud.retail.v2beta.Product.primary_product_id] + // can only be empty or set to the same value as + // [Product.id][google.cloud.retail.v2beta.Product.id]. + // * `variant`: You can only ingest + // [Product.Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT] + // [Product][google.cloud.retail.v2beta.Product]s. + // This means + // [Product.primary_product_id][google.cloud.retail.v2beta.Product.primary_product_id] + // cannot be empty. // // If this field is set to an invalid value other than these, an // INVALID_ARGUMENT error is returned. // - // If this field is `primary` and - // [predict_product_level][google.cloud.retail.v2beta.ProductLevelConfig.predict_product_level] - // is `variant`, an INVALID_ARGUMENT error is returned. + // If this field is `variant` and + // [merchant_center_product_id_field][google.cloud.retail.v2beta.ProductLevelConfig.merchant_center_product_id_field] + // is `itemGroupId`, an INVALID_ARGUMENT error is returned. // - // See - // https://cloud.google.com/recommendations-ai/docs/catalog#catalog-levels - // for more details. - string event_product_level = 1; + // See [Using catalog + // levels](/retail/recommendations-ai/docs/catalog#catalog-levels) for more + // details. + string ingestion_product_type = 1; - // The level of a [Catalog][google.cloud.retail.v2beta.Catalog] at which the - // [PredictionService.Predict][google.cloud.retail.v2beta.PredictionService.Predict] - // is called. Acceptable values are: - // * `primary` - // * `variant` + // Which field of [Merchant Center + // Product](/bigquery-transfer/docs/merchant-center-products-schema) should be + // imported as [Product.id][google.cloud.retail.v2beta.Product.id]. Acceptable + // values are: + // + // * `offerId` (default): Import `offerId` as the product ID. + // * `itemGroupId`: Import `itemGroupId` as the product ID. Notice that Retail + // API will choose one item from the ones with the same `itemGroupId`, and + // use it to represent the item group. // // If this field is set to an invalid value other than these, an // INVALID_ARGUMENT error is returned. // - // If this field is `variant` and - // [event_product_level][google.cloud.retail.v2beta.ProductLevelConfig.event_product_level] - // is `primary`, an INVALID_ARGUMENT error is returned. + // If this field is `itemGroupId` and + // [ingestion_product_type][google.cloud.retail.v2beta.ProductLevelConfig.ingestion_product_type] + // is `variant`, an INVALID_ARGUMENT error is returned. // - // See - // https://cloud.google.com/recommendations-ai/docs/catalog#catalog-levels - // for more details. - string predict_product_level = 2; + // See [Using catalog + // levels](/retail/recommendations-ai/docs/catalog#catalog-levels) for more + // details. + string merchant_center_product_id_field = 2; } // The catalog configuration. -// Next ID: 5. message Catalog { option (google.api.resource) = { type: "retail.googleapis.com/Catalog" diff --git a/third_party/googleapis/google/cloud/retail/v2beta/catalog_service.proto b/third_party/googleapis/google/cloud/retail/v2beta/catalog_service.proto index 4c28e50df..322aa50e9 100644 --- a/third_party/googleapis/google/cloud/retail/v2beta/catalog_service.proto +++ b/third_party/googleapis/google/cloud/retail/v2beta/catalog_service.proto @@ -21,7 +21,9 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/retail/v2beta/catalog.proto"; +import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Retail.V2Beta"; option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2beta;retail"; @@ -69,7 +71,9 @@ message ListCatalogsRequest { // error is returned. string parent = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { type: "locations.googleapis.com/Location" } + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } ]; // Maximum number of [Catalog][google.cloud.retail.v2beta.Catalog]s to return. diff --git a/third_party/googleapis/google/cloud/retail/v2beta/common.proto b/third_party/googleapis/google/cloud/retail/v2beta/common.proto index a75289d8d..24f18f433 100644 --- a/third_party/googleapis/google/cloud/retail/v2beta/common.proto +++ b/third_party/googleapis/google/cloud/retail/v2beta/common.proto @@ -41,7 +41,7 @@ message CustomAttribute { // // Exactly one of [text][google.cloud.retail.v2beta.CustomAttribute.text] or // [numbers][google.cloud.retail.v2beta.CustomAttribute.numbers] should be - // set. Otherwise, a INVALID_ARGUMENT error is returned. + // set. Otherwise, an INVALID_ARGUMENT error is returned. repeated string text = 1; // The numerical values of this custom attribute. For example, `[2.3, 15.4]` @@ -52,7 +52,7 @@ message CustomAttribute { // // Exactly one of [text][google.cloud.retail.v2beta.CustomAttribute.text] or // [numbers][google.cloud.retail.v2beta.CustomAttribute.numbers] should be - // set. Otherwise, a INVALID_ARGUMENT error is returned. + // set. Otherwise, an INVALID_ARGUMENT error is returned. repeated double numbers = 2; } @@ -65,7 +65,7 @@ message Image { // // Google Merchant Center property // [image_link](https://support.google.com/merchants/answer/6324350). - // Schema.org property [Product.image](http://schema.org/image). + // Schema.org property [Product.image](https://schema.org/image). string uri = 1 [(google.api.field_behavior) = REQUIRED]; // Height of the image in number of pixels. @@ -84,7 +84,7 @@ message Image { // The price information of a [Product][google.cloud.retail.v2beta.Product]. message PriceInfo { // The 3-letter currency code defined in [ISO - // 4217][https://www.iso.org/iso-4217-currency-codes.html]. + // 4217](https://www.iso.org/iso-4217-currency-codes.html). // // If this field is an unrecognizable currency code, an INVALID_ARGUMENT // error is returned. @@ -93,9 +93,8 @@ message PriceInfo { // Price of the product. // // Google Merchant Center property - // [price](https://support.google.com/merchants/answer/6324371). - // Schema.org property - // [Offer.priceSpecification](https://schema.org/priceSpecification). + // [price](https://support.google.com/merchants/answer/6324371). Schema.org + // property [Offer.priceSpecification](https://schema.org/priceSpecification). float price = 2; // Price of the product without any discount. If zero, by default set to be @@ -109,7 +108,7 @@ message PriceInfo { // [cost][google.cloud.retail.v2beta.PriceInfo.cost] // // Google Merchant Center property - // [cost_of_goods_sold](https://support.google.com/merchants/answer/9017895) + // [cost_of_goods_sold](https://support.google.com/merchants/answer/9017895). float cost = 4; } @@ -133,7 +132,7 @@ message UserInfo { // [UserEventService.CollectUserEvent][google.cloud.retail.v2beta.UserEventService.CollectUserEvent] // or if // [direct_user_request][google.cloud.retail.v2beta.UserInfo.direct_user_request] - // is set. Otherwise, a FAILED_PRECONDITION error is returned. + // is set. string ip_address = 2; // User agent as included in the HTTP header. @@ -146,7 +145,7 @@ message UserInfo { // [UserEventService.CollectUserEvent][google.cloud.retail.v2beta.UserEventService.CollectUserEvent] // or if // [direct_user_request][google.cloud.retail.v2beta.UserInfo.direct_user_request] - // is set. Otherwise, a FAILED_PRECONDITION error is returned. + // is set. string user_agent = 3; // True if the request is made directly from the end user, in which case the @@ -158,6 +157,5 @@ message UserInfo { // // This should not be set when using the JavaScript tag in // [UserEventService.CollectUserEvent][google.cloud.retail.v2beta.UserEventService.CollectUserEvent]. - // Otherwise, a FAILED_PRECONDITION error is returned. bool direct_user_request = 4; } diff --git a/third_party/googleapis/google/cloud/retail/v2beta/export_config.proto b/third_party/googleapis/google/cloud/retail/v2beta/export_config.proto deleted file mode 100644 index 17699713d..000000000 --- a/third_party/googleapis/google/cloud/retail/v2beta/export_config.proto +++ /dev/null @@ -1,211 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.retail.v2beta; - -import "google/api/annotations.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/timestamp.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Cloud.Retail.V2Beta"; -option go_package = "google.golang.org/genproto/googleapis/cloud/retail/v2beta;retail"; -option java_multiple_files = true; -option java_outer_classname = "ExportConfigProto"; -option java_package = "com.google.cloud.retail.v2beta"; -option objc_class_prefix = "RETAIL"; -option php_namespace = "Google\\Cloud\\Retail\\V2beta"; -option ruby_package = "Google::Cloud::Retail::V2beta"; - -// The output configuration setting. -message OutputConfig { - // The Google Cloud Storage output destination configuration. - message GcsDestination { - // Required. The output uri prefix for saving output data to json files. - // Some mapping examples are as follows: - // output_uri_prefix sample output(assuming the object is foo.json) - // ======================== ============================================= - // gs://bucket/ gs://bucket/foo.json - // gs://bucket/folder/ gs://bucket/folder/foo.json - // gs://bucket/folder/item_ gs://bucket/folder/item_foo.json - string output_uri_prefix = 1 [(google.api.field_behavior) = REQUIRED]; - } - - // The BigQuery output destination configuration. - message BigQueryDestination { - // The ID of a BigQuery Dataset. - string dataset_id = 1; - } - - // The configuration of destination for holding output data. - oneof destination { - // The Google Cloud Storage location where the output is to be written to. - GcsDestination gcs_destination = 1; - - // The BigQuery location where the output is to be written to. - BigQueryDestination bigquery_destination = 2; - } -} - -// Configuration of destination for Export related errors. -message ExportErrorsConfig { - // Required. Errors destination. - oneof destination { - // Google Cloud Storage path for import errors. This must be an empty, - // existing Cloud Storage bucket. Export errors will be written to a file in - // this bucket, one per line, as a JSON-encoded - // `google.rpc.Status` message. - string gcs_prefix = 1; - } -} - -// Request message for ExportProducts method. -message ExportProductsRequest { - // Required. - // "projects/1234/locations/global/catalogs/default_catalog/branches/default_branch" - string parent = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The desired output location of the data. - OutputConfig output_config = 2 [(google.api.field_behavior) = REQUIRED]; - - // Filtering expression to specify restrictions over - // returned products. This is a sequence of terms, where each term applies - // some kind of a restriction to the returned products. Use this expression to - // restrict results to a specific time range, tag, stock state or filter - // products by product type. - // eg: lastModifiedTime > "2012-04-23T18:25:43.511Z" - // lastModifiedTime<"2012-04-23T18:25:43.511Z" productType=primary - // - // We expect only 4 types of fields: - // - // * lastModifiedTime: this can be specified a maximum of 2 times, once - // with a - // less than operator and once with a greater than operator. The - // lastModifiedTime restrict should result in one contiguous valid last - // modified time range. - // - // * productType: supported values are 'primary' and 'variant'. Boolean - // operators `OR` and `NOT` are supported if the - // expression is enclosed in parentheses, and must be separated from the - // productType values by a space. - // - // * availability: supported values are IN_STOCK, OUT_OF_STOCK, - // PREORDER and BACKORDER. Boolean operators `OR` and `NOT` are - // supported if the - // expression is enclosed in parentheses, and must be separated from the - // availability values by a space. - // - // * Tag expressions. Restricts output to products that match all of the - // specified tags. Boolean operators `OR` and `NOT` are supported if the - // expression is enclosed in parentheses, and must be separated from the - // tag values by a space. `-"tagA"` is also supported and is equivalent - // to `NOT "tagA"`. Tag values must be double quoted UTF-8 encoded - // strings with a size limit of 1,000 characters. - // - // Some examples of valid filters expressions: - // - // * Example 1: lastModifiedTime > "2012-04-23T18:25:43.511Z" - // lastModifiedTime < "2012-04-23T18:30:43.511Z" - // * Example 2: lastModifiedTime > "2012-04-23T18:25:43.511Z" - // productType = "variant" - // * Example 3: tag=("Red" OR "Blue") tag="New-Arrival" - // tag=(NOT "promotional") - // productType = "primary" lastModifiedTime < - // "2018-04-23T18:30:43.511Z" - // * Example 4: lastModifiedTime > "2012-04-23T18:25:43.511Z" - // * Example 5: availability = (IN_STOCK OR BACKORDER) - string filter = 3; -} - -// Request message for ExportUserEvents method. -message ExportUserEventsRequest { - // Required. "projects/1234/locations/global/catalogs/default_catalog" - string parent = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The desired output location of the data. - OutputConfig output_config = 2 [(google.api.field_behavior) = REQUIRED]; - - // Filtering expression to specify restrictions over - // returned events. This is a sequence of terms, where each term applies some - // kind of a restriction to the returned user events. Use this expression to - // restrict results to a specific time range, or filter events by eventType. - // eg: eventTime > "2012-04-23T18:25:43.511Z" eventsMissingCatalogItems - // eventTime<"2012-04-23T18:25:43.511Z" eventType=search - // - // We expect only 3 types of fields: - // - // * eventTime: this can be specified a maximum of 2 times, once with a - // less than operator and once with a greater than operator. The - // eventTime restrict should result in one contiguous valid eventTime - // range. - // - // * eventType: Boolean operators `OR` and `NOT` are supported if the - // expression is enclosed in parentheses, and must be separated from the - // tag values by a space. - // - // * eventsMissingCatalogItems: specifying this will restrict results - // to events for which catalog items were not found in the catalog. The - // default behavior is to return only those events for which catalog - // items were found. - // - // Some examples of valid filters expressions: - // - // * Example 1: eventTime > "2012-04-23T18:25:43.511Z" - // eventTime < "2012-04-23T18:30:43.511Z" - // * Example 2: eventTime > "2012-04-23T18:25:43.511Z" - // eventType = detail-page-view - // * Example 3: eventsMissingCatalogItems - // eventType = (NOT search) eventTime < "2018-04-23T18:30:43.511Z" - // * Example 4: eventTime > "2012-04-23T18:25:43.511Z" - // * Example 5: eventType = (search OR impression) - // * Example 6: eventsMissingCatalogItems - string filter = 3; -} - -// Metadata related to the progress of the Export operation. This will be -// returned by the google.longrunning.Operation.metadata field. -message ExportMetadata { - // Operation create time. - google.protobuf.Timestamp create_time = 1; - - // Operation last update time. If the operation is done, this is also the - // finish time. - google.protobuf.Timestamp update_time = 2; -} - -// Response of the ExportProductsRequest. If the long running -// operation is done, then this message is returned by the -// google.longrunning.Operations.response field if the operation was successful. -message ExportProductsResponse { - // A sample of errors encountered while processing the request. - repeated google.rpc.Status error_samples = 1; - - // Echoes the destination for the complete errors in the request if set. - ExportErrorsConfig errors_config = 2; -} - -// Response of the ExportUserEventsRequest. If the long running -// operation was successful, then this message is returned by the -// google.longrunning.Operations.response field if the operation was successful. -message ExportUserEventsResponse { - // A sample of errors encountered while processing the request. - repeated google.rpc.Status error_samples = 1; - - // Echoes the destination for the complete errors if this field was set in - // the request. - ExportErrorsConfig errors_config = 2; -} diff --git a/third_party/googleapis/google/cloud/retail/v2beta/import_config.proto b/third_party/googleapis/google/cloud/retail/v2beta/import_config.proto index 124c769d2..4ea8f651e 100644 --- a/third_party/googleapis/google/cloud/retail/v2beta/import_config.proto +++ b/third_party/googleapis/google/cloud/retail/v2beta/import_config.proto @@ -18,7 +18,6 @@ package google.cloud.retail.v2beta; import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; import "google/cloud/retail/v2beta/product.proto"; import "google/cloud/retail/v2beta/user_event.proto"; import "google/protobuf/field_mask.proto"; @@ -50,21 +49,18 @@ message GcsSource { // // Supported values for product imports: // - // 1: "product" using - // https://cloud.google.com/recommendations-ai/docs/upload-catalog#json - // (Default for products.import) - // - // 2: "product_merchant_center" using - // https://cloud.google.com/recommendations-ai/docs/upload-catalog#mc + // * `product` (default): One JSON + // [Product][google.cloud.retail.v2beta.Product] per line. Each product must + // have a valid [Product.id][google.cloud.retail.v2beta.Product.id]. + // * `product_merchant_center`: See [Importing catalog data from Merchant + // Center](/retail/recommendations-ai/docs/upload-catalog#mc). // // Supported values for user events imports: // - // 1: "user_event" using - // https://cloud.google.com/recommendations-ai/docs/manage-user-events#import - // (Default for userEvents.import) - // - // 2. "user_event_ga360" using - // https://support.google.com/analytics/answer/3437719?hl=en + // * `user_event` (default): One JSON + // [UserEvent][google.cloud.retail.v2beta.UserEvent] per line. + // * `user_event_ga360`: Using + // https://support.google.com/analytics/answer/3437719?hl=en. string data_schema = 2; } @@ -90,30 +86,28 @@ message BigQuerySource { // The schema to use when parsing the data from the source. // - // Supported values for catalog imports: - // - // 1: "product" using - // https://cloud.google.com/recommendations-ai/docs/upload-catalog#json - // (Default for products.import) - // - // 2: "product_merchant_center" using - // https://cloud.google.com/recommendations-ai/docs/upload-catalog#mc + // Supported values for product imports: // - // Supported values for user event imports: + // * `product` (default): One JSON + // [Product][google.cloud.retail.v2beta.Product] per line. Each product must + // have a valid [Product.id][google.cloud.retail.v2beta.Product.id]. + // * `product_merchant_center`: See [Importing catalog data from Merchant + // Center](/retail/recommendations-ai/docs/upload-catalog#mc). // - // 1: "user_event" using - // https://cloud.google.com/recommendations-ai/docs/manage-user-events#import - // (Default for userEvents.import) + // Supported values for user events imports: // - // 2. "user_event_ga360" using - // https://support.google.com/analytics/answer/3437719?hl=en + // * `user_event` (default): One JSON + // [UserEvent][google.cloud.retail.v2beta.UserEvent] per line. + // * `user_event_ga360`: Using + // https://support.google.com/analytics/answer/3437719?hl=en. string data_schema = 4; } // The inline source for the input config for ImportProducts method. message ProductInlineSource { - // Required. A list of products to update/create. Recommended max of 10k - // items. + // Required. A list of products to update/create. Each product must have a + // valid [Product.id][google.cloud.retail.v2beta.Product.id]. Recommended max + // of 10k items. repeated Product products = 1 [(google.api.field_behavior) = REQUIRED]; } @@ -204,11 +198,6 @@ message UserEventInputConfig { // Metadata related to the progress of the Import operation. This will be // returned by the google.longrunning.Operation.metadata field. message ImportMetadata { - option (google.api.resource) = { - type: "retail.googleapis.com/Operation" - pattern: "operations/{operation}" - }; - // Operation create time. google.protobuf.Timestamp create_time = 1; diff --git a/third_party/googleapis/google/cloud/retail/v2beta/prediction_service.proto b/third_party/googleapis/google/cloud/retail/v2beta/prediction_service.proto index e91ffbdd5..7d1063471 100644 --- a/third_party/googleapis/google/cloud/retail/v2beta/prediction_service.proto +++ b/third_party/googleapis/google/cloud/retail/v2beta/prediction_service.proto @@ -76,10 +76,7 @@ message PredictRequest { // Recently viewed. // // The full list of available placements can be seen at - // - // https: - // //console.cloud.google.com/recommendatio - // // n/datafeeds/default_catalog/dashboard + // https://console.cloud.google.com/recommendation/catalogs/default_catalog/placements string placement = 1 [(google.api.field_behavior) = REQUIRED]; // Required. Context about the user, what they are looking at and what action diff --git a/third_party/googleapis/google/cloud/retail/v2beta/product.proto b/third_party/googleapis/google/cloud/retail/v2beta/product.proto index 6fbbb9b11..20f9d389e 100644 --- a/third_party/googleapis/google/cloud/retail/v2beta/product.proto +++ b/third_party/googleapis/google/cloud/retail/v2beta/product.proto @@ -45,6 +45,40 @@ message Product { pattern: "projects/{project}/locations/{location}/catalogs/{catalog}/branches/{branch}/products/{product}" }; + // The type of this product. + enum Type { + // Default value. Default to + // [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] if unset. + TYPE_UNSPECIFIED = 0; + + // The primary type. + // + // As the primary unit for predicting, indexing and search serving, a + // [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] + // [Product][google.cloud.retail.v2beta.Product] is grouped with multiple + // [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT] + // [Product][google.cloud.retail.v2beta.Product]s. + PRIMARY = 1; + + // The variant type. + // + // [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT] + // [Product][google.cloud.retail.v2beta.Product]s usually share some common + // attributes on the same + // [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] + // [Product][google.cloud.retail.v2beta.Product]s, but they have variant + // attributes like different colors, sizes and prices, etc. + VARIANT = 2; + + // The collection type. Collection products are bundled + // [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] + // [Product][google.cloud.retail.v2beta.Product]s or + // [Type.VARIANT][google.cloud.retail.v2beta.Product.Type.VARIANT] + // [Product][google.cloud.retail.v2beta.Product]s that are sold together, + // such as a jewelry set with necklaces, earrings and rings, etc. + COLLECTION = 3; + } + // Product availability. If this field is unspecified, the product is // assumed to be in stock. enum Availability { @@ -67,7 +101,6 @@ message Product { } // Immutable. Full resource name of the product, such as - // // "projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id". // // The branch ID must be "default_branch". @@ -77,52 +110,51 @@ message Product { // is the final component of [name][google.cloud.retail.v2beta.Product.name]. // For example, this field is "id_1", if // [name][google.cloud.retail.v2beta.Product.name] is - // // "projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/id_1". // // This field must be a UTF-8 encoded string with a length limit of 128 // characters. Otherwise, an INVALID_ARGUMENT error is returned. // // Google Merchant Center property - // [id](https://support.google.com/merchants/answer/6324405). - // schema.org Property [Product.sku](https://schema.org/sku). + // [id](https://support.google.com/merchants/answer/6324405). Schema.org + // Property [Product.sku](https://schema.org/sku). string id = 2 [(google.api.field_behavior) = IMMUTABLE]; + // Immutable. The type of the product. This field is output-only. + Type type = 3 [(google.api.field_behavior) = IMMUTABLE]; + // Variant group identifier. Must be an // [id][google.cloud.retail.v2beta.Product.id], with the same parent branch // with this product. Otherwise, an error is thrown. // - // The primary product may be empty during the creation, but cannot be updated - // from a non-empty string to an empty one. Otherwise an INVALID_ARGUMENT - // error is returned. + // For [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] + // [Product][google.cloud.retail.v2beta.Product]s, this field can only be + // empty or set to the same value as + // [id][google.cloud.retail.v2beta.Product.id]. // - // Should only be set for [Type.VARIANT][] - // [Product][google.cloud.retail.v2beta.Product]s. A maximum of 2000 products - // are allowed to share the same [Type.PRIMARY][] + // For VARIANT [Product][google.cloud.retail.v2beta.Product]s, this field + // cannot be empty. A maximum of 2,000 products are allowed to share the same + // [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] // [Product][google.cloud.retail.v2beta.Product]. Otherwise, an // INVALID_ARGUMENT error is returned. // // Google Merchant Center Property // [item_group_id](https://support.google.com/merchants/answer/6324507). - // schema.org Property + // Schema.org Property // [Product.inProductGroupWithID](https://schema.org/inProductGroupWithID). // // This field must be enabled before it can be used. [Learn // more](/recommendations-ai/docs/catalog#item-group-id). string primary_product_id = 4; - // Required. Product categories. This field is repeated for supporting one - // product belonging to several parallel categories. Each value is either the - // full path of the category, or the [category + // Product categories. This field is repeated for supporting one product + // belonging to several parallel categories. Strongly recommended using the + // full path for better search / recommendation quality. // - // ID](https: - // //www.google.com/basepages/producttype/taxonomy-with-ids.en-US.txt). - // Strongly recommended using the full path for better search / recommendation - // quality. // // To represent full path of category, use '>' sign to separate different - // hierarchies. If '>' is part of the category name, you should escape it with - // '\x3E'. + // hierarchies. If '>' is part of the category name, please replace it with + // other character(s). // // For example, if a shoes product belongs to both // ["Shoes & Accessories" -> "Shoes"] and @@ -134,17 +166,23 @@ message Product { // "Sports & Fitness > Athletic Clothing > Shoes" // ] // + // Must be set for + // [Type.PRIMARY][google.cloud.retail.v2beta.Product.Type.PRIMARY] + // [Product][google.cloud.retail.v2beta.Product] otherwise an INVALID_ARGUMENT + // error is returned. + // // At most 250 values are allowed per // [Product][google.cloud.retail.v2beta.Product]. Empty values are not // allowed. Each value must be a UTF-8 encoded string with a length limit of // 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. // // Google Merchant Center property + // [google_product_category][mc_google_product_category]. Schema.org property + // [Product.category] (https://schema.org/category). // - // [google_product_category](https: - // //support.google.com/merchants/answer/6324436). - // Schema.org property [Product.category] (https://schema.org/category). - repeated string categories = 7 [(google.api.field_behavior) = REQUIRED]; + // [mc_google_product_category]: + // https://support.google.com/merchants/answer/6324436 + repeated string categories = 7; // Required. Product title. // @@ -166,19 +204,6 @@ message Product { // schema.org property [Product.description](https://schema.org/description). string description = 10; - // Language of the title/description and other string attributes. Use language - // tags defined by [BCP 47][https://www.rfc-editor.org/rfc/bcp/bcp47.txt]. - // - // The model automatically detects the text language. The - // [Product][google.cloud.retail.v2beta.Product] can include text in different - // languages, but duplicating [Product][google.cloud.retail.v2beta.Product]s - // to provide text in multiple languages can result in degraded model - // performance. - // - // Currently, recommendation supports all language codes, while the only - // supported language code for search is "en-US". - string language_code = 11; - // Highly encouraged. Extra product attributes to be included. For example, // for products, this could include the store name, vendor, style, color, etc. // These are very strong signals for recommendation model, thus we highly @@ -191,12 +216,15 @@ message Product { // country of a customer. Numerical features. Some examples would be the // height/weight of a product, or age of a customer. // - // For example: { "vendor": {"text": ["vendor123", "vendor456"]}, + // For example: `{ "vendor": {"text": ["vendor123", "vendor456"]}, // "lengths_cm": {"numbers":[2.3, 15.4]}, "heights_cm": {"numbers":[8.1, 6.4]} - // }. + // }`. // // A maximum of 150 attributes are allowed. Otherwise, an INVALID_ARGUMENT // error is returned. + // + // The key must be a UTF-8 encoded string with a length limit of 5,000 + // characters. Otherwise, an INVALID_ARGUMENT error is returned. map attributes = 12; // Custom tags associated with the product. @@ -225,13 +253,12 @@ message Product { google.protobuf.Timestamp available_time = 18; // The online availability of the - // [Product][google.cloud.retail.v2beta.Product], which is parallel to and - // independent of [fulfillment_info][]. Default is + // [Product][google.cloud.retail.v2beta.Product]. Default to // [Availability.IN_STOCK][google.cloud.retail.v2beta.Product.Availability.IN_STOCK]. // // Google Merchant Center Property // [availability](https://support.google.com/merchants/answer/6324448). - // schema.org Property [Offer.availability](https://schema.org/availability). + // Schema.org Property [Offer.availability](https://schema.org/availability). Availability availability = 19; // The available quantity of the item. @@ -243,43 +270,16 @@ message Product { // characters. Otherwise, an INVALID_ARGUMENT error is returned. // // Google Merchant Center property - // [link](https://support.google.com/merchants/answer/6324416). - // Schema.org property [Offer.url](https://schema.org/url). + // [link](https://support.google.com/merchants/answer/6324416). Schema.org + // property [Offer.url](https://schema.org/url). string uri = 22; // Product images for the product. // + // A maximum of 300 images are allowed. + // // Google Merchant Center property // [image_link](https://support.google.com/merchants/answer/6324350). // Schema.org property [Product.image](https://schema.org/image). repeated Image images = 23; - - // Indicates which fields in the [variants][] are retrievable in [Search][]. - // If not set or empty, the following fields are returned: - // - // * [name][google.cloud.retail.v2beta.Product.name] - // * [availability][google.cloud.retail.v2beta.Product.availability] - // * [color_info][] - // - // Supported fields: - // - // * [name][google.cloud.retail.v2beta.Product.name] - // * [availability][google.cloud.retail.v2beta.Product.availability] - // * [color_info][] - // * [gtin][] - // * [price_info][google.cloud.retail.v2beta.Product.price_info] - // * [sizes][] - // * [materials][] - // * [patterns][] - // * [conditions][] - // * [images][google.cloud.retail.v2beta.Product.images] - // * [attributes][google.cloud.retail.v2beta.Product.attributes] - // - // To mark custom attributes as retrievable, include paths of the form - // "attributes.key" where "key" is the key of a custom attribute, as - // specified in [attributes][google.cloud.retail.v2beta.Product.attributes]. - // - // Maximum number of paths is 10. Otherwise, an INVALID_ARGUMENT error is - // returned. - google.protobuf.FieldMask variant_retrievable_fields = 30; } diff --git a/third_party/googleapis/google/cloud/retail/v2beta/product_service.proto b/third_party/googleapis/google/cloud/retail/v2beta/product_service.proto index e740cf32e..5e7615ebd 100644 --- a/third_party/googleapis/google/cloud/retail/v2beta/product_service.proto +++ b/third_party/googleapis/google/cloud/retail/v2beta/product_service.proto @@ -20,7 +20,6 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -import "google/cloud/retail/v2beta/export_config.proto"; import "google/cloud/retail/v2beta/import_config.proto"; import "google/cloud/retail/v2beta/product.proto"; import "google/cloud/retail/v2beta/purge_config.proto"; @@ -61,8 +60,7 @@ service ProductService { option (google.api.method_signature) = "name"; } - // Updates a [Product][google.cloud.retail.v2beta.Product]. Non-existing items - // will be created. + // Updates a [Product][google.cloud.retail.v2beta.Product]. rpc UpdateProduct(UpdateProductRequest) returns (Product) { option (google.api.http) = { patch: "/v2beta/{product.name=projects/*/locations/*/catalogs/*/branches/*/products/**}" @@ -79,25 +77,6 @@ service ProductService { option (google.api.method_signature) = "name"; } - // Permanently deletes all [Product][google.cloud.retail.v2beta.Product]s - // under a branch. - // - // Depending on the number of [Product][google.cloud.retail.v2beta.Product]s, - // this operation could take hours to complete. To get a sample of - // [Product][google.cloud.retail.v2beta.Product]s that would be deleted, set - // [PurgeProductsRequest.force][] to false. - rpc PurgeProducts(PurgeProductsRequest) - returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v2beta/{parent=projects/*/locations/*/catalogs/*/branches/*}/products:purge" - body: "*" - }; - option (google.longrunning.operation_info) = { - response_type: "google.cloud.retail.v2beta.PurgeProductsResponse" - metadata_type: "google.cloud.retail.v2beta.PurgeMetadata" - }; - } - // Bulk import of multiple [Product][google.cloud.retail.v2beta.Product]s. // // Request processing may be synchronous. No partial updating is supported. @@ -116,25 +95,11 @@ service ProductService { metadata_type: "google.cloud.retail.v2beta.ImportMetadata" }; } - - // Export of multiple [Product][google.cloud.retail.v2beta.Product]s. - rpc ExportProducts(ExportProductsRequest) - returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v2beta/{parent=projects/*/locations/*/catalogs/*/branches/*}/products:export" - body: "*" - }; - option (google.longrunning.operation_info) = { - response_type: "google.cloud.retail.v2beta.ExportProductsResponse" - metadata_type: "google.cloud.retail.v2beta.ExportMetadata" - }; - } } // Request message for [CreateProduct][] method. message CreateProductRequest { // Required. The parent catalog resource name, such as - // // "projects/*/locations/global/catalogs/default_catalog/branches/default_branch". string parent = 1 [ (google.api.field_behavior) = REQUIRED, @@ -166,7 +131,6 @@ message CreateProductRequest { message GetProductRequest { // Required. Full resource name of // [Product][google.cloud.retail.v2beta.Product], such as - // // "projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/some_product_id". // // If the caller does not have permission to access the @@ -207,7 +171,6 @@ message UpdateProductRequest { message DeleteProductRequest { // Required. Full resource name of // [Product][google.cloud.retail.v2beta.Product], such as - // // "projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/some_product_id". // // If the caller does not have permission to delete the @@ -216,13 +179,6 @@ message DeleteProductRequest { // // If the [Product][google.cloud.retail.v2beta.Product] to delete does not // exist, a NOT_FOUND error is returned. - // - // The [Product][google.cloud.retail.v2beta.Product] to delete can neither be - // a non-empty [Product.Type.COLLECTION][] - // [Product][google.cloud.retail.v2beta.Product] nor a - // [Product.Type.PRIMARY][] [Product][google.cloud.retail.v2beta.Product] with - // more than one [variants][Product.Type.VARIANT]. Otherwise, a - // FAILED_PRECONDITION error is returned. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { type: "retail.googleapis.com/Product" } diff --git a/third_party/googleapis/google/cloud/retail/v2beta/purge_config.proto b/third_party/googleapis/google/cloud/retail/v2beta/purge_config.proto index c5d322516..a2db3110a 100644 --- a/third_party/googleapis/google/cloud/retail/v2beta/purge_config.proto +++ b/third_party/googleapis/google/cloud/retail/v2beta/purge_config.proto @@ -32,25 +32,6 @@ option ruby_package = "Google::Cloud::Retail::V2beta"; // This will be returned by the google.longrunning.Operation.metadata field. message PurgeMetadata {} -// Request message for PurgeProducts method. -message PurgeProductsRequest { - // Required. The resource name of the catalog under which the products are - // created. The format is - // "projects/${projectId}/locations/global/catalogs/${catalogId}" - string parent = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. Filter matching the products to be purged. Only supported value - // at the moment is "*" (all items). - string filter = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Response of the PurgeProductsRequest. If the long running operation is -// successfully done, then this message is returned by the -// google.longrunning.Operations.response field. -message PurgeProductsResponse { - // The total count of products purged as a result of the operation. - int64 purged_count = 1; -} // Request message for PurgeUserEvents method. message PurgeUserEventsRequest { // Required. The resource name of the catalog under which the events are @@ -62,11 +43,13 @@ message PurgeUserEventsRequest { // length limit of 5,000 characters. Empty string filter is not allowed. The // eligible fields for filtering are: // - // * `eventType`: UserEvent.eventType field of type string. + // * `eventType`: Double quoted + // [UserEvent.event_type][google.cloud.retail.v2beta.UserEvent.event_type] + // string. // * `eventTime`: in ISO 8601 "zulu" format. - // * `visitorId`: field of type string. Specifying this will delete all + // * `visitorId`: Double quoted string. Specifying this will delete all // events associated with a visitor. - // * `userId`: field of type string. Specifying this will delete all events + // * `userId`: Double quoted string. Specifying this will delete all events // associated with a user. // // Examples: @@ -81,6 +64,11 @@ message PurgeUserEventsRequest { // // The filtering fields are assumed to have an implicit AND. string filter = 2 [(google.api.field_behavior) = REQUIRED]; + + // Actually perform the purge. + // If `force` is set to false, the method will return the expected purge count + // without deleting any user events. + bool force = 3; } // Response of the PurgeUserEventsRequest. If the long running operation is diff --git a/third_party/googleapis/google/cloud/retail/v2beta/retail_gapic.yaml b/third_party/googleapis/google/cloud/retail/v2beta/retail_gapic.yaml index c683e8492..688ca522d 100644 --- a/third_party/googleapis/google/cloud/retail/v2beta/retail_gapic.yaml +++ b/third_party/googleapis/google/cloud/retail/v2beta/retail_gapic.yaml @@ -1,8 +1,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 language_settings: - java: - package_name: com.google.cloud.retail.v2beta python: package_name: google.cloud.retail_v2beta.gapic go: diff --git a/third_party/googleapis/google/cloud/retail/v2beta/retail_v2beta.yaml b/third_party/googleapis/google/cloud/retail/v2beta/retail_v2beta.yaml index e787a6be5..f6df5b5a8 100644 --- a/third_party/googleapis/google/cloud/retail/v2beta/retail_v2beta.yaml +++ b/third_party/googleapis/google/cloud/retail/v2beta/retail_v2beta.yaml @@ -1,7 +1,7 @@ type: google.api.Service config_version: 3 name: retail.googleapis.com -title: Cloud Retail Solution +title: Cloud Retail apis: - name: google.cloud.retail.v2beta.CatalogService @@ -10,10 +10,6 @@ apis: - name: google.cloud.retail.v2beta.UserEventService types: -- name: google.cloud.retail.v2beta.ExportMetadata -- name: google.cloud.retail.v2beta.ExportProductsResponse -- name: google.cloud.retail.v2beta.ExportErrorsConfig -- name: google.cloud.retail.v2beta.ExportUserEventsResponse - name: google.cloud.retail.v2beta.ImportErrorsConfig - name: google.cloud.retail.v2beta.ImportMetadata - name: google.cloud.retail.v2beta.ImportProductsResponse @@ -24,7 +20,10 @@ types: - name: google.cloud.retail.v2beta.RejoinUserEventsResponse documentation: - summary: TBD + summary: |- + Cloud Retail service enables customers to build end-to-end personalized + recommendation systems without requiring a high level of expertise in + machine learning, recommendation system, or Google Cloud. backend: rules: diff --git a/third_party/googleapis/google/cloud/retail/v2beta/user_event.proto b/third_party/googleapis/google/cloud/retail/v2beta/user_event.proto index 42b6efd72..a8efad4dd 100644 --- a/third_party/googleapis/google/cloud/retail/v2beta/user_event.proto +++ b/third_party/googleapis/google/cloud/retail/v2beta/user_event.proto @@ -32,25 +32,26 @@ option objc_class_prefix = "RETAIL"; option php_namespace = "Google\\Cloud\\Retail\\V2beta"; option ruby_package = "Google::Cloud::Retail::V2beta"; -// UserEvent captures all metadata information recommendation engine needs to -// know about how end users interact with customers' website. +// UserEvent captures all metadata information Retail API needs to know about +// how end users interact with customers' website. message UserEvent { // Required. User event type. Allowed values are: // - // * `add-to-cart` Products being added to cart. - // * `category-page-view` Special pages such as sale or promotion pages + // * `add-to-cart`: Products being added to cart. + // * `category-page-view`: Special pages such as sale or promotion pages // viewed. - // * `detail-page-view` Products detail page viewed. - // * `home-page-view` Homepage viewed. - // * `purchase-complete` User finishing a purchase. - // * `search` - // * `shopping-cart-page-view` User viewing a shopping cart. + // * `detail-page-view`: Products detail page viewed. + // * `home-page-view`: Homepage viewed. + // * `purchase-complete`: User finishing a purchase. + // * `search`: Product search. + // * `shopping-cart-page-view`: User viewing a shopping cart. string event_type = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. A unique identifier for tracking visitors. For example, this - // could be implemented with a http cookie, which should be able to uniquely - // identify a visitor on a single device. This unique identifier should not - // change if the visitor log in/out of the website. + // Required. A unique identifier for tracking visitors. + // + // For example, this could be implemented with an HTTP cookie, which should be + // able to uniquely identify a visitor on a single device. This unique + // identifier should not change if the visitor log in/out of the website. // // The field must be a UTF-8 encoded string with a length limit of 128 // characters. Otherwise, an INVALID_ARGUMENT error is returned. @@ -61,10 +62,10 @@ message UserEvent { // method. Timestamp of when the user event happened. google.protobuf.Timestamp event_time = 3; - // A list of identifiers for the independent experiment groups - // this user event belongs to. This is used to distinguish between user events - // associated with different experiment setups (e.g. using Recommendations AI, - // using different recommendation models). + // A list of identifiers for the independent experiment groups this user event + // belongs to. This is used to distinguish between user events associated with + // different experiment setups (e.g. using Retail API, using different + // recommendation models). repeated string experiment_ids = 4; // Highly recommended for user events that are the result of @@ -73,15 +74,19 @@ message UserEvent { // performance. // // The value must be a valid - // [PredictResponse.attribute_token][] for user events that are the result of + // [PredictResponse.attribution_token][google.cloud.retail.v2beta.PredictResponse.attribution_token] + // for user events that are the result of // [PredictionService.Predict][google.cloud.retail.v2beta.PredictionService.Predict]. // // This token enables us to accurately attribute page view or purchase back to // the event and the particular predict response containing this // clicked/purchased product. If user clicks on product K in the - // recommendation results, pass [PredictResponse.attribute_token][] as a url - // parameter to product K's page. When recording events on product K's page, - // log the [PredictResponse.attribute_token][] to this field. + // recommendation results, pass + // [PredictResponse.attribution_token][google.cloud.retail.v2beta.PredictResponse.attribution_token] + // as a URL parameter to product K's page. When recording events on product + // K's page, log the + // [PredictResponse.attribution_token][google.cloud.retail.v2beta.PredictResponse.attribution_token] + // to this field. string attribution_token = 5; // The main product details related to the event. @@ -95,7 +100,7 @@ message UserEvent { // In a `search` event, this field represents the products returned to the end // user on the current page (the end user may have not finished broswing the // whole page yet). When a new page is returned to the end user, after - // pagination/filtering/ordering even for the same query, a new SEARCH event + // pagination/filtering/ordering even for the same query, a new `search` event // with different // [product_details][google.cloud.retail.v2beta.UserEvent.product_details] is // desired. The end user may have not finished broswing the whole page yet. @@ -103,6 +108,9 @@ message UserEvent { // Extra user event features to include in the recommendation model. // + // The key must be a UTF-8 encoded string with a length limit of 5,000 + // characters. Otherwise, an INVALID_ARGUMENT error is returned. + // // For product recommendation, an example of extra user information is // traffic_channel, i.e. how user arrives at the site. Users can arrive // at the site by coming to the site directly, or coming through Google @@ -112,15 +120,14 @@ message UserEvent { // The id or name of the associated shopping cart. This id is used // to associate multiple items added or present in the cart before purchase. // - // This can only be set for `add-to-cart`, `remove-from-cart`, - // `checkout-start`, `purchase-complete`, or `shopping-cart-page-view` events. + // This can only be set for `add-to-cart`, `purchase-complete`, or + // `shopping-cart-page-view` events. string cart_id = 8; // A transaction represents the entire purchase transaction. // - // Required for `purchase-complete` events. Optional for `checkout-start` - // events. Other event types should not set this field. Otherwise, an - // INVALID_ARGUMENT error is returned. + // Required for `purchase-complete` events. Other event types should not set + // this field. Otherwise, an INVALID_ARGUMENT error is returned. PurchaseTransaction purchase_transaction = 9; // The user's search query. @@ -135,8 +142,8 @@ message UserEvent { // The categories associated with a category page. // // To represent full path of category, use '>' sign to separate different - // hierarchies. If '>' is part of the category name, you should escape it with - // '\x3E'. + // hierarchies. If '>' is part of the category name, please replace it with + // other character(s). // // Category pages include special pages such as sales or promotions. For // instance, a special sale page may have the category hierarchy: @@ -149,37 +156,44 @@ message UserEvent { // User information. UserInfo user_info = 12; - // Complete url (window.location.href) of the user's current page. + // Complete URL (window.location.href) of the user's current page. + // // When using the client side event reporting with JavaScript pixel and Google // Tag Manager, this value is filled in automatically. Maximum length 5,000 // characters. string uri = 13; - // The referrer url of the current page. When using - // the client side event reporting with JavaScript pixel and Google Tag - // Manager, this value is filled in automatically. + // The referrer URL of the current page. + // + // When using the client side event reporting with JavaScript pixel and Google + // Tag Manager, this value is filled in automatically. string referrer_uri = 14; // A unique id of a web page view. + // // This should be kept the same for all user events triggered from the same // pageview. For example, an item detail page view could trigger multiple - // events as the user is browsing the page. - // The `pageViewId` property should be kept the same for all these events so - // that they can be grouped together properly. This `pageViewId` will be - // automatically generated if using the client side event reporting with - // JavaScript pixel and Google Tag Manager. + // events as the user is browsing the page. The `pageViewId` property should + // be kept the same for all these events so that they can be grouped together + // properly. + // + // When using the client side event reporting with JavaScript pixel and Google + // Tag Manager, this value is filled in automatically. string page_view_id = 15; } // Detailed product information associated with a user event. message ProductDetail { // Required. [Product][google.cloud.retail.v2beta.Product] information. - // Only [Product][id] field is used when ingesting an event, all other product - // fields are ignored as we will look them up from the catalog. + // + // Only [Product.id][google.cloud.retail.v2beta.Product.id] field is used when + // ingesting an event, all other product fields are ignored as we will look + // them up from the catalog. Product product = 1 [(google.api.field_behavior) = REQUIRED]; - // Quantity of the product associated with the user event. For - // example, this field will be 2 if two products are added to the shopping + // Quantity of the product associated with the user event. + // + // For example, this field will be 2 if two products are added to the shopping // cart for `purchase-complete` event. Required for `add-to-cart` and // `purchase-complete` event types. google.protobuf.Int32Value quantity = 2; @@ -190,30 +204,25 @@ message PurchaseTransaction { // The transaction ID with a length limit of 128 characters. string id = 1; - // Required. Total revenue or grand total associated with the transaction. - // This value include shipping, tax, or other adjustments to total revenue - // that you want to include as part of your revenue calculations. This field - // is not required if the event type is `refund`. + // Required. Total non-zero revenue or grand total associated with the + // transaction. This value include shipping, tax, or other adjustments to + // total revenue that you want to include as part of your revenue + // calculations. float revenue = 2 [(google.api.field_behavior) = REQUIRED]; // All the taxes associated with the transaction. float tax = 3; - // All the costs associated with the product. These can be - // manufacturing costs, shipping expenses not borne by the end user, or any - // other costs. - // - // Total product cost such that - // profit = revenue - tax + [Product][pricing][cost] - // If product_cost is not set, then - // profit = revenue - tax - [Product][pricing][cost]. + // All the costs associated with the products. These can be manufacturing + // costs, shipping expenses not borne by the end user, or any other costs, + // such that: // - // If [Product][pricing][cost] is not specified for one of the products, - // [Product][pricing][cost] based profit *cannot* be calculated for this - // Transaction. + // * Profit = + // [revenue][google.cloud.retail.v2beta.PurchaseTransaction.revenue] - + // [tax][google.cloud.retail.v2beta.PurchaseTransaction.tax] - + // [cost][google.cloud.retail.v2beta.PurchaseTransaction.cost] float cost = 4; - // Required. Currency code. Use three-character ISO-4217 code. This field - // is not required if the event type is `refund`. + // Required. Currency code. Use three-character ISO-4217 code. string currency_code = 5 [(google.api.field_behavior) = REQUIRED]; } diff --git a/third_party/googleapis/google/cloud/retail/v2beta/user_event_service.proto b/third_party/googleapis/google/cloud/retail/v2beta/user_event_service.proto index 066d323f9..9c2f86d9e 100644 --- a/third_party/googleapis/google/cloud/retail/v2beta/user_event_service.proto +++ b/third_party/googleapis/google/cloud/retail/v2beta/user_event_service.proto @@ -20,7 +20,6 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/httpbody.proto"; -import "google/cloud/retail/v2beta/export_config.proto"; import "google/cloud/retail/v2beta/import_config.proto"; import "google/cloud/retail/v2beta/purge_config.proto"; import "google/cloud/retail/v2beta/user_event.proto"; @@ -52,8 +51,8 @@ service UserEventService { // Writes a single user event from the browser. This uses a GET request to // due to browser restriction of POST-ing to a 3rd party domain. // - // This method is used only by the Recommendations AI JavaScript pixel and - // Google Tag Manager. Users should not call this method directly. + // This method is used only by the Retail API JavaScript pixel and Google Tag + // Manager. Users should not call this method directly. rpc CollectUserEvent(CollectUserEventRequest) returns (google.api.HttpBody) { option (google.api.http) = { get: "/v2beta/{parent=projects/*/locations/*/catalogs/*}/userEvents:collect" @@ -95,29 +94,13 @@ service UserEventService { }; } - // Export of user events. - // - // Operation.response is of type ExportResponse. - // Operation.metadata is of type ExportMetadata. - rpc ExportUserEvents(ExportUserEventsRequest) - returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v2beta/{parent=projects/*/locations/*/catalogs/*}/userEvents:export" - body: "*" - }; - option (google.longrunning.operation_info) = { - response_type: "google.cloud.retail.v2beta.ExportUserEventsResponse" - metadata_type: "google.cloud.retail.v2beta.ExportMetadata" - }; - } - - // Triggers a user event rejoin operation with latest catalog data. Events - // will not be annotated with detailed catalog information if catalog item is - // missing at the time the user event is ingested, and these events are stored - // as unjoined events with a limited usage on training and serving. This API - // can be used to trigger a 'join' operation on specified events with latest - // version of catalog items. It can also be used to correct events joined with - // wrong catalog items. + // Triggers a user event rejoin operation with latest product catalog. Events + // will not be annotated with detailed product information if product is + // missing from the catalog at the time the user event is ingested, and these + // events are stored as unjoined events with a limited usage on training and + // serving. This API can be used to trigger a 'join' operation on specified + // events with latest version of product catalog. It can also be used to + // correct events joined with wrong product catalog. rpc RejoinUserEvents(RejoinUserEventsRequest) returns (google.longrunning.Operation) { option (google.api.http) = { @@ -151,9 +134,9 @@ message CollectUserEventRequest { // characters. string user_event = 2 [(google.api.field_behavior) = REQUIRED]; - // The url including cgi-parameters but excluding the hash fragment with a + // The URL including cgi-parameters but excluding the hash fragment with a // length limit of 5,000 characters. This is often more useful than the - // referer url, because many browsers only send the domain for 3rd party + // referer URL, because many browsers only send the domain for 3rd party // requests. string uri = 3; @@ -163,39 +146,41 @@ message CollectUserEventRequest { int64 ets = 4; } -// Request message for CatalogRejoin method. +// Request message for RejoinUserEvents method. message RejoinUserEventsRequest { - // The scope of events to be rejoined with latest catalog. If the rejoining - // aims at reducing number of unjoined events, set UserEventRejoinScope to - // UNJOINED_EVENTS. If the rejoining aims at correcting catalog information - // in joined_events, set UserEventRejoinScope to JOINED_EVENTS. If all events - // needs to be rejoined, set UserEventRejoinScope to + // The scope of user events to be rejoined with the latest product catalog. + // If the rejoining aims at reducing number of unjoined events, set + // UserEventRejoinScope to UNJOINED_EVENTS. + // If the rejoining aims at correcting product catalog information in joined + // events, set UserEventRejoinScope to JOINED_EVENTS. + // If all events needs to be rejoined, set UserEventRejoinScope to // USER_EVENT_REJOIN_SCOPE_UNSPECIFIED. enum UserEventRejoinScope { - // Rejoin catalogs with all events including both joined events and - // unjoined events. + // Rejoin all events with the latest product catalog, including both joined + // events and unjoined events. USER_EVENT_REJOIN_SCOPE_UNSPECIFIED = 0; - // Only rejoin catalogs with joined events. + // Only rejoin joined events with the latest product catalog. JOINED_EVENTS = 1; - // Only rejoin catalogs with unjoined events. + // Only rejoin unjoined events with the latest product catalog. UNJOINED_EVENTS = 2; } - // Required. Full resource name of user event, such as - // "projects/*/locations/*/catalogs/default_catalog". + // Required. The parent catalog resource name, such as + // "projects/1234/locations/global/catalogs/default_catalog". string parent = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. The type of the catalog rejoin to define the scope and range of - // the user events to be rejoined with catalog items. - UserEventRejoinScope user_event_rejoin_scope = 2 - [(google.api.field_behavior) = REQUIRED]; + // The type of the user event rejoin to define the scope and range of the user + // events to be rejoined with the latest product catalog. Defaults to + // USER_EVENT_REJOIN_SCOPE_UNSPECIFIED if this field is not set, or set to an + // invalid integer value. + UserEventRejoinScope user_event_rejoin_scope = 2; } // Response message for RejoinUserEvents method. message RejoinUserEventsResponse { - // Number of user events that were joined with latest catalog items. + // Number of user events that were joined with latest product catalog. int64 rejoined_user_events_count = 1; } diff --git a/third_party/googleapis/google/cloud/scheduler/v1/BUILD.bazel b/third_party/googleapis/google/cloud/scheduler/v1/BUILD.bazel index b38506bf7..ad95b28a1 100644 --- a/third_party/googleapis/google/cloud/scheduler/v1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/scheduler/v1/BUILD.bazel @@ -62,11 +62,8 @@ java_grpc_library( java_gapic_library( name = "scheduler_java_gapic", - src = ":scheduler_proto_with_info", - gapic_yaml = "cloudscheduler_gapic.yaml", + srcs = [":scheduler_proto_with_info"], grpc_service_config = "cloudscheduler_grpc_service_config.json", - package = "google.cloud.scheduler.v1", - service_yaml = "cloudscheduler_v1.yaml", test_deps = [ ":scheduler_java_grpc", ], @@ -149,8 +146,8 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -225,6 +222,7 @@ nodejs_gapic_library( name = "scheduler_nodejs_gapic", package_name = "@google-cloud/scheduler", src = ":scheduler_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "cloudscheduler_grpc_service_config.json", main_service = "scheduler", package = "google.cloud.scheduler.v1", @@ -246,7 +244,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -262,12 +260,19 @@ ruby_grpc_library( deps = [":scheduler_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "scheduler_ruby_gapic", - src = ":scheduler_proto_with_info", - gapic_yaml = "cloudscheduler_gapic.yaml", - package = "google.cloud.scheduler.v1", - service_yaml = "cloudscheduler_v1.yaml", + srcs = [":scheduler_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-scheduler-v1", + "ruby-cloud-env-prefix=SCHEDULER", + "ruby-cloud-product-url=https://cloud.google.com/scheduler", + "ruby-cloud-api-id=cloudscheduler.googleapis.com", + "ruby-cloud-api-shortname=cloudscheduler", + ], + grpc_service_config = "cloudscheduler_grpc_service_config.json", + ruby_cloud_description = "Cloud Scheduler is a fully managed enterprise-grade cron job scheduler. It allows you to schedule virtually any job, including batch, big data jobs, cloud infrastructure operations, and more. You can automate everything, including retries in case of failure to reduce manual toil and intervention. Cloud Scheduler even acts as a single pane of glass, allowing you to manage all your automation tasks from one place.", + ruby_cloud_title = "Cloud Scheduler V1", deps = [ ":scheduler_ruby_grpc", ":scheduler_ruby_proto", @@ -309,8 +314,8 @@ csharp_grpc_library( csharp_gapic_library( name = "scheduler_csharp_gapic", srcs = [":scheduler_proto_with_info"], - grpc_service_config = "cloudscheduler_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "cloudscheduler_grpc_service_config.json", deps = [ ":scheduler_csharp_grpc", ":scheduler_csharp_proto", diff --git a/third_party/googleapis/google/cloud/scheduler/v1/cloudscheduler_gapic.legacy.yaml b/third_party/googleapis/google/cloud/scheduler/v1/cloudscheduler_gapic.legacy.yaml deleted file mode 100644 index e3055f0b5..000000000 --- a/third_party/googleapis/google/cloud/scheduler/v1/cloudscheduler_gapic.legacy.yaml +++ /dev/null @@ -1,261 +0,0 @@ -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.scheduler.v1 - python: - package_name: google.cloud.scheduler_v1.gapic - go: - package_name: cloud.google.com/go/scheduler/apiv1 - release_level: GA - csharp: - package_name: Google.Cloud.Scheduler.V1 - release_level: GA - ruby: - package_name: Google::Cloud::Scheduler::V1 - release_level: GA - php: - package_name: Google\Cloud\Scheduler\V1 - nodejs: - package_name: scheduler.v1 - domain_layer_location: google-cloud -# A list of API interface configurations. -interfaces: -- name: google.cloud.scheduler.v1.CloudScheduler - # 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: - - name_pattern: projects/{project} - entity_name: project - language_overrides: - - language: csharp - common_resource_name: Google.Api.Gax.ResourceNames.ProjectName - - name_pattern: projects/{project}/locations/{location} - entity_name: location - - name_pattern: projects/{project}/locations/{location}/jobs/{job} - entity_name: job - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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: ListJobs - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: jobs - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: location - timeout_millis: 30000 - - name: GetJob - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: job - timeout_millis: 30000 - - name: CreateJob - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - parent - - job - required_fields: - - parent - - job - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: location - timeout_millis: 30000 - - name: UpdateJob - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - job - - update_mask - required_fields: - - job - - update_mask - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - job.name: job - timeout_millis: 30000 - - name: DeleteJob - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: job - timeout_millis: 30000 - - name: PauseJob - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: job - timeout_millis: 30000 - - name: ResumeJob - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: job - timeout_millis: 30000 - - name: RunJob - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: job - timeout_millis: 30000 -resource_name_generation: -- message_name: Job - field_entity_map: - name: job -- message_name: ListJobsRequest - field_entity_map: - parent: location -- message_name: GetJobRequest - field_entity_map: - name: job -- message_name: CreateJobRequest - field_entity_map: - parent: location -- message_name: UpdateJobRequest - field_entity_map: - job.name: job -- message_name: DeleteJobRequest - field_entity_map: - name: job -- message_name: PauseJobRequest - field_entity_map: - name: job -- message_name: ResumeJobRequest - field_entity_map: - name: job -- message_name: RunJobRequest - field_entity_map: - name: job diff --git a/third_party/googleapis/google/cloud/scheduler/v1/cloudscheduler_gapic.yaml b/third_party/googleapis/google/cloud/scheduler/v1/cloudscheduler_gapic.yaml index 800e2e69c..1adf3dfca 100644 --- a/third_party/googleapis/google/cloud/scheduler/v1/cloudscheduler_gapic.yaml +++ b/third_party/googleapis/google/cloud/scheduler/v1/cloudscheduler_gapic.yaml @@ -2,8 +2,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 # The settings of generated code in a specific language. language_settings: - java: - package_name: com.google.cloud.scheduler.v1 python: package_name: google.cloud.scheduler_v1.gapic go: diff --git a/third_party/googleapis/google/cloud/scheduler/v1beta1/BUILD.bazel b/third_party/googleapis/google/cloud/scheduler/v1beta1/BUILD.bazel index 8bcafde1e..8bbce3e2a 100644 --- a/third_party/googleapis/google/cloud/scheduler/v1beta1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/scheduler/v1beta1/BUILD.bazel @@ -62,11 +62,8 @@ java_grpc_library( java_gapic_library( name = "scheduler_java_gapic", - src = ":scheduler_proto_with_info", - gapic_yaml = "cloudscheduler_gapic.yaml", + srcs = [":scheduler_proto_with_info"], grpc_service_config = "cloudscheduler_grpc_service_config.json", - package = "google.cloud.scheduler.v1beta1", - service_yaml = "cloudscheduler_v1beta1.yaml", test_deps = [ ":scheduler_java_grpc", ], @@ -149,8 +146,8 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -225,6 +222,7 @@ nodejs_gapic_library( name = "scheduler_nodejs_gapic", package_name = "@google-cloud/scheduler", src = ":scheduler_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "cloudscheduler_grpc_service_config.json", main_service = "scheduler", package = "google.cloud.scheduler.v1beta1", @@ -246,7 +244,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -262,12 +260,19 @@ ruby_grpc_library( deps = [":scheduler_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "scheduler_ruby_gapic", - src = ":scheduler_proto_with_info", - gapic_yaml = "cloudscheduler_gapic.yaml", - package = "google.cloud.scheduler.v1beta1", - service_yaml = "cloudscheduler_v1beta1.yaml", + srcs = [":scheduler_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-scheduler-v1beta1", + "ruby-cloud-env-prefix=SCHEDULER", + "ruby-cloud-product-url=https://cloud.google.com/scheduler", + "ruby-cloud-api-id=cloudscheduler.googleapis.com", + "ruby-cloud-api-shortname=cloudscheduler", + ], + grpc_service_config = "cloudscheduler_grpc_service_config.json", + ruby_cloud_description = "Cloud Scheduler is a fully managed enterprise-grade cron job scheduler. It allows you to schedule virtually any job, including batch, big data jobs, cloud infrastructure operations, and more. You can automate everything, including retries in case of failure to reduce manual toil and intervention. Cloud Scheduler even acts as a single pane of glass, allowing you to manage all your automation tasks from one place.", + ruby_cloud_title = "Cloud Scheduler V1beta1", deps = [ ":scheduler_ruby_grpc", ":scheduler_ruby_proto", @@ -309,8 +314,8 @@ csharp_grpc_library( csharp_gapic_library( name = "scheduler_csharp_gapic", srcs = [":scheduler_proto_with_info"], - grpc_service_config = "cloudscheduler_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "cloudscheduler_grpc_service_config.json", deps = [ ":scheduler_csharp_grpc", ":scheduler_csharp_proto", diff --git a/third_party/googleapis/google/cloud/scheduler/v1beta1/cloudscheduler_gapic.legacy.yaml b/third_party/googleapis/google/cloud/scheduler/v1beta1/cloudscheduler_gapic.legacy.yaml deleted file mode 100644 index 07d2fa0f3..000000000 --- a/third_party/googleapis/google/cloud/scheduler/v1beta1/cloudscheduler_gapic.legacy.yaml +++ /dev/null @@ -1,257 +0,0 @@ -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.scheduler.v1beta1 - python: - package_name: google.cloud.scheduler_v1beta1.gapic - go: - package_name: cloud.google.com/go/scheduler/apiv1beta1 - csharp: - package_name: Google.Cloud.Scheduler.V1Beta1 - ruby: - package_name: Google::Cloud::Scheduler::V1beta1 - php: - package_name: Google\Cloud\Scheduler\V1beta1 - nodejs: - package_name: scheduler.v1beta1 - domain_layer_location: google-cloud -# A list of API interface configurations. -interfaces: -- name: google.cloud.scheduler.v1beta1.CloudScheduler - # 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: - - name_pattern: projects/{project} - entity_name: project - language_overrides: - - language: csharp - common_resource_name: Google.Api.Gax.ResourceNames.ProjectName - - name_pattern: projects/{project}/locations/{location} - entity_name: location - - name_pattern: projects/{project}/locations/{location}/jobs/{job} - entity_name: job - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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: ListJobs - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: jobs - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: location - timeout_millis: 10000 - - name: GetJob - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: job - timeout_millis: 10000 - - name: CreateJob - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - parent - - job - required_fields: - - parent - - job - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: location - timeout_millis: 10000 - - name: UpdateJob - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - job - - update_mask - required_fields: - - job - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - job.name: job - timeout_millis: 10000 - - name: DeleteJob - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: job - timeout_millis: 10000 - - name: PauseJob - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: job - timeout_millis: 10000 - - name: ResumeJob - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: job - timeout_millis: 10000 - - name: RunJob - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: job - timeout_millis: 10000 -resource_name_generation: -- message_name: Job - field_entity_map: - name: job -- message_name: ListJobsRequest - field_entity_map: - parent: location -- message_name: GetJobRequest - field_entity_map: - name: job -- message_name: CreateJobRequest - field_entity_map: - parent: location -- message_name: UpdateJobRequest - field_entity_map: - job.name: job -- message_name: DeleteJobRequest - field_entity_map: - name: job -- message_name: PauseJobRequest - field_entity_map: - name: job -- message_name: ResumeJobRequest - field_entity_map: - name: job -- message_name: RunJobRequest - field_entity_map: - name: job diff --git a/third_party/googleapis/google/cloud/scheduler/v1beta1/cloudscheduler_gapic.yaml b/third_party/googleapis/google/cloud/scheduler/v1beta1/cloudscheduler_gapic.yaml index 47353c693..e0b06224e 100644 --- a/third_party/googleapis/google/cloud/scheduler/v1beta1/cloudscheduler_gapic.yaml +++ b/third_party/googleapis/google/cloud/scheduler/v1beta1/cloudscheduler_gapic.yaml @@ -2,8 +2,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 # The settings of generated code in a specific language. language_settings: - java: - package_name: com.google.cloud.scheduler.v1beta1 python: package_name: google.cloud.scheduler_v1beta1.gapic go: diff --git a/third_party/googleapis/google/cloud/secretmanager/v1/BUILD.bazel b/third_party/googleapis/google/cloud/secretmanager/v1/BUILD.bazel index ad79e7030..8d116ae5e 100644 --- a/third_party/googleapis/google/cloud/secretmanager/v1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/secretmanager/v1/BUILD.bazel @@ -22,6 +22,7 @@ proto_library( "//google/api:resource_proto", "//google/iam/v1:iam_policy_proto", "//google/iam/v1:policy_proto", + "@com_google_protobuf//:duration_proto", "@com_google_protobuf//:empty_proto", "@com_google_protobuf//:field_mask_proto", "@com_google_protobuf//:timestamp_proto", @@ -61,11 +62,8 @@ java_grpc_library( java_gapic_library( name = "secretmanager_java_gapic", - src = ":secretmanager_proto_with_info", - gapic_yaml = "secretmanager_gapic.yaml", + srcs = [":secretmanager_proto_with_info"], grpc_service_config = "secretmanager_grpc_service_config.json", - package = "google.cloud.secretmanager.v1", - service_yaml = "secretmanager_v1.yaml", test_deps = [ ":secretmanager_java_grpc", "//google/iam/v1:iam_java_grpc", @@ -149,12 +147,10 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -228,6 +224,7 @@ nodejs_gapic_library( name = "secretmanager_nodejs_gapic", package_name = "@google-cloud/secret-manager", src = ":secretmanager_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "secretmanager_grpc_service_config.json", package = "google.cloud.secretmanager.v1", service_yaml = "secretmanager_v1.yaml", @@ -248,7 +245,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -264,12 +261,19 @@ ruby_grpc_library( deps = [":secretmanager_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "secretmanager_ruby_gapic", - src = ":secretmanager_proto_with_info", - gapic_yaml = "secretmanager_gapic.yaml", - package = "google.cloud.secretmanager.v1", - service_yaml = "secretmanager_v1.yaml", + srcs = [":secretmanager_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-secret_manager-v1", + "ruby-cloud-env-prefix=SECRET_MANAGER", + "ruby-cloud-product-url=https://cloud.google.com/secret-manager", + "ruby-cloud-api-id=secretmanager.googleapis.com", + "ruby-cloud-api-shortname=secretmanager", + ], + grpc_service_config = "secretmanager_grpc_service_config.json", + ruby_cloud_description = "Secret Manager is a secure and convenient storage system for API keys, passwords, certificates, and other sensitive data. Secret Manager provides a central place and single source of truth to manage, access, and audit secrets across Google Cloud.", + ruby_cloud_title = "Secret Manager V1", deps = [ ":secretmanager_ruby_grpc", ":secretmanager_ruby_proto", @@ -311,8 +315,8 @@ csharp_grpc_library( csharp_gapic_library( name = "secretmanager_csharp_gapic", srcs = [":secretmanager_proto_with_info"], - grpc_service_config = "secretmanager_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "secretmanager_grpc_service_config.json", deps = [ ":secretmanager_csharp_grpc", ":secretmanager_csharp_proto", diff --git a/third_party/googleapis/google/cloud/secretmanager/v1/resources.proto b/third_party/googleapis/google/cloud/secretmanager/v1/resources.proto index fa51c26a4..235444d19 100644 --- a/third_party/googleapis/google/cloud/secretmanager/v1/resources.proto +++ b/third_party/googleapis/google/cloud/secretmanager/v1/resources.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -18,6 +18,7 @@ package google.cloud.secretmanager.v1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; @@ -68,6 +69,27 @@ message Secret { // // No more than 64 labels can be assigned to a given resource. map labels = 4; + + // Optional. A list of up to 10 Pub/Sub topics to which messages are published when + // control plane operations are called on the secret or its versions. + repeated Topic topics = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Expiration policy attached to the [Secret][google.cloud.secretmanager.v1.Secret]. If specified the [Secret][google.cloud.secretmanager.v1.Secret] + // and all [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] will be automatically deleted at + // expiration. Expired secrets are irreversibly deleted. + // + // Expiration is *not* the recommended way to set time-based permissions. [IAM + // Conditions](https://cloud.google.com/secret-manager/docs/access-control#conditions) + // is recommended for granting time-based permissions because the operation + // can be reversed. + oneof expiration { + // Optional. Timestamp in UTC when the [Secret][google.cloud.secretmanager.v1.Secret] is scheduled to expire. This is + // always provided on output, regardless of what was sent on input. + google.protobuf.Timestamp expire_time = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Input only. The TTL for the [Secret][google.cloud.secretmanager.v1.Secret]. + google.protobuf.Duration ttl = 7 [(google.api.field_behavior) = INPUT_ONLY]; + } } // A secret version resource in the Secret Manager API. @@ -242,6 +264,20 @@ message CustomerManagedEncryptionStatus { string kms_key_version_name = 1 [(google.api.field_behavior) = REQUIRED]; } +// A Pub/Sub topic which Secret Manager will publish to when control plane +// events occur on this secret. +message Topic { + option (google.api.resource) = { + type: "pubsub.googleapis.com/Topic" + pattern: "projects/{project}/topics/{topic}" + }; + + // Required. The resource name of the Pub/Sub topic that will be published to, in the + // following format: `projects/*/topics/*`. For publication to succeed, the + // Secret Manager P4SA must have `pubsub.publisher` permissions on the topic. + string name = 1 [(google.api.field_behavior) = REQUIRED]; +} + // A secret payload resource in the Secret Manager API. This contains the // sensitive secret payload that is associated with a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. message SecretPayload { diff --git a/third_party/googleapis/google/cloud/secretmanager/v1/secretmanager_gapic.yaml b/third_party/googleapis/google/cloud/secretmanager/v1/secretmanager_gapic.yaml index 1e4b0785e..c92f69412 100644 --- a/third_party/googleapis/google/cloud/secretmanager/v1/secretmanager_gapic.yaml +++ b/third_party/googleapis/google/cloud/secretmanager/v1/secretmanager_gapic.yaml @@ -2,8 +2,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 # The settings of generated code in a specific language. language_settings: - java: - package_name: com.google.cloud.secretmanager.v1 python: package_name: google.cloud.secretmanager_v1.gapic go: diff --git a/third_party/googleapis/google/cloud/secretmanager/v1/service.proto b/third_party/googleapis/google/cloud/secretmanager/v1/service.proto index e54e856a6..1e9d3e04a 100644 --- a/third_party/googleapis/google/cloud/secretmanager/v1/service.proto +++ b/third_party/googleapis/google/cloud/secretmanager/v1/service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/cloud/secrets/v1beta1/BUILD.bazel b/third_party/googleapis/google/cloud/secrets/v1beta1/BUILD.bazel index 0b537fe6c..f44ee2e09 100644 --- a/third_party/googleapis/google/cloud/secrets/v1beta1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/secrets/v1beta1/BUILD.bazel @@ -59,11 +59,8 @@ java_grpc_library( java_gapic_library( name = "secretmanager_java_gapic", - src = ":secretmanager_proto_with_info", - gapic_yaml = "secretmanager_gapic.yaml", + srcs = [":secretmanager_proto_with_info"], grpc_service_config = "secretmanager_grpc_service_config.json", - package = "google.cloud.secrets.v1beta1", - service_yaml = "//google/cloud/secrets/v1beta1:secretmanager_v1beta1.yaml", test_deps = [ ":secretmanager_java_grpc", "//google/iam/v1:iam_java_grpc", @@ -147,12 +144,10 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -161,7 +156,7 @@ py_gapic_library( grpc_service_config = "secretmanager_grpc_service_config.json", opt_args = [ "python-gapic-namespace=google.cloud", - "python-gapic-name=secretmanager" + "python-gapic-name=secretmanager", ], ) @@ -230,6 +225,7 @@ nodejs_gapic_library( name = "secretmanager_nodejs_gapic", package_name = "@google-cloud/secret-manager", src = ":secretmanager_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "secretmanager_grpc_service_config.json", package = "google.cloud.secrets.v1beta1", service_yaml = "//google/cloud/secrets/v1beta1:secretmanager_v1beta1.yaml", @@ -250,7 +246,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -266,12 +262,19 @@ ruby_grpc_library( deps = [":secretmanager_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "secretmanager_ruby_gapic", - src = ":secretmanager_proto_with_info", - gapic_yaml = "secretmanager_gapic.yaml", - package = "google.cloud.secrets.v1beta1", - service_yaml = "//google/cloud/secrets/v1beta1:secretmanager_v1beta1.yaml", + srcs = [":secretmanager_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-secret_manager-v1beta1", + "ruby-cloud-env-prefix=SECRET_MANAGER", + "ruby-cloud-product-url=https://cloud.google.com/secret-manager", + "ruby-cloud-api-id=secretmanager.googleapis.com", + "ruby-cloud-api-shortname=secretmanager", + ], + grpc_service_config = "secretmanager_grpc_service_config.json", + ruby_cloud_description = "Secret Manager is a secure and convenient storage system for API keys, passwords, certificates, and other sensitive data. Secret Manager provides a central place and single source of truth to manage, access, and audit secrets across Google Cloud.", + ruby_cloud_title = "Secret Manager V1beta1", deps = [ ":secretmanager_ruby_grpc", ":secretmanager_ruby_proto", @@ -313,8 +316,8 @@ csharp_grpc_library( csharp_gapic_library( name = "secretmanager_csharp_gapic", srcs = [":secretmanager_proto_with_info"], - grpc_service_config = "secretmanager_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "secretmanager_grpc_service_config.json", deps = [ ":secretmanager_csharp_grpc", ":secretmanager_csharp_proto", diff --git a/third_party/googleapis/google/cloud/secrets/v1beta1/secretmanager_gapic.yaml b/third_party/googleapis/google/cloud/secrets/v1beta1/secretmanager_gapic.yaml index a72e23637..a8e932f3d 100644 --- a/third_party/googleapis/google/cloud/secrets/v1beta1/secretmanager_gapic.yaml +++ b/third_party/googleapis/google/cloud/secrets/v1beta1/secretmanager_gapic.yaml @@ -2,8 +2,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 # The settings of generated code in a specific language. language_settings: - java: - package_name: com.google.cloud.secretmanager.v1beta1 python: package_name: google.cloud.secretmanager_v1beta1.gapic go: diff --git a/third_party/googleapis/google/cloud/security/privateca/v1beta1/BUILD.bazel b/third_party/googleapis/google/cloud/security/privateca/v1beta1/BUILD.bazel index e2d907805..0e6a2666c 100644 --- a/third_party/googleapis/google/cloud/security/privateca/v1beta1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/security/privateca/v1beta1/BUILD.bazel @@ -70,11 +70,8 @@ java_grpc_library( java_gapic_library( name = "privateca_java_gapic", - src = ":privateca_proto_with_info", - gapic_yaml = "privateca_gapic.yaml", + srcs = [":privateca_proto_with_info"], grpc_service_config = "privateca_grpc_service_config.json", - package = "google.cloud.security.privateca.v1beta1", - service_yaml = "privateca_v1beta1.yaml", test_deps = [ ":privateca_java_grpc", ], @@ -132,9 +129,9 @@ go_gapic_library( service_yaml = "privateca_v1beta1.yaml", deps = [ ":privateca_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", "@io_bazel_rules_go//proto/wkt:duration_go_proto", ], ) @@ -159,12 +156,10 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -236,7 +231,9 @@ load( nodejs_gapic_library( name = "privateca_nodejs_gapic", + package_name = "@google-cloud/security-private-ca", src = ":privateca_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "privateca_grpc_service_config.json", package = "google.cloud.security.privateca.v1beta1", service_yaml = "privateca_v1beta1.yaml", @@ -257,7 +254,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -273,13 +270,20 @@ ruby_grpc_library( deps = [":privateca_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "privateca_ruby_gapic", - src = ":privateca_proto_with_info", - gapic_yaml = "privateca_gapic.yaml", + srcs = [":privateca_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-security-private_ca-v1beta1", + "ruby-cloud-gem-namespace=Google::Cloud::Security::PrivateCA::V1beta1", + "ruby-cloud-env-prefix=PRIVATE_CA", + "ruby-cloud-product-url=https://cloud.google.com/certificate-authority-service/", + "ruby-cloud-api-id=privateca.googleapis.com", + "ruby-cloud-api-shortname=privateca", + ], grpc_service_config = "privateca_grpc_service_config.json", - package = "google.cloud.security.privateca.v1beta1", - service_yaml = "privateca_v1beta1.yaml", + ruby_cloud_description = "Certificate Authority Service is a highly available, scalable Google Cloud service that enables you to simplify, automate, and customize the deployment, management, and security of private certificate authorities (CA).", + ruby_cloud_title = "Certificate Authority Service V1beta1", deps = [ ":privateca_ruby_grpc", ":privateca_ruby_proto", @@ -321,8 +325,8 @@ csharp_grpc_library( csharp_gapic_library( name = "privateca_csharp_gapic", srcs = [":privateca_proto_with_info"], - grpc_service_config = "privateca_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "privateca_grpc_service_config.json", deps = [ ":privateca_csharp_grpc", ":privateca_csharp_proto", diff --git a/third_party/googleapis/google/cloud/security/privateca/v1beta1/privateca_gapic.yaml b/third_party/googleapis/google/cloud/security/privateca/v1beta1/privateca_gapic.yaml index fe9ea438a..f9df21c05 100644 --- a/third_party/googleapis/google/cloud/security/privateca/v1beta1/privateca_gapic.yaml +++ b/third_party/googleapis/google/cloud/security/privateca/v1beta1/privateca_gapic.yaml @@ -1,8 +1,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 language_settings: - java: - package_name: com.google.cloud.security.privateca.v1beta1 python: package_name: google.cloud.security.privateca_v1beta1.gapic go: diff --git a/third_party/googleapis/google/cloud/securitycenter/settings/v1beta1/BUILD.bazel b/third_party/googleapis/google/cloud/securitycenter/settings/v1beta1/BUILD.bazel index e2b19056f..134d2373e 100644 --- a/third_party/googleapis/google/cloud/securitycenter/settings/v1beta1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/securitycenter/settings/v1beta1/BUILD.bazel @@ -1,4 +1,13 @@ # This file was automatically generated by BuildFileGenerator +# https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/bazel + +# Most of the manual changes to this file will be overwritten. +# It's **only** allowed to change the following rule attribute values: +# - names of *_gapic_assembly_* rules +# - certain parameters of *_gapic_library rules, including but not limited to: +# * extra_protoc_parameters +# * extra_protoc_file_parameters +# The complete list of preserved parameters can be found in the source code. # This is an API workspace, having public visibility by default makes perfect sense. package(default_visibility = ["//visibility:public"]) @@ -63,11 +72,8 @@ java_grpc_library( java_gapic_library( name = "settings_java_gapic", - src = ":settings_proto_with_info", - gapic_yaml = "securitycenter_settings_gapic.yaml", + srcs = [":settings_proto_with_info"], grpc_service_config = "securitycenter_settings_grpc_service_config.json", - package = "google.cloud.securitycenter.settings.v1beta1", - service_yaml = "securitycenter_settings.yaml", test_deps = [ ":settings_java_grpc", ], @@ -149,50 +155,14 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "settings_moved_proto", - srcs = [":settings_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:resource_proto", - "@com_google_protobuf//:empty_proto", - "@com_google_protobuf//:field_mask_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -py_proto_library( - name = "settings_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":settings_moved_proto"], -) - -py_grpc_library( - name = "settings_py_grpc", - srcs = [":settings_moved_proto"], - deps = [":settings_py_proto"], ) py_gapic_library( name = "settings_py_gapic", - src = ":settings_proto_with_info", - gapic_yaml = "securitycenter_settings_gapic.yaml", + srcs = [":settings_proto"], grpc_service_config = "securitycenter_settings_grpc_service_config.json", - package = "google.cloud.securitycenter.settings.v1beta1", - service_yaml = "securitycenter_settings.yaml", - deps = [ - ":settings_py_grpc", - ":settings_py_proto", - ], ) # Open Source Packages @@ -200,8 +170,6 @@ py_gapic_assembly_pkg( name = "securitycenter-settings-v1beta1-py", deps = [ ":settings_py_gapic", - ":settings_py_grpc", - ":settings_py_proto", ], ) @@ -262,6 +230,7 @@ load( nodejs_gapic_library( name = "settings_nodejs_gapic", src = ":settings_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "securitycenter_settings_grpc_service_config.json", package = "google.cloud.securitycenter.settings.v1beta1", service_yaml = "securitycenter_settings.yaml", @@ -345,8 +314,8 @@ csharp_grpc_library( csharp_gapic_library( name = "settings_csharp_gapic", srcs = [":settings_proto_with_info"], - grpc_service_config = "securitycenter_settings_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "securitycenter_settings_grpc_service_config.json", deps = [ ":settings_csharp_grpc", ":settings_csharp_proto", diff --git a/third_party/googleapis/google/cloud/securitycenter/settings/v1beta1/securitycenter_settings_gapic.yaml b/third_party/googleapis/google/cloud/securitycenter/settings/v1beta1/securitycenter_settings_gapic.yaml index 79f79eaae..b96b551c4 100644 --- a/third_party/googleapis/google/cloud/securitycenter/settings/v1beta1/securitycenter_settings_gapic.yaml +++ b/third_party/googleapis/google/cloud/securitycenter/settings/v1beta1/securitycenter_settings_gapic.yaml @@ -1,8 +1,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 language_settings: - java: - package_name: com.google.cloud.securitycenter.settings.v1beta1 python: package_name: google.cloud.securitycenter.settings_v1beta1.gapic go: diff --git a/third_party/googleapis/google/cloud/securitycenter/v1/BUILD.bazel b/third_party/googleapis/google/cloud/securitycenter/v1/BUILD.bazel index 4d9dbb7d3..cfdb5f0fd 100644 --- a/third_party/googleapis/google/cloud/securitycenter/v1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/securitycenter/v1/BUILD.bazel @@ -72,11 +72,8 @@ java_grpc_library( java_gapic_library( name = "securitycenter_java_gapic", - src = ":securitycenter_proto_with_info", - gapic_yaml = "securitycenter_gapic.yaml", + srcs = [":securitycenter_proto_with_info"], grpc_service_config = "securitycenter_grpc_service_config.json", - package = "google.cloud.securitycenter.v1", - service_yaml = "securitycenter_v1.yaml", test_deps = [ ":securitycenter_java_grpc", "//google/iam/v1:iam_java_grpc", @@ -166,12 +163,10 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -246,6 +241,7 @@ nodejs_gapic_library( name = "securitycenter_nodejs_gapic", package_name = "@google-cloud/security-center", src = ":securitycenter_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "securitycenter_grpc_service_config.json", package = "google.cloud.securitycenter.v1", service_yaml = "securitycenter_v1.yaml", @@ -266,7 +262,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -282,12 +278,19 @@ ruby_grpc_library( deps = [":securitycenter_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "securitycenter_ruby_gapic", - src = ":securitycenter_proto_with_info", - gapic_yaml = "securitycenter_gapic.yaml", - package = "google.cloud.securitycenter.v1", - service_yaml = "securitycenter_v1.yaml", + srcs = [":securitycenter_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-security_center-v1", + "ruby-cloud-env-prefix=SECURITY_CENTER", + "ruby-cloud-product-url=https://cloud.google.com/security-command-center", + "ruby-cloud-api-id=securitycenter.googleapis.com", + "ruby-cloud-api-shortname=securitycenter", + ], + grpc_service_config = "securitycenter_grpc_service_config.json", + ruby_cloud_description = "Security Command Center API provides access to temporal views of assets and findings within an organization.", + ruby_cloud_title = "Cloud Security Command Center V1", deps = [ ":securitycenter_ruby_grpc", ":securitycenter_ruby_proto", @@ -329,8 +332,8 @@ csharp_grpc_library( csharp_gapic_library( name = "securitycenter_csharp_gapic", srcs = [":securitycenter_proto_with_info"], - grpc_service_config = "securitycenter_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "securitycenter_grpc_service_config.json", deps = [ ":securitycenter_csharp_grpc", ":securitycenter_csharp_proto", diff --git a/third_party/googleapis/google/cloud/securitycenter/v1/finding.proto b/third_party/googleapis/google/cloud/securitycenter/v1/finding.proto index cf0873cfc..dcc62f8b9 100644 --- a/third_party/googleapis/google/cloud/securitycenter/v1/finding.proto +++ b/third_party/googleapis/google/cloud/securitycenter/v1/finding.proto @@ -56,6 +56,65 @@ message Finding { INACTIVE = 2; } + // The severity of the finding. + enum Severity { + // This value is used for findings when a source doesn't write a severity + // value. + SEVERITY_UNSPECIFIED = 0; + + // Vulnerability: + // A critical vulnerability is easily discoverable by an external actor, + // exploitable, and results in the direct ability to execute arbitrary code, + // exfiltrate data, and otherwise gain additional access and privileges to + // cloud resources and workloads. Examples include publicly accessible + // unprotected user data, public SSH access with weak or no passwords, etc. + // + // Threat: + // Indicates a threat that is able to access, modify, or delete data or + // execute unauthorized code within existing resources. + CRITICAL = 1; + + // Vulnerability: + // A high risk vulnerability can be easily discovered and exploited in + // combination with other vulnerabilities in order to gain direct access and + // the ability to execute arbitrary code, exfiltrate data, and otherwise + // gain additional access and privileges to cloud resources and workloads. + // An example is a database with weak or no passwords that is only + // accessible internally. This database could easily be compromised by an + // actor that had access to the internal network. + // + // Threat: + // Indicates a threat that is able to create new computational resources in + // an environment but not able to access data or execute code in existing + // resources. + HIGH = 2; + + // Vulnerability: + // A medium risk vulnerability could be used by an actor to gain access to + // resources or privileges that enable them to eventually (through multiple + // steps or a complex exploit) gain access and the ability to execute + // arbitrary code or exfiltrate data. An example is a service account with + // access to more projects than it should have. If an actor gains access to + // the service account, they could potentially use that access to manipulate + // a project the service account was not intended to. + // + // Threat: + // Indicates a threat that is able to cause operational impact but may not + // access data or execute unauthorized code. + MEDIUM = 3; + + // Vulnerability: + // A low risk vulnerability hampers a security organization’s ability to + // detect vulnerabilities or active threats in their deployment, or prevents + // the root cause investigation of security issues. An example is monitoring + // and logs being disabled for resource configurations and access. + // + // Threat: + // Indicates a threat that has obtained minimal access to an environment but + // is not able to access data, execute code, or create resources. + LOW = 4; + } + // The relative resource name of this finding. See: // https://cloud.google.com/apis/design/resource_names#relative_resource_name // Example: @@ -110,4 +169,8 @@ message Finding { // The time at which the finding was created in Security Command Center. google.protobuf.Timestamp create_time = 10; + + // The severity of the finding. This field is managed by the source that + // writes the finding. + Severity severity = 12; } diff --git a/third_party/googleapis/google/cloud/securitycenter/v1/notification_config.proto b/third_party/googleapis/google/cloud/securitycenter/v1/notification_config.proto index 90bd83c3a..1a9676d9d 100644 --- a/third_party/googleapis/google/cloud/securitycenter/v1/notification_config.proto +++ b/third_party/googleapis/google/cloud/securitycenter/v1/notification_config.proto @@ -78,14 +78,14 @@ message NotificationConfig { // The description of the notification config (max of 1024 characters). string description = 2; - // The PubSub topic to send notifications to. Its format is + // The Pub/Sub topic to send notifications to. Its format is // "projects/[project_id]/topics/[topic]". - string pubsub_topic = 3 [ - (google.api.resource_reference) = { type: "pubsub.googleapis.com/Topic" } - ]; + string pubsub_topic = 3 [(google.api.resource_reference) = { + type: "pubsub.googleapis.com/Topic" + }]; // Output only. The service account that needs "pubsub.topics.publish" - // permission to publish to the PubSub topic. + // permission to publish to the Pub/Sub topic. string service_account = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; // The config for triggering notifications. diff --git a/third_party/googleapis/google/cloud/securitycenter/v1/securitycenter_gapic.legacy.yaml b/third_party/googleapis/google/cloud/securitycenter/v1/securitycenter_gapic.legacy.yaml deleted file mode 100644 index 4ad8a0e3b..000000000 --- a/third_party/googleapis/google/cloud/securitycenter/v1/securitycenter_gapic.legacy.yaml +++ /dev/null @@ -1,478 +0,0 @@ -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.securitycenter.v1 - python: - package_name: google.cloud.securitycenter_v1.gapic - go: - package_name: cloud.google.com/go/securitycenter/apiv1 - csharp: - package_name: Google.Cloud.SecurityCenter.V1 - ruby: - package_name: Google::Cloud::SecurityCenter::V1 - php: - package_name: Google\Cloud\SecurityCenter\V1 - nodejs: - package_name: security-center.v1 - domain_layer_location: google-cloud -# A list of API interface configurations. -interfaces: - # The fully qualified name of the API interface. -- name: google.cloud.securitycenter.v1.SecurityCenter - # 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: - - name_pattern: organizations/{organization} - entity_name: organization - - name_pattern: organizations/{organization}/organizationSettings - entity_name: organization_settings - - name_pattern: organizations/{organization}/assets/{asset} - entity_name: asset - - name_pattern: organizations/{organization}/assets/{asset}/securityMarks - entity_name: asset_security_marks - - name_pattern: organizations/{organization}/sources/{source} - entity_name: source - - name_pattern: organizations/{organization}/sources/- - entity_name: organization_sources - - name_pattern: organizations/{organization}/sources/{source}/findings/{finding} - entity_name: finding - - name_pattern: organizations/{organization}/sources/{source}/findings/{finding}/securityMarks - entity_name: finding_security_marks - - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 480000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 480000 - total_timeout_millis: 600000 - # 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: CreateSource - flattening: - groups: - - parameters: - - parent - - source - required_fields: - - parent - - source - retry_codes_name: non_idempotent - retry_params_name: default - resource_name_treatment: STATIC_TYPES - field_name_patterns: - parent: organization - timeout_millis: 60000 - - name: CreateFinding - flattening: - groups: - - parameters: - - parent - - finding_id - - finding - required_fields: - - parent - - finding_id - - finding - retry_codes_name: non_idempotent - retry_params_name: default - resource_name_treatment: STATIC_TYPES - field_name_patterns: - parent: source - timeout_millis: 60000 - - name: GetIamPolicy - flattening: - groups: - - parameters: - - resource - required_fields: - - resource - retry_codes_name: idempotent - retry_params_name: default - resource_name_treatment: STATIC_TYPES - field_name_patterns: - resource: source - timeout_millis: 60000 - - name: GetOrganizationSettings - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - resource_name_treatment: STATIC_TYPES - field_name_patterns: - name: organization_settings - timeout_millis: 60000 - - name: GetSource - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - resource_name_treatment: STATIC_TYPES - field_name_patterns: - name: source - timeout_millis: 60000 - - name: GroupAssets - required_fields: - - parent - - group_by - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: group_by_results - retry_codes_name: idempotent - retry_params_name: default - resource_name_treatment: STATIC_TYPES - field_name_patterns: - parent: organization - timeout_millis: 60000 - - name: GroupFindings - flattening: - groups: - - parameters: - - parent - - group_by - required_fields: - - parent - - group_by - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: group_by_results - retry_codes_name: idempotent - retry_params_name: default - resource_name_treatment: STATIC_TYPES - field_name_patterns: - parent: source - timeout_millis: 60000 - - name: ListAssets - required_fields: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: list_assets_results - retry_codes_name: idempotent - retry_params_name: default - resource_name_treatment: STATIC_TYPES - field_name_patterns: - parent: organization - timeout_millis: 60000 - - name: ListFindings - required_fields: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: list_findings_results - retry_codes_name: idempotent - retry_params_name: default - resource_name_treatment: STATIC_TYPES - field_name_patterns: - parent: source - timeout_millis: 60000 - - name: ListSources - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: sources - retry_codes_name: idempotent - retry_params_name: default - resource_name_treatment: STATIC_TYPES - field_name_patterns: - parent: organization - timeout_millis: 60000 - - name: RunAssetDiscovery - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - retry_codes_name: non_idempotent - retry_params_name: default - resource_name_treatment: STATIC_TYPES - field_name_patterns: - parent: organization - long_running: - return_type: google.cloud.securitycenter.v1.RunAssetDiscoveryResponse - metadata_type: google.protobuf.Empty - initial_poll_delay_millis: 500 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 5000 - total_poll_timeout_millis: 300000 - timeout_millis: 60000 - - name: SetFindingState - flattening: - groups: - - parameters: - - name - - state - - start_time - required_fields: - - name - - state - - start_time - retry_codes_name: non_idempotent - retry_params_name: default - resource_name_treatment: STATIC_TYPES - field_name_patterns: - name: finding - timeout_millis: 60000 - - name: SetIamPolicy - flattening: - groups: - - parameters: - - resource - - policy - required_fields: - - resource - - policy - retry_codes_name: non_idempotent - retry_params_name: default - resource_name_treatment: STATIC_TYPES - field_name_patterns: - resource: source - timeout_millis: 60000 - - name: TestIamPermissions - flattening: - groups: - - parameters: - - resource - - permissions - required_fields: - - resource - - permissions - retry_codes_name: idempotent - retry_params_name: default - resource_name_treatment: STATIC_TYPES - field_name_patterns: - resource: source - timeout_millis: 60000 - - name: UpdateFinding - flattening: - groups: - - parameters: - - finding - required_fields: - - finding - retry_codes_name: non_idempotent - retry_params_name: default - resource_name_treatment: STATIC_TYPES - field_name_patterns: - finding.name: finding - timeout_millis: 60000 - - name: UpdateOrganizationSettings - flattening: - groups: - - parameters: - - organization_settings - required_fields: - - organization_settings - retry_codes_name: non_idempotent - retry_params_name: default - resource_name_treatment: STATIC_TYPES - field_name_patterns: - organization_settings.name: organization_settings - timeout_millis: 60000 - - name: UpdateSource - flattening: - groups: - - parameters: - - source - required_fields: - - source - retry_codes_name: non_idempotent - retry_params_name: default - resource_name_treatment: STATIC_TYPES - field_name_patterns: - source.name: source - timeout_millis: 60000 - - name: UpdateSecurityMarks - flattening: - groups: - - parameters: - - security_marks - required_fields: - - security_marks - retry_codes_name: non_idempotent - retry_params_name: default - resource_name_treatment: STATIC_TYPES - field_name_patterns: - security_marks.name: securitymarks_oneof - timeout_millis: 60000 - -# Mappings for STATIC_TYPES -# See https://docs.google.com/document/d/1meVVWXYOGRApOH_fKQf48qjce4ewDv_ZiDRClmmCs2w/edit -# -collection_oneofs: - - oneof_name: securitymarks_oneof - collection_names: - - asset_security_marks - - finding_security_marks -resource_name_generation: -- message_name: Asset - field_entity_map: - name: asset -- message_name: CreateSourceRequest - field_entity_map: - parent: organization -- message_name: CreateFindingRequest - field_entity_map: - parent: source -- message_name: Finding - field_entity_map: - name: finding -- message_name: google.iam.v1.GetIamPolicyRequest - field_entity_map: - resource: "*" -- message_name: GetOrganizationSettingsRequest - field_entity_map: - name: organization_settings -- message_name: GetSourceRequest - field_entity_map: - name: source -- message_name: GroupAssetsRequest - field_entity_map: - parent: organization -- message_name: GroupFindingsRequest - field_entity_map: - parent: source -- message_name: ListAssetsRequest - field_entity_map: - parent: organization -- message_name: ListFindingsRequest - field_entity_map: - parent: source -- message_name: ListSourcesRequest - field_entity_map: - parent: organization -- message_name: RunAssetDiscoveryRequest - field_entity_map: - parent: organization -- message_name: SetFindingStateRequest - field_entity_map: - name: finding -- message_name: google.iam.v1.SetIamPolicyRequest - field_entity_map: - resource: "*" -- message_name: Source - field_entity_map: - name: source -- message_name: google.iam.v1.TestIamPermissionsRequest - field_entity_map: - resource: "*" -- message_name: UpdateFindingRequest - field_entity_map: - name: finding -- message_name: UpdateOrganizationSettingsRequest - field_entity_map: - name: organization_settings -- message_name: UpdateSourceRequest - field_entity_map: - name: source -- message_name: UpdateSecurityMarksRequest - field_entity_map: - name: securitymarks_oneof diff --git a/third_party/googleapis/google/cloud/securitycenter/v1/securitycenter_gapic.yaml b/third_party/googleapis/google/cloud/securitycenter/v1/securitycenter_gapic.yaml index 93471ec14..5e6d9ae98 100644 --- a/third_party/googleapis/google/cloud/securitycenter/v1/securitycenter_gapic.yaml +++ b/third_party/googleapis/google/cloud/securitycenter/v1/securitycenter_gapic.yaml @@ -2,8 +2,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 # The settings of generated code in a specific language. language_settings: - java: - package_name: com.google.cloud.securitycenter.v1 python: package_name: google.cloud.securitycenter_v1.gapic go: diff --git a/third_party/googleapis/google/cloud/securitycenter/v1/securitycenter_service.proto b/third_party/googleapis/google/cloud/securitycenter/v1/securitycenter_service.proto index b660d4674..07f2f99d6 100644 --- a/third_party/googleapis/google/cloud/securitycenter/v1/securitycenter_service.proto +++ b/third_party/googleapis/google/cloud/securitycenter/v1/securitycenter_service.proto @@ -17,7 +17,6 @@ syntax = "proto3"; package google.cloud.securitycenter.v1; import public "google/cloud/securitycenter/v1/run_asset_discovery_response.proto"; - import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; @@ -47,8 +46,7 @@ option ruby_package = "Google::Cloud::SecurityCenter::V1"; // V1 APIs for Security Center service. service SecurityCenter { option (google.api.default_host) = "securitycenter.googleapis.com"; - option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; // Creates a source. rpc CreateSource(CreateSourceRequest) returns (Source) { @@ -70,20 +68,17 @@ service SecurityCenter { } // Creates a notification config. - rpc CreateNotificationConfig(CreateNotificationConfigRequest) - returns (NotificationConfig) { + rpc CreateNotificationConfig(CreateNotificationConfigRequest) returns (NotificationConfig) { option (google.api.http) = { post: "/v1/{parent=organizations/*}/notificationConfigs" body: "notification_config" }; - option (google.api.method_signature) = - "parent,config_id,notification_config"; + option (google.api.method_signature) = "parent,config_id,notification_config"; option (google.api.method_signature) = "parent,notification_config"; } // Deletes a notification config. - rpc DeleteNotificationConfig(DeleteNotificationConfigRequest) - returns (google.protobuf.Empty) { + rpc DeleteNotificationConfig(DeleteNotificationConfigRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1/{name=organizations/*/notificationConfigs/*}" }; @@ -91,8 +86,7 @@ service SecurityCenter { } // Gets the access control policy on the specified Source. - rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) - returns (google.iam.v1.Policy) { + rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) returns (google.iam.v1.Policy) { option (google.api.http) = { post: "/v1/{resource=organizations/*/sources/*}:getIamPolicy" body: "*" @@ -101,8 +95,7 @@ service SecurityCenter { } // Gets a notification config. - rpc GetNotificationConfig(GetNotificationConfigRequest) - returns (NotificationConfig) { + rpc GetNotificationConfig(GetNotificationConfigRequest) returns (NotificationConfig) { option (google.api.http) = { get: "/v1/{name=organizations/*/notificationConfigs/*}" }; @@ -110,8 +103,7 @@ service SecurityCenter { } // Gets the settings for an organization. - rpc GetOrganizationSettings(GetOrganizationSettingsRequest) - returns (OrganizationSettings) { + rpc GetOrganizationSettings(GetOrganizationSettingsRequest) returns (OrganizationSettings) { option (google.api.http) = { get: "/v1/{name=organizations/*/organizationSettings}" }; @@ -166,8 +158,7 @@ service SecurityCenter { } // Lists notification configs. - rpc ListNotificationConfigs(ListNotificationConfigsRequest) - returns (ListNotificationConfigsResponse) { + rpc ListNotificationConfigs(ListNotificationConfigsRequest) returns (ListNotificationConfigsResponse) { option (google.api.http) = { get: "/v1/{parent=organizations/*}/notificationConfigs" }; @@ -188,8 +179,7 @@ service SecurityCenter { // This API can only be called with limited frequency for an organization. If // it is called too frequently the caller will receive a TOO_MANY_REQUESTS // error. - rpc RunAssetDiscovery(RunAssetDiscoveryRequest) - returns (google.longrunning.Operation) { + rpc RunAssetDiscovery(RunAssetDiscoveryRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=organizations/*}/assets:runDiscovery" body: "*" @@ -211,8 +201,7 @@ service SecurityCenter { } // Sets the access control policy on the specified Source. - rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) - returns (google.iam.v1.Policy) { + rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) returns (google.iam.v1.Policy) { option (google.api.http) = { post: "/v1/{resource=organizations/*/sources/*}:setIamPolicy" body: "*" @@ -221,8 +210,7 @@ service SecurityCenter { } // Returns the permissions that a caller has on the specified source. - rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) - returns (google.iam.v1.TestIamPermissionsResponse) { + rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) returns (google.iam.v1.TestIamPermissionsResponse) { option (google.api.http) = { post: "/v1/{resource=organizations/*/sources/*}:testIamPermissions" body: "*" @@ -242,8 +230,7 @@ service SecurityCenter { // Updates a notification config. The following update // fields are allowed: description, pubsub_topic, streaming_config.filter - rpc UpdateNotificationConfig(UpdateNotificationConfigRequest) - returns (NotificationConfig) { + rpc UpdateNotificationConfig(UpdateNotificationConfigRequest) returns (NotificationConfig) { option (google.api.http) = { patch: "/v1/{notification_config.name=organizations/*/notificationConfigs/*}" body: "notification_config" @@ -253,8 +240,7 @@ service SecurityCenter { } // Updates an organization's settings. - rpc UpdateOrganizationSettings(UpdateOrganizationSettingsRequest) - returns (OrganizationSettings) { + rpc UpdateOrganizationSettings(UpdateOrganizationSettingsRequest) returns (OrganizationSettings) { option (google.api.http) = { patch: "/v1/{organization_settings.name=organizations/*/organizationSettings}" body: "organization_settings" @@ -301,15 +287,15 @@ message CreateFindingRequest { // greater than 0 characters in length. string finding_id = 2 [(google.api.field_behavior) = REQUIRED]; - // Required. The Finding being created. The name and security_marks will be - // ignored as they are both output only fields on this resource. + // Required. The Finding being created. The name and security_marks will be ignored as + // they are both output only fields on this resource. Finding finding = 3 [(google.api.field_behavior) = REQUIRED]; } // Request message for creating a notification config. message CreateNotificationConfigRequest { - // Required. Resource name of the new notification config's parent. Its format - // is "organizations/[organization_id]". + // Required. Resource name of the new notification config's parent. Its format is + // "organizations/[organization_id]". string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -323,11 +309,9 @@ message CreateNotificationConfigRequest { // characters, underscores or hyphens only. string config_id = 2 [(google.api.field_behavior) = REQUIRED]; - // Required. The notification config being created. The name and the service - // account will be ignored as they are both output only fields on this - // resource. - NotificationConfig notification_config = 3 - [(google.api.field_behavior) = REQUIRED]; + // Required. The notification config being created. The name and the service account + // will be ignored as they are both output only fields on this resource. + NotificationConfig notification_config = 3 [(google.api.field_behavior) = REQUIRED]; } // Request message for creating a source. @@ -341,8 +325,8 @@ message CreateSourceRequest { } ]; - // Required. The Source being created, only the display_name and description - // will be used. All other fields will be ignored. + // Required. The Source being created, only the display_name and description will be + // used. All other fields will be ignored. Source source = 2 [(google.api.field_behavior) = REQUIRED]; } @@ -372,8 +356,8 @@ message GetNotificationConfigRequest { // Request message for getting organization settings. message GetOrganizationSettingsRequest { - // Required. Name of the organization to get organization settings for. Its - // format is "organizations/[organization_id]/organizationSettings". + // Required. Name of the organization to get organization settings for. Its format is + // "organizations/[organization_id]/organizationSettings". string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -463,15 +447,15 @@ message GroupAssetsRequest { // For example, `resource_properties.size = 100` is a valid filter string. // // Use a partial match on the empty string to filter based on a property - // existing:`resource_properties.my_property : ""` + // existing: `resource_properties.my_property : ""` // // Use a negated partial match on the empty string to filter based on a // property not existing: `-resource_properties.my_property : ""` string filter = 2; - // Required. Expression that defines what assets fields to use for grouping. - // The string value should follow SQL syntax: comma separated list of fields. - // For example: + // Required. Expression that defines what assets fields to use for grouping. The string + // value should follow SQL syntax: comma separated list of fields. For + // example: // "security_center_properties.resource_project,security_center_properties.project". // // The following fields are supported when compare_duration is not set: @@ -598,6 +582,7 @@ message GroupFindingsRequest { // * category: `=`, `:` // * external_uri: `=`, `:` // * event_time: `=`, `>`, `<`, `>=`, `<=` + // * severity: `=`, `:` // // Usage: This should be milliseconds since epoch or an RFC3339 string. // Examples: @@ -616,9 +601,9 @@ message GroupFindingsRequest { // property not existing: `-source_properties.my_property : ""` string filter = 2; - // Required. Expression that defines what assets fields to use for grouping - // (including `state_change`). The string value should follow SQL syntax: - // comma separated list of fields. For example: "parent,resource_name". + // Required. Expression that defines what assets fields to use for grouping (including + // `state_change`). The string value should follow SQL syntax: comma separated + // list of fields. For example: "parent,resource_name". // // The following fields are supported: // @@ -626,6 +611,7 @@ message GroupFindingsRequest { // * category // * state // * parent + // * severity // // The following fields are supported when compare_duration is set: // @@ -901,10 +887,10 @@ message ListAssetsRequest { // read_time. google.protobuf.Duration compare_duration = 5; - // Optional. A field mask to specify the ListAssetsResult fields to be listed - // in the response. An empty field mask will list all fields. - google.protobuf.FieldMask field_mask = 7 - [(google.api.field_behavior) = OPTIONAL]; + // A field mask to specify the ListAssetsResult fields to be listed in the + // response. + // An empty field mask will list all fields. + google.protobuf.FieldMask field_mask = 7; // The value returned by the last `ListAssetsResponse`; indicates // that this is a continuation of a prior `ListAssets` call, and @@ -1000,13 +986,14 @@ message ListFindingsRequest { // // The following field and operator combinations are supported: // - // name: `=` - // parent: `=`, `:` - // resource_name: `=`, `:` - // state: `=`, `:` - // category: `=`, `:` - // external_uri: `=`, `:` - // event_time: `=`, `>`, `<`, `>=`, `<=` + // * name: `=` + // * parent: `=`, `:` + // * resource_name: `=`, `:` + // * state: `=`, `:` + // * category: `=`, `:` + // * external_uri: `=`, `:` + // * event_time: `=`, `>`, `<`, `>=`, `<=` + // * severity: `=`, `:` // // Usage: This should be milliseconds since epoch or an RFC3339 string. // Examples: @@ -1083,10 +1070,9 @@ message ListFindingsRequest { // read_time. google.protobuf.Duration compare_duration = 5; - // Optional. A field mask to specify the Finding fields to be listed in the - // response. An empty field mask will list all fields. - google.protobuf.FieldMask field_mask = 7 - [(google.api.field_behavior) = OPTIONAL]; + // A field mask to specify the Finding fields to be listed in the response. + // An empty field mask will list all fields. + google.protobuf.FieldMask field_mask = 7; // The value returned by the last `ListFindingsResponse`; indicates // that this is a continuation of a prior `ListFindings` call, and @@ -1157,7 +1143,7 @@ message ListFindingsResponse { StateChange state_change = 2; // Output only. Resource that is associated with this finding. - Resource resource = 3; + Resource resource = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Findings matching the list request. @@ -1191,14 +1177,13 @@ message SetFindingStateRequest { Finding.State state = 2 [(google.api.field_behavior) = REQUIRED]; // Required. The time at which the updated state takes effect. - google.protobuf.Timestamp start_time = 3 - [(google.api.field_behavior) = REQUIRED]; + google.protobuf.Timestamp start_time = 3 [(google.api.field_behavior) = REQUIRED]; } // Request message for running asset discovery for an organization. message RunAssetDiscoveryRequest { - // Required. Name of the organization to run asset discovery for. Its format - // is "organizations/[organization_id]". + // Required. Name of the organization to run asset discovery for. Its format is + // "organizations/[organization_id]". string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1209,8 +1194,8 @@ message RunAssetDiscoveryRequest { // Request message for updating or creating a finding. message UpdateFindingRequest { - // Required. The finding resource to update or create if it does not already - // exist. parent, security_marks, and update_time will be ignored. + // Required. The finding resource to update or create if it does not already exist. + // parent, security_marks, and update_time will be ignored. // // In the case of creation, the finding id portion of the name must be // alphanumeric and less than or equal to 32 characters and greater than 0 @@ -1230,8 +1215,7 @@ message UpdateFindingRequest { // Request message for updating a notification config. message UpdateNotificationConfigRequest { // Required. The notification config to update. - NotificationConfig notification_config = 1 - [(google.api.field_behavior) = REQUIRED]; + NotificationConfig notification_config = 1 [(google.api.field_behavior) = REQUIRED]; // The FieldMask to use when updating the notification config. // @@ -1242,12 +1226,11 @@ message UpdateNotificationConfigRequest { // Request message for updating an organization's settings. message UpdateOrganizationSettingsRequest { // Required. The organization settings resource to update. - OrganizationSettings organization_settings = 1 - [(google.api.field_behavior) = REQUIRED]; + OrganizationSettings organization_settings = 1 [(google.api.field_behavior) = REQUIRED]; // The FieldMask to use when updating the settings resource. // - // If empty all mutable fields will be updated. + // If empty all mutable fields will be updated. google.protobuf.FieldMask update_mask = 2; } diff --git a/third_party/googleapis/google/cloud/securitycenter/v1beta1/BUILD.bazel b/third_party/googleapis/google/cloud/securitycenter/v1beta1/BUILD.bazel index ec0c0220e..9ded42299 100644 --- a/third_party/googleapis/google/cloud/securitycenter/v1beta1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/securitycenter/v1beta1/BUILD.bazel @@ -69,11 +69,8 @@ java_grpc_library( java_gapic_library( name = "securitycenter_java_gapic", - src = ":securitycenter_proto_with_info", - gapic_yaml = "securitycenter_gapic.yaml", + srcs = [":securitycenter_proto_with_info"], grpc_service_config = "securitycenter_grpc_service_config.json", - package = "google.cloud.securitycenter.v1beta1", - service_yaml = "securitycenter_v1beta1.yaml", test_deps = [ ":securitycenter_java_grpc", "//google/iam/v1:iam_java_grpc", @@ -135,9 +132,9 @@ go_gapic_library( deps = [ ":securitycenter_go_proto", "//google/iam/v1:iam_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", "@io_bazel_rules_go//proto/wkt:duration_go_proto", "@io_bazel_rules_go//proto/wkt:struct_go_proto", ], @@ -163,12 +160,10 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -243,6 +238,7 @@ nodejs_gapic_library( name = "securitycenter_nodejs_gapic", package_name = "@google-cloud/security-center", src = ":securitycenter_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "securitycenter_grpc_service_config.json", package = "google.cloud.securitycenter.v1beta1", service_yaml = "securitycenter_v1beta1.yaml", @@ -326,8 +322,8 @@ csharp_grpc_library( csharp_gapic_library( name = "securitycenter_csharp_gapic", srcs = [":securitycenter_proto_with_info"], - grpc_service_config = "securitycenter_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "securitycenter_grpc_service_config.json", deps = [ ":securitycenter_csharp_grpc", ":securitycenter_csharp_proto", diff --git a/third_party/googleapis/google/cloud/securitycenter/v1beta1/securitycenter_gapic.legacy.yaml b/third_party/googleapis/google/cloud/securitycenter/v1beta1/securitycenter_gapic.legacy.yaml deleted file mode 100644 index b8d9230ce..000000000 --- a/third_party/googleapis/google/cloud/securitycenter/v1beta1/securitycenter_gapic.legacy.yaml +++ /dev/null @@ -1,460 +0,0 @@ -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.securitycenter.v1beta1 - python: - package_name: google.cloud.securitycenter_v1beta1.gapic - go: - package_name: cloud.google.com/go/securitycenter/apiv1beta1 - csharp: - package_name: Google.Cloud.Securitycenter.V1beta1 - ruby: - package_name: Google::Cloud::Securitycenter::V1beta1 - php: - package_name: Google\Cloud\Securitycenter\V1beta1 - nodejs: - package_name: security-center.v1beta1 - domain_layer_location: google-cloud -# 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: -- name_pattern: organizations/{organization} - entity_name: organization -- name_pattern: organizations/{organization}/assets/{asset}/securityMarks - entity_name: asset_security_marks -- name_pattern: organizations/{organization}/sources/{source}/findings/{finding}/securityMarks - entity_name: finding_security_marks -- name_pattern: organizations/{organization}/organizationSettings - entity_name: organization_settings -- name_pattern: organizations/{organization}/sources/{source} - entity_name: source -- name_pattern: organizations/{organization}/sources/{source}/findings/{finding} - entity_name: finding -collection_oneofs: -- oneof_name: securitymarks_oneof - collection_names: - - asset_security_marks - - finding_security_marks -# A list of API interface configurations. -interfaces: - # The fully qualified name of the API interface. -- name: google.cloud.securitycenter.v1beta1.SecurityCenter - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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: CreateSource - flattening: - groups: - - parameters: - - parent - - source - required_fields: - - parent - - source - retry_codes_name: non_idempotent - retry_params_name: default - resource_name_treatment: STATIC_TYPES - field_name_patterns: - parent: organization - timeout_millis: 60000 - - name: CreateFinding - flattening: - groups: - - parameters: - - parent - - finding_id - - finding - required_fields: - - parent - - finding_id - - finding - retry_codes_name: non_idempotent - retry_params_name: default - resource_name_treatment: STATIC_TYPES - field_name_patterns: - parent: source - timeout_millis: 60000 - - name: GetIamPolicy - flattening: - groups: - - parameters: - - resource - required_fields: - - resource - retry_codes_name: idempotent - retry_params_name: default - resource_name_treatment: STATIC_TYPES - field_name_patterns: - resource: source - timeout_millis: 60000 - - name: GetOrganizationSettings - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - resource_name_treatment: STATIC_TYPES - field_name_patterns: - name: organization_settings - timeout_millis: 60000 - - name: GetSource - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - resource_name_treatment: STATIC_TYPES - field_name_patterns: - name: source - timeout_millis: 60000 - - name: GroupAssets - required_fields: - - parent - - group_by - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: group_by_results - retry_codes_name: idempotent - retry_params_name: default - resource_name_treatment: STATIC_TYPES - field_name_patterns: - parent: organization - timeout_millis: 60000 - - name: GroupFindings - flattening: - groups: - - parameters: - - parent - - group_by - required_fields: - - parent - - group_by - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: group_by_results - retry_codes_name: idempotent - retry_params_name: default - resource_name_treatment: STATIC_TYPES - field_name_patterns: - parent: source - timeout_millis: 60000 - - name: ListAssets - required_fields: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: list_assets_results - retry_codes_name: idempotent - retry_params_name: default - resource_name_treatment: STATIC_TYPES - field_name_patterns: - parent: organization - timeout_millis: 60000 - - name: ListFindings - required_fields: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: findings - retry_codes_name: idempotent - retry_params_name: default - resource_name_treatment: STATIC_TYPES - field_name_patterns: - parent: source - timeout_millis: 60000 - - name: ListSources - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: sources - retry_codes_name: idempotent - retry_params_name: default - resource_name_treatment: STATIC_TYPES - field_name_patterns: - parent: organization - timeout_millis: 60000 - - name: RunAssetDiscovery - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - retry_codes_name: non_idempotent - retry_params_name: default - resource_name_treatment: STATIC_TYPES - field_name_patterns: - parent: organization - long_running: - return_type: google.protobuf.Empty - metadata_type: google.protobuf.Empty - initial_poll_delay_millis: 500 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 5000 - total_poll_timeout_millis: 300000 - timeout_millis: 60000 - - name: SetFindingState - flattening: - groups: - - parameters: - - name - - state - - start_time - required_fields: - - name - - state - - start_time - retry_codes_name: non_idempotent - retry_params_name: default - resource_name_treatment: STATIC_TYPES - field_name_patterns: - name: finding - timeout_millis: 60000 - - name: SetIamPolicy - flattening: - groups: - - parameters: - - resource - - policy - required_fields: - - resource - - policy - retry_codes_name: non_idempotent - retry_params_name: default - resource_name_treatment: STATIC_TYPES - field_name_patterns: - resource: source - timeout_millis: 60000 - - name: TestIamPermissions - flattening: - groups: - - parameters: - - resource - - permissions - required_fields: - - resource - - permissions - retry_codes_name: idempotent - retry_params_name: default - resource_name_treatment: STATIC_TYPES - field_name_patterns: - resource: source - timeout_millis: 60000 - - name: UpdateFinding - flattening: - groups: - - parameters: - - finding - required_fields: - - finding - retry_codes_name: non_idempotent - retry_params_name: default - resource_name_treatment: STATIC_TYPES - field_name_patterns: - finding.name: finding - timeout_millis: 60000 - - name: UpdateOrganizationSettings - flattening: - groups: - - parameters: - - organization_settings - required_fields: - - organization_settings - retry_codes_name: non_idempotent - retry_params_name: default - resource_name_treatment: STATIC_TYPES - field_name_patterns: - organization_settings.name: organization_settings - timeout_millis: 60000 - - name: UpdateSource - flattening: - groups: - - parameters: - - source - required_fields: - - source - retry_codes_name: non_idempotent - retry_params_name: default - resource_name_treatment: STATIC_TYPES - field_name_patterns: - source.name: source - timeout_millis: 60000 - - name: UpdateSecurityMarks - flattening: - groups: - - parameters: - - security_marks - required_fields: - - security_marks - retry_codes_name: non_idempotent - retry_params_name: default - resource_name_treatment: STATIC_TYPES - field_name_patterns: - security_marks.name: securitymarks_oneof - timeout_millis: 60000 -resource_name_generation: -- message_name: CreateSourceRequest - field_entity_map: - parent: organization -- message_name: CreateFindingRequest - field_entity_map: - parent: source -- message_name: google.iam.v1.GetIamPolicyRequest - field_entity_map: - resource: source -- message_name: GetOrganizationSettingsRequest - field_entity_map: - name: organization_settings -- message_name: GetSourceRequest - field_entity_map: - name: source -- message_name: GroupAssetsRequest - field_entity_map: - parent: organization -- message_name: GroupFindingsRequest - field_entity_map: - parent: source -- message_name: ListAssetsRequest - field_entity_map: - parent: organization -- message_name: ListFindingsRequest - field_entity_map: - parent: source -- message_name: ListSourcesRequest - field_entity_map: - parent: organization -- message_name: RunAssetDiscoveryRequest - field_entity_map: - parent: organization -- message_name: SetFindingStateRequest - field_entity_map: - name: finding -- message_name: google.iam.v1.SetIamPolicyRequest - field_entity_map: - resource: source -- message_name: google.iam.v1.TestIamPermissionsRequest - field_entity_map: - resource: source -- message_name: UpdateFindingRequest - field_entity_map: - name: finding -- message_name: UpdateOrganizationSettingsRequest - field_entity_map: - name: organization_settings -- message_name: UpdateSourceRequest - field_entity_map: - name: source -- message_name: UpdateSecurityMarksRequest - field_entity_map: - name: securitymarks_oneof diff --git a/third_party/googleapis/google/cloud/securitycenter/v1beta1/securitycenter_gapic.yaml b/third_party/googleapis/google/cloud/securitycenter/v1beta1/securitycenter_gapic.yaml index 64df2a236..4be0b9090 100644 --- a/third_party/googleapis/google/cloud/securitycenter/v1beta1/securitycenter_gapic.yaml +++ b/third_party/googleapis/google/cloud/securitycenter/v1beta1/securitycenter_gapic.yaml @@ -2,8 +2,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 # The settings of generated code in a specific language. language_settings: - java: - package_name: com.google.cloud.securitycenter.v1beta1 python: package_name: google.cloud.securitycenter_v1beta1.gapic go: diff --git a/third_party/googleapis/google/cloud/securitycenter/v1p1beta1/BUILD.bazel b/third_party/googleapis/google/cloud/securitycenter/v1p1beta1/BUILD.bazel index 39bfc75f1..516b05226 100644 --- a/third_party/googleapis/google/cloud/securitycenter/v1p1beta1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/securitycenter/v1p1beta1/BUILD.bazel @@ -81,11 +81,8 @@ java_grpc_library( java_gapic_library( name = "securitycenter_java_gapic", - src = ":securitycenter_proto_with_info", - gapic_yaml = "securitycenter_gapic.yaml", + srcs = [":securitycenter_proto_with_info"], grpc_service_config = "securitycenter_grpc_service_config.json", - package = "google.cloud.securitycenter.v1p1beta1", - service_yaml = "securitycenter_v1p1beta1.yaml", test_deps = [ ":securitycenter_java_grpc", "//google/iam/v1:iam_java_grpc", @@ -147,9 +144,9 @@ go_gapic_library( deps = [ ":securitycenter_go_proto", "//google/iam/v1:iam_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", "@io_bazel_rules_go//proto/wkt:duration_go_proto", "@io_bazel_rules_go//proto/wkt:struct_go_proto", ], @@ -175,12 +172,10 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -255,6 +250,7 @@ nodejs_gapic_library( name = "securitycenter_nodejs_gapic", package_name = "@google-cloud/security-center", src = ":securitycenter_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "securitycenter_grpc_service_config.json", package = "google.cloud.securitycenter.v1p1beta1", service_yaml = "securitycenter_v1p1beta1.yaml", @@ -275,7 +271,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -291,13 +287,19 @@ ruby_grpc_library( deps = [":securitycenter_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "securitycenter_ruby_gapic", - src = ":securitycenter_proto_with_info", - gapic_yaml = "securitycenter_gapic.yaml", + srcs = [":securitycenter_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-security_center-v1p1beta1", + "ruby-cloud-env-prefix=SECURITY_CENTER", + "ruby-cloud-product-url=https://cloud.google.com/security-command-center", + "ruby-cloud-api-id=securitycenter.googleapis.com", + "ruby-cloud-api-shortname=securitycenter", + ], grpc_service_config = "securitycenter_grpc_service_config.json", - package = "google.cloud.securitycenter.v1p1beta1", - service_yaml = "securitycenter_v1p1beta1.yaml", + ruby_cloud_description = "Security Command Center API provides access to temporal views of assets and findings within an organization.", + ruby_cloud_title = "Cloud Security Command Center V1p1beta1", deps = [ ":securitycenter_ruby_grpc", ":securitycenter_ruby_proto", @@ -339,8 +341,8 @@ csharp_grpc_library( csharp_gapic_library( name = "securitycenter_csharp_gapic", srcs = [":securitycenter_proto_with_info"], - grpc_service_config = "securitycenter_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "securitycenter_grpc_service_config.json", deps = [ ":securitycenter_csharp_grpc", ":securitycenter_csharp_proto", diff --git a/third_party/googleapis/google/cloud/securitycenter/v1p1beta1/securitycenter_gapic.yaml b/third_party/googleapis/google/cloud/securitycenter/v1p1beta1/securitycenter_gapic.yaml index 2669af7ea..f59aedeb3 100644 --- a/third_party/googleapis/google/cloud/securitycenter/v1p1beta1/securitycenter_gapic.yaml +++ b/third_party/googleapis/google/cloud/securitycenter/v1p1beta1/securitycenter_gapic.yaml @@ -1,8 +1,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 language_settings: - java: - package_name: com.google.cloud.securitycenter.v1p1beta1 python: package_name: google.cloud.securitycenter_v1p1beta1.gapic go: diff --git a/third_party/googleapis/google/cloud/servicedirectory/v1/BUILD.bazel b/third_party/googleapis/google/cloud/servicedirectory/v1/BUILD.bazel new file mode 100644 index 000000000..a21ad47b7 --- /dev/null +++ b/third_party/googleapis/google/cloud/servicedirectory/v1/BUILD.bazel @@ -0,0 +1,304 @@ +# This file was automatically generated by BuildFileGenerator +# https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/bazel + +# Most of the manual changes to this file will be overwritten. +# It's **only** allowed to change the following rule attribute values: +# - names of *_gapic_assembly_* rules +# - certain parameters of *_gapic_library rules, including but not limited to: +# * extra_protoc_parameters +# * extra_protoc_file_parameters +# The complete list of preserved parameters can be found in the source code. + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") +load( + "@com_google_googleapis_imports//:imports.bzl", + "csharp_gapic_assembly_pkg", + "csharp_gapic_library", + "csharp_grpc_library", + "csharp_proto_library", + "go_gapic_assembly_pkg", + "go_gapic_library", + "go_proto_library", + "go_test", + "java_gapic_assembly_gradle_pkg", + "java_gapic_library", + "java_gapic_test", + "java_grpc_library", + "java_proto_library", + "moved_proto_library", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", + "php_gapic_assembly_pkg", + "php_gapic_library", + "php_grpc_library", + "php_proto_library", + "proto_library_with_info", + "py_gapic_assembly_pkg", + "py_gapic_library", + "py_grpc_library", + "py_proto_library", + "ruby_gapic_assembly_pkg", + "ruby_cloud_gapic_library", + "ruby_grpc_library", + "ruby_proto_library", +) + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +proto_library( + name = "servicedirectory_proto", + srcs = [ + "endpoint.proto", + "lookup_service.proto", + "namespace.proto", + "registration_service.proto", + "service.proto", + ], + deps = [ + "//google/api:annotations_proto", + "//google/api:client_proto", + "//google/api:field_behavior_proto", + "//google/api:resource_proto", + "//google/iam/v1:iam_policy_proto", + "//google/iam/v1:policy_proto", + "@com_google_protobuf//:empty_proto", + "@com_google_protobuf//:field_mask_proto", + ], +) + +proto_library_with_info( + name = "servicedirectory_proto_with_info", + deps = [ + ":servicedirectory_proto", + "//google/cloud:common_resources_proto", + ], +) + +java_proto_library( + name = "servicedirectory_java_proto", + deps = [":servicedirectory_proto"], +) + +java_grpc_library( + name = "servicedirectory_java_grpc", + srcs = [":servicedirectory_proto"], + deps = [":servicedirectory_java_proto"], +) + +java_gapic_library( + name = "servicedirectory_java_gapic", + srcs = [":servicedirectory_proto_with_info"], + grpc_service_config = "servicedirectory_grpc_service_config.json", + test_deps = [ + ":servicedirectory_java_grpc", + "//google/iam/v1:iam_java_grpc", + ], + deps = [ + ":servicedirectory_java_proto", + "//google/iam/v1:iam_java_proto", + ], +) + +java_gapic_test( + name = "servicedirectory_java_gapic_test_suite", + test_classes = [ + "com.google.cloud.servicedirectory.v1.LookupServiceClientTest", + "com.google.cloud.servicedirectory.v1.RegistrationServiceClientTest", + ], + runtime_deps = [":servicedirectory_java_gapic_test"], +) + +# Open Source Packages +java_gapic_assembly_gradle_pkg( + name = "google-cloud-servicedirectory-v1-java", + deps = [ + ":servicedirectory_java_gapic", + ":servicedirectory_java_grpc", + ":servicedirectory_java_proto", + ":servicedirectory_proto", + ], +) + +go_proto_library( + name = "servicedirectory_go_proto", + compilers = ["@io_bazel_rules_go//proto:go_grpc"], + importpath = "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1", + protos = [":servicedirectory_proto"], + deps = [ + "//google/api:annotations_go_proto", + "//google/iam/v1:iam_go_proto", + ], +) + +go_gapic_library( + name = "servicedirectory_go_gapic", + srcs = [":servicedirectory_proto_with_info"], + grpc_service_config = "servicedirectory_grpc_service_config.json", + importpath = "cloud.google.com/go/servicedirectory/apiv1;servicedirectory", + service_yaml = "servicedirectory_v1.yaml", + deps = [ + ":servicedirectory_go_proto", + "//google/iam/v1:iam_go_proto", + ], +) + +go_test( + name = "servicedirectory_go_gapic_test", + srcs = [":servicedirectory_go_gapic_srcjar_test"], + embed = [":servicedirectory_go_gapic"], + importpath = "cloud.google.com/go/servicedirectory/apiv1", +) + +# Open Source Packages +go_gapic_assembly_pkg( + name = "gapi-cloud-servicedirectory-v1-go", + deps = [ + ":servicedirectory_go_gapic", + ":servicedirectory_go_gapic_srcjar-test.srcjar", + ":servicedirectory_go_proto", + ], +) + +py_gapic_library( + name = "servicedirectory_py_gapic", + srcs = [":servicedirectory_proto"], + grpc_service_config = "servicedirectory_grpc_service_config.json", +) + +# Open Source Packages +py_gapic_assembly_pkg( + name = "servicedirectory-v1-py", + deps = [ + ":servicedirectory_py_gapic", + ], +) + +php_proto_library( + name = "servicedirectory_php_proto", + deps = [":servicedirectory_proto"], +) + +php_grpc_library( + name = "servicedirectory_php_grpc", + srcs = [":servicedirectory_proto"], + deps = [":servicedirectory_php_proto"], +) + +php_gapic_library( + name = "servicedirectory_php_gapic", + src = ":servicedirectory_proto_with_info", + gapic_yaml = "servicedirectory_gapic.yaml", + grpc_service_config = "servicedirectory_grpc_service_config.json", + package = "google.cloud.servicedirectory.v1", + service_yaml = "servicedirectory_v1.yaml", + deps = [ + ":servicedirectory_php_grpc", + ":servicedirectory_php_proto", + ], +) + +# Open Source Packages +php_gapic_assembly_pkg( + name = "google-cloud-servicedirectory-v1-php", + deps = [ + ":servicedirectory_php_gapic", + ":servicedirectory_php_grpc", + ":servicedirectory_php_proto", + ], +) + +nodejs_gapic_library( + name = "servicedirectory_nodejs_gapic", + package_name = "@google-cloud/service-directory", + src = ":servicedirectory_proto_with_info", + extra_protoc_parameters = ["metadata"], + grpc_service_config = "servicedirectory_grpc_service_config.json", + main_service = "ServiceDirectory", + package = "google.cloud.servicedirectory.v1", + service_yaml = "servicedirectory_v1.yaml", + deps = [], +) + +nodejs_gapic_assembly_pkg( + name = "servicedirectory-v1-nodejs", + deps = [ + ":servicedirectory_nodejs_gapic", + ":servicedirectory_proto", + ], +) + +ruby_proto_library( + name = "servicedirectory_ruby_proto", + deps = [":servicedirectory_proto"], +) + +ruby_grpc_library( + name = "servicedirectory_ruby_grpc", + srcs = [":servicedirectory_proto"], + deps = [":servicedirectory_ruby_proto"], +) + +ruby_cloud_gapic_library( + name = "servicedirectory_ruby_gapic", + srcs = [":servicedirectory_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-service_directory-v1", + "ruby-cloud-env-prefix=SERVICE_DIRECTORY", + "ruby-cloud-product-url=https://cloud.google.com/service-directory", + "ruby-cloud-api-id=servicedirectory.googleapis.com", + "ruby-cloud-api-shortname=servicedirectory", + ], + grpc_service_config = "servicedirectory_grpc_service_config.json", + ruby_cloud_description = "Service Directory is the single place to register, browse, and resolve application services.", + ruby_cloud_title = "Service Directory V1", + deps = [ + ":servicedirectory_ruby_grpc", + ":servicedirectory_ruby_proto", + ], +) + +# Open Source Packages +ruby_gapic_assembly_pkg( + name = "google-cloud-servicedirectory-v1-ruby", + deps = [ + ":servicedirectory_ruby_gapic", + ":servicedirectory_ruby_grpc", + ":servicedirectory_ruby_proto", + ], +) + +csharp_proto_library( + name = "servicedirectory_csharp_proto", + deps = [":servicedirectory_proto"], +) + +csharp_grpc_library( + name = "servicedirectory_csharp_grpc", + srcs = [":servicedirectory_proto"], + deps = [":servicedirectory_csharp_proto"], +) + +csharp_gapic_library( + name = "servicedirectory_csharp_gapic", + srcs = [":servicedirectory_proto_with_info"], + common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "servicedirectory_grpc_service_config.json", + deps = [ + ":servicedirectory_csharp_grpc", + ":servicedirectory_csharp_proto", + ], +) + +# Open Source Packages +csharp_gapic_assembly_pkg( + name = "google-cloud-servicedirectory-v1-csharp", + deps = [ + ":servicedirectory_csharp_gapic", + ":servicedirectory_csharp_grpc", + ":servicedirectory_csharp_proto", + ], +) diff --git a/third_party/googleapis/google/cloud/servicedirectory/v1/endpoint.proto b/third_party/googleapis/google/cloud/servicedirectory/v1/endpoint.proto new file mode 100644 index 000000000..1f8670067 --- /dev/null +++ b/third_party/googleapis/google/cloud/servicedirectory/v1/endpoint.proto @@ -0,0 +1,75 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +syntax = "proto3"; + +package google.cloud.servicedirectory.v1; + +import "google/api/annotations.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.ServiceDirectory.V1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1;servicedirectory"; +option java_multiple_files = true; +option java_outer_classname = "EndpointProto"; +option java_package = "com.google.cloud.servicedirectory.v1"; +option php_namespace = "Google\\Cloud\\ServiceDirectory\\V1"; +option ruby_package = "Google::Cloud::ServiceDirectory::V1"; + +// An individual endpoint that provides a +// [service][google.cloud.servicedirectory.v1.Service]. The service must +// already exist to create an endpoint. +message Endpoint { + option (google.api.resource) = { + type: "servicedirectory.googleapis.com/Endpoint" + pattern: "projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}/endpoints/{endpoint}" + }; + + // Immutable. The resource name for the endpoint in the format + // 'projects/*/locations/*/namespaces/*/services/*/endpoints/*'. + string name = 1 [(google.api.field_behavior) = IMMUTABLE]; + // Optional. An IPv4 or IPv6 address. Service Directory will reject bad + // addresses like: + // "8.8.8" + // "8.8.8.8:53" + // "test:bad:address" + // "[::1]" + // "[::1]:8080" + // Limited to 45 characters. + string address = 2 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Service Directory will reject values outside of [0, 65535]. + int32 port = 3 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Annotations for the endpoint. This data can be consumed by + // service clients. Restrictions: + // - The entire annotations dictionary may contain up to 512 characters, + // spread accoss all key-value pairs. Annotations that goes beyond any + // these limits will be rejected. + // - Valid annotation keys have two segments: an optional prefix and name, + // separated by a slash (/). The name segment is required and must be 63 + // characters or less, beginning and ending with an alphanumeric character + // ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and + // alphanumerics between. The prefix is optional. If specified, the prefix + // must be a DNS subdomain: a series of DNS labels separated by dots (.), + // not longer than 253 characters in total, followed by a slash (/). + // Annotations that fails to meet these requirements will be rejected. + // - The '(*.)google.com/' and '(*.)googleapis.com/' prefixes are reserved + // for system annotations managed by Service Directory. If the user tries + // to write to these keyspaces, those entries will be silently ignored by + // the system. + // Note: This field is equivalent to the 'metadata' field in the v1beta1 API. + // They have the same syntax and read/write to the same location in Service + // Directory. + map annotations = 5 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/third_party/googleapis/google/cloud/servicedirectory/v1/lookup_service.proto b/third_party/googleapis/google/cloud/servicedirectory/v1/lookup_service.proto new file mode 100644 index 000000000..c51582b31 --- /dev/null +++ b/third_party/googleapis/google/cloud/servicedirectory/v1/lookup_service.proto @@ -0,0 +1,93 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.servicedirectory.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/servicedirectory/v1/service.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.ServiceDirectory.V1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1;servicedirectory"; +option java_multiple_files = true; +option java_outer_classname = "LookupServiceProto"; +option java_package = "com.google.cloud.servicedirectory.v1"; +option php_namespace = "Google\\Cloud\\ServiceDirectory\\V1"; +option ruby_package = "Google::Cloud::ServiceDirectory::V1"; + +// Service Directory API for looking up service data at runtime. +service LookupService { + option (google.api.default_host) = "servicedirectory.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Returns a [service][google.cloud.servicedirectory.v1.Service] and its + // associated endpoints. + // Resolving a service is not considered an active developer method. + rpc ResolveService(ResolveServiceRequest) returns (ResolveServiceResponse) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/namespaces/*/services/*}:resolve" + body: "*" + }; + } +} + +// The request message for +// [LookupService.ResolveService][google.cloud.servicedirectory.v1.LookupService.ResolveService]. +// Looks up a service by its name, returns the service and its endpoints. +message ResolveServiceRequest { + // Required. The name of the service to resolve. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "servicedirectory.googleapis.com/Service" + } + ]; + + // Optional. The maximum number of endpoints to return. Defaults to 25. + // Maximum is 100. If a value less than one is specified, the Default is used. + // If a value greater than the Maximum is specified, the Maximum is used. + int32 max_endpoints = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The filter applied to the endpoints of the resolved service. + // + // General filter string syntax: + // () + // can be "name" or "metadata." for map field. + // can be "<, >, <=, >=, !=, =, :". Of which ":" means HAS and is + // roughly the same as "=". + // must be the same data type as the field. + // can be "AND, OR, NOT". + // + // Examples of valid filters: + // * "metadata.owner" returns Endpoints that have a label with the + // key "owner", this is the same as "metadata:owner" + // * "metadata.protocol=gRPC" returns Endpoints that have key/value + // "protocol=gRPC" + // * "metadata.owner!=sd AND metadata.foo=bar" returns + // Endpoints that have "owner" field in metadata with a value that is not + // "sd" AND have the key/value foo=bar. + string endpoint_filter = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response message for +// [LookupService.ResolveService][google.cloud.servicedirectory.v1.LookupService.ResolveService]. +message ResolveServiceResponse { + Service service = 1; +} diff --git a/third_party/googleapis/google/cloud/servicedirectory/v1/namespace.proto b/third_party/googleapis/google/cloud/servicedirectory/v1/namespace.proto new file mode 100644 index 000000000..bd7f81484 --- /dev/null +++ b/third_party/googleapis/google/cloud/servicedirectory/v1/namespace.proto @@ -0,0 +1,49 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.servicedirectory.v1; + +import "google/api/annotations.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.ServiceDirectory.V1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1;servicedirectory"; +option java_multiple_files = true; +option java_outer_classname = "NamespaceProto"; +option java_package = "com.google.cloud.servicedirectory.v1"; +option php_namespace = "Google\\Cloud\\ServiceDirectory\\V1"; +option ruby_package = "Google::Cloud::ServiceDirectory::V1"; + +// A container for [services][google.cloud.servicedirectory.v1.Service]. +// Namespaces allow administrators to group services together and define +// permissions for a collection of services. +message Namespace { + option (google.api.resource) = { + type: "servicedirectory.googleapis.com/Namespace" + pattern: "projects/{project}/locations/{location}/namespaces/{namespace}" + }; + + // Immutable. The resource name for the namespace in the format + // 'projects/*/locations/*/namespaces/*'. + string name = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // Optional. Resource labels associated with this Namespace. + // No more than 64 user labels can be associated with a given resource. Label + // keys and values can be no longer than 63 characters. + map labels = 2 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/third_party/googleapis/google/cloud/servicedirectory/v1/registration_service.proto b/third_party/googleapis/google/cloud/servicedirectory/v1/registration_service.proto new file mode 100644 index 000000000..8c0a61a70 --- /dev/null +++ b/third_party/googleapis/google/cloud/servicedirectory/v1/registration_service.proto @@ -0,0 +1,595 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.servicedirectory.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/servicedirectory/v1/endpoint.proto"; +import "google/cloud/servicedirectory/v1/namespace.proto"; +import "google/cloud/servicedirectory/v1/service.proto"; +import "google/iam/v1/iam_policy.proto"; +import "google/iam/v1/policy.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.ServiceDirectory.V1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1;servicedirectory"; +option java_multiple_files = true; +option java_outer_classname = "RegistrationServiceProto"; +option java_package = "com.google.cloud.servicedirectory.v1"; +option php_namespace = "Google\\Cloud\\ServiceDirectory\\V1"; +option ruby_package = "Google::Cloud::ServiceDirectory::V1"; + +// Service Directory API for registering services. It defines the following +// resource model: +// +// - The API has a collection of +// [Namespace][google.cloud.servicedirectory.v1.Namespace] +// resources, named `projects/*/locations/*/namespaces/*`. +// +// - Each Namespace has a collection of +// [Service][google.cloud.servicedirectory.v1.Service] resources, named +// `projects/*/locations/*/namespaces/*/services/*`. +// +// - Each Service has a collection of +// [Endpoint][google.cloud.servicedirectory.v1.Endpoint] +// resources, named +// `projects/*/locations/*/namespaces/*/services/*/endpoints/*`. +service RegistrationService { + option (google.api.default_host) = "servicedirectory.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Creates a namespace, and returns the new Namespace. + rpc CreateNamespace(CreateNamespaceRequest) returns (Namespace) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/namespaces" + body: "namespace" + }; + option (google.api.method_signature) = "parent,namespace,namespace_id"; + } + + // Lists all namespaces. + rpc ListNamespaces(ListNamespacesRequest) returns (ListNamespacesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/namespaces" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets a namespace. + rpc GetNamespace(GetNamespaceRequest) returns (Namespace) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/namespaces/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates a namespace. + rpc UpdateNamespace(UpdateNamespaceRequest) returns (Namespace) { + option (google.api.http) = { + patch: "/v1/{namespace.name=projects/*/locations/*/namespaces/*}" + body: "namespace" + }; + option (google.api.method_signature) = "namespace,update_mask"; + } + + // Deletes a namespace. This also deletes all services and endpoints in + // the namespace. + rpc DeleteNamespace(DeleteNamespaceRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/namespaces/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a service, and returns the new Service. + rpc CreateService(CreateServiceRequest) returns (Service) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/namespaces/*}/services" + body: "service" + }; + option (google.api.method_signature) = "parent,service,service_id"; + } + + // Lists all services belonging to a namespace. + rpc ListServices(ListServicesRequest) returns (ListServicesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/namespaces/*}/services" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets a service. + rpc GetService(GetServiceRequest) returns (Service) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/namespaces/*/services/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates a service. + rpc UpdateService(UpdateServiceRequest) returns (Service) { + option (google.api.http) = { + patch: "/v1/{service.name=projects/*/locations/*/namespaces/*/services/*}" + body: "service" + }; + option (google.api.method_signature) = "service,update_mask"; + } + + // Deletes a service. This also deletes all endpoints associated with + // the service. + rpc DeleteService(DeleteServiceRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/namespaces/*/services/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a endpoint, and returns the new Endpoint. + rpc CreateEndpoint(CreateEndpointRequest) returns (Endpoint) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/namespaces/*/services/*}/endpoints" + body: "endpoint" + }; + option (google.api.method_signature) = "parent,endpoint,endpoint_id"; + } + + // Lists all endpoints. + rpc ListEndpoints(ListEndpointsRequest) returns (ListEndpointsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/namespaces/*/services/*}/endpoints" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets a endpoint. + rpc GetEndpoint(GetEndpointRequest) returns (Endpoint) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/namespaces/*/services/*/endpoints/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates a endpoint. + rpc UpdateEndpoint(UpdateEndpointRequest) returns (Endpoint) { + option (google.api.http) = { + patch: "/v1/{endpoint.name=projects/*/locations/*/namespaces/*/services/*/endpoints/*}" + body: "endpoint" + }; + option (google.api.method_signature) = "endpoint,update_mask"; + } + + // Deletes a endpoint. + rpc DeleteEndpoint(DeleteEndpointRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/namespaces/*/services/*/endpoints/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Gets the IAM Policy for a resource (namespace or service only). + rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) + returns (google.iam.v1.Policy) { + option (google.api.http) = { + post: "/v1/{resource=projects/*/locations/*/namespaces/*}:getIamPolicy" + body: "*" + additional_bindings { + post: "/v1/{resource=projects/*/locations/*/namespaces/*/services/*}:getIamPolicy" + body: "*" + } + }; + } + + // Sets the IAM Policy for a resource (namespace or service only). + rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) + returns (google.iam.v1.Policy) { + option (google.api.http) = { + post: "/v1/{resource=projects/*/locations/*/namespaces/*}:setIamPolicy" + body: "*" + additional_bindings { + post: "/v1/{resource=projects/*/locations/*/namespaces/*/services/*}:setIamPolicy" + body: "*" + } + }; + } + + // Tests IAM permissions for a resource (namespace or service only). + rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) + returns (google.iam.v1.TestIamPermissionsResponse) { + option (google.api.http) = { + post: "/v1/{resource=projects/*/locations/*/namespaces/*}:testIamPermissions" + body: "*" + additional_bindings { + post: "/v1/{resource=projects/*/locations/*/namespaces/*/services/*}:testIamPermissions" + body: "*" + } + }; + } +} + +// The request message for +// [RegistrationService.CreateNamespace][google.cloud.servicedirectory.v1.RegistrationService.CreateNamespace]. +message CreateNamespaceRequest { + // Required. The resource name of the project and location the namespace + // will be created in. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The Resource ID must be 1-63 characters long, and comply with + // RFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must + // be a dash, lowercase letter, or digit, except the last character, which + // cannot be a dash. + string namespace_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. A namespace with initial fields set. + Namespace namespace = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// The request message for +// [RegistrationService.ListNamespaces][google.cloud.servicedirectory.v1.RegistrationService.ListNamespaces]. +message ListNamespacesRequest { + // Required. The resource name of the project and location whose namespaces + // we'd like to list. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Optional. The maximum number of items to return. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The next_page_token value returned from a previous List request, + // if any. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The filter to list result by. + // + // General filter string syntax: + // () + // can be "name", or "labels." for map field. + // can be "<, >, <=, >=, !=, =, :". Of which ":" means HAS, and + // is roughly the same as "=". + // must be the same data type as field. + // can be "AND, OR, NOT". + // + // Examples of valid filters: + // * "labels.owner" returns Namespaces that have a label with the key "owner" + // this is the same as "labels:owner". + // * "labels.protocol=gRPC" returns Namespaces that have key/value + // "protocol=gRPC". + // * "name>projects/my-project/locations/us-east/namespaces/namespace-c" + // returns Namespaces that have name that is alphabetically later than the + // string, so "namespace-e" will be returned but "namespace-a" will not be. + // * "labels.owner!=sd AND labels.foo=bar" returns Namespaces that have + // "owner" in label key but value is not "sd" AND have key/value foo=bar. + // * "doesnotexist.foo=bar" returns an empty list. Note that Namespace doesn't + // have a field called "doesnotexist". Since the filter does not match any + // Namespaces, it returns no results. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The order to list result by. + // + // General order by string syntax: + // () (,) + // allows values {"name"} + // ascending or descending order by . If this is left + // blank, "asc" is used. + // Note that an empty order_by string result in default order, which is order + // by name in ascending order. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response message for +// [RegistrationService.ListNamespaces][google.cloud.servicedirectory.v1.RegistrationService.ListNamespaces]. +message ListNamespacesResponse { + // The list of namespaces. + repeated Namespace namespaces = 1; + + // Token to retrieve the next page of results, or empty if there are no + // more results in the list. + string next_page_token = 2; +} + +// The request message for +// [RegistrationService.GetNamespace][google.cloud.servicedirectory.v1.RegistrationService.GetNamespace]. +message GetNamespaceRequest { + // Required. The name of the namespace to retrieve. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "servicedirectory.googleapis.com/Namespace" + } + ]; +} + +// The request message for +// [RegistrationService.UpdateNamespace][google.cloud.servicedirectory.v1.RegistrationService.UpdateNamespace]. +message UpdateNamespaceRequest { + // Required. The updated namespace. + Namespace namespace = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. List of fields to be updated in this request. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// The request message for +// [RegistrationService.DeleteNamespace][google.cloud.servicedirectory.v1.RegistrationService.DeleteNamespace]. +message DeleteNamespaceRequest { + // Required. The name of the namespace to delete. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "servicedirectory.googleapis.com/Namespace" + } + ]; +} + +// The request message for +// [RegistrationService.CreateService][google.cloud.servicedirectory.v1.RegistrationService.CreateService]. +message CreateServiceRequest { + // Required. The resource name of the namespace this service will belong to. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "servicedirectory.googleapis.com/Namespace" + } + ]; + + // Required. The Resource ID must be 1-63 characters long, and comply with + // RFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must + // be a dash, lowercase letter, or digit, except the last character, which + // cannot be a dash. + string service_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. A service with initial fields set. + Service service = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// The request message for +// [RegistrationService.ListServices][google.cloud.servicedirectory.v1.RegistrationService.ListServices]. +message ListServicesRequest { + // Required. The resource name of the namespace whose services we'd + // like to list. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "servicedirectory.googleapis.com/Namespace" + } + ]; + + // Optional. The maximum number of items to return. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The next_page_token value returned from a previous List request, + // if any. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The filter to list result by. + // + // General filter string syntax: + // () + // can be "name", or "metadata." for map field. + // can be "<, >, <=, >=, !=, =, :". Of which ":" means HAS, and + // is roughly the same as "=". + // must be the same data type as field. + // can be "AND, OR, NOT". + // + // Examples of valid filters: + // * "metadata.owner" returns Services that have a label with the key "owner" + // this is the same as "metadata:owner". + // * "metadata.protocol=gRPC" returns Services that have key/value + // "protocol=gRPC". + // * "name>projects/my-project/locations/us-east/namespaces/my-namespace/services/service-c" + // returns Services that have name that is alphabetically later than the + // string, so "service-e" will be returned but "service-a" will not be. + // * "metadata.owner!=sd AND metadata.foo=bar" returns Services that have + // "owner" in label key but value is not "sd" AND have key/value foo=bar. + // * "doesnotexist.foo=bar" returns an empty list. Note that Service doesn't + // have a field called "doesnotexist". Since the filter does not match any + // Services, it returns no results. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The order to list result by. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response message for +// [RegistrationService.ListServices][google.cloud.servicedirectory.v1.RegistrationService.ListServices]. +message ListServicesResponse { + // The list of services. + repeated Service services = 1; + + // Token to retrieve the next page of results, or empty if there are no + // more results in the list. + string next_page_token = 2; +} + +// The request message for +// [RegistrationService.GetService][google.cloud.servicedirectory.v1.RegistrationService.GetService]. +// This should not be used for looking up a service. Insead, use the `resolve` +// method as it will contain all endpoints and associated metadata. +message GetServiceRequest { + // Required. The name of the service to get. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "servicedirectory.googleapis.com/Service" + } + ]; +} + +// The request message for +// [RegistrationService.UpdateService][google.cloud.servicedirectory.v1.RegistrationService.UpdateService]. +message UpdateServiceRequest { + // Required. The updated service. + Service service = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. List of fields to be updated in this request. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// The request message for +// [RegistrationService.DeleteService][google.cloud.servicedirectory.v1.RegistrationService.DeleteService]. +message DeleteServiceRequest { + // Required. The name of the service to delete. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "servicedirectory.googleapis.com/Service" + } + ]; +} + +// The request message for +// [RegistrationService.CreateEndpoint][google.cloud.servicedirectory.v1.RegistrationService.CreateEndpoint]. +message CreateEndpointRequest { + // Required. The resource name of the service that this endpoint provides. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "servicedirectory.googleapis.com/Service" + } + ]; + + // Required. The Resource ID must be 1-63 characters long, and comply with + // RFC1035. + // Specifically, the name must be 1-63 characters long and match the regular + // expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?` which means the first + // character must be a lowercase letter, and all following characters must + // be a dash, lowercase letter, or digit, except the last character, which + // cannot be a dash. + string endpoint_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. A endpoint with initial fields set. + Endpoint endpoint = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// The request message for +// [RegistrationService.ListEndpoints][google.cloud.servicedirectory.v1.RegistrationService.ListEndpoints]. +message ListEndpointsRequest { + // Required. The resource name of the service whose endpoints we'd like to + // list. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "servicedirectory.googleapis.com/Service" + } + ]; + + // Optional. The maximum number of items to return. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The next_page_token value returned from a previous List request, + // if any. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The filter to list result by. + // + // General filter string syntax: + // () + // can be "name", "address", "port" or "metadata." for map field. + // can be "<, >, <=, >=, !=, =, :". Of which ":" means HAS, and + // is roughly the same as "=". + // must be the same data type as field. + // can be "AND, OR, NOT". + // + // Examples of valid filters: + // * "metadata.owner" returns Endpoints that have a label with the key "owner" + // this is the same as "metadata:owner". + // * "metadata.protocol=gRPC" returns Endpoints that have key/value + // "protocol=gRPC". + // * "address=192.108.1.105" returns Endpoints that have this address. + // * "port>8080" returns Endpoints that have port number larger than 8080. + // * "name>projects/my-project/locations/us-east/namespaces/my-namespace/services/my-service/endpoints/endpoint-c" + // returns Endpoints that have name that is alphabetically later than the + // string, so "endpoint-e" will be returned but "endpoint-a" will not be. + // * "metadata.owner!=sd AND metadata.foo=bar" returns Endpoints that have + // "owner" in label key but value is not "sd" AND have key/value foo=bar. + // * "doesnotexist.foo=bar" returns an empty list. Note that Endpoint doesn't + // have a field called "doesnotexist". Since the filter does not match any + // Endpoints, it returns no results. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The order to list result by. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response message for +// [RegistrationService.ListEndpoints][google.cloud.servicedirectory.v1.RegistrationService.ListEndpoints]. +message ListEndpointsResponse { + // The list of endpoints. + repeated Endpoint endpoints = 1; + + // Token to retrieve the next page of results, or empty if there are no + // more results in the list. + string next_page_token = 2; +} + +// The request message for +// [RegistrationService.GetEndpoint][google.cloud.servicedirectory.v1.RegistrationService.GetEndpoint]. +// This should not be used to lookup endpoints at runtime. Instead, use +// the `resolve` method. +message GetEndpointRequest { + // Required. The name of the endpoint to get. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "servicedirectory.googleapis.com/Endpoint" + } + ]; +} + +// The request message for +// [RegistrationService.UpdateEndpoint][google.cloud.servicedirectory.v1.RegistrationService.UpdateEndpoint]. +message UpdateEndpointRequest { + // Required. The updated endpoint. + Endpoint endpoint = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. List of fields to be updated in this request. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// The request message for +// [RegistrationService.DeleteEndpoint][google.cloud.servicedirectory.v1.RegistrationService.DeleteEndpoint]. +message DeleteEndpointRequest { + // Required. The name of the endpoint to delete. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "servicedirectory.googleapis.com/Endpoint" + } + ]; +} diff --git a/third_party/googleapis/google/cloud/servicedirectory/v1/service.proto b/third_party/googleapis/google/cloud/servicedirectory/v1/service.proto new file mode 100644 index 000000000..81f60af82 --- /dev/null +++ b/third_party/googleapis/google/cloud/servicedirectory/v1/service.proto @@ -0,0 +1,74 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.servicedirectory.v1; + +import "google/api/annotations.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/servicedirectory/v1/endpoint.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.ServiceDirectory.V1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1;servicedirectory"; +option java_multiple_files = true; +option java_outer_classname = "ServiceProto"; +option java_package = "com.google.cloud.servicedirectory.v1"; +option php_namespace = "Google\\Cloud\\ServiceDirectory\\V1"; +option ruby_package = "Google::Cloud::ServiceDirectory::V1"; + +// An individual service. A service contains a name and optional metadata. +// A service must exist before +// [endpoints][google.cloud.servicedirectory.v1.Endpoint] can be +// added to it. +message Service { + option (google.api.resource) = { + type: "servicedirectory.googleapis.com/Service" + pattern: "projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}" + }; + + // Immutable. The resource name for the service in the format + // 'projects/*/locations/*/namespaces/*/services/*'. + string name = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // Optional. Annotations for the service. This data can be consumed by service + // clients. + // Restrictions: + // - The entire annotations dictionary may contain up to 2000 characters, + // spread accoss all key-value pairs. Annotations that goes beyond any + // these limits will be rejected. + // - Valid annotation keys have two segments: an optional prefix and name, + // separated by a slash (/). The name segment is required and must be 63 + // characters or less, beginning and ending with an alphanumeric character + // ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and + // alphanumerics between. The prefix is optional. If specified, the prefix + // must be a DNS subdomain: a series of DNS labels separated by dots (.), + // not longer than 253 characters in total, followed by a slash (/). + // Annotations that fails to meet these requirements will be rejected. + // - The '(*.)google.com/' and '(*.)googleapis.com/' prefixes are reserved + // for system annotations managed by Service Directory. If the user tries + // to write to these keyspaces, those entries will be silently ignored by + // the system. + // Note: This field is equivalent to the 'metadata' field in the v1beta1 API. + // They have the same syntax and read/write to the same location in Service + // Directory. + map annotations = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Endpoints associated with this service. Returned on + // LookupService.Resolve. Control plane clients should use + // RegistrationService.ListEndpoints. + repeated Endpoint endpoints = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/cloud/servicedirectory/v1/servicedirectory_gapic.yaml b/third_party/googleapis/google/cloud/servicedirectory/v1/servicedirectory_gapic.yaml new file mode 100644 index 000000000..8df6de7bd --- /dev/null +++ b/third_party/googleapis/google/cloud/servicedirectory/v1/servicedirectory_gapic.yaml @@ -0,0 +1,16 @@ +type: com.google.api.codegen.ConfigProto +config_schema_version: 2.0.0 +language_settings: + python: + package_name: google.cloud.servicedirectory_v1.gapic + go: + package_name: cloud.google.com/go/servicedirectory/apiv1 + csharp: + package_name: Google.Cloud.ServiceDirectory.V1 + ruby: + package_name: Google::Cloud::ServiceDirectory::V1 + php: + package_name: Google\Cloud\ServiceDirectory\V1 + nodejs: + package_name: servicedirectory.v1 + domain_layer_location: google-cloud diff --git a/third_party/googleapis/google/cloud/servicedirectory/v1/servicedirectory_grpc_service_config.json b/third_party/googleapis/google/cloud/servicedirectory/v1/servicedirectory_grpc_service_config.json new file mode 100644 index 000000000..32affec35 --- /dev/null +++ b/third_party/googleapis/google/cloud/servicedirectory/v1/servicedirectory_grpc_service_config.json @@ -0,0 +1,26 @@ +{ + "methodConfig": [ + { + "name": [{ "service": "google.cloud.servicedirectory.v1.RegistrationService" }], + "timeout": "15s", + "retryPolicy": { + "maxAttempts": 5, + "initialBackoff": "1s", + "maxBackoff": "60s", + "backoffMultiplier": 1.3, + "retryableStatusCodes": ["UNAVAILABLE", "UNKNOWN"] + } + }, + { + "name": [{ "service": "google.cloud.servicedirectory.v1.LookupService" }], + "timeout": "15s", + "retryPolicy": { + "maxAttempts": 5, + "initialBackoff": "1s", + "maxBackoff": "60s", + "backoffMultiplier": 1.3, + "retryableStatusCodes": ["UNAVAILABLE", "UNKNOWN"] + } + } + ] +} diff --git a/third_party/googleapis/google/cloud/servicedirectory/v1/servicedirectory_v1.yaml b/third_party/googleapis/google/cloud/servicedirectory/v1/servicedirectory_v1.yaml new file mode 100644 index 000000000..a7120e8dc --- /dev/null +++ b/third_party/googleapis/google/cloud/servicedirectory/v1/servicedirectory_v1.yaml @@ -0,0 +1,24 @@ +type: google.api.Service +config_version: 3 +name: servicedirectory.googleapis.com +title: Service Directory API + +apis: +- name: google.cloud.servicedirectory.v1.LookupService +- name: google.cloud.servicedirectory.v1.RegistrationService + +documentation: + summary: |- + Service Directory is a platform for discovering, publishing, and connecting + services. + +authentication: + rules: + - selector: google.cloud.servicedirectory.v1.LookupService.ResolveService + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform + - selector: 'google.cloud.servicedirectory.v1.RegistrationService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform diff --git a/third_party/googleapis/google/cloud/servicedirectory/v1beta1/BUILD.bazel b/third_party/googleapis/google/cloud/servicedirectory/v1beta1/BUILD.bazel index a8d2c2ffc..b1ca1b53f 100644 --- a/third_party/googleapis/google/cloud/servicedirectory/v1beta1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/servicedirectory/v1beta1/BUILD.bazel @@ -63,11 +63,8 @@ java_grpc_library( java_gapic_library( name = "servicedirectory_java_gapic", - src = ":servicedirectory_proto_with_info", - gapic_yaml = "servicedirectory_gapic.yaml", + srcs = [":servicedirectory_proto_with_info"], grpc_service_config = "servicedirectory_grpc_service_config.json", - package = "google.cloud.servicedirectory.v1beta1", - service_yaml = "servicedirectory_v1beta1.yaml", test_deps = [ ":servicedirectory_java_grpc", "//google/iam/v1:iam_java_grpc", @@ -154,51 +151,14 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "servicedirectory_moved_proto", - srcs = [":servicedirectory_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:resource_proto", - "//google/iam/v1:iam_policy_proto", - "//google/iam/v1:policy_proto", - "@com_google_protobuf//:empty_proto", - "@com_google_protobuf//:field_mask_proto", - ], -) - -py_proto_library( - name = "servicedirectory_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":servicedirectory_moved_proto"], -) - -py_grpc_library( - name = "servicedirectory_py_grpc", - srcs = [":servicedirectory_moved_proto"], - deps = [":servicedirectory_py_proto"], ) py_gapic_library( name = "servicedirectory_py_gapic", - src = ":servicedirectory_proto_with_info", - gapic_yaml = "servicedirectory_gapic.yaml", + srcs = [":servicedirectory_proto"], grpc_service_config = "servicedirectory_grpc_service_config.json", - package = "google.cloud.servicedirectory.v1beta1", - service_yaml = "servicedirectory_v1beta1.yaml", - deps = [ - ":servicedirectory_py_grpc", - ":servicedirectory_py_proto", - ], ) # Open Source Packages @@ -206,8 +166,6 @@ py_gapic_assembly_pkg( name = "servicedirectory-v1beta1-py", deps = [ ":servicedirectory_py_gapic", - ":servicedirectory_py_grpc", - ":servicedirectory_py_proto", ], ) @@ -269,6 +227,7 @@ nodejs_gapic_library( name = "servicedirectory_nodejs_gapic", package_name = "@google-cloud/service-directory", src = ":servicedirectory_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "servicedirectory_grpc_service_config.json", main_service = "ServiceDirectory", package = "google.cloud.servicedirectory.v1beta1", @@ -290,7 +249,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -306,12 +265,19 @@ ruby_grpc_library( deps = [":servicedirectory_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "servicedirectory_ruby_gapic", - src = ":servicedirectory_proto_with_info", - gapic_yaml = "servicedirectory_gapic.yaml", - package = "google.cloud.servicedirectory.v1beta1", - service_yaml = "servicedirectory_v1beta1.yaml", + srcs = [":servicedirectory_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-service_directory-v1beta1", + "ruby-cloud-env-prefix=SERVICE_DIRECTORY", + "ruby-cloud-product-url=https://cloud.google.com/service-directory", + "ruby-cloud-api-id=servicedirectory.googleapis.com", + "ruby-cloud-api-shortname=servicedirectory", + ], + grpc_service_config = "servicedirectory_grpc_service_config.json", + ruby_cloud_description = "Service directory is the single place to register, browse, and resolve application services.", + ruby_cloud_title = "Service Directory V1beta1", deps = [ ":servicedirectory_ruby_grpc", ":servicedirectory_ruby_proto", @@ -353,8 +319,8 @@ csharp_grpc_library( csharp_gapic_library( name = "servicedirectory_csharp_gapic", srcs = [":servicedirectory_proto_with_info"], - grpc_service_config = "servicedirectory_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "servicedirectory_grpc_service_config.json", deps = [ ":servicedirectory_csharp_grpc", ":servicedirectory_csharp_proto", diff --git a/third_party/googleapis/google/cloud/servicedirectory/v1beta1/servicedirectory_gapic.yaml b/third_party/googleapis/google/cloud/servicedirectory/v1beta1/servicedirectory_gapic.yaml index 369d2fbcc..d5639318a 100644 --- a/third_party/googleapis/google/cloud/servicedirectory/v1beta1/servicedirectory_gapic.yaml +++ b/third_party/googleapis/google/cloud/servicedirectory/v1beta1/servicedirectory_gapic.yaml @@ -1,8 +1,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 language_settings: - java: - package_name: com.google.cloud.servicedirectory.v1beta1 python: package_name: google.cloud.servicedirectory_v1beta1.gapic go: diff --git a/third_party/googleapis/google/cloud/shell/v1/BUILD.bazel b/third_party/googleapis/google/cloud/shell/v1/BUILD.bazel new file mode 100644 index 000000000..706af396f --- /dev/null +++ b/third_party/googleapis/google/cloud/shell/v1/BUILD.bazel @@ -0,0 +1,341 @@ +# This file was automatically generated by BuildFileGenerator +# https://github.com/googleapis/rules_gapic/tree/master/bazel + +# Most of the manual changes to this file will be overwritten. +# It's **only** allowed to change the following rule attribute values: +# - names of *_gapic_assembly_* rules +# - certain parameters of *_gapic_library rules, including but not limited to: +# * extra_protoc_parameters +# * extra_protoc_file_parameters +# The complete list of preserved parameters can be found in the source code. + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") +load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info") + +proto_library( + name = "shell_proto", + srcs = [ + "cloudshell.proto", + ], + deps = [ + "//google/api:annotations_proto", + "//google/api:client_proto", + "//google/api:field_behavior_proto", + "//google/api:resource_proto", + "//google/longrunning:operations_proto", + "@com_google_protobuf//:field_mask_proto", + "@com_google_protobuf//:timestamp_proto", + ], +) + +proto_library_with_info( + name = "shell_proto_with_info", + deps = [ + ":shell_proto", + "//google/cloud:common_resources_proto", + ], +) + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_gapic_assembly_gradle_pkg", + "java_gapic_library", + "java_gapic_test", + "java_grpc_library", + "java_proto_library", +) + +java_proto_library( + name = "shell_java_proto", + deps = [":shell_proto"], +) + +java_grpc_library( + name = "shell_java_grpc", + srcs = [":shell_proto"], + deps = [":shell_java_proto"], +) + +java_gapic_library( + name = "shell_java_gapic", + srcs = [":shell_proto_with_info"], + grpc_service_config = "cloudshell_grpc_service_config.json", + test_deps = [ + ":shell_java_grpc", + ], + deps = [ + ":shell_java_proto", + ], +) + +java_gapic_test( + name = "shell_java_gapic_test_suite", + test_classes = [ + "com.google.cloud.shell.v1.CloudShellServiceClientTest", + ], + runtime_deps = [":shell_java_gapic_test"], +) + +# Open Source Packages +java_gapic_assembly_gradle_pkg( + name = "google-cloud-shell-v1-java", + deps = [ + ":shell_java_gapic", + ":shell_java_grpc", + ":shell_java_proto", + ":shell_proto", + ], +) + +############################################################################## +# Go +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "go_gapic_assembly_pkg", + "go_gapic_library", + "go_proto_library", + "go_test", +) + +go_proto_library( + name = "shell_go_proto", + compilers = ["@io_bazel_rules_go//proto:go_grpc"], + importpath = "google.golang.org/genproto/googleapis/cloud/shell/v1", + protos = [":shell_proto"], + deps = [ + "//google/api:annotations_go_proto", + "//google/longrunning:longrunning_go_proto", + ], +) + +go_gapic_library( + name = "shell_go_gapic", + srcs = [":shell_proto_with_info"], + grpc_service_config = "cloudshell_grpc_service_config.json", + importpath = "cloud.google.com/go/shell/apiv1;shell", + service_yaml = "cloudshell_v1.yaml", + metadata = True, + deps = [ + ":shell_go_proto", + "//google/longrunning:longrunning_go_proto", + "@com_google_cloud_go//longrunning/autogen:go_default_library", + "@com_google_cloud_go//longrunning:go_default_library", + ], +) + +go_test( + name = "shell_go_gapic_test", + srcs = [":shell_go_gapic_srcjar_test"], + embed = [":shell_go_gapic"], + importpath = "cloud.google.com/go/shell/apiv1", +) + +# Open Source Packages +go_gapic_assembly_pkg( + name = "gapi-cloud-shell-v1-go", + deps = [ + ":shell_go_gapic", + ":shell_go_gapic_srcjar-test.srcjar", + ":shell_go_gapic_srcjar-metadata.srcjar", + ":shell_go_proto", + ], +) + +############################################################################## +# Python +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "py_gapic_assembly_pkg", + "py_gapic_library", +) + +py_gapic_library( + name = "shell_py_gapic", + srcs = [":shell_proto"], + grpc_service_config = "cloudshell_grpc_service_config.json", +) + +# Open Source Packages +py_gapic_assembly_pkg( + name = "shell-v1-py", + deps = [ + ":shell_py_gapic", + ], +) + +############################################################################## +# PHP +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "php_gapic_assembly_pkg", + "php_gapic_library", + "php_grpc_library", + "php_proto_library", +) + +php_proto_library( + name = "shell_php_proto", + deps = [":shell_proto"], +) + +php_grpc_library( + name = "shell_php_grpc", + srcs = [":shell_proto"], + deps = [":shell_php_proto"], +) + +php_gapic_library( + name = "shell_php_gapic", + src = ":shell_proto_with_info", + gapic_yaml = "cloudshell_gapic.yaml", + grpc_service_config = "cloudshell_grpc_service_config.json", + package = "google.cloud.shell.v1", + service_yaml = "cloudshell_v1.yaml", + deps = [ + ":shell_php_grpc", + ":shell_php_proto", + ], +) + +# Open Source Packages +php_gapic_assembly_pkg( + name = "google-cloud-shell-v1-php", + deps = [ + ":shell_php_gapic", + ":shell_php_grpc", + ":shell_php_proto", + ], +) + +############################################################################## +# Node.js +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", +) + +nodejs_gapic_library( + name = "shell_nodejs_gapic", + package_name = "@google-cloud/shell", + src = ":shell_proto_with_info", + extra_protoc_parameters = ["metadata"], + grpc_service_config = "cloudshell_grpc_service_config.json", + package = "google.cloud.shell.v1", + service_yaml = "cloudshell_v1.yaml", + deps = [], +) + +nodejs_gapic_assembly_pkg( + name = "shell-v1-nodejs", + deps = [ + ":shell_nodejs_gapic", + ":shell_proto", + ], +) + +############################################################################## +# Ruby +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "ruby_gapic_assembly_pkg", + "ruby_cloud_gapic_library", + "ruby_grpc_library", + "ruby_proto_library", +) + +ruby_proto_library( + name = "shell_ruby_proto", + deps = [":shell_proto"], +) + +ruby_grpc_library( + name = "shell_ruby_grpc", + srcs = [":shell_proto"], + deps = [":shell_ruby_proto"], +) + +ruby_cloud_gapic_library( + name = "shell_ruby_gapic", + srcs = [":shell_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-shell-v1", + ], + grpc_service_config = "cloudshell_grpc_service_config.json", + deps = [ + ":shell_ruby_grpc", + ":shell_ruby_proto", + ], +) + +# Open Source Packages +ruby_gapic_assembly_pkg( + name = "google-cloud-shell-v1-ruby", + deps = [ + ":shell_ruby_gapic", + ":shell_ruby_grpc", + ":shell_ruby_proto", + ], +) + +############################################################################## +# C# +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "csharp_gapic_assembly_pkg", + "csharp_gapic_library", + "csharp_grpc_library", + "csharp_proto_library", +) + +csharp_proto_library( + name = "shell_csharp_proto", + deps = [":shell_proto"], +) + +csharp_grpc_library( + name = "shell_csharp_grpc", + srcs = [":shell_proto"], + deps = [":shell_csharp_proto"], +) + +csharp_gapic_library( + name = "shell_csharp_gapic", + srcs = [":shell_proto_with_info"], + common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "cloudshell_grpc_service_config.json", + deps = [ + ":shell_csharp_grpc", + ":shell_csharp_proto", + ], +) + +# Open Source Packages +csharp_gapic_assembly_pkg( + name = "google-cloud-shell-v1-csharp", + deps = [ + ":shell_csharp_gapic", + ":shell_csharp_grpc", + ":shell_csharp_proto", + ], +) + +############################################################################## +# C++ +############################################################################## +# Put your C++ rules here diff --git a/third_party/googleapis/google/cloud/shell/v1/cloudshell.proto b/third_party/googleapis/google/cloud/shell/v1/cloudshell.proto new file mode 100644 index 000000000..f4b35b171 --- /dev/null +++ b/third_party/googleapis/google/cloud/shell/v1/cloudshell.proto @@ -0,0 +1,388 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.shell.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/shell/v1;shell"; +option java_multiple_files = true; +option java_outer_classname = "CloudShellProto"; +option java_package = "com.google.cloud.shell.v1"; + +// API for interacting with Google Cloud Shell. Each user of Cloud Shell has at +// least one environment, which has the ID "default". Environment consists of a +// Docker image defining what is installed on the environment and a home +// directory containing the user's data that will remain across sessions. +// Clients use this API to start and fetch information about their environment, +// which can then be used to connect to that environment via a separate SSH +// client. +service CloudShellService { + option (google.api.default_host) = "cloudshell.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + + // Gets an environment. Returns NOT_FOUND if the environment does not exist. + rpc GetEnvironment(GetEnvironmentRequest) returns (Environment) { + option (google.api.http) = { + get: "/v1/{name=users/*/environments/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Starts an existing environment, allowing clients to connect to it. The + // returned operation will contain an instance of StartEnvironmentMetadata in + // its metadata field. Users can wait for the environment to start by polling + // this operation via GetOperation. Once the environment has finished starting + // and is ready to accept connections, the operation will contain a + // StartEnvironmentResponse in its response field. + rpc StartEnvironment(StartEnvironmentRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=users/*/environments/*}:start" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "StartEnvironmentResponse" + metadata_type: "StartEnvironmentMetadata" + }; + } + + // Sends OAuth credentials to a running environment on behalf of a user. When + // this completes, the environment will be authorized to run various Google + // Cloud command line tools without requiring the user to manually + // authenticate. + rpc AuthorizeEnvironment(AuthorizeEnvironmentRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=users/*/environments/*}:authorize" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "AuthorizeEnvironmentResponse" + metadata_type: "AuthorizeEnvironmentMetadata" + }; + } + + // Adds a public SSH key to an environment, allowing clients with the + // corresponding private key to connect to that environment via SSH. If a key + // with the same content already exists, this will error with ALREADY_EXISTS. + rpc AddPublicKey(AddPublicKeyRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{environment=users/*/environments/*}:addPublicKey" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "AddPublicKeyResponse" + metadata_type: "AddPublicKeyMetadata" + }; + } + + // Removes a public SSH key from an environment. Clients will no longer be + // able to connect to the environment using the corresponding private key. + // If a key with the same content is not present, this will error with + // NOT_FOUND. + rpc RemovePublicKey(RemovePublicKeyRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{environment=users/*/environments/*}:removePublicKey" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "RemovePublicKeyResponse" + metadata_type: "RemovePublicKeyMetadata" + }; + } +} + +// A Cloud Shell environment, which is defined as the combination of a Docker +// image specifying what is installed on the environment and a home directory +// containing the user's data that will remain across sessions. Each user has +// at least an environment with the ID "default". +message Environment { + option (google.api.resource) = { + type: "cloudshell.googleapis.com/Environment" + pattern: "users/{user}/environments/{environment}" + }; + + // Possible execution states for an environment. + enum State { + // The environment's states is unknown. + STATE_UNSPECIFIED = 0; + + // The environment is not running and can't be connected to. Starting the + // environment will transition it to the PENDING state. + SUSPENDED = 1; + + // The environment is being started but is not yet ready to accept + // connections. + PENDING = 2; + + // The environment is running and ready to accept connections. It will + // automatically transition back to DISABLED after a period of inactivity or + // if another environment is started. + RUNNING = 3; + + // The environment is being deleted and can't be connected to. + DELETING = 4; + } + + // Immutable. Full name of this resource, in the format + // `users/{owner_email}/environments/{environment_id}`. `{owner_email}` is the + // email address of the user to whom this environment belongs, and + // `{environment_id}` is the identifier of this environment. For example, + // `users/someone@example.com/environments/default`. + string name = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. The environment's identifier, unique among the user's + // environments. + string id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Immutable. Full path to the Docker image used to run this environment, e.g. + // "gcr.io/dev-con/cloud-devshell:latest". + string docker_image = 3 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Output only. Current execution state of this environment. + State state = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Host to which clients can connect to initiate HTTPS or WSS + // connections with the environment. + string web_host = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Username that clients should use when initiating SSH sessions + // with the environment. + string ssh_username = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Host to which clients can connect to initiate SSH sessions + // with the environment. + string ssh_host = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Port to which clients can connect to initiate SSH sessions + // with the environment. + int32 ssh_port = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Public keys associated with the environment. Clients can + // connect to this environment via SSH only if they possess a private key + // corresponding to at least one of these public keys. Keys can be added to or + // removed from the environment using the AddPublicKey and RemovePublicKey + // methods. + repeated string public_keys = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request message for +// [GetEnvironment][google.cloud.shell.v1.CloudShellService.GetEnvironment]. +message GetEnvironmentRequest { + // Required. Name of the requested resource, for example `users/me/environments/default` + // or `users/someone@example.com/environments/default`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudshell.googleapis.com/Environment" + } + ]; +} + +// Message included in the metadata field of operations returned from +// [CreateEnvironment][google.cloud.shell.v1.CloudShellService.CreateEnvironment]. +message CreateEnvironmentMetadata { + +} + +// Message included in the metadata field of operations returned from +// [DeleteEnvironment][google.cloud.shell.v1.CloudShellService.DeleteEnvironment]. +message DeleteEnvironmentMetadata { + +} + +// Request message for +// [StartEnvironment][google.cloud.shell.v1.CloudShellService.StartEnvironment]. +message StartEnvironmentRequest { + // Name of the resource that should be started, for example + // `users/me/environments/default` or + // `users/someone@example.com/environments/default`. + string name = 1; + + // The initial access token passed to the environment. If this is present and + // valid, the environment will be pre-authenticated with gcloud so that the + // user can run gcloud commands in Cloud Shell without having to log in. This + // code can be updated later by calling AuthorizeEnvironment. + string access_token = 2; + + // Public keys that should be added to the environment before it is started. + repeated string public_keys = 3; +} + +// Request message for +// [AuthorizeEnvironment][google.cloud.shell.v1.CloudShellService.AuthorizeEnvironment]. +message AuthorizeEnvironmentRequest { + // Name of the resource that should receive the credentials, for example + // `users/me/environments/default` or + // `users/someone@example.com/environments/default`. + string name = 1; + + // The OAuth access token that should be sent to the environment. + string access_token = 2; + + // The OAuth ID token that should be sent to the environment. + string id_token = 4; + + // The time when the credentials expire. If not set, defaults to one hour from + // when the server received the request. + google.protobuf.Timestamp expire_time = 3; +} + +// Response message for +// [AuthorizeEnvironment][google.cloud.shell.v1.CloudShellService.AuthorizeEnvironment]. +message AuthorizeEnvironmentResponse { + +} + +// Message included in the metadata field of operations returned from +// [AuthorizeEnvironment][google.cloud.shell.v1.CloudShellService.AuthorizeEnvironment]. +message AuthorizeEnvironmentMetadata { + +} + +// Message included in the metadata field of operations returned from +// [StartEnvironment][google.cloud.shell.v1.CloudShellService.StartEnvironment]. +message StartEnvironmentMetadata { + // Possible states an environment might transition between during startup. + // These states are not normally actionable by clients, but may be used to + // show a progress message to the user. An environment won't necessarily go + // through all of these states when starting. More states are likely to be + // added in the future. + enum State { + // The environment's start state is unknown. + STATE_UNSPECIFIED = 0; + + // The environment is in the process of being started, but no additional + // details are available. + STARTING = 1; + + // Startup is waiting for the user's disk to be unarchived. This can happen + // when the user returns to Cloud Shell after not having used it for a + // while, and suggests that startup will take longer than normal. + UNARCHIVING_DISK = 2; + + // Startup is waiting for compute resources to be assigned to the + // environment. This should normally happen very quickly, but an environment + // might stay in this state for an extended period of time if the system is + // experiencing heavy load. + AWAITING_COMPUTE_RESOURCES = 4; + + // Startup has completed. If the start operation was successful, the user + // should be able to establish an SSH connection to their environment. + // Otherwise, the operation will contain details of the failure. + FINISHED = 3; + } + + // Current state of the environment being started. + State state = 1; +} + +// Message included in the response field of operations returned from +// [StartEnvironment][google.cloud.shell.v1.CloudShellService.StartEnvironment] +// once the operation is complete. +message StartEnvironmentResponse { + // Environment that was started. + Environment environment = 1; +} + +// Request message for +// [AddPublicKey][google.cloud.shell.v1.CloudShellService.AddPublicKey]. +message AddPublicKeyRequest { + // Environment this key should be added to, e.g. + // `users/me/environments/default`. + string environment = 1; + + // Key that should be added to the environment. Supported formats are + // `ssh-dss` (see RFC4253), `ssh-rsa` (see RFC4253), `ecdsa-sha2-nistp256` + // (see RFC5656), `ecdsa-sha2-nistp384` (see RFC5656) and + // `ecdsa-sha2-nistp521` (see RFC5656). It should be structured as + // <format> <content>, where <content> part is encoded with + // Base64. + string key = 2; +} + +// Response message for +// [AddPublicKey][google.cloud.shell.v1.CloudShellService.AddPublicKey]. +message AddPublicKeyResponse { + // Key that was added to the environment. + string key = 1; +} + +// Message included in the metadata field of operations returned from +// [AddPublicKey][google.cloud.shell.v1.CloudShellService.AddPublicKey]. +message AddPublicKeyMetadata { + +} + +// Request message for +// [RemovePublicKey][google.cloud.shell.v1.CloudShellService.RemovePublicKey]. +message RemovePublicKeyRequest { + // Environment this key should be removed from, e.g. + // `users/me/environments/default`. + string environment = 1; + + // Key that should be removed from the environment. + string key = 2; +} + +// Response message for +// [RemovePublicKey][google.cloud.shell.v1.CloudShellService.RemovePublicKey]. +message RemovePublicKeyResponse { + +} + +// Message included in the metadata field of operations returned from +// [RemovePublicKey][google.cloud.shell.v1.CloudShellService.RemovePublicKey]. +message RemovePublicKeyMetadata { + +} + +// Cloud-shell specific information that will be included as details in failure +// responses. +message CloudShellErrorDetails { + // Set of possible errors returned from API calls. + enum CloudShellErrorCode { + // An unknown error occurred. + CLOUD_SHELL_ERROR_CODE_UNSPECIFIED = 0; + + // The image used by the Cloud Shell environment either does not exist or + // the user does not have access to it. + IMAGE_UNAVAILABLE = 1; + + // Cloud Shell has been disabled by an administrator for the user making the + // request. + CLOUD_SHELL_DISABLED = 2; + + // Cloud Shell has been permanently disabled due to a Terms of Service + // violation by the user. + TOS_VIOLATION = 4; + + // The user has exhausted their weekly Cloud Shell quota, and Cloud Shell + // will be disabled until the quota resets. + QUOTA_EXCEEDED = 5; + } + + // Code indicating the specific error the occurred. + CloudShellErrorCode code = 1; +} diff --git a/third_party/googleapis/google/cloud/shell/v1/cloudshell_gapic.yaml b/third_party/googleapis/google/cloud/shell/v1/cloudshell_gapic.yaml new file mode 100644 index 000000000..2401828ec --- /dev/null +++ b/third_party/googleapis/google/cloud/shell/v1/cloudshell_gapic.yaml @@ -0,0 +1,5 @@ +type: com.google.api.codegen.ConfigProto +config_schema_version: 2.0.0 +language_settings: + php: + package_name: Google\Cloud\Shell\V1 diff --git a/third_party/googleapis/google/cloud/shell/v1/cloudshell_grpc_service_config.json b/third_party/googleapis/google/cloud/shell/v1/cloudshell_grpc_service_config.json new file mode 100644 index 000000000..49a7db385 --- /dev/null +++ b/third_party/googleapis/google/cloud/shell/v1/cloudshell_grpc_service_config.json @@ -0,0 +1,27 @@ +{ + "methodConfig": [{ + "name": [ + { "service": "google.cloud.shell.v1.CloudShellService", "method": "GetEnvironment" }, + { "service": "google.cloud.shell.v1.CloudShellService", "method": "ListEnvironments" } + ], + "timeout": "60s", + "retryPolicy": { + "initialBackoff": "1s", + "maxBackoff": "60s", + "backoffMultiplier": 1.3, + "retryableStatusCodes": ["UNAVAILABLE", "UNKNOWN"] + } + }, + { + "name": [ + { "service": "google.cloud.shell.v1.CloudShellService", "method": "AddPublicKey" }, + { "service": "google.cloud.shell.v1.CloudShellService", "method": "AuthorizeEnvironment" }, + { "service": "google.cloud.shell.v1.CloudShellService", "method": "CreateEnvironment" }, + { "service": "google.cloud.shell.v1.CloudShellService", "method": "DeleteEnvironment" }, + { "service": "google.cloud.shell.v1.CloudShellService", "method": "RemovePublicKey" }, + { "service": "google.cloud.shell.v1.CloudShellService", "method": "StartEnvironment" }, + { "service": "google.cloud.shell.v1.CloudShellService", "method": "UpdateEnvironment" } + ], + "timeout": "60s" + }] +} diff --git a/third_party/googleapis/google/cloud/shell/v1/cloudshell_v1.yaml b/third_party/googleapis/google/cloud/shell/v1/cloudshell_v1.yaml new file mode 100644 index 000000000..d79448c63 --- /dev/null +++ b/third_party/googleapis/google/cloud/shell/v1/cloudshell_v1.yaml @@ -0,0 +1,42 @@ +type: google.api.Service +config_version: 3 +name: cloudshell.googleapis.com +title: Cloud Shell API + +apis: +- name: google.cloud.shell.v1.CloudShellService + +types: +- name: google.cloud.shell.v1.AddPublicKeyMetadata +- name: google.cloud.shell.v1.AddPublicKeyResponse +- name: google.cloud.shell.v1.AuthorizeEnvironmentMetadata +- name: google.cloud.shell.v1.AuthorizeEnvironmentResponse +- name: google.cloud.shell.v1.CreateEnvironmentMetadata +- name: google.cloud.shell.v1.DeleteEnvironmentMetadata +- name: google.cloud.shell.v1.RemovePublicKeyMetadata +- name: google.cloud.shell.v1.RemovePublicKeyResponse +- name: google.cloud.shell.v1.StartEnvironmentMetadata +- name: google.cloud.shell.v1.StartEnvironmentResponse + +documentation: + summary: |- + Allows users to start, configure, and connect to interactive shell sessions + running in the cloud. + +backend: + rules: + - selector: 'google.cloud.shell.v1.CloudShellService.*' + deadline: 30.0 + - selector: 'google.longrunning.Operations.*' + deadline: 30.0 + +authentication: + rules: + - selector: 'google.cloud.shell.v1.CloudShellService.*' + 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/third_party/googleapis/google/cloud/speech/v1/BUILD.bazel b/third_party/googleapis/google/cloud/speech/v1/BUILD.bazel index 2bf1458e4..49b55d509 100644 --- a/third_party/googleapis/google/cloud/speech/v1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/speech/v1/BUILD.bazel @@ -59,11 +59,8 @@ java_grpc_library( java_gapic_library( name = "speech_java_gapic", - src = ":speech_proto_with_info", - gapic_yaml = "speech_gapic.yaml", + srcs = [":speech_proto_with_info"], grpc_service_config = "speech_grpc_service_config.json", - package = "google.cloud.speech.v1", - service_yaml = "speech_v1.yaml", test_deps = [ ":speech_java_grpc", ], @@ -122,9 +119,9 @@ go_gapic_library( service_yaml = "speech_v1.yaml", deps = [ ":speech_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", "@io_bazel_rules_go//proto/wkt:any_go_proto", "@io_bazel_rules_go//proto/wkt:duration_go_proto", ], @@ -150,12 +147,10 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -230,6 +225,7 @@ nodejs_gapic_library( name = "speech_nodejs_gapic", package_name = "@google-cloud/speech", src = ":speech_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "speech_grpc_service_config.json", package = "google.cloud.speech.v1", service_yaml = "speech_v1.yaml", @@ -250,7 +246,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -266,12 +262,19 @@ ruby_grpc_library( deps = [":speech_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "speech_ruby_gapic", - src = ":speech_proto_with_info", - gapic_yaml = "speech_gapic.yaml", - package = "google.cloud.speech.v1", - service_yaml = "speech_v1.yaml", + srcs = [":speech_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-speech-v1", + "ruby-cloud-env-prefix=SPEECH", + "ruby-cloud-product-url=https://cloud.google.com/speech-to-text", + "ruby-cloud-api-id=speech.googleapis.com", + "ruby-cloud-api-shortname=speech", + ], + grpc_service_config = "speech_grpc_service_config.json", + ruby_cloud_description = "Google Speech-to-Text enables developers to convert audio to text by applying powerful neural network models in an easy-to-use API. The API recognizes more than 120 languages and variants to support your global user base. You can enable voice command-and-control, transcribe audio from call centers, and more. It can process real-time streaming or prerecorded audio, using Google's machine learning technology.", + ruby_cloud_title = "Cloud Speech-to-Text V1", deps = [ ":speech_ruby_grpc", ":speech_ruby_proto", @@ -313,8 +316,8 @@ csharp_grpc_library( csharp_gapic_library( name = "speech_csharp_gapic", srcs = [":speech_proto_with_info"], - grpc_service_config = "speech_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "speech_grpc_service_config.json", deps = [ ":speech_csharp_grpc", ":speech_csharp_proto", @@ -334,4 +337,20 @@ csharp_gapic_assembly_pkg( ############################################################################## # C++ ############################################################################## -# Put your C++ rules here +load( + "@com_google_googleapis_imports//:imports.bzl", + "cc_grpc_library", + "cc_proto_library", +) + +cc_proto_library( + name = "speech_cc_proto", + deps = [":speech_proto"], +) + +cc_grpc_library( + name = "speech_cc_grpc", + srcs = [":speech_proto"], + grpc_only = True, + deps = [":speech_cc_proto"], +) diff --git a/third_party/googleapis/google/cloud/speech/v1/speech_gapic.legacy.yaml b/third_party/googleapis/google/cloud/speech/v1/speech_gapic.legacy.yaml deleted file mode 100644 index 1e2d456c0..000000000 --- a/third_party/googleapis/google/cloud/speech/v1/speech_gapic.legacy.yaml +++ /dev/null @@ -1,92 +0,0 @@ -type: com.google.api.codegen.ConfigProto -config_schema_version: 1.0.0 -language_settings: - java: - package_name: com.google.cloud.speech.v1 - python: - package_name: google.cloud.speech_v1.gapic - go: - package_name: cloud.google.com/go/speech/apiv1 - release_level: GA - csharp: - package_name: Google.Cloud.Speech.V1 - release_level: GA - ruby: - package_name: Google::Cloud::Speech::V1 - php: - package_name: Google\Cloud\Speech\V1 - nodejs: - package_name: speech.v1 - domain_layer_location: google-cloud -interfaces: -- name: google.cloud.speech.v1.Speech - smoke_test: - method: Recognize - init_fields: - - config.language_code="en-US" - - config.sample_rate_hertz=44100 - - config.encoding=FLAC - - audio.uri="gs://gapic-toolkit/hello.flac" - collections: [] - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 1000000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 1000000 - total_timeout_millis: 5000000 - methods: - - name: Recognize - flattening: - groups: - - parameters: - - config - - audio - required_fields: - - config - - audio - sample_code_init_fields: - - config.encoding=FLAC - - config.sample_rate_hertz=44100 - - config.language_code="en-US" - - audio.uri=gs://bucket_name/file_name.flac - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 1000000 - - name: LongRunningRecognize - flattening: - groups: - - parameters: - - config - - audio - required_fields: - - config - - audio - sample_code_init_fields: - - config.encoding=FLAC - - config.sample_rate_hertz=44100 - - config.language_code="en-US" - - audio.uri=gs://bucket_name/file_name.flac - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 60000 - long_running: - return_type: google.cloud.speech.v1.LongRunningRecognizeResponse - metadata_type: google.cloud.speech.v1.LongRunningRecognizeMetadata - initial_poll_delay_millis: 20000 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 45000 - total_poll_timeout_millis: 86400000 - - name: StreamingRecognize - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 1000000 diff --git a/third_party/googleapis/google/cloud/speech/v1/speech_gapic.yaml b/third_party/googleapis/google/cloud/speech/v1/speech_gapic.yaml index 91e8f45a2..eacd48762 100644 --- a/third_party/googleapis/google/cloud/speech/v1/speech_gapic.yaml +++ b/third_party/googleapis/google/cloud/speech/v1/speech_gapic.yaml @@ -1,8 +1,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 language_settings: - java: - package_name: com.google.cloud.speech.v1 python: package_name: google.cloud.speech_v1.gapic go: diff --git a/third_party/googleapis/google/cloud/speech/v1p1beta1/BUILD.bazel b/third_party/googleapis/google/cloud/speech/v1p1beta1/BUILD.bazel index f105d080e..31d786805 100644 --- a/third_party/googleapis/google/cloud/speech/v1p1beta1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/speech/v1p1beta1/BUILD.bazel @@ -13,6 +13,7 @@ proto_library( name = "speech_proto", srcs = [ "cloud_speech.proto", + "cloud_speech_adaptation.proto", "resource.proto", ], deps = [ @@ -24,6 +25,8 @@ proto_library( "//google/rpc:status_proto", "@com_google_protobuf//:any_proto", "@com_google_protobuf//:duration_proto", + "@com_google_protobuf//:empty_proto", + "@com_google_protobuf//:field_mask_proto", "@com_google_protobuf//:timestamp_proto", ], ) @@ -61,11 +64,8 @@ java_grpc_library( java_gapic_library( name = "speech_java_gapic", - src = ":speech_proto_with_info", - gapic_yaml = "speech_gapic.yaml", + srcs = [":speech_proto_with_info"], grpc_service_config = "speech_grpc_service_config.json", - package = "google.cloud.speech.v1p1beta1", - service_yaml = "speech_v1p1beta1.yaml", test_deps = [ ":speech_java_grpc", ], @@ -124,9 +124,9 @@ go_gapic_library( service_yaml = "speech_v1p1beta1.yaml", deps = [ ":speech_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", "@io_bazel_rules_go//proto/wkt:any_go_proto", "@io_bazel_rules_go//proto/wkt:duration_go_proto", ], @@ -152,12 +152,10 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -232,6 +230,7 @@ nodejs_gapic_library( name = "speech_nodejs_gapic", package_name = "@google-cloud/speech", src = ":speech_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "speech_grpc_service_config.json", package = "google.cloud.speech.v1p1beta1", service_yaml = "speech_v1p1beta1.yaml", @@ -252,7 +251,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -268,12 +267,19 @@ ruby_grpc_library( deps = [":speech_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "speech_ruby_gapic", - src = ":speech_proto_with_info", - gapic_yaml = "speech_gapic.yaml", - package = "google.cloud.speech.v1p1beta1", - service_yaml = "speech_v1p1beta1.yaml", + srcs = [":speech_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-speech-v1p1beta1", + "ruby-cloud-env-prefix=SPEECH", + "ruby-cloud-product-url=https://cloud.google.com/speech-to-text", + "ruby-cloud-api-id=speech.googleapis.com", + "ruby-cloud-api-shortname=speech", + ], + grpc_service_config = "speech_grpc_service_config.json", + ruby_cloud_description = "Google Speech-to-Text enables developers to convert audio to text by applying powerful neural network models in an easy-to-use API. The API recognizes more than 120 languages and variants to support your global user base. You can enable voice command-and-control, transcribe audio from call centers, and more. It can process real-time streaming or prerecorded audio, using Google's machine learning technology.", + ruby_cloud_title = "Cloud Speech-to-Text V1p1beta1", deps = [ ":speech_ruby_grpc", ":speech_ruby_proto", @@ -315,8 +321,8 @@ csharp_grpc_library( csharp_gapic_library( name = "speech_csharp_gapic", srcs = [":speech_proto_with_info"], - grpc_service_config = "speech_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "speech_grpc_service_config.json", deps = [ ":speech_csharp_grpc", ":speech_csharp_proto", diff --git a/third_party/googleapis/google/cloud/speech/v1p1beta1/cloud_speech.proto b/third_party/googleapis/google/cloud/speech/v1p1beta1/cloud_speech.proto index 7bb12866b..0fcea916b 100644 --- a/third_party/googleapis/google/cloud/speech/v1p1beta1/cloud_speech.proto +++ b/third_party/googleapis/google/cloud/speech/v1p1beta1/cloud_speech.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -19,7 +19,6 @@ package google.cloud.speech.v1p1beta1; import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; import "google/cloud/speech/v1p1beta1/resource.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/any.proto"; @@ -37,8 +36,7 @@ option objc_class_prefix = "GCS"; // Service that implements Google Cloud Speech API. service Speech { option (google.api.default_host) = "speech.googleapis.com"; - option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; // Performs synchronous speech recognition: receive results after all audio // has been sent and processed. @@ -56,8 +54,7 @@ service Speech { // a `LongRunningRecognizeResponse` message. // For more information on asynchronous speech recognition, see the // [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize). - rpc LongRunningRecognize(LongRunningRecognizeRequest) - returns (google.longrunning.Operation) { + rpc LongRunningRecognize(LongRunningRecognizeRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1p1beta1/speech:longrunningrecognize" body: "*" @@ -71,8 +68,8 @@ service Speech { // Performs bidirectional streaming speech recognition: receive results while // sending audio. This method is only available via the gRPC API (not REST). - rpc StreamingRecognize(stream StreamingRecognizeRequest) - returns (stream StreamingRecognizeResponse) {} + rpc StreamingRecognize(stream StreamingRecognizeRequest) returns (stream StreamingRecognizeResponse) { + } } // The top-level message sent by the client for the `Recognize` method. @@ -94,6 +91,19 @@ message LongRunningRecognizeRequest { // Required. The audio data to be recognized. RecognitionAudio audio = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Specifies an optional destination for the recognition results. + TranscriptOutputConfig output_config = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Specifies an optional destination for the recognition results. +message TranscriptOutputConfig { + oneof output_type { + // Specifies a Cloud Storage URI for the recognition results. Must be + // specified in the format: `gs://bucket_name/object_name`, and the bucket + // must already exist. + string gcs_uri = 1; + } } // The top-level message sent by the client for the `StreamingRecognize` method. @@ -139,6 +149,16 @@ message StreamingRecognitionConfig { // `END_OF_SINGLE_UTTERANCE` event and cease recognition. It will return no // more than one `StreamingRecognitionResult` with the `is_final` flag set to // `true`. + // + // The `single_utterance` field can only be used with specified models, + // otherwise an error is thrown. The `model` field in [`RecognitionConfig`][] + // must be set to: + // + // * `command_and_search` + // * `phone_call` AND additional field `useEnhanced`=`true` + // * The `model` field is left undefined. In this case the API auto-selects + // a model based on any other parameters that you set in + // `RecognitionConfig`. bool single_utterance = 2; // If `true`, interim results (tentative hypotheses) may be @@ -161,7 +181,7 @@ message RecognitionConfig { // a lossless encoding (`FLAC` or `LINEAR16`). The accuracy of the speech // recognition can be reduced if lossy codecs are used to capture or transmit // audio, particularly if background noise is present. Lossy codecs include - // `MULAW`, `AMR`, `AMR_WB`, `OGG_OPUS`, `SPEEX_WITH_HEADER_BYTE`, and `MP3`. + // `MULAW`, `AMR`, `AMR_WB`, `OGG_OPUS`, `SPEEX_WITH_HEADER_BYTE`, `MP3`. // // The `FLAC` and `WAV` audio file formats include a header that describes the // included audio content. You can request recognition for `WAV` files that @@ -172,8 +192,7 @@ message RecognitionConfig { // an `AudioEncoding` when you send send `FLAC` or `WAV` audio, the // encoding configuration must match the encoding described in the audio // header; otherwise the request returns an - // [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] error - // code. + // [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] error code. enum AudioEncoding { // Not specified. ENCODING_UNSPECIFIED = 0; @@ -218,7 +237,8 @@ message RecognitionConfig { // wideband is supported. `sample_rate_hertz` must be 16000. SPEEX_WITH_HEADER_BYTE = 7; - // MP3 audio. Support all standard MP3 bitrates (which range from 32-320 + // MP3 audio. MP3 encoding is a Beta feature and only available in + // v1p1beta1. Support all standard MP3 bitrates (which range from 32-320 // kbps). When using this encoding, `sample_rate_hertz` has to match the // sample rate of the file being used. MP3 = 8; @@ -226,8 +246,7 @@ message RecognitionConfig { // Encoding of audio data sent in all `RecognitionAudio` messages. // This field is optional for `FLAC` and `WAV` audio files and required - // for all other audio formats. For details, see - // [AudioEncoding][google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding]. + // for all other audio formats. For details, see [AudioEncoding][google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding]. AudioEncoding encoding = 1; // Sample rate in Hertz of the audio data sent in all @@ -236,8 +255,7 @@ message RecognitionConfig { // source to 16000 Hz. If that's not possible, use the native sample rate of // the audio source (instead of re-sampling). // This field is optional for FLAC and WAV audio files, but is - // required for all other audio formats. For details, see - // [AudioEncoding][google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding]. + // required for all other audio formats. For details, see [AudioEncoding][google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding]. int32 sample_rate_hertz = 2; // The number of channels in the input audio data. @@ -413,8 +431,10 @@ message SpeakerDiarizationConfig { int32 max_speaker_count = 3; // Output only. Unused. - int32 speaker_tag = 5 - [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; + int32 speaker_tag = 5 [ + deprecated = true, + (google.api.field_behavior) = OUTPUT_ONLY + ]; } // Description of audio data to be recognized. @@ -578,8 +598,8 @@ message SpeechContext { // Contains audio data in the encoding specified in the `RecognitionConfig`. // Either `content` or `uri` must be supplied. Supplying both or neither -// returns [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. -// See [content limits](https://cloud.google.com/speech-to-text/quotas#content). +// returns [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]. See +// [content limits](https://cloud.google.com/speech-to-text/quotas#content). message RecognitionAudio { // The audio source, which is either inline content or a Google Cloud // Storage uri. @@ -594,9 +614,8 @@ message RecognitionAudio { // Currently, only Google Cloud Storage URIs are // supported, which must be specified in the following format: // `gs://bucket_name/object_name` (other URI formats return - // [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). - // For more information, see [Request - // URIs](https://cloud.google.com/storage/docs/reference-uris). + // [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see + // [Request URIs](https://cloud.google.com/storage/docs/reference-uris). string uri = 2; } } @@ -635,7 +654,7 @@ message LongRunningRecognizeMetadata { // Time of the most recent processing update. google.protobuf.Timestamp last_update_time = 3; - // The URI of the audio file being transcribed. Empty if the audio was sent + // Output only. The URI of the audio file being transcribed. Empty if the audio was sent // as byte content. string uri = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; } @@ -751,9 +770,9 @@ message StreamingRecognitionResult { // For audio_channel_count = N, its output values can range from '1' to 'N'. int32 channel_tag = 5; - // 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. + // 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 = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; } @@ -770,9 +789,9 @@ message SpeechRecognitionResult { // For audio_channel_count = N, its output values can range from '1' to 'N'. int32 channel_tag = 2; - // 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. + // 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 = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/third_party/googleapis/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto b/third_party/googleapis/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto new file mode 100644 index 000000000..16789739d --- /dev/null +++ b/third_party/googleapis/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto @@ -0,0 +1,320 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.speech.v1p1beta1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/speech/v1p1beta1/resource.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; + +option cc_enable_arenas = true; +option go_package = "google.golang.org/genproto/googleapis/cloud/speech/v1p1beta1;speech"; +option java_multiple_files = true; +option java_outer_classname = "SpeechAdaptationProto"; +option java_package = "com.google.cloud.speech.v1p1beta1"; +option objc_class_prefix = "GCS"; + +// Service that implements Google Cloud Speech Adaptation API. +service Adaptation { + option (google.api.default_host) = "speech.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + + // Create a set of phrase hints. Each item in the set can be a single word or + // a multi-word phrase. The items in the PhraseSet are favored by the + // recognition model when you send a call that includes the PhraseSet. + rpc CreatePhraseSet(CreatePhraseSetRequest) returns (PhraseSet) { + option (google.api.http) = { + post: "/v1p1beta1/{parent=projects/*/locations/*}/phraseSets" + body: "*" + }; + option (google.api.method_signature) = "parent,phrase_set,phrase_set_id"; + } + + // Get a phrase set. + rpc GetPhraseSet(GetPhraseSetRequest) returns (PhraseSet) { + option (google.api.http) = { + get: "/v1p1beta1/{name=projects/*/locations/*/phraseSets/*}" + }; + option (google.api.method_signature) = "name"; + } + + // List phrase sets. + rpc ListPhraseSet(ListPhraseSetRequest) returns (ListPhraseSetResponse) { + option (google.api.http) = { + get: "/v1p1beta1/{parent=projects/*/locations/*}/phraseSets" + }; + option (google.api.method_signature) = "parent"; + } + + // Update a phrase set. + rpc UpdatePhraseSet(UpdatePhraseSetRequest) returns (PhraseSet) { + option (google.api.http) = { + patch: "/v1p1beta1/{phrase_set.name=projects/*/locations/*/phraseSets/*}" + body: "phrase_set" + }; + option (google.api.method_signature) = "phrase_set,update_mask"; + } + + // Delete a phrase set. + rpc DeletePhraseSet(DeletePhraseSetRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1p1beta1/{name=projects/*/locations/*/phraseSets/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Create a custom class. + rpc CreateCustomClass(CreateCustomClassRequest) returns (CustomClass) { + option (google.api.http) = { + post: "/v1p1beta1/{parent=projects/*/locations/*}/customClasses" + body: "*" + }; + option (google.api.method_signature) = "parent,custom_class,custom_class_id"; + } + + // Get a custom class. + rpc GetCustomClass(GetCustomClassRequest) returns (CustomClass) { + option (google.api.http) = { + get: "/v1p1beta1/{name=projects/*/locations/*/customClasses/*}" + }; + option (google.api.method_signature) = "name"; + } + + // List custom classes. + rpc ListCustomClasses(ListCustomClassesRequest) returns (ListCustomClassesResponse) { + option (google.api.http) = { + get: "/v1p1beta1/{parent=projects/*/locations/*}/customClasses" + }; + option (google.api.method_signature) = "parent"; + } + + // Update a custom class. + rpc UpdateCustomClass(UpdateCustomClassRequest) returns (CustomClass) { + option (google.api.http) = { + patch: "/v1p1beta1/{custom_class.name=projects/*/locations/*/customClasses/*}" + body: "custom_class" + }; + option (google.api.method_signature) = "custom_class,update_mask"; + } + + // Delete a custom class. + rpc DeleteCustomClass(DeleteCustomClassRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1p1beta1/{name=projects/*/locations/*/customClasses/*}" + }; + option (google.api.method_signature) = "name"; + } +} + +// Message sent by the client for the `CreatePhraseSet` method. +message CreatePhraseSetRequest { + // Required. The parent resource where this phrase set will be created. + // Format: + // {api_version}/projects/{project}/locations/{location}/phraseSets + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "speech.googleapis.com/PhraseSet" + } + ]; + + // The ID to use for the phrase set, which will become the final + // component of the phrase set's resource name. + // + // This value should be 4-63 characters, and valid characters + // are /[a-z][0-9]-/. + string phrase_set_id = 2; + + // Required. The phrase set to create. + PhraseSet phrase_set = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Message sent by the client for the `UpdatePhraseSet` method. +message UpdatePhraseSetRequest { + // Required. The phrase set to update. + // + // The phrase set's `name` field is used to identify the set to be + // updated. Format: + // {api_version}/projects/{project}/locations/{location}/phraseSets/{phrase_set} + PhraseSet phrase_set = 1 [(google.api.field_behavior) = REQUIRED]; + + // The list of fields to be updated. + google.protobuf.FieldMask update_mask = 2; +} + +// Message sent by the client for the `GetPhraseSet` method. +message GetPhraseSetRequest { + // Required. The name of the phrase set to retrieve. + // Format: + // {api_version}/projects/{project}/locations/{location}/phraseSets/{phrase_set} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "speech.googleapis.com/PhraseSet" + } + ]; +} + +// Message sent by the client for the `ListPhraseSet` method. +message ListPhraseSetRequest { + // Required. The parent, which owns this collection of phrase set. + // Format: + // projects/{project}/locations/{location} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "speech.googleapis.com/PhraseSet" + } + ]; + + // The maximum number of phrase sets to return. The service may return + // fewer than this value. If unspecified, at most 50 phrase sets will be + // returned. The maximum value is 1000; values above 1000 will be coerced to + // 1000. + int32 page_size = 2; + + // A page token, received from a previous `ListPhraseSet` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListPhraseSet` must + // match the call that provided the page token. + string page_token = 3; +} + +// Message returned to the client by the `ListPhraseSet` method. +message ListPhraseSetResponse { + // The phrase set. + repeated PhraseSet phrase_sets = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Message sent by the client for the `DeletePhraseSet` method. +message DeletePhraseSetRequest { + // Required. The name of the phrase set to delete. + // Format: + // {api_version}/projects/{project}/locations/{location}/phraseSets/{phrase_set} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "speech.googleapis.com/PhraseSet" + } + ]; +} + +// Message sent by the client for the `CreateCustomClass` method. +message CreateCustomClassRequest { + // Required. The parent resource where this custom class will be created. + // Format: + // {api_version}/projects/{project}/locations/{location}/customClasses + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "speech.googleapis.com/CustomClass" + } + ]; + + // The ID to use for the custom class, which will become the final + // component of the custom class' resource name. + // + // This value should be 4-63 characters, and valid characters + // are /[a-z][0-9]-/. + string custom_class_id = 2; + + // Required. The custom class to create. + CustomClass custom_class = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Message sent by the client for the `UpdateCustomClass` method. +message UpdateCustomClassRequest { + // Required. The custom class to update. + // + // The custom class's `name` field is used to identify the custom class to be + // updated. Format: + // {api_version}/projects/{project}/locations/{location}/customClasses/{custom_class} + CustomClass custom_class = 1 [(google.api.field_behavior) = REQUIRED]; + + // The list of fields to be updated. + google.protobuf.FieldMask update_mask = 2; +} + +// Message sent by the client for the `GetCustomClass` method. +message GetCustomClassRequest { + // Required. The name of the custom class to retrieve. + // Format: + // {api_version}/projects/{project}/locations/{location}/customClasses/{custom_class} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "speech.googleapis.com/CustomClass" + } + ]; +} + +// Message sent by the client for the `ListCustomClasses` method. +message ListCustomClassesRequest { + // Required. The parent, which owns this collection of custom classes. + // Format: + // {api_version}/projects/{project}/locations/{location}/customClasses + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "speech.googleapis.com/CustomClass" + } + ]; + + // The maximum number of custom classes to return. The service may return + // fewer than this value. If unspecified, at most 50 custom classes will be + // returned. The maximum value is 1000; values above 1000 will be coerced to + // 1000. + int32 page_size = 2; + + // A page token, received from a previous `ListCustomClass` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListCustomClass` must + // match the call that provided the page token. + string page_token = 3; +} + +// Message returned to the client by the `ListCustomClasses` method. +message ListCustomClassesResponse { + // The custom classes. + repeated CustomClass custom_classes = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Message sent by the client for the `DeleteCustomClass` method. +message DeleteCustomClassRequest { + // Required. The name of the custom class to delete. + // Format: + // {api_version}/projects/{project}/locations/{location}/customClasses/{custom_class} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "speech.googleapis.com/CustomClass" + } + ]; +} diff --git a/third_party/googleapis/google/cloud/speech/v1p1beta1/resource.proto b/third_party/googleapis/google/cloud/speech/v1p1beta1/resource.proto index 5bb379ff1..74cee0647 100644 --- a/third_party/googleapis/google/cloud/speech/v1p1beta1/resource.proto +++ b/third_party/googleapis/google/cloud/speech/v1p1beta1/resource.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,8 +16,8 @@ syntax = "proto3"; package google.cloud.speech.v1p1beta1; -import "google/api/annotations.proto"; import "google/api/resource.proto"; +import "google/api/annotations.proto"; option cc_enable_arenas = true; option go_package = "google.golang.org/genproto/googleapis/cloud/speech/v1p1beta1;speech"; @@ -45,7 +45,7 @@ message CustomClass { string name = 1; // If this custom class is a resource, the custom_class_id is the resource id - // of the CustomClass. + // of the CustomClass. Case sensitive. string custom_class_id = 2; // A collection of class items. @@ -121,9 +121,12 @@ message SpeechAdaptation { // phrase set can use any custom class. repeated PhraseSet phrase_sets = 1; + // A collection of phrase set resource names to use. + repeated string phrase_set_references = 2; + // A collection of custom classes. To specify the classes inline, leave the // class' `name` blank and fill in the rest of its fields, giving it a unique // `custom_class_id`. Refer to the inline defined class in phrase hints by its // `custom_class_id`. - repeated CustomClass custom_classes = 2; + repeated CustomClass custom_classes = 3; } diff --git a/third_party/googleapis/google/cloud/speech/v1p1beta1/speech_gapic.legacy.yaml b/third_party/googleapis/google/cloud/speech/v1p1beta1/speech_gapic.legacy.yaml deleted file mode 100644 index 0d778cd94..000000000 --- a/third_party/googleapis/google/cloud/speech/v1p1beta1/speech_gapic.legacy.yaml +++ /dev/null @@ -1,90 +0,0 @@ -type: com.google.api.codegen.ConfigProto -config_schema_version: 1.0.0 -language_settings: - java: - package_name: com.google.cloud.speech.v1p1beta1 - python: - package_name: google.cloud.speech_v1p1beta1.gapic - go: - package_name: cloud.google.com/go/speech/apiv1p1beta1 - csharp: - package_name: Google.Cloud.Speech.V1P1Beta1 - ruby: - package_name: Google::Cloud::Speech::V1p1beta1 - php: - package_name: Google\Cloud\Speech\V1p1beta1 - nodejs: - package_name: speech.v1p1beta1 - domain_layer_location: google-cloud -interfaces: -- name: google.cloud.speech.v1p1beta1.Speech - smoke_test: - method: Recognize - init_fields: - - config.language_code="en-US" - - config.sample_rate_hertz=44100 - - config.encoding=FLAC - - audio.uri="gs://gapic-toolkit/hello.flac" - collections: [] - retry_codes_def: - - name: idempotent - retry_codes: - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 1000000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 1000000 - total_timeout_millis: 5000000 - methods: - - name: Recognize - flattening: - groups: - - parameters: - - config - - audio - required_fields: - - config - - audio - sample_code_init_fields: - - config.encoding=FLAC - - config.sample_rate_hertz=44100 - - config.language_code="en-US" - - audio.uri=gs://bucket_name/file_name.flac - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 1000000 - - name: LongRunningRecognize - flattening: - groups: - - parameters: - - config - - audio - required_fields: - - config - - audio - sample_code_init_fields: - - config.encoding=FLAC - - config.sample_rate_hertz=44100 - - config.language_code="en-US" - - audio.uri=gs://bucket_name/file_name.flac - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 60000 - long_running: - return_type: google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse - metadata_type: google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata - initial_poll_delay_millis: 20000 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 45000 - total_poll_timeout_millis: 86400000 - - name: StreamingRecognize - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 1000000 diff --git a/third_party/googleapis/google/cloud/speech/v1p1beta1/speech_gapic.yaml b/third_party/googleapis/google/cloud/speech/v1p1beta1/speech_gapic.yaml index 1d8a2e220..f2462fd94 100644 --- a/third_party/googleapis/google/cloud/speech/v1p1beta1/speech_gapic.yaml +++ b/third_party/googleapis/google/cloud/speech/v1p1beta1/speech_gapic.yaml @@ -1,8 +1,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 language_settings: - java: - package_name: com.google.cloud.speech.v1p1beta1 python: package_name: google.cloud.speech_v1p1beta1.gapic go: diff --git a/third_party/googleapis/google/cloud/speech/v1p1beta1/speech_v1p1beta1.yaml b/third_party/googleapis/google/cloud/speech/v1p1beta1/speech_v1p1beta1.yaml index 9d5e374b7..e45954eae 100644 --- a/third_party/googleapis/google/cloud/speech/v1p1beta1/speech_v1p1beta1.yaml +++ b/third_party/googleapis/google/cloud/speech/v1p1beta1/speech_v1p1beta1.yaml @@ -4,6 +4,7 @@ name: speech.googleapis.com title: Cloud Speech-to-Text API apis: +- name: google.cloud.speech.v1p1beta1.Adaptation - name: google.cloud.speech.v1p1beta1.Speech types: @@ -19,6 +20,8 @@ documentation: backend: rules: + - selector: 'google.cloud.speech.v1p1beta1.Adaptation.*' + deadline: 355.0 - selector: 'google.cloud.speech.v1p1beta1.Speech.*' deadline: 355.0 - selector: 'google.longrunning.Operations.*' @@ -28,15 +31,15 @@ http: rules: - selector: google.longrunning.Operations.GetOperation get: '/v1p1beta1/operations/{name=**}' - additional_bindings: - - get: '/v1p1beta1/{name=projects/*/locations/*/operations/*}' - selector: google.longrunning.Operations.ListOperations - get: '/v1p1beta1/operations' - additional_bindings: - - get: '/v1p1beta1/{name=projects/*/locations/*}/operations' + get: /v1p1beta1/operations authentication: rules: + - selector: 'google.cloud.speech.v1p1beta1.Adaptation.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform - selector: 'google.cloud.speech.v1p1beta1.Speech.*' oauth: canonical_scopes: |- diff --git a/third_party/googleapis/google/cloud/talent/v4/BUILD.bazel b/third_party/googleapis/google/cloud/talent/v4/BUILD.bazel index e027aa457..f5a836064 100644 --- a/third_party/googleapis/google/cloud/talent/v4/BUILD.bazel +++ b/third_party/googleapis/google/cloud/talent/v4/BUILD.bazel @@ -87,11 +87,8 @@ java_grpc_library( java_gapic_library( name = "talent_java_gapic", - src = ":talent_proto_with_info", - gapic_yaml = "talent_gapic.yaml", + srcs = [":talent_proto_with_info"], grpc_service_config = "talent_grpc_service_config.json", - package = "google.cloud.talent.v4", - service_yaml = "//google/cloud/talent:talent_v4.yaml", test_deps = [ ":talent_java_grpc", ], @@ -158,9 +155,9 @@ go_gapic_library( service_yaml = "//google/cloud/talent:talent_v4.yaml", deps = [ ":talent_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", "@io_bazel_rules_go//proto/wkt:any_go_proto", "@io_bazel_rules_go//proto/wkt:duration_go_proto", ], @@ -186,12 +183,10 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -265,6 +260,7 @@ nodejs_gapic_library( name = "talent_nodejs_gapic", package_name = "@google-cloud/talent", src = ":talent_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "talent_grpc_service_config.json", main_service = "talent", package = "google.cloud.talent.v4", @@ -286,7 +282,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -302,13 +298,19 @@ ruby_grpc_library( deps = [":talent_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "talent_ruby_gapic", - src = ":talent_proto_with_info", - gapic_yaml = "talent_gapic.yaml", + srcs = [":talent_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-talent-v4", + "ruby-cloud-env-prefix=TALENT", + "ruby-cloud-product-url=https://cloud.google.com/solutions/talent-solution", + "ruby-cloud-api-id=jobs.googleapis.com", + "ruby-cloud-api-shortname=jobs", + ], grpc_service_config = "talent_grpc_service_config.json", - package = "google.cloud.talent.v4", - service_yaml = "//google/cloud/talent:talent_v4.yaml", + ruby_cloud_description = "Transform your job search and candidate matching capabilities with Cloud Talent Solution, designed to support enterprise talent acquisition technology and evolve with your growing needs. This AI solution includes features such as Job Search and Profile Search to provide candidates and employers with an enhanced talent acquisition experience.", + ruby_cloud_title = "Cloud Talent Solution V4", deps = [ ":talent_ruby_grpc", ":talent_ruby_proto", diff --git a/third_party/googleapis/google/cloud/talent/v4/talent_gapic.yaml b/third_party/googleapis/google/cloud/talent/v4/talent_gapic.yaml index fcfb57ee9..33343363a 100644 --- a/third_party/googleapis/google/cloud/talent/v4/talent_gapic.yaml +++ b/third_party/googleapis/google/cloud/talent/v4/talent_gapic.yaml @@ -2,8 +2,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 # The settings of generated code in a specific language. language_settings: - java: - package_name: com.google.cloud.talent.v4 python: package_name: google.cloud.talent_v4.gapic go: diff --git a/third_party/googleapis/google/cloud/talent/v4beta1/BUILD.bazel b/third_party/googleapis/google/cloud/talent/v4beta1/BUILD.bazel index 60e27a5d6..c9f05e62c 100644 --- a/third_party/googleapis/google/cloud/talent/v4beta1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/talent/v4beta1/BUILD.bazel @@ -84,11 +84,8 @@ java_grpc_library( java_gapic_library( name = "talent_java_gapic", - src = ":talent_proto_with_info", - gapic_yaml = "talent_gapic.yaml", + srcs = [":talent_proto_with_info"], grpc_service_config = "talent_grpc_service_config.json", - package = "google.cloud.talent.v4beta1", - service_yaml = "//google/cloud/talent:talent_v4beta1.yaml", test_deps = [ ":talent_java_grpc", ], @@ -158,9 +155,9 @@ go_gapic_library( service_yaml = "//google/cloud/talent:talent_v4beta1.yaml", deps = [ ":talent_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", "@io_bazel_rules_go//proto/wkt:any_go_proto", "@io_bazel_rules_go//proto/wkt:duration_go_proto", ], @@ -186,12 +183,10 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -265,6 +260,7 @@ nodejs_gapic_library( name = "talent_nodejs_gapic", package_name = "@google-cloud/talent", src = ":talent_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "talent_grpc_service_config.json", main_service = "talent", package = "google.cloud.talent.v4beta1", @@ -286,7 +282,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -302,12 +298,19 @@ ruby_grpc_library( deps = [":talent_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "talent_ruby_gapic", - src = ":talent_proto_with_info", - gapic_yaml = "talent_gapic.yaml", - package = "google.cloud.talent.v4beta1", - service_yaml = "//google/cloud/talent:talent_v4beta1.yaml", + srcs = [":talent_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-talent-v4beta1", + "ruby-cloud-env-prefix=TALENT", + "ruby-cloud-product-url=https://cloud.google.com/solutions/talent-solution", + "ruby-cloud-api-id=jobs.googleapis.com", + "ruby-cloud-api-shortname=jobs", + ], + grpc_service_config = "talent_grpc_service_config.json", + ruby_cloud_description = "Transform your job search and candidate matching capabilities with Cloud Talent Solution, designed to support enterprise talent acquisition technology and evolve with your growing needs. This AI solution includes features such as Job Search and Profile Search to provide candidates and employers with an enhanced talent acquisition experience.", + ruby_cloud_title = "Cloud Talent Solution V4beta1", deps = [ ":talent_ruby_grpc", ":talent_ruby_proto", @@ -349,8 +352,8 @@ csharp_grpc_library( csharp_gapic_library( name = "talent_csharp_gapic", srcs = [":talent_proto_with_info"], - grpc_service_config = "talent_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "talent_grpc_service_config.json", deps = [ ":talent_csharp_grpc", ":talent_csharp_proto", diff --git a/third_party/googleapis/google/cloud/talent/v4beta1/talent_gapic.legacy.yaml b/third_party/googleapis/google/cloud/talent/v4beta1/talent_gapic.legacy.yaml deleted file mode 100644 index 0e3612510..000000000 --- a/third_party/googleapis/google/cloud/talent/v4beta1/talent_gapic.legacy.yaml +++ /dev/null @@ -1,1890 +0,0 @@ -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.talent.v4beta1 - python: - package_name: google.cloud.talent_v4beta1.gapic - go: - package_name: cloud.google.com/go/talent/apiv4beta1 - csharp: - package_name: Google.Cloud.Talent.V4Beta1 - ruby: - package_name: Google::Cloud::Talent::V4beta1 - php: - package_name: Google\Cloud\Talent\V4beta1 - nodejs: - package_name: talent.v4beta1 - domain_layer_location: google-cloud -# 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: -- name_pattern: projects/{project} - entity_name: project - language_overrides: - - language: csharp - common_resource_name: Google.Api.Gax.ResourceNames.ProjectName -- name_pattern: projects/{project}/companies/{company} - entity_name: company_without_tenant -- name_pattern: projects/{project}/tenants/{tenant}/companies/{company} - entity_name: company - # Override on Java, or we'll get an exception caused by conflicting with company_oneof: - # "CompanyName.java: Tried to write the same file twice". - language_overrides: - - language: java - entity_name: company_with_tenant -- name_pattern: projects/{project}/jobs/{jobs} - entity_name: job_without_tenant -- name_pattern: projects/{project}/tenants/{tenant}/jobs/{jobs} - entity_name: job - # Override on Java, or we'll get an exception caused by conflicting with job_oneof: - # "JobName.java: Tried to write the same file twice". - language_overrides: - - language: java - entity_name: job_with_tenant -- name_pattern: projects/{project}/tenants/{tenant}/profiles/{profile} - entity_name: profile -- name_pattern: projects/{project}/tenants/{tenant}/profiles/{profile}/applications/{application} - entity_name: application -- name_pattern: projects/{project}/tenants/{tenant} - entity_name: tenant - -collection_oneofs: -- oneof_name: company_oneof - collection_names: - - company - - company_without_tenant -- oneof_name: job_oneof - collection_names: - - job - - job_without_tenant -- oneof_name: tenant_or_project - collection_names: - - tenant - - project - -# A list of API interface configurations. -interfaces: -# The fully qualified name of the API interface. -- name: google.cloud.talent.v4beta1.ApplicationService - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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: CreateApplication - flattening: - groups: - - parameters: - - parent - - application - required_fields: - - parent - - application - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: profile - timeout_millis: 30000 - - name: GetApplication - flattening: - groups: - - parameters: - - name - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: application - timeout_millis: 30000 - - name: UpdateApplication - flattening: - groups: - - parameters: - - application - required_fields: - - application - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - application.name: application - timeout_millis: 30000 - - name: DeleteApplication - flattening: - groups: - - parameters: - - name - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: application - timeout_millis: 30000 - - name: ListApplications - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: applications - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: profile - timeout_millis: 30000 -# The fully qualified name of the API interface. -- name: google.cloud.talent.v4beta1.CompanyService - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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: CreateCompany - samples: - standalone: - - value_sets: [job_search_create_company] - region_tag: job_search_create_company - sample_value_sets: - - id: job_search_create_company - description: Create Company - parameters: - defaults: - - parent%project="Your Google Cloud Project ID" - - parent%tenant="Your Tenant ID (using tenancy is optional)" - - company.display_name="My Company Name" - - company.external_id="Identifier of this company in my system" - attributes: - - parameter: parent%project - sample_argument_name: project_id - description: Your Google Cloud Project ID - - parameter: parent%tenant - sample_argument_name: tenant_id - description: Identifier of the Tenant - - parameter: company.display_name - sample_argument_name: display_name - - parameter: company.external_id - sample_argument_name: external_id - on_success: - - print: ["Created Company"] - - print: ["Name: %s", $resp.name] - - print: ["Display Name: %s", $resp.display_name] - - print: ["External ID: %s", $resp.external_id] - flattening: - groups: - - parameters: - - parent - - company - required_fields: - - parent - - company - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: tenant_or_project - timeout_millis: 30000 - - name: GetCompany - flattening: - groups: - - parameters: - - name - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: company_oneof - timeout_millis: 30000 - samples: - standalone: - - value_sets: [job_search_get_company] - region_tag: job_search_get_company - sample_value_sets: - - id: job_search_get_company - description: Get Company - parameters: - defaults: - - name%project="Your Google Cloud Project ID" - - name%tenant="Your Tenant ID (using tenancy is optional)" - - name%company="Company ID" - attributes: - - parameter: name%project - sample_argument_name: project_id - - parameter: name%tenant - sample_argument_name: tenant_id - - parameter: name%company - sample_argument_name: company_id - on_success: - - print: ["Company name: %s", $resp.name] - - print: ["Display name: %s", $resp.display_name] - - name: UpdateCompany - flattening: - groups: - - parameters: - - company - required_fields: - - company - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - company.name: company_oneof - timeout_millis: 30000 - - name: DeleteCompany - samples: - standalone: - - value_sets: [job_search_delete_company] - region_tag: job_search_delete_company - sample_value_sets: - - id: job_search_delete_company - description: Delete Company - parameters: - defaults: - - name%project="Your Google Cloud Project ID" - - name%tenant="Your Tenant ID (using tenancy is optional)" - - name%company="ID of the company to delete" - attributes: - - parameter: name%project - sample_argument_name: project_id - - parameter: name%tenant - sample_argument_name: tenant_id - - parameter: name%company - sample_argument_name: company_id - on_success: - - print: ["Deleted company"] - flattening: - groups: - - parameters: - - name - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: company_oneof - timeout_millis: 30000 - - name: ListCompanies - samples: - standalone: - - value_sets: [job_search_list_companies] - region_tag: job_search_list_companies - sample_value_sets: - - id: job_search_list_companies - description: List Companies - parameters: - defaults: - - parent%project="Your Google Cloud Project ID" - - parent%tenant="Your Tenant ID (using tenancy is optional)" - attributes: - - parameter: parent%project - sample_argument_name: project_id - description: Your Google Cloud Project ID - - parameter: parent%tenant - sample_argument_name: tenant_id - description: Identifier of the Tenant - on_success: - - print: ["Company Name: %s", $resp.name] - - print: ["Display Name: %s", $resp.display_name] - - print: ["External ID: %s", $resp.external_id] - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - resource_name_treatment: STATIC_TYPES - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: companies - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: tenant_or_project - timeout_millis: 30000 -# The fully qualified name of the API interface. -- name: google.cloud.talent.v4beta1.Completion - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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: CompleteQuery - required_fields: - - parent - - query - - page_size - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: tenant_or_project - company: company_oneof - timeout_millis: 30000 - samples: - standalone: - - value_sets: [job_search_autocomplete_job_title] - region_tag: job_search_autocomplete_job_title - sample_value_sets: - - id: job_search_autocomplete_job_title - description: Complete job title given partial text (autocomplete) - parameters: - defaults: - - parent%project="Your Google Cloud Project ID" - - parent%tenant="Your Tenant ID (using tenancy is optional)" - - query="[partially typed job title]" - - page_size=5 - - language_codes[0]="en-US" - attributes: - - parameter: parent%project - sample_argument_name: project_id - description: Your Google Cloud Project ID - - parameter: parent%tenant - sample_argument_name: tenant_id - description: Identifier of the Tenantd - - parameter: query - sample_argument_name: query - - parameter: page_size - sample_argument_name: num_results - - parameter: language_codes[0] - sample_argument_name: language_code - on_success: - - loop: - collection: $resp.completion_results - variable: result - body: - - print: ["Suggested title: %s", result.suggestion] - - comment: ["Suggestion type is JOB_TITLE or COMPANY_TITLE"] - - print: ["Suggestion type: %s", result.type] - -# The fully qualified name of the API interface. -- name: google.cloud.talent.v4beta1.EventService - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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: CreateClientEvent - flattening: - groups: - - parameters: - - parent - - client_event - required_fields: - - parent - - client_event - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: tenant_or_project - timeout_millis: 30000 - samples: - standalone: - - value_sets: [job_search_create_client_event] - region_tag: job_search_create_client_event - sample_value_sets: - - id: job_search_create_client_event - description: Creates a client event - parameters: - defaults: - - parent%project="Your Google Cloud Project ID" - - parent%tenant="Your Tenant ID (using tenancy is optional)" - - client_event.request_id="[request_id from ResponseMetadata]" - - client_event.event_id="[Set this to a unique identifier]" - # https://github.com/googleapis/gapic-generator/issues/2762 - # - client_event.create_time="1972-01-01T10:00:20.021Z" - - client_event.create_time.seconds=0 - - client_event.job_event.type=VIEW - - client_event.job_event.jobs[0]="projects/[Project ID]/tenants/[Tenant ID]/jobs/[Job ID]" - - client_event.job_event.jobs[1]="projects/[Project ID]/tenants/[Tenant ID]/jobs/[Job ID]" - attributes: - - parameter: parent%project - sample_argument_name: project_id - description: Your Google Cloud Project ID - - parameter: parent%tenant - sample_argument_name: tenant_id - description: Identifier of the Tenant - - parameter: client_event.request_id - sample_argument_name: request_id - description: | - A unique ID generated in the API responses. - Value should be set to the request_id from an API response. - - parameter: client_event.event_id - sample_argument_name: event_id - description: A unique identifier, generated by the client application - - parameter: client_event.create_time.seconds - description: | - The timestamp of the event as seconds of UTC time since Unix epoch - For more information on how to create google.protobuf.Timestamps - See: https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/timestamp.proto - - parameter: client_event.job_event.type - description: The type of event attributed to the behavior of the end user - - parameter: client_event.job_event.jobs[0] - description: List of job names associated with this event - on_success: - - print: ["Created client event"] -# The fully qualified name of the API interface. -- name: google.cloud.talent.v4beta1.JobService - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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: CreateJob - flattening: - groups: - - parameters: - - parent - - job - required_fields: - - parent - - job - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: tenant_or_project - job.company: company_oneof - timeout_millis: 30000 - samples: - standalone: - - value_sets: [job_search_create_job] - region_tag: job_search_create_job - - value_sets: [job_search_create_job_custom_attributes] - region_tag: job_search_create_job_custom_attributes - sample_value_sets: - - id: job_search_create_job - description: Create Job - parameters: - defaults: - - parent%project="Your Google Cloud Project ID" - - parent%tenant="Your Tenant ID (using tenancy is optional)" - ## # Currently cannot generate code which uses the helper methods to generate - ## # the company name using the projectId and companyId. Instead the user - ## # has to provide the full projects/X/companies/Y string path. - ## # See: https://github.com/googleapis/gapic-generator/issues/2621 - # - job.company.project%project="Your Google Cloud Project ID" - # - job.company.company%company="Company ID" - - job.company="Company name, e.g. projects/your-project/companies/company-id" - ## - - job.requisition_id="Job requisition ID, aka Posting ID. Unique per job." - - job.title="Software Engineer" - - job.description="This is a description of this wonderful job!" - - job.application_info.uris[0]="https://www.example.org/job-posting/123" - - job.addresses[0]="1600 Amphitheatre Parkway, Mountain View, CA 94043" - - job.addresses[1]="111 8th Avenue, New York, NY 10011" - - job.language_code="en-US" - attributes: - - parameter: parent%project - sample_argument_name: project_id - description: Your Google Cloud Project ID - - parameter: parent%tenant - sample_argument_name: tenant_id - description: Identifier of the Tenant - - parameter: job.company - sample_argument_name: company_name - - parameter: job.requisition_id - sample_argument_name: requisition_id - - parameter: job.title - sample_argument_name: title - - parameter: job.description - sample_argument_name: description - - parameter: job.application_info.uris[0] - sample_argument_name: job_application_url - - parameter: job.addresses[0] - sample_argument_name: address_one - - parameter: job.addresses[1] - sample_argument_name: address_two - - parameter: job.language_code - sample_argument_name: language_code - on_success: - - print: - - "Created job: %s" - - $resp.name - - id: job_search_create_job_custom_attributes - description: Create Job with Custom Attributes - parameters: - defaults: - - parent%project="Your Google Cloud Project ID" - - parent%tenant="Your Tenant ID (using tenancy is optional)" - - job.company="Company name, e.g. projects/your-project/companies/company-id" - - job.requisition_id="Job requisition ID, aka Posting ID. Unique per job." - - job.language_code="en-US" - # - custom_attributes["my_attribute"][0]="My attribute value" - attributes: - - parameter: parent%project - sample_argument_name: project_id - description: Your Google Cloud Project ID - - parameter: parent%tenant - sample_argument_name: tenant_id - description: Identifier of the Tenantd - - parameter: job.company - sample_argument_name: company_name - - parameter: job.requisition_id - sample_argument_name: requisition_id - - parameter: job.language_code - sample_argument_name: language_code - on_success: - - print: - - "Created job: %s" - - $resp.name - - name: GetJob - flattening: - groups: - - parameters: - - name - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: job_oneof - timeout_millis: 30000 - samples: - standalone: - - value_sets: [job_search_get_job] - region_tag: job_search_get_job - sample_value_sets: - - id: job_search_get_job - description: Get Job - parameters: - defaults: - - name%project="Your Google Cloud Project ID" - - name%tenant="Your Tenant ID (using tenancy is optional)" - - name%jobs="Job ID" - attributes: - - parameter: name%project - sample_argument_name: project_id - - parameter: name%tenant - sample_argument_name: tenant_id - - parameter: name%jobs - sample_argument_name: job_id - on_success: - - print: ["Job name: %s", $resp.name] - - print: ["Requisition ID: %s", $resp.requisition_id] - - print: ["Title: %s", $resp.title] - - print: ["Description: %s", $resp.description] - - print: ["Posting language: %s", $resp.language_code] - - loop: - collection: $resp.addresses - variable: address - body: - - print: ["Address: %s", address] - - loop: - collection: $resp.application_info.emails - variable: email - body: - - print: ["Email: %s", email] - - loop: - collection: $resp.application_info.uris - variable: website_uri - body: - - print: ["Website: %s", website_uri] - - name: UpdateJob - flattening: - groups: - - parameters: - - job - required_fields: - - job - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - job.name: job_oneof - job.company: company_oneof - timeout_millis: 30000 - - name: DeleteJob - flattening: - groups: - - parameters: - - name - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: job_oneof - timeout_millis: 30000 - samples: - standalone: - - value_sets: [job_search_delete_job] - region_tag: job_search_delete_job - sample_value_sets: - - id: job_search_delete_job - description: Delete Job - parameters: - defaults: - - name%project="Your Google Cloud Project ID" - - name%tenant="Your Tenant ID (using tenancy is optional)" - - name%jobs="Company ID" - attributes: - - parameter: name%project - sample_argument_name: project_id - - parameter: name%tenant - sample_argument_name: tenant_id - - parameter: name%jobs - sample_argument_name: job_id - on_success: - - print: - - "Deleted job." - - name: ListJobs - samples: - standalone: - - value_sets: [job_search_list_jobs] - region_tag: job_search_list_jobs - sample_value_sets: - - id: job_search_list_jobs - description: List Jobs - parameters: - defaults: - - parent%project="Your Google Cloud Project ID" - - parent%tenant="Your Tenant ID (using tenancy is optional)" - - filter="companyName=projects/my-project/companies/company-id" - attributes: - - parameter: parent%project - sample_argument_name: project_id - description: Your Google Cloud Project ID - - parameter: parent%tenant - sample_argument_name: tenant_id - description: Identifier of the Tenant - - parameter: filter - sample_argument_name: filter - on_success: - - print: - - "Job name: %s" - - $resp.name - - print: - - "Job requisition ID: %s" - - $resp.requisition_id - - print: - - "Job title: %s" - - $resp.title - - print: - - "Job description: %s" - - $resp.description - flattening: - groups: - - parameters: - - parent - - filter - required_fields: - - parent - - filter - resource_name_treatment: STATIC_TYPES - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: jobs - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: tenant_or_project - timeout_millis: 30000 - - name: BatchDeleteJobs - flattening: - groups: - - parameters: - - parent - - filter - required_fields: - - parent - - filter - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: tenant_or_project - timeout_millis: 30000 - samples: - standalone: - - value_sets: [job_search_batch_delete_job] - region_tag: job_search_batch_delete_job - sample_value_sets: - - id: job_search_batch_delete_job - description: Batch delete jobs using a filter - parameters: - defaults: - - parent%project="Your Google Cloud Project ID" - - parent%tenant="Your Tenant ID (using tenancy is optional)" - - filter="[Query]" - attributes: - - parameter: parent%project - sample_argument_name: project_id - description: Your Google Cloud Project ID - - parameter: parent%tenant - sample_argument_name: tenant_id - description: Identifier of the Tenantd - - parameter: filter - sample_argument_name: filter - description: | - The filter string specifies the jobs to be deleted. - For example: - companyName = "projects/api-test-project/companies/123" AND equisitionId = "req-1" - on_success: - - print: ["Batch deleted jobs from filter"] - - name: SearchJobs - required_fields: - - parent - - request_metadata - resource_name_treatment: STATIC_TYPES - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: matching_jobs - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: tenant_or_project - timeout_millis: 30000 - samples: - standalone: - - value_sets: [job_search_custom_ranking_search] - region_tag: job_search_custom_ranking_search - - value_sets: [job_search_commute_search] - region_tag: job_search_commute_search - - value_sets: [job_search_histogram_search] - region_tag: job_search_histogram_search - sample_value_sets: - - id: job_search_custom_ranking_search - description: Search Jobs using custom rankings - parameters: - defaults: - - parent%project="Your Google Cloud Project ID" - - parent%tenant="Your Tenant ID (using tenancy is optional)" - # - job_query.company_names[0]="projects/[Project ID]/companies/[Company ID]" - - request_metadata.domain="www.example.com" - - request_metadata.session_id="Hashed session identifier" - - request_metadata.user_id="Hashed user identifier" - - custom_ranking_info.importance_level=EXTREME - - custom_ranking_info.ranking_expression="(someFieldLong + 25) * 0.25" - - order_by="custom_ranking desc" - attributes: - - parameter: parent%project - sample_argument_name: project_id - description: Your Google Cloud Project ID - - parameter: parent%tenant - sample_argument_name: tenant_id - description: Identifier of the Tenantd - on_success: - - print: ["Job summary: %s", $resp.job_summary] - - print: ["Job title snippet: %s", $resp.job_title_snippet] - - define: job=$resp.job - - print: ["Job name: %s", job.name] - - print: ["Job title: %s", job.title] - - id: job_search_commute_search - description: Search Jobs using commute distance - parameters: - defaults: - - parent%project="Your Google Cloud Project ID" - - parent%tenant="Your Tenant ID (using tenancy is optional)" - # - job_query.company_names[0]="projects/[Project ID]/companies/[Company ID]" - - request_metadata.domain="www.example.com" - - request_metadata.session_id="Hashed session identifier" - - request_metadata.user_id="Hashed user identifier" - - job_query.commute_filter.commute_method=TRANSIT - # 30 minutes - - job_query.commute_filter.travel_duration.seconds=1800 - - job_query.commute_filter.start_coordinates.latitude=37.422408 - - job_query.commute_filter.start_coordinates.longitude=-122.084068 - attributes: - - parameter: parent%project - sample_argument_name: project_id - - parameter: parent%tenant - sample_argument_name: tenant_id - on_success: - - print: ["Job summary: %s", $resp.job_summary] - - print: ["Job title snippet: %s", $resp.job_title_snippet] - - define: job=$resp.job - - print: ["Job name: %s", job.name] - - print: ["Job title: %s", job.title] - - id: job_search_histogram_search - description: Search Jobs with histogram queries - parameters: - defaults: - - parent%project="Your Google Cloud Project ID" - - parent%tenant="Your Tenant ID (using tenancy is optional)" - - request_metadata.domain="www.example.com" - - request_metadata.session_id="Hashed session identifier" - - request_metadata.user_id="Hashed user identifier" - - histogram_queries[0].histogram_query="count(base_compensation, [bucket(12, 20)])" - attributes: - - parameter: parent%project - sample_argument_name: project_id - - parameter: parent%tenant - sample_argument_name: tenant_id - - parameter: histogram_queries[0].histogram_query - sample_argument_name: query - description: | - Histogram query - More info on histogram facets, constants, and built-in functions: - https://godoc.org/google.golang.org/genproto/googleapis/cloud/talent/v4beta1#SearchJobsRequest - on_success: - - print: ["Job summary: %s", $resp.job_summary] - - print: ["Job title snippet: %s", $resp.job_title_snippet] - - define: job=$resp.job - - print: ["Job name: %s", job.name] - - print: ["Job title: %s", job.title] - - name: SearchJobsForAlert - required_fields: - - parent - - request_metadata - resource_name_treatment: STATIC_TYPES - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: matching_jobs - retry_codes_name: non_idempotent - retry_params_name: default - 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: 30000 - samples: - standalone: - - value_sets: [job_search_batch_create_jobs] - region_tag: job_search_batch_create_jobs - sample_value_sets: - - id: job_search_batch_create_jobs - description: Batch Create Jobs - parameters: - defaults: - - parent%project="Your Google Cloud Project ID" - - parent%tenant="Your Tenant ID (using tenancy is optional)" - ## # Currently cannot generate code which uses the helper methods to generate - ## # the company name using the projectId and companyId. Instead the user - ## # has to provide the full projects/X/companies/Y string path. - ## # See: https://github.com/googleapis/gapic-generator/issues/2621 - # - job.company.project%project="Your Google Cloud Project ID" - # - job.company.company%company="Company ID" - - jobs[0].company="Company name, e.g. projects/your-project/companies/company-id" - - jobs[0].requisition_id="Job requisition ID, aka Posting ID. Unique per job." - - jobs[0].title="Software Engineer" - - jobs[0].description="This is a description of this wonderful job!" - - jobs[0].application_info.uris[0]="https://www.example.org/job-posting/123" - - jobs[0].addresses[0]="1600 Amphitheatre Parkway, Mountain View, CA 94043" - - jobs[0].language_code="en-US" - - jobs[1].company="Company name, e.g. projects/your-project/companies/company-id" - - jobs[1].requisition_id="Job requisition ID, aka Posting ID. Unique per job." - - jobs[1].title="Quality Assurance" - - jobs[1].description="This is a description of this wonderful job!" - - jobs[1].application_info.uris[0]="https://www.example.org/job-posting/123" - - jobs[1].addresses[0]="111 8th Avenue, New York, NY 10011" - - jobs[1].language_code="en-US" - attributes: - - parameter: parent%project - sample_argument_name: project_id - description: Your Google Cloud Project ID - - parameter: parent%tenant - sample_argument_name: tenant_id - description: Identifier of the Tenant - - parameter: jobs[0].company - sample_argument_name: company_name_one - - parameter: jobs[0].requisition_id - sample_argument_name: requisition_id_one - - parameter: jobs[0].title - sample_argument_name: title_one - - parameter: jobs[0].description - sample_argument_name: description_one - - parameter: jobs[0].application_info.uris[0] - sample_argument_name: job_application_url_one - - parameter: jobs[0].addresses[0] - sample_argument_name: address_one - - parameter: jobs[0].language_code - sample_argument_name: language_code_one - - parameter: jobs[1].company - sample_argument_name: company_name_two - - parameter: jobs[1].requisition_id - sample_argument_name: requisition_id_two - - parameter: jobs[1].title - sample_argument_name: title_two - - parameter: jobs[1].description - sample_argument_name: description_two - - parameter: jobs[1].application_info.uris[0] - sample_argument_name: job_application_url_two - - parameter: jobs[1].addresses[0] - sample_argument_name: address_two - - parameter: jobs[1].language_code - sample_argument_name: language_code_two - on_success: - - print: - - "Batch response: %s" - - $resp - - 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: 30000 - samples: - standalone: - - value_sets: [job_search_batch_update_jobs] - region_tag: job_search_batch_update_jobs - sample_value_sets: - - id: job_search_batch_update_jobs - description: Batch Update Jobs - parameters: - defaults: - - parent%project="Your Google Cloud Project ID" - - parent%tenant="Your Tenant ID (using tenancy is optional)" - ## # Currently cannot generate code which uses the helper methods to generate - ## # the company name using the projectId and companyId. Instead the user - ## # has to provide the full projects/X/companies/Y string path. - ## # See: https://github.com/googleapis/gapic-generator/issues/2621 - # - job.company.project%project="Your Google Cloud Project ID" - # - job.company.company%company="Company ID" - - jobs[0].name = "job name, e.g. projects/your-project/tenants/tenant-id/jobs/job-id" - - jobs[0].company="Company name, e.g. projects/your-project/companies/company-id" - - jobs[0].requisition_id="Job requisition ID, aka Posting ID. Unique per job." - - jobs[0].title="Software Engineer" - - jobs[0].description="This is a description of this wonderful job!" - - jobs[0].application_info.uris[0]="https://www.example.org/job-posting/123" - - jobs[0].addresses[0]="1600 Amphitheatre Parkway, Mountain View, CA 94043" - - jobs[0].language_code="en-US" - - jobs[1].name = "job name, e.g. projects/your-project/tenants/tenant-id/jobs/job-id" - - jobs[1].company="Company name, e.g. projects/your-project/companies/company-id" - - jobs[1].requisition_id="Job requisition ID, aka Posting ID. Unique per job." - - jobs[1].title="Quality Assurance" - - jobs[1].description="This is a description of this wonderful job!" - - jobs[1].application_info.uris[0]="https://www.example.org/job-posting/123" - - jobs[1].addresses[0]="111 8th Avenue, New York, NY 10011" - - jobs[1].language_code="en-US" - attributes: - - parameter: parent%project - sample_argument_name: project_id - description: Your Google Cloud Project ID - - parameter: parent%tenant - sample_argument_name: tenant_id - description: Identifier of the Tenant - - parameter: jobs[0].name - sample_argument_name: job_name_one - - parameter: jobs[0].company - sample_argument_name: company_name_one - - parameter: jobs[0].requisition_id - sample_argument_name: requisition_id_one - - parameter: jobs[0].title - sample_argument_name: title_one - - parameter: jobs[0].description - sample_argument_name: description_one - - parameter: jobs[0].application_info.uris[0] - sample_argument_name: job_application_url_one - - parameter: jobs[0].addresses[0] - sample_argument_name: address_one - - parameter: jobs[0].language_code - sample_argument_name: language_code_one - - parameter: jobs[1].name - sample_argument_name: job_name_two - - parameter: jobs[1].company - sample_argument_name: company_name_two - - parameter: jobs[1].requisition_id - sample_argument_name: requisition_id_two - - parameter: jobs[1].title - sample_argument_name: title_two - - parameter: jobs[1].description - sample_argument_name: description_two - - parameter: jobs[1].application_info.uris[0] - sample_argument_name: job_application_url_two - - parameter: jobs[1].addresses[0] - sample_argument_name: address_two - - parameter: jobs[1].language_code - sample_argument_name: language_code_two - on_success: - - print: - - "Batch response: %s" - - $resp -# The fully qualified name of the API interface. -- name: google.cloud.talent.v4beta1.ProfileService - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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: ListProfiles - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - resource_name_treatment: STATIC_TYPES - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: profiles - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: tenant - timeout_millis: 30000 - - name: CreateProfile - flattening: - groups: - - parameters: - - parent - - profile - required_fields: - - parent - - profile - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: tenant - timeout_millis: 30000 - - name: GetProfile - flattening: - groups: - - parameters: - - name - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: profile - timeout_millis: 30000 - - name: UpdateProfile - flattening: - groups: - - parameters: - - profile - required_fields: - - profile - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - profile.name: profile - timeout_millis: 30000 - - name: DeleteProfile - flattening: - groups: - - parameters: - - name - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: profile - timeout_millis: 30000 - - name: SearchProfiles - required_fields: - - parent - - request_metadata - resource_name_treatment: STATIC_TYPES - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: summarized_profiles - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: tenant - timeout_millis: 30000 -# The fully qualified name of the API interface. -- name: google.cloud.talent.v4beta1.TenantService - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 300000 - # 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: CreateTenant - flattening: - groups: - - parameters: - - parent - - tenant - required_fields: - - parent - - tenant - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 30000 - samples: - standalone: - - value_sets: [job_search_create_tenant] - region_tag: job_search_create_tenant - sample_value_sets: - - id: job_search_create_tenant - description: Create Tenant for scoping resources, e.g. companies and jobs - parameters: - defaults: - - parent%project="Your Google Cloud Project ID" - - tenant.external_id="Your Unique Identifier for Tenant" - attributes: - - parameter: parent%project - sample_argument_name: project_id - - parameter: tenant.external_id - sample_argument_name: external_id - on_success: - - print: ["Created Tenant"] - - print: ["Name: %s", $resp.name] - - print: ["External ID: %s", $resp.external_id] - - name: GetTenant - flattening: - groups: - - parameters: - - name - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: tenant - timeout_millis: 30000 - samples: - standalone: - - value_sets: [job_search_get_tenant] - region_tag: job_search_get_tenant - sample_value_sets: - - id: job_search_get_tenant - description: Get Tenant by name - parameters: - defaults: - - name%project="Your Google Cloud Project ID" - - name%tenant="Your Tenant ID" - attributes: - - parameter: name%project - sample_argument_name: project_id - - parameter: name%tenant - sample_argument_name: tenant_id - on_success: - - print: ["Name: %s", $resp.name] - - print: ["External ID: %s", $resp.external_id] - - name: UpdateTenant - flattening: - groups: - - parameters: - - tenant - required_fields: - - tenant - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - tenant.name: tenant - timeout_millis: 30000 - - name: DeleteTenant - flattening: - groups: - - parameters: - - name - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: tenant - timeout_millis: 30000 - samples: - standalone: - - value_sets: [job_search_delete_tenant] - region_tag: job_search_delete_tenant - sample_value_sets: - - id: job_search_delete_tenant - description: Delete Tenant - parameters: - defaults: - - name%project="Your Google Cloud Project ID" - - name%tenant="Your Tenant ID)" - attributes: - - parameter: name%project - sample_argument_name: project_id - - parameter: name%tenant - sample_argument_name: tenant_id - on_success: - - print: ["Deleted Tenant."] - - name: ListTenants - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - resource_name_treatment: STATIC_TYPES - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: tenants - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 30000 - samples: - standalone: - - value_sets: [job_search_list_tenants] - region_tag: job_search_list_tenants - sample_value_sets: - - id: job_search_list_tenants - description: List Tenants - parameters: - defaults: - - parent%project="Your Google Cloud Project ID" - - parent%tenant="Your Tenant ID" - attributes: - - parameter: parent%project - sample_argument_name: project_id - on_success: - - print: ["Tenant Name: %s", $resp.name] - - print: ["External ID: %s", $resp.external_id] -resource_name_generation: -- message_name: Application - field_entity_map: - name: application -- message_name: CreateApplicationRequest - field_entity_map: - parent: profile -- message_name: GetApplicationRequest - field_entity_map: - name: application -- message_name: DeleteApplicationRequest - field_entity_map: - name: application -- message_name: ListApplicationsRequest - field_entity_map: - parent: profile -- message_name: Company - field_entity_map: - name: company_oneof -- message_name: CreateCompanyRequest - field_entity_map: - parent: tenant_or_project -- message_name: GetCompanyRequest - field_entity_map: - name: company_oneof -- message_name: DeleteCompanyRequest - field_entity_map: - name: company_oneof -- message_name: ListCompaniesRequest - field_entity_map: - parent: tenant_or_project -- message_name: CompleteQueryRequest - field_entity_map: - parent: tenant_or_project - company: company_oneof -- message_name: CreateClientEventRequest - field_entity_map: - parent: tenant_or_project -- message_name: Job - field_entity_map: - name: job_oneof - company: company_oneof -- message_name: CreateJobRequest - field_entity_map: - parent: tenant_or_project - job.company: company_oneof -- message_name: GetJobRequest - field_entity_map: - name: job_oneof -- message_name: DeleteJobRequest - field_entity_map: - name: job_oneof -- message_name: ListJobsRequest - field_entity_map: - parent: tenant_or_project -- message_name: BatchDeleteJobsRequest - field_entity_map: - parent: tenant_or_project -- message_name: SearchJobsRequest - field_entity_map: - parent: tenant_or_project -- message_name: SearchJobsForAlertRequest - field_entity_map: - parent: tenant_or_project -- message_name: Profile - field_entity_map: - name: profile -- message_name: CreateProfileRequest - field_entity_map: - parent: tenant -- message_name: GetProfileRequest - field_entity_map: - name: profile -- message_name: DeleteProfileRequest - field_entity_map: - name: profile -- message_name: ListProfilesRequest - field_entity_map: - parent: tenant -- message_name: SearchProfilesRequest - field_entity_map: - parent: tenant -- message_name: Tenant - field_entity_map: - name: tenant -- message_name: CreateTenantRequest - field_entity_map: - parent: project -- message_name: GetTenantRequest - field_entity_map: - name: tenant -- message_name: DeleteTenantRequest - field_entity_map: - name: tenant -- message_name: ListTenantsRequest - field_entity_map: - parent: project diff --git a/third_party/googleapis/google/cloud/talent/v4beta1/talent_gapic.yaml b/third_party/googleapis/google/cloud/talent/v4beta1/talent_gapic.yaml index 8487d7b58..0ec4e14ca 100644 --- a/third_party/googleapis/google/cloud/talent/v4beta1/talent_gapic.yaml +++ b/third_party/googleapis/google/cloud/talent/v4beta1/talent_gapic.yaml @@ -2,8 +2,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 # The settings of generated code in a specific language. language_settings: - java: - package_name: com.google.cloud.talent.v4beta1 python: package_name: google.cloud.talent_v4beta1.gapic go: diff --git a/third_party/googleapis/google/cloud/tasks/v2/BUILD.bazel b/third_party/googleapis/google/cloud/tasks/v2/BUILD.bazel index 2ed930cba..704d01ca3 100644 --- a/third_party/googleapis/google/cloud/tasks/v2/BUILD.bazel +++ b/third_party/googleapis/google/cloud/tasks/v2/BUILD.bazel @@ -65,11 +65,8 @@ java_grpc_library( java_gapic_library( name = "tasks_java_gapic", - src = ":tasks_proto_with_info", - gapic_yaml = "cloudtasks_gapic.yaml", + srcs = [":tasks_proto_with_info"], grpc_service_config = "cloudtasks_grpc_service_config.json", - package = "google.cloud.tasks.v2", - service_yaml = "cloudtasks_v2.yaml", test_deps = [ ":tasks_java_grpc", "//google/iam/v1:iam_java_grpc", @@ -154,12 +151,10 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -233,6 +228,7 @@ nodejs_gapic_library( name = "tasks_nodejs_gapic", package_name = "@google-cloud/tasks", src = ":tasks_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "cloudtasks_grpc_service_config.json", main_service = "tasks", package = "google.cloud.tasks.v2", @@ -254,7 +250,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -270,12 +266,19 @@ ruby_grpc_library( deps = [":tasks_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "tasks_ruby_gapic", - src = ":tasks_proto_with_info", - gapic_yaml = "cloudtasks_gapic.yaml", - package = "google.cloud.tasks.v2", - service_yaml = "cloudtasks_v2.yaml", + srcs = [":tasks_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-tasks-v2", + "ruby-cloud-env-prefix=TASKS", + "ruby-cloud-product-url=https://cloud.google.com/tasks", + "ruby-cloud-api-id=cloudtasks.googleapis.com", + "ruby-cloud-api-shortname=cloudtasks", + ], + grpc_service_config = "cloudtasks_grpc_service_config.json", + ruby_cloud_description = "Cloud Tasks is a fully managed service that allows you to manage the execution, dispatch and delivery of a large number of distributed tasks. You can asynchronously perform work outside of a user request. Your tasks can be executed on App Engine or any arbitrary HTTP endpoint.", + ruby_cloud_title = "Cloud Tasks V2", deps = [ ":tasks_ruby_grpc", ":tasks_ruby_proto", @@ -317,8 +320,8 @@ csharp_grpc_library( csharp_gapic_library( name = "tasks_csharp_gapic", srcs = [":tasks_proto_with_info"], - grpc_service_config = "cloudtasks_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "cloudtasks_grpc_service_config.json", deps = [ ":tasks_csharp_grpc", ":tasks_csharp_proto", diff --git a/third_party/googleapis/google/cloud/tasks/v2/cloudtasks_gapic.legacy.yaml b/third_party/googleapis/google/cloud/tasks/v2/cloudtasks_gapic.legacy.yaml deleted file mode 100644 index 49373a7b8..000000000 --- a/third_party/googleapis/google/cloud/tasks/v2/cloudtasks_gapic.legacy.yaml +++ /dev/null @@ -1,439 +0,0 @@ -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.tasks.v2 - python: - package_name: google.cloud.tasks_v2.gapic - release_level: GA - go: - package_name: cloud.google.com/go/cloudtasks/apiv2 - release_level: GA - csharp: - package_name: Google.Cloud.Tasks.V2 - release_level: GA - ruby: - package_name: Google::Cloud::Tasks::V2 - release_level: GA - php: - package_name: Google\Cloud\Tasks\V2 - release_level: GA - nodejs: - package_name: tasks.v2 -# A list of API interface configurations. -interfaces: -- name: google.cloud.tasks.v2.CloudTasks - # 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: - - name_pattern: projects/{project} - entity_name: project - language_overrides: - - language: csharp - common_resource_name: Google.Api.Gax.ResourceNames.ProjectName - - name_pattern: projects/{project}/locations/{location} - entity_name: location - - name_pattern: projects/{project}/locations/{location}/queues/{queue} - entity_name: queue - - name_pattern: projects/{project}/locations/{location}/queues/{queue}/tasks/{task} - entity_name: task - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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: ListQueues - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - header_request_params: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: queues - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: location - timeout_millis: 10000 - - name: GetQueue - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - name - required_fields: - - name - header_request_params: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: queue - timeout_millis: 10000 - - name: CreateQueue - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - parent - - queue - required_fields: - - parent - - queue - header_request_params: - - parent - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: location - timeout_millis: 10000 - - name: UpdateQueue - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - queue - - update_mask - required_fields: - - queue - header_request_params: - - queue.name - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - queue.name: queue - timeout_millis: 10000 - - name: DeleteQueue - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - name - required_fields: - - name - header_request_params: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: queue - timeout_millis: 10000 - - name: PurgeQueue - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - name - required_fields: - - name - header_request_params: - - name - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: queue - timeout_millis: 10000 - - name: PauseQueue - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - name - required_fields: - - name - header_request_params: - - name - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: queue - timeout_millis: 10000 - - name: ResumeQueue - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - name - required_fields: - - name - header_request_params: - - name - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: queue - timeout_millis: 10000 - - name: GetIamPolicy - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - resource - required_fields: - - resource - header_request_params: - - resource - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - resource: queue - timeout_millis: 10000 - - name: SetIamPolicy - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - resource - - policy - required_fields: - - resource - - policy - header_request_params: - - resource - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - resource: queue - timeout_millis: 10000 - - name: TestIamPermissions - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - resource - - permissions - required_fields: - - resource - - permissions - header_request_params: - - resource - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - resource: queue - timeout_millis: 10000 - - name: ListTasks - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - header_request_params: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: tasks - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: queue - timeout_millis: 10000 - - name: GetTask - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - name - required_fields: - - name - header_request_params: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: task - timeout_millis: 10000 - - name: CreateTask - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - parent - - task - required_fields: - - parent - - task - header_request_params: - - parent - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: queue - timeout_millis: 10000 - - name: DeleteTask - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - name - required_fields: - - name - header_request_params: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: task - timeout_millis: 10000 - - name: RunTask - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - name - required_fields: - - name - header_request_params: - - name - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: task - timeout_millis: 10000 -resource_name_generation: -- message_name: Queue - field_entity_map: - name: queue -- message_name: Task - field_entity_map: - name: task -- message_name: ListQueuesRequest - field_entity_map: - parent: location -- message_name: GetQueueRequest - field_entity_map: - name: queue -- message_name: CreateQueueRequest - field_entity_map: - parent: location -- message_name: UpdateQueueRequest - field_entity_map: - queue.name: queue -- message_name: DeleteQueueRequest - field_entity_map: - name: queue -- message_name: PurgeQueueRequest - field_entity_map: - name: queue -- message_name: PauseQueueRequest - field_entity_map: - name: queue -- message_name: ResumeQueueRequest - field_entity_map: - name: queue -- message_name: ListTasksRequest - field_entity_map: - parent: queue -- message_name: GetTaskRequest - field_entity_map: - name: task -- message_name: CreateTaskRequest - field_entity_map: - parent: queue -- message_name: DeleteTaskRequest - field_entity_map: - name: task -- message_name: RunTaskRequest - field_entity_map: - name: task -- message_name: google.iam.v1.GetIamPolicyRequest - field_entity_map: - resource: "*" -- message_name: google.iam.v1.SetIamPolicyRequest - field_entity_map: - resource: "*" -- message_name: google.iam.v1.TestIamPermissionsRequest - field_entity_map: - resource: "*" diff --git a/third_party/googleapis/google/cloud/tasks/v2/cloudtasks_gapic.yaml b/third_party/googleapis/google/cloud/tasks/v2/cloudtasks_gapic.yaml index e26465c16..980fec463 100644 --- a/third_party/googleapis/google/cloud/tasks/v2/cloudtasks_gapic.yaml +++ b/third_party/googleapis/google/cloud/tasks/v2/cloudtasks_gapic.yaml @@ -2,8 +2,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 # The settings of generated code in a specific language. language_settings: - java: - package_name: com.google.cloud.tasks.v2 python: package_name: google.cloud.tasks_v2.gapic release_level: GA diff --git a/third_party/googleapis/google/cloud/tasks/v2beta2/BUILD.bazel b/third_party/googleapis/google/cloud/tasks/v2beta2/BUILD.bazel index 069213c61..dbdf8cfa6 100644 --- a/third_party/googleapis/google/cloud/tasks/v2beta2/BUILD.bazel +++ b/third_party/googleapis/google/cloud/tasks/v2beta2/BUILD.bazel @@ -65,11 +65,8 @@ java_grpc_library( java_gapic_library( name = "tasks_java_gapic", - src = ":tasks_proto_with_info", - gapic_yaml = "cloudtasks_gapic.yaml", + srcs = [":tasks_proto_with_info"], grpc_service_config = "cloudtasks_grpc_service_config.json", - package = "google.cloud.tasks.v2beta2", - service_yaml = "cloudtasks_v2beta2.yaml", test_deps = [ ":tasks_java_grpc", "//google/iam/v1:iam_java_grpc", @@ -155,12 +152,10 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -234,6 +229,7 @@ nodejs_gapic_library( name = "tasks_nodejs_gapic", package_name = "@google-cloud/tasks", src = ":tasks_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "cloudtasks_grpc_service_config.json", main_service = "tasks", package = "google.cloud.tasks.v2beta2", @@ -255,7 +251,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -271,12 +267,19 @@ ruby_grpc_library( deps = [":tasks_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "tasks_ruby_gapic", - src = ":tasks_proto_with_info", - gapic_yaml = "cloudtasks_gapic.yaml", - package = "google.cloud.tasks.v2beta2", - service_yaml = "cloudtasks_v2beta2.yaml", + srcs = [":tasks_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-tasks-v2beta2", + "ruby-cloud-env-prefix=TASKS", + "ruby-cloud-product-url=https://cloud.google.com/tasks", + "ruby-cloud-api-id=cloudtasks.googleapis.com", + "ruby-cloud-api-shortname=cloudtasks", + ], + grpc_service_config = "cloudtasks_grpc_service_config.json", + ruby_cloud_description = "Cloud Tasks is a fully managed service that allows you to manage the execution, dispatch and delivery of a large number of distributed tasks. You can asynchronously perform work outside of a user request. Your tasks can be executed on App Engine or any arbitrary HTTP endpoint.", + ruby_cloud_title = "Cloud Tasks V2beta2", deps = [ ":tasks_ruby_grpc", ":tasks_ruby_proto", @@ -318,8 +321,8 @@ csharp_grpc_library( csharp_gapic_library( name = "tasks_csharp_gapic", srcs = [":tasks_proto_with_info"], - grpc_service_config = "cloudtasks_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "cloudtasks_grpc_service_config.json", deps = [ ":tasks_csharp_grpc", ":tasks_csharp_proto", diff --git a/third_party/googleapis/google/cloud/tasks/v2beta2/cloudtasks.proto b/third_party/googleapis/google/cloud/tasks/v2beta2/cloudtasks.proto index afea6919a..8b2fa57e5 100644 --- a/third_party/googleapis/google/cloud/tasks/v2beta2/cloudtasks.proto +++ b/third_party/googleapis/google/cloud/tasks/v2beta2/cloudtasks.proto @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,7 +11,6 @@ // WITHOUT 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"; @@ -431,6 +430,12 @@ message ListQueuesRequest { // method. It is an error to switch the value of the // [filter][google.cloud.tasks.v2beta2.ListQueuesRequest.filter] while iterating through pages. string page_token = 4; + + // Optional. Read mask is used for a more granular control over what the API returns. + // If the mask is not present all fields will be returned except + // [Queue.stats]. [Queue.stats] will be returned only if it was explicitly + // specified in the mask. + google.protobuf.FieldMask read_mask = 5 [(google.api.field_behavior) = OPTIONAL]; } // Response message for [ListQueues][google.cloud.tasks.v2beta2.CloudTasks.ListQueues]. @@ -460,6 +465,12 @@ message GetQueueRequest { type: "cloudtasks.googleapis.com/Queue" } ]; + + // Optional. Read mask is used for a more granular control over what the API returns. + // If the mask is not present all fields will be returned except + // [Queue.stats]. [Queue.stats] will be returned only if it was explicitly + // specified in the mask. + google.protobuf.FieldMask read_mask = 2 [(google.api.field_behavior) = OPTIONAL]; } // Request message for [CreateQueue][google.cloud.tasks.v2beta2.CloudTasks.CreateQueue]. diff --git a/third_party/googleapis/google/cloud/tasks/v2beta2/cloudtasks_gapic.legacy.yaml b/third_party/googleapis/google/cloud/tasks/v2beta2/cloudtasks_gapic.legacy.yaml deleted file mode 100644 index 28584daa9..000000000 --- a/third_party/googleapis/google/cloud/tasks/v2beta2/cloudtasks_gapic.legacy.yaml +++ /dev/null @@ -1,511 +0,0 @@ -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.tasks.v2beta2 - python: - package_name: google.cloud.tasks_v2beta2.gapic - go: - package_name: cloud.google.com/go/cloudtasks/apiv2beta2 - csharp: - package_name: Google.Cloud.Tasks.V2Beta2 - ruby: - package_name: Google::Cloud::Tasks::V2beta2 - php: - package_name: Google\Cloud\Tasks\V2beta2 - nodejs: - package_name: tasks.v2beta2 -# A list of API interface configurations. -interfaces: -- name: google.cloud.tasks.v2beta2.CloudTasks - # 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: - - name_pattern: projects/{project} - entity_name: project - language_overrides: - - language: csharp - common_resource_name: Google.Api.Gax.ResourceNames.ProjectName - - name_pattern: projects/{project}/locations/{location} - entity_name: location - - name_pattern: projects/{project}/locations/{location}/queues/{queue} - entity_name: queue - - name_pattern: projects/{project}/locations/{location}/queues/{queue}/tasks/{task} - entity_name: task - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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: ListQueues - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - header_request_params: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: queues - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: location - timeout_millis: 10000 - - name: GetQueue - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - name - required_fields: - - name - header_request_params: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: queue - timeout_millis: 10000 - - name: CreateQueue - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - parent - - queue - required_fields: - - parent - - queue - header_request_params: - - parent - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: location - timeout_millis: 10000 - - name: UpdateQueue - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - queue - - update_mask - required_fields: - - queue - header_request_params: - - queue.name - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - queue.name: queue - timeout_millis: 10000 - - name: DeleteQueue - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - name - required_fields: - - name - header_request_params: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: queue - timeout_millis: 10000 - - name: PurgeQueue - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - name - required_fields: - - name - header_request_params: - - name - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: queue - timeout_millis: 10000 - - name: PauseQueue - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - name - required_fields: - - name - header_request_params: - - name - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: queue - timeout_millis: 10000 - - name: ResumeQueue - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - name - required_fields: - - name - header_request_params: - - name - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: queue - timeout_millis: 10000 - - name: GetIamPolicy - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - resource - required_fields: - - resource - header_request_params: - - resource - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - resource: queue - timeout_millis: 10000 - - name: SetIamPolicy - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - resource - - policy - required_fields: - - resource - - policy - header_request_params: - - resource - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - resource: queue - timeout_millis: 10000 - - name: TestIamPermissions - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - resource - - permissions - required_fields: - - resource - - permissions - header_request_params: - - resource - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - resource: queue - timeout_millis: 10000 - - name: ListTasks - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - header_request_params: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: tasks - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: queue - timeout_millis: 10000 - - name: GetTask - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - name - required_fields: - - name - header_request_params: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: task - timeout_millis: 10000 - - name: CreateTask - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - parent - - task - required_fields: - - parent - - task - header_request_params: - - parent - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: queue - timeout_millis: 10000 - - name: DeleteTask - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - name - required_fields: - - name - header_request_params: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: task - timeout_millis: 10000 - - name: LeaseTasks - resource_name_treatment: STATIC_TYPES - required_fields: - - parent - - lease_duration - header_request_params: - - parent - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: queue - timeout_millis: 10000 - - name: AcknowledgeTask - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - name - - schedule_time - required_fields: - - name - - schedule_time - header_request_params: - - name - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: task - timeout_millis: 10000 - - name: RenewLease - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - name - - schedule_time - - lease_duration - required_fields: - - name - - schedule_time - - lease_duration - header_request_params: - - name - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: task - timeout_millis: 10000 - - name: CancelLease - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - name - - schedule_time - required_fields: - - name - - schedule_time - header_request_params: - - name - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: task - timeout_millis: 10000 - - name: RunTask - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - name - required_fields: - - name - header_request_params: - - name - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: task - timeout_millis: 10000 -resource_name_generation: -- message_name: Queue - field_entity_map: - name: queue -- message_name: Task - field_entity_map: - name: task -- message_name: ListQueuesRequest - field_entity_map: - parent: location -- message_name: GetQueueRequest - field_entity_map: - name: queue -- message_name: CreateQueueRequest - field_entity_map: - parent: location -- message_name: UpdateQueueRequest - field_entity_map: - queue.name: queue -- message_name: DeleteQueueRequest - field_entity_map: - name: queue -- message_name: PurgeQueueRequest - field_entity_map: - name: queue -- message_name: PauseQueueRequest - field_entity_map: - name: queue -- message_name: ResumeQueueRequest - field_entity_map: - name: queue -- message_name: ListTasksRequest - field_entity_map: - parent: queue -- message_name: GetTaskRequest - field_entity_map: - name: task -- message_name: CreateTaskRequest - field_entity_map: - parent: queue -- message_name: DeleteTaskRequest - field_entity_map: - name: task -- message_name: LeaseTasksRequest - field_entity_map: - parent: queue -- message_name: AcknowledgeTaskRequest - field_entity_map: - name: task -- message_name: RenewLeaseRequest - field_entity_map: - name: task -- message_name: CancelLeaseRequest - field_entity_map: - name: task -- message_name: RunTaskRequest - field_entity_map: - name: task -- message_name: google.iam.v1.GetIamPolicyRequest - field_entity_map: - resource: "*" -- message_name: google.iam.v1.SetIamPolicyRequest - field_entity_map: - resource: "*" -- message_name: google.iam.v1.TestIamPermissionsRequest - field_entity_map: - resource: "*" diff --git a/third_party/googleapis/google/cloud/tasks/v2beta2/cloudtasks_gapic.yaml b/third_party/googleapis/google/cloud/tasks/v2beta2/cloudtasks_gapic.yaml index b41b92ac8..e1186087e 100644 --- a/third_party/googleapis/google/cloud/tasks/v2beta2/cloudtasks_gapic.yaml +++ b/third_party/googleapis/google/cloud/tasks/v2beta2/cloudtasks_gapic.yaml @@ -2,8 +2,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 # The settings of generated code in a specific language. language_settings: - java: - package_name: com.google.cloud.tasks.v2beta2 python: package_name: google.cloud.tasks_v2beta2.gapic go: diff --git a/third_party/googleapis/google/cloud/tasks/v2beta2/cloudtasks_grpc_service_config.json b/third_party/googleapis/google/cloud/tasks/v2beta2/cloudtasks_grpc_service_config.json index 9cb9f37da..eac8cc83c 100755 --- a/third_party/googleapis/google/cloud/tasks/v2beta2/cloudtasks_grpc_service_config.json +++ b/third_party/googleapis/google/cloud/tasks/v2beta2/cloudtasks_grpc_service_config.json @@ -35,7 +35,7 @@ "method": "DeleteTask" } ], - "timeout": "10s", + "timeout": "20s", "retryPolicy": { "initialBackoff": "0.100s", "maxBackoff": "10s", @@ -97,7 +97,7 @@ "method": "RunTask" } ], - "timeout": "10s" + "timeout": "20s" } ] } diff --git a/third_party/googleapis/google/cloud/tasks/v2beta2/cloudtasks_v2beta2.yaml b/third_party/googleapis/google/cloud/tasks/v2beta2/cloudtasks_v2beta2.yaml index 6e29e8ac0..e1922330a 100644 --- a/third_party/googleapis/google/cloud/tasks/v2beta2/cloudtasks_v2beta2.yaml +++ b/third_party/googleapis/google/cloud/tasks/v2beta2/cloudtasks_v2beta2.yaml @@ -17,8 +17,6 @@ documentation: backend: rules: - selector: 'google.cloud.tasks.v2beta2.CloudTasks.*' - deadline: 10.0 - - selector: google.cloud.tasks.v2beta2.CloudTasks.ListQueues deadline: 15.0 authentication: diff --git a/third_party/googleapis/google/cloud/tasks/v2beta2/old_target.proto b/third_party/googleapis/google/cloud/tasks/v2beta2/old_target.proto new file mode 100644 index 000000000..5b5c095c0 --- /dev/null +++ b/third_party/googleapis/google/cloud/tasks/v2beta2/old_target.proto @@ -0,0 +1,25 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.tasks.v2beta2; + +import "google/cloud/tasks/v2beta2/target.proto"; +import "google/api/annotations.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/tasks/v2beta2;tasks"; +option java_multiple_files = true; +option java_outer_classname = "OldTargetProto"; +option java_package = "com.google.cloud.tasks.v2beta2"; diff --git a/third_party/googleapis/google/cloud/tasks/v2beta2/queue.proto b/third_party/googleapis/google/cloud/tasks/v2beta2/queue.proto index 212ab7384..1cc44651d 100644 --- a/third_party/googleapis/google/cloud/tasks/v2beta2/queue.proto +++ b/third_party/googleapis/google/cloud/tasks/v2beta2/queue.proto @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,12 +11,12 @@ // WITHOUT 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.tasks.v2beta2; +import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/tasks/v2beta2/target.proto"; import "google/protobuf/duration.proto"; @@ -168,6 +168,37 @@ message Queue { // Purge time will be truncated to the nearest microsecond. Purge // time will be unset if the queue has never been purged. google.protobuf.Timestamp purge_time = 8; + + // The maximum amount of time that a task will be retained in + // this queue. + // + // Queues created by Cloud Tasks have a default `task_ttl` of 31 days. + // After a task has lived for `task_ttl`, the task will be deleted + // regardless of whether it was dispatched or not. + // + // The `task_ttl` for queues created via queue.yaml/xml is equal to the + // maximum duration because there is a + // [storage quota](https://cloud.google.com/appengine/quotas#Task_Queue) for + // these queues. To view the maximum valid duration, see the documentation for + // [Duration][google.protobuf.Duration]. + google.protobuf.Duration task_ttl = 9; + + // The task tombstone time to live (TTL). + // + // After a task is deleted or completed, the task's tombstone is + // retained for the length of time specified by `tombstone_ttl`. + // The tombstone is used by task de-duplication; another task with the same + // name can't be created until the tombstone has expired. For more information + // about task de-duplication, see the documentation for + // [CreateTaskRequest][google.cloud.tasks.v2beta2.CreateTaskRequest.task]. + // + // Queues created by Cloud Tasks have a default `tombstone_ttl` of 1 hour. + google.protobuf.Duration tombstone_ttl = 10; + + // Output only. The realtime, informational statistics for a queue. In order + // to receive the statistics the caller should include this field in the + // FieldMask. + QueueStats stats = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Rate limits. @@ -195,7 +226,7 @@ message RateLimits { // queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#rate). double max_tasks_dispatched_per_second = 1; - // Output only. The max burst size. + // The max burst size. // // Max burst size limits how fast tasks in queue are processed when // many tasks are in the queue and the rate is high. This field @@ -210,23 +241,23 @@ message RateLimits { // token is removed from the bucket. Tasks will be dispatched until // the queue's bucket runs out of tokens. The bucket will be // continuously refilled with new tokens based on - // [max_tasks_dispatched_per_second][google.cloud.tasks.v2beta2.RateLimits.max_tasks_dispatched_per_second]. + // [max_dispatches_per_second][RateLimits.max_dispatches_per_second]. + // + // The default value of `max_burst_size` is picked by Cloud Tasks + // based on the value of + // [max_dispatches_per_second][RateLimits.max_dispatches_per_second]. // - // Cloud Tasks will pick the value of `max_burst_size` based on the - // value of - // [max_tasks_dispatched_per_second][google.cloud.tasks.v2beta2.RateLimits.max_tasks_dispatched_per_second]. + // The maximum value of `max_burst_size` is 500. // // For App Engine queues that were created or updated using // `queue.yaml/xml`, `max_burst_size` is equal to // [bucket_size](https://cloud.google.com/appengine/docs/standard/python/config/queueref#bucket_size). - // Since `max_burst_size` is output only, if - // [UpdateQueue][google.cloud.tasks.v2beta2.CloudTasks.UpdateQueue] is called on a queue - // created by `queue.yaml/xml`, `max_burst_size` will be reset based - // on the value of - // [max_tasks_dispatched_per_second][google.cloud.tasks.v2beta2.RateLimits.max_tasks_dispatched_per_second], - // regardless of whether - // [max_tasks_dispatched_per_second][google.cloud.tasks.v2beta2.RateLimits.max_tasks_dispatched_per_second] - // is updated. + // If + // [UpdateQueue][google.cloud.tasks.v2beta2.CloudTasks.UpdateQueue] is called on a queue without + // explicitly setting a value for `max_burst_size`, + // `max_burst_size` value will get updated if + // [UpdateQueue][google.cloud.tasks.v2beta2.CloudTasks.UpdateQueue] is updating + // [max_dispatches_per_second][RateLimits.max_dispatches_per_second]. // int32 max_burst_size = 2; @@ -343,7 +374,7 @@ message RetryConfig { // A task's retry interval starts at // [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff], then doubles // `max_doublings` times, then increases linearly, and finally - // retries retries at intervals of + // retries at intervals of // [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] up to // [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts] times. // @@ -368,3 +399,31 @@ message RetryConfig { // queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters). int32 max_doublings = 6; } + +// Statistics for a queue. +message QueueStats { + // Output only. An estimation of the number of tasks in the queue, that is, the tasks in + // the queue that haven't been executed, the tasks in the queue which the + // queue has dispatched but has not yet received a reply for, and the failed + // tasks that the queue is retrying. + int64 tasks_count = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. An estimation of the nearest time in the future where a task in the queue + // is scheduled to be executed. + google.protobuf.Timestamp oldest_estimated_arrival_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of tasks that the queue has dispatched and received a reply for + // during the last minute. This variable counts both successful and + // non-successful executions. + int64 executed_last_minute_count = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of requests that the queue has dispatched but has not received + // a reply for yet. + int64 concurrent_dispatches_count = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The current maximum number of tasks per second executed by the queue. + // The maximum value of this variable is controlled by the RateLimits of the + // Queue. However, this value could be less to avoid overloading the endpoints + // tasks in the queue are targeting. + double effective_execution_rate = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/cloud/tasks/v2beta2/target.proto b/third_party/googleapis/google/cloud/tasks/v2beta2/target.proto index decdbaf8b..09c8fd781 100644 --- a/third_party/googleapis/google/cloud/tasks/v2beta2/target.proto +++ b/third_party/googleapis/google/cloud/tasks/v2beta2/target.proto @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,7 +11,6 @@ // WITHOUT 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"; @@ -115,10 +114,10 @@ message AppEngineHttpTarget { // delivered to can be set at the queue-level or task-level: // // * If set, -// [app_engine_routing_override][google.cloud.tasks.v2beta2.AppEngineHttpTarget.app_engine_routing_override] -// is used for all tasks in the queue, no matter what the setting -// is for the -// [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing]. +// [app_engine_routing_override][google.cloud.tasks.v2beta2.AppEngineHttpTarget.app_engine_routing_override] +// is used for all tasks in the queue, no matter what the setting +// is for the +// [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing]. // // // The `url` that the task will be sent to is: @@ -151,14 +150,11 @@ message AppEngineHttpRequest { // The HTTP method to use for the request. The default is POST. // // The app's request handler for the task's target URL must be able to handle - // HTTP requests with this http_method, otherwise the task attempt will fail - // with error code 405 (Method Not Allowed). See - // [Writing a push task request + // HTTP requests with this http_method, otherwise the task attempt fails with + // error code 405 (Method Not Allowed). See [Writing a push task request // handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler) - // and the documentation for the request handlers in the language your app is - // written in e.g. - // [Python Request - // Handler](https://cloud.google.com/appengine/docs/python/tools/webapp/requesthandlerclass). + // and the App Engine documentation for your runtime on [How Requests are + // Handled](https://cloud.google.com/appengine/docs/standard/python3/how-requests-are-handled). HttpMethod http_method = 1; // Task-level setting for App Engine routing. diff --git a/third_party/googleapis/google/cloud/tasks/v2beta2/task.proto b/third_party/googleapis/google/cloud/tasks/v2beta2/task.proto index 9a927462c..873a6f938 100644 --- a/third_party/googleapis/google/cloud/tasks/v2beta2/task.proto +++ b/third_party/googleapis/google/cloud/tasks/v2beta2/task.proto @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,7 +11,6 @@ // WITHOUT 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"; diff --git a/third_party/googleapis/google/cloud/tasks/v2beta3/BUILD.bazel b/third_party/googleapis/google/cloud/tasks/v2beta3/BUILD.bazel index e6bcb41c3..4ef7a003d 100644 --- a/third_party/googleapis/google/cloud/tasks/v2beta3/BUILD.bazel +++ b/third_party/googleapis/google/cloud/tasks/v2beta3/BUILD.bazel @@ -65,11 +65,8 @@ java_grpc_library( java_gapic_library( name = "tasks_java_gapic", - src = ":tasks_proto_with_info", - gapic_yaml = "cloudtasks_gapic.yaml", + srcs = [":tasks_proto_with_info"], grpc_service_config = "cloudtasks_grpc_service_config.json", - package = "google.cloud.tasks.v2beta3", - service_yaml = "cloudtasks_v2beta3.yaml", test_deps = [ ":tasks_java_grpc", "//google/iam/v1:iam_java_grpc", @@ -155,12 +152,10 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -234,6 +229,7 @@ nodejs_gapic_library( name = "tasks_nodejs_gapic", package_name = "@google-cloud/tasks", src = ":tasks_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "cloudtasks_grpc_service_config.json", main_service = "tasks", package = "google.cloud.tasks.v2beta3", @@ -255,7 +251,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -271,12 +267,19 @@ ruby_grpc_library( deps = [":tasks_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "tasks_ruby_gapic", - src = ":tasks_proto_with_info", - gapic_yaml = "cloudtasks_gapic.yaml", - package = "google.cloud.tasks.v2beta3", - service_yaml = "cloudtasks_v2beta3.yaml", + srcs = [":tasks_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-tasks-v2beta3", + "ruby-cloud-env-prefix=TASKS", + "ruby-cloud-product-url=https://cloud.google.com/tasks", + "ruby-cloud-api-id=cloudtasks.googleapis.com", + "ruby-cloud-api-shortname=cloudtasks", + ], + grpc_service_config = "cloudtasks_grpc_service_config.json", + ruby_cloud_description = "Cloud Tasks is a fully managed service that allows you to manage the execution, dispatch and delivery of a large number of distributed tasks. You can asynchronously perform work outside of a user request. Your tasks can be executed on App Engine or any arbitrary HTTP endpoint.", + ruby_cloud_title = "Cloud Tasks V2beta3", deps = [ ":tasks_ruby_grpc", ":tasks_ruby_proto", @@ -318,8 +321,8 @@ csharp_grpc_library( csharp_gapic_library( name = "tasks_csharp_gapic", srcs = [":tasks_proto_with_info"], - grpc_service_config = "cloudtasks_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "cloudtasks_grpc_service_config.json", deps = [ ":tasks_csharp_grpc", ":tasks_csharp_proto", diff --git a/third_party/googleapis/google/cloud/tasks/v2beta3/cloudtasks.proto b/third_party/googleapis/google/cloud/tasks/v2beta3/cloudtasks.proto index de3460f6f..81e2098dd 100644 --- a/third_party/googleapis/google/cloud/tasks/v2beta3/cloudtasks.proto +++ b/third_party/googleapis/google/cloud/tasks/v2beta3/cloudtasks.proto @@ -345,6 +345,12 @@ message ListQueuesRequest { // method. It is an error to switch the value of the // [filter][google.cloud.tasks.v2beta3.ListQueuesRequest.filter] while iterating through pages. string page_token = 4; + + // Optional. Read mask is used for a more granular control over what the API returns. + // If the mask is not present all fields will be returned except + // [Queue.stats]. [Queue.stats] will be returned only if it was explicitly + // specified in the mask. + google.protobuf.FieldMask read_mask = 5 [(google.api.field_behavior) = OPTIONAL]; } // Response message for [ListQueues][google.cloud.tasks.v2beta3.CloudTasks.ListQueues]. @@ -374,6 +380,12 @@ message GetQueueRequest { type: "cloudtasks.googleapis.com/Queue" } ]; + + // Optional. Read mask is used for a more granular control over what the API returns. + // If the mask is not present all fields will be returned except + // [Queue.stats]. [Queue.stats] will be returned only if it was explicitly + // specified in the mask. + google.protobuf.FieldMask read_mask = 2 [(google.api.field_behavior) = OPTIONAL]; } // Request message for [CreateQueue][google.cloud.tasks.v2beta3.CloudTasks.CreateQueue]. diff --git a/third_party/googleapis/google/cloud/tasks/v2beta3/cloudtasks_gapic.legacy.yaml b/third_party/googleapis/google/cloud/tasks/v2beta3/cloudtasks_gapic.legacy.yaml deleted file mode 100644 index ffcdd5e73..000000000 --- a/third_party/googleapis/google/cloud/tasks/v2beta3/cloudtasks_gapic.legacy.yaml +++ /dev/null @@ -1,434 +0,0 @@ -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.tasks.v2beta3 - python: - package_name: google.cloud.tasks_v2beta3.gapic - go: - package_name: cloud.google.com/go/cloudtasks/apiv2beta3 - csharp: - package_name: Google.Cloud.Tasks.V2Beta3 - ruby: - package_name: Google::Cloud::Tasks::V2beta3 - php: - package_name: Google\Cloud\Tasks\V2beta3 - nodejs: - package_name: tasks.v2beta3 -# A list of API interface configurations. -interfaces: -- name: google.cloud.tasks.v2beta3.CloudTasks - # 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: - - name_pattern: projects/{project} - entity_name: project - language_overrides: - - language: csharp - common_resource_name: Google.Api.Gax.ResourceNames.ProjectName - - name_pattern: projects/{project}/locations/{location} - entity_name: location - - name_pattern: projects/{project}/locations/{location}/queues/{queue} - entity_name: queue - - name_pattern: projects/{project}/locations/{location}/queues/{queue}/tasks/{task} - entity_name: task - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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: ListQueues - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - header_request_params: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: queues - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: location - timeout_millis: 10000 - - name: GetQueue - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - name - required_fields: - - name - header_request_params: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: queue - timeout_millis: 10000 - - name: CreateQueue - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - parent - - queue - required_fields: - - parent - - queue - header_request_params: - - parent - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: location - timeout_millis: 10000 - - name: UpdateQueue - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - queue - - update_mask - required_fields: - - queue - header_request_params: - - queue.name - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - queue.name: queue - timeout_millis: 10000 - - name: DeleteQueue - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - name - required_fields: - - name - header_request_params: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: queue - timeout_millis: 10000 - - name: PurgeQueue - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - name - required_fields: - - name - header_request_params: - - name - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: queue - timeout_millis: 10000 - - name: PauseQueue - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - name - required_fields: - - name - header_request_params: - - name - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: queue - timeout_millis: 10000 - - name: ResumeQueue - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - name - required_fields: - - name - header_request_params: - - name - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: queue - timeout_millis: 10000 - - name: GetIamPolicy - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - resource - required_fields: - - resource - header_request_params: - - resource - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - resource: queue - timeout_millis: 10000 - - name: SetIamPolicy - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - resource - - policy - required_fields: - - resource - - policy - header_request_params: - - resource - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - resource: queue - timeout_millis: 10000 - - name: TestIamPermissions - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - resource - - permissions - required_fields: - - resource - - permissions - header_request_params: - - resource - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - resource: queue - timeout_millis: 10000 - - name: ListTasks - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - header_request_params: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: tasks - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: queue - timeout_millis: 10000 - - name: GetTask - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - name - required_fields: - - name - header_request_params: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: task - timeout_millis: 10000 - - name: CreateTask - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - parent - - task - required_fields: - - parent - - task - header_request_params: - - parent - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: queue - timeout_millis: 10000 - - name: DeleteTask - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - name - required_fields: - - name - header_request_params: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: task - timeout_millis: 10000 - - name: RunTask - resource_name_treatment: STATIC_TYPES - flattening: - groups: - - parameters: - - name - required_fields: - - name - header_request_params: - - name - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: task - timeout_millis: 10000 -resource_name_generation: -- message_name: Queue - field_entity_map: - name: queue -- message_name: Task - field_entity_map: - name: task -- message_name: ListQueuesRequest - field_entity_map: - parent: location -- message_name: GetQueueRequest - field_entity_map: - name: queue -- message_name: CreateQueueRequest - field_entity_map: - parent: location -- message_name: UpdateQueueRequest - field_entity_map: - queue.name: queue -- message_name: DeleteQueueRequest - field_entity_map: - name: queue -- message_name: PurgeQueueRequest - field_entity_map: - name: queue -- message_name: PauseQueueRequest - field_entity_map: - name: queue -- message_name: ResumeQueueRequest - field_entity_map: - name: queue -- message_name: ListTasksRequest - field_entity_map: - parent: queue -- message_name: GetTaskRequest - field_entity_map: - name: task -- message_name: CreateTaskRequest - field_entity_map: - parent: queue -- message_name: DeleteTaskRequest - field_entity_map: - name: task -- message_name: RunTaskRequest - field_entity_map: - name: task -- message_name: google.iam.v1.GetIamPolicyRequest - field_entity_map: - resource: "*" -- message_name: google.iam.v1.SetIamPolicyRequest - field_entity_map: - resource: "*" -- message_name: google.iam.v1.TestIamPermissionsRequest - field_entity_map: - resource: "*" diff --git a/third_party/googleapis/google/cloud/tasks/v2beta3/cloudtasks_gapic.yaml b/third_party/googleapis/google/cloud/tasks/v2beta3/cloudtasks_gapic.yaml index a0bbcf7b3..6eea6ea7d 100644 --- a/third_party/googleapis/google/cloud/tasks/v2beta3/cloudtasks_gapic.yaml +++ b/third_party/googleapis/google/cloud/tasks/v2beta3/cloudtasks_gapic.yaml @@ -2,8 +2,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 # The settings of generated code in a specific language. language_settings: - java: - package_name: com.google.cloud.tasks.v2beta3 python: package_name: google.cloud.tasks_v2beta3.gapic go: diff --git a/third_party/googleapis/google/cloud/tasks/v2beta3/cloudtasks_grpc_service_config.json b/third_party/googleapis/google/cloud/tasks/v2beta3/cloudtasks_grpc_service_config.json index ed67771cf..1f65ba37c 100755 --- a/third_party/googleapis/google/cloud/tasks/v2beta3/cloudtasks_grpc_service_config.json +++ b/third_party/googleapis/google/cloud/tasks/v2beta3/cloudtasks_grpc_service_config.json @@ -35,7 +35,7 @@ "method": "RunTask" } ], - "timeout": "10s" + "timeout": "20s" }, { "name": [ @@ -72,7 +72,7 @@ "method": "DeleteTask" } ], - "timeout": "10s", + "timeout": "20s", "retryPolicy": { "initialBackoff": "0.100s", "maxBackoff": "10s", diff --git a/third_party/googleapis/google/cloud/tasks/v2beta3/cloudtasks_v2beta3.yaml b/third_party/googleapis/google/cloud/tasks/v2beta3/cloudtasks_v2beta3.yaml index 53e5c4ef8..4ce89f974 100644 --- a/third_party/googleapis/google/cloud/tasks/v2beta3/cloudtasks_v2beta3.yaml +++ b/third_party/googleapis/google/cloud/tasks/v2beta3/cloudtasks_v2beta3.yaml @@ -17,8 +17,6 @@ documentation: backend: rules: - selector: 'google.cloud.tasks.v2beta3.CloudTasks.*' - deadline: 10.0 - - selector: google.cloud.tasks.v2beta3.CloudTasks.ListQueues deadline: 15.0 authentication: diff --git a/third_party/googleapis/google/cloud/tasks/v2beta3/queue.proto b/third_party/googleapis/google/cloud/tasks/v2beta3/queue.proto index b24b70632..2b042a12f 100644 --- a/third_party/googleapis/google/cloud/tasks/v2beta3/queue.proto +++ b/third_party/googleapis/google/cloud/tasks/v2beta3/queue.proto @@ -174,6 +174,32 @@ message Queue { // time will be unset if the queue has never been purged. google.protobuf.Timestamp purge_time = 7; + // The maximum amount of time that a task will be retained in + // this queue. + // + // Queues created by Cloud Tasks have a default `task_ttl` of 31 days. + // After a task has lived for `task_ttl`, the task will be deleted + // regardless of whether it was dispatched or not. + // + // The `task_ttl` for queues created via queue.yaml/xml is equal to the + // maximum duration because there is a + // [storage quota](https://cloud.google.com/appengine/quotas#Task_Queue) for + // these queues. To view the maximum valid duration, see the documentation for + // [Duration][google.protobuf.Duration]. + google.protobuf.Duration task_ttl = 8; + + // The task tombstone time to live (TTL). + // + // After a task is deleted or executed, the task's tombstone is + // retained for the length of time specified by `tombstone_ttl`. + // The tombstone is used by task de-duplication; another task with the same + // name can't be created until the tombstone has expired. For more information + // about task de-duplication, see the documentation for + // [CreateTaskRequest][google.cloud.tasks.v2beta3.CreateTaskRequest.task]. + // + // Queues created by Cloud Tasks have a default `tombstone_ttl` of 1 hour. + google.protobuf.Duration tombstone_ttl = 9; + // Configuration options for writing logs to // [Stackdriver Logging](https://cloud.google.com/logging/docs/). If this // field is unset, then no logs are written. @@ -185,6 +211,11 @@ message Queue { // creation time. When left unspecified, the default value of `PUSH` is // selected. Type type = 11 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. The realtime, informational statistics for a queue. In order + // to receive the statistics the caller should include this field in the + // FieldMask. + QueueStats stats = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Rate limits. @@ -209,7 +240,7 @@ message RateLimits { // queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#rate). double max_dispatches_per_second = 1; - // Output only. The max burst size. + // The max burst size. // // Max burst size limits how fast tasks in queue are processed when // many tasks are in the queue and the rate is high. This field @@ -226,21 +257,21 @@ message RateLimits { // continuously refilled with new tokens based on // [max_dispatches_per_second][google.cloud.tasks.v2beta3.RateLimits.max_dispatches_per_second]. // - // Cloud Tasks will pick the value of `max_burst_size` based on the - // value of + // The default value of `max_burst_size` is picked by Cloud Tasks + // based on the value of // [max_dispatches_per_second][google.cloud.tasks.v2beta3.RateLimits.max_dispatches_per_second]. // + // The maximum value of `max_burst_size` is 500. + // // For App Engine queues that were created or updated using // `queue.yaml/xml`, `max_burst_size` is equal to // [bucket_size](https://cloud.google.com/appengine/docs/standard/python/config/queueref#bucket_size). - // Since `max_burst_size` is output only, if - // [UpdateQueue][google.cloud.tasks.v2beta3.CloudTasks.UpdateQueue] is called on a queue - // created by `queue.yaml/xml`, `max_burst_size` will be reset based - // on the value of - // [max_dispatches_per_second][google.cloud.tasks.v2beta3.RateLimits.max_dispatches_per_second], - // regardless of whether - // [max_dispatches_per_second][google.cloud.tasks.v2beta3.RateLimits.max_dispatches_per_second] - // is updated. + // If + // [UpdateQueue][google.cloud.tasks.v2beta3.CloudTasks.UpdateQueue] is called on a queue without + // explicitly setting a value for `max_burst_size`, + // `max_burst_size` value will get updated if + // [UpdateQueue][google.cloud.tasks.v2beta3.CloudTasks.UpdateQueue] is updating + // [max_dispatches_per_second][google.cloud.tasks.v2beta3.RateLimits.max_dispatches_per_second]. // int32 max_burst_size = 2; @@ -374,3 +405,31 @@ message StackdriverLoggingConfig { // 0.0 is the default and means that no operations are logged. double sampling_ratio = 1; } + +// Statistics for a queue. +message QueueStats { + // Output only. An estimation of the number of tasks in the queue, that is, the tasks in + // the queue that haven't been executed, the tasks in the queue which the + // queue has dispatched but has not yet received a reply for, and the failed + // tasks that the queue is retrying. + int64 tasks_count = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. An estimation of the nearest time in the future where a task in the queue + // is scheduled to be executed. + google.protobuf.Timestamp oldest_estimated_arrival_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of tasks that the queue has dispatched and received a reply for + // during the last minute. This variable counts both successful and + // non-successful executions. + int64 executed_last_minute_count = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of requests that the queue has dispatched but has not received + // a reply for yet. + int64 concurrent_dispatches_count = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The current maximum number of tasks per second executed by the queue. + // The maximum value of this variable is controlled by the RateLimits of the + // Queue. However, this value could be less to avoid overloading the endpoints + // tasks in the queue are targeting. + double effective_execution_rate = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/third_party/googleapis/google/cloud/tasks/v2beta3/target.proto b/third_party/googleapis/google/cloud/tasks/v2beta3/target.proto index cc0c5cfe3..5ef1ee088 100644 --- a/third_party/googleapis/google/cloud/tasks/v2beta3/target.proto +++ b/third_party/googleapis/google/cloud/tasks/v2beta3/target.proto @@ -23,6 +23,30 @@ option java_multiple_files = true; option java_outer_classname = "TargetProto"; option java_package = "com.google.cloud.tasks.v2beta3"; +// Pull Message. +// +// This proto can only be used for tasks in a queue which has +// [PULL][google.cloud.tasks.v2beta3.Queue.type] type. It currently exists for backwards compatibility with +// the App Engine Task Queue SDK. This message type maybe returned with methods +// [list][google.cloud.tasks.v2beta3.CloudTask.ListTasks] and +// [get][google.cloud.tasks.v2beta3.CloudTask.ListTasks], when the response view +// is [FULL][google.cloud.tasks.v2beta3.Task.View.Full]. +message PullMessage { + // A data payload consumed by the worker to execute the task. + bytes payload = 1; + + // The tasks's tag. + // + // The tag is less than 500 characters. + // + // SDK compatibility: Although the SDK allows tags to be either + // string or + // [bytes](https://cloud.google.com/appengine/docs/standard/java/javadoc/com/google/appengine/api/taskqueue/TaskOptions.html#tag-byte:A-), + // only UTF-8 encoded tags can be used in Cloud Tasks. If a tag isn't UTF-8 + // encoded, the tag will be empty when the task is returned by Cloud Tasks. + string tag = 2; +} + // HTTP request. // // The task will be pushed to the worker as an HTTP request. If the worker diff --git a/third_party/googleapis/google/cloud/tasks/v2beta3/task.proto b/third_party/googleapis/google/cloud/tasks/v2beta3/task.proto index 96d552e02..8a6525666 100644 --- a/third_party/googleapis/google/cloud/tasks/v2beta3/task.proto +++ b/third_party/googleapis/google/cloud/tasks/v2beta3/task.proto @@ -97,6 +97,15 @@ message Task { // // An HTTP task is a task that has [HttpRequest][google.cloud.tasks.v2beta3.HttpRequest] set. HttpRequest http_request = 11; + + // Pull Message contained in a task in a [PULL][google.cloud.tasks.v2beta3.Queue.type] queue type. This + // payload type cannot be explicitly set through Cloud Tasks API. Its + // purpose, currently is to provide backward compatibility with App Engine + // Task Queue + // [pull](https://cloud.google.com/appengine/docs/standard/java/taskqueue/pull/) + // queues to provide a way to inspect contents of pull tasks through the + // [CloudTasks.GetTask][google.cloud.tasks.v2beta3.CloudTasks.GetTask]. + PullMessage pull_message = 13; } // The time when the task is scheduled to be attempted. diff --git a/third_party/googleapis/google/cloud/texttospeech/v1/BUILD.bazel b/third_party/googleapis/google/cloud/texttospeech/v1/BUILD.bazel index 76991b3d6..d1b09074e 100644 --- a/third_party/googleapis/google/cloud/texttospeech/v1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/texttospeech/v1/BUILD.bazel @@ -54,11 +54,8 @@ java_grpc_library( java_gapic_library( name = "texttospeech_java_gapic", - src = ":texttospeech_proto_with_info", - gapic_yaml = "texttospeech_gapic.yaml", + srcs = [":texttospeech_proto_with_info"], grpc_service_config = "texttospeech_grpc_service_config.json", - package = "google.cloud.texttospeech.v1", - service_yaml = "texttospeech_v1.yaml", test_deps = [ ":texttospeech_java_grpc", ], @@ -140,46 +137,14 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "texttospeech_moved_proto", - srcs = [":texttospeech_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - ], -) - -py_proto_library( - name = "texttospeech_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":texttospeech_moved_proto"], -) - -py_grpc_library( - name = "texttospeech_py_grpc", - srcs = [":texttospeech_moved_proto"], - deps = [":texttospeech_py_proto"], ) py_gapic_library( name = "texttospeech_py_gapic", - src = ":texttospeech_proto_with_info", - gapic_yaml = "texttospeech_gapic.yaml", + srcs = [":texttospeech_proto"], grpc_service_config = "texttospeech_grpc_service_config.json", - package = "google.cloud.texttospeech.v1", - service_yaml = "texttospeech_v1.yaml", - deps = [ - ":texttospeech_py_grpc", - ":texttospeech_py_proto", - ], ) # Open Source Packages @@ -187,8 +152,6 @@ py_gapic_assembly_pkg( name = "texttospeech-v1-py", deps = [ ":texttospeech_py_gapic", - ":texttospeech_py_grpc", - ":texttospeech_py_proto", ], ) @@ -250,6 +213,7 @@ nodejs_gapic_library( name = "texttospeech_nodejs_gapic", package_name = "@google-cloud/text-to-speech", src = ":texttospeech_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "texttospeech_grpc_service_config.json", package = "google.cloud.texttospeech.v1", service_yaml = "texttospeech_v1.yaml", @@ -270,7 +234,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -286,12 +250,19 @@ ruby_grpc_library( deps = [":texttospeech_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "texttospeech_ruby_gapic", - src = ":texttospeech_proto_with_info", - gapic_yaml = "texttospeech_gapic.yaml", - package = "google.cloud.texttospeech.v1", - service_yaml = "texttospeech_v1.yaml", + srcs = [":texttospeech_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-text_to_speech-v1", + "ruby-cloud-env-prefix=TEXTTOSPEECH", + "ruby-cloud-product-url=https://cloud.google.com/text-to-speech", + "ruby-cloud-api-id=texttospeech.googleapis.com", + "ruby-cloud-api-shortname=texttospeech", + ], + grpc_service_config = "texttospeech_grpc_service_config.json", + ruby_cloud_description = "Text-to-Speech converts text or Speech Synthesis Markup Language (SSML) input into audio data of natural human speech.", + ruby_cloud_title = "Cloud Text-to-Speech V1", deps = [ ":texttospeech_ruby_grpc", ":texttospeech_ruby_proto", @@ -333,8 +304,8 @@ csharp_grpc_library( csharp_gapic_library( name = "texttospeech_csharp_gapic", srcs = [":texttospeech_proto_with_info"], - grpc_service_config = "texttospeech_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "texttospeech_grpc_service_config.json", deps = [ ":texttospeech_csharp_grpc", ":texttospeech_csharp_proto", @@ -354,4 +325,20 @@ csharp_gapic_assembly_pkg( ############################################################################## # C++ ############################################################################## -# Put your C++ rules here +load( + "@com_google_googleapis_imports//:imports.bzl", + "cc_grpc_library", + "cc_proto_library", +) + +cc_proto_library( + name = "texttospeech_cc_proto", + deps = [":texttospeech_proto"], +) + +cc_grpc_library( + name = "texttospeech_cc_grpc", + srcs = [":texttospeech_proto"], + grpc_only = True, + deps = [":texttospeech_cc_proto"], +) diff --git a/third_party/googleapis/google/cloud/texttospeech/v1/texttospeech_gapic.legacy.yaml b/third_party/googleapis/google/cloud/texttospeech/v1/texttospeech_gapic.legacy.yaml deleted file mode 100644 index 5f35fcdd4..000000000 --- a/third_party/googleapis/google/cloud/texttospeech/v1/texttospeech_gapic.legacy.yaml +++ /dev/null @@ -1,135 +0,0 @@ -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.texttospeech.v1 - python: - package_name: google.cloud.texttospeech_v1.gapic - go: - package_name: cloud.google.com/go/texttospeech/apiv1 - csharp: - package_name: Google.Cloud.TextToSpeech.V1 - ruby: - package_name: Google::Cloud::TextToSpeech::V1 - php: - package_name: Google\Cloud\TextToSpeech\V1 - nodejs: - package_name: text-to-speech.v1 - domain_layer_location: google-cloud -# A list of API interface configurations. -interfaces: - # The fully qualified name of the API interface. -- name: google.cloud.texttospeech.v1.TextToSpeech - smoke_test: - method: SynthesizeSpeech - init_fields: - - input.text="test" - - voice.language_code="en-US" - - audio_config.audio_encoding=MP3 - # 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: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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: ListVoices - flattening: - groups: - - parameters: - - language_code - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 30000 - - name: SynthesizeSpeech - flattening: - groups: - - parameters: - - input - - voice - - audio_config - required_fields: - - input - - voice - - audio_config - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 diff --git a/third_party/googleapis/google/cloud/texttospeech/v1/texttospeech_gapic.yaml b/third_party/googleapis/google/cloud/texttospeech/v1/texttospeech_gapic.yaml index ee240b523..fa557a90d 100644 --- a/third_party/googleapis/google/cloud/texttospeech/v1/texttospeech_gapic.yaml +++ b/third_party/googleapis/google/cloud/texttospeech/v1/texttospeech_gapic.yaml @@ -2,8 +2,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 # The settings of generated code in a specific language. language_settings: - java: - package_name: com.google.cloud.texttospeech.v1 python: package_name: google.cloud.texttospeech_v1.gapic go: diff --git a/third_party/googleapis/google/cloud/texttospeech/v1beta1/BUILD.bazel b/third_party/googleapis/google/cloud/texttospeech/v1beta1/BUILD.bazel index f156d7e5b..f5fdd000f 100644 --- a/third_party/googleapis/google/cloud/texttospeech/v1beta1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/texttospeech/v1beta1/BUILD.bazel @@ -54,11 +54,8 @@ java_grpc_library( java_gapic_library( name = "texttospeech_java_gapic", - src = ":texttospeech_proto_with_info", - gapic_yaml = "texttospeech_gapic.yaml", + srcs = [":texttospeech_proto_with_info"], grpc_service_config = "texttospeech_grpc_service_config.json", - package = "google.cloud.texttospeech.v1beta1", - service_yaml = "texttospeech_v1beta1.yaml", test_deps = [ ":texttospeech_java_grpc", ], @@ -140,46 +137,14 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "texttospeech_moved_proto", - srcs = [":texttospeech_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - ], -) - -py_proto_library( - name = "texttospeech_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":texttospeech_moved_proto"], -) - -py_grpc_library( - name = "texttospeech_py_grpc", - srcs = [":texttospeech_moved_proto"], - deps = [":texttospeech_py_proto"], ) py_gapic_library( name = "texttospeech_py_gapic", - src = ":texttospeech_proto_with_info", - gapic_yaml = "texttospeech_gapic.yaml", + srcs = [":texttospeech_proto"], grpc_service_config = "texttospeech_grpc_service_config.json", - package = "google.cloud.texttospeech.v1beta1", - service_yaml = "texttospeech_v1beta1.yaml", - deps = [ - ":texttospeech_py_grpc", - ":texttospeech_py_proto", - ], ) # Open Source Packages @@ -187,8 +152,6 @@ py_gapic_assembly_pkg( name = "texttospeech-v1beta1-py", deps = [ ":texttospeech_py_gapic", - ":texttospeech_py_grpc", - ":texttospeech_py_proto", ], ) @@ -250,6 +213,7 @@ nodejs_gapic_library( name = "texttospeech_nodejs_gapic", package_name = "@google-cloud/text-to-speech", src = ":texttospeech_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "texttospeech_grpc_service_config.json", package = "google.cloud.texttospeech.v1beta1", service_yaml = "texttospeech_v1beta1.yaml", @@ -270,7 +234,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -286,12 +250,19 @@ ruby_grpc_library( deps = [":texttospeech_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "texttospeech_ruby_gapic", - src = ":texttospeech_proto_with_info", - gapic_yaml = "texttospeech_gapic.yaml", - package = "google.cloud.texttospeech.v1beta1", - service_yaml = "texttospeech_v1beta1.yaml", + srcs = [":texttospeech_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-text_to_speech-v1beta1", + "ruby-cloud-env-prefix=TEXTTOSPEECH", + "ruby-cloud-product-url=https://cloud.google.com/text-to-speech", + "ruby-cloud-api-id=texttospeech.googleapis.com", + "ruby-cloud-api-shortname=texttospeech", + ], + grpc_service_config = "texttospeech_grpc_service_config.json", + ruby_cloud_description = "Text-to-Speech converts text or Speech Synthesis Markup Language (SSML) input into audio data of natural human speech.", + ruby_cloud_title = "Cloud Text-to-Speech V1beta1", deps = [ ":texttospeech_ruby_grpc", ":texttospeech_ruby_proto", @@ -333,8 +304,8 @@ csharp_grpc_library( csharp_gapic_library( name = "texttospeech_csharp_gapic", srcs = [":texttospeech_proto_with_info"], - grpc_service_config = "texttospeech_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "texttospeech_grpc_service_config.json", deps = [ ":texttospeech_csharp_grpc", ":texttospeech_csharp_proto", diff --git a/third_party/googleapis/google/cloud/texttospeech/v1beta1/texttospeech_gapic.legacy.yaml b/third_party/googleapis/google/cloud/texttospeech/v1beta1/texttospeech_gapic.legacy.yaml deleted file mode 100644 index 276f9ed83..000000000 --- a/third_party/googleapis/google/cloud/texttospeech/v1beta1/texttospeech_gapic.legacy.yaml +++ /dev/null @@ -1,135 +0,0 @@ -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.texttospeech.v1beta1 - python: - package_name: google.cloud.texttospeech_v1beta1.gapic - go: - package_name: cloud.google.com/go/texttospeech/apiv1beta1 - csharp: - package_name: Google.Cloud.TextToSpeech.V1Beta1 - ruby: - package_name: Google::Cloud::TextToSpeech::V1beta1 - php: - package_name: Google\Cloud\TextToSpeech\V1beta1 - nodejs: - package_name: text-to-speech.v1beta1 - domain_layer_location: google-cloud -# A list of API interface configurations. -interfaces: - # The fully qualified name of the API interface. -- name: google.cloud.texttospeech.v1beta1.TextToSpeech - smoke_test: - method: SynthesizeSpeech - init_fields: - - input.text="test" - - voice.language_code="en-US" - - audio_config.audio_encoding=MP3 - # 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: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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: ListVoices - flattening: - groups: - - parameters: - - language_code - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 30000 - - name: SynthesizeSpeech - flattening: - groups: - - parameters: - - input - - voice - - audio_config - required_fields: - - input - - voice - - audio_config - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 diff --git a/third_party/googleapis/google/cloud/texttospeech/v1beta1/texttospeech_gapic.yaml b/third_party/googleapis/google/cloud/texttospeech/v1beta1/texttospeech_gapic.yaml index 7748ab9d7..fa944da14 100644 --- a/third_party/googleapis/google/cloud/texttospeech/v1beta1/texttospeech_gapic.yaml +++ b/third_party/googleapis/google/cloud/texttospeech/v1beta1/texttospeech_gapic.yaml @@ -2,8 +2,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 # The settings of generated code in a specific language. language_settings: - java: - package_name: com.google.cloud.texttospeech.v1beta1 python: package_name: google.cloud.texttospeech_v1beta1.gapic go: diff --git a/third_party/googleapis/google/cloud/translate/v3/BUILD.bazel b/third_party/googleapis/google/cloud/translate/v3/BUILD.bazel index 95bbaeb6f..71fca72fc 100644 --- a/third_party/googleapis/google/cloud/translate/v3/BUILD.bazel +++ b/third_party/googleapis/google/cloud/translate/v3/BUILD.bazel @@ -57,11 +57,8 @@ java_grpc_library( java_gapic_library( name = "translation_java_gapic", - src = ":translation_proto_with_info", - gapic_yaml = "translate_gapic.yaml", + srcs = [":translation_proto_with_info"], grpc_service_config = "translate_grpc_service_config.json", - package = "google.cloud.translation.v3", - service_yaml = "translate_v3.yaml", test_deps = [ ":translation_java_grpc", ], @@ -119,9 +116,9 @@ go_gapic_library( service_yaml = "translate_v3.yaml", deps = [ ":translation_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", ], ) @@ -145,20 +142,17 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( name = "translation_py_gapic", srcs = [":translation_proto"], - opt_args = ["python-gapic-name=translate"], grpc_service_config = "translate_grpc_service_config.json", - + opt_args = ["python-gapic-name=translate"], ) py_gapic_assembly_pkg( @@ -226,6 +220,7 @@ nodejs_gapic_library( name = "translation_nodejs_gapic", package_name = "@google-cloud/translate", src = ":translation_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "translate_grpc_service_config.json", package = "google.cloud.translation.v3", service_yaml = "translate_v3.yaml", @@ -246,7 +241,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -262,12 +257,19 @@ ruby_grpc_library( deps = [":translation_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "translation_ruby_gapic", - src = ":translation_proto_with_info", - gapic_yaml = "translate_gapic.yaml", - package = "google.cloud.translation.v3", - service_yaml = "translate_v3.yaml", + srcs = [":translation_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-translate-v3", + "ruby-cloud-env-prefix=TRANSLATE", + "ruby-cloud-product-url=https://cloud.google.com/translate", + "ruby-cloud-api-id=translate.googleapis.com", + "ruby-cloud-api-shortname=translate", + ], + grpc_service_config = "translate_grpc_service_config.json", + ruby_cloud_description = "Cloud Translation can dynamically translate text between thousands of language pairs. Translation lets websites and programs programmatically integrate with the translation service.", + ruby_cloud_title = "Cloud Translation V3", deps = [ ":translation_ruby_grpc", ":translation_ruby_proto", @@ -309,8 +311,8 @@ csharp_grpc_library( csharp_gapic_library( name = "translation_csharp_gapic", srcs = [":translation_proto_with_info"], - grpc_service_config = "translate_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "translate_grpc_service_config.json", deps = [ ":translation_csharp_grpc", ":translation_csharp_proto", diff --git a/third_party/googleapis/google/cloud/translate/v3/translate_gapic.legacy.yaml b/third_party/googleapis/google/cloud/translate/v3/translate_gapic.legacy.yaml deleted file mode 100644 index bcfaed533..000000000 --- a/third_party/googleapis/google/cloud/translate/v3/translate_gapic.legacy.yaml +++ /dev/null @@ -1,244 +0,0 @@ -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.translate.v3 - python: - package_name: google.cloud.translate_v3.gapic - go: - package_name: cloud.google.com/go/translate/apiv3 - csharp: - package_name: Google.Cloud.Translate.V3 - ruby: - package_name: Google::Cloud::Translate::V3 - php: - package_name: Google\Cloud\Translate\V3 - nodejs: - package_name: translate.v3 - domain_layer_location: google-cloud -# A list of API interface configurations. -interfaces: -# The fully qualified name of the API interface. -- name: google.cloud.translation.v3.TranslationService - # 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: - - name_pattern: projects/{project}/locations/{location} - entity_name: location - - name_pattern: projects/{project}/locations/{location}/glossaries/{glossary} - entity_name: glossary - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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. - # - # 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: TranslateText - flattening: - groups: - - parameters: - - parent - - target_language_code - - contents - - parameters: - - parent - - model - - mime_type - - source_language_code - - target_language_code - - contents - required_fields: - - contents - - target_language_code - - parent - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: location - timeout_millis: 60000 - - name: DetectLanguage - flattening: - groups: - - parameters: - - parent - - model - - mime_type - - content - required_fields: - - parent - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: location - timeout_millis: 60000 - - name: GetSupportedLanguages - flattening: - groups: - - parameters: - - parent - - model - - display_language_code - required_fields: - - parent - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: location - timeout_millis: 60000 - - name: BatchTranslateText - required_fields: - - parent - - source_language_code - - target_language_codes - - input_configs - - output_config - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: location - long_running: - return_type: google.cloud.translation.v3.BatchTranslateResponse - metadata_type: google.cloud.translation.v3.BatchTranslateMetadata - initial_poll_delay_millis: 500 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 5000 - total_poll_timeout_millis: 300000 - timeout_millis: 60000 - - name: CreateGlossary - flattening: - groups: - - parameters: - - parent - - glossary - required_fields: - - parent - - glossary - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: location - long_running: - return_type: google.cloud.translation.v3.Glossary - metadata_type: google.cloud.translation.v3.CreateGlossaryMetadata - initial_poll_delay_millis: 500 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 5000 - total_poll_timeout_millis: 300000 - timeout_millis: 60000 - - name: ListGlossaries - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: glossaries - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: location - timeout_millis: 60000 - - name: GetGlossary - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: glossary - timeout_millis: 60000 - - name: DeleteGlossary - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: glossary - long_running: - return_type: google.cloud.translation.v3.DeleteGlossaryResponse - metadata_type: google.cloud.translation.v3.DeleteGlossaryMetadata - initial_poll_delay_millis: 500 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 5000 - total_poll_timeout_millis: 300000 - timeout_millis: 60000 diff --git a/third_party/googleapis/google/cloud/translate/v3/translate_gapic.yaml b/third_party/googleapis/google/cloud/translate/v3/translate_gapic.yaml index 92f3b026f..88e900839 100644 --- a/third_party/googleapis/google/cloud/translate/v3/translate_gapic.yaml +++ b/third_party/googleapis/google/cloud/translate/v3/translate_gapic.yaml @@ -2,8 +2,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 # The settings of generated code in a specific language. language_settings: - java: - package_name: com.google.cloud.translate.v3 python: package_name: google.cloud.translate_v3.gapic go: diff --git a/third_party/googleapis/google/cloud/translate/v3beta1/BUILD.bazel b/third_party/googleapis/google/cloud/translate/v3beta1/BUILD.bazel index 3bb6f7ddd..2b9fe043b 100644 --- a/third_party/googleapis/google/cloud/translate/v3beta1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/translate/v3beta1/BUILD.bazel @@ -57,11 +57,8 @@ java_grpc_library( java_gapic_library( name = "translation_java_gapic", - src = ":translation_proto_with_info", - gapic_yaml = "translate_gapic.yaml", + srcs = [":translation_proto_with_info"], grpc_service_config = "translate_grpc_service_config.json", - package = "google.cloud.translation.v3beta1", - service_yaml = "translate_v3beta1.yaml", test_deps = [ ":translation_java_grpc", ], @@ -119,9 +116,9 @@ go_gapic_library( service_yaml = "translate_v3beta1.yaml", deps = [ ":translation_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", ], ) @@ -145,20 +142,17 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( name = "translation_py_gapic", srcs = [":translation_proto"], - opt_args = ["python-gapic-name=translate"], grpc_service_config = "translate_grpc_service_config.json", - + opt_args = ["python-gapic-name=translate"], ) py_gapic_assembly_pkg( @@ -226,6 +220,7 @@ nodejs_gapic_library( name = "translation_nodejs_gapic", package_name = "@google-cloud/translate", src = ":translation_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "translate_grpc_service_config.json", package = "google.cloud.translation.v3beta1", service_yaml = "translate_v3beta1.yaml", @@ -309,8 +304,8 @@ csharp_grpc_library( csharp_gapic_library( name = "translation_csharp_gapic", srcs = [":translation_proto_with_info"], - grpc_service_config = "translate_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "translate_grpc_service_config.json", deps = [ ":translation_csharp_grpc", ":translation_csharp_proto", diff --git a/third_party/googleapis/google/cloud/translate/v3beta1/translate_gapic.legacy.yaml b/third_party/googleapis/google/cloud/translate/v3beta1/translate_gapic.legacy.yaml deleted file mode 100644 index 5a4e25638..000000000 --- a/third_party/googleapis/google/cloud/translate/v3beta1/translate_gapic.legacy.yaml +++ /dev/null @@ -1,235 +0,0 @@ -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.translate.v3beta1 - python: - package_name: google.cloud.translate_v3beta1.gapic - go: - package_name: cloud.google.com/go/translate/apiv3beta1 - csharp: - package_name: Google.Cloud.Translate.V3Beta1 - ruby: - package_name: Google::Cloud::Translate::V3beta1 - php: - package_name: Google\Cloud\Translate\V3beta1 - nodejs: - package_name: translate.v3beta1 - domain_layer_location: google-cloud -# A list of API interface configurations. -interfaces: -# The fully qualified name of the API interface. -- name: google.cloud.translation.v3beta1.TranslationService - # 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: - - name_pattern: projects/{project}/locations/{location} - entity_name: location - - name_pattern: projects/{project}/locations/{location}/glossaries/{glossary} - entity_name: glossary - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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: TranslateText - required_fields: - - contents - - target_language_code - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: location - timeout_millis: 60000 - - name: DetectLanguage - flattening: - groups: - - parameters: - - parent - - model - - mime_type - required_fields: - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: location - timeout_millis: 60000 - - name: GetSupportedLanguages - flattening: - groups: - - parameters: - - parent - - display_language_code - - model - required_fields: - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: location - timeout_millis: 60000 - - name: BatchTranslateText - required_fields: - - source_language_code - - target_language_codes - - input_configs - - output_config - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: location - long_running: - return_type: google.cloud.translation.v3beta1.BatchTranslateResponse - metadata_type: google.cloud.translation.v3beta1.BatchTranslateMetadata - initial_poll_delay_millis: 500 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 5000 - total_poll_timeout_millis: 300000 - timeout_millis: 60000 - - name: CreateGlossary - flattening: - groups: - - parameters: - - parent - - glossary - required_fields: - - parent - - glossary - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: location - long_running: - return_type: google.cloud.translation.v3beta1.Glossary - metadata_type: google.cloud.translation.v3beta1.CreateGlossaryMetadata - initial_poll_delay_millis: 500 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 5000 - total_poll_timeout_millis: 300000 - timeout_millis: 60000 - - name: ListGlossaries - flattening: - groups: - - parameters: - - parent - - filter - required_fields: - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: glossaries - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: location - timeout_millis: 60000 - - name: GetGlossary - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: glossary - timeout_millis: 60000 - - name: DeleteGlossary - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: glossary - long_running: - return_type: google.cloud.translation.v3beta1.DeleteGlossaryResponse - metadata_type: google.cloud.translation.v3beta1.DeleteGlossaryMetadata - initial_poll_delay_millis: 500 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 5000 - total_poll_timeout_millis: 300000 - timeout_millis: 60000 diff --git a/third_party/googleapis/google/cloud/translate/v3beta1/translate_gapic.yaml b/third_party/googleapis/google/cloud/translate/v3beta1/translate_gapic.yaml index 8100ed2ea..66b48e0b6 100644 --- a/third_party/googleapis/google/cloud/translate/v3beta1/translate_gapic.yaml +++ b/third_party/googleapis/google/cloud/translate/v3beta1/translate_gapic.yaml @@ -2,8 +2,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 # The settings of generated code in a specific language. language_settings: - java: - package_name: com.google.cloud.translate.v3beta1 python: package_name: google.cloud.translate_v3beta1.gapic go: diff --git a/third_party/googleapis/google/cloud/video/transcoder/v1beta1/BUILD.bazel b/third_party/googleapis/google/cloud/video/transcoder/v1beta1/BUILD.bazel index eceb05a38..3e0fd1da0 100644 --- a/third_party/googleapis/google/cloud/video/transcoder/v1beta1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/video/transcoder/v1beta1/BUILD.bazel @@ -30,8 +30,8 @@ proto_library( "//google/api:field_behavior_proto", "//google/api:resource_proto", "@com_google_protobuf//:duration_proto", - "@com_google_protobuf//:timestamp_proto", "@com_google_protobuf//:empty_proto", + "@com_google_protobuf//:timestamp_proto", ], ) @@ -68,11 +68,8 @@ java_grpc_library( java_gapic_library( name = "transcoder_java_gapic", - src = ":transcoder_proto_with_info", - gapic_yaml = "transcoder_gapic.yaml", + srcs = [":transcoder_proto_with_info"], grpc_service_config = "transcoder_grpc_service_config.json", - package = "google.cloud.video.transcoder.v1beta1", - service_yaml = "transcoder_v1beta1.yaml", test_deps = [ ":transcoder_java_grpc", ], @@ -154,15 +151,12 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) - py_gapic_library( name = "transcoder_py_gapic", srcs = [":transcoder_proto"], @@ -233,10 +227,11 @@ load( nodejs_gapic_library( name = "transcoder_nodejs_gapic", + package_name = "@google-cloud/video-transcoder", src = ":transcoder_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "transcoder_grpc_service_config.json", package = "google.cloud.video.transcoder.v1beta1", - package_name = "@google-cloud/video-transcoder", service_yaml = "transcoder_v1beta1.yaml", deps = [], ) @@ -255,7 +250,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -271,13 +266,19 @@ ruby_grpc_library( deps = [":transcoder_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "transcoder_ruby_gapic", - src = ":transcoder_proto_with_info", - gapic_yaml = "transcoder_gapic.yaml", + srcs = [":transcoder_proto_with_info",], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-video-transcoder-v1beta1", + "ruby-cloud-env-prefix=TRANSCODER", + "ruby-cloud-product-url=https://cloud.google.com/transcoder/", + "ruby-cloud-api-id=transcoder.googleapis.com", + "ruby-cloud-api-shortname=transcoder", + ], grpc_service_config = "transcoder_grpc_service_config.json", - package = "google.cloud.video.transcoder.v1beta1", - service_yaml = "transcoder_v1beta1.yaml", + ruby_cloud_description = "The Transcoder API allows you to convert video files and package them for optimized delivery to web, mobile and connected TVs.", + ruby_cloud_title = "Transcoder V1beta1", deps = [ ":transcoder_ruby_grpc", ":transcoder_ruby_proto", @@ -319,8 +320,8 @@ csharp_grpc_library( csharp_gapic_library( name = "transcoder_csharp_gapic", srcs = [":transcoder_proto_with_info"], - grpc_service_config = "transcoder_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "transcoder_grpc_service_config.json", deps = [ ":transcoder_csharp_grpc", ":transcoder_csharp_proto", diff --git a/third_party/googleapis/google/cloud/video/transcoder/v1beta1/resources.proto b/third_party/googleapis/google/cloud/video/transcoder/v1beta1/resources.proto index 4e2163c9d..71ba38f97 100644 --- a/third_party/googleapis/google/cloud/video/transcoder/v1beta1/resources.proto +++ b/third_party/googleapis/google/cloud/video/transcoder/v1beta1/resources.proto @@ -654,7 +654,7 @@ message VideoStream { // // The following table shows the computed video FPS given the target FPS (in // parenthesis) and input FPS (in the first column): - // + // ``` // | | (30) | (60) | (25) | (50) | // |--------|--------|--------|------|------| // | 240 | Fail | Fail | Fail | Fail | @@ -671,6 +671,7 @@ message VideoStream { // | 15 | 15 | 15 | 20 | 30 | // | 12 | 12 | 12 | 20 | 30 | // | 10 | 10 | 10 | 20 | 30 | + // ``` double frame_rate = 20 [(google.api.field_behavior) = REQUIRED]; // Specify the intensity of the adaptive quantizer (AQ). Must be between 0 and diff --git a/third_party/googleapis/google/cloud/video/transcoder/v1beta1/transcoder_gapic.yaml b/third_party/googleapis/google/cloud/video/transcoder/v1beta1/transcoder_gapic.yaml index 0ae60a9a1..72547da18 100644 --- a/third_party/googleapis/google/cloud/video/transcoder/v1beta1/transcoder_gapic.yaml +++ b/third_party/googleapis/google/cloud/video/transcoder/v1beta1/transcoder_gapic.yaml @@ -1,8 +1,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 language_settings: - java: - package_name: com.google.cloud.video.transcoder.v1beta1 python: package_name: google.cloud.video.transcoder_v1beta1.gapic go: diff --git a/third_party/googleapis/google/cloud/videointelligence/v1/BUILD.bazel b/third_party/googleapis/google/cloud/videointelligence/v1/BUILD.bazel index bc75aa6c6..7b25da56a 100644 --- a/third_party/googleapis/google/cloud/videointelligence/v1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/videointelligence/v1/BUILD.bazel @@ -58,11 +58,9 @@ java_grpc_library( java_gapic_library( name = "videointelligence_java_gapic", - src = ":videointelligence_proto_with_info", + srcs = [":videointelligence_proto_with_info"], gapic_yaml = "videointelligence_gapic.yaml", grpc_service_config = "videointelligence_grpc_service_config.json", - package = "google.cloud.videointelligence.v1", - service_yaml = "videointelligence_v1.yaml", test_deps = [ ":videointelligence_java_grpc", ], @@ -121,9 +119,9 @@ go_gapic_library( service_yaml = "videointelligence_v1.yaml", deps = [ ":videointelligence_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", "@io_bazel_rules_go//proto/wkt:duration_go_proto", ], ) @@ -150,59 +148,20 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "videointelligence_moved_proto", - srcs = [":videointelligence_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/longrunning:operations_proto", - "//google/rpc:status_proto", - "@com_google_protobuf//:duration_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -py_proto_library( - name = "videointelligence_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":videointelligence_moved_proto"], -) - -py_grpc_library( - name = "videointelligence_py_grpc", - srcs = [":videointelligence_moved_proto"], - deps = [":videointelligence_py_proto"], ) py_gapic_library( name = "videointelligence_py_gapic", - src = ":videointelligence_proto_with_info", - gapic_yaml = "videointelligence_gapic.yaml", + srcs = [":videointelligence_proto"], grpc_service_config = "videointelligence_grpc_service_config.json", - package = "google.cloud.videointelligence.v1", - service_yaml = "videointelligence_v1.yaml", - deps = [ - ":videointelligence_py_grpc", - ":videointelligence_py_proto", - ], ) -# Open Source Packages py_gapic_assembly_pkg( name = "videointelligence-v1-py", deps = [ ":videointelligence_py_gapic", - ":videointelligence_py_grpc", - ":videointelligence_py_proto", ], ) @@ -264,6 +223,7 @@ nodejs_gapic_library( name = "videointelligence_nodejs_gapic", package_name = "@google-cloud/video-intelligence", src = ":videointelligence_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "videointelligence_grpc_service_config.json", main_service = "videointelligence", package = "google.cloud.videointelligence.v1", @@ -285,7 +245,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -301,12 +261,19 @@ ruby_grpc_library( deps = [":videointelligence_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "videointelligence_ruby_gapic", - src = ":videointelligence_proto_with_info", - gapic_yaml = "videointelligence_gapic.yaml", - package = "google.cloud.videointelligence.v1", - service_yaml = "videointelligence_v1.yaml", + srcs = [":videointelligence_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-video_intelligence-v1", + "ruby-cloud-env-prefix=VIDEO_INTELLIGENCE", + "ruby-cloud-product-url=https://cloud.google.com/video-intelligence", + "ruby-cloud-api-id=videointelligence.googleapis.com", + "ruby-cloud-api-shortname=videointelligence", + ], + grpc_service_config = "videointelligence_grpc_service_config.json", + ruby_cloud_description = "Detects objects, explicit content, and scene changes in videos. It also specifies the region for annotation and transcribes speech to text. Supports both asynchronous API and streaming API.", + ruby_cloud_title = "Cloud Video Intelligence V1", deps = [ ":videointelligence_ruby_grpc", ":videointelligence_ruby_proto", @@ -348,8 +315,8 @@ csharp_grpc_library( csharp_gapic_library( name = "videointelligence_csharp_gapic", srcs = [":videointelligence_proto_with_info"], - grpc_service_config = "videointelligence_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "videointelligence_grpc_service_config.json", deps = [ ":videointelligence_csharp_grpc", ":videointelligence_csharp_proto", diff --git a/third_party/googleapis/google/cloud/videointelligence/v1/video_intelligence.proto b/third_party/googleapis/google/cloud/videointelligence/v1/video_intelligence.proto index 5b3a3e343..648ec4752 100644 --- a/third_party/googleapis/google/cloud/videointelligence/v1/video_intelligence.proto +++ b/third_party/googleapis/google/cloud/videointelligence/v1/video_intelligence.proto @@ -409,6 +409,12 @@ message NormalizedBoundingBox { // Face detection annotation. message FaceDetectionAnnotation { + // The face tracks with attributes. + repeated Track tracks = 3; + + // The thumbnail of a person's face. + bytes thumbnail = 4; + // Feature version. string version = 5; } diff --git a/third_party/googleapis/google/cloud/videointelligence/v1/videointelligence_gapic.yaml b/third_party/googleapis/google/cloud/videointelligence/v1/videointelligence_gapic.yaml index fcc408f8a..755a05dae 100644 --- a/third_party/googleapis/google/cloud/videointelligence/v1/videointelligence_gapic.yaml +++ b/third_party/googleapis/google/cloud/videointelligence/v1/videointelligence_gapic.yaml @@ -1,8 +1,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 language_settings: - java: - package_name: com.google.cloud.videointelligence.v1 python: package_name: google.cloud.videointelligence_v1.gapic go: diff --git a/third_party/googleapis/google/cloud/videointelligence/v1beta2/BUILD.bazel b/third_party/googleapis/google/cloud/videointelligence/v1beta2/BUILD.bazel index 6cf9452fb..be30f2e21 100644 --- a/third_party/googleapis/google/cloud/videointelligence/v1beta2/BUILD.bazel +++ b/third_party/googleapis/google/cloud/videointelligence/v1beta2/BUILD.bazel @@ -58,11 +58,9 @@ java_grpc_library( java_gapic_library( name = "videointelligence_java_gapic", - src = ":videointelligence_proto_with_info", + srcs = [":videointelligence_proto_with_info"], gapic_yaml = "videointelligence_gapic.yaml", grpc_service_config = "videointelligence_grpc_service_config.json", - package = "google.cloud.videointelligence.v1beta2", - service_yaml = "//google/cloud/videointelligence:videointelligence_v1beta2.yaml", test_deps = [ ":videointelligence_java_grpc", ], @@ -121,9 +119,9 @@ go_gapic_library( service_yaml = "//google/cloud/videointelligence:videointelligence_v1beta2.yaml", deps = [ ":videointelligence_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", "@io_bazel_rules_go//proto/wkt:duration_go_proto", ], ) @@ -150,59 +148,20 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "videointelligence_moved_proto", - srcs = [":videointelligence_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/longrunning:operations_proto", - "//google/rpc:status_proto", - "@com_google_protobuf//:duration_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -py_proto_library( - name = "videointelligence_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":videointelligence_moved_proto"], -) - -py_grpc_library( - name = "videointelligence_py_grpc", - srcs = [":videointelligence_moved_proto"], - deps = [":videointelligence_py_proto"], ) py_gapic_library( name = "videointelligence_py_gapic", - src = ":videointelligence_proto_with_info", - gapic_yaml = "videointelligence_gapic.yaml", + srcs = [":videointelligence_proto"], grpc_service_config = "videointelligence_grpc_service_config.json", - package = "google.cloud.videointelligence.v1beta2", - service_yaml = "//google/cloud/videointelligence:videointelligence_v1beta2.yaml", - deps = [ - ":videointelligence_py_grpc", - ":videointelligence_py_proto", - ], ) -# Open Source Packages py_gapic_assembly_pkg( name = "videointelligence-v1beta2-py", deps = [ ":videointelligence_py_gapic", - ":videointelligence_py_grpc", - ":videointelligence_py_proto", ], ) @@ -264,6 +223,7 @@ nodejs_gapic_library( name = "videointelligence_nodejs_gapic", package_name = "@google-cloud/video-intelligence", src = ":videointelligence_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "videointelligence_grpc_service_config.json", main_service = "videointelligence", package = "google.cloud.videointelligence.v1beta2", @@ -285,7 +245,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -301,12 +261,19 @@ ruby_grpc_library( deps = [":videointelligence_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "videointelligence_ruby_gapic", - src = ":videointelligence_proto_with_info", - gapic_yaml = "videointelligence_gapic.yaml", - package = "google.cloud.videointelligence.v1beta2", - service_yaml = "//google/cloud/videointelligence:videointelligence_v1beta2.yaml", + srcs = [":videointelligence_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-video_intelligence-v1beta2", + "ruby-cloud-env-prefix=VIDEO_INTELLIGENCE", + "ruby-cloud-product-url=https://cloud.google.com/video-intelligence", + "ruby-cloud-api-id=videointelligence.googleapis.com", + "ruby-cloud-api-shortname=videointelligence", + ], + grpc_service_config = "videointelligence_grpc_service_config.json", + ruby_cloud_description = "Detects objects, explicit content, and scene changes in videos. It also specifies the region for annotation and transcribes speech to text. Supports both asynchronous API and streaming API.", + ruby_cloud_title = "Cloud Video Intelligence V1beta2", deps = [ ":videointelligence_ruby_grpc", ":videointelligence_ruby_proto", @@ -348,8 +315,8 @@ csharp_grpc_library( csharp_gapic_library( name = "videointelligence_csharp_gapic", srcs = [":videointelligence_proto_with_info"], - grpc_service_config = "videointelligence_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "videointelligence_grpc_service_config.json", deps = [ ":videointelligence_csharp_grpc", ":videointelligence_csharp_proto", diff --git a/third_party/googleapis/google/cloud/videointelligence/v1beta2/videointelligence_gapic.yaml b/third_party/googleapis/google/cloud/videointelligence/v1beta2/videointelligence_gapic.yaml index 8d437510a..b14df889b 100644 --- a/third_party/googleapis/google/cloud/videointelligence/v1beta2/videointelligence_gapic.yaml +++ b/third_party/googleapis/google/cloud/videointelligence/v1beta2/videointelligence_gapic.yaml @@ -1,8 +1,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 language_settings: - java: - package_name: com.google.cloud.videointelligence.v1beta2 python: package_name: google.cloud.videointelligence_v1beta2.gapic go: diff --git a/third_party/googleapis/google/cloud/videointelligence/v1p1beta1/BUILD.bazel b/third_party/googleapis/google/cloud/videointelligence/v1p1beta1/BUILD.bazel index cf32c7ff2..0d0437821 100644 --- a/third_party/googleapis/google/cloud/videointelligence/v1p1beta1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/videointelligence/v1p1beta1/BUILD.bazel @@ -58,11 +58,9 @@ java_grpc_library( java_gapic_library( name = "videointelligence_java_gapic", - src = ":videointelligence_proto_with_info", + srcs = [":videointelligence_proto_with_info"], gapic_yaml = "videointelligence_gapic.yaml", grpc_service_config = "videointelligence_grpc_service_config.json", - package = "google.cloud.videointelligence.v1p1beta1", - service_yaml = "//google/cloud/videointelligence:videointelligence_v1p1beta1.yaml", test_deps = [ ":videointelligence_java_grpc", ], @@ -121,9 +119,9 @@ go_gapic_library( service_yaml = "//google/cloud/videointelligence:videointelligence_v1p1beta1.yaml", deps = [ ":videointelligence_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", "@io_bazel_rules_go//proto/wkt:duration_go_proto", ], ) @@ -150,59 +148,20 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "videointelligence_moved_proto", - srcs = [":videointelligence_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/longrunning:operations_proto", - "//google/rpc:status_proto", - "@com_google_protobuf//:duration_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -py_proto_library( - name = "videointelligence_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":videointelligence_moved_proto"], -) - -py_grpc_library( - name = "videointelligence_py_grpc", - srcs = [":videointelligence_moved_proto"], - deps = [":videointelligence_py_proto"], ) py_gapic_library( name = "videointelligence_py_gapic", - src = ":videointelligence_proto_with_info", - gapic_yaml = "videointelligence_gapic.yaml", + srcs = [":videointelligence_proto"], grpc_service_config = "videointelligence_grpc_service_config.json", - package = "google.cloud.videointelligence.v1p1beta1", - service_yaml = "//google/cloud/videointelligence:videointelligence_v1p1beta1.yaml", - deps = [ - ":videointelligence_py_grpc", - ":videointelligence_py_proto", - ], ) -# Open Source Packages py_gapic_assembly_pkg( name = "videointelligence-v1p1beta1-py", deps = [ ":videointelligence_py_gapic", - ":videointelligence_py_grpc", - ":videointelligence_py_proto", ], ) @@ -264,6 +223,7 @@ nodejs_gapic_library( name = "videointelligence_nodejs_gapic", package_name = "@google-cloud/video-intelligence", src = ":videointelligence_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "videointelligence_grpc_service_config.json", main_service = "videointelligence", package = "google.cloud.videointelligence.v1p1beta1", @@ -285,7 +245,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -301,12 +261,19 @@ ruby_grpc_library( deps = [":videointelligence_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "videointelligence_ruby_gapic", - src = ":videointelligence_proto_with_info", - gapic_yaml = "videointelligence_gapic.yaml", - package = "google.cloud.videointelligence.v1p1beta1", - service_yaml = "//google/cloud/videointelligence:videointelligence_v1p1beta1.yaml", + srcs = [":videointelligence_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-video_intelligence-v1p1beta1", + "ruby-cloud-env-prefix=VIDEO_INTELLIGENCE", + "ruby-cloud-product-url=https://cloud.google.com/video-intelligence", + "ruby-cloud-api-id=videointelligence.googleapis.com", + "ruby-cloud-api-shortname=videointelligence", + ], + grpc_service_config = "videointelligence_grpc_service_config.json", + ruby_cloud_description = "Detects objects, explicit content, and scene changes in videos. It also specifies the region for annotation and transcribes speech to text. Supports both asynchronous API and streaming API.", + ruby_cloud_title = "Cloud Video Intelligence V1p1beta1", deps = [ ":videointelligence_ruby_grpc", ":videointelligence_ruby_proto", @@ -348,8 +315,8 @@ csharp_grpc_library( csharp_gapic_library( name = "videointelligence_csharp_gapic", srcs = [":videointelligence_proto_with_info"], - grpc_service_config = "videointelligence_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "videointelligence_grpc_service_config.json", deps = [ ":videointelligence_csharp_grpc", ":videointelligence_csharp_proto", diff --git a/third_party/googleapis/google/cloud/videointelligence/v1p1beta1/videointelligence_gapic.legacy.yaml b/third_party/googleapis/google/cloud/videointelligence/v1p1beta1/videointelligence_gapic.legacy.yaml deleted file mode 100644 index dbf690434..000000000 --- a/third_party/googleapis/google/cloud/videointelligence/v1p1beta1/videointelligence_gapic.legacy.yaml +++ /dev/null @@ -1,63 +0,0 @@ -type: com.google.api.codegen.ConfigProto -config_schema_version: 1.0.0 -language_settings: - java: - package_name: com.google.cloud.videointelligence.v1p1beta1 - python: - package_name: google.cloud.videointelligence_v1p1beta1.gapic - go: - package_name: cloud.google.com/go/videointelligence/apiv1p1beta1 - csharp: - package_name: Google.Cloud.VideoIntelligence.V1P1Beta1 - ruby: - package_name: Google::Cloud::VideoIntelligence::V1p1beta1 - release_level: BETA - php: - package_name: Google\Cloud\VideoIntelligence\V1p1beta1 - nodejs: - package_name: video-intelligence.v1p1beta1 - domain_layer_location: google-cloud -interfaces: -- name: google.cloud.videointelligence.v1p1beta1.VideoIntelligenceService - smoke_test: - method: AnnotateVideo - init_fields: - - input_uri=gs://cloud-samples-data/video/cat.mp4 - - features[0]=LABEL_DETECTION - collections: [] - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - retry_params_def: - - name: default - initial_retry_delay_millis: 1000 - retry_delay_multiplier: 2.5 - max_retry_delay_millis: 120000 - initial_rpc_timeout_millis: 120000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 120000 - total_timeout_millis: 600000 - methods: - - name: AnnotateVideo - flattening: - groups: - - parameters: - - input_uri - - features - long_running: - return_type: google.cloud.videointelligence.v1p1beta1.AnnotateVideoResponse - metadata_type: google.cloud.videointelligence.v1p1beta1.AnnotateVideoProgress - initial_poll_delay_millis: 20000 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 45000 - total_poll_timeout_millis: 86400000 - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - sample_code_init_fields: - - input_uri=gs://cloud-samples-data/video/cat.mp4 - - features[0]=LABEL_DETECTION diff --git a/third_party/googleapis/google/cloud/videointelligence/v1p1beta1/videointelligence_gapic.yaml b/third_party/googleapis/google/cloud/videointelligence/v1p1beta1/videointelligence_gapic.yaml index 551558af5..f32150576 100644 --- a/third_party/googleapis/google/cloud/videointelligence/v1p1beta1/videointelligence_gapic.yaml +++ b/third_party/googleapis/google/cloud/videointelligence/v1p1beta1/videointelligence_gapic.yaml @@ -1,8 +1,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 language_settings: - java: - package_name: com.google.cloud.videointelligence.v1p1beta1 python: package_name: google.cloud.videointelligence_v1p1beta1.gapic go: diff --git a/third_party/googleapis/google/cloud/videointelligence/v1p2beta1/BUILD.bazel b/third_party/googleapis/google/cloud/videointelligence/v1p2beta1/BUILD.bazel index eb2789009..e97f57b37 100644 --- a/third_party/googleapis/google/cloud/videointelligence/v1p2beta1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/videointelligence/v1p2beta1/BUILD.bazel @@ -58,11 +58,9 @@ java_grpc_library( java_gapic_library( name = "videointelligence_java_gapic", - src = ":videointelligence_proto_with_info", + srcs = [":videointelligence_proto_with_info"], gapic_yaml = "videointelligence_gapic.yaml", grpc_service_config = "videointelligence_grpc_service_config.json", - package = "google.cloud.videointelligence.v1p2beta1", - service_yaml = "//google/cloud/videointelligence:videointelligence_v1p2beta1.yaml", test_deps = [ ":videointelligence_java_grpc", ], @@ -121,9 +119,9 @@ go_gapic_library( service_yaml = "//google/cloud/videointelligence:videointelligence_v1p2beta1.yaml", deps = [ ":videointelligence_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", "@io_bazel_rules_go//proto/wkt:duration_go_proto", ], ) @@ -150,59 +148,20 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "videointelligence_moved_proto", - srcs = [":videointelligence_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/longrunning:operations_proto", - "//google/rpc:status_proto", - "@com_google_protobuf//:duration_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -py_proto_library( - name = "videointelligence_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":videointelligence_moved_proto"], -) - -py_grpc_library( - name = "videointelligence_py_grpc", - srcs = [":videointelligence_moved_proto"], - deps = [":videointelligence_py_proto"], ) py_gapic_library( name = "videointelligence_py_gapic", - src = ":videointelligence_proto_with_info", - gapic_yaml = "videointelligence_gapic.yaml", + srcs = [":videointelligence_proto"], grpc_service_config = "videointelligence_grpc_service_config.json", - package = "google.cloud.videointelligence.v1p2beta1", - service_yaml = "//google/cloud/videointelligence:videointelligence_v1p2beta1.yaml", - deps = [ - ":videointelligence_py_grpc", - ":videointelligence_py_proto", - ], ) -# Open Source Packages py_gapic_assembly_pkg( name = "videointelligence-v1p2beta1-py", deps = [ ":videointelligence_py_gapic", - ":videointelligence_py_grpc", - ":videointelligence_py_proto", ], ) @@ -264,6 +223,7 @@ nodejs_gapic_library( name = "videointelligence_nodejs_gapic", package_name = "@google-cloud/video-intelligence", src = ":videointelligence_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "videointelligence_grpc_service_config.json", main_service = "videointelligence", package = "google.cloud.videointelligence.v1p2beta1", @@ -285,7 +245,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -301,12 +261,19 @@ ruby_grpc_library( deps = [":videointelligence_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "videointelligence_ruby_gapic", - src = ":videointelligence_proto_with_info", - gapic_yaml = "videointelligence_gapic.yaml", - package = "google.cloud.videointelligence.v1p2beta1", - service_yaml = "//google/cloud/videointelligence:videointelligence_v1p2beta1.yaml", + srcs = [":videointelligence_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-video_intelligence-v1p2beta1", + "ruby-cloud-env-prefix=VIDEO_INTELLIGENCE", + "ruby-cloud-product-url=https://cloud.google.com/video-intelligence", + "ruby-cloud-api-id=videointelligence.googleapis.com", + "ruby-cloud-api-shortname=videointelligence", + ], + grpc_service_config = "videointelligence_grpc_service_config.json", + ruby_cloud_description = "Detects objects, explicit content, and scene changes in videos. It also specifies the region for annotation and transcribes speech to text. Supports both asynchronous API and streaming API.", + ruby_cloud_title = "Cloud Video Intelligence V1p2beta1", deps = [ ":videointelligence_ruby_grpc", ":videointelligence_ruby_proto", @@ -348,8 +315,8 @@ csharp_grpc_library( csharp_gapic_library( name = "videointelligence_csharp_gapic", srcs = [":videointelligence_proto_with_info"], - grpc_service_config = "videointelligence_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "videointelligence_grpc_service_config.json", deps = [ ":videointelligence_csharp_grpc", ":videointelligence_csharp_proto", diff --git a/third_party/googleapis/google/cloud/videointelligence/v1p2beta1/videointelligence_gapic.legacy.yaml b/third_party/googleapis/google/cloud/videointelligence/v1p2beta1/videointelligence_gapic.legacy.yaml deleted file mode 100644 index c627a5d1c..000000000 --- a/third_party/googleapis/google/cloud/videointelligence/v1p2beta1/videointelligence_gapic.legacy.yaml +++ /dev/null @@ -1,63 +0,0 @@ -type: com.google.api.codegen.ConfigProto -config_schema_version: 1.0.0 -language_settings: - java: - package_name: com.google.cloud.videointelligence.v1p2beta1 - python: - package_name: google.cloud.videointelligence_v1p2beta1.gapic - go: - package_name: cloud.google.com/go/videointelligence/apiv1p2beta1 - csharp: - package_name: Google.Cloud.VideoIntelligence.V1P2Beta1 - ruby: - package_name: Google::Cloud::VideoIntelligence::V1p2beta1 - release_level: BETA - php: - package_name: Google\Cloud\VideoIntelligence\V1p2beta1 - nodejs: - package_name: video-intelligence.v1p2beta1 - domain_layer_location: google-cloud -interfaces: -- name: google.cloud.videointelligence.v1p2beta1.VideoIntelligenceService - smoke_test: - method: AnnotateVideo - init_fields: - - input_uri=gs://cloud-samples-data/video/cat.mp4 - - features[0]=LABEL_DETECTION - collections: [] - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - retry_params_def: - - name: default - initial_retry_delay_millis: 1000 - retry_delay_multiplier: 2.5 - max_retry_delay_millis: 120000 - initial_rpc_timeout_millis: 120000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 120000 - total_timeout_millis: 600000 - methods: - - name: AnnotateVideo - flattening: - groups: - - parameters: - - input_uri - - features - long_running: - return_type: google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse - metadata_type: google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress - initial_poll_delay_millis: 20000 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 45000 - total_poll_timeout_millis: 86400000 - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - sample_code_init_fields: - - input_uri=gs://cloud-samples-data/video/cat.mp4 - - features[0]=LABEL_DETECTION diff --git a/third_party/googleapis/google/cloud/videointelligence/v1p2beta1/videointelligence_gapic.yaml b/third_party/googleapis/google/cloud/videointelligence/v1p2beta1/videointelligence_gapic.yaml index dad911f08..245e8f33e 100644 --- a/third_party/googleapis/google/cloud/videointelligence/v1p2beta1/videointelligence_gapic.yaml +++ b/third_party/googleapis/google/cloud/videointelligence/v1p2beta1/videointelligence_gapic.yaml @@ -1,8 +1,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 language_settings: - java: - package_name: com.google.cloud.videointelligence.v1p2beta1 python: package_name: google.cloud.videointelligence_v1p2beta1.gapic go: diff --git a/third_party/googleapis/google/cloud/videointelligence/v1p3beta1/BUILD.bazel b/third_party/googleapis/google/cloud/videointelligence/v1p3beta1/BUILD.bazel index 72552b7bd..e2161ea57 100644 --- a/third_party/googleapis/google/cloud/videointelligence/v1p3beta1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/videointelligence/v1p3beta1/BUILD.bazel @@ -58,11 +58,9 @@ java_grpc_library( java_gapic_library( name = "videointelligence_java_gapic", - src = ":videointelligence_proto_with_info", + srcs = [":videointelligence_proto_with_info"], gapic_yaml = "videointelligence_gapic.yaml", grpc_service_config = "videointelligence_grpc_service_config.json", - package = "google.cloud.videointelligence.v1p3beta1", - service_yaml = "//google/cloud/videointelligence:videointelligence_v1p3beta1.yaml", test_deps = [ ":videointelligence_java_grpc", ], @@ -122,9 +120,9 @@ go_gapic_library( service_yaml = "//google/cloud/videointelligence:videointelligence_v1p3beta1.yaml", deps = [ ":videointelligence_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", "@io_bazel_rules_go//proto/wkt:duration_go_proto", ], ) @@ -151,59 +149,20 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "videointelligence_moved_proto", - srcs = [":videointelligence_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/longrunning:operations_proto", - "//google/rpc:status_proto", - "@com_google_protobuf//:duration_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -py_proto_library( - name = "videointelligence_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":videointelligence_moved_proto"], -) - -py_grpc_library( - name = "videointelligence_py_grpc", - srcs = [":videointelligence_moved_proto"], - deps = [":videointelligence_py_proto"], ) py_gapic_library( name = "videointelligence_py_gapic", - src = ":videointelligence_proto_with_info", - gapic_yaml = "videointelligence_gapic.yaml", + srcs = [":videointelligence_proto"], grpc_service_config = "videointelligence_grpc_service_config.json", - package = "google.cloud.videointelligence.v1p3beta1", - service_yaml = "//google/cloud/videointelligence:videointelligence_v1p3beta1.yaml", - deps = [ - ":videointelligence_py_grpc", - ":videointelligence_py_proto", - ], ) -# Open Source Packages py_gapic_assembly_pkg( name = "videointelligence-v1p3beta1-py", deps = [ ":videointelligence_py_gapic", - ":videointelligence_py_grpc", - ":videointelligence_py_proto", ], ) @@ -265,6 +224,7 @@ nodejs_gapic_library( name = "videointelligence_nodejs_gapic", package_name = "@google-cloud/video-intelligence", src = ":videointelligence_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "videointelligence_grpc_service_config.json", main_service = "videointelligence", package = "google.cloud.videointelligence.v1p3beta1", @@ -349,8 +309,8 @@ csharp_grpc_library( csharp_gapic_library( name = "videointelligence_csharp_gapic", srcs = [":videointelligence_proto_with_info"], - grpc_service_config = "videointelligence_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "videointelligence_grpc_service_config.json", deps = [ ":videointelligence_csharp_grpc", ":videointelligence_csharp_proto", diff --git a/third_party/googleapis/google/cloud/videointelligence/v1p3beta1/videointelligence_gapic.legacy.yaml b/third_party/googleapis/google/cloud/videointelligence/v1p3beta1/videointelligence_gapic.legacy.yaml deleted file mode 100644 index 28ec53f39..000000000 --- a/third_party/googleapis/google/cloud/videointelligence/v1p3beta1/videointelligence_gapic.legacy.yaml +++ /dev/null @@ -1,237 +0,0 @@ -type: com.google.api.codegen.ConfigProto -config_schema_version: 1.0.0 -language_settings: - java: - package_name: com.google.cloud.videointelligence.v1p3beta1 - python: - package_name: google.cloud.videointelligence_v1p3beta1.gapic - go: - package_name: cloud.google.com/go/videointelligence/apiv1p3beta1 - csharp: - package_name: Google.Cloud.VideoIntelligence.V1P3Beta1 - ruby: - package_name: Google::Cloud::VideoIntelligence::V1p3beta1 - release_level: BETA - php: - package_name: Google\Cloud\VideoIntelligence\V1p3beta1 - nodejs: - package_name: video-intelligence.v1p3beta1 - domain_layer_location: google-cloud -interfaces: -- name: google.cloud.videointelligence.v1p3beta1.VideoIntelligenceService - smoke_test: - method: AnnotateVideo - init_fields: - - input_uri=gs://cloud-samples-data/video/cat.mp4 - - features[0]=LABEL_DETECTION - collections: [] - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - retry_params_def: - - name: default - initial_retry_delay_millis: 1000 - retry_delay_multiplier: 2.5 - max_retry_delay_millis: 120000 - initial_rpc_timeout_millis: 120000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 120000 - total_timeout_millis: 600000 - methods: - - name: AnnotateVideo - flattening: - groups: - - parameters: - - input_uri - - features - long_running: - return_type: google.cloud.videointelligence.v1p3beta1.AnnotateVideoResponse - metadata_type: google.cloud.videointelligence.v1p3beta1.AnnotateVideoProgress - initial_poll_delay_millis: 20000 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 45000 - total_poll_timeout_millis: 86400000 - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - sample_code_init_fields: - - input_uri=gs://cloud-samples-data/video/cat.mp4 - - features[0]=LABEL_DETECTION - samples: - standalone: - - region_tag: video_detect_logo_beta - value_sets: [video_detect_logo_beta] - - region_tag: video_detect_logo_gcs_beta - value_sets: [video_detect_logo_gcs_beta] - sample_value_sets: - - id: video_detect_logo_beta - description: "Performs asynchronous video annotation for logo recognition from inline video content." - parameters: - defaults: - - input_content="resources/googlework_short.mp4" - - features[0]=LOGO_RECOGNITION - attributes: - - parameter: input_content - sample_argument_name: local_file_path - read_file: true - description: Path to local video file, e.g. /path/video.mp4 - on_success: - - comment: ["Get the first response, since we sent only one video."] - - define: annotation_result=$resp.annotation_results[0] - - comment: ["Annotations for list of logos detected, tracked and recognized in video."] - - loop: - collection: annotation_result.logo_recognition_annotations - variable: logo_recognition_annotation - body: - - define: entity=logo_recognition_annotation.entity - - comment: ["Opaque entity ID. Some IDs may be available in [Google Knowledge Graph Search API](https://developers.google.com/knowledge-graph/)."] - - print: ["Entity Id : %s", entity.entity_id] - - comment: ["Textual description, e.g. `Google`."] - - print: ["Description : %s", entity.description] - - comment: ["All logo tracks where the recognized logo appears. Each track corresponds to one logo instance appearing in consecutive frames."] - - loop: - collection: logo_recognition_annotation.tracks - variable: track - body: - - comment: ["Video segment of a track."] - - define: segment=track.segment - - define: segment_start_time_offset=segment.start_time_offset - - print: ["\n\tStart Time Offset : %s.%s", segment_start_time_offset.seconds, segment_start_time_offset.nanos] - - define: segment_end_time_offset=segment.end_time_offset - - print: ["\tEnd Time Offset : %s.%s", segment_end_time_offset.seconds, segment_end_time_offset.nanos] - - print: ["\tConfidence : %s", track.confidence] - - comment: ["The object with timestamp and attributes per frame in the track."] - - loop: - collection: track.timestamped_objects - variable: timestamped_object - body: - - comment: ["Normalized Bounding box in a frame, where the object is located."] - - define: normalized_bounding_box=timestamped_object.normalized_bounding_box - - print: ["\n\t\tLeft : %s", normalized_bounding_box.left] - - print: ["\t\tTop : %s", normalized_bounding_box.top] - - print: ["\t\tRight : %s", normalized_bounding_box.right] - - print: ["\t\tBottom : %s", normalized_bounding_box.bottom] - - comment: ["Optional. The attributes of the object in the bounding box."] - - loop: - collection: timestamped_object.attributes - variable: attribute - body: - - print: ["\n\t\t\tName : %s", attribute.name] - - print: ["\t\t\tConfidence : %s", attribute.confidence] - - print: ["\t\t\tValue : %s", attribute.value] - - comment: ["Optional. Attributes in the track level."] - - loop: - collection: track.attributes - variable: track_attribute - body: - - print: ["\n\t\tName : %s", track_attribute.name] - - print: ["\t\tConfidence : %s", track_attribute.confidence] - - print: ["\t\tValue : %s", track_attribute.value] - - comment: ["All video segments where the recognized logo appears. There might be multiple instances of the same logo class appearing in one VideoSegment."] - - loop: - collection: logo_recognition_annotation.segments - variable: logo_recognition_annotation_segment - body: - - define: logo_recognition_annotation_segment_start_time_offset=logo_recognition_annotation_segment.start_time_offset - - print: ["\n\tStart Time Offset : %s.%s", logo_recognition_annotation_segment_start_time_offset.seconds, logo_recognition_annotation_segment_start_time_offset.nanos] - - define: logo_recognition_annotation_segment_end_time_offset=logo_recognition_annotation_segment.end_time_offset - - print: ["\tEnd Time Offset : %s.%s", logo_recognition_annotation_segment_end_time_offset.seconds, logo_recognition_annotation_segment_end_time_offset.nanos] - - id: video_detect_logo_gcs_beta - description: "Performs asynchronous video annotation for logo recognition on a file hosted in GCS." - parameters: - defaults: - - input_uri=gs://cloud-samples-data/video/googlework_short.mp4 - - features[0]=LOGO_RECOGNITION - on_success: - - comment: ["Get the first response, since we sent only one video."] - - define: annotation_result=$resp.annotation_results[0] - - comment: ["Annotations for list of logos detected, tracked and recognized in video."] - - loop: - collection: annotation_result.logo_recognition_annotations - variable: logo_recognition_annotation - body: - - define: entity=logo_recognition_annotation.entity - - comment: ["Opaque entity ID. Some IDs may be available in [Google Knowledge Graph Search API](https://developers.google.com/knowledge-graph/)."] - - print: ["Entity Id : %s", entity.entity_id] - - comment: ["Textual description, e.g. `Google`."] - - print: ["Description : %s", entity.description] - - comment: ["All logo tracks where the recognized logo appears. Each track corresponds to one logo instance appearing in consecutive frames."] - - loop: - collection: logo_recognition_annotation.tracks - variable: track - body: - - comment: ["Video segment of a track."] - - define: segment=track.segment - - define: segment_start_time_offset=segment.start_time_offset - - print: ["\n\tStart Time Offset : %s.%s", segment_start_time_offset.seconds, segment_start_time_offset.nanos] - - define: segment_end_time_offset=segment.end_time_offset - - print: ["\tEnd Time Offset : %s.%s", segment_end_time_offset.seconds, segment_end_time_offset.nanos] - - print: ["\tConfidence : %s", track.confidence] - - comment: ["The object with timestamp and attributes per frame in the track."] - - loop: - collection: track.timestamped_objects - variable: timestamped_object - body: - - comment: ["Normalized Bounding box in a frame, where the object is located."] - - define: normalized_bounding_box=timestamped_object.normalized_bounding_box - - print: ["\n\t\tLeft : %s", normalized_bounding_box.left] - - print: ["\t\tTop : %s", normalized_bounding_box.top] - - print: ["\t\tRight : %s", normalized_bounding_box.right] - - print: ["\t\tBottom : %s", normalized_bounding_box.bottom] - - comment: ["Optional. The attributes of the object in the bounding box."] - - loop: - collection: timestamped_object.attributes - variable: attribute - body: - - print: ["\n\t\t\tName : %s", attribute.name] - - print: ["\t\t\tConfidence : %s", attribute.confidence] - - print: ["\t\t\tValue : %s", attribute.value] - - comment: ["Optional. Attributes in the track level."] - - loop: - collection: track.attributes - variable: track_attribute - body: - - print: ["\n\t\tName : %s", track_attribute.name] - - print: ["\t\tConfidence : %s", track_attribute.confidence] - - print: ["\t\tValue : %s", track_attribute.value] - - comment: ["All video segments where the recognized logo appears. There might be multiple instances of the same logo class appearing in one VideoSegment."] - - loop: - collection: logo_recognition_annotation.segments - variable: logo_recognition_annotation_segment - body: - - define: logo_recognition_annotation_segment_start_time_offset=logo_recognition_annotation_segment.start_time_offset - - print: ["\n\tStart Time Offset : %s.%s", logo_recognition_annotation_segment_start_time_offset.seconds, logo_recognition_annotation_segment_start_time_offset.nanos] - - define: logo_recognition_annotation_segment_end_time_offset=logo_recognition_annotation_segment.end_time_offset - - print: ["\tEnd Time Offset : %s.%s", logo_recognition_annotation_segment_end_time_offset.seconds, logo_recognition_annotation_segment_end_time_offset.nanos] -# TODO: This config is currently broken: -# https://github.com/googleapis/gapic-generator/issues/1057 -# https://github.com/googleapis/gapic-generator/issues/1149 -- name: google.cloud.videointelligence.v1p3beta1.StreamingVideoIntelligenceService - collections: [] - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 10800000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 10800000 - total_timeout_millis: 10800000 - methods: - - name: StreamingAnnotateVideo - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 10800000 diff --git a/third_party/googleapis/google/cloud/videointelligence/v1p3beta1/videointelligence_gapic.yaml b/third_party/googleapis/google/cloud/videointelligence/v1p3beta1/videointelligence_gapic.yaml index d95e7f94a..d9556ce04 100644 --- a/third_party/googleapis/google/cloud/videointelligence/v1p3beta1/videointelligence_gapic.yaml +++ b/third_party/googleapis/google/cloud/videointelligence/v1p3beta1/videointelligence_gapic.yaml @@ -1,8 +1,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 language_settings: - java: - package_name: com.google.cloud.videointelligence.v1p3beta1 python: package_name: google.cloud.videointelligence_v1p3beta1.gapic go: @@ -73,10 +71,10 @@ interfaces: - comment: ["Video segment of a track."] - define: segment=track.segment - define: segment_start_time_offset=segment.start_time_offset - - print: ["\n\tStart Time Offset : %s.%s", segment_start_time_offset.seconds, segment_start_time_offset.nanos] + - print: [" Start Time Offset : %s.%s", segment_start_time_offset.seconds, segment_start_time_offset.nanos] - define: segment_end_time_offset=segment.end_time_offset - - print: ["\tEnd Time Offset : %s.%s", segment_end_time_offset.seconds, segment_end_time_offset.nanos] - - print: ["\tConfidence : %s", track.confidence] + - print: [" End Time Offset : %s.%s", segment_end_time_offset.seconds, segment_end_time_offset.nanos] + - print: [" Confidence : %s", track.confidence] - comment: ["The object with timestamp and attributes per frame in the track."] - loop: collection: track.timestamped_objects @@ -84,35 +82,35 @@ interfaces: body: - comment: ["Normalized Bounding box in a frame, where the object is located."] - define: normalized_bounding_box=timestamped_object.normalized_bounding_box - - print: ["\n\t\tLeft : %s", normalized_bounding_box.left] - - print: ["\t\tTop : %s", normalized_bounding_box.top] - - print: ["\t\tRight : %s", normalized_bounding_box.right] - - print: ["\t\tBottom : %s", normalized_bounding_box.bottom] + - print: [" Left : %s", normalized_bounding_box.left] + - print: [" Top : %s", normalized_bounding_box.top] + - print: [" Right : %s", normalized_bounding_box.right] + - print: [" Bottom : %s", normalized_bounding_box.bottom] - comment: ["Optional. The attributes of the object in the bounding box."] - loop: collection: timestamped_object.attributes variable: attribute body: - - print: ["\n\t\t\tName : %s", attribute.name] - - print: ["\t\t\tConfidence : %s", attribute.confidence] - - print: ["\t\t\tValue : %s", attribute.value] + - print: [" Name : %s", attribute.name] + - print: [" Confidence : %s", attribute.confidence] + - print: [" Value : %s", attribute.value] - comment: ["Optional. Attributes in the track level."] - loop: collection: track.attributes variable: track_attribute body: - - print: ["\n\t\tName : %s", track_attribute.name] - - print: ["\t\tConfidence : %s", track_attribute.confidence] - - print: ["\t\tValue : %s", track_attribute.value] + - print: [" Name : %s", track_attribute.name] + - print: [" Confidence : %s", track_attribute.confidence] + - print: [" Value : %s", track_attribute.value] - comment: ["All video segments where the recognized logo appears. There might be multiple instances of the same logo class appearing in one VideoSegment."] - loop: collection: logo_recognition_annotation.segments variable: logo_recognition_annotation_segment body: - define: logo_recognition_annotation_segment_start_time_offset=logo_recognition_annotation_segment.start_time_offset - - print: ["\n\tStart Time Offset : %s.%s", logo_recognition_annotation_segment_start_time_offset.seconds, logo_recognition_annotation_segment_start_time_offset.nanos] + - print: [" Start Time Offset : %s.%s", logo_recognition_annotation_segment_start_time_offset.seconds, logo_recognition_annotation_segment_start_time_offset.nanos] - define: logo_recognition_annotation_segment_end_time_offset=logo_recognition_annotation_segment.end_time_offset - - print: ["\tEnd Time Offset : %s.%s", logo_recognition_annotation_segment_end_time_offset.seconds, logo_recognition_annotation_segment_end_time_offset.nanos] + - print: [" End Time Offset : %s.%s", logo_recognition_annotation_segment_end_time_offset.seconds, logo_recognition_annotation_segment_end_time_offset.nanos] - id: video_detect_logo_gcs_beta description: "Performs asynchronous video annotation for logo recognition on a file hosted in GCS." parameters: @@ -140,10 +138,10 @@ interfaces: - comment: ["Video segment of a track."] - define: segment=track.segment - define: segment_start_time_offset=segment.start_time_offset - - print: ["\n\tStart Time Offset : %s.%s", segment_start_time_offset.seconds, segment_start_time_offset.nanos] + - print: [" Start Time Offset : %s.%s", segment_start_time_offset.seconds, segment_start_time_offset.nanos] - define: segment_end_time_offset=segment.end_time_offset - - print: ["\tEnd Time Offset : %s.%s", segment_end_time_offset.seconds, segment_end_time_offset.nanos] - - print: ["\tConfidence : %s", track.confidence] + - print: [" End Time Offset : %s.%s", segment_end_time_offset.seconds, segment_end_time_offset.nanos] + - print: [" Confidence : %s", track.confidence] - comment: ["The object with timestamp and attributes per frame in the track."] - loop: collection: track.timestamped_objects @@ -151,32 +149,32 @@ interfaces: body: - comment: ["Normalized Bounding box in a frame, where the object is located."] - define: normalized_bounding_box=timestamped_object.normalized_bounding_box - - print: ["\n\t\tLeft : %s", normalized_bounding_box.left] - - print: ["\t\tTop : %s", normalized_bounding_box.top] - - print: ["\t\tRight : %s", normalized_bounding_box.right] - - print: ["\t\tBottom : %s", normalized_bounding_box.bottom] + - print: [" Left : %s", normalized_bounding_box.left] + - print: [" Top : %s", normalized_bounding_box.top] + - print: [" Right : %s", normalized_bounding_box.right] + - print: [" Bottom : %s", normalized_bounding_box.bottom] - comment: ["Optional. The attributes of the object in the bounding box."] - loop: collection: timestamped_object.attributes variable: attribute body: - - print: ["\n\t\t\tName : %s", attribute.name] - - print: ["\t\t\tConfidence : %s", attribute.confidence] - - print: ["\t\t\tValue : %s", attribute.value] + - print: [" Name : %s", attribute.name] + - print: [" Confidence : %s", attribute.confidence] + - print: [" Value : %s", attribute.value] - comment: ["Optional. Attributes in the track level."] - loop: collection: track.attributes variable: track_attribute body: - - print: ["\n\t\tName : %s", track_attribute.name] - - print: ["\t\tConfidence : %s", track_attribute.confidence] - - print: ["\t\tValue : %s", track_attribute.value] + - print: [" Name : %s", track_attribute.name] + - print: [" Confidence : %s", track_attribute.confidence] + - print: [" Value : %s", track_attribute.value] - comment: ["All video segments where the recognized logo appears. There might be multiple instances of the same logo class appearing in one VideoSegment."] - loop: collection: logo_recognition_annotation.segments variable: logo_recognition_annotation_segment body: - define: logo_recognition_annotation_segment_start_time_offset=logo_recognition_annotation_segment.start_time_offset - - print: ["\n\tStart Time Offset : %s.%s", logo_recognition_annotation_segment_start_time_offset.seconds, logo_recognition_annotation_segment_start_time_offset.nanos] + - print: [" Start Time Offset : %s.%s", logo_recognition_annotation_segment_start_time_offset.seconds, logo_recognition_annotation_segment_start_time_offset.nanos] - define: logo_recognition_annotation_segment_end_time_offset=logo_recognition_annotation_segment.end_time_offset - - print: ["\tEnd Time Offset : %s.%s", logo_recognition_annotation_segment_end_time_offset.seconds, logo_recognition_annotation_segment_end_time_offset.nanos] + - print: [" End Time Offset : %s.%s", logo_recognition_annotation_segment_end_time_offset.seconds, logo_recognition_annotation_segment_end_time_offset.nanos] diff --git a/third_party/googleapis/google/cloud/vision/v1/BUILD.bazel b/third_party/googleapis/google/cloud/vision/v1/BUILD.bazel index 218e329e1..100d57ffa 100644 --- a/third_party/googleapis/google/cloud/vision/v1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/vision/v1/BUILD.bazel @@ -67,11 +67,9 @@ java_grpc_library( java_gapic_library( name = "vision_java_gapic", - src = ":vision_proto_with_info", + srcs = [":vision_proto_with_info"], gapic_yaml = "vision_gapic.yaml", grpc_service_config = "vision_grpc_service_config.json", - package = "google.cloud.vision.v1", - service_yaml = "vision_v1.yaml", test_deps = [ ":vision_java_grpc", ], @@ -133,9 +131,9 @@ go_gapic_library( service_yaml = "vision_v1.yaml", deps = [ ":vision_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", ], ) @@ -159,12 +157,10 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -238,6 +234,7 @@ nodejs_gapic_library( name = "vision_nodejs_gapic", package_name = "@google-cloud/vision", src = ":vision_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "vision_grpc_service_config.json", main_service = "vision", package = "google.cloud.vision.v1", @@ -259,7 +256,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -275,12 +272,19 @@ ruby_grpc_library( deps = [":vision_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "vision_ruby_gapic", - src = ":vision_proto_with_info", - gapic_yaml = "vision_gapic.yaml", - package = "google.cloud.vision.v1", - service_yaml = "vision_v1.yaml", + srcs = [":vision_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-vision-v1", + "ruby-cloud-env-prefix=VISION", + "ruby-cloud-product-url=https://cloud.google.com/vision", + "ruby-cloud-api-id=vision.googleapis.com", + "ruby-cloud-api-shortname=vision", + ], + grpc_service_config = "vision_grpc_service_config.json", + ruby_cloud_description = "Cloud Vision API allows developers to easily integrate vision detection features within applications, including image labeling, face and landmark detection, optical character recognition (OCR), and tagging of explicit content.", + ruby_cloud_title = "Cloud Vision V1", deps = [ ":vision_ruby_grpc", ":vision_ruby_proto", @@ -322,8 +326,8 @@ csharp_grpc_library( csharp_gapic_library( name = "vision_csharp_gapic", srcs = [":vision_proto_with_info"], - grpc_service_config = "vision_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "vision_grpc_service_config.json", deps = [ ":vision_csharp_grpc", ":vision_csharp_proto", diff --git a/third_party/googleapis/google/cloud/vision/v1/geometry.proto b/third_party/googleapis/google/cloud/vision/v1/geometry.proto index 881c8f84e..376d2da39 100644 --- a/third_party/googleapis/google/cloud/vision/v1/geometry.proto +++ b/third_party/googleapis/google/cloud/vision/v1/geometry.proto @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,7 +11,6 @@ // WITHOUT 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"; diff --git a/third_party/googleapis/google/cloud/vision/v1/image_annotator.proto b/third_party/googleapis/google/cloud/vision/v1/image_annotator.proto index e75ca7660..3852bed7c 100644 --- a/third_party/googleapis/google/cloud/vision/v1/image_annotator.proto +++ b/third_party/googleapis/google/cloud/vision/v1/image_annotator.proto @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,7 +11,6 @@ // WITHOUT 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"; @@ -48,7 +47,8 @@ service ImageAnnotator { "https://www.googleapis.com/auth/cloud-vision"; // Run image detection and annotation for a batch of images. - rpc BatchAnnotateImages(BatchAnnotateImagesRequest) returns (BatchAnnotateImagesResponse) { + rpc BatchAnnotateImages(BatchAnnotateImagesRequest) + returns (BatchAnnotateImagesResponse) { option (google.api.http) = { post: "/v1/images:annotate" body: "*" @@ -71,7 +71,8 @@ service ImageAnnotator { // AnnotateFileRequest.pages) frames (gif) or pages (pdf or tiff) from each // file provided and perform detection and annotation for each image // extracted. - rpc BatchAnnotateFiles(BatchAnnotateFilesRequest) returns (BatchAnnotateFilesResponse) { + rpc BatchAnnotateFiles(BatchAnnotateFilesRequest) + returns (BatchAnnotateFilesResponse) { option (google.api.http) = { post: "/v1/files:annotate" body: "*" @@ -96,7 +97,8 @@ service ImageAnnotator { // // This service will write image annotation outputs to json files in customer // GCS bucket, each json file containing BatchAnnotateImagesResponse proto. - rpc AsyncBatchAnnotateImages(AsyncBatchAnnotateImagesRequest) returns (google.longrunning.Operation) { + rpc AsyncBatchAnnotateImages(AsyncBatchAnnotateImagesRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/images:asyncBatchAnnotate" body: "*" @@ -122,7 +124,8 @@ service ImageAnnotator { // `google.longrunning.Operations` interface. // `Operation.metadata` contains `OperationMetadata` (metadata). // `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results). - rpc AsyncBatchAnnotateFiles(AsyncBatchAnnotateFilesRequest) returns (google.longrunning.Operation) { + rpc AsyncBatchAnnotateFiles(AsyncBatchAnnotateFilesRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/files:asyncBatchAnnotate" body: "*" @@ -242,6 +245,9 @@ message Image { // Image content, represented as a stream of bytes. // Note: As with all `bytes` fields, protobuffers use a pure binary // representation, whereas JSON representations use base64. + // + // Currently, this field only works for BatchAnnotateImages requests. It does + // not work for AsyncBatchAnnotateImages requests. bytes content = 1; // Google Cloud Storage image location, or publicly-accessible image @@ -385,6 +391,12 @@ message FaceAnnotation { // Chin right gonion. CHIN_RIGHT_GONION = 34; + + // Left cheek center. + LEFT_CHEEK_CENTER = 35; + + // Right cheek center. + RIGHT_CHEEK_CENTER = 36; } // Face landmark type. @@ -569,27 +581,27 @@ message SafeSearchAnnotation { // Confidence of adult_score. Range [0, 1]. 0 means not confident, 1 means // very confident. - float adult_confidence = 16; + float adult_confidence = 16 [deprecated = true]; // Confidence of spoof_score. Range [0, 1]. 0 means not confident, 1 means // very confident. - float spoof_confidence = 18; + float spoof_confidence = 18 [deprecated = true]; // Confidence of medical_score. Range [0, 1]. 0 means not confident, 1 means // very confident. - float medical_confidence = 20; + float medical_confidence = 20 [deprecated = true]; // Confidence of violence_score. Range [0, 1]. 0 means not confident, 1 means // very confident. - float violence_confidence = 22; + float violence_confidence = 22 [deprecated = true]; // Confidence of racy_score. Range [0, 1]. 0 means not confident, 1 means very // confident. - float racy_confidence = 24; + float racy_confidence = 24 [deprecated = true]; // Confidence of nsfw_score. Range [0, 1]. 0 means not confident, 1 means very // confident. - float nsfw_confidence = 26; + float nsfw_confidence = 26 [deprecated = true]; } // Rectangle determined by min and max `LatLng` pairs. @@ -664,6 +676,15 @@ message WebDetectionParams { bool include_geo_results = 2; } +// Parameters for text detections. This is used to control TEXT_DETECTION and +// DOCUMENT_TEXT_DETECTION features. +message TextDetectionParams { + // By default, Cloud Vision API only includes confidence score for + // DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence + // score for TEXT_DETECTION as well. + bool enable_text_detection_confidence_score = 9; +} + // Image context and/or feature-specific parameters. message ImageContext { // Not used. @@ -687,6 +708,9 @@ message ImageContext { // Parameters for web detection. WebDetectionParams web_detection_params = 6; + + // Parameters for text detection and document text detection. + TextDetectionParams text_detection_params = 12; } // Request for performing Google Cloud Vision API tasks over a user-provided @@ -768,7 +792,8 @@ message AnnotateImageResponse { // Multiple image annotation requests are batched into a single service call. message BatchAnnotateImagesRequest { // Required. Individual image annotation requests for this batch. - repeated AnnotateImageRequest requests = 1 [(google.api.field_behavior) = REQUIRED]; + repeated AnnotateImageRequest requests = 1 + [(google.api.field_behavior) = REQUIRED]; // Optional. Target project and location to make a call. // @@ -839,9 +864,10 @@ message AnnotateFileResponse { // A list of requests to annotate files using the BatchAnnotateFiles API. message BatchAnnotateFilesRequest { - // Required. The list of file annotation requests. Right now we support only one - // AnnotateFileRequest in BatchAnnotateFilesRequest. - repeated AnnotateFileRequest requests = 1 [(google.api.field_behavior) = REQUIRED]; + // Required. The list of file annotation requests. Right now we support only + // one AnnotateFileRequest in BatchAnnotateFilesRequest. + repeated AnnotateFileRequest requests = 1 + [(google.api.field_behavior) = REQUIRED]; // Optional. Target project and location to make a call. // @@ -889,7 +915,8 @@ message AsyncAnnotateFileResponse { // Request for async image annotation for a list of images. message AsyncBatchAnnotateImagesRequest { // Required. Individual image annotation requests for this batch. - repeated AnnotateImageRequest requests = 1 [(google.api.field_behavior) = REQUIRED]; + repeated AnnotateImageRequest requests = 1 + [(google.api.field_behavior) = REQUIRED]; // Required. The desired output location and metadata (e.g. format). OutputConfig output_config = 2 [(google.api.field_behavior) = REQUIRED]; @@ -919,7 +946,8 @@ message AsyncBatchAnnotateImagesResponse { // call. message AsyncBatchAnnotateFilesRequest { // Required. Individual async file annotation requests for this batch. - repeated AsyncAnnotateFileRequest requests = 1 [(google.api.field_behavior) = REQUIRED]; + repeated AsyncAnnotateFileRequest requests = 1 + [(google.api.field_behavior) = REQUIRED]; // Optional. Target project and location to make a call. // diff --git a/third_party/googleapis/google/cloud/vision/v1/product_search.proto b/third_party/googleapis/google/cloud/vision/v1/product_search.proto index 6df694b8b..564925feb 100644 --- a/third_party/googleapis/google/cloud/vision/v1/product_search.proto +++ b/third_party/googleapis/google/cloud/vision/v1/product_search.proto @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,17 +11,16 @@ // WITHOUT 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.vision.v1; +import "google/api/resource.proto"; import "google/cloud/vision/v1/geometry.proto"; import "google/cloud/vision/v1/product_search_service.proto"; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; -import "google/api/resource.proto"; option cc_enable_arenas = true; option go_package = "google.golang.org/genproto/googleapis/cloud/vision/v1;vision"; @@ -33,7 +32,7 @@ option objc_class_prefix = "GCVN"; // Parameters for a product search request. message ProductSearchParams { // The bounding polygon around the area of interest in the image. - // Optional. If it is not specified, system discretion will be applied. + // If it is not specified, system discretion will be applied. BoundingPoly bounding_poly = 9; // The resource name of a [ProductSet][google.cloud.vision.v1.ProductSet] to be searched for similar images. @@ -41,8 +40,8 @@ message ProductSearchParams { // Format is: // `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`. string product_set = 6 [(google.api.resource_reference) = { - type: "vision.googleapis.com/ProductSet" - }]; + type: "vision.googleapis.com/ProductSet" + }]; // The list of product categories to search in. Currently, we only consider // the first category, and either "homegoods-v2", "apparel-v2", "toys-v2", diff --git a/third_party/googleapis/google/cloud/vision/v1/product_search_service.proto b/third_party/googleapis/google/cloud/vision/v1/product_search_service.proto index ecfcdf6c7..5a61f5422 100644 --- a/third_party/googleapis/google/cloud/vision/v1/product_search_service.proto +++ b/third_party/googleapis/google/cloud/vision/v1/product_search_service.proto @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,7 +11,6 @@ // WITHOUT 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"; @@ -397,9 +396,9 @@ message Product { string description = 3; // Immutable. 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. + // be one of "homegoods-v2", "apparel-v2", "toys-v2", "packagedgoods-v1" or + // "general-v1". The legacy categories "homegoods", "apparel", and "toys" are + // still supported, but these should not be used for new products. string product_category = 4 [(google.api.field_behavior) = IMMUTABLE]; // Key-value pairs that can be attached to a product. At query time, @@ -465,7 +464,6 @@ message ReferenceImage { // The resource name of the reference image. // // Format is: - // // `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`. // // This field is ignored when creating a reference image. @@ -638,7 +636,7 @@ message GetProductSetRequest { // Required. Resource name of the ProductSet to get. // // Format is: - // `projects/PROJECT_ID/locations/LOG_ID/productSets/PRODUCT_SET_ID` + // `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -737,7 +735,6 @@ message GetReferenceImageRequest { // Required. The resource name of the ReferenceImage to get. // // Format is: - // // `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`. string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -752,7 +749,6 @@ message DeleteReferenceImageRequest { // Required. The resource name of the reference image to delete. // // Format is: - // // `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID` string name = 1 [ (google.api.field_behavior) = REQUIRED, diff --git a/third_party/googleapis/google/cloud/vision/v1/text_annotation.proto b/third_party/googleapis/google/cloud/vision/v1/text_annotation.proto index 97f9c8fa9..db3bbdc5f 100644 --- a/third_party/googleapis/google/cloud/vision/v1/text_annotation.proto +++ b/third_party/googleapis/google/cloud/vision/v1/text_annotation.proto @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,7 +11,6 @@ // WITHOUT 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"; diff --git a/third_party/googleapis/google/cloud/vision/v1/vision_gapic.legacy.yaml b/third_party/googleapis/google/cloud/vision/v1/vision_gapic.legacy.yaml deleted file mode 100644 index 62c87c780..000000000 --- a/third_party/googleapis/google/cloud/vision/v1/vision_gapic.legacy.yaml +++ /dev/null @@ -1,640 +0,0 @@ -type: com.google.api.codegen.ConfigProto -config_schema_version: 1.0.0 -language_settings: - java: - package_name: com.google.cloud.vision.v1 - release_level: GA - python: - package_name: google.cloud.vision_v1.gapic - go: - package_name: cloud.google.com/go/vision/apiv1 - release_level: GA - csharp: - package_name: Google.Cloud.Vision.V1 - release_level: GA - ruby: - package_name: Google::Cloud::Vision::V1 - php: - package_name: Google\Cloud\Vision\V1 - nodejs: - package_name: vision.v1 - domain_layer_location: google-cloud -interfaces: -- name: google.cloud.vision.v1.ImageAnnotator - smoke_test: - method: BatchAnnotateImages - init_fields: - - requests[0].image.source.gcs_image_uri="gs://cloud-samples-data/vision/face_detection/celebrity_recognition/sergey.jpg" - - requests[0].features[0].type=FACE_DETECTION - collections: [] - retry_codes_def: - - name: idempotent - retry_codes: - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 60000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 60000 - total_timeout_millis: 600000 - methods: - - name: BatchAnnotateImages - flattening: - groups: - - parameters: - - requests - required_fields: - - requests - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - - name: BatchAnnotateFiles - flattening: - groups: - - parameters: - - requests - required_fields: - - requests - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - samples: - standalone: - - region_tag: vision_batch_annotate_files_gcs - value_sets: [vision_batch_annotate_files_gcs] - - region_tag: vision_batch_annotate_files - value_sets: [vision_batch_annotate_files] - sample_value_sets: - - id: vision_batch_annotate_files_gcs - description: "Perform batch file annotation" - parameters: - defaults: - - requests[0].input_config.gcs_source.uri=gs://cloud-samples-data/vision/document_understanding/kafka.pdf - - requests[0].features[0].type=DOCUMENT_TEXT_DETECTION - - requests[0].pages[0]=1 - - requests[0].pages[1]=2 - - requests[0].pages[2]="-1" - attributes: - - parameter: requests[0].input_config.gcs_source.uri - sample_argument_name: storage_uri - description: "Cloud Storage URI to source image in the format gs://[bucket]/[file]" - - parameter: requests[0].pages[0] - description: | - The service can process up to 5 pages per document file. - Here we specify the first, second, and last page of the document to be processed. - on_success: - - loop: - collection: $resp.responses[0].responses - variable: image_response - body: - - print: ["Full text: %s", image_response.full_text_annotation.text] - - loop: - collection: image_response.full_text_annotation.pages - variable: page - body: - - loop: - collection: page.blocks - variable: block - body: - - print: ["\nBlock confidence: %s", block.confidence] - - loop: - collection: block.paragraphs - variable: par - body: - - print: ["\tParagraph confidence: %s", par.confidence] - - loop: - collection: par.words - variable: word - body: - - print: ["\t\tWord confidence: %s", word.confidence] - - loop: - collection: word.symbols - variable: symbol - body: - - print: ["\t\t\tSymbol: %s, (confidence: %s)", symbol.text, symbol.confidence] - - id: vision_batch_annotate_files - description: "Perform batch file annotation" - parameters: - defaults: - - requests[0].input_config.mime_type="application/pdf" - - requests[0].input_config.content="resources/kafka.pdf" - - requests[0].features[0].type=DOCUMENT_TEXT_DETECTION - - requests[0].pages[0]=1 - - requests[0].pages[1]=2 - - requests[0].pages[2]="-1" - attributes: - - parameter: requests[0].input_config.mime_type - description: "Supported mime_type: application/pdf, image/tiff, image/gif" - - parameter: requests[0].input_config.content - sample_argument_name: file_path - read_file: true - description: Path to local pdf file, e.g. /path/document.pdf - - parameter: requests[0].pages[0] - description: "The service can process up to 5 pages per document file. Here we specify the first, second, and last page of the document to be processed." - on_success: - - loop: - collection: $resp.responses[0].responses - variable: image_response - body: - - print: ["Full text: %s", image_response.full_text_annotation.text] - - loop: - collection: image_response.full_text_annotation.pages - variable: page - body: - - loop: - collection: page.blocks - variable: block - body: - - print: ["\nBlock confidence: %s", block.confidence] - - loop: - collection: block.paragraphs - variable: par - body: - - print: ["\tParagraph confidence: %s", par.confidence] - - loop: - collection: par.words - variable: word - body: - - print: ["\t\tWord confidence: %s", word.confidence] - - loop: - collection: word.symbols - variable: symbol - body: - - print: ["\t\t\tSymbol: %s, (confidence: %s)", symbol.text, symbol.confidence] - - name: AsyncBatchAnnotateImages - flattening: - groups: - - parameters: - - requests - - output_config - required_fields: - - requests - - output_config - retry_codes_name: idempotent - retry_params_name: default - long_running: - return_type: google.cloud.vision.v1.AsyncBatchAnnotateImagesResponse - metadata_type: google.cloud.vision.v1.OperationMetadata - initial_poll_delay_millis: 20000 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 45000 - total_poll_timeout_millis: 86400000 - timeout_millis: 60000 - samples: - standalone: - - region_tag: vision_async_batch_annotate_images - value_sets: [vision_async_batch_annotate_images] - sample_value_sets: - - id: vision_async_batch_annotate_images - title: Async Batch Image Annotation - description: "Perform async batch image annotation" - parameters: - defaults: - - requests[0].image.source.image_uri=gs://cloud-samples-data/vision/label/wakeupcat.jpg - - requests[0].features[0].type=LABEL_DETECTION - - requests[0].features[1].type=IMAGE_PROPERTIES - - output_config.gcs_destination.uri=gs://your-bucket/prefix/ - - output_config.batch_size=2 - attributes: - - parameter: requests[0].image.source.image_uri - sample_argument_name: input_image_uri - - parameter: output_config.gcs_destination.uri - sample_argument_name: output_uri - - parameter: output_config.batch_size - description: The max number of responses to output in each JSON file - on_success: - - comment: ["The output is written to GCS with the provided output_uri as prefix"] - - define: gcs_output_uri=$resp.output_config.gcs_destination.uri - - print: ["Output written to GCS with prefix: %s", gcs_output_uri] - - name: AsyncBatchAnnotateFiles - flattening: - groups: - - parameters: - - requests - required_fields: - - requests - retry_codes_name: idempotent - retry_params_name: default - long_running: - return_type: google.cloud.vision.v1.AsyncBatchAnnotateFilesResponse - metadata_type: google.cloud.vision.v1.OperationMetadata - initial_poll_delay_millis: 20000 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 45000 - total_poll_timeout_millis: 86400000 - timeout_millis: 60000 -- name: google.cloud.vision.v1.ProductSearch - collections: - - name_pattern: projects/{project}/locations/{location} - entity_name: location - - name_pattern: projects/{project}/locations/{location}/productSets/{product_set} - entity_name: product_set - - name_pattern: projects/{project}/locations/{location}/products/{product} - entity_name: product - - name_pattern: projects/{project}/locations/{location}/products/{product}/referenceImages/{reference_image} - entity_name: reference_image - retry_codes_def: - - name: idempotent - retry_codes: - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 60000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 60000 - total_timeout_millis: 600000 - methods: - - name: CreateProductSet - flattening: - groups: - - parameters: - - parent - - product_set - - product_set_id - required_fields: - - parent - - product_set - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 60000 - field_name_patterns: - parent: location - - name: ListProductSets - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - resource_name_treatment: STATIC_TYPES - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: product_sets - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - field_name_patterns: - parent: location - - name: GetProductSet - flattening: - groups: - - parameters: - - name - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - field_name_patterns: - name: product_set - - name: UpdateProductSet - flattening: - groups: - - parameters: - - product_set - - update_mask - required_fields: - - product_set - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - field_name_patterns: - product_set.name: product_set - - name: DeleteProductSet - flattening: - groups: - - parameters: - - name - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - field_name_patterns: - name: product_set - - name: CreateProduct - flattening: - groups: - - parameters: - - parent - - product - - product_id - required_fields: - - parent - - product - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 60000 - field_name_patterns: - parent: location - - name: ListProducts - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - resource_name_treatment: STATIC_TYPES - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: products - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - field_name_patterns: - parent: location - - name: GetProduct - flattening: - groups: - - parameters: - - name - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - field_name_patterns: - name: product - - name: UpdateProduct - flattening: - groups: - - parameters: - - product - - update_mask - required_fields: - - product - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - field_name_patterns: - product.name: product - - name: DeleteProduct - flattening: - groups: - - parameters: - - name - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - field_name_patterns: - name: product - - name: CreateReferenceImage - flattening: - groups: - - parameters: - - parent - - reference_image - - reference_image_id - required_fields: - - parent - - reference_image - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 60000 - field_name_patterns: - parent: product - - name: DeleteReferenceImage - flattening: - groups: - - parameters: - - name - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: reference_image - timeout_millis: 60000 - - name: ListReferenceImages - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - resource_name_treatment: STATIC_TYPES - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: reference_images - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - field_name_patterns: - parent: product - - name: GetReferenceImage - flattening: - groups: - - parameters: - - name - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: reference_image - timeout_millis: 60000 - - name: AddProductToProductSet - flattening: - groups: - - parameters: - - name - - product - required_fields: - - name - - product - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - field_name_patterns: - name: product_set - product: product - - name: RemoveProductFromProductSet - flattening: - groups: - - parameters: - - name - - product - required_fields: - - name - - product - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - field_name_patterns: - name: product_set - product: product - - name: ListProductsInProductSet - flattening: - groups: - - parameters: - - name - required_fields: - - name - resource_name_treatment: STATIC_TYPES - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: products - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - field_name_patterns: - name: product_set - - name: ImportProductSets - flattening: - groups: - - parameters: - - parent - - input_config - required_fields: - - parent - - input_config - long_running: - return_type: google.cloud.vision.v1.ImportProductSetsResponse - metadata_type: google.cloud.vision.v1.BatchOperationMetadata - initial_poll_delay_millis: 20000 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 45000 - total_poll_timeout_millis: 86400000 - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 60000 - field_name_patterns: - parent: location - - name: PurgeProducts - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - long_running: - return_type: google.protobuf.Empty - metadata_type: google.cloud.vision.v1.BatchOperationMetadata - initial_poll_delay_millis: 20000 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 45000 - total_poll_timeout_millis: 86400000 - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 60000 - field_name_patterns: - parent: location -# Force string formatting functions to be generated. -enable_string_format_functions_override: true -resource_name_generation: -- message_name: CreateProductSetRequest - field_entity_map: - parent: location -- message_name: ListProductSetsRequest - field_entity_map: - parent: location -- message_name: GetProductSetRequest - field_entity_map: - name: product_set -- message_name: UpdateProductSetRequest - field_entity_map: - product_set.name: product_set -- message_name: DeleteProductSetRequest - field_entity_map: - name: product_set -- message_name: CreateProductRequest - field_entity_map: - parent: location -- message_name: ListProductsRequest - field_entity_map: - parent: location -- message_name: GetProductRequest - field_entity_map: - name: product -- message_name: UpdateProductRequest - field_entity_map: - product.name: product -- message_name: DeleteProductRequest - field_entity_map: - name: product -- message_name: CreateReferenceImageRequest - field_entity_map: - parent: product -- message_name: DeleteReferenceImageRequest - field_entity_map: - name: reference_image -- message_name: ListReferenceImagesRequest - field_entity_map: - parent: product -- message_name: GetReferenceImageRequest - field_entity_map: - name: reference_image -- message_name: AddProductToProductSetRequest - field_entity_map: - name: product_set - product: product -- message_name: RemoveProductFromProductSetRequest - field_entity_map: - name: product_set - product: product -- message_name: ListProductsInProductSetRequest - field_entity_map: - name: product_set -- message_name: ImportProductSetsRequest - field_entity_map: - parent: location -- message_name: Product - field_entity_map: - name: product -- message_name: ProductSet - field_entity_map: - name: product_set -- message_name: PurgeProductsRequest - field_entity_map: - parent: location -- message_name: ReferenceImage - field_entity_map: - name: reference_image -- message_name: ProductSearchParams - field_entity_map: - product_set: product_set diff --git a/third_party/googleapis/google/cloud/vision/v1/vision_gapic.yaml b/third_party/googleapis/google/cloud/vision/v1/vision_gapic.yaml index 8051ff134..ef546a032 100644 --- a/third_party/googleapis/google/cloud/vision/v1/vision_gapic.yaml +++ b/third_party/googleapis/google/cloud/vision/v1/vision_gapic.yaml @@ -1,9 +1,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 language_settings: - java: - package_name: com.google.cloud.vision.v1 - release_level: GA python: package_name: google.cloud.vision_v1.gapic go: @@ -66,22 +63,22 @@ interfaces: collection: page.blocks variable: block body: - - print: ["\nBlock confidence: %s", block.confidence] + - print: ["Block confidence: %s", block.confidence] - loop: collection: block.paragraphs variable: par body: - - print: ["\tParagraph confidence: %s", par.confidence] + - print: [" Paragraph confidence: %s", par.confidence] - loop: collection: par.words variable: word body: - - print: ["\t\tWord confidence: %s", word.confidence] + - print: [" Word confidence: %s", word.confidence] - loop: collection: word.symbols variable: symbol body: - - print: ["\t\t\tSymbol: %s, (confidence: %s)", symbol.text, symbol.confidence] + - print: [" Symbol: %s, (confidence: %s)", symbol.text, symbol.confidence] - id: vision_batch_annotate_files description: "Perform batch file annotation" parameters: @@ -115,22 +112,22 @@ interfaces: collection: page.blocks variable: block body: - - print: ["\nBlock confidence: %s", block.confidence] + - print: ["Block confidence: %s", block.confidence] - loop: collection: block.paragraphs variable: par body: - - print: ["\tParagraph confidence: %s", par.confidence] + - print: [" Paragraph confidence: %s", par.confidence] - loop: collection: par.words variable: word body: - - print: ["\t\tWord confidence: %s", word.confidence] + - print: [" Word confidence: %s", word.confidence] - loop: collection: word.symbols variable: symbol body: - - print: ["\t\t\tSymbol: %s, (confidence: %s)", symbol.text, symbol.confidence] + - print: [" Symbol: %s, (confidence: %s)", symbol.text, symbol.confidence] - name: AsyncBatchAnnotateImages long_running: initial_poll_delay_millis: 20000 diff --git a/third_party/googleapis/google/cloud/vision/v1/web_detection.proto b/third_party/googleapis/google/cloud/vision/v1/web_detection.proto index 5ba864038..5d239b890 100644 --- a/third_party/googleapis/google/cloud/vision/v1/web_detection.proto +++ b/third_party/googleapis/google/cloud/vision/v1/web_detection.proto @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,7 +11,6 @@ // WITHOUT 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"; diff --git a/third_party/googleapis/google/cloud/vision/v1p1beta1/BUILD.bazel b/third_party/googleapis/google/cloud/vision/v1p1beta1/BUILD.bazel index df8eba1a7..a8d5857d7 100644 --- a/third_party/googleapis/google/cloud/vision/v1p1beta1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/vision/v1p1beta1/BUILD.bazel @@ -60,11 +60,8 @@ java_grpc_library( java_gapic_library( name = "vision_java_gapic", - src = ":vision_proto_with_info", - gapic_yaml = "vision_gapic.yaml", + srcs = [":vision_proto_with_info"], grpc_service_config = "vision_grpc_service_config.json", - package = "google.cloud.vision.v1p1beta1", - service_yaml = "//google/cloud/vision:vision_v1p1beta1.yaml", test_deps = [ ":vision_java_grpc", ], @@ -147,12 +144,10 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -226,6 +221,7 @@ nodejs_gapic_library( name = "vision_nodejs_gapic", package_name = "@google-cloud/vision", src = ":vision_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "vision_grpc_service_config.json", main_service = "vision", package = "google.cloud.vision.v1p1beta1", @@ -310,8 +306,8 @@ csharp_grpc_library( csharp_gapic_library( name = "vision_csharp_gapic", srcs = [":vision_proto_with_info"], - grpc_service_config = "vision_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "vision_grpc_service_config.json", deps = [ ":vision_csharp_grpc", ":vision_csharp_proto", diff --git a/third_party/googleapis/google/cloud/vision/v1p1beta1/image_annotator.proto b/third_party/googleapis/google/cloud/vision/v1p1beta1/image_annotator.proto index 4f5ada70d..daf6a2d27 100644 --- a/third_party/googleapis/google/cloud/vision/v1p1beta1/image_annotator.proto +++ b/third_party/googleapis/google/cloud/vision/v1p1beta1/image_annotator.proto @@ -490,6 +490,16 @@ message WebDetectionParams { bool include_geo_results = 2; } +// Parameters for text detections. This is used to control TEXT_DETECTION and +// DOCUMENT_TEXT_DETECTION features. +message TextDetectionParams { + + // By default, Cloud Vision API only includes confidence score for + // DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence + // score for TEXT_DETECTION as well. + bool enable_text_detection_confidence_score = 9; +} + // Image context and/or feature-specific parameters. message ImageContext { // lat/long rectangle that specifies the location of the image. @@ -510,6 +520,9 @@ message ImageContext { // Parameters for web detection. WebDetectionParams web_detection_params = 6; + + // Parameters for text detection and document text detection. + TextDetectionParams text_detection_params = 12; } // Request for performing Google Cloud Vision API tasks over a user-provided diff --git a/third_party/googleapis/google/cloud/vision/v1p1beta1/vision_gapic.legacy.yaml b/third_party/googleapis/google/cloud/vision/v1p1beta1/vision_gapic.legacy.yaml deleted file mode 100644 index 12cfc5cbc..000000000 --- a/third_party/googleapis/google/cloud/vision/v1p1beta1/vision_gapic.legacy.yaml +++ /dev/null @@ -1,55 +0,0 @@ -type: com.google.api.codegen.ConfigProto -config_schema_version: 1.0.0 -language_settings: - java: - package_name: com.google.cloud.vision.v1p1beta1 - python: - package_name: google.cloud.vision_v1p1beta1.gapic - go: - package_name: cloud.google.com/go/vision/apiv1p1beta1 - release_level: BETA - csharp: - package_name: Google.Cloud.Vision.V1P1Beta1 - release_level: BETA - ruby: - package_name: Google::Cloud::Vision::V1p1beta1 - php: - package_name: Google\Cloud\Vision\V1p1beta1 - nodejs: - package_name: vision.v1p1beta1 - domain_layer_location: google-cloud -interfaces: -- name: google.cloud.vision.v1p1beta1.ImageAnnotator - smoke_test: - method: BatchAnnotateImages - init_fields: - - requests[0].image.source.gcs_image_uri="gs://cloud-samples-data/vision/face_detection/celebrity_recognition/sergey.jpg" - - requests[0].features[0].type=FACE_DETECTION - collections: [] - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 60000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 60000 - total_timeout_millis: 600000 - methods: - - name: BatchAnnotateImages - flattening: - groups: - - parameters: - - requests - required_fields: - - requests - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 diff --git a/third_party/googleapis/google/cloud/vision/v1p1beta1/vision_gapic.yaml b/third_party/googleapis/google/cloud/vision/v1p1beta1/vision_gapic.yaml index af04f58b5..aaea3f3ba 100644 --- a/third_party/googleapis/google/cloud/vision/v1p1beta1/vision_gapic.yaml +++ b/third_party/googleapis/google/cloud/vision/v1p1beta1/vision_gapic.yaml @@ -1,8 +1,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 language_settings: - java: - package_name: com.google.cloud.vision.v1p1beta1 python: package_name: google.cloud.vision_v1p1beta1.gapic go: diff --git a/third_party/googleapis/google/cloud/vision/v1p2beta1/BUILD.bazel b/third_party/googleapis/google/cloud/vision/v1p2beta1/BUILD.bazel index 11427662f..00d0d31cd 100644 --- a/third_party/googleapis/google/cloud/vision/v1p2beta1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/vision/v1p2beta1/BUILD.bazel @@ -62,11 +62,9 @@ java_grpc_library( java_gapic_library( name = "vision_java_gapic", - src = ":vision_proto_with_info", + srcs = [":vision_proto_with_info"], gapic_yaml = "vision_gapic.yaml", grpc_service_config = "vision_grpc_service_config.json", - package = "google.cloud.vision.v1p2beta1", - service_yaml = "//google/cloud/vision:vision_v1p2beta1.yaml", test_deps = [ ":vision_java_grpc", ], @@ -127,9 +125,9 @@ go_gapic_library( service_yaml = "//google/cloud/vision:vision_v1p2beta1.yaml", deps = [ ":vision_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", ], ) @@ -153,12 +151,10 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -232,6 +228,7 @@ nodejs_gapic_library( name = "vision_nodejs_gapic", package_name = "@google-cloud/vision", src = ":vision_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "vision_grpc_service_config.json", main_service = "vision", package = "google.cloud.vision.v1p2beta1", @@ -316,8 +313,8 @@ csharp_grpc_library( csharp_gapic_library( name = "vision_csharp_gapic", srcs = [":vision_proto_with_info"], - grpc_service_config = "vision_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "vision_grpc_service_config.json", deps = [ ":vision_csharp_grpc", ":vision_csharp_proto", diff --git a/third_party/googleapis/google/cloud/vision/v1p2beta1/image_annotator.proto b/third_party/googleapis/google/cloud/vision/v1p2beta1/image_annotator.proto index 87ae9f2c6..eaf5abf05 100644 --- a/third_party/googleapis/google/cloud/vision/v1p2beta1/image_annotator.proto +++ b/third_party/googleapis/google/cloud/vision/v1p2beta1/image_annotator.proto @@ -521,6 +521,16 @@ message WebDetectionParams { bool include_geo_results = 2; } +// Parameters for text detections. This is used to control TEXT_DETECTION and +// DOCUMENT_TEXT_DETECTION features. +message TextDetectionParams { + + // By default, Cloud Vision API only includes confidence score for + // DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence + // score for TEXT_DETECTION as well. + bool enable_text_detection_confidence_score = 9; +} + // Image context and/or feature-specific parameters. message ImageContext { // Not used. @@ -541,6 +551,9 @@ message ImageContext { // Parameters for web detection. WebDetectionParams web_detection_params = 6; + + // Parameters for text detection and document text detection. + TextDetectionParams text_detection_params = 12; } // Request for performing Google Cloud Vision API tasks over a user-provided diff --git a/third_party/googleapis/google/cloud/vision/v1p2beta1/vision_gapic.legacy.yaml b/third_party/googleapis/google/cloud/vision/v1p2beta1/vision_gapic.legacy.yaml deleted file mode 100644 index 6d6699d79..000000000 --- a/third_party/googleapis/google/cloud/vision/v1p2beta1/vision_gapic.legacy.yaml +++ /dev/null @@ -1,72 +0,0 @@ -type: com.google.api.codegen.ConfigProto -config_schema_version: 1.0.0 -language_settings: - java: - package_name: com.google.cloud.vision.v1p2beta1 - python: - package_name: google.cloud.vision_v1p2beta1.gapic - go: - package_name: cloud.google.com/go/vision/apiv1p2beta1 - release_level: BETA - csharp: - package_name: Google.Cloud.Vision.V1P2Beta1 - release_level: BETA - ruby: - package_name: Google::Cloud::Vision::V1p2beta1 - php: - package_name: Google\Cloud\Vision\V1p2beta1 - nodejs: - package_name: vision.v1p2beta1 - domain_layer_location: google-cloud -interfaces: -- name: google.cloud.vision.v1p2beta1.ImageAnnotator - smoke_test: - method: BatchAnnotateImages - init_fields: - - requests[0].image.source.gcs_image_uri="gs://cloud-samples-data/vision/face_detection/celebrity_recognition/sergey.jpg" - - requests[0].features[0].type=FACE_DETECTION - collections: [] - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 60000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 60000 - total_timeout_millis: 600000 - methods: - - name: BatchAnnotateImages - flattening: - groups: - - parameters: - - requests - required_fields: - - requests - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - - name: AsyncBatchAnnotateFiles - flattening: - groups: - - parameters: - - requests - required_fields: - - requests - long_running: - return_type: google.cloud.vision.v1p2beta1.AsyncBatchAnnotateFilesResponse - metadata_type: google.cloud.vision.v1p2beta1.OperationMetadata - initial_poll_delay_millis: 20000 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 45000 - total_poll_timeout_millis: 86400000 - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 diff --git a/third_party/googleapis/google/cloud/vision/v1p2beta1/vision_gapic.yaml b/third_party/googleapis/google/cloud/vision/v1p2beta1/vision_gapic.yaml index bafd17727..3827923e5 100644 --- a/third_party/googleapis/google/cloud/vision/v1p2beta1/vision_gapic.yaml +++ b/third_party/googleapis/google/cloud/vision/v1p2beta1/vision_gapic.yaml @@ -1,8 +1,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 language_settings: - java: - package_name: com.google.cloud.vision.v1p2beta1 python: package_name: google.cloud.vision_v1p2beta1.gapic go: diff --git a/third_party/googleapis/google/cloud/vision/v1p3beta1/BUILD.bazel b/third_party/googleapis/google/cloud/vision/v1p3beta1/BUILD.bazel index 599f62160..6d87080ee 100644 --- a/third_party/googleapis/google/cloud/vision/v1p3beta1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/vision/v1p3beta1/BUILD.bazel @@ -67,11 +67,9 @@ java_grpc_library( java_gapic_library( name = "vision_java_gapic", - src = ":vision_proto_with_info", + srcs = [":vision_proto_with_info"], gapic_yaml = "vision_gapic.yaml", grpc_service_config = "vision_grpc_service_config.json", - package = "google.cloud.vision.v1p3beta1", - service_yaml = "//google/cloud/vision:vision_v1p3beta1.yaml", test_deps = [ ":vision_java_grpc", ], @@ -133,9 +131,9 @@ go_gapic_library( service_yaml = "//google/cloud/vision:vision_v1p3beta1.yaml", deps = [ ":vision_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", ], ) @@ -159,12 +157,10 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -238,6 +234,7 @@ nodejs_gapic_library( name = "vision_nodejs_gapic", package_name = "@google-cloud/vision", src = ":vision_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "vision_grpc_service_config.json", main_service = "vision", package = "google.cloud.vision.v1p3beta1", @@ -259,7 +256,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -275,12 +272,19 @@ ruby_grpc_library( deps = [":vision_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "vision_ruby_gapic", - src = ":vision_proto_with_info", - gapic_yaml = "vision_gapic.yaml", - package = "google.cloud.vision.v1p3beta1", - service_yaml = "//google/cloud/vision:vision_v1p3beta1.yaml", + srcs = [":vision_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-vision-v1p3beta1", + "ruby-cloud-env-prefix=VISION", + "ruby-cloud-product-url=https://cloud.google.com/vision", + "ruby-cloud-api-id=vision.googleapis.com", + "ruby-cloud-api-shortname=vision", + ], + grpc_service_config = "vision_grpc_service_config.json", + ruby_cloud_description = "Cloud Vision API allows developers to easily integrate vision detection features within applications, including image labeling, face and landmark detection, optical character recognition (OCR), and tagging of explicit content.", + ruby_cloud_title = "Cloud Vision V1p3beta1", deps = [ ":vision_ruby_grpc", ":vision_ruby_proto", @@ -322,8 +326,8 @@ csharp_grpc_library( csharp_gapic_library( name = "vision_csharp_gapic", srcs = [":vision_proto_with_info"], - grpc_service_config = "vision_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "vision_grpc_service_config.json", deps = [ ":vision_csharp_grpc", ":vision_csharp_proto", diff --git a/third_party/googleapis/google/cloud/vision/v1p3beta1/image_annotator.proto b/third_party/googleapis/google/cloud/vision/v1p3beta1/image_annotator.proto index b63aa2b25..c865ff53d 100644 --- a/third_party/googleapis/google/cloud/vision/v1p3beta1/image_annotator.proto +++ b/third_party/googleapis/google/cloud/vision/v1p3beta1/image_annotator.proto @@ -549,6 +549,16 @@ message WebDetectionParams { bool include_geo_results = 2; } +// Parameters for text detections. This is used to control TEXT_DETECTION and +// DOCUMENT_TEXT_DETECTION features. +message TextDetectionParams { + + // By default, Cloud Vision API only includes confidence score for + // DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence + // score for TEXT_DETECTION as well. + bool enable_text_detection_confidence_score = 9; +} + // Image context and/or feature-specific parameters. message ImageContext { // Not used. @@ -572,6 +582,9 @@ message ImageContext { // Parameters for web detection. WebDetectionParams web_detection_params = 6; + + // Parameters for text detection and document text detection. + TextDetectionParams text_detection_params = 12; } // Request for performing Google Cloud Vision API tasks over a user-provided diff --git a/third_party/googleapis/google/cloud/vision/v1p3beta1/vision_gapic.legacy.yaml b/third_party/googleapis/google/cloud/vision/v1p3beta1/vision_gapic.legacy.yaml deleted file mode 100644 index 4a95b19ea..000000000 --- a/third_party/googleapis/google/cloud/vision/v1p3beta1/vision_gapic.legacy.yaml +++ /dev/null @@ -1,444 +0,0 @@ -type: com.google.api.codegen.ConfigProto -config_schema_version: 1.0.0 -language_settings: - java: - package_name: com.google.cloud.vision.v1p3beta1 - python: - package_name: google.cloud.vision_v1p3beta1.gapic - go: - package_name: cloud.google.com/go/vision/apiv1p3beta1 - domain_layer_location: cloud.google.com/go/vision - csharp: - package_name: Google.Cloud.Vision.V1p3beta1 - ruby: - package_name: Google::Cloud::Vision::V1p3beta1 - php: - package_name: Google\Cloud\Vision\V1p3beta1 - nodejs: - package_name: vision.v1p3beta1 - domain_layer_location: google-cloud -interfaces: -- name: google.cloud.vision.v1p3beta1.ProductSearch - collections: - - name_pattern: projects/{project}/locations/{location} - entity_name: location - - name_pattern: projects/{project}/locations/{location}/productSets/{product_set} - entity_name: product_set - - name_pattern: projects/{project}/locations/{location}/products/{product} - entity_name: product - - name_pattern: projects/{project}/locations/{location}/products/{product}/referenceImages/{reference_image} - entity_name: reference_image - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - methods: - - name: CreateProductSet - flattening: - groups: - - parameters: - - parent - - product_set - - product_set_id - required_fields: - - parent - - product_set - - product_set_id - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: location - timeout_millis: 60000 - - name: ListProductSets - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - resource_name_treatment: STATIC_TYPES - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: product_sets - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: location - timeout_millis: 60000 - - name: GetProductSet - flattening: - groups: - - parameters: - - name - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: product_set - timeout_millis: 60000 - - name: UpdateProductSet - flattening: - groups: - - parameters: - - product_set - - update_mask - required_fields: - - product_set - - update_mask - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - product_set.name: product_set - timeout_millis: 60000 - - name: DeleteProductSet - flattening: - groups: - - parameters: - - name - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: product_set - timeout_millis: 60000 - - name: CreateProduct - flattening: - groups: - - parameters: - - parent - - product - - product_id - required_fields: - - parent - - product - - product_id - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: location - timeout_millis: 60000 - - name: ListProducts - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - resource_name_treatment: STATIC_TYPES - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: products - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: location - timeout_millis: 60000 - - name: GetProduct - flattening: - groups: - - parameters: - - name - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: product - timeout_millis: 60000 - - name: UpdateProduct - flattening: - groups: - - parameters: - - product - - update_mask - required_fields: - - product - - update_mask - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - product.name: product - timeout_millis: 60000 - - name: DeleteProduct - flattening: - groups: - - parameters: - - name - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: product - timeout_millis: 60000 - - name: CreateReferenceImage - flattening: - groups: - - parameters: - - parent - - reference_image - - reference_image_id - required_fields: - - parent - - reference_image - - reference_image_id - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: product - timeout_millis: 60000 - - name: DeleteReferenceImage - flattening: - groups: - - parameters: - - name - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: reference_image - timeout_millis: 60000 - - name: ListReferenceImages - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - resource_name_treatment: STATIC_TYPES - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: reference_images - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: product - timeout_millis: 60000 - - name: GetReferenceImage - flattening: - groups: - - parameters: - - name - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: reference_image - timeout_millis: 60000 - - name: AddProductToProductSet - flattening: - groups: - - parameters: - - name - - product - required_fields: - - name - - product - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: product_set - timeout_millis: 60000 - - name: RemoveProductFromProductSet - flattening: - groups: - - parameters: - - name - - product - required_fields: - - name - - product - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: product_set - timeout_millis: 60000 - - name: ListProductsInProductSet - flattening: - groups: - - parameters: - - name - required_fields: - - name - resource_name_treatment: STATIC_TYPES - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: products - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: product_set - timeout_millis: 60000 - - name: ImportProductSets - flattening: - groups: - - parameters: - - parent - - input_config - required_fields: - - parent - - input_config - long_running: - return_type: google.cloud.vision.v1p3beta1.ImportProductSetsResponse - metadata_type: google.cloud.vision.v1p3beta1.BatchOperationMetadata - initial_poll_delay_millis: 20000 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 45000 - total_poll_timeout_millis: 86400000 - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: location - timeout_millis: 60000 -- name: google.cloud.vision.v1p3beta1.ImageAnnotator - smoke_test: - method: BatchAnnotateImages - init_fields: - - requests[0].image.source.gcs_image_uri="gs://cloud-samples-data/vision/face_detection/celebrity_recognition/sergey.jpg" - - requests[0].features[0].type=FACE_DETECTION - collections: [] - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 60000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 60000 - total_timeout_millis: 600000 - methods: - - name: BatchAnnotateImages - flattening: - groups: - - parameters: - - requests - required_fields: - - requests - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - - name: AsyncBatchAnnotateFiles - flattening: - groups: - - parameters: - - requests - required_fields: - - requests - long_running: - return_type: google.cloud.vision.v1p3beta1.AsyncBatchAnnotateFilesResponse - metadata_type: google.cloud.vision.v1p3beta1.OperationMetadata - initial_poll_delay_millis: 20000 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 45000 - total_poll_timeout_millis: 86400000 - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 60000 -resource_name_generation: -- message_name: CreateProductSetRequest - field_entity_map: - parent: location -- message_name: ListProductSetsRequest - field_entity_map: - parent: location -- message_name: GetProductSetRequest - field_entity_map: - name: product_set -- message_name: UpdateProductSetRequest - field_entity_map: - product_set.name: product_set -- message_name: DeleteProductSetRequest - field_entity_map: - name: product_set -- message_name: CreateProductRequest - field_entity_map: - parent: location -- message_name: ListProductsRequest - field_entity_map: - parent: location -- message_name: GetProductRequest - field_entity_map: - name: product -- message_name: UpdateProductRequest - field_entity_map: - product.name: product -- message_name: DeleteProductRequest - field_entity_map: - name: product -- message_name: CreateReferenceImageRequest - field_entity_map: - parent: product -- message_name: DeleteReferenceImageRequest - field_entity_map: - name: reference_image -- message_name: ListReferenceImagesRequest - field_entity_map: - parent: product -- message_name: GetReferenceImageRequest - field_entity_map: - name: reference_image -- message_name: AddProductToProductSetRequest - field_entity_map: - name: product_set -- message_name: RemoveProductFromProductSetRequest - field_entity_map: - name: product_set -- message_name: ListProductsInProductSetRequest - field_entity_map: - name: product_set -- message_name: ImportProductSetsRequest - field_entity_map: - parent: location diff --git a/third_party/googleapis/google/cloud/vision/v1p3beta1/vision_gapic.yaml b/third_party/googleapis/google/cloud/vision/v1p3beta1/vision_gapic.yaml index 9bf33c9dd..c29ae3fff 100644 --- a/third_party/googleapis/google/cloud/vision/v1p3beta1/vision_gapic.yaml +++ b/third_party/googleapis/google/cloud/vision/v1p3beta1/vision_gapic.yaml @@ -1,8 +1,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 language_settings: - java: - package_name: com.google.cloud.vision.v1p3beta1 python: package_name: google.cloud.vision_v1p3beta1.gapic go: diff --git a/third_party/googleapis/google/cloud/vision/v1p4beta1/BUILD.bazel b/third_party/googleapis/google/cloud/vision/v1p4beta1/BUILD.bazel index fd3d31f84..883aa3990 100644 --- a/third_party/googleapis/google/cloud/vision/v1p4beta1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/vision/v1p4beta1/BUILD.bazel @@ -68,11 +68,9 @@ java_grpc_library( java_gapic_library( name = "vision_java_gapic", - src = ":vision_proto_with_info", + srcs = [":vision_proto_with_info"], gapic_yaml = "vision_gapic.yaml", grpc_service_config = "vision_grpc_service_config.json", - package = "google.cloud.vision.v1p4beta1", - service_yaml = "//google/cloud/vision:vision_v1p4beta1.yaml", test_deps = [ ":vision_java_grpc", ], @@ -134,9 +132,9 @@ go_gapic_library( service_yaml = "//google/cloud/vision:vision_v1p4beta1.yaml", deps = [ ":vision_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", ], ) @@ -160,12 +158,10 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -239,6 +235,7 @@ nodejs_gapic_library( name = "vision_nodejs_gapic", package_name = "@google-cloud/vision", src = ":vision_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "vision_grpc_service_config.json", main_service = "vision", package = "google.cloud.vision.v1p4beta1", @@ -323,8 +320,8 @@ csharp_grpc_library( csharp_gapic_library( name = "vision_csharp_gapic", srcs = [":vision_proto_with_info"], - grpc_service_config = "vision_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "vision_grpc_service_config.json", deps = [ ":vision_csharp_grpc", ":vision_csharp_proto", diff --git a/third_party/googleapis/google/cloud/vision/v1p4beta1/image_annotator.proto b/third_party/googleapis/google/cloud/vision/v1p4beta1/image_annotator.proto index 9c18cccdf..07217f398 100644 --- a/third_party/googleapis/google/cloud/vision/v1p4beta1/image_annotator.proto +++ b/third_party/googleapis/google/cloud/vision/v1p4beta1/image_annotator.proto @@ -620,6 +620,16 @@ message WebDetectionParams { bool include_geo_results = 2; } +// Parameters for text detections. This is used to control TEXT_DETECTION and +// DOCUMENT_TEXT_DETECTION features. +message TextDetectionParams { + + // By default, Cloud Vision API only includes confidence score for + // DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence + // score for TEXT_DETECTION as well. + bool enable_text_detection_confidence_score = 9; +} + // Image context and/or feature-specific parameters. message ImageContext { // Not used. @@ -646,6 +656,9 @@ message ImageContext { // Parameters for web detection. WebDetectionParams web_detection_params = 6; + + // Parameters for text detection and document text detection. + TextDetectionParams text_detection_params = 12; } // Request for performing Google Cloud Vision API tasks over a user-provided diff --git a/third_party/googleapis/google/cloud/vision/v1p4beta1/vision_gapic.legacy.yaml b/third_party/googleapis/google/cloud/vision/v1p4beta1/vision_gapic.legacy.yaml deleted file mode 100644 index 90d6f5000..000000000 --- a/third_party/googleapis/google/cloud/vision/v1p4beta1/vision_gapic.legacy.yaml +++ /dev/null @@ -1,603 +0,0 @@ -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.vision.v1p4beta1 - python: - package_name: google.cloud.vision_v1p4beta1.gapic - go: - package_name: cloud.google.com/go/vision/apiv1p4beta1 - csharp: - package_name: Google.Cloud.Vision.V1p4beta1 - ruby: - package_name: Google::Cloud::Vision::V1p4beta1 - php: - package_name: Google\Cloud\Vision\V1p4beta1 - nodejs: - package_name: vision.v1p4beta1 -# A list of API interface configurations. -interfaces: - # The fully qualified name of the API interface. -- name: google.cloud.vision.v1p4beta1.ProductSearch - # 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: - - name_pattern: projects/{project}/locations/{location} - entity_name: location - - name_pattern: projects/{project}/locations/{location}/productSets/{product_set} - entity_name: product_set - - name_pattern: projects/{project}/locations/{location}/products/{product} - entity_name: product - - name_pattern: projects/{project}/locations/{location}/products/{product}/referenceImages/{reference_image} - entity_name: reference_image - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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: CreateProductSet - flattening: - groups: - - parameters: - - parent - - product_set - - product_set_id - required_fields: - - parent - - product_set - - product_set_id - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: location - timeout_millis: 60000 - - name: ListProductSets - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - resource_name_treatment: STATIC_TYPES - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: product_sets - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: location - timeout_millis: 60000 - - name: GetProductSet - flattening: - groups: - - parameters: - - name - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: product_set - timeout_millis: 60000 - - name: UpdateProductSet - flattening: - groups: - - parameters: - - product_set - - update_mask - required_fields: - - product_set - - update_mask - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - product_set.name: product_set - timeout_millis: 60000 - - name: DeleteProductSet - flattening: - groups: - - parameters: - - name - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: product_set - timeout_millis: 60000 - - name: CreateProduct - flattening: - groups: - - parameters: - - parent - - product - - product_id - required_fields: - - parent - - product - - product_id - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: location - timeout_millis: 60000 - - name: ListProducts - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - resource_name_treatment: STATIC_TYPES - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: products - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: location - timeout_millis: 60000 - - name: GetProduct - flattening: - groups: - - parameters: - - name - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: product - timeout_millis: 60000 - - name: UpdateProduct - # params. - flattening: - groups: - - parameters: - - product - - update_mask - required_fields: - - product - - update_mask - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - product.name: product - timeout_millis: 60000 - - name: DeleteProduct - flattening: - groups: - - parameters: - - name - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: product - timeout_millis: 60000 - - name: CreateReferenceImage - flattening: - groups: - - parameters: - - parent - - reference_image - - reference_image_id - required_fields: - - parent - - reference_image - - reference_image_id - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: product - timeout_millis: 60000 - - name: DeleteReferenceImage - flattening: - groups: - - parameters: - - name - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: reference_image - timeout_millis: 60000 - - name: ListReferenceImages - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - resource_name_treatment: STATIC_TYPES - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: reference_images - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: product - timeout_millis: 60000 - - name: GetReferenceImage - flattening: - groups: - - parameters: - - name - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: reference_image - timeout_millis: 60000 - - name: AddProductToProductSet - flattening: - groups: - - parameters: - - name - - product - required_fields: - - name - - product - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: product_set - timeout_millis: 60000 - - name: RemoveProductFromProductSet - flattening: - groups: - - parameters: - - name - - product - required_fields: - - name - - product - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: product_set - timeout_millis: 60000 - - name: ListProductsInProductSet - flattening: - groups: - - parameters: - - name - required_fields: - - name - resource_name_treatment: STATIC_TYPES - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: products - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: product_set - timeout_millis: 60000 - - name: ImportProductSets - flattening: - groups: - - parameters: - - parent - - input_config - required_fields: - - parent - - input_config - long_running: - return_type: google.cloud.vision.v1p4beta1.ImportProductSetsResponse - metadata_type: google.cloud.vision.v1p4beta1.BatchOperationMetadata - initial_poll_delay_millis: 20000 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 45000 - total_poll_timeout_millis: 86400000 - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: location - timeout_millis: 60000 - # The fully qualified name of the API interface. -- name: google.cloud.vision.v1p4beta1.ImageAnnotator - # 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: - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 60000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 60000 - total_timeout_millis: 600000 - # 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: BatchAnnotateImages - flattening: - groups: - - parameters: - - requests - required_fields: - - requests - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 60000 - - name: BatchAnnotateFiles - flattening: - groups: - - parameters: - - requests - required_fields: - - requests - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 60000 - - name: AsyncBatchAnnotateImages - flattening: - groups: - - parameters: - - requests - - output_config - required_fields: - - requests - - output_config - retry_codes_name: non_idempotent - retry_params_name: default - long_running: - return_type: google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse - metadata_type: google.cloud.vision.v1p4beta1.OperationMetadata - initial_poll_delay_millis: 500 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 5000 - total_poll_timeout_millis: 300000 - timeout_millis: 60000 - - name: AsyncBatchAnnotateFiles - flattening: - groups: - - parameters: - - requests - required_fields: - - requests - long_running: - return_type: google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse - metadata_type: google.cloud.vision.v1p4beta1.OperationMetadata - initial_poll_delay_millis: 20000 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 45000 - total_poll_timeout_millis: 86400000 - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 60000 -resource_name_generation: -- message_name: CreateProductSetRequest - field_entity_map: - parent: location -- message_name: ListProductSetsRequest - field_entity_map: - parent: location -- message_name: GetProductSetRequest - field_entity_map: - name: product_set -- message_name: UpdateProductSetRequest - field_entity_map: - product_set.name: product_set -- message_name: DeleteProductSetRequest - field_entity_map: - name: product_set -- message_name: CreateProductRequest - field_entity_map: - parent: location -- message_name: ListProductsRequest - field_entity_map: - parent: location -- message_name: GetProductRequest - field_entity_map: - name: product -- message_name: UpdateProductRequest - field_entity_map: - product.name: product -- message_name: DeleteProductRequest - field_entity_map: - name: product -- message_name: CreateReferenceImageRequest - field_entity_map: - parent: product -- message_name: DeleteReferenceImageRequest - field_entity_map: - name: reference_image -- message_name: ListReferenceImagesRequest - field_entity_map: - parent: product -- message_name: GetReferenceImageRequest - field_entity_map: - name: reference_image -- message_name: AddProductToProductSetRequest - field_entity_map: - name: product_set -- message_name: RemoveProductFromProductSetRequest - field_entity_map: - name: product_set -- message_name: ListProductsInProductSetRequest - field_entity_map: - name: product_set -- message_name: ImportProductSetsRequest - field_entity_map: - parent: location diff --git a/third_party/googleapis/google/cloud/vision/v1p4beta1/vision_gapic.yaml b/third_party/googleapis/google/cloud/vision/v1p4beta1/vision_gapic.yaml index 00f5d0d26..8652842c4 100644 --- a/third_party/googleapis/google/cloud/vision/v1p4beta1/vision_gapic.yaml +++ b/third_party/googleapis/google/cloud/vision/v1p4beta1/vision_gapic.yaml @@ -2,8 +2,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 # The settings of generated code in a specific language. language_settings: - java: - package_name: com.google.cloud.vision.v1p4beta1 python: package_name: google.cloud.vision_v1p4beta1.gapic go: diff --git a/third_party/googleapis/google/cloud/visualinspection/v1beta1/BUILD.bazel b/third_party/googleapis/google/cloud/visualinspection/v1beta1/BUILD.bazel deleted file mode 100644 index 4e52defb8..000000000 --- a/third_party/googleapis/google/cloud/visualinspection/v1beta1/BUILD.bazel +++ /dev/null @@ -1,357 +0,0 @@ -# This file was automatically generated by BuildFileGenerator -# https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/bazel - -# Most of the manual changes to this file will be overwritten. -# It's **only** allowed to change the following rule attribute values: -# - names of *_gapic_assembly_* rules -# - certain parameters of *_gapic_library rules, including but not limited to: -# * extra_protoc_parameters -# * extra_protoc_file_parameters -# The complete list of preserved parameters can be found in the source code. - -############################################################################## -# Common -############################################################################## -load("@rules_proto//proto:defs.bzl", "proto_library") -load( - "@com_google_googleapis_imports//:imports.bzl", - "csharp_gapic_assembly_pkg", - "csharp_gapic_library", - "csharp_grpc_library", - "csharp_proto_library", - "go_gapic_assembly_pkg", - "go_gapic_library", - "go_proto_library", - "go_test", - "java_gapic_assembly_gradle_pkg", - "java_gapic_library", - "java_gapic_test", - "java_grpc_library", - "java_proto_library", - "moved_proto_library", - "nodejs_gapic_assembly_pkg", - "nodejs_gapic_library", - "php_gapic_assembly_pkg", - "php_gapic_library", - "php_grpc_library", - "php_proto_library", - "proto_library_with_info", - "py_gapic_assembly_pkg", - "py_gapic_library", - "py_grpc_library", - "py_proto_library", - "ruby_gapic_assembly_pkg", - "ruby_gapic_library", - "ruby_grpc_library", - "ruby_proto_library", -) - -# This is an API workspace, having public visibility by default makes perfect sense. -package(default_visibility = ["//visibility:public"]) - -proto_library( - name = "visualinspection_proto", - srcs = [ - "annotation.proto", - "annotation_set.proto", - "annotation_spec.proto", - "common.proto", - "dataset.proto", - "geometry.proto", - "image.proto", - "io.proto", - "labeling.proto", - "metrics.proto", - "model.proto", - "model_evaluation.proto", - "module.proto", - "service.proto", - "solution_artifact.proto", - ], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:resource_proto", - "//google/longrunning:operations_proto", - "//google/type:color_proto", - "@com_google_protobuf//:duration_proto", - "@com_google_protobuf//:empty_proto", - "@com_google_protobuf//:field_mask_proto", - "@com_google_protobuf//:struct_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -proto_library_with_info( - name = "visualinspection_proto_with_info", - deps = [ - ":visualinspection_proto", - "//google/cloud:common_resources_proto", - ], -) - -java_proto_library( - name = "visualinspection_java_proto", - deps = [":visualinspection_proto"], -) - -java_grpc_library( - name = "visualinspection_java_grpc", - srcs = [":visualinspection_proto"], - deps = [":visualinspection_java_proto"], -) - -java_gapic_library( - name = "visualinspection_java_gapic", - src = ":visualinspection_proto_with_info", - gapic_yaml = "visualinspection_gapic.yaml", - grpc_service_config = "visualinspection_grpc_service_config.json", - package = "google.cloud.visualinspection.v1beta1", - service_yaml = "visualinspection_v1beta1.yaml", - test_deps = [ - ":visualinspection_java_grpc", - ], - deps = [ - ":visualinspection_java_proto", - ], -) - -java_gapic_test( - name = "visualinspection_java_gapic_test_suite", - test_classes = [ - "com.google.cloud.visualinspection.v1beta1.VisualInspectionClientTest", - ], - runtime_deps = [":visualinspection_java_gapic_test"], -) - -# Open Source Packages -java_gapic_assembly_gradle_pkg( - name = "google-cloud-visualinspection-v1beta1-java", - deps = [ - ":visualinspection_java_gapic", - ":visualinspection_java_grpc", - ":visualinspection_java_proto", - ":visualinspection_proto", - ], -) - -go_proto_library( - name = "visualinspection_go_proto", - compilers = ["@io_bazel_rules_go//proto:go_grpc"], - importpath = "google.golang.org/genproto/googleapis/cloud/visualinspection/v1beta1", - protos = [":visualinspection_proto"], - deps = [ - "//google/api:annotations_go_proto", - "//google/longrunning:longrunning_go_proto", - "//google/type:color_go_proto", - ], -) - -go_gapic_library( - name = "visualinspection_go_gapic", - srcs = [":visualinspection_proto_with_info"], - grpc_service_config = "visualinspection_grpc_service_config.json", - importpath = "cloud.google.com/go/visualinspection/apiv1beta1;visualinspection", - service_yaml = "visualinspection_v1beta1.yaml", - deps = [ - ":visualinspection_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", - "//google/longrunning:longrunning_go_proto", - "@com_google_cloud_go//longrunning:go_default_library", - "@io_bazel_rules_go//proto/wkt:duration_go_proto", - "@io_bazel_rules_go//proto/wkt:struct_go_proto", - ], -) - -go_test( - name = "visualinspection_go_gapic_test", - srcs = [":visualinspection_go_gapic_srcjar_test"], - embed = [":visualinspection_go_gapic"], - importpath = "cloud.google.com/go/visualinspection/apiv1beta1", -) - -# Open Source Packages -go_gapic_assembly_pkg( - name = "gapi-cloud-visualinspection-v1beta1-go", - deps = [ - ":visualinspection_go_gapic", - ":visualinspection_go_gapic_srcjar-test.srcjar", - ":visualinspection_go_proto", - ], -) - -moved_proto_library( - name = "visualinspection_moved_proto", - srcs = [":visualinspection_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:resource_proto", - "//google/longrunning:operations_proto", - "//google/type:color_proto", - "@com_google_protobuf//:duration_proto", - "@com_google_protobuf//:empty_proto", - "@com_google_protobuf//:field_mask_proto", - "@com_google_protobuf//:struct_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -py_proto_library( - name = "visualinspection_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":visualinspection_moved_proto"], -) - -py_grpc_library( - name = "visualinspection_py_grpc", - srcs = [":visualinspection_moved_proto"], - deps = [":visualinspection_py_proto"], -) - -py_gapic_library( - name = "visualinspection_py_gapic", - src = ":visualinspection_proto_with_info", - gapic_yaml = "visualinspection_gapic.yaml", - grpc_service_config = "visualinspection_grpc_service_config.json", - package = "google.cloud.visualinspection.v1beta1", - service_yaml = "visualinspection_v1beta1.yaml", - deps = [ - ":visualinspection_py_grpc", - ":visualinspection_py_proto", - ], -) - -# Open Source Packages -py_gapic_assembly_pkg( - name = "visualinspection-v1beta1-py", - deps = [ - ":visualinspection_py_gapic", - ":visualinspection_py_grpc", - ":visualinspection_py_proto", - ], -) - -php_proto_library( - name = "visualinspection_php_proto", - deps = [":visualinspection_proto"], -) - -php_grpc_library( - name = "visualinspection_php_grpc", - srcs = [":visualinspection_proto"], - deps = [":visualinspection_php_proto"], -) - -php_gapic_library( - name = "visualinspection_php_gapic", - src = ":visualinspection_proto_with_info", - gapic_yaml = "visualinspection_gapic.yaml", - grpc_service_config = "visualinspection_grpc_service_config.json", - package = "google.cloud.visualinspection.v1beta1", - service_yaml = "visualinspection_v1beta1.yaml", - deps = [ - ":visualinspection_php_grpc", - ":visualinspection_php_proto", - ], -) - -# Open Source Packages -php_gapic_assembly_pkg( - name = "google-cloud-visualinspection-v1beta1-php", - deps = [ - ":visualinspection_php_gapic", - ":visualinspection_php_grpc", - ":visualinspection_php_proto", - ], -) - -nodejs_gapic_library( - name = "visualinspection_nodejs_gapic", - src = ":visualinspection_proto_with_info", - grpc_service_config = "visualinspection_grpc_service_config.json", - package = "google.cloud.visualinspection.v1beta1", - service_yaml = "visualinspection_v1beta1.yaml", - deps = [], -) - -nodejs_gapic_assembly_pkg( - name = "visualinspection-v1beta1-nodejs", - deps = [ - ":visualinspection_nodejs_gapic", - ":visualinspection_proto", - ], -) - -ruby_proto_library( - name = "visualinspection_ruby_proto", - deps = [":visualinspection_proto"], -) - -ruby_grpc_library( - name = "visualinspection_ruby_grpc", - srcs = [":visualinspection_proto"], - deps = [":visualinspection_ruby_proto"], -) - -ruby_gapic_library( - name = "visualinspection_ruby_gapic", - src = ":visualinspection_proto_with_info", - gapic_yaml = "visualinspection_gapic.yaml", - grpc_service_config = "visualinspection_grpc_service_config.json", - package = "google.cloud.visualinspection.v1beta1", - service_yaml = "visualinspection_v1beta1.yaml", - deps = [ - ":visualinspection_ruby_grpc", - ":visualinspection_ruby_proto", - ], -) - -# Open Source Packages -ruby_gapic_assembly_pkg( - name = "google-cloud-visualinspection-v1beta1-ruby", - deps = [ - ":visualinspection_ruby_gapic", - ":visualinspection_ruby_grpc", - ":visualinspection_ruby_proto", - ], -) - -csharp_proto_library( - name = "visualinspection_csharp_proto", - deps = [":visualinspection_proto"], -) - -csharp_grpc_library( - name = "visualinspection_csharp_grpc", - srcs = [":visualinspection_proto"], - deps = [":visualinspection_csharp_proto"], -) - -csharp_gapic_library( - name = "visualinspection_csharp_gapic", - srcs = [":visualinspection_proto_with_info"], - common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", - grpc_service_config = "visualinspection_grpc_service_config.json", - deps = [ - ":visualinspection_csharp_grpc", - ":visualinspection_csharp_proto", - ], -) - -# Open Source Packages -csharp_gapic_assembly_pkg( - name = "google-cloud-visualinspection-v1beta1-csharp", - deps = [ - ":visualinspection_csharp_gapic", - ":visualinspection_csharp_grpc", - ":visualinspection_csharp_proto", - ], -) - -############################################################################## -# C++ -############################################################################## -# Put your C++ rules here diff --git a/third_party/googleapis/google/cloud/visualinspection/v1beta1/annotation.proto b/third_party/googleapis/google/cloud/visualinspection/v1beta1/annotation.proto deleted file mode 100644 index e6b346f11..000000000 --- a/third_party/googleapis/google/cloud/visualinspection/v1beta1/annotation.proto +++ /dev/null @@ -1,179 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.visualinspection.v1beta1; - -import "google/api/annotations.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/cloud/visualinspection/v1beta1/geometry.proto"; -import "google/cloud/visualinspection/v1beta1/image.proto"; -import "google/protobuf/timestamp.proto"; - -option csharp_namespace = "Google.Cloud.VisualInspection.V1Beta1"; -option php_namespace = "Google\\Cloud\\VisualInspection\\V1beta1"; -option ruby_package = "Google::Cloud::VisualInspection::V1beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/visualinspection/v1beta1;visualinspection"; -option java_multiple_files = true; -option java_package = "com.google.cloud.visualinspection.v1beta1"; - -// Annotation is used to assign specific AnnotationSpec to a particular Image. -message Annotation { - option (google.api.resource) = { - type: "visualinspection.googleapis.com/Annotation" - pattern: "projects/{project}/locations/{location}/datasets/{dataset}/images/{image}/annotations/{annotation}" - }; - - // Source of the Annotation. - message Source { - // Source type of the Annotation. - enum SourceType { - // Unspecified source type. - SOURCE_TYPE_UNSPECIFIED = 0; - - // The Annotation is generated by a human user. - HUMAN_PRODUCED = 1; - - // The Annotation is generated by a ML model. - MACHINE_PRODUCED = 2; - - // The Annotation is generated by machine, and it has - // child Annotation with HUMAN_PRODUCED. - HUMAN_LABELED = 3; - } - - // Source type. - SourceType type = 1; - - // Resource name of the source model when the Annotation is - // MACHINE_PRODUCED. - string source_model = 2 [(google.api.resource_reference) = { - type: "visualinspection.googleapis.com/Model" - }]; - } - - // Annotation type of the Annotation. - oneof annotation_type { - // A BoundingBox Annotation. - BoundingBoxAnnotation box = 8; - - // A BoundingPoly Annotation. - BoundingPolyAnnotation polygon = 9; - - // A Classification Label Annotation. - ClassificationLabelAnnotation classification_label = 10; - - // A Mask Annotation. - MaskAnnotation mask = 11; - - // A Polyline Annotation, - PolylineAnnotation polyline = 14; - } - - // Output only. Resource name for Annotation generated by the system. - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Timestamp when this Annotation was created. - google.protobuf.Timestamp create_time = 2 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Timestamp when Annotation was last updated. - google.protobuf.Timestamp update_time = 3 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The resource ID of the AnnotationSpec that this Annotation pertains to. - // The AnnotationSpec must be in the same ancestor Dataset. - // The field could be empty for a MaskAnnotation. - string annotation_spec_id = 4; - - // Required. The resource ID of the AnnotationSet that this Annotation belongs - // to. - string annotation_set_id = 5 [(google.api.field_behavior) = REQUIRED]; - - // The resource ID of the parent Annotation. Parent annotation represents a - // region in the original Image. - string parent_annotation_id = 7; - - // Output only. Source of the Annotation. - Source source = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The labels with user-defined metadata to organize your Annotations. - // - // Label keys and values can be no longer than 64 characters - // (Unicode codepoints), can only contain lowercase letters, numeric - // characters, underscores and dashes. International characters are allowed. - // Label keys must start with a letter. - // - // See https://goo.gl/xmQnxf for more information on and examples of labels. - map labels = 13; -} - -// Detailed information for BoundingBox Annotation. -message BoundingBoxAnnotation { - // A box representing a rectangle region on the image. - // A box is supposed to have exactly four vertices in clockwise order. - // Vertices are represented in normalized format. - NormalizedBoundingPoly normalized_bounding_box = 1; - - // Output only. A confidence score between 0.0 and 1.0. A higher value - // means greater confidence about the annotation. - float confidence_score = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Detailed information for BoundingPoly Annotation. -message BoundingPolyAnnotation { - // A polygon region on the image. - // A polygon is supposed to have N vertices in clockwise order. - // Vertices are represented in normalized format. - NormalizedBoundingPoly normalized_bounding_poly = 1; - - // Output only. A confidence score between 0.0 and 1.0. A higher value - // means greater confidence that the annotation is positive. - float confidence_score = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Detailed information for ClassificationLabel Annotation. -message ClassificationLabelAnnotation { - // Output only. A confidence score between 0.0 and 1.0. A higher value - // means greater confidence that the annotation is positive. - float confidence_score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Detailed information for Mask Annotation. -message MaskAnnotation { - // Output only. One channel image which is encoded as an 8bit lossless PNG. - // The size of the image will be the same as the original image. For a - // specific pixel, darker color means less confidence in correctness of the - // cateogry in the category_meask for the corresponding pixel. Black means no - // confidence and white means full confidence. - Image confidence_mask = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Three channel image which is encoded as an 8bit lossless PNG. Each pixel in - // the image mask represents the category which the pixel in the original - // image belong to. Each color is mapped to one AnnotationSpec based on - // annotation_spec_colors. - Image category_mask = 2; -} - -// Detailed information for Polyline Annotation. -message PolylineAnnotation { - // A polyline consisting of connected straight-line segments. - NormalizedPolyline normalized_polyline = 1; - - // Output only. A confidence score between 0.0 and 1.0. A higher value - // means greater confidence that the annotation is positive. - float confidence_score = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/cloud/visualinspection/v1beta1/annotation_set.proto b/third_party/googleapis/google/cloud/visualinspection/v1beta1/annotation_set.proto deleted file mode 100644 index 4446d3520..000000000 --- a/third_party/googleapis/google/cloud/visualinspection/v1beta1/annotation_set.proto +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.visualinspection.v1beta1; - -import "google/api/annotations.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/cloud/visualinspection/v1beta1/annotation_spec.proto"; -import "google/protobuf/timestamp.proto"; -import "google/type/color.proto"; - -option csharp_namespace = "Google.Cloud.VisualInspection.V1Beta1"; -option php_namespace = "Google\\Cloud\\VisualInspection\\V1beta1"; -option ruby_package = "Google::Cloud::VisualInspection::V1beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/visualinspection/v1beta1;visualinspection"; -option java_multiple_files = true; -option java_package = "com.google.cloud.visualinspection.v1beta1"; - -// Resource of an AnnotationSet. -message AnnotationSet { - option (google.api.resource) = { - type: "visualinspection.googleapis.com/AnnotationSet" - pattern: "projects/{project}/locations/{location}/datasets/{dataset}/annotationSets/{annotation_set}" - }; - - // Type of the Annotations in this AnnotationSet. Annotations in this - // AnnotationSet must be of the same type. - oneof annotation_set_type { - // Classification label. - ClassificationLabelAnnotationSet classification_label = 3; - - // Bounding box. - BoundingBoxAnnotationSet box = 4; - - // Polygon. - PolygonAnnotationSet polygon = 5; - - // Mask. - MaskAnnotationSet mask = 6; - - // Polyline - PolylineAnnotationSet polyline = 11; - } - - // Output only. Resource name of the AnnotationSet generated by the system. - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Required. A user friendly display name for the annotationset. - // It can be up to 128 characters long and can be consist of any UTF-8 - // characters. - string display_name = 2 [(google.api.field_behavior) = REQUIRED]; - - // Output only. Timestamp when this AnnotationSet was created. - google.protobuf.Timestamp create_time = 7 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Timestamp when AnnotationSet was last updated. - google.protobuf.Timestamp update_time = 8 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The list of the AnnotationSpecs in the context of the - // AnnotationSet. All of the AnnotationSpecs that are imported or created into - // the AnnotationSet are automatically added to this list. User can manually - // add item to this list even though no annotation is associated with the - // corresponding AnnotationSpec. - repeated AnnotationSpec annotation_specs = 9 - [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// ClassificationLabel Annotation type. -message ClassificationLabelAnnotationSet { - // Whether or not the classification annotation is a multi-label - // classification. - bool multi_label = 1; -} - -// BoundingBox Annotation type. -message BoundingBoxAnnotationSet {} - -// Polygon Annotation type. -message PolygonAnnotationSet {} - -// Mask Annotation type. -message MaskAnnotationSet { - // Mapping of color to annotationspec. - // For example, - // annotation_spec_colors { - // annotation_spec_id: 1 - // red: 0 - // green: 1 - // blue:0 - // } - // it means green color maps to annotation_spec_id==1. - repeated AnnotationSpecColor annotation_spec_colors = 1; -} - -// Mapping of color to AnnotationSpec -message AnnotationSpecColor { - // AnnotationSpec Id. - string annotation_spec_id = 1; - - // RGB value represents color in the category_mask image. - // Alpha value will always be empty. - google.type.Color color = 2; -} - -// Polyline Annotation type. -message PolylineAnnotationSet {} diff --git a/third_party/googleapis/google/cloud/visualinspection/v1beta1/annotation_spec.proto b/third_party/googleapis/google/cloud/visualinspection/v1beta1/annotation_spec.proto deleted file mode 100644 index 53ca81a08..000000000 --- a/third_party/googleapis/google/cloud/visualinspection/v1beta1/annotation_spec.proto +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.visualinspection.v1beta1; - -import "google/api/annotations.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/timestamp.proto"; - -option csharp_namespace = "Google.Cloud.VisualInspection.V1Beta1"; -option php_namespace = "Google\\Cloud\\VisualInspection\\V1beta1"; -option ruby_package = "Google::Cloud::VisualInspection::V1beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/visualinspection/v1beta1;visualinspection"; -option java_multiple_files = true; -option java_package = "com.google.cloud.visualinspection.v1beta1"; - -// Resource of an AnnotationSpec. -message AnnotationSpec { - option (google.api.resource) = { - type: "visualinspection.googleapis.com/AnnotationSpec" - pattern: "projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}" - }; - - // Output only. Resource name for the AnnotationSpec generated by the system. - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Required. A user friendly display name for the AnnotationSpec. - // The name can be up to 128 characters long and can be consist of any UTF-8 - // characters. - string display_name = 2 [(google.api.field_behavior) = REQUIRED]; - - // Output only. Timestamp when this AnnotationSpec was created. - google.protobuf.Timestamp create_time = 3 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Timestamp when AnnotationSpec was last updated. - google.protobuf.Timestamp update_time = 4 - [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/cloud/visualinspection/v1beta1/common.proto b/third_party/googleapis/google/cloud/visualinspection/v1beta1/common.proto deleted file mode 100644 index 38d06cde1..000000000 --- a/third_party/googleapis/google/cloud/visualinspection/v1beta1/common.proto +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.visualinspection.v1beta1; - -import "google/api/annotations.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/timestamp.proto"; - -option csharp_namespace = "Google.Cloud.VisualInspection.V1Beta1"; -option php_namespace = "Google\\Cloud\\VisualInspection\\V1beta1"; -option ruby_package = "Google::Cloud::VisualInspection::V1beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/visualinspection/v1beta1;visualinspection"; -option java_multiple_files = true; -option java_package = "com.google.cloud.visualinspection.v1beta1"; - -// Common operation metadata across Visual Inspection AI operations. -message CommonOperationMetadata { - // Output only. Operation creation timestamp. - google.protobuf.Timestamp create_time = 1 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Operation last updated timestamp. - google.protobuf.Timestamp update_time = 2 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Resource name that this operation is directly associated with. - // For Create calls, this would be the parent resource. - // For others (Update, Delete, etc.) this would be the resource on which the - // method has been invoked. - string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/cloud/visualinspection/v1beta1/dataset.proto b/third_party/googleapis/google/cloud/visualinspection/v1beta1/dataset.proto deleted file mode 100644 index 532a197ed..000000000 --- a/third_party/googleapis/google/cloud/visualinspection/v1beta1/dataset.proto +++ /dev/null @@ -1,118 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.visualinspection.v1beta1; - -import "google/api/annotations.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/cloud/visualinspection/v1beta1/io.proto"; -import "google/protobuf/timestamp.proto"; - -option csharp_namespace = "Google.Cloud.VisualInspection.V1Beta1"; -option php_namespace = "Google\\Cloud\\VisualInspection\\V1beta1"; -option ruby_package = "Google::Cloud::VisualInspection::V1beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/visualinspection/v1beta1;visualinspection"; -option java_multiple_files = true; -option java_package = "com.google.cloud.visualinspection.v1beta1"; - -// A Dataset is a collection of Images and Annotations, which could be used to -// solve a specifc visual inspection problem. -message Dataset { - option (google.api.resource) = { - type: "visualinspection.googleapis.com/Dataset" - pattern: "projects/{project}/locations/{location}/datasets/{dataset}" - }; - - // Output only. Resource name for the Dataset generated by the system. - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Required. A user friendly display name for the Dataset. - string display_name = 2 [(google.api.field_behavior) = REQUIRED]; - - // Output only. Timestamp when this Dataset was created. - google.protobuf.Timestamp create_time = 3 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Timestamp when this Dataset was last updated. - google.protobuf.Timestamp update_time = 4 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Used to perform consistent read-modify-write updates. If not set, a blind - // "overwrite" update happens. - string etag = 5; - - // The labels with user-defined metadata to organize your dataset. - // - // Label keys and values can be no longer than 64 characters - // (Unicode codepoints), can only contain lowercase letters, numeric - // characters, underscores and dashes. International characters are allowed. - // Label keys must start with a letter. - // - // See https://goo.gl/xmQnxf for more information on and examples of labels. - map labels = 6; - - // Output only. The number of Images in the Dataset. - int64 image_count = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Describes the location from where we import data into a Dataset. -message ImportDataConfig { - // The source of the input. - oneof source { - // The Google Cloud Storage location for the input content. - // Supported file extensions: - // 1. A JSON/CSV file. - // 2. Image file. Supported extension includes jpg,jpeg,png. - GcsSource gcs_source = 1; - - // Import data from another Dataset. - DatasetSource dataset_resource = 2; - } -} - -// Describes the source Dataset from where we import data. -message DatasetSource { - // Required. Dataset resource name. It needs to be in the same project and - // location. - string dataset = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "visualinspection.googleapis.com/Dataset" - } - ]; - - // Filter on Images to import. - string image_filter = 2; - - // Filter on Annotations to import. Only Annotations on already filtered in - // Images are considered. - string annotation_filter = 3; -} - -// Describes the location to where we export data from a Dataset. -message ExportDataConfig { - // The Google Cloud Storage location where the output is to be written to. - // In the given directory a new directory will be created with name: - // export-data-- where - // timestamp is in YYYYMMDDHHMMSS format. All export - // output will be written into that directory. Inside that directory, - // annotations with the same schema will be grouped into sub directories - // which are named with the corresponding annotations' schema title. Inside - // these sub directories, a schema.yaml will be created to describe the - // output format. - GcsDestination gcs_destination = 1; -} diff --git a/third_party/googleapis/google/cloud/visualinspection/v1beta1/geometry.proto b/third_party/googleapis/google/cloud/visualinspection/v1beta1/geometry.proto deleted file mode 100644 index 4de64761b..000000000 --- a/third_party/googleapis/google/cloud/visualinspection/v1beta1/geometry.proto +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.visualinspection.v1beta1; - -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Cloud.VisualInspection.V1Beta1"; -option php_namespace = "Google\\Cloud\\VisualInspection\\V1beta1"; -option ruby_package = "Google::Cloud::VisualInspection::V1beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/visualinspection/v1beta1;visualinspection"; -option java_multiple_files = true; -option java_package = "com.google.cloud.visualinspection.v1beta1"; - -// A vertex represents a 2D point in the image. -// NOTE: the normalized vertex coordinates are relative to the original image -// and range from 0 to 1. -message NormalizedVertex { - // X coordinate. - float x = 1; - - // Y coordinate. - float y = 2; -} - -// Normalized Bounding Polygon. -message NormalizedBoundingPoly { - // The bounding polygon normalized vertices. Top left corner of the image will - // be [0, 0]. - repeated NormalizedVertex normalized_vertices = 1; -} - -// Normalized Line, which represents a curve consisting of connected -// straight-line segments. -message NormalizedPolyline { - // A sequence of vertices connected by straight lines. - repeated NormalizedVertex normalized_vertices = 1; -} diff --git a/third_party/googleapis/google/cloud/visualinspection/v1beta1/image.proto b/third_party/googleapis/google/cloud/visualinspection/v1beta1/image.proto deleted file mode 100644 index af777963d..000000000 --- a/third_party/googleapis/google/cloud/visualinspection/v1beta1/image.proto +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.visualinspection.v1beta1; - -import "google/api/annotations.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/timestamp.proto"; - -option csharp_namespace = "Google.Cloud.VisualInspection.V1Beta1"; -option php_namespace = "Google\\Cloud\\VisualInspection\\V1beta1"; -option ruby_package = "Google::Cloud::VisualInspection::V1beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/visualinspection/v1beta1;visualinspection"; -option java_multiple_files = true; -option java_package = "com.google.cloud.visualinspection.v1beta1"; - -// A piece of data in a Dataset. -message Image { - option (google.api.resource) = { - type: "visualinspection.googleapis.com/Image" - pattern: "projects/{project}/locations/{location}/datasets/{dataset}/images/{image}" - }; - - // Output only. Resource name of the Image generated by the system. - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Timestamp when this Image was created. - google.protobuf.Timestamp create_time = 2 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The labels with user-defined metadata to organize your Images. - // - // Label keys and values can be no longer than 64 characters - // (Unicode codepoints), can only contain lowercase letters, numeric - // characters, underscores and dashes. International characters are allowed. - // Label keys must start with a letter. - // - // See https://goo.gl/xmQnxf for more information on and examples of labels. - map labels = 3; - - // Output only. Source Google Cloud Storage uri for the Image. - string source_gcs_uri = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Encoded image bytes. This field is only set when used to - // contain image predictions such as segmentation image masks by online - // prediction. - bytes image_bytes = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/cloud/visualinspection/v1beta1/io.proto b/third_party/googleapis/google/cloud/visualinspection/v1beta1/io.proto deleted file mode 100644 index 967095883..000000000 --- a/third_party/googleapis/google/cloud/visualinspection/v1beta1/io.proto +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.visualinspection.v1beta1; - -import "google/api/annotations.proto"; -import "google/api/field_behavior.proto"; - -option csharp_namespace = "Google.Cloud.VisualInspection.V1Beta1"; -option php_namespace = "Google\\Cloud\\VisualInspection\\V1beta1"; -option ruby_package = "Google::Cloud::VisualInspection::V1beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/visualinspection/v1beta1;visualinspection"; -option java_multiple_files = true; -option java_package = "com.google.cloud.visualinspection.v1beta1"; - -// The Google Cloud Storage location for the input content. -message GcsSource { - // Required. Reference to a Google Cloud Storage path. - repeated string uris = 1 [(google.api.field_behavior) = REQUIRED]; -} - -// The Google Cloud Storage location where the output is to be written to. -message GcsDestination { - // Required. Google Cloud Storage URI to output directory. If the uri doesn't - // end with - // '/', a '/' will be automatically appended. The directory is created if it - // doesn't exist. - string output_uri_prefix = 1 [(google.api.field_behavior) = REQUIRED]; -} diff --git a/third_party/googleapis/google/cloud/visualinspection/v1beta1/labeling.proto b/third_party/googleapis/google/cloud/visualinspection/v1beta1/labeling.proto deleted file mode 100644 index c5233e8bd..000000000 --- a/third_party/googleapis/google/cloud/visualinspection/v1beta1/labeling.proto +++ /dev/null @@ -1,204 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.visualinspection.v1beta1; - -import "google/api/annotations.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/timestamp.proto"; - -option csharp_namespace = "Google.Cloud.VisualInspection.V1Beta1"; -option php_namespace = "Google\\Cloud\\VisualInspection\\V1beta1"; -option ruby_package = "Google::Cloud::VisualInspection::V1beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/visualinspection/v1beta1;visualinspection"; -option java_multiple_files = true; -option java_package = "com.google.cloud.visualinspection.v1beta1"; - -// Labeling job to trigger human labeling for adding annotations to images. -message LabelingJob { - option (google.api.resource) = { - type: "visualinspection.googleapis.com/LabelingJob" - pattern: "projects/{project}/locations/{location}/labelingJobs/{labeling_job}" - }; - - // Describes the state of a labeling job. - enum JobState { - // The job state is unspecified. - JOB_STATE_UNSPECIFIED = 0; - - // The job has been just created or resumed and processing has not yet - // begun. - JOB_STATE_QUEUED = 1; - - // The service is preparing to run the job. - JOB_STATE_PENDING = 2; - - // The job is in progress. - JOB_STATE_RUNNING = 3; - - // The job completed successfully. - JOB_STATE_SUCCEEDED = 4; - - // The job failed. - JOB_STATE_FAILED = 5; - - // The job is being cancelled. From this state the job may only go to - // either JOB_STATE_SUCCEEDED, JOB_STATE_FAILED or JOB_STATE_CANCELLED. - JOB_STATE_CANCELLING = 6; - - // The job has been cancelled. - JOB_STATE_CANCELLED = 7; - - // The job has been stopped, and can be resumed. - JOB_STATE_PAUSED = 8; - } - - oneof labeling_config { - // Optional. Labeling Config for `AnomalyDetection` module. - AnomalyDetectionLabelingConfig anomaly_detection_labeling_config = 3 - [(google.api.field_behavior) = OPTIONAL]; - } - - // Output only. Resource name of the LabelingJob. - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Required. The user-defined name of the LabelingJob. - // The name can be up to 128 characters long and can be consist of any UTF-8 - // characters. - // Display name of a LabelingJob. - string display_name = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. The resource name of an existing AnnotationSet for all - // annotations created through this labeling job. The corresponding - // AnnotationSet needs to match the `labeling_config`, e.g., - // AnomalyDetectionLabelingConfig needs AnnotationSet with - // `classification_label` specified. Format: - // - // projects/{project}/locations/{location}/datasets/{dataset}/annotationSets/{annotation_set}. - string output_annotation_set = 4 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "visualinspection.googleapis.com/AnnotationSet" - } - ]; - - // Required. The Google Cloud Storage location of the instruction PDF. This - // pdf is shared with labelers, and provides detailed description on how to - // label. - string instruction_uri = 5 [(google.api.field_behavior) = REQUIRED]; - - // Required. The full resource name of annotation specs that will be used for - // labeling. Format - // - // `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}`. - repeated string annotation_specs = 6 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "visualinspection.googleapis.com/AnnotationSpec" - } - ]; - - // Optional. The SpecialistPools' resource names associated with this job. - repeated string specialist_pools = 7 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The active learning config, e.g., maximum number of items to - // label. - ActiveLearningConfig active_learning_config = 8 - [(google.api.field_behavior) = OPTIONAL]; - - // Output only. The detailed state of the job. - JobState state = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Current labeling job progress percentage scaled in interval - // [0, 100], indicating the percentage of DataItems that has been finished. - int32 labeling_progress = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Timestamp when this LabelingJob was created. - google.protobuf.Timestamp create_time = 11 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Timestamp when this LabelingJob was updated most recently. - google.protobuf.Timestamp update_time = 12 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Optional. The labels with user-defined metadata to organize your - // LabelingJob. - // - // Label keys and values can be no longer than 64 characters - // (Unicode codepoints), can only contain lowercase letters, numeric - // characters, underscores and dashes. International characters are allowed. - // Label keys must start with a letter. - // - // See https://goo.gl/xmQnxf for more information on and examples of labels. - map labels = 13 [(google.api.field_behavior) = OPTIONAL]; -} - -// Configuration of active learning. -message ActiveLearningConfig { - // Max number of human labeled data items. - int64 max_item_count = 1; -} - -// Labeling configuration of anomaly detection. -message AnomalyDetectionLabelingConfig { - // Required. The bounding box annotation set for anomaly detection module. - // Format: - // - // projects/{project}/locations/{location}/datasets/{dataset}/annotationSets/{annotation_set}. - repeated string input_bounding_box_annotation_sets = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "visualinspection.googleapis.com/AnnotationSet" - } - ]; - - // A list of AnnotationSpecs to subselect Annotations in - // `input_bounding_box_annotation_sets`. If specified, only Annotations which - // have an AnnotationSpec in the list will be used for labeling. Format: - // - // `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}`. - repeated string annotation_spec_allowlist = 2 - [(google.api.resource_reference) = { - type: "visualinspection.googleapis.com/AnnotationSpec" - }]; -} - -// SpecialistPool represents customers' own workforce to work on their data -// labeling jobs. It includes a group of specialist managers who are responsible -// for managing the labelers in this pool as well as customers' data labeling -// jobs associated with this pool. -// Customers create specialist pool as well as start data labeling jobs on -// Cloud, managers and labelers work with the jobs using CrowdCompute console. -message SpecialistPool { - option (google.api.resource) = { - type: "visualinspection.googleapis.com/SpecialistPool" - pattern: "projects/{project}/locations/{location}/specialistPools/{specialist_pool}" - }; - - // Output only. Resource name for the SpecialistPool. - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Required. A user friendly display name for the Dataset. - string display_name = 2 [(google.api.field_behavior) = REQUIRED]; - - // Output only. The number of Specialists in this SpecialistPool. - int32 specialist_managers_count = 3 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The email addresses of the specialists in the SpecialistPool. - repeated string specialist_manager_emails = 4; -} diff --git a/third_party/googleapis/google/cloud/visualinspection/v1beta1/metrics.proto b/third_party/googleapis/google/cloud/visualinspection/v1beta1/metrics.proto deleted file mode 100644 index 0e9a55e40..000000000 --- a/third_party/googleapis/google/cloud/visualinspection/v1beta1/metrics.proto +++ /dev/null @@ -1,159 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.visualinspection.v1beta1; - -import "google/api/annotations.proto"; -import "google/api/field_behavior.proto"; - -option csharp_namespace = "Google.Cloud.VisualInspection.V1Beta1"; -option php_namespace = "Google\\Cloud\\VisualInspection\\V1beta1"; -option ruby_package = "Google::Cloud::VisualInspection::V1beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/visualinspection/v1beta1;visualinspection"; -option java_multiple_files = true; -option java_package = "com.google.cloud.visualinspection.v1beta1"; - -// All metrics for the solution. -message Metrics { - // Output only. Metrics for the solution at different slices. - map metrics_slice = 1 - [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Metrics at a particular slice. -// A slice can be "pixel" level, "image" level, "component" level, "unit" level, -// and/or "product" level depending on the solution and the input data. -message MetricsSlice { - // Model metrics at a specific threshold. - message ConfidenceLevelModelMetrics { - // Output only. Model metrics. - ModelMetrics model_metrics = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Confidence threshold in the range [0, 1]. - float confidence_threshold = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Pixel level confidence threshold in the range [0, 1]. - float pixel_confidence_threshold = 3 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Cluster distance threshold in the range [0, 1] normalized by - // the diagonal length of the image. - float cluster_distance_threshold = 4 - [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // Output only. The AnnotationSpec which this MetricSlice refers to. It is - // empty if this MetricSlice aggregates across AnnotationSpecs. - string annotation_spec = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The AnnotationSpec display name which this MetricSlice refers - // to. It is empty if this MetricSlice aggregates across AnnotationSpecs. - string display_name = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The number of examples used to create this evaluation metrics - // instance. - int32 evaluated_example_count = 10 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Model metrics across confidence thresholds. - repeated ConfidenceLevelModelMetrics confidence_level_model_metrics = 5 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Average model metrics. - ModelMetrics average_model_metrics = 7 - [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Model metrics which can vary depending on the model. These are not assumed to -// refer to defect states in particular. -message ModelMetrics { - // Output only. The false negative rate in the range [0, 1]. This is the rate - // with which the model incorrectly classifies examples as negative when they - // are positive. This is consistent with the following definition: - // - // https: - // //en.wikipedia.org/wiki/False_positives_ - // // and_false_negatives#False_positive_and_false_negative_rates. - float false_negative_rate = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The false positive rate in the range [0, 1]. This is the rate - // with which the model incorrectly classifies examples as positive when they - // are negative. This is consistent with the following definition: - // - // https: - // //en.wikipedia.org/wiki/False_positives_ - // // and_false_negatives#False_positive_and_false_negative_rates. - float false_positive_rate = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The precision in the range [0, 1]. Precision measures the - // ratio of correctly classified examples by the model against all the - // predictions made by the model. Please see - // https://en.wikipedia.org/wiki/Precision_and_recall for its definition. - float precision = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The recall in the range [0, 1]. Recall measures the ratio of - // correctly predicted labels by the model against all true examples of that - // label. Please see https://en.wikipedia.org/wiki/Precision_and_recall for - // its definition. - float recall = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The Intersection over union (IOU) in the range [0, 1]. IOU - // measures the proportion of label regions that are common between ground - // truth and model predictions versus their union. Please see - // https://en.wikipedia.org/wiki/Jaccard_index for its definition. - float iou = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The Dice similarity coefficient in the range [0, 1]. Dice - // similarity coefficient is similar to IOU except that the common label - // region is weighted twice in the calculation. Please see its definition - // here: https://en.wikipedia.org/wiki/S%C3%B8rensen%E2%80%93Dice_coefficient - float dice_similarity_coefficient = 6 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Confusion matrix for the classifications. - // Only present for aggregated metrics. - ConfusionMatrix confusion_matrix = 7 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The average precision in the range [0, 1]. - float average_precision = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Confusion matrix across different class labels (if present). -message ConfusionMatrix { - // Individual row for the confusion matrix. - message Row { - // Output only. Count of items in a "slice" classified at a particular - // class_label in the ground truth versus that classified by the solution. - repeated int64 count = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // Output only. Counts of items across slices. - // For example, rows[i][j].count indicate the count for class_labels[i] as - // present in ground truth versus class_labels[j] as predicted by the model. - // The number of rows is the same as individual number of "counts" in a Row as - // well as the number of class_labels. So if the number of class_labels is n, - // then rows count is n as well as each rows.count has also count n. - repeated Row rows = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Class labels as the rows/columns of the confusion matrix. - repeated string class_labels = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Class AnnotationSpecs as the rows/columns of the confusion - // matrix. - repeated string annotation_specs = 3 - [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/cloud/visualinspection/v1beta1/model.proto b/third_party/googleapis/google/cloud/visualinspection/v1beta1/model.proto deleted file mode 100644 index fd519deec..000000000 --- a/third_party/googleapis/google/cloud/visualinspection/v1beta1/model.proto +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.visualinspection.v1beta1; - -import "google/api/annotations.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/struct.proto"; -import "google/protobuf/timestamp.proto"; - -option csharp_namespace = "Google.Cloud.VisualInspection.V1Beta1"; -option php_namespace = "Google\\Cloud\\VisualInspection\\V1beta1"; -option ruby_package = "Google::Cloud::VisualInspection::V1beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/visualinspection/v1beta1;visualinspection"; -option java_multiple_files = true; -option java_package = "com.google.cloud.visualinspection.v1beta1"; - -// A Model is the trained artifact of a Module which makes predictions. -message Model { - option (google.api.resource) = { - type: "visualinspection.googleapis.com/Model" - pattern: "projects/{project}/locations/{location}/solutions/{solution}/modules/{module}/models/{model}" - }; - - // Output only. Resource name for Model generated by the system. - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Timestamp when the system started to create this Model. - // The difference between this field and create_time includes time spent on - // preprocessing, training, and evaluation. - google.protobuf.Timestamp create_request_time = 2 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Timestamp when this Model was trained and evaluated. - google.protobuf.Timestamp create_time = 3 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Timestamp when this Model was last updated. - google.protobuf.Timestamp update_time = 4 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Evaluations for this Model. - repeated string evaluation_ids = 5 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. A copy of the parent Module's configuration at the time of - // Model creation to provide a record of the training process configuration. - google.protobuf.Struct config = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The labels with user-defined metadata to organize your Models. - // - // Label keys and values can be no longer than 64 characters - // (Unicode codepoints), can only contain lowercase letters, numeric - // characters, underscores and dashes. International characters are allowed. - // Label keys must start with a letter. - // - // See https://goo.gl/xmQnxf for more information on and examples of labels. - map labels = 7; -} diff --git a/third_party/googleapis/google/cloud/visualinspection/v1beta1/model_evaluation.proto b/third_party/googleapis/google/cloud/visualinspection/v1beta1/model_evaluation.proto deleted file mode 100644 index 34a26611a..000000000 --- a/third_party/googleapis/google/cloud/visualinspection/v1beta1/model_evaluation.proto +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.visualinspection.v1beta1; - -import "google/api/annotations.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/cloud/visualinspection/v1beta1/metrics.proto"; - -option csharp_namespace = "Google.Cloud.VisualInspection.V1Beta1"; -option php_namespace = "Google\\Cloud\\VisualInspection\\V1beta1"; -option ruby_package = "Google::Cloud::VisualInspection::V1beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/visualinspection/v1beta1;visualinspection"; -option java_multiple_files = true; -option java_package = "com.google.cloud.visualinspection.v1beta1"; - -// ModelEvaluation for visual inspection solutions. -message ModelEvaluation { - option (google.api.resource) = { - type: "visualinspection.googleapis.com/ModelEvaluation" - pattern: "projects/{project}/locations/{location}/solutions/{solution}/modules/{module}/models/{model}/modelEvaluations/{model_evaluation}" - }; - - // Output only. Resource name for ModelEvaluation generated by the system. - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Deprecated, use metrics_map instead. - // Metrics for this evaluation. - Metrics metrics = 2 [deprecated = true]; - - // Output only. Deprecated, use eval_annotation_sets_map instead. - // The AnnotationSets containing output Annotations on the eval set. These - // will be readonly AnnotationSets belonging to the Solution's Dataset and - // have the same lifetime as the Model to which it belongs. - repeated string eval_annotation_sets = 3 - [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Map of the Metrics for this model evaluation. The key is a - // name for the Metrics entry. Individual Modules define which Metrics they - // support and typically there will be a map entry for every output the Module - // produces. - map metrics_map = 4 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Map of the evaluation annotation sets for this model. The keys - // are the name of module outputs annotation fields and the values are the - // annotation sets ids containing output Annotations on the eval set. These - // will be readonly AnnotationSets belonging to the Solution's Dataset and - // have the same lifetime as the Model to which it belongs. - map eval_annotation_sets_map = 5 - [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/cloud/visualinspection/v1beta1/module.proto b/third_party/googleapis/google/cloud/visualinspection/v1beta1/module.proto deleted file mode 100644 index 4a335b85e..000000000 --- a/third_party/googleapis/google/cloud/visualinspection/v1beta1/module.proto +++ /dev/null @@ -1,259 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.visualinspection.v1beta1; - -import "google/api/annotations.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/struct.proto"; -import "google/protobuf/timestamp.proto"; - -option csharp_namespace = "Google.Cloud.VisualInspection.V1Beta1"; -option php_namespace = "Google\\Cloud\\VisualInspection\\V1beta1"; -option ruby_package = "Google::Cloud::VisualInspection::V1beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/visualinspection/v1beta1;visualinspection"; -option java_multiple_files = true; -option java_package = "com.google.cloud.visualinspection.v1beta1"; - -// A Module applies a computer vision algorithm to a subproblem of a visual -// inspection task. -message Module { - option (google.api.resource) = { - type: "visualinspection.googleapis.com/Module" - pattern: "projects/{project}/locations/{location}/solutions/{solution}/modules/{module}" - }; - - // The type of the module. - oneof type { - // Anomaly detection. - AnomalyDetectionModule anomaly_detection = 8; - - // Sparse alignment localization. - SparseAlignmentLocalizationModule sparse_alignment_localization = 9; - - // Localization refinement. - LocalizationRefinementModule localization_refinement = 10; - - // Object detection. - ObjectDetectionModule object_detection = 11; - - // Segmentation. - SegmentationModule segmentation = 12; - - // Classification. - ClassificationModule classification = 13; - } - - // Output only. Resource name for Module generated by the system. - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Timestamp when this Module was created. - google.protobuf.Timestamp create_time = 2 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Timestamp when Module was last updated. - google.protobuf.Timestamp update_time = 3 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Required. A user friendly display name for the Module. - // The name can be up to 128 characters long and can consist of any UTF-8 - // characters. - string display_name = 4 [(google.api.field_behavior) = REQUIRED]; - - // A description for this Module. - string description = 5; - - // Configuration for this Module. Each Module may define its own - // configuration options. - google.protobuf.Struct config = 6; - - // The labels with user-defined metadata to organize your Modules. - // - // Label keys and values can be no longer than 64 characters - // (Unicode codepoints), can only contain lowercase letters, numeric - // characters, underscores and dashes. International characters are allowed. - // Label keys must start with a letter. - // - // See https://goo.gl/xmQnxf for more information on and examples of labels. - map labels = 7; -} - -// Detailed input and output information of an anomaly detection Module. -message AnomalyDetectionModule { - // Input regions within which to detect anomalies. If not provided, the full - // image is used as input. - repeated AnnotationInput query_regions = 1; - - // Required. Classification labels to train the model. - repeated AnnotationInput classification_labels = 2 - [(google.api.field_behavior) = REQUIRED]; - - // Required. Classification predictions by the model. - repeated AnnotationOutput classification_predictions = 3 - [(google.api.field_behavior) = REQUIRED]; -} - -// Detailed input and output information of a sparse alignment localization -// module. -message SparseAlignmentLocalizationModule { - // Regions within the query image to align. Multiple regions could be aligned - // per Image. - repeated AnnotationInput query_regions = 1; - - // Regions within the template image to transfer to the query image. - repeated AnnotationInput target_regions = 2; - - // Regions that define the portion of the template image from which to extract - // local features. These have both include/exclude Annotations, distinguished - // by labels on the AnnotationSpec. - repeated AnnotationInput inspection_regions = 3; - - // The target regions transformed by the module. - repeated AnnotationOutput target_region_predictions = 4; - - // The inspection regions transformed by the module. - repeated AnnotationOutput inspection_region_predictions = 5; -} - -// Detailed input and output information of a localization refinment module. -message LocalizationRefinementModule { - // Regions within the query image to align. Multiple regions could - // be aligned per Image. - repeated AnnotationInput query_regions = 1; - - // Regions within the template image to transfer to the query image. - repeated AnnotationInput target_regions = 2; - - // Regions which customize the search process for each target region. - repeated AnnotationInput local_search_regions = 3; - - // The target regions transformed by the module. - repeated AnnotationOutput target_region_predictions = 4; - - // The inspection regions transformed by the module. - repeated AnnotationOutput local_search_region_predictions = 5; -} - -// Detailed input and output information of an object detection module. -message ObjectDetectionModule { - // Regions to search on for the query image, anything outside of these regions - // will not be considered from the module. These regions are defined in the - // template image and applied "as is" to each query image. If query_regions - // are not specified, the full image will be used as a single query region. - repeated AnnotationInput query_regions = 1; - - // Regions within the template image to transfer to the query image. - repeated AnnotationInput target_regions = 2; - - // Required. The regions for each object to learn the representation of. - repeated AnnotationInput object_regions = 3 - [(google.api.field_behavior) = REQUIRED]; - - // The target regions transformed by the module. - repeated AnnotationOutput target_region_predictions = 4; - - // Required. The objects regions detected by the module. - repeated AnnotationOutput object_region_predictions = 5 - [(google.api.field_behavior) = REQUIRED]; -} - -// Detailed input and output information of an image segmentation module. -message SegmentationModule { - // Regions to search on for the query image, anything outside of these regions - // will not be considered from the module. The query images can be defined in - // the template image or predicted per image from other modules. If - // query_regions are not specified, the full image will be used as a single - // query region. - repeated AnnotationInput query_regions = 1; - - // Regions within the template image to transfer to the query image. - repeated AnnotationInput inspection_regions = 2; - - // Required. The segmentation regions to learn the representation of. - repeated AnnotationInput segmentation_regions = 3 - [(google.api.field_behavior) = REQUIRED]; - - // The segmentation predictions in inspection regions by the module. - repeated AnnotationOutput inspection_region_predictions = 4; - - // Required. The segmentation predictions by the module. - repeated AnnotationOutput segmentation_predictions = 5 - [(google.api.field_behavior) = REQUIRED]; -} - -// Detailed input and output information of an image classification module. -message ClassificationModule { - // Regions to search on for the query image, anything outside of these regions - // will not be considered from the module. The query images can be defined in - // the template image or predicted per image from other modules. If - // query_regions are not specified, the full image will be used as a single - // query region. - repeated AnnotationInput query_regions = 1; - - // Regions within the template image to transfer to the query image. - repeated AnnotationInput inspection_regions = 2; - - // Required. Classification labels to train the module. - repeated AnnotationInput classification_labels = 3 - [(google.api.field_behavior) = REQUIRED]; - - // Classification predictions in inspection regions by the module. - repeated AnnotationOutput inspection_region_predictions = 4; - - // Required. Classification predictions by the module. - repeated AnnotationOutput classification_predictions = 5 - [(google.api.field_behavior) = REQUIRED]; -} - -// Specifies the source of Annotations for a Module input. -message AnnotationInput { - // Required. The AnnotationSet ID containing input Annotations. The expected - // AnnotationType of this AnnotationSet will depend on the Module. - string annotation_set_id = 1 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; - - // Required. The AnnotationSet containing input Annotations. The expected - // AnnotationType of this AnnotationSet will depend on the Module. - string annotation_set = 3 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "visualinspection.googleapis.com/AnnotationSet" - } - ]; - - // A list of AnnotationSpecs to subselect Annotations in this AnnotationSet. - // If specified, only Annotations which have an AnnotationSpec in the list are - // used as input to the Module. - repeated string annotation_spec_allowlist = 2; -} - -// Specifies the output for Annotations produced by a Module. -message AnnotationOutput { - // Required. The AnnotationSet ID containing output Annotations. The expected - // AnnotationType of this AnnotationSet will depend on the Module. - string annotation_set_id = 1 - [deprecated = true, (google.api.field_behavior) = REQUIRED]; - - // Required. The AnnotationSet containing output Annotations. The expected - // AnnotationType of this AnnotationSet will depend on the Module. - string annotation_set = 2 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "visualinspection.googleapis.com/AnnotationSet" - } - ]; -} diff --git a/third_party/googleapis/google/cloud/visualinspection/v1beta1/service.proto b/third_party/googleapis/google/cloud/visualinspection/v1beta1/service.proto deleted file mode 100644 index b6e305375..000000000 --- a/third_party/googleapis/google/cloud/visualinspection/v1beta1/service.proto +++ /dev/null @@ -1,1909 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.visualinspection.v1beta1; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/cloud/visualinspection/v1beta1/annotation.proto"; -import "google/cloud/visualinspection/v1beta1/annotation_set.proto"; -import "google/cloud/visualinspection/v1beta1/annotation_spec.proto"; -import "google/cloud/visualinspection/v1beta1/common.proto"; -import "google/cloud/visualinspection/v1beta1/dataset.proto"; -import "google/cloud/visualinspection/v1beta1/geometry.proto"; -import "google/cloud/visualinspection/v1beta1/image.proto"; -import "google/cloud/visualinspection/v1beta1/io.proto"; -import "google/cloud/visualinspection/v1beta1/labeling.proto"; -import "google/cloud/visualinspection/v1beta1/model.proto"; -import "google/cloud/visualinspection/v1beta1/model_evaluation.proto"; -import "google/cloud/visualinspection/v1beta1/module.proto"; -import "google/cloud/visualinspection/v1beta1/solution_artifact.proto"; -import "google/longrunning/operations.proto"; -import "google/protobuf/duration.proto"; -import "google/protobuf/empty.proto"; -import "google/protobuf/field_mask.proto"; -import "google/protobuf/struct.proto"; -import "google/protobuf/timestamp.proto"; - -option csharp_namespace = "Google.Cloud.VisualInspection.V1Beta1"; -option php_namespace = "Google\\Cloud\\VisualInspection\\V1beta1"; -option ruby_package = "Google::Cloud::VisualInspection::V1beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/visualinspection/v1beta1;visualinspection"; -option java_multiple_files = true; -option java_package = "com.google.cloud.visualinspection.v1beta1"; - -// Visual Inspection service enables users to train and manage solutions -// for visually inspecting parts. -service VisualInspection { - option (google.api.default_host) = "visualinspection.googleapis.com"; - option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; - - // Creates a solution. - rpc CreateSolution(CreateSolutionRequest) - returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1beta1/{parent=projects/*/locations/*}/solutions" - body: "solution" - }; - option (google.api.method_signature) = "parent,solution"; - option (google.longrunning.operation_info) = { - response_type: "Solution" - metadata_type: "SolutionOperationMetadata" - }; - } - - // Lists solutions. - rpc ListSolutions(ListSolutionsRequest) returns (ListSolutionsResponse) { - option (google.api.http) = { - get: "/v1beta1/{parent=projects/*/locations/*}/solutions" - }; - option (google.api.method_signature) = "parent"; - } - - // Gets a solution. - rpc GetSolution(GetSolutionRequest) returns (Solution) { - option (google.api.http) = { - get: "/v1beta1/{name=projects/*/locations/*/solutions/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Creates a SolutionArtifact. - rpc CreateSolutionArtifact(CreateSolutionArtifactRequest) - returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1beta1/{parent=projects/*/locations/*/solutions/*}/solutionArtifacts" - body: "solution_artifact" - }; - option (google.api.method_signature) = "parent,solution_artifact"; - option (google.longrunning.operation_info) = { - response_type: "SolutionArtifact" - metadata_type: "CreateSolutionArtifactOperationMetadata" - }; - } - - // Lists SolutionArtifacts in a Solution. - rpc ListSolutionArtifacts(ListSolutionArtifactsRequest) - returns (ListSolutionArtifactsResponse) { - option (google.api.http) = { - get: "/v1beta1/{parent=projects/*/locations/*/solutions/*}/solutionArtifacts" - }; - option (google.api.method_signature) = "parent"; - } - - // Gets a SolutionArtifact. - rpc GetSolutionArtifact(GetSolutionArtifactRequest) - returns (SolutionArtifact) { - option (google.api.http) = { - get: "/v1beta1/{name=projects/*/locations/*/solutions/*/solutionArtifacts/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Deletes a SolutionArtifact. Only the subject SolutionArtifact is affected - // by this operation. The SolutionArtifact's Models remain unchanged. - rpc DeleteSolutionArtifact(DeleteSolutionArtifactRequest) - returns (google.longrunning.Operation) { - option (google.api.http) = { - delete: "/v1beta1/{name=projects/*/locations/*/solutions/*/solutionArtifacts/*}" - }; - option (google.api.method_signature) = "name"; - option (google.longrunning.operation_info) = { - response_type: "google.protobuf.Empty" - metadata_type: "DeleteSolutionArtifactOperationMetadata" - }; - } - - // Updates a SolutionArtifact. - rpc UpdateSolutionArtifact(UpdateSolutionArtifactRequest) - returns (SolutionArtifact) { - option (google.api.http) = { - patch: "/v1beta1/{solution_artifact.name=projects/*/locations/*/solutions/*/solutionArtifacts/*}" - body: "solution_artifact" - }; - option (google.api.method_signature) = "solution_artifact,update_mask"; - } - - // Perform batch prediction on a given SolutionArtifact. - rpc BatchPredict(BatchPredictRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1beta1/{solution_artifact=projects/*/locations/*/solutions/*/solutionArtifacts/*}:batchPredict" - body: "*" - }; - option (google.api.method_signature) = - "solution_artifact, input_uri, output_gcs_dir"; - option (google.longrunning.operation_info) = { - response_type: "BatchPredictResponse" - metadata_type: "BatchPredictOperationMetadata" - }; - } - - // Gets a Dataset. - rpc GetDataset(GetDatasetRequest) returns (Dataset) { - option (google.api.http) = { - get: "/v1beta1/{name=projects/*/locations/*/datasets/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Lists Datasets in a Project. - rpc ListDatasets(ListDatasetsRequest) returns (ListDatasetsResponse) { - option (google.api.http) = { - get: "/v1beta1/{parent=projects/*/locations/*}/datasets" - }; - option (google.api.method_signature) = "parent"; - } - - // Deletes a Dataset. - rpc DeleteDataset(DeleteDatasetRequest) - returns (google.longrunning.Operation) { - option (google.api.http) = { - delete: "/v1beta1/{name=projects/*/locations/*/datasets/*}" - }; - option (google.api.method_signature) = "name"; - option (google.longrunning.operation_info) = { - response_type: "google.protobuf.Empty" - metadata_type: "DeleteDatasetOperationMetadata" - }; - } - - // Imports data to a Dataset. - rpc ImportData(ImportDataRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1beta1/{name=projects/*/locations/*/datasets/*}:importData" - body: "*" - }; - option (google.api.method_signature) = "name,import_configs"; - option (google.longrunning.operation_info) = { - response_type: "ImportDataResponse" - metadata_type: "ImportDataOperationMetadata" - }; - } - - // Exports data from a Dataset. - rpc ExportData(ExportDataRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1beta1/{name=projects/*/locations/*/datasets/*}:exportData" - body: "*" - }; - option (google.api.method_signature) = "name,export_config"; - option (google.longrunning.operation_info) = { - response_type: "ExportDataResponse" - metadata_type: "ExportDataOperationMetadata" - }; - } - - // Gets an Image. - // ImportData will create images. Therefore CreateImage is omitted. - rpc GetImage(GetImageRequest) returns (Image) { - option (google.api.http) = { - get: "/v1beta1/{name=projects/*/locations/*/datasets/*/images/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Lists Images in a Dataset. - rpc ListImages(ListImagesRequest) returns (ListImagesResponse) { - option (google.api.http) = { - get: "/v1beta1/{parent=projects/*/locations/*/datasets/*}/images" - }; - option (google.api.method_signature) = "parent"; - } - - // Creates an AnnotationSet. - rpc CreateAnnotationSet(CreateAnnotationSetRequest) returns (AnnotationSet) { - option (google.api.http) = { - post: "/v1beta1/{parent=projects/*/locations/*/datasets/*}/annotationSets" - body: "annotation_set" - }; - option (google.api.method_signature) = "parent,annotation_set"; - } - - // Lists AnnotationSets in a Dataset. - rpc ListAnnotationSets(ListAnnotationSetsRequest) - returns (ListAnnotationSetsResponse) { - option (google.api.http) = { - get: "/v1beta1/{parent=projects/*/locations/*/datasets/*}/annotationSets" - }; - option (google.api.method_signature) = "parent"; - } - - // Creates an AnnotationSpec. - rpc CreateAnnotationSpec(CreateAnnotationSpecRequest) - returns (AnnotationSpec) { - option (google.api.http) = { - post: "/v1beta1/{parent=projects/*/locations/*/datasets/*}/annotationSpecs" - body: "annotation_spec" - }; - option (google.api.method_signature) = "parent,annotation_spec"; - } - - // Lists AnnotationSpecs in a dataset. - rpc ListAnnotationSpecs(ListAnnotationSpecsRequest) - returns (ListAnnotationSpecsResponse) { - option (google.api.http) = { - get: "/v1beta1/{parent=projects/*/locations/*/datasets/*}/annotationSpecs" - }; - option (google.api.method_signature) = "parent"; - } - - // Lists Annotations on an Image. - rpc ListAnnotations(ListAnnotationsRequest) - returns (ListAnnotationsResponse) { - option (google.api.http) = { - get: "/v1beta1/{parent=projects/*/locations/*/datasets/*/images/*}/annotations" - }; - option (google.api.method_signature) = "parent"; - } - - // Creates a Module. - rpc CreateModule(CreateModuleRequest) returns (Module) { - option (google.api.http) = { - post: "/v1beta1/{parent=projects/*/locations/*/solutions/*}/modules" - body: "module" - }; - option (google.api.method_signature) = "parent,module"; - } - - // Lists Modules in a Solution. - rpc ListModules(ListModulesRequest) returns (ListModulesResponse) { - option (google.api.http) = { - get: "/v1beta1/{parent=projects/*/locations/*/solutions/*}/modules" - }; - option (google.api.method_signature) = "parent"; - } - - // Gets a Module. - rpc GetModule(GetModuleRequest) returns (Module) { - option (google.api.http) = { - get: "/v1beta1/{name=projects/*/locations/*/solutions/*/modules/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Deletes a Module. Only the subject Module is affected by this operation. - // The Module's input and output AnnotationSets and any connected Modules - // remain unchanged. - rpc DeleteModule(DeleteModuleRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - delete: "/v1beta1/{name=projects/*/locations/*/solutions/*/modules/*}" - }; - option (google.api.method_signature) = "name"; - option (google.longrunning.operation_info) = { - response_type: "google.protobuf.Empty" - metadata_type: "DeleteModuleOperationMetadata" - }; - } - - // Updates a Module. - rpc UpdateModule(UpdateModuleRequest) returns (Module) { - option (google.api.http) = { - patch: "/v1beta1/{module.name=projects/*/locations/*/solutions/*/modules/*}" - body: "module" - }; - option (google.api.method_signature) = "module,update_mask"; - } - - // Creates a Model. - rpc CreateModel(CreateModelRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1beta1/{parent=projects/*/locations/*/solutions/*/modules/*}/models" - body: "model" - }; - option (google.api.method_signature) = "parent,model"; - option (google.longrunning.operation_info) = { - response_type: "Model" - metadata_type: "CreateModelOperationMetadata" - }; - } - - // Lists Models for a Module. - rpc ListModels(ListModelsRequest) returns (ListModelsResponse) { - option (google.api.http) = { - get: "/v1beta1/{parent=projects/*/locations/*/solutions/*/modules/*}/models" - }; - option (google.api.method_signature) = "parent"; - } - - // Gets a Model. - rpc GetModel(GetModelRequest) returns (Model) { - option (google.api.http) = { - get: "/v1beta1/{name=projects/*/locations/*/solutions/*/modules/*/models/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Deletes a Model. - rpc DeleteModel(DeleteModelRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - delete: "/v1beta1/{name=projects/*/locations/*/solutions/*/modules/*/models/*}" - }; - option (google.api.method_signature) = "name"; - option (google.longrunning.operation_info) = { - response_type: "google.protobuf.Empty" - metadata_type: "DeleteModelOperationMetadata" - }; - } - - // Updates a Model. - rpc UpdateModel(UpdateModelRequest) returns (Model) { - option (google.api.http) = { - patch: "/v1beta1/{model.name=projects/*/locations/*/solutions/*/modules/*/models/*}" - body: "model" - }; - option (google.api.method_signature) = "model,update_mask"; - } - - // Lists ModelEvaluations for a Model. For Beta, we will have only one - // evaluation produced when the Model is created. - rpc ListModelEvaluations(ListModelEvaluationsRequest) - returns (ListModelEvaluationsResponse) { - option (google.api.http) = { - get: "/v1beta1/{parent=projects/*/locations/*/solutions/*/modules/*/models/*}/modelEvaluations" - }; - option (google.api.method_signature) = "parent"; - } - - // Gets a ModelEvaluation. - rpc GetModelEvaluation(GetModelEvaluationRequest) returns (ModelEvaluation) { - option (google.api.http) = { - get: "/v1beta1/{name=projects/*/locations/*/solutions/*/modules/*/models/*/modelEvaluations/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Writes a Model's predictions to the parent Module's output - // AnnotationSets. - rpc WritePredictions(WritePredictionsRequest) - returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1beta1/{model=projects/*/locations/*/solutions/*/modules/*/models/*}:writePredictions" - body: "*" - }; - option (google.api.method_signature) = "model"; - option (google.longrunning.operation_info) = { - response_type: "WritePredictionsResponse" - metadata_type: "WritePredictionsOperationMetadata" - }; - } - - // Creates a SpecialistPool. - rpc CreateSpecialistPool(CreateSpecialistPoolRequest) - returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1beta1/{parent=projects/*/locations/*}/specialistPools" - body: "specialist_pool" - }; - option (google.api.method_signature) = "parent,specialist_pool"; - option (google.longrunning.operation_info) = { - response_type: "SpecialistPool" - metadata_type: "CreateSpecialistPoolOperationMetadata" - }; - } - - // Gets a SpecialistPool. - rpc GetSpecialistPool(GetSpecialistPoolRequest) returns (SpecialistPool) { - option (google.api.http) = { - get: "/v1beta1/{name=projects/*/locations/*/specialistPools/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Updates a SpecialistPool. - rpc UpdateSpecialistPool(UpdateSpecialistPoolRequest) - returns (google.longrunning.Operation) { - option (google.api.http) = { - patch: "/v1beta1/{specialist_pool.name=projects/*/locations/*/specialistPools/*}" - body: "specialist_pool" - }; - option (google.api.method_signature) = "specialist_pool,update_mask"; - option (google.longrunning.operation_info) = { - response_type: "SpecialistPool" - metadata_type: "UpdateSpecialistPoolOperationMetadata" - }; - } - - // Lists SpecialistPools. - rpc ListSpecialistPools(ListSpecialistPoolsRequest) - returns (ListSpecialistPoolsResponse) { - option (google.api.http) = { - get: "/v1beta1/{parent=projects/*/locations/*}/specialistPools" - }; - option (google.api.method_signature) = "parent"; - } - - // Deletes a SpecialistPool. - rpc DeleteSpecialistPool(DeleteSpecialistPoolRequest) - returns (google.longrunning.Operation) { - option (google.api.http) = { - delete: "/v1beta1/{name=projects/*/locations/*/specialistPools/*}" - }; - option (google.api.method_signature) = "name"; - option (google.longrunning.operation_info) = { - response_type: "google.protobuf.Empty" - metadata_type: "DeleteSpecialistPoolOperationMetadata" - }; - } - - // Creates a LabelingJob. - rpc CreateLabelingJob(CreateLabelingJobRequest) returns (LabelingJob) { - option (google.api.http) = { - post: "/v1beta1/{parent=projects/*/locations/*}/labelingJobs" - body: "labeling_job" - }; - option (google.api.method_signature) = "parent,labeling_job"; - } - - // Gets a LabelingJob. - rpc GetLabelingJob(GetLabelingJobRequest) returns (LabelingJob) { - option (google.api.http) = { - get: "/v1beta1/{name=projects/*/locations/*/labelingJobs/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Lists LabelingJobs. - rpc ListLabelingJobs(ListLabelingJobsRequest) - returns (ListLabelingJobsResponse) { - option (google.api.http) = { - get: "/v1beta1/{parent=projects/*/locations/*}/labelingJobs" - }; - option (google.api.method_signature) = "parent"; - } - - // Deletes a LabelingJob. - rpc DeleteLabelingJob(DeleteLabelingJobRequest) - returns (google.longrunning.Operation) { - option (google.api.http) = { - delete: "/v1beta1/{name=projects/*/locations/*/labelingJobs/*}" - }; - option (google.api.method_signature) = "name"; - option (google.longrunning.operation_info) = { - response_type: "google.protobuf.Empty" - metadata_type: "DeleteLabelingJobOperationMetadata" - }; - } - - // Cancels a LabelingJob. Success of cancellation is not guaranteed. - rpc CancelLabelingJob(CancelLabelingJobRequest) - returns (google.protobuf.Empty) { - option (google.api.http) = { - post: "/v1beta1/{name=projects/*/locations/*/labelingJobs/*}:cancel" - body: "*" - }; - option (google.api.method_signature) = "name"; - } -} - -// A solution is a set of models and algorithms combined together that will -// solve a specific visual inspection problem. -message Solution { - option (google.api.resource) = { - type: "visualinspection.googleapis.com/Solution" - pattern: "projects/{project}/locations/{location}/solutions/{solution}" - }; - - // Configuration specific to training parameters. - message TrainingConfig { - // Optional. Training time for each individual artifacts. - google.protobuf.Duration training_duration = 1 - [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Structured object containing parameters to fine tune the - // training behavior. - google.protobuf.Struct parameters = 2 - [(google.api.field_behavior) = OPTIONAL]; - } - - // A predefined SolutionType. - message SolutionType { - // Options for an assembly inspection Solution. - message AssemblyInspectionOptions {} - - // Options for cosmetic inspection Solution. - message CosmeticInspectionOptions {} - - // Options for a custom inspection Solution. - message CustomInspectionOptions {} - - // The predefined type of this Solution. - oneof type { - // Predefined solution for assembly inspection. - AssemblyInspectionOptions assembly_inspection = 1; - - // Predefined solution for cosmetic inspection. - CosmeticInspectionOptions cosmetic_inspection = 2; - - // Customized solution for inspection. - CustomInspectionOptions custom_inspection = 3; - } - } - - // A unique name for the solution. - // This is an alphanumeric identifier generated by the system - // ([A-Z][A-Z0-9]+). - string name = 1; - - // A user friendly display name for the solution. - string display_name = 2; - - // Data input file specifies the input dataset for creating (training) - // the solution. This must be a GCS URI path i.e. of the form - // gs:///. The data file format is JSONL with each - // line following the format below (also see examples for Board Inspection - // and Cosmetic Inspection below). - // ``` - // { - // # Note: Only needed for Board inspection. - // "golden_images": [ - // { - // "template_image_gcs_uri": "GCS path to template image.", - // "inspection_area_and_regions": [ - // { - // "inspection_area": { - // "inspection_area_id": "", - // "region_name": "", - // "component_id": "", - // "component_name": "" - // "other_keywords": { - // "keyword1": "value1", - // "keyword2": "value2" - // } - // } - // ] - // } - // ] - // } - // ] - // # finetune_from_solution_id can be omitted. - // "finetune_from_solution_id": "", - // - // - // "image_and_annotations": [ - // { - // "image_gcs_uri": "", - // "region_id": "", - // "inspection_state": - // - // "INSPECTION_STATE_UNLABELED|INSPECTION_STATE_NON_DEFECTIVE|INSPECTION_STATE_DEFECTIVE", - // "defect_label_name": "defect label name." - // } - // ], - // # Note: Only needed for Cosmetic Inspection. - // "localized_region": [ - // { - // "bounding_poly": { - // "normalized_vertices": [ - // { "x": 0.1, "y": 0.2 }, - // { "x": 0.1, "y": 0.2 }, - // { "x": 0.1, "y": 0.2 }, - // { "x": 0.1, "y": 0.2 }, - // ] - // }, - // "region_metadata": { - // "region_id": "", - // "region_name": "", - // "component_id": "", - // "component_name": "" - // "other_keywords": { - // "keyword1": "value1", - // "keyword2": "value2" - // } - // } - // } - // ], - // # Note: Only needed for Cosmetic Inspection. - // "segmentation_annotation": { - // "mask": { - // "mask": { - // "gcs_uri": "", - // "class_map": { - // 1: "scratch", - // 2: "glue" - // } - // } - // } - // } - // } - // ] - // } - // - // ``` - // Here's an example for Board Inspection. - // { - // # Note: Only needed for Board inspection. - // "golden_images": [ - // { - // "template_image_gcs_uri": "GCS path to template image.", - // "inspection_area_and_regions": [ - // { - // "inspection_area": { - // "inspection_area_id": "", - // "region_name": "", - // "component_id": "", - // "component_name": "" - // "other_keywords": { - // "keyword1": "value1", - // "keyword2": "value2" - // } - // } - // ] - // } - // ] - // } - // ] - // # finetune_from_solution_id can be omitted. - // "finetune_from_solution_id": "", - // - // - // "image_and_annotations": [ - // { - // "image_gcs_uri": "", - // "region_id": "", - // "inspection_state": - // - // "INSPECTION_STATE_UNLABELED|INSPECTION_STATE_NON_DEFECTIVE|INSPECTION_STATE_DEFECTIVE", - // "defect_label_name": "defect label name." - // } - // ], - // } - // ] - // } - // - // ``` - // Here's an example for Cosmetic Inspection. - // /``` - // { - // # finetune_from_solution_id can be omitted. - // "finetune_from_solution_id": "", - // "image_and_annotations": [ - // { - // "image_gcs_uri": "", - // "region_name": "", - // "component_id": "", - // "component_name": "" - // "other_keywords": { - // "keyword1": "value1", - // "keyword2": "value2" - // } - // } - // } - // ], - // # Note: Only needed for Cosmetic Inspection. - // "segmentation_annotation": { - // "mask": { - // "mask": { - // "gcs_uri": "", - // "class_map": { - // 1: "scratch", - // 2: "glue" - // } - // } - // } - // } - // } - // ] - // } - // ``` - string gcs_data_input_uri = 3; - - // Optional. Type of the solution. Valid values are: - // * `assembly`: Solution for finding defects in PCB like components. This - // is the default value. - // * `cosmetic`: Solution for finding cosmetic defects on a device. - // Examples include finding scratches or dust particles on - // a device. - string type = 7 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Solution creation train configuration. - TrainingConfig training_config = 9 [(google.api.field_behavior) = OPTIONAL]; - - // Output only. Timestamp when the all the models in the solution were trained - // and evaluated. - google.protobuf.Timestamp create_time = 5 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Timestamp when this solution was last updated. - google.protobuf.Timestamp update_time = 6 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Optional. A description for this Solution. - string description = 10 [(google.api.field_behavior) = OPTIONAL]; - - // Required. The Dataset of this Solution. - string dataset_id = 11 [(google.api.field_behavior) = REQUIRED]; - - // Optional. The labels with user-defined metadata to organize your Solutions. - // - // Label keys and values can be no longer than 64 characters - // (Unicode codepoints), can only contain lowercase letters, numeric - // characters, underscores and dashes. International characters are allowed. - // Label keys must start with a letter. - // - // See https://goo.gl/xmQnxf for more information on and examples of labels. - map labels = 12 [(google.api.field_behavior) = OPTIONAL]; - - // Required. The SolutionType of this Solution. This restricts the allowable - // Modules and the linkage between them according to predefined solution - // schema. - SolutionType solution_type = 13 [(google.api.field_behavior) = REQUIRED]; -} - -// Solution operation metadata. -message SolutionOperationMetadata { - // Output only. Common operation metadata. - CommonOperationMetadata common_operation_metadata = 1 - [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Request for creating a solution. -message CreateSolutionRequest { - // Required. Parent identifier. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "visualinspection.googleapis.com/Solution" - } - ]; - - // Required. Solution to create. - Solution solution = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request method for listing solutions. -message ListSolutionsRequest { - // Required. Parent identifier. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "visualinspection.googleapis.com/Solution" - } - ]; - - // The maximum number of solutions to return. The service may return fewer - // than this value. If unspecified, at moast 50 solutions will be returned. - // The maximum value is 100; values above 100 will be coerced to 100. - int32 page_size = 2; - - // A page token, received from a previous `ListSolutions` call. - // Provide this to retrieve the subsequent page. - // - // When paginating, all other parameters provided to `ListSolutions` must - // match the call that provided the page token. - string page_token = 3; - - // The standard list filter. - string filter = 4; -} - -// Response method for listing solutions. -message ListSolutionsResponse { - // The solutions for this project. - repeated Solution solutions = 1; - - // A token that can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} - -// For requesting details about a particular solution. -message GetSolutionRequest { - // Required. Solution identifier. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "visualinspection.googleapis.com/Solution" - } - ]; -} - -// Export solution metadata to distinguish that the operation is an export -// solution operation. -message ExportSolutionOperationMetadata { - // Output only. Common operation metadata. - CommonOperationMetadata common_operation_metadata = 1 - [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Deploy solution metadata to distinguish that the operation is an export -// solution operation. -message DeploySolutionOperationMetadata { - // Output only. Common operation metadata. - CommonOperationMetadata common_operation_metadata = 1 - [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Undeploy solution metadata to distinguish that the operation is an export -// solution operation. -message UndeploySolutionOperationMetadata { - // Output only. Common operation metadata. - CommonOperationMetadata common_operation_metadata = 1 - [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Request for creating a SolutionArtifact. -message CreateSolutionArtifactRequest { - // Required. Parent identifier. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "visualinspection.googleapis.com/SolutionArtifact" - } - ]; - - // Required. SolutionArtifact to create. - SolutionArtifact solution_artifact = 2 - [(google.api.field_behavior) = REQUIRED]; -} - -// CreateSolutionArtifact operation metadata. -message CreateSolutionArtifactOperationMetadata { - // Output only. Common operation metadata. - CommonOperationMetadata common_operation_metadata = 1 - [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Request for listing SolutionArtifacts. -message ListSolutionArtifactsRequest { - // Required. Parent identifier. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "visualinspection.googleapis.com/SolutionArtifact" - } - ]; - - // The standard list filter. - string filter = 2; - - // The maximum number of SolutionArtifacts to return. The service may return - // fewer than this value. If unspecified, at most 20 Modules will be - // returned. The maximum value is 100; values above 100 will be coerced to - // 100. - int32 page_size = 3; - - // A page token, received from a previous `ListSolutionArtifacts` call. - // Provide this to retrieve the subsequent page. - // - // When paginating, all other parameters provided to `ListSolutionArtifacts` - // must match the call that provided the page token. - string page_token = 4; -} - -// Response for ListSolutionArtifacts. -message ListSolutionArtifactsResponse { - // The SolutionArtifact. - repeated SolutionArtifact solution_artifacts = 1; - - // A token that can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} - -// Request for getting a SolutionArtifact. -message GetSolutionArtifactRequest { - // Required. SolutionArtifact identifier. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "visualinspection.googleapis.com/SolutionArtifact" - } - ]; -} - -// Request for deleting a SolutionArtifact. -message DeleteSolutionArtifactRequest { - // Required. SolutionArtifact identifier. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "visualinspection.googleapis.com/SolutionArtifact" - } - ]; -} - -// Operation metadata for DeleteSolutionArtifact. -message DeleteSolutionArtifactOperationMetadata { - // Output only. Common operation metadata. - CommonOperationMetadata common_operation_metadata = 1 - [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Request for updating a SolutionArtifact. -message UpdateSolutionArtifactRequest { - // Required. The SolutionArtifact which replaces the resource on the server. - SolutionArtifact solution_artifact = 1 - [(google.api.field_behavior) = REQUIRED]; - - // Required. The update mask applies to the resource. - // For the `FieldMask` definition, see - // - // [FieldMask](https: - // //developers.google.com/protocol-buffers - // // /docs/reference/google.protobuf#fieldmask). - google.protobuf.FieldMask update_mask = 2 - [(google.api.field_behavior) = REQUIRED]; -} - -// CreateDataset operation metadata. -message CreateDatasetOperationMetadata { - // Output only. Common operation metadata. - CommonOperationMetadata common_operation_metadata = 1 - [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Request for getting a Dataset. -message GetDatasetRequest { - // Required. Dataset identifier. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "visualinspection.googleapis.com/Dataset" - } - ]; -} - -// Request for deleting a Dataset. -message DeleteDatasetRequest { - // Required. Dataset identifier. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "visualinspection.googleapis.com/Dataset" - } - ]; -} - -// Request for listing Datasets. -message ListDatasetsRequest { - // Required. Parent identifier. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "visualinspection.googleapis.com/Dataset" - } - ]; - - // The standard list filter. - string filter = 2; - - // The maximum number of Dataset to return. The service may return fewer - // than this value. If unspecified, at most 20 Datasets will be returned. - // The maximum value is 100; values above 100 will be coerced to 100. - int32 page_size = 3; - - // A page token, received from a previous `ListDatasets` call. - // Provide this to retrieve the subsequent page. - // - // When paginating, all other parameters provided to `ListDatasets` must - // match the call that provided the page token. - string page_token = 4; -} - -// Response for ListDatasets. -message ListDatasetsResponse { - // The datasets for this project. - repeated Dataset datasets = 1; - - // A token that can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} - -// Request for importing a Dataset. -message ImportDataRequest { - // Required. Dataset identifier. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "visualinspection.googleapis.com/Dataset" - } - ]; - - // Required. The desired input locations. The contents of all input locations - // will be imported in one batch. - repeated ImportDataConfig import_configs = 2 - [(google.api.field_behavior) = REQUIRED]; -} - -// ImportData operation metadata. -message ImportDataOperationMetadata { - // Output only. Common operation metadata. - CommonOperationMetadata common_operation_metadata = 1 - [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Request for exporting a Dataset. -message ExportDataRequest { - // Required. Dataset identifier. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "visualinspection.googleapis.com/Dataset" - } - ]; - - // Required. The desired output location. - ExportDataConfig export_config = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// ExportData operation metadata. -message ExportDataOperationMetadata { - // Output only. Common operation metadata. - CommonOperationMetadata common_operation_metadata = 1 - [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// DeleteDataset operation metadata. -message DeleteDatasetOperationMetadata { - // Output only. Common operation metadata. - CommonOperationMetadata common_operation_metadata = 1 - [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Request for getting an Image. -message GetImageRequest { - // Required. Image identifier. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "visualinspection.googleapis.com/Image" - } - ]; -} - -// Request for listing Images. -message ListImagesRequest { - // Required. Parent identifier. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "visualinspection.googleapis.com/Image" - } - ]; - - // The standard list filter. - string filter = 2; - - // The maximum number of images to return. The service may return fewer - // than this value. If unspecified, at most 20 images will be returned. - // The maximum value is 200; values above 200 will be coerced to 100. - int32 page_size = 3; - - // A page token, received from a previous `ListImages` call. - // Provide this to retrieve the subsequent page. - // - // When paginating, all other parameters provided to `ListImages` must - // match the call that provided the page token. - string page_token = 4; -} - -// Response for ListImages. -message ListImagesResponse { - // The images for this dataset. - repeated Image images = 1; - - // A token that can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} - -// Request for creating a AnnotationSet. -message CreateAnnotationSetRequest { - // Required. Parent identifier. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "visualinspection.googleapis.com/AnnotationSet" - } - ]; - - // Required. AnnotationSet to create. - AnnotationSet annotation_set = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request for listing AnnotationSets. -message ListAnnotationSetsRequest { - // Required. Parent identifier. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "visualinspection.googleapis.com/AnnotationSet" - } - ]; - - // The standard list filter. - string filter = 2; - - // The maximum number of AnnotationSets to return. The service may return - // fewer than this value. If unspecified, at most 20 AnnotationSets will be - // returned. The maximum value is 100; values above 100 will be coerced to - // 100. - int32 page_size = 3; - - // A page token, received from a previous `ListAnnotationSets` call. - // Provide this to retrieve the subsequent page. - // - // When paginating, all other parameters provided to `ListAnnotationSets` must - // match the call that provided the page token. - string page_token = 4; -} - -// Response for ListAnnotationSets. -message ListAnnotationSetsResponse { - // The annotationsets for this project. - repeated AnnotationSet annotation_sets = 1; - - // A token that can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} - -// Operation metadata for DeleteAnnotationSet. -message DeleteAnnotationSetOperationMetadata { - // Output only. Common operation metadata. - CommonOperationMetadata common_operation_metadata = 1 - [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Request for creating a AnnotationSpec. -message CreateAnnotationSpecRequest { - // Required. Parent identifier. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "visualinspection.googleapis.com/AnnotationSpec" - } - ]; - - // Required. AnnotationSpec to create. - AnnotationSpec annotation_spec = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request for listing AnnotationSpecs. -message ListAnnotationSpecsRequest { - // Required. Parent identifier. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "visualinspection.googleapis.com/AnnotationSpec" - } - ]; - - // The standard list filter. - string filter = 2; - - // The maximum number of AnnotationSpecs to return. The service may return - // fewer than this value. If unspecified, at most 20 AnnotationSpecs will be - // returned. The maximum value is 100; values above 100 will be coerced to - // 100. - int32 page_size = 3; - - // A page token, received from a previous `ListAnnotationSpecs` call. - // Provide this to retrieve the subsequent page. - // - // When paginating, all other parameters provided to `ListAnnotationSpecs` - // must match the call that provided the page token. - string page_token = 4; -} - -// Response for ListAnnotationSpecs. -message ListAnnotationSpecsResponse { - // The annotationspecs for this project. - repeated AnnotationSpec annotation_specs = 1; - - // A token that can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} - -// Operation Metadata for DeleteAnnotationSpec. -message DeleteAnnotationSpecOperationMetadata { - // Output only. Common operation metadata. - CommonOperationMetadata common_operation_metadata = 1 - [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Request for listing Annotations. -message ListAnnotationsRequest { - // Required. Parent identifier. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "visualinspection.googleapis.com/Annotation" - } - ]; - - // The standard list filter. - string filter = 2; - - // The maximum number of annotations to return. The service may return - // fewer than this value. If unspecified, at most 20 annotations will be - // returned. The maximum value is 100; values above 100 will be coerced to - // 100. - int32 page_size = 3; - - // A page token, received from a previous `ListAnnotations` call. - // Provide this to retrieve the subsequent page. - // - // When paginating, all other parameters provided to `ListAnnotations` - // must match the call that provided the page token. - string page_token = 4; -} - -// Response for ListAnnotations. -message ListAnnotationsResponse { - // The annotations for this image. - repeated Annotation annotations = 1; - - // A token that can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} - -// Operation metadata for DeleteAnnotation. -message DeleteAnnotationOperationMetadata { - // Output only. Common operation metadata. - CommonOperationMetadata common_operation_metadata = 1 - [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Request for creating a Module. -message CreateModuleRequest { - // Required. Parent identifier. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "visualinspection.googleapis.com/Module" - } - ]; - - // Required. Module to create. - Module module = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request for listing Modules. -message ListModulesRequest { - // Required. Parent identifier. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "visualinspection.googleapis.com/Module" - } - ]; - - // The standard list filter. - string filter = 2; - - // The maximum number of Modules to return. The service may return - // fewer than this value. If unspecified, at most 20 Modules will be - // returned. The maximum value is 100; values above 100 will be coerced to - // 100. - int32 page_size = 3; - - // A page token, received from a previous `ListModules` call. - // Provide this to retrieve the subsequent page. - // - // When paginating, all other parameters provided to `ListModules` - // must match the call that provided the page token. - string page_token = 4; -} - -// Response for ListModules. -message ListModulesResponse { - // The Modules. - repeated Module modules = 1; - - // A token that can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} - -// Request for getting a Module. -message GetModuleRequest { - // Required. Module identifier. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "visualinspection.googleapis.com/Module" - } - ]; -} - -// Request for deleting a Module. -message DeleteModuleRequest { - // Required. Module identifier. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "visualinspection.googleapis.com/Module" - } - ]; -} - -// Operation metadata for DeleteModule. -message DeleteModuleOperationMetadata { - // Output only. Common operation metadata. - CommonOperationMetadata common_operation_metadata = 1 - [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Request for updating a Module. -message UpdateModuleRequest { - // Required. The Module which replaces the resource on the server. - Module module = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The update mask applies to the resource. - // For the `FieldMask` definition, see - // - // [FieldMask](https: - // //developers.google.com/protocol-buffers - // // /docs/reference/google.protobuf#fieldmask). - google.protobuf.FieldMask update_mask = 2 - [(google.api.field_behavior) = REQUIRED]; -} - -// Request for creating a Model. This invokes the training process for -// the parent Module. -message CreateModelRequest { - // Required. Parent identifier. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "visualinspection.googleapis.com/Model" - } - ]; - - // Optional. Model to create. - Model model = 2 [(google.api.field_behavior) = OPTIONAL]; -} - -// Operation metadata for CreateModel. -message CreateModelOperationMetadata { - // Output only. Common operation metadata. - CommonOperationMetadata common_operation_metadata = 1 - [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Request for listing Models. -message ListModelsRequest { - // Required. Parent identifier. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "visualinspection.googleapis.com/Model" - } - ]; - - // The standard list filter. - string filter = 2; - - // The maximum number of Models to return. The service may return - // fewer than this value. If unspecified, at most 20 Models will be - // returned. The maximum value is 100; values above 100 will be coerced to - // 100. - int32 page_size = 3; - - // A page token, received from a previous `ListModels` call. - // Provide this to retrieve the subsequent page. - // - // When paginating, all other parameters provided to `ListModels` - // must match the call that provided the page token. - string page_token = 4; -} - -// Response for ListModels. -message ListModelsResponse { - // The Model. - repeated Model models = 1; - - // A token that can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} - -// Request for getting a Model. -message GetModelRequest { - // Required. Model identifier. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "visualinspection.googleapis.com/Model" - } - ]; -} - -// Request for deleting a Model. -message DeleteModelRequest { - // Required. Model identifier. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "visualinspection.googleapis.com/Model" - } - ]; -} - -// Operation metadata for DeleteModel. -message DeleteModelOperationMetadata { - // Output only. Common operation metadata. - CommonOperationMetadata common_operation_metadata = 1 - [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Request for updating a Model. -message UpdateModelRequest { - // Required. The Model which replaces the resource on the server. - Model model = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The update mask applies to the resource. - // For the `FieldMask` definition, see - // - // [FieldMask](https: - // //developers.google.com/protocol-buffers - // // /docs/reference/google.protobuf#fieldmask). - google.protobuf.FieldMask update_mask = 2 - [(google.api.field_behavior) = REQUIRED]; -} - -// Request for listing ModelEvaluations. -message ListModelEvaluationsRequest { - // Required. Parent identifier. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "visualinspection.googleapis.com/ModelEvaluation" - } - ]; - - // The standard list filter. - string filter = 2; - - // The maximum number of ModelEvaluations to return. The service may return - // fewer than this value. If unspecified, at most 20 ModelEvaluations will be - // returned. The maximum value is 100; values above 100 will be coerced to - // 100. - int32 page_size = 3; - - // A page token, received from a previous `ModelEvaluations` call. - // Provide this to retrieve the subsequent page. - // - // When paginating, all other parameters provided to `ModelEvaluations` - // must match the call that provided the page token. - string page_token = 4; -} - -// Response for ListModelEvaluations. -message ListModelEvaluationsResponse { - // The ModelEvaluation. - repeated ModelEvaluation model_evaluations = 1; - - // A token that can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} - -// Request for getting a ModelEvaluation. -message GetModelEvaluationRequest { - // Required. ModelEvaluation identifier. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "visualinspection.googleapis.com/ModelEvaluation" - } - ]; -} - -// Request for enriching the Dataset with predicted Annotations from a -// Model. -message WritePredictionsRequest { - // Required. Model identifier. - string model = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "visualinspection.googleapis.com/Model" - } - ]; - - // A score threshold in the range [0, 1] to filter output Annotations. If set, - // only Annotations with at least this score will be saved in the output - // AnnotationSet. Otherwise a default value will be used based on the Module. - float output_score_threshold = 2; - - // An IOU (intersection over union) threshold in the range [0, 1] to use for - // matching Annotations for some Module types. New Annotations must have at - // least this IOU in in relation to an old Anotation to be considered - // matching. If not provided, a default value will be used based on the - // Module. - float output_matching_iou_threshold = 3; - - // By default WritePredictions copies all Annotation labels from old - // Annotations to new Annotations. These fields give finer control over which - // label keys to copy. If provided, only keys in this list will be copied. - repeated string label_keys_copy_allowlist = 4; - - // If provided, no keys in this list will be copied, even if they appear - // in the allowlist. - repeated string label_keys_copy_denylist = 5; -} - -// Operation metadata for WritePredictions. -message WritePredictionsOperationMetadata { - // Output only. Common operation metadata. - CommonOperationMetadata common_operation_metadata = 1 - [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Request for creating a SpecialistPool. -message CreateSpecialistPoolRequest { - // Required. The parent Project name for the new SpecialistPool. - // The form is `projects/{project}/locations/{location}`. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "visualinspection.googleapis.com/SpecialistPool" - } - ]; - - // Required. The SpecialistPool to create. - SpecialistPool specialist_pool = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Operation metadata for CreateSpecialistPool. -message CreateSpecialistPoolOperationMetadata { - // Output only. Common operation metadata. - CommonOperationMetadata common_operation_metadata = 1 - [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Request for getting a SpecialistPool. -message GetSpecialistPoolRequest { - // Required. The name of the SpecialistPool resource. - // The form is - // - // `projects/{project}/locations/{location}/specialistPools/{specialist_pool}`. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "visualinspection.googleapis.com/SpecialistPool" - } - ]; -} - -// Request for updating a SpecialistPool. -message UpdateSpecialistPoolRequest { - // Required. The SpecialistPool which replaces the resource on the server. - SpecialistPool specialist_pool = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The update mask applies to the resource. - // For the `FieldMask` definition, see - // - // [FieldMask](https: - // //developers.google.com/protocol-buffers - // // /docs/reference/google.protobuf#fieldmask). - google.protobuf.FieldMask update_mask = 2 - [(google.api.field_behavior) = REQUIRED]; -} - -// Operation metadata for UpdateSpecialistPool. -message UpdateSpecialistPoolOperationMetadata { - // Output only. Common operation metadata. - CommonOperationMetadata common_operation_metadata = 1 - [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Request message for listing SpecialistPools. -message ListSpecialistPoolsRequest { - // Required. The name of the SpecialistPool's parent resource. - // Format: `projects/{project}/locations/{location}` - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "visualinspection.googleapis.com/SpecialistPool" - } - ]; - - // The number of SpecialistPools to return. - int32 page_size = 2; - - // A page token, received from a previous `ListSpecialistPoolsRequest` call. - // Provide this to retrieve the subsequent page. - // - // When paginating, all other parameters provided to - // `ListSpecialistPoolsRequest` must match the call that provided the page - // token. - string page_token = 3; - - // The standard list filter. - string filter = 4; -} - -// Response message for ListSpecialistPools. -message ListSpecialistPoolsResponse { - // A list of SpecialistPools that matches the specified filter in the request. - repeated SpecialistPool specialist_pools = 1; - - // A token that can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} - -// Request for deleting a specialist pool. -message DeleteSpecialistPoolRequest { - // Required. The resource name of the SpecialistPool to delete. Format: - // - // `projects/{project}/locations/{location}/specialistPools/{specialist_pool}`. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "visualinspection.googleapis.com/SpecialistPool" - } - ]; -} - -// Operation metadata for DeleteSpecialistPool. -message DeleteSpecialistPoolOperationMetadata { - // Output only. Common operation metadata. - CommonOperationMetadata common_operation_metadata = 1 - [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Request for creating a labeling job. -message CreateLabelingJobRequest { - // Required. The parent of the LabelingJob. - // Format: `projects/{project}/locations/{location}` - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "visualinspection.googleapis.com/LabelingJob" - } - ]; - - // Required. The LabelingJob to create. - LabelingJob labeling_job = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request for getting a labeling job. -message GetLabelingJobRequest { - // Required. The name of the LabelingJob. - // Format: - // `projects/{project}/locations/{location}/labelingJobs/{labeling_job}` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "visualinspection.googleapis.com/LabelingJob" - } - ]; -} - -// Request message for listing labeling jobs. -message ListLabelingJobsRequest { - // Required. The name of the LabelingJob's parent resource. - // Format: `projects/{project}/locations/{location}` - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "visualinspection.googleapis.com/LabelingJob" - } - ]; - - // The number of labeling jobs to return. - int32 page_size = 2; - - // A page token, received from a previous `ListLabelingJobsRequest` call. - // Provide this to retrieve the subsequent page. - // - // When paginating, all other parameters provided to - // `ListLabelingJobsRequest` must match the call that provided the page - // token. - string page_token = 3; - - // The standard list filter. - string filter = 4; -} - -// Response message for listing labeling jobs. -message ListLabelingJobsResponse { - // A list of SpecialistPools that matches the specified filter in the request. - repeated LabelingJob labeling_jobs = 1; - - // A token that can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; -} - -// Request for deleting a labeling job. -message DeleteLabelingJobRequest { - // Required. The resource name of the labeling job to delete. Format: - // `projects/{project}/locations/{location}/labelingJobs/{labeling_job}`. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "visualinspection.googleapis.com/LabelingJob" - } - ]; -} - -// Operation metadata for deleting a labeling job. -message DeleteLabelingJobOperationMetadata { - // Output only. Common operation metadata. - CommonOperationMetadata common_operation_metadata = 1 - [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Request message for cancelling a labeling job. -message CancelLabelingJobRequest { - // Required. The resource name of the labeling job to cancel. Format: - // `projects/{project}/locations/{location}/labelingJobs/{labeling_job}`. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "visualinspection.googleapis.com/LabelingJob" - } - ]; -} - -// Request message for BatchPredict. -message BatchPredictRequest { - // Required. SolutionArtifact identifier. - string solution_artifact = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "visualinspection.googleapis.com/SolutionArtifact" - } - ]; - - // Required. The input configuration for batch prediction. - // The Cloud Storage path of input file. Accepted forms: - // * Full object path, e.g. gs://bucket/directory/object.csv in which each - // line is the full path to a image file. - string input_uri = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. The Cloud Storage location of the directory where the output is - // to be written to. Output directory will contain: - // 1. output.jsonl - // # Each line is a JSON format of PredictionResult. - // - // 2. category_masks (for MaskAnnotation) - // # Directory of masks - referenced via annotation in output.jsonl. - // - // 3. confidence_masks (for MaskAnnotation) - // # Directory of masks - referenced via annotation in output.jsonl. - GcsDestination output_gcs_dir = 3 [(google.api.field_behavior) = REQUIRED]; -} - -// Operation metadata for BatchPreidct. -message BatchPredictOperationMetadata { - // Output only. Common operation metadata. - CommonOperationMetadata common_operation_metadata = 1 - [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -message BatchPredictResponse {} - -message ExportDataResponse {} - -message ImportDataResponse {} - -message WritePredictionsResponse {} diff --git a/third_party/googleapis/google/cloud/visualinspection/v1beta1/solution_artifact.proto b/third_party/googleapis/google/cloud/visualinspection/v1beta1/solution_artifact.proto deleted file mode 100644 index 4c21353c1..000000000 --- a/third_party/googleapis/google/cloud/visualinspection/v1beta1/solution_artifact.proto +++ /dev/null @@ -1,116 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.visualinspection.v1beta1; - -import "google/api/annotations.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/timestamp.proto"; - -option csharp_namespace = "Google.Cloud.VisualInspection.V1Beta1"; -option php_namespace = "Google\\Cloud\\VisualInspection\\V1beta1"; -option ruby_package = "Google::Cloud::VisualInspection::V1beta1"; -option go_package = "google.golang.org/genproto/googleapis/cloud/visualinspection/v1beta1;visualinspection"; -option java_multiple_files = true; -option java_package = "com.google.cloud.visualinspection.v1beta1"; - -// A SolutionArtifact is a fixed set of Models which can be exported or -// deployed. -message SolutionArtifact { - option (google.api.resource) = { - type: "visualinspection.googleapis.com/SolutionArtifact" - pattern: "projects/{project}/locations/{location}/solutions/{solution}/solutionArtifacts/{solution_artifact}" - }; - - // Export format types. - enum ExportType { - // Unspecified by the user. - EXPORT_TYPE_UNSPECIFIED = 0; - - // A Docker-compatible container which runs on CPU only. - CPU_CONTAINER = 1; - - // A Docker-compatible container which runs on GPU. - GPU_CONTAINER = 2; - - // Packaged archive without the Docker container. It might include multiple - // models, images, and other configuration files in one package. - PACKAGED_ARCHIVE = 3; - } - - oneof export_location { - // Export location for the container. This must be specified when export - // type is a CONTAINER type. - GcrDestination container_export_location = 9; - - // Export location for the packaged archive in the format like - // gs:///.tar.gz. This must be specified when - // export type is PACKAGED_ARCHIVE. - string packaged_archive_gcs_uri = 10; - } - - // Output only. Resource name for SolutionArtifact generated by the system. - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Timestamp when this Module was created. - google.protobuf.Timestamp create_time = 2 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Required. A user friendly display name for the SolutionArtifact. - // The name can be up to 128 characters long and can consist of any UTF-8 - // characters. - string display_name = 4 [(google.api.field_behavior) = REQUIRED]; - - // A description for this SolutionArtifact. - string description = 5; - - // The labels with user-defined metadata to organize your SolutionArtifacts. - // - // Label keys and values can be no longer than 64 characters - // (Unicode codepoints), can only contain lowercase letters, numeric - // characters, underscores and dashes. International characters are allowed. - // Label keys must start with a letter. - // - // See https://goo.gl/xmQnxf for more information on and examples of labels. - map labels = 6; - - // A list of Models to include in the exported solution. If this field is not - // provided in the CreateSolutionArtifactRequest, the latest Model for every - // Module will be exported. If provided, then only these Models are exported. - // The list of models must comprise a complete solution according to the - // expectations set by the Solution's SolutionType. - repeated string models = 7; - - // Required. Export type. - ExportType export_type = 8 [(google.api.field_behavior) = REQUIRED]; -} - -// The GCR location where the container will be pushed. -message GcrDestination { - // Required. Google Container Registry URI of the new image, up to - // 2000 characters long. See - // - // https: - // //cloud.google.com/container-registry/do - // // cs/pushing-and-pulling#pushing_an_image_to_a_registry - // Accepted forms: - // * [HOSTNAME]/[PROJECT-ID]/[IMAGE] - // * [HOSTNAME]/[PROJECT-ID]/[IMAGE]:[TAG] - // - // The requesting user must have permission to push images the project. - string output_uri = 1 [(google.api.field_behavior) = REQUIRED]; -} diff --git a/third_party/googleapis/google/cloud/visualinspection/v1beta1/visualinspection_gapic.yaml b/third_party/googleapis/google/cloud/visualinspection/v1beta1/visualinspection_gapic.yaml deleted file mode 100644 index 5dcfed227..000000000 --- a/third_party/googleapis/google/cloud/visualinspection/v1beta1/visualinspection_gapic.yaml +++ /dev/null @@ -1,18 +0,0 @@ -type: com.google.api.codegen.ConfigProto -config_schema_version: 2.0.0 -language_settings: - java: - package_name: com.google.cloud.visualinspection.v1beta1 - python: - package_name: google.cloud.visualinspection_v1beta1.gapic - go: - package_name: cloud.google.com/go/visualinspection/apiv1beta1 - csharp: - package_name: Google.VisualInspection.V1Beta1 - ruby: - package_name: Google::Cloud::VisualInspection::V1Beta1 - php: - package_name: Google\Cloud\VisualInspection\V1Beta1 - nodejs: - package_name: visualinspection.v1beta1 - domain_layer_location: google-cloud diff --git a/third_party/googleapis/google/cloud/visualinspection/v1beta1/visualinspection_grpc_service_config.json b/third_party/googleapis/google/cloud/visualinspection/v1beta1/visualinspection_grpc_service_config.json deleted file mode 100644 index e751a805d..000000000 --- a/third_party/googleapis/google/cloud/visualinspection/v1beta1/visualinspection_grpc_service_config.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "methodConfig": [ - { - "name": [ - { "service": "google.cloud.visualinspection.v1beta1.VisualInspection", "method": "CreateSolution" }, - { "service": "google.cloud.visualinspection.v1beta1.VisualInspection", "method": "CreateSolutionArtifact" }, - { "service": "google.cloud.visualinspection.v1beta1.VisualInspection", "method": "ImportData" }, - { "service": "google.cloud.visualinspection.v1beta1.VisualInspection", "method": "BatchPredict" }, - { "service": "google.cloud.visualinspection.v1beta1.VisualInspection", "method": "ImportData" }, - { "service": "google.cloud.visualinspection.v1beta1.VisualInspection", "method": "ExportData" }, - { "service": "google.cloud.visualinspection.v1beta1.VisualInspection", "method": "CreateAnnotationSet" }, - { "service": "google.cloud.visualinspection.v1beta1.VisualInspection", "method": "CreateAnnotationSpec" }, - { "service": "google.cloud.visualinspection.v1beta1.VisualInspection", "method": "CreateModule" }, - { "service": "google.cloud.visualinspection.v1beta1.VisualInspection", "method": "DeleteModule" }, - { "service": "google.cloud.visualinspection.v1beta1.VisualInspection", "method": "UpdateModule" }, - { "service": "google.cloud.visualinspection.v1beta1.VisualInspection", "method": "CreateModel" }, - { "service": "google.cloud.visualinspection.v1beta1.VisualInspection", "method": "DeleteModel" }, - { "service": "google.cloud.visualinspection.v1beta1.VisualInspection", "method": "UpdateModel" }, - { "service": "google.cloud.visualinspection.v1beta1.VisualInspection", "method": "WritePredictions" }, - { "service": "google.cloud.visualinspection.v1beta1.VisualInspection", "method": "CreateSpecialistPool" }, - { "service": "google.cloud.visualinspection.v1beta1.VisualInspection", "method": "UpdateSpecialistPool" }, - { "service": "google.cloud.visualinspection.v1beta1.VisualInspection", "method": "DeleteSpecialistPool" }, - { "service": "google.cloud.visualinspection.v1beta1.VisualInspection", "method": "CreateLabelingJob" }, - { "service": "google.cloud.visualinspection.v1beta1.VisualInspection", "method": "DeleteLabelingJob" } - ], - "timeout": "5s" - }, - { - "name": [ - { "service": "google.cloud.visualinspection.v1beta1.VisualInspection", "method": "ListSolutions" }, - { "service": "google.cloud.visualinspection.v1beta1.VisualInspection", "method": "GetSolution" }, - { "service": "google.cloud.visualinspection.v1beta1.VisualInspection", "method": "ListSolutionArtifacts" }, - { "service": "google.cloud.visualinspection.v1beta1.VisualInspection", "method": "GetSolutionArtifact" }, - { "service": "google.cloud.visualinspection.v1beta1.VisualInspection", "method": "DeleteSolutionArtifact" }, - { "service": "google.cloud.visualinspection.v1beta1.VisualInspection", "method": "UpdateSolutionArtifact" }, - { "service": "google.cloud.visualinspection.v1beta1.VisualInspection", "method": "GetDataset" }, - { "service": "google.cloud.visualinspection.v1beta1.VisualInspection", "method": "ListDatasets" }, - { "service": "google.cloud.visualinspection.v1beta1.VisualInspection", "method": "DeleteDataset" }, - { "service": "google.cloud.visualinspection.v1beta1.VisualInspection", "method": "GetImage" }, - { "service": "google.cloud.visualinspection.v1beta1.VisualInspection", "method": "ListImages" }, - { "service": "google.cloud.visualinspection.v1beta1.VisualInspection", "method": "ListAnnotationSets" }, - { "service": "google.cloud.visualinspection.v1beta1.VisualInspection", "method": "ListAnnotationSpecs" }, - { "service": "google.cloud.visualinspection.v1beta1.VisualInspection", "method": "ListAnnotations" }, - { "service": "google.cloud.visualinspection.v1beta1.VisualInspection", "method": "ListModules" }, - { "service": "google.cloud.visualinspection.v1beta1.VisualInspection", "method": "GetModule" }, - { "service": "google.cloud.visualinspection.v1beta1.VisualInspection", "method": "ListModels" }, - { "service": "google.cloud.visualinspection.v1beta1.VisualInspection", "method": "GetModel" }, - { "service": "google.cloud.visualinspection.v1beta1.VisualInspection", "method": "ListModelEvaluations" }, - { "service": "google.cloud.visualinspection.v1beta1.VisualInspection", "method": "SearchModules" }, - { "service": "google.cloud.visualinspection.v1beta1.VisualInspection", "method": "GetModelEvaluation" }, - { "service": "google.cloud.visualinspection.v1beta1.VisualInspection", "method": "GetSpecialistPool" }, - { "service": "google.cloud.visualinspection.v1beta1.VisualInspection", "method": "ListSpecialistPools" }, - { "service": "google.cloud.visualinspection.v1beta1.VisualInspection", "method": "GetLabelingJob" }, - { "service": "google.cloud.visualinspection.v1beta1.VisualInspection", "method": "ListLabelingJobs" }, - { "service": "google.cloud.visualinspection.v1beta1.VisualInspection", "method": "CancelLabelingJob" } - ], - "timeout": "5s", - "retryPolicy": { - "maxAttempts": 5, - "initialBackoff": "0.100s", - "maxBackoff": "60s", - "backoffMultiplier": 1.3, - "retryableStatusCodes": [ - "DEADLINE_EXCEEDED", - "UNAVAILABLE" - ] - } - } - ] -} diff --git a/third_party/googleapis/google/cloud/visualinspection/v1beta1/visualinspection_v1beta1.yaml b/third_party/googleapis/google/cloud/visualinspection/v1beta1/visualinspection_v1beta1.yaml deleted file mode 100644 index 7622957c8..000000000 --- a/third_party/googleapis/google/cloud/visualinspection/v1beta1/visualinspection_v1beta1.yaml +++ /dev/null @@ -1,43 +0,0 @@ -type: google.api.Service -config_version: 3 -name: visualinspection.googleapis.com -title: Visual Inspection AI API - -apis: -- name: google.cloud.visualinspection.v1beta1.VisualInspection - -types: -- name: google.cloud.visualinspection.v1beta1.BatchPredictOperationMetadata -- name: google.cloud.visualinspection.v1beta1.CommonOperationMetadata -- name: google.cloud.visualinspection.v1beta1.CreateDatasetOperationMetadata -- name: google.cloud.visualinspection.v1beta1.CreateModelOperationMetadata -- name: google.cloud.visualinspection.v1beta1.CreateSolutionArtifactOperationMetadata -- name: google.cloud.visualinspection.v1beta1.CreateSpecialistPoolOperationMetadata -- name: google.cloud.visualinspection.v1beta1.DeleteAnnotationOperationMetadata -- name: google.cloud.visualinspection.v1beta1.DeleteAnnotationSetOperationMetadata -- name: google.cloud.visualinspection.v1beta1.DeleteAnnotationSpecOperationMetadata -- name: google.cloud.visualinspection.v1beta1.DeleteDatasetOperationMetadata -- name: google.cloud.visualinspection.v1beta1.DeleteLabelingJobOperationMetadata -- name: google.cloud.visualinspection.v1beta1.DeleteModelOperationMetadata -- name: google.cloud.visualinspection.v1beta1.DeleteModuleOperationMetadata -- name: google.cloud.visualinspection.v1beta1.DeleteSolutionArtifactOperationMetadata -- name: google.cloud.visualinspection.v1beta1.DeleteSpecialistPoolOperationMetadata -- name: google.cloud.visualinspection.v1beta1.DeploySolutionOperationMetadata -- name: google.cloud.visualinspection.v1beta1.ExportDataOperationMetadata -- name: google.cloud.visualinspection.v1beta1.ExportSolutionOperationMetadata -- name: google.cloud.visualinspection.v1beta1.ImportDataOperationMetadata -- name: google.cloud.visualinspection.v1beta1.SolutionOperationMetadata -- name: google.cloud.visualinspection.v1beta1.UndeploySolutionOperationMetadata -- name: google.cloud.visualinspection.v1beta1.UpdateSpecialistPoolOperationMetadata -- name: google.cloud.visualinspection.v1beta1.WritePredictionsOperationMetadata - -authentication: - rules: - - selector: 'google.cloud.visualinspection.v1beta1.VisualInspection.*' - 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/third_party/googleapis/google/cloud/webrisk/v1/BUILD.bazel b/third_party/googleapis/google/cloud/webrisk/v1/BUILD.bazel index 561bbef95..bdb4fd394 100644 --- a/third_party/googleapis/google/cloud/webrisk/v1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/webrisk/v1/BUILD.bazel @@ -56,11 +56,9 @@ java_grpc_library( java_gapic_library( name = "webrisk_java_gapic", - src = ":webrisk_proto_with_info", + srcs = [":webrisk_proto_with_info"], gapic_yaml = "webrisk_gapic.yaml", grpc_service_config = "webrisk_grpc_service_config.json", - package = "google.cloud.webrisk.v1", - service_yaml = "webrisk_v1.yaml", test_deps = [ ":webrisk_java_grpc", ], @@ -140,13 +138,11 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -220,6 +216,7 @@ nodejs_gapic_library( name = "webrisk_nodejs_gapic", package_name = "@google-cloud/web-risk", src = ":webrisk_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "webrisk_grpc_service_config.json", package = "google.cloud.webrisk.v1", service_yaml = "webrisk_v1.yaml", @@ -240,7 +237,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -256,12 +253,19 @@ ruby_grpc_library( deps = [":webrisk_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "webrisk_ruby_gapic", - src = ":webrisk_proto_with_info", - gapic_yaml = "webrisk_gapic.yaml", - package = "google.cloud.webrisk.v1", - service_yaml = "webrisk_v1.yaml", + srcs = [":webrisk_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-web_risk-v1", + "ruby-cloud-env-prefix=WEBRISK", + "ruby-cloud-product-url=https://cloud.google.com/web-risk", + "ruby-cloud-api-id=webrisk.googleapis.com", + "ruby-cloud-api-shortname=webrisk", + ], + grpc_service_config = "webrisk_grpc_service_config.json", + ruby_cloud_description = "Web Risk is an enterprise security product that lets your client applications check URLs against Google's constantly updated lists of unsafe web resources.", + ruby_cloud_title = "Web Risk V1", deps = [ ":webrisk_ruby_grpc", ":webrisk_ruby_proto", @@ -303,8 +307,8 @@ csharp_grpc_library( csharp_gapic_library( name = "webrisk_csharp_gapic", srcs = [":webrisk_proto_with_info"], - grpc_service_config = "webrisk_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "webrisk_grpc_service_config.json", deps = [ ":webrisk_csharp_grpc", ":webrisk_csharp_proto", diff --git a/third_party/googleapis/google/cloud/webrisk/v1beta1/BUILD.bazel b/third_party/googleapis/google/cloud/webrisk/v1beta1/BUILD.bazel index dc508058b..6e5adeeaa 100644 --- a/third_party/googleapis/google/cloud/webrisk/v1beta1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/webrisk/v1beta1/BUILD.bazel @@ -55,11 +55,9 @@ java_grpc_library( java_gapic_library( name = "webrisk_java_gapic", - src = ":webrisk_proto_with_info", + srcs = [":webrisk_proto_with_info"], gapic_yaml = "webrisk_gapic.yaml", grpc_service_config = "webrisk_grpc_service_config.json", - package = "google.cloud.webrisk.v1beta1", - service_yaml = "webrisk_v1beta1.yaml", test_deps = [ ":webrisk_java_grpc", ], @@ -139,13 +137,11 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -219,6 +215,7 @@ nodejs_gapic_library( name = "webrisk_nodejs_gapic", package_name = "@google-cloud/web-risk", src = ":webrisk_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "webrisk_grpc_service_config.json", package = "google.cloud.webrisk.v1beta1", service_yaml = "webrisk_v1beta1.yaml", @@ -239,7 +236,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -255,12 +252,20 @@ ruby_grpc_library( deps = [":webrisk_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "webrisk_ruby_gapic", - src = ":webrisk_proto_with_info", - gapic_yaml = "webrisk_gapic.yaml", - package = "google.cloud.webrisk.v1beta1", - service_yaml = "webrisk_v1beta1.yaml", + srcs = [":webrisk_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-web_risk-v1beta1", + "ruby-cloud-env-prefix=WEBRISK", + "ruby-cloud-service-override=WebRiskServiceV1Beta1=WebRiskService", + "ruby-cloud-product-url=https://cloud.google.com/web-risk", + "ruby-cloud-api-id=webrisk.googleapis.com", + "ruby-cloud-api-shortname=webrisk", + ], + grpc_service_config = "webrisk_grpc_service_config.json", + ruby_cloud_description = "Web Risk is an enterprise security product that lets your client applications check URLs against Google's constantly updated lists of unsafe web resources.", + ruby_cloud_title = "Web Risk V1beta1", deps = [ ":webrisk_ruby_grpc", ":webrisk_ruby_proto", @@ -302,8 +307,8 @@ csharp_grpc_library( csharp_gapic_library( name = "webrisk_csharp_gapic", srcs = [":webrisk_proto_with_info"], - grpc_service_config = "webrisk_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "webrisk_grpc_service_config.json", deps = [ ":webrisk_csharp_grpc", ":webrisk_csharp_proto", diff --git a/third_party/googleapis/google/cloud/webrisk/v1beta1/webrisk_gapic.legacy.yaml b/third_party/googleapis/google/cloud/webrisk/v1beta1/webrisk_gapic.legacy.yaml deleted file mode 100644 index f9be3b286..000000000 --- a/third_party/googleapis/google/cloud/webrisk/v1beta1/webrisk_gapic.legacy.yaml +++ /dev/null @@ -1,142 +0,0 @@ -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.webrisk.v1beta1 - python: - package_name: google.cloud.webrisk_v1beta1.gapic - go: - package_name: cloud.google.com/go/webrisk/apiv1beta1 - csharp: - package_name: Google.Cloud.WebRisk.V1Beta1 - ruby: - package_name: Google::Cloud::Webrisk::V1beta1 - php: - package_name: Google\Cloud\WebRisk\V1beta1 - nodejs: - package_name: web-risk.v1beta1 - domain_layer_location: google-cloud -# A list of API interface configurations. -interfaces: -- name: google.cloud.webrisk.v1beta1.WebRiskServiceV1Beta1 - # 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: - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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: ComputeThreatListDiff - flattening: - groups: - - parameters: - - threat_type - - version_token - - constraints - required_fields: - - threat_type - - constraints - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - - name: SearchUris - flattening: - groups: - - parameters: - - uri - - threat_types - required_fields: - - uri - - threat_types - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - - name: SearchHashes - flattening: - groups: - - parameters: - - hash_prefix - - threat_types - required_fields: - - threat_types - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 diff --git a/third_party/googleapis/google/cloud/websecurityscanner/v1/BUILD.bazel b/third_party/googleapis/google/cloud/websecurityscanner/v1/BUILD.bazel index 12226117f..8c85a21c5 100644 --- a/third_party/googleapis/google/cloud/websecurityscanner/v1/BUILD.bazel +++ b/third_party/googleapis/google/cloud/websecurityscanner/v1/BUILD.bazel @@ -67,11 +67,8 @@ java_grpc_library( java_gapic_library( name = "websecurityscanner_java_gapic", - src = ":websecurityscanner_proto_with_info", - gapic_yaml = "websecurityscanner_gapic.yaml", + srcs = [":websecurityscanner_proto_with_info"], grpc_service_config = "websecurityscanner_grpc_service_config.json", - package = "google.cloud.websecurityscanner.v1", - service_yaml = "websecurityscanner_v1.yaml", test_deps = [ ":websecurityscanner_java_grpc", ], @@ -153,50 +150,14 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "websecurityscanner_moved_proto", - srcs = [":websecurityscanner_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:resource_proto", - "@com_google_protobuf//:empty_proto", - "@com_google_protobuf//:field_mask_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -py_proto_library( - name = "websecurityscanner_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":websecurityscanner_moved_proto"], -) - -py_grpc_library( - name = "websecurityscanner_py_grpc", - srcs = [":websecurityscanner_moved_proto"], - deps = [":websecurityscanner_py_proto"], ) py_gapic_library( name = "websecurityscanner_py_gapic", - src = ":websecurityscanner_proto_with_info", - gapic_yaml = "websecurityscanner_gapic.yaml", + srcs = [":websecurityscanner_proto"], grpc_service_config = "websecurityscanner_grpc_service_config.json", - package = "google.cloud.websecurityscanner.v1", - service_yaml = "websecurityscanner_v1.yaml", - deps = [ - ":websecurityscanner_py_grpc", - ":websecurityscanner_py_proto", - ], ) # Open Source Packages @@ -204,8 +165,6 @@ py_gapic_assembly_pkg( name = "websecurityscanner-v1-py", deps = [ ":websecurityscanner_py_gapic", - ":websecurityscanner_py_grpc", - ":websecurityscanner_py_proto", ], ) @@ -265,7 +224,9 @@ load( nodejs_gapic_library( name = "websecurityscanner_nodejs_gapic", + package_name = "@google-cloud/web-security-scanner", src = ":websecurityscanner_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "websecurityscanner_grpc_service_config.json", package = "google.cloud.websecurityscanner.v1", service_yaml = "websecurityscanner_v1.yaml", @@ -286,7 +247,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -302,12 +263,19 @@ ruby_grpc_library( deps = [":websecurityscanner_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "websecurityscanner_ruby_gapic", - src = ":websecurityscanner_proto_with_info", - gapic_yaml = "websecurityscanner_gapic.yaml", - package = "google.cloud.websecurityscanner.v1", - service_yaml = "websecurityscanner_v1.yaml", + srcs = [":websecurityscanner_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-web_security_scanner-v1", + "ruby-cloud-env-prefix=WEB_SECURITY_SCANNER", + "ruby-cloud-product-url=https://cloud.google.com/security-command-center/docs/concepts-web-security-scanner-overview/", + "ruby-cloud-api-id=websecurityscanner.googleapis.com", + "ruby-cloud-api-shortname=websecurityscanner", + ], + grpc_service_config = "websecurityscanner_grpc_service_config.json", + ruby_cloud_description = "Web Security Scanner scans your Compute and App Engine apps for common web vulnerabilities.", + ruby_cloud_title = "Web Security Scanner V1", deps = [ ":websecurityscanner_ruby_grpc", ":websecurityscanner_ruby_proto", @@ -349,8 +317,8 @@ csharp_grpc_library( csharp_gapic_library( name = "websecurityscanner_csharp_gapic", srcs = [":websecurityscanner_proto_with_info"], - grpc_service_config = "websecurityscanner_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "websecurityscanner_grpc_service_config.json", deps = [ ":websecurityscanner_csharp_grpc", ":websecurityscanner_csharp_proto", diff --git a/third_party/googleapis/google/cloud/websecurityscanner/v1/crawled_url.proto b/third_party/googleapis/google/cloud/websecurityscanner/v1/crawled_url.proto index b64eb402b..37724b804 100644 --- a/third_party/googleapis/google/cloud/websecurityscanner/v1/crawled_url.proto +++ b/third_party/googleapis/google/cloud/websecurityscanner/v1/crawled_url.proto @@ -16,10 +16,13 @@ syntax = "proto3"; package google.cloud.websecurityscanner.v1; +option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1;websecurityscanner"; option java_multiple_files = true; option java_outer_classname = "CrawledUrlProto"; option java_package = "com.google.cloud.websecurityscanner.v1"; +option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1"; +option ruby_package = "Google::Cloud::WebSecurityScanner::V1"; // A CrawledUrl resource represents a URL that was crawled during a ScanRun. Web // Security Scanner Service crawls the web applications, following all links diff --git a/third_party/googleapis/google/cloud/websecurityscanner/v1/finding.proto b/third_party/googleapis/google/cloud/websecurityscanner/v1/finding.proto index 7a8cdf96e..32bd5d833 100644 --- a/third_party/googleapis/google/cloud/websecurityscanner/v1/finding.proto +++ b/third_party/googleapis/google/cloud/websecurityscanner/v1/finding.proto @@ -20,10 +20,13 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/websecurityscanner/v1/finding_addon.proto"; +option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1;websecurityscanner"; option java_multiple_files = true; option java_outer_classname = "FindingProto"; option java_package = "com.google.cloud.websecurityscanner.v1"; +option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1"; +option ruby_package = "Google::Cloud::WebSecurityScanner::V1"; // A Finding resource represents a vulnerability instance identified during a // ScanRun. diff --git a/third_party/googleapis/google/cloud/websecurityscanner/v1/finding_addon.proto b/third_party/googleapis/google/cloud/websecurityscanner/v1/finding_addon.proto index c171ca3b2..4fb7ec1d3 100644 --- a/third_party/googleapis/google/cloud/websecurityscanner/v1/finding_addon.proto +++ b/third_party/googleapis/google/cloud/websecurityscanner/v1/finding_addon.proto @@ -16,10 +16,13 @@ syntax = "proto3"; package google.cloud.websecurityscanner.v1; +option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1;websecurityscanner"; option java_multiple_files = true; option java_outer_classname = "FindingAddonProto"; option java_package = "com.google.cloud.websecurityscanner.v1"; +option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1"; +option ruby_package = "Google::Cloud::WebSecurityScanner::V1"; // ! Information about a vulnerability with an HTML. message Form { diff --git a/third_party/googleapis/google/cloud/websecurityscanner/v1/finding_type_stats.proto b/third_party/googleapis/google/cloud/websecurityscanner/v1/finding_type_stats.proto index 66419f761..7eca01ed2 100644 --- a/third_party/googleapis/google/cloud/websecurityscanner/v1/finding_type_stats.proto +++ b/third_party/googleapis/google/cloud/websecurityscanner/v1/finding_type_stats.proto @@ -16,10 +16,13 @@ syntax = "proto3"; package google.cloud.websecurityscanner.v1; +option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1;websecurityscanner"; option java_multiple_files = true; option java_outer_classname = "FindingTypeStatsProto"; option java_package = "com.google.cloud.websecurityscanner.v1"; +option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1"; +option ruby_package = "Google::Cloud::WebSecurityScanner::V1"; // A FindingTypeStats resource represents stats regarding a specific FindingType // of Findings under a given ScanRun. diff --git a/third_party/googleapis/google/cloud/websecurityscanner/v1/scan_config.proto b/third_party/googleapis/google/cloud/websecurityscanner/v1/scan_config.proto index f5cf4f67f..901d01e40 100644 --- a/third_party/googleapis/google/cloud/websecurityscanner/v1/scan_config.proto +++ b/third_party/googleapis/google/cloud/websecurityscanner/v1/scan_config.proto @@ -19,10 +19,13 @@ package google.cloud.websecurityscanner.v1; import "google/api/field_behavior.proto"; import "google/protobuf/timestamp.proto"; +option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1;websecurityscanner"; option java_multiple_files = true; option java_outer_classname = "ScanConfigProto"; option java_package = "com.google.cloud.websecurityscanner.v1"; +option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1"; +option ruby_package = "Google::Cloud::WebSecurityScanner::V1"; // A ScanConfig resource contains the configurations to launch a scan. message ScanConfig { diff --git a/third_party/googleapis/google/cloud/websecurityscanner/v1/scan_config_error.proto b/third_party/googleapis/google/cloud/websecurityscanner/v1/scan_config_error.proto index 7618c3935..5d544578a 100644 --- a/third_party/googleapis/google/cloud/websecurityscanner/v1/scan_config_error.proto +++ b/third_party/googleapis/google/cloud/websecurityscanner/v1/scan_config_error.proto @@ -16,10 +16,13 @@ syntax = "proto3"; package google.cloud.websecurityscanner.v1; +option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1;websecurityscanner"; option java_multiple_files = true; option java_outer_classname = "ScanConfigErrorProto"; option java_package = "com.google.cloud.websecurityscanner.v1"; +option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1"; +option ruby_package = "Google::Cloud::WebSecurityScanner::V1"; // Defines a custom error message used by CreateScanConfig and UpdateScanConfig // APIs when scan configuration validation fails. It is also reported as part of diff --git a/third_party/googleapis/google/cloud/websecurityscanner/v1/scan_run.proto b/third_party/googleapis/google/cloud/websecurityscanner/v1/scan_run.proto index 42335337e..465c6cb67 100644 --- a/third_party/googleapis/google/cloud/websecurityscanner/v1/scan_run.proto +++ b/third_party/googleapis/google/cloud/websecurityscanner/v1/scan_run.proto @@ -20,10 +20,13 @@ import "google/cloud/websecurityscanner/v1/scan_run_error_trace.proto"; import "google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto"; import "google/protobuf/timestamp.proto"; +option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1;websecurityscanner"; option java_multiple_files = true; option java_outer_classname = "ScanRunProto"; option java_package = "com.google.cloud.websecurityscanner.v1"; +option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1"; +option ruby_package = "Google::Cloud::WebSecurityScanner::V1"; // A ScanRun is a output-only resource representing an actual run of the scan. // Next id: 12 diff --git a/third_party/googleapis/google/cloud/websecurityscanner/v1/scan_run_error_trace.proto b/third_party/googleapis/google/cloud/websecurityscanner/v1/scan_run_error_trace.proto index bae9f8805..5234eee22 100644 --- a/third_party/googleapis/google/cloud/websecurityscanner/v1/scan_run_error_trace.proto +++ b/third_party/googleapis/google/cloud/websecurityscanner/v1/scan_run_error_trace.proto @@ -18,10 +18,13 @@ package google.cloud.websecurityscanner.v1; import "google/cloud/websecurityscanner/v1/scan_config_error.proto"; +option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1;websecurityscanner"; option java_multiple_files = true; option java_outer_classname = "ScanRunErrorTraceProto"; option java_package = "com.google.cloud.websecurityscanner.v1"; +option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1"; +option ruby_package = "Google::Cloud::WebSecurityScanner::V1"; // Output only. // Defines an error trace message for a ScanRun. diff --git a/third_party/googleapis/google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto b/third_party/googleapis/google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto index 30c8b4f2f..43a5017df 100644 --- a/third_party/googleapis/google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto +++ b/third_party/googleapis/google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto @@ -16,10 +16,13 @@ syntax = "proto3"; package google.cloud.websecurityscanner.v1; +option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1;websecurityscanner"; option java_multiple_files = true; option java_outer_classname = "ScanRunWarningTraceProto"; option java_package = "com.google.cloud.websecurityscanner.v1"; +option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1"; +option ruby_package = "Google::Cloud::WebSecurityScanner::V1"; // Output only. // Defines a warning trace message for ScanRun. Warning traces provide customers diff --git a/third_party/googleapis/google/cloud/websecurityscanner/v1/web_security_scanner.proto b/third_party/googleapis/google/cloud/websecurityscanner/v1/web_security_scanner.proto index 599557104..5f1bfcd41 100644 --- a/third_party/googleapis/google/cloud/websecurityscanner/v1/web_security_scanner.proto +++ b/third_party/googleapis/google/cloud/websecurityscanner/v1/web_security_scanner.proto @@ -26,10 +26,13 @@ import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/api/client.proto"; +option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1;websecurityscanner"; option java_multiple_files = true; option java_outer_classname = "WebSecurityScannerProto"; option java_package = "com.google.cloud.websecurityscanner.v1"; +option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1"; +option ruby_package = "Google::Cloud::WebSecurityScanner::V1"; // Web Security Scanner Service identifies security vulnerabilities in web // applications hosted on Google Cloud. It crawls your application, and diff --git a/third_party/googleapis/google/cloud/websecurityscanner/v1/websecurityscanner_gapic.yaml b/third_party/googleapis/google/cloud/websecurityscanner/v1/websecurityscanner_gapic.yaml index 6c634317b..f171653ea 100644 --- a/third_party/googleapis/google/cloud/websecurityscanner/v1/websecurityscanner_gapic.yaml +++ b/third_party/googleapis/google/cloud/websecurityscanner/v1/websecurityscanner_gapic.yaml @@ -2,8 +2,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 # The settings of generated code in a specific language. language_settings: - java: - package_name: com.google.cloud.websecurityscanner.v1 python: package_name: google.cloud.websecurityscanner_v1.gapic go: diff --git a/third_party/googleapis/google/cloud/websecurityscanner/v1alpha/BUILD.bazel b/third_party/googleapis/google/cloud/websecurityscanner/v1alpha/BUILD.bazel index 003029f27..dffd3ff40 100644 --- a/third_party/googleapis/google/cloud/websecurityscanner/v1alpha/BUILD.bazel +++ b/third_party/googleapis/google/cloud/websecurityscanner/v1alpha/BUILD.bazel @@ -64,11 +64,8 @@ java_grpc_library( java_gapic_library( name = "websecurityscanner_java_gapic", - src = ":websecurityscanner_proto_with_info", - gapic_yaml = "websecurityscanner_gapic.yaml", + srcs = [":websecurityscanner_proto_with_info"], grpc_service_config = "websecurityscanner_grpc_service_config.json", - package = "google.cloud.websecurityscanner.v1alpha", - service_yaml = "websecurityscanner_v1alpha.yaml", test_deps = [ ":websecurityscanner_java_grpc", ], @@ -148,12 +145,10 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -225,7 +220,9 @@ load( nodejs_gapic_library( name = "websecurityscanner_nodejs_gapic", + package_name = "@google-cloud/web-security-scanner", src = ":websecurityscanner_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "websecurityscanner_grpc_service_config.json", package = "google.cloud.websecurityscanner.v1alpha", service_yaml = "websecurityscanner_v1alpha.yaml", @@ -309,8 +306,8 @@ csharp_grpc_library( csharp_gapic_library( name = "websecurityscanner_csharp_gapic", srcs = [":websecurityscanner_proto_with_info"], - grpc_service_config = "websecurityscanner_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "websecurityscanner_grpc_service_config.json", deps = [ ":websecurityscanner_csharp_grpc", ":websecurityscanner_csharp_proto", diff --git a/third_party/googleapis/google/cloud/websecurityscanner/v1alpha/websecurityscanner_gapic.legacy.yaml b/third_party/googleapis/google/cloud/websecurityscanner/v1alpha/websecurityscanner_gapic.legacy.yaml deleted file mode 100644 index 3b2c313c6..000000000 --- a/third_party/googleapis/google/cloud/websecurityscanner/v1alpha/websecurityscanner_gapic.legacy.yaml +++ /dev/null @@ -1,356 +0,0 @@ -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.websecurityscanner.v1alpha - python: - package_name: google.cloud.websecurityscanner_v1alpha.gapic - go: - package_name: cloud.google.com/go/cloud/websecurityscanner/apiv1alpha - csharp: - package_name: Google.Cloud.Websecurityscanner.V1Alpha - ruby: - package_name: Google::Cloud::Websecurityscanner::V1alpha - php: - package_name: Google\Cloud\Websecurityscanner\V1alpha - nodejs: - package_name: websecurityscanner.v1alpha -# A list of API interface configurations. -interfaces: - # The fully qualified name of the API interface. -- name: google.cloud.websecurityscanner.v1alpha.WebSecurityScanner - # 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: - - name_pattern: projects/{project} - entity_name: project - language_overrides: - - language: csharp - common_resource_name: Google.Api.Gax.ResourceNames.ProjectName - - name_pattern: projects/{project}/scanConfigs/{scan_config} - entity_name: scan_config - - name_pattern: projects/{project}/scanConfigs/{scan_config}/scanRuns/{scan_run} - entity_name: scan_run - - name_pattern: projects/{project}/scanConfigs/{scan_config}/scanRuns/{scan_run}/findings/{finding} - entity_name: finding - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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: CreateScanConfig - flattening: - groups: - - parameters: - - parent - - scan_config - required_fields: - - parent - - scan_config - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: DeleteScanConfig - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: scan_config - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: GetScanConfig - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: scan_config - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: ListScanConfigs - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: scan_configs - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: UpdateScanConfig - flattening: - groups: - - parameters: - - scan_config - - update_mask - required_fields: - - scan_config - - update_mask - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - scan_config.name: scan_config - timeout_millis: 60000 - - name: StartScanRun - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: scan_config - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: GetScanRun - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: scan_run - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: ListScanRuns - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: scan_runs - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: scan_config - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: StopScanRun - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: scan_run - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: ListCrawledUrls - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: crawled_urls - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: scan_run - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: GetFinding - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: finding - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: ListFindings - flattening: - groups: - - parameters: - - parent - - filter - required_fields: - - parent - - filter - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: findings - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: scan_run - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: ListFindingTypeStats - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: scan_run - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES -resource_name_generation: -- message_name: CreateScanConfigRequest - field_entity_map: - parent: project -- message_name: DeleteScanConfigRequest - field_entity_map: - name: scan_config -- message_name: GetScanConfigRequest - field_entity_map: - name: scan_config -- message_name: ListScanConfigsRequest - field_entity_map: - parent: project -- message_name: StartScanRunRequest - field_entity_map: - name: scan_config -- message_name: GetScanRunRequest - field_entity_map: - name: scan_run -- message_name: ListScanRunsRequest - field_entity_map: - parent: scan_config -- message_name: StopScanRunRequest - field_entity_map: - name: scan_run -- message_name: ListCrawledUrlsRequest - field_entity_map: - parent: scan_run -- message_name: GetFindingRequest - field_entity_map: - name: finding -- message_name: ListFindingsRequest - field_entity_map: - parent: scan_run -- message_name: ListFindingTypeStatsRequest - field_entity_map: - parent: scan_run diff --git a/third_party/googleapis/google/cloud/websecurityscanner/v1alpha/websecurityscanner_gapic.yaml b/third_party/googleapis/google/cloud/websecurityscanner/v1alpha/websecurityscanner_gapic.yaml index d1225e7a5..960f4ea35 100644 --- a/third_party/googleapis/google/cloud/websecurityscanner/v1alpha/websecurityscanner_gapic.yaml +++ b/third_party/googleapis/google/cloud/websecurityscanner/v1alpha/websecurityscanner_gapic.yaml @@ -1,8 +1,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 language_settings: - java: - package_name: com.google.cloud.websecurityscanner.v1alpha python: package_name: google.cloud.websecurityscanner_v1alpha.gapic go: diff --git a/third_party/googleapis/google/cloud/websecurityscanner/v1beta/BUILD.bazel b/third_party/googleapis/google/cloud/websecurityscanner/v1beta/BUILD.bazel index 72f35c996..d5d1fb0ff 100644 --- a/third_party/googleapis/google/cloud/websecurityscanner/v1beta/BUILD.bazel +++ b/third_party/googleapis/google/cloud/websecurityscanner/v1beta/BUILD.bazel @@ -67,11 +67,8 @@ java_grpc_library( java_gapic_library( name = "websecurityscanner_java_gapic", - src = ":websecurityscanner_proto_with_info", - gapic_yaml = "websecurityscanner_gapic.yaml", + srcs = [":websecurityscanner_proto_with_info"], grpc_service_config = "websecurityscanner_grpc_service_config.json", - package = "google.cloud.websecurityscanner.v1beta", - service_yaml = "websecurityscanner_v1beta.yaml", test_deps = [ ":websecurityscanner_java_grpc", ], @@ -151,12 +148,10 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -228,7 +223,9 @@ load( nodejs_gapic_library( name = "websecurityscanner_nodejs_gapic", + package_name = "@google-cloud/web-security-scanner", src = ":websecurityscanner_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "websecurityscanner_grpc_service_config.json", package = "google.cloud.websecurityscanner.v1beta", service_yaml = "websecurityscanner_v1beta.yaml", @@ -249,7 +246,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -265,12 +262,19 @@ ruby_grpc_library( deps = [":websecurityscanner_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "websecurityscanner_ruby_gapic", - src = ":websecurityscanner_proto_with_info", - gapic_yaml = "websecurityscanner_gapic.yaml", - package = "google.cloud.websecurityscanner.v1beta", - service_yaml = "websecurityscanner_v1beta.yaml", + srcs = [":websecurityscanner_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-web_security_scanner-v1beta", + "ruby-cloud-env-prefix=WEB_SECURITY_SCANNER", + "ruby-cloud-product-url=https://cloud.google.com/security-command-center/docs/concepts-web-security-scanner-overview/", + "ruby-cloud-api-id=websecurityscanner.googleapis.com", + "ruby-cloud-api-shortname=websecurityscanner", + ], + grpc_service_config = "websecurityscanner_grpc_service_config.json", + ruby_cloud_description = "Web Security Scanner scans your Compute and App Engine apps for common web vulnerabilities.", + ruby_cloud_title = "Web Security Scanner V1beta", deps = [ ":websecurityscanner_ruby_grpc", ":websecurityscanner_ruby_proto", @@ -312,8 +316,8 @@ csharp_grpc_library( csharp_gapic_library( name = "websecurityscanner_csharp_gapic", srcs = [":websecurityscanner_proto_with_info"], - grpc_service_config = "websecurityscanner_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "websecurityscanner_grpc_service_config.json", deps = [ ":websecurityscanner_csharp_grpc", ":websecurityscanner_csharp_proto", diff --git a/third_party/googleapis/google/cloud/websecurityscanner/v1beta/crawled_url.proto b/third_party/googleapis/google/cloud/websecurityscanner/v1beta/crawled_url.proto index 9316f8b2a..cbfead4cb 100644 --- a/third_party/googleapis/google/cloud/websecurityscanner/v1beta/crawled_url.proto +++ b/third_party/googleapis/google/cloud/websecurityscanner/v1beta/crawled_url.proto @@ -17,11 +17,13 @@ syntax = "proto3"; package google.cloud.websecurityscanner.v1beta; +option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1Beta"; option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner"; option java_multiple_files = true; option java_outer_classname = "CrawledUrlProto"; option java_package = "com.google.cloud.websecurityscanner.v1beta"; option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1beta"; +option ruby_package = "Google::Cloud::WebSecurityScanner::V1beta"; // A CrawledUrl resource represents a URL that was crawled during a ScanRun. Web // Security Scanner Service crawls the web applications, following all links diff --git a/third_party/googleapis/google/cloud/websecurityscanner/v1beta/finding.proto b/third_party/googleapis/google/cloud/websecurityscanner/v1beta/finding.proto index 5f86c9c71..999e0920d 100644 --- a/third_party/googleapis/google/cloud/websecurityscanner/v1beta/finding.proto +++ b/third_party/googleapis/google/cloud/websecurityscanner/v1beta/finding.proto @@ -20,11 +20,13 @@ package google.cloud.websecurityscanner.v1beta; import "google/api/resource.proto"; import "google/cloud/websecurityscanner/v1beta/finding_addon.proto"; +option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1Beta"; option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner"; option java_multiple_files = true; option java_outer_classname = "FindingProto"; option java_package = "com.google.cloud.websecurityscanner.v1beta"; option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1beta"; +option ruby_package = "Google::Cloud::WebSecurityScanner::V1beta"; // A Finding resource represents a vulnerability instance identified during a // ScanRun. diff --git a/third_party/googleapis/google/cloud/websecurityscanner/v1beta/finding_addon.proto b/third_party/googleapis/google/cloud/websecurityscanner/v1beta/finding_addon.proto index ea5989a13..c29f6cadd 100644 --- a/third_party/googleapis/google/cloud/websecurityscanner/v1beta/finding_addon.proto +++ b/third_party/googleapis/google/cloud/websecurityscanner/v1beta/finding_addon.proto @@ -17,11 +17,13 @@ syntax = "proto3"; package google.cloud.websecurityscanner.v1beta; +option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1Beta"; option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner"; option java_multiple_files = true; option java_outer_classname = "FindingAddonProto"; option java_package = "com.google.cloud.websecurityscanner.v1beta"; option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1beta"; +option ruby_package = "Google::Cloud::WebSecurityScanner::V1beta"; // ! Information about a vulnerability with an HTML. message Form { diff --git a/third_party/googleapis/google/cloud/websecurityscanner/v1beta/finding_type_stats.proto b/third_party/googleapis/google/cloud/websecurityscanner/v1beta/finding_type_stats.proto index 97f4882d1..9b2157618 100644 --- a/third_party/googleapis/google/cloud/websecurityscanner/v1beta/finding_type_stats.proto +++ b/third_party/googleapis/google/cloud/websecurityscanner/v1beta/finding_type_stats.proto @@ -17,11 +17,13 @@ syntax = "proto3"; package google.cloud.websecurityscanner.v1beta; +option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1Beta"; option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner"; option java_multiple_files = true; option java_outer_classname = "FindingTypeStatsProto"; option java_package = "com.google.cloud.websecurityscanner.v1beta"; option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1beta"; +option ruby_package = "Google::Cloud::WebSecurityScanner::V1beta"; // A FindingTypeStats resource represents stats regarding a specific FindingType // of Findings under a given ScanRun. diff --git a/third_party/googleapis/google/cloud/websecurityscanner/v1beta/scan_config.proto b/third_party/googleapis/google/cloud/websecurityscanner/v1beta/scan_config.proto index c2b7dcb31..b25c61984 100644 --- a/third_party/googleapis/google/cloud/websecurityscanner/v1beta/scan_config.proto +++ b/third_party/googleapis/google/cloud/websecurityscanner/v1beta/scan_config.proto @@ -22,11 +22,13 @@ import "google/api/resource.proto"; import "google/cloud/websecurityscanner/v1beta/scan_run.proto"; import "google/protobuf/timestamp.proto"; +option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1Beta"; option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner"; option java_multiple_files = true; option java_outer_classname = "ScanConfigProto"; option java_package = "com.google.cloud.websecurityscanner.v1beta"; option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1beta"; +option ruby_package = "Google::Cloud::WebSecurityScanner::V1beta"; // A ScanConfig resource contains the configurations to launch a scan. message ScanConfig { diff --git a/third_party/googleapis/google/cloud/websecurityscanner/v1beta/scan_config_error.proto b/third_party/googleapis/google/cloud/websecurityscanner/v1beta/scan_config_error.proto index a50bdcaf3..3920b74fd 100644 --- a/third_party/googleapis/google/cloud/websecurityscanner/v1beta/scan_config_error.proto +++ b/third_party/googleapis/google/cloud/websecurityscanner/v1beta/scan_config_error.proto @@ -17,11 +17,13 @@ syntax = "proto3"; package google.cloud.websecurityscanner.v1beta; +option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1Beta"; option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner"; option java_multiple_files = true; option java_outer_classname = "ScanConfigErrorProto"; option java_package = "com.google.cloud.websecurityscanner.v1beta"; option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1beta"; +option ruby_package = "Google::Cloud::WebSecurityScanner::V1beta"; // Defines a custom error message used by CreateScanConfig and UpdateScanConfig // APIs when scan configuration validation fails. It is also reported as part of diff --git a/third_party/googleapis/google/cloud/websecurityscanner/v1beta/scan_run.proto b/third_party/googleapis/google/cloud/websecurityscanner/v1beta/scan_run.proto index 84564c6e2..48800d247 100644 --- a/third_party/googleapis/google/cloud/websecurityscanner/v1beta/scan_run.proto +++ b/third_party/googleapis/google/cloud/websecurityscanner/v1beta/scan_run.proto @@ -22,11 +22,13 @@ import "google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto"; import "google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto"; import "google/protobuf/timestamp.proto"; +option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1Beta"; option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner"; option java_multiple_files = true; option java_outer_classname = "ScanRunProto"; option java_package = "com.google.cloud.websecurityscanner.v1beta"; option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1beta"; +option ruby_package = "Google::Cloud::WebSecurityScanner::V1beta"; // A ScanRun is a output-only resource representing an actual run of the scan. // Next id: 12 diff --git a/third_party/googleapis/google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto b/third_party/googleapis/google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto index 248967d24..acbdef2bd 100644 --- a/third_party/googleapis/google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto +++ b/third_party/googleapis/google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto @@ -19,11 +19,13 @@ package google.cloud.websecurityscanner.v1beta; import "google/cloud/websecurityscanner/v1beta/scan_config_error.proto"; +option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1Beta"; option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner"; option java_multiple_files = true; option java_outer_classname = "ScanRunErrorTraceProto"; option java_package = "com.google.cloud.websecurityscanner.v1beta"; option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1beta"; +option ruby_package = "Google::Cloud::WebSecurityScanner::V1beta"; // Output only. // Defines an error trace message for a ScanRun. diff --git a/third_party/googleapis/google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto b/third_party/googleapis/google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto index 8207a0290..6ee6b3474 100644 --- a/third_party/googleapis/google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto +++ b/third_party/googleapis/google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto @@ -17,11 +17,13 @@ syntax = "proto3"; package google.cloud.websecurityscanner.v1beta; +option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1Beta"; option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner"; option java_multiple_files = true; option java_outer_classname = "ScanRunWarningTraceProto"; option java_package = "com.google.cloud.websecurityscanner.v1beta"; option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1beta"; +option ruby_package = "Google::Cloud::WebSecurityScanner::V1beta"; // Output only. // Defines a warning trace message for ScanRun. Warning traces provide customers diff --git a/third_party/googleapis/google/cloud/websecurityscanner/v1beta/web_security_scanner.proto b/third_party/googleapis/google/cloud/websecurityscanner/v1beta/web_security_scanner.proto index 9ea6207c2..79be175b5 100644 --- a/third_party/googleapis/google/cloud/websecurityscanner/v1beta/web_security_scanner.proto +++ b/third_party/googleapis/google/cloud/websecurityscanner/v1beta/web_security_scanner.proto @@ -29,11 +29,13 @@ import "google/cloud/websecurityscanner/v1beta/scan_run.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; +option csharp_namespace = "Google.Cloud.WebSecurityScanner.V1Beta"; option go_package = "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta;websecurityscanner"; option java_multiple_files = true; option java_outer_classname = "WebSecurityScannerProto"; option java_package = "com.google.cloud.websecurityscanner.v1beta"; option php_namespace = "Google\\Cloud\\WebSecurityScanner\\V1beta"; +option ruby_package = "Google::Cloud::WebSecurityScanner::V1beta"; // Cloud Web Security Scanner Service identifies security vulnerabilities in web // applications hosted on Google Cloud Platform. It crawls your application, and diff --git a/third_party/googleapis/google/cloud/websecurityscanner/v1beta/websecurityscanner_gapic.legacy.yaml b/third_party/googleapis/google/cloud/websecurityscanner/v1beta/websecurityscanner_gapic.legacy.yaml deleted file mode 100644 index 89cfd29f0..000000000 --- a/third_party/googleapis/google/cloud/websecurityscanner/v1beta/websecurityscanner_gapic.legacy.yaml +++ /dev/null @@ -1,294 +0,0 @@ -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.websecurityscanner.v1beta - python: - package_name: google.cloud.websecurityscanner_v1beta.gapic - go: - package_name: cloud.google.com/go/websecurityscanner/apiv1beta - csharp: - package_name: Google.Cloud.Websecurityscanner.V1beta - ruby: - package_name: Google::Cloud::Websecurityscanner::V1beta - php: - package_name: Google\Cloud\WebSecurityScanner\V1beta - nodejs: - package_name: websecurityscanner.v1beta -# A list of API interface configurations. -interfaces: -# The fully qualified name of the API interface. -- name: google.cloud.websecurityscanner.v1beta.WebSecurityScanner - # 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: - - name_pattern: projects/{project} - entity_name: project - - name_pattern: projects/{project}/scanConfigs/{scan_config} - entity_name: scan_config - - name_pattern: projects/{project}/scanConfigs/{scan_config}/scanRuns/{scan_run} - entity_name: scan_run - - name_pattern: projects/{project}/scanConfigs/{scan_config}/scanRuns/{scan_run}/findings/{finding} - entity_name: finding - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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. - # - # 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: CreateScanConfig - flattening: - groups: - - parameters: - - parent - - scan_config - required_fields: - - parent - - scan_config - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 60000 - - name: DeleteScanConfig - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: scan_config - timeout_millis: 60000 - - name: GetScanConfig - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: scan_config - timeout_millis: 60000 - - name: ListScanConfigs - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: scan_configs - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 60000 - - name: UpdateScanConfig - flattening: - groups: - - parameters: - - scan_config - - update_mask - required_fields: - - scan_config - - update_mask - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - scan_config.name: scan_config - timeout_millis: 60000 - - name: StartScanRun - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: scan_config - timeout_millis: 60000 - - name: GetScanRun - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: scan_run - timeout_millis: 60000 - - name: ListScanRuns - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: scan_runs - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: scan_config - timeout_millis: 60000 - - name: StopScanRun - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: scan_run - timeout_millis: 60000 - - name: ListCrawledUrls - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: crawled_urls - retry_params_name: default - field_name_patterns: - parent: scan_run - timeout_millis: 60000 - - name: GetFinding - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: finding - timeout_millis: 60000 - - name: ListFindings - flattening: - groups: - - parameters: - - parent - - filter - required_fields: - - parent - - filter - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: findings - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: scan_run - timeout_millis: 60000 - - name: ListFindingTypeStats - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: scan_run - timeout_millis: 60000 diff --git a/third_party/googleapis/google/cloud/websecurityscanner/v1beta/websecurityscanner_gapic.yaml b/third_party/googleapis/google/cloud/websecurityscanner/v1beta/websecurityscanner_gapic.yaml index 62625171a..1e77ae7c6 100644 --- a/third_party/googleapis/google/cloud/websecurityscanner/v1beta/websecurityscanner_gapic.yaml +++ b/third_party/googleapis/google/cloud/websecurityscanner/v1beta/websecurityscanner_gapic.yaml @@ -2,8 +2,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 # The settings of generated code in a specific language. language_settings: - java: - package_name: com.google.cloud.websecurityscanner.v1beta python: package_name: google.cloud.websecurityscanner_v1beta.gapic go: diff --git a/third_party/googleapis/google/cloud/workflows/executions/v1/BUILD.bazel b/third_party/googleapis/google/cloud/workflows/executions/v1/BUILD.bazel new file mode 100644 index 000000000..b2b2ff3db --- /dev/null +++ b/third_party/googleapis/google/cloud/workflows/executions/v1/BUILD.bazel @@ -0,0 +1,333 @@ +# This file was automatically generated by BuildFileGenerator +# https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/bazel + +# Most of the manual changes to this file will be overwritten. +# It's **only** allowed to change the following rule attribute values: +# - names of *_gapic_assembly_* rules +# - certain parameters of *_gapic_library rules, including but not limited to: +# * extra_protoc_parameters +# * extra_protoc_file_parameters +# The complete list of preserved parameters can be found in the source code. + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") +load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info") + +proto_library( + name = "executions_proto", + srcs = [ + "executions.proto", + ], + deps = [ + "//google/api:annotations_proto", + "//google/api:client_proto", + "//google/api:field_behavior_proto", + "//google/api:resource_proto", + "@com_google_protobuf//:timestamp_proto", + ], +) + +proto_library_with_info( + name = "executions_proto_with_info", + deps = [ + ":executions_proto", + "//google/cloud:common_resources_proto", + ], +) + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_gapic_assembly_gradle_pkg", + "java_gapic_library", + "java_gapic_test", + "java_grpc_library", + "java_proto_library", +) + +java_proto_library( + name = "executions_java_proto", + deps = [":executions_proto"], +) + +java_grpc_library( + name = "executions_java_grpc", + srcs = [":executions_proto"], + deps = [":executions_java_proto"], +) + +java_gapic_library( + name = "executions_java_gapic", + srcs = [":executions_proto_with_info"], + grpc_service_config = "executions_grpc_service_config.json", + test_deps = [ + ":executions_java_grpc", + ], + deps = [ + ":executions_java_proto", + ], +) + +java_gapic_test( + name = "executions_java_gapic_test_suite", + test_classes = [ + "com.google.cloud.workflows.executions.v1.ExecutionsClientTest", + ], + runtime_deps = [":executions_java_gapic_test"], +) + +# Open Source Packages +java_gapic_assembly_gradle_pkg( + name = "google-cloud-workflows-executions-v1-java", + deps = [ + ":executions_java_gapic", + ":executions_java_grpc", + ":executions_java_proto", + ":executions_proto", + ], +) + +############################################################################## +# Go +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "go_gapic_assembly_pkg", + "go_gapic_library", + "go_proto_library", + "go_test", +) + +go_proto_library( + name = "executions_go_proto", + compilers = ["@io_bazel_rules_go//proto:go_grpc"], + importpath = "google.golang.org/genproto/googleapis/cloud/workflows/executions/v1", + protos = [":executions_proto"], + deps = [ + "//google/api:annotations_go_proto", + ], +) + +go_gapic_library( + name = "executions_go_gapic", + srcs = [":executions_proto_with_info"], + grpc_service_config = "executions_grpc_service_config.json", + importpath = "cloud.google.com/go/workflows/executions/apiv1;executions", + service_yaml = "workflowexecutions_v1.yaml", + deps = [ + ":executions_go_proto", + ], +) + +go_test( + name = "executions_go_gapic_test", + srcs = [":executions_go_gapic_srcjar_test"], + embed = [":executions_go_gapic"], + importpath = "cloud.google.com/go/workflows/executions/apiv1", +) + +# Open Source Packages +go_gapic_assembly_pkg( + name = "gapi-cloud-workflows-executions-v1-go", + deps = [ + ":executions_go_gapic", + ":executions_go_gapic_srcjar-test.srcjar", + ":executions_go_proto", + ], +) + +############################################################################## +# Python +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "py_gapic_assembly_pkg", + "py_gapic_library", +) + +py_gapic_library( + name = "executions_py_gapic", + srcs = [":executions_proto"], + grpc_service_config = "executions_grpc_service_config.json", +) + +# Open Source Packages +py_gapic_assembly_pkg( + name = "workflows-executions-v1-py", + deps = [ + ":executions_py_gapic", + ], +) + +############################################################################## +# PHP +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "php_gapic_assembly_pkg", + "php_gapic_library", + "php_grpc_library", + "php_proto_library", +) + +php_proto_library( + name = "executions_php_proto", + deps = [":executions_proto"], +) + +php_grpc_library( + name = "executions_php_grpc", + srcs = [":executions_proto"], + deps = [":executions_php_proto"], +) + +php_gapic_library( + name = "executions_php_gapic", + src = ":executions_proto_with_info", + gapic_yaml = "executions_gapic.yaml", + grpc_service_config = "executions_grpc_service_config.json", + package = "google.cloud.workflows.executions.v1", + service_yaml = "workflowexecutions_v1.yaml", + deps = [ + ":executions_php_grpc", + ":executions_php_proto", + ], +) + +# Open Source Packages +php_gapic_assembly_pkg( + name = "google-cloud-workflows-executions-v1-php", + deps = [ + ":executions_php_gapic", + ":executions_php_grpc", + ":executions_php_proto", + ], +) + +############################################################################## +# Node.js +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", +) + +nodejs_gapic_library( + name = "executions_nodejs_gapic", + package_name = "@google-cloud/executions", + src = ":executions_proto_with_info", + extra_protoc_parameters = ["metadata"], + grpc_service_config = "executions_grpc_service_config.json", + package = "google.cloud.workflows.executions.v1", + service_yaml = "workflowexecutions_v1.yaml", + deps = [], +) + +nodejs_gapic_assembly_pkg( + name = "workflows-executions-v1-nodejs", + deps = [ + ":executions_nodejs_gapic", + ":executions_proto", + ], +) + +############################################################################## +# Ruby +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "ruby_gapic_assembly_pkg", + "ruby_gapic_library", + "ruby_grpc_library", + "ruby_proto_library", +) + +ruby_proto_library( + name = "executions_ruby_proto", + deps = [":executions_proto"], +) + +ruby_grpc_library( + name = "executions_ruby_grpc", + srcs = [":executions_proto"], + deps = [":executions_ruby_proto"], +) + +ruby_gapic_library( + name = "executions_ruby_gapic", + src = ":executions_proto_with_info", + gapic_yaml = "executions_gapic.yaml", + grpc_service_config = "executions_grpc_service_config.json", + package = "google.cloud.workflows.executions.v1", + service_yaml = "workflowexecutions_v1.yaml", + deps = [ + ":executions_ruby_grpc", + ":executions_ruby_proto", + ], +) + +# Open Source Packages +ruby_gapic_assembly_pkg( + name = "google-cloud-workflows-executions-v1-ruby", + deps = [ + ":executions_ruby_gapic", + ":executions_ruby_grpc", + ":executions_ruby_proto", + ], +) + +############################################################################## +# C# +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "csharp_gapic_assembly_pkg", + "csharp_gapic_library", + "csharp_grpc_library", + "csharp_proto_library", +) + +csharp_proto_library( + name = "executions_csharp_proto", + deps = [":executions_proto"], +) + +csharp_grpc_library( + name = "executions_csharp_grpc", + srcs = [":executions_proto"], + deps = [":executions_csharp_proto"], +) + +csharp_gapic_library( + name = "executions_csharp_gapic", + srcs = [":executions_proto_with_info"], + common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "executions_grpc_service_config.json", + deps = [ + ":executions_csharp_grpc", + ":executions_csharp_proto", + ], +) + +# Open Source Packages +csharp_gapic_assembly_pkg( + name = "google-cloud-workflows-executions-v1-csharp", + deps = [ + ":executions_csharp_gapic", + ":executions_csharp_grpc", + ":executions_csharp_proto", + ], +) + +############################################################################## +# C++ +############################################################################## +# Put your C++ rules here diff --git a/third_party/googleapis/google/cloud/workflows/executions/v1/executions.proto b/third_party/googleapis/google/cloud/workflows/executions/v1/executions.proto new file mode 100644 index 000000000..583a5d900 --- /dev/null +++ b/third_party/googleapis/google/cloud/workflows/executions/v1/executions.proto @@ -0,0 +1,253 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.workflows.executions.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/workflows/executions/v1;executions"; +option java_multiple_files = true; +option java_outer_classname = "ExecutionsProto"; +option java_package = "com.google.cloud.workflows.executions.v1"; +option (google.api.resource_definition) = { + type: "workflows.googleapis.com/Workflow" + pattern: "projects/{project}/locations/{location}/workflows/{workflow}" +}; + +// Executions is used to start and manage running instances of +// [Workflows][google.cloud.workflows.v1.Workflow] called executions. +service Executions { + option (google.api.default_host) = "workflowexecutions.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + + // Returns a list of executions which belong to the workflow with + // the given name. The method returns executions of all workflow + // revisions. Returned executions are ordered by their start time (newest + // first). + rpc ListExecutions(ListExecutionsRequest) returns (ListExecutionsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/workflows/*}/executions" + }; + option (google.api.method_signature) = "parent"; + } + + // Creates a new execution using the latest revision of the given workflow. + rpc CreateExecution(CreateExecutionRequest) returns (Execution) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/workflows/*}/executions" + body: "execution" + }; + option (google.api.method_signature) = "parent,execution"; + } + + // Returns an execution of the given name. + rpc GetExecution(GetExecutionRequest) returns (Execution) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/workflows/*/executions/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Cancels an execution of the given name. + rpc CancelExecution(CancelExecutionRequest) returns (Execution) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/workflows/*/executions/*}:cancel" + body: "*" + }; + option (google.api.method_signature) = "name"; + } +} + +// A running instance of a +// [Workflow](/workflows/docs/reference/rest/v1/projects.locations.workflows). +message Execution { + option (google.api.resource) = { + type: "workflowexecutions.googleapis.com/Execution" + pattern: "projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}" + }; + + // Error describes why the execution was abnormally terminated. + message Error { + // Error payload returned by the execution, represented as a JSON string. + string payload = 1; + + // Human readable error context, helpful for debugging purposes. + string context = 2; + } + + // Describes the current state of the execution. More states may be added + // in the future. + enum State { + // Invalid state. + STATE_UNSPECIFIED = 0; + + // The execution is in progress. + ACTIVE = 1; + + // The execution finished successfully. + SUCCEEDED = 2; + + // The execution failed with an error. + FAILED = 3; + + // The execution was stopped intentionally. + CANCELLED = 4; + } + + // Output only. The resource name of the execution. + // Format: + // projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution} + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Marks the beginning of execution. + google.protobuf.Timestamp start_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Marks the end of execution, successful or not. + google.protobuf.Timestamp end_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Current state of the execution. + State state = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Input parameters of the execution represented as a JSON string. + // The size limit is 32KB. + string argument = 5; + + // Output only. Output of the execution represented as a JSON string. The + // value can only be present if the execution's state is `SUCCEEDED`. + string result = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The error which caused the execution to finish prematurely. + // The value is only present if the execution's state is `FAILED` + // or `CANCELLED`. + Error error = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Revision of the workflow this execution is using. + string workflow_revision_id = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request for the +// [ListExecutions][] +// method. +message ListExecutionsRequest { + // Required. Name of the workflow for which the executions should be listed. + // Format: projects/{project}/locations/{location}/workflows/{workflow} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "workflows.googleapis.com/Workflow" + } + ]; + + // Maximum number of executions to return per call. + // Max supported value depends on the selected Execution view: it's 10000 for + // BASIC and 100 for FULL. The default value used if the field is not + // specified is 100, regardless of the selected view. Values greater than + // the max value will be coerced down to it. + int32 page_size = 2; + + // A page token, received from a previous `ListExecutions` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListExecutions` must + // match the call that provided the page token. + string page_token = 3; + + // Optional. A view defining which fields should be filled in the returned executions. + // The API will default to the BASIC view. + ExecutionView view = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response for the +// [ListExecutions][google.cloud.workflows.executions.v1.Executions.ListExecutions] +// method. +message ListExecutionsResponse { + // The executions which match the request. + repeated Execution executions = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request for the +// [CreateExecution][google.cloud.workflows.executions.v1.Executions.CreateExecution] +// method. +message CreateExecutionRequest { + // Required. Name of the workflow for which an execution should be created. + // Format: projects/{project}/locations/{location}/workflows/{workflow} + // The latest revision of the workflow will be used. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "workflows.googleapis.com/Workflow" + } + ]; + + // Required. Execution to be created. + Execution execution = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request for the +// [GetExecution][google.cloud.workflows.executions.v1.Executions.GetExecution] +// method. +message GetExecutionRequest { + // Required. Name of the execution to be retrieved. + // Format: + // projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "workflowexecutions.googleapis.com/Execution" + } + ]; + + // Optional. A view defining which fields should be filled in the returned execution. + // The API will default to the FULL view. + ExecutionView view = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request for the +// [CancelExecution][google.cloud.workflows.executions.v1.Executions.CancelExecution] +// method. +message CancelExecutionRequest { + // Required. Name of the execution to be cancelled. + // Format: + // projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "workflowexecutions.googleapis.com/Execution" + } + ]; +} + +// Defines possible views for execution resource. +enum ExecutionView { + // The default / unset value. + EXECUTION_VIEW_UNSPECIFIED = 0; + + // Includes only basic metadata about the execution. + // Following fields are returned: name, start_time, end_time, state + // and workflow_revision_id. + BASIC = 1; + + // Includes all data. + FULL = 2; +} diff --git a/third_party/googleapis/google/cloud/workflows/executions/v1/executions_gapic.yaml b/third_party/googleapis/google/cloud/workflows/executions/v1/executions_gapic.yaml new file mode 100644 index 000000000..a034427ee --- /dev/null +++ b/third_party/googleapis/google/cloud/workflows/executions/v1/executions_gapic.yaml @@ -0,0 +1,18 @@ +type: com.google.api.codegen.ConfigProto +config_schema_version: 2.0.0 +language_settings: + java: + package_name: com.google.cloud.workflows.executions.v1 + python: + package_name: google.cloud.workflows.executions_v1.gapic + go: + package_name: cloud.google.com/go/workflows/executions/apiv1 + csharp: + package_name: Google.Cloud.Workflows.Executions.V1 + ruby: + package_name: Google::Cloud::Workflows::Executions::V1 + php: + package_name: Google\Cloud\Workflows\Executions\V1 + nodejs: + package_name: workflows-executions.v1 + domain_layer_location: google-cloud diff --git a/third_party/googleapis/google/cloud/workflows/executions/v1/executions_grpc_service_config.json b/third_party/googleapis/google/cloud/workflows/executions/v1/executions_grpc_service_config.json new file mode 100644 index 000000000..d3a0be98a --- /dev/null +++ b/third_party/googleapis/google/cloud/workflows/executions/v1/executions_grpc_service_config.json @@ -0,0 +1,23 @@ +{ + "methodConfig": [{ + "name": [ + { "service": "google.cloud.workflows.executions.v1", "method": "ListExecutions"}, + { "service": "google.cloud.workflows.executions.v1", "method": "GetExecution"} + ], + "timeout": "60s", + "retryPolicy": { + "maxAttempts": 5, + "initialBackoff": "1s", + "maxBackoff": "10s", + "backoffMultiplier": 1.3, + "retryableStatusCodes": ["UNAVAILABLE"] + } + }, + { + "name": [ + { "service": "google.cloud.workflows.executions.v1", "method": "CreateExecution" }, + { "service": "google.cloud.workflows.executions.v1", "method": "CancelExecution" } + ], + "timeout": "60s" + }] +} diff --git a/third_party/googleapis/google/cloud/workflows/executions/v1/workflowexecutions_v1.yaml b/third_party/googleapis/google/cloud/workflows/executions/v1/workflowexecutions_v1.yaml new file mode 100644 index 000000000..4c4814312 --- /dev/null +++ b/third_party/googleapis/google/cloud/workflows/executions/v1/workflowexecutions_v1.yaml @@ -0,0 +1,23 @@ +type: google.api.Service +config_version: 3 +name: workflowexecutions.googleapis.com +title: Workflow Executions API + +apis: +- name: google.cloud.workflows.executions.v1.Executions + +documentation: + summary: 'Execute workflows created with Workflows API.' + overview: 'Manages user-provided workflows.' + +backend: + rules: + - selector: 'google.cloud.workflows.executions.v1.Executions.*' + deadline: 60.0 + +authentication: + rules: + - selector: 'google.cloud.workflows.executions.v1.Executions.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform diff --git a/third_party/googleapis/google/cloud/workflows/executions/v1beta/BUILD.bazel b/third_party/googleapis/google/cloud/workflows/executions/v1beta/BUILD.bazel index 40f23df52..7a0b86524 100644 --- a/third_party/googleapis/google/cloud/workflows/executions/v1beta/BUILD.bazel +++ b/third_party/googleapis/google/cloud/workflows/executions/v1beta/BUILD.bazel @@ -56,10 +56,8 @@ java_grpc_library( java_gapic_library( name = "executions_java_gapic", - src = ":executions_proto_with_info", - gapic_yaml = "executions_gapic.yaml", - package = "google.cloud.workflows.executions.v1beta", - service_yaml = "workflowexecutions_v1beta.yaml", + srcs = [":executions_proto_with_info"], + grpc_service_config = "executions_grpc_service_config.json", test_deps = [ ":executions_java_grpc", ], @@ -136,22 +134,19 @@ go_gapic_assembly_pkg( ], ) - ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( name = "executions_py_gapic", srcs = [":executions_proto"], - grpc_service_config = "executions_grpc_service_config.json" + grpc_service_config = "executions_grpc_service_config.json", ) # Open Source Packages @@ -219,10 +214,11 @@ load( nodejs_gapic_library( name = "executions_nodejs_gapic", + package_name = "@google-cloud/workflows-executions", src = ":executions_proto_with_info", + extra_protoc_parameters = ["metadata"], gapic_yaml = "executions_gapic.yaml", package = "google.cloud.workflows.executions.v1beta", - package_name = "@google-cloud/workflows-executions", service_yaml = "workflowexecutions_v1beta.yaml", deps = [], ) @@ -241,7 +237,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -257,12 +253,19 @@ ruby_grpc_library( deps = [":executions_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "executions_ruby_gapic", - src = ":executions_proto_with_info", - gapic_yaml = "executions_gapic.yaml", - package = "google.cloud.workflows.executions.v1beta", - service_yaml = "workflowexecutions_v1beta.yaml", + srcs = [":executions_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-workflows-executions-v1beta", + "ruby-cloud-env-prefix=WORKFLOWS", + "ruby-cloud-product-url=https://cloud.google.com/workflows/", + "ruby-cloud-api-id=workflowexecutions.googleapis.com", + "ruby-cloud-api-shortname=workflowexecutions", + ], + grpc_service_config = "executions_grpc_service_config.json", + ruby_cloud_description = "Workflows link series of serverless tasks together in an order you define. Combine the power of Google Cloud's APIs, serverless products like Cloud Functions and Cloud Run, and calls to external APIs to create flexible serverless applications. Workflows requires no infrastructure management and scales seamlessly with demand, including scaling down to zero..", + ruby_cloud_title = "Workflows Executions V1beta", deps = [ ":executions_ruby_grpc", ":executions_ruby_proto", @@ -304,8 +307,8 @@ csharp_grpc_library( csharp_gapic_library( name = "executions_csharp_gapic", srcs = [":executions_proto_with_info"], - grpc_service_config = "executions_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "executions_grpc_service_config.json", deps = [ ":executions_csharp_grpc", ":executions_csharp_proto", diff --git a/third_party/googleapis/google/cloud/workflows/executions/v1beta/executions_gapic.yaml b/third_party/googleapis/google/cloud/workflows/executions/v1beta/executions_gapic.yaml index f4aac0374..ba295adfc 100644 --- a/third_party/googleapis/google/cloud/workflows/executions/v1beta/executions_gapic.yaml +++ b/third_party/googleapis/google/cloud/workflows/executions/v1beta/executions_gapic.yaml @@ -1,8 +1,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 language_settings: - java: - package_name: com.google.cloud.workflows.executions.v1beta python: package_name: google.cloud.workflows.executions_v1beta.gapic go: diff --git a/third_party/googleapis/google/cloud/workflows/v1/BUILD.bazel b/third_party/googleapis/google/cloud/workflows/v1/BUILD.bazel new file mode 100644 index 000000000..abfd91d78 --- /dev/null +++ b/third_party/googleapis/google/cloud/workflows/v1/BUILD.bazel @@ -0,0 +1,339 @@ +# This file was automatically generated by BuildFileGenerator +# https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/bazel + +# Most of the manual changes to this file will be overwritten. +# It's **only** allowed to change the following rule attribute values: +# - names of *_gapic_assembly_* rules +# - certain parameters of *_gapic_library rules, including but not limited to: +# * extra_protoc_parameters +# * extra_protoc_file_parameters +# The complete list of preserved parameters can be found in the source code. + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") +load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info") + +proto_library( + name = "workflows_proto", + srcs = [ + "workflows.proto", + ], + deps = [ + "//google/api:annotations_proto", + "//google/api:client_proto", + "//google/api:field_behavior_proto", + "//google/api:resource_proto", + "//google/longrunning:operations_proto", + "@com_google_protobuf//:field_mask_proto", + "@com_google_protobuf//:timestamp_proto", + ], +) + +proto_library_with_info( + name = "workflows_proto_with_info", + deps = [ + ":workflows_proto", + "//google/cloud:common_resources_proto", + ], +) + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_gapic_assembly_gradle_pkg", + "java_gapic_library", + "java_gapic_test", + "java_grpc_library", + "java_proto_library", +) + +java_proto_library( + name = "workflows_java_proto", + deps = [":workflows_proto"], +) + +java_grpc_library( + name = "workflows_java_grpc", + srcs = [":workflows_proto"], + deps = [":workflows_java_proto"], +) + +java_gapic_library( + name = "workflows_java_gapic", + srcs = [":workflows_proto_with_info"], + grpc_service_config = "workflows_grpc_service_config.json", + test_deps = [ + ":workflows_java_grpc", + ], + deps = [ + ":workflows_java_proto", + ], +) + +java_gapic_test( + name = "workflows_java_gapic_test_suite", + test_classes = [ + "com.google.cloud.workflows.v1.WorkflowsClientTest", + ], + runtime_deps = [":workflows_java_gapic_test"], +) + +# Open Source Packages +java_gapic_assembly_gradle_pkg( + name = "google-cloud-workflows-v1-java", + deps = [ + ":workflows_java_gapic", + ":workflows_java_grpc", + ":workflows_java_proto", + ":workflows_proto", + ], +) + +############################################################################## +# Go +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "go_gapic_assembly_pkg", + "go_gapic_library", + "go_proto_library", + "go_test", +) + +go_proto_library( + name = "workflows_go_proto", + compilers = ["@io_bazel_rules_go//proto:go_grpc"], + importpath = "google.golang.org/genproto/googleapis/cloud/workflows/v1", + protos = [":workflows_proto"], + deps = [ + "//google/api:annotations_go_proto", + "//google/longrunning:longrunning_go_proto", + ], +) + +go_gapic_library( + name = "workflows_go_gapic", + srcs = [":workflows_proto_with_info"], + grpc_service_config = "workflows_grpc_service_config.json", + importpath = "cloud.google.com/go/workflows/apiv1;workflows", + service_yaml = "workflows_v1.yaml", + deps = [ + ":workflows_go_proto", + "//google/longrunning:longrunning_go_proto", + "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", + ], +) + +go_test( + name = "workflows_go_gapic_test", + srcs = [":workflows_go_gapic_srcjar_test"], + embed = [":workflows_go_gapic"], + importpath = "cloud.google.com/go/workflows/apiv1", +) + +# Open Source Packages +go_gapic_assembly_pkg( + name = "gapi-cloud-workflows-v1-go", + deps = [ + ":workflows_go_gapic", + ":workflows_go_gapic_srcjar-test.srcjar", + ":workflows_go_proto", + ], +) + +############################################################################## +# Python +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "py_gapic_assembly_pkg", + "py_gapic_library", +) + +py_gapic_library( + name = "workflows_py_gapic", + srcs = [":workflows_proto"], + grpc_service_config = "workflows_grpc_service_config.json", +) + +# Open Source Packages +py_gapic_assembly_pkg( + name = "workflows-v1-py", + deps = [ + ":workflows_py_gapic", + ], +) + +############################################################################## +# PHP +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "php_gapic_assembly_pkg", + "php_gapic_library", + "php_grpc_library", + "php_proto_library", +) + +php_proto_library( + name = "workflows_php_proto", + deps = [":workflows_proto"], +) + +php_grpc_library( + name = "workflows_php_grpc", + srcs = [":workflows_proto"], + deps = [":workflows_php_proto"], +) + +php_gapic_library( + name = "workflows_php_gapic", + src = ":workflows_proto_with_info", + gapic_yaml = "workflows_gapic.yaml", + grpc_service_config = "workflows_grpc_service_config.json", + package = "google.cloud.workflows.v1", + service_yaml = "workflows_v1.yaml", + deps = [ + ":workflows_php_grpc", + ":workflows_php_proto", + ], +) + +# Open Source Packages +php_gapic_assembly_pkg( + name = "google-cloud-workflows-v1-php", + deps = [ + ":workflows_php_gapic", + ":workflows_php_grpc", + ":workflows_php_proto", + ], +) + +############################################################################## +# Node.js +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", +) + +nodejs_gapic_library( + name = "workflows_nodejs_gapic", + package_name = "@google-cloud/workflows", + src = ":workflows_proto_with_info", + extra_protoc_parameters = ["metadata"], + grpc_service_config = "workflows_grpc_service_config.json", + package = "google.cloud.workflows.v1", + service_yaml = "workflows_v1.yaml", + deps = [], +) + +nodejs_gapic_assembly_pkg( + name = "workflows-v1-nodejs", + deps = [ + ":workflows_nodejs_gapic", + ":workflows_proto", + ], +) + +############################################################################## +# Ruby +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "ruby_gapic_assembly_pkg", + "ruby_gapic_library", + "ruby_grpc_library", + "ruby_proto_library", +) + +ruby_proto_library( + name = "workflows_ruby_proto", + deps = [":workflows_proto"], +) + +ruby_grpc_library( + name = "workflows_ruby_grpc", + srcs = [":workflows_proto"], + deps = [":workflows_ruby_proto"], +) + +ruby_gapic_library( + name = "workflows_ruby_gapic", + src = ":workflows_proto_with_info", + gapic_yaml = "workflows_gapic.yaml", + grpc_service_config = "workflows_grpc_service_config.json", + package = "google.cloud.workflows.v1", + service_yaml = "workflows_v1.yaml", + deps = [ + ":workflows_ruby_grpc", + ":workflows_ruby_proto", + ], +) + +# Open Source Packages +ruby_gapic_assembly_pkg( + name = "google-cloud-workflows-v1-ruby", + deps = [ + ":workflows_ruby_gapic", + ":workflows_ruby_grpc", + ":workflows_ruby_proto", + ], +) + +############################################################################## +# C# +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "csharp_gapic_assembly_pkg", + "csharp_gapic_library", + "csharp_grpc_library", + "csharp_proto_library", +) + +csharp_proto_library( + name = "workflows_csharp_proto", + deps = [":workflows_proto"], +) + +csharp_grpc_library( + name = "workflows_csharp_grpc", + srcs = [":workflows_proto"], + deps = [":workflows_csharp_proto"], +) + +csharp_gapic_library( + name = "workflows_csharp_gapic", + srcs = [":workflows_proto_with_info"], + common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "workflows_grpc_service_config.json", + deps = [ + ":workflows_csharp_grpc", + ":workflows_csharp_proto", + ], +) + +# Open Source Packages +csharp_gapic_assembly_pkg( + name = "google-cloud-workflows-v1-csharp", + deps = [ + ":workflows_csharp_gapic", + ":workflows_csharp_grpc", + ":workflows_csharp_proto", + ], +) + +############################################################################## +# C++ +############################################################################## +# Put your C++ rules here diff --git a/third_party/googleapis/google/cloud/workflows/v1/workflows.proto b/third_party/googleapis/google/cloud/workflows/v1/workflows.proto new file mode 100644 index 000000000..7e46c2f69 --- /dev/null +++ b/third_party/googleapis/google/cloud/workflows/v1/workflows.proto @@ -0,0 +1,314 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.workflows.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "google.golang.org/genproto/googleapis/cloud/workflows/v1;workflows"; +option java_multiple_files = true; +option java_outer_classname = "WorkflowsProto"; +option java_package = "com.google.cloud.workflows.v1"; + +// Workflows is used to deploy and execute workflow programs. +// Workflows makes sure the program executes reliably, despite hardware and +// networking interruptions. +service Workflows { + option (google.api.default_host) = "workflows.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + + // Lists Workflows in a given project and location. + // The default order is not specified. + rpc ListWorkflows(ListWorkflowsRequest) returns (ListWorkflowsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/workflows" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single Workflow. + rpc GetWorkflow(GetWorkflowRequest) returns (Workflow) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/workflows/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new workflow. If a workflow with the specified name already + // exists in the specified project and location, the long running operation + // will return [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS] error. + rpc CreateWorkflow(CreateWorkflowRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/workflows" + body: "workflow" + }; + option (google.api.method_signature) = "parent,workflow,workflow_id"; + option (google.longrunning.operation_info) = { + response_type: "Workflow" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a workflow with the specified name. + // This method also cancels and deletes all running executions of the + // workflow. + rpc DeleteWorkflow(DeleteWorkflowRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/workflows/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Updates an existing workflow. + // Running this method has no impact on already running executions of the + // workflow. A new revision of the workflow may be created as a result of a + // successful update operation. In that case, such revision will be used + // in new workflow executions. + rpc UpdateWorkflow(UpdateWorkflowRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{workflow.name=projects/*/locations/*/workflows/*}" + body: "workflow" + }; + option (google.api.method_signature) = "workflow,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Workflow" + metadata_type: "OperationMetadata" + }; + } +} + +// Workflow program to be executed by Workflows. +message Workflow { + option (google.api.resource) = { + type: "workflows.googleapis.com/Workflow" + pattern: "projects/{project}/locations/{location}/workflows/{workflow}" + }; + + // Describes the current state of workflow deployment. More states may be + // added in the future. + enum State { + // Invalid state. + STATE_UNSPECIFIED = 0; + + // The workflow has been deployed successfully and is serving. + ACTIVE = 1; + } + + // The resource name of the workflow. + // Format: projects/{project}/locations/{location}/workflows/{workflow} + string name = 1; + + // Description of the workflow provided by the user. + // Must be at most 1000 unicode characters long. + string description = 2; + + // Output only. State of the workflow deployment. + State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The revision of the workflow. + // A new revision of a workflow is created as a result of updating the + // following fields of a workflow: + // - `source_code` + // - `service_account` + // The format is "000001-a4d", where the first 6 characters define + // the zero-padded revision ordinal number. They are followed by a hyphen and + // 3 hexadecimal random characters. + string revision_id = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp of when the workflow was created. + google.protobuf.Timestamp create_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The last update timestamp of the workflow. + google.protobuf.Timestamp update_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp that the latest revision of the workflow + // was created. + google.protobuf.Timestamp revision_create_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Labels associated with this workflow. + // Labels can contain at most 64 entries. Keys and values can be no longer + // than 63 characters and can only contain lowercase letters, numeric + // characters, underscores and dashes. Label keys must start with a letter. + // International characters are allowed. + map labels = 8; + + // Name of the service account associated with the latest workflow version. + // This service account represents the identity of the workflow and determines + // what permissions the workflow has. + // Format: projects/{project}/serviceAccounts/{account} + // + // Using `-` as a wildcard for the `{project}` will infer the project from + // the account. The `{account}` value can be the `email` address or the + // `unique_id` of the service account. + // + // If not provided, workflow will use the project's default service account. + // Modifying this field for an existing workflow results in a new workflow + // revision. + string service_account = 9; + + // Required. Location of the workflow source code. + // Modifying this field for an existing workflow results in a new workflow + // revision. + oneof source_code { + // Workflow code to be executed. The size limit is 32KB. + string source_contents = 10; + } +} + +// Request for the +// [ListWorkflows][google.cloud.workflows.v1.Workflows.ListWorkflows] +// method. +message ListWorkflowsRequest { + // Required. Project and location from which the workflows should be listed. + // Format: projects/{project}/locations/{location} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Maximum number of workflows to return per call. The service may return + // fewer than this value. If the value is not specified, a default value of + // 500 will be used. The maximum permitted value is 1000 and values greater + // than 1000 will be coerced down to 1000. + int32 page_size = 2; + + // A page token, received from a previous `ListWorkflows` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListWorkflows` must + // match the call that provided the page token. + string page_token = 3; + + // Filter to restrict results to specific workflows. + string filter = 4; + + // Comma-separated list of fields that that specify the order of the results. + // Default sorting order for a field is ascending. To specify descending order + // for a field, append a " desc" suffix. + // If not specified, the results will be returned in an unspecified order. + string order_by = 5; +} + +// Response for the +// [ListWorkflows][google.cloud.workflows.v1.Workflows.ListWorkflows] +// method. +message ListWorkflowsResponse { + // The workflows which match the request. + repeated Workflow workflows = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Unreachable resources. + repeated string unreachable = 3; +} + +// Request for the +// [GetWorkflow][google.cloud.workflows.v1.Workflows.GetWorkflow] method. +message GetWorkflowRequest { + // Required. Name of the workflow which information should be retrieved. + // Format: projects/{project}/locations/{location}/workflows/{workflow} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "workflows.googleapis.com/Workflow" + } + ]; +} + +// Request for the +// [CreateWorkflow][google.cloud.workflows.v1.Workflows.CreateWorkflow] +// method. +message CreateWorkflowRequest { + // Required. Project and location in which the workflow should be created. + // Format: projects/{project}/locations/{location} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. Workflow to be created. + Workflow workflow = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The ID of the workflow to be created. It has to fulfill the + // following requirements: + // + // * Must contain only letters, numbers, underscores and hyphens. + // * Must start with a letter. + // * Must be between 1-64 characters. + // * Must end with a number or a letter. + // * Must be unique within the customer project and location. + string workflow_id = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request for the +// [DeleteWorkflow][google.cloud.workflows.v1.Workflows.DeleteWorkflow] +// method. +message DeleteWorkflowRequest { + // Required. Name of the workflow to be deleted. + // Format: projects/{project}/locations/{location}/workflows/{workflow} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "workflows.googleapis.com/Workflow" + } + ]; +} + +// Request for the +// [UpdateWorkflow][google.cloud.workflows.v1.Workflows.UpdateWorkflow] +// method. +message UpdateWorkflowRequest { + // Required. Workflow to be updated. + Workflow workflow = 1 [(google.api.field_behavior) = REQUIRED]; + + // List of fields to be updated. If not present, the entire workflow + // will be updated. + google.protobuf.FieldMask update_mask = 2; +} + +// Represents the metadata of the long-running operation. +message OperationMetadata { + // The time the operation was created. + google.protobuf.Timestamp create_time = 1; + + // The time the operation finished running. + google.protobuf.Timestamp end_time = 2; + + // Server-defined resource path for the target of the operation. + string target = 3; + + // Name of the verb executed by the operation. + string verb = 4; + + // API version used to start the operation. + string api_version = 5; +} diff --git a/third_party/googleapis/google/cloud/workflows/v1/workflows_gapic.yaml b/third_party/googleapis/google/cloud/workflows/v1/workflows_gapic.yaml new file mode 100644 index 000000000..1add6556f --- /dev/null +++ b/third_party/googleapis/google/cloud/workflows/v1/workflows_gapic.yaml @@ -0,0 +1,18 @@ +type: com.google.api.codegen.ConfigProto +config_schema_version: 2.0.0 +language_settings: + java: + package_name: com.google.cloud.workflows.v1 + python: + package_name: google.cloud.workflows_v1.gapic + go: + package_name: cloud.google.com/go/workflows/apiv1 + csharp: + package_name: Google.Cloud.Workflows.V1 + ruby: + package_name: Google::Cloud::Workflows::V1 + php: + package_name: Google\Cloud\Workflows\V1 + nodejs: + package_name: workflows.v1 + domain_layer_location: google-cloud diff --git a/third_party/googleapis/google/cloud/workflows/v1/workflows_grpc_service_config.json b/third_party/googleapis/google/cloud/workflows/v1/workflows_grpc_service_config.json new file mode 100644 index 000000000..b00ed304a --- /dev/null +++ b/third_party/googleapis/google/cloud/workflows/v1/workflows_grpc_service_config.json @@ -0,0 +1,24 @@ +{ + "methodConfig": [{ + "name": [ + { "service": "google.cloud.workflows.v1", "method": "ListWorkflows"}, + { "service": "google.cloud.workflows.v1", "method": "GetWorkflow"} + ], + "timeout": "60s", + "retryPolicy": { + "maxAttempts": 5, + "initialBackoff": "1s", + "maxBackoff": "10s", + "backoffMultiplier": 1.3, + "retryableStatusCodes": ["UNAVAILABLE"] + } + }, + { + "name": [ + { "service": "google.cloud.workflows.v1", "method": "CreateWorkflow" }, + { "service": "google.cloud.workflows.v1", "method": "DeleteWorkflow" }, + { "service": "google.cloud.workflows.v1", "method": "UpdateWorkflow" } + ], + "timeout": "60s" + }] +} diff --git a/third_party/googleapis/google/cloud/workflows/v1/workflows_v1.yaml b/third_party/googleapis/google/cloud/workflows/v1/workflows_v1.yaml new file mode 100644 index 000000000..361786c15 --- /dev/null +++ b/third_party/googleapis/google/cloud/workflows/v1/workflows_v1.yaml @@ -0,0 +1,35 @@ +type: google.api.Service +config_version: 3 +name: workflows.googleapis.com +title: Workflows API + +apis: +- name: google.cloud.workflows.v1.Workflows + +types: +- name: google.cloud.workflows.v1.OperationMetadata + +documentation: + summary: |- + Orchestrate Workflows that invoke Google Cloud APIs, SaaS APIs or private + API endpoints. + +backend: + rules: + - selector: 'google.cloud.workflows.v1.Workflows.*' + deadline: 60.0 + - selector: 'google.longrunning.Operations.*' + deadline: 60.0 + - selector: google.longrunning.Operations.GetOperation + deadline: 5.0 + +authentication: + rules: + - selector: 'google.cloud.workflows.v1.Workflows.*' + 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/third_party/googleapis/google/cloud/workflows/v1beta/BUILD.bazel b/third_party/googleapis/google/cloud/workflows/v1beta/BUILD.bazel index 23afb82ec..af432d472 100644 --- a/third_party/googleapis/google/cloud/workflows/v1beta/BUILD.bazel +++ b/third_party/googleapis/google/cloud/workflows/v1beta/BUILD.bazel @@ -58,10 +58,8 @@ java_grpc_library( java_gapic_library( name = "workflows_java_gapic", - src = ":workflows_proto_with_info", - gapic_yaml = "workflows_gapic.yaml", - package = "google.cloud.workflows.v1beta", - service_yaml = "workflows_v1beta.yaml", + srcs = [":workflows_proto_with_info"], + grpc_service_config = "workflows_grpc_service_config.json", test_deps = [ ":workflows_java_grpc", ], @@ -145,18 +143,16 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( name = "workflows_py_gapic", srcs = [":workflows_proto"], - grpc_service_config = "workflows_grpc_service_config.json" + grpc_service_config = "workflows_grpc_service_config.json", ) # Open Source Packages @@ -222,10 +218,11 @@ load( nodejs_gapic_library( name = "workflows_nodejs_gapic", + package_name = "@google-cloud/workflows", src = ":workflows_proto_with_info", + extra_protoc_parameters = ["metadata"], gapic_yaml = "workflows_gapic.yaml", package = "google.cloud.workflows.v1beta", - package_name = "@google-cloud/workflows", service_yaml = "workflows_v1beta.yaml", deps = [], ) @@ -244,7 +241,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -260,12 +257,19 @@ ruby_grpc_library( deps = [":workflows_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "workflows_ruby_gapic", - src = ":workflows_proto_with_info", - gapic_yaml = "workflows_gapic.yaml", - package = "google.cloud.workflows.v1beta", - service_yaml = "workflows_v1beta.yaml", + srcs = [":workflows_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-workflows-v1beta", + "ruby-cloud-env-prefix=WORKFLOWS", + "ruby-cloud-product-url=https://cloud.google.com/workflows/", + "ruby-cloud-api-id=workflows.googleapis.com", + "ruby-cloud-api-shortname=workflows", + ], + grpc_service_config = "workflows_grpc_service_config.json", + ruby_cloud_description = "Workflows link series of serverless tasks together in an order you define. Combine the power of Google Cloud's APIs, serverless products like Cloud Functions and Cloud Run, and calls to external APIs to create flexible serverless applications. Workflows requires no infrastructure management and scales seamlessly with demand, including scaling down to zero..", + ruby_cloud_title = "Workflows V1beta", deps = [ ":workflows_ruby_grpc", ":workflows_ruby_proto", @@ -307,8 +311,8 @@ csharp_grpc_library( csharp_gapic_library( name = "workflows_csharp_gapic", srcs = [":workflows_proto_with_info"], - grpc_service_config = "workflows_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "workflows_grpc_service_config.json", deps = [ ":workflows_csharp_grpc", ":workflows_csharp_proto", diff --git a/third_party/googleapis/google/cloud/workflows/v1beta/workflows_gapic.yaml b/third_party/googleapis/google/cloud/workflows/v1beta/workflows_gapic.yaml index 9fa0c449b..a2f29d893 100644 --- a/third_party/googleapis/google/cloud/workflows/v1beta/workflows_gapic.yaml +++ b/third_party/googleapis/google/cloud/workflows/v1beta/workflows_gapic.yaml @@ -1,8 +1,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 language_settings: - java: - package_name: com.google.cloud.workflows.v1beta python: package_name: google.cloud.workflows_v1beta.gapic go: diff --git a/third_party/googleapis/google/container/artman_container_v1.yaml b/third_party/googleapis/google/container/artman_container_v1.yaml deleted file mode 100644 index 30121e141..000000000 --- a/third_party/googleapis/google/container/artman_container_v1.yaml +++ /dev/null @@ -1,35 +0,0 @@ -common: - api_name: container - api_version: v1 - organization_name: google-cloud - proto_deps: - - name: google-common-protos - src_proto_paths: - - v1 - service_yaml: v1/container_v1.yaml - gapic_yaml: v1/container_gapic.yaml - proto_package: google.container.v1 -artifacts: -- name: gapic_config - type: GAPIC_CONFIG -- name: java_gapic - type: GAPIC - language: JAVA -- name: python_gapic - type: GAPIC - language: PYTHON -- name: nodejs_gapic - type: GAPIC - language: NODEJS -- name: php_gapic - type: GAPIC - language: PHP -- name: go_gapic - type: GAPIC - language: GO -- name: ruby_gapic - type: GAPIC - language: RUBY -- name: csharp_gapic - type: GAPIC - language: CSHARP diff --git a/third_party/googleapis/google/container/artman_container_v1beta1.yaml b/third_party/googleapis/google/container/artman_container_v1beta1.yaml deleted file mode 100644 index befe0780a..000000000 --- a/third_party/googleapis/google/container/artman_container_v1beta1.yaml +++ /dev/null @@ -1,35 +0,0 @@ -common: - api_name: container - api_version: v1beta1 - organization_name: google-cloud - proto_deps: - - name: google-common-protos - src_proto_paths: - - v1beta1 - service_yaml: v1beta1/container_v1beta1.yaml - gapic_yaml: v1beta1/container_gapic.yaml - proto_package: google.container.v1beta1 -artifacts: -- name: gapic_config - type: GAPIC_CONFIG -- name: java_gapic - type: GAPIC - language: JAVA -- name: python_gapic - type: GAPIC - language: PYTHON -- name: nodejs_gapic - type: GAPIC - language: NODEJS -- name: php_gapic - type: GAPIC - language: PHP -- name: go_gapic - type: GAPIC - language: GO -- name: ruby_gapic - type: GAPIC - language: RUBY -- name: csharp_gapic - type: GAPIC - language: CSHARP diff --git a/third_party/googleapis/google/container/v1/BUILD.bazel b/third_party/googleapis/google/container/v1/BUILD.bazel index 87709f1d8..0c1a8a2b2 100644 --- a/third_party/googleapis/google/container/v1/BUILD.bazel +++ b/third_party/googleapis/google/container/v1/BUILD.bazel @@ -56,11 +56,9 @@ java_grpc_library( java_gapic_library( name = "container_java_gapic", - src = ":container_proto_with_info", + srcs = [":container_proto_with_info"], gapic_yaml = "container_gapic.yaml", grpc_service_config = "container_grpc_service_config.json", - package = "google.container.v1", - service_yaml = "container_v1.yaml", test_deps = [ ":container_java_grpc", ], @@ -140,12 +138,10 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -219,6 +215,7 @@ nodejs_gapic_library( name = "container_nodejs_gapic", package_name = "@google-cloud/container", src = ":container_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "container_grpc_service_config.json", package = "google.container.v1", service_yaml = "container_v1.yaml", @@ -239,7 +236,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -255,12 +252,19 @@ ruby_grpc_library( deps = [":container_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "container_ruby_gapic", - src = ":container_proto_with_info", - gapic_yaml = "container_gapic.yaml", - package = "google.container.v1", - service_yaml = "container_v1.yaml", + srcs = [":container_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-container-v1", + "ruby-cloud-env-prefix=CONTAINER", + "ruby-cloud-product-url=https://cloud.google.com/kubernetes-engine", + "ruby-cloud-api-id=container.googleapis.com", + "ruby-cloud-api-shortname=container", + ], + grpc_service_config = "container_grpc_service_config.json", + ruby_cloud_description = "Builds and manages container-based applications, powered by the open source Kubernetes technology.", + ruby_cloud_title = "Kubernetes Engine V1", deps = [ ":container_ruby_grpc", ":container_ruby_proto", @@ -302,8 +306,8 @@ csharp_grpc_library( csharp_gapic_library( name = "container_csharp_gapic", srcs = [":container_proto_with_info"], - grpc_service_config = "container_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "container_grpc_service_config.json", deps = [ ":container_csharp_grpc", ":container_csharp_proto", diff --git a/third_party/googleapis/google/container/v1/cluster_service.proto b/third_party/googleapis/google/container/v1/cluster_service.proto index 6363fc949..040173ec2 100644 --- a/third_party/googleapis/google/container/v1/cluster_service.proto +++ b/third_party/googleapis/google/container/v1/cluster_service.proto @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,7 +11,6 @@ // WITHOUT 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"; @@ -65,7 +64,8 @@ service ClusterManager { // Compute Engine instances. // // By default, the cluster is created in the project's - // [default network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). + // [default + // network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). // // One firewall is added for the cluster. After cluster creation, // the Kubelet creates routes for each node to allow the containers @@ -168,7 +168,11 @@ service ClusterManager { } // Sets the locations for a specific cluster. + // Deprecated. Use + // [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/update) + // instead. rpc SetLocations(SetLocationsRequest) returns (Operation) { + option deprecated = true; option (google.api.http) = { post: "/v1/{name=projects/*/locations/*/clusters/*}:setLocations" body: "*" @@ -249,6 +253,7 @@ service ClusterManager { } }; option (google.api.method_signature) = "project_id,zone,operation_id"; + option (google.api.method_signature) = "name"; } // Cancels the specified operation. @@ -277,6 +282,16 @@ service ClusterManager { option (google.api.method_signature) = "name"; } + // Gets the public component of the cluster signing keys in + // JSON Web Key format. + // This API is not yet intended for general use, and is not available for all + // clusters. + rpc GetJSONWebKeys(GetJSONWebKeysRequest) returns (GetJSONWebKeysResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/clusters/*}/jwks" + }; + } + // Lists the node pools for a cluster. rpc ListNodePools(ListNodePoolsRequest) returns (ListNodePoolsResponse) { option (google.api.http) = { @@ -459,11 +474,9 @@ service ClusterManager { // Parameters that describe the nodes in a cluster. message NodeConfig { // The name of a Google Compute Engine [machine - // type](https://cloud.google.com/compute/docs/machine-types) (e.g. - // `n1-standard-1`). + // type](https://cloud.google.com/compute/docs/machine-types) // - // If unspecified, the default machine type is - // `n1-standard-1`. + // If unspecified, the default machine type is `e2-medium`. string machine_type = 1; // Size of the disk attached to each node, specified in GB. @@ -482,41 +495,46 @@ message NodeConfig { // persistent storage on your nodes. // * `https://www.googleapis.com/auth/devstorage.read_only` is required for // communicating with **gcr.io** - // (the [Google Container Registry](https://cloud.google.com/container-registry/)). + // (the [Google Container + // Registry](https://cloud.google.com/container-registry/)). // // If unspecified, no scopes are added, unless Cloud Logging or Cloud // Monitoring are enabled, in which case their required scopes will be added. repeated string oauth_scopes = 3; - // The Google Cloud Platform Service Account to be used by the node VMs. If - // no Service Account is specified, the "default" service account is used. + // The Google Cloud Platform Service Account to be used by the node VMs. + // Specify the email address of the Service Account; otherwise, if no Service + // Account is specified, the "default" service account is used. string service_account = 9; // The metadata key/value pairs assigned to instances in the cluster. // - // Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes + // Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes // in length. These are reflected as part of a URL in the metadata server. // Additionally, to avoid ambiguity, keys must not conflict with any other // metadata keys for the project or be one of the reserved keys: - // "cluster-location" - // "cluster-name" - // "cluster-uid" - // "configure-sh" - // "containerd-configure-sh" - // "enable-os-login" - // "gci-update-strategy" - // "gci-ensure-gke-docker" - // "instance-template" - // "kube-env" - // "startup-script" - // "user-data" - // "disable-address-manager" - // "windows-startup-script-ps1" - // "common-psm1" - // "k8s-node-setup-psm1" - // "install-ssh-psm1" - // "user-profile-psm1" - // "serial-port-logging-enable" + // - "cluster-location" + // - "cluster-name" + // - "cluster-uid" + // - "configure-sh" + // - "containerd-configure-sh" + // - "enable-os-login" + // - "gci-ensure-gke-docker" + // - "gci-metrics-enabled" + // - "gci-update-strategy" + // - "instance-template" + // - "kube-env" + // - "startup-script" + // - "user-data" + // - "disable-address-manager" + // - "windows-startup-script-ps1" + // - "common-psm1" + // - "k8s-node-setup-psm1" + // - "install-ssh-psm1" + // - "user-profile-psm1" + // + // The following keys are reserved for Windows nodes: + // - "serial-port-logging-enable" // // Values are free-form strings, and only have meaning as interpreted by // the image running in the instance. The only restriction placed on them is @@ -563,7 +581,8 @@ message NodeConfig { // support for GPUs. repeated AcceleratorConfig accelerators = 11; - // Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd') + // Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or + // 'pd-balanced') // // If unspecified, the default disk type is 'pd-standard' string disk_type = 12; @@ -571,20 +590,47 @@ message NodeConfig { // Minimum CPU platform to be used by this instance. The instance may be // scheduled on the specified or newer CPU platform. Applicable values are the // friendly names of CPU platforms, such as - // minCpuPlatform: "Intel Haswell" or - // minCpuPlatform: "Intel Sandy Bridge". For more + // `minCpuPlatform: "Intel Haswell"` or + // `minCpuPlatform: "Intel Sandy Bridge"`. For more // information, read [how to specify min CPU // platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) string min_cpu_platform = 13; + // The workload metadata configuration for this node. + WorkloadMetadataConfig workload_metadata_config = 14; + // List of kubernetes taints to be applied to each node. // // For more information, including usage and the valid values, see: // https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ repeated NodeTaint taints = 15; + // Sandbox configuration for this node. + SandboxConfig sandbox_config = 17; + + // Setting this field will assign instances of this + // pool to run on the specified node group. This is useful for running + // workloads on [sole tenant + // nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes). + string node_group = 18; + + // The optional reservation affinity. Setting this field will apply + // the specified [Zonal Compute + // Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) + // to this node pool. + ReservationAffinity reservation_affinity = 19; + // Shielded Instance options. ShieldedInstanceConfig shielded_instance_config = 20; + + // + // The Customer Managed Encryption Key used to encrypt the boot disk attached + // to each node in the node pool. This should be of the form + // projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. + // For more information about protecting resources with Cloud KMS Keys please + // see: + // https://cloud.google.com/compute/docs/disks/customer-managed-encryption + string boot_disk_kms_key = 23; } // A set of Shielded Instance options. @@ -605,11 +651,59 @@ message ShieldedInstanceConfig { bool enable_integrity_monitoring = 2; } +// SandboxConfig contains configurations of the sandbox to use for the node. +message SandboxConfig { + // Possible types of sandboxes. + enum Type { + // Default value. This should not be used. + UNSPECIFIED = 0; + + // Run sandbox using gvisor. + GVISOR = 1; + } + + // Type of the sandbox to use for the node. + Type type = 2; +} + +// [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) +// is the configuration of desired reservation which instances could take +// capacity from. +message ReservationAffinity { + // Indicates whether to consume capacity from a reservation or not. + enum Type { + // Default value. This should not be used. + UNSPECIFIED = 0; + + // Do not consume from any reserved capacity. + NO_RESERVATION = 1; + + // Consume any reservation available. + ANY_RESERVATION = 2; + + // Must consume from a specific reservation. Must specify key value fields + // for specifying the reservations. + SPECIFIC_RESERVATION = 3; + } + + // Corresponds to the type of reservation consumption. + Type consume_reservation_type = 1; + + // Corresponds to the label key of a reservation resource. To target a + // SPECIFIC_RESERVATION by name, specify "googleapis.com/reservation-name" as + // the key and specify the name of your reservation as its value. + string key = 2; + + // Corresponds to the label value(s) of reservation resource(s). + repeated string values = 3; +} + // Kubernetes taint is comprised of three fields: key, value, and effect. Effect // can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute. // -// For more information, including usage and the valid values, see: -// https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ +// See +// [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration) +// for more information, including usage and the valid values. message NodeTaint { // Possible values for Effect in taint. enum Effect { @@ -643,13 +737,23 @@ message MasterAuth { // The username to use for HTTP basic authentication to the master endpoint. // For clusters v1.6.0 and later, basic authentication can be disabled by // leaving username unspecified (or setting it to the empty string). - string username = 1; + // + // Warning: basic authentication is deprecated, and will be removed in GKE + // control plane versions 1.19 and newer. For a list of recommended + // authentication methods, see: + // https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication + string username = 1 [deprecated = true]; // The password to use for HTTP basic authentication to the master endpoint. // Because the master endpoint is open to the Internet, you should create a // strong password. If a password is provided for cluster creation, username // must be non-empty. - string password = 2; + // + // Warning: basic authentication is deprecated, and will be removed in GKE + // control plane versions 1.19 and newer. For a list of recommended + // authentication methods, see: + // https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication + string password = 2 [deprecated = true]; // Configuration for client certificate authentication on the cluster. For // clusters before v1.12, if no configuration is specified, a client @@ -702,6 +806,13 @@ message AddonsConfig { // Configuration for the Cloud Run addon, which allows the user to use a // managed Knative service. CloudRunConfig cloud_run_config = 7; + + // Configuration for NodeLocalDNS, a dns cache running on cluster nodes + DnsCacheConfig dns_cache_config = 8; + + // Configuration for the ConfigConnector add-on, a Kubernetes + // extension to manage hosted GCP services through the Kubernetes API + ConfigConnectorConfig config_connector_config = 10; } // Configuration options for the HTTP (L7) load balancing controller addon, @@ -718,8 +829,8 @@ message HttpLoadBalancing { // has based on the resource usage of the existing pods. message HorizontalPodAutoscaling { // Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. - // When enabled, it ensures that a Heapster pod is running in the cluster, - // which is also used by the Cloud Monitoring service. + // When enabled, it ensures that metrics are collected into Stackdriver + // Monitoring. bool disabled = 1; } @@ -737,6 +848,18 @@ message NetworkPolicyConfig { bool disabled = 1; } +// Configuration for NodeLocal DNSCache +message DnsCacheConfig { + // Whether NodeLocal DNSCache is enabled for this cluster. + bool enabled = 1; +} + +// Configuration for controlling master global access settings. +message PrivateClusterMasterGlobalAccessConfig { + // Whenever master is accessible globally or not. + bool enabled = 1; +} + // Configuration options for private clusters. message PrivateClusterConfig { // Whether nodes have internal IP addresses only. If enabled, all nodes are @@ -758,6 +881,12 @@ message PrivateClusterConfig { // Output only. The external IP address of this cluster's master endpoint. string public_endpoint = 5; + + // Output only. The peering name in the customer VPC used by this cluster. + string peering_name = 7; + + // Controls master global access settings. + PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; } // Configuration for returning group information from authenticators. @@ -773,8 +902,29 @@ message AuthenticatorGroupsConfig { // Configuration options for the Cloud Run feature. message CloudRunConfig { + // Load balancer type of ingress service of Cloud Run. + enum LoadBalancerType { + // Load balancer type for Cloud Run is unspecified. + LOAD_BALANCER_TYPE_UNSPECIFIED = 0; + + // Install external load balancer for Cloud Run. + LOAD_BALANCER_TYPE_EXTERNAL = 1; + + // Install internal load balancer for Cloud Run. + LOAD_BALANCER_TYPE_INTERNAL = 2; + } + // Whether Cloud Run addon is enabled for this cluster. bool disabled = 1; + + // Which load balancer type is installed for Cloud Run. + LoadBalancerType load_balancer_type = 3; +} + +// Configuration options for the Config Connector add-on. +message ConfigConnectorConfig { + // Whether Cloud Connector is enabled for this cluster. + bool enabled = 1; } // Configuration options for the master authorized networks feature. Enabled @@ -838,6 +988,9 @@ message BinaryAuthorization { // Configuration for controlling how IPs are allocated in the cluster. message IPAllocationPolicy { // Whether alias IPs will be used for pod IPs in the cluster. + // This is used in conjunction with use_routes. It cannot + // be true if use_routes is true. If both use_ip_aliases and use_routes are + // false, then the server picks the default IP allocation mode bool use_ip_aliases = 1; // Whether a new subnetwork will be created automatically for the cluster. @@ -943,6 +1096,12 @@ message IPAllocationPolicy { // `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range // to use. string tpu_ipv4_cidr_block = 13; + + // Whether routes will be used for pod IPs in the cluster. + // This is used in conjunction with use_ip_aliases. It cannot be true if + // use_ip_aliases is true. If both use_ip_aliases and use_routes are false, + // then the server picks the default IP allocation mode + bool use_routes = 15; } // A Google Kubernetes Engine cluster. @@ -967,8 +1126,8 @@ message Cluster { // The STOPPING state indicates the cluster is being deleted. STOPPING = 4; - // The ERROR state indicates the cluster may be unusable. Details - // can be found in the `statusMessage` field. + // The ERROR state indicates the cluster is unusable. It will be + // automatically deleted. Details can be found in the `statusMessage` field. ERROR = 5; // The DEGRADED state indicates the cluster requires user action to restore @@ -1023,25 +1182,33 @@ message Cluster { // The logging service the cluster should use to write logs. // Currently available options: // - // * "logging.googleapis.com/kubernetes" - the Google Cloud Logging - // service with Kubernetes-native resource model - // * `logging.googleapis.com` - the Google Cloud Logging service. + // * `logging.googleapis.com/kubernetes` - The Cloud Logging + // service with a Kubernetes-native resource model + // * `logging.googleapis.com` - The legacy Cloud Logging service (no longer + // available as of GKE 1.15). // * `none` - no logs will be exported from the cluster. - // * if left as an empty string,`logging.googleapis.com` will be used. + // + // If left as an empty string,`logging.googleapis.com/kubernetes` will be + // used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. string logging_service = 6; // The monitoring service the cluster should use to write metrics. // Currently available options: // - // * `monitoring.googleapis.com` - the Google Cloud Monitoring service. - // * `none` - no metrics will be exported from the cluster. - // * if left as an empty string, `monitoring.googleapis.com` will be used. + // * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring + // service with a Kubernetes-native resource model + // * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no + // longer available as of GKE 1.15). + // * `none` - No metrics will be exported from the cluster. + // + // If left as an empty string,`monitoring.googleapis.com/kubernetes` will be + // used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. string monitoring_service = 7; // The name of the Google Compute Engine - // [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which the - // cluster is connected. If left unspecified, the `default` network - // will be used. + // [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) + // to which the cluster is connected. If left unspecified, the `default` + // network will be used. string network = 8; // The IP address range of the container pods in this cluster, in @@ -1054,8 +1221,8 @@ message Cluster { AddonsConfig addons_config = 10; // The name of the Google Compute Engine - // [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which the - // cluster is connected. + // [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which + // the cluster is connected. string subnetwork = 11; // The node pools associated with this cluster. @@ -1064,8 +1231,16 @@ message Cluster { repeated NodePool node_pools = 12; // The list of Google Compute Engine - // [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes - // should be located. + // [zones](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster's nodes should be located. + // + // This field provides a default value if + // [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) + // are not specified during node pool creation. + // + // Warning: changing cluster locations will update the + // [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) + // of all node pools and will result in nodes being added and/or removed. repeated string locations = 13; // Kubernetes alpha features are enabled on this cluster. This includes alpha @@ -1128,13 +1303,22 @@ message Cluster { // Cluster-level Vertical Pod Autoscaling configuration. VerticalPodAutoscaling vertical_pod_autoscaling = 39; + // Shielded Nodes configuration. + ShieldedNodes shielded_nodes = 40; + + // Release channel configuration. + ReleaseChannel release_channel = 41; + + // Configuration for the use of Kubernetes Service Accounts in GCP IAM + // policies. + WorkloadIdentityConfig workload_identity_config = 43; + // [Output only] Server-defined URL for the resource. string self_link = 100; // [Output only] The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field is deprecated, use location instead. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field is deprecated, use location instead. string zone = 101 [deprecated = true]; // [Output only] The IP address of this cluster's master endpoint. @@ -1164,7 +1348,7 @@ message Cluster { string current_master_version = 104; // [Output only] Deprecated, use - // [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePools) + // [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools) // instead. The current version of the node software components. If they are // currently at multiple versions because they're in the process of being // upgraded, this reflects the minimum version of all nodes. @@ -1177,9 +1361,10 @@ message Cluster { // [Output only] The current status of this cluster. Status status = 107; - // [Output only] Additional information about the current status of this + // [Output only] Deprecated. Use conditions instead. + // Additional information about the current status of this // cluster, if available. - string status_message = 108; + string status_message = 108 [deprecated = true]; // [Output only] The size of the address space on each node for hosting // containers. This is provisioned from within the `container_ipv4_cidr` @@ -1206,9 +1391,10 @@ message Cluster { string expire_time = 113; // [Output only] The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or - // [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which - // the cluster resides. + // [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) + // or + // [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) + // in which the cluster resides. string location = 114; // Enable the ability to use Cloud TPUs in this cluster. @@ -1243,10 +1429,14 @@ message ClusterUpdate { // The monitoring service the cluster should use to write metrics. // Currently available options: // - // * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring - // service with Kubernetes-native resource model - // * "monitoring.googleapis.com" - the Google Cloud Monitoring service - // * "none" - no metrics will be exported from the cluster + // * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring + // service with a Kubernetes-native resource model + // * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no + // longer available as of GKE 1.15). + // * `none` - No metrics will be exported from the cluster. + // + // If left as an empty string,`monitoring.googleapis.com/kubernetes` will be + // used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. string desired_monitoring_service = 5; // Configurations for the various addons available to run in the cluster. @@ -1265,6 +1455,12 @@ message ClusterUpdate { // Configuration of etcd encryption. DatabaseEncryption desired_database_encryption = 46; + // Configuration for Workload Identity. + WorkloadIdentityConfig desired_workload_identity_config = 47; + + // Configuration for Shielded Nodes. + ShieldedNodes desired_shielded_nodes = 48; + // Autoscaler configuration for the node pool specified in // desired_node_pool_id. If there is only one pool in the // cluster and desired_node_pool_id is not provided then @@ -1272,12 +1468,13 @@ message ClusterUpdate { NodePoolAutoscaling desired_node_pool_autoscaling = 9; // The desired list of Google Compute Engine - // [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes - // should be located. Changing the locations a cluster is in will result - // in nodes being either created or removed from the cluster, depending on - // whether locations are being added or removed. + // [zones](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster's nodes should be located. // // This list must always include the cluster's primary zone. + // + // Warning: changing cluster locations will update the locations of all node + // pools and will result in nodes being added and/or removed. repeated string desired_locations = 10; // The desired configuration options for master authorized networks feature. @@ -1292,10 +1489,14 @@ message ClusterUpdate { // The logging service the cluster should use to write logs. // Currently available options: // - // * "logging.googleapis.com/kubernetes" - the Google Cloud Logging - // service with Kubernetes-native resource model - // * "logging.googleapis.com" - the Google Cloud Logging service - // * "none" - no logs will be exported from the cluster + // * `logging.googleapis.com/kubernetes` - The Cloud Logging + // service with a Kubernetes-native resource model + // * `logging.googleapis.com` - The legacy Cloud Logging service (no longer + // available as of GKE 1.15). + // * `none` - no logs will be exported from the cluster. + // + // If left as an empty string,`logging.googleapis.com/kubernetes` will be + // used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. string desired_logging_service = 19; // The desired configuration for exporting resource usage. @@ -1304,9 +1505,18 @@ message ClusterUpdate { // Cluster-level Vertical Pod Autoscaling configuration. VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + // The desired private cluster configuration. + PrivateClusterConfig desired_private_cluster_config = 25; + // The desired config of Intra-node visibility. IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + // The desired status of whether to disable default sNAT for this cluster. + DefaultSnatStatus desired_default_snat_status = 28; + + // The desired release channel configuration. + ReleaseChannel desired_release_channel = 31; + // The Kubernetes version to change the master to. // // Users may specify either explicit versions offered by @@ -1399,9 +1609,8 @@ message Operation { string name = 1; // The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation - // is taking place. - // This field is deprecated, use location instead. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // operation is taking place. This field is deprecated, use location instead. string zone = 2 [deprecated = true]; // The operation type. @@ -1413,8 +1622,8 @@ message Operation { // Detailed operation progress, if available. string detail = 8; - // If an error has occurred, a textual description of the error. - string status_message = 5; + // Output only. If an error has occurred, a textual description of the error. + string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; // Server-defined URL for the resource. string self_link = 6; @@ -1423,9 +1632,10 @@ message Operation { string target_link = 7; // [Output only] The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or - // [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which - // the cluster resides. + // [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) + // or + // [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) + // in which the cluster resides. string location = 9; // [Output only] The time the operation started, in @@ -1436,6 +1646,9 @@ message Operation { // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. string end_time = 11; + // Output only. [Output only] Progress information for an operation. + OperationProgress progress = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Which conditions caused the current cluster state. repeated StatusCondition cluster_conditions = 13; @@ -1443,6 +1656,46 @@ message Operation { repeated StatusCondition nodepool_conditions = 14; } +// Information about operation (or operation stage) progress. +message OperationProgress { + // Progress metric is (string, int|float|string) pair. + message Metric { + // Required. Metric name, e.g., "nodes total", "percent done". + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Strictly one of the values is required. + oneof value { + // For metrics with integer value. + int64 int_value = 2; + + // For metrics with floating point value. + double double_value = 3; + + // For metrics with custom values (ratios, visual progress, etc.). + string string_value = 4; + } + } + + // A non-parameterized string describing an operation stage. + // Unset for single-stage operations. + string name = 1; + + // Status of an operation stage. + // Unset for single-stage operations. + Operation.Status status = 2; + + // Progress metric bundle, for example: + // metrics: [{name: "nodes done", int_value: 15}, + // {name: "nodes total", int_value: 32}] + // or + // metrics: [{name: "progress", double_value: 0.56}, + // {name: "progress scale", double_value: 1.0}] + repeated Metric metrics = 3; + + // Substages of an operation or a stage. + repeated OperationProgress stages = 4; +} + // CreateClusterRequest creates a cluster. message CreateClusterRequest { // Deprecated. The Google Developers Console [project ID or project @@ -1451,13 +1704,13 @@ message CreateClusterRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the parent field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the parent + // field. string zone = 2 [deprecated = true]; // Required. A [cluster - // resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters) + // resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters) Cluster cluster = 3 [(google.api.field_behavior) = REQUIRED]; // The parent (project and location) where the cluster will be created. @@ -1473,9 +1726,9 @@ message GetClusterRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // Deprecated. The name of the cluster to retrieve. @@ -1495,9 +1748,9 @@ message UpdateClusterRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // Deprecated. The name of the cluster to upgrade. @@ -1520,9 +1773,9 @@ message UpdateNodePoolRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // Deprecated. The name of the cluster to upgrade. @@ -1553,6 +1806,19 @@ message UpdateNodePoolRequest { // update. Specified in the format // `projects/*/locations/*/clusters/*/nodePools/*`. string name = 8; + + // The desired list of Google Compute Engine + // [zones](https://cloud.google.com/compute/docs/zones#available) in which the + // node pool's nodes should be located. Changing the locations for a node pool + // will result in nodes being either created or removed from the node pool, + // depending on whether locations are being added or removed. + repeated string locations = 13; + + // The desired workload metadata config for the node pool. + WorkloadMetadataConfig workload_metadata_config = 14; + + // Upgrade settings control disruption and speed of the upgrade. + NodePool.UpgradeSettings upgrade_settings = 15; } // SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool. @@ -1563,9 +1829,9 @@ message SetNodePoolAutoscalingRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // Deprecated. The name of the cluster to upgrade. @@ -1593,20 +1859,26 @@ message SetLoggingServiceRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // Deprecated. The name of the cluster to upgrade. // This field has been deprecated and replaced by the name field. string cluster_id = 3 [deprecated = true]; - // Required. The logging service the cluster should use to write metrics. + // Required. The logging service the cluster should use to write logs. // Currently available options: // - // * "logging.googleapis.com" - the Google Cloud Logging service - // * "none" - no metrics will be exported from the cluster + // * `logging.googleapis.com/kubernetes` - The Cloud Logging + // service with a Kubernetes-native resource model + // * `logging.googleapis.com` - The legacy Cloud Logging service (no longer + // available as of GKE 1.15). + // * `none` - no logs will be exported from the cluster. + // + // If left as an empty string,`logging.googleapis.com/kubernetes` will be + // used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. string logging_service = 4 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster) of the cluster to set logging. @@ -1622,9 +1894,9 @@ message SetMonitoringServiceRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // Deprecated. The name of the cluster to upgrade. @@ -1634,10 +1906,14 @@ message SetMonitoringServiceRequest { // Required. The monitoring service the cluster should use to write metrics. // Currently available options: // - // * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring - // service with Kubernetes-native resource model - // * "monitoring.googleapis.com" - the Google Cloud Monitoring service - // * "none" - no metrics will be exported from the cluster + // * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring + // service with a Kubernetes-native resource model + // * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no + // longer available as of GKE 1.15). + // * `none` - No metrics will be exported from the cluster. + // + // If left as an empty string,`monitoring.googleapis.com/kubernetes` will be + // used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. string monitoring_service = 4 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster) of the cluster to set monitoring. @@ -1653,9 +1929,9 @@ message SetAddonsConfigRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // Deprecated. The name of the cluster to upgrade. @@ -1679,9 +1955,9 @@ message SetLocationsRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // Deprecated. The name of the cluster to upgrade. @@ -1689,10 +1965,10 @@ message SetLocationsRequest { string cluster_id = 3 [deprecated = true]; // Required. The desired list of Google Compute Engine - // [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes - // should be located. Changing the locations a cluster is in will result - // in nodes being either created or removed from the cluster, depending on - // whether locations are being added or removed. + // [zones](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster's nodes should be located. Changing the locations a cluster is in + // will result in nodes being either created or removed from the cluster, + // depending on whether locations are being added or removed. // // This list must always include the cluster's primary zone. repeated string locations = 4 [(google.api.field_behavior) = REQUIRED]; @@ -1710,9 +1986,9 @@ message UpdateMasterRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // Deprecated. The name of the cluster to upgrade. @@ -1762,9 +2038,9 @@ message SetMasterAuthRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // Deprecated. The name of the cluster to upgrade. @@ -1790,9 +2066,9 @@ message DeleteClusterRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // Deprecated. The name of the cluster to delete. @@ -1812,9 +2088,9 @@ message ListClustersRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides, or "-" for all zones. - // This field has been deprecated and replaced by the parent field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides, or "-" for all zones. This field has been deprecated and + // replaced by the parent field. string zone = 2 [deprecated = true]; // The parent (project and location) where the clusters will be listed. @@ -1842,9 +2118,9 @@ message GetOperationRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // Deprecated. The server-assigned `name` of the operation. @@ -1864,8 +2140,9 @@ message ListOperationsRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) to return operations for, or `-` for - // all zones. This field has been deprecated and replaced by the parent field. + // [zone](https://cloud.google.com/compute/docs/zones#available) to return + // operations for, or `-` for all zones. This field has been deprecated and + // replaced by the parent field. string zone = 2 [deprecated = true]; // The parent (project and location) where the operations will be listed. @@ -1882,8 +2159,9 @@ message CancelOperationRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // operation resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // Deprecated. The server-assigned `name` of the operation. @@ -1913,8 +2191,9 @@ message GetServerConfigRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) to return operations for. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) to return + // operations for. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // The name (project and location) of the server config to get, @@ -1924,10 +2203,22 @@ message GetServerConfigRequest { // Kubernetes Engine service configuration. message ServerConfig { + // ReleaseChannelConfig exposes configuration for a release channel. + message ReleaseChannelConfig { + // The release channel this configuration applies to. + ReleaseChannel.Channel channel = 1; + + // The default version for newly created clusters on the channel. + string default_version = 2; + + // List of valid versions for the channel. + repeated string valid_versions = 4; + } + // Version of Kubernetes the service deploys by default. string default_cluster_version = 1; - // List of valid node upgrade target versions. + // List of valid node upgrade target versions, in descending order. repeated string valid_node_versions = 3; // Default image type. @@ -1936,8 +2227,11 @@ message ServerConfig { // List of valid image types. repeated string valid_image_types = 5; - // List of valid master versions. + // List of valid master versions, in descending order. repeated string valid_master_versions = 6; + + // List of release channel configurations. + repeated ReleaseChannelConfig channels = 9; } // CreateNodePoolRequest creates a node pool for a cluster. @@ -1948,9 +2242,9 @@ message CreateNodePoolRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the parent field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the parent + // field. string zone = 2 [deprecated = true]; // Deprecated. The name of the cluster. @@ -1974,9 +2268,9 @@ message DeleteNodePoolRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // Deprecated. The name of the cluster. @@ -2001,9 +2295,9 @@ message ListNodePoolsRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the parent field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the parent + // field. string zone = 2 [deprecated = true]; // Deprecated. The name of the cluster. @@ -2023,9 +2317,9 @@ message GetNodePoolRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // Deprecated. The name of the cluster. @@ -2049,6 +2343,40 @@ message GetNodePoolRequest { // during pod scheduling. They may also be resized up or down, to accommodate // the workload. message NodePool { + // These upgrade settings control the level of parallelism and the level of + // disruption caused by an upgrade. + // + // maxUnavailable controls the number of nodes that can be simultaneously + // unavailable. + // + // maxSurge controls the number of additional nodes that can be added to the + // node pool temporarily for the time of the upgrade to increase the number of + // available nodes. + // + // (maxUnavailable + maxSurge) determines the level of parallelism (how many + // nodes are being upgraded at the same time). + // + // Note: upgrades inevitably introduce some disruption since workloads need to + // be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0, + // this holds true. (Disruption stays within the limits of + // PodDisruptionBudget, if it is configured.) + // + // Consider a hypothetical node pool with 5 nodes having maxSurge=2, + // maxUnavailable=1. This means the upgrade process upgrades 3 nodes + // simultaneously. It creates 2 additional (upgraded) nodes, then it brings + // down 3 old (not yet upgraded) nodes at the same time. This ensures that + // there are always at least 4 nodes available. + message UpgradeSettings { + // The maximum number of nodes that can be created beyond the current size + // of the node pool during the upgrade process. + int32 max_surge = 1; + + // The maximum number of nodes that can be simultaneously unavailable during + // the upgrade process. A node is considered available if its status is + // Ready. + int32 max_unavailable = 2; + } + // The current status of the node pool instance. enum Status { // Not set. @@ -2092,6 +2420,18 @@ message NodePool { // firewall and routes quota. int32 initial_node_count = 3; + // The list of Google Compute Engine + // [zones](https://cloud.google.com/compute/docs/zones#available) in which the + // NodePool's nodes should be located. + // + // If this value is unspecified during node pool creation, the + // [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations) + // value will be used, instead. + // + // Warning: changing node pool locations will result in nodes being added + // and/or removed. + repeated string locations = 13; + // [Output only] Server-defined URL for the resource. string self_link = 100; @@ -2106,9 +2446,10 @@ message NodePool { // [Output only] The status of the nodes in this pool instance. Status status = 103; - // [Output only] Additional information about the current status of this + // [Output only] Deprecated. Use conditions instead. + // Additional information about the current status of this // node pool instance, if available. - string status_message = 104; + string status_message = 104 [deprecated = true]; // Autoscaler configuration for this NodePool. Autoscaler is enabled // only if a valid configuration is present. @@ -2126,6 +2467,9 @@ message NodePool { // [Output only] The pod CIDR block size per node in this node pool. int32 pod_ipv4_cidr_size = 7; + + // Upgrade settings control disruption and speed of the upgrade. + UpgradeSettings upgrade_settings = 107; } // NodeManagement defines the set of node management services turned on for the @@ -2167,7 +2511,7 @@ message MaintenancePolicy { // A hash identifying the version of this policy, so that updates to fields of // the policy won't accidentally undo intermediate changes (and so that users // of the API unaware of some fields won't accidentally remove other fields). - // Make a get() request to the cluster to get the current + // Make a `get()` request to the cluster to get the current // resource version and include it with requests to set the policy. string resource_version = 3; } @@ -2209,25 +2553,30 @@ message RecurringTimeWindow { // end time. // // For example, to have something repeat every weekday, you'd use: - // FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR + // `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR` + // // To repeat some window daily (equivalent to the DailyMaintenanceWindow): - // FREQ=DAILY + // `FREQ=DAILY` + // // For the first weekend of every month: - // FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU + // `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU` + // // This specifies how frequently the window starts. Eg, if you wanted to have // a 9-5 UTC-4 window every weekday, you'd use something like: - // - // start time = 2019-01-01T09:00:00-0400 - // end time = 2019-01-01T17:00:00-0400 - // recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR - // + // ``` + // start time = 2019-01-01T09:00:00-0400 + // end time = 2019-01-01T17:00:00-0400 + // recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR + // ``` + // // Windows can span multiple days. Eg, to make the window encompass every // weekend from midnight Saturday till the last minute of Sunday UTC: - // - // start time = 2019-01-05T00:00:00Z - // end time = 2019-01-07T23:59:00Z - // recurrence = FREQ=WEEKLY;BYDAY=SA - // + // ``` + // start time = 2019-01-05T00:00:00Z + // end time = 2019-01-07T23:59:00Z + // recurrence = FREQ=WEEKLY;BYDAY=SA + // ``` + // // Note the start and end time's specific dates are largely arbitrary except // to specify duration of the window and when it first starts. // The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported. @@ -2257,9 +2606,9 @@ message SetNodePoolManagementRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // Deprecated. The name of the cluster to update. @@ -2288,9 +2637,9 @@ message SetNodePoolSizeRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // Deprecated. The name of the cluster to update. @@ -2320,9 +2669,9 @@ message RollbackNodePoolUpgradeRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // Deprecated. The name of the cluster to rollback. @@ -2361,21 +2710,60 @@ message ClusterAutoscaling { // created by NAP. AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - // The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) - // in which the NodePool's nodes can be created by NAP. + // The list of Google Compute Engine + // [zones](https://cloud.google.com/compute/docs/zones#available) in which the + // NodePool's nodes can be created by NAP. repeated string autoprovisioning_locations = 5; } // AutoprovisioningNodePoolDefaults contains defaults for a node pool created // by NAP. message AutoprovisioningNodePoolDefaults { - // Scopes that are used by NAP when creating node pools. If oauth_scopes are - // specified, service_account should be empty. + // Scopes that are used by NAP when creating node pools. repeated string oauth_scopes = 1; - // The Google Cloud Platform Service Account to be used by the node VMs. If - // service_account is specified, scopes should be empty. + // The Google Cloud Platform Service Account to be used by the node VMs. string service_account = 2; + + // Specifies the upgrade settings for NAP created node pools + NodePool.UpgradeSettings upgrade_settings = 3; + + // Specifies the node management options for NAP created node-pools. + NodeManagement management = 4; + + // Minimum CPU platform to be used for NAP created node pools. + // The instance may be scheduled on the specified or newer CPU platform. + // Applicable values are the friendly names of CPU platforms, such as + // minCpuPlatform: Intel Haswell or + // minCpuPlatform: Intel Sandy Bridge. For more + // information, read [how to specify min CPU + // platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) + // To unset the min cpu platform field pass "automatic" + // as field value. + string min_cpu_platform = 5; + + // Size of the disk attached to each node, specified in GB. + // The smallest allowed disk size is 10GB. + // + // If unspecified, the default disk size is 100GB. + int32 disk_size_gb = 6; + + // Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or + // 'pd-balanced') + // + // If unspecified, the default disk type is 'pd-standard' + string disk_type = 7; + + // Shielded Instance options. + ShieldedInstanceConfig shielded_instance_config = 8; + + // The Customer Managed Encryption Key used to encrypt the boot disk attached + // to each node in the node pool. This should be of the form + // projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. + // For more information about protecting resources with Cloud KMS Keys please + // see: + // https://cloud.google.com/compute/docs/disks/customer-managed-encryption + string boot_disk_kms_key = 9; } // Contains information about amount of some resource in the cluster. @@ -2419,9 +2807,9 @@ message SetLabelsRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // Deprecated. The name of the cluster. @@ -2435,7 +2823,7 @@ message SetLabelsRequest { // used to detect conflicts. The fingerprint is initially generated by // Kubernetes Engine and changes after every request to modify or update // labels. You must always provide an up-to-date fingerprint hash when - // updating or changing labels. Make a get() request to the + // updating or changing labels. Make a `get()` request to the // resource to get the latest fingerprint. string label_fingerprint = 5 [(google.api.field_behavior) = REQUIRED]; @@ -2453,9 +2841,9 @@ message SetLegacyAbacRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // Deprecated. The name of the cluster to update. @@ -2479,9 +2867,9 @@ message StartIPRotationRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // Deprecated. The name of the cluster. @@ -2504,9 +2892,9 @@ message CompleteIPRotationRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // Deprecated. The name of the cluster. @@ -2528,6 +2916,31 @@ message AcceleratorConfig { string accelerator_type = 2; } +// WorkloadMetadataConfig defines the metadata configuration to expose to +// workloads on the node pool. +message WorkloadMetadataConfig { + // Mode is the configuration for how to expose metadata to workloads running + // on the node. + enum Mode { + // Not set. + MODE_UNSPECIFIED = 0; + + // Expose all Compute Engine metadata to pods. + GCE_METADATA = 1; + + // Run the GKE Metadata Server on this node. The GKE Metadata Server exposes + // a metadata API to workloads that is compatible with the V1 Compute + // Metadata APIs exposed by the Compute Engine and App Engine Metadata + // Servers. This feature can only be enabled if Workload Identity is enabled + // at the cluster level. + GKE_METADATA = 2; + } + + // Mode is the configuration for how to expose metadata to workloads running + // on the node pool. + Mode mode = 2; +} + // SetNetworkPolicyRequest enables/disables network policy for a cluster. message SetNetworkPolicyRequest { // Deprecated. The Google Developers Console [project ID or project @@ -2536,9 +2949,9 @@ message SetNetworkPolicyRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [deprecated = true]; // Deprecated. The name of the cluster. @@ -2560,8 +2973,8 @@ message SetMaintenancePolicyRequest { string project_id = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. string zone = 2 [(google.api.field_behavior) = REQUIRED]; // Required. The name of the cluster to update. @@ -2585,7 +2998,8 @@ message StatusCondition { // UNKNOWN indicates a generic condition. UNKNOWN = 0; - // GCE_STOCKOUT indicates a Google Compute Engine stockout. + // GCE_STOCKOUT indicates that Google Compute Engine resources are + // temporarily unavailable. GCE_STOCKOUT = 1; // GKE_SERVICE_ACCOUNT_DELETED indicates that the user deleted their robot @@ -2614,19 +3028,140 @@ message StatusCondition { // NetworkConfig reports the relative names of network & subnetwork. message NetworkConfig { // Output only. The relative name of the Google Compute Engine - // [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which - // the cluster is connected. - // Example: projects/my-project/global/networks/my-network + // [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) + // to which the cluster is connected. Example: + // projects/my-project/global/networks/my-network string network = 1; // Output only. The relative name of the Google Compute Engine - // [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the cluster is connected. - // Example: projects/my-project/regions/us-central1/subnetworks/my-subnet + // [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the + // cluster is connected. Example: + // projects/my-project/regions/us-central1/subnetworks/my-subnet string subnetwork = 2; // Whether Intra-node visibility is enabled for this cluster. // This makes same node pod to pod traffic visible for VPC network. bool enable_intra_node_visibility = 5; + + // Whether the cluster disables default in-node sNAT rules. In-node sNAT rules + // will be disabled when default_snat_status is disabled. When disabled is set + // to false, default IP masquerade rules will be applied to the nodes to + // prevent sNAT on cluster internal traffic. + DefaultSnatStatus default_snat_status = 7; +} + +// GetOpenIDConfigRequest gets the OIDC discovery document for the +// cluster. See the OpenID Connect Discovery 1.0 specification for details. +message GetOpenIDConfigRequest { + // The cluster (project, location, cluster id) to get the discovery document + // for. Specified in the format `projects/*/locations/*/clusters/*`. + string parent = 1; +} + +// GetOpenIDConfigResponse is an OIDC discovery document for the cluster. +// See the OpenID Connect Discovery 1.0 specification for details. +message GetOpenIDConfigResponse { + // OIDC Issuer. + string issuer = 1; + + // JSON Web Key uri. + string jwks_uri = 2; + + // Supported response types. + repeated string response_types_supported = 3; + + // Supported subject types. + repeated string subject_types_supported = 4; + + // supported ID Token signing Algorithms. + repeated string id_token_signing_alg_values_supported = 5; + + // Supported claims. + repeated string claims_supported = 6; + + // Supported grant types. + repeated string grant_types = 7; +} + +// GetJSONWebKeysRequest gets the public component of the keys used by the +// cluster to sign token requests. This will be the jwks_uri for the discover +// document returned by getOpenIDConfig. See the OpenID Connect +// Discovery 1.0 specification for details. +message GetJSONWebKeysRequest { + // The cluster (project, location, cluster id) to get keys for. Specified in + // the format `projects/*/locations/*/clusters/*`. + string parent = 1; +} + +// Jwk is a JSON Web Key as specified in RFC 7517 +message Jwk { + // Key Type. + string kty = 1; + + // Algorithm. + string alg = 2; + + // Permitted uses for the public keys. + string use = 3; + + // Key ID. + string kid = 4; + + // Used for RSA keys. + string n = 5; + + // Used for RSA keys. + string e = 6; + + // Used for ECDSA keys. + string x = 7; + + // Used for ECDSA keys. + string y = 8; + + // Used for ECDSA keys. + string crv = 9; +} + +// GetJSONWebKeysResponse is a valid JSON Web Key Set as specififed in rfc 7517 +message GetJSONWebKeysResponse { + // The public component of the keys used by the cluster to sign token + // requests. + repeated Jwk keys = 1; +} + +// ReleaseChannel indicates which release channel a cluster is +// subscribed to. Release channels are arranged in order of risk. +// +// When a cluster is subscribed to a release channel, Google maintains +// both the master version and the node version. Node auto-upgrade +// defaults to true and cannot be disabled. +message ReleaseChannel { + // Possible values for 'channel'. + enum Channel { + // No channel specified. + UNSPECIFIED = 0; + + // RAPID channel is offered on an early access basis for customers who want + // to test new releases. + // + // WARNING: Versions available in the RAPID Channel may be subject to + // unresolved issues with no known workaround and are not subject to any + // SLAs. + RAPID = 1; + + // Clusters subscribed to REGULAR receive versions that are considered GA + // quality. REGULAR is intended for production users who want to take + // advantage of new features. + REGULAR = 2; + + // Clusters subscribed to STABLE receive versions that are known to be + // stable and reliable in production. + STABLE = 3; + } + + // channel specifies which release channel the cluster is subscribed to. + Channel channel = 1; } // IntraNodeVisibilityConfig contains the desired config of the intra-node @@ -2642,6 +3177,13 @@ message MaxPodsConstraint { int64 max_pods_per_node = 1; } +// Configuration for the use of Kubernetes Service Accounts in GCP IAM +// policies. +message WorkloadIdentityConfig { + // The workload pool to attach all Kubernetes service accounts to. + string workload_pool = 2; +} + // Configuration of etcd encryption. message DatabaseEncryption { // State of etcd encryption. @@ -2653,7 +3195,7 @@ message DatabaseEncryption { ENCRYPTED = 1; // Secrets in etcd are stored in plain text (at etcd level) - this is - // unrelated to GCE level full disk encryption. + // unrelated to Compute Engine level full disk encryption. DECRYPTED = 2; } @@ -2795,3 +3337,16 @@ message VerticalPodAutoscaling { // Enables vertical pod autoscaling. bool enabled = 1; } + +// DefaultSnatStatus contains the desired state of whether default sNAT should +// be disabled on the cluster. +message DefaultSnatStatus { + // Disables cluster default sNAT rules. + bool disabled = 1; +} + +// Configuration of Shielded Nodes feature. +message ShieldedNodes { + // Whether Shielded Nodes features are enabled on all nodes in this cluster. + bool enabled = 1; +} diff --git a/third_party/googleapis/google/container/v1/container_gapic.legacy.yaml b/third_party/googleapis/google/container/v1/container_gapic.legacy.yaml deleted file mode 100644 index 17d5d60ec..000000000 --- a/third_party/googleapis/google/container/v1/container_gapic.legacy.yaml +++ /dev/null @@ -1,524 +0,0 @@ -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.container.v1 - python: - package_name: google.cloud.container_v1.gapic - go: - package_name: cloud.google.com/go/container/apiv1 - csharp: - package_name: Google.Cloud.Container.V1 - ruby: - package_name: Google::Cloud::Container::V1 - release_level: BETA - php: - package_name: Google\Cloud\Container\V1 - nodejs: - package_name: container.v1 - domain_layer_location: google-cloud -# A list of API interface configurations. -interfaces: -- name: google.container.v1.ClusterManager - # 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 smoke test - smoke_test: - method: ListClusters - init_fields: - - project_id=$PROJECT_ID - - zone="us-central1-a" - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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: ListClusters - flattening: - groups: - - parameters: - - project_id - - zone - required_fields: - - project_id - - zone - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 20000 - - name: GetCluster - flattening: - groups: - - parameters: - - project_id - - zone - - cluster_id - required_fields: - - project_id - - zone - - cluster_id - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 20000 - - name: CreateCluster - flattening: - groups: - - parameters: - - project_id - - zone - - cluster - required_fields: - - project_id - - zone - - cluster - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 45000 - - name: UpdateCluster - flattening: - groups: - - parameters: - - project_id - - zone - - cluster_id - - update - required_fields: - - project_id - - zone - - cluster_id - - update - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 20000 - - name: UpdateNodePool - required_fields: - - project_id - - zone - - cluster_id - - node_pool_id - - node_version - - image_type - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 20000 - - name: SetNodePoolAutoscaling - required_fields: - - project_id - - zone - - cluster_id - - node_pool_id - - autoscaling - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 20000 - - name: SetLoggingService - flattening: - groups: - - parameters: - - project_id - - zone - - cluster_id - - logging_service - required_fields: - - project_id - - zone - - cluster_id - - logging_service - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 20000 - - name: SetMonitoringService - flattening: - groups: - - parameters: - - project_id - - zone - - cluster_id - - monitoring_service - required_fields: - - project_id - - zone - - cluster_id - - monitoring_service - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 20000 - - name: SetAddonsConfig - flattening: - groups: - - parameters: - - project_id - - zone - - cluster_id - - addons_config - required_fields: - - project_id - - zone - - cluster_id - - addons_config - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 20000 - - name: SetLocations - flattening: - groups: - - parameters: - - project_id - - zone - - cluster_id - - locations - required_fields: - - project_id - - zone - - cluster_id - - locations - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 20000 - - name: UpdateMaster - flattening: - groups: - - parameters: - - project_id - - zone - - cluster_id - - master_version - required_fields: - - project_id - - zone - - cluster_id - - master_version - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 20000 - - name: SetMasterAuth - required_fields: - - project_id - - zone - - cluster_id - - action - - update - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 20000 - - name: DeleteCluster - flattening: - groups: - - parameters: - - project_id - - zone - - cluster_id - required_fields: - - project_id - - zone - - cluster_id - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 20000 - - name: ListOperations - flattening: - groups: - - parameters: - - project_id - - zone - required_fields: - - project_id - - zone - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 20000 - - name: GetOperation - flattening: - groups: - - parameters: - - project_id - - zone - - operation_id - required_fields: - - project_id - - zone - - operation_id - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 20000 - - name: CancelOperation - flattening: - groups: - - parameters: - - project_id - - zone - - operation_id - required_fields: - - project_id - - zone - - operation_id - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 20000 - - name: GetServerConfig - flattening: - groups: - - parameters: - - project_id - - zone - required_fields: - - project_id - - zone - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 20000 - - name: ListNodePools - flattening: - groups: - - parameters: - - project_id - - zone - - cluster_id - required_fields: - - project_id - - zone - - cluster_id - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 20000 - - name: GetNodePool - flattening: - groups: - - parameters: - - project_id - - zone - - cluster_id - - node_pool_id - required_fields: - - project_id - - zone - - cluster_id - - node_pool_id - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 20000 - - name: CreateNodePool - flattening: - groups: - - parameters: - - project_id - - zone - - cluster_id - - node_pool - required_fields: - - project_id - - zone - - cluster_id - - node_pool - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 20000 - - name: DeleteNodePool - flattening: - groups: - - parameters: - - project_id - - zone - - cluster_id - - node_pool_id - required_fields: - - project_id - - zone - - cluster_id - - node_pool_id - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 20000 - - name: RollbackNodePoolUpgrade - flattening: - groups: - - parameters: - - project_id - - zone - - cluster_id - - node_pool_id - required_fields: - - project_id - - zone - - cluster_id - - node_pool_id - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 20000 - - name: SetNodePoolManagement - required_fields: - - project_id - - zone - - cluster_id - - node_pool_id - - management - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 20000 - - name: SetLabels - required_fields: - - project_id - - zone - - cluster_id - - resource_labels - - label_fingerprint - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 20000 - - name: SetLegacyAbac - flattening: - groups: - - parameters: - - project_id - - zone - - cluster_id - - enabled - required_fields: - - project_id - - zone - - cluster_id - - enabled - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 20000 - - name: StartIPRotation - flattening: - groups: - - parameters: - - project_id - - zone - - cluster_id - required_fields: - - project_id - - zone - - cluster_id - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 20000 - - name: CompleteIPRotation - flattening: - groups: - - parameters: - - project_id - - zone - - cluster_id - required_fields: - - project_id - - zone - - cluster_id - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 20000 - - name: SetNodePoolSize - required_fields: - - project_id - - zone - - cluster_id - - node_pool_id - - node_count - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 20000 - - name: SetNetworkPolicy - flattening: - groups: - - parameters: - - project_id - - zone - - cluster_id - - network_policy - required_fields: - - project_id - - zone - - cluster_id - - network_policy - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 20000 - - name: SetMaintenancePolicy - flattening: - groups: - - parameters: - - project_id - - zone - - cluster_id - - maintenance_policy - required_fields: - - project_id - - zone - - cluster_id - - maintenance_policy - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 20000 diff --git a/third_party/googleapis/google/container/v1beta1/BUILD.bazel b/third_party/googleapis/google/container/v1beta1/BUILD.bazel index 93098b4fb..847ba2f0a 100644 --- a/third_party/googleapis/google/container/v1beta1/BUILD.bazel +++ b/third_party/googleapis/google/container/v1beta1/BUILD.bazel @@ -18,8 +18,12 @@ proto_library( "//google/api:annotations_proto", "//google/api:client_proto", "//google/api:field_behavior_proto", + "//google/api:resource_proto", + "//google/rpc:code_proto", + "//google/rpc:status_proto", "@com_google_protobuf//:empty_proto", "@com_google_protobuf//:timestamp_proto", + "@com_google_protobuf//:wrappers_proto", ], ) @@ -56,11 +60,9 @@ java_grpc_library( java_gapic_library( name = "container_java_gapic", - src = ":container_proto_with_info", + srcs = [":container_proto_with_info"], gapic_yaml = "container_gapic.yaml", grpc_service_config = "container_grpc_service_config.json", - package = "google.container.v1beta1", - service_yaml = "container_v1beta1.yaml", test_deps = [ ":container_java_grpc", ], @@ -106,6 +108,8 @@ go_proto_library( protos = [":container_proto"], deps = [ "//google/api:annotations_go_proto", + "//google/rpc:code_go_proto", + "//google/rpc:status_go_proto", ], ) @@ -140,12 +144,10 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -218,6 +220,7 @@ load( nodejs_gapic_library( name = "container_nodejs_gapic", src = ":container_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "container_grpc_service_config.json", package = "google.container.v1beta1", service_yaml = "container_v1beta1.yaml", @@ -238,7 +241,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -254,12 +257,19 @@ ruby_grpc_library( deps = [":container_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "container_ruby_gapic", - src = ":container_proto_with_info", - gapic_yaml = "container_gapic.yaml", - package = "google.container.v1beta1", - service_yaml = "container_v1beta1.yaml", + srcs = [":container_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-container-v1beta1", + "ruby-cloud-env-prefix=CONTAINER", + "ruby-cloud-product-url=https://cloud.google.com/kubernetes-engine", + "ruby-cloud-api-id=container.googleapis.com", + "ruby-cloud-api-shortname=container", + ], + grpc_service_config = "container_grpc_service_config.json", + ruby_cloud_description = "Builds and manages container-based applications, powered by the open source Kubernetes technology.", + ruby_cloud_title = "Kubernetes Engine V1beta1", deps = [ ":container_ruby_grpc", ":container_ruby_proto", @@ -301,8 +311,8 @@ csharp_grpc_library( csharp_gapic_library( name = "container_csharp_gapic", srcs = [":container_proto_with_info"], - grpc_service_config = "container_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "container_grpc_service_config.json", deps = [ ":container_csharp_grpc", ":container_csharp_proto", diff --git a/third_party/googleapis/google/container/v1beta1/cluster_service.proto b/third_party/googleapis/google/container/v1beta1/cluster_service.proto index f43de9df0..fa4c3ba3b 100644 --- a/third_party/googleapis/google/container/v1beta1/cluster_service.proto +++ b/third_party/googleapis/google/container/v1beta1/cluster_service.proto @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,7 +11,6 @@ // WITHOUT 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"; @@ -20,8 +19,12 @@ package google.container.v1beta1; import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/timestamp.proto"; +import "google/protobuf/wrappers.proto"; +import "google/rpc/code.proto"; +import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.Container.V1Beta1"; option go_package = "google.golang.org/genproto/googleapis/container/v1beta1;container"; @@ -30,6 +33,10 @@ option java_outer_classname = "ClusterServiceProto"; option java_package = "com.google.container.v1beta1"; option php_namespace = "Google\\Cloud\\Container\\V1beta1"; option ruby_package = "Google::Cloud::Container::V1beta1"; +option (google.api.resource_definition) = { + type: "pubsub.googleapis.com/Topic" + pattern: "projects/{project}/topics/{topic}" +}; // Google Kubernetes Engine Cluster Manager v1beta1 service ClusterManager { @@ -63,7 +70,8 @@ service ClusterManager { // Compute Engine instances. // // By default, the cluster is created in the project's - // [default network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). + // [default + // network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). // // One firewall is added for the cluster. After cluster creation, // the Kubelet creates routes for each node to allow the containers @@ -161,7 +169,11 @@ service ClusterManager { } // Sets the locations for a specific cluster. + // Deprecated. Use + // [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters/update) + // instead. rpc SetLocations(SetLocationsRequest) returns (Operation) { + option deprecated = true; option (google.api.http) = { post: "/v1beta1/{name=projects/*/locations/*/clusters/*}:setLocations" body: "*" @@ -276,6 +288,16 @@ service ClusterManager { option (google.api.method_signature) = "project_id,zone,cluster_id"; } + // Gets the public component of the cluster signing keys in + // JSON Web Key format. + // This API is not yet intended for general use, and is not available for all + // clusters. + rpc GetJSONWebKeys(GetJSONWebKeysRequest) returns (GetJSONWebKeysResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*/clusters/*}/jwks" + }; + } + // Retrieves the requested node pool. rpc GetNodePool(GetNodePoolRequest) returns (NodePool) { option (google.api.http) = { @@ -445,14 +467,67 @@ service ClusterManager { } } +// Parameters that can be configured on Linux nodes. +message LinuxNodeConfig { + // The Linux kernel parameters to be applied to the nodes and all pods running + // on the nodes. + // + // The following parameters are supported. + // + // net.core.netdev_max_backlog + // net.core.rmem_max + // net.core.wmem_default + // net.core.wmem_max + // net.core.optmem_max + // net.core.somaxconn + // net.ipv4.tcp_rmem + // net.ipv4.tcp_wmem + // net.ipv4.tcp_tw_reuse + map sysctls = 1; +} + +// Node kubelet configs. +message NodeKubeletConfig { + // Control the CPU management policy on the node. + // See + // https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/ + // + // The following values are allowed. + // - "none": the default, which represents the existing scheduling behavior. + // - "static": allows pods with certain resource characteristics to be + // granted increased CPU affinity and exclusivity on the node. + // The default value is 'none' if unspecified. + string cpu_manager_policy = 1; + + // Enable CPU CFS quota enforcement for containers that specify CPU limits. + // + // This option is enabled by default which makes kubelet use CFS quota + // (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to + // enforce container CPU limits. Otherwise, CPU limits will not be enforced at + // all. + // + // Disable this option to mitigate CPU throttling problems while still having + // your pods to be in Guaranteed QoS class by specifying the CPU limits. + // + // The default value is 'true' if unspecified. + google.protobuf.BoolValue cpu_cfs_quota = 2; + + // Set the CPU CFS quota period value 'cpu.cfs_period_us'. + // + // The string must be a sequence of decimal numbers, each with optional + // fraction and a unit suffix, such as "300ms". + // Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". + // The value must be a positive duration. + string cpu_cfs_quota_period = 3; +} + // Parameters that describe the nodes in a cluster. message NodeConfig { // The name of a Google Compute Engine [machine - // type](https://cloud.google.com/compute/docs/machine-types) (e.g. - // `n1-standard-1`). + // type](https://cloud.google.com/compute/docs/machine-types). // // If unspecified, the default machine type is - // `n1-standard-1`. + // `e2-medium`. string machine_type = 1; // Size of the disk attached to each node, specified in GB. @@ -471,42 +546,47 @@ message NodeConfig { // persistent storage on your nodes. // * `https://www.googleapis.com/auth/devstorage.read_only` is required for // communicating with **gcr.io** - // (the [Google Container Registry](https://cloud.google.com/container-registry/)). + // (the [Google Container + // Registry](https://cloud.google.com/container-registry/)). // // If unspecified, no scopes are added, unless Cloud Logging or Cloud // Monitoring are enabled, in which case their required scopes will be added. repeated string oauth_scopes = 3; - // The Google Cloud Platform Service Account to be used by the node VMs. If - // no Service Account is specified, the "default" service account is used. + // The Google Cloud Platform Service Account to be used by the node VMs. + // Specify the email address of the Service Account; otherwise, if no Service + // Account is specified, the "default" service account is used. string service_account = 9; // The metadata key/value pairs assigned to instances in the cluster. // - // Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes + // Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes // in length. These are reflected as part of a URL in the metadata server. // Additionally, to avoid ambiguity, keys must not conflict with any other // metadata keys for the project or be one of the reserved keys: - // "cluster-location" - // "cluster-name" - // "cluster-uid" - // "configure-sh" - // "containerd-configure-sh" - // "enable-oslogin" - // "gci-ensure-gke-docker" - // "gci-metrics-enabled" - // "gci-update-strategy" - // "instance-template" - // "kube-env" - // "startup-script" - // "user-data" - // "disable-address-manager" - // "windows-startup-script-ps1" - // "common-psm1" - // "k8s-node-setup-psm1" - // "install-ssh-psm1" - // "user-profile-psm1" - // "serial-port-logging-enable" + // - "cluster-location" + // - "cluster-name" + // - "cluster-uid" + // - "configure-sh" + // - "containerd-configure-sh" + // - "enable-oslogin" + // - "gci-ensure-gke-docker" + // - "gci-metrics-enabled" + // - "gci-update-strategy" + // - "instance-template" + // - "kube-env" + // - "startup-script" + // - "user-data" + // - "disable-address-manager" + // - "windows-startup-script-ps1" + // - "common-psm1" + // - "k8s-node-setup-psm1" + // - "install-ssh-psm1" + // - "user-profile-psm1" + // + // The following keys are reserved for Windows nodes: + // - "serial-port-logging-enable" + // // Values are free-form strings, and only have meaning as interpreted by // the image running in the instance. The only restriction placed on them is // that each value's size must be less than or equal to 32 KB. @@ -552,7 +632,23 @@ message NodeConfig { // support for GPUs. repeated AcceleratorConfig accelerators = 11; - // Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd') + // Sandbox configuration for this node. + SandboxConfig sandbox_config = 17; + + // Setting this field will assign instances of this + // pool to run on the specified node group. This is useful for running + // workloads on [sole tenant + // nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes). + string node_group = 18; + + // The optional reservation affinity. Setting this field will apply + // the specified [Zonal Compute + // Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) + // to this node pool. + ReservationAffinity reservation_affinity = 19; + + // Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or + // 'pd-balanced') // // If unspecified, the default disk type is 'pd-standard' string disk_type = 12; @@ -560,11 +656,10 @@ message NodeConfig { // Minimum CPU platform to be used by this instance. The instance may be // scheduled on the specified or newer CPU platform. Applicable values are the // friendly names of CPU platforms, such as - // minCpuPlatform: "Intel Haswell" or - // minCpuPlatform: "Intel Sandy Bridge". For more + // `minCpuPlatform: "Intel Haswell"` or + // `minCpuPlatform: "Intel Sandy Bridge"`. For more // information, read [how to specify min CPU // platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) - // To unset the min cpu platform field pass "automatic" as field value. string min_cpu_platform = 13; // The workload metadata configuration for this node. @@ -576,8 +671,27 @@ message NodeConfig { // https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ repeated NodeTaint taints = 15; + // + // The Customer Managed Encryption Key used to encrypt the boot disk attached + // to each node in the node pool. This should be of the form + // projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. + // For more information about protecting resources with Cloud KMS Keys please + // see: + // https://cloud.google.com/compute/docs/disks/customer-managed-encryption + string boot_disk_kms_key = 23; + // Shielded Instance options. ShieldedInstanceConfig shielded_instance_config = 20; + + // Parameters that can be configured on Linux nodes. + LinuxNodeConfig linux_node_config = 21; + + // Node kubelet configs. + NodeKubeletConfig kubelet_config = 22; + + // Parameters for the ephemeral storage filesystem. + // If unspecified, ephemeral storage is backed by the boot disk. + EphemeralStorageConfig ephemeral_storage_config = 24; } // A set of Shielded Instance options. @@ -598,11 +712,71 @@ message ShieldedInstanceConfig { bool enable_integrity_monitoring = 2; } +// SandboxConfig contains configurations of the sandbox to use for the node. +message SandboxConfig { + // Possible types of sandboxes. + enum Type { + // Default value. This should not be used. + UNSPECIFIED = 0; + + // Run sandbox using gvisor. + GVISOR = 1; + } + + // Type of the sandbox to use for the node (e.g. 'gvisor') + string sandbox_type = 1 [deprecated = true]; + + // Type of the sandbox to use for the node. + Type type = 2; +} + +// EphemeralStorageConfig contains configuration for the ephemeral storage +// filesystem. +message EphemeralStorageConfig { + // Number of local SSDs to use to back ephemeral storage. Uses NVMe + // interfaces. Each local SSD is 375 GB in size. + // If zero, it means to disable using local SSDs as ephemeral storage. + int32 local_ssd_count = 1; +} + +// [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) +// is the configuration of desired reservation which instances could take +// capacity from. +message ReservationAffinity { + // Indicates whether to consume capacity from a reservation or not. + enum Type { + // Default value. This should not be used. + UNSPECIFIED = 0; + + // Do not consume from any reserved capacity. + NO_RESERVATION = 1; + + // Consume any reservation available. + ANY_RESERVATION = 2; + + // Must consume from a specific reservation. Must specify key value fields + // for specifying the reservations. + SPECIFIC_RESERVATION = 3; + } + + // Corresponds to the type of reservation consumption. + Type consume_reservation_type = 1; + + // Corresponds to the label key of a reservation resource. To target a + // SPECIFIC_RESERVATION by name, specify "googleapis.com/reservation-name" as + // the key and specify the name of your reservation as its value. + string key = 2; + + // Corresponds to the label value(s) of reservation resource(s). + repeated string values = 3; +} + // Kubernetes taint is comprised of three fields: key, value, and effect. Effect // can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute. // -// For more information, including usage and the valid values, see: -// https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ +// See +// [here](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration) +// for more information, including usage and the valid values. message NodeTaint { // Possible values for Effect in taint. enum Effect { @@ -636,21 +810,29 @@ message MasterAuth { // The username to use for HTTP basic authentication to the master endpoint. // For clusters v1.6.0 and later, basic authentication can be disabled by // leaving username unspecified (or setting it to the empty string). - string username = 1; + // + // Warning: basic authentication is deprecated, and will be removed in GKE + // control plane versions 1.19 and newer. For a list of recommended + // authentication methods, see: + // https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication + string username = 1 [deprecated = true]; // The password to use for HTTP basic authentication to the master endpoint. // Because the master endpoint is open to the Internet, you should create a // strong password. If a password is provided for cluster creation, username // must be non-empty. - string password = 2; + // + // Warning: basic authentication is deprecated, and will be removed in GKE + // control plane versions 1.19 and newer. For a list of recommended + // authentication methods, see: + // https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication + string password = 2 [deprecated = true]; // Configuration for client certificate authentication on the cluster. For // clusters before v1.12, if no configuration is specified, a client // certificate is issued. ClientCertificateConfig client_certificate_config = 3; - // [Output only] Base64-encoded public certificate that is the root of - // trust for the cluster. string cluster_ca_certificate = 100; // [Output only] Base64-encoded public certificate used by clients to @@ -700,6 +882,20 @@ message AddonsConfig { // enabled in order to enable Cloud Run addon. This option can only be enabled // at cluster creation time. CloudRunConfig cloud_run_config = 7; + + // Configuration for NodeLocalDNS, a dns cache running on cluster nodes + DnsCacheConfig dns_cache_config = 8; + + // Configuration for the ConfigConnector add-on, a Kubernetes + // extension to manage hosted GCP services through the Kubernetes API + ConfigConnectorConfig config_connector_config = 10; + + // Configuration for the Compute Engine Persistent Disk CSI driver. + GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + + // Configuration for the KALM addon, which manages the lifecycle of k8s + // applications. + KalmConfig kalm_config = 12; } // Configuration options for the HTTP (L7) load balancing controller addon, @@ -716,8 +912,8 @@ message HttpLoadBalancing { // has based on the resource usage of the existing pods. message HorizontalPodAutoscaling { // Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. - // When enabled, it ensures that a Heapster pod is running in the cluster, - // which is also used by the Cloud Monitoring service. + // When enabled, it ensures that metrics are collected into Stackdriver + // Monitoring. bool disabled = 1; } @@ -735,6 +931,37 @@ message NetworkPolicyConfig { bool disabled = 1; } +// Configuration for NodeLocal DNSCache +message DnsCacheConfig { + // Whether NodeLocal DNSCache is enabled for this cluster. + bool enabled = 1; +} + +// Configuration options for the KALM addon. +message KalmConfig { + // Whether KALM is enabled for this cluster. + bool enabled = 1; +} + +// Configuration options for the Config Connector add-on. +message ConfigConnectorConfig { + // Whether Cloud Connector is enabled for this cluster. + bool enabled = 1; +} + +// Configuration for the Compute Engine PD CSI driver. This option can only be +// enabled at cluster creation time. +message GcePersistentDiskCsiDriverConfig { + // Whether the Compute Engine PD CSI driver is enabled for this cluster. + bool enabled = 1; +} + +// Configuration for controlling master global access settings. +message PrivateClusterMasterGlobalAccessConfig { + // Whenever master is accessible globally or not. + bool enabled = 1; +} + // Configuration options for private clusters. message PrivateClusterConfig { // Whether nodes have internal IP addresses only. If enabled, all nodes are @@ -756,6 +983,12 @@ message PrivateClusterConfig { // Output only. The external IP address of this cluster's master endpoint. string public_endpoint = 5; + + // Output only. The peering name in the customer VPC used by this cluster. + string peering_name = 7; + + // Controls master global access settings. + PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; } // Configuration options for Istio addon. @@ -778,8 +1011,23 @@ message IstioConfig { // Configuration options for the Cloud Run feature. message CloudRunConfig { + // Load balancer type of ingress service of Cloud Run. + enum LoadBalancerType { + // Load balancer type for Cloud Run is unspecified. + LOAD_BALANCER_TYPE_UNSPECIFIED = 0; + + // Install external load balancer for Cloud Run. + LOAD_BALANCER_TYPE_EXTERNAL = 1; + + // Install internal load balancer for Cloud Run. + LOAD_BALANCER_TYPE_INTERNAL = 2; + } + // Whether Cloud Run addon is enabled for this cluster. bool disabled = 1; + + // Which load balancer type is installed for Cloud Run. + LoadBalancerType load_balancer_type = 3; } // Configuration options for the master authorized networks feature. Enabled @@ -836,6 +1084,9 @@ message NetworkPolicy { // Configuration for controlling how IPs are allocated in the cluster. message IPAllocationPolicy { // Whether alias IPs will be used for pod IPs in the cluster. + // This is used in conjunction with use_routes. It cannot + // be true if use_routes is true. If both use_ip_aliases and use_routes are + // false, then the server picks the default IP allocation mode bool use_ip_aliases = 1; // Whether a new subnetwork will be created automatically for the cluster. @@ -954,7 +1205,14 @@ message IPAllocationPolicy { // notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. // `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range // to use. + // This field is deprecated, use cluster.tpu_config.ipv4_cidr_block instead. string tpu_ipv4_cidr_block = 13; + + // Whether routes will be used for pod IPs in the cluster. + // This is used in conjunction with use_ip_aliases. It cannot be true if + // use_ip_aliases is true. If both use_ip_aliases and use_routes are false, + // then the server picks the default IP allocation mode + bool use_routes = 15; } // Configuration for Binary Authorization. @@ -982,6 +1240,27 @@ message AuthenticatorGroupsConfig { string security_group = 2; } +// Telemetry integration for the cluster. +message ClusterTelemetry { + // Type of the integration. + enum Type { + // Not set. + UNSPECIFIED = 0; + + // Monitoring integration is disabled. + DISABLED = 1; + + // Monitoring integration is enabled. + ENABLED = 2; + + // Only system components are monitored and logged. + SYSTEM_ONLY = 3; + } + + // Type of the integration. + Type type = 1; +} + // A Google Kubernetes Engine cluster. message Cluster { // The current status of the cluster. @@ -1060,24 +1339,34 @@ message Cluster { // The logging service the cluster should use to write logs. // Currently available options: // - // * `logging.googleapis.com` - the Google Cloud Logging service. + // * `logging.googleapis.com/kubernetes` - The Cloud Logging + // service with a Kubernetes-native resource model + // * `logging.googleapis.com` - The legacy Cloud Logging service (no longer + // available as of GKE 1.15). // * `none` - no logs will be exported from the cluster. - // * if left as an empty string,`logging.googleapis.com` will be used. + // + // If left as an empty string,`logging.googleapis.com/kubernetes` will be + // used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. string logging_service = 6; // The monitoring service the cluster should use to write metrics. // Currently available options: // - // * `monitoring.googleapis.com` - the Google Cloud Monitoring service. - // * `none` - no metrics will be exported from the cluster. - // * if left as an empty string, `monitoring.googleapis.com` will be used. + // * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring + // service with a Kubernetes-native resource model + // * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no + // longer available as of GKE 1.15). + // * `none` - No metrics will be exported from the cluster. + // + // If left as an empty string,`monitoring.googleapis.com/kubernetes` will be + // used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. string monitoring_service = 7; // The name of the Google Compute Engine - // [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which the - // cluster is connected. If left unspecified, the `default` network - // will be used. On output this shows the network ID instead of - // the name. + // [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) + // to which the cluster is connected. If left unspecified, the `default` + // network will be used. On output this shows the network ID instead of the + // name. string network = 8; // The IP address range of the container pods in this cluster, in @@ -1090,8 +1379,8 @@ message Cluster { AddonsConfig addons_config = 10; // The name of the Google Compute Engine - // [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which the - // cluster is connected. On output this shows the subnetwork ID instead of + // [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which + // the cluster is connected. On output this shows the subnetwork ID instead of // the name. string subnetwork = 11; @@ -1101,8 +1390,16 @@ message Cluster { repeated NodePool node_pools = 12; // The list of Google Compute Engine - // [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes - // should be located. + // [zones](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster's nodes should be located. + // + // This field provides a default value if + // [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) + // are not specified during node pool creation. + // + // Warning: changing cluster locations will update the + // [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) + // of all node pools and will result in nodes being added and/or removed. repeated string locations = 13; // Kubernetes alpha features are enabled on this cluster. This includes alpha @@ -1179,13 +1476,34 @@ message Cluster { // Cluster-level Vertical Pod Autoscaling configuration. VerticalPodAutoscaling vertical_pod_autoscaling = 39; + // Shielded Nodes configuration. + ShieldedNodes shielded_nodes = 40; + + // Release channel configuration. + ReleaseChannel release_channel = 41; + + // Configuration for the use of Kubernetes Service Accounts in GCP IAM + // policies. + WorkloadIdentityConfig workload_identity_config = 43; + + // Telemetry integration for the cluster. + ClusterTelemetry cluster_telemetry = 46; + + // Configuration for Cloud TPU support; + TpuConfig tpu_config = 47; + + // Notification configuration of the cluster. + NotificationConfig notification_config = 49; + + // Configuration of Confidential Nodes + ConfidentialNodes confidential_nodes = 50; + // [Output only] Server-defined URL for the resource. string self_link = 100; // [Output only] The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field is deprecated, use location instead. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field is deprecated, use location instead. string zone = 101 [deprecated = true]; // [Output only] The IP address of this cluster's master endpoint. @@ -1228,7 +1546,8 @@ message Cluster { // [Output only] The current status of this cluster. Status status = 107; - // [Output only] Additional information about the current status of this + // [Output only] Deprecated. Use conditions instead. + // Additional information about the current status of this // cluster, if available. string status_message = 108 [deprecated = true]; @@ -1257,12 +1576,14 @@ message Cluster { string expire_time = 113; // [Output only] The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or - // [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which - // the cluster resides. + // [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) + // or + // [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) + // in which the cluster resides. string location = 114; // Enable the ability to use Cloud TPUs in this cluster. + // This field is deprecated, use tpu_config.enabled instead. bool enable_tpu = 115; // [Output only] The IP address range of the Cloud TPUs in this cluster, in @@ -1275,6 +1596,9 @@ message Cluster { // Which conditions caused the current cluster state. repeated StatusCondition conditions = 118; + + // Configuration for master components. + Master master = 124; } // ClusterUpdate describes an update to the cluster. Exactly one update can @@ -1297,10 +1621,14 @@ message ClusterUpdate { // The monitoring service the cluster should use to write metrics. // Currently available options: // - // * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring - // service with Kubernetes-native resource model - // * "monitoring.googleapis.com" - the Google Cloud Monitoring service - // * "none" - no metrics will be exported from the cluster + // * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring + // service with a Kubernetes-native resource model + // * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no + // longer available as of GKE 1.15). + // * `none` - No metrics will be exported from the cluster. + // + // If left as an empty string,`monitoring.googleapis.com/kubernetes` will be + // used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. string desired_monitoring_service = 5; // Configurations for the various addons available to run in the cluster. @@ -1323,12 +1651,13 @@ message ClusterUpdate { NodePoolAutoscaling desired_node_pool_autoscaling = 9; // The desired list of Google Compute Engine - // [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes - // should be located. Changing the locations a cluster is in will result - // in nodes being either created or removed from the cluster, depending on - // whether locations are being added or removed. + // [zones](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster's nodes should be located. // // This list must always include the cluster's primary zone. + // + // Warning: changing cluster locations will update the locations of all node + // pools and will result in nodes being added and/or removed. repeated string desired_locations = 10; // The desired configuration options for master authorized networks feature. @@ -1343,13 +1672,17 @@ message ClusterUpdate { // The desired configuration options for the Binary Authorization feature. BinaryAuthorization desired_binary_authorization = 16; - // The logging service the cluster should use to write metrics. + // The logging service the cluster should use to write logs. // Currently available options: // - // * "logging.googleapis.com/kubernetes" - the Google Cloud Logging - // service with Kubernetes-native resource model - // * "logging.googleapis.com" - the Google Cloud Logging service - // * "none" - no logs will be exported from the cluster + // * `logging.googleapis.com/kubernetes` - The Cloud Logging + // service with a Kubernetes-native resource model + // * `logging.googleapis.com` - The legacy Cloud Logging service (no longer + // available as of GKE 1.15). + // * `none` - no logs will be exported from the cluster. + // + // If left as an empty string,`logging.googleapis.com/kubernetes` will be + // used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. string desired_logging_service = 19; // The desired configuration for exporting resource usage. @@ -1358,9 +1691,30 @@ message ClusterUpdate { // Cluster-level Vertical Pod Autoscaling configuration. VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + // The desired private cluster configuration. + PrivateClusterConfig desired_private_cluster_config = 25; + // The desired config of Intra-node visibility. IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + // The desired status of whether to disable default sNAT for this cluster. + DefaultSnatStatus desired_default_snat_status = 28; + + // The desired telemetry integration for the cluster. + ClusterTelemetry desired_cluster_telemetry = 30; + + // The desired release channel configuration. + ReleaseChannel desired_release_channel = 31; + + // The desired Cloud TPU configuration. + TpuConfig desired_tpu_config = 38; + + // The desired datapath provider for the cluster. + DatapathProvider desired_datapath_provider = 50; + + // The desired notification configuration. + NotificationConfig desired_notification_config = 55; + // The Kubernetes version to change the master to. The only valid value is the // latest supported version. // @@ -1373,6 +1727,18 @@ message ClusterUpdate { // - "1.X.Y-gke.N": picks an explicit Kubernetes version // - "-": picks the default Kubernetes version string desired_master_version = 100; + + // Configuration of etcd encryption. + DatabaseEncryption desired_database_encryption = 46; + + // Configuration for Workload Identity. + WorkloadIdentityConfig desired_workload_identity_config = 47; + + // Configuration for Shielded Nodes. + ShieldedNodes desired_shielded_nodes = 48; + + // Configuration for master components. + Master desired_master = 52; } // This operation resource represents operations that may have happened or are @@ -1454,9 +1820,8 @@ message Operation { string name = 1; // The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation - // is taking place. - // This field is deprecated, use location instead. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // operation is taking place. This field is deprecated, use location instead. string zone = 2 [deprecated = true]; // The operation type. @@ -1468,8 +1833,12 @@ message Operation { // Detailed operation progress, if available. string detail = 8; - // If an error has occurred, a textual description of the error. - string status_message = 5 [deprecated = true]; + // Output only. If an error has occurred, a textual description of the error. + // Deprecated. Use field error instead. + string status_message = 5 [ + deprecated = true, + (google.api.field_behavior) = OUTPUT_ONLY + ]; // Server-defined URL for the resource. string self_link = 6; @@ -1478,9 +1847,10 @@ message Operation { string target_link = 7; // [Output only] The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or - // [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which - // the cluster resides. + // [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) + // or + // [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) + // in which the cluster resides. string location = 9; // [Output only] The time the operation started, in @@ -1491,23 +1861,27 @@ message Operation { // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. string end_time = 11; - // [Output only] Progress information for an operation. - OperationProgress progress = 12; + // Output only. [Output only] Progress information for an operation. + OperationProgress progress = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; // Which conditions caused the current cluster state. - repeated StatusCondition cluster_conditions = 13; + // Deprecated. Use field error instead. + repeated StatusCondition cluster_conditions = 13 [deprecated = true]; // Which conditions caused the current node pool state. - repeated StatusCondition nodepool_conditions = 14; + // Deprecated. Use field error instead. + repeated StatusCondition nodepool_conditions = 14 [deprecated = true]; + + // The error result of the operation in case of failure. + google.rpc.Status error = 15; } // Information about operation (or operation stage) progress. message OperationProgress { // Progress metric is (string, int|float|string) pair. message Metric { - // Metric name, required. - // e.g., "nodes total", "percent done" - string name = 1; + // Required. Metric name, e.g., "nodes total", "percent done". + string name = 1 [(google.api.field_behavior) = REQUIRED]; // Strictly one of the values is required. oneof value { @@ -1553,16 +1927,16 @@ message CreateClusterRequest { ]; // Required. Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the parent field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the parent + // field. string zone = 2 [ deprecated = true, (google.api.field_behavior) = REQUIRED ]; // Required. A [cluster - // resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.zones.clusters) + // resource](https://cloud.google.com/container-engine/reference/rest/v1beta1/projects.locations.clusters) Cluster cluster = 3 [(google.api.field_behavior) = REQUIRED]; // The parent (project and location) where the cluster will be created. @@ -1581,9 +1955,9 @@ message GetClusterRequest { ]; // Required. Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [ deprecated = true, (google.api.field_behavior) = REQUIRED @@ -1612,9 +1986,9 @@ message UpdateClusterRequest { ]; // Required. Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [ deprecated = true, (google.api.field_behavior) = REQUIRED @@ -1646,9 +2020,9 @@ message UpdateNodePoolRequest { ]; // Required. Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [ deprecated = true, (google.api.field_behavior) = REQUIRED @@ -1684,13 +2058,29 @@ message UpdateNodePoolRequest { // Required. The desired image type for the node pool. string image_type = 6 [(google.api.field_behavior) = REQUIRED]; - // The desired image type for the node pool. + // The desired list of Google Compute Engine + // [zones](https://cloud.google.com/compute/docs/zones#available) in which the + // node pool's nodes should be located. Changing the locations for a node pool + // will result in nodes being either created or removed from the node pool, + // depending on whether locations are being added or removed. + repeated string locations = 13; + + // The desired workload metadata config for the node pool. WorkloadMetadataConfig workload_metadata_config = 14; // The name (project, location, cluster, node pool) of the node pool to // update. Specified in the format // `projects/*/locations/*/clusters/*/nodePools/*`. string name = 8; + + // Upgrade settings control disruption and speed of the upgrade. + NodePool.UpgradeSettings upgrade_settings = 15; + + // Parameters that can be configured on Linux nodes. + LinuxNodeConfig linux_node_config = 19; + + // Node kubelet configs. + NodeKubeletConfig kubelet_config = 20; } // SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool. @@ -1704,9 +2094,9 @@ message SetNodePoolAutoscalingRequest { ]; // Required. Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [ deprecated = true, (google.api.field_behavior) = REQUIRED @@ -1746,9 +2136,9 @@ message SetLoggingServiceRequest { ]; // Required. Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [ deprecated = true, (google.api.field_behavior) = REQUIRED @@ -1761,11 +2151,17 @@ message SetLoggingServiceRequest { (google.api.field_behavior) = REQUIRED ]; - // Required. The logging service the cluster should use to write metrics. + // Required. The logging service the cluster should use to write logs. // Currently available options: // - // * "logging.googleapis.com" - the Google Cloud Logging service - // * "none" - no metrics will be exported from the cluster + // * `logging.googleapis.com/kubernetes` - The Cloud Logging + // service with a Kubernetes-native resource model + // * `logging.googleapis.com` - The legacy Cloud Logging service (no longer + // available as of GKE 1.15). + // * `none` - no logs will be exported from the cluster. + // + // If left as an empty string,`logging.googleapis.com/kubernetes` will be + // used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. string logging_service = 4 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster) of the cluster to set logging. @@ -1784,9 +2180,9 @@ message SetMonitoringServiceRequest { ]; // Required. Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [ deprecated = true, (google.api.field_behavior) = REQUIRED @@ -1802,8 +2198,14 @@ message SetMonitoringServiceRequest { // Required. The monitoring service the cluster should use to write metrics. // Currently available options: // - // * "monitoring.googleapis.com" - the Google Cloud Monitoring service - // * "none" - no metrics will be exported from the cluster + // * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring + // service with a Kubernetes-native resource model + // * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no + // longer available as of GKE 1.15). + // * `none` - No metrics will be exported from the cluster. + // + // If left as an empty string,`monitoring.googleapis.com/kubernetes` will be + // used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. string monitoring_service = 4 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster) of the cluster to set monitoring. @@ -1822,9 +2224,9 @@ message SetAddonsConfigRequest { ]; // Required. Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [ deprecated = true, (google.api.field_behavior) = REQUIRED @@ -1857,9 +2259,9 @@ message SetLocationsRequest { ]; // Required. Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [ deprecated = true, (google.api.field_behavior) = REQUIRED @@ -1873,10 +2275,10 @@ message SetLocationsRequest { ]; // Required. The desired list of Google Compute Engine - // [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes - // should be located. Changing the locations a cluster is in will result - // in nodes being either created or removed from the cluster, depending on - // whether locations are being added or removed. + // [zones](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster's nodes should be located. Changing the locations a cluster is in + // will result in nodes being either created or removed from the cluster, + // depending on whether locations are being added or removed. // // This list must always include the cluster's primary zone. repeated string locations = 4 [(google.api.field_behavior) = REQUIRED]; @@ -1897,9 +2299,9 @@ message UpdateMasterRequest { ]; // Required. Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [ deprecated = true, (google.api.field_behavior) = REQUIRED @@ -1958,9 +2360,9 @@ message SetMasterAuthRequest { ]; // Required. Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [ deprecated = true, (google.api.field_behavior) = REQUIRED @@ -1995,9 +2397,9 @@ message DeleteClusterRequest { ]; // Required. Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [ deprecated = true, (google.api.field_behavior) = REQUIRED @@ -2026,9 +2428,9 @@ message ListClustersRequest { ]; // Required. Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides, or "-" for all zones. - // This field has been deprecated and replaced by the parent field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides, or "-" for all zones. This field has been deprecated and + // replaced by the parent field. string zone = 2 [ deprecated = true, (google.api.field_behavior) = REQUIRED @@ -2062,9 +2464,9 @@ message GetOperationRequest { ]; // Required. Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [ deprecated = true, (google.api.field_behavior) = REQUIRED @@ -2093,8 +2495,9 @@ message ListOperationsRequest { ]; // Required. Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) to return operations for, or `-` for - // all zones. This field has been deprecated and replaced by the parent field. + // [zone](https://cloud.google.com/compute/docs/zones#available) to return + // operations for, or `-` for all zones. This field has been deprecated and + // replaced by the parent field. string zone = 2 [ deprecated = true, (google.api.field_behavior) = REQUIRED @@ -2117,8 +2520,9 @@ message CancelOperationRequest { ]; // Required. Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // operation resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [ deprecated = true, (google.api.field_behavior) = REQUIRED @@ -2157,8 +2561,9 @@ message GetServerConfigRequest { ]; // Required. Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) to return operations for. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) to return + // operations for. This field has been deprecated and replaced by the name + // field. string zone = 2 [ deprecated = true, (google.api.field_behavior) = REQUIRED @@ -2171,10 +2576,38 @@ message GetServerConfigRequest { // Kubernetes Engine service configuration. message ServerConfig { + // ReleaseChannelConfig exposes configuration for a release channel. + message ReleaseChannelConfig { + // Deprecated. + message AvailableVersion { + option deprecated = true; + + // Kubernetes version. + string version = 1; + + // Reason for availability. + string reason = 2; + } + + // The release channel this configuration applies to. + ReleaseChannel.Channel channel = 1; + + // The default version for newly created clusters on the channel. + string default_version = 2; + + // Deprecated. + // This field has been deprecated and replaced with the valid_versions + // field. + repeated AvailableVersion available_versions = 3 [deprecated = true]; + + // List of valid versions for the channel. + repeated string valid_versions = 4; + } + // Version of Kubernetes the service deploys by default. string default_cluster_version = 1; - // List of valid node upgrade target versions. + // List of valid node upgrade target versions, in descending order. repeated string valid_node_versions = 3; // Default image type. @@ -2183,8 +2616,11 @@ message ServerConfig { // List of valid image types. repeated string valid_image_types = 5; - // List of valid master versions. + // List of valid master versions, in descending order. repeated string valid_master_versions = 6; + + // List of release channel configurations. + repeated ReleaseChannelConfig channels = 9; } // CreateNodePoolRequest creates a node pool for a cluster. @@ -2198,9 +2634,9 @@ message CreateNodePoolRequest { ]; // Required. Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the parent field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the parent + // field. string zone = 2 [ deprecated = true, (google.api.field_behavior) = REQUIRED @@ -2233,9 +2669,9 @@ message DeleteNodePoolRequest { ]; // Required. Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [ deprecated = true, (google.api.field_behavior) = REQUIRED @@ -2272,9 +2708,9 @@ message ListNodePoolsRequest { ]; // Required. Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the parent field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the parent + // field. string zone = 2 [ deprecated = true, (google.api.field_behavior) = REQUIRED @@ -2303,9 +2739,9 @@ message GetNodePoolRequest { ]; // Required. Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [ deprecated = true, (google.api.field_behavior) = REQUIRED @@ -2338,6 +2774,40 @@ message GetNodePoolRequest { // during pod scheduling. They may also be resized up or down, to accommodate // the workload. message NodePool { + // These upgrade settings control the level of parallelism and the level of + // disruption caused by an upgrade. + // + // maxUnavailable controls the number of nodes that can be simultaneously + // unavailable. + // + // maxSurge controls the number of additional nodes that can be added to the + // node pool temporarily for the time of the upgrade to increase the number of + // available nodes. + // + // (maxUnavailable + maxSurge) determines the level of parallelism (how many + // nodes are being upgraded at the same time). + // + // Note: upgrades inevitably introduce some disruption since workloads need to + // be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0, + // this holds true. (Disruption stays within the limits of + // PodDisruptionBudget, if it is configured.) + // + // Consider a hypothetical node pool with 5 nodes having maxSurge=2, + // maxUnavailable=1. This means the upgrade process upgrades 3 nodes + // simultaneously. It creates 2 additional (upgraded) nodes, then it brings + // down 3 old (not yet upgraded) nodes at the same time. This ensures that + // there are always at least 4 nodes available. + message UpgradeSettings { + // The maximum number of nodes that can be created beyond the current size + // of the node pool during the upgrade process. + int32 max_surge = 1; + + // The maximum number of nodes that can be simultaneously unavailable during + // the upgrade process. A node is considered available if its status is + // Ready. + int32 max_unavailable = 2; + } + // The current status of the node pool instance. enum Status { // Not set. @@ -2381,6 +2851,18 @@ message NodePool { // firewall and routes quota. int32 initial_node_count = 3; + // The list of Google Compute Engine + // [zones](https://cloud.google.com/compute/docs/zones#available) in which the + // NodePool's nodes should be located. + // + // If this value is unspecified during node pool creation, the + // [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations) + // value will be used, instead. + // + // Warning: changing node pool locations will result in nodes being added + // and/or removed. + repeated string locations = 13; + // [Output only] Server-defined URL for the resource. string self_link = 100; @@ -2395,7 +2877,8 @@ message NodePool { // [Output only] The status of the nodes in this pool instance. Status status = 103; - // [Output only] Additional information about the current status of this + // [Output only] Deprecated. Use conditions instead. + // Additional information about the current status of this // node pool instance, if available. string status_message = 104 [deprecated = true]; @@ -2415,6 +2898,9 @@ message NodePool { // [Output only] The pod CIDR block size per node in this node pool. int32 pod_ipv4_cidr_size = 7; + + // Upgrade settings control disruption and speed of the upgrade. + UpgradeSettings upgrade_settings = 107; } // NodeManagement defines the set of node management services turned on for the @@ -2451,7 +2937,7 @@ message MaintenancePolicy { // A hash identifying the version of this policy, so that updates to fields of // the policy won't accidentally undo intermediate changes (and so that users // of the API unaware of some fields won't accidentally remove other fields). - // Make a get() request to the cluster to get the current + // Make a `get()` request to the cluster to get the current // resource version and include it with requests to set the policy. string resource_version = 3; } @@ -2495,25 +2981,30 @@ message RecurringTimeWindow { // end time. // // For example, to have something repeat every weekday, you'd use: - // FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR + // `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR` + // // To repeat some window daily (equivalent to the DailyMaintenanceWindow): - // FREQ=DAILY + // `FREQ=DAILY` + // // For the first weekend of every month: - // FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU + // `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU` + // // This specifies how frequently the window starts. Eg, if you wanted to have // a 9-5 UTC-4 window every weekday, you'd use something like: - // - // start time = 2019-01-01T09:00:00-0400 - // end time = 2019-01-01T17:00:00-0400 - // recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR - // + // ``` + // start time = 2019-01-01T09:00:00-0400 + // end time = 2019-01-01T17:00:00-0400 + // recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR + // ``` + // // Windows can span multiple days. Eg, to make the window encompass every // weekend from midnight Saturday till the last minute of Sunday UTC: - // - // start time = 2019-01-05T00:00:00Z - // end time = 2019-01-07T23:59:00Z - // recurrence = FREQ=WEEKLY;BYDAY=SA - // + // ``` + // start time = 2019-01-05T00:00:00Z + // end time = 2019-01-07T23:59:00Z + // recurrence = FREQ=WEEKLY;BYDAY=SA + // ``` + // // Note the start and end time's specific dates are largely arbitrary except // to specify duration of the window and when it first starts. // The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported. @@ -2543,9 +3034,9 @@ message SetNodePoolManagementRequest { ]; // Required. Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [ deprecated = true, (google.api.field_behavior) = REQUIRED @@ -2586,9 +3077,9 @@ message SetNodePoolSizeRequest { ]; // Required. Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [ deprecated = true, (google.api.field_behavior) = REQUIRED @@ -2630,9 +3121,9 @@ message RollbackNodePoolUpgradeRequest { ]; // Required. Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [ deprecated = true, (google.api.field_behavior) = REQUIRED @@ -2669,6 +3160,18 @@ message ListNodePoolsResponse { // the size of the cluster and create/delete // node pools based on the current needs. message ClusterAutoscaling { + // Defines possible options for autoscaling_profile field. + enum AutoscalingProfile { + // No change to autoscaling configuration. + PROFILE_UNSPECIFIED = 0; + + // Prioritize optimizing utilization of resources. + OPTIMIZE_UTILIZATION = 1; + + // Use default (balanced) autoscaling configuration. + BALANCED = 2; + } + // Enables automatic node pool creation and deletion. bool enable_node_autoprovisioning = 1; @@ -2676,25 +3179,84 @@ message ClusterAutoscaling { // amount of resources in the cluster. repeated ResourceLimit resource_limits = 2; + // Defines autoscaling behaviour. + AutoscalingProfile autoscaling_profile = 3; + // AutoprovisioningNodePoolDefaults contains defaults for a node pool // created by NAP. AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - // The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) - // in which the NodePool's nodes can be created by NAP. + // The list of Google Compute Engine + // [zones](https://cloud.google.com/compute/docs/zones#available) in which the + // NodePool's nodes can be created by NAP. repeated string autoprovisioning_locations = 5; } // AutoprovisioningNodePoolDefaults contains defaults for a node pool created // by NAP. message AutoprovisioningNodePoolDefaults { - // Scopes that are used by NAP when creating node pools. If oauth_scopes are - // specified, service_account should be empty. + // The set of Google API scopes to be made available on all of the + // node VMs under the "default" service account. + // + // The following scopes are recommended, but not required, and by default are + // not included: + // + // * `https://www.googleapis.com/auth/compute` is required for mounting + // persistent storage on your nodes. + // * `https://www.googleapis.com/auth/devstorage.read_only` is required for + // communicating with **gcr.io** + // (the [Google Container + // Registry](https://cloud.google.com/container-registry/)). + // + // If unspecified, no scopes are added, unless Cloud Logging or Cloud + // Monitoring are enabled, in which case their required scopes will be added. repeated string oauth_scopes = 1; - // The Google Cloud Platform Service Account to be used by the node VMs. If - // service_account is specified, scopes should be empty. + // The Google Cloud Platform Service Account to be used by the node VMs. + // Specify the email address of the Service Account; otherwise, if no Service + // Account is specified, the "default" service account is used. string service_account = 2; + + // Upgrade settings control disruption and speed of the upgrade. + NodePool.UpgradeSettings upgrade_settings = 3; + + // NodeManagement configuration for this NodePool. + NodeManagement management = 4; + + // Minimum CPU platform to be used by this instance. The instance may be + // scheduled on the specified or newer CPU platform. Applicable values are the + // friendly names of CPU platforms, such as + // `minCpuPlatform: "Intel Haswell"` or + // `minCpuPlatform: "Intel Sandy Bridge"`. For more + // information, read [how to specify min CPU + // platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) + // To unset the min cpu platform field pass "automatic" + // as field value. + string min_cpu_platform = 5; + + // Size of the disk attached to each node, specified in GB. + // The smallest allowed disk size is 10GB. + // + // If unspecified, the default disk size is 100GB. + int32 disk_size_gb = 6; + + // Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or + // 'pd-balanced') + // + // If unspecified, the default disk type is 'pd-standard' + string disk_type = 7; + + // Shielded Instance options. + ShieldedInstanceConfig shielded_instance_config = 8; + + // + // The Customer Managed Encryption Key used to encrypt the boot disk attached + // to each node in the node pool. This should be of the form + // projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. + // For more information about protecting resources with Cloud KMS Keys please + // see: + // https://cloud.google.com/compute/docs/disks/customer-managed-encryption + string boot_disk_kms_key = 9; } // Contains information about amount of some resource in the cluster. @@ -2741,9 +3303,9 @@ message SetLabelsRequest { ]; // Required. Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [ deprecated = true, (google.api.field_behavior) = REQUIRED @@ -2763,7 +3325,7 @@ message SetLabelsRequest { // used to detect conflicts. The fingerprint is initially generated by // Kubernetes Engine and changes after every request to modify or update // labels. You must always provide an up-to-date fingerprint hash when - // updating or changing labels. Make a get() request to the + // updating or changing labels. Make a `get()` request to the // resource to get the latest fingerprint. string label_fingerprint = 5 [(google.api.field_behavior) = REQUIRED]; @@ -2784,9 +3346,9 @@ message SetLegacyAbacRequest { ]; // Required. Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [ deprecated = true, (google.api.field_behavior) = REQUIRED @@ -2819,9 +3381,9 @@ message StartIPRotationRequest { ]; // Required. Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [ deprecated = true, (google.api.field_behavior) = REQUIRED @@ -2853,9 +3415,9 @@ message CompleteIPRotationRequest { ]; // Required. Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [ deprecated = true, (google.api.field_behavior) = REQUIRED @@ -2904,11 +3466,39 @@ message WorkloadMetadataConfig { // Expose all VM metadata to pods. EXPOSE = 2; + + // Run the GKE Metadata Server on this node. The GKE Metadata Server exposes + // a metadata API to workloads that is compatible with the V1 Compute + // Metadata APIs exposed by the Compute Engine and App Engine Metadata + // Servers. This feature can only be enabled if Workload Identity is enabled + // at the cluster level. + GKE_METADATA_SERVER = 3; + } + + // Mode is the configuration for how to expose metadata to workloads running + // on the node. + enum Mode { + // Not set. + MODE_UNSPECIFIED = 0; + + // Expose all Compute Engine metadata to pods. + GCE_METADATA = 1; + + // Run the GKE Metadata Server on this node. The GKE Metadata Server exposes + // a metadata API to workloads that is compatible with the V1 Compute + // Metadata APIs exposed by the Compute Engine and App Engine Metadata + // Servers. This feature can only be enabled if Workload Identity is enabled + // at the cluster level. + GKE_METADATA = 2; } // NodeMetadata is the configuration for how to expose metadata to the // workloads running on the node. - NodeMetadata node_metadata = 1; + NodeMetadata node_metadata = 1 [deprecated = true]; + + // Mode is the configuration for how to expose metadata to workloads running + // on the node pool. + Mode mode = 2; } // SetNetworkPolicyRequest enables/disables network policy for a cluster. @@ -2922,9 +3512,9 @@ message SetNetworkPolicyRequest { ]; // Required. Deprecated. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. - // This field has been deprecated and replaced by the name field. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. This field has been deprecated and replaced by the name + // field. string zone = 2 [ deprecated = true, (google.api.field_behavior) = REQUIRED @@ -2952,8 +3542,8 @@ message SetMaintenancePolicyRequest { string project_id = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The name of the Google Compute Engine - // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - // resides. + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the + // cluster resides. string zone = 2 [(google.api.field_behavior) = REQUIRED]; // Required. The name of the cluster to update. @@ -3024,7 +3614,8 @@ message StatusCondition { // UNKNOWN indicates a generic condition. UNKNOWN = 0; - // GCE_STOCKOUT indicates a Google Compute Engine stockout. + // GCE_STOCKOUT indicates that Google Compute Engine resources are + // temporarily unavailable. GCE_STOCKOUT = 1; // GKE_SERVICE_ACCOUNT_DELETED indicates that the user deleted their robot @@ -3044,28 +3635,43 @@ message StatusCondition { } // Machine-friendly representation of the condition - Code code = 1; + // Deprecated. Use canonical_code instead. + Code code = 1 [deprecated = true]; // Human-friendly representation of the condition string message = 2; + + // Canonical code of the condition. + google.rpc.Code canonical_code = 3; } // NetworkConfig reports the relative names of network & subnetwork. message NetworkConfig { // Output only. The relative name of the Google Compute Engine - // [network][google.container.v1beta1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which - // the cluster is connected. - // Example: projects/my-project/global/networks/my-network + // [network][google.container.v1beta1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) + // to which the cluster is connected. Example: + // projects/my-project/global/networks/my-network string network = 1; // Output only. The relative name of the Google Compute Engine - // [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the cluster is connected. - // Example: projects/my-project/regions/us-central1/subnetworks/my-subnet + // [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the + // cluster is connected. Example: + // projects/my-project/regions/us-central1/subnetworks/my-subnet string subnetwork = 2; // Whether Intra-node visibility is enabled for this cluster. // This makes same node pod to pod traffic visible for VPC network. bool enable_intra_node_visibility = 5; + + // Whether the cluster disables default in-node sNAT rules. In-node sNAT rules + // will be disabled when default_snat_status is disabled. When disabled is set + // to false, default IP masquerade rules will be applied to the nodes to + // prevent sNAT on cluster internal traffic. + DefaultSnatStatus default_snat_status = 7; + + // The desired datapath provider for this cluster. By default, uses the + // IPTables-based kube-proxy implementation. + DatapathProvider datapath_provider = 11; } // ListUsableSubnetworksRequest requests the list of usable subnetworks. @@ -3172,6 +3778,13 @@ message VerticalPodAutoscaling { bool enabled = 1; } +// DefaultSnatStatus contains the desired state of whether default sNAT should +// be disabled on the cluster. +message DefaultSnatStatus { + // Disables cluster default sNAT rules. + bool disabled = 1; +} + // IntraNodeVisibilityConfig contains the desired config of the intra-node // visibility on this cluster. message IntraNodeVisibilityConfig { @@ -3185,6 +3798,19 @@ message MaxPodsConstraint { int64 max_pods_per_node = 1; } +// Configuration for the use of Kubernetes Service Accounts in GCP IAM +// policies. +message WorkloadIdentityConfig { + // IAM Identity Namespace to attach all Kubernetes Service Accounts to. + string identity_namespace = 1 [deprecated = true]; + + // The workload pool to attach all Kubernetes service accounts to. + string workload_pool = 2; + + // identity provider is the third party identity provider. + string identity_provider = 3; +} + // Configuration of etcd encryption. message DatabaseEncryption { // State of etcd encryption. @@ -3196,7 +3822,7 @@ message DatabaseEncryption { ENCRYPTED = 1; // Secrets in etcd are stored in plain text (at etcd level) - this is - // unrelated to Google Compute Engine level full disk encryption. + // unrelated to Compute Engine level full disk encryption. DECRYPTED = 2; } @@ -3234,3 +3860,218 @@ message ResourceUsageExportConfig { // Configuration to enable resource consumption metering. ConsumptionMeteringConfig consumption_metering_config = 3; } + +// Configuration of Shielded Nodes feature. +message ShieldedNodes { + // Whether Shielded Nodes features are enabled on all nodes in this cluster. + bool enabled = 1; +} + +// GetOpenIDConfigRequest gets the OIDC discovery document for the +// cluster. See the OpenID Connect Discovery 1.0 specification for details. +message GetOpenIDConfigRequest { + // The cluster (project, location, cluster id) to get the discovery document + // for. Specified in the format `projects/*/locations/*/clusters/*`. + string parent = 1; +} + +// GetOpenIDConfigResponse is an OIDC discovery document for the cluster. +// See the OpenID Connect Discovery 1.0 specification for details. +message GetOpenIDConfigResponse { + // OIDC Issuer. + string issuer = 1; + + // JSON Web Key uri. + string jwks_uri = 2; + + // Supported response types. + repeated string response_types_supported = 3; + + // Supported subject types. + repeated string subject_types_supported = 4; + + // supported ID Token signing Algorithms. + repeated string id_token_signing_alg_values_supported = 5; + + // Supported claims. + repeated string claims_supported = 6; + + // Supported grant types. + repeated string grant_types = 7; +} + +// GetJSONWebKeysRequest gets the public component of the keys used by the +// cluster to sign token requests. This will be the jwks_uri for the discover +// document returned by getOpenIDConfig. See the OpenID Connect +// Discovery 1.0 specification for details. +message GetJSONWebKeysRequest { + // The cluster (project, location, cluster id) to get keys for. Specified in + // the format `projects/*/locations/*/clusters/*`. + string parent = 1; +} + +// Jwk is a JSON Web Key as specified in RFC 7517 +message Jwk { + // Key Type. + string kty = 1; + + // Algorithm. + string alg = 2; + + // Permitted uses for the public keys. + string use = 3; + + // Key ID. + string kid = 4; + + // Used for RSA keys. + string n = 5; + + // Used for RSA keys. + string e = 6; + + // Used for ECDSA keys. + string x = 7; + + // Used for ECDSA keys. + string y = 8; + + // Used for ECDSA keys. + string crv = 9; +} + +// GetJSONWebKeysResponse is a valid JSON Web Key Set as specififed in rfc 7517 +message GetJSONWebKeysResponse { + // The public component of the keys used by the cluster to sign token + // requests. + repeated Jwk keys = 1; +} + +// ReleaseChannel indicates which release channel a cluster is +// subscribed to. Release channels are arranged in order of risk. +// +// When a cluster is subscribed to a release channel, Google maintains +// both the master version and the node version. Node auto-upgrade +// defaults to true and cannot be disabled. +message ReleaseChannel { + // Possible values for 'channel'. + enum Channel { + // No channel specified. + UNSPECIFIED = 0; + + // RAPID channel is offered on an early access basis for customers who want + // to test new releases. + // + // WARNING: Versions available in the RAPID Channel may be subject to + // unresolved issues with no known workaround and are not subject to any + // SLAs. + RAPID = 1; + + // Clusters subscribed to REGULAR receive versions that are considered GA + // quality. REGULAR is intended for production users who want to take + // advantage of new features. + REGULAR = 2; + + // Clusters subscribed to STABLE receive versions that are known to be + // stable and reliable in production. + STABLE = 3; + } + + // channel specifies which release channel the cluster is subscribed to. + Channel channel = 1; +} + +// Configuration for Cloud TPU. +message TpuConfig { + // Whether Cloud TPU integration is enabled or not. + bool enabled = 1; + + // Whether to use service networking for Cloud TPU or not. + bool use_service_networking = 2; + + // IPv4 CIDR block reserved for Cloud TPU in the VPC. + string ipv4_cidr_block = 3; +} + +// Master is the configuration for components on master. +message Master { + +} + +// NotificationConfig is the configuration of notifications. +message NotificationConfig { + // Pub/Sub specific notification config. + message PubSub { + // Enable notifications for Pub/Sub. + bool enabled = 1; + + // The desired Pub/Sub topic to which notifications will be + // sent by GKE. Format is `projects/{project}/topics/{topic}`. + string topic = 2 [(google.api.resource_reference) = { + type: "pubsub.googleapis.com/Topic" + }]; + } + + // Notification config for Pub/Sub. + PubSub pubsub = 1; +} + +// ConfidentialNodes is configuration for the confidential nodes feature, which +// makes nodes run on confidential VMs. +message ConfidentialNodes { + // Whether Confidential Nodes feature is enabled for all nodes in this + // cluster. + bool enabled = 1; +} + +// UpgradeEvent is a notification sent to customers by the cluster server when +// a resource is upgrading. +message UpgradeEvent { + // Required. The resource type that is upgrading. + UpgradeResourceType resource_type = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The operation associated with this upgrade. + string operation = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The time when the operation was started. + google.protobuf.Timestamp operation_start_time = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. The current version before the upgrade. + string current_version = 4 [(google.api.field_behavior) = REQUIRED]; + + // Required. The target version for the upgrade. + string target_version = 5 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Optional relative path to the resource. For example in node pool upgrades, + // the relative path of the node pool. + string resource = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// The datapath provider selects the implementation of the Kubernetes networking +// // model for service resolution and network policy enforcement. +enum DatapathProvider { + // Default value. + DATAPATH_PROVIDER_UNSPECIFIED = 0; + + // Use the IPTables implementation based on kube-proxy. + LEGACY_DATAPATH = 1; + + // Use the eBPF based GKE Dataplane V2 with additional features. See the [GKE + // Dataplane V2 + // documentation](https://cloud.google.com/kubernetes-engine/docs/how-to/dataplane-v2) + // for more. + ADVANCED_DATAPATH = 2; +} + +// UpgradeResourceType is the resource type that is upgrading. It is used +// in upgrade notifications. +enum UpgradeResourceType { + // Default value. This shouldn't be used. + UPGRADE_RESOURCE_TYPE_UNSPECIFIED = 0; + + // Master / control plane + MASTER = 1; + + // Node pool + NODE_POOL = 2; +} diff --git a/third_party/googleapis/google/container/v1beta1/container_gapic.legacy.yaml b/third_party/googleapis/google/container/v1beta1/container_gapic.legacy.yaml deleted file mode 100644 index f3e63dd0a..000000000 --- a/third_party/googleapis/google/container/v1beta1/container_gapic.legacy.yaml +++ /dev/null @@ -1,551 +0,0 @@ -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.container.v1beta1 - python: - package_name: google.cloud.container_v1beta1.gapic - go: - package_name: cloud.google.com/go/container/apiv1beta1 - csharp: - package_name: Google.Cloud.Container.V1beta1 - ruby: - package_name: Google::Cloud::Container::V1beta1 - release_level: BETA - php: - package_name: Google\Cloud\Container\V1beta1 - nodejs: - package_name: container.v1beta1 - domain_layer_location: google-cloud -# A list of API interface configurations. -interfaces: -- name: google.container.v1beta1.ClusterManager - # 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 smoke test - smoke_test: - method: ListClusters - init_fields: - - project_id=$PROJECT_ID - - zone="us-central1-a" - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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: ListClusters - flattening: - groups: - - parameters: - - project_id - - zone - required_fields: - - project_id - - zone - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 20000 - - name: GetCluster - flattening: - groups: - - parameters: - - project_id - - zone - - cluster_id - required_fields: - - project_id - - zone - - cluster_id - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 20000 - - name: CreateCluster - flattening: - groups: - - parameters: - - project_id - - zone - - cluster - required_fields: - - project_id - - zone - - cluster - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 20000 - - name: UpdateCluster - flattening: - groups: - - parameters: - - project_id - - zone - - cluster_id - - update - required_fields: - - project_id - - zone - - cluster_id - - update - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 20000 - - name: UpdateNodePool - required_fields: - - project_id - - zone - - cluster_id - - node_pool_id - - node_version - - image_type - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 20000 - - name: SetNodePoolAutoscaling - required_fields: - - project_id - - zone - - cluster_id - - node_pool_id - - autoscaling - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 20000 - - name: SetLoggingService - flattening: - groups: - - parameters: - - project_id - - zone - - cluster_id - - logging_service - required_fields: - - project_id - - zone - - cluster_id - - logging_service - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 20000 - - name: SetMonitoringService - flattening: - groups: - - parameters: - - project_id - - zone - - cluster_id - - monitoring_service - required_fields: - - project_id - - zone - - cluster_id - - monitoring_service - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 20000 - - name: SetAddonsConfig - flattening: - groups: - - parameters: - - project_id - - zone - - cluster_id - - addons_config - required_fields: - - project_id - - zone - - cluster_id - - addons_config - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 20000 - - name: SetLocations - flattening: - groups: - - parameters: - - project_id - - zone - - cluster_id - - locations - required_fields: - - project_id - - zone - - cluster_id - - locations - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 20000 - - name: UpdateMaster - flattening: - groups: - - parameters: - - project_id - - zone - - cluster_id - - master_version - required_fields: - - project_id - - zone - - cluster_id - - master_version - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 20000 - - name: SetMasterAuth - required_fields: - - project_id - - zone - - cluster_id - - action - - update - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 20000 - - name: DeleteCluster - flattening: - groups: - - parameters: - - project_id - - zone - - cluster_id - required_fields: - - project_id - - zone - - cluster_id - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 20000 - - name: ListOperations - flattening: - groups: - - parameters: - - project_id - - zone - required_fields: - - project_id - - zone - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 20000 - - name: GetOperation - flattening: - groups: - - parameters: - - project_id - - zone - - operation_id - required_fields: - - project_id - - zone - - operation_id - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 20000 - - name: CancelOperation - flattening: - groups: - - parameters: - - project_id - - zone - - operation_id - required_fields: - - project_id - - zone - - operation_id - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 20000 - - name: GetServerConfig - flattening: - groups: - - parameters: - - project_id - - zone - required_fields: - - project_id - - zone - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 20000 - - name: ListNodePools - flattening: - groups: - - parameters: - - project_id - - zone - - cluster_id - required_fields: - - project_id - - zone - - cluster_id - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 20000 - - name: GetNodePool - flattening: - groups: - - parameters: - - project_id - - zone - - cluster_id - - node_pool_id - required_fields: - - project_id - - zone - - cluster_id - - node_pool_id - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 20000 - - name: CreateNodePool - flattening: - groups: - - parameters: - - project_id - - zone - - cluster_id - - node_pool - required_fields: - - project_id - - zone - - cluster_id - - node_pool - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 20000 - - name: DeleteNodePool - flattening: - groups: - - parameters: - - project_id - - zone - - cluster_id - - node_pool_id - required_fields: - - project_id - - zone - - cluster_id - - node_pool_id - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 20000 - - name: RollbackNodePoolUpgrade - flattening: - groups: - - parameters: - - project_id - - zone - - cluster_id - - node_pool_id - required_fields: - - project_id - - zone - - cluster_id - - node_pool_id - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 20000 - - name: SetNodePoolManagement - required_fields: - - project_id - - zone - - cluster_id - - node_pool_id - - management - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 20000 - - name: SetLabels - required_fields: - - project_id - - zone - - cluster_id - - resource_labels - - label_fingerprint - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 20000 - - name: SetLegacyAbac - flattening: - groups: - - parameters: - - project_id - - zone - - cluster_id - - enabled - required_fields: - - project_id - - zone - - cluster_id - - enabled - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 20000 - - name: StartIPRotation - flattening: - groups: - - parameters: - - project_id - - zone - - cluster_id - required_fields: - - project_id - - zone - - cluster_id - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 20000 - - name: CompleteIPRotation - flattening: - groups: - - parameters: - - project_id - - zone - - cluster_id - required_fields: - - project_id - - zone - - cluster_id - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 20000 - - name: SetNodePoolSize - required_fields: - - project_id - - zone - - cluster_id - - node_pool_id - - node_count - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 20000 - - name: SetNetworkPolicy - flattening: - groups: - - parameters: - - project_id - - zone - - cluster_id - - network_policy - required_fields: - - project_id - - zone - - cluster_id - - network_policy - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 20000 - - name: SetMaintenancePolicy - flattening: - groups: - - parameters: - - project_id - - zone - - cluster_id - - maintenance_policy - required_fields: - - project_id - - zone - - cluster_id - - maintenance_policy - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 20000 - - name: ListUsableSubnetworks - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: subnetworks - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 20000 - - name: ListLocations - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 20000 diff --git a/third_party/googleapis/google/container/v1beta1/container_v1beta1.yaml b/third_party/googleapis/google/container/v1beta1/container_v1beta1.yaml index ca2ecfa05..50b9fdb76 100644 --- a/third_party/googleapis/google/container/v1beta1/container_v1beta1.yaml +++ b/third_party/googleapis/google/container/v1beta1/container_v1beta1.yaml @@ -6,6 +6,12 @@ title: Kubernetes Engine API apis: - name: google.container.v1beta1.ClusterManager +types: +- name: google.container.v1beta1.UpgradeEvent + +enums: +- name: google.container.v1beta1.UpgradeResourceType + documentation: summary: |- Builds and manages container-based applications, powered by the open source @@ -15,6 +21,8 @@ backend: rules: - selector: 'google.container.v1beta1.ClusterManager.*' deadline: 20.0 + - selector: google.container.v1beta1.ClusterManager.CreateCluster + deadline: 45.0 authentication: rules: diff --git a/third_party/googleapis/google/datastore/admin/v1/BUILD.bazel b/third_party/googleapis/google/datastore/admin/v1/BUILD.bazel index 3c054bba6..e4f5f6974 100644 --- a/third_party/googleapis/google/datastore/admin/v1/BUILD.bazel +++ b/third_party/googleapis/google/datastore/admin/v1/BUILD.bazel @@ -57,11 +57,9 @@ java_grpc_library( java_gapic_library( name = "admin_java_gapic", - src = ":admin_proto_with_info", + srcs = [":admin_proto_with_info"], gapic_yaml = "datastore_admin_gapic.yaml", grpc_service_config = "datastore_admin_grpc_service_config.json", - package = "google.datastore.admin.v1", - service_yaml = "datastore_admin_v1.yaml", test_deps = [ ":admin_java_grpc", ], @@ -119,9 +117,9 @@ go_gapic_library( service_yaml = "datastore_admin_v1.yaml", deps = [ ":admin_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", ], ) @@ -147,57 +145,21 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "admin_moved_proto", - srcs = [":admin_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/longrunning:operations_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -py_proto_library( - name = "admin_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":admin_moved_proto"], -) - -py_grpc_library( - name = "admin_py_grpc", - srcs = [":admin_moved_proto"], - deps = [":admin_py_proto"], ) py_gapic_library( - name = "admin_py_gapic", - src = ":admin_proto_with_info", - gapic_yaml = "datastore_admin_gapic.yaml", + name = "datastore-admin_py_gapic", + srcs = [":admin_proto"], grpc_service_config = "datastore_admin_grpc_service_config.json", - package = "google.datastore.admin.v1", - service_yaml = "datastore_admin_v1.yaml", - deps = [ - ":admin_py_grpc", - ":admin_py_proto", - ], + opt_args = ["python-gapic-namespace=google.cloud, python-gapic-name=datastore-admin"], ) -# Open Source Packages py_gapic_assembly_pkg( name = "datastore-admin-v1-py", deps = [ - ":admin_py_gapic", - ":admin_py_grpc", - ":admin_py_proto", + ":datastore-admin_py_gapic", ], ) @@ -258,6 +220,7 @@ load( nodejs_gapic_library( name = "admin_nodejs_gapic", src = ":admin_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "datastore_admin_grpc_service_config.json", package = "google.datastore.admin.v1", service_yaml = "datastore_admin_v1.yaml", @@ -278,7 +241,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -294,12 +257,19 @@ ruby_grpc_library( deps = [":admin_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "admin_ruby_gapic", - src = ":admin_proto_with_info", - gapic_yaml = "datastore_admin_gapic.yaml", - package = "google.datastore.admin.v1", - service_yaml = "datastore_admin_v1.yaml", + srcs = [":admin_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-datastore-admin-v1", + "ruby-cloud-env-prefix=DATASTORE", + "ruby-cloud-product-url=https://cloud.google.com/datastore", + "ruby-cloud-api-id=datastore.googleapis.com", + "ruby-cloud-api-shortname=datastore", + ], + grpc_service_config = "datastore_admin_grpc_service_config.json", + ruby_cloud_description = "Firestore in Datastore mode is a NoSQL document database built for automatic scaling, high performance, and ease of application development.", + ruby_cloud_title = "Firestore in Datastore mode Admin V1", deps = [ ":admin_ruby_grpc", ":admin_ruby_proto", @@ -341,8 +311,8 @@ csharp_grpc_library( csharp_gapic_library( name = "admin_csharp_gapic", srcs = [":admin_proto_with_info"], - grpc_service_config = "datastore_admin_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "datastore_admin_grpc_service_config.json", deps = [ ":admin_csharp_grpc", ":admin_csharp_proto", diff --git a/third_party/googleapis/google/datastore/admin/v1/datastore_admin.proto b/third_party/googleapis/google/datastore/admin/v1/datastore_admin.proto index c0f470766..99a9bd4fd 100644 --- a/third_party/googleapis/google/datastore/admin/v1/datastore_admin.proto +++ b/third_party/googleapis/google/datastore/admin/v1/datastore_admin.proto @@ -28,6 +28,7 @@ option go_package = "google.golang.org/genproto/googleapis/datastore/admin/v1;ad option java_multiple_files = true; option java_outer_classname = "DatastoreAdminProto"; option java_package = "com.google.datastore.admin.v1"; +option php_namespace = "Google\\Cloud\\Datastore\\Admin\\V1"; option ruby_package = "Google::Cloud::Datastore::Admin::V1"; // Google Cloud Datastore Admin API @@ -134,6 +135,51 @@ service DatastoreAdmin { }; } + // Creates the specified index. + // A newly created index's initial state is `CREATING`. On completion of the + // returned [google.longrunning.Operation][google.longrunning.Operation], the state will be `READY`. + // If the index already exists, the call will return an `ALREADY_EXISTS` + // status. + // + // During index creation, the process could result in an error, in which + // case the index will move to the `ERROR` state. The process can be recovered + // by fixing the data that caused the error, removing the index with + // [delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex], then + // re-creating the index with [create] + // [google.datastore.admin.v1.DatastoreAdmin.CreateIndex]. + // + // Indexes with a single property cannot be created. + rpc CreateIndex(CreateIndexRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/projects/{project_id}/indexes" + body: "index" + }; + option (google.longrunning.operation_info) = { + response_type: "Index" + metadata_type: "IndexOperationMetadata" + }; + } + + // Deletes an existing index. + // An index can only be deleted if it is in a `READY` or `ERROR` state. On + // successful execution of the request, the index will be in a `DELETING` + // [state][google.datastore.admin.v1.Index.State]. And on completion of the + // returned [google.longrunning.Operation][google.longrunning.Operation], the index will be removed. + // + // During index deletion, the process could result in an error, in which + // case the index will move to the `ERROR` state. The process can be recovered + // by fixing the data that caused the error, followed by calling + // [delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex] again. + rpc DeleteIndex(DeleteIndexRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/projects/{project_id}/indexes/{index_id}" + }; + option (google.longrunning.operation_info) = { + response_type: "Index" + metadata_type: "IndexOperationMetadata" + }; + } + // Gets an index. rpc GetIndex(GetIndexRequest) returns (Index) { option (google.api.http) = { @@ -200,24 +246,6 @@ message CommonMetadata { State state = 5; } -// Operation types. -enum OperationType { - // Unspecified. - OPERATION_TYPE_UNSPECIFIED = 0; - - // ExportEntities. - EXPORT_ENTITIES = 1; - - // ImportEntities. - IMPORT_ENTITIES = 2; - - // CreateIndex. - CREATE_INDEX = 3; - - // DeleteIndex. - DELETE_INDEX = 4; -} - // Measures the progress of a particular metric. message Progress { // The amount of work that has been completed. Note that this may be greater @@ -325,6 +353,24 @@ message ExportEntitiesMetadata { string output_url_prefix = 5; } +// Operation types. +enum OperationType { + // Unspecified. + OPERATION_TYPE_UNSPECIFIED = 0; + + // ExportEntities. + EXPORT_ENTITIES = 1; + + // ImportEntities. + IMPORT_ENTITIES = 2; + + // CreateIndex. + CREATE_INDEX = 3; + + // DeleteIndex. + DELETE_INDEX = 4; +} + // Metadata for ImportEntities operations. message ImportEntitiesMetadata { // Metadata common to all Datastore Admin operations. @@ -377,6 +423,27 @@ message EntityFilter { repeated string namespace_ids = 2; } +// The request for +// [google.datastore.admin.v1.DatastoreAdmin.CreateIndex][google.datastore.admin.v1.DatastoreAdmin.CreateIndex]. +message CreateIndexRequest { + // Project ID against which to make the request. + string project_id = 1; + + // The index to create. The name and state fields are output only and will be + // ignored. Single property indexes cannot be created or deleted. + Index index = 3; +} + +// The request for +// [google.datastore.admin.v1.DatastoreAdmin.DeleteIndex][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex]. +message DeleteIndexRequest { + // Project ID against which to make the request. + string project_id = 1; + + // The resource ID of the index to delete. + string index_id = 3; +} + // The request for [google.datastore.admin.v1.DatastoreAdmin.GetIndex][google.datastore.admin.v1.DatastoreAdmin.GetIndex]. message GetIndexRequest { // Project ID against which to make the request. diff --git a/third_party/googleapis/google/datastore/admin/v1/datastore_admin_gapic.legacy.yaml b/third_party/googleapis/google/datastore/admin/v1/datastore_admin_gapic.legacy.yaml deleted file mode 100644 index b56eeb0ad..000000000 --- a/third_party/googleapis/google/datastore/admin/v1/datastore_admin_gapic.legacy.yaml +++ /dev/null @@ -1,133 +0,0 @@ -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.datastore.admin.v1 - python: - package_name: google.cloud.datastore.admin_v1.gapic - go: - package_name: cloud.google.com/go/datastore/admin/apiv1 - csharp: - package_name: Google.Datastore.Admin.V1 - ruby: - package_name: Google::Cloud::Datastore::Admin::V1 - php: - package_name: Google\Cloud\Datastore\Admin\V1 - nodejs: - package_name: admin.v1 -# A list of API interface configurations. -interfaces: -- name: google.datastore.admin.v1.DatastoreAdmin - # 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: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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: ExportEntities - flattening: - groups: - - parameters: - - project_id - - labels - - entity_filter - - output_url_prefix - required_fields: - - project_id - - output_url_prefix - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 295000 - - name: ImportEntities - flattening: - groups: - - parameters: - - project_id - - labels - - input_url - - entity_filter - required_fields: - - project_id - - input_url - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 295000 diff --git a/third_party/googleapis/google/datastore/admin/v1/datastore_v1.yaml b/third_party/googleapis/google/datastore/admin/v1/datastore_v1.yaml new file mode 100644 index 000000000..836385ebd --- /dev/null +++ b/third_party/googleapis/google/datastore/admin/v1/datastore_v1.yaml @@ -0,0 +1,49 @@ +type: google.api.Service +config_version: 3 +name: datastore.googleapis.com +title: Cloud Datastore API + +apis: +- name: google.datastore.admin.v1.DatastoreAdmin + +types: +- name: google.datastore.admin.v1.ExportEntitiesMetadata +- name: google.datastore.admin.v1.ExportEntitiesResponse +- name: google.datastore.admin.v1.ImportEntitiesMetadata +- name: google.datastore.admin.v1.IndexOperationMetadata + +documentation: + summary: |- + Accesses the schemaless NoSQL database to provide fully managed, robust, + scalable storage for your application. + +backend: + rules: + - selector: 'google.datastore.admin.v1.DatastoreAdmin.*' + deadline: 295.0 + - selector: 'google.longrunning.Operations.*' + deadline: 295.0 + +http: + rules: + - selector: google.longrunning.Operations.CancelOperation + post: '/v1/{name=projects/*/operations/*}:cancel' + - selector: google.longrunning.Operations.DeleteOperation + delete: '/v1/{name=projects/*/operations/*}' + - selector: google.longrunning.Operations.GetOperation + get: '/v1/{name=projects/*/operations/*}' + - selector: google.longrunning.Operations.ListOperations + get: '/v1/{name=projects/*}/operations' + +authentication: + rules: + - selector: 'google.datastore.admin.v1.DatastoreAdmin.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/datastore + - selector: 'google.longrunning.Operations.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/datastore diff --git a/third_party/googleapis/google/datastore/admin/v1/index.proto b/third_party/googleapis/google/datastore/admin/v1/index.proto index 96c2278b3..a211e7c97 100644 --- a/third_party/googleapis/google/datastore/admin/v1/index.proto +++ b/third_party/googleapis/google/datastore/admin/v1/index.proto @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -24,9 +24,10 @@ option go_package = "google.golang.org/genproto/googleapis/datastore/admin/v1;ad option java_multiple_files = true; option java_outer_classname = "IndexProto"; option java_package = "com.google.datastore.admin.v1"; +option php_namespace = "Google\\Cloud\\Datastore\\Admin\\V1"; option ruby_package = "Google::Cloud::Datastore::Admin::V1"; -// A minimal index definition. +// Datastore composite index definition. message Index { // A property of an index. message IndexedProperty { diff --git a/third_party/googleapis/google/datastore/admin/v1/migration.proto b/third_party/googleapis/google/datastore/admin/v1/migration.proto new file mode 100644 index 000000000..67a86274a --- /dev/null +++ b/third_party/googleapis/google/datastore/admin/v1/migration.proto @@ -0,0 +1,81 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.datastore.admin.v1; + +option csharp_namespace = "Google.Cloud.Datastore.Admin.V1"; +option go_package = "google.golang.org/genproto/googleapis/datastore/admin/v1;admin"; +option java_multiple_files = true; +option java_outer_classname = "MigrationProto"; +option java_package = "com.google.datastore.admin.v1"; +option php_namespace = "Google\\Cloud\\Datastore\\Admin\\V1"; +option ruby_package = "Google::Cloud::Datastore::Admin::V1"; + +// An event signifying a change in state of a [migration from Cloud Datastore to +// Cloud Firestore in Datastore +// mode](https://cloud.google.com/datastore/docs/upgrade-to-firestore). +message MigrationStateEvent { + // The new state of the migration. + MigrationState state = 1; +} + +// An event signifying the start of a new step in a [migration from Cloud +// Datastore to Cloud Firestore in Datastore +// mode](https://cloud.google.com/datastore/docs/upgrade-to-firestore). +message MigrationProgressEvent { + // The step that is starting. + // + // An event with step set to `START` indicates that the migration + // has been reverted back to the initial pre-migration state. + MigrationStep step = 1; +} + +// States for a migration. +enum MigrationState { + // Unspecified. + MIGRATION_STATE_UNSPECIFIED = 0; + + // The migration is running. + RUNNING = 1; + + // The migration is paused. + PAUSED = 2; + + // The migration is complete. + COMPLETE = 3; +} + +// Steps in a migration. +enum MigrationStep { + // Unspecified. + MIGRATION_STEP_UNSPECIFIED = 0; + + // Start of migration. + START = 1; + + // Data is copied to Cloud Firestore and then verified to match the data in + // Cloud Datastore. + COPY_AND_VERIFY = 2; + + // Eventually-consistent reads are redirected to Cloud Firestore. + REDIRECT_EVENTUALLY_CONSISTENT_READS = 3; + + // Strongly-consistent reads are redirected to Cloud Firestore. + REDIRECT_STRONGLY_CONSISTENT_READS = 4; + + // Writes are redirected to Cloud Firestore. + REDIRECT_WRITES = 5; +} diff --git a/third_party/googleapis/google/datastore/artman_datastore.yaml b/third_party/googleapis/google/datastore/artman_datastore.yaml deleted file mode 100644 index 9f5629ba5..000000000 --- a/third_party/googleapis/google/datastore/artman_datastore.yaml +++ /dev/null @@ -1,36 +0,0 @@ -common: - api_name: datastore - api_version: v1 - organization_name: google-cloud - service_yaml: v1/datastore_v1.yaml - gapic_yaml: v1/datastore_gapic.yaml - proto_package: google.datastore.v1 - src_proto_paths: - - v1 - proto_deps: - - name: google-common-protos -artifacts: -- name: java_proto - type: PROTOBUF - language: JAVA -- name: python_gapic - type: GAPIC - language: PYTHON - release_level: BETA -- name: php_gapic - type: GAPIC - language: PHP -- name: ruby_gapic - type: GAPIC - language: RUBY -- name: go_gapic - type: GAPIC - language: GO -- name: csharp_gapic - type: GAPIC - language: CSHARP -- name: nodejs_gapic - type: GAPIC - language: NODEJS -- name: gapic_config - type: GAPIC_CONFIG diff --git a/third_party/googleapis/google/datastore/v1/BUILD.bazel b/third_party/googleapis/google/datastore/v1/BUILD.bazel index 5ca1d7dfd..b3cb954a8 100644 --- a/third_party/googleapis/google/datastore/v1/BUILD.bazel +++ b/third_party/googleapis/google/datastore/v1/BUILD.bazel @@ -60,10 +60,9 @@ java_grpc_library( java_gapic_library( name = "datastore_java_gapic", - src = ":datastore_proto_with_info", + srcs = [":datastore_proto_with_info"], gapic_yaml = "datastore_gapic.yaml", - package = "google.datastore.v1", - service_yaml = "datastore_v1.yaml", + grpc_service_config = "datastore_grpc_service_config.json", test_deps = [ ":datastore_java_grpc", ], @@ -146,59 +145,21 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "datastore_moved_proto", - srcs = [":datastore_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/type:latlng_proto", - "@com_google_protobuf//:struct_proto", - "@com_google_protobuf//:timestamp_proto", - "@com_google_protobuf//:wrappers_proto", - ], -) - -py_proto_library( - name = "datastore_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":datastore_moved_proto"], -) - -py_grpc_library( - name = "datastore_py_grpc", - srcs = [":datastore_moved_proto"], - deps = [":datastore_py_proto"], ) py_gapic_library( name = "datastore_py_gapic", - src = ":datastore_proto_with_info", - gapic_yaml = "datastore_gapic.yaml", + srcs = [":datastore_proto"], grpc_service_config = "datastore_grpc_service_config.json", - package = "google.datastore.v1", - service_yaml = "datastore_v1.yaml", - deps = [ - ":datastore_py_grpc", - ":datastore_py_proto", - ], + opt_args = ["python-gapic-namespace=google.cloud"], ) -# Open Source Packages py_gapic_assembly_pkg( name = "datastore-v1-py", deps = [ ":datastore_py_gapic", - ":datastore_py_grpc", - ":datastore_py_proto", ], ) @@ -260,6 +221,7 @@ nodejs_gapic_library( name = "datastore_nodejs_gapic", package_name = "@google-cloud/datastore", src = ":datastore_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "datastore_grpc_service_config.json", main_service = "datastore", package = "google.datastore.v1", @@ -281,7 +243,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -297,12 +259,19 @@ ruby_grpc_library( deps = [":datastore_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "datastore_ruby_gapic", - src = ":datastore_proto_with_info", - gapic_yaml = "datastore_gapic.yaml", - package = "google.datastore.v1", - service_yaml = "datastore_v1.yaml", + srcs = [":datastore_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-datastore-v1", + "ruby-cloud-env-prefix=DATASTORE", + "ruby-cloud-product-url=https://cloud.google.com/datastore", + "ruby-cloud-api-id=datastore.googleapis.com", + "ruby-cloud-api-shortname=datastore", + ], + grpc_service_config = "datastore_grpc_service_config.json", + ruby_cloud_description = "Firestore in Datastore mode is a NoSQL document database built for automatic scaling, high performance, and ease of application development.", + ruby_cloud_title = "Firestore in Datastore mode V1", deps = [ ":datastore_ruby_grpc", ":datastore_ruby_proto", @@ -344,8 +313,8 @@ csharp_grpc_library( csharp_gapic_library( name = "datastore_csharp_gapic", srcs = [":datastore_proto_with_info"], - grpc_service_config = "datastore_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "datastore_grpc_service_config.json", deps = [ ":datastore_csharp_grpc", ":datastore_csharp_proto", diff --git a/third_party/googleapis/google/devtools/artifactregistry/v1beta2/BUILD.bazel b/third_party/googleapis/google/devtools/artifactregistry/v1beta2/BUILD.bazel index 87ba7bc27..72172eac1 100644 --- a/third_party/googleapis/google/devtools/artifactregistry/v1beta2/BUILD.bazel +++ b/third_party/googleapis/google/devtools/artifactregistry/v1beta2/BUILD.bazel @@ -1,4 +1,13 @@ # This file was automatically generated by BuildFileGenerator +# https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/bazel + +# Most of the manual changes to this file will be overwritten. +# It's **only** allowed to change the following rule attribute values: +# - names of *_gapic_assembly_* rules +# - certain parameters of *_gapic_library rules, including but not limited to: +# * extra_protoc_parameters +# * extra_protoc_file_parameters +# The complete list of preserved parameters can be found in the source code. # This is an API workspace, having public visibility by default makes perfect sense. package(default_visibility = ["//visibility:public"]) @@ -7,11 +16,11 @@ package(default_visibility = ["//visibility:public"]) # Common ############################################################################## load("@rules_proto//proto:defs.bzl", "proto_library") +load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info") proto_library( name = "artifactregistry_proto", srcs = [ - "artifact.proto", "file.proto", "package.proto", "repository.proto", @@ -34,11 +43,22 @@ proto_library( ], ) +proto_library_with_info( + name = "artifactregistry_proto_with_info", + deps = [ + ":artifactregistry_proto", + "//google/cloud:common_resources_proto", + ], +) + ############################################################################## # Java ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", + "java_gapic_assembly_gradle_pkg", + "java_gapic_library", + "java_gapic_test", "java_grpc_library", "java_proto_library", ) @@ -54,12 +74,48 @@ java_grpc_library( deps = [":artifactregistry_java_proto"], ) +java_gapic_library( + name = "artifactregistry_java_gapic", + srcs = [":artifactregistry_proto_with_info"], + grpc_service_config = "artifactregistry_grpc_service_config.json", + test_deps = [ + ":artifactregistry_java_grpc", + "//google/iam/v1:iam_java_grpc", + ], + deps = [ + ":artifactregistry_java_proto", + "//google/iam/v1:iam_java_proto", + ], +) + +java_gapic_test( + name = "artifactregistry_java_gapic_test_suite", + test_classes = [ + "com.google.devtools.artifactregistry.v1beta2.ArtifactRegistryClientTest", + ], + runtime_deps = [":artifactregistry_java_gapic_test"], +) + +# Open Source Packages +java_gapic_assembly_gradle_pkg( + name = "google-cloud-devtools-artifactregistry-v1beta2-java", + deps = [ + ":artifactregistry_java_gapic", + ":artifactregistry_java_grpc", + ":artifactregistry_java_proto", + ":artifactregistry_proto", + ], +) + ############################################################################## # Go ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", + "go_gapic_assembly_pkg", + "go_gapic_library", "go_proto_library", + "go_test", ) go_proto_library( @@ -74,43 +130,59 @@ go_proto_library( ], ) +go_gapic_library( + name = "artifactregistry_go_gapic", + srcs = [":artifactregistry_proto_with_info"], + grpc_service_config = "artifactregistry_grpc_service_config.json", + importpath = "cloud.google.com/go/devtools/artifactregistry/apiv1beta2;artifactregistry", + service_yaml = "artifactregistry_v1beta2.yaml", + deps = [ + ":artifactregistry_go_proto", + "//google/iam/v1:iam_go_proto", + "//google/longrunning:longrunning_go_proto", + "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", + ], +) + +go_test( + name = "artifactregistry_go_gapic_test", + srcs = [":artifactregistry_go_gapic_srcjar_test"], + embed = [":artifactregistry_go_gapic"], + importpath = "cloud.google.com/go/devtools/artifactregistry/apiv1beta2", +) + +# Open Source Packages +go_gapic_assembly_pkg( + name = "gapi-cloud-devtools-artifactregistry-v1beta2-go", + deps = [ + ":artifactregistry_go_gapic", + ":artifactregistry_go_gapic_srcjar-test.srcjar", + ":artifactregistry_go_proto", + ], +) + ############################################################################## # Python ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", - "py_grpc_library", - "py_proto_library", + "py_gapic_assembly_pkg", + "py_gapic_library", ) -moved_proto_library( - name = "artifactregistry_moved_proto", +py_gapic_library( + name = "artifactregistry_py_gapic", srcs = [":artifactregistry_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:resource_proto", - "//google/iam/v1:iam_policy_proto", - "//google/iam/v1:policy_proto", - "//google/longrunning:operations_proto", - "@com_google_protobuf//:empty_proto", - "@com_google_protobuf//:field_mask_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -py_proto_library( - name = "artifactregistry_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":artifactregistry_moved_proto"], + grpc_service_config = "artifactregistry_grpc_service_config.json", ) -py_grpc_library( - name = "artifactregistry_py_grpc", - srcs = [":artifactregistry_moved_proto"], - deps = [":artifactregistry_py_proto"], +# Open Source Packages +py_gapic_assembly_pkg( + name = "devtools-artifactregistry-v1beta2-py", + deps = [ + ":artifactregistry_py_gapic", + ], ) ############################################################################## @@ -118,6 +190,8 @@ py_grpc_library( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", + "php_gapic_assembly_pkg", + "php_gapic_library", "php_grpc_library", "php_proto_library", ) @@ -133,6 +207,29 @@ php_grpc_library( deps = [":artifactregistry_php_proto"], ) +php_gapic_library( + name = "artifactregistry_php_gapic", + src = ":artifactregistry_proto_with_info", + gapic_yaml = "artifactregistry_gapic.yaml", + grpc_service_config = "artifactregistry_grpc_service_config.json", + package = "google.devtools.artifactregistry.v1beta2", + service_yaml = "artifactregistry_v1beta2.yaml", + deps = [ + ":artifactregistry_php_grpc", + ":artifactregistry_php_proto", + ], +) + +# Open Source Packages +php_gapic_assembly_pkg( + name = "google-cloud-devtools-artifactregistry-v1beta2-php", + deps = [ + ":artifactregistry_php_gapic", + ":artifactregistry_php_grpc", + ":artifactregistry_php_proto", + ], +) + ############################################################################## # Node.js ############################################################################## @@ -142,12 +239,32 @@ load( "nodejs_gapic_library", ) +nodejs_gapic_library( + name = "artifactregistry_nodejs_gapic", + package_name = "@google-cloud/artifact-registry", + src = ":artifactregistry_proto_with_info", + extra_protoc_parameters = ["metadata"], + grpc_service_config = "artifactregistry_grpc_service_config.json", + package = "google.devtools.artifactregistry.v1beta2", + service_yaml = "artifactregistry_v1beta2.yaml", + deps = [], +) + +nodejs_gapic_assembly_pkg( + name = "devtools-artifactregistry-v1beta2-nodejs", + deps = [ + ":artifactregistry_nodejs_gapic", + ":artifactregistry_proto", + ], +) ############################################################################## # Ruby ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", + "ruby_gapic_assembly_pkg", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -163,11 +280,42 @@ ruby_grpc_library( deps = [":artifactregistry_ruby_proto"], ) +ruby_cloud_gapic_library( + name = "artifactregistry_ruby_gapic", + srcs = [":artifactregistry_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-artifact_registry-v1beta2", + "ruby-cloud-env-prefix=ARTIFACT_REGISTRY", + "ruby-cloud-product-url=https://cloud.google.com/artifact-registry/", + "ruby-cloud-api-id=artifactregistry.googleapis.com", + "ruby-cloud-api-shortname=artifactregistry", + ], + grpc_service_config = "artifactregistry_grpc_service_config.json", + ruby_cloud_description = "Artifact Registry stores and manages build artifacts in a scalable and integrated service built on Google infrastructure.", + ruby_cloud_title = "Artifact Registry V1beta2", + deps = [ + ":artifactregistry_ruby_grpc", + ":artifactregistry_ruby_proto", + ], +) + +# Open Source Packages +ruby_gapic_assembly_pkg( + name = "google-cloud-devtools-artifactregistry-v1beta2-ruby", + deps = [ + ":artifactregistry_ruby_gapic", + ":artifactregistry_ruby_grpc", + ":artifactregistry_ruby_proto", + ], +) + ############################################################################## # C# ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", + "csharp_gapic_assembly_pkg", + "csharp_gapic_library", "csharp_grpc_library", "csharp_proto_library", ) @@ -183,7 +331,28 @@ csharp_grpc_library( deps = [":artifactregistry_csharp_proto"], ) +csharp_gapic_library( + name = "artifactregistry_csharp_gapic", + srcs = [":artifactregistry_proto_with_info"], + common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "artifactregistry_grpc_service_config.json", + deps = [ + ":artifactregistry_csharp_grpc", + ":artifactregistry_csharp_proto", + ], +) + +# Open Source Packages +csharp_gapic_assembly_pkg( + name = "google-cloud-devtools-artifactregistry-v1beta2-csharp", + deps = [ + ":artifactregistry_csharp_gapic", + ":artifactregistry_csharp_grpc", + ":artifactregistry_csharp_proto", + ], +) + ############################################################################## # C++ ############################################################################## -# Put your C++ code here +# Put your C++ rules here diff --git a/third_party/googleapis/google/devtools/artifactregistry/v1beta2/artifact.proto b/third_party/googleapis/google/devtools/artifactregistry/v1beta2/artifact.proto deleted file mode 100644 index a53fcc302..000000000 --- a/third_party/googleapis/google/devtools/artifactregistry/v1beta2/artifact.proto +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.devtools.artifactregistry.v1beta2; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/timestamp.proto"; -import "google/api/annotations.proto"; - -option csharp_namespace = "Google.Cloud.ArtifactRegistry.V1Beta2"; -option go_package = "google.golang.org/genproto/googleapis/devtools/artifactregistry/v1beta2;artifactregistry"; -option java_multiple_files = true; -option java_outer_classname = "ArtifactProto"; -option java_package = "com.google.devtools.artifactregistry.v1beta2"; -option php_namespace = "Google\\Cloud\\ArtifactRegistry\\V1beta2"; - -// DockerImage represents a docker artifact. -message DockerImage { - option (google.api.resource) = { - type: "artifactregistry.googleapis.com/DockerImage" - pattern: "projects/{project}/locations/{location}/repositories/{repository}/dockerImages/{docker_image}" - }; - - // Required. registry_location, project_id, repository_name and image id forms a unique - // image - // name:`projects//locations//repository//dockerimages/`. - // For example, - // "projects/test-project/locations/us-west4/repositories/test-repo/dockerimages/ - // nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf", - // where "us-west4" is the registry_location, "test-project" is the - // project_id, "test-repo" is the repository_name and - // "nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf" - // is the image's digest. - string name = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. URL to access the image. - // Example: - // us-west4-docker.pkg.dev/test-project/test-repo/nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf - string uri = 2 [(google.api.field_behavior) = REQUIRED]; - - // Tags attached to this image. - repeated string tags = 3; - - // Calculated size of the image. - int64 image_size_bytes = 4; - - // Time the image was uploaded. - google.protobuf.Timestamp upload_time = 5; - - // Media type of this image, e.g. - // "application/vnd.docker.distribution.manifest.v2+json". - string media_type = 6; -} - -// The request to list docker images. -message ListDockerImagesRequest { - // Required. The name of the parent resource whose docker images will be listed. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "artifactregistry.googleapis.com/DockerImage" - } - ]; - - // The maximum number of artifacts to return. - int32 page_size = 2; - - // The next_page_token value returned from a previous list request, if any. - string page_token = 3; -} - -// The response from listing docker images. -message ListDockerImagesResponse { - // The docker images returned. - repeated DockerImage docker_images = 1; - - // The token to retrieve the next page of artifacts, or empty if there are no - // more artifacts to return. - string next_page_token = 2; -} diff --git a/third_party/googleapis/google/devtools/artifactregistry/v1beta2/artifactregistry_gapic.yaml b/third_party/googleapis/google/devtools/artifactregistry/v1beta2/artifactregistry_gapic.yaml index 4fdeb3269..c2ae3b0ba 100644 --- a/third_party/googleapis/google/devtools/artifactregistry/v1beta2/artifactregistry_gapic.yaml +++ b/third_party/googleapis/google/devtools/artifactregistry/v1beta2/artifactregistry_gapic.yaml @@ -1,8 +1,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 language_settings: - java: - package_name: com.google.devtools.artifactregistry.v1beta2 python: package_name: google.devtools.artifactregistry_v1.gapic go: diff --git a/third_party/googleapis/google/devtools/artifactregistry/v1beta2/file.proto b/third_party/googleapis/google/devtools/artifactregistry/v1beta2/file.proto index cd354924e..6fc97264a 100644 --- a/third_party/googleapis/google/devtools/artifactregistry/v1beta2/file.proto +++ b/third_party/googleapis/google/devtools/artifactregistry/v1beta2/file.proto @@ -26,6 +26,7 @@ option java_multiple_files = true; option java_outer_classname = "FileProto"; option java_package = "com.google.devtools.artifactregistry.v1beta2"; option php_namespace = "Google\\Cloud\\ArtifactRegistry\\V1beta2"; +option ruby_package = "Google::Cloud::ArtifactRegistry::V1beta2"; // A hash of file content. message Hash { diff --git a/third_party/googleapis/google/devtools/artifactregistry/v1beta2/package.proto b/third_party/googleapis/google/devtools/artifactregistry/v1beta2/package.proto index 81686c50b..5a53ee8b6 100644 --- a/third_party/googleapis/google/devtools/artifactregistry/v1beta2/package.proto +++ b/third_party/googleapis/google/devtools/artifactregistry/v1beta2/package.proto @@ -25,6 +25,7 @@ option java_multiple_files = true; option java_outer_classname = "PackageProto"; option java_package = "com.google.devtools.artifactregistry.v1beta2"; option php_namespace = "Google\\Cloud\\ArtifactRegistry\\V1beta2"; +option ruby_package = "Google::Cloud::ArtifactRegistry::V1beta2"; // Packages are named collections of versions. message Package { diff --git a/third_party/googleapis/google/devtools/artifactregistry/v1beta2/repository.proto b/third_party/googleapis/google/devtools/artifactregistry/v1beta2/repository.proto index 4c9d8ed83..633d5c784 100644 --- a/third_party/googleapis/google/devtools/artifactregistry/v1beta2/repository.proto +++ b/third_party/googleapis/google/devtools/artifactregistry/v1beta2/repository.proto @@ -27,6 +27,7 @@ option java_multiple_files = true; option java_outer_classname = "RepositoryProto"; option java_package = "com.google.devtools.artifactregistry.v1beta2"; option php_namespace = "Google\\Cloud\\ArtifactRegistry\\V1beta2"; +option ruby_package = "Google::Cloud::ArtifactRegistry::V1beta2"; // A Repository for storing artifacts with a specific format. message Repository { diff --git a/third_party/googleapis/google/devtools/artifactregistry/v1beta2/service.proto b/third_party/googleapis/google/devtools/artifactregistry/v1beta2/service.proto index 3bbf15af1..b148e3e15 100644 --- a/third_party/googleapis/google/devtools/artifactregistry/v1beta2/service.proto +++ b/third_party/googleapis/google/devtools/artifactregistry/v1beta2/service.proto @@ -18,7 +18,6 @@ package google.devtools.artifactregistry.v1beta2; import "google/api/annotations.proto"; import "google/api/client.proto"; -import "google/devtools/artifactregistry/v1beta2/artifact.proto"; import "google/devtools/artifactregistry/v1beta2/file.proto"; import "google/devtools/artifactregistry/v1beta2/package.proto"; import "google/devtools/artifactregistry/v1beta2/repository.proto"; @@ -35,6 +34,7 @@ option java_multiple_files = true; option java_outer_classname = "ServiceProto"; option java_package = "com.google.devtools.artifactregistry.v1beta2"; option php_namespace = "Google\\Cloud\\ArtifactRegistry\\V1beta2"; +option ruby_package = "Google::Cloud::ArtifactRegistry::V1beta2"; // The Artifact Registry API service. // @@ -103,7 +103,7 @@ service ArtifactRegistry { }; option (google.api.method_signature) = "name"; option (google.longrunning.operation_info) = { - response_type: "google.proto.Empty" + response_type: "google.protobuf.Empty" metadata_type: "OperationMetadata" }; } @@ -246,15 +246,6 @@ service ArtifactRegistry { body: "*" }; } - - // Lists docker images. - rpc ListDockerImages(ListDockerImagesRequest) returns (ListDockerImagesResponse) { - option (google.api.http) = { - get: "/v1beta2/{parent=projects/*/locations/*/repositories/*}/dockerimages" - }; - option (google.api.method_signature) = "parent"; - } } - // Metadata type for longrunning-operations, currently empty. message OperationMetadata {} diff --git a/third_party/googleapis/google/devtools/artifactregistry/v1beta2/settings.proto b/third_party/googleapis/google/devtools/artifactregistry/v1beta2/settings.proto index 0e89500a9..dcbbb0a63 100644 --- a/third_party/googleapis/google/devtools/artifactregistry/v1beta2/settings.proto +++ b/third_party/googleapis/google/devtools/artifactregistry/v1beta2/settings.proto @@ -27,3 +27,4 @@ option java_multiple_files = true; option java_outer_classname = "SettingsProto"; option java_package = "com.google.devtools.artifactregistry.v1beta2"; option php_namespace = "Google\\Cloud\\ArtifactRegistry\\V1beta2"; +option ruby_package = "Google::Cloud::ArtifactRegistry::V1beta2"; diff --git a/third_party/googleapis/google/devtools/artifactregistry/v1beta2/tag.proto b/third_party/googleapis/google/devtools/artifactregistry/v1beta2/tag.proto index 72527f8ba..8e73e3493 100644 --- a/third_party/googleapis/google/devtools/artifactregistry/v1beta2/tag.proto +++ b/third_party/googleapis/google/devtools/artifactregistry/v1beta2/tag.proto @@ -25,6 +25,7 @@ option java_multiple_files = true; option java_outer_classname = "TagProto"; option java_package = "com.google.devtools.artifactregistry.v1beta2"; option php_namespace = "Google\\Cloud\\ArtifactRegistry\\V1beta2"; +option ruby_package = "Google::Cloud::ArtifactRegistry::V1beta2"; // Tags point to a version and represent an alternative name that can be used // to access the version. diff --git a/third_party/googleapis/google/devtools/artifactregistry/v1beta2/version.proto b/third_party/googleapis/google/devtools/artifactregistry/v1beta2/version.proto index 0a89a1fdb..c8ffa410a 100644 --- a/third_party/googleapis/google/devtools/artifactregistry/v1beta2/version.proto +++ b/third_party/googleapis/google/devtools/artifactregistry/v1beta2/version.proto @@ -26,6 +26,7 @@ option java_multiple_files = true; option java_outer_classname = "VersionProto"; option java_package = "com.google.devtools.artifactregistry.v1beta2"; option php_namespace = "Google\\Cloud\\ArtifactRegistry\\V1beta2"; +option ruby_package = "Google::Cloud::ArtifactRegistry::V1beta2"; // The body of a version resource. A version resource represents a // collection of components, such as files and other data. This may correspond diff --git a/third_party/googleapis/google/devtools/artman_clouddebugger.yaml b/third_party/googleapis/google/devtools/artman_clouddebugger.yaml deleted file mode 100644 index 42a0825d2..000000000 --- a/third_party/googleapis/google/devtools/artman_clouddebugger.yaml +++ /dev/null @@ -1,36 +0,0 @@ -common: - api_name: debugger - api_version: v2 - organization_name: google-cloud - service_yaml: clouddebugger/v2/clouddebugger_v2.yaml - gapic_yaml: clouddebugger/v2/clouddebugger_gapic.yaml - src_proto_paths: - - clouddebugger/v2 - - source/v1 - proto_deps: - - name: google-common-protos - proto_package: google.devtools.clouddebugger.v2 -artifacts: -- name: java_gapic - type: GAPIC - language: JAVA -- name: python_gapic - type: GAPIC - language: PYTHON -- name: php_gapic - type: GAPIC - language: PHP -- name: ruby_gapic - type: GAPIC - language: RUBY -- name: go_gapic - type: GAPIC - language: GO -- name: csharp_gapic - type: GAPIC - language: CSHARP -- name: nodejs_gapic - type: GAPIC - language: NODEJS -- name: gapic_config - type: GAPIC_CONFIG diff --git a/third_party/googleapis/google/devtools/build/v1/BUILD.bazel b/third_party/googleapis/google/devtools/build/v1/BUILD.bazel index 76cc9bffd..d7f638a94 100644 --- a/third_party/googleapis/google/devtools/build/v1/BUILD.bazel +++ b/third_party/googleapis/google/devtools/build/v1/BUILD.bazel @@ -1,4 +1,13 @@ # This file was automatically generated by BuildFileGenerator +# https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/bazel + +# Most of the manual changes to this file will be overwritten. +# It's **only** allowed to change the following rule attribute values: +# - names of *_gapic_assembly_* rules +# - certain parameters of *_gapic_library rules, including but not limited to: +# * extra_protoc_parameters +# * extra_protoc_file_parameters +# The complete list of preserved parameters can be found in the source code. # This is an API workspace, having public visibility by default makes perfect sense. package(default_visibility = ["//visibility:public"]) @@ -61,11 +70,9 @@ java_grpc_library( java_gapic_library( name = "build_java_gapic", - src = ":build_proto_with_info", + srcs = [":build_proto_with_info"], gapic_yaml = "buildeventservice_gapic.yaml", grpc_service_config = "buildeventservice_grpc_service_config.json", - package = "google.devtools.build.v1", - service_yaml = "buildeventservice_v1.yaml", test_deps = [ ":build_java_grpc", ], @@ -148,51 +155,14 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "build_moved_proto", - srcs = [":build_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "@com_google_protobuf//:any_proto", - "@com_google_protobuf//:duration_proto", - "@com_google_protobuf//:empty_proto", - "@com_google_protobuf//:timestamp_proto", - "@com_google_protobuf//:wrappers_proto", - ], -) - -py_proto_library( - name = "build_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":build_moved_proto"], -) - -py_grpc_library( - name = "build_py_grpc", - srcs = [":build_moved_proto"], - deps = [":build_py_proto"], ) py_gapic_library( name = "build_py_gapic", - src = ":build_proto_with_info", - gapic_yaml = "buildeventservice_gapic.yaml", + srcs = [":build_proto"], grpc_service_config = "buildeventservice_grpc_service_config.json", - package = "google.devtools.build.v1", - service_yaml = "buildeventservice_v1.yaml", - deps = [ - ":build_py_grpc", - ":build_py_proto", - ], ) # Open Source Packages @@ -200,8 +170,6 @@ py_gapic_assembly_pkg( name = "devtools-build-v1-py", deps = [ ":build_py_gapic", - ":build_py_grpc", - ":build_py_proto", ], ) @@ -262,6 +230,7 @@ load( nodejs_gapic_library( name = "build_nodejs_gapic", src = ":build_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "buildeventservice_grpc_service_config.json", package = "google.devtools.build.v1", service_yaml = "buildeventservice_v1.yaml", @@ -345,8 +314,8 @@ csharp_grpc_library( csharp_gapic_library( name = "build_csharp_gapic", srcs = [":build_proto_with_info"], - grpc_service_config = "buildeventservice_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "buildeventservice_grpc_service_config.json", deps = [ ":build_csharp_grpc", ":build_csharp_proto", diff --git a/third_party/googleapis/google/devtools/build/v1/buildeventservice_gapic.legacy.yaml b/third_party/googleapis/google/devtools/build/v1/buildeventservice_gapic.legacy.yaml deleted file mode 100644 index cabd6db30..000000000 --- a/third_party/googleapis/google/devtools/build/v1/buildeventservice_gapic.legacy.yaml +++ /dev/null @@ -1,126 +0,0 @@ -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.devtools.build.v1 - python: - package_name: google.cloud.devtools.build_v1.gapic - go: - package_name: cloud.google.com/go/devtools/build/apiv1 - csharp: - package_name: Google.Devtools.Build.V1 - ruby: - package_name: Google::Cloud::Devtools::Build::V1 - php: - package_name: Google\Cloud\Devtools\Build\V1 - nodejs: - package_name: build.v1 -# A list of API interface configurations. -interfaces: - # The fully qualified name of the API interface. -- name: google.devtools.build.v1.PublishBuildEvent - # 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: - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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: PublishLifecycleEvent - required_fields: - - build_event - - project_id - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 60000 - - name: PublishBuildToolEventStream - flattening: - groups: - - parameters: - - ordered_build_event - - notification_keywords - - project_id - required_fields: - - ordered_build_event - - project_id - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 60000 diff --git a/third_party/googleapis/google/devtools/cloudbuild/v1/BUILD.bazel b/third_party/googleapis/google/devtools/cloudbuild/v1/BUILD.bazel index bf75970ae..618253d8d 100644 --- a/third_party/googleapis/google/devtools/cloudbuild/v1/BUILD.bazel +++ b/third_party/googleapis/google/devtools/cloudbuild/v1/BUILD.bazel @@ -60,11 +60,9 @@ java_grpc_library( java_gapic_library( name = "cloudbuild_java_gapic", - src = ":cloudbuild_proto_with_info", + srcs = [":cloudbuild_proto_with_info"], gapic_yaml = "cloudbuild_gapic.yaml", grpc_service_config = "cloudbuild_grpc_service_config.json", - package = "google.devtools.cloudbuild.v1", - service_yaml = "cloudbuild_v1.yaml", test_deps = [ ":cloudbuild_java_grpc", ], @@ -122,9 +120,9 @@ go_gapic_library( service_yaml = "cloudbuild_v1.yaml", deps = [ ":cloudbuild_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", "@io_bazel_rules_go//proto/wkt:duration_go_proto", ], ) @@ -149,12 +147,10 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -228,6 +224,7 @@ nodejs_gapic_library( name = "cloudbuild_nodejs_gapic", package_name = "@google-cloud/cloudbuild", src = ":cloudbuild_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "cloudbuild_grpc_service_config.json", package = "google.devtools.cloudbuild.v1", service_yaml = "cloudbuild_v1.yaml", @@ -248,7 +245,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -264,12 +261,19 @@ ruby_grpc_library( deps = [":cloudbuild_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "cloudbuild_ruby_gapic", - src = ":cloudbuild_proto_with_info", - gapic_yaml = "cloudbuild_gapic.yaml", - package = "google.devtools.cloudbuild.v1", - service_yaml = "cloudbuild_v1.yaml", + srcs = [":cloudbuild_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-build-v1", + "ruby-cloud-env-prefix=CLOUD_BUILD", + "ruby-cloud-product-url=https://cloud.google.com/cloud-build", + "ruby-cloud-api-id=cloudbuild.googleapis.com", + "ruby-cloud-api-shortname=cloudbuild", + ], + grpc_service_config = "cloudbuild_grpc_service_config.json", + ruby_cloud_description = "Cloud Build is a service that executes your builds on Google Cloud Platform infrastructure. Cloud Build can import source code from Google Cloud Storage, Cloud Source Repositories, GitHub, or Bitbucket, execute a build to your specifications, and produce artifacts such as Docker containers or Java archives.", + ruby_cloud_title = "Cloud Build V1", deps = [ ":cloudbuild_ruby_grpc", ":cloudbuild_ruby_proto", @@ -311,8 +315,8 @@ csharp_grpc_library( csharp_gapic_library( name = "cloudbuild_csharp_gapic", srcs = [":cloudbuild_proto_with_info"], - grpc_service_config = "cloudbuild_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "cloudbuild_grpc_service_config.json", deps = [ ":cloudbuild_csharp_grpc", ":cloudbuild_csharp_proto", diff --git a/third_party/googleapis/google/devtools/cloudbuild/v1/cloudbuild.proto b/third_party/googleapis/google/devtools/cloudbuild/v1/cloudbuild.proto index de8a1de3d..689e87984 100644 --- a/third_party/googleapis/google/devtools/cloudbuild/v1/cloudbuild.proto +++ b/third_party/googleapis/google/devtools/cloudbuild/v1/cloudbuild.proto @@ -26,6 +26,7 @@ import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; +option csharp_namespace = "Google.Cloud.CloudBuild.V1"; option go_package = "google.golang.org/genproto/googleapis/devtools/cloudbuild/v1;cloudbuild"; option java_multiple_files = true; option java_package = "com.google.cloudbuild.v1"; diff --git a/third_party/googleapis/google/devtools/cloudbuild/v1/cloudbuild_gapic.legacy.yaml b/third_party/googleapis/google/devtools/cloudbuild/v1/cloudbuild_gapic.legacy.yaml deleted file mode 100644 index 69c9bbf13..000000000 --- a/third_party/googleapis/google/devtools/cloudbuild/v1/cloudbuild_gapic.legacy.yaml +++ /dev/null @@ -1,242 +0,0 @@ -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.devtools.cloudbuild.v1 - python: - package_name: google.cloud.devtools.cloudbuild_v1.gapic - go: - package_name: cloud.google.com/go/cloudbuild/apiv1 - release_level: GA - csharp: - package_name: Google.Devtools.Cloudbuild.V1 - ruby: - package_name: Google::Cloud::Devtools::Cloudbuild::V1 - php: - package_name: Google\Cloud\Devtools\Cloudbuild\V1 - nodejs: - package_name: cloudbuild.v1 - domain_layer_location: google-cloud -# A list of API interface configurations. -interfaces: - # The fully qualified name of the API interface. -- name: google.devtools.cloudbuild.v1.CloudBuild - # 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: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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: CreateBuild - flattening: - groups: - - parameters: - - project_id - - build - required_fields: - - project_id - - build - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 60000 - - name: GetBuild - flattening: - groups: - - parameters: - - project_id - - id - required_fields: - - project_id - - id - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - - name: ListBuilds - flattening: - groups: - - parameters: - - project_id - - filter - required_fields: - - project_id - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: builds - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - - name: CancelBuild - flattening: - groups: - - parameters: - - project_id - - id - required_fields: - - project_id - - id - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 60000 - - name: CreateBuildTrigger - flattening: - groups: - - parameters: - - project_id - - trigger - required_fields: - - project_id - - trigger - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 60000 - - name: GetBuildTrigger - flattening: - groups: - - parameters: - - project_id - - trigger_id - required_fields: - - project_id - - trigger_id - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - - name: ListBuildTriggers - flattening: - groups: - - parameters: - - project_id - required_fields: - - project_id - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - - name: DeleteBuildTrigger - flattening: - groups: - - parameters: - - project_id - - trigger_id - required_fields: - - project_id - - trigger_id - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - - name: UpdateBuildTrigger - flattening: - groups: - - parameters: - - project_id - - trigger_id - - trigger - required_fields: - - project_id - - trigger_id - - trigger - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 60000 - - name: RunBuildTrigger - flattening: - groups: - - parameters: - - project_id - - trigger_id - - source - required_fields: - - project_id - - trigger_id - - source - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 60000 - - name: RetryBuild - flattening: - groups: - - parameters: - - project_id - - id - required_fields: - - project_id - - id - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 60000 diff --git a/third_party/googleapis/google/devtools/clouddebugger/v2/BUILD.bazel b/third_party/googleapis/google/devtools/clouddebugger/v2/BUILD.bazel index 6ef4465fd..a7584308e 100644 --- a/third_party/googleapis/google/devtools/clouddebugger/v2/BUILD.bazel +++ b/third_party/googleapis/google/devtools/clouddebugger/v2/BUILD.bazel @@ -60,11 +60,9 @@ java_grpc_library( java_gapic_library( name = "clouddebugger_java_gapic", - src = ":clouddebugger_proto_with_info", + srcs = [":clouddebugger_proto_with_info"], gapic_yaml = "clouddebugger_gapic.yaml", grpc_service_config = "clouddebugger_grpc_service_config.json", - package = "google.devtools.clouddebugger.v2", - service_yaml = "clouddebugger_v2.yaml", test_deps = [ ":clouddebugger_java_grpc", ], @@ -148,52 +146,14 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "clouddebugger_moved_proto", - srcs = [":clouddebugger_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/devtools/source/v1:source_proto", - "@com_google_protobuf//:empty_proto", - "@com_google_protobuf//:timestamp_proto", - "@com_google_protobuf//:wrappers_proto", - ], -) - -py_proto_library( - name = "clouddebugger_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":clouddebugger_moved_proto"], -) - -py_grpc_library( - name = "clouddebugger_py_grpc", - srcs = [":clouddebugger_moved_proto"], - deps = [":clouddebugger_py_proto"], ) py_gapic_library( name = "clouddebugger_py_gapic", - src = ":clouddebugger_proto_with_info", - gapic_yaml = "clouddebugger_gapic.yaml", + srcs = [":clouddebugger_proto"], grpc_service_config = "clouddebugger_grpc_service_config.json", - package = "google.devtools.clouddebugger.v2", - service_yaml = "clouddebugger_v2.yaml", - deps = [ - ":clouddebugger_py_grpc", - ":clouddebugger_py_proto", - "//google/devtools/source/v1:source_py_grpc", - "//google/devtools/source/v1:source_py_proto", - ], ) # Open Source Packages @@ -201,8 +161,6 @@ py_gapic_assembly_pkg( name = "devtools-clouddebugger-v2-py", deps = [ ":clouddebugger_py_gapic", - ":clouddebugger_py_grpc", - ":clouddebugger_py_proto", "//google/devtools/source/v1:source_py_grpc", "//google/devtools/source/v1:source_py_proto", ], @@ -269,6 +227,7 @@ load( nodejs_gapic_library( name = "clouddebugger_nodejs_gapic", src = ":clouddebugger_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "clouddebugger_grpc_service_config.json", package = "google.devtools.clouddebugger.v2", service_yaml = "clouddebugger_v2.yaml", @@ -290,7 +249,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -306,12 +265,20 @@ ruby_grpc_library( deps = [":clouddebugger_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "clouddebugger_ruby_gapic", - src = ":clouddebugger_proto_with_info", - gapic_yaml = "clouddebugger_gapic.yaml", - package = "google.devtools.clouddebugger.v2", - service_yaml = "clouddebugger_v2.yaml", + srcs = [":clouddebugger_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-debugger-v2", + "ruby-cloud-env-prefix=DEBUGGER", + "ruby-cloud-product-url=https://cloud.google.com/debugger", + "ruby-cloud-api-id=clouddebugger.googleapis.com", + "ruby-cloud-api-shortname=clouddebugger", + "ruby-cloud-service-override=Controller2=Controller;Debugger2=Debugger", + ], + grpc_service_config = "clouddebugger_grpc_service_config.json", + ruby_cloud_description = "The Cloud Debugger API allows applications to interact with the Google Cloud Debugger backends. It provides two interfaces: the Debugger interface and the Controller interface. The Controller interface allows you to implement an agent that sends state data -- for example, the value of program variables and the call stack -- to Cloud Debugger when the application is running. The Debugger interface allows you to implement a Cloud Debugger client that allows users to set and delete the breakpoints at which the state data is collected, as well as read the data that is captured.", + ruby_cloud_title = "Cloud Debugger V2", deps = [ ":clouddebugger_ruby_grpc", ":clouddebugger_ruby_proto", @@ -357,8 +324,8 @@ csharp_grpc_library( csharp_gapic_library( name = "clouddebugger_csharp_gapic", srcs = [":clouddebugger_proto_with_info"], - grpc_service_config = "clouddebugger_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "clouddebugger_grpc_service_config.json", deps = [ ":clouddebugger_csharp_grpc", ":clouddebugger_csharp_proto", diff --git a/third_party/googleapis/google/devtools/clouddebugger/v2/clouddebugger_gapic.legacy.yaml b/third_party/googleapis/google/devtools/clouddebugger/v2/clouddebugger_gapic.legacy.yaml deleted file mode 100644 index 1e910b192..000000000 --- a/third_party/googleapis/google/devtools/clouddebugger/v2/clouddebugger_gapic.legacy.yaml +++ /dev/null @@ -1,156 +0,0 @@ -type: com.google.api.codegen.ConfigProto -config_schema_version: 1.0.0 -language_settings: - java: - package_name: com.google.cloud.debugger.v2 - python: - package_name: google.cloud.debugger_v2.gapic - go: - package_name: cloud.google.com/go/debugger/apiv2 - domain_layer_location: cloud.google.com/go/cmd/go-cloud-debug-agent - csharp: - package_name: Google.Cloud.Debugger.V2 - ruby: - package_name: Google::Cloud::Debugger::V2 - php: - package_name: Google\Cloud\Debugger\V2 - nodejs: - package_name: debugger.v2 - domain_layer_location: google-cloud -interfaces: -- name: google.devtools.clouddebugger.v2.Debugger2 - collections: [] - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 60000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 60000 - total_timeout_millis: 600000 - methods: - - name: SetBreakpoint - required_fields: - - debuggee_id - - breakpoint - - client_version - flattening: - groups: - - parameters: - - debuggee_id - - breakpoint - - client_version - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 60000 - - name: GetBreakpoint - required_fields: - - debuggee_id - - breakpoint_id - - client_version - flattening: - groups: - - parameters: - - debuggee_id - - breakpoint_id - - client_version - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - - name: DeleteBreakpoint - required_fields: - - debuggee_id - - breakpoint_id - - client_version - flattening: - groups: - - parameters: - - debuggee_id - - breakpoint_id - - client_version - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - - name: ListBreakpoints - required_fields: - - debuggee_id - - client_version - flattening: - groups: - - parameters: - - debuggee_id - - client_version - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - - name: ListDebuggees - required_fields: - - project - - client_version - flattening: - groups: - - parameters: - - project - - client_version - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 -- name: google.devtools.clouddebugger.v2.Controller2 - collections: [] - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 60000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 60000 - total_timeout_millis: 600000 - methods: - - name: RegisterDebuggee - required_fields: - - debuggee - flattening: - groups: - - parameters: - - debuggee - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 60000 - - name: ListActiveBreakpoints - required_fields: - - debuggee_id - flattening: - groups: - - parameters: - - debuggee_id - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - - name: UpdateActiveBreakpoint - required_fields: - - debuggee_id - - breakpoint - flattening: - groups: - - parameters: - - debuggee_id - - breakpoint - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 diff --git a/third_party/googleapis/google/devtools/clouderrorreporting/artman_errorreporting.legacy.yaml b/third_party/googleapis/google/devtools/clouderrorreporting/artman_errorreporting.legacy.yaml deleted file mode 100644 index 6493aa47a..000000000 --- a/third_party/googleapis/google/devtools/clouderrorreporting/artman_errorreporting.legacy.yaml +++ /dev/null @@ -1,34 +0,0 @@ -common: - api_name: error-reporting - api_version: v1beta1 - organization_name: google-cloud - service_yaml: v1beta1/clouderrorreporting_v1beta1.yaml - gapic_yaml: v1beta1/errorreporting_gapic.legacy.yaml - src_proto_paths: - - v1beta1 - proto_deps: - - name: google-common-protos -artifacts: -- name: java_gapic - type: GAPIC - language: JAVA -- name: python_gapic - type: GAPIC - language: PYTHON -- name: php_gapic - type: GAPIC - language: PHP -- name: ruby_gapic - type: GAPIC - language: RUBY -- name: go_gapic - type: GAPIC - language: GO -- name: csharp_gapic - type: GAPIC - language: CSHARP -- name: nodejs_gapic - type: GAPIC - language: NODEJS -- name: gapic_config - type: GAPIC_CONFIG diff --git a/third_party/googleapis/google/devtools/clouderrorreporting/artman_errorreporting.yaml b/third_party/googleapis/google/devtools/clouderrorreporting/artman_errorreporting.yaml deleted file mode 100644 index a4dd9f0c8..000000000 --- a/third_party/googleapis/google/devtools/clouderrorreporting/artman_errorreporting.yaml +++ /dev/null @@ -1,34 +0,0 @@ -common: - api_name: error-reporting - api_version: v1beta1 - organization_name: google-cloud - service_yaml: v1beta1/clouderrorreporting_v1beta1.yaml - gapic_yaml: v1beta1/errorreporting_gapic.yaml - src_proto_paths: - - v1beta1 - proto_deps: - - name: google-common-protos -artifacts: -- name: java_gapic - type: GAPIC - language: JAVA -- name: python_gapic - type: GAPIC - language: PYTHON -- name: php_gapic - type: GAPIC - language: PHP -- name: ruby_gapic - type: GAPIC - language: RUBY -- name: go_gapic - type: GAPIC - language: GO -- name: csharp_gapic - type: GAPIC - language: CSHARP -- name: nodejs_gapic - type: GAPIC - language: NODEJS -- name: gapic_config - type: GAPIC_CONFIG diff --git a/third_party/googleapis/google/devtools/clouderrorreporting/v1beta1/BUILD.bazel b/third_party/googleapis/google/devtools/clouderrorreporting/v1beta1/BUILD.bazel index 4f17ed814..c4e0b9cf4 100644 --- a/third_party/googleapis/google/devtools/clouderrorreporting/v1beta1/BUILD.bazel +++ b/third_party/googleapis/google/devtools/clouderrorreporting/v1beta1/BUILD.bazel @@ -1,4 +1,13 @@ # This file was automatically generated by BuildFileGenerator +# https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/bazel + +# Most of the manual changes to this file will be overwritten. +# It's **only** allowed to change the following rule attribute values: +# - names of *_gapic_assembly_* rules +# - certain parameters of *_gapic_library rules, including but not limited to: +# * extra_protoc_parameters +# * extra_protoc_file_parameters +# The complete list of preserved parameters can be found in the source code. # This is an API workspace, having public visibility by default makes perfect sense. package(default_visibility = ["//visibility:public"]) @@ -60,11 +69,8 @@ java_grpc_library( java_gapic_library( name = "clouderrorreporting_java_gapic", - src = ":clouderrorreporting_proto_with_info", - gapic_yaml = "errorreporting_gapic.yaml", + srcs = [":clouderrorreporting_proto_with_info"], grpc_service_config = "errorreporting_grpc_service_config.json", - package = "google.devtools.clouderrorreporting.v1beta1", - service_yaml = "clouderrorreporting_v1beta1.yaml", test_deps = [ ":clouderrorreporting_java_grpc", ], @@ -76,9 +82,9 @@ java_gapic_library( java_gapic_test( name = "clouderrorreporting_java_gapic_test_suite", test_classes = [ - "com.google.cloud.errorreporting.v1beta1.ErrorGroupServiceClientTest", - "com.google.cloud.errorreporting.v1beta1.ErrorStatsServiceClientTest", - "com.google.cloud.errorreporting.v1beta1.ReportErrorsServiceClientTest", + "com.google.devtools.clouderrorreporting.v1beta1.ErrorGroupServiceClientTest", + "com.google.devtools.clouderrorreporting.v1beta1.ErrorStatsServiceClientTest", + "com.google.devtools.clouderrorreporting.v1beta1.ReportErrorsServiceClientTest", ], runtime_deps = [":clouderrorreporting_java_gapic_test"], ) @@ -112,6 +118,7 @@ go_proto_library( protos = [":clouderrorreporting_proto"], deps = [ "//google/api:annotations_go_proto", + "//google/appengine/logging/v1:logging_go_proto", ], ) @@ -119,7 +126,7 @@ go_gapic_library( name = "clouderrorreporting_go_gapic", srcs = [":clouderrorreporting_proto_with_info"], grpc_service_config = "errorreporting_grpc_service_config.json", - importpath = "cloud.google.com/go/errorreporting/apiv1beta1;clouderrorreporting", + importpath = "cloud.google.com/go/devtools/clouderrorreporting/apiv1beta1;clouderrorreporting", service_yaml = "clouderrorreporting_v1beta1.yaml", deps = [ ":clouderrorreporting_go_proto", @@ -131,7 +138,7 @@ go_test( name = "clouderrorreporting_go_gapic_test", srcs = [":clouderrorreporting_go_gapic_srcjar_test"], embed = [":clouderrorreporting_go_gapic"], - importpath = "cloud.google.com/go/errorreporting/apiv1beta1", + importpath = "cloud.google.com/go/devtools/clouderrorreporting/apiv1beta1", ) # Open Source Packages @@ -147,21 +154,23 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( name = "clouderrorreporting_py_gapic", srcs = [":clouderrorreporting_proto"], - opt_args = ["python-gapic-namespace=google.cloud", "python-gapic-name=errorreporting"], grpc_service_config = "errorreporting_grpc_service_config.json", + opt_args = [ + "python-gapic-name=errorreporting", + "python-gapic-namespace=google.cloud", + ], ) +# Open Source Packages py_gapic_assembly_pkg( name = "devtools-clouderrorreporting-v1beta1-py", deps = [ @@ -225,7 +234,9 @@ load( nodejs_gapic_library( name = "clouderrorreporting_nodejs_gapic", + package_name = "@google-cloud/clouderrorreporting", src = ":clouderrorreporting_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "errorreporting_grpc_service_config.json", package = "google.devtools.clouderrorreporting.v1beta1", service_yaml = "clouderrorreporting_v1beta1.yaml", @@ -246,7 +257,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -262,12 +273,19 @@ ruby_grpc_library( deps = [":clouderrorreporting_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "clouderrorreporting_ruby_gapic", - src = ":clouderrorreporting_proto_with_info", - gapic_yaml = "errorreporting_gapic.yaml", - package = "google.devtools.clouderrorreporting.v1beta1", - service_yaml = "clouderrorreporting_v1beta1.yaml", + srcs = [":clouderrorreporting_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-error_reporting-v1beta1", + "ruby-cloud-env-prefix=ERROR_REPORTING", + "ruby-cloud-product-url=https://cloud.google.com/error-reporting", + "ruby-cloud-api-id=clouderrorreporting.googleapis.com", + "ruby-cloud-api-shortname=clouderrorreporting", + ], + grpc_service_config = "errorreporting_grpc_service_config.json", + ruby_cloud_description = "The Error Reporting API provides a simple endpoint to report errors from your running service, and read access to error groups and their associated errors.", + ruby_cloud_title = "Cloud Error Reporting V1beta1", deps = [ ":clouderrorreporting_ruby_grpc", ":clouderrorreporting_ruby_proto", @@ -309,8 +327,8 @@ csharp_grpc_library( csharp_gapic_library( name = "clouderrorreporting_csharp_gapic", srcs = [":clouderrorreporting_proto_with_info"], - grpc_service_config = "errorreporting_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "errorreporting_grpc_service_config.json", deps = [ ":clouderrorreporting_csharp_grpc", ":clouderrorreporting_csharp_proto", diff --git a/third_party/googleapis/google/devtools/clouderrorreporting/v1beta1/clouderrorreporting_v1beta1.yaml b/third_party/googleapis/google/devtools/clouderrorreporting/v1beta1/clouderrorreporting_v1beta1.yaml index 5fc81427d..b7860ba75 100644 --- a/third_party/googleapis/google/devtools/clouderrorreporting/v1beta1/clouderrorreporting_v1beta1.yaml +++ b/third_party/googleapis/google/devtools/clouderrorreporting/v1beta1/clouderrorreporting_v1beta1.yaml @@ -1,7 +1,7 @@ type: google.api.Service config_version: 3 name: clouderrorreporting.googleapis.com -title: Cloud Error Reporting API +title: Error Reporting API apis: - name: google.devtools.clouderrorreporting.v1beta1.ErrorGroupService @@ -13,6 +13,141 @@ documentation: Groups and counts similar errors from cloud services and applications, reports new errors, and provides access to error groups and their associated errors. + overview: |- + + + {% include "_shared/apis/console/_local_variables.html" %} + {% include "cloud/_shared/_cloud_shared_files.html" %} + + {% dynamic setvar launch_stage %}beta{% dynamic endsetvar %} + {% dynamic include /docs/includes/___info_launch_stage_disclaimer %} + + The {{error_reporting_api}} provides: + + * A simple + [endpoint](/error-reporting/reference/rest/v1beta1/projects.events/report) + to **report** errors from your running service. + * Read access to error groups and their associated errors. + + ## Getting started + + {% dynamic setvar api_list %}clouderrorreporting.googleapis.com{% dynamic + endsetvar %} {% dynamic setvar api_names %}{{error_reporting_name}}{% + dynamic endsetvar %} {% dynamic setvar task_params %}no_steps{% dynamic + endsetvar %} {% dynamic include /docs/includes/___enable_api %} + + ## Authorizing use of the API + + Access to the {{error_reporting_api_short}} is controlled by {{iam_name}} + roles and permissions. You can find out more about authentication and + authorization for {{gcp_name}} APIs in the [Authentication + guide](/docs/authentication/getting-started). + + + + ## Data model + + The {{error_reporting_api_short}} defines three entities: error events, + error groups, and error group stats. The [error group + stats](#error-group-stats) + object is the object that most users will interact with most frequently. + + ### Error events + + An [`ErrorEvent`](/error-reporting/reference/rest/v1beta1/ErrorEvent) + represents a single occurrence of an error in your application. The + object + contains information about the error, such as the time at which it + occurred, the context in which it occurred, and the error message that was + returned. + An error event is guaranteed to be available for at least 30 days after + being generated. + + ### Error groups + + [`ErrorGroup`](/error-reporting/reference/rest/v1beta1/projects.groups#ErrorGroup) objects + are logically-grouped collections of error events. Grouping is + based on information in the error event's stack trace. An error group is a + simple object containing only the name, group ID, and any associated + tracking issues for the group. + + To update tracking issues URLs, use this resource's `update` method. + + ### Error group stats + + [`ErrorGroupStats`](/error-reporting/reference/rest/v1beta1/projects.groupStats/list#ErrorGroupStats) objects + contain detailed information about an error group, + and are the API objects that you will interact with most frequently. + Information in the `groupStats` object includes the first and last time an + error event in this group occurred, the count, the number of affected + users, and more. This object is useful when building widgets and custom + dashboards. + + ## Operations + + The {{error_reporting_api_short}} supports the following operations: + + * Report a new error event + * List error group stats + * List error events + * Get error groups + * Update an error group's tracking issues + + ### Report error events + + You can report error events from your running services by writing them to + [`ReportedErrorEvent`](/error-reporting/reference/rest/v1beta1/projects.events/report#ReportedErrorEvent). Doing + this generates + [properly formatted error + messages](/error-reporting/docs/formatting-error-messages) in + {{logging_name}}. The resulting log name is formatted as + `projects//clouderrorreporting.googleapis.com%2Freported_errors`. You + might incur minor {{logging_name}} ingestion costs using this method; + to control these costs, review [Logs + exclusions](/logging/docs/exclusions). + + You can also report new error events to {{error_reporting_name}} by + assembling [error event + entities](/error-reporting/reference/rest/v1beta1/projects.events/report#ReportedErrorEvent) from + your running service and sending them to the `events.report` method. + + ### List error group stats + + To get a list of error group stats, send a request to the + [`groupStats.list`](/error-reporting/reference/rest/v1beta1/projects.groupStats/list) method. + You can pass one or more + [query + parameters](/error-reporting/reference/rest/v1beta1/projects.groupStats/list#body.QUERY_PARAMETERS) to + filter the group stats that are returned. + + ### List error events + + To get a list of error events belonging to a specific error group, send a + request to the + [`events.list`](/error-reporting/reference/rest/v1beta1/projects.events/list) method. + You can pass a filter condition to these requests to retrieve only + those error events that occurred between a specific start and end time, or + those that match specific [service + contexts](/error-reporting/reference/rest/v1beta1/ServiceContextFilter). + + ### Get error groups + + To retrieve a specific error group resource, send a request to the + [`groups.get`](/error-reporting/reference/rest/v1beta1/projects.groups/get) method. ### + Update error groups + + To update the tracking issue URLs associated with an error group, send an + updated + [`ErrorGroup` + resource](/error-reporting/reference/rest/v1beta1/projects.groups#ErrorGroup) to + the + [`groups.update`](/error-reporting/reference/rest/v1beta1/projects.groups/update) method. authentication: rules: diff --git a/third_party/googleapis/google/devtools/clouderrorreporting/v1beta1/common.proto b/third_party/googleapis/google/devtools/clouderrorreporting/v1beta1/common.proto index 7a1d20037..e9bb321e4 100644 --- a/third_party/googleapis/google/devtools/clouderrorreporting/v1beta1/common.proto +++ b/third_party/googleapis/google/devtools/clouderrorreporting/v1beta1/common.proto @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,9 +16,9 @@ syntax = "proto3"; package google.devtools.clouderrorreporting.v1beta1; -import "google/api/annotations.proto"; import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; +import "google/api/annotations.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.ErrorReporting.V1Beta1"; @@ -37,7 +37,7 @@ message ErrorGroup { }; // The group resource name. - // Example: projects/my-project-123/groups/my-groupid + // Example: projects/my-project-123/groups/CNSgkpnppqKCUw string name = 1; // Group IDs are unique for a given project. If the same kind of error @@ -46,6 +46,10 @@ message ErrorGroup { // Associated tracking issues. repeated TrackingIssue tracking_issues = 3; + + // Error group's resolution status. + // An unspecified resolution status will be interpreted as OPEN + ResolutionStatus resolution_status = 5; } // Information related to tracking the progress on resolving the error. @@ -169,3 +173,24 @@ message SourceLocation { // For example, `my.package.MyClass.method` in case of Java. string function_name = 4; } + +// Resolution status of an error group. +enum ResolutionStatus { + // Status is unknown. When left unspecified in requests, it is treated like + // OPEN. + RESOLUTION_STATUS_UNSPECIFIED = 0; + + // The error group is not being addressed. This is the default for + // new groups. It is also used for errors re-occurring after marked RESOLVED. + OPEN = 1; + + // Error Group manually acknowledged, it can have an issue link attached. + ACKNOWLEDGED = 2; + + // Error Group manually resolved, more events for this group are not expected + // to occur. + RESOLVED = 3; + + // The error group is muted and excluded by default on group stats requests. + MUTED = 4; +} diff --git a/third_party/googleapis/google/devtools/clouderrorreporting/v1beta1/error_group_service.proto b/third_party/googleapis/google/devtools/clouderrorreporting/v1beta1/error_group_service.proto index 18182729e..0104b62d3 100644 --- a/third_party/googleapis/google/devtools/clouderrorreporting/v1beta1/error_group_service.proto +++ b/third_party/googleapis/google/devtools/clouderrorreporting/v1beta1/error_group_service.proto @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,7 +11,6 @@ // WITHOUT 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"; @@ -58,7 +57,7 @@ service ErrorGroupService { // A request to return an individual group. message GetGroupRequest { - // The group resource name. Written as + // Required. The group resource name. Written as // `projects/{projectID}/groups/{group_name}`. Call // [`groupStats.list`](https://cloud.google.com/error-reporting/reference/rest/v1beta1/projects.groupStats/list) // to return a list of groups belonging to this project. diff --git a/third_party/googleapis/google/devtools/clouderrorreporting/v1beta1/error_stats_service.proto b/third_party/googleapis/google/devtools/clouderrorreporting/v1beta1/error_stats_service.proto index 0773f488d..6c62edd9e 100644 --- a/third_party/googleapis/google/devtools/clouderrorreporting/v1beta1/error_stats_service.proto +++ b/third_party/googleapis/google/devtools/clouderrorreporting/v1beta1/error_stats_service.proto @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,7 +11,6 @@ // WITHOUT 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"; @@ -68,11 +67,11 @@ service ErrorStatsService { // Specifies a set of `ErrorGroupStats` to return. message ListGroupStatsRequest { // Required. The resource name of the Google Cloud Platform project. Written - // as projects/ plus the - // Google Cloud - // Platform project ID. + // as `projects/{projectID}` or `projects/{projectNumber}`, where `{projectID}` + // and `{projectNumber}` can be found in the + // [Google Cloud Console](https://support.google.com/cloud/answer/6158840). // - // Example: projects/my-project-123. + // Examples: `projects/my-project-123`, `projects/5551234`. string project_name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -258,9 +257,10 @@ enum ErrorGroupOrder { // Specifies a set of error events to return. message ListEventsRequest { // Required. The resource name of the Google Cloud Platform project. Written - // as `projects/` plus the + // as `projects/{projectID}`, where `{projectID}` is the // [Google Cloud Platform project // ID](https://support.google.com/cloud/answer/6158840). + // // Example: `projects/my-project-123`. string project_name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -357,9 +357,10 @@ message ServiceContextFilter { // Deletes all events in the project. message DeleteEventsRequest { // Required. The resource name of the Google Cloud Platform project. Written - // as `projects/` plus the + // as `projects/{projectID}`, where `{projectID}` is the // [Google Cloud Platform project // ID](https://support.google.com/cloud/answer/6158840). + // // Example: `projects/my-project-123`. string project_name = 1 [ (google.api.field_behavior) = REQUIRED, diff --git a/third_party/googleapis/google/devtools/clouderrorreporting/v1beta1/errorreporting_gapic.legacy.yaml b/third_party/googleapis/google/devtools/clouderrorreporting/v1beta1/errorreporting_gapic.legacy.yaml deleted file mode 100644 index 32e70a5b9..000000000 --- a/third_party/googleapis/google/devtools/clouderrorreporting/v1beta1/errorreporting_gapic.legacy.yaml +++ /dev/null @@ -1,223 +0,0 @@ -type: com.google.api.codegen.ConfigProto -config_schema_version: 1.0.0 -language_settings: - java: - package_name: com.google.cloud.errorreporting.v1beta1 - python: - package_name: google.cloud.errorreporting_v1beta1.gapic - go: - package_name: cloud.google.com/go/errorreporting/apiv1beta1 - domain_layer_location: cloud.google.com/go/errorreporting - csharp: - package_name: Google.Cloud.ErrorReporting.V1Beta1 - ruby: - package_name: Google::Cloud::ErrorReporting::V1beta1 - php: - package_name: Google\Cloud\ErrorReporting\V1beta1 - nodejs: - package_name: errorreporting.v1beta1 - domain_layer_location: google-cloud -collections: -- name_pattern: projects/{project} - entity_name: project - language_overrides: - - language: csharp - common_resource_name: Google.Api.Gax.ResourceNames.ProjectName -- name_pattern: projects/{project}/groups/{group} - entity_name: group -interfaces: -- name: google.devtools.clouderrorreporting.v1beta1.ErrorGroupService - collections: - - name_pattern: projects/{project}/groups/{group} - entity_name: group - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - methods: - - name: GetGroup - flattening: - groups: - - parameters: - - group_name - required_fields: - - group_name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - group_name: group - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: UpdateGroup - flattening: - groups: - - parameters: - - group - required_fields: - - group - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - group.name: group - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 -- name: google.devtools.clouderrorreporting.v1beta1.ReportErrorsService - smoke_test: - method: ReportErrorEvent - init_fields: - - project_name%project=$PROJECT_ID - - event.message="[MESSAGE]" - - event.service_context.service="[SERVICE]" - - event.context.report_location.file_path="path/to/file.lang" - - event.context.report_location.line_number=42 - - event.context.report_location.function_name="meaningOfLife" - collections: - - name_pattern: projects/{project} - entity_name: project - language_overrides: - - language: csharp - common_resource_name: Google.Api.Gax.ResourceNames.ProjectName - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - methods: - - name: ReportErrorEvent - flattening: - groups: - - parameters: - - project_name - - event - required_fields: - - project_name - - event - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - project_name: project - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 -- name: google.devtools.clouderrorreporting.v1beta1.ErrorStatsService - collections: - - name_pattern: projects/{project} - entity_name: project - language_overrides: - - language: csharp - common_resource_name: Google.Api.Gax.ResourceNames.ProjectName - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - methods: - - name: ListGroupStats - flattening: - groups: - - parameters: - - project_name - - time_range - required_fields: - - project_name - - time_range - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: error_group_stats - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - project_name: project - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: ListEvents - flattening: - groups: - - parameters: - - project_name - - group_id - required_fields: - - project_name - - group_id - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: error_events - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - project_name: project - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: DeleteEvents - flattening: - groups: - - parameters: - - project_name - required_fields: - - project_name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - project_name: project - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 -resource_name_generation: -- message_name: ErrorGroup - field_entity_map: - name: group -- message_name: GetGroupRequest - field_entity_map: - group_name: group -- message_name: ListGroupStatsRequest - field_entity_map: - project_name: project -- message_name: ListEventsRequest - field_entity_map: - project_name: project -- message_name: DeleteEventsRequest - field_entity_map: - project_name: project -- message_name: ReportErrorEventRequest - field_entity_map: - project_name: project diff --git a/third_party/googleapis/google/devtools/clouderrorreporting/v1beta1/report_errors_service.proto b/third_party/googleapis/google/devtools/clouderrorreporting/v1beta1/report_errors_service.proto index f46f546d8..cd1e5100b 100644 --- a/third_party/googleapis/google/devtools/clouderrorreporting/v1beta1/report_errors_service.proto +++ b/third_party/googleapis/google/devtools/clouderrorreporting/v1beta1/report_errors_service.proto @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,7 +11,6 @@ // WITHOUT 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"; @@ -38,7 +37,7 @@ service ReportErrorsService { option (google.api.default_host) = "clouderrorreporting.googleapis.com"; option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - // Report an individual error event. + // Report an individual error event and record the event to a log. // // This endpoint accepts **either** an OAuth token, // **or** an [API key](https://support.google.com/cloud/answer/6158862) @@ -46,7 +45,15 @@ service ReportErrorsService { // a `key` parameter. For example: // // `POST - // https://clouderrorreporting.googleapis.com/v1beta1/projects/example-project/events:report?key=123ABC456` + // https://clouderrorreporting.googleapis.com/v1beta1/{projectName}/events:report?key=123ABC456` + // + // **Note:** [Error Reporting](/error-reporting) is a global service built + // on Cloud Logging and doesn't analyze logs stored + // in regional log buckets or logs routed to other Google Cloud projects. + // + // For more information, see + // [Using Error Reporting with regionalized + // logs](/error-reporting/docs/regionalization). rpc ReportErrorEvent(ReportErrorEventRequest) returns (ReportErrorEventResponse) { option (google.api.http) = { post: "/v1beta1/{project_name=projects/*}/events:report" @@ -59,10 +66,11 @@ service ReportErrorsService { // A request for reporting an individual error event. message ReportErrorEventRequest { // Required. The resource name of the Google Cloud Platform project. Written - // as `projects/` plus the + // as `projects/{projectId}`, where `{projectId}` is the // [Google Cloud Platform project - // ID](https://support.google.com/cloud/answer/6158840). Example: - // `projects/my-project-123`. + // ID](https://support.google.com/cloud/answer/6158840). + // + // Example: // `projects/my-project-123`. string project_name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/third_party/googleapis/google/devtools/cloudprofiler/BUILD.bazel b/third_party/googleapis/google/devtools/cloudprofiler/BUILD.bazel new file mode 100644 index 000000000..a87c57fec --- /dev/null +++ b/third_party/googleapis/google/devtools/cloudprofiler/BUILD.bazel @@ -0,0 +1 @@ +exports_files(glob(["*.yaml"])) diff --git a/third_party/googleapis/google/devtools/cloudprofiler/v2/BUILD.bazel b/third_party/googleapis/google/devtools/cloudprofiler/v2/BUILD.bazel new file mode 100644 index 000000000..745fea0ca --- /dev/null +++ b/third_party/googleapis/google/devtools/cloudprofiler/v2/BUILD.bazel @@ -0,0 +1,339 @@ +# This file was automatically generated by BuildFileGenerator +# https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/bazel + +# Most of the manual changes to this file will be overwritten. +# It's **only** allowed to change the following rule attribute values: +# - names of *_gapic_assembly_* rules +# - certain parameters of *_gapic_library rules, including but not limited to: +# * extra_protoc_parameters +# * extra_protoc_file_parameters +# The complete list of preserved parameters can be found in the source code. + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") +load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info") + +proto_library( + name = "cloudprofiler_proto", + srcs = [ + "profiler.proto", + ], + deps = [ + "//google/api:annotations_proto", + "//google/api:client_proto", + "@com_google_protobuf//:duration_proto", + "@com_google_protobuf//:field_mask_proto", + ], +) + +proto_library_with_info( + name = "cloudprofiler_proto_with_info", + deps = [ + ":cloudprofiler_proto", + "//google/cloud:common_resources_proto", + ], +) + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_gapic_assembly_gradle_pkg", + "java_gapic_library", + "java_gapic_test", + "java_grpc_library", + "java_proto_library", +) + +java_proto_library( + name = "cloudprofiler_java_proto", + deps = [":cloudprofiler_proto"], +) + +java_grpc_library( + name = "cloudprofiler_java_grpc", + srcs = [":cloudprofiler_proto"], + deps = [":cloudprofiler_java_proto"], +) + +java_gapic_library( + name = "cloudprofiler_java_gapic", + srcs = [":cloudprofiler_proto_with_info"], + grpc_service_config = "cloudprofiler_grpc_service_config.json", + test_deps = [ + ":cloudprofiler_java_grpc", + ], + deps = [ + ":cloudprofiler_java_proto", + ], +) + +java_gapic_test( + name = "cloudprofiler_java_gapic_test_suite", + test_classes = [ + "com.google.devtools.cloudprofiler.v2.ProfilerServiceClientTest", + ], + runtime_deps = [":cloudprofiler_java_gapic_test"], +) + +# Open Source Packages +java_gapic_assembly_gradle_pkg( + name = "google-cloud-devtools-cloudprofiler-v2-java", + deps = [ + ":cloudprofiler_java_gapic", + ":cloudprofiler_java_grpc", + ":cloudprofiler_java_proto", + ":cloudprofiler_proto", + ], +) + +############################################################################## +# Go +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "go_gapic_assembly_pkg", + "go_gapic_library", + "go_proto_library", + "go_test", +) + +go_proto_library( + name = "cloudprofiler_go_proto", + compilers = ["@io_bazel_rules_go//proto:go_grpc"], + importpath = "google.golang.org/genproto/googleapis/devtools/cloudprofiler/v2", + protos = [":cloudprofiler_proto"], + deps = [ + "//google/api:annotations_go_proto", + ], +) + +go_gapic_library( + name = "cloudprofiler_go_gapic", + srcs = [":cloudprofiler_proto_with_info"], + grpc_service_config = "cloudprofiler_grpc_service_config.json", + importpath = "cloud.google.com/go/devtools/cloudprofiler/apiv2;cloudprofiler", + service_yaml = "cloudprofiler_v2.yaml", + deps = [ + ":cloudprofiler_go_proto", + "@io_bazel_rules_go//proto/wkt:duration_go_proto", + ], +) + +go_test( + name = "cloudprofiler_go_gapic_test", + srcs = [":cloudprofiler_go_gapic_srcjar_test"], + embed = [":cloudprofiler_go_gapic"], + importpath = "cloud.google.com/go/devtools/cloudprofiler/apiv2", +) + +# Open Source Packages +go_gapic_assembly_pkg( + name = "gapi-cloud-devtools-cloudprofiler-v2-go", + deps = [ + ":cloudprofiler_go_gapic", + ":cloudprofiler_go_gapic_srcjar-test.srcjar", + ":cloudprofiler_go_proto", + ], +) + +############################################################################## +# Python +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "py_gapic_assembly_pkg", + "py_gapic_library", +) + +py_gapic_library( + name = "cloudprofiler_py_gapic", + srcs = [":cloudprofiler_proto"], + grpc_service_config = "cloudprofiler_grpc_service_config.json", +) + +# Open Source Packages +py_gapic_assembly_pkg( + name = "devtools-cloudprofiler-v2-py", + deps = [ + ":cloudprofiler_py_gapic", + ], +) + +############################################################################## +# PHP +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "php_gapic_assembly_pkg", + "php_gapic_library", + "php_grpc_library", + "php_proto_library", +) + +php_proto_library( + name = "cloudprofiler_php_proto", + deps = [":cloudprofiler_proto"], +) + +php_grpc_library( + name = "cloudprofiler_php_grpc", + srcs = [":cloudprofiler_proto"], + deps = [":cloudprofiler_php_proto"], +) + +php_gapic_library( + name = "cloudprofiler_php_gapic", + src = ":cloudprofiler_proto_with_info", + gapic_yaml = "cloudprofiler_gapic.yaml", + grpc_service_config = "cloudprofiler_grpc_service_config.json", + package = "google.devtools.cloudprofiler.v2", + service_yaml = "cloudprofiler_v2.yaml", + deps = [ + ":cloudprofiler_php_grpc", + ":cloudprofiler_php_proto", + ], +) + +# Open Source Packages +php_gapic_assembly_pkg( + name = "google-cloud-devtools-cloudprofiler-v2-php", + deps = [ + ":cloudprofiler_php_gapic", + ":cloudprofiler_php_grpc", + ":cloudprofiler_php_proto", + ], +) + +############################################################################## +# Node.js +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", +) + +nodejs_gapic_library( + name = "cloudprofiler_nodejs_gapic", + package_name = "@google-cloud/cloudprofiler", + src = ":cloudprofiler_proto_with_info", + extra_protoc_parameters = ["metadata"], + grpc_service_config = "cloudprofiler_grpc_service_config.json", + package = "google.devtools.cloudprofiler.v2", + service_yaml = "cloudprofiler_v2.yaml", + deps = [], +) + +nodejs_gapic_assembly_pkg( + name = "devtools-cloudprofiler-v2-nodejs", + deps = [ + ":cloudprofiler_nodejs_gapic", + ":cloudprofiler_proto", + ], +) + +############################################################################## +# Ruby +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "ruby_gapic_assembly_pkg", + "ruby_cloud_gapic_library", + "ruby_grpc_library", + "ruby_proto_library", +) + +ruby_proto_library( + name = "cloudprofiler_ruby_proto", + deps = [":cloudprofiler_proto"], +) + +ruby_grpc_library( + name = "cloudprofiler_ruby_grpc", + srcs = [":cloudprofiler_proto"], + deps = [":cloudprofiler_ruby_proto"], +) + +ruby_cloud_gapic_library( + name = "cloudprofiler_ruby_gapic", + srcs = [":cloudprofiler_proto_with_info",], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-profiler-v2", + "ruby-cloud-env-prefix=PROFILER", + "ruby-cloud-product-url=https://cloud.google.com/profiler/", + "ruby-cloud-api-id=cloudprofiler.googleapis.com", + "ruby-cloud-api-shortname=cloudprofiler", + ], + grpc_service_config = "cloudprofiler_grpc_service_config.json", + ruby_cloud_description = "Cloud Profiler is a statistical, low-overhead profiler that continuously gathers CPU usage and memory-allocation information from your production applications. It attributes that information to the application's source code, helping you identify the parts of the application consuming the most resources, and otherwise illuminating the performance characteristics of the code.", + ruby_cloud_title = "Cloud Profiler V2", + deps = [ + ":cloudprofiler_ruby_grpc", + ":cloudprofiler_ruby_proto", + ], +) + +# Open Source Packages +ruby_gapic_assembly_pkg( + name = "google-cloud-devtools-cloudprofiler-v2-ruby", + deps = [ + ":cloudprofiler_ruby_gapic", + ":cloudprofiler_ruby_grpc", + ":cloudprofiler_ruby_proto", + ], +) + +############################################################################## +# C# +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "csharp_gapic_assembly_pkg", + "csharp_gapic_library", + "csharp_grpc_library", + "csharp_proto_library", +) + +csharp_proto_library( + name = "cloudprofiler_csharp_proto", + deps = [":cloudprofiler_proto"], +) + +csharp_grpc_library( + name = "cloudprofiler_csharp_grpc", + srcs = [":cloudprofiler_proto"], + deps = [":cloudprofiler_csharp_proto"], +) + +csharp_gapic_library( + name = "cloudprofiler_csharp_gapic", + srcs = [":cloudprofiler_proto_with_info"], + common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "cloudprofiler_grpc_service_config.json", + deps = [ + ":cloudprofiler_csharp_grpc", + ":cloudprofiler_csharp_proto", + ], +) + +# Open Source Packages +csharp_gapic_assembly_pkg( + name = "google-cloud-devtools-cloudprofiler-v2-csharp", + deps = [ + ":cloudprofiler_csharp_gapic", + ":cloudprofiler_csharp_grpc", + ":cloudprofiler_csharp_proto", + ], +) + +############################################################################## +# C++ +############################################################################## +# Put your C++ rules here diff --git a/third_party/googleapis/google/devtools/cloudprofiler/v2/cloudprofiler_gapic.yaml b/third_party/googleapis/google/devtools/cloudprofiler/v2/cloudprofiler_gapic.yaml new file mode 100644 index 000000000..248fa7251 --- /dev/null +++ b/third_party/googleapis/google/devtools/cloudprofiler/v2/cloudprofiler_gapic.yaml @@ -0,0 +1,18 @@ +type: com.google.api.codegen.ConfigProto +config_schema_version: 2.0.0 +language_settings: + java: + package_name: com.google.devtools.cloudprofiler.v2 + python: + package_name: google.devtools.cloudprofiler_v2.gapic + go: + package_name: cloud.google.com/go/devtools/cloudprofiler/apiv2 + csharp: + package_name: Google.Cloud.Profiler.V2 + ruby: + package_name: Google::Cloud::Profiler::V2 + php: + package_name: Google\Cloud\Profiler\V2 + nodejs: + package_name: cloudprofiler.v2 + domain_layer_location: google-cloud diff --git a/third_party/googleapis/google/devtools/cloudprofiler/v2/cloudprofiler_grpc_service_config.json b/third_party/googleapis/google/devtools/cloudprofiler/v2/cloudprofiler_grpc_service_config.json new file mode 100644 index 000000000..0770f0f3e --- /dev/null +++ b/third_party/googleapis/google/devtools/cloudprofiler/v2/cloudprofiler_grpc_service_config.json @@ -0,0 +1,37 @@ +{ + "methodConfig": [ + { + "name": [{"service": "google.devtools.cloudprofiler.v2.ProfilerService"}], + "timeout": "30s", + "retryPolicy": { + "maxAttempts": 5, + "initialBackoff": "1s", + "maxBackoff": "10s", + "backoffMultiplier": 1.3, + "retryableStatusCodes": ["UNAVAILABLE"] + } + }, + { + "name": [ + { + "service": "google.devtools.cloudprofiler.v2.ProfilerService", + "method": "CreateProfile" + } + ], + "timeout": "3600s" + }, + { + "name": [ + { + "service": "google.devtools.cloudprofiler.v2.ProfilerService", + "method": "CreateOfflineProfile" + }, + { + "service": "google.devtools.cloudprofiler.v2.ProfilerService", + "method": "UpdateProfile" + } + ], + "timeout": "30s" + } + ] +} diff --git a/third_party/googleapis/google/devtools/cloudprofiler/v2/cloudprofiler_v2.yaml b/third_party/googleapis/google/devtools/cloudprofiler/v2/cloudprofiler_v2.yaml new file mode 100644 index 000000000..d4b129d0e --- /dev/null +++ b/third_party/googleapis/google/devtools/cloudprofiler/v2/cloudprofiler_v2.yaml @@ -0,0 +1,31 @@ +type: google.api.Service +config_version: 3 +name: cloudprofiler.googleapis.com +title: Cloud Profiler API + +apis: +- name: google.devtools.cloudprofiler.v2.ProfilerService + +documentation: + summary: Manages continuous profiling information. + overview: |- + The Cloud Profiler API manages the continuous profiling information + collected in cloud environments like App Engine, GKE and GCE. + +backend: + rules: + - selector: google.devtools.cloudprofiler.v2.ProfilerService.CreateOfflineProfile + deadline: 20.0 + - selector: google.devtools.cloudprofiler.v2.ProfilerService.CreateProfile + deadline: 3600.0 + - selector: google.devtools.cloudprofiler.v2.ProfilerService.UpdateProfile + deadline: 20.0 + +authentication: + rules: + - selector: 'google.devtools.cloudprofiler.v2.ProfilerService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/monitoring, + https://www.googleapis.com/auth/monitoring.write diff --git a/third_party/googleapis/google/devtools/cloudprofiler/v2/profiler.proto b/third_party/googleapis/google/devtools/cloudprofiler/v2/profiler.proto index 9238e88b6..b5a387c99 100644 --- a/third_party/googleapis/google/devtools/cloudprofiler/v2/profiler.proto +++ b/third_party/googleapis/google/devtools/cloudprofiler/v2/profiler.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC +// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -19,9 +19,15 @@ package google.devtools.cloudprofiler.v2; import "google/api/annotations.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/field_mask.proto"; -import "google/protobuf/timestamp.proto"; +import "google/api/client.proto"; +option csharp_namespace = "Google.Cloud.Profiler.V2"; option go_package = "google.golang.org/genproto/googleapis/devtools/cloudprofiler/v2;cloudprofiler"; +option java_multiple_files = true; +option java_outer_classname = "ProfilerProto"; +option java_package = "com.google.devtools.cloudprofiler.v2"; +option php_namespace = "Google\\Cloud\\Profiler\\V2"; +option ruby_package = "Google::Cloud::Profiler::V2"; // Manage the collection of continuous profiling data provided by profiling // agents running in the cloud or by an offline provider of profiling data. @@ -30,6 +36,12 @@ option go_package = "google.golang.org/genproto/googleapis/devtools/cloudprofile // * Profiles for a single deployment must be created in ascending time order. // * Profiles can be created in either online or offline mode, see below. service ProfilerService { + option (google.api.default_host) = "cloudprofiler.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/monitoring," + "https://www.googleapis.com/auth/monitoring.write"; + // CreateProfile creates a new profile resource in the online mode. // // The server ensures that the new profiles are created at a constant rate per diff --git a/third_party/googleapis/google/devtools/cloudtrace/artman_cloudtrace_v1.yaml b/third_party/googleapis/google/devtools/cloudtrace/artman_cloudtrace_v1.yaml deleted file mode 100644 index d607933df..000000000 --- a/third_party/googleapis/google/devtools/cloudtrace/artman_cloudtrace_v1.yaml +++ /dev/null @@ -1,35 +0,0 @@ -common: - api_name: trace - api_version: v1 - organization_name: google-cloud - proto_deps: - - name: google-common-protos - src_proto_paths: - - v1 - service_yaml: v1/cloudtrace_v1.yaml - gapic_yaml: v1/cloudtrace_gapic.yaml - proto_package: google.devtools.cloudtrace.v1 -artifacts: -- name: gapic_config - type: GAPIC_CONFIG -- name: java_gapic - type: GAPIC - language: JAVA -- name: python_gapic - type: GAPIC - language: PYTHON -- name: nodejs_gapic - type: GAPIC - language: NODEJS -- name: php_gapic - type: GAPIC - language: PHP -- name: go_gapic - type: GAPIC - language: GO -- name: ruby_gapic - type: GAPIC - language: RUBY -- name: csharp_gapic - type: GAPIC - language: CSHARP diff --git a/third_party/googleapis/google/devtools/cloudtrace/artman_cloudtrace_v2.yaml b/third_party/googleapis/google/devtools/cloudtrace/artman_cloudtrace_v2.yaml deleted file mode 100644 index c58bf9ee4..000000000 --- a/third_party/googleapis/google/devtools/cloudtrace/artman_cloudtrace_v2.yaml +++ /dev/null @@ -1,35 +0,0 @@ -common: - api_name: trace - api_version: v2 - organization_name: google-cloud - proto_deps: - - name: google-common-protos - src_proto_paths: - - v2 - service_yaml: v2/cloudtrace_v2.yaml - gapic_yaml: v2/cloudtrace_gapic.yaml - proto_package: google.devtools.cloudtrace.v2 -artifacts: -- name: gapic_config - type: GAPIC_CONFIG -- name: java_gapic - type: GAPIC - language: JAVA -- name: python_gapic - type: GAPIC - language: PYTHON -- name: nodejs_gapic - type: GAPIC - language: NODEJS -- name: php_gapic - type: GAPIC - language: PHP -- name: go_gapic - type: GAPIC - language: GO -- name: ruby_gapic - type: GAPIC - language: RUBY -- name: csharp_gapic - type: GAPIC - language: CSHARP diff --git a/third_party/googleapis/google/devtools/cloudtrace/v1/BUILD.bazel b/third_party/googleapis/google/devtools/cloudtrace/v1/BUILD.bazel index f19412d0b..9e61e61a7 100644 --- a/third_party/googleapis/google/devtools/cloudtrace/v1/BUILD.bazel +++ b/third_party/googleapis/google/devtools/cloudtrace/v1/BUILD.bazel @@ -66,11 +66,9 @@ java_grpc_library( java_gapic_library( name = "cloudtrace_java_gapic", - src = ":cloudtrace_proto_with_info", + srcs = [":cloudtrace_proto_with_info"], gapic_yaml = "cloudtrace_gapic.yaml", grpc_service_config = "cloudtrace_grpc_service_config.json", - package = "google.devtools.cloudtrace.v1", - service_yaml = "cloudtrace_v1.yaml", test_deps = [ ":cloudtrace_java_grpc", ], @@ -152,49 +150,14 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "cloudtrace_moved_proto", - srcs = [":cloudtrace_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:resource_proto", - "@com_google_protobuf//:empty_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -py_proto_library( - name = "cloudtrace_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":cloudtrace_moved_proto"], -) - -py_grpc_library( - name = "cloudtrace_py_grpc", - srcs = [":cloudtrace_moved_proto"], - deps = [":cloudtrace_py_proto"], ) py_gapic_library( name = "cloudtrace_py_gapic", - src = ":cloudtrace_proto_with_info", - gapic_yaml = "cloudtrace_gapic.yaml", + srcs = [":cloudtrace_proto"], grpc_service_config = "cloudtrace_grpc_service_config.json", - package = "google.devtools.cloudtrace.v1", - service_yaml = "cloudtrace_v1.yaml", - deps = [ - ":cloudtrace_py_grpc", - ":cloudtrace_py_proto", - ], ) # Open Source Packages @@ -202,8 +165,6 @@ py_gapic_assembly_pkg( name = "devtools-cloudtrace-v1-py", deps = [ ":cloudtrace_py_gapic", - ":cloudtrace_py_grpc", - ":cloudtrace_py_proto", ], ) @@ -264,6 +225,7 @@ load( nodejs_gapic_library( name = "cloudtrace_nodejs_gapic", src = ":cloudtrace_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "cloudtrace_grpc_service_config.json", package = "google.devtools.cloudtrace.v1", service_yaml = "cloudtrace_v1.yaml", @@ -284,7 +246,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -300,13 +262,19 @@ ruby_grpc_library( deps = [":cloudtrace_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "cloudtrace_ruby_gapic", - src = ":cloudtrace_proto_with_info", - gapic_yaml = "cloudtrace_gapic.yaml", + srcs = [":cloudtrace_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-trace-v1", + "ruby-cloud-env-prefix=TRACE", + "ruby-cloud-product-url=https://cloud.google.com/trace", + "ruby-cloud-api-id=cloudtrace.googleapis.com", + "ruby-cloud-api-shortname=cloudtrace", + ], grpc_service_config = "cloudtrace_grpc_service_config.json", - package = "google.devtools.cloudtrace.v1", - service_yaml = "cloudtrace_v1.yaml", + ruby_cloud_description = "The Cloud Trace API lets you send and retrieve latency data to and from Cloud Trace. This API provides low-level interfaces for interacting directly with the feature. For some languages, you can use OpenCensus, a set of open source tracing and stats instrumentation libraries that work with multiple backends.", + ruby_cloud_title = "Cloud Trace V1", deps = [ ":cloudtrace_ruby_grpc", ":cloudtrace_ruby_proto", @@ -348,8 +316,8 @@ csharp_grpc_library( csharp_gapic_library( name = "cloudtrace_csharp_gapic", srcs = [":cloudtrace_proto_with_info"], - grpc_service_config = "cloudtrace_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "cloudtrace_grpc_service_config.json", deps = [ ":cloudtrace_csharp_grpc", ":cloudtrace_csharp_proto", @@ -387,4 +355,3 @@ cc_grpc_library( grpc_only = True, deps = [":cloudtrace_cc_proto"], ) - diff --git a/third_party/googleapis/google/devtools/cloudtrace/v1/cloudtrace_gapic.legacy.yaml b/third_party/googleapis/google/devtools/cloudtrace/v1/cloudtrace_gapic.legacy.yaml deleted file mode 100644 index df4df5eb4..000000000 --- a/third_party/googleapis/google/devtools/cloudtrace/v1/cloudtrace_gapic.legacy.yaml +++ /dev/null @@ -1,84 +0,0 @@ -type: com.google.api.codegen.ConfigProto -config_schema_version: 1.0.0 -language_settings: - java: - package_name: com.google.cloud.trace.v1 - python: - package_name: google.cloud.trace_v1.gapic - ruby: - package_name: Google::Cloud::Trace::V1 - php: - package_name: Google\Cloud\Trace\V1 - nodejs: - package_name: trace.v1 - domain_layer_location: google-cloud - go: - package_name: cloud.google.com/go/trace/apiv1 - domain_layer_location: cloud.google.com/go/trace - csharp: - package_name: Google.Cloud.Trace.V1 - release_level: GA -interfaces: -- name: google.devtools.cloudtrace.v1.TraceService - smoke_test: - method: ListTraces - init_fields: - - project_id=$PROJECT_ID - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.2 - max_retry_delay_millis: 1000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1.5 - max_rpc_timeout_millis: 30000 - total_timeout_millis: 45000 - methods: - - name: PatchTraces - flattening: - groups: - - parameters: - - project_id - - traces - required_fields: - - project_id - - traces - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 30000 - - name: GetTrace - flattening: - groups: - - parameters: - - project_id - - trace_id - required_fields: - - project_id - - trace_id - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 30000 - - name: ListTraces - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: traces - flattening: - groups: - - parameters: - - project_id - required_fields: - - project_id - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 30000 diff --git a/third_party/googleapis/google/devtools/cloudtrace/v2/BUILD.bazel b/third_party/googleapis/google/devtools/cloudtrace/v2/BUILD.bazel index 655b5352a..ade267214 100644 --- a/third_party/googleapis/google/devtools/cloudtrace/v2/BUILD.bazel +++ b/third_party/googleapis/google/devtools/cloudtrace/v2/BUILD.bazel @@ -70,11 +70,9 @@ java_grpc_library( java_gapic_library( name = "cloudtrace_java_gapic", - src = ":cloudtrace_proto_with_info", + srcs = [":cloudtrace_proto_with_info"], gapic_yaml = "cloudtrace_gapic.yaml", grpc_service_config = "cloudtrace_grpc_service_config.json", - package = "google.devtools.cloudtrace.v2", - service_yaml = "cloudtrace_v2.yaml", test_deps = [ ":cloudtrace_java_grpc", ], @@ -157,52 +155,14 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "cloudtrace_moved_proto", - srcs = [":cloudtrace_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:resource_proto", - "//google/rpc:status_proto", - "@com_google_protobuf//:empty_proto", - "@com_google_protobuf//:field_mask_proto", - "@com_google_protobuf//:timestamp_proto", - "@com_google_protobuf//:wrappers_proto", - ], -) - -py_proto_library( - name = "cloudtrace_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":cloudtrace_moved_proto"], -) - -py_grpc_library( - name = "cloudtrace_py_grpc", - srcs = [":cloudtrace_moved_proto"], - deps = [":cloudtrace_py_proto"], ) py_gapic_library( name = "cloudtrace_py_gapic", - src = ":cloudtrace_proto_with_info", - gapic_yaml = "cloudtrace_gapic.yaml", + srcs = [":cloudtrace_proto"], grpc_service_config = "cloudtrace_grpc_service_config.json", - package = "google.devtools.cloudtrace.v2", - service_yaml = "cloudtrace_v2.yaml", - deps = [ - ":cloudtrace_py_grpc", - ":cloudtrace_py_proto", - ], ) # Open Source Packages @@ -210,8 +170,6 @@ py_gapic_assembly_pkg( name = "devtools-cloudtrace-v2-py", deps = [ ":cloudtrace_py_gapic", - ":cloudtrace_py_grpc", - ":cloudtrace_py_proto", ], ) @@ -272,6 +230,7 @@ load( nodejs_gapic_library( name = "cloudtrace_nodejs_gapic", src = ":cloudtrace_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "cloudtrace_grpc_service_config.json", package = "google.devtools.cloudtrace.v2", service_yaml = "cloudtrace_v2.yaml", @@ -292,7 +251,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -308,13 +267,19 @@ ruby_grpc_library( deps = [":cloudtrace_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "cloudtrace_ruby_gapic", - src = ":cloudtrace_proto_with_info", - gapic_yaml = "cloudtrace_gapic.yaml", + srcs = [":cloudtrace_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-trace-v2", + "ruby-cloud-env-prefix=TRACE", + "ruby-cloud-product-url=https://cloud.google.com/trace", + "ruby-cloud-api-id=cloudtrace.googleapis.com", + "ruby-cloud-api-shortname=cloudtrace", + ], grpc_service_config = "cloudtrace_grpc_service_config.json", - package = "google.devtools.cloudtrace.v2", - service_yaml = "cloudtrace_v2.yaml", + ruby_cloud_description = "The Cloud Trace API lets you send and retrieve latency data to and from Cloud Trace. This API provides low-level interfaces for interacting directly with the feature. For some languages, you can use OpenCensus, a set of open source tracing and stats instrumentation libraries that work with multiple backends.", + ruby_cloud_title = "Cloud Trace V2", deps = [ ":cloudtrace_ruby_grpc", ":cloudtrace_ruby_proto", @@ -356,8 +321,8 @@ csharp_grpc_library( csharp_gapic_library( name = "cloudtrace_csharp_gapic", srcs = [":cloudtrace_proto_with_info"], - grpc_service_config = "cloudtrace_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "cloudtrace_grpc_service_config.json", deps = [ ":cloudtrace_csharp_grpc", ":cloudtrace_csharp_proto", diff --git a/third_party/googleapis/google/devtools/cloudtrace/v2/cloudtrace_gapic.legacy.yaml b/third_party/googleapis/google/devtools/cloudtrace/v2/cloudtrace_gapic.legacy.yaml deleted file mode 100644 index e910ce446..000000000 --- a/third_party/googleapis/google/devtools/cloudtrace/v2/cloudtrace_gapic.legacy.yaml +++ /dev/null @@ -1,141 +0,0 @@ -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.trace.v2 - python: - package_name: google.cloud.trace_v2.gapic - ruby: - package_name: Google::Cloud::Trace::V2 - release_level: BETA - php: - package_name: Google\Cloud\Trace\V2 - nodejs: - package_name: trace.v2 - domain_layer_location: google-cloud - go: - package_name: cloud.google.com/go/trace/apiv2 - csharp: - package_name: Google.Cloud.Trace.V2 -# A list of API interface configurations. -interfaces: -- name: google.devtools.cloudtrace.v2.TraceService - # 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: - - name_pattern: projects/{project} - entity_name: project - language_overrides: - - language: csharp - common_resource_name: Google.Api.Gax.ResourceNames.ProjectName - - name_pattern: projects/{project}/traces/{trace}/spans/{span} - entity_name: span - # Definition for smoke test. - smoke_test: - method: BatchWriteSpans - init_fields: - - name%project=$PROJECT_ID - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.2 - max_retry_delay_millis: 1000 - initial_rpc_timeout_millis: 30000 - rpc_timeout_multiplier: 1.5 - max_rpc_timeout_millis: 60000 - total_timeout_millis: 120000 - - # 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. - # - # 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: BatchWriteSpans - flattening: - groups: - - parameters: - - name - - spans - required_fields: - - name - - spans - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: project - timeout_millis: 30000 - resource_name_treatment: STATIC_TYPES - - name: CreateSpan - required_fields: - - name - - span_id - - display_name - - start_time - - end_time - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: span - timeout_millis: 30000 - resource_name_treatment: STATIC_TYPES -resource_name_generation: -- message_name: BatchWriteSpansRequest - field_entity_map: - name: project -- message_name: Span - field_entity_map: - name: span diff --git a/third_party/googleapis/google/devtools/containeranalysis/artman_containeranalysis_v1.yaml b/third_party/googleapis/google/devtools/containeranalysis/artman_containeranalysis_v1.yaml deleted file mode 100644 index 1b24b227d..000000000 --- a/third_party/googleapis/google/devtools/containeranalysis/artman_containeranalysis_v1.yaml +++ /dev/null @@ -1,57 +0,0 @@ -common: - api_name: containeranalysis - api_version: v1 - organization_name: google-cloud - proto_deps: - - name: google-common-protos - - name: google-iam-v1 - src_proto_paths: - - v1 - service_yaml: v1/containeranalysis_v1.yaml - gapic_yaml: v1/containeranalysis_gapic.yaml - proto_package: google.devtools.containeranalysis.v1 -artifacts: -- name: gapic_config - type: GAPIC_CONFIG -- name: java_gapic - type: GAPIC - language: JAVA - publish_targets: - - name: staging - type: GITHUB - location: git@github.com:googleapis/api-client-staging.git - directory_mappings: - - dest: generated/java/gapic-google-cloud-containeranalysis-v1 - - name: grpc - dest: generated/java/grpc-google-cloud-containeranalysis-v1 - - name: proto - dest: generated/java/proto-google-cloud-containeranalysis-v1 - - name: java - type: GITHUB - location: git@github.com:GoogleCloudPlatform/google-cloud-java.git - directory_mappings: - - dest: google-cloud-containeranalysis -- name: python_gapic - type: GAPIC - language: PYTHON -- name: nodejs_gapic - type: GAPIC - language: NODEJS -- name: php_gapic - type: GAPIC - language: PHP - publish_targets: - - name: staging - type: GITHUB - location: git@github.com:googleapis/api-client-staging.git - directory_mappings: - - dest: generated/php/google-cloud-containeranalysis-v1 -- name: go_gapic - type: GAPIC - language: GO -- name: ruby_gapic - type: GAPIC - language: RUBY -- name: csharp_gapic - type: GAPIC - language: CSHARP diff --git a/third_party/googleapis/google/devtools/containeranalysis/artman_containeranalysis_v1beta1.yaml b/third_party/googleapis/google/devtools/containeranalysis/artman_containeranalysis_v1beta1.yaml deleted file mode 100644 index e7e57449f..000000000 --- a/third_party/googleapis/google/devtools/containeranalysis/artman_containeranalysis_v1beta1.yaml +++ /dev/null @@ -1,56 +0,0 @@ -common: - api_name: containeranalysis - api_version: v1beta1 - organization_name: google-cloud - proto_deps: - - name: google-common-protos - - name: google-iam-v1 - src_proto_paths: - - v1beta1 - service_yaml: containeranalysis_v1beta1.yaml - gapic_yaml: v1beta1/containeranalysis_gapic.yaml -artifacts: -- name: gapic_config - type: GAPIC_CONFIG -- name: java_gapic - type: GAPIC - language: JAVA - publish_targets: - - name: staging - type: GITHUB - location: git@github.com:googleapis/api-client-staging.git - directory_mappings: - - dest: generated/java/gapic-google-cloud-containeranalysis-v1beta1 - - name: grpc - dest: generated/java/grpc-google-cloud-containeranalysis-v1beta1 - - name: proto - dest: generated/java/proto-google-cloud-containeranalysis-v1beta1 - - name: java - type: GITHUB - location: git@github.com:GoogleCloudPlatform/google-cloud-java.git - directory_mappings: - - dest: google-cloud-containeranalysis -- name: python_gapic - type: GAPIC - language: PYTHON -- name: nodejs_gapic - type: GAPIC - language: NODEJS -- name: php_gapic - type: GAPIC - language: PHP - publish_targets: - - name: staging - type: GITHUB - location: git@github.com:googleapis/api-client-staging.git - directory_mappings: - - dest: generated/php/google-cloud-containeranalysis-v1beta1 -- name: go_gapic - type: GAPIC - language: GO -- name: ruby_gapic - type: GAPIC - language: RUBY -- name: csharp_gapic - type: GAPIC - language: CSHARP diff --git a/third_party/googleapis/google/devtools/containeranalysis/v1/BUILD.bazel b/third_party/googleapis/google/devtools/containeranalysis/v1/BUILD.bazel index 46b975733..bb1391861 100644 --- a/third_party/googleapis/google/devtools/containeranalysis/v1/BUILD.bazel +++ b/third_party/googleapis/google/devtools/containeranalysis/v1/BUILD.bazel @@ -18,9 +18,9 @@ proto_library( "//google/api:annotations_proto", "//google/api:client_proto", "//google/api:field_behavior_proto", + "//google/api:resource_proto", "//google/iam/v1:iam_policy_proto", "//google/iam/v1:policy_proto", - "//google/api:resource_proto", "//grafeas/v1:grafeas_proto", "@com_google_protobuf//:timestamp_proto", ], @@ -34,6 +34,18 @@ proto_library_with_info( ], ) +## DO NOT REMOVE +## Node.js library must be built based on both ContainerAnalysis v1 and +## Grafeas v1 protos. +proto_library_with_info( + name = "containeranalysis_grafeas_proto_with_info", + deps = [ + ":containeranalysis_proto", + "//google/cloud:common_resources_proto", + "//grafeas/v1:grafeas_proto", + ], +) + ############################################################################## # Java ############################################################################## @@ -59,11 +71,9 @@ java_grpc_library( java_gapic_library( name = "containeranalysis_java_gapic", - src = ":containeranalysis_proto_with_info", + srcs = [":containeranalysis_proto_with_info"], gapic_yaml = "containeranalysis_gapic.yaml", grpc_service_config = "containeranalysis_grpc_service_config.json", - package = "google.devtools.containeranalysis.v1", - service_yaml = "containeranalysis_v1.yaml", test_deps = [ ":containeranalysis_java_grpc", "//google/iam/v1:iam_java_grpc", @@ -151,12 +161,10 @@ go_proto_library( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -231,7 +239,9 @@ load( nodejs_gapic_library( name = "containeranalysis_nodejs_gapic", package_name = "@google-cloud/containeranalysis", - src = ":containeranalysis_proto_with_info", + ## DO NOT CHANGE: src must point to a combined proto target + src = ":containeranalysis_grafeas_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "containeranalysis_grpc_service_config.json", main_service = "containeranalysis", package = "google.devtools.containeranalysis.v1", @@ -244,6 +254,8 @@ nodejs_gapic_assembly_pkg( deps = [ ":containeranalysis_nodejs_gapic", ":containeranalysis_proto", + ## DO NOT CHANGE: must include Grafeas protos + "//grafeas/v1:grafeas_proto", ], ) @@ -253,7 +265,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -269,12 +281,20 @@ ruby_grpc_library( deps = [":containeranalysis_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "containeranalysis_ruby_gapic", - src = ":containeranalysis_proto_with_info", - gapic_yaml = "containeranalysis_gapic.yaml", - package = "google.devtools.containeranalysis.v1", - service_yaml = "containeranalysis_v1.yaml", + srcs = [":containeranalysis_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-container_analysis-v1", + "ruby-cloud-env-prefix=CONTAINER_ANALYSIS", + "ruby-cloud-product-url=https://cloud.google.com/container-registry/docs/container-analysis", + "ruby-cloud-api-id=containeranalysis.googleapis.com", + "ruby-cloud-api-shortname=containeranalysis", + "ruby-cloud-extra-dependencies=grafeas-v1=~> 0.0", + ], + grpc_service_config = "containeranalysis_grpc_service_config.json", + ruby_cloud_description = "The Container Analysis API is an implementation of Grafeas. It stores, and enables querying and retrieval of, critical metadata about all of your software artifacts.", + ruby_cloud_title = "Container Analysis V1", deps = [ ":containeranalysis_ruby_grpc", ":containeranalysis_ruby_proto", @@ -316,8 +336,8 @@ csharp_grpc_library( csharp_gapic_library( name = "containeranalysis_csharp_gapic", srcs = [":containeranalysis_proto_with_info"], - grpc_service_config = "containeranalysis_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "containeranalysis_grpc_service_config.json", deps = [ ":containeranalysis_csharp_grpc", ":containeranalysis_csharp_proto", diff --git a/third_party/googleapis/google/devtools/containeranalysis/v1/containeranalysis_gapic.legacy.yaml b/third_party/googleapis/google/devtools/containeranalysis/v1/containeranalysis_gapic.legacy.yaml deleted file mode 100644 index bed399c30..000000000 --- a/third_party/googleapis/google/devtools/containeranalysis/v1/containeranalysis_gapic.legacy.yaml +++ /dev/null @@ -1,181 +0,0 @@ -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.devtools.containeranalysis.v1 - python: - package_name: google.cloud.devtools.containeranalysis_v1.gapic - go: - package_name: cloud.google.com/go/containeranalysis/apiv1 - release_level: BETA - csharp: - package_name: Google.Cloud.DevTools.ContainerAnalysis.V1 - ruby: - package_name: Google::Cloud::ContainerAnalysis::V1 - php: - package_name: Google\Cloud\Devtools\Containeranalysis\V1 - nodejs: - package_name: containeranalysis.v1 - domain_layer_location: google-cloud -# 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: -- name_pattern: projects/{project} - entity_name: project - language_overrides: - - language: csharp - common_resource_name: Grafeas.V1.ProjectName -- name_pattern: projects/{project}/notes/{note} - entity_name: note - language_overrides: - - language: csharp - common_resource_name: Grafeas.V1.NoteName -- name_pattern: projects/{project}/occurrences/{occurrence} - entity_name: occurrence - language_overrides: - - language: csharp - common_resource_name: Grafeas.V1.OccurrenceName -collection_oneofs: -- oneof_name: iam_resource_oneof - collection_names: - - note - - occurrence -# A list of API interface configurations. -interfaces: -# The fully qualified name of the API interface. -- name: google.devtools.containeranalysis.v1.ContainerAnalysis - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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: SetIamPolicy - flattening: - groups: - - parameters: - - resource - - policy - required_fields: - - resource - - policy - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - resource: iam_resource_oneof - timeout_millis: 30000 - - name: GetIamPolicy - flattening: - groups: - - parameters: - - resource - required_fields: - - resource - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - resource: iam_resource_oneof - timeout_millis: 30000 - - name: TestIamPermissions - flattening: - groups: - - parameters: - - resource - - permissions - required_fields: - - resource - - permissions - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - resource: iam_resource_oneof - timeout_millis: 30000 -resource_name_generation: -- message_name: google.iam.v1.SetIamPolicyRequest - field_entity_map: - resource: '*' -- message_name: google.iam.v1.GetIamPolicyRequest - field_entity_map: - resource: '*' -- message_name: google.iam.v1.TestIamPermissionsRequest - field_entity_map: - resource: '*' diff --git a/third_party/googleapis/google/devtools/containeranalysis/v1beta1/BUILD.bazel b/third_party/googleapis/google/devtools/containeranalysis/v1beta1/BUILD.bazel index 795cadc5c..b5899bf6e 100644 --- a/third_party/googleapis/google/devtools/containeranalysis/v1beta1/BUILD.bazel +++ b/third_party/googleapis/google/devtools/containeranalysis/v1beta1/BUILD.bazel @@ -12,6 +12,7 @@ _PROTO_SUBPACKAGE_DEPS = [ "//google/devtools/containeranalysis/v1beta1/attestation:attestation_proto", "//google/devtools/containeranalysis/v1beta1/build:build_proto", "//google/devtools/containeranalysis/v1beta1/common:common_proto", + "//google/devtools/containeranalysis/v1beta1/cvss:cvss_proto", "//google/devtools/containeranalysis/v1beta1/deployment:deployment_proto", "//google/devtools/containeranalysis/v1beta1/discovery:discovery_proto", "//google/devtools/containeranalysis/v1beta1/grafeas:grafeas_proto", @@ -46,8 +47,6 @@ proto_library_with_info( ] + _PROTO_SUBPACKAGE_DEPS, ) -"//google/devtools/containeranalysis/v1beta1/attestation:_proto" - ############################################################################## # Java ############################################################################## @@ -101,9 +100,9 @@ java_grpc_library( java_gapic_library( name = "containeranalysis_java_gapic", - src = ":containeranalysis_proto_with_info", + srcs = [":containeranalysis_proto_with_info"], + grpc_service_config = "containeranalysis_grpc_service_config.json", gapic_yaml = "containeranalysis_gapic.yaml", - service_yaml = "//google/devtools/containeranalysis:containeranalysis_v1beta1.yaml", test_deps = [ ":containeranalysis_java_grpc", ] + _JAVA_GRPC_SUBPACKAGE_DEPS, @@ -219,6 +218,7 @@ nodejs_gapic_library( name = "containeranalysis_nodejs_gapic", package_name = "@google-cloud/containeranalysis", src = ":containeranalysis_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "containeranalysis_grpc_service_config.json", main_service = "containeranalysis", package = "google.devtools.containeranalysis.v1beta1", @@ -231,5 +231,5 @@ nodejs_gapic_assembly_pkg( deps = [ ":containeranalysis_nodejs_gapic", ":containeranalysis_proto", - ], + ] + _PROTO_SUBPACKAGE_DEPS, ) diff --git a/third_party/googleapis/google/devtools/remoteworkers/v1test2/BUILD.bazel b/third_party/googleapis/google/devtools/remoteworkers/v1test2/BUILD.bazel index 8a62b4a2b..f0eb9fd0d 100644 --- a/third_party/googleapis/google/devtools/remoteworkers/v1test2/BUILD.bazel +++ b/third_party/googleapis/google/devtools/remoteworkers/v1test2/BUILD.bazel @@ -1,4 +1,13 @@ # This file was automatically generated by BuildFileGenerator +# https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/bazel + +# Most of the manual changes to this file will be overwritten. +# It's **only** allowed to change the following rule attribute values: +# - names of *_gapic_assembly_* rules +# - certain parameters of *_gapic_library rules, including but not limited to: +# * extra_protoc_parameters +# * extra_protoc_file_parameters +# The complete list of preserved parameters can be found in the source code. # This is an API workspace, having public visibility by default makes perfect sense. package(default_visibility = ["//visibility:public"]) @@ -62,11 +71,9 @@ java_grpc_library( java_gapic_library( name = "remoteworkers_java_gapic", - src = ":remoteworkers_proto_with_info", + srcs = [":remoteworkers_proto_with_info"], gapic_yaml = "remoteworkers_gapic.yaml", grpc_service_config = "remoteworkers_grpc_service_config.json", - package = "google.devtools.remoteworkers.v1test2", - service_yaml = "remoteworkers.yaml", test_deps = [ ":remoteworkers_java_grpc", ], @@ -121,7 +128,7 @@ go_gapic_library( srcs = [":remoteworkers_proto_with_info"], grpc_service_config = "remoteworkers_grpc_service_config.json", importpath = "cloud.google.com/go/devtools/remoteworkers/apiv1test2;remoteworkers", - service_yaml = "remoteworkers.yaml", + service_yaml = "remoteworkers_v1beta2.yaml", deps = [ ":remoteworkers_go_proto", "@io_bazel_rules_go//proto/wkt:duration_go_proto", @@ -150,52 +157,14 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "remoteworkers_moved_proto", - srcs = [":remoteworkers_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:resource_proto", - "//google/rpc:status_proto", - "@com_google_protobuf//:any_proto", - "@com_google_protobuf//:duration_proto", - "@com_google_protobuf//:field_mask_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -py_proto_library( - name = "remoteworkers_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":remoteworkers_moved_proto"], -) - -py_grpc_library( - name = "remoteworkers_py_grpc", - srcs = [":remoteworkers_moved_proto"], - deps = [":remoteworkers_py_proto"], ) py_gapic_library( name = "remoteworkers_py_gapic", - src = ":remoteworkers_proto_with_info", - gapic_yaml = "remoteworkers_gapic.yaml", + srcs = [":remoteworkers_proto"], grpc_service_config = "remoteworkers_grpc_service_config.json", - package = "google.devtools.remoteworkers.v1test2", - service_yaml = "remoteworkers.yaml", - deps = [ - ":remoteworkers_py_grpc", - ":remoteworkers_py_proto", - ], ) # Open Source Packages @@ -203,8 +172,6 @@ py_gapic_assembly_pkg( name = "devtools-remoteworkers-v1test2-py", deps = [ ":remoteworkers_py_gapic", - ":remoteworkers_py_grpc", - ":remoteworkers_py_proto", ], ) @@ -236,7 +203,7 @@ php_gapic_library( gapic_yaml = "remoteworkers_gapic.yaml", grpc_service_config = "remoteworkers_grpc_service_config.json", package = "google.devtools.remoteworkers.v1test2", - service_yaml = "remoteworkers.yaml", + service_yaml = "remoteworkers_v1beta2.yaml", deps = [ ":remoteworkers_php_grpc", ":remoteworkers_php_proto", @@ -265,9 +232,10 @@ load( nodejs_gapic_library( name = "remoteworkers_nodejs_gapic", src = ":remoteworkers_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "remoteworkers_grpc_service_config.json", package = "google.devtools.remoteworkers.v1test2", - service_yaml = "remoteworkers.yaml", + service_yaml = "remoteworkers_v1beta2.yaml", deps = [], ) @@ -306,7 +274,7 @@ ruby_gapic_library( src = ":remoteworkers_proto_with_info", gapic_yaml = "remoteworkers_gapic.yaml", package = "google.devtools.remoteworkers.v1test2", - service_yaml = "remoteworkers.yaml", + service_yaml = "remoteworkers_v1beta2.yaml", deps = [ ":remoteworkers_ruby_grpc", ":remoteworkers_ruby_proto", @@ -348,8 +316,8 @@ csharp_grpc_library( csharp_gapic_library( name = "remoteworkers_csharp_gapic", srcs = [":remoteworkers_proto_with_info"], - grpc_service_config = "remoteworkers_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "remoteworkers_grpc_service_config.json", deps = [ ":remoteworkers_csharp_grpc", ":remoteworkers_csharp_proto", diff --git a/third_party/googleapis/google/devtools/remoteworkers/v1test2/remoteworkers.yaml b/third_party/googleapis/google/devtools/remoteworkers/v1test2/remoteworkers.yaml deleted file mode 100644 index 600e2f82a..000000000 --- a/third_party/googleapis/google/devtools/remoteworkers/v1test2/remoteworkers.yaml +++ /dev/null @@ -1,17 +0,0 @@ -type: google.api.Service -config_version: 3 -name: remoteworkers.googleapis.com -title: Remote Workers API - -apis: -- name: google.devtools.remoteworkers.v1test2.Bots - -types: -- name: google.devtools.remoteworkers.v1test2.AdminTemp -- name: google.devtools.remoteworkers.v1test2.CommandOutputs -- name: google.devtools.remoteworkers.v1test2.CommandOverhead -- name: google.devtools.remoteworkers.v1test2.CommandResult -- name: google.devtools.remoteworkers.v1test2.CommandTask -- name: google.devtools.remoteworkers.v1test2.Directory -- name: google.devtools.remoteworkers.v1test2.DirectoryMetadata -- name: google.devtools.remoteworkers.v1test2.FileMetadata diff --git a/third_party/googleapis/google/devtools/remoteworkers/v1test2/remoteworkers_gapic.legacy.yaml b/third_party/googleapis/google/devtools/remoteworkers/v1test2/remoteworkers_gapic.legacy.yaml deleted file mode 100644 index 0fc65c9e5..000000000 --- a/third_party/googleapis/google/devtools/remoteworkers/v1test2/remoteworkers_gapic.legacy.yaml +++ /dev/null @@ -1,137 +0,0 @@ -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.devtools.remoteworkers.v1test2 - python: - package_name: google.cloud.devtools.remoteworkers.v1test2.gapic - go: - package_name: cloud.google.com/go/devtools/remoteworkers/apiv1test2 - csharp: - package_name: Google.Devtools.Remoteworkers.V1test2 - ruby: - package_name: Google::Cloud::Devtools::Remoteworkers::V1test2 - php: - package_name: Google\Cloud\Devtools\Remoteworkers\V1test2 - nodejs: - package_name: remoteworkers.v1test2 -# A list of API interface configurations. -interfaces: - # The fully qualified name of the API interface. -- name: google.devtools.remoteworkers.v1test2.Bots - # 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: - - name_pattern: "{unknown_path=**}/botSessions/{bot_session}" - entity_name: bot_session - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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: CreateBotSession - flattening: - groups: - - parameters: - - parent - - bot_session - required_fields: - - parent - - bot_session - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 60000 - - name: UpdateBotSession - flattening: - groups: - - parameters: - - name - - bot_session - - update_mask - required_fields: - - name - - bot_session - - update_mask - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: bot_session - timeout_millis: 60000 - # The fully qualified name of the API interface. diff --git a/third_party/googleapis/google/devtools/remoteworkers/v1test2/remote_workers.yaml b/third_party/googleapis/google/devtools/remoteworkers/v1test2/remoteworkers_v1beta2.yaml similarity index 100% rename from third_party/googleapis/google/devtools/remoteworkers/v1test2/remote_workers.yaml rename to third_party/googleapis/google/devtools/remoteworkers/v1test2/remoteworkers_v1beta2.yaml diff --git a/third_party/googleapis/google/example/endpointsapis/README.md b/third_party/googleapis/google/example/endpointsapis/README.md index ed5f22c93..0b00c5e98 100644 --- a/third_party/googleapis/google/example/endpointsapis/README.md +++ b/third_party/googleapis/google/example/endpointsapis/README.md @@ -1,4 +1,4 @@ -# Service Infrastructure Example API +# Service Infrastructure Codelab This is an example API that demonstrates how to design a networked API following [API Design Guide](https://cloud.google.com/apis/design), implement the API diff --git a/third_party/googleapis/google/example/endpointsapis/goapp/main.go b/third_party/googleapis/google/example/endpointsapis/goapp/main.go index 846035597..3bbc4acf8 100644 --- a/third_party/googleapis/google/example/endpointsapis/goapp/main.go +++ b/third_party/googleapis/google/example/endpointsapis/goapp/main.go @@ -19,15 +19,12 @@ import ( // Check calls Service Control API v2 for admission control. // Name specifies the target resource name. Permission specifies -// the required permission on the target resource. -func check(w http.ResponseWriter, r *http.Request, name string, permission string) (string, error) { - client, err := servicecontrol.NewService(r.Context()) - if err != nil { - return "", err - } +// the required permission on the target resource. Received +// specifies the timestamp when the request is received. +func check(w http.ResponseWriter, r *http.Request, name string, permission string, received time.Time, client *servicecontrol.Service) (string, error) { // Construct CheckRequest from the incoming HTTP request. // The code assumes the incoming request processed by App Engine ingress. - checkRequest := &servicecontrol.CheckRequest{ + req := &servicecontrol.CheckRequest{ ServiceConfigId: "latest", Attributes: &servicecontrol.AttributeContext{ Origin: &servicecontrol.Peer{ @@ -41,7 +38,7 @@ func check(w http.ResponseWriter, r *http.Request, name string, permission strin }, Request: &servicecontrol.Request{ Id: r.Header.Get("x-appengine-request-log-id"), - Time: time.Now().UTC().Format(time.RFC3339), + Time: received.UTC().Format(time.RFC3339), Method: r.Method, Scheme: r.Header.Get("x-forwarded-proto"), Host: r.Host, @@ -53,6 +50,9 @@ func check(w http.ResponseWriter, r *http.Request, name string, permission strin "referer": r.Header.Get("referer"), }, }, + Resource: &servicecontrol.Resource{ + Name: name, + }, }, Resources: []*servicecontrol.ResourceInfo{ { @@ -62,18 +62,64 @@ func check(w http.ResponseWriter, r *http.Request, name string, permission strin }, }, } - response, err := client.Services.Check("endpointsapis.appspot.com", checkRequest).Do() + resp, err := client.Services.Check("endpointsapis.appspot.com", req).Do() if err != nil { return "", err } - responseJSON, err := response.MarshalJSON() + json, err := resp.MarshalJSON() if err != nil { return "", err } - return string(responseJSON), nil + return string(json), nil } -func admission(w http.ResponseWriter, r *http.Request) (string, error) { +// Report calls Service Control API v2 for telemetry reporting. +// Name specifies the target resource name. ResponseCode specifies +// the response code returned to user. Received specifies the +// timestamp when the request is received. +func report(w http.ResponseWriter, r *http.Request, name string, responseCode int64, received time.Time, client *servicecontrol.Service) (string, error) { + // Construct ReportRequest from the incoming HTTP request. + // The code assumes the incoming request processed by App Engine ingress. + req := &servicecontrol.ReportRequest{ + ServiceConfigId: "latest", + Operations: []*servicecontrol.AttributeContext{ + { + Api: &servicecontrol.Api{ + Service: "endpointsapis.appspot.com", + Operation: "google.example.endpointsapis.v1.Workspaces.GetWorkspace", + Version: "v1", + Protocol: r.Header.Get("x-forwarded-proto"), + }, + Request: &servicecontrol.Request{ + Size: r.ContentLength, + Time: received.UTC().Format(time.RFC3339), + }, + Response: &servicecontrol.Response{ + Time: time.Now().UTC().Format(time.RFC3339), + Code: responseCode, + Headers: map[string]string{ + "x-backend-latency": "0.007", + }, + }, + Destination: &servicecontrol.Peer{ + RegionCode: "us-central1", + }, + Resource: &servicecontrol.Resource{ + Name: name, + }, + }, + }, + } + _, err := client.Services.Report("endpointsapis.appspot.com", req).Do() + if err != nil { + return "", err + } + return "{}", nil +} + +// Parse processes the request path and extract the resource name and +// permissions. +func parse(r *http.Request) (string, string, error) { // Split the request path. segments := strings.Split(r.URL.Path, "/") @@ -81,25 +127,45 @@ func admission(w http.ResponseWriter, r *http.Request) (string, error) { // "/v1/projects/*/locations/*/workspaces". They correspond to the // GetWorkspace() and ListWorkspaces() methods defined in ../v1/workspace.proto. if segments[0] != "" || segments[1] != "v1" || segments[2] != "projects" || segments[4] != "locations" || segments[6] != "workspaces" || len(segments) > 8 { - return "", errors.New("Resource '" + r.URL.Path + "' not found.") + return "", "", errors.New("Resource '" + r.URL.Path + "' not found.") } + // Skip prefix "/v1/". resource := r.URL.Path[4:] permission := "endpointsapis.appspot.com/workspaces.list" if len(segments) == 8 { permission = "endpointsapis.appspot.com/workspaces.get" } - return check(w, r, resource, permission) + return resource, permission, nil } func indexHandler(w http.ResponseWriter, r *http.Request) { + received := time.Now() + + // Create a client for Service Control API v2. + client, err := servicecontrol.NewService(r.Context()) + if err != nil { + fmt.Fprintln(w, "Error:") + fmt.Fprintln(w, err.Error()) + return + } + + resource, permission, err := parse(r) + if err != nil { + fmt.Fprintln(w, "Error:") + fmt.Fprintln(w, err.Error()) + return + } + // Perform admission control. - result, err := admission(w, r) + result, err := check(w, r, resource, permission, received, client) + var responseCode int64 = 200 // Print the admission control result. if err != nil { fmt.Fprintln(w, "Error:") fmt.Fprintln(w, err.Error()) + responseCode = 403 } else { fmt.Fprintln(w, "CheckResponse:") fmt.Fprintln(w, result) @@ -116,6 +182,9 @@ func indexHandler(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, "%v: %v\n", key, value) } } + + // Perform telemetry report. + report(w, r, resource, responseCode, received, client) } func main() { diff --git a/third_party/googleapis/google/example/library/BUILD.bazel b/third_party/googleapis/google/example/library/BUILD.bazel index a142b19e4..a87c57fec 100644 --- a/third_party/googleapis/google/example/library/BUILD.bazel +++ b/third_party/googleapis/google/example/library/BUILD.bazel @@ -1,3 +1 @@ exports_files(glob(["*.yaml"])) - - diff --git a/third_party/googleapis/google/example/library/v1/BUILD.bazel b/third_party/googleapis/google/example/library/v1/BUILD.bazel index 094650d60..6908c6f8c 100644 --- a/third_party/googleapis/google/example/library/v1/BUILD.bazel +++ b/third_party/googleapis/google/example/library/v1/BUILD.bazel @@ -1,13 +1,50 @@ # This file was automatically generated by BuildFileGenerator +# https://github.com/googleapis/rules_gapic/tree/master/bazel -# This is an API workspace, having public visibility by default makes perfect sense. -package(default_visibility = ["//visibility:public"]) +# Most of the manual changes to this file will be overwritten. +# It's **only** allowed to change the following rule attribute values: +# - names of *_gapic_assembly_* rules +# - certain parameters of *_gapic_library rules, including but not limited to: +# * extra_protoc_parameters +# * extra_protoc_file_parameters +# The complete list of preserved parameters can be found in the source code. ############################################################################## # Common ############################################################################## load("@rules_proto//proto:defs.bzl", "proto_library") -load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info") +load( + "@com_google_googleapis_imports//:imports.bzl", + "csharp_gapic_assembly_pkg", + "csharp_gapic_library", + "csharp_grpc_library", + "csharp_proto_library", + "go_gapic_assembly_pkg", + "go_gapic_library", + "go_proto_library", + "go_test", + "java_gapic_assembly_gradle_pkg", + "java_gapic_library", + "java_gapic_test", + "java_grpc_library", + "java_proto_library", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", + "php_gapic_assembly_pkg", + "php_gapic_library", + "php_grpc_library", + "php_proto_library", + "proto_library_with_info", + "py_gapic_assembly_pkg", + "py_gapic_library", + "ruby_cloud_gapic_library", + "ruby_gapic_assembly_pkg", + "ruby_grpc_library", + "ruby_proto_library", +) + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) proto_library( name = "library_proto", @@ -20,6 +57,7 @@ proto_library( "//google/api:field_behavior_proto", "//google/api:resource_proto", "@com_google_protobuf//:empty_proto", + "@com_google_protobuf//:field_mask_proto", ], ) @@ -31,18 +69,6 @@ proto_library_with_info( ], ) -############################################################################## -# Java -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "java_gapic_assembly_gradle_pkg", - "java_gapic_library", - "java_gapic_test", - "java_grpc_library", - "java_proto_library", -) - java_proto_library( name = "library_java_proto", deps = [":library_proto"], @@ -56,10 +82,9 @@ java_grpc_library( java_gapic_library( name = "library_java_gapic", - src = ":library_proto_with_info", + srcs = [":library_proto_with_info"], gapic_yaml = "library_example_gapic.yaml", - package = "google.example.library.v1", - service_yaml = "//google/example/library:library_example_v1.yaml", + grpc_service_config = "library_grpc_service_config.json", test_deps = [ ":library_java_grpc", ], @@ -87,17 +112,6 @@ java_gapic_assembly_gradle_pkg( ], ) -############################################################################## -# Go -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "go_gapic_assembly_pkg", - "go_gapic_library", - "go_proto_library", - "go_test", -) - go_proto_library( name = "library_go_proto", compilers = ["@io_bazel_rules_go//proto:go_grpc"], @@ -111,8 +125,9 @@ go_proto_library( go_gapic_library( name = "library_go_gapic", srcs = [":library_proto_with_info"], - grpc_service_config = "", - importpath = "cloud.google.com/go/example/library/apiv1;library", + grpc_service_config = "library_grpc_service_config.json", + importpath = "google.golang.org/google/example/library/v1;library", + metadata = True, service_yaml = "//google/example/library:library_example_v1.yaml", deps = [ ":library_go_proto", @@ -123,7 +138,7 @@ go_test( name = "library_go_gapic_test", srcs = [":library_go_gapic_srcjar_test"], embed = [":library_go_gapic"], - importpath = "cloud.google.com/go/example/library/apiv1", + importpath = "google.golang.org/google/example/library/v1", ) # Open Source Packages @@ -131,57 +146,16 @@ go_gapic_assembly_pkg( name = "gapi-cloud-example-library-v1-go", deps = [ ":library_go_gapic", + ":library_go_gapic_srcjar-metadata.srcjar", ":library_go_gapic_srcjar-test.srcjar", ":library_go_proto", ], ) -############################################################################## -# Python -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", - "py_gapic_assembly_pkg", - "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "library_moved_proto", - srcs = [":library_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:resource_proto", - "@com_google_protobuf//:empty_proto", - ], -) - -py_proto_library( - name = "library_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":library_moved_proto"], -) - -py_grpc_library( - name = "library_py_grpc", - srcs = [":library_moved_proto"], - deps = [":library_py_proto"], -) - py_gapic_library( name = "library_py_gapic", - src = ":library_proto_with_info", - gapic_yaml = "library_example_gapic.yaml", - package = "google.example.library.v1", - service_yaml = "//google/example/library:library_example_v1.yaml", - deps = [ - ":library_py_grpc", - ":library_py_proto", - ], + srcs = [":library_proto"], + grpc_service_config = "library_grpc_service_config.json", ) # Open Source Packages @@ -189,22 +163,9 @@ py_gapic_assembly_pkg( name = "example-library-v1-py", deps = [ ":library_py_gapic", - ":library_py_grpc", - ":library_py_proto", ], ) -############################################################################## -# PHP -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "php_gapic_assembly_pkg", - "php_gapic_library", - "php_grpc_library", - "php_proto_library", -) - php_proto_library( name = "library_php_proto", deps = [":library_proto"], @@ -220,6 +181,7 @@ php_gapic_library( name = "library_php_gapic", src = ":library_proto_with_info", gapic_yaml = "library_example_gapic.yaml", + grpc_service_config = "library_grpc_service_config.json", package = "google.example.library.v1", service_yaml = "//google/example/library:library_example_v1.yaml", deps = [ @@ -238,20 +200,13 @@ php_gapic_assembly_pkg( ], ) -############################################################################## -# Node.js -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "nodejs_gapic_assembly_pkg", - "nodejs_gapic_library", -) - nodejs_gapic_library( name = "library_nodejs_gapic", + package_name = "@google-cloud/library", src = ":library_proto_with_info", - grpc_service_config = None, - package = "google.example.library.v1", + extra_protoc_parameters = ["metadata"], + grpc_service_config = "library_grpc_service_config.json", + package = "google.cloud.example.library.v1", service_yaml = "//google/example/library:library_example_v1.yaml", deps = [], ) @@ -264,17 +219,6 @@ nodejs_gapic_assembly_pkg( ], ) -############################################################################## -# Ruby -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "ruby_gapic_assembly_pkg", - "ruby_gapic_library", - "ruby_grpc_library", - "ruby_proto_library", -) - ruby_proto_library( name = "library_ruby_proto", deps = [":library_proto"], @@ -286,12 +230,20 @@ ruby_grpc_library( deps = [":library_ruby_proto"], ) -ruby_gapic_library( +# Uncomment the following once the space issue has been fixed. +ruby_cloud_gapic_library( name = "library_ruby_gapic", - src = ":library_proto_with_info", - gapic_yaml = "library_example_gapic.yaml", - package = "google.example.library.v1", - service_yaml = "//google/example/library:library_example_v1.yaml", + srcs = [":library_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-example_library-v1", + "ruby-cloud-env-prefix=LIBRARY", + "ruby-cloud-product-url=https://cloud.google.com", + "ruby-cloud-api-id=library-example.googleapis.com", + "ruby-cloud-api-shortname=library", + ], + grpc_service_config = "library_grpc_service_config.json", + ruby_cloud_title = "Example Library V1", + ruby_cloud_description = "This is a Google example service representing a simple digital library. It manages a collection of shelf resources, and each shelf owns a collection of book resources.", deps = [ ":library_ruby_grpc", ":library_ruby_proto", @@ -308,17 +260,6 @@ ruby_gapic_assembly_pkg( ], ) -############################################################################## -# C# -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "csharp_gapic_assembly_pkg", - "csharp_gapic_library", - "csharp_grpc_library", - "csharp_proto_library", -) - csharp_proto_library( name = "library_csharp_proto", deps = [":library_proto"], @@ -330,26 +271,26 @@ csharp_grpc_library( deps = [":library_csharp_proto"], ) -# Invalid resource-reference, cannot build. -# csharp_gapic_library( -# name = "library_csharp_gapic", -# srcs = [":library_proto_with_info"], -# common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", -# deps = [ -# ":library_csharp_grpc", -# ":library_csharp_proto", -# ], -# ) +csharp_gapic_library( + name = "library_csharp_gapic", + srcs = [":library_proto_with_info"], + common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "library_grpc_service_config.json", + deps = [ + ":library_csharp_grpc", + ":library_csharp_proto", + ], +) -# # Open Source Packages -# csharp_gapic_assembly_pkg( -# name = "google-cloud-example-library-v1-csharp", -# deps = [ -# ":library_csharp_gapic", -# ":library_csharp_grpc", -# ":library_csharp_proto", -# ], -# ) +# Open Source Packages +csharp_gapic_assembly_pkg( + name = "google-cloud-example-library-v1-csharp", + deps = [ + ":library_csharp_gapic", + ":library_csharp_grpc", + ":library_csharp_proto", + ], +) ############################################################################## # C++ diff --git a/third_party/googleapis/google/example/library/v1/library.proto b/third_party/googleapis/google/example/library/v1/library.proto index 80912cf64..e5a481f06 100644 --- a/third_party/googleapis/google/example/library/v1/library.proto +++ b/third_party/googleapis/google/example/library/v1/library.proto @@ -22,6 +22,7 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; option go_package = "google.golang.org/genproto/googleapis/example/library/v1;library"; option java_multiple_files = true; @@ -85,16 +86,16 @@ service LibraryService { post: "/v1/{name=shelves/*}:merge" body: "*" }; - option (google.api.method_signature) = "name,other_shelf_name"; + option (google.api.method_signature) = "name,other_shelf"; } // Creates a book, and returns the new Book. rpc CreateBook(CreateBookRequest) returns (Book) { option (google.api.http) = { - post: "/v1/{name=shelves/*}/books" + post: "/v1/{parent=shelves/*}/books" body: "book" }; - option (google.api.method_signature) = "name,book"; + option (google.api.method_signature) = "parent,book"; } // Gets a book. Returns NOT_FOUND if the book does not exist. @@ -110,9 +111,9 @@ service LibraryService { // Returns NOT_FOUND if the shelf does not exist. rpc ListBooks(ListBooksRequest) returns (ListBooksResponse) { option (google.api.http) = { - get: "/v1/{name=shelves/*}/books" + get: "/v1/{parent=shelves/*}/books" }; - option (google.api.method_signature) = "name"; + option (google.api.method_signature) = "parent"; } // Deletes a book. Returns NOT_FOUND if the book does not exist. @@ -120,16 +121,17 @@ service LibraryService { option (google.api.http) = { delete: "/v1/{name=shelves/*/books/*}" }; + option (google.api.method_signature) = "name"; } // Updates a book. Returns INVALID_ARGUMENT if the name of the book // is non-empty and does not equal the existing name. rpc UpdateBook(UpdateBookRequest) returns (Book) { option (google.api.http) = { - put: "/v1/{book.name=shelves/*/books/*}" + patch: "/v1/{book.name=shelves/*/books/*}" body: "book" }; - option (google.api.method_signature) = "book"; + option (google.api.method_signature) = "book,update_mask"; } // Moves a book to another shelf, and returns the new book. The book @@ -147,15 +149,13 @@ service LibraryService { message Book { option (google.api.resource) = { type: "library-example.googleapis.com/Book", - pattern: "shelves/{shelf_id}/books/{book_id}" + pattern: "shelves/{shelf}/books/{book}" }; + // The resource name of the book. // Book names have the form `shelves/{shelf_id}/books/{book_id}`. // The name is ignored when creating a book. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference).type = "library-example.googleapis.com/Book" - ]; + string name = 1; // The name of the book author. string author = 2; @@ -173,13 +173,11 @@ message Shelf { type: "library-example.googleapis.com/Shelf", pattern: "shelves/{shelf_id}" }; + // The resource name of the shelf. // Shelf names have the form `shelves/{shelf_id}`. // The name is ignored when creating a shelf. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference).type = "library-example.googleapis.com/Shelf" - ]; + string name = 1; // The theme of the shelf string theme = 2; @@ -196,7 +194,8 @@ message GetShelfRequest { // The name of the shelf to retrieve. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference).type = "Shelf" + (google.api.resource_reference).type = + "library-example.googleapis.com/Shelf" ]; } @@ -231,7 +230,8 @@ message DeleteShelfRequest { // The name of the shelf to delete. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference).type = "Shelf" + (google.api.resource_reference).type = + "library-example.googleapis.com/Shelf" ]; } @@ -241,22 +241,25 @@ message MergeShelvesRequest { // The name of the shelf we're adding books to. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference).type = "Shelf" + (google.api.resource_reference).type = + "library-example.googleapis.com/Shelf" ]; // The name of the shelf we're removing books from and deleting. - string other_shelf_name = 2 [ + string other_shelf = 2 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference).type = "Shelf" + (google.api.resource_reference).type = + "library-example.googleapis.com/Shelf" ]; } // Request message for LibraryService.CreateBook. message CreateBookRequest { // The name of the shelf in which the book is created. - string name = 1 [ + string parent = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference).type = "Shelf" + (google.api.resource_reference).type = + "library-example.googleapis.com/Shelf" ]; // The book to create. @@ -268,16 +271,17 @@ message GetBookRequest { // The name of the book to retrieve. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference).type = "Book" + (google.api.resource_reference).type = "library-example.googleapis.com/Book" ]; } // Request message for LibraryService.ListBooks. message ListBooksRequest { // The name of the shelf whose books we'd like to list. - string name = 1 [ + string parent = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference).type = "Shelf" + (google.api.resource_reference).type = + "library-example.googleapis.com/Shelf" ]; // Requested page size. Server may return fewer books than requested. @@ -307,10 +311,11 @@ message ListBooksResponse { // Request message for LibraryService.UpdateBook. message UpdateBookRequest { // The name of the book to update. - string name = 1 [(google.api.field_behavior) = REQUIRED]; + Book book = 1 [(google.api.field_behavior) = REQUIRED]; - // The book to update with. The name must match or be empty. - Book book = 2 [(google.api.field_behavior) = REQUIRED]; + // Required. Mask of fields to update. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; } // Request message for LibraryService.DeleteBook. @@ -318,7 +323,7 @@ message DeleteBookRequest { // The name of the book to delete. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference).type = "Book" + (google.api.resource_reference).type = "library-example.googleapis.com/Book" ]; } @@ -328,12 +333,13 @@ message MoveBookRequest { // The name of the book to move. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference).type = "Book" + (google.api.resource_reference).type = "library-example.googleapis.com/Book" ]; // The name of the destination shelf. string other_shelf_name = 2 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference).type = "Shelf" + (google.api.resource_reference).type = + "library-example.googleapis.com/Shelf" ]; } diff --git a/third_party/googleapis/google/example/library/v1/library_example_gapic.yaml b/third_party/googleapis/google/example/library/v1/library_example_gapic.yaml index 1c7cab232..6e1ff6b77 100644 --- a/third_party/googleapis/google/example/library/v1/library_example_gapic.yaml +++ b/third_party/googleapis/google/example/library/v1/library_example_gapic.yaml @@ -1,254 +1,8 @@ type: com.google.api.codegen.ConfigProto -config_schema_version: 1.0.0 +config_schema_version: 2.0.0 # The settings of generated code in a specific language. language_settings: java: package_name: com.google.cloud.example.library.v1 - python: - package_name: google.cloud.example.library_v1.gapic - go: - package_name: cloud.google.com/go/example/library/apiv1 - csharp: - package_name: Google.Example.Library.V1 - ruby: - package_name: Google::Cloud::Example::Library::V1 php: package_name: Google\Cloud\Example\Library\V1 - nodejs: - package_name: library.v1 -# A list of API interface configurations. -interfaces: -# The fully qualified name of the API interface. -- name: google.example.library.v1.LibraryService - # 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: - - name_pattern: shelves/{shelf} - entity_name: shelf - - name_pattern: shelves/{shelf}/books/{book} - entity_name: book - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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: CreateShelf - flattening: - groups: - - parameters: - - shelf - required_fields: - - shelf - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 10000 - - name: GetShelf - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: shelf - timeout_millis: 10000 - - name: ListShelves - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: shelves - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 10000 - - name: DeleteShelf - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: shelf - timeout_millis: 10000 - - name: MergeShelves - flattening: - groups: - - parameters: - - name - - other_shelf_name - required_fields: - - name - - other_shelf_name - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: shelf - timeout_millis: 10000 - - name: CreateBook - flattening: - groups: - - parameters: - - name - - book - required_fields: - - name - - book - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: shelf - timeout_millis: 10000 - - name: GetBook - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: book - timeout_millis: 10000 - - name: ListBooks - flattening: - groups: - - parameters: - - name - required_fields: - - name - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: books - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: shelf - timeout_millis: 10000 - - name: DeleteBook - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: book - timeout_millis: 10000 - - name: UpdateBook - flattening: - groups: - - parameters: - - name - - book - required_fields: - - name - - book - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - book.name: book - timeout_millis: 10000 - - name: MoveBook - flattening: - groups: - - parameters: - - name - - other_shelf_name - required_fields: - - name - - other_shelf_name - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: book - timeout_millis: 10000 diff --git a/third_party/googleapis/google/example/library/v1/library_grpc_service_config.json b/third_party/googleapis/google/example/library/v1/library_grpc_service_config.json new file mode 100644 index 000000000..5404d6619 --- /dev/null +++ b/third_party/googleapis/google/example/library/v1/library_grpc_service_config.json @@ -0,0 +1,75 @@ +{ + "methodConfig": [ + { + "name": [ + { + "service": "google.example.library.v1.LibraryService", + "method": "GetShelf" + }, + { + "service": "google.example.library.v1.LibraryService", + "method": "ListShelves" + }, + { + "service": "google.example.library.v1.LibraryService", + "method": "DeleteShelf" + }, + { + "service": "google.example.library.v1.LibraryService", + "method": "GetBook" + }, + { + "service": "google.example.library.v1.LibraryService", + "method": "ListBooks" + }, + { + "service": "google.example.library.v1.LibraryService", + "method": "DeleteBook" + }, + { + "service": "google.example.library.v1.LibraryService", + "method": "UpdateBook" + } + ], + "timeout": "60s", + "retryPolicy": { + "maxAttempts": 5, + "initialBackoff": "0.100s", + "maxBackoff": "60s", + "backoffMultiplier": 1.3, + "retryableStatusCodes": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ] + } + }, + { + "name": [ + { + "service": "google.example.library.v1.LibraryService", + "method": "CreateShelf" + }, + { + "service": "google.example.library.v1.LibraryService", + "method": "MergeShelves" + }, + { + "service": "google.example.library.v1.LibraryService", + "method": "CreateBook" + }, + { + "service": "google.example.library.v1.LibraryService", + "method": "MoveBook" + } + ], + "timeout": "60s", + "retryPolicy": { + "maxAttempts": 5, + "initialBackoff": "0.100s", + "maxBackoff": "60s", + "backoffMultiplier": 1.3, + "retryableStatusCodes": [] + } + } + ] +} diff --git a/third_party/googleapis/google/firestore/admin/artman_firestore_v1.yaml b/third_party/googleapis/google/firestore/admin/artman_firestore_v1.yaml deleted file mode 100644 index ee6ce029a..000000000 --- a/third_party/googleapis/google/firestore/admin/artman_firestore_v1.yaml +++ /dev/null @@ -1,34 +0,0 @@ -common: - api_name: firestore-admin - api_version: v1 - organization_name: google-cloud - proto_deps: - - name: google-common-protos - src_proto_paths: - - v1 - service_yaml: firestore_admin_v1.yaml - gapic_yaml: v1/firestore_gapic.yaml -artifacts: -- name: gapic_config - type: GAPIC_CONFIG -- name: java_gapic - type: GAPIC - language: JAVA -- name: python_gapic - type: GAPIC - language: PYTHON -- name: nodejs_gapic - type: GAPIC - language: NODEJS -- name: php_gapic - type: GAPIC - language: PHP -- name: go_gapic - type: GAPIC - language: GO -- name: ruby_gapic - type: GAPIC - language: RUBY -- name: csharp_gapic - type: GAPIC - language: CSHARP diff --git a/third_party/googleapis/google/firestore/admin/v1/BUILD.bazel b/third_party/googleapis/google/firestore/admin/v1/BUILD.bazel index df0dc8e94..6d07fa30f 100644 --- a/third_party/googleapis/google/firestore/admin/v1/BUILD.bazel +++ b/third_party/googleapis/google/firestore/admin/v1/BUILD.bazel @@ -64,11 +64,9 @@ java_grpc_library( java_gapic_library( name = "admin_java_gapic", - src = ":admin_proto_with_info", + srcs = [":admin_proto_with_info"], gapic_yaml = "firestore_gapic.yaml", grpc_service_config = "firestore_admin_grpc_service_config.json", - package = "google.firestore.admin.v1", - service_yaml = "//google/firestore/admin:firestore_admin_v1.yaml", test_deps = [ ":admin_java_grpc", ], @@ -127,9 +125,9 @@ go_gapic_library( service_yaml = "//google/firestore/admin:firestore_admin_v1.yaml", deps = [ ":admin_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", ], ) @@ -153,12 +151,10 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -167,7 +163,7 @@ py_gapic_library( grpc_service_config = "firestore_admin_grpc_service_config.json", opt_args = [ "python-gapic-namespace=google.cloud", - "python-gapic-name=firestore_admin" + "python-gapic-name=firestore_admin", ], ) @@ -235,6 +231,7 @@ load( nodejs_gapic_library( name = "admin_nodejs_gapic", src = ":admin_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "firestore_admin_grpc_service_config.json", package = "google.firestore.admin.v1", service_yaml = "//google/firestore/admin:firestore_admin_v1.yaml", @@ -255,7 +252,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -271,12 +268,19 @@ ruby_grpc_library( deps = [":admin_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "admin_ruby_gapic", - src = ":admin_proto_with_info", - gapic_yaml = "firestore_gapic.yaml", - package = "google.firestore.admin.v1", - service_yaml = "//google/firestore/admin:firestore_admin_v1.yaml", + srcs = [":admin_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-firestore-admin-v1", + "ruby-cloud-env-prefix=FIRESTORE", + "ruby-cloud-product-url=https://cloud.google.com/firestore", + "ruby-cloud-api-id=firestore.googleapis.com", + "ruby-cloud-api-shortname=firestore", + ], + grpc_service_config = "firestore_admin_grpc_service_config.json", + ruby_cloud_description = "Cloud Firestore is a NoSQL document database built for automatic scaling, high performance, and ease of application development.", + ruby_cloud_title = "Cloud Firestore Admin V1", deps = [ ":admin_ruby_grpc", ":admin_ruby_proto", @@ -318,8 +322,8 @@ csharp_grpc_library( csharp_gapic_library( name = "admin_csharp_gapic", srcs = [":admin_proto_with_info"], - grpc_service_config = "firestore_admin_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "firestore_admin_grpc_service_config.json", deps = [ ":admin_csharp_grpc", ":admin_csharp_proto", diff --git a/third_party/googleapis/google/firestore/artman_firestore.yaml b/third_party/googleapis/google/firestore/artman_firestore.yaml deleted file mode 100644 index c9141704e..000000000 --- a/third_party/googleapis/google/firestore/artman_firestore.yaml +++ /dev/null @@ -1,34 +0,0 @@ -common: - api_name: firestore - api_version: v1beta1 - organization_name: google-cloud - proto_deps: - - name: google-common-protos - src_proto_paths: - - v1beta1 - service_yaml: firestore_v1beta1.yaml - gapic_yaml: v1beta1/firestore_gapic.yaml -artifacts: -- name: gapic_config - type: GAPIC_CONFIG -- name: java_gapic - type: GAPIC - language: JAVA -- name: python_gapic - type: GAPIC - language: PYTHON -- name: nodejs_gapic - type: GAPIC - language: NODEJS -- name: php_gapic - type: GAPIC - language: PHP -- name: go_gapic - type: GAPIC - language: GO -- name: ruby_gapic - type: GAPIC - language: RUBY -- name: csharp_gapic - type: GAPIC - language: CSHARP diff --git a/third_party/googleapis/google/firestore/artman_firestore_v1.yaml b/third_party/googleapis/google/firestore/artman_firestore_v1.yaml deleted file mode 100644 index a24f9eef4..000000000 --- a/third_party/googleapis/google/firestore/artman_firestore_v1.yaml +++ /dev/null @@ -1,34 +0,0 @@ -common: - api_name: firestore - api_version: v1 - organization_name: google-cloud - proto_deps: - - name: google-common-protos - src_proto_paths: - - v1 - service_yaml: firestore_v1.yaml - gapic_yaml: v1/firestore_gapic.yaml -artifacts: -- name: gapic_config - type: GAPIC_CONFIG -- name: java_gapic - type: GAPIC - language: JAVA -- name: python_gapic - type: GAPIC - language: PYTHON -- name: nodejs_gapic - type: GAPIC - language: NODEJS -- name: php_gapic - type: GAPIC - language: PHP -- name: go_gapic - type: GAPIC - language: GO -- name: ruby_gapic - type: GAPIC - language: RUBY -- name: csharp_gapic - type: GAPIC - language: CSHARP diff --git a/third_party/googleapis/google/firestore/bundle/BUILD.bazel b/third_party/googleapis/google/firestore/bundle/BUILD.bazel index 2630288f8..efc60e8de 100644 --- a/third_party/googleapis/google/firestore/bundle/BUILD.bazel +++ b/third_party/googleapis/google/firestore/bundle/BUILD.bazel @@ -32,9 +32,6 @@ proto_library_with_info( load( "@com_google_googleapis_imports//:imports.bzl", "java_gapic_assembly_gradle_pkg", - "java_gapic_library", - "java_gapic_test", - "java_grpc_library", "java_proto_library", ) @@ -60,7 +57,24 @@ java_gapic_assembly_gradle_pkg( ############################################################################## # Python ############################################################################## -# Put your Python rules here +load( + "@com_google_googleapis_imports//:imports.bzl", + "py_gapic_assembly_pkg", + "py_gapic_library", +) + +py_gapic_library( + name = "firestore_bundle_py_gapic", + srcs = [":firestore_bundle_proto"], + opt_args = ["python-gapic-namespace=google.cloud"], +) + +py_gapic_assembly_pkg( + name = "firestore-bundle-py", + deps = [ + ":firestore_bundle_py_gapic", + ], +) ############################################################################## # PHP diff --git a/third_party/googleapis/google/firestore/v1/BUILD.bazel b/third_party/googleapis/google/firestore/v1/BUILD.bazel index f64a73602..988f16b5d 100644 --- a/third_party/googleapis/google/firestore/v1/BUILD.bazel +++ b/third_party/googleapis/google/firestore/v1/BUILD.bazel @@ -64,11 +64,9 @@ java_grpc_library( java_gapic_library( name = "firestore_java_gapic", - src = ":firestore_proto_with_info", + srcs = [":firestore_proto_with_info"], gapic_yaml = "firestore_gapic.yaml", grpc_service_config = "firestore_grpc_service_config.json", - package = "google.firestore.v1", - service_yaml = "//google/firestore:firestore_v1.yaml", test_deps = [ ":firestore_java_grpc", ], @@ -150,12 +148,10 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -230,6 +226,7 @@ nodejs_gapic_library( name = "firestore_nodejs_gapic", package_name = "@google-cloud/firestore", src = ":firestore_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "firestore_grpc_service_config.json", package = "google.firestore.v1", service_yaml = "//google/firestore:firestore_v1.yaml", @@ -250,7 +247,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -266,12 +263,19 @@ ruby_grpc_library( deps = [":firestore_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "firestore_ruby_gapic", - src = ":firestore_proto_with_info", - gapic_yaml = "firestore_gapic.yaml", - package = "google.firestore.v1", - service_yaml = "//google/firestore:firestore_v1.yaml", + srcs = [":firestore_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-firestore-v1", + "ruby-cloud-env-prefix=FIRESTORE", + "ruby-cloud-product-url=https://cloud.google.com/firestore", + "ruby-cloud-api-id=firestore.googleapis.com", + "ruby-cloud-api-shortname=firestore", + ], + grpc_service_config = "firestore_grpc_service_config.json", + ruby_cloud_description = "Cloud Firestore is a NoSQL document database built for automatic scaling, high performance, and ease of application development.", + ruby_cloud_title = "Cloud Firestore V1", deps = [ ":firestore_ruby_grpc", ":firestore_ruby_proto", @@ -313,8 +317,8 @@ csharp_grpc_library( csharp_gapic_library( name = "firestore_csharp_gapic", srcs = [":firestore_proto_with_info"], - grpc_service_config = "firestore_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "firestore_grpc_service_config.json", deps = [ ":firestore_csharp_grpc", ":firestore_csharp_proto", diff --git a/third_party/googleapis/google/firestore/v1beta1/BUILD.bazel b/third_party/googleapis/google/firestore/v1beta1/BUILD.bazel index 26d0f6076..816e4911a 100644 --- a/third_party/googleapis/google/firestore/v1beta1/BUILD.bazel +++ b/third_party/googleapis/google/firestore/v1beta1/BUILD.bazel @@ -1,4 +1,13 @@ # This file was automatically generated by BuildFileGenerator +# https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/bazel + +# Most of the manual changes to this file will be overwritten. +# It's **only** allowed to change the following rule attribute values: +# - names of *_gapic_assembly_* rules +# - certain parameters of *_gapic_library rules, including but not limited to: +# * extra_protoc_parameters +# * extra_protoc_file_parameters +# The complete list of preserved parameters can be found in the source code. # This is an API workspace, having public visibility by default makes perfect sense. package(default_visibility = ["//visibility:public"]) @@ -64,10 +73,9 @@ java_grpc_library( java_gapic_library( name = "firestore_java_gapic", - src = ":firestore_proto_with_info", + srcs = [":firestore_proto_with_info"], gapic_yaml = "firestore_gapic.yaml", - package = "google.firestore.v1beta1", - service_yaml = "//google/firestore:firestore_v1beta1.yaml", + grpc_service_config = "firestore_grpc_service_config.json", test_deps = [ ":firestore_java_grpc", ], @@ -151,51 +159,14 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "firestore_moved_proto", - srcs = [":firestore_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/rpc:status_proto", - "//google/type:latlng_proto", - "@com_google_protobuf//:empty_proto", - "@com_google_protobuf//:struct_proto", - "@com_google_protobuf//:timestamp_proto", - "@com_google_protobuf//:wrappers_proto", - ], -) - -py_proto_library( - name = "firestore_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":firestore_moved_proto"], -) - -py_grpc_library( - name = "firestore_py_grpc", - srcs = [":firestore_moved_proto"], - deps = [":firestore_py_proto"], ) py_gapic_library( name = "firestore_py_gapic", - src = ":firestore_proto_with_info", - gapic_yaml = "firestore_gapic.yaml", - package = "google.firestore.v1beta1", - service_yaml = "//google/firestore:firestore_v1beta1.yaml", - deps = [ - ":firestore_py_grpc", - ":firestore_py_proto", - ], + srcs = [":firestore_proto"], + grpc_service_config = "firestore_grpc_service_config.json", ) # Open Source Packages @@ -203,8 +174,6 @@ py_gapic_assembly_pkg( name = "firestore-v1beta1-py", deps = [ ":firestore_py_gapic", - ":firestore_py_grpc", - ":firestore_py_proto", ], ) @@ -264,6 +233,7 @@ load( nodejs_gapic_library( name = "firestore_nodejs_gapic", src = ":firestore_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "firestore_grpc_service_config.json", package = "google.firestore.v1beta1", service_yaml = "//google/firestore:firestore_v1beta1.yaml", @@ -347,8 +317,8 @@ csharp_grpc_library( csharp_gapic_library( name = "firestore_csharp_gapic", srcs = [":firestore_proto_with_info"], - grpc_service_config = "firestore_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "firestore_grpc_service_config.json", deps = [ ":firestore_csharp_grpc", ":firestore_csharp_proto", diff --git a/third_party/googleapis/google/firestore/v1beta1/firestore_gapic.legacy.yaml b/third_party/googleapis/google/firestore/v1beta1/firestore_gapic.legacy.yaml deleted file mode 100644 index 257e0e247..000000000 --- a/third_party/googleapis/google/firestore/v1beta1/firestore_gapic.legacy.yaml +++ /dev/null @@ -1,228 +0,0 @@ -type: com.google.api.codegen.ConfigProto -config_schema_version: 1.0.0 -language_settings: - java: - package_name: com.google.cloud.firestore.v1beta1 - python: - package_name: google.cloud.firestore_v1beta1.gapic - release_level: ALPHA - go: - package_name: cloud.google.com/go/firestore/apiv1beta1 - domain_layer_location: cloud.google.com/go/firestore - release_level: BETA - csharp: - package_name: Google.Cloud.Firestore.V1Beta1 - ruby: - package_name: Google::Cloud::Firestore::V1beta1 - release_level: GA - php: - package_name: Google\Cloud\Firestore\V1beta1 - nodejs: - package_name: firestore.v1beta1 - domain_layer_location: google-cloud -interfaces: -- name: google.firestore.v1beta1.Firestore - collections: - - name_pattern: projects/{project}/databases/{database} - entity_name: database_root - - name_pattern: projects/{project}/databases/{database}/documents - entity_name: document_root - - name_pattern: projects/{project}/databases/{database}/documents/{document_path=**} - entity_name: document_path - - name_pattern: projects/{project}/databases/{database}/documents/{document}/{any_path=**} - entity_name: any_path - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - - name: streaming - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - # Five minutes - initial_rpc_timeout_millis: 300000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 300000 - total_timeout_millis: 600000 - methods: - - name: GetDocument - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: any_path - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: ListDocuments - required_fields: - - parent - - collection_id - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: documents - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: document_root - parent: any_path - timeout_millis: 60000 - - name: CreateDocument - required_fields: - - parent - - collection_id - - document_id - - document - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: document_root - parent: any_path - timeout_millis: 60000 - - name: UpdateDocument - flattening: - groups: - - parameters: - - document - - update_mask - required_fields: - - document - - update_mask - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - document.name: any_path - timeout_millis: 60000 - - name: DeleteDocument - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: any_path - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: BatchGetDocuments - required_fields: - - database - - documents - retry_codes_name: idempotent - retry_params_name: streaming - field_name_patterns: - database: database_root - # Five minutes - timeout_millis: 300000 - - name: BeginTransaction - flattening: - groups: - - parameters: - - database - required_fields: - - database - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - database: database_root - timeout_millis: 60000 - - name: Commit - flattening: - groups: - - parameters: - - database - - writes - required_fields: - - database - - writes - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - database: database_root - timeout_millis: 60000 - - name: Rollback - flattening: - groups: - - parameters: - - database - - transaction - required_fields: - - database - - transaction - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - database: database_root - timeout_millis: 60000 - - name: RunQuery - required_fields: - - parent - retry_codes_name: idempotent - retry_params_name: streaming - field_name_patterns: - parent: document_root - parent: any_path - timeout_millis: 60000 - - name: Write - required_fields: - - database - retry_codes_name: non_idempotent - retry_params_name: streaming - field_name_patterns: - database: database_root - # One day - timeout_millis: 86400000 - - name: Listen - required_fields: - - database - retry_codes_name: idempotent - retry_params_name: streaming - field_name_patterns: - database: database_root - # One day - timeout_millis: 86400000 - - name: ListCollectionIds - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: collection_ids - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: document_root - parent: any_path - timeout_millis: 60000 -resource_name_generation: -- message_name: GetDocumentRequest - field_entity_map: - name: any_path -- message_name: DeleteDocumentRequest - field_entity_map: - name: any_path diff --git a/third_party/googleapis/google/firestore/v1beta1/firestore_grpc_service_config.json b/third_party/googleapis/google/firestore/v1beta1/firestore_grpc_service_config.json index 8f435df8f..7dabfd667 100755 --- a/third_party/googleapis/google/firestore/v1beta1/firestore_grpc_service_config.json +++ b/third_party/googleapis/google/firestore/v1beta1/firestore_grpc_service_config.json @@ -34,6 +34,7 @@ "maxBackoff": "60s", "backoffMultiplier": 1.3, "retryableStatusCodes": [ + "RESOURCE_EXHAUSTED", "UNAVAILABLE", "DEADLINE_EXCEEDED" ] @@ -74,6 +75,7 @@ "maxBackoff": "60s", "backoffMultiplier": 1.3, "retryableStatusCodes": [ + "RESOURCE_EXHAUSTED", "UNAVAILABLE", "DEADLINE_EXCEEDED" ] @@ -93,6 +95,7 @@ "maxBackoff": "60s", "backoffMultiplier": 1.3, "retryableStatusCodes": [ + "RESOURCE_EXHAUSTED", "UNAVAILABLE", "DEADLINE_EXCEEDED" ] diff --git a/third_party/googleapis/google/home/enterprise/sdm/v1/BUILD.bazel b/third_party/googleapis/google/home/enterprise/sdm/v1/BUILD.bazel index 097a370a5..778cd3f8c 100644 --- a/third_party/googleapis/google/home/enterprise/sdm/v1/BUILD.bazel +++ b/third_party/googleapis/google/home/enterprise/sdm/v1/BUILD.bazel @@ -67,11 +67,8 @@ java_grpc_library( java_gapic_library( name = "sdm_java_gapic", - src = ":sdm_proto_with_info", - gapic_yaml = "smartdevicemanagement_gapic.yaml", + srcs = [":sdm_proto_with_info"], grpc_service_config = "smart_device_management_grpc_service_config.json", - package = "google.home.enterprise.sdm.v1", - service_yaml = "smartdevicemanagement_v1.yaml", test_deps = [ ":sdm_java_grpc", ], @@ -153,48 +150,14 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "sdm_moved_proto", - srcs = [":sdm_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:resource_proto", - "@com_google_protobuf//:struct_proto", - ], -) - -py_proto_library( - name = "sdm_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":sdm_moved_proto"], -) - -py_grpc_library( - name = "sdm_py_grpc", - srcs = [":sdm_moved_proto"], - deps = [":sdm_py_proto"], ) py_gapic_library( name = "sdm_py_gapic", - src = ":sdm_proto_with_info", - gapic_yaml = "smartdevicemanagement_gapic.yaml", + srcs = [":sdm_proto"], grpc_service_config = "smart_device_management_grpc_service_config.json", - package = "google.home.enterprise.sdm.v1", - service_yaml = "smartdevicemanagement_v1.yaml", - deps = [ - ":sdm_py_grpc", - ":sdm_py_proto", - ], ) # Open Source Packages @@ -202,8 +165,6 @@ py_gapic_assembly_pkg( name = "enterprise-sdm-v1-py", deps = [ ":sdm_py_gapic", - ":sdm_py_grpc", - ":sdm_py_proto", ], ) @@ -264,6 +225,7 @@ load( nodejs_gapic_library( name = "sdm_nodejs_gapic", src = ":sdm_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "smart_device_management_grpc_service_config.json", package = "google.home.enterprise.sdm.v1", service_yaml = "smartdevicemanagement_v1.yaml", @@ -348,8 +310,8 @@ csharp_grpc_library( csharp_gapic_library( name = "sdm_csharp_gapic", srcs = [":sdm_proto_with_info"], - grpc_service_config = "smart_device_management_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "smart_device_management_grpc_service_config.json", deps = [ ":sdm_csharp_grpc", ":sdm_csharp_proto", diff --git a/third_party/googleapis/google/home/enterprise/sdm/v1/smartdevicemanagement_gapic.yaml b/third_party/googleapis/google/home/enterprise/sdm/v1/smartdevicemanagement_gapic.yaml index 68e355b54..b422ca920 100644 --- a/third_party/googleapis/google/home/enterprise/sdm/v1/smartdevicemanagement_gapic.yaml +++ b/third_party/googleapis/google/home/enterprise/sdm/v1/smartdevicemanagement_gapic.yaml @@ -2,8 +2,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 # The settings of generated code in a specific language. language_settings: - java: - package_name: com.google.home.enterprise.sdm.v1 python: package_name: google.home.enterprise.sdm_v1.gapic go: diff --git a/third_party/googleapis/google/home/graph/v1/BUILD.bazel b/third_party/googleapis/google/home/graph/v1/BUILD.bazel index 3190b0896..8787f92f8 100644 --- a/third_party/googleapis/google/home/graph/v1/BUILD.bazel +++ b/third_party/googleapis/google/home/graph/v1/BUILD.bazel @@ -58,10 +58,8 @@ java_grpc_library( java_gapic_library( name = "graph_java_gapic", - src = ":graph_proto_with_info", - gapic_yaml = "homegraph_gapic.yaml", - package = "google.home.graph.v1", - service_yaml = "homegraph_v1.yaml", + srcs = [":graph_proto_with_info"], + grpc_service_config = "homegraph_grpc_service_config.json", test_deps = [ ":graph_java_grpc", ], @@ -143,48 +141,14 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "graph_moved_proto", - srcs = [":graph_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:resource_proto", - "@com_google_protobuf//:empty_proto", - "@com_google_protobuf//:struct_proto", - ], -) - -py_proto_library( - name = "graph_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":graph_moved_proto"], -) - -py_grpc_library( - name = "graph_py_grpc", - srcs = [":graph_moved_proto"], - deps = [":graph_py_proto"], ) py_gapic_library( name = "graph_py_gapic", - src = ":graph_proto_with_info", - gapic_yaml = "homegraph_gapic.yaml", - package = "google.home.graph.v1", - service_yaml = "homegraph_v1.yaml", - deps = [ - ":graph_py_grpc", - ":graph_py_proto", - ], + srcs = [":graph_proto"], + grpc_service_config = "homegraph_grpc_service_config.json", ) # Open Source Packages @@ -192,8 +156,6 @@ py_gapic_assembly_pkg( name = "home-graph-v1-py", deps = [ ":graph_py_gapic", - ":graph_py_grpc", - ":graph_py_proto", ], ) @@ -253,6 +215,7 @@ load( nodejs_gapic_library( name = "graph_nodejs_gapic", src = ":graph_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "homegraph_grpc_service_config.json", package = "google.home.graph.v1", service_yaml = "homegraph_v1.yaml", @@ -336,8 +299,8 @@ csharp_grpc_library( csharp_gapic_library( name = "graph_csharp_gapic", srcs = [":graph_proto_with_info"], - grpc_service_config = "homegraph_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "homegraph_grpc_service_config.json", deps = [ ":graph_csharp_grpc", ":graph_csharp_proto", diff --git a/third_party/googleapis/google/home/graph/v1/homegraph.proto b/third_party/googleapis/google/home/graph/v1/homegraph.proto index 57638d14b..55eccf76f 100644 --- a/third_party/googleapis/google/home/graph/v1/homegraph.proto +++ b/third_party/googleapis/google/home/graph/v1/homegraph.proto @@ -194,10 +194,11 @@ message ReportStateAndNotificationRequest { // Required. Third-party user ID. string agent_user_id = 2 [(google.api.field_behavior) = REQUIRED]; - // Token to maintain state in the follow up notification response. - // Deprecated. See the [notifications - // guide](https://developers.google.com/assistant/smarthome/develop/notifications) - // for details on implementing follow up notifications. + // Deprecated. + // (-- Token to maintain state in the follow up notification response. See the + // notifications guide at + // https://developers.google.com/assistant/smarthome/develop/notifications for + // details on implementing follow up notifications --) string follow_up_token = 5 [deprecated = true]; // Required. State of devices to update and notification metadata for devices. diff --git a/third_party/googleapis/google/home/graph/v1/homegraph_gapic.yaml b/third_party/googleapis/google/home/graph/v1/homegraph_gapic.yaml index f133f4827..a4edef1b6 100644 --- a/third_party/googleapis/google/home/graph/v1/homegraph_gapic.yaml +++ b/third_party/googleapis/google/home/graph/v1/homegraph_gapic.yaml @@ -2,8 +2,6 @@ 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.home.graph.v1 python: package_name: google.home.graph_v1.gapic go: diff --git a/third_party/googleapis/google/iam/admin/v1/BUILD.bazel b/third_party/googleapis/google/iam/admin/v1/BUILD.bazel index 6c5d55c5d..9192ffd68 100644 --- a/third_party/googleapis/google/iam/admin/v1/BUILD.bazel +++ b/third_party/googleapis/google/iam/admin/v1/BUILD.bazel @@ -70,11 +70,9 @@ java_grpc_library( java_gapic_library( name = "admin_java_gapic", - src = ":admin_proto_with_info", + srcs = [":admin_proto_with_info"], gapic_yaml = "iam_gapic.yaml", grpc_service_config = "iam_grpc_service_config.json", - package = "google.iam.admin.v1", - service_yaml = "iam.yaml", test_deps = [ ":admin_java_grpc", "//google/iam/v1:iam_java_grpc", @@ -88,7 +86,7 @@ java_gapic_library( java_gapic_test( name = "admin_java_gapic_test_suite", test_classes = [ - "com.google.cloud.iam.admin.v1.IamClientTest", + "com.google.cloud.iam.admin.v1.IAMClientTest", ], runtime_deps = [":admin_java_gapic_test"], ) @@ -160,52 +158,14 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "admin_moved_proto", - srcs = [":admin_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:resource_proto", - "//google/iam/v1:iam_policy_proto", - "//google/iam/v1:policy_proto", - "@com_google_protobuf//:empty_proto", - "@com_google_protobuf//:field_mask_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -py_proto_library( - name = "admin_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":admin_moved_proto"], -) - -py_grpc_library( - name = "admin_py_grpc", - srcs = [":admin_moved_proto"], - deps = [":admin_py_proto"], ) py_gapic_library( name = "admin_py_gapic", - src = ":admin_proto_with_info", - gapic_yaml = "iam_gapic.yaml", + srcs = [":admin_proto"], grpc_service_config = "iam_grpc_service_config.json", - package = "google.iam.admin.v1", - service_yaml = "iam.yaml", - deps = [ - ":admin_py_grpc", - ":admin_py_proto", - ], ) # Open Source Packages @@ -213,8 +173,6 @@ py_gapic_assembly_pkg( name = "iam-admin-v1-py", deps = [ ":admin_py_gapic", - ":admin_py_grpc", - ":admin_py_proto", ], ) @@ -275,6 +233,7 @@ load( nodejs_gapic_library( name = "admin_nodejs_gapic", src = ":admin_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "iam_grpc_service_config.json", package = "google.iam.admin.v1", service_yaml = "iam.yaml", @@ -359,8 +318,8 @@ csharp_grpc_library( csharp_gapic_library( name = "admin_csharp_gapic", srcs = [":admin_proto_with_info"], - grpc_service_config = "iam_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "iam_grpc_service_config.json", deps = [ ":admin_csharp_grpc", ":admin_csharp_proto", @@ -382,8 +341,9 @@ csharp_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", + "cc_grpc_library", "cc_proto_library", - "cc_grpc_library") +) cc_proto_library( name = "admin_cc_proto", diff --git a/third_party/googleapis/google/iam/admin/v1/iam_gapic.legacy.yaml b/third_party/googleapis/google/iam/admin/v1/iam_gapic.legacy.yaml deleted file mode 100644 index 4c568c2f9..000000000 --- a/third_party/googleapis/google/iam/admin/v1/iam_gapic.legacy.yaml +++ /dev/null @@ -1,249 +0,0 @@ -type: com.google.api.codegen.ConfigProto -config_schema_version: 1.0.0 -language_settings: - java: - package_name: com.google.cloud.iam.admin.v1 - python: - package_name: google.cloud.iam_admin_v1.gapic - go: - package_name: cloud.google.com/go/iam/admin/apiv1 - csharp: - package_name: Google.Iam.Admin.V1 - ruby: - package_name: Google::Cloud::Iam::Admin::V1 - php: - package_name: Google\Cloud\Iam\Admin\V1 - nodejs: - package_name: iam.v1 - domain_layer_location: google-cloud -interfaces: -- name: google.iam.admin.v1.IAM - collections: - - name_pattern: projects/{project} - entity_name: project - language_overrides: - - language: csharp - common_resource_name: Google.Api.Gax.ResourceNames.ProjectName - - name_pattern: projects/{project}/serviceAccounts/{service_account} - entity_name: service_account - - name_pattern: projects/{project}/serviceAccounts/{service_account}/keys/{key} - entity_name: key - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - methods: - - name: ListServiceAccounts - flattening: - groups: - - parameters: - - name - required_fields: - - name - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: accounts - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: project - timeout_millis: 60000 - - name: GetServiceAccount - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: service_account - timeout_millis: 60000 - - name: CreateServiceAccount - flattening: - groups: - - parameters: - - name - - account_id - - service_account - required_fields: - - name - - account_id - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: project - timeout_millis: 60000 - - name: UpdateServiceAccount - required_fields: - - etag - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: service_account - timeout_millis: 60000 - - name: DeleteServiceAccount - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: service_account - timeout_millis: 60000 - - name: ListServiceAccountKeys - flattening: - groups: - - parameters: - - name - - key_types - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: service_account - timeout_millis: 60000 - - name: GetServiceAccountKey - flattening: - groups: - - parameters: - - name - - public_key_type - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: key - timeout_millis: 60000 - - name: CreateServiceAccountKey - flattening: - groups: - - parameters: - - name - - private_key_type - - key_algorithm - required_fields: - - name - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: service_account - timeout_millis: 60000 - - name: DeleteServiceAccountKey - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: key - timeout_millis: 60000 - - name: SignBlob - flattening: - groups: - - parameters: - - name - - bytes_to_sign - required_fields: - - name - - bytes_to_sign - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: service_account - timeout_millis: 60000 - - name: GetIamPolicy - flattening: - groups: - - parameters: - - resource - required_fields: - - resource - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - resource: service_account - timeout_millis: 60000 - surface_treatments: - - include_languages: - - go - visibility: PRIVATE - - name: SetIamPolicy - flattening: - groups: - - parameters: - - resource - - policy - required_fields: - - resource - - policy - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - resource: service_account - timeout_millis: 60000 - surface_treatments: - - include_languages: - - go - visibility: PRIVATE - - name: TestIamPermissions - flattening: - groups: - - parameters: - - resource - - permissions - required_fields: - - resource - - permissions - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - resource: service_account - timeout_millis: 60000 - - name: QueryGrantableRoles - flattening: - groups: - - parameters: - - full_resource_name - required_fields: - - full_resource_name - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 60000 - - name: SignJwt - flattening: - groups: - - parameters: - - name - - payload - required_fields: - - name - - payload - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 60000 diff --git a/third_party/googleapis/google/iam/credentials/v1/BUILD.bazel b/third_party/googleapis/google/iam/credentials/v1/BUILD.bazel index c4bbc4d00..08bc85684 100644 --- a/third_party/googleapis/google/iam/credentials/v1/BUILD.bazel +++ b/third_party/googleapis/google/iam/credentials/v1/BUILD.bazel @@ -58,11 +58,8 @@ java_grpc_library( java_gapic_library( name = "credentials_java_gapic", - src = ":credentials_proto_with_info", - gapic_yaml = "iamcredentials_gapic.yaml", + srcs = [":credentials_proto_with_info"], grpc_service_config = "iamcredentials_grpc_service_config.json", - package = "google.iam.credentials.v1", - service_yaml = "//google/iam/credentials:iamcredentials_v1.yaml", test_deps = [ ":credentials_java_grpc", ], @@ -74,7 +71,7 @@ java_gapic_library( java_gapic_test( name = "credentials_java_gapic_test_suite", test_classes = [ - "com.google.cloud.iam.credentials.v1.IamCredentialsClientTest", + "com.google.cloud.iam.credentials.v1.IAMCredentialsClientTest", ], runtime_deps = [":credentials_java_gapic_test"], ) @@ -143,12 +140,10 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -220,7 +215,9 @@ load( nodejs_gapic_library( name = "credentials_nodejs_gapic", + package_name = "@google-cloud/iam-credentials", src = ":credentials_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "iamcredentials_grpc_service_config.json", package = "google.iam.credentials.v1", service_yaml = "//google/iam/credentials:iamcredentials_v1.yaml", @@ -304,8 +301,8 @@ csharp_grpc_library( csharp_gapic_library( name = "credentials_csharp_gapic", srcs = [":credentials_proto_with_info"], - grpc_service_config = "iamcredentials_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "iamcredentials_grpc_service_config.json", deps = [ ":credentials_csharp_grpc", ":credentials_csharp_proto", @@ -327,8 +324,9 @@ csharp_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", + "cc_grpc_library", "cc_proto_library", - "cc_grpc_library") +) cc_proto_library( name = "credentials_cc_proto", diff --git a/third_party/googleapis/google/iam/credentials/v1/common.proto b/third_party/googleapis/google/iam/credentials/v1/common.proto index 361f2e90c..045a0dfbc 100644 --- a/third_party/googleapis/google/iam/credentials/v1/common.proto +++ b/third_party/googleapis/google/iam/credentials/v1/common.proto @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,7 +11,6 @@ // WITHOUT 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"; @@ -23,6 +22,7 @@ import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Iam.Credentials.V1"; option go_package = "google.golang.org/genproto/googleapis/iam/credentials/v1;credentials"; option java_multiple_files = true; option java_outer_classname = "IAMCredentialsCommonProto"; diff --git a/third_party/googleapis/google/iam/credentials/v1/iamcredentials.proto b/third_party/googleapis/google/iam/credentials/v1/iamcredentials.proto index 29554c567..b5dcae87f 100644 --- a/third_party/googleapis/google/iam/credentials/v1/iamcredentials.proto +++ b/third_party/googleapis/google/iam/credentials/v1/iamcredentials.proto @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -11,7 +11,6 @@ // WITHOUT 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"; @@ -22,6 +21,7 @@ import "google/api/client.proto"; import "google/iam/credentials/v1/common.proto"; option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Iam.Credentials.V1"; option go_package = "google.golang.org/genproto/googleapis/iam/credentials/v1;credentials"; option java_multiple_files = true; option java_outer_classname = "IAMCredentialsProto"; diff --git a/third_party/googleapis/google/iam/credentials/v1/iamcredentials_gapic.legacy.yaml b/third_party/googleapis/google/iam/credentials/v1/iamcredentials_gapic.legacy.yaml deleted file mode 100644 index 7524a1853..000000000 --- a/third_party/googleapis/google/iam/credentials/v1/iamcredentials_gapic.legacy.yaml +++ /dev/null @@ -1,133 +0,0 @@ -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.iam.credentials.v1 - python: - package_name: google.cloud.iam_credentials_v1.gapic - go: - package_name: cloud.google.com/go/iam/credentials/apiv1 - csharp: - package_name: Google.Iam.Credentials.V1 - ruby: - package_name: Google::Cloud::Iam::Credentials::V1 - php: - package_name: Google\Cloud\Iam\Credentials\V1 - nodejs: - package_name: credentials.v1 -# A list of API interface configurations. -interfaces: -# The fully qualified name of the API interface. -- name: google.iam.credentials.v1.IAMCredentials - # 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: - - name_pattern: projects/{project}/serviceAccounts/{service_account} - entity_name: service_account - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - methods: - - name: GenerateAccessToken - flattening: - groups: - - parameters: - - name - - delegates - - scope - - lifetime - required_fields: - - name - - scope - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: service_account - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: GenerateIdToken - flattening: - groups: - - parameters: - - name - - delegates - - audience - - include_email - required_fields: - - name - - audience - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: service_account - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: SignBlob - flattening: - groups: - - parameters: - - name - - delegates - - payload - required_fields: - - name - - payload - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: service_account - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: SignJwt - flattening: - groups: - - parameters: - - name - - delegates - - payload - required_fields: - - name - - payload - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: service_account - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES -resource_name_generation: -- message_name: GenerateAccessTokenRequest - field_entity_map: - name: service_account -- message_name: GenerateIdTokenRequest - field_entity_map: - name: service_account -- message_name: SignBlobRequest - field_entity_map: - name: service_account -- message_name: SignJwtRequest - field_entity_map: - name: service_account diff --git a/third_party/googleapis/google/iam/credentials/v1/iamcredentials_gapic.yaml b/third_party/googleapis/google/iam/credentials/v1/iamcredentials_gapic.yaml index 32d7cab80..ba1dad1b7 100644 --- a/third_party/googleapis/google/iam/credentials/v1/iamcredentials_gapic.yaml +++ b/third_party/googleapis/google/iam/credentials/v1/iamcredentials_gapic.yaml @@ -2,8 +2,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 # The settings of generated code in a specific language. language_settings: - java: - package_name: com.google.cloud.iam.credentials.v1 python: package_name: google.cloud.iam_credentials_v1.gapic go: diff --git a/third_party/googleapis/google/iam/v1/iam_gapic.legacy.yaml b/third_party/googleapis/google/iam/v1/iam_gapic.legacy.yaml deleted file mode 100644 index e2d0a674f..000000000 --- a/third_party/googleapis/google/iam/v1/iam_gapic.legacy.yaml +++ /dev/null @@ -1,28 +0,0 @@ -type: com.google.api.codegen.ConfigProto -config_schema_version: 1.0.0 -language_settings: - java: - package_name: com.google.cloud.iam.v1 - python: - package_name: google.cloud.iam_v1.gapic - go: - package_name: cloud.google.com/go/iam/apiv1 - csharp: - package_name: Google.Iam.V1 - ruby: - package_name: Google::Cloud::Iam::V1 - php: - package_name: Google\Cloud\Iam\V1 - nodejs: - package_name: iam.core.v1 - domain_layer_location: google-cloud -resource_name_generation: -- message_name: SetIamPolicyRequest - field_entity_map: - resource: "*" -- message_name: GetIamPolicyRequest - field_entity_map: - resource: "*" -- message_name: TestIamPermissionsRequest - field_entity_map: - resource: "*" diff --git a/third_party/googleapis/google/iam/v1/iam_meta_api_gapic.legacy.yaml b/third_party/googleapis/google/iam/v1/iam_meta_api_gapic.legacy.yaml deleted file mode 100644 index 5c4c83339..000000000 --- a/third_party/googleapis/google/iam/v1/iam_meta_api_gapic.legacy.yaml +++ /dev/null @@ -1,132 +0,0 @@ -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.iam.v1 - python: - package_name: google.cloud.iam_v1.gapic - go: - package_name: cloud.google.com/go/iam/apiv1 - csharp: - package_name: Google.Iam.V1 - ruby: - package_name: Google::Cloud::Iam::V1 - php: - package_name: Google\Cloud\Iam\V1 - nodejs: - package_name: iam.v1 -# A list of API interface configurations. -interfaces: -# The fully qualified name of the API interface. -- name: google.iam.v1.IAMPolicy - # 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: - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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. - # - # 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: SetIamPolicy - flattening: - groups: - - parameters: - - resource - - policy - required_fields: - - resource - - policy - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 60000 - - name: GetIamPolicy - flattening: - groups: - - parameters: - - resource - - options - required_fields: - - resource - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 60000 - - name: TestIamPermissions - flattening: - groups: - - parameters: - - resource - - permissions - required_fields: - - resource - - permissions - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 60000 diff --git a/third_party/googleapis/google/iam/v1beta/BUILD.bazel b/third_party/googleapis/google/iam/v1beta/BUILD.bazel index afa56dfdd..c037c5e87 100644 --- a/third_party/googleapis/google/iam/v1beta/BUILD.bazel +++ b/third_party/googleapis/google/iam/v1beta/BUILD.bazel @@ -66,11 +66,9 @@ java_grpc_library( java_gapic_library( name = "iam_java_gapic", - src = ":iam_proto_with_info", + srcs = [":iam_proto_with_info"], gapic_yaml = "iam_gapic.yaml", grpc_service_config = "iam_grpc_service_config.json", - package = "google.iam.v1beta", - service_yaml = "iam_v1beta.yaml", test_deps = [ ":iam_java_grpc", ], @@ -128,9 +126,9 @@ go_gapic_library( service_yaml = "iam_v1beta.yaml", deps = [ ":iam_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", ], ) @@ -156,49 +154,14 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "iam_moved_proto", - srcs = [":iam_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:resource_proto", - "//google/longrunning:operations_proto", - "@com_google_protobuf//:field_mask_proto", - ], -) - -py_proto_library( - name = "iam_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":iam_moved_proto"], -) - -py_grpc_library( - name = "iam_py_grpc", - srcs = [":iam_moved_proto"], - deps = [":iam_py_proto"], ) py_gapic_library( name = "iam_py_gapic", - src = ":iam_proto_with_info", - gapic_yaml = "iam_gapic.yaml", + srcs = [":iam_proto"], grpc_service_config = "iam_grpc_service_config.json", - package = "google.iam.v1beta", - service_yaml = "iam_v1beta.yaml", - deps = [ - ":iam_py_grpc", - ":iam_py_proto", - ], ) # Open Source Packages @@ -206,8 +169,6 @@ py_gapic_assembly_pkg( name = "iam-v1beta-py", deps = [ ":iam_py_gapic", - ":iam_py_grpc", - ":iam_py_proto", ], ) @@ -268,6 +229,7 @@ load( nodejs_gapic_library( name = "iam_nodejs_gapic", src = ":iam_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "iam_grpc_service_config.json", package = "google.iam.v1beta", service_yaml = "iam_v1beta.yaml", @@ -352,8 +314,8 @@ csharp_grpc_library( csharp_gapic_library( name = "iam_csharp_gapic", srcs = [":iam_proto_with_info"], - grpc_service_config = "iam_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "iam_grpc_service_config.json", deps = [ ":iam_csharp_grpc", ":iam_csharp_proto", diff --git a/third_party/googleapis/google/identity/accesscontextmanager/type/BUILD.bazel b/third_party/googleapis/google/identity/accesscontextmanager/type/BUILD.bazel index 51d7bc6f9..cd61676fa 100644 --- a/third_party/googleapis/google/identity/accesscontextmanager/type/BUILD.bazel +++ b/third_party/googleapis/google/identity/accesscontextmanager/type/BUILD.bazel @@ -23,9 +23,9 @@ proto_library( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", + "java_gapic_assembly_gradle_pkg", "java_grpc_library", "java_proto_library", - "java_gapic_assembly_gradle_pkg", ) java_proto_library( @@ -126,7 +126,6 @@ load( "nodejs_gapic_library", ) - ############################################################################## # Ruby ############################################################################## diff --git a/third_party/googleapis/google/identity/accesscontextmanager/v1/BUILD.bazel b/third_party/googleapis/google/identity/accesscontextmanager/v1/BUILD.bazel index b4feecca9..8d4ec7b24 100644 --- a/third_party/googleapis/google/identity/accesscontextmanager/v1/BUILD.bazel +++ b/third_party/googleapis/google/identity/accesscontextmanager/v1/BUILD.bazel @@ -28,9 +28,9 @@ proto_library( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", + "java_gapic_assembly_gradle_pkg", "java_grpc_library", "java_proto_library", - "java_gapic_assembly_gradle_pkg", ) java_proto_library( diff --git a/third_party/googleapis/google/logging/artman_logging.yaml b/third_party/googleapis/google/logging/artman_logging.yaml deleted file mode 100644 index 78a26ab37..000000000 --- a/third_party/googleapis/google/logging/artman_logging.yaml +++ /dev/null @@ -1,33 +0,0 @@ -common: - api_name: logging - api_version: v2 - organization_name: google-cloud - proto_deps: - - name: google-common-protos - src_proto_paths: - - type - - v2 - service_yaml: v2/logging.yaml - gapic_yaml: v2/logging_gapic.yaml - proto_package: google.logging.v2 -artifacts: -- name: gapic_config - type: GAPIC_CONFIG -- name: java_gapic - type: GAPIC - language: JAVA -- name: python_gapic - type: GAPIC - language: PYTHON -- name: nodejs_gapic - type: GAPIC - language: NODEJS -- name: php_gapic - type: GAPIC - language: PHP -- name: go_gapic - type: GAPIC - language: GO -- name: ruby_gapic - type: GAPIC - language: RUBY diff --git a/third_party/googleapis/google/logging/type/BUILD.bazel b/third_party/googleapis/google/logging/type/BUILD.bazel index 9bfcc10cd..e634f7eb3 100644 --- a/third_party/googleapis/google/logging/type/BUILD.bazel +++ b/third_party/googleapis/google/logging/type/BUILD.bazel @@ -162,4 +162,20 @@ csharp_grpc_library( ############################################################################## # C++ ############################################################################## -# Put your C++ code here +load( + "@com_google_googleapis_imports//:imports.bzl", + "cc_grpc_library", + "cc_proto_library", +) + +cc_proto_library( + name = "type_cc_proto", + deps = [":type_proto"], +) + +cc_grpc_library( + name = "type_cc_grpc", + srcs = [":type_proto"], + grpc_only = True, + deps = [":type_cc_proto"], +) diff --git a/third_party/googleapis/google/logging/type/http_request.proto b/third_party/googleapis/google/logging/type/http_request.proto index d5fd76c39..d34fe7be4 100644 --- a/third_party/googleapis/google/logging/type/http_request.proto +++ b/third_party/googleapis/google/logging/type/http_request.proto @@ -57,11 +57,13 @@ message HttpRequest { string user_agent = 6; // The IP address (IPv4 or IPv6) of the client that issued the HTTP - // request. Examples: `"192.168.1.1"`, `"FE80::0202:B3FF:FE1E:8329"`. + // request. This field can include port information. Examples: + // `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`. string remote_ip = 7; // The IP address (IPv4 or IPv6) of the origin server that the request was - // sent to. + // sent to. This field can include port information. Examples: + // `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`. string server_ip = 13; // The referer URL of the request, as defined in diff --git a/third_party/googleapis/google/logging/v2/BUILD.bazel b/third_party/googleapis/google/logging/v2/BUILD.bazel index d671d1c56..2bee9fb25 100644 --- a/third_party/googleapis/google/logging/v2/BUILD.bazel +++ b/third_party/googleapis/google/logging/v2/BUILD.bazel @@ -78,11 +78,9 @@ java_grpc_library( java_gapic_library( name = "logging_java_gapic", - src = ":logging_proto_with_info", + srcs = [":logging_proto_with_info"], gapic_yaml = "logging_gapic.yaml", grpc_service_config = "logging_grpc_service_config.json", - package = "google.logging.v2", - service_yaml = "logging.yaml", test_deps = [ ":logging_java_grpc", ], @@ -172,19 +170,20 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( name = "logging_py_gapic", srcs = [":logging_proto"], - opt_args = ["python-gapic-namespace=google.cloud", "python-gapic-name=logging"], grpc_service_config = "logging_grpc_service_config.json", + opt_args = [ + "python-gapic-namespace=google.cloud", + "python-gapic-name=logging", + ], ) # Open Source Packages @@ -254,6 +253,7 @@ nodejs_gapic_library( package_name = "@google-cloud/logging", src = ":logging_proto_with_info", bundle_config = "logging_gapic.yaml", + extra_protoc_parameters = ["metadata"], grpc_service_config = "logging_grpc_service_config.json", main_service = "logging", package = "google.logging.v2", @@ -275,7 +275,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -291,13 +291,21 @@ ruby_grpc_library( deps = [":logging_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "logging_ruby_gapic", - src = ":logging_proto_with_info", - gapic_yaml = "logging_gapic.yaml", + srcs = [":logging_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-logging-v2", + "ruby-cloud-env-prefix=LOGGING", + "ruby-cloud-product-url=https://cloud.google.com/logging", + "ruby-cloud-api-id=logging.googleapis.com", + "ruby-cloud-api-shortname=logging", + "ruby-cloud-service-override=ConfigServiceV2=ConfigService;LoggingServiceV2=LoggingService;MetricsServiceV2=MetricsService", + "ruby-cloud-yard-strict=false", + ], grpc_service_config = "logging_grpc_service_config.json", - package = "google.logging.v2", - service_yaml = "logging.yaml", + ruby_cloud_description = "The Cloud Logging API lets you programmatically read and write log entries, set up exclusions, create logs-based metrics, and manage export sinks.", + ruby_cloud_title = "Cloud Logging V2", deps = [ ":logging_ruby_grpc", ":logging_ruby_proto", @@ -339,8 +347,8 @@ csharp_grpc_library( csharp_gapic_library( name = "logging_csharp_gapic", srcs = [":logging_proto_with_info"], - grpc_service_config = "logging_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "logging_grpc_service_config.json", deps = [ ":logging_csharp_grpc", ":logging_csharp_proto", @@ -360,4 +368,20 @@ csharp_gapic_assembly_pkg( ############################################################################## # C++ ############################################################################## -# Put your C++ rules here +load( + "@com_google_googleapis_imports//:imports.bzl", + "cc_grpc_library", + "cc_proto_library", +) + +cc_proto_library( + name = "logging_cc_proto", + deps = [":logging_proto"], +) + +cc_grpc_library( + name = "logging_cc_grpc", + srcs = [":logging_proto"], + grpc_only = True, + deps = [":logging_cc_proto"], +) diff --git a/third_party/googleapis/google/logging/v2/logging.proto b/third_party/googleapis/google/logging/v2/logging.proto index 58647b92f..f8b01a71e 100644 --- a/third_party/googleapis/google/logging/v2/logging.proto +++ b/third_party/googleapis/google/logging/v2/logging.proto @@ -125,6 +125,15 @@ service LoggingServiceV2 { }; option (google.api.method_signature) = "parent"; } + + // Streaming read of log entries as they are ingested. Until the stream is + // terminated, it will continue reading logs. + rpc TailLogEntries(stream TailLogEntriesRequest) returns (stream TailLogEntriesResponse) { + option (google.api.http) = { + post: "/v2/entries:tail" + body: "*" + }; + } } // The parameters to DeleteLog. @@ -254,6 +263,11 @@ message ListLogEntriesRequest { // "billingAccounts/[BILLING_ACCOUNT_ID]" // "folders/[FOLDER_ID]" // + // May alternatively be one or more views + // projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] + // organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] + // billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] + // folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] // // Projects listed in the `project_ids` field are added to this list. repeated string resource_names = 8 [ @@ -363,6 +377,19 @@ message ListLogsRequest { // `nextPageToken` from the previous response. The values of other method // parameters should be identical to those in the previous call. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The resource name that owns the logs: + // projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] + // organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] + // billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] + // folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] + // + // To support legacy queries, it could also be: + // "projects/[PROJECT_ID]" + // "organizations/[ORGANIZATION_ID]" + // "billingAccounts/[BILLING_ACCOUNT_ID]" + // "folders/[FOLDER_ID]" + repeated string resource_names = 8 [(google.api.field_behavior) = OPTIONAL]; } // Result returned from ListLogs. @@ -377,3 +404,75 @@ message ListLogsResponse { // method again using the value of `nextPageToken` as `pageToken`. string next_page_token = 2; } + +// The parameters to `TailLogEntries`. +message TailLogEntriesRequest { + // Required. Name of a parent resource from which to retrieve log entries: + // + // "projects/[PROJECT_ID]" + // "organizations/[ORGANIZATION_ID]" + // "billingAccounts/[BILLING_ACCOUNT_ID]" + // "folders/[FOLDER_ID]" + // + // May alternatively be one or more views: + // "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" + // "organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" + // "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" + // "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" + repeated string resource_names = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. A filter that chooses which log entries to return. See [Advanced + // Logs Filters](https://cloud.google.com/logging/docs/view/advanced_filters). + // Only log entries that match the filter are returned. An empty filter + // matches all log entries in the resources listed in `resource_names`. + // Referencing a parent resource that is not in `resource_names` will cause + // the filter to return no results. The maximum length of the filter is 20000 + // characters. + string filter = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The amount of time to buffer log entries at the server before + // being returned to prevent out of order results due to late arriving log + // entries. Valid values are between 0-60000 milliseconds. Defaults to 2000 + // milliseconds. + google.protobuf.Duration buffer_window = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Result returned from `TailLogEntries`. +message TailLogEntriesResponse { + // Information about entries that were omitted from the session. + message SuppressionInfo { + // An indicator of why entries were omitted. + enum Reason { + // Unexpected default. + REASON_UNSPECIFIED = 0; + + // Indicates suppression occurred due to relevant entries being + // received in excess of rate limits. For quotas and limits, see + // [Logging API quotas and + // limits](https://cloud.google.com/logging/quotas#api-limits). + RATE_LIMIT = 1; + + // Indicates suppression occurred due to the client not consuming + // responses quickly enough. + NOT_CONSUMED = 2; + } + + // The reason that entries were omitted from the session. + Reason reason = 1; + + // A lower bound on the count of entries omitted due to `reason`. + int32 suppressed_count = 2; + } + + // A list of log entries. Each response in the stream will order entries with + // increasing values of `LogEntry.timestamp`. Ordering is not guaranteed + // between separate responses. + repeated LogEntry entries = 1; + + // If entries that otherwise would have been included in the session were not + // sent back to the client, counts of relevant entries omitted from the + // session with the reason that they were not included. There will be at most + // one of each reason per response. The counts represent the number of + // suppressed entries since the last streamed response. + repeated SuppressionInfo suppression_info = 2; +} diff --git a/third_party/googleapis/google/logging/v2/logging.yaml b/third_party/googleapis/google/logging/v2/logging.yaml index 9e0c9e7d4..5f90e52c7 100644 --- a/third_party/googleapis/google/logging/v2/logging.yaml +++ b/third_party/googleapis/google/logging/v2/logging.yaml @@ -26,6 +26,8 @@ backend: deadline: 60.0 - selector: google.logging.v2.LoggingServiceV2.ListLogEntries deadline: 10.0 + - selector: google.logging.v2.LoggingServiceV2.TailLogEntries + deadline: 3600.0 - selector: 'google.logging.v2.MetricsServiceV2.*' deadline: 60.0 @@ -64,6 +66,13 @@ authentication: https://www.googleapis.com/auth/cloud-platform.read-only, https://www.googleapis.com/auth/logging.admin, https://www.googleapis.com/auth/logging.read + - selector: google.logging.v2.ConfigServiceV2.GetView + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/cloud-platform.read-only, + https://www.googleapis.com/auth/logging.admin, + https://www.googleapis.com/auth/logging.read - selector: google.logging.v2.ConfigServiceV2.ListBuckets oauth: canonical_scopes: |- @@ -85,6 +94,13 @@ authentication: https://www.googleapis.com/auth/cloud-platform.read-only, https://www.googleapis.com/auth/logging.admin, https://www.googleapis.com/auth/logging.read + - selector: google.logging.v2.ConfigServiceV2.ListViews + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/cloud-platform.read-only, + https://www.googleapis.com/auth/logging.admin, + https://www.googleapis.com/auth/logging.read - selector: 'google.logging.v2.LoggingServiceV2.*' oauth: canonical_scopes: |- diff --git a/third_party/googleapis/google/logging/v2/logging_config.proto b/third_party/googleapis/google/logging/v2/logging_config.proto index 9486f4a9a..9b10932d6 100644 --- a/third_party/googleapis/google/logging/v2/logging_config.proto +++ b/third_party/googleapis/google/logging/v2/logging_config.proto @@ -55,7 +55,7 @@ service ConfigServiceV2 { "https://www.googleapis.com/auth/logging.admin," "https://www.googleapis.com/auth/logging.read"; - // Lists buckets (Beta). + // Lists buckets. rpc ListBuckets(ListBucketsRequest) returns (ListBucketsResponse) { option (google.api.http) = { get: "/v2/{parent=*/*/locations/*}/buckets" @@ -75,7 +75,7 @@ service ConfigServiceV2 { option (google.api.method_signature) = "parent"; } - // Gets a bucket (Beta). + // Gets a bucket. rpc GetBucket(GetBucketRequest) returns (LogBucket) { option (google.api.http) = { get: "/v2/{name=*/*/locations/*/buckets/*}" @@ -94,6 +94,31 @@ service ConfigServiceV2 { }; } + // Creates a bucket that can be used to store log entries. Once a bucket has + // been created, the region cannot be changed. + rpc CreateBucket(CreateBucketRequest) returns (LogBucket) { + option (google.api.http) = { + post: "/v2/{parent=*/*/locations/*}/buckets" + body: "bucket" + additional_bindings { + post: "/v2/{parent=projects/*/locations/*}/buckets" + body: "bucket" + } + additional_bindings { + post: "/v2/{parent=organizations/*/locations/*}/buckets" + body: "bucket" + } + additional_bindings { + post: "/v2/{parent=folders/*/locations/*}/buckets" + body: "bucket" + } + additional_bindings { + post: "/v2/{parent=billingAccounts/*/locations/*}/buckets" + body: "bucket" + } + }; + } + // Updates a bucket. This method replaces the following fields in the // existing bucket with values from the new bucket: `retention_period` // @@ -104,7 +129,6 @@ service ConfigServiceV2 { // will be returned. // // A buckets region may not be modified after it is created. - // This method is in Beta. rpc UpdateBucket(UpdateBucketRequest) returns (LogBucket) { option (google.api.http) = { patch: "/v2/{name=*/*/locations/*/buckets/*}" @@ -128,6 +152,161 @@ service ConfigServiceV2 { }; } + // Deletes a bucket. + // Moves the bucket to the DELETE_REQUESTED state. After 7 days, the + // bucket will be purged and all logs in the bucket will be permanently + // deleted. + rpc DeleteBucket(DeleteBucketRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v2/{name=*/*/locations/*/buckets/*}" + additional_bindings { + delete: "/v2/{name=projects/*/locations/*/buckets/*}" + } + additional_bindings { + delete: "/v2/{name=organizations/*/locations/*/buckets/*}" + } + additional_bindings { + delete: "/v2/{name=folders/*/locations/*/buckets/*}" + } + additional_bindings { + delete: "/v2/{name=billingAccounts/*/locations/*/buckets/*}" + } + }; + } + + // Undeletes a bucket. A bucket that has been deleted may be undeleted within + // the grace period of 7 days. + rpc UndeleteBucket(UndeleteBucketRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v2/{name=*/*/locations/*/buckets/*}:undelete" + body: "*" + additional_bindings { + post: "/v2/{name=projects/*/locations/*/buckets/*}:undelete" + body: "*" + } + additional_bindings { + post: "/v2/{name=organizations/*/locations/*/buckets/*}:undelete" + body: "*" + } + additional_bindings { + post: "/v2/{name=folders/*/locations/*/buckets/*}:undelete" + body: "*" + } + additional_bindings { + post: "/v2/{name=billingAccounts/*/locations/*/buckets/*}:undelete" + body: "*" + } + }; + } + + // Lists views on a bucket. + rpc ListViews(ListViewsRequest) returns (ListViewsResponse) { + option (google.api.http) = { + get: "/v2/{parent=*/*/locations/*/buckets/*}/views" + additional_bindings { + get: "/v2/{parent=projects/*/locations/*/buckets/*}/views" + } + additional_bindings { + get: "/v2/{parent=organizations/*/locations/*/buckets/*}/views" + } + additional_bindings { + get: "/v2/{parent=folders/*/locations/*/buckets/*}/views" + } + additional_bindings { + get: "/v2/{parent=billingAccounts/*/locations/*/buckets/*}/views" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Gets a view. + rpc GetView(GetViewRequest) returns (LogView) { + option (google.api.http) = { + get: "/v2/{name=*/*/locations/*/buckets/*/views/*}" + additional_bindings { + get: "/v2/{name=projects/*/locations/*/buckets/*/views/*}" + } + additional_bindings { + get: "/v2/{name=organizations/*/locations/*/buckets/*/views/*}" + } + additional_bindings { + get: "/v2/{name=folders/*/locations/*/buckets/*/views/*}" + } + additional_bindings { + get: "/v2/{name=billingAccounts/*/buckets/*/views/*}" + } + }; + } + + // Creates a view over logs in a bucket. A bucket may contain a maximum of + // 50 views. + rpc CreateView(CreateViewRequest) returns (LogView) { + option (google.api.http) = { + post: "/v2/{parent=*/*/locations/*/buckets/*}/views" + body: "view" + additional_bindings { + post: "/v2/{parent=projects/*/locations/*/buckets/*}/views" + body: "view" + } + additional_bindings { + post: "/v2/{parent=organizations/*/locations/*/buckets/*}/views" + body: "view" + } + additional_bindings { + post: "/v2/{parent=folders/*/locations/*/buckets/*}/views" + body: "view" + } + additional_bindings { + post: "/v2/{parent=billingAccounts/*/locations/*/buckets/*}/views" + body: "view" + } + }; + } + + // Updates a view. This method replaces the following fields in the existing + // view with values from the new view: `filter`. + rpc UpdateView(UpdateViewRequest) returns (LogView) { + option (google.api.http) = { + patch: "/v2/{name=*/*/locations/*/buckets/*/views/*}" + body: "view" + additional_bindings { + patch: "/v2/{name=projects/*/locations/*/buckets/*/views/*}" + body: "view" + } + additional_bindings { + patch: "/v2/{name=organizations/*/locations/*/buckets/*/views/*}" + body: "view" + } + additional_bindings { + patch: "/v2/{name=folders/*/locations/*/buckets/*/views/*}" + body: "view" + } + additional_bindings { + patch: "/v2/{name=billingAccounts/*/locations/*/buckets/*/views/*}" + body: "view" + } + }; + } + + // Deletes a view from a bucket. + rpc DeleteView(DeleteViewRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v2/{name=*/*/locations/*/buckets/*/views/*}" + additional_bindings { + delete: "/v2/{name=projects/*/locations/*/buckets/*/views/*}" + } + additional_bindings { + delete: "/v2/{name=organizations/*/locations/*/buckets/*/views/*}" + } + additional_bindings { + delete: "/v2/{name=folders/*/locations/*/buckets/*/views/*}" + } + additional_bindings { + delete: "/v2/{name=billingAccounts/*/locations/*/buckets/*/views/*}" + } + }; + } + // Lists sinks. rpc ListSinks(ListSinksRequest) returns (ListSinksResponse) { option (google.api.http) = { @@ -420,7 +599,7 @@ service ConfigServiceV2 { } } -// Describes a repository of logs (Beta). +// Describes a repository of logs. message LogBucket { option (google.api.resource) = { type: "logging.googleapis.com/LogBucket" @@ -435,7 +614,6 @@ message LogBucket { // "projects/my-project-id/locations/my-location/buckets/my-bucket-id The // supported locations are: // "global" - // "us-central1" // // For the location of `global` it is unspecified where logs are actually // stored. @@ -458,10 +636,63 @@ message LogBucket { // 30 days will be used. int32 retention_days = 11; + // Whether the bucket has been locked. + // The retention period on a locked bucket may not be changed. + // Locked buckets may only be deleted if they are empty. + bool locked = 9; + // Output only. The bucket lifecycle state. LifecycleState lifecycle_state = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; } +// LogBucket lifecycle states. +enum LifecycleState { + // Unspecified state. This is only used/useful for distinguishing + // unset values. + LIFECYCLE_STATE_UNSPECIFIED = 0; + + // The normal and active state. + ACTIVE = 1; + + // The bucket has been marked for deletion by the user. + DELETE_REQUESTED = 2; +} + +// Describes a view over logs in a bucket. +message LogView { + option (google.api.resource) = { + type: "logging.googleapis.com/LogView" + pattern: "projects/{project}/locations/{location}/buckets/{bucket}/views/{view}" + pattern: "organizations/{organization}/locations/{location}/buckets/{bucket}/views/{view}" + pattern: "folders/{folder}/locations/{location}/buckets/{bucket}/views/{view}" + pattern: "billingAccounts/{billing_account}/locations/{location}/buckets/{bucket}/views/{view}" + }; + + // The resource name of the view. + // For example + // "projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view + string name = 1; + + // Describes this view. + string description = 3; + + // Output only. The creation timestamp of the view. + google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The last update timestamp of the view. + google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Filter that restricts which log entries in a bucket are visible in this + // view. Filters are restricted to be a logical AND of ==/!= of any of the + // following: + // originating project/folder/organization/billing account. + // resource type + // log id + // Example: SOURCE("projects/myproject") AND resource.type = "gce_instance" + // AND LOG_ID("stdout") + string filter = 7; +} + // Describes a sink used to export log entries to one of the following // destinations in any project: a Cloud Storage bucket, a BigQuery dataset, or a // Cloud Pub/Sub topic. A logs filter controls which log entries are exported. @@ -529,10 +760,15 @@ message LogSink { // export any log entries. bool disabled = 19 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Log entries that match any of the exclusion filters will not be exported. + // If a log entry is matched by both `filter` and one of `exclusion_filters` + // it will not be exported. + repeated LogExclusion exclusions = 16 [(google.api.field_behavior) = OPTIONAL]; + // Deprecated. This field is unused. VersionFormat output_version_format = 6 [deprecated = true]; - // Output only. An IAM identity–a service account or group—under which Logging + // Output only. An IAM identity—a service account or group—under which Logging // writes the exported log entries to the sink's destination. This field is // set by [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] and // [sinks.update][google.logging.v2.ConfigServiceV2.UpdateSink] based on the @@ -599,20 +835,7 @@ message BigQueryOptions { bool uses_timestamp_column_partitioning = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; } -// LogBucket lifecycle states (Beta). -enum LifecycleState { - // Unspecified state. This is only used/useful for distinguishing - // unset values. - LIFECYCLE_STATE_UNSPECIFIED = 0; - - // The normal and active state. - ACTIVE = 1; - - // The bucket has been marked for deletion by the user. - DELETE_REQUESTED = 2; -} - -// The parameters to `ListBuckets` (Beta). +// The parameters to `ListBuckets`. message ListBucketsRequest { // Required. The parent resource whose buckets are to be listed: // @@ -643,7 +866,7 @@ message ListBucketsRequest { int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; } -// The response from ListBuckets (Beta). +// The response from ListBuckets. message ListBucketsResponse { // A list of buckets. repeated LogBucket buckets = 1; @@ -654,7 +877,32 @@ message ListBucketsResponse { string next_page_token = 2; } -// The parameters to `UpdateBucket` (Beta). +// The parameters to `CreateBucket`. +message CreateBucketRequest { + // Required. The resource in which to create the bucket: + // + // "projects/[PROJECT_ID]/locations/[LOCATION_ID]" + // + // Example: `"projects/my-logging-project/locations/global"` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "logging.googleapis.com/LogBucket" + } + ]; + + // Required. A client-assigned identifier such as `"my-bucket"`. Identifiers are + // limited to 100 characters and can include only letters, digits, + // underscores, hyphens, and periods. + string bucket_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The new bucket. The region specified in the new bucket must be compliant + // with any Location Restriction Org Policy. The name field in the bucket is + // ignored. + LogBucket bucket = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// The parameters to `UpdateBucket`. message UpdateBucketRequest { // Required. The full resource name of the bucket to update. // @@ -688,7 +936,7 @@ message UpdateBucketRequest { google.protobuf.FieldMask update_mask = 4 [(google.api.field_behavior) = REQUIRED]; } -// The parameters to `GetBucket` (Beta). +// The parameters to `GetBucket`. message GetBucketRequest { // Required. The resource name of the bucket: // @@ -707,6 +955,147 @@ message GetBucketRequest { ]; } +// The parameters to `DeleteBucket`. +message DeleteBucketRequest { + // Required. The full resource name of the bucket to delete. + // + // "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + // "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + // "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + // "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + // + // Example: + // `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "logging.googleapis.com/LogBucket" + } + ]; +} + +// The parameters to `UndeleteBucket`. +message UndeleteBucketRequest { + // Required. The full resource name of the bucket to undelete. + // + // "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + // "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + // "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + // "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + // + // Example: + // `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "logging.googleapis.com/LogBucket" + } + ]; +} + +// The parameters to `ListViews`. +message ListViewsRequest { + // Required. The bucket whose views are to be listed: + // + // "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + string parent = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. If present, then retrieve the next batch of results from the + // preceding call to this method. `pageToken` must be the value of + // `nextPageToken` from the previous response. The values of other method + // parameters should be identical to those in the previous call. + string page_token = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The maximum number of results to return from this request. + // Non-positive values are ignored. The presence of `nextPageToken` in the + // response indicates that more results might be available. + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response from ListViews. +message ListViewsResponse { + // A list of views. + repeated LogView views = 1; + + // If there might be more results than appear in this response, then + // `nextPageToken` is included. To get the next set of results, call the same + // method again using the value of `nextPageToken` as `pageToken`. + string next_page_token = 2; +} + +// The parameters to `CreateView`. +message CreateViewRequest { + // Required. The bucket in which to create the view + // + // "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + // + // Example: + // `"projects/my-logging-project/locations/my-location/buckets/my-bucket"` + string parent = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The id to use for this view. + string view_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The new view. + LogView view = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// The parameters to `UpdateView`. +message UpdateViewRequest { + // Required. The full resource name of the view to update + // + // "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" + // + // Example: + // `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The updated view. + LogView view = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Field mask that specifies the fields in `view` that need + // an update. A field will be overwritten if, and only if, it is + // in the update mask. `name` and output only fields cannot be updated. + // + // For a detailed `FieldMask` definition, see + // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask + // + // Example: `updateMask=filter`. + google.protobuf.FieldMask update_mask = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// The parameters to `GetView`. +message GetViewRequest { + // Required. The resource name of the policy: + // + // "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" + // + // Example: + // `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "logging.googleapis.com/LogView" + } + ]; +} + +// The parameters to `DeleteView`. +message DeleteViewRequest { + // Required. The full resource name of the view to delete: + // + // "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" + // + // Example: + // `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "logging.googleapis.com/LogView" + } + ]; +} + // The parameters to `ListSinks`. message ListSinksRequest { // Required. The parent resource whose sinks are to be listed: diff --git a/third_party/googleapis/google/logging/v2/logging_gapic.legacy.yaml b/third_party/googleapis/google/logging/v2/logging_gapic.legacy.yaml deleted file mode 100644 index dbc7c9237..000000000 --- a/third_party/googleapis/google/logging/v2/logging_gapic.legacy.yaml +++ /dev/null @@ -1,572 +0,0 @@ -type: com.google.api.codegen.ConfigProto -config_schema_version: 1.0.0 -language_settings: - java: - package_name: com.google.cloud.logging.v2 - interface_names: - google.logging.v2.ConfigServiceV2: Config - google.logging.v2.LoggingServiceV2: Logging - google.logging.v2.MetricsServiceV2: Metrics - python: - package_name: google.cloud.logging_v2.gapic - go: - package_name: cloud.google.com/go/logging/apiv2 - domain_layer_location: cloud.google.com/go/logging - csharp: - package_name: Google.Cloud.Logging.V2 - release_level: GA - ruby: - package_name: Google::Cloud::Logging::V2 - php: - package_name: Google\Cloud\Logging\V2 - nodejs: - package_name: logging.v2 - domain_layer_location: google-cloud -collections: -- name_pattern: projects/{project} - entity_name: project - # C#: Already GA, do not use common resource name for 'project' -- name_pattern: "projects/{project}/logs/{log}" - entity_name: log - language_overrides: - - language: java - entity_name: project_log -- name_pattern: "projects/{project}/sinks/{sink}" - entity_name: sink - language_overrides: - - language: java - entity_name: project_sink -- name_pattern: projects/{project}/metrics/{metric} - entity_name: metric - language_overrides: - - language: java - entity_name: project_metric -- name_pattern: "projects/{project}/exclusions/{exclusion}" - entity_name: exclusion - language_overrides: - - language: java - entity_name: project_exclusion -- name_pattern: organizations/{organization} - entity_name: organization -- name_pattern: organizations/{organization}/logs/{log} - entity_name: organization_log -- name_pattern: organizations/{organization}/sinks/{sink} - entity_name: organization_sink -- name_pattern: organizations/{organization}/exclusions/{exclusion} - entity_name: organization_exclusion -- name_pattern: folders/{folder} - entity_name: folder -- name_pattern: folders/{folder}/logs/{log} - entity_name: folder_log -- name_pattern: folders/{folder}/sinks/{sink} - entity_name: folder_sink -- name_pattern: folders/{folder}/exclusions/{exclusion} - entity_name: folder_exclusion -- name_pattern: billingAccounts/{billing_account} - entity_name: billing -- name_pattern: billingAccounts/{billing_account}/logs/{log} - entity_name: billing_log -- name_pattern: billingAccounts/{billing_account}/sinks/{sink} - entity_name: billing_sink -- name_pattern: billingAccounts/{billing_account}/exclusions/{exclusion} - entity_name: billing_exclusion -collection_oneofs: -- oneof_name: parent_oneof - collection_names: - - project - - organization - - folder - - billing -- oneof_name: sink_oneof - collection_names: - - sink - - organization_sink - - folder_sink - - billing_sink -- oneof_name: exclusion_oneof - collection_names: - - exclusion - - organization_exclusion - - folder_exclusion - - billing_exclusion -- oneof_name: log_oneof - collection_names: - - log - - organization_log - - folder_log - - billing_log -- oneof_name: metric_oneof - collection_names: - - metric -interfaces: -- name: google.logging.v2.ConfigServiceV2 - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - INTERNAL - - name: non_idempotent - retry_codes: [] - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - - name: write_sink - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - methods: - - name: ListSinks - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - page_streaming: - request: - token_field: page_token - page_size_field: page_size - response: - token_field: next_page_token - resources_field: sinks - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - field_name_patterns: - parent: parent_oneof - resource_name_treatment: STATIC_TYPES - - name: GetSink - flattening: - groups: - - parameters: - - sink_name - required_fields: - - sink_name - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - field_name_patterns: - sink_name: sink_oneof - resource_name_treatment: STATIC_TYPES - - name: CreateSink - flattening: - groups: - - parameters: - - parent - - sink - required_fields: - - parent - - sink - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 120000 - field_name_patterns: - parent: parent_oneof - resource_name_treatment: STATIC_TYPES - - name: UpdateSink - flattening: - groups: - - parameters: - - sink_name - - sink - - update_mask - - parameters: - - sink_name - - sink - required_fields: - - sink_name - - sink - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 120000 - field_name_patterns: - sink_name: sink_oneof - resource_name_treatment: STATIC_TYPES - - name: DeleteSink - flattening: - groups: - - parameters: - - sink_name - required_fields: - - sink_name - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - field_name_patterns: - sink_name: sink_oneof - resource_name_treatment: STATIC_TYPES - - name: ListExclusions - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - page_streaming: - request: - token_field: page_token - page_size_field: page_size - response: - token_field: next_page_token - resources_field: exclusions - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - field_name_patterns: - parent: parent_oneof - resource_name_treatment: STATIC_TYPES - - name: GetExclusion - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - field_name_patterns: - name: exclusion_oneof - resource_name_treatment: STATIC_TYPES - - name: CreateExclusion - flattening: - groups: - - parameters: - - parent - - exclusion - required_fields: - - parent - - exclusion - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 60000 - field_name_patterns: - parent: parent_oneof - resource_name_treatment: STATIC_TYPES - - name: UpdateExclusion - flattening: - groups: - - parameters: - - name - - exclusion - - update_mask - required_fields: - - name - - exclusion - - update_mask - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 60000 - field_name_patterns: - name: exclusion_oneof - resource_name_treatment: STATIC_TYPES - - name: DeleteExclusion - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - field_name_patterns: - name: exclusion_oneof - resource_name_treatment: STATIC_TYPES -- name: google.logging.v2.MetricsServiceV2 - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - INTERNAL - - name: non_idempotent - retry_codes: [] - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - methods: - - name: ListLogMetrics - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - page_streaming: - request: - token_field: page_token - page_size_field: page_size - response: - token_field: next_page_token - resources_field: metrics - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - field_name_patterns: - parent: parent_oneof - resource_name_treatment: STATIC_TYPES - - name: GetLogMetric - flattening: - groups: - - parameters: - - metric_name - required_fields: - - metric_name - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - field_name_patterns: - metric_name: metric_oneof - resource_name_treatment: STATIC_TYPES - - name: CreateLogMetric - flattening: - groups: - - parameters: - - parent - - metric - required_fields: - - parent - - metric - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 60000 - field_name_patterns: - parent: parent_oneof - resource_name_treatment: STATIC_TYPES - - name: UpdateLogMetric - flattening: - groups: - - parameters: - - metric_name - - metric - required_fields: - - metric_name - - metric - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - field_name_patterns: - metric_name: metric_oneof - resource_name_treatment: STATIC_TYPES - - name: DeleteLogMetric - flattening: - groups: - - parameters: - - metric_name - required_fields: - - metric_name - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - field_name_patterns: - metric_name: metric_oneof - resource_name_treatment: STATIC_TYPES -- name: google.logging.v2.LoggingServiceV2 - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - INTERNAL - - name: non_idempotent - retry_codes: [] - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - - name: list - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - methods: - - name: DeleteLog - flattening: - groups: - - parameters: - - log_name - required_fields: - - log_name - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - field_name_patterns: - log_name: log_oneof - resource_name_treatment: STATIC_TYPES - - name: WriteLogEntries - flattening: - groups: - - parameters: - - log_name - - resource - - labels - - entries - required_fields: - - entries - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - field_name_patterns: - log_name: log_oneof - resource_name_treatment: STATIC_TYPES - batching: - thresholds: - element_count_threshold: 1000 - request_byte_threshold: 1048576 # 1 MiB - delay_threshold_millis: 50 - flow_control_element_limit: 100000 - flow_control_byte_limit: 10485760 # 10 MiB - flow_control_limit_exceeded_behavior: THROW_EXCEPTION - batch_descriptor: - batched_field: entries - discriminator_fields: - - log_name - - resource - - labels - - name: ListLogEntries - flattening: - groups: - - parameters: - - resource_names - - filter - - order_by - required_fields: - - resource_names - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: entries - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 10000 - field_name_patterns: - resource_names: parent_oneof - resource_name_treatment: STATIC_TYPES - - name: ListMonitoredResourceDescriptors - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: resource_descriptors - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: ListLogs - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: log_names - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: parent_oneof - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES -resource_name_generation: -- message_name: LogMetric - field_entity_map: - name: metric_oneof -- message_name: DeleteLogRequest - field_entity_map: - log_name: log_oneof -- message_name: WriteLogEntriesRequest - field_entity_map: - log_name: log_oneof -- message_name: ListLogEntriesRequest - field_entity_map: - resource_names: parent_oneof -- message_name: LogEntry - field_entity_map: - log_name: log_oneof -- message_name: LogSink - field_entity_map: - destination: "*" -- message_name: ListSinksRequest - field_entity_map: - parent: parent_oneof -- message_name: GetSinkRequest - field_entity_map: - sink_name: sink_oneof -- message_name: CreateSinkRequest - field_entity_map: - parent: parent_oneof -- message_name: UpdateSinkRequest - field_entity_map: - sink_name: sink_oneof -- message_name: DeleteSinkRequest - field_entity_map: - sink_name: sink_oneof -- message_name: ListLogMetricsRequest - field_entity_map: - parent: parent_oneof -- message_name: GetLogMetricRequest - field_entity_map: - metric_name: metric_oneof -- message_name: CreateLogMetricRequest - field_entity_map: - parent: parent_oneof -- message_name: UpdateLogMetricRequest - field_entity_map: - metric_name: metric_oneof -- message_name: DeleteLogMetricRequest - field_entity_map: - metric_name: metric_oneof -- message_name: ListLogsRequest - field_entity_map: - parent: parent_oneof -- message_name: ListExclusionsRequest - field_entity_map: - parent: parent_oneof -- message_name: GetExclusionRequest - field_entity_map: - name: exclusion_oneof -- message_name: CreateExclusionRequest - field_entity_map: - parent: parent_oneof -- message_name: UpdateExclusionRequest - field_entity_map: - name: exclusion_oneof -- message_name: DeleteExclusionRequest - field_entity_map: - name: exclusion_oneof diff --git a/third_party/googleapis/google/logging/v2/logging_metrics.proto b/third_party/googleapis/google/logging/v2/logging_metrics.proto index eb9f73ffa..09d629648 100644 --- a/third_party/googleapis/google/logging/v2/logging_metrics.proto +++ b/third_party/googleapis/google/logging/v2/logging_metrics.proto @@ -92,8 +92,8 @@ service MetricsServiceV2 { // Describes a logs-based metric. The value of the metric is the number of log // entries that match a logs filter in a given time interval. // -// Logs-based metric can also be used to extract values from logs and create a -// a distribution of the values. The distribution records the statistics of the +// Logs-based metrics can also be used to extract values from logs and create a +// distribution of the values. The distribution records the statistics of the // extracted values along with an optional histogram of the values as specified // by the bucket options. message LogMetric { diff --git a/third_party/googleapis/google/longrunning/longrunning.yaml b/third_party/googleapis/google/longrunning/longrunning.yaml index ffb6bf3b0..9e240efe8 100644 --- a/third_party/googleapis/google/longrunning/longrunning.yaml +++ b/third_party/googleapis/google/longrunning/longrunning.yaml @@ -1,5 +1,5 @@ type: google.api.Service -config_version: 1 +config_version: 3 name: longrunning.googleapis.com title: Long Running Operations API @@ -17,6 +17,7 @@ documentation: interface. It is a standard interface that API services can implement for managing asynchronous operations. + ## What are Long Running Operations? A Long Running Operation (LRO) is a way of representing an action that may @@ -26,6 +27,8 @@ documentation: thumb is to think of LROs as "API promises" that represent the result of some on-going action. + For more information, see [AIP-151](https://google.aip.dev/151). + ## Using LROs If an API method could potentially take long time to finish, the method @@ -49,19 +52,20 @@ documentation: called `CreateOperation`. This also means that any permissions on the operation would be based on - action it represents. Any immediate side effects of starting the operation - must be visible in the service as soon as the LRO is returned. For - example, if an LRO is returned when creating a resource, that resource + the action it represents. Any immediate side effects of starting the + operation must be visible in the service as soon as the LRO is returned. + For example, if an LRO is returned when creating a resource, that resource should be visible in the API immediately, but be in a non-final state until the LRO is completed. ## LROs versus Jobs - A job is a common design pattern often used in data processing that tends - to be used to represent some contained piece of work that would be stored, - re-run, and modified over time. Jobs also typically interact with multiple - resources and are created, deleted, and updated directly as independent - resources. + A [job](https://google.aip.dev/152) is a common design pattern often used + in data processing that tends to be used to represent some contained piece + of work that would be stored, re-run, and modified over time. Jobs also + typically + interact with multiple resources and are created, deleted, and updated + directly as independent resources. Jobs can also offer support for more complex actions such as pausing and resuming an individual job, where each action could return an LRO as a diff --git a/third_party/googleapis/google/longrunning/longrunning_gapic.legacy.yaml b/third_party/googleapis/google/longrunning/longrunning_gapic.legacy.yaml deleted file mode 100644 index acd110f63..000000000 --- a/third_party/googleapis/google/longrunning/longrunning_gapic.legacy.yaml +++ /dev/null @@ -1,100 +0,0 @@ -type: com.google.api.codegen.ConfigProto -config_schema_version: 1.0.0 -language_settings: - java: - package_name: com.google.longrunning - python: - package_name: google.longrunning.gapic - go: - package_name: cloud.google.com/go/longrunning/autogen - domain_layer_location: cloud.google.com/go/longrunning - csharp: - package_name: Google.LongRunning - ruby: - package_name: Google::Longrunning - php: - package_name: Google\ApiCore\LongRunning - nodejs: - package_name: longrunning -interfaces: -- name: google.longrunning.Operations - required_constructor_params: - - service_address - - scopes - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 90000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 90000 - total_timeout_millis: 600000 - methods: - - name: GetOperation - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - - name: ListOperations - flattening: - groups: - - parameters: - - name - - filter - required_fields: - - name - - filter - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: operations - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - - name: CancelOperation - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - - name: DeleteOperation - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - - name: WaitOperation - surface_treatments: - - include_languages: - - go - - java - - csharp - - ruby - - nodejs - - python - - php - visibility: DISABLED diff --git a/third_party/googleapis/google/longrunning/operations.proto b/third_party/googleapis/google/longrunning/operations.proto index 299eefb2e..c1fdc6f52 100644 --- a/third_party/googleapis/google/longrunning/operations.proto +++ b/third_party/googleapis/google/longrunning/operations.proto @@ -1,4 +1,4 @@ -// Copyright 2019 Google LLC. +// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -110,9 +110,9 @@ service Operations { option (google.api.method_signature) = "name"; } - // Waits for the specified long-running operation until it is done or reaches - // at most a specified timeout, returning the latest state. If the operation - // is already done, the latest state is immediately returned. If the timeout + // Waits until the specified long-running operation is done or reaches at most + // a specified timeout, returning the latest state. If the operation is + // already done, the latest state is immediately returned. If the timeout // specified is greater than the default HTTP/RPC timeout, the HTTP/RPC // timeout is used. If the server does not support this method, it returns // `google.rpc.Code.UNIMPLEMENTED`. diff --git a/third_party/googleapis/google/maps/playablelocations/v3/BUILD.bazel b/third_party/googleapis/google/maps/playablelocations/v3/BUILD.bazel index 5a1b8a383..727d54cd4 100644 --- a/third_party/googleapis/google/maps/playablelocations/v3/BUILD.bazel +++ b/third_party/googleapis/google/maps/playablelocations/v3/BUILD.bazel @@ -64,10 +64,8 @@ java_grpc_library( java_gapic_library( name = "playablelocations_java_gapic", - src = ":playablelocations_proto_with_info", - gapic_yaml = "playablelocations_gapic.yaml", - package = "google.maps.playablelocations.v3", - service_yaml = "playablelocations_v3.yaml", + srcs = [":playablelocations_proto_with_info"], + grpc_service_config = "playablelocations_grpc_service_config.json", test_deps = [ ":playablelocations_java_grpc", ], @@ -204,6 +202,7 @@ load( nodejs_gapic_library( name = "playablelocations_nodejs_gapic", src = ":playablelocations_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "playablelocations_grpc_service_config.json", package = "google.maps.playablelocations.v3", service_yaml = "playablelocations_v3.yaml", @@ -287,8 +286,8 @@ csharp_grpc_library( csharp_gapic_library( name = "playablelocations_csharp_gapic", srcs = [":playablelocations_proto_with_info"], - grpc_service_config = "playablelocations_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "playablelocations_grpc_service_config.json", deps = [ ":playablelocations_csharp_grpc", ":playablelocations_csharp_proto", diff --git a/third_party/googleapis/google/maps/playablelocations/v3/playablelocations_gapic.yaml b/third_party/googleapis/google/maps/playablelocations/v3/playablelocations_gapic.yaml index a82504b5f..b395135c7 100644 --- a/third_party/googleapis/google/maps/playablelocations/v3/playablelocations_gapic.yaml +++ b/third_party/googleapis/google/maps/playablelocations/v3/playablelocations_gapic.yaml @@ -1,8 +1,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 language_settings: - java: - package_name: com.google.maps.playablelocations.v3 go: package_name: developers.google.com/maps/go/playablelocations/v3 csharp: diff --git a/third_party/googleapis/google/maps/roads/v1op/BUILD.bazel b/third_party/googleapis/google/maps/roads/v1op/BUILD.bazel index 36b8444c8..35850c2a9 100644 --- a/third_party/googleapis/google/maps/roads/v1op/BUILD.bazel +++ b/third_party/googleapis/google/maps/roads/v1op/BUILD.bazel @@ -57,10 +57,9 @@ java_grpc_library( java_gapic_library( name = "roads_java_gapic", - src = ":roads_proto_with_info", + srcs = [":roads_proto_with_info"], gapic_yaml = "roads_gapic.yaml", - package = "google.maps.roads.v1op", - service_yaml = "roads_v1op.yaml", + grpc_service_config = "roads_grpc_service_config.json", test_deps = [ ":roads_java_grpc", ], @@ -69,6 +68,12 @@ java_gapic_library( ], ) +java_gapic_test( + name = "roads_java_gapic_test_suite", + test_classes = ["com.google.maps.roads.v1op.RoadsServiceClientTest"], + runtime_deps = ["roads_java_gapic_test"], +) + # Open Source Packages java_gapic_assembly_gradle_pkg( name = "google-maps-roads-v1op-java", @@ -143,32 +148,12 @@ load( "@com_google_googleapis_imports//:imports.bzl", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -py_proto_library( - name = "roads_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":roads_proto"], -) - -py_grpc_library( - name = "roads_py_grpc", - srcs = [":roads_proto"], - deps = [":roads_py_proto"], ) py_gapic_library( name = "roads_py_gapic", - src = ":roads_proto_with_info", - gapic_yaml = "roads_gapic.yaml", - package = "google.maps.roads.v1op", - service_yaml = "roads_v1op.yaml", - deps = [ - ":roads_py_grpc", - ":roads_py_proto", - ], + srcs = [":roads_proto"], + grpc_service_config = "roads_grpc_service_config.json", ) # Open Source Packages @@ -176,8 +161,6 @@ py_gapic_assembly_pkg( name = "roads-v1op-py", deps = [ ":roads_py_gapic", - ":roads_py_grpc", - ":roads_py_proto", ], ) @@ -243,6 +226,7 @@ load( nodejs_gapic_library( name = "roads_nodejs_gapic", src = ":roads_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "roads_grpc_service_config.json", package = "google.maps.roads.v1op", service_yaml = "roads_v1op.yaml", @@ -326,8 +310,8 @@ csharp_grpc_library( csharp_gapic_library( name = "roads_csharp_gapic", srcs = [":roads_proto_with_info"], - grpc_service_config = "roads_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "roads_grpc_service_config.json", deps = [ ":roads_csharp_grpc", ":roads_csharp_proto", diff --git a/third_party/googleapis/google/maps/roads/v1op/roads.proto b/third_party/googleapis/google/maps/roads/v1op/roads.proto index fd019e1e4..e1a93718c 100644 --- a/third_party/googleapis/google/maps/roads/v1op/roads.proto +++ b/third_party/googleapis/google/maps/roads/v1op/roads.proto @@ -33,12 +33,16 @@ service RoadsService { // This method takes a sequence of latitude,longitude points and snaps them to // the most likely road segments. Optionally returns additional points giving // the full road geometry. Also returns a place ID for each snapped point. - rpc SnapToRoads(SnapToRoadsRequest) returns (SnapToRoadsResponse) {} + rpc SnapToRoads(SnapToRoadsRequest) returns (SnapToRoadsResponse) { + option (google.api.method_signature) = "path"; + } // This method takes a list of latitude,longitude points and snaps them each // to their nearest road. Also returns a place ID for each snapped point. rpc ListNearestRoads(ListNearestRoadsRequest) - returns (ListNearestRoadsResponse) {} + returns (ListNearestRoadsResponse) { + option (google.api.method_signature) = "points"; + } } // A request to the SnapToRoads method, requesting that a sequence of points be diff --git a/third_party/googleapis/google/maps/roads/v1op/roads_gapic.yaml b/third_party/googleapis/google/maps/roads/v1op/roads_gapic.yaml index d7ff6a249..24ab85be3 100644 --- a/third_party/googleapis/google/maps/roads/v1op/roads_gapic.yaml +++ b/third_party/googleapis/google/maps/roads/v1op/roads_gapic.yaml @@ -1,8 +1,6 @@ type: com.google.api.codegen.ConfigProto -config_schema_version: 1.0.0 +config_schema_version: 2.0.0 language_settings: - java: - package_name: com.google.maps.roads.v1op python: package_name: google.maps.roads.v1op.gapic go: @@ -16,35 +14,3 @@ language_settings: nodejs: package_name: roads.v1op domain_layer_location: googlemaps # becomes @googlemaps/roads -interfaces: -- name: google.maps.roads.v1op.RoadsService - collections: [] - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 60000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 60000 - total_timeout_millis: 600000 - methods: - - name: SnapToRoads - required_fields: - - path - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - - name: ListNearestRoads - required_fields: - - points - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 diff --git a/third_party/googleapis/google/maps/routes/v1/BUILD.bazel b/third_party/googleapis/google/maps/routes/v1/BUILD.bazel index e2fc7c328..796dcd290 100644 --- a/third_party/googleapis/google/maps/routes/v1/BUILD.bazel +++ b/third_party/googleapis/google/maps/routes/v1/BUILD.bazel @@ -34,6 +34,7 @@ proto_library( "//google/type:latlng_proto", "//google/type:money_proto", "@com_google_protobuf//:duration_proto", + "@com_google_protobuf//:struct_proto", "@com_google_protobuf//:timestamp_proto", "@com_google_protobuf//:wrappers_proto", ], @@ -105,38 +106,13 @@ go_proto_library( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", - "py_grpc_library", - "py_proto_library", + "py_gapic_library", ) -moved_proto_library( - name = "routes_moved_proto", +py_gapic_library( + name = "routes_py_gapic", srcs = [":routes_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/geo/type:viewport_proto", - "//google/rpc:status_proto", - "//google/type:latlng_proto", - "//google/type:money_proto", - "@com_google_protobuf//:duration_proto", - "@com_google_protobuf//:timestamp_proto", - "@com_google_protobuf//:wrappers_proto", - ], -) - -py_proto_library( - name = "routes_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":routes_moved_proto"], -) - -py_grpc_library( - name = "routes_py_grpc", - srcs = [":routes_moved_proto"], - deps = [":routes_py_proto"], + grpc_service_config = "routes_grpc_service_config.json", ) ############################################################################## @@ -162,6 +138,11 @@ php_grpc_library( ############################################################################## # Node.js ############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", +) ############################################################################## # Ruby diff --git a/third_party/googleapis/google/maps/routes/v1/compute_route_matrix_request.proto b/third_party/googleapis/google/maps/routes/v1/compute_route_matrix_request.proto index e9a60fe89..b0dc48d1f 100644 --- a/third_party/googleapis/google/maps/routes/v1/compute_route_matrix_request.proto +++ b/third_party/googleapis/google/maps/routes/v1/compute_route_matrix_request.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -33,6 +33,15 @@ option php_namespace = "Google\\Maps\\Routes\\V1"; // ComputeRouteMatrix request message message ComputeRouteMatrixRequest { // Required. Array of origins, which determines the rows of the response matrix. + // Several size restrictions apply to the cardinality of origins and + // destinations: + // + // * The number of elements (origins × destinations) must be no greater than + // 625 in any case. + // * The number of elements (origins × destinations) must be no greater than + // 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. + // * The number of waypoints (origins + destinations) specified as `place_id` + // must be no greater than 50. repeated RouteMatrixOrigin origins = 1 [(google.api.field_behavior) = REQUIRED]; // Required. Array of destinations, which determines the columns of the response matrix. diff --git a/third_party/googleapis/google/maps/routes/v1/compute_routes_request.proto b/third_party/googleapis/google/maps/routes/v1/compute_routes_request.proto index 88be1bf7c..229a60fa3 100644 --- a/third_party/googleapis/google/maps/routes/v1/compute_routes_request.proto +++ b/third_party/googleapis/google/maps/routes/v1/compute_routes_request.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/maps/routes/v1/compute_routes_response.proto b/third_party/googleapis/google/maps/routes/v1/compute_routes_response.proto index cf74d8389..7c500bcfd 100644 --- a/third_party/googleapis/google/maps/routes/v1/compute_routes_response.proto +++ b/third_party/googleapis/google/maps/routes/v1/compute_routes_response.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/maps/routes/v1/fallback_info.proto b/third_party/googleapis/google/maps/routes/v1/fallback_info.proto index 6a00d5333..55d0d6ae2 100644 --- a/third_party/googleapis/google/maps/routes/v1/fallback_info.proto +++ b/third_party/googleapis/google/maps/routes/v1/fallback_info.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/maps/routes/v1/polyline.proto b/third_party/googleapis/google/maps/routes/v1/polyline.proto index 53806b4b0..938de2a0b 100644 --- a/third_party/googleapis/google/maps/routes/v1/polyline.proto +++ b/third_party/googleapis/google/maps/routes/v1/polyline.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,6 +16,8 @@ syntax = "proto3"; package google.maps.routes.v1; +import "google/protobuf/struct.proto"; + option cc_enable_arenas = true; option csharp_namespace = "Google.Maps.Routes.V1"; option go_package = "google.golang.org/genproto/googleapis/maps/routes/v1;routes"; @@ -32,6 +34,10 @@ message Polyline { // The string encoding of the polyline using the [polyline encoding // algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm) string encoded_polyline = 1; + + // Specifies a polyline using the [GeoJSON LineString + // format](https://tools.ietf.org/html/rfc7946#section-3.1.4) + google.protobuf.Struct geo_json_linestring = 2; } } diff --git a/third_party/googleapis/google/maps/routes/v1/route.proto b/third_party/googleapis/google/maps/routes/v1/route.proto index 39cb18a47..b7e0d1337 100644 --- a/third_party/googleapis/google/maps/routes/v1/route.proto +++ b/third_party/googleapis/google/maps/routes/v1/route.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -90,13 +90,15 @@ message RouteTravelAdvisory { TollInfo toll_info = 2; // Speed reading intervals detailing traffic density. Applicable in case of - // TRAFFIC_AWARE and TRAFFIC_AWARE_OPTIMAL routing preferences. + // `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences. // The intervals cover the entire polyline of the route without overlaps, i.e. // the start point of a given interval coincides with the end point of the // preceding interval. + // // Example: - // polyline: A ---- B ---- C ---- D ---- E ---- F ---- G - // speed_reading_intervals: [A,C), [C,D), [D,G). + // + // polyline: A ---- B ---- C ---- D ---- E ---- F ---- G + // speed_reading_intervals: [A,C), [C,D), [D,G). repeated SpeedReadingInterval speed_reading_intervals = 3; } @@ -109,6 +111,34 @@ message RouteLegTravelAdvisory { // we expect that road contains tolls but we do not know an estimated price. // If this field does not exist, then there is no toll on the RouteLeg. TollInfo toll_info = 1; + + // Speed reading intervals detailing traffic density. Applicable in case of + // `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences. + // The intervals cover the entire polyline of the RouteLg without overlaps, + // i.e. the start point of a given interval coincides with the end point of + // the preceding interval. + // + // Example: + // + // polyline: A ---- B ---- C ---- D ---- E ---- F ---- G + // speed_reading_intervals: [A,C), [C,D), [D,G). + repeated SpeedReadingInterval speed_reading_intervals = 2; +} + +// Encapsulates the additional information that the user should be informed +// about, such as possible traffic zone restriction etc. on a leg step. +message RouteLegStepTravelAdvisory { + // Speed reading intervals detailing traffic density. Applicable in case of + // `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences. + // The intervals cover the entire polyline of the RouteLegStep without + // overlaps, i.e. the start point of a given interval coincides with the end + // point of the preceding interval. + // + // Example: + // + // polyline: A ---- B ---- C ---- D ---- E ---- F ---- G + // speed_reading_intervals: [A,C), [C,D), [D,G). + repeated SpeedReadingInterval speed_reading_intervals = 1; } // Encapsulates the traffic restriction applied to the route. As of October @@ -200,6 +230,10 @@ message RouteLegStep { // Navigation instructions. NavigationInstruction navigation_instruction = 6; + + // Encapsulates the additional information that the user should be informed + // about, such as possible traffic zone restriction etc. on a leg step. + RouteLegStepTravelAdvisory travel_advisory = 7; } message NavigationInstruction { diff --git a/third_party/googleapis/google/maps/routes/v1/route_matrix_element.proto b/third_party/googleapis/google/maps/routes/v1/route_matrix_element.proto index 2e05c1138..351491bd6 100644 --- a/third_party/googleapis/google/maps/routes/v1/route_matrix_element.proto +++ b/third_party/googleapis/google/maps/routes/v1/route_matrix_element.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -73,7 +73,7 @@ message RouteMatrixElement { // The condition of the route being returned. enum RouteMatrixElementCondition { - // Not used. + // Only used when the `status` of the element is not OK. ROUTE_MATRIX_ELEMENT_CONDITION_UNSPECIFIED = 0; // A route was found, and the corresponding information was filled out for the @@ -81,6 +81,6 @@ enum RouteMatrixElementCondition { ROUTE_EXISTS = 1; // No route could be found. Fields containing route information, such as - // distance_meters or duration, will not be filled out in the element. + // `distance_meters` or `duration`, will not be filled out in the element. ROUTE_NOT_FOUND = 2; } diff --git a/third_party/googleapis/google/maps/routes/v1/route_service.proto b/third_party/googleapis/google/maps/routes/v1/route_service.proto index 602ba9280..c3a6cc725 100644 --- a/third_party/googleapis/google/maps/routes/v1/route_service.proto +++ b/third_party/googleapis/google/maps/routes/v1/route_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -17,8 +17,10 @@ syntax = "proto3"; package google.maps.routes.v1; import "google/api/annotations.proto"; +import "google/maps/routes/v1/compute_route_matrix_request.proto"; import "google/maps/routes/v1/compute_routes_request.proto"; import "google/maps/routes/v1/compute_routes_response.proto"; +import "google/maps/routes/v1/route_matrix_element.proto"; import "google/api/client.proto"; option cc_enable_arenas = true; @@ -33,6 +35,8 @@ option php_namespace = "Google\\Maps\\Routes\\V1"; // The Routes Preferred API. service RoutesPreferred { option (google.api.default_host) = "routespreferred.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/maps-platform.routespreferred"; // Returns the primary route along with optional alternate routes, given a set // of terminal and intermediate waypoints. @@ -74,5 +78,50 @@ service RoutesPreferred { post: "/v1:computeRoutes" body: "*" }; + + option (google.api.method_signature) = "origin,destination"; + } + + // Takes in a list of origins and destinations and returns a stream containing + // route information for each combination of origin and destination. + // + // **NOTE:** This method requires that you specify a response field mask in + // the input. You can provide the response field mask by using the URL + // parameter `$fields` or `fields`, or by using the HTTP/gRPC header + // `X-Goog-FieldMask` (see the [available URL parameters and + // headers](https://cloud.google.com/apis/docs/system-parameters). The value + // is a comma separated list of field paths. See this detailed documentation + // about [how to construct the field + // paths](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/field_mask.proto). + // + // For example, in this method: + // + // * Field mask of all available fields (for manual inspection): + // `X-Goog-FieldMask: *` + // * Field mask of route durations, distances, element status, condition, and + // element indices (an example production setup): + // `X-Goog-FieldMask: + // originIndex,destinationIndex,status,condition,distanceMeters,duration` + // + // It is critical that you include `status` in your field mask as otherwise + // all messages will appear to be OK. Google discourages the use of the + // wildcard (`*`) response field mask, because: + // + // * Selecting only the fields that you need helps our server save computation + // cycles, allowing us to return the result to you with a lower latency. + // * Selecting only the fields that you need in your production job ensures + // stable latency performance. We might add more response fields in the + // future, and those new fields might require extra computation time. If you + // select all fields, or if you select all fields at the top level, then you + // might experience performance degradation because any new field we add will + // be automatically included in the response. + // * Selecting only the fields that you need results in a smaller response + // size, and thus higher network throughput. + rpc ComputeRouteMatrix(ComputeRouteMatrixRequest) + returns (stream RouteMatrixElement) { + option (google.api.http) = { + post: "/v1:computeRouteMatrix" + body: "*" + }; } } diff --git a/third_party/googleapis/google/maps/routes/v1/routes_grpc_service_config.json b/third_party/googleapis/google/maps/routes/v1/routes_grpc_service_config.json new file mode 100644 index 000000000..4f0d92ac8 --- /dev/null +++ b/third_party/googleapis/google/maps/routes/v1/routes_grpc_service_config.json @@ -0,0 +1,8 @@ +{ + "methodConfig": [ + { + "name": [{"service": "google.maps.routes.v1.RoutesPreferred" }], + "timeout": "60s" + } + ] +} diff --git a/third_party/googleapis/google/maps/routes/v1/routespreferred.yaml b/third_party/googleapis/google/maps/routes/v1/routespreferred.yaml index 939a4bd84..09615e021 100644 --- a/third_party/googleapis/google/maps/routes/v1/routespreferred.yaml +++ b/third_party/googleapis/google/maps/routes/v1/routespreferred.yaml @@ -6,3 +6,22 @@ title: Routes Preferred API apis: - name: google.maps.routes.v1.RoutesPreferred - name: google.maps.routes.v1alpha.RoutesAlpha + +authentication: + rules: + - selector: google.maps.routes.v1.RoutesPreferred.ComputeRouteMatrix + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/maps-platform.routespreferred + - selector: google.maps.routes.v1.RoutesPreferred.ComputeRoutes + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/maps-platform.routespreferred + - selector: google.maps.routes.v1alpha.RoutesAlpha.ComputeRouteMatrix + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/maps-platform.routespreferred + - selector: google.maps.routes.v1alpha.RoutesAlpha.ComputeRoutes + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/maps-platform.routespreferred diff --git a/third_party/googleapis/google/maps/routes/v1/toll_passes.proto b/third_party/googleapis/google/maps/routes/v1/toll_passes.proto index f823e9d63..893ef1b5c 100644 --- a/third_party/googleapis/google/maps/routes/v1/toll_passes.proto +++ b/third_party/googleapis/google/maps/routes/v1/toll_passes.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,4 +36,7 @@ enum TollPass { // Australia-wide toll pass. // See additional details at https://www.linkt.com.au/. AU_LINKT = 2; + + // Argentina toll pass. See additional details at https://telepase.com.ar + AR_TELEPASE = 3; } diff --git a/third_party/googleapis/google/maps/routes/v1/vehicle_emission_type.proto b/third_party/googleapis/google/maps/routes/v1/vehicle_emission_type.proto index 79f578909..36efeee02 100644 --- a/third_party/googleapis/google/maps/routes/v1/vehicle_emission_type.proto +++ b/third_party/googleapis/google/maps/routes/v1/vehicle_emission_type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/maps/routes/v1/waypoint.proto b/third_party/googleapis/google/maps/routes/v1/waypoint.proto index df606f4e1..dcf485b6d 100644 --- a/third_party/googleapis/google/maps/routes/v1/waypoint.proto +++ b/third_party/googleapis/google/maps/routes/v1/waypoint.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/maps/routes/v1alpha/route_service.proto b/third_party/googleapis/google/maps/routes/v1alpha/route_service.proto index 7babfb4a8..57fd036c1 100644 --- a/third_party/googleapis/google/maps/routes/v1alpha/route_service.proto +++ b/third_party/googleapis/google/maps/routes/v1alpha/route_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -35,6 +35,7 @@ option php_namespace = "Google\\Maps\\Routes\\V1alpha"; // The Routes Preferred API. service RoutesAlpha { option (google.api.default_host) = "routespreferred.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/maps-platform.routespreferred"; // Returns the primary route along with optional alternate routes, given a set // of terminal and intermediate waypoints. @@ -93,13 +94,14 @@ service RoutesAlpha { // // * Field mask of all available fields (for manual inspection): // `X-Goog-FieldMask: *` - // * Field mask of route durations, distances, element status, and element - // indices (an example production setup): + // * Field mask of route durations, distances, element status, condition, and + // element indices (an example production setup): // `X-Goog-FieldMask: - // originIndex,destinationIndex,status,distanceMeters,duration` + // originIndex,destinationIndex,status,condition,distanceMeters,duration` // - // Google discourages the use of the wildcard (`*`) response field mask, - // because: + // It is critical that you include `status` in your field mask as otherwise + // all messages will appear to be OK. Google discourages the use of the + // wildcard (`*`) response field mask, because: // // * Selecting only the fields that you need helps our server save computation // cycles, allowing us to return the result to you with a lower latency. diff --git a/third_party/googleapis/google/maps/routespreferred/v1/BUILD.bazel b/third_party/googleapis/google/maps/routespreferred/v1/BUILD.bazel index 3f063176f..f62e86db3 100644 --- a/third_party/googleapis/google/maps/routespreferred/v1/BUILD.bazel +++ b/third_party/googleapis/google/maps/routespreferred/v1/BUILD.bazel @@ -34,10 +34,9 @@ load( java_gapic_library( name = "routespreferred_java_gapic", - src = ":routes_proto_with_info", + srcs = [":routes_proto_with_info"], gapic_yaml = "routespreferred_gapic.yaml", - package = "google.maps.routespreferred.v1", - service_yaml = "routespreferred_v1.yaml", + grpc_service_config = "//google/maps/routes/v1:routes_grpc_service_config.json", test_deps = [ "//google/maps/routes/v1:routes_java_grpc", ], diff --git a/third_party/googleapis/google/maps/routespreferred/v1/routespreferred_gapic.yaml b/third_party/googleapis/google/maps/routespreferred/v1/routespreferred_gapic.yaml index 1d2a10060..ac3147bc5 100644 --- a/third_party/googleapis/google/maps/routespreferred/v1/routespreferred_gapic.yaml +++ b/third_party/googleapis/google/maps/routespreferred/v1/routespreferred_gapic.yaml @@ -1,33 +1,7 @@ type: com.google.api.codegen.ConfigProto -config_schema_version: 1.0.0 +config_schema_version: 2.0.0 language_settings: java: package_name: com.google.maps.routespreferred.v1 go: package_name: developers.google.com/maps/go/routespreferred/v1 -interfaces: -- name: google.maps.routes.v1.RoutesPreferred - collections: [] - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 30000 - initial_rpc_timeout_millis: 30000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 30000 - total_timeout_millis: 300000 - methods: - - name: ComputeRoutes - required_fields: - - origin - - destination - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 30000 diff --git a/third_party/googleapis/google/maps/routespreferred/v1/routespreferred_grpc_service_config.json b/third_party/googleapis/google/maps/routespreferred/v1/routespreferred_grpc_service_config.json new file mode 100644 index 000000000..b55ded82d --- /dev/null +++ b/third_party/googleapis/google/maps/routespreferred/v1/routespreferred_grpc_service_config.json @@ -0,0 +1,14 @@ +{ + "methodConfig": [{ + "name": [{ "service": "google.maps.routespreferred.v1.RoutesPreferred" }], + "timeout": "30s", + "retryPolicy": { + "maxAttempts": 5, + "initialBackoff": "1s", + "maxBackoff": "30s", + "backoffMultiplier": 1.3, + "retryableStatusCodes": ["UNAVAILABLE"] + } + } + ] +} diff --git a/third_party/googleapis/google/monitoring/dashboard/v1/BUILD.bazel b/third_party/googleapis/google/monitoring/dashboard/v1/BUILD.bazel index bb4b521fd..9d7d144ba 100644 --- a/third_party/googleapis/google/monitoring/dashboard/v1/BUILD.bazel +++ b/third_party/googleapis/google/monitoring/dashboard/v1/BUILD.bazel @@ -70,11 +70,9 @@ java_grpc_library( java_gapic_library( name = "dashboard_java_gapic", - src = ":dashboard_proto_with_info", + srcs = [":dashboard_proto_with_info"], gapic_yaml = "monitoring_gapic.yaml", grpc_service_config = "dashboards_grpc_service_config.json", - package = "google.monitoring.dashboard.v1", - service_yaml = "monitoring.yaml", test_deps = [ ":dashboard_java_grpc", ], @@ -156,12 +154,10 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -235,6 +231,7 @@ nodejs_gapic_library( name = "dashboard_nodejs_gapic", package_name = "@google-cloud/monitoring-dashboards", src = ":dashboard_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "dashboards_grpc_service_config.json", package = "google.monitoring.dashboard.v1", service_yaml = "monitoring.yaml", @@ -255,7 +252,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -271,12 +268,19 @@ ruby_grpc_library( deps = [":dashboard_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "dashboard_ruby_gapic", - src = ":dashboard_proto_with_info", - gapic_yaml = "monitoring_gapic.yaml", - package = "google.monitoring.dashboard.v1", - service_yaml = "monitoring.yaml", + srcs = [":dashboard_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-monitoring-dashboard-v1", + "ruby-cloud-env-prefix=MONITORING_DASHBOARD", + "ruby-cloud-product-url=https://cloud.google.com/monitoring", + "ruby-cloud-api-id=monitoring.googleapis.com", + "ruby-cloud-api-shortname=monitoring", + ], + grpc_service_config = "dashboards_grpc_service_config.json", + ruby_cloud_description = "Cloud Monitoring collects metrics, events, and metadata from Google Cloud, Amazon Web Services (AWS), hosted uptime probes, and application instrumentation. The Dashboards API manages arrangements of display widgets.", + ruby_cloud_title = "Cloud Monitoring Dashboards V1", deps = [ ":dashboard_ruby_grpc", ":dashboard_ruby_proto", @@ -318,8 +322,8 @@ csharp_grpc_library( csharp_gapic_library( name = "dashboard_csharp_gapic", srcs = [":dashboard_proto_with_info"], - grpc_service_config = "dashboards_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "dashboards_grpc_service_config.json", deps = [ ":dashboard_csharp_grpc", ":dashboard_csharp_proto", diff --git a/third_party/googleapis/google/monitoring/v3/BUILD.bazel b/third_party/googleapis/google/monitoring/v3/BUILD.bazel index bea6d61ab..1c5d28ce0 100644 --- a/third_party/googleapis/google/monitoring/v3/BUILD.bazel +++ b/third_party/googleapis/google/monitoring/v3/BUILD.bazel @@ -83,11 +83,9 @@ java_grpc_library( java_gapic_library( name = "monitoring_java_gapic", - src = ":monitoring_proto_with_info", + srcs = [":monitoring_proto_with_info"], gapic_yaml = "monitoring_gapic.yaml", grpc_service_config = "monitoring_grpc_service_config.json", - package = "google.monitoring.v3", - service_yaml = "monitoring.yaml", test_deps = [ ":monitoring_java_grpc", ], @@ -183,19 +181,17 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( name = "monitoring_py_gapic", srcs = [":monitoring_proto"], - opt_args = ["python-gapic-namespace=google.cloud"], grpc_service_config = "monitoring_grpc_service_config.json", + opt_args = ["python-gapic-namespace=google.cloud"], ) py_gapic_assembly_pkg( @@ -263,6 +259,7 @@ nodejs_gapic_library( name = "monitoring_nodejs_gapic", package_name = "@google-cloud/monitoring", src = ":monitoring_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "monitoring_grpc_service_config.json", main_service = "monitoring", package = "google.monitoring.v3", @@ -284,7 +281,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -300,12 +297,19 @@ ruby_grpc_library( deps = [":monitoring_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "monitoring_ruby_gapic", - src = ":monitoring_proto_with_info", - gapic_yaml = "monitoring_gapic.yaml", - package = "google.monitoring.v3", - service_yaml = "monitoring.yaml", + srcs = [":monitoring_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-monitoring-v3", + "ruby-cloud-env-prefix=MONITORING", + "ruby-cloud-product-url=https://cloud.google.com/monitoring", + "ruby-cloud-api-id=monitoring.googleapis.com", + "ruby-cloud-api-shortname=monitoring", + ], + grpc_service_config = "monitoring_grpc_service_config.json", + ruby_cloud_description = "Cloud Monitoring collects metrics, events, and metadata from Google Cloud, Amazon Web Services (AWS), hosted uptime probes, and application instrumentation.", + ruby_cloud_title = "Cloud Monitoring V3", deps = [ ":monitoring_ruby_grpc", ":monitoring_ruby_proto", @@ -347,8 +351,8 @@ csharp_grpc_library( csharp_gapic_library( name = "monitoring_csharp_gapic", srcs = [":monitoring_proto_with_info"], - grpc_service_config = "monitoring_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "monitoring_grpc_service_config.json", deps = [ ":monitoring_csharp_grpc", ":monitoring_csharp_proto", diff --git a/third_party/googleapis/google/monitoring/v3/monitoring_gapic.legacy.yaml b/third_party/googleapis/google/monitoring/v3/monitoring_gapic.legacy.yaml deleted file mode 100644 index 2d869f505..000000000 --- a/third_party/googleapis/google/monitoring/v3/monitoring_gapic.legacy.yaml +++ /dev/null @@ -1,1336 +0,0 @@ -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.monitoring.v3 - release_level: GA - python: - package_name: google.cloud.monitoring_v3.gapic - go: - package_name: cloud.google.com/go/monitoring/apiv3 - csharp: - package_name: Google.Cloud.Monitoring.V3 - release_level: GA - ruby: - package_name: Google::Cloud::Monitoring::V3 - release_level: BETA - php: - package_name: Google\Cloud\Monitoring\V3 - nodejs: - package_name: monitoring.v3 - domain_layer_location: google-cloud -# A list of API interface configurations. -interfaces: -# The fully qualified name of the API interface. -- name: google.monitoring.v3.AlertPolicyService - # 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: - - name_pattern: projects/{project} - entity_name: project - # C#: Already GA, do not use common resource name for 'project' - - name_pattern: projects/{project}/alertPolicies/{alert_policy} - entity_name: alert_policy - - name_pattern: projects/{project}/alertPolicies/{alert_policy}/conditions/{condition} - entity_name: alert_policy_condition - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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. - # - # 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: ListAlertPolicies - flattening: - groups: - - parameters: - - name - required_fields: - - name - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: alert_policies - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: project - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: GetAlertPolicy - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: alert_policy - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: CreateAlertPolicy - flattening: - groups: - - parameters: - - name - - alert_policy - required_fields: - - name - - alert_policy - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: project - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: DeleteAlertPolicy - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: alert_policy - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: UpdateAlertPolicy - flattening: - groups: - - parameters: - - update_mask - - alert_policy - required_fields: - - alert_policy - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - alert_policy.name: alert_policy - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 -# The fully qualified name of the API interface. -- name: google.monitoring.v3.GroupService - # 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: - - name_pattern: projects/{project} - entity_name: project - # C#: Already GA, do not use common resource name for 'project' - - name_pattern: projects/{project}/groups/{group} - entity_name: group - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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. - # - # 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: ListGroups - flattening: - groups: - - parameters: - - name - required_fields: - - name - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: group - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: project - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: GetGroup - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: group - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: CreateGroup - flattening: - groups: - - parameters: - - name - - group - required_fields: - - name - - group - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: project - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: UpdateGroup - flattening: - groups: - - parameters: - - group - required_fields: - - group - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - group.name: group - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: DeleteGroup - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: group - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: ListGroupMembers - flattening: - groups: - - parameters: - - name - required_fields: - - name - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: members - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: group - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 -# The fully qualified name of the API interface. -- name: google.monitoring.v3.MetricService - # 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. - smoke_test: - method: ListMonitoredResourceDescriptors - init_fields: - - name%project=$PROJECT_ID - collections: - - name_pattern: projects/{project} - entity_name: project - # C#: Already GA, do not use common resource name for 'project' - - name_pattern: projects/{project}/metricDescriptors/{metric_descriptor=**} - entity_name: metric_descriptor - - name_pattern: projects/{project}/monitoredResourceDescriptors/{monitored_resource_descriptor} - entity_name: monitored_resource_descriptor - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 30000 - rpc_timeout_multiplier: 1.3 - max_rpc_timeout_millis: 90000 - total_timeout_millis: 600000 - # 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. - # - # 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: ListMonitoredResourceDescriptors - flattening: - groups: - - parameters: - - name - required_fields: - - name - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: resource_descriptors - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: project - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: GetMonitoredResourceDescriptor - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: monitored_resource_descriptor - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: ListMetricDescriptors - flattening: - groups: - - parameters: - - name - required_fields: - - name - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: metric_descriptors - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: project - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: GetMetricDescriptor - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: metric_descriptor - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: CreateMetricDescriptor - flattening: - groups: - - parameters: - - name - - metric_descriptor - required_fields: - - name - - metric_descriptor - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: project - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: DeleteMetricDescriptor - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: metric_descriptor - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: ListTimeSeries - flattening: - groups: - - parameters: - - name - - filter - - interval - - view - required_fields: - - name - - filter - - interval - - view - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: time_series - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: project - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: CreateTimeSeries - flattening: - groups: - - parameters: - - name - - time_series - required_fields: - - name - - time_series - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: project - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 -# The fully qualified name of the API interface. -- name: google.monitoring.v3.NotificationChannelService - # 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: - - name_pattern: projects/{project} - entity_name: project - - name_pattern: projects/{project}/notificationChannelDescriptors/{channel_descriptor} - entity_name: notification_channel_descriptor - # C#: Already GA, do not use common resource name for 'project' - - name_pattern: projects/{project}/notificationChannels/{notification_channel} - entity_name: notification_channel - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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. - # - # 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: ListNotificationChannelDescriptors - flattening: - groups: - - parameters: - - name - required_fields: - - name - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: channel_descriptors - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: project - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: GetNotificationChannelDescriptor - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: notification_channel_descriptor - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: ListNotificationChannels - flattening: - groups: - - parameters: - - name - required_fields: - - name - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: notification_channels - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: project - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: GetNotificationChannel - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: notification_channel - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: CreateNotificationChannel - flattening: - groups: - - parameters: - - name - - notification_channel - required_fields: - - name - - notification_channel - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: project - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: UpdateNotificationChannel - flattening: - groups: - - parameters: - - update_mask - - notification_channel - required_fields: - - notification_channel - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - notification_channel.name: notification_channel - timeout_millis: 60000 - - name: DeleteNotificationChannel - flattening: - groups: - - parameters: - - name - - force - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: notification_channel - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: SendNotificationChannelVerificationCode - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: notification_channel - timeout_millis: 60000 - - name: GetNotificationChannelVerificationCode - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: notification_channel - timeout_millis: 60000 - - name: VerifyNotificationChannel - flattening: - groups: - - parameters: - - name - - code - required_fields: - - name - - code - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: notification_channel - timeout_millis: 60000 -# The fully qualified name of the API interface. -- name: google.monitoring.v3.ServiceMonitoringService - # 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: - - name_pattern: projects/{project} - entity_name: project - - name_pattern: projects/{project}/services/{service} - entity_name: service - - name_pattern: projects/{project}/services/{service}/serviceLevelObjectives/{service_level_objective} - entity_name: service_level_objective - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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. - # - # 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: CreateService - flattening: - groups: - - parameters: - - parent - - service - required_fields: - - parent - - service - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: project - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: GetService - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: service - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: ListServices - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: services - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: project - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: UpdateService - flattening: - groups: - - parameters: - - service - required_fields: - - service - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - service.name: service - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: DeleteService - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: service - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: CreateServiceLevelObjective - flattening: - groups: - - parameters: - - parent - - service_level_objective - required_fields: - - parent - - service_level_objective - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: service - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: GetServiceLevelObjective - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: service_level_objective - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: ListServiceLevelObjectives - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: service_level_objectives - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: service - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: UpdateServiceLevelObjective - flattening: - groups: - - parameters: - - service_level_objective - required_fields: - - service_level_objective - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - service_level_objective.name: service_level_objective - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 - - name: DeleteServiceLevelObjective - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: service_level_objective - resource_name_treatment: STATIC_TYPES - timeout_millis: 60000 -# The fully qualified name of the API interface. -- name: google.monitoring.v3.UptimeCheckService - # 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: - - name_pattern: projects/{project} - entity_name: project - # C#: Already GA, do not use common resource name for 'project' - - name_pattern: projects/{project}/uptimeCheckConfigs/{uptime_check_config} - entity_name: uptime_check_config - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - DEADLINE_EXCEEDED - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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. - # - # 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: ListUptimeCheckConfigs - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: uptime_check_configs - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 60000 - - name: GetUptimeCheckConfig - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: uptime_check_config - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: CreateUptimeCheckConfig - flattening: - groups: - - parameters: - - parent - - uptime_check_config - required_fields: - - parent - - uptime_check_config - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 60000 - - name: UpdateUptimeCheckConfig - flattening: - groups: - - parameters: - - uptime_check_config - required_fields: - - uptime_check_config - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - uptime_check_config.name: uptime_check_config - timeout_millis: 60000 - - name: DeleteUptimeCheckConfig - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: uptime_check_config - timeout_millis: 60000 - resource_name_treatment: STATIC_TYPES - - name: ListUptimeCheckIps - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: uptime_check_ips - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - -resource_name_generation: -- message_name: Group - field_entity_map: - name: group - parent_name: group -- message_name: ListGroupsRequest - field_entity_map: - name: project - children_of_group: group - ancestors_of_group: group - descendants_of_group: group -- message_name: GetGroupRequest - field_entity_map: - name: group -- message_name: CreateGroupRequest - field_entity_map: - name: project -- message_name: DeleteGroupRequest - field_entity_map: - name: group -- message_name: ListGroupMembersRequest - field_entity_map: - name: group -- message_name: ListMonitoredResourceDescriptorsRequest - field_entity_map: - name: project -- message_name: GetMonitoredResourceDescriptorRequest - field_entity_map: - name: monitored_resource_descriptor -- message_name: ListMetricDescriptorsRequest - field_entity_map: - name: project -- message_name: GetMetricDescriptorRequest - field_entity_map: - name: metric_descriptor -- message_name: CreateMetricDescriptorRequest - field_entity_map: - name: project -- message_name: DeleteMetricDescriptorRequest - field_entity_map: - name: metric_descriptor -- message_name: ListTimeSeriesRequest - field_entity_map: - name: project -- message_name: CreateTimeSeriesRequest - field_entity_map: - name: project -- message_name: ListAlertPoliciesRequest - field_entity_map: - name: project -- message_name: GetAlertPolicyRequest - field_entity_map: - name: alert_policy -- message_name: CreateAlertPolicyRequest - field_entity_map: - name: project -- message_name: DeleteAlertPolicyRequest - field_entity_map: - name: alert_policy -- message_name: GetNotificationChannelDescriptorRequest - field_entity_map: - name: notification_channel_descriptor -- message_name: ListNotificationChannelDescriptorsRequest - field_entity_map: - name: project -- message_name: ListNotificationChannelsRequest - field_entity_map: - name: project -- message_name: GetNotificationChannelRequest - field_entity_map: - name: notification_channel -- message_name: CreateNotificationChannelRequest - field_entity_map: - name: project -- message_name: DeleteNotificationChannelRequest - field_entity_map: - name: notification_channel -- message_name: SendNotificationChannelVerificationCodeRequest - field_entity_map: - name: notification_channel -- message_name: GetNotificationChannelVerificationCodeRequest - field_entity_map: - name: notification_channel -- message_name: VerifyNotificationChannelRequest - field_entity_map: - name: notification_channel -- message_name: GetUptimeCheckConfigRequest - field_entity_map: - name: uptime_check_config -- message_name: DeleteUptimeCheckConfigRequest - field_entity_map: - name: uptime_check_config -- message_name: Service - field_entity_map: - name: service -- message_name: ServiceLevelObjective - field_entity_map: - name: service_level_objective -- message_name: CreateServiceRequest - field_entity_map: - parent: project -- message_name: GetServiceRequest - field_entity_map: - name: service -- message_name: ListServicesRequest - field_entity_map: - parent: project -- message_name: UpdateServiceRequest - field_entity_map: - name: service -- message_name: DeleteServiceRequest - field_entity_map: - name: service -- message_name: CreateServiceLevelObjectiveRequest - field_entity_map: - parent: service -- message_name: GetServiceLevelObjectiveRequest - field_entity_map: - name: service_level_objective -- message_name: ListServiceLevelObjectivesRequest - field_entity_map: - parent: service -- message_name: UpdateServiceLevelObjectiveRequest - field_entity_map: - name: service_level_objective -- message_name: DeleteServiceLevelObjectiveRequest - field_entity_map: - name: service_level_objective diff --git a/third_party/googleapis/google/partner/aistreams/v1alpha1/BUILD.bazel b/third_party/googleapis/google/partner/aistreams/v1alpha1/BUILD.bazel index 17b00b1e4..2e39d9bb8 100644 --- a/third_party/googleapis/google/partner/aistreams/v1alpha1/BUILD.bazel +++ b/third_party/googleapis/google/partner/aistreams/v1alpha1/BUILD.bazel @@ -67,11 +67,8 @@ java_grpc_library( java_gapic_library( name = "aistreams_java_gapic", - src = ":aistreams_proto_with_info", - gapic_yaml = "aistreams_gapic.yaml", + srcs = [":aistreams_proto_with_info"], grpc_service_config = "aistreams_grpc_service_config.json", - package = "google.partner.aistreams.v1alpha1", - service_yaml = "aistreams_v1alpha1.yaml", test_deps = [ ":aistreams_java_grpc", ], @@ -129,9 +126,9 @@ go_gapic_library( service_yaml = "aistreams_v1alpha1.yaml", deps = [ ":aistreams_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", ], ) @@ -157,50 +154,14 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "aistreams_moved_proto", - srcs = [":aistreams_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:resource_proto", - "//google/longrunning:operations_proto", - "@com_google_protobuf//:field_mask_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -py_proto_library( - name = "aistreams_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":aistreams_moved_proto"], -) - -py_grpc_library( - name = "aistreams_py_grpc", - srcs = [":aistreams_moved_proto"], - deps = [":aistreams_py_proto"], ) py_gapic_library( name = "aistreams_py_gapic", - src = ":aistreams_proto_with_info", - gapic_yaml = "aistreams_gapic.yaml", + srcs = [":aistreams_proto"], grpc_service_config = "aistreams_grpc_service_config.json", - package = "google.partner.aistreams.v1alpha1", - service_yaml = "aistreams_v1alpha1.yaml", - deps = [ - ":aistreams_py_grpc", - ":aistreams_py_proto", - ], ) # Open Source Packages @@ -208,8 +169,6 @@ py_gapic_assembly_pkg( name = "partner-aistreams-v1alpha1-py", deps = [ ":aistreams_py_gapic", - ":aistreams_py_grpc", - ":aistreams_py_proto", ], ) @@ -270,6 +229,7 @@ load( nodejs_gapic_library( name = "aistreams_nodejs_gapic", src = ":aistreams_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "aistreams_grpc_service_config.json", package = "google.partner.aistreams.v1alpha1", service_yaml = "aistreams_v1alpha1.yaml", diff --git a/third_party/googleapis/google/partner/aistreams/v1alpha1/aistreams_gapic.yaml b/third_party/googleapis/google/partner/aistreams/v1alpha1/aistreams_gapic.yaml index 1dd2428a0..c06b2c6b5 100644 --- a/third_party/googleapis/google/partner/aistreams/v1alpha1/aistreams_gapic.yaml +++ b/third_party/googleapis/google/partner/aistreams/v1alpha1/aistreams_gapic.yaml @@ -1,8 +1,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 language_settings: - java: - package_name: com.google.partner.aistreams.v1alpha1 python: package_name: google.partner.aistreams_v1alpha1.gapic go: diff --git a/third_party/googleapis/google/privacy/dlp/v2/BUILD.bazel b/third_party/googleapis/google/privacy/dlp/v2/BUILD.bazel index 11ad930a6..9ad95fc43 100644 --- a/third_party/googleapis/google/privacy/dlp/v2/BUILD.bazel +++ b/third_party/googleapis/google/privacy/dlp/v2/BUILD.bazel @@ -64,11 +64,9 @@ java_grpc_library( java_gapic_library( name = "dlp_java_gapic", - src = ":dlp_proto_with_info", + srcs = [":dlp_proto_with_info"], gapic_yaml = "dlp_gapic.yaml", grpc_service_config = "dlp_grpc_service_config.json", - package = "google.privacy.dlp.v2", - service_yaml = "dlp_v2.yaml", test_deps = [ ":dlp_java_grpc", ], @@ -153,19 +151,17 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( name = "dlp_py_gapic", srcs = [":dlp_proto"], - opt_args = ["python-gapic-namespace=google.cloud"], grpc_service_config = "dlp_grpc_service_config.json", + opt_args = ["python-gapic-namespace=google.cloud"], ) py_gapic_assembly_pkg( @@ -233,6 +229,7 @@ nodejs_gapic_library( name = "dlp_nodejs_gapic", package_name = "@google-cloud/dlp", src = ":dlp_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "dlp_grpc_service_config.json", package = "google.privacy.dlp.v2", service_yaml = "dlp_v2.yaml", @@ -253,7 +250,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -269,12 +266,19 @@ ruby_grpc_library( deps = [":dlp_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "dlp_ruby_gapic", - src = ":dlp_proto_with_info", - gapic_yaml = "dlp_gapic.yaml", - package = "google.privacy.dlp.v2", - service_yaml = "dlp_v2.yaml", + srcs = [":dlp_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-dlp-v2", + "ruby-cloud-env-prefix=DLP", + "ruby-cloud-product-url=https://cloud.google.com/dlp", + "ruby-cloud-api-id=dlp.googleapis.com", + "ruby-cloud-api-shortname=dlp", + ], + grpc_service_config = "dlp_grpc_service_config.json", + ruby_cloud_description = "Provides methods for detection of privacy-sensitive fragments in text, images, and Google Cloud Platform storage repositories.", + ruby_cloud_title = "Cloud Data Loss Prevention (DLP) V2", deps = [ ":dlp_ruby_grpc", ":dlp_ruby_proto", @@ -316,8 +320,8 @@ csharp_grpc_library( csharp_gapic_library( name = "dlp_csharp_gapic", srcs = [":dlp_proto_with_info"], - grpc_service_config = "dlp_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "dlp_grpc_service_config.json", deps = [ ":dlp_csharp_grpc", ":dlp_csharp_proto", diff --git a/third_party/googleapis/google/privacy/dlp/v2/dlp_gapic.legacy.yaml b/third_party/googleapis/google/privacy/dlp/v2/dlp_gapic.legacy.yaml deleted file mode 100644 index 9357709f2..000000000 --- a/third_party/googleapis/google/privacy/dlp/v2/dlp_gapic.legacy.yaml +++ /dev/null @@ -1,566 +0,0 @@ -type: com.google.api.codegen.ConfigProto -config_schema_version: 1.0.0 -language_settings: - java: - package_name: com.google.cloud.dlp.v2 - python: - package_name: google.cloud.dlp_v2.gapic - go: - package_name: cloud.google.com/go/dlp/apiv2 - release_level: GA - csharp: - package_name: Google.Cloud.Dlp.V2 - ruby: - package_name: Google::Cloud::Dlp::V2 - php: - package_name: Google\Cloud\Dlp\V2 - nodejs: - package_name: dlp.v2 - domain_layer_location: google-cloud -collection_oneofs: -- oneof_name: deidentify_template_oneof - collection_names: - - organization_deidentify_template - - project_deidentify_template -- oneof_name: inspect_template_oneof - collection_names: - - organization_inspect_template - - project_inspect_template -- oneof_name: stored_info_type_oneof - collection_names: - - organization_stored_info_type - - project_stored_info_type -# A list of API interface configurations. -interfaces: -- name: google.privacy.dlp.v2.DlpService - # 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: - - name_pattern: organizations/{organization} - entity_name: organization - language_overrides: - - language: csharp - common_resource_name: Google.Api.Gax.ResourceNames.OrganizationName - - name_pattern: organizations/{organization}/deidentifyTemplates/{deidentify_template} - entity_name: organization_deidentify_template - - name_pattern: projects/{project}/deidentifyTemplates/{deidentify_template} - entity_name: project_deidentify_template - - name_pattern: organizations/{organization}/inspectTemplates/{inspect_template} - entity_name: organization_inspect_template - - name_pattern: projects/{project}/inspectTemplates/{inspect_template} - entity_name: project_inspect_template - - name_pattern: projects/{project}/jobTriggers/{job_trigger} - entity_name: project_job_trigger - - name_pattern: projects/{project} - entity_name: project - language_overrides: - - language: csharp - common_resource_name: Google.Api.Gax.ResourceNames.ProjectName - - name_pattern: projects/{project}/dlpJobs/{dlp_job} - entity_name: dlp_job - - name_pattern: organizations/{organization}/storedInfoTypes/{stored_info_type} - entity_name: organization_stored_info_type - - name_pattern: projects/{project}/storedInfoTypes/{stored_info_type} - entity_name: project_stored_info_type - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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: InspectContent - required_fields: - - parent - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 300000 - - name: RedactImage - required_fields: - - parent - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 300000 - - name: DeidentifyContent - required_fields: - - parent - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 300000 - - name: ReidentifyContent - required_fields: - - parent - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 300000 - - name: ListInfoTypes - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 300000 - - name: CreateInspectTemplate - required_fields: - - parent - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: organization - timeout_millis: 300000 - - name: UpdateInspectTemplate - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: inspect_template_oneof - timeout_millis: 300000 - - name: GetInspectTemplate - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: inspect_template_oneof - timeout_millis: 300000 - - name: ListInspectTemplates - required_fields: - - parent - resource_name_treatment: STATIC_TYPES - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: inspect_templates - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: organization - timeout_millis: 300000 - - name: DeleteInspectTemplate - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: inspect_template_oneof - timeout_millis: 300000 - - name: CreateDeidentifyTemplate - required_fields: - - parent - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: organization - timeout_millis: 300000 - - name: UpdateDeidentifyTemplate - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: deidentify_template_oneof - timeout_millis: 300000 - - name: GetDeidentifyTemplate - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: deidentify_template_oneof - timeout_millis: 300000 - - name: ListDeidentifyTemplates - required_fields: - - parent - resource_name_treatment: STATIC_TYPES - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: deidentify_templates - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: organization - timeout_millis: 300000 - - name: DeleteDeidentifyTemplate - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: deidentify_template_oneof - timeout_millis: 300000 - - name: CreateDlpJob - required_fields: - - parent - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 300000 - - name: ListDlpJobs - required_fields: - - parent - resource_name_treatment: STATIC_TYPES - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: jobs - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 300000 - - name: GetDlpJob - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: dlp_job - timeout_millis: 300000 - - name: DeleteDlpJob - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: dlp_job - timeout_millis: 300000 - - name: CancelDlpJob - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: dlp_job - timeout_millis: 300000 - - name: FinishDlpJob - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: dlp_job - timeout_millis: 300000 - - name: HybridInspectDlpJob - required_fields: - - name - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 300000 - - name: ListJobTriggers - required_fields: - - parent - resource_name_treatment: STATIC_TYPES - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: job_triggers - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 300000 - - name: GetJobTrigger - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: project_job_trigger - timeout_millis: 300000 - - name: DeleteJobTrigger - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 300000 - - name: ActivateJobTrigger - surface_treatments: - - include_languages: - - go - - java - - csharp - - ruby - - nodejs - - python - - php - visibility: DISABLED - - name: HybridInspectJobTrigger - required_fields: - - name - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 300000 - - name: UpdateJobTrigger - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: project_job_trigger - timeout_millis: 300000 - - name: CreateJobTrigger - required_fields: - - parent - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 300000 - - - name: CreateStoredInfoType - required_fields: - - parent - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: organization - timeout_millis: 300000 - - name: UpdateStoredInfoType - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: stored_info_type_oneof - timeout_millis: 300000 - - name: GetStoredInfoType - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: stored_info_type_oneof - timeout_millis: 300000 - - name: ListStoredInfoTypes - required_fields: - - parent - resource_name_treatment: STATIC_TYPES - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: stored_info_types - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: organization - timeout_millis: 300000 - - name: DeleteStoredInfoType - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: stored_info_type_oneof - timeout_millis: 300000 - -resource_name_generation: -- message_name: InspectContentRequest - field_entity_map: - parent: project -- message_name: RedactImageRequest - field_entity_map: - parent: project -- message_name: DeidentifyContentRequest - field_entity_map: - parent: project -- message_name: ReidentifyContentRequest - field_entity_map: - parent: project -- message_name: CreateInspectTemplateRequest - field_entity_map: - parent: organization -- message_name: UpdateInspectTemplateRequest - field_entity_map: - name: inspect_template_oneof -- message_name: GetInspectTemplateRequest - field_entity_map: - name: inspect_template_oneof -- message_name: ListInspectTemplatesRequest - field_entity_map: - parent: organization -- message_name: DeleteInspectTemplateRequest - field_entity_map: - name: inspect_template_oneof -- message_name: CreateDeidentifyTemplateRequest - field_entity_map: - parent: organization -- message_name: UpdateDeidentifyTemplateRequest - field_entity_map: - name: deidentify_template_oneof -- message_name: GetDeidentifyTemplateRequest - field_entity_map: - name: deidentify_template_oneof -- message_name: ListDeidentifyTemplatesRequest - field_entity_map: - parent: organization -- message_name: DeleteDeidentifyTemplateRequest - field_entity_map: - name: deidentify_template_oneof -- message_name: CreateJobTriggerRequest - field_entity_map: - parent: project -- message_name: UpdateJobTriggerRequest - field_entity_map: - name: project_job_trigger -- message_name: GetJobTriggerRequest - field_entity_map: - name: project_job_trigger -- message_name: ListJobTriggersRequest - field_entity_map: - parent: project -- message_name: DeleteJobTriggerRequest - field_entity_map: - name: project_job_trigger -- message_name: CreateDlpJobRequest - field_entity_map: - parent: project -- message_name: ListDlpJobsRequest - field_entity_map: - parent: project -- message_name: GetDlpJobRequest - field_entity_map: - name: dlp_job -- message_name: DeleteDlpJobRequest - field_entity_map: - name: dlp_job -- message_name: CancelDlpJobRequest - field_entity_map: - name: dlp_job -- message_name: FinishDlpJobRequest - field_entity_map: - name: dlp_job -- message_name: CreateStoredInfoTypeRequest - field_entity_map: - parent: organization -- message_name: UpdateStoredInfoTypeRequest - field_entity_map: - name: stored_info_type_oneof -- message_name: GetStoredInfoTypeRequest - field_entity_map: - name: stored_info_type_oneof -- message_name: ListStoredInfoTypesRequest - field_entity_map: - parent: organization -- message_name: DeleteStoredInfoTypeRequest - field_entity_map: - name: stored_info_type_oneof diff --git a/third_party/googleapis/google/pubsub/artman_pubsub.yaml b/third_party/googleapis/google/pubsub/artman_pubsub.yaml deleted file mode 100644 index 0d354412c..000000000 --- a/third_party/googleapis/google/pubsub/artman_pubsub.yaml +++ /dev/null @@ -1,46 +0,0 @@ -common: - api_name: pubsub - api_version: v1 - organization_name: google-cloud - service_yaml: v1/pubsub_v1.yaml - gapic_yaml: v1/pubsub_gapic.yaml - src_proto_paths: - - v1 - proto_deps: - - name: google-common-protos - - name: google-iam-v1 - proto_path: google/iam/v1 - test_proto_deps: - - name: google-iam-v1 - proto_path: google/iam/v1 -artifacts: -- name: java_gapic - type: GAPIC - language: JAVA - release_level: GA -- name: python_gapic - type: GAPIC - language: PYTHON - release_level: GA -- name: php_gapic - type: GAPIC - language: PHP - release_level: GA -- name: ruby_gapic - type: GAPIC - language: RUBY - release_level: BETA -- name: go_gapic - type: GAPIC - language: GO - release_level: GA -- name: csharp_gapic - type: GAPIC - language: CSHARP - release_level: GA -- name: nodejs_gapic - type: GAPIC - language: NODEJS - release_level: GA -- name: gapic_config - type: GAPIC_CONFIG diff --git a/third_party/googleapis/google/pubsub/v1/BUILD.bazel b/third_party/googleapis/google/pubsub/v1/BUILD.bazel index 43a0047c6..2f12c32d1 100644 --- a/third_party/googleapis/google/pubsub/v1/BUILD.bazel +++ b/third_party/googleapis/google/pubsub/v1/BUILD.bazel @@ -10,7 +10,10 @@ load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info") proto_library( name = "pubsub_proto", - srcs = ["pubsub.proto"], + srcs = [ + "pubsub.proto", + "schema.proto", + ], deps = [ "//google/api:annotations_proto", "//google/api:client_proto", @@ -35,15 +38,16 @@ proto_library_with_info( ############################################################################## # Java +# DO NOT OVERRIDE with autogenerated rules if NOT migrated to Java Microgen ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "java_gapic_assembly_gradle_pkg", - "java_gapic_library", - "java_gapic_test", "java_grpc_library", "java_proto_library", - "java_resource_name_proto_library", + java_gapic_assembly_gradle_pkg = "java_gapic_assembly_gradle_pkg_legacy", + java_gapic_library = "java_gapic_library_legacy", + java_gapic_test = "java_gapic_test_legacy", + java_resource_name_proto_library = "java_resource_name_proto_library_legacy", ) java_proto_library( @@ -70,8 +74,8 @@ java_gapic_library( name = "pubsub_java_gapic", src = ":pubsub_proto_with_info", gapic_yaml = "pubsub_gapic.yaml", - grpc_service_config = "pubsub_grpc_service_config.json", gen_resource_name = False, + grpc_service_config = "pubsub_grpc_service_config.json", service_yaml = ":pubsub_v1.yaml", test_deps = [ ":pubsub_java_grpc", @@ -108,19 +112,17 @@ java_gapic_assembly_gradle_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( name = "pubsub_py_gapic", srcs = [":pubsub_proto"], grpc_service_config = "pubsub_grpc_service_config.json", - opt_args = ["add-iam-methods"] + opt_args = ["add-iam-methods"], ) py_gapic_assembly_pkg( @@ -129,6 +131,7 @@ py_gapic_assembly_pkg( ":pubsub_py_gapic", ], ) + ############################################################################## # Go ############################################################################## @@ -235,13 +238,13 @@ nodejs_gapic_library( name = "pubsub_nodejs_gapic", package_name = "@google-cloud/pubsub", src = ":pubsub_proto_with_info", - grpc_service_config = "pubsub_grpc_service_config.json", - service_yaml = ":pubsub_v1.yaml", bundle_config = "pubsub_gapic.yaml", + extra_protoc_parameters = ["template=typescript_gapic"], + grpc_service_config = "pubsub_grpc_service_config.json", + iam_service = "true", main_service = "pubsub", + service_yaml = ":pubsub_v1.yaml", deps = [], - iam_service = "true", - extra_protoc_parameters = ["template=typescript_gapic"], ) nodejs_gapic_assembly_pkg( @@ -258,7 +261,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -274,11 +277,22 @@ ruby_grpc_library( deps = [":pubsub_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "pubsub_ruby_gapic", - src = ":pubsub_proto_with_info", - gapic_yaml = "pubsub_gapic.yaml", - service_yaml = ":pubsub_v1.yaml", + srcs = [":pubsub_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-pubsub-v1", + "ruby-cloud-env-prefix=PUBSUB", + "ruby-cloud-common-services=google.iam.v1.IAMPolicy=google.pubsub.v1.Publisher", + "ruby-cloud-path-override=pub_sub=pubsub", + "ruby-cloud-namespace-override=Pubsub=PubSub", + "ruby-cloud-product-url=https://cloud.google.com/pubsub", + "ruby-cloud-api-id=pubsub.googleapis.com", + "ruby-cloud-api-shortname=pubsub", + ], + grpc_service_config = "pubsub_grpc_service_config.json", + ruby_cloud_description = "Cloud Pub/Sub is a fully-managed real-time messaging service that allows you to send and receive messages between independent applications.", + ruby_cloud_title = "Cloud Pub/Sub V1", deps = [ ":pubsub_ruby_grpc", ":pubsub_ruby_proto", diff --git a/third_party/googleapis/google/pubsub/v1/pubsub.proto b/third_party/googleapis/google/pubsub/v1/pubsub.proto index 909863eb9..0da37dd7d 100644 --- a/third_party/googleapis/google/pubsub/v1/pubsub.proto +++ b/third_party/googleapis/google/pubsub/v1/pubsub.proto @@ -24,6 +24,7 @@ import "google/protobuf/duration.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; +import "google/pubsub/v1/schema.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.PubSub.V1"; @@ -42,8 +43,8 @@ service Publisher { "https://www.googleapis.com/auth/cloud-platform," "https://www.googleapis.com/auth/pubsub"; - // Creates the given topic with the given name. See the [resource name rules]( - // https://cloud.google.com/pubsub/docs/admin#resource_names). + // Creates the given topic with the given name. See the [resource name rules] + // (https://cloud.google.com/pubsub/docs/admin#resource_names). rpc CreateTopic(Topic) returns (Topic) { option (google.api.http) = { put: "/v1/{name=projects/*/topics/*}" @@ -143,6 +144,21 @@ message MessageStoragePolicy { repeated string allowed_persistence_regions = 1; } +// Settings for validating messages published against a schema. +message SchemaSettings { + // Required. The name of the schema that messages published should be + // validated against. Format is `projects/{project}/schemas/{schema}`. The + // value of this field will be `_deleted-schema_` if the schema has been + // deleted. + string schema = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "pubsub.googleapis.com/Schema" } + ]; + + // The encoding of messages validated against `schema`. + Encoding encoding = 2; +} + // A topic resource. message Topic { option (google.api.resource) = { @@ -173,6 +189,13 @@ message Topic { // // The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`. string kms_key_name = 5; + + // Settings for validating messages published against a schema. + SchemaSettings schema_settings = 6; + + // Reserved for future use. This field is set only in responses from the + // server; it is ignored if it is set in any requests. + bool satisfies_pzs = 7; } // A message that is published by publishers and consumed by subscribers. The @@ -587,8 +610,8 @@ service Subscriber { } // Seeks an existing subscription to a point in time or to a given snapshot, - // whichever is provided in the request. Snapshots are used in [Seek]( - // https://cloud.google.com/pubsub/docs/replay-overview) operations, which + // whichever is provided in the request. Snapshots are used in [Seek] + // (https://cloud.google.com/pubsub/docs/replay-overview) operations, which // allow you to manage message acknowledgments in bulk. That is, you can set // the acknowledgment state of messages in an existing subscription to the // state captured by a snapshot. Note that both the subscription and the diff --git a/third_party/googleapis/google/pubsub/v1/pubsub_gapic.legacy.yaml b/third_party/googleapis/google/pubsub/v1/pubsub_gapic.legacy.yaml deleted file mode 100644 index 5ce808d51..000000000 --- a/third_party/googleapis/google/pubsub/v1/pubsub_gapic.legacy.yaml +++ /dev/null @@ -1,706 +0,0 @@ -type: com.google.api.codegen.ConfigProto -config_schema_version: 1.0.0 -language_settings: - java: - package_name: com.google.cloud.pubsub.v1 - interface_names: - google.pubsub.v1.Publisher: TopicAdmin - google.pubsub.v1.Subscriber: SubscriptionAdmin - release_level: GA - python: - package_name: google.cloud.pubsub_v1.gapic - release_level: GA - go: - package_name: cloud.google.com/go/pubsub/apiv1 - domain_layer_location: cloud.google.com/go/pubsub - release_level: GA - csharp: - package_name: Google.Cloud.PubSub.V1 - interface_names: - google.pubsub.v1.Publisher: PublisherServiceApi - google.pubsub.v1.Subscriber: SubscriberServiceApi - release_level: GA - ruby: - package_name: Google::Cloud::PubSub::V1 - release_level: BETA - php: - package_name: Google\Cloud\PubSub\V1 - release_level: GA - nodejs: - package_name: pubsub.v1 - domain_layer_location: google-cloud - release_level: GA -collection_oneofs: -- oneof_name: topic_oneof - collection_names: - - topic - - deleted_topic -collections: -- name_pattern: projects/{project} - entity_name: project - language_overrides: - - language: csharp - common_resource_name: Google.Api.Gax.ResourceNames.ProjectName -- name_pattern: projects/{project}/snapshots/{snapshot} - entity_name: snapshot - language_overrides: - - language: java - entity_name: project_snapshot -- name_pattern: projects/{project}/subscriptions/{subscription} - entity_name: subscription - language_overrides: - - language: java - entity_name: project_subscription -- name_pattern: projects/{project}/topics/{topic} - entity_name: topic - language_overrides: - - language: java - entity_name: project_topic -- name_pattern: _deleted-topic_ - entity_name: deleted_topic -interfaces: -- name: google.pubsub.v1.Subscriber - lang_doc: - java: To retrieve messages from a subscription, see the Subscriber class. - retry_codes_def: - - name: idempotent - retry_codes: - - UNKNOWN - - ABORTED - - UNAVAILABLE - - name: non_idempotent - retry_codes: - - UNAVAILABLE - - name: streaming_pull - retry_codes: - - DEADLINE_EXCEEDED - - RESOURCE_EXHAUSTED - - ABORTED - - INTERNAL - - UNAVAILABLE - retry_params_def: - - 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 - rpc_timeout_multiplier: 1 - 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: 25000 # 25 seconds - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 25000 # 25 seconds - total_timeout_millis: 600000 # 10 minutes - - name: streaming_messaging - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 # 60 seconds - initial_rpc_timeout_millis: 600000 # 10 minutes - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 600000 # 10 minutes - total_timeout_millis: 600000 # 10 minutes - methods: - - name: CreateSubscription - flattening: - groups: - - parameters: - - name - - topic - - push_config - - ack_deadline_seconds - required_fields: - - name - - topic - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: subscription - topic: topic - timeout_millis: 60000 - - name: GetSubscription - flattening: - groups: - - parameters: - - subscription - required_fields: - - subscription - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - subscription: subscription - timeout_millis: 60000 - - name: UpdateSubscription - required_fields: - - subscription - - update_mask - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 60000 - sample_code_init_fields: - - update_mask.paths[0]="ack_deadline_seconds" - - subscription.ack_deadline_seconds=42 - - name: ListSubscriptions - flattening: - groups: - - parameters: - - project - required_fields: - - project - resource_name_treatment: STATIC_TYPES - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: subscriptions - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - project: project - timeout_millis: 60000 - - name: DeleteSubscription - flattening: - groups: - - parameters: - - subscription - required_fields: - - subscription - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - subscription: subscription - timeout_millis: 60000 - - name: GetSnapshot - surface_treatments: - - include_languages: - - go - - java - - csharp - - ruby - - nodejs - - python - - php - visibility: DISABLED - - name: ModifyAckDeadline - flattening: - groups: - - parameters: - - subscription - - ack_ids - - ack_deadline_seconds - required_fields: - - subscription - - ack_ids - - ack_deadline_seconds - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - subscription: subscription - timeout_millis: 60000 - surface_treatments: - - include_languages: - - java - visibility: PACKAGE - - name: Acknowledge - flattening: - groups: - - parameters: - - subscription - - ack_ids - required_fields: - - subscription - - ack_ids - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: messaging - field_name_patterns: - subscription: subscription - timeout_millis: 60000 - surface_treatments: - - include_languages: - - java - visibility: PACKAGE - - name: Pull - flattening: - groups: - - parameters: - - subscription - - return_immediately - - max_messages - required_fields: - - subscription - - max_messages - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: messaging - field_name_patterns: - subscription: subscription - timeout_millis: 60000 - surface_treatments: - - include_languages: - - java - visibility: PACKAGE - - name: StreamingPull - required_fields: - - subscription - - stream_ack_deadline_seconds - grpc_streaming: - response: - resources_field: received_messages - resource_name_treatment: STATIC_TYPES - retry_codes_name: streaming_pull - retry_params_name: streaming_messaging - field_name_patterns: - subscription: subscription - timeout_millis: 900000 - surface_treatments: - - include_languages: - - java - visibility: PACKAGE - - name: ModifyPushConfig - flattening: - groups: - - parameters: - - subscription - - push_config - required_fields: - - subscription - - push_config - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - subscription: subscription - timeout_millis: 60000 - - name: ListSnapshots - flattening: - groups: - - parameters: - - project - required_fields: - - project - resource_name_treatment: STATIC_TYPES - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: snapshots - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - project: project - timeout_millis: 60000 - - name: CreateSnapshot - flattening: - groups: - - parameters: - - name - - subscription - required_fields: - - name - - subscription - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: snapshot - subscription: subscription - timeout_millis: 60000 - - name: UpdateSnapshot - required_fields: - - snapshot - - update_mask - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 60000 - sample_code_init_fields: - - update_mask.paths[0]="expire_time" - - snapshot.expire_time.seconds=123456 - - name: DeleteSnapshot - flattening: - groups: - - parameters: - - snapshot - required_fields: - - snapshot - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - snapshot: snapshot - timeout_millis: 60000 - - name: Seek - # Not including flattening until oneof support. - # https://github.com/googleapis/toolkit/issues/1057 - required_fields: - - subscription - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - subscription: subscription - timeout_millis: 60000 - - name: SetIamPolicy - flattening: - groups: - - parameters: - - resource - - policy - required_fields: - - resource - - policy - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - resource: subscription - timeout_millis: 60000 - reroute_to_grpc_interface: google.iam.v1.IAMPolicy - surface_treatments: - - include_languages: - - go - visibility: DISABLED - - name: GetIamPolicy - flattening: - groups: - - parameters: - - resource - required_fields: - - resource - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - resource: subscription - timeout_millis: 60000 - reroute_to_grpc_interface: google.iam.v1.IAMPolicy - surface_treatments: - - include_languages: - - go - visibility: DISABLED - - name: TestIamPermissions - flattening: - groups: - - parameters: - - resource - - permissions - required_fields: - - resource - - permissions - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - resource: subscription - timeout_millis: 60000 - reroute_to_grpc_interface: google.iam.v1.IAMPolicy - surface_treatments: - - include_languages: - - go - visibility: DISABLED -- name: google.pubsub.v1.Publisher - lang_doc: - java: To publish messages to a topic, see the Publisher class. - smoke_test: - method: ListTopics - init_fields: - - project%project=$PROJECT_ID - retry_codes_def: - - name: idempotent - retry_codes: - - UNKNOWN - - ABORTED - - UNAVAILABLE - - name: non_idempotent - retry_codes: - - UNAVAILABLE - - name: none - retry_codes: [] - - name: publish - retry_codes: - - ABORTED - - CANCELLED - - INTERNAL - - RESOURCE_EXHAUSTED - - UNKNOWN - - UNAVAILABLE - - DEADLINE_EXCEEDED - retry_params_def: - - 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 - rpc_timeout_multiplier: 1 - 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: 5000 # 5 seconds - rpc_timeout_multiplier: 1.3 - max_rpc_timeout_millis: 60000 # 60 seconds - total_timeout_millis: 60000 # 60 seconds - methods: - - name: CreateTopic - 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: topic - timeout_millis: 60000 - - name: UpdateTopic - required_fields: - - topic - - update_mask - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 60000 - - name: Publish - flattening: - groups: - - parameters: - - topic - - messages - required_fields: - - topic - - messages - resource_name_treatment: STATIC_TYPES - retry_codes_name: publish - retry_params_name: messaging - batching: - thresholds: - element_count_threshold: 100 - element_count_limit: 1000 # TO BE REMOVED LATER - request_byte_threshold: 1048576 # 1 MiB - request_byte_limit: 10485760 # TO BE REMOVED LATER - delay_threshold_millis: 10 - batch_descriptor: - batched_field: messages - discriminator_fields: - - topic - subresponse_field: message_ids - field_name_patterns: - topic: topic - sample_code_init_fields: - - messages[0].data - timeout_millis: 60000 - surface_treatments: - - include_languages: - - java - visibility: PACKAGE - - name: GetTopic - flattening: - groups: - - parameters: - - topic - required_fields: - - topic - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - topic: topic - timeout_millis: 60000 - - name: ListTopics - flattening: - groups: - - parameters: - - project - required_fields: - - project - resource_name_treatment: STATIC_TYPES - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: topics - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - project: project - timeout_millis: 60000 - - name: ListTopicSubscriptions - flattening: - groups: - - parameters: - - topic - required_fields: - - topic - resource_name_treatment: STATIC_TYPES - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: subscriptions - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - topic: topic - timeout_millis: 60000 - - name: ListTopicSnapshots - surface_treatments: - - include_languages: - - go - - java - - csharp - - ruby - - nodejs - - python - - php - visibility: DISABLED - - name: DeleteTopic - flattening: - groups: - - parameters: - - topic - required_fields: - - topic - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - topic: topic - timeout_millis: 60000 - - name: SetIamPolicy - flattening: - groups: - - parameters: - - resource - - policy - required_fields: - - resource - - policy - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - resource: topic - timeout_millis: 60000 - reroute_to_grpc_interface: google.iam.v1.IAMPolicy - surface_treatments: - - include_languages: - - go - visibility: DISABLED - - name: GetIamPolicy - flattening: - groups: - - parameters: - - resource - required_fields: - - resource - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - resource: topic - timeout_millis: 60000 - reroute_to_grpc_interface: google.iam.v1.IAMPolicy - surface_treatments: - - include_languages: - - go - visibility: DISABLED - - name: TestIamPermissions - flattening: - groups: - - parameters: - - resource - - permissions - required_fields: - - resource - - permissions - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - resource: topic - timeout_millis: 60000 - reroute_to_grpc_interface: google.iam.v1.IAMPolicy - surface_treatments: - - include_languages: - - go - visibility: DISABLED -resource_name_generation: -- message_name: Topic - field_entity_map: - name: topic -- message_name: GetTopicRequest - field_entity_map: - topic: topic -- message_name: PublishRequest - field_entity_map: - topic: topic -- message_name: ListTopicsRequest - field_entity_map: - project: project -- message_name: ListTopicSubscriptionsRequest - field_entity_map: - topic: topic -- message_name: ListTopicSubscriptionsResponse - field_entity_map: - subscriptions: subscription -- message_name: DeleteTopicRequest - field_entity_map: - topic: topic -- message_name: Subscription - field_entity_map: - name: subscription - topic: topic_oneof -- message_name: GetSubscriptionRequest - field_entity_map: - subscription: subscription -- message_name: ListSubscriptionsRequest - field_entity_map: - project: project -- message_name: DeleteSubscriptionRequest - field_entity_map: - subscription: subscription -- message_name: ModifyPushConfigRequest - field_entity_map: - subscription: subscription -- message_name: PullRequest - field_entity_map: - subscription: subscription -- message_name: ModifyAckDeadlineRequest - field_entity_map: - subscription: subscription -- message_name: AcknowledgeRequest - field_entity_map: - subscription: subscription -- message_name: StreamingPullRequest - field_entity_map: - subscription: subscription -- message_name: Snapshot - field_entity_map: - name: snapshot - topic: topic -- message_name: CreateSnapshotRequest - field_entity_map: - name: snapshot - subscription: subscription -- message_name: ListSnapshotsRequest - field_entity_map: - project: project -- message_name: DeleteSnapshotRequest - field_entity_map: - snapshot: snapshot -- message_name: SeekRequest - field_entity_map: - subscription: subscription - snapshot: snapshot diff --git a/third_party/googleapis/google/pubsub/v1/pubsub_v1.yaml b/third_party/googleapis/google/pubsub/v1/pubsub_v1.yaml index 0178f428d..6671cb8c5 100644 --- a/third_party/googleapis/google/pubsub/v1/pubsub_v1.yaml +++ b/third_party/googleapis/google/pubsub/v1/pubsub_v1.yaml @@ -5,6 +5,7 @@ title: Cloud Pub/Sub API apis: - name: google.pubsub.v1.Publisher +- name: google.pubsub.v1.SchemaService - name: google.pubsub.v1.Subscriber documentation: @@ -80,6 +81,11 @@ authentication: canonical_scopes: |- https://www.googleapis.com/auth/cloud-platform, https://www.googleapis.com/auth/pubsub + - selector: 'google.pubsub.v1.SchemaService.*' + oauth: + canonical_scopes: |- + https://www.googleapis.com/auth/cloud-platform, + https://www.googleapis.com/auth/pubsub - selector: 'google.pubsub.v1.Subscriber.*' oauth: canonical_scopes: |- diff --git a/third_party/googleapis/google/pubsub/v1/schema.proto b/third_party/googleapis/google/pubsub/v1/schema.proto new file mode 100644 index 000000000..1ace7ef3b --- /dev/null +++ b/third_party/googleapis/google/pubsub/v1/schema.proto @@ -0,0 +1,286 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.pubsub.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/empty.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.PubSub.V1"; +option go_package = "google.golang.org/genproto/googleapis/pubsub/v1;pubsub"; +option java_multiple_files = true; +option java_outer_classname = "SchemaProto"; +option java_package = "com.google.pubsub.v1"; +option php_namespace = "Google\\Cloud\\PubSub\\V1"; +option ruby_package = "Google::Cloud::PubSub::V1"; + +// Service for doing schema-related operations. +service SchemaService { + option (google.api.default_host) = "pubsub.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/pubsub"; + + // Creates a schema. + rpc CreateSchema(CreateSchemaRequest) returns (Schema) { + option (google.api.http) = { + post: "/v1/{parent=projects/*}/schemas" + body: "schema" + }; + option (google.api.method_signature) = "parent,schema,schema_id"; + } + + // Gets a schema. + rpc GetSchema(GetSchemaRequest) returns (Schema) { + option (google.api.http) = { + get: "/v1/{name=projects/*/schemas/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists schemas in a project. + rpc ListSchemas(ListSchemasRequest) returns (ListSchemasResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*}/schemas" + }; + option (google.api.method_signature) = "parent"; + } + + // Deletes a schema. + rpc DeleteSchema(DeleteSchemaRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/schemas/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Validates a schema. + rpc ValidateSchema(ValidateSchemaRequest) returns (ValidateSchemaResponse) { + option (google.api.http) = { + post: "/v1/{parent=projects/*}/schemas:validate" + body: "*" + }; + option (google.api.method_signature) = "parent,schema"; + } + + // Validates a message against a schema. + rpc ValidateMessage(ValidateMessageRequest) + returns (ValidateMessageResponse) { + option (google.api.http) = { + post: "/v1/{parent=projects/*}/schemas:validateMessage" + body: "*" + }; + } +} + +// A schema resource. +message Schema { + option (google.api.resource) = { + type: "pubsub.googleapis.com/Schema" + pattern: "projects/{project}/schemas/{schema}" + }; + + // Possible schema definition types. + enum Type { + // Default value. This value is unused. + TYPE_UNSPECIFIED = 0; + + // A Protocol Buffer schema definition. + PROTOCOL_BUFFER = 1; + + // An Avro schema definition. + AVRO = 2; + } + + // Required. Name of the schema. + // Format is `projects/{project}/schemas/{schema}`. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // The type of the schema definition. + Type type = 2; + + // The definition of the schema. This should contain a string representing + // the full definition of the schema that is a valid schema definition of + // the type specified in `type`. + string definition = 3; +} + +// Request for the CreateSchema method. +message CreateSchemaRequest { + // Required. The name of the project in which to create the schema. + // Format is `projects/{project-id}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "pubsub.googleapis.com/Schema" + } + ]; + + // Required. The schema object to create. + // + // This schema's `name` parameter is ignored. The schema object returned + // by CreateSchema will have a `name` made using the given `parent` and + // `schema_id`. + Schema schema = 2 [(google.api.field_behavior) = REQUIRED]; + + // The ID to use for the schema, which will become the final component of + // the schema's resource name. + // + // See https://cloud.google.com/pubsub/docs/admin#resource_names for resource + // name constraints. + string schema_id = 3; +} + +// View of Schema object fields to be returned by GetSchema and ListSchemas. +enum SchemaView { + // The default / unset value. + // The API will default to the BASIC view. + SCHEMA_VIEW_UNSPECIFIED = 0; + + // Include the name and type of the schema, but not the definition. + BASIC = 1; + + // Include all Schema object fields. + FULL = 2; +} + +// Request for the GetSchema method. +message GetSchemaRequest { + // Required. The name of the schema to get. + // Format is `projects/{project}/schemas/{schema}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "pubsub.googleapis.com/Schema" } + ]; + + // The set of fields to return in the response. If not set, returns a Schema + // with `name` and `type`, but not `definition`. Set to `FULL` to retrieve all + // fields. + SchemaView view = 2; +} + +// Request for the `ListSchemas` method. +message ListSchemasRequest { + // Required. The name of the project in which to list schemas. + // Format is `projects/{project-id}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Project" + } + ]; + + // The set of Schema fields to return in the response. If not set, returns + // Schemas with `name` and `type`, but not `definition`. Set to `FULL` to + // retrieve all fields. + SchemaView view = 2; + + // Maximum number of schemas to return. + int32 page_size = 3; + + // The value returned by the last `ListSchemasResponse`; indicates that + // this is a continuation of a prior `ListSchemas` call, and that the + // system should return the next page of data. + string page_token = 4; +} + +// Response for the `ListSchemas` method. +message ListSchemasResponse { + // The resulting schemas. + repeated Schema schemas = 1; + + // If not empty, indicates that there may be more schemas that match the + // request; this value should be passed in a new `ListSchemasRequest`. + string next_page_token = 2; +} + +// Request for the `DeleteSchema` method. +message DeleteSchemaRequest { + // Required. Name of the schema to delete. + // Format is `projects/{project}/schemas/{schema}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "pubsub.googleapis.com/Schema" } + ]; +} + +// Request for the `ValidateSchema` method. +message ValidateSchemaRequest { + // Required. The name of the project in which to validate schemas. + // Format is `projects/{project-id}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Project" + } + ]; + + // Required. The schema object to validate. + Schema schema = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Response for the `ValidateSchema` method. +message ValidateSchemaResponse {} + +// Request for the `ValidateMessage` method. +message ValidateMessageRequest { + // Required. The name of the project in which to validate schemas. + // Format is `projects/{project-id}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Project" + } + ]; + + oneof schema_spec { + // Name of the schema against which to validate. + // + // Format is `projects/{project}/schemas/{schema}`. + string name = 2 [ + (google.api.resource_reference) = { type: "pubsub.googleapis.com/Schema" } + ]; + + // Ad-hoc schema against which to validate + Schema schema = 3; + } + + // Message to validate against the provided `schema_spec`. + bytes message = 4; + + // The encoding expected for messages + Encoding encoding = 5; +} + +// Response for the `ValidateMessage` method. +message ValidateMessageResponse {} + +// Possible encoding types for messages. +enum Encoding { + // Unspecified + ENCODING_UNSPECIFIED = 0; + + // JSON encoding + JSON = 1; + + // Binary encoding, as defined by the schema type. For some schema types, + // binary encoding may not be available. + BINARY = 2; +} diff --git a/third_party/googleapis/google/rpc/context/BUILD.bazel b/third_party/googleapis/google/rpc/context/BUILD.bazel index e6aeb2655..2a59ece88 100644 --- a/third_party/googleapis/google/rpc/context/BUILD.bazel +++ b/third_party/googleapis/google/rpc/context/BUILD.bazel @@ -15,6 +15,7 @@ proto_library( ], deps = [ "@com_google_protobuf//:any_proto", + "@com_google_protobuf//:duration_proto", "@com_google_protobuf//:struct_proto", "@com_google_protobuf//:timestamp_proto", ], @@ -65,6 +66,7 @@ moved_proto_library( srcs = [":attribute_context_proto"], deps = [ "@com_google_protobuf//:any_proto", + "@com_google_protobuf//:duration_proto", "@com_google_protobuf//:struct_proto", "@com_google_protobuf//:timestamp_proto", ], diff --git a/third_party/googleapis/google/rpc/context/attribute_context.proto b/third_party/googleapis/google/rpc/context/attribute_context.proto index b0f262ac7..30fe6f25a 100644 --- a/third_party/googleapis/google/rpc/context/attribute_context.proto +++ b/third_party/googleapis/google/rpc/context/attribute_context.proto @@ -17,6 +17,7 @@ syntax = "proto3"; package google.rpc.context; import "google/protobuf/any.proto"; +import "google/protobuf/duration.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; @@ -182,7 +183,7 @@ message AttributeContext { // appears in the first line of the HTTP request. No decoding is performed. string query = 7; - // The timestamp when the `destination` service receives the first byte of + // The timestamp when the `destination` service receives the last byte of // the request. google.protobuf.Timestamp time = 9; @@ -218,9 +219,15 @@ message AttributeContext { // lowercased, because HTTP header keys are case-insensitive. map headers = 3; - // The timestamp when the `destination` service generates the first byte of + // The timestamp when the `destination` service sends the last byte of // the response. google.protobuf.Timestamp time = 4; + + // The length of time it takes the backend service to fully respond to a + // request. Measured from when the destination service starts to send the + // request to the backend until when the destination service receives the + // complete response from the backend. + google.protobuf.Duration backend_latency = 5; } // This message defines core attributes for a resource. A resource is an @@ -255,6 +262,51 @@ message AttributeContext { // The labels or tags on the resource, such as AWS resource tags and // Kubernetes resource labels. map labels = 4; + + // The unique identifier of the resource. UID is unique in the time + // and space for this resource within the scope of the service. It is + // typically generated by the server on successful creation of a resource + // and must not be changed. UID is used to uniquely identify resources + // with resource name reuses. This should be a UUID4. + string uid = 5; + + // Annotations is an unstructured key-value map stored with a resource that + // may be set by external tools to store and retrieve arbitrary metadata. + // They are not queryable and should be preserved when modifying objects. + // + // More info: https://kubernetes.io/docs/user-guide/annotations + map annotations = 6; + + // Mutable. The display name set by clients. Must be <= 63 characters. + string display_name = 7; + + // Output only. The timestamp when the resource was created. This may + // be either the time creation was initiated or when it was completed. + google.protobuf.Timestamp create_time = 8; + + // Output only. The timestamp when the resource was last updated. Any + // change to the resource made by users must refresh this value. + // Changes to a resource made by the service should refresh this value. + google.protobuf.Timestamp update_time = 9; + + // Output only. The timestamp when the resource was deleted. + // If the resource is not deleted, this must be empty. + google.protobuf.Timestamp delete_time = 10; + + // Output only. An opaque value that uniquely identifies a version or + // generation of a resource. It can be used to confirm that the client + // and server agree on the ordering of a resource being written. + string etag = 11; + + // Immutable. The location of the resource. The location encoding is + // specific to the service provider, and new encoding may be introduced + // as the service evolves. + // + // For Google Cloud products, the encoding is what is used by Google Cloud + // APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The + // semantics of `location` is identical to the + // `cloud.googleapis.com/location` label used by some Google Cloud APIs. + string location = 12; } // The origin of a network activity. In a multi hop network activity, diff --git a/third_party/googleapis/google/spanner/admin/database/artman_spanner_admin_database.legacy.yaml b/third_party/googleapis/google/spanner/admin/database/artman_spanner_admin_database.legacy.yaml deleted file mode 100644 index 10a63652f..000000000 --- a/third_party/googleapis/google/spanner/admin/database/artman_spanner_admin_database.legacy.yaml +++ /dev/null @@ -1,20 +0,0 @@ -common: - api_name: spanner-admin-database - api_version: v1 - organization_name: google-cloud - service_yaml: v1/spanner_admin_database.yaml - gapic_yaml: v1/spanner_admin_database_gapic.legacy.yaml - proto_package: google.spanner.admin.database.v1 - src_proto_paths: - - v1 - proto_deps: - - name: google-common-protos - - name: google-iam-v1 - proto_path: google/iam/v1 -artifacts: -- name: php_gapic - type: GAPIC - language: PHP -- name: ruby_gapic - type: GAPIC - language: RUBY diff --git a/third_party/googleapis/google/spanner/admin/database/artman_spanner_admin_database.yaml b/third_party/googleapis/google/spanner/admin/database/artman_spanner_admin_database.yaml deleted file mode 100644 index 07c22170f..000000000 --- a/third_party/googleapis/google/spanner/admin/database/artman_spanner_admin_database.yaml +++ /dev/null @@ -1,31 +0,0 @@ -common: - api_name: spanner-admin-database - api_version: v1 - organization_name: google-cloud - service_yaml: v1/spanner_admin_database.yaml - gapic_yaml: v1/spanner_admin_database_gapic.yaml - proto_package: google.spanner.admin.database.v1 - src_proto_paths: - - v1 - proto_deps: - - name: google-common-protos - - name: google-iam-v1 - proto_path: google/iam/v1 -artifacts: -- name: java_gapic - type: GAPIC - language: JAVA -- name: python_gapic - type: GAPIC - language: PYTHON -- name: go_gapic - type: GAPIC - language: GO -- name: csharp_gapic - type: GAPIC - language: CSHARP -- name: nodejs_gapic - type: GAPIC - language: NODEJS -- name: gapic_config - type: GAPIC_CONFIG diff --git a/third_party/googleapis/google/spanner/admin/database/v1/BUILD.bazel b/third_party/googleapis/google/spanner/admin/database/v1/BUILD.bazel index 0df7ab24a..fc29c9621 100644 --- a/third_party/googleapis/google/spanner/admin/database/v1/BUILD.bazel +++ b/third_party/googleapis/google/spanner/admin/database/v1/BUILD.bazel @@ -24,6 +24,7 @@ proto_library( "//google/iam/v1:iam_policy_proto", "//google/iam/v1:policy_proto", "//google/longrunning:operations_proto", + "//google/rpc:status_proto", "@com_google_protobuf//:empty_proto", "@com_google_protobuf//:field_mask_proto", "@com_google_protobuf//:timestamp_proto", @@ -63,11 +64,9 @@ java_grpc_library( java_gapic_library( name = "database_java_gapic", - src = ":database_proto_with_info", + srcs = [":database_proto_with_info"], gapic_yaml = "spanner_admin_database_gapic.yaml", grpc_service_config = "spanner_admin_database_grpc_service_config.json", - package = "google.spanner.admin.database.v1", - service_yaml = "spanner_admin_database.yaml", test_deps = [ ":database_java_grpc", "//google/iam/v1:iam_java_grpc", @@ -117,6 +116,7 @@ go_proto_library( "//google/api:annotations_go_proto", "//google/iam/v1:iam_go_proto", "//google/longrunning:longrunning_go_proto", + "//google/rpc:status_go_proto", ], ) @@ -129,9 +129,9 @@ go_gapic_library( deps = [ ":database_go_proto", "//google/iam/v1:iam_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", ], ) @@ -157,62 +157,24 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "database_moved_proto", - srcs = [":database_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:resource_proto", - "//google/iam/v1:iam_policy_proto", - "//google/iam/v1:policy_proto", - "//google/longrunning:operations_proto", - "@com_google_protobuf//:empty_proto", - "@com_google_protobuf//:field_mask_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -py_proto_library( - name = "database_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":database_moved_proto"], -) - -py_grpc_library( - name = "database_py_grpc", - srcs = [":database_moved_proto"], - deps = [":database_py_proto"], ) py_gapic_library( name = "database_py_gapic", - src = ":database_proto_with_info", - gapic_yaml = "spanner_admin_database_gapic.yaml", + srcs = [":database_proto"], grpc_service_config = "spanner_admin_database_grpc_service_config.json", - package = "google.spanner.admin.database.v1", - service_yaml = "spanner_admin_database.yaml", - deps = [ - ":database_py_grpc", - ":database_py_proto", + opt_args = [ + "python-gapic-namespace=google.cloud", + "python-gapic-name=spanner_admin_database", ], ) -# Open Source Packages py_gapic_assembly_pkg( name = "admin-database-v1-py", deps = [ ":database_py_gapic", - ":database_py_grpc", - ":database_py_proto", ], ) @@ -273,6 +235,7 @@ load( nodejs_gapic_library( name = "database_nodejs_gapic", src = ":database_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "spanner_admin_database_grpc_service_config.json", package = "google.spanner.admin.database.v1", service_yaml = "spanner_admin_database.yaml", @@ -293,7 +256,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -309,12 +272,19 @@ ruby_grpc_library( deps = [":database_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "database_ruby_gapic", - src = ":database_proto_with_info", - gapic_yaml = "spanner_admin_database_gapic.yaml", - package = "google.spanner.admin.database.v1", - service_yaml = "spanner_admin_database.yaml", + srcs = [":database_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-spanner-admin-database-v1", + "ruby-cloud-env-prefix=SPANNER", + "ruby-cloud-product-url=https://cloud.google.com/spanner", + "ruby-cloud-api-id=spanner.googleapis.com", + "ruby-cloud-api-shortname=spanner", + ], + grpc_service_config = "spanner_admin_database_grpc_service_config.json", + ruby_cloud_description = "Cloud Spanner is a managed, mission-critical, globally consistent and scalable relational database service.", + ruby_cloud_title = "Cloud Spanner Database Admin V1", deps = [ ":database_ruby_grpc", ":database_ruby_proto", @@ -356,8 +326,8 @@ csharp_grpc_library( csharp_gapic_library( name = "database_csharp_gapic", srcs = [":database_proto_with_info"], - grpc_service_config = "spanner_admin_database_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "spanner_admin_database_grpc_service_config.json", deps = [ ":database_csharp_grpc", ":database_csharp_proto", @@ -380,7 +350,8 @@ csharp_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "cc_grpc_library", - "cc_proto_library") + "cc_proto_library", +) cc_proto_library( name = "database_cc_proto", diff --git a/third_party/googleapis/google/spanner/admin/database/v1/backup.proto b/third_party/googleapis/google/spanner/admin/database/v1/backup.proto index e33fadddd..31fdb5326 100644 --- a/third_party/googleapis/google/spanner/admin/database/v1/backup.proto +++ b/third_party/googleapis/google/spanner/admin/database/v1/backup.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,7 +22,6 @@ import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; import "google/spanner/admin/database/v1/common.proto"; -import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.Spanner.Admin.Database.V1"; option go_package = "google.golang.org/genproto/googleapis/spanner/admin/database/v1;database"; @@ -52,16 +51,23 @@ message Backup { READY = 2; } - // Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. - // Name of the database from which this backup was - // created. This needs to be in the same instance as the backup. - // Values are of the form + // Required for the + // [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] + // operation. Name of the database from which this backup was created. This + // needs to be in the same instance as the backup. Values are of the form // `projects//instances//databases/`. string database = 2 [(google.api.resource_reference) = { - type: "spanner.googleapis.com/Database" - }]; + type: "spanner.googleapis.com/Database" + }]; + + // The backup will contain an externally consistent copy of the database at + // the timestamp specified by `version_time`. If `version_time` is not + // specified, the system will set `version_time` to the `create_time` of the + // backup. + google.protobuf.Timestamp version_time = 9; - // Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] + // Required for the + // [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] // operation. The expiration time of the backup, with microseconds // granularity that must be at least 6 hours and at most 366 days // from the time the CreateBackup request is processed. Once the `expire_time` @@ -69,8 +75,11 @@ message Backup { // Spanner to free the resources used by the backup. google.protobuf.Timestamp expire_time = 3; - // Output only for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. - // Required for the [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup] operation. + // Output only for the + // [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] + // operation. Required for the + // [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup] + // operation. // // A globally unique identifier for the backup which cannot be // changed. Values are of the form @@ -84,11 +93,12 @@ message Backup { // `projects//instances/`. string name = 1; - // Output only. The backup will contain an externally consistent - // copy of the database at the timestamp specified by - // `create_time`. `create_time` is approximately the time the - // [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request is received. - google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The time the + // [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] + // request is received. If the request does not specify `version_time`, the + // `version_time` of the backup will be equivalent to the `create_time`. + google.protobuf.Timestamp create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Size of the backup in bytes. int64 size_bytes = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -103,10 +113,20 @@ message Backup { // any referencing database prevents the backup from being deleted. When a // restored database from the backup enters the `READY` state, the reference // to the backup is removed. - repeated string referencing_databases = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + repeated string referencing_databases = 7 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "spanner.googleapis.com/Database" + } + ]; + + // Output only. The encryption information for the backup. + EncryptionInfo encryption_info = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; } -// The request for [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]. +// The request for +// [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]. message CreateBackupRequest { // Required. The name of the instance in which the backup will be // created. This must be the same instance that contains the database the @@ -128,19 +148,32 @@ message CreateBackupRequest { // Required. The backup to create. Backup backup = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The encryption configuration used to encrypt the backup. If this + // field is not specified, the backup will use the same encryption + // configuration as the database by default, namely + // [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type] + // = `USE_DATABASE_ENCRYPTION`. + CreateBackupEncryptionConfig encryption_config = 4 + [(google.api.field_behavior) = OPTIONAL]; } // Metadata type for the operation returned by // [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]. message CreateBackupMetadata { // The name of the backup being created. - string name = 1; + string name = 1 [ + (google.api.resource_reference) = { type: "spanner.googleapis.com/Backup" } + ]; // The name of the database the backup is created from. - string database = 2; + string database = 2 [(google.api.resource_reference) = { + type: "spanner.googleapis.com/Database" + }]; // The progress of the - // [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation. + // [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] + // operation. OperationProgress progress = 3; // The time at which cancellation of this operation was received. @@ -152,12 +185,14 @@ message CreateBackupMetadata { // other methods to check whether the cancellation succeeded or whether the // operation completed despite cancellation. On successful cancellation, // the operation is not deleted; instead, it becomes an operation with - // an [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, + // an [Operation.error][google.longrunning.Operation.error] value with a + // [google.rpc.Status.code][google.rpc.Status.code] of 1, // corresponding to `Code.CANCELLED`. google.protobuf.Timestamp cancel_time = 4; } -// The request for [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup]. +// The request for +// [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup]. message UpdateBackupRequest { // Required. The backup to update. `backup.name`, and the fields to be updated // as specified by `update_mask` are required. Other fields are ignored. @@ -170,36 +205,36 @@ message UpdateBackupRequest { // resource, not to the request message. The field mask must always be // specified; this prevents any future fields from being erased accidentally // by clients that do not know about them. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; } -// The request for [GetBackup][google.spanner.admin.database.v1.DatabaseAdmin.GetBackup]. +// The request for +// [GetBackup][google.spanner.admin.database.v1.DatabaseAdmin.GetBackup]. message GetBackupRequest { // Required. Name of the backup. // Values are of the form // `projects//instances//backups/`. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "spanner.googleapis.com/Backup" - } + (google.api.resource_reference) = { type: "spanner.googleapis.com/Backup" } ]; } -// The request for [DeleteBackup][google.spanner.admin.database.v1.DatabaseAdmin.DeleteBackup]. +// The request for +// [DeleteBackup][google.spanner.admin.database.v1.DatabaseAdmin.DeleteBackup]. message DeleteBackupRequest { // Required. Name of the backup to delete. // Values are of the form // `projects//instances//backups/`. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "spanner.googleapis.com/Backup" - } + (google.api.resource_reference) = { type: "spanner.googleapis.com/Backup" } ]; } -// The request for [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups]. +// The request for +// [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups]. message ListBackupsRequest { // Required. The instance to list backups from. Values are of the // form `projects//instances/`. @@ -218,13 +253,16 @@ message ListBackupsRequest { // must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`. // Colon `:` is the contains operator. Filter rules are not case sensitive. // - // The following fields in the [Backup][google.spanner.admin.database.v1.Backup] are eligible for filtering: + // The following fields in the + // [Backup][google.spanner.admin.database.v1.Backup] are eligible for + // filtering: // // * `name` // * `database` // * `state` - // * `create_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - // * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + // * `create_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + // * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + // * `version_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) // * `size_bytes` // // You can combine multiple expressions by enclosing each expression in @@ -251,21 +289,23 @@ message ListBackupsRequest { int32 page_size = 3; // If non-empty, `page_token` should contain a - // [next_page_token][google.spanner.admin.database.v1.ListBackupsResponse.next_page_token] from a - // previous [ListBackupsResponse][google.spanner.admin.database.v1.ListBackupsResponse] to the same `parent` and with the same - // `filter`. + // [next_page_token][google.spanner.admin.database.v1.ListBackupsResponse.next_page_token] + // from a previous + // [ListBackupsResponse][google.spanner.admin.database.v1.ListBackupsResponse] + // to the same `parent` and with the same `filter`. string page_token = 4; } -// The response for [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups]. +// The response for +// [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups]. message ListBackupsResponse { // The list of matching backups. Backups returned are ordered by `create_time` // in descending order, starting from the most recent `create_time`. repeated Backup backups = 1; // `next_page_token` can be sent in a subsequent - // [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups] call to fetch more - // of the matching backups. + // [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups] + // call to fetch more of the matching backups. string next_page_token = 2; } @@ -295,7 +335,9 @@ message ListBackupOperationsRequest { // * `name` - The name of the long-running operation // * `done` - False if the operation is in progress, else true. // * `metadata.@type` - the type of metadata. For example, the type string - // for [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata] is + // for + // [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata] + // is // `type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata`. // * `metadata.` - any field in metadata.value. // * `error` - Error associated with the long-running operation. @@ -311,11 +353,12 @@ message ListBackupOperationsRequest { // * `done:true` - The operation is complete. // * `metadata.database:prod` - The database the backup was taken from has // a name containing the string "prod". - // * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND`
- // `(metadata.name:howl) AND`
- // `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND`
+ // * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \ + // `(metadata.name:howl) AND` \ + // `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \ // `(error:*)` - Returns operations where: - // * The operation's metadata type is [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata]. + // * The operation's metadata type is + // [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata]. // * The backup name contains the string "howl". // * The operation started before 2018-03-28T14:50:00Z. // * The operation resulted in an error. @@ -327,8 +370,9 @@ message ListBackupOperationsRequest { // If non-empty, `page_token` should contain a // [next_page_token][google.spanner.admin.database.v1.ListBackupOperationsResponse.next_page_token] - // from a previous [ListBackupOperationsResponse][google.spanner.admin.database.v1.ListBackupOperationsResponse] to the - // same `parent` and with the same `filter`. + // from a previous + // [ListBackupOperationsResponse][google.spanner.admin.database.v1.ListBackupOperationsResponse] + // to the same `parent` and with the same `filter`. string page_token = 4; } @@ -339,11 +383,11 @@ message ListBackupOperationsResponse { // operations][google.longrunning.Operation]. Each operation's name will be // prefixed by the backup's name and the operation's // [metadata][google.longrunning.Operation.metadata] will be of type - // [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata]. Operations returned include those that are - // pending or have completed/failed/canceled within the last 7 days. - // Operations returned are ordered by - // `operation.metadata.value.progress.start_time` in descending order starting - // from the most recently started operation. + // [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata]. + // Operations returned include those that are pending or have + // completed/failed/canceled within the last 7 days. Operations returned are + // ordered by `operation.metadata.value.progress.start_time` in descending + // order starting from the most recently started operation. repeated google.longrunning.Operation operations = 1; // `next_page_token` can be sent in a subsequent @@ -355,12 +399,63 @@ message ListBackupOperationsResponse { // Information about a backup. message BackupInfo { // Name of the backup. - string backup = 1; + string backup = 1 [ + (google.api.resource_reference) = { type: "spanner.googleapis.com/Backup" } + ]; // The backup contains an externally consistent copy of `source_database` at - // the timestamp specified by `create_time`. + // the timestamp specified by `version_time`. If the + // [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] + // request did not specify `version_time`, the `version_time` of the backup is + // equivalent to the `create_time`. + google.protobuf.Timestamp version_time = 4; + + // The time the + // [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] + // request was received. google.protobuf.Timestamp create_time = 2; // Name of the database the backup was created from. - string source_database = 3; + string source_database = 3 [(google.api.resource_reference) = { + type: "spanner.googleapis.com/Database" + }]; +} + +// Encryption configuration for the backup to create. +message CreateBackupEncryptionConfig { + // Encryption types for the backup. + enum EncryptionType { + // Unspecified. Do not use. + ENCRYPTION_TYPE_UNSPECIFIED = 0; + + // Use the same encryption configuration as the database. This is the + // default option when + // [encryption_config][google.spanner.admin.database.v1.CreateBackupEncryptionConfig] + // is empty. For example, if the database is using + // `Customer_Managed_Encryption`, the backup will be using the same Cloud + // KMS key as the database. + USE_DATABASE_ENCRYPTION = 1; + + // Use Google default encryption. + GOOGLE_DEFAULT_ENCRYPTION = 2; + + // Use customer managed encryption. If specified, `kms_key_name` + // must contain a valid Cloud KMS key. + CUSTOMER_MANAGED_ENCRYPTION = 3; + } + + // Required. The encryption type of the backup. + EncryptionType encryption_type = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The Cloud KMS key that will be used to protect the backup. + // This field should be set only when + // [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type] + // is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form + // `projects//locations//keyRings//cryptoKeys/`. + string kms_key_name = 2 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKey" + } + ]; } diff --git a/third_party/googleapis/google/spanner/admin/database/v1/common.proto b/third_party/googleapis/google/spanner/admin/database/v1/common.proto index 27ecb0a98..24d7c2d08 100644 --- a/third_party/googleapis/google/spanner/admin/database/v1/common.proto +++ b/third_party/googleapis/google/spanner/admin/database/v1/common.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -17,8 +17,9 @@ syntax = "proto3"; package google.spanner.admin.database.v1; import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; -import "google/api/annotations.proto"; +import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.Spanner.Admin.Database.V1"; option go_package = "google.golang.org/genproto/googleapis/spanner/admin/database/v1;database"; @@ -27,6 +28,14 @@ option java_outer_classname = "CommonProto"; option java_package = "com.google.spanner.admin.database.v1"; option php_namespace = "Google\\Cloud\\Spanner\\Admin\\Database\\V1"; option ruby_package = "Google::Cloud::Spanner::Admin::Database::V1"; +option (google.api.resource_definition) = { + type: "cloudkms.googleapis.com/CryptoKey" + pattern: "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}" +}; +option (google.api.resource_definition) = { + type: "cloudkms.googleapis.com/CryptoKeyVersion" + pattern: "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}" +}; // Encapsulates progress related information for a Cloud Spanner long // running operation. @@ -42,3 +51,50 @@ message OperationProgress { // successfully. google.protobuf.Timestamp end_time = 3; } + +// Encryption configuration for a Cloud Spanner database. +message EncryptionConfig { + // The Cloud KMS key to be used for encrypting and decrypting + // the database. Values are of the form + // `projects//locations//keyRings//cryptoKeys/`. + string kms_key_name = 2 [(google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKey" + }]; +} + +// Encryption information for a Cloud Spanner database or backup. +message EncryptionInfo { + // Possible encryption types. + enum Type { + // Encryption type was not specified, though data at rest remains encrypted. + TYPE_UNSPECIFIED = 0; + + // The data is encrypted at rest with a key that is + // fully managed by Google. No key version or status will be populated. + // This is the default state. + GOOGLE_DEFAULT_ENCRYPTION = 1; + + // The data is encrypted at rest with a key that is + // managed by the customer. The active version of the key. `kms_key_version` + // will be populated, and `encryption_status` may be populated. + CUSTOMER_MANAGED_ENCRYPTION = 2; + } + + // Output only. The type of encryption. + Type encryption_type = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. If present, the status of a recent encrypt/decrypt call on + // underlying data for this database or backup. Regardless of status, data is + // always encrypted at rest. + google.rpc.Status encryption_status = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A Cloud KMS key version that is being used to protect the + // database or backup. + string kms_key_version = 2 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKeyVersion" + } + ]; +} diff --git a/third_party/googleapis/google/spanner/admin/database/v1/spanner_admin_database_gapic.legacy.yaml b/third_party/googleapis/google/spanner/admin/database/v1/spanner_admin_database_gapic.legacy.yaml deleted file mode 100644 index af3feed7a..000000000 --- a/third_party/googleapis/google/spanner/admin/database/v1/spanner_admin_database_gapic.legacy.yaml +++ /dev/null @@ -1,396 +0,0 @@ -type: com.google.api.codegen.ConfigProto -config_schema_version: 1.0.0 -language_settings: - java: - package_name: com.google.cloud.spanner.admin.database.v1 - python: - package_name: google.cloud.spanner_admin_database_v1.gapic - go: - package_name: cloud.google.com/go/spanner/admin/database/apiv1 - csharp: - package_name: Google.Cloud.Spanner.Admin.Database.V1 - ruby: - package_name: Google::Cloud::Spanner::Admin::Database::V1 - php: - package_name: Google\Cloud\Spanner\Admin\Database\V1 - nodejs: - package_name: spanner.v1 - domain_layer_location: google-cloud -interfaces: -- name: google.spanner.admin.database.v1.DatabaseAdmin - collections: - - name_pattern: projects/{project}/instances/{instance} - entity_name: instance - language_overrides: - - language: csharp - common_resource_name: Google.Cloud.Spanner.Common.V1.InstanceName - - name_pattern: projects/{project}/instances/{instance}/backups/{backup} - entity_name: backup - - name_pattern: projects/{project}/instances/{instance}/databases/{database} - entity_name: database - language_overrides: - - language: csharp - common_resource_name: Google.Cloud.Spanner.Common.V1.DatabaseName - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - retry_params_def: - - name: default - initial_retry_delay_millis: 1000 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 32000 - initial_rpc_timeout_millis: 60000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 60000 - total_timeout_millis: 600000 - methods: - - name: ListDatabases - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - resource_name_treatment: STATIC_TYPES - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: databases - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: instance - timeout_millis: 3600000 - - name: CreateDatabase - flattening: - groups: - - parameters: - - parent - - create_statement - required_fields: - - parent - - create_statement - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: instance - timeout_millis: 3600000 - long_running: - return_type: google.spanner.admin.database.v1.Database - metadata_type: google.spanner.admin.database.v1.CreateDatabaseMetadata - initial_poll_delay_millis: 20000 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 45000 - total_poll_timeout_millis: 86400000 - - name: GetDatabase - flattening: - groups: - - parameters: - - name - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: database - timeout_millis: 3600000 - - name: UpdateDatabaseDdl - flattening: - groups: - - parameters: - - database - - statements - required_fields: - - database - - statements - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - database: database - timeout_millis: 3600000 - long_running: - return_type: google.protobuf.Empty - metadata_type: google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata - initial_poll_delay_millis: 20000 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 45000 - total_poll_timeout_millis: 86400000 - - name: DropDatabase - flattening: - groups: - - parameters: - - database - required_fields: - - database - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - database: database - timeout_millis: 3600000 - - name: GetDatabaseDdl - flattening: - groups: - - parameters: - - database - required_fields: - - database - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - database: database - timeout_millis: 3600000 - - name: SetIamPolicy - flattening: - groups: - - parameters: - - resource - - policy - required_fields: - - resource - - policy - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - resource: database - timeout_millis: 30000 - - name: GetIamPolicy - flattening: - groups: - - parameters: - - resource - required_fields: - - resource - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - resource: database - timeout_millis: 30000 - - name: TestIamPermissions - flattening: - groups: - - parameters: - - resource - - permissions - required_fields: - - resource - - permissions - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - resource: database - timeout_millis: 30000 - - name: CreateBackup - flattening: - groups: - - parameters: - - parent - - backup_id - - backup - required_fields: - - parent - - backup_id - - backup - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: instance - long_running: - return_type: google.spanner.admin.database.v1.Backup - metadata_type: google.spanner.admin.database.v1.CreateBackupMetadata - initial_poll_delay_millis: 20000 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 45000 - total_poll_timeout_millis: 172800000 - timeout_millis: 3600000 - - name: GetBackup - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: backup - timeout_millis: 3600000 - - name: UpdateBackup - flattening: - groups: - - parameters: - - backup - - update_mask - required_fields: - - backup - - update_mask - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - backup.name: backup - timeout_millis: 3600000 - - name: DeleteBackup - flattening: - groups: - - parameters: - - name - required_fields: - - name - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: backup - timeout_millis: 3600000 - - name: ListBackups - flattening: - groups: - - parameters: - - parent - - filter - required_fields: - - parent - - filter - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: backups - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: instance - timeout_millis: 3600000 - - name: RestoreDatabase - flattening: - groups: - - parameters: - - parent - - database_id - required_fields: - - parent - - database_id - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: instance - long_running: - return_type: google.spanner.admin.database.v1.Database - metadata_type: google.spanner.admin.database.v1.RestoreDatabaseMetadata - initial_poll_delay_millis: 20000 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 45000 - total_poll_timeout_millis: 86400000 - timeout_millis: 3600000 - - name: ListDatabaseOperations - flattening: - groups: - - parameters: - - parent - - filter - required_fields: - - parent - - filter - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: operations - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: instance - timeout_millis: 3600000 - - name: ListBackupOperations - flattening: - groups: - - parameters: - - parent - - filter - required_fields: - - parent - - filter - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: operations - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: instance - timeout_millis: 3600000 -resource_name_generation: -- message_name: ListDatabasesRequest - field_entity_map: - parent: instance -- message_name: CreateDatabaseRequest - field_entity_map: - parent: instance -- message_name: CreateDatabaseMetadata - field_entity_map: - database: database -- message_name: GetDatabaseRequest - field_entity_map: - name: database -- message_name: UpdateDatabaseDdlRequest - field_entity_map: - database: database -- message_name: UpdateDatabaseDdlMetadata - field_entity_map: - database: database -- message_name: DropDatabaseRequest - field_entity_map: - database: database -- message_name: GetDatabaseDdlRequest - field_entity_map: - database: database -- message_name: Database - field_entity_map: - name: database -- message_name: Backup - field_entity_map: - name: backup -- message_name: CreateBackupRequest - field_entity_map: - parent: instance -- message_name: CreateBackupMetadata - field_entity_map: - name: backup - database: database -- message_name: UpdateBackupRequest -- message_name: GetBackupRequest - field_entity_map: - name: backup -- message_name: DeleteBackupRequest - field_entity_map: - name: backup -- message_name: ListBackupsRequest - field_entity_map: - parent: instance -- message_name: ListBackupsResponse -- message_name: ListDatabaseOperationsRequest - field_entity_map: - parent: instance -- message_name: ListDatabaseOperationsResponse -- message_name: RestoreDatabaseRequest - field_entity_map: - parent: instance - database_id: database -- message_name: RestoreDatabaseMetadata diff --git a/third_party/googleapis/google/spanner/admin/database/v1/spanner_database_admin.proto b/third_party/googleapis/google/spanner/admin/database/v1/spanner_database_admin.proto index af440c1a3..ac771bc06 100644 --- a/third_party/googleapis/google/spanner/admin/database/v1/spanner_database_admin.proto +++ b/third_party/googleapis/google/spanner/admin/database/v1/spanner_database_admin.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -65,10 +65,11 @@ service DatabaseAdmin { // have a name of the format `/operations/` and // can be used to track preparation of the database. The // [metadata][google.longrunning.Operation.metadata] field type is - // [CreateDatabaseMetadata][google.spanner.admin.database.v1.CreateDatabaseMetadata]. The - // [response][google.longrunning.Operation.response] field type is + // [CreateDatabaseMetadata][google.spanner.admin.database.v1.CreateDatabaseMetadata]. + // The [response][google.longrunning.Operation.response] field type is // [Database][google.spanner.admin.database.v1.Database], if successful. - rpc CreateDatabase(CreateDatabaseRequest) returns (google.longrunning.Operation) { + rpc CreateDatabase(CreateDatabaseRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/instances/*}/databases" body: "*" @@ -94,8 +95,10 @@ service DatabaseAdmin { // the format `/operations/` and can be used to // track execution of the schema change(s). The // [metadata][google.longrunning.Operation.metadata] field type is - // [UpdateDatabaseDdlMetadata][google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata]. The operation has no response. - rpc UpdateDatabaseDdl(UpdateDatabaseDdlRequest) returns (google.longrunning.Operation) { + // [UpdateDatabaseDdlMetadata][google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata]. + // The operation has no response. + rpc UpdateDatabaseDdl(UpdateDatabaseDdlRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { patch: "/v1/{database=projects/*/instances/*/databases/*}/ddl" body: "*" @@ -134,7 +137,8 @@ service DatabaseAdmin { // permission on [resource][google.iam.v1.SetIamPolicyRequest.resource]. // For backups, authorization requires `spanner.backups.setIamPolicy` // permission on [resource][google.iam.v1.SetIamPolicyRequest.resource]. - rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) returns (google.iam.v1.Policy) { + rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) + returns (google.iam.v1.Policy) { option (google.api.http) = { post: "/v1/{resource=projects/*/instances/*/databases/*}:setIamPolicy" body: "*" @@ -154,7 +158,8 @@ service DatabaseAdmin { // [resource][google.iam.v1.GetIamPolicyRequest.resource]. // For backups, authorization requires `spanner.backups.getIamPolicy` // permission on [resource][google.iam.v1.GetIamPolicyRequest.resource]. - rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) returns (google.iam.v1.Policy) { + rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) + returns (google.iam.v1.Policy) { option (google.api.http) = { post: "/v1/{resource=projects/*/instances/*/databases/*}:getIamPolicy" body: "*" @@ -176,7 +181,8 @@ service DatabaseAdmin { // Calling this method on a backup that does not exist will // result in a NOT_FOUND error if the user has // `spanner.backups.list` permission on the containing instance. - rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) returns (google.iam.v1.TestIamPermissionsResponse) { + rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) + returns (google.iam.v1.TestIamPermissionsResponse) { option (google.api.http) = { post: "/v1/{resource=projects/*/instances/*/databases/*}:testIamPermissions" body: "*" @@ -194,12 +200,12 @@ service DatabaseAdmin { // `projects//instances//backups//operations/` // and can be used to track creation of the backup. The // [metadata][google.longrunning.Operation.metadata] field type is - // [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata]. The - // [response][google.longrunning.Operation.response] field type is - // [Backup][google.spanner.admin.database.v1.Backup], if successful. Cancelling the returned operation will stop the - // creation and delete the backup. - // There can be only one pending backup creation per database. Backup creation - // of different databases can run concurrently. + // [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata]. + // The [response][google.longrunning.Operation.response] field type is + // [Backup][google.spanner.admin.database.v1.Backup], if successful. + // Cancelling the returned operation will stop the creation and delete the + // backup. There can be only one pending backup creation per database. Backup + // creation of different databases can run concurrently. rpc CreateBackup(CreateBackupRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/instances/*}/backups" @@ -212,7 +218,8 @@ service DatabaseAdmin { }; } - // Gets metadata on a pending or completed [Backup][google.spanner.admin.database.v1.Backup]. + // Gets metadata on a pending or completed + // [Backup][google.spanner.admin.database.v1.Backup]. rpc GetBackup(GetBackupRequest) returns (Backup) { option (google.api.http) = { get: "/v1/{name=projects/*/instances/*/backups/*}" @@ -220,7 +227,8 @@ service DatabaseAdmin { option (google.api.method_signature) = "name"; } - // Updates a pending or completed [Backup][google.spanner.admin.database.v1.Backup]. + // Updates a pending or completed + // [Backup][google.spanner.admin.database.v1.Backup]. rpc UpdateBackup(UpdateBackupRequest) returns (Backup) { option (google.api.http) = { patch: "/v1/{backup.name=projects/*/instances/*/backups/*}" @@ -229,7 +237,8 @@ service DatabaseAdmin { option (google.api.method_signature) = "backup,update_mask"; } - // Deletes a pending or completed [Backup][google.spanner.admin.database.v1.Backup]. + // Deletes a pending or completed + // [Backup][google.spanner.admin.database.v1.Backup]. rpc DeleteBackup(DeleteBackupRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1/{name=projects/*/instances/*/backups/*}" @@ -264,7 +273,8 @@ service DatabaseAdmin { // Once the restore operation completes, a new restore operation can be // initiated, without waiting for the optimize operation associated with the // first restore to complete. - rpc RestoreDatabase(RestoreDatabaseRequest) returns (google.longrunning.Operation) { + rpc RestoreDatabase(RestoreDatabaseRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/instances/*}/databases:restore" body: "*" @@ -284,7 +294,8 @@ service DatabaseAdmin { // `metadata.type_url` describes the type of the metadata. Operations returned // include those that have completed/failed/canceled within the last 7 days, // and pending operations. - rpc ListDatabaseOperations(ListDatabaseOperationsRequest) returns (ListDatabaseOperationsResponse) { + rpc ListDatabaseOperations(ListDatabaseOperationsRequest) + returns (ListDatabaseOperationsResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/instances/*}/databaseOperations" }; @@ -301,7 +312,8 @@ service DatabaseAdmin { // and pending operations. Operations returned are ordered by // `operation.metadata.value.progress.start_time` in descending order starting // from the most recently started operation. - rpc ListBackupOperations(ListBackupOperationsRequest) returns (ListBackupOperationsResponse) { + rpc ListBackupOperations(ListBackupOperationsRequest) + returns (ListBackupOperationsResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/instances/*}/backupOperations" }; @@ -363,14 +375,51 @@ message Database { State state = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. If exists, the time at which the database creation started. - google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Applicable only for restored databases. Contains information // about the restore source. RestoreInfo restore_info = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. For databases that are using customer managed encryption, this + // field contains the encryption configuration for the database. + // For databases that are using Google default or other types of encryption, + // this field is empty. + EncryptionConfig encryption_config = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. For databases that are using customer managed encryption, this + // field contains the encryption information for the database, such as + // encryption state and the Cloud KMS key versions that are in use. + // + // For databases that are using Google default or other types of encryption, + // this field is empty. + // + // This field is propagated lazily from the backend. There might be a delay + // from when a key version is being used and when it appears in this field. + repeated EncryptionInfo encryption_info = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The period in which Cloud Spanner retains all versions of data + // for the database. This is the same as the value of version_retention_period + // database option set using + // [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]. + // Defaults to 1 hour, if not set. + string version_retention_period = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Earliest timestamp at which older versions of the data can be + // read. This value is continuously updated by Cloud Spanner and becomes stale + // the moment it is queried. If you are using this value to recover data, make + // sure to account for the time from the moment when the value is queried to + // the moment when you initiate the recovery. + google.protobuf.Timestamp earliest_version_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; } -// The request for [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases]. +// The request for +// [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases]. message ListDatabasesRequest { // Required. The instance whose databases should be listed. // Values are of the form `projects//instances/`. @@ -386,23 +435,26 @@ message ListDatabasesRequest { int32 page_size = 3; // If non-empty, `page_token` should contain a - // [next_page_token][google.spanner.admin.database.v1.ListDatabasesResponse.next_page_token] from a - // previous [ListDatabasesResponse][google.spanner.admin.database.v1.ListDatabasesResponse]. + // [next_page_token][google.spanner.admin.database.v1.ListDatabasesResponse.next_page_token] + // from a previous + // [ListDatabasesResponse][google.spanner.admin.database.v1.ListDatabasesResponse]. string page_token = 4; } -// The response for [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases]. +// The response for +// [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases]. message ListDatabasesResponse { // Databases that matched the request. repeated Database databases = 1; // `next_page_token` can be sent in a subsequent - // [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases] call to fetch more - // of the matching databases. + // [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases] + // call to fetch more of the matching databases. string next_page_token = 2; } -// The request for [CreateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.CreateDatabase]. +// The request for +// [CreateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.CreateDatabase]. message CreateDatabaseRequest { // Required. The name of the instance that will serve the new database. // Values are of the form `projects//instances/`. @@ -425,6 +477,12 @@ message CreateDatabaseRequest { // statements execute atomically with the creation of the database: // if there is an error in any statement, the database is not created. repeated string extra_statements = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The encryption configuration for the database. If this field is + // not specified, Cloud Spanner will encrypt/decrypt all data at rest using + // Google default encryption. + EncryptionConfig encryption_config = 4 + [(google.api.field_behavior) = OPTIONAL]; } // Metadata type for the operation returned by @@ -432,11 +490,12 @@ message CreateDatabaseRequest { message CreateDatabaseMetadata { // The database being created. string database = 1 [(google.api.resource_reference) = { - type: "spanner.googleapis.com/Database" - }]; + type: "spanner.googleapis.com/Database" + }]; } -// The request for [GetDatabase][google.spanner.admin.database.v1.DatabaseAdmin.GetDatabase]. +// The request for +// [GetDatabase][google.spanner.admin.database.v1.DatabaseAdmin.GetDatabase]. message GetDatabaseRequest { // Required. The name of the requested database. Values are of the form // `projects//instances//databases/`. @@ -462,8 +521,8 @@ message GetDatabaseRequest { // Each batch of statements is assigned a name which can be used with // the [Operations][google.longrunning.Operations] API to monitor // progress. See the -// [operation_id][google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.operation_id] field for more -// details. +// [operation_id][google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.operation_id] +// field for more details. message UpdateDatabaseDdlRequest { // Required. The database to update. string database = 1 [ @@ -483,18 +542,20 @@ message UpdateDatabaseDdlRequest { // // Specifying an explicit operation ID simplifies determining // whether the statements were executed in the event that the - // [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] call is replayed, - // or the return value is otherwise lost: the [database][google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.database] and - // `operation_id` fields can be combined to form the + // [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] + // call is replayed, or the return value is otherwise lost: the + // [database][google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.database] + // and `operation_id` fields can be combined to form the // [name][google.longrunning.Operation.name] of the resulting - // [longrunning.Operation][google.longrunning.Operation]: `/operations/`. + // [longrunning.Operation][google.longrunning.Operation]: + // `/operations/`. // // `operation_id` should be unique within the database, and must be // a valid identifier: `[a-z][a-z0-9_]*`. Note that // automatically-generated operation IDs always begin with an // underscore. If the named operation already exists, - // [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] returns - // `ALREADY_EXISTS`. + // [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] + // returns `ALREADY_EXISTS`. string operation_id = 3; } @@ -503,8 +564,8 @@ message UpdateDatabaseDdlRequest { message UpdateDatabaseDdlMetadata { // The database being modified. string database = 1 [(google.api.resource_reference) = { - type: "spanner.googleapis.com/Database" - }]; + type: "spanner.googleapis.com/Database" + }]; // For an update this list contains all the statements. For an // individual statement, this list contains only that statement. @@ -514,9 +575,15 @@ message UpdateDatabaseDdlMetadata { // succeeded so far, where `commit_timestamps[i]` is the commit // timestamp for the statement `statements[i]`. repeated google.protobuf.Timestamp commit_timestamps = 3; + + // Output only. When true, indicates that the operation is throttled e.g + // due to resource constraints. When resources become available the operation + // will resume and this field will be false again. + bool throttled = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; } -// The request for [DropDatabase][google.spanner.admin.database.v1.DatabaseAdmin.DropDatabase]. +// The request for +// [DropDatabase][google.spanner.admin.database.v1.DatabaseAdmin.DropDatabase]. message DropDatabaseRequest { // Required. The database to be dropped. string database = 1 [ @@ -527,9 +594,12 @@ message DropDatabaseRequest { ]; } -// The request for [GetDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.GetDatabaseDdl]. +// The request for +// [GetDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.GetDatabaseDdl]. message GetDatabaseDdlRequest { // Required. The database whose schema we wish to get. + // Values are of the form + // `projects//instances//databases/` string database = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -538,7 +608,8 @@ message GetDatabaseDdlRequest { ]; } -// The response for [GetDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.GetDatabaseDdl]. +// The response for +// [GetDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.GetDatabaseDdl]. message GetDatabaseDdlResponse { // A list of formatted DDL statements defining the schema of the database // specified in the request. @@ -571,7 +642,9 @@ message ListDatabaseOperationsRequest { // * `name` - The name of the long-running operation // * `done` - False if the operation is in progress, else true. // * `metadata.@type` - the type of metadata. For example, the type string - // for [RestoreDatabaseMetadata][google.spanner.admin.database.v1.RestoreDatabaseMetadata] is + // for + // [RestoreDatabaseMetadata][google.spanner.admin.database.v1.RestoreDatabaseMetadata] + // is // `type.googleapis.com/google.spanner.admin.database.v1.RestoreDatabaseMetadata`. // * `metadata.` - any field in metadata.value. // * `error` - Error associated with the long-running operation. @@ -585,13 +658,14 @@ message ListDatabaseOperationsRequest { // Here are a few examples: // // * `done:true` - The operation is complete. - // * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.RestoreDatabaseMetadata) AND`
- // `(metadata.source_type:BACKUP) AND`
- // `(metadata.backup_info.backup:backup_howl) AND`
- // `(metadata.name:restored_howl) AND`
- // `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND`
+ // * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.RestoreDatabaseMetadata) AND` \ + // `(metadata.source_type:BACKUP) AND` \ + // `(metadata.backup_info.backup:backup_howl) AND` \ + // `(metadata.name:restored_howl) AND` \ + // `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \ // `(error:*)` - Return operations where: - // * The operation's metadata type is [RestoreDatabaseMetadata][google.spanner.admin.database.v1.RestoreDatabaseMetadata]. + // * The operation's metadata type is + // [RestoreDatabaseMetadata][google.spanner.admin.database.v1.RestoreDatabaseMetadata]. // * The database is restored from a backup. // * The backup name contains "backup_howl". // * The restored database's name contains "restored_howl". @@ -605,8 +679,9 @@ message ListDatabaseOperationsRequest { // If non-empty, `page_token` should contain a // [next_page_token][google.spanner.admin.database.v1.ListDatabaseOperationsResponse.next_page_token] - // from a previous [ListDatabaseOperationsResponse][google.spanner.admin.database.v1.ListDatabaseOperationsResponse] to the - // same `parent` and with the same `filter`. + // from a previous + // [ListDatabaseOperationsResponse][google.spanner.admin.database.v1.ListDatabaseOperationsResponse] + // to the same `parent` and with the same `filter`. string page_token = 4; } @@ -652,22 +727,70 @@ message RestoreDatabaseRequest { // Name of the backup from which to restore. Values are of the form // `projects//instances//backups/`. string backup = 3 [(google.api.resource_reference) = { - type: "spanner.googleapis.com/Backup" - }]; + type: "spanner.googleapis.com/Backup" + }]; } + + // Optional. An encryption configuration describing the encryption type and + // key resources in Cloud KMS used to encrypt/decrypt the database to restore + // to. If this field is not specified, the restored database will use the same + // encryption configuration as the backup by default, namely + // [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type] + // = `USE_CONFIG_DEFAULT_OR_DATABASE_ENCRYPTION`. + RestoreDatabaseEncryptionConfig encryption_config = 4 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Encryption configuration for the restored database. +message RestoreDatabaseEncryptionConfig { + // Encryption types for the database to be restored. + enum EncryptionType { + // Unspecified. Do not use. + ENCRYPTION_TYPE_UNSPECIFIED = 0; + + // This is the default option when + // [encryption_config][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig] + // is not specified. + USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION = 1; + + // Use Google default encryption. + GOOGLE_DEFAULT_ENCRYPTION = 2; + + // Use customer managed encryption. If specified, `kms_key_name` must + // must contain a valid Cloud KMS key. + CUSTOMER_MANAGED_ENCRYPTION = 3; + } + + // Required. The encryption type of the restored database. + EncryptionType encryption_type = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The Cloud KMS key that will be used to encrypt/decrypt the + // restored database. This field should be set only when + // [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type] + // is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form + // `projects//locations//keyRings//cryptoKeys/`. + string kms_key_name = 2 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKey" + } + ]; } // Metadata type for the long-running operation returned by // [RestoreDatabase][google.spanner.admin.database.v1.DatabaseAdmin.RestoreDatabase]. message RestoreDatabaseMetadata { // Name of the database being created and restored to. - string name = 1; + string name = 1 [(google.api.resource_reference) = { + type: "spanner.googleapis.com/Database" + }]; // The type of the restore source. RestoreSourceType source_type = 2; // Information about the source used to restore the database, as specified by - // `source` in [RestoreDatabaseRequest][google.spanner.admin.database.v1.RestoreDatabaseRequest]. + // `source` in + // [RestoreDatabaseRequest][google.spanner.admin.database.v1.RestoreDatabaseRequest]. oneof source_info { // Information about the backup used to restore the database. BackupInfo backup_info = 3; @@ -688,7 +811,8 @@ message RestoreDatabaseMetadata { // operation completed despite cancellation. On successful cancellation, // the operation is not deleted; instead, it becomes an operation with // an [Operation.error][google.longrunning.Operation.error] value with a - // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`. + // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + // `Code.CANCELLED`. google.protobuf.Timestamp cancel_time = 5; // If exists, the name of the long-running operation that will be used to @@ -698,10 +822,10 @@ message RestoreDatabaseMetadata { // `projects//instances//databases//operations/` // where the is the name of database being created and restored to. // The metadata type of the long-running operation is - // [OptimizeRestoredDatabaseMetadata][google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata]. This long-running operation will be - // automatically created by the system after the RestoreDatabase long-running - // operation completes successfully. This operation will not be created if the - // restore was not successful. + // [OptimizeRestoredDatabaseMetadata][google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata]. + // This long-running operation will be automatically created by the system + // after the RestoreDatabase long-running operation completes successfully. + // This operation will not be created if the restore was not successful. string optimize_database_operation_name = 6; } @@ -711,7 +835,9 @@ message RestoreDatabaseMetadata { // completion of a database restore, and cannot be cancelled. message OptimizeRestoredDatabaseMetadata { // Name of the restored database being optimized. - string name = 1; + string name = 1 [(google.api.resource_reference) = { + type: "spanner.googleapis.com/Database" + }]; // The progress of the post-restore optimizations. OperationProgress progress = 2; diff --git a/third_party/googleapis/google/spanner/admin/instance/artman_spanner_admin_instance.legacy.yaml b/third_party/googleapis/google/spanner/admin/instance/artman_spanner_admin_instance.legacy.yaml deleted file mode 100644 index daed7dc29..000000000 --- a/third_party/googleapis/google/spanner/admin/instance/artman_spanner_admin_instance.legacy.yaml +++ /dev/null @@ -1,20 +0,0 @@ -common: - api_name: spanner-admin-instance - api_version: v1 - organization_name: google-cloud - service_yaml: v1/spanner_admin_instance.yaml - gapic_yaml: v1/spanner_admin_instance_gapic.legacy.yaml - proto_package: google.spanner.admin.instance.v1 - src_proto_paths: - - v1 - proto_deps: - - name: google-common-protos - - name: google-iam-v1 - proto_path: google/iam/v1 -artifacts: -- name: php_gapic - type: GAPIC - language: PHP -- name: ruby_gapic - type: GAPIC - language: RUBY diff --git a/third_party/googleapis/google/spanner/admin/instance/artman_spanner_admin_instance.yaml b/third_party/googleapis/google/spanner/admin/instance/artman_spanner_admin_instance.yaml deleted file mode 100644 index 23ae80aaa..000000000 --- a/third_party/googleapis/google/spanner/admin/instance/artman_spanner_admin_instance.yaml +++ /dev/null @@ -1,31 +0,0 @@ -common: - api_name: spanner-admin-instance - api_version: v1 - organization_name: google-cloud - service_yaml: v1/spanner_admin_instance.yaml - gapic_yaml: v1/spanner_admin_instance_gapic.yaml - proto_package: google.spanner.admin.instance.v1 - src_proto_paths: - - v1 - proto_deps: - - name: google-common-protos - - name: google-iam-v1 - proto_path: google/iam/v1 -artifacts: -- name: java_gapic - type: GAPIC - language: JAVA -- name: python_gapic - type: GAPIC - language: PYTHON -- name: go_gapic - type: GAPIC - language: GO -- name: csharp_gapic - type: GAPIC - language: CSHARP -- name: nodejs_gapic - type: GAPIC - language: NODEJS -- name: gapic_config - type: GAPIC_CONFIG diff --git a/third_party/googleapis/google/spanner/admin/instance/v1/BUILD.bazel b/third_party/googleapis/google/spanner/admin/instance/v1/BUILD.bazel index 497ec67cf..684a26251 100644 --- a/third_party/googleapis/google/spanner/admin/instance/v1/BUILD.bazel +++ b/third_party/googleapis/google/spanner/admin/instance/v1/BUILD.bazel @@ -61,11 +61,9 @@ java_grpc_library( java_gapic_library( name = "instance_java_gapic", - src = ":instance_proto_with_info", + srcs = [":instance_proto_with_info"], gapic_yaml = "spanner_admin_instance_gapic.yaml", grpc_service_config = "spanner_admin_instance_grpc_service_config.json", - package = "google.spanner.admin.instance.v1", - service_yaml = "spanner_admin_instance.yaml", test_deps = [ ":instance_java_grpc", "//google/iam/v1:iam_java_grpc", @@ -127,9 +125,9 @@ go_gapic_library( deps = [ ":instance_go_proto", "//google/iam/v1:iam_go_proto", - "@com_google_cloud_go//longrunning/autogen:go_default_library", "//google/longrunning:longrunning_go_proto", "@com_google_cloud_go//longrunning:go_default_library", + "@com_google_cloud_go//longrunning/autogen:go_default_library", ], ) @@ -155,62 +153,24 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "instance_moved_proto", - srcs = [":instance_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:resource_proto", - "//google/iam/v1:iam_policy_proto", - "//google/iam/v1:policy_proto", - "//google/longrunning:operations_proto", - "@com_google_protobuf//:empty_proto", - "@com_google_protobuf//:field_mask_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -py_proto_library( - name = "instance_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":instance_moved_proto"], -) - -py_grpc_library( - name = "instance_py_grpc", - srcs = [":instance_moved_proto"], - deps = [":instance_py_proto"], ) py_gapic_library( name = "instance_py_gapic", - src = ":instance_proto_with_info", - gapic_yaml = "spanner_admin_instance_gapic.yaml", + srcs = [":instance_proto"], grpc_service_config = "spanner_admin_instance_grpc_service_config.json", - package = "google.spanner.admin.instance.v1", - service_yaml = "spanner_admin_instance.yaml", - deps = [ - ":instance_py_grpc", - ":instance_py_proto", + opt_args = [ + "python-gapic-namespace=google.cloud", + "python-gapic-name=spanner_admin_instance", ], ) -# Open Source Packages py_gapic_assembly_pkg( name = "admin-instance-v1-py", deps = [ ":instance_py_gapic", - ":instance_py_grpc", - ":instance_py_proto", ], ) @@ -271,6 +231,7 @@ load( nodejs_gapic_library( name = "instance_nodejs_gapic", src = ":instance_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "spanner_admin_instance_grpc_service_config.json", package = "google.spanner.admin.instance.v1", service_yaml = "spanner_admin_instance.yaml", @@ -291,7 +252,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -307,12 +268,19 @@ ruby_grpc_library( deps = [":instance_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "instance_ruby_gapic", - src = ":instance_proto_with_info", - gapic_yaml = "spanner_admin_instance_gapic.yaml", - package = "google.spanner.admin.instance.v1", - service_yaml = "spanner_admin_instance.yaml", + srcs = [":instance_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-spanner-admin-instance-v1", + "ruby-cloud-env-prefix=SPANNER", + "ruby-cloud-product-url=https://cloud.google.com/spanner", + "ruby-cloud-api-id=spanner.googleapis.com", + "ruby-cloud-api-shortname=spanner", + ], + grpc_service_config = "spanner_admin_instance_grpc_service_config.json", + ruby_cloud_description = "Cloud Spanner is a managed, mission-critical, globally consistent and scalable relational database service.", + ruby_cloud_title = "Cloud Spanner Instance Admin V1", deps = [ ":instance_ruby_grpc", ":instance_ruby_proto", @@ -354,8 +322,8 @@ csharp_grpc_library( csharp_gapic_library( name = "instance_csharp_gapic", srcs = [":instance_proto_with_info"], - grpc_service_config = "spanner_admin_instance_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "spanner_admin_instance_grpc_service_config.json", deps = [ ":instance_csharp_grpc", ":instance_csharp_proto", @@ -378,7 +346,8 @@ csharp_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "cc_grpc_library", - "cc_proto_library") + "cc_proto_library", +) cc_proto_library( name = "instance_cc_proto", diff --git a/third_party/googleapis/google/spanner/admin/instance/v1/spanner_admin_instance_gapic.legacy.yaml b/third_party/googleapis/google/spanner/admin/instance/v1/spanner_admin_instance_gapic.legacy.yaml deleted file mode 100644 index 8e149a7e5..000000000 --- a/third_party/googleapis/google/spanner/admin/instance/v1/spanner_admin_instance_gapic.legacy.yaml +++ /dev/null @@ -1,242 +0,0 @@ -type: com.google.api.codegen.ConfigProto -config_schema_version: 1.0.0 -language_settings: - java: - package_name: com.google.cloud.spanner.admin.instance.v1 - python: - package_name: google.cloud.spanner_admin_instance_v1.gapic - go: - package_name: cloud.google.com/go/spanner/admin/instance/apiv1 - csharp: - package_name: Google.Cloud.Spanner.Admin.Instance.V1 - ruby: - package_name: Google::Cloud::Spanner::Admin::Instance::V1 - php: - package_name: Google\Cloud\Spanner\Admin\Instance\V1 - nodejs: - package_name: spanner.v1 - domain_layer_location: google-cloud -interfaces: -- name: google.spanner.admin.instance.v1.InstanceAdmin - collections: - - name_pattern: projects/{project} - entity_name: project - language_overrides: - - language: csharp - common_resource_name: Google.Api.Gax.ResourceNames.ProjectName - - name_pattern: projects/{project}/instanceConfigs/{instance_config} - entity_name: instance_config - - name_pattern: projects/{project}/instances/{instance} - entity_name: instance - language_overrides: - - language: csharp - common_resource_name: Google.Cloud.Spanner.Common.V1.InstanceName - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - retry_params_def: - - name: default - initial_retry_delay_millis: 1000 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 32000 - initial_rpc_timeout_millis: 60000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 60000 - total_timeout_millis: 600000 - methods: - - name: ListInstanceConfigs - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - resource_name_treatment: STATIC_TYPES - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: instance_configs - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 3600000 - - name: GetInstanceConfig - flattening: - groups: - - parameters: - - name - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: instance_config - timeout_millis: 3600000 - - name: ListInstances - flattening: - groups: - - parameters: - - parent - required_fields: - - parent - resource_name_treatment: STATIC_TYPES - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: instances - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 3600000 - - name: GetInstance - flattening: - groups: - - parameters: - - name - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: instance - timeout_millis: 3600000 - - name: CreateInstance - flattening: - groups: - - parameters: - - parent - - instance_id - - instance - required_fields: - - parent - - instance_id - - instance - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 3600000 - long_running: - return_type: google.spanner.admin.instance.v1.Instance - metadata_type: google.spanner.admin.instance.v1.CreateInstanceMetadata - initial_poll_delay_millis: 20000 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 45000 - total_poll_timeout_millis: 86400000 - - name: UpdateInstance - flattening: - groups: - - parameters: - - instance - - field_mask - required_fields: - - instance - - field_mask - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - instance.name: instance - timeout_millis: 3600000 - long_running: - return_type: google.spanner.admin.instance.v1.Instance - metadata_type: google.spanner.admin.instance.v1.UpdateInstanceMetadata - initial_poll_delay_millis: 20000 - poll_delay_multiplier: 1.5 - max_poll_delay_millis: 45000 - total_poll_timeout_millis: 86400000 - - name: DeleteInstance - flattening: - groups: - - parameters: - - name - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: instance - timeout_millis: 3600000 - - name: SetIamPolicy - flattening: - groups: - - parameters: - - resource - - policy - required_fields: - - resource - - policy - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - resource: instance - timeout_millis: 30000 - - name: GetIamPolicy - flattening: - groups: - - parameters: - - resource - required_fields: - - resource - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - resource: instance - timeout_millis: 30000 - - name: TestIamPermissions - flattening: - groups: - - parameters: - - resource - - permissions - required_fields: - - resource - - permissions - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - resource: instance - timeout_millis: 30000 -resource_name_generation: -- message_name: InstanceConfig - field_entity_map: - name: instance_config -- message_name: Instance - field_entity_map: - name: instance - config: instance_config -- message_name: ListInstanceConfigsRequest - field_entity_map: - parent: project -- message_name: GetInstanceConfigRequest - field_entity_map: - name: instance_config -- message_name: GetInstanceRequest - field_entity_map: - name: instance -- message_name: CreateInstanceRequest - field_entity_map: - parent: project - instance_id: instance -- message_name: ListInstancesRequest - field_entity_map: - parent: project -- message_name: DeleteInstanceRequest - field_entity_map: - name: instance diff --git a/third_party/googleapis/google/spanner/artman_spanner.legacy.yaml b/third_party/googleapis/google/spanner/artman_spanner.legacy.yaml deleted file mode 100644 index 77a976066..000000000 --- a/third_party/googleapis/google/spanner/artman_spanner.legacy.yaml +++ /dev/null @@ -1,20 +0,0 @@ -common: - api_name: spanner - api_version: v1 - organization_name: google-cloud - service_yaml: v1/spanner.yaml - gapic_yaml: v1/spanner_gapic.legacy.yaml - proto_package: google.spanner.v1 - src_proto_paths: - - v1 - proto_deps: - - name: google-common-protos -artifacts: -- name: php_gapic - type: GAPIC - language: PHP - release_level: GA -- name: ruby_gapic - type: GAPIC - language: RUBY - release_level: GA diff --git a/third_party/googleapis/google/spanner/artman_spanner.yaml b/third_party/googleapis/google/spanner/artman_spanner.yaml deleted file mode 100644 index 5b90a1257..000000000 --- a/third_party/googleapis/google/spanner/artman_spanner.yaml +++ /dev/null @@ -1,35 +0,0 @@ -common: - api_name: spanner - api_version: v1 - organization_name: google-cloud - service_yaml: v1/spanner.yaml - gapic_yaml: v1/spanner_gapic.yaml - proto_package: google.spanner.v1 - src_proto_paths: - - v1 - proto_deps: - - name: google-common-protos -artifacts: -- name: java_gapic - type: GAPIC - language: JAVA - release_level: GA -- name: python_gapic - type: GAPIC - language: PYTHON - release_level: GA -- name: go_gapic - type: GAPIC - language: GO - release_level: GA -- name: csharp_gapic - type: GAPIC - language: CSHARP - release_level: GA -- name: nodejs_gapic - type: GAPIC - language: NODEJS - release_level: GA -- name: gapic_config - type: GAPIC_CONFIG - release_level: GA diff --git a/third_party/googleapis/google/spanner/v1/BUILD.bazel b/third_party/googleapis/google/spanner/v1/BUILD.bazel index 1be5c8d7d..214a7ad08 100644 --- a/third_party/googleapis/google/spanner/v1/BUILD.bazel +++ b/third_party/googleapis/google/spanner/v1/BUILD.bazel @@ -66,11 +66,9 @@ java_grpc_library( java_gapic_library( name = "spanner_java_gapic", - src = ":spanner_proto_with_info", + srcs = [":spanner_proto_with_info"], gapic_yaml = "spanner_gapic.yaml", grpc_service_config = "spanner_grpc_service_config.json", - package = "google.spanner.v1", - service_yaml = "spanner.yaml", test_deps = [ ":spanner_java_grpc", ], @@ -154,61 +152,21 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "spanner_moved_proto", - srcs = [":spanner_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:resource_proto", - "//google/rpc:status_proto", - "@com_google_protobuf//:duration_proto", - "@com_google_protobuf//:empty_proto", - "@com_google_protobuf//:struct_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -py_proto_library( - name = "spanner_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":spanner_moved_proto"], -) - -py_grpc_library( - name = "spanner_py_grpc", - srcs = [":spanner_moved_proto"], - deps = [":spanner_py_proto"], ) py_gapic_library( name = "spanner_py_gapic", - src = ":spanner_proto_with_info", - gapic_yaml = "spanner_gapic.yaml", + srcs = [":spanner_proto"], grpc_service_config = "spanner_grpc_service_config.json", - package = "google.spanner.v1", - service_yaml = "spanner.yaml", - deps = [ - ":spanner_py_grpc", - ":spanner_py_proto", - ], + opt_args = ["python-gapic-namespace=google.cloud"], ) -# Open Source Packages py_gapic_assembly_pkg( name = "spanner-v1-py", deps = [ ":spanner_py_gapic", - ":spanner_py_grpc", - ":spanner_py_proto", ], ) @@ -270,6 +228,7 @@ nodejs_gapic_library( name = "spanner_nodejs_gapic", package_name = "@google-cloud/spanner", src = ":spanner_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "spanner_grpc_service_config.json", main_service = "spanner", package = "google.spanner.v1", @@ -291,7 +250,7 @@ nodejs_gapic_assembly_pkg( load( "@com_google_googleapis_imports//:imports.bzl", "ruby_gapic_assembly_pkg", - "ruby_gapic_library", + "ruby_cloud_gapic_library", "ruby_grpc_library", "ruby_proto_library", ) @@ -307,12 +266,19 @@ ruby_grpc_library( deps = [":spanner_ruby_proto"], ) -ruby_gapic_library( +ruby_cloud_gapic_library( name = "spanner_ruby_gapic", - src = ":spanner_proto_with_info", - gapic_yaml = "spanner_gapic.yaml", - package = "google.spanner.v1", - service_yaml = "spanner.yaml", + srcs = [":spanner_proto_with_info"], + extra_protoc_parameters = [ + "ruby-cloud-gem-name=google-cloud-spanner-v1", + "ruby-cloud-env-prefix=SPANNER", + "ruby-cloud-product-url=https://cloud.google.com/spanner", + "ruby-cloud-api-id=spanner.googleapis.com", + "ruby-cloud-api-shortname=spanner", + ], + grpc_service_config = "spanner_grpc_service_config.json", + ruby_cloud_description = "Cloud Spanner is a managed, mission-critical, globally consistent and scalable relational database service.", + ruby_cloud_title = "Cloud Spanner V1", deps = [ ":spanner_ruby_grpc", ":spanner_ruby_proto", @@ -354,8 +320,8 @@ csharp_grpc_library( csharp_gapic_library( name = "spanner_csharp_gapic", srcs = [":spanner_proto_with_info"], - grpc_service_config = "spanner_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "spanner_grpc_service_config.json", deps = [ ":spanner_csharp_grpc", ":spanner_csharp_proto", diff --git a/third_party/googleapis/google/spanner/v1/keys.proto b/third_party/googleapis/google/spanner/v1/keys.proto index 267df0d10..d8ce0d677 100644 --- a/third_party/googleapis/google/spanner/v1/keys.proto +++ b/third_party/googleapis/google/spanner/v1/keys.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/spanner/v1/query_plan.proto b/third_party/googleapis/google/spanner/v1/query_plan.proto index 974a70e6d..35f8fe21c 100644 --- a/third_party/googleapis/google/spanner/v1/query_plan.proto +++ b/third_party/googleapis/google/spanner/v1/query_plan.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/spanner/v1/result_set.proto b/third_party/googleapis/google/spanner/v1/result_set.proto index a87d741fd..d6bb9a283 100644 --- a/third_party/googleapis/google/spanner/v1/result_set.proto +++ b/third_party/googleapis/google/spanner/v1/result_set.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/third_party/googleapis/google/spanner/v1/spanner.proto b/third_party/googleapis/google/spanner/v1/spanner.proto index 93e4987ed..75d37efd4 100644 --- a/third_party/googleapis/google/spanner/v1/spanner.proto +++ b/third_party/googleapis/google/spanner/v1/spanner.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/protobuf/duration.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; @@ -219,6 +220,12 @@ service Spanner { // transactions. However, it can also happen for a variety of other // reasons. If `Commit` returns `ABORTED`, the caller should re-attempt // the transaction from the beginning, re-using the same session. + // + // On very rare occasions, `Commit` might return `UNKNOWN`. This can happen, + // for example, if the client job experiences a 1+ hour networking failure. + // At that point, Cloud Spanner has lost track of the transaction outcome and + // we recommend that you perform another read from the database to see the + // state of things as they are now. rpc Commit(CommitRequest) returns (CommitResponse) { option (google.api.http) = { post: "/v1/{session=projects/*/instances/*/databases/*/sessions/*}:commit" @@ -331,9 +338,8 @@ message Session { pattern: "projects/{project}/instances/{instance}/databases/{database}/sessions/{session}" }; - // The name of the session. This is always system-assigned; values provided - // when creating a session are ignored. - string name = 1; + // Output only. The name of the session. This is always system-assigned. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // The labels for the session. // @@ -347,11 +353,11 @@ message Session { map labels = 2; // Output only. The timestamp when the session is created. - google.protobuf.Timestamp create_time = 3; + google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The approximate timestamp when the session is last used. It is // typically earlier than the actual last use time. - google.protobuf.Timestamp approximate_last_use_time = 4; + google.protobuf.Timestamp approximate_last_use_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; } // The request for [GetSession][google.spanner.v1.Spanner.GetSession]. @@ -429,18 +435,50 @@ message ExecuteSqlRequest { // This parameter allows individual queries to pick different query // optimizer versions. // - // Specifying "latest" as a value instructs Cloud Spanner to use the + // Specifying `latest` as a value instructs Cloud Spanner to use the // latest supported query optimizer version. If not specified, Cloud Spanner - // uses optimizer version set at the database level options. Any other + // uses the optimizer version set at the database level options. Any other // positive integer (from the list of supported optimizer versions) // overrides the default optimizer version for query execution. + // // The list of supported optimizer versions can be queried from - // SPANNER_SYS.SUPPORTED_OPTIMIZER_VERSIONS. Executing a SQL statement - // with an invalid optimizer version will fail with a syntax error - // (`INVALID_ARGUMENT`) status. + // SPANNER_SYS.SUPPORTED_OPTIMIZER_VERSIONS. + // + // Executing a SQL statement with an invalid optimizer version fails with + // an `INVALID_ARGUMENT` error. + // + // See + // https://cloud.google.com/spanner/docs/query-optimizer/manage-query-optimizer + // for more information on managing the query optimizer. // // The `optimizer_version` statement hint has precedence over this setting. string optimizer_version = 1; + + // Query optimizer statistics package to use. + // + // This parameter allows individual queries to use a different query + // optimizer statistics. + // + // Specifying `latest` as a value instructs Cloud Spanner to use the latest + // generated statistics package. If not specified, Cloud Spanner uses + // statistics package set at the database level options, or latest if + // the database option is not set. + // + // The statistics package requested by the query has to be exempt from + // garbage collection. This can be achieved with the following DDL + // statement: + // + // ``` + // ALTER STATISTICS SET OPTIONS (allow_gc=false) + // ``` + // + // The list of available statistics packages can be queried from + // `SPANNER_SYS.OPTIMIZER_STATISTICS_PACKAGES`. + // + // Executing a SQL statement with an invalid optimizer statistics package + // or with statistics package that allows garbage collection fails with + // an `INVALID_ARGUMENT` error. + string optimizer_statistics_package = 2; } // Mode in which the statement must be processed. @@ -483,8 +521,9 @@ message ExecuteSqlRequest { // Parameter names and values that bind to placeholders in the SQL string. // // A parameter placeholder consists of the `@` character followed by the - // parameter name (for example, `@firstName`). Parameter names can contain - // letters, numbers, and underscores. + // parameter name (for example, `@firstName`). Parameter names must conform + // to the naming requirements of identifiers as specified at + // https://cloud.google.com/spanner/docs/lexical#identifiers. // // Parameters can appear anywhere that a literal value is expected. The same // parameter name can be used more than once, for example: @@ -884,12 +923,34 @@ message CommitRequest { // mutations are applied atomically, in the order they appear in // this list. repeated Mutation mutations = 4; + + // If `true`, then statistics related to the transaction will be included in + // the [CommitResponse][google.spanner.v1.CommitResponse.commit_stats]. Default value is + // `false`. + bool return_commit_stats = 5; } // The response for [Commit][google.spanner.v1.Spanner.Commit]. message CommitResponse { + // Additional statistics about a commit. + message CommitStats { + // The total number of mutations for the transaction. Knowing the + // `mutation_count` value can help you maximize the number of mutations + // in a transaction and minimize the number of API round trips. You can + // also monitor this value to prevent transactions from exceeding the system + // [limit](http://cloud.google.com/spanner/quotas#limits_for_creating_reading_updating_and_deleting_data). + // If the number of mutations exceeds the limit, the server returns + // [INVALID_ARGUMENT](http://cloud.google.com/spanner/docs/reference/rest/v1/Code#ENUM_VALUES.INVALID_ARGUMENT). + int64 mutation_count = 1; + } + // The Cloud Spanner timestamp at which the transaction committed. google.protobuf.Timestamp commit_timestamp = 1; + + // The statistics about this Commit. Not returned by default. + // For more information, see + // [CommitRequest.return_commit_stats][google.spanner.v1.CommitRequest.return_commit_stats]. + CommitStats commit_stats = 2; } // The request for [Rollback][google.spanner.v1.Spanner.Rollback]. diff --git a/third_party/googleapis/google/spanner/v1/spanner_gapic.legacy.yaml b/third_party/googleapis/google/spanner/v1/spanner_gapic.legacy.yaml deleted file mode 100644 index c274a40c2..000000000 --- a/third_party/googleapis/google/spanner/v1/spanner_gapic.legacy.yaml +++ /dev/null @@ -1,309 +0,0 @@ -type: com.google.api.codegen.ConfigProto -config_schema_version: 1.0.0 -language_settings: - java: - package_name: com.google.cloud.spanner.v1 - release_level: GA - python: - package_name: google.cloud.spanner_v1.gapic - release_level: GA - go: - package_name: cloud.google.com/go/spanner/apiv1 - domain_layer_location: cloud.google.com/go/spanner - release_level: GA - csharp: - package_name: Google.Cloud.Spanner.V1 - release_level: GA - ruby: - package_name: Google::Cloud::Spanner::V1 - release_level: GA - php: - package_name: Google\Cloud\Spanner\V1 - release_level: GA - nodejs: - package_name: spanner.v1 - domain_layer_location: google-cloud - release_level: GA -interfaces: -- name: google.spanner.v1.Spanner - collections: - - name_pattern: projects/{project}/instances/{instance}/databases/{database} - entity_name: database - language_overrides: - - language: csharp - common_resource_name: Google.Cloud.Spanner.Common.V1.DatabaseName - - name_pattern: projects/{project}/instances/{instance}/databases/{database}/sessions/{session} - entity_name: session - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - name: non_idempotent - retry_codes: [] - - name: long_running - retry_codes: - - UNAVAILABLE - retry_params_def: - - name: default - initial_retry_delay_millis: 250 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 32000 - initial_rpc_timeout_millis: 360000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 360000 - total_timeout_millis: 3600000 - - name: streaming - initial_retry_delay_millis: 250 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 32000 - initial_rpc_timeout_millis: 360000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 360000 - total_timeout_millis: 3600000 - - name: long_running - initial_retry_delay_millis: 250 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 32000 - initial_rpc_timeout_millis: 3600000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 3600000 - total_timeout_millis: 3600000 - methods: - - name: CreateSession - flattening: - groups: - - parameters: - - database - required_fields: - - database - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - database: database - timeout_millis: 30000 - - name: BatchCreateSessions - flattening: - groups: - - parameters: - - database - - session_count - required_fields: - - database - - session_count - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - database: database - timeout_millis: 60000 - - name: GetSession - flattening: - groups: - - parameters: - - name - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: session - timeout_millis: 30000 - - name: ListSessions - flattening: - groups: - - parameters: - - database - required_fields: - - database - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: sessions - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - database: database - timeout_millis: 3600000 - - name: DeleteSession - flattening: - groups: - - parameters: - - name - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: session - timeout_millis: 30000 - - name: ExecuteSql - required_fields: - - session - - sql - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - session: session - timeout_millis: 30000 - - name: ExecuteStreamingSql - required_fields: - - session - - sql - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: streaming - field_name_patterns: - session: session - timeout_millis: 3600000 - - name: ExecuteBatchDml - required_fields: - - session - - transaction - - statements - - seqno - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - session: session - timeout_millis: 30000 - - name: Read - required_fields: - - session - - table - - columns - - key_set - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - session: session - timeout_millis: 30000 - - name: StreamingRead - required_fields: - - session - - table - - columns - - key_set - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: streaming - field_name_patterns: - session: session - timeout_millis: 3600000 - - name: BeginTransaction - flattening: - groups: - - parameters: - - session - - options - required_fields: - - session - - options - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - session: session - timeout_millis: 30000 - - name: Commit - flattening: - groups: - - parameters: - - session - - transaction_id - - mutations - - parameters: - - session - - single_use_transaction - - mutations - required_fields: - - session - - mutations - resource_name_treatment: STATIC_TYPES - retry_codes_name: long_running - retry_params_name: long_running - field_name_patterns: - session: session - timeout_millis: 3600000 - - name: Rollback - flattening: - groups: - - parameters: - - session - - transaction_id - required_fields: - - session - - transaction_id - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - session: session - timeout_millis: 30000 - - name: PartitionQuery - required_fields: - - session - - sql - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - session: session - timeout_millis: 30000 - - name: PartitionRead - required_fields: - - session - - table - - key_set - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - session: session - timeout_millis: 30000 -resource_name_generation: -- message_name: CreateSessionRequest - field_entity_map: - database: database -- message_name: BatchCreateSessionsRequest - field_entity_map: - database: database -- message_name: Session - field_entity_map: - name: session -- message_name: GetSessionRequest - field_entity_map: - name: session -- message_name: DeleteSessionRequest - field_entity_map: - name: session -- message_name: ExecuteSqlRequest - field_entity_map: - session: session -- message_name: ExecuteBatchDmlRequest - field_entity_map: - session: session -- message_name: ReadRequest - field_entity_map: - session: session -- message_name: BeginTransactionRequest - field_entity_map: - session: session -- message_name: CommitRequest - field_entity_map: - session: session -- message_name: RollbackRequest - field_entity_map: - session: session -- message_name: PartitionReadRequest - field_entity_map: - session: session -- message_name: PartitionQueryRequest - field_entity_map: - session: session diff --git a/third_party/googleapis/google/spanner/v1/transaction.proto b/third_party/googleapis/google/spanner/v1/transaction.proto index 0bcbfcf90..30ef9dc84 100644 --- a/third_party/googleapis/google/spanner/v1/transaction.proto +++ b/third_party/googleapis/google/spanner/v1/transaction.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -31,10 +31,11 @@ option ruby_package = "Google::Cloud::Spanner::V1"; // # Transactions // // -// Each session can have at most one active transaction at a time. After the -// active transaction is completed, the session can immediately be -// re-used for the next transaction. It is not necessary to create a -// new session for each transaction. +// Each session can have at most one active transaction at a time (note that +// standalone reads and queries use a transaction internally and do count +// towards the one transaction limit). After the active transaction is +// completed, the session can immediately be re-used for the next transaction. +// It is not necessary to create a new session for each transaction. // // # Transaction Modes // @@ -92,7 +93,7 @@ option ruby_package = "Google::Cloud::Spanner::V1"; // [Rollback][google.spanner.v1.Spanner.Rollback] request to abort the // transaction. // -// ### Semantics +// ## Semantics // // Cloud Spanner can commit the transaction if all read locks it acquired // are still valid at commit time, and it is able to acquire write @@ -105,7 +106,7 @@ option ruby_package = "Google::Cloud::Spanner::V1"; // use Cloud Spanner locks for any sort of mutual exclusion other than // between Cloud Spanner transactions themselves. // -// ### Retrying Aborted Transactions +// ## Retrying Aborted Transactions // // When a transaction aborts, the application can choose to retry the // whole transaction again. To maximize the chances of successfully @@ -121,7 +122,7 @@ option ruby_package = "Google::Cloud::Spanner::V1"; // instead, it is better to limit the total amount of wall time spent // retrying. // -// ### Idle Transactions +// ## Idle Transactions // // A transaction is considered idle if it has no outstanding reads or // SQL queries and has not started a read or SQL query within the last 10 @@ -171,7 +172,7 @@ option ruby_package = "Google::Cloud::Spanner::V1"; // // Each type of timestamp bound is discussed in detail below. // -// ### Strong +// ## Strong // // Strong reads are guaranteed to see the effects of all transactions // that have committed before the start of the read. Furthermore, all @@ -187,7 +188,7 @@ option ruby_package = "Google::Cloud::Spanner::V1"; // // See [TransactionOptions.ReadOnly.strong][google.spanner.v1.TransactionOptions.ReadOnly.strong]. // -// ### Exact Staleness +// ## Exact Staleness // // These timestamp bounds execute reads at a user-specified // timestamp. Reads at a timestamp are guaranteed to see a consistent @@ -209,7 +210,7 @@ option ruby_package = "Google::Cloud::Spanner::V1"; // See [TransactionOptions.ReadOnly.read_timestamp][google.spanner.v1.TransactionOptions.ReadOnly.read_timestamp] and // [TransactionOptions.ReadOnly.exact_staleness][google.spanner.v1.TransactionOptions.ReadOnly.exact_staleness]. // -// ### Bounded Staleness +// ## Bounded Staleness // // Bounded staleness modes allow Cloud Spanner to pick the read timestamp, // subject to a user-provided staleness bound. Cloud Spanner chooses the @@ -239,7 +240,7 @@ option ruby_package = "Google::Cloud::Spanner::V1"; // See [TransactionOptions.ReadOnly.max_staleness][google.spanner.v1.TransactionOptions.ReadOnly.max_staleness] and // [TransactionOptions.ReadOnly.min_read_timestamp][google.spanner.v1.TransactionOptions.ReadOnly.min_read_timestamp]. // -// ### Old Read Timestamps and Garbage Collection +// ## Old Read Timestamps and Garbage Collection // // Cloud Spanner continuously garbage collects deleted and overwritten data // in the background to reclaim storage space. This process is known diff --git a/third_party/googleapis/google/spanner/v1/type.proto b/third_party/googleapis/google/spanner/v1/type.proto index 1e5e5ff31..4a5afd485 100644 --- a/third_party/googleapis/google/spanner/v1/type.proto +++ b/third_party/googleapis/google/spanner/v1/type.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -50,7 +50,7 @@ message StructType { // SQL queries, it is the column alias (e.g., `"Word"` in the // query `"SELECT 'hello' AS Word"`), or the column name (e.g., // `"ColName"` in the query `"SELECT ColName FROM Table"`). Some - // columns might have an empty name (e.g., !"SELECT + // columns might have an empty name (e.g., `"SELECT // UPPER(ColName)"`). Note that a query result can contain // multiple fields with the same name. string name = 1; diff --git a/third_party/googleapis/google/storage/v1/BUILD.bazel b/third_party/googleapis/google/storage/v1/BUILD.bazel index 7be4d2cb7..aadec8b68 100644 --- a/third_party/googleapis/google/storage/v1/BUILD.bazel +++ b/third_party/googleapis/google/storage/v1/BUILD.bazel @@ -60,10 +60,9 @@ java_grpc_library( java_gapic_library( name = "storage_java_gapic", - src = ":storage_proto_with_info", + srcs = [":storage_proto_with_info"], gapic_yaml = "storage_gapic.yaml", - package = "google.storage.v1", - service_yaml = "storage_v1.yaml", + grpc_service_config = "storage_grpc_service_config.json", test_deps = [ ":storage_java_grpc", "//google/iam/v1:iam_java_grpc", @@ -118,7 +117,7 @@ go_proto_library( go_gapic_library( name = "storage_go_gapic", srcs = [":storage_proto_with_info"], - grpc_service_config = "storage_service_config.json", + grpc_service_config = "storage_grpc_service_config.json", importpath = "cloud.google.com/go/storage/apiv1;storage", service_yaml = "storage_v1.yaml", deps = [ @@ -149,50 +148,14 @@ go_gapic_assembly_pkg( ############################################################################## load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", "py_gapic_assembly_pkg", "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "storage_moved_proto", - srcs = [":storage_proto"], - deps = [ - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/iam/v1:iam_policy_proto", - "//google/iam/v1:policy_proto", - "@com_google_protobuf//:empty_proto", - "@com_google_protobuf//:field_mask_proto", - "@com_google_protobuf//:timestamp_proto", - "@com_google_protobuf//:wrappers_proto", - ], -) - -py_proto_library( - name = "storage_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":storage_moved_proto"], -) - -py_grpc_library( - name = "storage_py_grpc", - srcs = [":storage_moved_proto"], - deps = [":storage_py_proto"], ) py_gapic_library( name = "storage_py_gapic", - src = ":storage_proto_with_info", - gapic_yaml = "storage_gapic.yaml", - package = "google.storage.v1", - service_yaml = "storage_v1.yaml", - deps = [ - ":storage_py_grpc", - ":storage_py_proto", - ], + srcs = [":storage_proto"], + grpc_service_config = "storage_grpc_service_config.json", ) # Open Source Packages @@ -200,8 +163,6 @@ py_gapic_assembly_pkg( name = "storage-v1-py", deps = [ ":storage_py_gapic", - ":storage_py_grpc", - ":storage_py_proto", ], ) @@ -267,7 +228,8 @@ load( nodejs_gapic_library( name = "storage_nodejs_gapic", src = ":storage_proto_with_info", - grpc_service_config = "storage_service_config.json", + extra_protoc_parameters = ["metadata"], + grpc_service_config = "storage_grpc_service_config.json", package = "google.storage.v1", service_yaml = "storage_v1.yaml", deps = [], @@ -351,7 +313,7 @@ csharp_grpc_library( # csharp_gapic_library( # name = "storage_csharp_gapic", # srcs = [":storage_proto_with_info"], -# grpc_service_config = "storage_service_config.json", +# grpc_service_config = "storage_grpc_service_config.json", # common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", # deps = [ # ":storage_csharp_grpc", diff --git a/third_party/googleapis/google/storage/v1/storage_service_config.json b/third_party/googleapis/google/storage/v1/storage_grpc_service_config.json similarity index 100% rename from third_party/googleapis/google/storage/v1/storage_service_config.json rename to third_party/googleapis/google/storage/v1/storage_grpc_service_config.json diff --git a/third_party/googleapis/google/streetview/publish/artman_streetview_publish.yaml b/third_party/googleapis/google/streetview/publish/artman_streetview_publish.yaml deleted file mode 100644 index 574ef5228..000000000 --- a/third_party/googleapis/google/streetview/publish/artman_streetview_publish.yaml +++ /dev/null @@ -1,27 +0,0 @@ -common: - api_name: streetview_publish - api_version: v1 - organization_name: google-maps - service_yaml: streetview_publish.yaml - gapic_yaml: streetview_publish_gapic.yaml - src_proto_paths: - - v1 - proto_deps: - - name: google-common-protos -artifacts: -- name: java_gapic - language: JAVA -- name: python_gapic - language: PYTHON -- name: php_gapic - language: PHP -- name: ruby_gapic - language: RUBY -- name: go_gapic - language: GO -- name: csharp_gapic - language: CSHARP -- name: nodejs_gapic - language: NODEJS -- name: gapic_config - type: GAPIC_CONFIG diff --git a/third_party/googleapis/google/streetview/publish/streetview_publish_gapic.yaml b/third_party/googleapis/google/streetview/publish/streetview_publish_gapic.yaml deleted file mode 100644 index cdc4c6197..000000000 --- a/third_party/googleapis/google/streetview/publish/streetview_publish_gapic.yaml +++ /dev/null @@ -1,140 +0,0 @@ -type: com.google.api.codegen.ConfigProto -config_schema_version: 1.0.0 -language_settings: - java: - package_name: com.google.streetview.publish.v1 - python: - package_name: google.streetview.publish_v1.gapic - go: - # Seems to match other formats, e.g. - # https://github.com/google/google-api-go-client/blob/master/examples/youtube.go - package_name: google.golang.org/api/streetviewpublish/v1 - csharp: - package_name: Google.Streetview.Publish.V1 - ruby: - package_name: Google::Streetview::Publish::V1 - php: - package_name: Google\Streetview\Publish\V1 - nodejs: - package_name: google.streetview.publish.v1 -interfaces: -- name: google.streetview.publish.v1.StreetViewPublishService - smoke_test: - method: CreatePhoto - collections: [] - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - methods: - - name: StartUpload - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 60000 - - name: CreatePhoto - flattening: - groups: - - parameters: - - photo - required_fields: - - photo - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 60000 - - name: GetPhoto - flattening: - groups: - - parameters: - - photo_id - - view - required_fields: - - photo_id - - view - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - - name: BatchGetPhotos - flattening: - groups: - - parameters: - - photo_ids - - view - required_fields: - - photo_ids - - view - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - - name: ListPhotos - flattening: - groups: - - parameters: - - view - - filter - required_fields: - - view - - filter - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: photos - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - - name: UpdatePhoto - flattening: - groups: - - parameters: - - photo - - update_mask - required_fields: - - photo - - update_mask - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - - name: BatchUpdatePhotos - flattening: - groups: - - parameters: - - update_photo_requests - required_fields: - - update_photo_requests - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 60000 - - name: DeletePhoto - flattening: - groups: - - parameters: - - photo_id - required_fields: - - photo_id - retry_codes_name: idempotent - retry_params_name: default - timeout_millis: 60000 - - name: BatchDeletePhotos - flattening: - groups: - - parameters: - - photo_ids - required_fields: - - photo_ids - retry_codes_name: non_idempotent - retry_params_name: default - timeout_millis: 60000 diff --git a/third_party/googleapis/google/streetview/publish/v1/BUILD.bazel b/third_party/googleapis/google/streetview/publish/v1/BUILD.bazel index dba379531..fb0a43b03 100644 --- a/third_party/googleapis/google/streetview/publish/v1/BUILD.bazel +++ b/third_party/googleapis/google/streetview/publish/v1/BUILD.bazel @@ -60,10 +60,8 @@ java_grpc_library( java_gapic_library( name = "publish_java_gapic", - src = ":publish_proto_with_info", - gapic_yaml = "//google/streetview/publish:streetview_publish_gapic.yaml", - package = "google.streetview.publish.v1", - service_yaml = "//google/streetview/publish:streetview_publish.yaml", + srcs = [":publish_proto_with_info"], + grpc_service_config = "streetview_publish_grpc_service_config.json", test_deps = [ ":publish_java_grpc", ], @@ -75,7 +73,7 @@ java_gapic_library( java_gapic_test( name = "publish_java_gapic_test_suite", test_classes = [ - "com.google.streetview.publish.v1.StreetViewPublishServiceClientTest", + "com.google.geo.ugc.streetview.publish.v1.StreetViewPublishServiceClientTest", ], runtime_deps = [":publish_java_gapic_test"], ) @@ -117,9 +115,9 @@ go_proto_library( go_gapic_library( name = "publish_go_gapic", srcs = [":publish_proto_with_info"], - gapic_yaml = "//google/streetview/publish:streetview_publish_gapic.yaml", + gapic_yaml = "streetview_publish_gapic.yaml", importpath = "google.golang.org/api/streetviewpublish/apiv1;streetviewpublish", - service_yaml = "//google/streetview/publish:streetview_publish.yaml", + service_yaml = "streetview_publish.yaml", deps = [ ":publish_go_proto", ], @@ -154,42 +152,10 @@ load( "py_proto_library", ) -moved_proto_library( - name = "publish_moved_proto", - srcs = [":publish_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/rpc:status_proto", - "//google/type:latlng_proto", - "@com_google_protobuf//:empty_proto", - "@com_google_protobuf//:field_mask_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -py_proto_library( - name = "publish_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":publish_moved_proto"], -) - -py_grpc_library( - name = "publish_py_grpc", - srcs = [":publish_moved_proto"], - deps = [":publish_py_proto"], -) - py_gapic_library( name = "publish_py_gapic", - src = ":publish_proto_with_info", - gapic_yaml = "//google/streetview/publish:streetview_publish_gapic.yaml", - package = "google.streetview.publish.v1", - service_yaml = "//google/streetview/publish:streetview_publish.yaml", - deps = [ - ":publish_py_grpc", - ":publish_py_proto", - ], + srcs = [":publish_proto"], + grpc_service_config = "streetview_publish_grpc_service_config.json", ) # Open Source Packages @@ -197,8 +163,6 @@ py_gapic_assembly_pkg( name = "streetview-publish-v1-py", deps = [ ":publish_py_gapic", - ":publish_py_grpc", - ":publish_py_proto", ], ) @@ -227,9 +191,9 @@ php_grpc_library( php_gapic_library( name = "publish_php_gapic", src = ":publish_proto_with_info", - gapic_yaml = "//google/streetview/publish:streetview_publish_gapic.yaml", + gapic_yaml = "streetview_publish_gapic.yaml", package = "google.streetview.publish.v1", - service_yaml = "//google/streetview/publish:streetview_publish.yaml", + service_yaml = "streetview_publish.yaml", deps = [ ":publish_php_grpc", ":publish_php_proto", @@ -258,9 +222,10 @@ load( nodejs_gapic_library( name = "publish_nodejs_gapic", src = ":publish_proto_with_info", - gapic_yaml = "//google/streetview/publish:streetview_publish_gapic.yaml", + extra_protoc_parameters = ["metadata"], + gapic_yaml = "streetview_publish_gapic.yaml", package = "google.streetview.publish.v1", - service_yaml = "//google/streetview/publish:streetview_publish.yaml", + service_yaml = "streetview_publish.yaml", deps = [], ) @@ -297,9 +262,9 @@ ruby_grpc_library( ruby_gapic_library( name = "publish_ruby_gapic", src = ":publish_proto_with_info", - gapic_yaml = "//google/streetview/publish:streetview_publish_gapic.yaml", + gapic_yaml = "streetview_publish_gapic.yaml", package = "google.streetview.publish.v1", - service_yaml = "//google/streetview/publish:streetview_publish.yaml", + service_yaml = "streetview_publish.yaml", deps = [ ":publish_ruby_grpc", ":publish_ruby_proto", diff --git a/third_party/googleapis/google/streetview/publish/v1/streetview_publish.proto b/third_party/googleapis/google/streetview/publish/v1/streetview_publish.proto index 2aff8f800..ceed1df2d 100644 --- a/third_party/googleapis/google/streetview/publish/v1/streetview_publish.proto +++ b/third_party/googleapis/google/streetview/publish/v1/streetview_publish.proto @@ -31,7 +31,8 @@ option java_package = "com.google.geo.ugc.streetview.publish.v1"; // Publishes and connects user-contributed photos on Street View. service StreetViewPublishService { option (google.api.default_host) = "streetviewpublish.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/streetviewpublish"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/streetviewpublish"; // Creates an upload session to start uploading photo bytes. The method uses // the upload URL of the returned @@ -85,6 +86,7 @@ service StreetViewPublishService { post: "/v1/photo" body: "photo" }; + option (google.api.method_signature) = "photo"; } // Gets the metadata of the specified @@ -104,6 +106,7 @@ service StreetViewPublishService { option (google.api.http) = { get: "/v1/photo/{photo_id}" }; + option (google.api.method_signature) = "photo_id,view"; } // Gets the metadata of the specified @@ -126,6 +129,7 @@ service StreetViewPublishService { option (google.api.http) = { get: "/v1/photos:batchGet" }; + option (google.api.method_signature) = "photo_ids,view"; } // Lists all the [Photos][google.streetview.publish.v1.Photo] that belong to @@ -137,6 +141,7 @@ service StreetViewPublishService { option (google.api.http) = { get: "/v1/photos" }; + option (google.api.method_signature) = "view,filter"; } // Updates the metadata of a [Photo][google.streetview.publish.v1.Photo], such @@ -164,6 +169,7 @@ service StreetViewPublishService { put: "/v1/photo/{photo.photo_id.id}" body: "photo" }; + option (google.api.method_signature) = "photo,update_mask"; } // Updates the metadata of [Photos][google.streetview.publish.v1.Photo], such @@ -205,6 +211,7 @@ service StreetViewPublishService { post: "/v1/photos:batchUpdate" body: "*" }; + option (google.api.method_signature) = "update_photo_requests"; } // Deletes a [Photo][google.streetview.publish.v1.Photo] and its metadata. @@ -219,6 +226,7 @@ service StreetViewPublishService { option (google.api.http) = { delete: "/v1/photo/{photo_id}" }; + option (google.api.method_signature) = "photo_id"; } // Deletes a list of [Photos][google.streetview.publish.v1.Photo] and their @@ -243,5 +251,6 @@ service StreetViewPublishService { post: "/v1/photos:batchDelete" body: "*" }; + option (google.api.method_signature) = "photo_ids"; } } diff --git a/third_party/googleapis/google/streetview/publish/streetview_publish.yaml b/third_party/googleapis/google/streetview/publish/v1/streetview_publish.yaml similarity index 100% rename from third_party/googleapis/google/streetview/publish/streetview_publish.yaml rename to third_party/googleapis/google/streetview/publish/v1/streetview_publish.yaml diff --git a/third_party/googleapis/google/streetview/publish/v1/streetview_publish_gapic.yaml b/third_party/googleapis/google/streetview/publish/v1/streetview_publish_gapic.yaml new file mode 100644 index 000000000..fb16b9640 --- /dev/null +++ b/third_party/googleapis/google/streetview/publish/v1/streetview_publish_gapic.yaml @@ -0,0 +1,19 @@ +type: com.google.api.codegen.ConfigProto +config_schema_version: 2.0.0 +language_settings: + java: + package_name: com.google.streetview.publish.v1 + python: + package_name: google.streetview.publish_v1.gapic + go: + # Seems to match other formats, e.g. + # https://github.com/google/google-api-go-client/blob/master/examples/youtube.go + package_name: google.golang.org/api/streetviewpublish/v1 + csharp: + package_name: Google.Streetview.Publish.V1 + ruby: + package_name: Google::Streetview::Publish::V1 + php: + package_name: Google\Streetview\Publish\V1 + nodejs: + package_name: google.streetview.publish.v1 diff --git a/third_party/googleapis/google/streetview/publish/v1/streetview_publish_grpc_service_config.json b/third_party/googleapis/google/streetview/publish/v1/streetview_publish_grpc_service_config.json new file mode 100644 index 000000000..662f26068 --- /dev/null +++ b/third_party/googleapis/google/streetview/publish/v1/streetview_publish_grpc_service_config.json @@ -0,0 +1,63 @@ +{ + "methodConfig": [ + { + "name": [ + { + "service": "google.streetview.publish.v1.StreetViewPublishService", + "method": "BatchUpdatePhotos" + }, + { + "service": "google.streetview.publish.v1.StreetViewPublishService", + "method": "CreatePhoto" + }, + { + "service": "google.streetview.publish.v1.StreetViewPublishService", + "method": "StartUpload" + } + ], + "timeout": "60s", + "retryPolicy" : { + "maxAttempts": 5, + "initialBackoff": "0.1s", + "maxBackoff": "60s", + "backoffMultiplier": 1.3, + "retryableStatusCodes": [] + } + }, + { + "name": [ + { + "service": "google.streetview.publish.v1.StreetViewPublishService", + "method": "GetPhoto" + }, + { + "service": "google.streetview.publish.v1.StreetViewPublishService", + "method": "BatchGetPhotos" + }, + { + "service": "google.streetview.publish.v1.StreetViewPublishService", + "method": "ListPhotos" + }, + { + "service": "google.streetview.publish.v1.StreetViewPublishService", + "method": "UpdatePhoto" + }, + { + "service": "google.streetview.publish.v1.StreetViewPublishService", + "method": "DeletePhoto" + } + ], + "timeout": "60s", + "retryPolicy" : { + "maxAttempts": 5, + "initialBackoff": "0.1s", + "maxBackoff": "60s", + "backoffMultiplier": 1.3, + "retryableStatusCodes": [ + "UNAVAILABLE", + "DEADLINE_EXCEEDED" + ] + } + } + ] +} diff --git a/third_party/googleapis/google/type/BUILD.bazel b/third_party/googleapis/google/type/BUILD.bazel index 8466d3de0..8aff0ee2e 100644 --- a/third_party/googleapis/google/type/BUILD.bazel +++ b/third_party/googleapis/google/type/BUILD.bazel @@ -47,16 +47,39 @@ proto_library( srcs = ["fraction.proto"], ) +proto_library( + name = "interval_proto", + srcs = ["interval.proto"], + deps = [ + "@com_google_protobuf//:timestamp_proto", + ], +) + proto_library( name = "latlng_proto", srcs = ["latlng.proto"], ) +proto_library( + name = "localized_text_proto", + srcs = ["localized_text.proto"], +) + proto_library( name = "money_proto", srcs = ["money.proto"], ) +proto_library( + name = "month_proto", + srcs = ["month.proto"], +) + +proto_library( + name = "phone_number_proto", + srcs = ["phone_number.proto"], +) + proto_library( name = "postal_address_proto", srcs = ["postal_address.proto"], @@ -83,11 +106,15 @@ java_proto_library( ":calendar_period_proto", ":color_proto", ":date_proto", + ":datetime_proto", ":dayofweek_proto", ":expr_proto", ":fraction_proto", + ":interval_proto", ":latlng_proto", ":money_proto", + ":month_proto", + ":phone_number_proto", ":postal_address_proto", ":quaternion_proto", ":timeofday_proto", @@ -141,18 +168,42 @@ go_proto_library( protos = [":fraction_proto"], ) +go_proto_library( + name = "interval_go_proto", + importpath = "google.golang.org/genproto/googleapis/type/interval", + protos = [":interval_proto"], +) + go_proto_library( name = "latlng_go_proto", importpath = "google.golang.org/genproto/googleapis/type/latlng", protos = [":latlng_proto"], ) +go_proto_library( + name = "localized_text_go_proto", + importpath = "google.golang.org/genproto/googleapis/type/localized_text", + protos = [":localized_text_proto"], +) + go_proto_library( name = "money_go_proto", importpath = "google.golang.org/genproto/googleapis/type/money", protos = [":money_proto"], ) +go_proto_library( + name = "month_go_proto", + importpath = "google.golang.org/genproto/googleapis/type/month", + protos = [":month_proto"], +) + +go_proto_library( + name = "phone_number_go_proto", + importpath = "google.golang.org/genproto/googleapis/type/phone_number", + protos = [":phone_number_proto"], +) + go_proto_library( name = "postaladdress_go_proto", importpath = "google.golang.org/genproto/googleapis/type/postaladdress", @@ -194,6 +245,11 @@ cc_proto_library( deps = [":date_proto"], ) +cc_proto_library( + name = "datetime_cc_proto", + deps = [":datetime_proto"], +) + cc_proto_library( name = "dayofweek_cc_proto", deps = [":dayofweek_proto"], @@ -209,6 +265,11 @@ cc_proto_library( deps = [":fraction_proto"], ) +cc_proto_library( + name = "interval_cc_proto", + deps = [":interval_proto"], +) + cc_proto_library( name = "latlng_cc_proto", deps = [":latlng_proto"], @@ -219,6 +280,16 @@ cc_proto_library( deps = [":money_proto"], ) +cc_proto_library( + name = "month_cc_proto", + deps = [":month_proto"], +) + +cc_proto_library( + name = "phone_number_cc_proto", + deps = [":phone_number_proto"], +) + cc_proto_library( name = "postal_address_cc_proto", deps = [":postal_address_proto"], @@ -242,12 +313,166 @@ load( "py_proto_library", ) +py_proto_library( + name = "calendar_period_py_proto", + deps = [":calendar_period_proto"], +) + +py_proto_library( + name = "color_py_proto", + deps = [":color_proto"], +) + +py_proto_library( + name = "date_py_proto", + deps = [":date_proto"], +) + +py_proto_library( + name = "datetime_py_proto", + deps = [":datetime_proto"], +) + +py_proto_library( + name = "dayofweek_py_proto", + deps = [":dayofweek_proto"], +) + +py_proto_library( + name = "expr_py_proto", + deps = [":expr_proto"], +) + +py_proto_library( + name = "fraction_py_proto", + deps = [":fraction_proto"], +) + +py_proto_library( + name = "interval_py_proto", + deps = [":interval_proto"], +) + +py_proto_library( + name = "latlng_py_proto", + deps = [":latlng_proto"], +) + +py_proto_library( + name = "localized_text_py_proto", + deps = [":localized_text_proto"], +) + py_proto_library( name = "money_py_proto", deps = [":money_proto"], ) py_proto_library( - name = "expr_py_proto", + name = "month_py_proto", + deps = [":month_proto"], +) + +py_proto_library( + name = "phone_number_py_proto", + deps = [":phone_number_proto"], +) + +py_proto_library( + name = "postal_address_py_proto", + deps = [":postal_address_proto"], +) + +py_proto_library( + name = "quaternion_py_proto", + deps = [":quaternion_proto"], +) + +py_proto_library( + name = "timeofday_py_proto", + deps = [":timeofday_proto"], +) + +############################################################################## +# C# +############################################################################## + +load( + "@com_google_googleapis_imports//:imports.bzl", + "csharp_proto_library", +) + +csharp_proto_library( + name = "calendar_period_csharp_proto", + deps = [":calendar_period_proto"], +) + +csharp_proto_library( + name = "color_csharp_proto", + deps = [":color_proto"], +) + +csharp_proto_library( + name = "date_csharp_proto", + deps = [":date_proto"], +) + +csharp_proto_library( + name = "datetime_csharp_proto", + deps = [":datetime_proto"], +) + +csharp_proto_library( + name = "dayofweek_csharp_proto", + deps = [":dayofweek_proto"], +) + +csharp_proto_library( + name = "expr_csharp_proto", deps = [":expr_proto"], ) + +csharp_proto_library( + name = "fraction_csharp_proto", + deps = [":fraction_proto"], +) + +csharp_proto_library( + name = "interval_csharp_proto", + deps = [":interval_proto"], +) + +csharp_proto_library( + name = "latlng_csharp_proto", + deps = [":latlng_proto"], +) + +csharp_proto_library( + name = "localized_text_csharp_proto", + deps = [":localized_text_proto"], +) + +csharp_proto_library( + name = "money_csharp_proto", + deps = [":money_proto"], +) + +csharp_proto_library( + name = "month_csharp_proto", + deps = [":month_proto"], +) + +csharp_proto_library( + name = "phone_number_csharp_proto", + deps = [":phone_number_proto"], +) + +csharp_proto_library( + name = "postal_address_csharp_proto", + deps = [":postal_address_proto"], +) + +csharp_proto_library( + name = "quaternion_csharp_proto", + deps = [":quaternion_proto"], +) diff --git a/third_party/googleapis/grafeas/v1/BUILD.bazel b/third_party/googleapis/grafeas/v1/BUILD.bazel index 0f93c259a..dd79aa5c8 100644 --- a/third_party/googleapis/grafeas/v1/BUILD.bazel +++ b/third_party/googleapis/grafeas/v1/BUILD.bazel @@ -70,11 +70,8 @@ java_grpc_library( java_gapic_library( name = "grafeas_java_gapic", - src = ":grafeas_proto_with_info", - gapic_yaml = "grafeas_gapic.yaml", + srcs = [":grafeas_proto_with_info"], grpc_service_config = "grafeas_grpc_service_config.json", - package = "grafeas.v1", - service_yaml = "//grafeas:grafeas_v1.yaml", test_deps = [ ":grafeas_java_grpc", ], @@ -155,12 +152,10 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## -# This library is using Python microgenerator. -# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", - py_gapic_library = "py_gapic_library2", + "py_gapic_assembly_pkg", + "py_gapic_library", ) py_gapic_library( @@ -236,6 +231,7 @@ nodejs_gapic_library( name = "grafeas_nodejs_gapic", package_name = "@google-cloud/grafeas", src = ":grafeas_proto_with_info", + extra_protoc_parameters = ["metadata"], grpc_service_config = "grafeas_grpc_service_config.json", package = "grafeas.v1", service_yaml = "//grafeas:grafeas_v1.yaml", @@ -319,8 +315,8 @@ csharp_grpc_library( csharp_gapic_library( name = "grafeas_csharp_gapic", srcs = [":grafeas_proto_with_info"], - grpc_service_config = "grafeas_grpc_service_config.json", common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "grafeas_grpc_service_config.json", deps = [ ":grafeas_csharp_grpc", ":grafeas_csharp_proto", diff --git a/third_party/googleapis/grafeas/v1/grafeas_gapic.legacy.yaml b/third_party/googleapis/grafeas/v1/grafeas_gapic.legacy.yaml deleted file mode 100644 index af61e33eb..000000000 --- a/third_party/googleapis/grafeas/v1/grafeas_gapic.legacy.yaml +++ /dev/null @@ -1,384 +0,0 @@ -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: io.grafeas.v1 - python: - package_name: grafeas.grafeas_v1.gapic - go: - package_name: cloud.google.com/go/grafeas/apiv1 - csharp: - package_name: Grafeas.V1 - ruby: - package_name: Grafeas::V1 - php: - package_name: Grafeas\V1 - nodejs: - package_name: grafeas.v1 - domain_layer_location: google-cloud -# 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: -- name_pattern: projects/{project} - entity_name: project -- name_pattern: projects/{project}/notes/{note} - entity_name: note -- name_pattern: projects/{project}/occurrences/{occurrence} - entity_name: occurrence -# A list of API interface configurations. -interfaces: -# The fully qualified name of the API interface. -- name: grafeas.v1.Grafeas - # Definition for retryable codes. - retry_codes_def: - - name: idempotent - retry_codes: - - UNAVAILABLE - - DEADLINE_EXCEEDED - - name: non_idempotent - retry_codes: [] - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 20000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 20000 - total_timeout_millis: 600000 - # 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: GetOccurrence - flattening: - groups: - - parameters: - - name - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: occurrence - timeout_millis: 30000 - - name: ListOccurrences - flattening: - groups: - - parameters: - - parent - - filter - required_fields: - - parent - resource_name_treatment: STATIC_TYPES - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: occurrences - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 30000 - - name: DeleteOccurrence - flattening: - groups: - - parameters: - - name - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: occurrence - timeout_millis: 30000 - - name: CreateOccurrence - flattening: - groups: - - parameters: - - parent - - occurrence - required_fields: - - parent - - occurrence - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 30000 - - name: BatchCreateOccurrences - flattening: - groups: - - parameters: - - parent - - occurrences - required_fields: - - parent - - occurrences - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 30000 - - name: UpdateOccurrence - flattening: - groups: - - parameters: - - name - - occurrence - - update_mask - required_fields: - - name - - occurrence - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: occurrence - timeout_millis: 30000 - - name: GetOccurrenceNote - flattening: - groups: - - parameters: - - name - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: occurrence - timeout_millis: 30000 - - name: GetNote - flattening: - groups: - - parameters: - - name - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: note - timeout_millis: 30000 - - name: ListNotes - flattening: - groups: - - parameters: - - parent - - filter - required_fields: - - parent - resource_name_treatment: STATIC_TYPES - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: notes - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 30000 - - name: DeleteNote - flattening: - groups: - - parameters: - - name - required_fields: - - name - resource_name_treatment: STATIC_TYPES - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: note - timeout_millis: 30000 - - name: CreateNote - flattening: - groups: - - parameters: - - parent - - note_id - - note - required_fields: - - parent - - note_id - - note - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 30000 - - name: BatchCreateNotes - flattening: - groups: - - parameters: - - parent - - notes - required_fields: - - parent - - notes - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - parent: project - timeout_millis: 30000 - - name: UpdateNote - flattening: - groups: - - parameters: - - name - - note - - update_mask - required_fields: - - name - - note - resource_name_treatment: STATIC_TYPES - retry_codes_name: non_idempotent - retry_params_name: default - field_name_patterns: - name: note - timeout_millis: 30000 - - name: ListNoteOccurrences - flattening: - groups: - - parameters: - - name - - filter - required_fields: - - name - resource_name_treatment: STATIC_TYPES - page_streaming: - request: - page_size_field: page_size - token_field: page_token - response: - token_field: next_page_token - resources_field: occurrences - retry_codes_name: idempotent - retry_params_name: default - field_name_patterns: - name: note - timeout_millis: 30000 -resource_name_generation: -- message_name: grafeas.v1.Occurrence - field_entity_map: - name: occurrence -- message_name: grafeas.v1.GetOccurrenceRequest - field_entity_map: - name: occurrence -- message_name: grafeas.v1.ListOccurrencesRequest - field_entity_map: - parent: project -- message_name: grafeas.v1.DeleteOccurrenceRequest - field_entity_map: - name: occurrence -- message_name: grafeas.v1.CreateOccurrenceRequest - field_entity_map: - parent: project -- message_name: grafeas.v1.UpdateOccurrenceRequest - field_entity_map: - name: occurrence -- message_name: grafeas.v1.BatchCreateOccurrencesRequest - field_entity_map: - parent: project -- message_name: grafeas.v1.Note - field_entity_map: - name: note -- message_name: grafeas.v1.GetNoteRequest - field_entity_map: - name: note -- message_name: grafeas.v1.ListNotesRequest - field_entity_map: - parent: project -- message_name: grafeas.v1.DeleteNoteRequest - field_entity_map: - name: note -- message_name: grafeas.v1.CreateNoteRequest - field_entity_map: - parent: project -- message_name: grafeas.v1.UpdateNoteRequest - field_entity_map: - name: note -- message_name: grafeas.v1.BatchCreateNotesRequest - field_entity_map: - parent: project -- message_name: grafeas.v1.GetOccurrenceNoteRequest - field_entity_map: - name: occurrence -- message_name: grafeas.v1.ListNoteOccurrencesRequest - field_entity_map: - name: note diff --git a/third_party/googleapis/grafeas/v1/grafeas_gapic.yaml b/third_party/googleapis/grafeas/v1/grafeas_gapic.yaml index c131eaedc..354e82d0d 100644 --- a/third_party/googleapis/grafeas/v1/grafeas_gapic.yaml +++ b/third_party/googleapis/grafeas/v1/grafeas_gapic.yaml @@ -1,8 +1,6 @@ type: com.google.api.codegen.ConfigProto config_schema_version: 2.0.0 language_settings: - java: - package_name: io.grafeas.v1 python: package_name: grafeas.grafeas_v1.gapic go: diff --git a/third_party/googleapis/repository_rules.bzl b/third_party/googleapis/repository_rules.bzl index b95be8b5b..c48816873 100644 --- a/third_party/googleapis/repository_rules.bzl +++ b/third_party/googleapis/repository_rules.bzl @@ -136,36 +136,36 @@ def switched_rules_by_language( ) rules["java_gapic_library"] = _switch( java and grpc and gapic, - "@com_google_api_codegen//rules_gapic/java:java_gapic.bzl", - ) - rules["java_resource_name_proto_library"] = _switch( - java and grpc and gapic, - "@com_google_api_codegen//rules_gapic/java:java_gapic.bzl", + "@gapic_generator_java//rules_java_gapic:java_gapic.bzl", ) rules["java_gapic_test"] = _switch( java and grpc and gapic, - "@com_google_api_codegen//rules_gapic/java:java_gapic.bzl", + "@gapic_generator_java//rules_java_gapic:java_gapic.bzl", ) rules["java_gapic_assembly_gradle_pkg"] = _switch( java and grpc and gapic, - "@com_google_api_codegen//rules_gapic/java:java_gapic_pkg.bzl", + "@gapic_generator_java//rules_java_gapic:java_gapic_pkg.bzl", ) - # Java microgenerator. - # These will eventually replace the monolith Java rules. - rules["java_gapic_library2"] = _switch( + # Removed the legacy rules once monolith generator is decommissioned + rules["java_gapic_library_legacy"] = _switch( java and grpc and gapic, - "@gapic_generator_java//rules_java_gapic:java_gapic.bzl", + "@com_google_api_codegen//rules_gapic/java:java_gapic.bzl", "java_gapic_library", ) - rules["java_gapic_test2"] = _switch( + rules["java_resource_name_proto_library_legacy"] = _switch( java and grpc and gapic, - "@gapic_generator_java//rules_java_gapic:java_gapic.bzl", + "@com_google_api_codegen//rules_gapic/java:java_gapic.bzl", + "java_resource_name_proto_library", + ) + rules["java_gapic_test_legacy"] = _switch( + java and grpc and gapic, + "@com_google_api_codegen//rules_gapic/java:java_gapic.bzl", "java_gapic_test", ) - rules["java_gapic_assembly_gradle_pkg2"] = _switch( + rules["java_gapic_assembly_gradle_pkg_legacy"] = _switch( java and grpc and gapic, - "@gapic_generator_java//rules_java_gapic:java_gapic_pkg.bzl", + "@com_google_api_codegen//rules_gapic/java:java_gapic_pkg.bzl", "java_gapic_assembly_gradle_pkg", ) @@ -182,20 +182,20 @@ def switched_rules_by_language( ) rules["py_gapic_library"] = _switch( python and grpc and gapic, - "@com_google_api_codegen//rules_gapic/python:py_gapic.bzl", + "@gapic_generator_python//rules_python_gapic:py_gapic.bzl", ) rules["py_gapic_assembly_pkg"] = _switch( python and grpc and gapic, - "@com_google_api_codegen//rules_gapic/python:py_gapic_pkg.bzl", + "@gapic_generator_python//rules_python_gapic:py_gapic_pkg.bzl", ) - rules["py_gapic_library2"] = _switch( + rules["py_gapic_library_legacy"] = _switch( python and grpc and gapic, - "@gapic_generator_python//rules_python_gapic:py_gapic.bzl", + "@com_google_api_codegen//rules_gapic/python:py_gapic.bzl", "py_gapic_library", ) - rules["py_gapic_assembly_pkg2"] = _switch( + rules["py_gapic_assembly_pkg_legacy"] = _switch( python and grpc and gapic, - "@gapic_generator_python//rules_python_gapic:py_gapic_pkg.bzl", + "@com_google_api_codegen//rules_gapic/python:py_gapic_pkg.bzl", "py_gapic_assembly_pkg", ) @@ -256,6 +256,29 @@ def switched_rules_by_language( "@com_google_api_codegen//rules_gapic/php:php_gapic_pkg.bzl", ) + # PHP micro-generator beta rules + # Rename these micro rules and replace above monolith rules once micro-generator is GA + rules["php_proto_library2"] = _switch( + php, + "@gapic_generator_php//rules_php_gapic:php_gapic.bzl", + "php_proto_library", + ) + rules["php_grpc_library2"] = _switch( + php and grpc, + "@gapic_generator_php//rules_php_gapic:php_gapic.bzl", + "php_grpc_library", + ) + rules["php_gapic_library2"] = _switch( + php and grpc and gapic, + "@gapic_generator_php//rules_php_gapic:php_gapic.bzl", + "php_gapic_library", + ) + rules["php_gapic_assembly_pkg2"] = _switch( + php and grpc and gapic, + "@gapic_generator_php//rules_php_gapic:php_gapic_pkg.bzl", + "php_gapic_assembly_pkg", + ) + # # Node.js # diff --git a/third_party/googleapis/storage/clouddms/logging/v1/BUILD.bazel b/third_party/googleapis/storage/clouddms/logging/v1/BUILD.bazel new file mode 100644 index 000000000..d44684111 --- /dev/null +++ b/third_party/googleapis/storage/clouddms/logging/v1/BUILD.bazel @@ -0,0 +1,166 @@ +# This file was automatically generated by BuildFileGenerator + +# This is an API workspace, having public visibility by default makes perfect sense. +package(default_visibility = ["//visibility:public"]) + +############################################################################## +# Common +############################################################################## +load("@rules_proto//proto:defs.bzl", "proto_library") + +proto_library( + name = "logging_proto", + srcs = [ + "clouddms_stackdriver_logs.proto", + ], + deps = [ + "//google/rpc:status_proto", + "@com_google_protobuf//:duration_proto", + "@com_google_protobuf//:timestamp_proto", + ], +) + +############################################################################## +# Java +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "java_grpc_library", + "java_proto_library", +) + +java_proto_library( + name = "logging_java_proto", + deps = [":logging_proto"], +) + +java_grpc_library( + name = "logging_java_grpc", + srcs = [":logging_proto"], + deps = [":logging_java_proto"], +) + +############################################################################## +# Go +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "go_proto_library", +) + +go_proto_library( + name = "logging_go_proto", + compilers = ["@io_bazel_rules_go//proto:go_grpc"], + importpath = "google.golang.org/genproto/googleapis/storage/clouddms/logging/v1", + protos = [":logging_proto"], + deps = [ + "//google/rpc:status_go_proto", + ], +) + +############################################################################## +# Python +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "moved_proto_library", + "py_grpc_library", + "py_proto_library", +) + +moved_proto_library( + name = "logging_moved_proto", + srcs = [":logging_proto"], + deps = [ + "//google/rpc:status_proto", + "@com_google_protobuf//:duration_proto", + "@com_google_protobuf//:timestamp_proto", + ], +) + +py_proto_library( + name = "logging_py_proto", + plugin = "@protoc_docs_plugin//:docs_plugin", + deps = [":logging_moved_proto"], +) + +py_grpc_library( + name = "logging_py_grpc", + srcs = [":logging_moved_proto"], + deps = [":logging_py_proto"], +) + +############################################################################## +# PHP +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "php_grpc_library", + "php_proto_library", +) + +php_proto_library( + name = "logging_php_proto", + deps = [":logging_proto"], +) + +php_grpc_library( + name = "logging_php_grpc", + srcs = [":logging_proto"], + deps = [":logging_php_proto"], +) + +############################################################################## +# Node.js +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "nodejs_gapic_assembly_pkg", + "nodejs_gapic_library", +) + + +############################################################################## +# Ruby +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "ruby_grpc_library", + "ruby_proto_library", +) + +ruby_proto_library( + name = "logging_ruby_proto", + deps = [":logging_proto"], +) + +ruby_grpc_library( + name = "logging_ruby_grpc", + srcs = [":logging_proto"], + deps = [":logging_ruby_proto"], +) + +############################################################################## +# C# +############################################################################## +load( + "@com_google_googleapis_imports//:imports.bzl", + "csharp_grpc_library", + "csharp_proto_library", +) + +csharp_proto_library( + name = "logging_csharp_proto", + deps = [":logging_proto"], +) + +csharp_grpc_library( + name = "logging_csharp_grpc", + srcs = [":logging_proto"], + deps = [":logging_csharp_proto"], +) + +############################################################################## +# C++ +############################################################################## +# Put your C++ code here diff --git a/third_party/googleapis/storage/clouddms/logging/v1/clouddms_stackdriver_logs.proto b/third_party/googleapis/storage/clouddms/logging/v1/clouddms_stackdriver_logs.proto new file mode 100644 index 000000000..58233f8c9 --- /dev/null +++ b/third_party/googleapis/storage/clouddms/logging/v1/clouddms_stackdriver_logs.proto @@ -0,0 +1,374 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package storage.clouddms.logging.v1; + +import "google/protobuf/duration.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; + +option go_package = "google.golang.org/genproto/googleapis/storage/clouddms/logging/v1;logging"; +option java_multiple_files = true; +option java_outer_classname = "DataMigrationStackDriverLogs"; +option java_package = "com.google.storage.clouddms.logging.v1"; + +// The database engines. +enum DatabaseEngine { + // The source database engine of the migration job is unknown. + DATABASE_ENGINE_UNSPECIFIED = 0; + + // The source engine is MySQL. + MYSQL = 1; + + // The source engine is PostgreSQL. + POSTGRESQL = 2; + + // The source engine is SQL Server. + SQLSERVER = 3; +} + +// The database providers. +enum DatabaseProvider { + // The database provider is unknown. + DATABASE_PROVIDER_UNSPECIFIED = 0; + + // CloudSQL runs the database. + CLOUDSQL = 1; + + // RDS runs the database. + RDS = 2; +} + +// A message defining the database engine and provider. +message DatabaseType { + // The database provider. + DatabaseProvider provider = 1; + + // The database engine. + DatabaseEngine engine = 2; +} + +// Migration job as stored in Stackdriver logs. +// NEXT_TAG = 36. +message LoggedMigrationJob { + // The migration job states enum. + enum State { + // The state of the migration job is unknown. + STATE_UNSPECIFIED = 0; + + // The migration job is down for maintenance. + MAINTENANCE = 1; + + // The migration job is in draft mode and fully editable. + DRAFT = 2; + + // The migration job is being created. + CREATING = 3; + + // The migration job is created, not started and is fully editable. + NOT_STARTED = 4; + + // The migration job is running + RUNNING = 5; + + // The migration job failed. + FAILED = 6; + + // The migration job has been completed. + COMPLETED = 7; + + // The migration job is being deleted. + DELETING = 8; + + // The migration job is being stopped. + STOPPING = 9; + + // The migration job is currently stopped. + STOPPED = 10; + + // The migration job has been deleted. + DELETED = 11; + + // The migration job is being updated. + UPDATING = 12; + + // The migration job is starting. + STARTING = 13; + + // The migration job is restarting. + RESTARTING = 14; + + // The migration job is resuming. + RESUMING = 15; + } + + // The migration job phases enum. + enum Phase { + // The phase of the migration job is unknown. + PHASE_UNSPECIFIED = 0; + + // The migration job is in the full dump phase. + FULL_DUMP = 1; + + // The migration job is CDC phase. + CDC = 2; + + // The migration job is running the promote phase. + PROMOTE_IN_PROGRESS = 3; + + // Only RDS flow - waiting for source writes to stop + WAITING_FOR_SOURCE_WRITES_TO_STOP = 4; + + // Only RDS flow - the sources writes stopped, waiting for dump to begin + PREPARING_THE_DUMP = 5; + } + + // The migration job types. + enum Type { + // The type of the migration job is unknown. + TYPE_UNSPECIFIED = 0; + + // The migration job is a one time migration. + ONE_TIME = 1; + + // The migration job is a continuous migration. + CONTINUOUS = 2; + } + + // Type of connectivity to source database. + enum ConnectivityType { + // No data defined. + CONNECTIVITY_TYPE_UNSPECIFIED = 0; + + // Connect using static IO + STATIC_IP = 1; + + // Use reverse SSH connectivity. + REVERSE_SSH = 2; + + // Use VPC Peering connectivity. + VPC_PEERING = 3; + } + + // The unique identifier for a migration job. + string name = 1; + + // Labels. + map labels = 2; + + // The display name. + string display_name = 3; + + // The current migration job state. + State state = 4; + + // The current migration job phase. + Phase phase = 5; + + // The migration job type. + Type type = 6; + + // An optional dump path (gs://[BUCKET_NAME]/[OBJECT_NAME]). + string dump_path = 7; + + // The migration job source connection profile name. + string source = 8; + + // The migration job destination connection profile name. + string destination = 9; + + // the migration job duration in seconds. + google.protobuf.Duration duration = 10; + + // Type of connectivity to source database. + ConnectivityType connectivity_type = 11; + + // The error details in case of state FAILED. + google.rpc.Status error = 12; + + // The time when this migration job was completed. Should only be set when the + // phase of the migration job is COMPLETED. + google.protobuf.Timestamp end_time = 13; + + // The indicative source database. + DatabaseType source_database = 14; + + // The indicative destination database. + DatabaseType destination_database = 15; +} + +// An MySQL database connection profile. +message MySqlConnectionProfile { + // The MySQL database version. + enum Version { + // Unspecified version. + VERSION_UNSPECIFIED = 0; + + // MySQL 5.5. + V5_5 = 1; + + // MySQL 5.6. + V5_6 = 2; + + // MySQL 5.7. + V5_7 = 3; + + // MySQL 8.0. + V8_0 = 4; + } + + // The database version. + Version version = 1; + + // The Cloud SQL id for a Cloud SQL instance. + string cloud_sql_id = 2; +} + +// An PostgreSQL connection profile. +message PostgreSqlConnectionProfile { + // The PostgreSQL database version. + enum Version { + // Unspecified version. + VERSION_UNSPECIFIED = 0; + + // PostgreSQL 9.6. + V9_6 = 1; + + // PostgreSQL 11. + V11 = 2; + } + + // The database version. + Version version = 1; + + // The Cloud SQL id for a Cloud SQL instance. + string cloud_sql_id = 2; +} + +// A CloudSQL connection profile. +message CloudSqlConnectionProfile { + // The Cloud SQL id. + string cloud_sql_id = 1; +} + +// An producer connection profile definition. +// NEXT_TAG = 18. +message LoggedConnectionProfile { + // The connection profile states enum. + enum State { + // The state of the connection profile is unknown. + STATE_UNSPECIFIED = 0; + + // The connection profile is in draft mode and fully editable. + DRAFT = 1; + + // The connection profile is being created. + CREATING = 2; + + // The connection profile is ready. + READY = 3; + + // The connection profile is being updated. + UPDATING = 4; + + // The connection profile is being deleted. + DELETING = 5; + + // The connection profile has been deleted. + DELETED = 6; + + // The last action on the connection profile failed. + FAILED = 7; + } + + // The unique identifier for a connection profile. + string name = 1; + + // Labels. + map labels = 2; + + // The current connection profile state. + State state = 3; + + // The display name. + string display_name = 4; + + // The connection profile definition + oneof connection_profile { + // A MySQL database connection profile. + MySqlConnectionProfile mysql = 100; + + // A PostgreSQL database connection profile. + PostgreSqlConnectionProfile postgresql = 101; + + // A CloudSQL database connection profile. + CloudSqlConnectionProfile cloudsql = 102; + } + + // The error details in case of state FAILED. + google.rpc.Status error = 5; + + // The database provider. + DatabaseProvider provider = 6; +} + +// Log definition for Migration Job event +message MigrationJobEventLog { + // The migration job resource + LoggedMigrationJob migration_job = 1; + + // Timestamp of the event + google.protobuf.Timestamp occurrence_timestamp = 2; + + // Event code + int32 code = 3; + + // Event message + string text_message = 4; + + // Original event data + oneof original_cause { + // Original event code + int32 original_code = 200; + + // Original event message + string original_message = 201; + } +} + +// Log definition for Connection Profile event +message ConnectionProfileEventLog { + // The connection profilr resource + LoggedConnectionProfile connection_profile = 1; + + // Timestamp of the event + google.protobuf.Timestamp occurrence_timestamp = 2; + + // Event code + int32 code = 3; + + // Event message + string text_message = 4; + + // Original event data + oneof original_cause { + // Original event code + int32 original_code = 200; + + // Original event message + string original_message = 201; + } +}